Changeset 4840 for branches/r9


Ignore:
Timestamp:
Dec 11, 2014, 11:11:42 AM (10 years ago)
Author:
gah
Message:
 
Location:
branches/r9
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • branches/r9/Makefile.in

    r4146 r4840  
    11
    2 bindir          = @bindir@
    3 datadir         = @datadir@
    4 datarootdir     = @datarootdir@
    5 exec_prefix     = @exec_prefix@
    6 includedir      = @includedir@
    7 libdir          = @libdir@
    8 mandir          = @mandir@
    9 prefix          = @prefix@
    10 srcdir          = @srcdir@
    11 
    12 INSTALL         = @INSTALL@
    13 SHELL           = @SHELL@
    14 MKDIR_P         = @MKDIR_P@
    15 RM              = rm -f
    16 VPATH           = $(srcdir)
    17 
    18 build_date      := $(shell date +%Y%m%d)
    19 machine         := $(shell uname -m | sed 's/\ //')
    20 os              := $(shell uname -s)
    21 
    22 pkg_path        := $(shell dirname $(prefix))
    23 pkg_name        := $(shell basename $(prefix))
    24 SVN_VERSION     := $(shell svnversion $(srcdir))
    25 
    26 rappture_binary_tarfile = rappture-$(os)-$(machine)-$(build_date).tar.gz
    27 rappture_source_tarfile = rappture-src-$(build_date).tar.gz
    28 runtime_source_tarfile = rappture-runtime-src-$(build_date).tar.gz
    29 
    30 runtime_repo = https://nanohub.org/infrastructure/rappture-runtime/svn/trunk
    31 rappture_repo = https://nanohub.org/infrastructure/rappture/svn/trunk
    32 
    33 ENABLE_GUI      = @ENABLE_GUI@
    34 ENABLE_LANG     = @ENABLE_LANG@
    35 HAVE_FFMPEG     = @HAVE_FFMPEG_LIBS@
    36 TARGETS         = src lib
    37 
    38 ifneq ($(ENABLE_LANG),)
    39   TARGETS += lang
     2# ------------------------------------------------------------------------
     3#       Makefile for Rappture
     4# ------------------------------------------------------------------------
     5
     6# ------------------------------------------------------------------------
     7#       C Compiler options
     8# ------------------------------------------------------------------------
     9
     10RAPPTURE_MAJOR_VERSION =        @RAPPTURE_MAJOR_VERSION@
     11RAPPTURE_MINOR_VERSION =        @RAPPTURE_MINOR_VERSION@
     12RAPPTURE_RELEASE_SERIAL =       @RAPPTURE_RELEASE_SERIAL@
     13X_INCLUDES =            @X_INCLUDES@
     14X_LIBRARIES =           @X_LIBRARIES@
     15WORDSIZE =              @WORDSIZE@
     16version = $(RAPPTURE_MAJOR_VERSION).$(RAPPTURE_MINOR_VERSION).$(RAPPTURE_RELEASE_SERIAL)
     17runtime =               $(shell cd ../runtime; pwd)
     18TAG =                   trunk
     19
     20# ------------------------------------------------------------------------
     21#       Source and targer installation directories
     22# ------------------------------------------------------------------------
     23
     24bindir =                $(exec_prefix)/bin
     25datadir =               @datadir@
     26datarootdir =           @datarootdir@
     27exec_prefix =           @exec_prefix@
     28incdir =                $(prefix)/include
     29includedir =            @includedir@
     30libdir =                @libdir@
     31prefix =                @prefix@
     32scriptdir =             $(exec_prefix)/scripts
     33pkgdir =                $(exec_prefix)/lib
     34srcdir =                $(shell cd @srcdir@; pwd)
     35statsdir =              @STATSDIR@
     36
     37# ------------------------------------------------------------------------
     38#       You don't need to edit anything beyond this point
     39# ------------------------------------------------------------------------
     40
     41INSTALL =               @INSTALL@
     42INSTALL_DATA =          @INSTALL_DATA@
     43DESTDIR = 
     44RANLIB =                @RANLIB@
     45MAKE =                  make
     46SHELL =                 /bin/sh
     47AR =                    ar rc
     48RM =                    rm -f
     49LN_S =                  @LN_S@
     50VPATH =                 $(srcdir)
     51MKDIR_P =               @MKDIR_P@
     52CP =                    /bin/cp
     53
     54common_flags =          --prefix=$(prefix) --exec_prefix=$(exec_prefix)
     55x_flags =
     56ifneq ("$(X_INCLUDES)", )
     57x_flags += --x-includes=$(X_INCLUDES)
    4058endif
    41 ifneq ($(ENABLE_GUI),)
    42   TARGETS += gui builder tester examples
     59ifneq ("$(X_LIBRARIES)", )
     60x_flags += --x-includes=$(X_LIBRARIES)
    4361endif
    44 ifneq ($(HAVE_FFMPEG),)
    45   TARGETS += video
    46 endif
    47 
    48 .PHONY: all test install clean distclean package distrib runtime-distrib \
    49         $(TARGETS)
    50 
    51 all:
    52         for i in $(TARGETS) ; do \
    53           $(MAKE) -C $$i all || exit 1 ;\
    54         done
    55 
    56 test:
    57         $(MAKE) -C test all
    58 
    59 install:
    60         for i in $(TARGETS) ; do \
    61           $(MAKE) -C $$i install || exit 1 ;\
    62         done
    63 
    64 clean:
    65         for i in $(TARGETS) ; do \
    66           $(MAKE) -C $$i clean || exit 1 ;\
    67         done
    68 
    69 distclean: clean
    70         $(RM) Makefile config.status config.log  *~
    71         for i in $(TARGETS) ; do \
    72           $(MAKE) -C $$i distclean || exit 1 ;\
    73         done
    74 
    75 package:
    76         tar -C $(pkg_path) -czlf $(rappture_binary_tarfile) $(pkg_name)
    77 
    78 distrib:
    79         $(RM) -r exported
    80         $(MKDIR_P) -m 0755 exported
    81         (cd exported; svn export -q $(rappture_repo) rappture)
    82         tar -C exported -czlf $(rappture_source_tarfile) rappture
    83         $(RM) -r exported
    84 
    85 runtime-distrib:
    86         $(RM) -r exported
    87         $(MKDIR_P) -m 0755 exported
    88         (cd exported; svn export -q $(runtime_repo) runtime)
    89         tar -C exported -czlf $(runtime_source_tarfile) runtime
    90         $(RM) -r exported
     62
     63PATH := $(bindir):$(PATH)
     64
     65targets = \
     66        blt builder cmake examples expat expect glew gui geovis \
     67        htmlwidget itcl itk lang librappture nanovis nanoscale \
     68        optimizer osg osgearth pymol \
     69        pymolproxy shape sqlitetcl tcl tcllib tdom tester tk \
     70        tkimg tls video voronoi vtk vtkvis zlib 
     71
     72.PHONY: $(targets)
     73
     74.NOTPARALLEL:
     75
     76all: gui
     77
     78fullpkg: tester builder renderservers
     79
     80renderservers: nanoscale nanovis vtkvis geovis pymolproxy
     81
     82libshell: $(tcllib)/timestamp $(tls)/timestamp $(itcl)/timestamp
     83
     84# Aliases for package directory names.
     85
     86blt = blt2.4z
     87builder = builder
     88cmake = cmake-2.8.12
     89examples =examples
     90expat = expat-2.0.1
     91expect = expect5.45
     92glew = glew
     93gui = gui
     94htmlwidget = htmlwidget-3a14
     95itcl = itcl3.3
     96itk = itk3.3
     97lang = lang
     98librappture = librappture
     99nanoscale = nanoscale
     100nanovis = nanovis
     101optimizer = optimizer
     102osg = OpenSceneGraph-3.2.0
     103osgearth = osgearth-2.5
     104pymol = pymol
     105pymolproxy = pymolproxy
     106shape = shape0.4
     107sqlitetcl = sqlite-3071502/tea
     108tcl = tcl8.4.19
     109tcllib = tcllib-1.12
     110tdom = tDOM-0.8.2
     111tester = tester
     112tk = tk8.4.19
     113tkimg = tkimg1.3
     114tls = tls1.6
     115video = video
     116voronoi = voronoi
     117vtk = vtk-6.0.0
     118vtkvis = vtkvis
     119geovis = geovis
     120zlib = zlib
     121
     122subdirs = \
     123        $(blt) $(builder) $(cmake) $(examples) $(expat) $(expect) $(glew) \
     124        $(gui) $(htmlwidget) $(itcl) $(itk) $(lang) $(librappture) $(nanovis) \
     125        $(optimizer) $(osg) $(osgearth) $(pymol) $(pymolproxy) $(shape) \
     126        $(sqlitetcl) $(tcl) $(tcllib) $(tdom) $(tester) $(tk) $(tkimg) \
     127        $(tls) $(video) $(voronoi) $(vtk) $(vtkvis) $(zlib) $(geovis)
     128
     129
     130clean:
     131        $(RM) -r $(subdirs)
     132
     133# -------------------------------------------------------------------------
     134#  BLT
     135# -------------------------------------------------------------------------
     136
     137blt_flags =     \
     138        --enable-shared \
     139        $(common_flags)
     140
     141blt: $(blt)/timestamp
     142
     143clean-blt:
     144        $(clean_blt)
     145fetch-blt:
     146        $(fetch_blt)
     147configure-blt:
     148        $(configure_blt)
     149build-blt:
     150        $(build_blt)
     151install-blt:
     152        $(install_blt)
     153touch-blt:
     154        $(touch_blt)
     155force-blt: $(tcl)/timestamp $(tk)/timestamp
     156        + $(clean_blt)
     157        + $(fetch_blt)
     158        + $(configure_blt)
     159        + $(build_blt)
     160        + $(install_blt)
     161        + $(touch_blt)
     162
     163define clean_blt
     164        $(RM) -r $(blt)
     165endef
     166define fetch_blt
     167        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(blt)
     168endef
     169define configure_blt
     170        $(MKDIR_P) $(blt)
     171        cd $(blt); $(runtime)/$(blt)/configure $(blt_flags)
     172endef
     173define build_blt
     174        $(MAKE)  -C $(blt) all
     175endef
     176define install_blt
     177        $(MAKE) -C $(blt) install
     178endef
     179define touch_blt
     180        touch $(blt)/timestamp
     181endef
     182
     183$(blt)/timestamp: $(tcl)/timestamp $(tk)/timestamp
     184        + $(clean_blt)
     185        + $(fetch_blt)
     186        + $(configure_blt)
     187        + $(build_blt)
     188        + $(install_blt)
     189        + $(touch_blt)
     190
     191# -------------------------------------------------------------------------
     192#  BUILDER
     193# -------------------------------------------------------------------------
     194
     195builder_flags = \
     196        --with-tclsh="$(bindir)/tclsh8.4" \
     197        --enable-shared \
     198        $(common_flags)
     199
     200builder: $(builder)/timestamp
     201
     202clean-builder:
     203        $(clean_builder)
     204fetch-builder:
     205        $(fetch_builder)
     206configure-builder:
     207build-builder:
     208        $(build_builder)
     209install-builder:
     210        $(install_builder)
     211touch-builder:
     212        $(touch_builder)
     213force-builder: $(gui)/timestamp
     214        + $(clean_builder)
     215        + $(fetch_builder)
     216        + $(configure_builder)
     217        + $(build_builder)
     218        + $(install_builder)
     219        + $(touch_builder)
     220
     221define clean_builder
     222        $(MAKE) -C $(builder) clean
     223endef
     224define fetch_builder
     225endef
     226define build_builder
     227        $(MAKE) -C $(builder) all
     228endef
     229define install_builder
     230        $(MAKE) -C $(builder) install
     231endef
     232define touch_builder
     233        touch $(builder)/timestamp
     234endef
     235
     236$(builder)/timestamp: $(gui)/timestamp
     237        + $(clean_builder)
     238        + $(fetch_builder)
     239        + $(configure_builder)
     240        + $(build_builder)
     241        + $(install_builder)
     242        + $(touch_builder)
     243
     244# -------------------------------------------------------------------------
     245#  CMAKE
     246# -------------------------------------------------------------------------
     247
     248cmake_flags =   \
     249        --prefix=$(prefix)
     250
     251cmake: $(cmake)/timestamp
     252
     253clean-cmake:
     254        $(clean_cmake)
     255fetch-cmake:
     256        $(fetch_cmake)
     257configure-cmake:
     258        $(configure_cmake)
     259build-cmake:
     260        $(build_cmake)
     261install-cmake:
     262        $(install_cmake)
     263touch-cmake:
     264        $(touch_cmake)
     265force-cmake:
     266        + $(clean_cmake)
     267        + $(fetch_cmake)
     268        + $(configure_cmake)
     269        + $(build_cmake)
     270        + $(install_cmake)
     271        + $(touch_cmake)
     272
     273define clean_cmake
     274        $(RM) -r $(cmake)
     275endef
     276define fetch_cmake
     277        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(cmake)
     278endef
     279define configure_cmake
     280        $(MKDIR_P) $(cmake)
     281        cd $(cmake); $(runtime)/$(cmake)/configure $(cmake_flags)
     282endef
     283define build_cmake
     284        $(MAKE)  -C $(cmake) all
     285endef
     286define install_cmake
     287        $(MAKE) -C $(cmake) install
     288endef
     289define touch_cmake
     290        touch $(cmake)/timestamp
     291endef
     292
     293$(cmake)/timestamp:
     294        + $(clean_cmake)
     295        + $(fetch_cmake)
     296        + $(configure_cmake)
     297        + $(build_cmake)
     298        + $(install_cmake)
     299        + $(touch_cmake)
     300
     301# -------------------------------------------------------------------------
     302#  EXAMPLES
     303# -------------------------------------------------------------------------
     304
     305examples_flags =        \
     306        --with-tclsh="$(bindir)/tclsh8.4" \
     307        --enable-shared \
     308        $(common_flags)
     309
     310examples: $(examples)/timestamp
     311
     312clean-examples:
     313        $(clean_examples)
     314fetch-examples:
     315        $(fetch_examples)
     316configure-examples:
     317        $(configure_examples)
     318build-examples:
     319        $(build_examples)
     320install-examples:
     321        $(install_examples)
     322touch-examples:
     323        $(touch_examples)
     324force-examples: $(gui)/timestamp
     325        + $(clean_examples)
     326        + $(fetch_examples)
     327        + $(configure_examples)
     328        + $(build_examples)
     329        + $(install_examples)
     330        + $(touch_examples)
     331
     332define clean_examples
     333        $(MAKE) -C $(examples) clean
     334endef
     335define fetch_examples
     336endef
     337define configure_examples
     338        $(MKDIR_P) $(examples)
     339endef
     340define build_examples
     341        $(MAKE) -C $(examples) all
     342endef
     343define install_examples
     344        $(MAKE) -C $(examples) install
     345endef
     346define touch_examples
     347        touch $(examples)/timestamp
     348endef
     349
     350$(examples)/timestamp: $(gui)/timestamp
     351        + $(clean_examples)
     352        + $(fetch_examples)
     353        + $(configure_examples)
     354        + $(build_examples)
     355        + $(install_examples)
     356        + $(touch_examples)
     357
     358# -------------------------------------------------------------------------
     359#  EXPAT
     360# -------------------------------------------------------------------------
     361
     362expat_flags =   \
     363        --enable-shared \
     364        $(common_flags)
     365
     366expat: $(expat)/timestamp
     367
     368clean-expat:
     369        $(clean_expat)
     370fetch-expat:
     371        $(fetch_expat)
     372configure-expat:
     373        $(configure_expat)
     374build-expat:
     375        $(build_expat)
     376install-expat:
     377        $(install_expat)
     378touch-expat:
     379        $(touch_expat)
     380force-expat:
     381        + $(clean_expat)
     382        + $(fetch_expat)
     383        + $(configure_expat)
     384        + $(build_expat)
     385        + $(install_expat)
     386        + $(touch_expat)
     387
     388define clean_expat
     389        $(RM) -r $(expat)
     390endef
     391define fetch_expat
     392        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(expat)
     393endef
     394define configure_expat
     395        $(MKDIR_P) $(expat)
     396        cd $(expat); $(runtime)/$(expat)/configure $(expat_flags)
     397endef
     398define build_expat
     399        $(MAKE)  -C $(expat) all
     400endef
     401define install_expat
     402        $(MAKE) -C $(expat) install
     403endef
     404define touch_expat
     405        touch $(expat)/timestamp
     406endef
     407
     408$(expat)/timestamp:
     409        + $(clean_expat)
     410        + $(fetch_expat)
     411        + $(configure_expat)
     412        + $(build_expat)
     413        + $(install_expat)
     414        + $(touch_expat)
     415
     416# -------------------------------------------------------------------------
     417#  EXPECT
     418# -------------------------------------------------------------------------
     419
     420expect_flags =  \
     421        --enable-shared \
     422        --enable-64bit \
     423        --with-tcl=$(libdir) \
     424        --with-tclinclude=$(incdir) \
     425        $(common_flags)
     426
     427expect: $(expect)/timestamp
     428
     429clean-expect:
     430        $(clean_expect)
     431fetch-expect:
     432        $(fetch_expect)
     433configure-expect:
     434        $(configure_expect)
     435build-expect:
     436        $(build_expect)
     437install-expect:
     438        $(install_expect)
     439touch-expect:
     440        $(touch_expect)
     441force-expect: $(tcl)/timestamp $(tk)/timestamp
     442        + $(clean_expect)
     443        + $(fetch_expect)
     444        + $(configure_expect)
     445        + $(build_expect)
     446        + $(install_expect)
     447        + $(touch_expect)
     448
     449define clean_expect
     450        $(RM) -r $(expect)
     451endef
     452define fetch_expect
     453        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(expect)
     454endef
     455define configure_expect
     456        $(MKDIR_P) $(expect)
     457        cd $(expect); $(runtime)/$(expect)/configure $(expect_flags)
     458endef
     459define build_expect
     460        $(MAKE)  -C $(expect) all
     461endef
     462define install_expect
     463        $(MAKE) -C $(expect) install
     464endef
     465define touch_expect
     466        touch $(expect)/timestamp
     467endef
     468
     469$(expect)/timestamp: $(tcl)/timestamp $(tk)/timestamp
     470        + $(clean_expect)
     471        + $(fetch_expect)
     472        + $(configure_expect)
     473        + $(build_expect)
     474        + $(install_expect)
     475        + $(touch_expect)
     476
     477# -------------------------------------------------------------------------
     478#  GLEW
     479# -------------------------------------------------------------------------
     480
     481glew_flags =    \
     482        --enable-shared \
     483        $(common_flags)
     484
     485glew: $(glew)/timestamp
     486
     487clean-glew:
     488        $(clean_glew)
     489fetch-glew:
     490        $(fetch_glew)
     491configure-glew:
     492        $(configure_glew)
     493build-glew:
     494        $(build_glew)
     495install-glew:
     496        $(install_glew)
     497touch-glew:
     498        $(touch_glew)
     499force-glew:
     500        + $(clean_glew)
     501        + $(fetch_glew)
     502        + $(configure_glew)
     503        + $(build_glew)
     504        + $(install_glew)
     505        + $(touch_glew)
     506
     507define clean_glew
     508        $(RM) -r $(glew)
     509endef
     510define fetch_glew
     511        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(glew)
     512endef
     513define configure_glew
     514        $(MKDIR_P) $(glew)
     515        cd $(glew); $(runtime)/$(glew)/configure $(glew_flags)
     516endef
     517define build_glew
     518        $(MAKE)  -C $(glew) all
     519endef
     520define install_glew
     521        $(MAKE) -C $(glew) install
     522endef
     523define touch_glew
     524        touch $(glew)/timestamp
     525endef
     526
     527$(glew)/timestamp:
     528        + $(clean_glew)
     529        + $(fetch_glew)
     530        + $(configure_glew)
     531        + $(build_glew)
     532        + $(install_glew)
     533        + $(touch_glew)
     534
     535# -------------------------------------------------------------------------
     536#  GUI
     537# -------------------------------------------------------------------------
     538
     539gui_flags =     \
     540        --with-tclsh="$(bindir)/tclsh8.4" \
     541        --enable-shared \
     542        $(common_flags)
     543
     544gui: $(gui)/timestamp
     545
     546clean-gui:
     547        $(clean_gui)
     548fetch-gui:
     549        $(fetch_gui)
     550configure-gui:
     551        $(configure_gui)
     552build-gui:
     553        $(build_gui)
     554install-gui:
     555        $(install_gui)
     556touch-gui:
     557        $(touch_gui)
     558force-gui: $(librappture)/timestamp \
     559                  $(blt)/timestamp \
     560                  $(itk)/timestamp \
     561                  $(htmlwidget)/timestamp \
     562                  $(shape)/timestamp \
     563                  $(sqlitetcl)/timestamp \
     564                  $(vtk)/timestamp
     565        + $(clean_gui)
     566        + $(fetch_gui)
     567        + $(configure_gui)
     568        + $(build_gui)
     569        + $(install_gui)
     570        + $(touch_gui)
     571
     572define clean_gui
     573        $(RM) -r $(gui)
     574endef
     575define fetch_gui
     576endef
     577define configure_gui
     578        $(MKDIR_P) $(gui)
     579        cd $(gui); $(srcdir)/$(gui)/configure $(gui_flags)
     580endef
     581define build_gui
     582        $(MAKE) -C $(gui) all
     583endef
     584define install_gui
     585        $(MAKE) -C $(gui) install
     586endef
     587define touch_gui
     588        touch $(gui)/timestamp
     589endef
     590
     591$(gui)/timestamp: $(librappture)/timestamp \
     592                  $(blt)/timestamp \
     593                  $(itk)/timestamp \
     594                  $(htmlwidget)/timestamp \
     595                  $(shape)/timestamp \
     596                  $(sqlitetcl)/timestamp \
     597                  $(vtk)/timestamp
     598        + $(clean_gui)
     599        + $(fetch_gui)
     600        + $(configure_gui)
     601        + $(build_gui)
     602        + $(install_gui)
     603        + $(touch_gui)
     604
     605# -------------------------------------------------------------------------
     606#  HTMLWIDGET
     607# -------------------------------------------------------------------------
     608
     609htmlwidget_flags = \
     610        --enable-shared \
     611        $(common_flags)
     612
     613htmlwidget: $(htmlwidget)/timestamp
     614
     615clean-htmlwidget:
     616        $(clean_htmlwidget)
     617fetch-htmlwidget:
     618        $(fetch_htmlwidget)
     619configure-htmlwidget:
     620        $(configure_htmlwidget)
     621build-htmlwidget:
     622        $(build_htmlwidget)
     623install-htmlwidget:
     624        $(install_htmlwidget)
     625touch-htmlwidget:
     626        $(touch_htmlwidget)
     627force-htmlwidget: $(tk)/timestamp
     628        + $(clean_htmlwidget)
     629        + $(fetch_htmlwidget)
     630        + $(configure_htmlwidget)
     631        + $(build_htmlwidget)
     632        + $(install_htmlwidget)
     633        + $(touch_htmlwidget)
     634
     635define clean_htmlwidget
     636        $(RM) -r $(htmlwidget)
     637endef
     638define fetch_htmlwidget
     639        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(htmlwidget)
     640endef
     641define configure_htmlwidget
     642        $(MKDIR_P) $(htmlwidget)
     643        cd $(htmlwidget); $(runtime)/$(htmlwidget)/configure $(htmlwidget_flags)
     644endef
     645define build_htmlwidget
     646        $(MAKE) -C $(htmlwidget) all
     647endef
     648define install_htmlwidget
     649        $(MAKE) -C $(htmlwidget) install
     650endef
     651define touch_htmlwidget
     652        touch $(htmlwidget)/timestamp
     653endef
     654
     655$(htmlwidget)/timestamp: $(tk)/timestamp
     656        + $(clean_htmlwidget)
     657        + $(fetch_htmlwidget)
     658        + $(configure_htmlwidget)
     659        + $(build_htmlwidget)
     660        + $(install_htmlwidget)
     661        + $(touch_htmlwidget)
     662
     663# -------------------------------------------------------------------------
     664#  ITCL
     665# -------------------------------------------------------------------------
     666
     667itcl_flags =    \
     668        --enable-shared \
     669        $(common_flags)
     670
     671itcl: $(itcl)/timestamp
     672
     673clean-itcl:
     674        $(clean_itcl)
     675fetch-itcl:
     676        $(fetch_itcl)
     677configure-itcl:
     678        $(configure_itcl)
     679build-itcl:
     680        $(build_itcl)
     681install-itcl:
     682        $(install_itcl)
     683touch-itcl:
     684        $(touch_itcl)
     685force-itcl:
     686        + $(clean_itcl)
     687        + $(fetch_itcl)
     688        + $(configure_itcl)
     689        + $(build_itcl)
     690        + $(install_itcl)
     691        + $(touch_itcl)
     692
     693define clean_itcl
     694        $(RM) -r $(itcl)
     695endef
     696define fetch_itcl
     697        sh $(srcdir)/fetch.sh $(TAG) $(srcdir) $(itcl)
     698endef
     699define configure_itcl
     700        $(MKDIR_P) $(itcl)
     701        cd $(itcl); $(runtime)/$(itcl)/configure $(itcl_flags)
     702endef
     703define build_itcl
     704        $(MAKE)  -C $(itcl) all
     705endef
     706define install_itcl
     707        $(MAKE) -C $(itcl) install
     708endef
     709define touch_itcl
     710        touch $(itcl)/timestamp
     711endef
     712
     713$(itcl)/timestamp: $(tcl)/timestamp
     714        + $(clean_itcl)
     715        + $(fetch_itcl)
     716        + $(configure_itcl)
     717        + $(build_itcl)
     718        + $(install_itcl)
     719        + $(touch_itcl)
     720
     721# -------------------------------------------------------------------------
     722#  ITK
     723# -------------------------------------------------------------------------
     724
     725itk_flags =     \
     726        --enable-shared \
     727        $(common_flags)
     728
     729itk: $(itk)/timestamp
     730
     731clean-itk:
     732        $(clean_itk)
     733fetch-itk:
     734        $(fetch_itk)
     735configure-itk:
     736        $(configure_itk)
     737build-itk:
     738        $(build_itk)
     739install-itk:
     740        $(install_itk)
     741touch-itk:
     742        $(touch_itk)
     743force-itk: $(itcl)/timestamp $(tk)/timestamp
     744        + $(clean_itk)
     745        + $(fetch_itk)
     746        + $(configure_itk)
     747        + $(build_itk)
     748        + $(install_itk)
     749        + $(touch_itk)
     750
     751define clean_itk
     752        $(RM) -r $(itk)
     753endef
     754define fetch_itk
     755        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(itk)
     756endef
     757define configure_itk
     758        $(MKDIR_P) $(itk)
     759        cd $(itk); $(runtime)/$(itk)/configure $(itk_flags)
     760endef
     761define build_itk
     762        $(MAKE) -C $(itk) all
     763endef
     764define install_itk
     765        $(MAKE) -C $(itk) install
     766endef
     767define touch_itk
     768        touch $(itk)/timestamp
     769endef
     770
     771$(itk)/timestamp: $(itcl)/timestamp $(tk)/timestamp
     772        + $(clean_itk)
     773        + $(fetch_itk)
     774        + $(configure_itk)
     775        + $(build_itk)
     776        + $(install_itk)
     777        + $(touch_itk)
     778
     779# -------------------------------------------------------------------------
     780#  LANG
     781# -------------------------------------------------------------------------
     782
     783lang_flags =    \
     784        --enable-shared \
     785        $(common_flags)
     786
     787lang: $(lang)/timestamp
     788
     789clean-lang:
     790        $(clean_lang)
     791fetch-lang:
     792        $(fetch_lang)
     793configure-lang:
     794        $(configure_lang)
     795build-lang:
     796        $(build_lang)
     797install-lang:
     798        $(install_lang)
     799touch-lang:
     800        $(touch_lang)
     801force-lang: $(gui)/timestamp
     802        + $(clean_lang)
     803        + $(fetch_lang)
     804        + $(configure_lang)
     805        + $(build_lang)
     806        + $(install_lang)
     807        + $(touch_lang)
     808
     809define clean_lang
     810        $(RM) -r $(lang)
     811endef
     812define fetch_lang
     813endef
     814define configure_lang
     815        $(MKDIR_P) $(lang)
     816        cd $(lang); $(srcdir)/$(lang)/configure $(lang_flags)
     817endef
     818define build_lang
     819        $(MAKE) -C $(lang) all
     820endef
     821define install_lang
     822        $(MAKE) -C $(lang) install
     823endef
     824define touch_lang
     825        touch $(lang)/timestamp
     826endef
     827
     828$(lang)/timestamp: $(librappture)/timestamp  $(tcl)/timestamp $(itcl)/timestamp
     829        + $(clean_lang)
     830        + $(fetch_lang)
     831        + $(configure_lang)
     832        + $(build_lang)
     833        + $(install_lang)
     834        + $(touch_lang)
     835
     836
     837# -------------------------------------------------------------------------
     838#  LIBRAPPTURE
     839# -------------------------------------------------------------------------
     840
     841librappture_flags =     \
     842        --enable-shared \
     843        $(common_flags)
     844
     845librappture: $(librappture)/timestamp
     846
     847clean-librappture:
     848        $(clean_librappture)
     849fetch-librappture:
     850        $(fetch_librappture)
     851configure-librappture:
     852        $(configure_librappture)
     853build-librappture:
     854        $(build_librappture)
     855install-librappture:
     856        $(install_librappture)
     857touch-librappture:
     858        $(touch_librappture)
     859force-librappture:
     860        + $(clean_librappture)
     861        + $(fetch_librappture)
     862        + $(configure_librappture)
     863        + $(build_librappture)
     864        + $(install_librappture)
     865        + $(touch_librappture)
     866
     867define clean_librappture
     868        $(RM) -r $(librappture)
     869endef
     870define fetch_librappture
     871endef
     872define configure_librappture
     873        $(MKDIR_P) $(librappture)
     874        cd $(librappture); $(srcdir)/src/configure $(librappture_flags)
     875endef
     876define build_librappture
     877        $(MAKE)  -C $(librappture) all
     878endef
     879define install_librappture
     880        $(MAKE) -C $(librappture) install
     881endef
     882define touch_librappture
     883        touch $(librappture)/timestamp
     884endef
     885
     886$(librappture)/timestamp:
     887        + $(clean_librappture)
     888        + $(fetch_librappture)
     889        + $(configure_librappture)
     890        + $(build_librappture)
     891        + $(install_librappture)
     892        + $(touch_librappture)
     893
     894# -------------------------------------------------------------------------
     895#  NANOSCALE
     896# -------------------------------------------------------------------------
     897
     898nanoscale_flags =       \
     899        --with-statsdir=$(statsdir) \
     900        $(common_flags)
     901
     902nanoscale: $(nanoscale)/timestamp
     903
     904clean-nanoscale:
     905        $(clean_nanoscale)
     906fetch-nanoscale:
     907        $(fetch_nanoscale)
     908configure-nanoscale:
     909        $(configure_nanoscale)
     910build-nanoscale:
     911        $(build_nanoscale)
     912install-nanoscale:
     913        $(install_nanoscale)
     914touch-nanoscale:
     915        $(touch_nanoscale)
     916force-nanoscale: $(pymol)/timestamp
     917        + $(clean_nanoscale)
     918        + $(fetch_nanoscale)
     919        + $(configure_nanoscale)
     920        + $(build_nanoscale)
     921        + $(install_nanoscale)
     922        + $(touch_nanoscale)
     923
     924define clean_nanoscale
     925        $(RM) -r $(nanoscale)
     926endef
     927define fetch_nanoscale
     928endef
     929define configure_nanoscale
     930        $(MKDIR_P) $(nanoscale)
     931        cd $(nanoscale); $(srcdir)/packages/vizservers/$(nanoscale)/configure $(nanoscale_flags)
     932endef
     933define build_nanoscale
     934        $(MAKE) -C $(nanoscale) all
     935endef
     936define install_nanoscale
     937        $(MAKE) -C $(nanoscale) install
     938endef
     939define touch_nanoscale
     940        touch $(nanoscale)/timestamp
     941endef
     942
     943$(nanoscale)/timestamp: $(pymol)/timestamp
     944        + $(clean_nanoscale)
     945        + $(fetch_nanoscale)
     946        + $(configure_nanoscale)
     947        + $(build_nanoscale)
     948        + $(install_nanoscale)
     949        + $(touch_nanoscale)
     950
     951
     952# -------------------------------------------------------------------------
     953#  NANOVIS
     954# -------------------------------------------------------------------------
     955
     956nanovis_flags = \
     957        --with-tcllib=$(libdir) \
     958        --with-rappture=$(exec_prefix) \
     959        --with-vtk="6.0" \
     960        --with-vtk-includes=$(incdir) \
     961        --with-vtk-libs=$(libdir) \
     962        --with-statsdir=$(statsdir) \
     963        $(common_flags)
     964
     965nanovis: $(nanovis)/timestamp
     966
     967clean-nanovis:
     968        $(clean_nanovis)
     969fetch-nanovis:
     970        $(fetch_nanoscale)
     971configure-nanovis:
     972        $(configure_nanovis)
     973build-nanovis:
     974        $(build_nanovis)
     975install-nanovis:
     976        $(install_nanovis)
     977touch-nanovis:
     978        $(touch_nanovis)
     979force-nanovis: $(librappture)/timestamp $(vtk)/timestamp
     980        + $(clean_nanovis)
     981        + $(fetch_nanovis)
     982        + $(configure_nanovis)
     983        + $(build_nanovis)
     984        + $(install_nanovis)
     985        + $(touch_nanovis)
     986
     987define clean_nanovis
     988        $(RM) -r $(nanovis)
     989endef
     990define fetch_nanovis
     991endef
     992define configure_nanovis
     993        $(MKDIR_P) $(nanovis)
     994        cd $(nanovis); $(srcdir)/packages/vizservers/$(nanovis)/configure $(nanovis_flags)
     995endef
     996define build_nanovis
     997        $(MAKE) -C $(nanovis) all
     998endef
     999define install_nanovis
     1000        $(MAKE) -C $(nanovis) install
     1001endef
     1002define touch_nanovis
     1003        touch $(nanovis)/timestamp
     1004endef
     1005
     1006$(nanovis)/timestamp: $(librappture)/timestamp $(vtk)/timestamp
     1007        + $(clean_nanovis)
     1008        + $(fetch_nanovis)
     1009        + $(configure_nanovis)
     1010        + $(build_nanovis)
     1011        + $(install_nanovis)
     1012        + $(touch_nanovis)
     1013
     1014# -------------------------------------------------------------------------
     1015#  OPTIMIZER
     1016# -------------------------------------------------------------------------
     1017
     1018optimizer_flags =       \
     1019        --with-tclsh="$(bindir)/tclsh8.4" \
     1020        --enable-shared \
     1021        $(common_flags)
     1022
     1023optimizer: $(optimizer)/timestamp
     1024
     1025clean-optimizer:
     1026        $(clean_optimizer)
     1027fetch-optimizer:
     1028        $(fetch_optimizer)
     1029configure-optimizer:
     1030        $(configure_optimizer)
     1031build-optimizer:
     1032        $(build_optimizer)
     1033install-optimizer:
     1034        $(install_optimizer)
     1035touch-optimizer:
     1036        $(touch_optimizer)
     1037force-optimizer: $(gui)/timestamp
     1038        + $(clean_optimizer)
     1039        + $(fetch_optimizer)
     1040        + $(configure_optimizer)
     1041        + $(build_optimizer)
     1042        + $(install_optimizer)
     1043        + $(touch_optimizer)
     1044
     1045define clean_optimizer
     1046        $(RM) -r $(optimizer)
     1047endef
     1048define fetch_optimizer
     1049endef
     1050define configure_optimizer
     1051        $(MKDIR_P) $(optimizer)
     1052        cd $(optimizer); $(srcdir)/$(optimizer)/configure $(optimizer_flags)
     1053endef
     1054define build_optimizer
     1055        $(MAKE) -C $(optimizer) all
     1056endef
     1057define install_optimizer
     1058        $(MAKE) -C $(optimizer) install
     1059endef
     1060define touch_optimizer
     1061        touch $(optimizer)/timestamp
     1062endef
     1063
     1064$(optimizer)/timestamp: $(gui)/timestamp
     1065        + $(clean_optimizer)
     1066        + $(fetch_optimizer)
     1067        + $(configure_optimizer)
     1068        + $(build_optimizer)
     1069        + $(install_optimizer)
     1070        + $(touch_optimizer)
     1071
     1072# -------------------------------------------------------------------------
     1073#  OSG
     1074# -------------------------------------------------------------------------
     1075
     1076osg_flags =     \
     1077        --with-tclsh="$(bindir)/tclsh8.4" \
     1078        --enable-shared \
     1079        $(common_flags)
     1080
     1081osg: $(osg)/timestamp
     1082
     1083clean-osg:
     1084        $(clean_osg)
     1085fetch-osg:
     1086        $(fetch_osg)
     1087configure-osg:
     1088        $(configure_osg)
     1089build-osg:
     1090        $(build_osg)
     1091install-osg:
     1092        $(install_osg)
     1093touch-osg:
     1094        $(touch_osg)
     1095force-osg: $(gui)/timestamp
     1096        + $(clean_osg)
     1097        + $(fetch_osg)
     1098        + $(configure_osg)
     1099        + $(build_osg)
     1100        + $(install_osg)
     1101        + $(touch_osg)
     1102
     1103define clean_osg
     1104        $(RM) -r $(osg)
     1105endef
     1106define fetch_osg
     1107        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(osg)
     1108endef
     1109define configure_osg
     1110        $(MKDIR_P) $(osg)
     1111        cd $(osg); $(runtime)/$(osg)/configure $(osg_flags)
     1112endef
     1113define build_osg
     1114        $(MAKE) -C $(osg) all
     1115endef
     1116define install_osg
     1117        $(MAKE) -C $(osg) install
     1118endef
     1119define touch_osg
     1120        touch $(osg)/timestamp
     1121endef
     1122
     1123$(osg)/timestamp:
     1124        + $(clean_osg)
     1125        + $(fetch_osg)
     1126        + $(configure_osg)
     1127        + $(build_osg)
     1128        + $(install_osg)
     1129        + $(touch_osg)
     1130
     1131# -------------------------------------------------------------------------
     1132#  OSGEARTH
     1133# -------------------------------------------------------------------------
     1134
     1135osgearth_flags =        \
     1136        --with-tclsh="$(bindir)/tclsh8.4" \
     1137        --enable-shared \
     1138        $(common_flags)
     1139
     1140osgearth: $(osgearth)/timestamp
     1141
     1142clean-osgearth:
     1143        $(clean_osgearth)
     1144fetch-osgearth:
     1145        $(fetch_osgearth)
     1146configure-osgearth:
     1147        $(configure_osgearth)
     1148build-osgearth:
     1149        $(build_osgearth)
     1150install-osgearth:
     1151        $(install_osgearth)
     1152touch-osgearth:
     1153        $(touch_osgearth)
     1154force-osgearth: $(gui)/timestamp
     1155        + $(clean_osgearth)
     1156        + $(fetch_osgearth)
     1157        + $(configure_osgearth)
     1158        + $(build_osgearth)
     1159        + $(install_osgearth)
     1160        + $(touch_osgearth)
     1161
     1162define clean_osgearth
     1163        $(RM) -r $(osgearth)
     1164endef
     1165define fetch_osgearth
     1166        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(osgearth)
     1167endef
     1168define configure_osgearth
     1169        $(MKDIR_P) $(osgearth)
     1170        cd $(osgearth); $(runtime)/$(osgearth)/configure $(osgearth_flags)
     1171endef
     1172define build_osgearth
     1173        $(MAKE) -C $(osgearth) all
     1174endef
     1175define install_osgearth
     1176        $(MAKE) -C $(osgearth) install
     1177endef
     1178define touch_osgearth
     1179        touch $(osgearth)/timestamp
     1180endef
     1181
     1182$(osgearth)/timestamp: $(osg)/timestamp
     1183        + $(clean_osgearth)
     1184        + $(fetch_osgearth)
     1185        + $(configure_osgearth)
     1186        + $(build_osgearth)
     1187        + $(install_osgearth)
     1188        + $(touch_osgearth)
     1189
     1190# -------------------------------------------------------------------------
     1191#  PYMOL
     1192# -------------------------------------------------------------------------
     1193
     1194pymol_flags =   \
     1195        $(common_flags)
     1196
     1197pymol: $(pymol)/timestamp
     1198
     1199clean-pymol:
     1200        $(clean_pymol)
     1201fetch-pymol:
     1202        $(fetch_pymol)
     1203configure-pymol:
     1204        $(configure_pymol)
     1205build-pymol:
     1206        $(build_pymol)
     1207install-pymol:
     1208        $(install_pymol)
     1209touch-pymol:
     1210        $(touch_pymol)
     1211force-pymol: $(glew)/timestamp
     1212        + $(clean_pymol)
     1213        + $(fetch_pymol)
     1214        + $(configure_pymol)
     1215        + $(build_pymol)
     1216        + $(install_pymol)
     1217        + $(touch_pymol)
     1218
     1219define clean_pymol
     1220        $(RM) -r $(pymol)
     1221endef
     1222define fetch_pymol
     1223        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(pymol)
     1224endef
     1225define configure_pymol
     1226        $(MKDIR_P) $(pymol)
     1227        cd $(pymol); $(runtime)/$(pymol)/configure $(pymol_flags)
     1228endef
     1229define build_pymol
     1230        $(MAKE) -C $(pymol) all
     1231endef
     1232define install_pymol
     1233        $(MAKE) -C $(pymol) install
     1234endef
     1235define touch_pymol
     1236        touch $(pymol)/timestamp
     1237endef
     1238
     1239$(pymol)/timestamp: $(glew)/timestamp
     1240        + $(clean_pymol)
     1241        + $(fetch_pymol)
     1242        + $(configure_pymol)
     1243        + $(build_pymol)
     1244        + $(install_pymol)
     1245        + $(touch_pymol)
     1246
     1247
     1248# -------------------------------------------------------------------------
     1249#  PYMOLPROXY
     1250# -------------------------------------------------------------------------
     1251
     1252pymolproxy_flags =      \
     1253        --with-tcllib=$(libdir) \
     1254        --with-statsdir=$(statsdir) \
     1255        $(common_flags)
     1256
     1257pymolproxy: $(pymolproxy)/timestamp
     1258
     1259clean-pymolproxy:
     1260        $(clean_pymolproxy)
     1261fetch-pymolproxy:
     1262        $(fetch_pymolproxy)
     1263configure-pymolproxy:
     1264        $(configure_pymolproxy)
     1265build-pymolproxy:
     1266        $(build_pymolproxy)
     1267install-pymolproxy:
     1268        $(install_pymolproxy)
     1269touch-pymolproxy:
     1270        $(touch_pymolproxy)
     1271force-pymolproxy: $(pymol)/timestamp
     1272        + $(clean_pymolproxy)
     1273        + $(fetch_pymolproxy)
     1274        + $(configure_pymolproxy)
     1275        + $(build_pymolproxy)
     1276        + $(install_pymolproxy)
     1277        + $(touch_pymolproxy)
     1278
     1279define clean_pymolproxy
     1280        $(RM) -r $(pymolproxy)
     1281endef
     1282define fetch_pymolproxy
     1283endef
     1284define configure_pymolproxy
     1285        $(MKDIR_P) $(pymolproxy)
     1286        cd $(pymolproxy); $(srcdir)/packages/vizservers/$(pymolproxy)/configure $(pymolproxy_flags)
     1287endef
     1288define build_pymolproxy
     1289        $(MAKE) -C $(pymolproxy) all
     1290endef
     1291define install_pymolproxy
     1292        $(MAKE) -C $(pymolproxy) install
     1293endef
     1294define touch_pymolproxy
     1295        touch $(pymolproxy)/timestamp
     1296endef
     1297
     1298$(pymolproxy)/timestamp: $(pymol)/timestamp
     1299        + $(clean_pymolproxy)
     1300        + $(fetch_pymolproxy)
     1301        + $(configure_pymolproxy)
     1302        + $(build_pymolproxy)
     1303        + $(install_pymolproxy)
     1304        + $(touch_pymolproxy)
     1305
     1306# -------------------------------------------------------------------------
     1307#  SHAPE
     1308# -------------------------------------------------------------------------
     1309
     1310shape_flags =   \
     1311        --enable-shared \
     1312        --with-tclconf=$(libdir) \
     1313        --with-tkconf=$(libdir) \
     1314        $(common_flags)
     1315
     1316shape: $(shape)/timestamp
     1317
     1318clean-shape:
     1319        $(clean_shape)
     1320fetch-shape:
     1321        $(fetch_shape)
     1322configure-shape:
     1323        $(configure_shape)
     1324build-shape:
     1325        $(build_shape)
     1326install-shape:
     1327        $(install_shape)
     1328touch-shape:
     1329        $(touch_shape)
     1330force-shape: $(tk)/timestamp
     1331        + $(clean_shape)
     1332        + $(fetch_shape)
     1333        + $(configure_shape)
     1334        + $(build_shape)
     1335        + $(install_shape)
     1336        + $(touch_shape)
     1337
     1338define clean_shape
     1339        $(RM) -r $(shape)
     1340endef
     1341define fetch_shape
     1342        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(shape)
     1343endef
     1344define configure_shape
     1345        $(MKDIR_P) $(shape)
     1346        cd $(shape); $(runtime)/$(shape)/unix/configure $(shape_flags)
     1347endef
     1348define build_shape
     1349        $(MAKE) -C $(shape) all
     1350endef
     1351define install_shape
     1352        $(MAKE) -C $(shape) install
     1353endef
     1354define touch_shape
     1355        touch $(shape)/timestamp
     1356endef
     1357
     1358$(shape)/timestamp: $(tk)/timestamp
     1359        + $(clean_shape)
     1360        + $(fetch_shape)
     1361        + $(configure_shape)
     1362        + $(build_shape)
     1363        + $(install_shape)
     1364        + $(touch_shape)
     1365
     1366# -------------------------------------------------------------------------
     1367#  SQLITETCL
     1368# -------------------------------------------------------------------------
     1369
     1370sqlitetcl_flags = \
     1371        --enable-shared \
     1372        $(common_flags)
     1373
     1374sqlitetcl: $(sqlitetcl)/timestamp
     1375
     1376clean-sqlitetcl:
     1377        $(clean_sqlitetcl)
     1378fetch-sqlitetcl:
     1379        $(fetch_sqlitetcl)
     1380configure-sqlitetcl:
     1381        $(configure_sqlitetcl)
     1382build-sqlitetcl:
     1383        $(build_sqlitetcl)
     1384install-sqlitetcl:
     1385        $(install_sqlitetcl)
     1386touch-sqlitetcl:
     1387        $(touch_sqlitetcl)
     1388force-sqlitetcl: $(tcl)/timestamp
     1389        + $(clean_sqlitetcl)
     1390        + $(fetch_sqlitelcl)
     1391        + $(configure_sqlitetcl)
     1392        + $(build_sqlitetcl)
     1393        + $(install_sqlitetcl)
     1394        + $(touch_sqlitetcl)
     1395
     1396define clean_sqlitetcl
     1397        $(RM) -r $(sqlitetcl)
     1398endef
     1399define fetch_sqlitetcl
     1400        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(sqllitetcl)
     1401endef
     1402define configure_sqlitetcl
     1403        $(MKDIR_P) $(sqlitetcl)
     1404        cd $(sqlitetcl); $(runtime)/$(sqlitetcl)/configure $(sqlitetcl_flags)
     1405endef
     1406define build_sqlitetcl
     1407        $(MAKE) -C $(sqlitetcl) all
     1408endef
     1409define install_sqlitetcl
     1410        $(MAKE) -C $(sqlitetcl) install
     1411endef
     1412define touch_sqlitetcl
     1413        touch $(sqlitetcl)/timestamp
     1414endef
     1415
     1416$(sqlitetcl)/timestamp: $(tcl)/timestamp
     1417        + $(clean_sqlitetcl)
     1418        + $(fetch_sqlitelcl)
     1419        + $(configure_sqlitetcl)
     1420        + $(build_sqlitetcl)
     1421        + $(install_sqlitetcl)
     1422        + $(touch_sqlitetcl)
     1423
     1424# -------------------------------------------------------------------------
     1425#  TCL
     1426# -------------------------------------------------------------------------
     1427
     1428tcl_flags =     \
     1429        --enable-shared \
     1430        --disable-threads \
     1431        $(common_flags)
     1432
     1433tcl: $(tcl)/timestamp
     1434
     1435clean-tcl:
     1436        $(clean_tcl)
     1437fetch-tcl:
     1438        $(fetch_tcl)
     1439configure-tcl:
     1440        $(configure_tcl)
     1441build-tcl:
     1442        $(build_tcl)
     1443install-tcl:
     1444        $(install_tcl)
     1445touch-tcl:
     1446        $(touch_tcl)
     1447force-tcl:
     1448        + $(clean_tcl)
     1449        + $(fetch_tcl)
     1450        + $(configure_tcl)
     1451        + $(build_tcl)
     1452        + $(install_tcl)
     1453        + $(touch_tcl)
     1454
     1455define fetch_tcl
     1456        sh $(srcdir)/fetch.sh trunk $(srcdir) $(tcl)
     1457endef
     1458define clean_tcl
     1459        $(RM) -r $(tcl)
     1460endef
     1461define fetch_tcl
     1462        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tcl)
     1463endef
     1464define configure_tcl
     1465        $(MKDIR_P) $(tcl)
     1466        cd $(tcl); $(srcdir)/runtime/$(tcl)/unix/configure $(tcl_flags)
     1467endef
     1468define build_tcl
     1469        $(MAKE)  -C $(tcl) all
     1470endef
     1471define install_tcl
     1472        $(MAKE) -C $(tcl) install
     1473endef
     1474define touch_tcl
     1475        touch $(tcl)/timestamp
     1476endef
     1477
     1478$(tcl)/timestamp:
     1479        + $(clean_tcl)
     1480        + $(fetch_tcl)
     1481        + $(configure_tcl)
     1482        + $(build_tcl)
     1483        + $(install_tcl)
     1484        + $(touch_tcl)
     1485
     1486# -------------------------------------------------------------------------
     1487#  TCLLIB
     1488# -------------------------------------------------------------------------
     1489
     1490tcllib_flags =  \
     1491        --enable-shared \
     1492        $(common_flags)
     1493
     1494tcllib: $(tcllib)/timestamp
     1495
     1496clean-tcllib:
     1497        $(clean_tcllib)
     1498fetch-tcllib:
     1499        $(fetch_tcllib)
     1500configure-tcllib:
     1501        $(configure_tcllib)
     1502build-tcllib:
     1503        $(build_tcllib)
     1504install-tcllib:
     1505        $(install_tcllib)
     1506touch-tcllib:
     1507        $(touch_tcllib)
     1508force-tcllib: $(tcl)/timestamp
     1509        + $(clean_tcllib)
     1510        + $(fetch_tcllib)
     1511        + $(configure_tcllib)
     1512        + $(build_tcllib)
     1513        + $(install_tcllib)
     1514        + $(touch_tcllib)
     1515
     1516define clean_tcllib
     1517        $(RM) -r $(tcllib)
     1518endef
     1519define fetch_tcllib
     1520        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tcllib)
     1521endef
     1522define configure_tcllib
     1523        $(MKDIR_P) $(tcllib)
     1524        cd $(tcllib); $(runtime)/$(tcllib)/configure $(tcllib_flags)
     1525endef
     1526define build_tcllib
     1527        $(MAKE) -C $(tcllib) all
     1528endef
     1529define install_tcllib
     1530        $(MAKE) -C $(tcllib) install
     1531endef
     1532define touch_tcllib
     1533        touch $(tcllib)/timestamp
     1534endef
     1535
     1536$(tcllib)/timestamp: $(tcl)/timestamp
     1537        + $(clean_tcllib)
     1538        + $(fetch_tcllib)
     1539        + $(configure_tcllib)
     1540        + $(build_tcllib)
     1541        + $(install_tcllib)
     1542        + $(touch_tcllib)
     1543
     1544# -------------------------------------------------------------------------
     1545#  TDOM
     1546# -------------------------------------------------------------------------
     1547
     1548tdom_flags =    \
     1549        --enable-shared \
     1550        $(common_flags)
     1551
     1552tdom: $(tdom)/timestamp
     1553
     1554clean-tdom:
     1555        $(clean_tdom)
     1556fetch-tdom:
     1557        $(fetch_tdom)
     1558configure-tdom:
     1559        $(configure_tdom)
     1560build-tdom:
     1561        $(build_tdom)
     1562install-tdom:
     1563        $(install_tdom)
     1564touch-tdom:
     1565        $(touch_tdom)
     1566force-tdom: $(tcl)/timestamp
     1567        + $(clean_tdom)
     1568        + $(fetch_tdom)
     1569        + $(configure_tdom)
     1570        + $(build_tdom)
     1571        + $(install_tdom)
     1572        + $(touch_tdom)
     1573
     1574define clean_tdom
     1575        $(RM) -r $(tdom)
     1576endef
     1577define fetch_tdom
     1578        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tdom)
     1579endef
     1580define configure_tdom
     1581        $(MKDIR_P) $(tdom)
     1582        cd $(tdom); $(runtime)/$(tdom)/configure $(tdom_flags)
     1583endef
     1584define build_tdom
     1585        $(MAKE) -C $(tdom) all
     1586endef
     1587define install_tdom
     1588        $(MAKE) -C $(tdom) install
     1589endef
     1590define touch_tdom
     1591        touch $(tdom)/timestamp
     1592endef
     1593
     1594$(tdom)/timestamp: $(tcl)/timestamp
     1595        + $(clean_tdom)
     1596        + $(fetch_tdom)
     1597        + $(configure_tdom)
     1598        + $(build_tdom)
     1599        + $(install_tdom)
     1600        + $(touch_tdom)
     1601
     1602# -------------------------------------------------------------------------
     1603#  TESTER
     1604# -------------------------------------------------------------------------
     1605
     1606tester_flags =  \
     1607        --with-tclsh="$(bindir)/tclsh8.4" \
     1608        --enable-shared \
     1609        $(common_flags)
     1610
     1611tester: $(tester)/timestamp
     1612
     1613clean-tester:
     1614        $(clean_tester)
     1615fetch-tester:
     1616        $(fetch_tester)
     1617configure-tester:
     1618        $(configure_tester)
     1619build-tester:
     1620        $(build_tester)
     1621install-tester:
     1622        $(install_tester)
     1623touch-tester:
     1624        $(touch_tester)
     1625force-tester: $(gui)/timestamp
     1626        + $(clean_tester)
     1627        + $(fetch_tester)
     1628        + $(configure_tester)
     1629        + $(build_tester)
     1630        + $(install_tester)
     1631        + $(touch_tester)
     1632
     1633define clean_tester
     1634        $(MAKE) -C $(tester) clean
     1635endef
     1636define fetch_tester
     1637endef
     1638define configure_tester
     1639        $(MKDIR_P) $(tester)
     1640endef
     1641define build_tester
     1642        $(MAKE) -C $(tester) all
     1643endef
     1644define install_tester
     1645        $(MAKE) -C $(tester) install
     1646endef
     1647define touch_tester
     1648        touch $(tester)/timestamp
     1649endef
     1650
     1651$(tester)/timestamp: $(gui)/timestamp
     1652        + $(clean_tester)
     1653        + $(fetch_tester)
     1654        + $(configure_tester)
     1655        + $(build_tester)
     1656        + $(install_tester)
     1657        + $(touch_tester)
     1658
     1659# -------------------------------------------------------------------------
     1660#  TK
     1661# -------------------------------------------------------------------------
     1662
     1663tk_flags =      \
     1664        --enable-shared \
     1665        --disable-threads \
     1666        $(common_flags)
     1667
     1668tk: $(tk)/timestamp
     1669
     1670clean-tk:
     1671        $(clean_tk)
     1672fetch-tk:
     1673        $(fetch_tk)
     1674configure-tk:
     1675        $(configure_tk)
     1676build-tk:
     1677        $(build_tk)
     1678install-tk:
     1679        $(install_tk)
     1680touch-tk:
     1681        $(touch_tk)
     1682force-tk: $(tcl)/timestamp
     1683        + $(clean_tk)
     1684        + $(fetch_tk)
     1685        + $(configure_tk)
     1686        + $(build_tk)
     1687        + $(install_tk)
     1688        + $(touch_tk)
     1689
     1690define clean_tk
     1691        $(RM) -r $(tk)
     1692endef
     1693define fetch_tk
     1694        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tk)
     1695endef
     1696define configure_tk
     1697        $(MKDIR_P) $(tk)
     1698        cd $(tk); $(runtime)/$(tk)/unix/configure $(tk_flags)
     1699endef
     1700define build_tk
     1701        $(MAKE)  -C $(tk) all
     1702endef
     1703define install_tk
     1704        $(MAKE) -C $(tk) install
     1705endef
     1706define touch_tk
     1707        touch $(tk)/timestamp
     1708endef
     1709
     1710$(tk)/timestamp: $(tcl)/timestamp
     1711        + $(clean_tk)
     1712        + $(fetch_tk)
     1713        + $(configure_tk)
     1714        + $(build_tk)
     1715        + $(install_tk)
     1716        + $(touch_tk)
     1717
     1718# -------------------------------------------------------------------------
     1719#  TKING
     1720# -------------------------------------------------------------------------
     1721
     1722tkimg_flags =   \
     1723        --enable-shared \
     1724        $(common_flags)
     1725
     1726tkimg: $(tkimg)/timestamp
     1727
     1728clean-tkimg:
     1729        $(clean_tkimg)
     1730fetch-tkimg:
     1731        $(fetch_tkimg)
     1732configure-tkimg:
     1733        $(configure_tkimg)
     1734build-tkimg:
     1735        $(build_tkimg)
     1736install-tkimg:
     1737        $(install_tkimg)
     1738touch-tkimg:
     1739        $(touch_tkimg)
     1740force-tkimg: $(tk)/timestamp
     1741        + $(clean_tkimg)
     1742        + $(fetch_tkimg)
     1743        + $(configure_tkimg)
     1744        + $(build_tkimg)
     1745        + $(install_tkimg)
     1746        + $(touch_tkimg)
     1747
     1748define clean_tkimg
     1749        $(RM) -r $(tkimg)
     1750endef
     1751define fetch_tkimg
     1752        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tkimg)
     1753endef
     1754define configure_tkimg
     1755        $(MKDIR_P) $(tkimg)
     1756        cd $(tkimg); $(runtime)/$(tkimg)/configure $(tkimg_flags)
     1757endef
     1758define build_tkimg
     1759        $(MAKE) -C $(tkimg) all
     1760endef
     1761define install_tkimg
     1762        $(MAKE) -C $(tkimg) install
     1763endef
     1764define touch_tkimg
     1765        touch $(tkimg)/timestamp
     1766endef
     1767
     1768$(tkimg)/timestamp: $(tk)/timestamp
     1769        + $(clean_tkimg)
     1770        + $(fetch_tkimg)
     1771        + $(configure_tkimg)
     1772        + $(build_tkimg)
     1773        + $(install_tkimg)
     1774        + $(touch_tkimg)
     1775
     1776# -------------------------------------------------------------------------
     1777#  TLS
     1778# -------------------------------------------------------------------------
     1779
     1780tls_flags =     \
     1781        --enable-shared \
     1782        $(common_flags)
     1783
     1784tls: $(tls)/timestamp
     1785
     1786clean-tls:
     1787        $(clean_tls)
     1788fetch-tls:
     1789        $(fetch_tls)
     1790configure-tls:
     1791        $(configure_tls)
     1792build-tls:
     1793        $(build_tls)
     1794install-tls:
     1795        $(install_tls)
     1796touch-tls:
     1797        $(touch_tls)
     1798force-tls: $(tcl)/timestamp
     1799        + $(clean_tls)
     1800        + $(fetch_tls)
     1801        + $(configure_tls)
     1802        + $(build_tls)
     1803        + $(install_tls)
     1804        + $(touch_tls)
     1805
     1806define clean_tls
     1807        $(RM) -r $(tls)
     1808endef
     1809define fetch_tls
     1810        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tkimg)
     1811endef
     1812define configure_tls
     1813        $(MKDIR_P) $(tls)
     1814        cd $(tls); $(runtime)/$(tls)/configure $(tls_flags)
     1815endef
     1816define build_tls
     1817        $(MAKE) -C $(tls) all
     1818endef
     1819define install_tls
     1820        $(MAKE) -C $(tls) install
     1821endef
     1822define touch_tls
     1823        touch $(tls)/timestamp
     1824endef
     1825
     1826$(tls)/timestamp: $(tcl)/timestamp
     1827        + $(clean_tls)
     1828        + $(fetch_tls)
     1829        + $(configure_tls)
     1830        + $(build_tls)
     1831        + $(install_tls)
     1832        + $(touch_tls)
     1833
     1834# -------------------------------------------------------------------------
     1835#  VIDEO
     1836# -------------------------------------------------------------------------
     1837
     1838video_flags =   \
     1839        --with-tclsh="$(bindir)/tclsh8.4" \
     1840        --enable-shared \
     1841        $(common_flags)
     1842
     1843video: $(video)/timestamp
     1844
     1845clean-video:
     1846        $(clean_video)
     1847fetch-video:
     1848        $(fetch_video)
     1849configure-video:
     1850        $(configure_video)
     1851build-video:
     1852        $(build_video)
     1853install-video:
     1854        $(install_video)
     1855touch-video:
     1856        $(touch_video)
     1857force-video: $(gui)/timestamp
     1858        + $(clean_video)
     1859        + $(fetch_video)
     1860        + $(configure_video)
     1861        + $(build_video)
     1862        + $(install_video)
     1863        + $(touch_video)
     1864
     1865define clean_video
     1866        $(RM) -r $(video)
     1867endef
     1868define fetch_video
     1869endef
     1870define configure_video
     1871        $(MKDIR_P) $(video)
     1872        cd $(video); $(srcdir)/$(video)/configure $(video_flags)
     1873endef
     1874define build_video
     1875        $(MAKE) -C $(video) all
     1876endef
     1877define install_video
     1878        $(MAKE) -C $(video) install
     1879endef
     1880define touch_video
     1881        touch $(video)/timestamp
     1882endef
     1883
     1884$(video)/timestamp: $(gui)/timestamp
     1885        + $(clean_video)
     1886        + $(fetch_video)
     1887        + $(configure_video)
     1888        + $(build_video)
     1889        + $(install_video)
     1890        + $(touch_video)
     1891
     1892
     1893# -------------------------------------------------------------------------
     1894#  VORONOI
     1895# -------------------------------------------------------------------------
     1896
     1897voronoi_flags = \
     1898        --enable-shared \
     1899        $(common_flags)
     1900
     1901voronoi: $(voronoi)/timestamp
     1902
     1903clean-voronoi:
     1904        $(clean_voronoi)
     1905fetch-voronoi:
     1906        $(fetch_voronoi)
     1907configure-voronoi:
     1908        $(configure_voronoi)
     1909build-voronoi:
     1910        $(build_voronoi)
     1911install-voronoi:
     1912        $(install_voronoi)
     1913touch-voronoi:
     1914        $(touch_voronoi)
     1915force-voronoi:
     1916        + $(clean_voronoi)
     1917        + $(fetch_voronoi)
     1918        + $(configure_voronoi)
     1919        + $(build_voronoi)
     1920        + $(install_voronoi)
     1921        + $(touch_voronoi)
     1922
     1923define clean_voronoi
     1924        $(RM) -r $(voronoi)
     1925endef
     1926define fetch_voronoi
     1927        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(voronoi)
     1928endef
     1929define configure_voronoi
     1930        $(MKDIR_P) $(voronoi)
     1931        cd $(voronoi); $(runtime)/$(voronoi)/configure $(voronoi_flags)
     1932endef
     1933define build_voronoi
     1934        $(MAKE)  -C $(voronoi) all
     1935endef
     1936define install_voronoi
     1937        $(MAKE) -C $(voronoi) install
     1938endef
     1939define touch_voronoi
     1940        touch $(voronoi)/timestamp
     1941endef
     1942
     1943$(voronoi)/timestamp:
     1944        + $(clean_voronoi)
     1945        + $(fetch_voronoi)
     1946        + $(configure_voronoi)
     1947        + $(build_voronoi)
     1948        + $(install_voronoi)
     1949        + $(touch_voronoi)
     1950
     1951# -------------------------------------------------------------------------
     1952#  VTK
     1953# -------------------------------------------------------------------------
     1954
     1955vtk_flags =     \
     1956        $(common_flags)
     1957
     1958vtk: $(vtk)/timestamp
     1959
     1960clean-vtk:
     1961        $(clean_vtk)
     1962fetch-vtk:
     1963        $(fetch_vtk)
     1964configure-vtk:
     1965        $(configure_vtk)
     1966build-vtk:
     1967        $(build_vtk)
     1968install-vtk:
     1969        $(install_vtk)
     1970touch-vtk:
     1971        $(touch_vtk)
     1972force-vtk: $(cmake)/timestamp $(glew)/timestamp $(tk)/timestamp
     1973        + $(clean_vtk)
     1974        + $(fetch_vtk)
     1975        + $(configure_vtk)
     1976        + $(build_vtk)
     1977        + $(install_vtk)
     1978        + $(touch_vtk)
     1979
     1980define clean_vtk
     1981        $(RM) -r $(vtk)
     1982endef
     1983define fetch_vtk
     1984        sh $(srcdir)/fetch.sh $(TAG) $(srcdir) $(vtk)
     1985endef
     1986define configure_vtk
     1987        $(MKDIR_P) $(vtk)
     1988        cd $(vtk); $(runtime)/$(vtk)/configure $(vtk_flags)
     1989endef
     1990define build_vtk
     1991        $(MAKE)  -C $(vtk) all
     1992endef
     1993define install_vtk
     1994        $(MAKE) -C $(vtk) install
     1995endef
     1996define touch_vtk
     1997        touch $(vtk)/timestamp
     1998endef
     1999
     2000$(vtk)/timestamp: $(cmake)/timestamp $(glew)/timestamp $(tk)/timestamp
     2001        + $(clean_vtk)
     2002        + $(fetch_vtk)
     2003        + $(configure_vtk)
     2004        + $(build_vtk)
     2005        + $(install_vtk)
     2006        + $(touch_vtk)
     2007
     2008# -------------------------------------------------------------------------
     2009#  VTKVIS
     2010# -------------------------------------------------------------------------
     2011
     2012vtkvis_flags =  \
     2013        --with-tcllib=$(libdir) \
     2014        --with-rappture=$(libdir) \
     2015        --with-vtk="6.0" \
     2016        --with-vtk-includes=$(incdir) \
     2017        --with-vtk-libs=$(libdir) \
     2018        --with-statsdir=$(statsdir) \
     2019        $(common_flags)
     2020
     2021vtkvis: $(vtkvis)/timestamp
     2022
     2023clean-vtkvis:
     2024        $(clean_vtkvis)
     2025fetch-vtkvis:
     2026        $(fetch_vtkvis)
     2027configure-vtkvis:
     2028        $(configure_vtkvis)
     2029build-vtkvis:
     2030        $(build_vtkvis)
     2031install-vtkvis:
     2032        $(install_vtkvis)
     2033touch-vtkvis:
     2034        $(touch_vtkvis)
     2035force-vtkvis: $(vtk)/timestamp
     2036        + $(clean_vtkvis)
     2037        + $(fetch_vtkvis)
     2038        + $(configure_vtkvis)
     2039        + $(build_vtkvis)
     2040        + $(install_vtkvis)
     2041        + $(touch_vtkvis)
     2042
     2043define clean_vtkvis
     2044        $(RM) -r $(vtkvis)
     2045endef
     2046define fetch_vtkvis
     2047endef
     2048define configure_vtkvis
     2049        $(MKDIR_P) $(vtkvis)
     2050        cd $(vtkvis); $(srcdir)/packages/vizservers/$(vtkvis)/configure $(vtkvis_flags)
     2051endef
     2052define build_vtkvis
     2053        $(MAKE) -C $(vtkvis) all
     2054endef
     2055define install_vtkvis
     2056        $(MAKE) -C $(vtkvis) install
     2057endef
     2058define touch_vtkvis
     2059        touch $(vtkvis)/timestamp
     2060endef
     2061
     2062$(vtkvis)/timestamp: $(vtk)/timestamp
     2063        + $(clean_vtkvis)
     2064        + $(fetch_vtkvis)
     2065        + $(configure_vtkvis)
     2066        + $(build_vtkvis)
     2067        + $(install_vtkvis)
     2068        + $(touch_vtkvis)
     2069
     2070# -------------------------------------------------------------------------
     2071#  GEOVIS
     2072# -------------------------------------------------------------------------
     2073
     2074geovis_flags =  \
     2075        --with-tcllib=$(libdir) \
     2076        --with-rappture=$(libdir) \
     2077        --with-vtk="6.0" \
     2078        --with-vtk-includes=$(incdir) \
     2079        --with-vtk-libs=$(libdir) \
     2080        --with-statsdir=$(statsdir) \
     2081        $(common_flags)
     2082
     2083geovis: $(geovis)/timestamp
     2084
     2085clean-geovis:
     2086        $(clean_geovis)
     2087fetch-geovis:
     2088        $(fetch_geovis)
     2089configure-geovis:
     2090        $(configure_geovis)
     2091build-geovis:
     2092        $(build_geovis)
     2093install-geovis:
     2094        $(install_geovis)
     2095touch-geovis:
     2096        $(touch_geovis)
     2097force-geovis: $(vtk)/timestamp
     2098        + $(clean_geovis)
     2099        + $(fetch_geovis)
     2100        + $(configure_geovis)
     2101        + $(build_geovis)
     2102        + $(install_geovis)
     2103        + $(touch_geovis)
     2104
     2105define clean_geovis
     2106        $(RM) -r $(geovis)
     2107endef
     2108define fetch_geovis
     2109endef
     2110define configure_geovis
     2111        $(MKDIR_P) $(geovis)
     2112        cd $(geovis); $(srcdir)/packages/vizservers/$(geovis)/configure $(geovis_flags)
     2113endef
     2114define build_geovis
     2115        $(MAKE) -C $(geovis) all
     2116endef
     2117define install_geovis
     2118        $(MAKE) -C $(geovis) install
     2119endef
     2120define touch_geovis
     2121        touch $(geovis)/timestamp
     2122endef
     2123
     2124$(geovis)/timestamp: $(osgearth)/timestamp
     2125        + $(clean_geovis)
     2126        + $(fetch_geovis)
     2127        + $(configure_geovis)
     2128        + $(build_geovis)
     2129        + $(install_geovis)
     2130        + $(touch_geovis)
     2131
     2132# -------------------------------------------------------------------------
     2133#  ZLIB
     2134# -------------------------------------------------------------------------
     2135
     2136zlib_flags =    \
     2137        --enable-shared \
     2138        $(common_flags)
     2139
     2140zlib: $(zlib)/timestamp
     2141
     2142clean-zlib:
     2143        $(clean_zlib)
     2144fetch-zlib:
     2145        $(fetch_zlib)
     2146configure-zlib:
     2147        $(configure_zlib)
     2148build-zlib:
     2149        $(build_zlib)
     2150install-zlib:
     2151        $(install_zlib)
     2152touch-zlib:
     2153        $(touch_zlib)
     2154force-zlib:
     2155        + $(clean_zlib)
     2156        + $(fetch_zlib)
     2157        + $(configure_zlib)
     2158        + $(build_zlib)
     2159        + $(install_zlib)
     2160        + $(touch_zlib)
     2161
     2162define clean_zlib
     2163        $(RM) -r $(zlib)
     2164endef
     2165define fetch_zlib
     2166        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(zlib)
     2167endef
     2168define configure_zlib
     2169        $(MKDIR_P) $(zlib)
     2170        cd $(zlib); $(runtime)/$(zlib)/configure $(zlib_flags)
     2171endef
     2172define build_zlib
     2173        $(MAKE) -C $(zlib) all
     2174endef
     2175define install_zlib
     2176        $(MAKE) -C $(zlib) install
     2177endef
     2178define touch_zlib
     2179        touch $(zlib)/timestamp
     2180endef
     2181
     2182$(zlib)/timestamp:
     2183        + $(clean_zlib)
     2184        + $(fetch_zlib)
     2185        + $(configure_zlib)
     2186        + $(build_zlib)
     2187        + $(install_zlib)
     2188        + $(touch_zlib)
  • branches/r9/builder/scripts/Makefile.in

    r3471 r4840  
    1313INSTALL         = @INSTALL@
    1414MKDIR_P         = @MKDIR_P@
    15 TCLSH           = @TCLSH@
     15TCL_VERSION     = @TCL_VERSION@
     16TCLSH           = $(bindir)/tclsh$(TCL_VERSION)
    1617VPATH           = $(srcdir)
    1718PACKAGE_VERSION = @PACKAGE_VERSION@
  • branches/r9/configure

    r4213 r4840  
    626626LIBOBJS
    627627subdirs
     628WORDSIZE
     629X_LIBRARIES
     630X_INCLUDES
     631STATSDIR
    628632VTK_VERSION
    629633VTK_TCL_DIR
     
    726730MEX
    727731MATLAB
    728 TCLSH
    729732INSTALL_STUB_LIB
    730733INSTALL_LIB
     
    751754AR
    752755CXXCPP
     756XMKMF
    753757EGREP
    754758GREP
     
    815819ac_user_opts='
    816820enable_option_checking
     821with_x
    817822with_install
     823with_statsdir
    818824enable_64bit
    819825enable_64bit_vis
     
    823829enable_gui
    824830with_ffmpeg
    825 with_tclsh
    826831with_vtk
    827832enable_vtkdicom
     
    853858FFLAGS
    854859CPP
     860XMKMF
    855861CXXCPP'
    856862ac_subdirs_all='packages/optimizer/src '
     
    14511457  cat <<\_ACEOF
    14521458
     1459X features:
     1460  --x-includes=DIR    X include files are in DIR
     1461  --x-libraries=DIR   X library files are in DIR
     1462
    14531463System types:
    14541464  --build=BUILD     configure for building on BUILD [guessed]
     
    14811491  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    14821492  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     1493  --with-x                use the X Window System
    14831494  --with-install=DIR      location of installation [default=yes]
     1495  --with-statsdir=DIR     Write statistics in DIR
    14841496  --with-ffmpeg=DIR       location of ffmpeg [default=yes]
    1485   --with-tclsh=DIR        location of tclsh [default=yes]
    14861497  --with-vtk=version      VTK library version [default=6.1]
    14871498  --with-matlab=DIR       location of matlab and mex compiler [default=yes]
     
    15111522  FFLAGS      Fortran 77 compiler flags
    15121523  CPP         C preprocessor
     1524  XMKMF       Path to xmkmf, Makefile generator for X Window System
    15131525  CXXCPP      C++ preprocessor
    15141526
     
    18991911} # ac_fn_c_check_func
    19001912
     1913# ac_fn_cxx_try_cpp LINENO
     1914# ------------------------
     1915# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
     1916ac_fn_cxx_try_cpp ()
     1917{
     1918  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1919  if { { ac_try="$ac_cpp conftest.$ac_ext"
     1920case "(($ac_try" in
     1921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1922  *) ac_try_echo=$ac_try;;
     1923esac
     1924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1925$as_echo "$ac_try_echo"; } >&5
     1926  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
     1927  ac_status=$?
     1928  if test -s conftest.err; then
     1929    grep -v '^ *+' conftest.err >conftest.er1
     1930    cat conftest.er1 >&5
     1931    mv -f conftest.er1 conftest.err
     1932  fi
     1933  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1934  test $ac_status = 0; } > conftest.i && {
     1935         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     1936         test ! -s conftest.err
     1937       }; then :
     1938  ac_retval=0
     1939else
     1940  $as_echo "$as_me: failed program was:" >&5
     1941sed 's/^/| /' conftest.$ac_ext >&5
     1942
     1943    ac_retval=1
     1944fi
     1945  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1946  as_fn_set_status $ac_retval
     1947
     1948} # ac_fn_cxx_try_cpp
     1949
    19011950# ac_fn_cxx_try_link LINENO
    19021951# -------------------------
     
    20112060
    20122061} # ac_fn_cxx_check_func
    2013 
    2014 # ac_fn_cxx_try_cpp LINENO
    2015 # ------------------------
    2016 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
    2017 ac_fn_cxx_try_cpp ()
    2018 {
    2019   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    2020   if { { ac_try="$ac_cpp conftest.$ac_ext"
    2021 case "(($ac_try" in
    2022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2023   *) ac_try_echo=$ac_try;;
    2024 esac
    2025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    2026 $as_echo "$ac_try_echo"; } >&5
    2027   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
    2028   ac_status=$?
    2029   if test -s conftest.err; then
    2030     grep -v '^ *+' conftest.err >conftest.er1
    2031     cat conftest.er1 >&5
    2032     mv -f conftest.er1 conftest.err
    2033   fi
    2034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    2035   test $ac_status = 0; } > conftest.i && {
    2036          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
    2037          test ! -s conftest.err
    2038        }; then :
    2039   ac_retval=0
    2040 else
    2041   $as_echo "$as_me: failed program was:" >&5
    2042 sed 's/^/| /' conftest.$ac_ext >&5
    2043 
    2044     ac_retval=1
    2045 fi
    2046   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    2047   as_fn_set_status $ac_retval
    2048 
    2049 } # ac_fn_cxx_try_cpp
    20502062
    20512063# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
     
    27902802fi
    27912803
    2792 
    2793 # Check whether --with-install was given.
    2794 if test "${with_install+set}" = set; then :
    2795   withval=$with_install;
    2796 else
    2797   with_install=yes
    2798 fi
    2799 
    2800 
    2801 if test "$with_install" != "yes"; then
    2802     INSTALL_PREFIX=$with_install
    2803 else
    2804     INSTALL_PREFIX=$prefix
    2805 fi
    2806 
    2807 
    2808 if test "${libdir}" != "${prefix}/lib"; then
    2809     LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}"
    2810 else
    2811     LIB_SEARCH_DIRS="-L${libdir}"
    2812 fi
    2813 
    2814 
    28152804# Find a good install program.  We prefer a C program (faster),
    28162805# so one script is as good as another.  But avoid the broken or
     
    47474736
    47484737
    4749 
    4750 for ac_func in sysinfo
    4751 do :
    4752   ac_fn_cxx_check_func "$LINENO" "sysinfo" "ac_cv_func_sysinfo"
    4753 if test "x$ac_cv_func_sysinfo" = xyes; then :
    4754   cat >>confdefs.h <<_ACEOF
    4755 #define HAVE_SYSINFO 1
    4756 _ACEOF
    4757 
    4758 fi
    4759 done
    4760 
    4761 for ac_func in gettimeofday
    4762 do :
    4763   ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
    4764 if test "x$ac_cv_func_gettimeofday" = xyes; then :
    4765   cat >>confdefs.h <<_ACEOF
    4766 #define HAVE_GETTIMEOFDAY 1
    4767 _ACEOF
    4768 
    4769 fi
    4770 done
    4771 
    4772 ac_fn_cxx_check_func "$LINENO" "localtime" "ac_cv_func_localtime"
    4773 if test "x$ac_cv_func_localtime" = xyes; then :
    4774 
    4775 else
    4776   as_fn_error $? "oops! no localtime ?!?" "$LINENO" 5
    4777 fi
    4778 
    4779 ac_fn_cxx_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
    4780 if test "x$ac_cv_func_getenv" = xyes; then :
    4781 
    4782 else
    4783   as_fn_error $? "oops! no getenv ?!?" "$LINENO" 5
    4784 fi
    4785 
    4786 
    47874738ac_ext=cpp
    47884739ac_cpp='$CXXCPP $CPPFLAGS'
     
    49174868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    49184869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     4870
     4871
     4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
     4873$as_echo_n "checking for X... " >&6; }
     4874
     4875
     4876# Check whether --with-x was given.
     4877if test "${with_x+set}" = set; then :
     4878  withval=$with_x;
     4879fi
     4880
     4881# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
     4882if test "x$with_x" = xno; then
     4883  # The user explicitly disabled X.
     4884  have_x=disabled
     4885else
     4886  case $x_includes,$x_libraries in #(
     4887    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
     4888    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
     4889  $as_echo_n "(cached) " >&6
     4890else
     4891  # One or both of the vars are not set, and there is no cached value.
     4892ac_x_includes=no ac_x_libraries=no
     4893rm -f -r conftest.dir
     4894if mkdir conftest.dir; then
     4895  cd conftest.dir
     4896  cat >Imakefile <<'_ACEOF'
     4897incroot:
     4898        @echo incroot='${INCROOT}'
     4899usrlibdir:
     4900        @echo usrlibdir='${USRLIBDIR}'
     4901libdir:
     4902        @echo libdir='${LIBDIR}'
     4903_ACEOF
     4904  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
     4905    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
     4906    for ac_var in incroot usrlibdir libdir; do
     4907      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
     4908    done
     4909    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
     4910    for ac_extension in a so sl dylib la dll; do
     4911      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
     4912         test -f "$ac_im_libdir/libX11.$ac_extension"; then
     4913        ac_im_usrlibdir=$ac_im_libdir; break
     4914      fi
     4915    done
     4916    # Screen out bogus values from the imake configuration.  They are
     4917    # bogus both because they are the default anyway, and because
     4918    # using them would break gcc on systems where it needs fixed includes.
     4919    case $ac_im_incroot in
     4920        /usr/include) ac_x_includes= ;;
     4921        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
     4922    esac
     4923    case $ac_im_usrlibdir in
     4924        /usr/lib | /usr/lib64 | /lib | /lib64) ;;
     4925        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
     4926    esac
     4927  fi
     4928  cd ..
     4929  rm -f -r conftest.dir
     4930fi
     4931
     4932# Standard set of common directories for X headers.
     4933# Check X11 before X11Rn because it is often a symlink to the current release.
     4934ac_x_header_dirs='
     4935/usr/X11/include
     4936/usr/X11R7/include
     4937/usr/X11R6/include
     4938/usr/X11R5/include
     4939/usr/X11R4/include
     4940
     4941/usr/include/X11
     4942/usr/include/X11R7
     4943/usr/include/X11R6
     4944/usr/include/X11R5
     4945/usr/include/X11R4
     4946
     4947/usr/local/X11/include
     4948/usr/local/X11R7/include
     4949/usr/local/X11R6/include
     4950/usr/local/X11R5/include
     4951/usr/local/X11R4/include
     4952
     4953/usr/local/include/X11
     4954/usr/local/include/X11R7
     4955/usr/local/include/X11R6
     4956/usr/local/include/X11R5
     4957/usr/local/include/X11R4
     4958
     4959/usr/X386/include
     4960/usr/x386/include
     4961/usr/XFree86/include/X11
     4962
     4963/usr/include
     4964/usr/local/include
     4965/usr/unsupported/include
     4966/usr/athena/include
     4967/usr/local/x11r5/include
     4968/usr/lpp/Xamples/include
     4969
     4970/usr/openwin/include
     4971/usr/openwin/share/include'
     4972
     4973if test "$ac_x_includes" = no; then
     4974  # Guess where to find include files, by looking for Xlib.h.
     4975  # First, try using that file with no special directory specified.
     4976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4977/* end confdefs.h.  */
     4978#include <X11/Xlib.h>
     4979_ACEOF
     4980if ac_fn_cxx_try_cpp "$LINENO"; then :
     4981  # We can compile using X headers with no special include directory.
     4982ac_x_includes=
     4983else
     4984  for ac_dir in $ac_x_header_dirs; do
     4985  if test -r "$ac_dir/X11/Xlib.h"; then
     4986    ac_x_includes=$ac_dir
     4987    break
     4988  fi
     4989done
     4990fi
     4991rm -f conftest.err conftest.i conftest.$ac_ext
     4992fi # $ac_x_includes = no
     4993
     4994if test "$ac_x_libraries" = no; then
     4995  # Check for the libraries.
     4996  # See if we find them without any special options.
     4997  # Don't add to $LIBS permanently.
     4998  ac_save_LIBS=$LIBS
     4999  LIBS="-lX11 $LIBS"
     5000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5001/* end confdefs.h.  */
     5002#include <X11/Xlib.h>
     5003int
     5004main ()
     5005{
     5006XrmInitialize ()
     5007  ;
     5008  return 0;
     5009}
     5010_ACEOF
     5011if ac_fn_cxx_try_link "$LINENO"; then :
     5012  LIBS=$ac_save_LIBS
     5013# We can link X programs with no special library path.
     5014ac_x_libraries=
     5015else
     5016  LIBS=$ac_save_LIBS
     5017for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
     5018do
     5019  # Don't even attempt the hair of trying to link an X program!
     5020  for ac_extension in a so sl dylib la dll; do
     5021    if test -r "$ac_dir/libX11.$ac_extension"; then
     5022      ac_x_libraries=$ac_dir
     5023      break 2
     5024    fi
     5025  done
     5026done
     5027fi
     5028rm -f core conftest.err conftest.$ac_objext \
     5029    conftest$ac_exeext conftest.$ac_ext
     5030fi # $ac_x_libraries = no
     5031
     5032case $ac_x_includes,$ac_x_libraries in #(
     5033  no,* | *,no | *\'*)
     5034    # Didn't find X, or a directory has "'" in its name.
     5035    ac_cv_have_x="have_x=no";; #(
     5036  *)
     5037    # Record where we found X for the cache.
     5038    ac_cv_have_x="have_x=yes\
     5039        ac_x_includes='$ac_x_includes'\
     5040        ac_x_libraries='$ac_x_libraries'"
     5041esac
     5042fi
     5043;; #(
     5044    *) have_x=yes;;
     5045  esac
     5046  eval "$ac_cv_have_x"
     5047fi # $with_x != no
     5048
     5049if test "$have_x" != yes; then
     5050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
     5051$as_echo "$have_x" >&6; }
     5052  no_x=yes
     5053else
     5054  # If each of the values was on the command line, it overrides each guess.
     5055  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
     5056  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
     5057  # Update the cache value to reflect the command line values.
     5058  ac_cv_have_x="have_x=yes\
     5059        ac_x_includes='$x_includes'\
     5060        ac_x_libraries='$x_libraries'"
     5061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
     5062$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
     5063fi
     5064
     5065
     5066
     5067# Check whether --with-install was given.
     5068if test "${with_install+set}" = set; then :
     5069  withval=$with_install;
     5070else
     5071  with_install=yes
     5072fi
     5073
     5074
     5075if test "$with_install" != "yes"; then
     5076    INSTALL_PREFIX=$with_install
     5077else
     5078    INSTALL_PREFIX=$prefix
     5079fi
     5080
     5081if test "${libdir}" != "${prefix}/lib"; then
     5082    LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}"
     5083else
     5084    LIB_SEARCH_DIRS="-L${libdir}"
     5085fi
     5086
     5087
     5088# Check whether --with-statsdir was given.
     5089if test "${with_statsdir+set}" = set; then :
     5090  withval=$with_statsdir; STATSDIR=$withval
     5091else
     5092  STATSDIR="/var/tmp/visservers"
     5093fi
     5094
     5095
     5096
     5097for ac_func in sysinfo
     5098do :
     5099  ac_fn_cxx_check_func "$LINENO" "sysinfo" "ac_cv_func_sysinfo"
     5100if test "x$ac_cv_func_sysinfo" = xyes; then :
     5101  cat >>confdefs.h <<_ACEOF
     5102#define HAVE_SYSINFO 1
     5103_ACEOF
     5104
     5105fi
     5106done
     5107
     5108for ac_func in gettimeofday
     5109do :
     5110  ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
     5111if test "x$ac_cv_func_gettimeofday" = xyes; then :
     5112  cat >>confdefs.h <<_ACEOF
     5113#define HAVE_GETTIMEOFDAY 1
     5114_ACEOF
     5115
     5116fi
     5117done
     5118
     5119ac_fn_cxx_check_func "$LINENO" "localtime" "ac_cv_func_localtime"
     5120if test "x$ac_cv_func_localtime" = xyes; then :
     5121
     5122else
     5123  as_fn_error $? "oops! no localtime ?!?" "$LINENO" 5
     5124fi
     5125
     5126ac_fn_cxx_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
     5127if test "x$ac_cv_func_getenv" = xyes; then :
     5128
     5129else
     5130  as_fn_error $? "oops! no getenv ?!?" "$LINENO" 5
     5131fi
    49195132
    49205133
     
    73567569
    73577570
    7358 
    7359 # Check whether --with-tclsh was given.
    7360 if test "${with_tclsh+set}" = set; then :
    7361   withval=$with_tclsh;
    7362 else
    7363   with_tclsh=yes
    7364 fi
    7365 
    7366 
    7367 TCLSH=""
    7368 if test "${with_tclsh}" != "no" ; then
    7369   tclsh="tclsh${TCL_VERSION}"
    7370   if test "${with_tclsh}" = "yes" ; then
    7371     # Extract the first word of "${tclsh}", so it can be a program name with args.
    7372 set dummy ${tclsh}; ac_word=$2
    7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    7374 $as_echo_n "checking for $ac_word... " >&6; }
    7375 if ${ac_cv_path_TCLSH+:} false; then :
    7376   $as_echo_n "(cached) " >&6
    7377 else
    7378   case $TCLSH in
    7379   [\\/]* | ?:[\\/]*)
    7380   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
    7381   ;;
    7382   *)
    7383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7384 as_dummy="${exec_prefix}/bin:${PATH}"
    7385 for as_dir in $as_dummy
    7386 do
    7387   IFS=$as_save_IFS
    7388   test -z "$as_dir" && as_dir=.
    7389     for ac_exec_ext in '' $ac_executable_extensions; do
    7390   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    7391     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
    7392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    7393     break 2
    7394   fi
    7395 done
    7396   done
    7397 IFS=$as_save_IFS
    7398 
    7399   ;;
    7400 esac
    7401 fi
    7402 TCLSH=$ac_cv_path_TCLSH
    7403 if test -n "$TCLSH"; then
    7404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
    7405 $as_echo "$TCLSH" >&6; }
    7406 else
    7407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    7408 $as_echo "no" >&6; }
    7409 fi
    7410 
    7411 
    7412   else
    7413     # Extract the first word of "${tclsh}", so it can be a program name with args.
    7414 set dummy ${tclsh}; ac_word=$2
    7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    7416 $as_echo_n "checking for $ac_word... " >&6; }
    7417 if ${ac_cv_path_TCLSH+:} false; then :
    7418   $as_echo_n "(cached) " >&6
    7419 else
    7420   case $TCLSH in
    7421   [\\/]* | ?:[\\/]*)
    7422   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
    7423   ;;
    7424   *)
    7425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7426 as_dummy="${with_tclsh}/bin:${with_tclsh}"
    7427 for as_dir in $as_dummy
    7428 do
    7429   IFS=$as_save_IFS
    7430   test -z "$as_dir" && as_dir=.
    7431     for ac_exec_ext in '' $ac_executable_extensions; do
    7432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    7433     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
    7434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    7435     break 2
    7436   fi
    7437 done
    7438   done
    7439 IFS=$as_save_IFS
    7440 
    7441   ;;
    7442 esac
    7443 fi
    7444 TCLSH=$ac_cv_path_TCLSH
    7445 if test -n "$TCLSH"; then
    7446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
    7447 $as_echo "$TCLSH" >&6; }
    7448 else
    7449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    7450 $as_echo "no" >&6; }
    7451 fi
    7452 
    7453 
    7454   fi
    7455   if test "x${TCLSH}" = "x" ; then
    7456     as_fn_error $? "can't find tclsh" "$LINENO" 5
    7457   fi
    7458 fi
    7459 
    7460 
    74617571TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
    74627572
     
    1013510245
    1013610246MAKE=${make_command}
     10247
     10248
     10249
    1013710250
    1013810251
  • branches/r9/configure.in

    r4212 r4840  
    1414    exec_prefix=$prefix
    1515fi
     16
     17AC_PROG_INSTALL
     18AC_PROG_INSTALL
     19AC_PROG_RANLIB
     20AC_PROG_LN_S
     21AC_PROG_MKDIR_P
     22AC_PROG_MAKE_SET
     23
     24# Check for C, C++, and FORTRAN
     25AC_PROG_CC
     26AC_PROG_CXX
     27# Avoid g95
     28AC_PROG_F77([g77 gfortran f77 fort77 f90 xlf xlf90 fl32])
     29
     30AC_LANG([C])
     31
     32AC_HEADER_STDC
     33AC_CHECK_FUNC(atol,,AC_MSG_ERROR(oops! no atol ?!?))
     34
     35AC_LANG([C++])
     36AC_PATH_X
    1637
    1738AC_ARG_WITH(
     
    2849fi
    2950
    30 
    3151if test "${libdir}" != "${prefix}/lib"; then
    3252    LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}"
     
    3555fi
    3656
    37 
    38 AC_PROG_INSTALL
    39 AC_PROG_INSTALL
    40 AC_PROG_RANLIB
    41 AC_PROG_LN_S
    42 AC_PROG_MKDIR_P
    43 AC_PROG_MAKE_SET
    44 
    45 # Check for C, C++, and FORTRAN
    46 AC_PROG_CC
    47 AC_PROG_CXX
    48 # Avoid g95
    49 AC_PROG_F77([g77 gfortran f77 fort77 f90 xlf xlf90 fl32])
    50 
    51 AC_LANG([C])
    52 
    53 AC_HEADER_STDC
    54 AC_CHECK_FUNC(atol,,AC_MSG_ERROR(oops! no atol ?!?))
    55 
    56 AC_LANG([C++])
     57AC_ARG_WITH(
     58    [statsdir],
     59    [AS_HELP_STRING([--with-statsdir=DIR],
     60        [Write statistics in DIR])],
     61    [STATSDIR=$withval],
     62    [STATSDIR="/var/tmp/visservers"])
     63
    5764
    5865AC_CHECK_FUNCS(sysinfo)
     
    160167    [],
    161168    [with_ffmpeg=yes])
    162 
    163 AC_ARG_WITH(
    164     [tclsh],
    165     [AS_HELP_STRING([--with-tclsh[=DIR]],
    166         [location of tclsh @<:@default=yes@:>@])],
    167     [],
    168     [with_tclsh=yes])
    169 
    170 TCLSH=""
    171 if test "${with_tclsh}" != "no" ; then
    172   tclsh="tclsh${TCL_VERSION}"
    173   if test "${with_tclsh}" = "yes" ; then
    174     AC_PATH_PROG(TCLSH, ${tclsh}, [], [${exec_prefix}/bin:${PATH}])
    175   else
    176     AC_PATH_PROG(TCLSH, ${tclsh}, [], [${with_tclsh}/bin:${with_tclsh}])
    177   fi
    178   if test "x${TCLSH}" = "x" ; then
    179     AC_ERROR([can't find tclsh])
    180   fi
    181 fi
    182 
    183169
    184170TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
     
    440426AC_SUBST(SIZEOF_VOID_P)
    441427AC_SUBST(STLIB_LD)
    442 AC_SUBST(TCLSH)
    443428AC_SUBST(TCL_INC_SPEC)
    444429AC_SUBST(TCL_LIB_SPEC)
     
    463448AC_SUBST(VTK_VERSION)
    464449AC_SUBST(XSUBPP)
     450AC_SUBST(STATSDIR)
     451AC_SUBST(X_INCLUDES)
     452AC_SUBST(X_LIBRARIES)
     453AC_SUBST(WORDSIZE)
    465454
    466455ac_configure_args="--disable-threads --enable-shared"
  • branches/r9/gui/configure.in

    r4146 r4840  
    2828AC_PROG_MAKE_SET
    2929AC_PROG_CC
     30
     31AC_ARG_WITH(
     32    [install],
     33    [AS_HELP_STRING([--with-install[=DIR]],
     34        [location of installation @<:@default=yes@:>@])],
     35    [],
     36    [with_install=yes])
     37
     38if test "$with_install" != "yes"; then
     39    INSTALL_PREFIX=$with_install
     40else
     41    INSTALL_PREFIX=$prefix
     42fi
    3043
    3144#SC_CONFIG_CFLAGS
     
    146159  . ${exec_prefix}/lib/tkConfig.sh     
    147160fi
     161
     162AC_SUBST(INSTALL_PREFIX)
    148163AC_SUBST(TCL_INC_SPEC)
    149164AC_SUBST(TCL_LIB_SPEC)
  • branches/r9/tester/scripts/Makefile.in

    r4127 r4840  
    1313INSTALL         = @INSTALL@
    1414MKDIR_P         = @MKDIR_P@
    15 TCLSH           = @TCLSH@
     15TCL_VERSION     = @TCL_VERSION@
     16TCLSH           = $(bindir)/tclsh$(TCL_VERSION)
    1617VPATH           = $(srcdir)
    1718PACKAGE_VERSION = @PACKAGE_VERSION@
Note: See TracChangeset for help on using the changeset viewer.