Changeset 5906 for branches/1.5


Ignore:
Timestamp:
Oct 9, 2015, 12:00:06 PM (9 years ago)
Author:
gah
Message:

first pass on new build

Location:
branches/1.5
Files:
1 added
3 deleted
22 edited
7 copied
14 moved

Legend:

Unmodified
Added
Removed
  • branches/1.5/Makefile.in

    r5029 r5906  
    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) | sed 's/Unversioned directory/unknown/')
    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 ../rappture/runtime; pwd)
     18TAG =                   branches/blt4
     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
     54WITH_R =                @WITH_R@
     55WITH_JAVA =             @WITH_JAVA@
     56WITH_MATLAB =           @WITH_MATLAB@
     57WITH_MKOCTFILE2 =       @WITH_MKOCTFILE2@
     58WITH_MKOCTFILE3 =       @WITH_MKOCTFILE3@
     59WITH_OCTAVE =           @WITH_OCTAVE@
     60WITH_PERL =             @WITH_PERL@
     61WITH_PYTHON =           @WITH_PYTHON@
     62WITH_RUBY =             @WITH_RUBY@
     63WITH_RUBY_SITELIBDIR =  @WITH_RUBY_SITELIBDIR@
     64WITH_TCL =              @WITH_TCL@
     65WITH_VTK =              @WITH_VTK@
     66
     67common_flags =          --prefix=$(prefix) --exec_prefix=$(exec_prefix)
     68x_flags =
     69ifneq ("$(X_INCLUDES)", )
     70  x_flags += --x-includes=$(X_INCLUDES)
    4071endif
    41 ifneq ($(ENABLE_GUI),)
    42   TARGETS += gui builder tester examples puq
     72ifneq ("$(X_LIBRARIES)", )
     73  x_flags += --x-includes=$(X_LIBRARIES)
    4374endif
    44 ifneq ($(HAVE_FFMPEG),)
    45   TARGETS += video
     75
     76PATH := $(bindir):$(PATH)
     77
     78targets = \
     79        apps blt cmake examples expat expect gui htmlwidget itcl \
     80        itk lang libs optimizer shape sqlitetcl tcl tcllib \
     81        tdom tk tkimg tls video vtk zlib  packages \
     82
     83.PHONY: $(targets)
     84
     85.NOTPARALLEL:
     86
     87all: gui lang apps allpackages
     88
     89allpackages: packages video optimizer
     90
     91update:
     92        for i in $(srcdir)/runtime/*; do \
     93           (cd $$i; svn update; svn status) \
     94        done
     95
     96# Aliases for package directory names.
     97
     98# 1.4 runtime
     99blt = blt2.4z
     100cmake = cmake-2.8.12.2
     101examples = examples
     102expat = expat-2.1.0
     103expect = expect5.45
     104# Doesn't exist in 1.4 runtime
     105freetype = freetype-2.5.3
     106gui = gui
     107htmlwidget = htmlwidget-3a14
     108itcl = itcl3.3
     109itk = itk3.3
     110# Doesn't exist in 1.4 runtime
     111jpeg = jpeg-8d
     112# Doesn't exist in 1.4 runtime
     113libpng = libpng-1.6.15
     114libs = libs
     115# Doesn't exist in 1.4 runtime
     116openssl = openssl-1.0.1j
     117optimizer = optimizer
     118shape = shape0.4
     119sqlitetcl = sqlite-3071502
     120tcl = tcl8.4.19
     121tcllib = tcllib-1.12
     122tdom = tDOM-0.8.2
     123# Doesn't exist in 1.4 runtime
     124tiff = tiff-4.0.3
     125tk = tk8.4.19
     126tkimg = tkimg1.3
     127tls = tls1.6
     128vtk = vtk-6.0.0
     129zlib = zlib
     130lang = lang
     131video = video
     132packages = pkgs
     133apps = apps
     134
     135subdirs = \
     136        $(blt) $(cmake) $(expat) $(expect) \
     137        $(gui) $(htmlwidget) $(itcl) $(itk) $(lang) $(libs)  \
     138        $(optimizer) $(shape) \
     139        $(sqlitetcl) $(tcl) $(tcllib) $(tdom) $(tk) $(tkimg) \
     140        $(tls) $(vtk) $(zlib) $(apps)
     141
     142ifneq ("$(WITH_VTK)", "no")
     143  vtk_timestamp = $(vtk)/timestamp
    46144endif
    47145
    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 ;\
     146clean:
     147        $(clean_apps)
     148        $(clean_blt)
     149        $(clean_cmake)
     150        $(clean_expat)
     151        $(clean_expect)
     152        $(clean_gui)
     153        $(clean_htmlwidget)
     154        $(clean_itcl)
     155        $(clean_itk)
     156        $(clean_lang)
     157        $(clean_libs)
     158        $(clean_optimizer)
     159        $(clean_shape)
     160        $(clean_sqlitetcl)
     161        $(clean_tcl)
     162        $(clean_tcllib)
     163        $(clean_tdom)
     164        $(clean_tk)
     165        $(clean_tkimg)
     166        $(clean_tls)
     167        $(clean_vtk)
     168        $(clean_zlib)
     169
     170# -------------------------------------------------------------------------
     171#  APPS
     172# -------------------------------------------------------------------------
     173
     174apps_flags =    \
     175        --enable-shared \
     176        $(common_flags)
     177
     178apps: $(apps)/timestamp
     179
     180clean-apps:
     181        $(clean_apps)
     182fetch-apps:
     183        $(fetch_apps)
     184configure-apps:
     185        $(configure_apps)
     186build-apps:
     187        $(build_apps)
     188install-apps:
     189        $(install_apps)
     190touch-apps:
     191        $(touch_apps)
     192force-apps: $(gui)/timestamp
     193        + $(clean_apps)
     194        + $(fetch_apps)
     195        + $(configure_apps)
     196        + $(build_apps)
     197        + $(install_apps)
     198        + $(touch_apps)
     199
     200define clean_apps
     201        $(MAKE) -C $(apps) clean
     202endef
     203define fetch_apps
     204endef
     205define configure_apps
     206endef
     207define build_apps
     208        $(MAKE) -C $(apps) all
     209endef
     210define install_apps
     211        $(MAKE) -C $(apps) install
     212endef
     213define touch_apps
     214        touch $(apps)/timestamp
     215endef
     216
     217$(apps)/timestamp: $(gui)/timestamp
     218        + $(clean_apps)
     219        + $(fetch_apps)
     220        + $(configure_apps)
     221        + $(build_apps)
     222        + $(install_apps)
     223        + $(touch_apps)
     224
     225
     226# -------------------------------------------------------------------------
     227#  BLT
     228# -------------------------------------------------------------------------
     229
     230blt_flags =     \
     231                --enable-shared \
     232                $(common_flags)
     233
     234blt: $(blt)/timestamp
     235
     236clean-blt:
     237        $(clean_blt)
     238fetch-blt:
     239        $(fetch_blt)
     240configure-blt:
     241        $(configure_blt)
     242build-blt:
     243        $(build_blt)
     244install-blt:
     245        $(install_blt)
     246touch-blt:
     247        $(touch_blt)
     248force-blt: $(tcl)/timestamp $(tk)/timestamp
     249        + $(clean_blt)
     250        + $(fetch_blt)
     251        + $(configure_blt)
     252        + $(build_blt)
     253        + $(install_blt)
     254        + $(touch_blt)
     255
     256define clean_blt
     257        $(RM) -r $(blt)
     258endef
     259define fetch_blt
     260        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(blt)
     261endef
     262define configure_blt
     263        $(MKDIR_P) $(blt)
     264        cd $(blt); $(runtime)/$(blt)/configure $(blt_flags)
     265endef
     266define build_blt
     267        $(MAKE)  -C $(blt) all
     268endef
     269define install_blt
     270        $(MAKE) -C $(blt) install
     271endef
     272define touch_blt
     273        touch $(blt)/timestamp
     274endef
     275
     276$(blt)/timestamp: $(tcl)/timestamp $(tk)/timestamp
     277        + $(clean_blt)
     278        + $(fetch_blt)
     279        + $(configure_blt)
     280        + $(build_blt)
     281        + $(install_blt)
     282        + $(touch_blt)
     283
     284# -------------------------------------------------------------------------
     285#  CMAKE
     286# -------------------------------------------------------------------------
     287
     288cmake_flags =   \
     289        --prefix=$(prefix)
     290
     291cmake: $(cmake)/timestamp
     292
     293clean-cmake:
     294        $(clean_cmake)
     295fetch-cmake:
     296        $(fetch_cmake)
     297configure-cmake:
     298        $(configure_cmake)
     299build-cmake:
     300        $(build_cmake)
     301install-cmake:
     302        $(install_cmake)
     303touch-cmake:
     304        $(touch_cmake)
     305force-cmake:
     306        + $(clean_cmake)
     307        + $(fetch_cmake)
     308        + $(configure_cmake)
     309        + $(build_cmake)
     310        + $(install_cmake)
     311        + $(touch_cmake)
     312
     313define clean_cmake
     314        $(RM) -r $(cmake)
     315endef
     316define fetch_cmake
     317        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(cmake)
     318endef
     319define configure_cmake
     320        $(MKDIR_P) $(cmake)
     321        cd $(cmake); $(runtime)/$(cmake)/configure $(cmake_flags)
     322endef
     323define build_cmake
     324        $(MAKE)  -C $(cmake) all
     325endef
     326define install_cmake
     327        $(MAKE) -C $(cmake) install
     328endef
     329define touch_cmake
     330        touch $(cmake)/timestamp
     331endef
     332
     333$(cmake)/timestamp:
     334        + $(clean_cmake)
     335        + $(fetch_cmake)
     336        + $(configure_cmake)
     337        + $(build_cmake)
     338        + $(install_cmake)
     339        + $(touch_cmake)
     340
     341# -------------------------------------------------------------------------
     342#  EXAMPLES
     343# -------------------------------------------------------------------------
     344
     345examples_flags =        \
     346        --with-tclsh="$(bindir)/tclsh" \
     347        --enable-shared \
     348        $(common_flags)
     349
     350examples: $(examples)/timestamp
     351
     352clean-examples:
     353        $(clean_examples)
     354fetch-examples:
     355        $(fetch_examples)
     356configure-examples:
     357        $(configure_examples)
     358build-examples:
     359        $(build_examples)
     360install-examples:
     361        $(install_examples)
     362touch-examples:
     363        $(touch_examples)
     364force-examples: $(gui)/timestamp
     365        + $(clean_examples)
     366        + $(fetch_examples)
     367        + $(configure_examples)
     368        + $(build_examples)
     369        + $(install_examples)
     370        + $(touch_examples)
     371
     372define clean_examples
     373        $(MAKE) -C $(examples) clean
     374endef
     375define fetch_examples
     376endef
     377define configure_examples
     378        $(MKDIR_P) $(examples)
     379endef
     380define build_examples
     381        $(MAKE) -C $(examples) all
     382endef
     383define install_examples
     384        $(MAKE) -C $(examples) install
     385endef
     386define touch_examples
     387        touch $(examples)/timestamp
     388endef
     389
     390$(examples)/timestamp: $(gui)/timestamp
     391        + $(clean_examples)
     392        + $(fetch_examples)
     393        + $(configure_examples)
     394        + $(build_examples)
     395        + $(install_examples)
     396        + $(touch_examples)
     397
     398# -------------------------------------------------------------------------
     399#  EXPAT
     400# -------------------------------------------------------------------------
     401
     402expat_flags =   \
     403        --enable-shared \
     404        $(common_flags)
     405
     406expat: $(expat)/timestamp
     407
     408clean-expat:
     409        $(clean_expat)
     410fetch-expat:
     411        $(fetch_expat)
     412configure-expat:
     413        $(configure_expat)
     414build-expat:
     415        $(build_expat)
     416install-expat:
     417        $(install_expat)
     418touch-expat:
     419        $(touch_expat)
     420force-expat:
     421        + $(clean_expat)
     422        + $(fetch_expat)
     423        + $(configure_expat)
     424        + $(build_expat)
     425        + $(install_expat)
     426        + $(touch_expat)
     427
     428define clean_expat
     429        $(RM) -r $(expat)
     430endef
     431define fetch_expat
     432        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(expat)
     433endef
     434define configure_expat
     435        $(MKDIR_P) $(expat)
     436        cd $(expat); $(runtime)/$(expat)/configure $(expat_flags)
     437endef
     438define build_expat
     439        $(MAKE)  -C $(expat) all
     440endef
     441define install_expat
     442        $(MAKE) -C $(expat) install
     443endef
     444define touch_expat
     445        touch $(expat)/timestamp
     446endef
     447
     448$(expat)/timestamp:
     449        + $(clean_expat)
     450        + $(fetch_expat)
     451        + $(configure_expat)
     452        + $(build_expat)
     453        + $(install_expat)
     454        + $(touch_expat)
     455
     456# -------------------------------------------------------------------------
     457#  EXPECT
     458# -------------------------------------------------------------------------
     459
     460expect_flags =  \
     461        --enable-shared \
     462        --enable-64bit \
     463        --with-tcl=$(libdir) \
     464        --with-tclinclude=$(incdir) \
     465        $(common_flags)
     466
     467expect: $(expect)/timestamp
     468
     469clean-expect:
     470        $(clean_expect)
     471fetch-expect:
     472        $(fetch_expect)
     473configure-expect:
     474        $(configure_expect)
     475build-expect:
     476        $(build_expect)
     477install-expect:
     478        $(install_expect)
     479touch-expect:
     480        $(touch_expect)
     481force-expect: $(tcl)/timestamp $(tk)/timestamp
     482        + $(clean_expect)
     483        + $(fetch_expect)
     484        + $(configure_expect)
     485        + $(build_expect)
     486        + $(install_expect)
     487        + $(touch_expect)
     488
     489define clean_expect
     490        $(RM) -r $(expect)
     491endef
     492define fetch_expect
     493        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(expect)
     494endef
     495define configure_expect
     496        $(MKDIR_P) $(expect)
     497        cd $(expect); $(runtime)/$(expect)/configure $(expect_flags)
     498endef
     499define build_expect
     500        $(MAKE)  -C $(expect) all
     501endef
     502define install_expect
     503        $(MAKE) -C $(expect) install
     504endef
     505define touch_expect
     506        touch $(expect)/timestamp
     507endef
     508
     509$(expect)/timestamp: $(tcl)/timestamp $(tk)/timestamp
     510        + $(clean_expect)
     511        + $(fetch_expect)
     512        + $(configure_expect)
     513        + $(build_expect)
     514        + $(install_expect)
     515        + $(touch_expect)
     516
     517# -------------------------------------------------------------------------
     518#  GUI
     519# -------------------------------------------------------------------------
     520
     521gui_flags =     \
     522        $(common_flags)
     523
     524gui: $(gui)/timestamp
     525
     526clean-gui:
     527        $(clean_gui)
     528fetch-gui:
     529        $(fetch_gui)
     530configure-gui:
     531        $(configure_gui)
     532build-gui:
     533        $(build_gui)
     534install-gui:
     535        $(install_gui)
     536touch-gui:
     537        $(touch_gui)
     538force-gui: $(libs)/timestamp \
     539                  $(blt)/timestamp \
     540                  $(itk)/timestamp \
     541                  $(htmlwidget)/timestamp \
     542                  $(shape)/timestamp \
     543                  $(sqlitetcl)/timestamp \
     544                  $(vtk_timestamp)
     545        + $(clean_gui)
     546        + $(fetch_gui)
     547        + $(configure_gui)
     548        + $(build_gui)
     549        + $(install_gui)
     550        + $(touch_gui)
     551
     552define clean_gui
     553        $(RM) -r $(gui)
     554endef
     555define fetch_gui
     556endef
     557define configure_gui
     558        $(MKDIR_P) $(gui)
     559        cd $(gui); $(srcdir)/$(gui)/configure $(gui_flags)
     560endef
     561define build_gui
     562        $(MAKE) -C $(gui) all
     563endef
     564define install_gui
     565        $(MAKE) -C $(gui) install
     566endef
     567define touch_gui
     568        touch $(gui)/timestamp
     569endef
     570
     571$(gui)/timestamp: $(libs)/timestamp \
     572                  $(blt)/timestamp \
     573                  $(itk)/timestamp \
     574                  $(htmlwidget)/timestamp \
     575                  $(shape)/timestamp \
     576                  $(tdom)/timestamp \
     577                  $(tcllib)/timestamp \
     578                  $(tls)/timestamp \
     579                  $(tkimg)/timestamp \
     580                  $(sqlitetcl)/timestamp \
     581                  $(vtk_timestamp)
     582        + $(clean_gui)
     583        + $(fetch_gui)
     584        + $(configure_gui)
     585        + $(build_gui)
     586        + $(install_gui)
     587        + $(touch_gui)
     588
     589# -------------------------------------------------------------------------
     590#  HTMLWIDGET
     591# -------------------------------------------------------------------------
     592
     593htmlwidget_flags = \
     594        --enable-shared \
     595        $(common_flags)
     596
     597htmlwidget: $(htmlwidget)/timestamp
     598
     599clean-htmlwidget:
     600        $(clean_htmlwidget)
     601fetch-htmlwidget:
     602        $(fetch_htmlwidget)
     603configure-htmlwidget:
     604        $(configure_htmlwidget)
     605build-htmlwidget:
     606        $(build_htmlwidget)
     607install-htmlwidget:
     608        $(install_htmlwidget)
     609touch-htmlwidget:
     610        $(touch_htmlwidget)
     611force-htmlwidget: $(tk)/timestamp
     612        + $(clean_htmlwidget)
     613        + $(fetch_htmlwidget)
     614        + $(configure_htmlwidget)
     615        + $(build_htmlwidget)
     616        + $(install_htmlwidget)
     617        + $(touch_htmlwidget)
     618
     619define clean_htmlwidget
     620        $(RM) -r $(htmlwidget)
     621endef
     622define fetch_htmlwidget
     623        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(htmlwidget)
     624endef
     625define configure_htmlwidget
     626        $(MKDIR_P) $(htmlwidget)
     627        cd $(htmlwidget); $(runtime)/$(htmlwidget)/configure $(htmlwidget_flags)
     628endef
     629define build_htmlwidget
     630        $(MAKE) -C $(htmlwidget) all
     631endef
     632define install_htmlwidget
     633        $(MAKE) -C $(htmlwidget) install
     634endef
     635define touch_htmlwidget
     636        touch $(htmlwidget)/timestamp
     637endef
     638
     639$(htmlwidget)/timestamp: $(tk)/timestamp
     640        + $(clean_htmlwidget)
     641        + $(fetch_htmlwidget)
     642        + $(configure_htmlwidget)
     643        + $(build_htmlwidget)
     644        + $(install_htmlwidget)
     645        + $(touch_htmlwidget)
     646
     647# -------------------------------------------------------------------------
     648#  ITCL
     649# -------------------------------------------------------------------------
     650
     651itcl_flags =    \
     652        --enable-shared \
     653        $(common_flags)
     654
     655itcl: $(itcl)/timestamp
     656
     657clean-itcl:
     658        $(clean_itcl)
     659fetch-itcl:
     660        $(fetch_itcl)
     661configure-itcl:
     662        $(configure_itcl)
     663build-itcl:
     664        $(build_itcl)
     665install-itcl:
     666        $(install_itcl)
     667touch-itcl:
     668        $(touch_itcl)
     669force-itcl:
     670        + $(clean_itcl)
     671        + $(fetch_itcl)
     672        + $(configure_itcl)
     673        + $(build_itcl)
     674        + $(install_itcl)
     675        + $(touch_itcl)
     676
     677define clean_itcl
     678        $(RM) -r $(itcl)
     679endef
     680define fetch_itcl
     681        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(itcl)
     682endef
     683define configure_itcl
     684        $(MKDIR_P) $(itcl)
     685        cd $(itcl); $(runtime)/$(itcl)/configure $(itcl_flags)
     686endef
     687define build_itcl
     688        $(MAKE)  -C $(itcl) all
     689endef
     690define install_itcl
     691        $(MAKE) -C $(itcl) install
     692endef
     693define touch_itcl
     694        touch $(itcl)/timestamp
     695endef
     696
     697$(itcl)/timestamp: $(tcl)/timestamp
     698        + $(clean_itcl)
     699        + $(fetch_itcl)
     700        + $(configure_itcl)
     701        + $(build_itcl)
     702        + $(install_itcl)
     703        + $(touch_itcl)
     704
     705# -------------------------------------------------------------------------
     706#  ITK
     707# -------------------------------------------------------------------------
     708
     709itk_flags =     \
     710        --enable-shared \
     711        $(common_flags)
     712
     713itk: $(itk)/timestamp
     714
     715clean-itk:
     716        $(clean_itk)
     717fetch-itk:
     718        $(fetch_itk)
     719configure-itk:
     720        $(configure_itk)
     721build-itk:
     722        $(build_itk)
     723install-itk:
     724        $(install_itk)
     725touch-itk:
     726        $(touch_itk)
     727force-itk: $(itcl)/timestamp $(tk)/timestamp
     728        + $(clean_itk)
     729        + $(fetch_itk)
     730        + $(configure_itk)
     731        + $(build_itk)
     732        + $(install_itk)
     733        + $(touch_itk)
     734
     735define clean_itk
     736        $(RM) -r $(itk)
     737endef
     738define fetch_itk
     739        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(itk)
     740endef
     741define configure_itk
     742        $(MKDIR_P) $(itk)
     743        cd $(itk); $(runtime)/$(itk)/configure $(itk_flags)
     744endef
     745define build_itk
     746        $(MAKE) -C $(itk) all
     747endef
     748define install_itk
     749        $(MAKE) -C $(itk) install
     750endef
     751define touch_itk
     752        touch $(itk)/timestamp
     753endef
     754
     755$(itk)/timestamp: $(itcl)/timestamp $(tk)/timestamp
     756        + $(clean_itk)
     757        + $(fetch_itk)
     758        + $(configure_itk)
     759        + $(build_itk)
     760        + $(install_itk)
     761        + $(touch_itk)
     762
     763# -------------------------------------------------------------------------
     764#  LANG
     765# -------------------------------------------------------------------------
     766
     767lang_flags =    \
     768        --enable-shared \
     769        $(common_flags) \
     770        --with-R=${WITH_R} \
     771        --with-java=${WITH_JAVA} \
     772        --with-matlab=${WITH_MATLAB} \
     773        --with-mkoctfile2=${WITH_MKOCTFILE2} \
     774        --with-mkoctfile3=${WITH_MKOCTFILE3} \
     775        --with-octave=${WITH_OCTAVE} \
     776        --with-perl=${WITH_PERL} \
     777        --with-python=${WITH_PYTHON} \
     778        --with-ruby=${WITH_RUBY} \
     779        --with-ruby_sitelibdir=${WITH_RUBY_SITELIBDIR}
     780
     781lang: $(lang)/timestamp
     782
     783clean-lang:
     784        $(clean_lang)
     785fetch-lang:
     786        $(fetch_lang)
     787configure-lang:
     788        $(configure_lang)
     789build-lang:
     790        $(build_lang)
     791install-lang:
     792        $(install_lang)
     793touch-lang:
     794        $(touch_lang)
     795force-lang: $(gui)/timestamp
     796        + $(clean_lang)
     797        + $(fetch_lang)
     798        + $(configure_lang)
     799        + $(build_lang)
     800        + $(install_lang)
     801        + $(touch_lang)
     802
     803define clean_lang
     804        $(RM) -r $(lang)
     805endef
     806define fetch_lang
     807endef
     808define configure_lang
     809        $(MKDIR_P) $(lang)
     810        cd $(lang); $(srcdir)/$(lang)/configure $(lang_flags)
     811endef
     812define build_lang
     813        $(MAKE) -C $(lang) all
     814endef
     815define install_lang
     816        $(MAKE) -C $(lang) install
     817endef
     818define touch_lang
     819        touch $(lang)/timestamp
     820endef
     821
     822$(lang)/timestamp: $(libs)/timestamp  $(tcl)/timestamp $(itcl)/timestamp
     823        + $(clean_lang)
     824        + $(fetch_lang)
     825        + $(configure_lang)
     826        + $(build_lang)
     827        + $(install_lang)
     828        + $(touch_lang)
     829
     830
     831# -------------------------------------------------------------------------
     832#  LIB
     833# -------------------------------------------------------------------------
     834
     835libs_flags =    \
     836        --enable-shared \
     837        $(common_flags)
     838
     839libs: $(libs)/timestamp
     840
     841clean-libs:
     842        $(clean_libs)
     843fetch-libs:
     844        $(fetch_libs)
     845configure-libs:
     846        $(configure_libs)
     847build-libs:
     848        $(build_libs)
     849install-libs:
     850        $(install_libs)
     851touch-libs:
     852        $(touch_libs)
     853force-libs:
     854        + $(clean_libs)
     855        + $(fetch_libs)
     856        + $(configure_libs)
     857        + $(build_libs)
     858        + $(install_libs)
     859        + $(touch_libs)
     860
     861define clean_libs
     862        $(MAKE) -C $(libs) clean
     863        $(RM) $(libs)/timestamp
     864endef
     865define fetch_libs
     866endef
     867define configure_libs
     868endef
     869define build_libs
     870        $(MAKE) -C $(libs) all
     871endef
     872define install_libs
     873        $(MAKE) -C $(libs) install
     874        $(MKDIR_P) $(libdir)
     875        $(INSTALL) -m 0444 rapptureConfig.sh $(libdir)
     876endef
     877define touch_libs
     878        touch $(libs)/timestamp
     879endef
     880
     881$(libs)/timestamp:
     882        + $(clean_libs)
     883        + $(fetch_libs)
     884        + $(configure_libs)
     885        + $(build_libs)
     886        + $(install_libs)
     887        + $(touch_libs)
     888
     889# -------------------------------------------------------------------------
     890#  OPTIMIZER
     891# -------------------------------------------------------------------------
     892
     893optimizer_flags =       \
     894        --with-tclsh="$(bindir)/tclsh8.5" \
     895        --enable-shared \
     896        --disable-threads \
     897        $(common_flags)
     898
     899optimizer: $(optimizer)/timestamp
     900
     901clean-optimizer:
     902        $(clean_optimizer)
     903fetch-optimizer:
     904        $(fetch_optimizer)
     905configure-optimizer:
     906        $(configure_optimizer)
     907build-optimizer:
     908        $(build_optimizer)
     909install-optimizer:
     910        $(install_optimizer)
     911touch-optimizer:
     912        $(touch_optimizer)
     913force-optimizer: $(gui)/timestamp
     914        + $(clean_optimizer)
     915        + $(fetch_optimizer)
     916        + $(configure_optimizer)
     917        + $(build_optimizer)
     918        + $(install_optimizer)
     919        + $(touch_optimizer)
     920
     921define clean_optimizer
     922        $(RM) -r $(optimizer)
     923endef
     924define fetch_optimizer
     925endef
     926define configure_optimizer
     927        $(MKDIR_P) $(optimizer)
     928        cd $(optimizer); $(srcdir)/pkgs/$(optimizer)/configure $(optimizer_flags)
     929endef
     930define build_optimizer
     931        $(MAKE) -C $(optimizer) all
     932endef
     933define install_optimizer
     934        $(MAKE) -C $(optimizer) install
     935endef
     936define touch_optimizer
     937        touch $(optimizer)/timestamp
     938endef
     939
     940$(optimizer)/timestamp: $(gui)/timestamp
     941        + $(clean_optimizer)
     942        + $(fetch_optimizer)
     943        + $(configure_optimizer)
     944        + $(build_optimizer)
     945        + $(install_optimizer)
     946        + $(touch_optimizer)
     947
     948
     949# -------------------------------------------------------------------------
     950#  PACKAGES
     951# -------------------------------------------------------------------------
     952
     953packages_flags =        \
     954        $(common_flags)
     955
     956packages: $(packages)/timestamp
     957
     958clean-packages:
     959        $(clean_packages)
     960fetch-packages:
     961        $(fetch_packages)
     962configure-packages:
     963        $(configure_packages)
     964build-packages:
     965        $(build_packages)
     966install-packages:
     967        $(install_packages)
     968touch-packages:
     969        $(touch_packages)
     970force-packages: $(gui)/timestamp
     971        + $(clean_packages)
     972        + $(fetch_packages)
     973        + $(configure_packages)
     974        + $(build_packages)
     975        + $(install_packages)
     976        + $(touch_packages)
     977
     978define clean_packages
     979        $(RM) -r $(packages)
     980endef
     981define fetch_packages
     982endef
     983define configure_packages
     984        $(MKDIR_P) $(packages)
     985        cd $(packages); $(srcdir)/$(packages)/configure $(packages_flags)
     986endef
     987define build_packages
     988        $(MAKE) -C $(packages) all
     989endef
     990define install_packages
     991        $(MAKE) -C $(packages) install
     992endef
     993define touch_packages
     994        touch $(packages)/timestamp
     995endef
     996
     997$(packages)/timestamp: $(gui)/timestamp
     998        + $(clean_packages)
     999        + $(fetch_packages)
     1000        + $(configure_packages)
     1001        + $(build_packages)
     1002        + $(install_packages)
     1003        + $(touch_packages)
     1004
     1005# -------------------------------------------------------------------------
     1006#  SHAPE
     1007# -------------------------------------------------------------------------
     1008
     1009shape_flags =   \
     1010        --enable-shared \
     1011        --with-tclconf=$(libdir) \
     1012        --with-tkconf=$(libdir) \
     1013        $(common_flags)
     1014
     1015shape: $(shape)/timestamp
     1016
     1017clean-shape:
     1018        $(clean_shape)
     1019fetch-shape:
     1020        $(fetch_shape)
     1021configure-shape:
     1022        $(configure_shape)
     1023build-shape:
     1024        $(build_shape)
     1025install-shape:
     1026        $(install_shape)
     1027touch-shape:
     1028        $(touch_shape)
     1029force-shape: $(tk)/timestamp
     1030        + $(clean_shape)
     1031        + $(fetch_shape)
     1032        + $(configure_shape)
     1033        + $(build_shape)
     1034        + $(install_shape)
     1035        + $(touch_shape)
     1036
     1037define clean_shape
     1038        $(RM) -r $(shape)
     1039endef
     1040define fetch_shape
     1041        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(shape)
     1042endef
     1043define configure_shape
     1044        $(MKDIR_P) $(shape)
     1045        cd $(shape); $(runtime)/$(shape)/unix/configure $(shape_flags)
     1046endef
     1047define build_shape
     1048        $(MAKE) -C $(shape) all
     1049endef
     1050define install_shape
     1051        $(MAKE) -C $(shape) install
     1052endef
     1053define touch_shape
     1054        touch $(shape)/timestamp
     1055endef
     1056
     1057$(shape)/timestamp: $(tk)/timestamp
     1058        + $(clean_shape)
     1059        + $(fetch_shape)
     1060        + $(configure_shape)
     1061        + $(build_shape)
     1062        + $(install_shape)
     1063        + $(touch_shape)
     1064
     1065# -------------------------------------------------------------------------
     1066#  SQLITETCL
     1067# -------------------------------------------------------------------------
     1068
     1069sqlitetcl_flags = \
     1070        --enable-shared \
     1071        $(common_flags)
     1072
     1073sqlitetcl: $(sqlitetcl)/timestamp
     1074
     1075clean-sqlitetcl:
     1076        $(clean_sqlitetcl)
     1077fetch-sqlitetcl:
     1078        $(fetch_sqlitetcl)
     1079configure-sqlitetcl:
     1080        $(configure_sqlitetcl)
     1081build-sqlitetcl:
     1082        $(build_sqlitetcl)
     1083install-sqlitetcl:
     1084        $(install_sqlitetcl)
     1085touch-sqlitetcl:
     1086        $(touch_sqlitetcl)
     1087force-sqlitetcl: $(tcl)/timestamp
     1088        + $(clean_sqlitetcl)
     1089        + $(fetch_sqlitetcl)
     1090        + $(configure_sqlitetcl)
     1091        + $(build_sqlitetcl)
     1092        + $(install_sqlitetcl)
     1093        + $(touch_sqlitetcl)
     1094
     1095define clean_sqlitetcl
     1096        $(RM) -r $(sqlitetcl)
     1097endef
     1098define fetch_sqlitetcl
     1099        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(sqlitetcl)
     1100endef
     1101define configure_sqlitetcl
     1102        $(MKDIR_P) $(sqlitetcl)
     1103        cd $(sqlitetcl); $(runtime)/$(sqlitetcl)/tea/configure $(sqlitetcl_flags)
     1104endef
     1105define build_sqlitetcl
     1106        $(MAKE) -C $(sqlitetcl) all
     1107endef
     1108define install_sqlitetcl
     1109        $(MAKE) -C $(sqlitetcl) install
     1110endef
     1111define touch_sqlitetcl
     1112        touch $(sqlitetcl)/timestamp
     1113endef
     1114
     1115$(sqlitetcl)/timestamp: $(tcl)/timestamp
     1116        + $(clean_sqlitetcl)
     1117        + $(fetch_sqlitetcl)
     1118        + $(configure_sqlitetcl)
     1119        + $(build_sqlitetcl)
     1120        + $(install_sqlitetcl)
     1121        + $(touch_sqlitetcl)
     1122
     1123# -------------------------------------------------------------------------
     1124#  TCL
     1125# -------------------------------------------------------------------------
     1126
     1127tcl_flags =     \
     1128        --enable-shared \
     1129        --disable-threads \
     1130        $(common_flags)
     1131
     1132tcl: $(tcl)/timestamp
     1133
     1134clean-tcl:
     1135        $(clean_tcl)
     1136fetch-tcl:
     1137        $(fetch_tcl)
     1138configure-tcl:
     1139        $(configure_tcl)
     1140build-tcl:
     1141        $(build_tcl)
     1142install-tcl:
     1143        $(install_tcl)
     1144touch-tcl:
     1145        $(touch_tcl)
     1146force-tcl:
     1147        + $(clean_tcl)
     1148        + $(fetch_tcl)
     1149        + $(configure_tcl)
     1150        + $(build_tcl)
     1151        + $(install_tcl)
     1152        + $(touch_tcl)
     1153
     1154define fetch_tcl
     1155        sh $(srcdir)/fetch.sh $(TAG) $(srcdir) $(tcl)
     1156endef
     1157define clean_tcl
     1158        $(RM) -r $(tcl)
     1159endef
     1160define fetch_tcl
     1161        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tcl)
     1162endef
     1163define configure_tcl
     1164        $(MKDIR_P) $(tcl)
     1165        cd $(tcl); $(srcdir)/runtime/$(tcl)/unix/configure $(tcl_flags)
     1166endef
     1167define build_tcl
     1168        $(MAKE)  -C $(tcl) all
     1169endef
     1170define install_tcl
     1171        $(MAKE) -C $(tcl) install
     1172        $(RM) $(bindir)/tclsh
     1173        (. ${libdir}/tclConfig.sh ; cd $(bindir); $(LN_S) tclsh$${TCL_VERSION} tclsh)
     1174endef
     1175define touch_tcl
     1176        touch $(tcl)/timestamp
     1177endef
     1178
     1179$(tcl)/timestamp:
     1180        + $(clean_tcl)
     1181        + $(fetch_tcl)
     1182        + $(configure_tcl)
     1183        + $(build_tcl)
     1184        + $(install_tcl)
     1185        + $(touch_tcl)
     1186
     1187# -------------------------------------------------------------------------
     1188#  TCLLIB
     1189# -------------------------------------------------------------------------
     1190
     1191tcllib_flags =  \
     1192        --enable-shared \
     1193        $(common_flags)
     1194
     1195tcllib: $(tcllib)/timestamp
     1196
     1197clean-tcllib:
     1198        $(clean_tcllib)
     1199fetch-tcllib:
     1200        $(fetch_tcllib)
     1201configure-tcllib:
     1202        $(configure_tcllib)
     1203build-tcllib:
     1204        $(build_tcllib)
     1205install-tcllib:
     1206        $(install_tcllib)
     1207touch-tcllib:
     1208        $(touch_tcllib)
     1209force-tcllib: $(tcl)/timestamp
     1210        + $(clean_tcllib)
     1211        + $(fetch_tcllib)
     1212        + $(configure_tcllib)
     1213        + $(build_tcllib)
     1214        + $(install_tcllib)
     1215        + $(touch_tcllib)
     1216
     1217define clean_tcllib
     1218        $(RM) -r $(tcllib)
     1219endef
     1220define fetch_tcllib
     1221        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tcllib)
     1222endef
     1223define configure_tcllib
     1224        $(MKDIR_P) $(tcllib)
     1225        cd $(tcllib); $(runtime)/$(tcllib)/configure $(tcllib_flags)
     1226endef
     1227define build_tcllib
     1228        $(MAKE) -C $(tcllib) all
     1229endef
     1230define install_tcllib
     1231        $(MAKE) -C $(tcllib) install
     1232endef
     1233define touch_tcllib
     1234        touch $(tcllib)/timestamp
     1235endef
     1236
     1237$(tcllib)/timestamp: $(tcl)/timestamp
     1238        + $(clean_tcllib)
     1239        + $(fetch_tcllib)
     1240        + $(configure_tcllib)
     1241        + $(build_tcllib)
     1242        + $(install_tcllib)
     1243        + $(touch_tcllib)
     1244
     1245# -------------------------------------------------------------------------
     1246#  TDOM
     1247# -------------------------------------------------------------------------
     1248
     1249tdom_flags =    \
     1250        --enable-shared \
     1251        $(common_flags)
     1252
     1253tdom: $(tdom)/timestamp
     1254
     1255clean-tdom:
     1256        $(clean_tdom)
     1257fetch-tdom:
     1258        $(fetch_tdom)
     1259configure-tdom:
     1260        $(configure_tdom)
     1261build-tdom:
     1262        $(build_tdom)
     1263install-tdom:
     1264        $(install_tdom)
     1265touch-tdom:
     1266        $(touch_tdom)
     1267force-tdom: $(tcl)/timestamp
     1268        + $(clean_tdom)
     1269        + $(fetch_tdom)
     1270        + $(configure_tdom)
     1271        + $(build_tdom)
     1272        + $(install_tdom)
     1273        + $(touch_tdom)
     1274
     1275define clean_tdom
     1276        $(RM) -r $(tdom)
     1277endef
     1278define fetch_tdom
     1279        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tdom)
     1280endef
     1281define configure_tdom
     1282        $(MKDIR_P) $(tdom)
     1283        cd $(tdom); $(runtime)/$(tdom)/configure $(tdom_flags)
     1284endef
     1285define build_tdom
     1286        $(MAKE) -C $(tdom) all
     1287endef
     1288define install_tdom
     1289        $(MAKE) -C $(tdom) install
     1290endef
     1291define touch_tdom
     1292        touch $(tdom)/timestamp
     1293endef
     1294
     1295$(tdom)/timestamp: $(tcl)/timestamp
     1296        + $(clean_tdom)
     1297        + $(fetch_tdom)
     1298        + $(configure_tdom)
     1299        + $(build_tdom)
     1300        + $(install_tdom)
     1301        + $(touch_tdom)
     1302
     1303# -------------------------------------------------------------------------
     1304#  TK
     1305# -------------------------------------------------------------------------
     1306
     1307tk_flags =      \
     1308        --enable-shared \
     1309        --disable-threads \
     1310        $(common_flags)
     1311
     1312tk: $(tk)/timestamp
     1313
     1314clean-tk:
     1315        $(clean_tk)
     1316fetch-tk:
     1317        $(fetch_tk)
     1318configure-tk:
     1319        $(configure_tk)
     1320build-tk:
     1321        $(build_tk)
     1322install-tk:
     1323        $(install_tk)
     1324touch-tk:
     1325        $(touch_tk)
     1326force-tk: $(tcl)/timestamp
     1327        + $(clean_tk)
     1328        + $(fetch_tk)
     1329        + $(configure_tk)
     1330        + $(build_tk)
     1331        + $(install_tk)
     1332        + $(touch_tk)
     1333
     1334define clean_tk
     1335        $(RM) -r $(tk)
     1336endef
     1337define fetch_tk
     1338        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tk)
     1339endef
     1340define configure_tk
     1341        $(MKDIR_P) $(tk)
     1342        cd $(tk); $(runtime)/$(tk)/unix/configure $(tk_flags)
     1343endef
     1344define build_tk
     1345        $(MAKE)  -C $(tk) all
     1346endef
     1347define install_tk
     1348        $(MAKE) -C $(tk) install
     1349        $(RM) $(bindir)/wish
     1350        (. $(libdir)/tkConfig.sh ; cd $(bindir); $(LN_S) wish$${TK_VERSION} wish)
     1351endef
     1352define touch_tk
     1353        touch $(tk)/timestamp
     1354endef
     1355
     1356$(tk)/timestamp: $(tcl)/timestamp
     1357        + $(clean_tk)
     1358        + $(fetch_tk)
     1359        + $(configure_tk)
     1360        + $(build_tk)
     1361        + $(install_tk)
     1362        + $(touch_tk)
     1363
     1364# -------------------------------------------------------------------------
     1365#  TKING
     1366# -------------------------------------------------------------------------
     1367
     1368tkimg_flags =   \
     1369        --enable-shared \
     1370        $(common_flags)
     1371
     1372tkimg: $(tkimg)/timestamp
     1373
     1374clean-tkimg:
     1375        $(clean_tkimg)
     1376fetch-tkimg:
     1377        $(fetch_tkimg)
     1378configure-tkimg:
     1379        $(configure_tkimg)
     1380build-tkimg:
     1381        $(build_tkimg)
     1382install-tkimg:
     1383        $(install_tkimg)
     1384touch-tkimg:
     1385        $(touch_tkimg)
     1386force-tkimg: $(tk)/timestamp
     1387        + $(clean_tkimg)
     1388        + $(fetch_tkimg)
     1389        + $(configure_tkimg)
     1390        + $(build_tkimg)
     1391        + $(install_tkimg)
     1392        + $(touch_tkimg)
     1393
     1394define clean_tkimg
     1395        $(RM) -r $(tkimg)
     1396endef
     1397define fetch_tkimg
     1398        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tkimg)
     1399endef
     1400define configure_tkimg
     1401        $(MKDIR_P) $(tkimg)
     1402        cd $(tkimg); $(runtime)/$(tkimg)/configure $(tkimg_flags)
     1403endef
     1404define build_tkimg
     1405        $(MAKE) -C $(tkimg) all
     1406endef
     1407define install_tkimg
     1408        $(MAKE) -C $(tkimg) install
     1409endef
     1410define touch_tkimg
     1411        touch $(tkimg)/timestamp
     1412endef
     1413
     1414$(tkimg)/timestamp: $(tk)/timestamp
     1415        + $(clean_tkimg)
     1416        + $(fetch_tkimg)
     1417        + $(configure_tkimg)
     1418        + $(build_tkimg)
     1419        + $(install_tkimg)
     1420        + $(touch_tkimg)
     1421
     1422# -------------------------------------------------------------------------
     1423#  TLS
     1424# -------------------------------------------------------------------------
     1425
     1426tls_flags =     \
     1427        --enable-shared \
     1428        $(common_flags)
     1429
     1430tls: $(tls)/timestamp
     1431
     1432clean-tls:
     1433        $(clean_tls)
     1434fetch-tls:
     1435        $(fetch_tls)
     1436configure-tls:
     1437        $(configure_tls)
     1438build-tls:
     1439        $(build_tls)
     1440install-tls:
     1441        $(install_tls)
     1442touch-tls:
     1443        $(touch_tls)
     1444force-tls: $(tcl)/timestamp
     1445        + $(clean_tls)
     1446        + $(fetch_tls)
     1447        + $(configure_tls)
     1448        + $(build_tls)
     1449        + $(install_tls)
     1450        + $(touch_tls)
     1451
     1452define clean_tls
     1453        $(RM) -r $(tls)
     1454endef
     1455define fetch_tls
     1456        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tls)
     1457endef
     1458define configure_tls
     1459        $(MKDIR_P) $(tls)
     1460        cd $(tls); $(runtime)/$(tls)/configure $(tls_flags)
     1461endef
     1462define build_tls
     1463        $(MAKE) -C $(tls) all
     1464endef
     1465define install_tls
     1466        $(MAKE) -C $(tls) install
     1467endef
     1468define touch_tls
     1469        touch $(tls)/timestamp
     1470endef
     1471
     1472$(tls)/timestamp: $(tcl)/timestamp
     1473        + $(clean_tls)
     1474        + $(fetch_tls)
     1475        + $(configure_tls)
     1476        + $(build_tls)
     1477        + $(install_tls)
     1478        + $(touch_tls)
     1479
     1480# -------------------------------------------------------------------------
     1481#  VIDEO
     1482# -------------------------------------------------------------------------
     1483
     1484video_flags =   \
     1485        --with-tclsh="$(bindir)/tclsh" \
     1486        --enable-shared \
     1487        $(common_flags)
     1488
     1489video: $(video)/timestamp
     1490
     1491clean-video:
     1492        $(clean_video)
     1493fetch-video:
     1494        $(fetch_video)
     1495configure-video:
     1496        $(configure_video)
     1497build-video:
     1498        $(build_video)
     1499install-video:
     1500        $(install_video)
     1501touch-video:
     1502        $(touch_video)
     1503force-video: #$(gui)/timestamp
     1504        + $(clean_video)
     1505        + $(fetch_video)
     1506        + $(configure_video)
     1507        + $(build_video)
     1508        + $(install_video)
     1509        + $(touch_video)
     1510
     1511define clean_video
     1512        $(RM) -r $(video)
     1513endef
     1514define fetch_video
     1515endef
     1516define configure_video
     1517        $(MKDIR_P) $(video)
     1518        cd $(video); $(srcdir)/pkgs/$(video)/configure $(video_flags)
     1519endef
     1520define build_video
     1521        $(MAKE) -C $(video) all
     1522endef
     1523define install_video
     1524        $(MAKE) -C $(video) install
     1525endef
     1526define touch_video
     1527        touch $(video)/timestamp
     1528endef
     1529
     1530$(video)/timestamp: $(gui)/timestamp
     1531        + $(clean_video)
     1532        + $(fetch_video)
     1533        + $(configure_video)
     1534        + $(build_video)
     1535        + $(install_video)
     1536        + $(touch_video)
     1537
     1538# -------------------------------------------------------------------------
     1539#  VTK
     1540# -------------------------------------------------------------------------
     1541
     1542vtk_flags =     \
     1543        $(common_flags)
     1544
     1545vtk: $(vtk)/timestamp
     1546
     1547clean-vtk:
     1548        $(clean_vtk)
     1549fetch-vtk:
     1550        $(fetch_vtk)
     1551configure-vtk:
     1552        $(configure_vtk)
     1553build-vtk:
     1554        $(build_vtk)
     1555install-vtk:
     1556        $(install_vtk)
     1557touch-vtk:
     1558        $(touch_vtk)
     1559force-vtk: $(cmake)/timestamp $(tcl)/timestamp $(tk)/timestamp
     1560        + $(clean_vtk)
     1561        + $(fetch_vtk)
     1562        + $(configure_vtk)
     1563        + $(build_vtk)
     1564        + $(install_vtk)
     1565        + $(touch_vtk)
     1566
     1567define clean_vtk
     1568        $(RM) -r $(vtk)
     1569endef
     1570define fetch_vtk
     1571        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(vtk)
     1572endef
     1573define configure_vtk
     1574        $(MKDIR_P) $(vtk)
     1575        cd $(vtk); $(runtime)/$(vtk)/configure $(vtk_flags)
     1576endef
     1577define build_vtk
     1578        $(MAKE)  -C $(vtk) all
     1579endef
     1580define install_vtk
     1581        $(MAKE) -C $(vtk) install
     1582        $(INSTALL) -m 0444 $(vtk)/vtkConfig.sh $(libdir)
     1583        $(RM) $(includedir)/vtk
     1584        (. $(libdir)/vtkConfig.sh ; cd $(includedir); $(LN_S) vtk-$${VTK_VERSION} vtk)
     1585        $(RM) $(libdir)/tcltk/vtk
     1586        (. $(libdir)/vtkConfig.sh ; cd $(libdir)/tcltk; $(LN_S) vtk-$${VTK_VERSION} vtk)
     1587endef
     1588define touch_vtk
     1589        touch $(vtk)/timestamp
     1590endef
     1591
     1592$(vtk)/timestamp: $(cmake)/timestamp $(tcl)/timestamp $(tk)/timestamp
     1593        + $(clean_vtk)
     1594        + $(fetch_vtk)
     1595        + $(configure_vtk)
     1596        + $(build_vtk)
     1597        + $(install_vtk)
     1598        + $(touch_vtk)
     1599
     1600# -------------------------------------------------------------------------
     1601#  ZLIB
     1602# -------------------------------------------------------------------------
     1603
     1604zlib_flags =    \
     1605        --enable-shared \
     1606        $(common_flags)
     1607
     1608zlib: $(zlib)/timestamp
     1609
     1610clean-zlib:
     1611        $(clean_zlib)
     1612fetch-zlib:
     1613        $(fetch_zlib)
     1614configure-zlib:
     1615        $(configure_zlib)
     1616build-zlib:
     1617        $(build_zlib)
     1618install-zlib:
     1619        $(install_zlib)
     1620touch-zlib:
     1621        $(touch_zlib)
     1622force-zlib:
     1623        + $(clean_zlib)
     1624        + $(fetch_zlib)
     1625        + $(configure_zlib)
     1626        + $(build_zlib)
     1627        + $(install_zlib)
     1628        + $(touch_zlib)
     1629
     1630define clean_zlib
     1631        $(RM) -r $(zlib)
     1632endef
     1633define fetch_zlib
     1634        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(zlib)
     1635endef
     1636define configure_zlib
     1637        $(MKDIR_P) $(zlib)
     1638        cd $(zlib); $(runtime)/$(zlib)/configure $(zlib_flags)
     1639endef
     1640define build_zlib
     1641        $(MAKE) -C $(zlib) all
     1642endef
     1643define install_zlib
     1644        $(MAKE) -C $(zlib) install
     1645endef
     1646define touch_zlib
     1647        touch $(zlib)/timestamp
     1648endef
     1649
     1650$(zlib)/timestamp:
     1651        + $(clean_zlib)
     1652        + $(fetch_zlib)
     1653        + $(configure_zlib)
     1654        + $(build_zlib)
     1655        + $(install_zlib)
     1656        + $(touch_zlib)
     1657
     1658
     1659TRASH = \
     1660        ./bin/bltsh30 \
     1661        ./bin/bltwish30 \
     1662        ./bin/dtplite \
     1663        ./bin/flowvis-test \
     1664        ./bin/mapviewer-test \
     1665        ./bin/nanovis-test \
     1666        ./bin/nns \
     1667        ./bin/nnsd \
     1668        ./bin/nnslog \
     1669        ./bin/page \
     1670        ./bin/tcldocstrip \
     1671        ./bin/vtkglyphs-test \
     1672        ./bin/vtkheightmap-test \
     1673        ./bin/vtkisosurface-test \
     1674        ./bin/vtkstreamlines-test \
     1675        ./bin/vtkviewer-test \
     1676        ./bin/vtkvolume-test \
     1677        ./lib/bltConfig.sh \
     1678        ./lib/itclConfig.sh \
     1679        ./lib/jpegtclConfig.sh \
     1680        ./lib/libBltTcl30.so \
     1681        ./lib/libBltTk30.so \
     1682        ./lib/pngtclConfig.sh \
     1683        ./lib/tdomConfig.sh \
     1684        ./lib/tifftclConfig.sh \
     1685        ./lib/tkConfig.sh \
     1686        ./lib/tkimgConfig.sh \
     1687        ./lib/zlibtclConfig.sh \
     1688        ./man \
     1689        ./share
     1690
     1691installdir =    rappture_install
     1692tmpdir =        /tmp/$(installdir)
     1693arch =          $(shell uname -m)
     1694package:
     1695        $(RM) -r $(tmpdir)
     1696        $(MKDIR_P) $(tmpdir)
     1697        tar -C $(DESTDIR)$(exec_prefix) -clf - . | tar -C $(tmpdir) -xpf -
     1698        for i in $(TRASH); do \
     1699           $(RM) -r $(tmpdir)/$$i ; \
    541700        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
     1701        $(bindir)/bltsh30 fixrunpaths.tcl $(tmpdir)
     1702        tar -C /tmp -zclf rappture$(version)-linux-$(arch).tar.gz $(installdir)
     1703        $(RM) -r $(tmpdir)
     1704
  • branches/1.5/aclocal.m4

    r3277 r5906  
    11builtin(include,./cf/tcl.m4)
    2 builtin(include,./cf/ax_compare_version.m4)
    3 builtin(include,./cf/ax_ruby_dev_flags.m4)
    4 builtin(include,./cf/ax_prog_ruby_version.m4)
    5 builtin(include,./cf/rpLangPython.m4)
    6 builtin(include,./cf/rpLangPerl.m4)
    7 builtin(include,./cf/rpLangOctave.m4)
    8 builtin(include,./cf/rpLangJava.m4)
    9 builtin(include,./cf/rpLangMatlab.m4)
    10 builtin(include,./cf/rpLangR.m4)
    11 builtin(include,./cf/rpLangRuby.m4)
  • branches/1.5/configure

    r5862 r5906  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.69 for Rappture 1.4.
     3# Generated by GNU Autoconf 2.69 for Rappture 1.5.
    44#
    55# Report bugs to <rappture@nanohub.org>.
     
    581581PACKAGE_NAME='Rappture'
    582582PACKAGE_TARNAME='rappture'
    583 PACKAGE_VERSION='1.4'
    584 PACKAGE_STRING='Rappture 1.4'
     583PACKAGE_VERSION='1.5'
     584PACKAGE_STRING='Rappture 1.5'
    585585PACKAGE_BUGREPORT='rappture@nanohub.org'
    586586PACKAGE_URL=''
     
    622622#endif"
    623623
    624 enable_option_checking=no
    625624ac_subst_vars='LTLIBOBJS
    626625LIBOBJS
    627 subdirs
    628 VTK_VERSION
    629 VTK_TCL_DIR
     626WITH_TCL
     627WITH_RUBY_SITELIBDIR
     628WITH_RUBY
     629WITH_PYTHON
     630WITH_PERL
     631WITH_OCTAVE
     632WITH_MKOCTFILE3
     633WITH_MKOCTFILE2
     634WITH_MATLAB
     635WITH_JAVA
     636WITH_R
     637WITH_VTK
     638RAPPTURE_VERSION
     639RAPPTURE_RELEASE_SERIAL
     640RAPPTURE_MINOR_VERSION
     641RAPPTURE_MAJOR_VERSION
     642WORDSIZE
     643X_LIBRARIES
     644X_INCLUDES
    630645TK_VERSION
    631646TK_XLIBSW
    632647TK_LIB_SPEC
    633648TK_INC_SPEC
    634 TCL_VERSION
    635649TCL_SHLIB_SUFFIX
    636650TCL_SHLIB_LDFLAGS
     
    646660SIZEOF_INT
    647661SHLIB_LDFLAGS
    648 RUBY_VERSION_RV
    649 RUBY_PLATFORM
    650 RP_BASE
    651 PYTHON_VERSION
    652 PYTHON_SITE_PACKAGES
    653 PYTHON_SITE_DIR
    654 PYTHON_LIBDIR
    655 PYTHON_LIB
    656 PYTHON_LDFLAGS
    657 PYTHON_INCLUDES
    658 PYTHON_INCDIR
    659 PYTHON_DISTUTILS
    660 PYTHON_CFLAGS
    661 PERL_VERSION_RV
    662 PERL_VERSION
    663 PERL_VENDORLIB
    664 PERL_PRIVLIB
    665 PERL_LIBSPEC
    666 PERL_INSTALLARCHLIB
    667 PERL_INCLUDES
    668 PERL_CPPFLAGS
    669 PERL_CCFLAGS
    670 PERL_ARCHLIBEXP
    671 PERL_ARCHLIB
    672 OCTAVE_VERSION_MAJOR
    673 OCTAVE_VERSION
    674 SVN_URL
    675662SVN_VERSION
    676 MKOCTFILE3
    677 MKOCTFILE2
    678 MEX_ARCH
    679663MAKE
    680664LIB_SEARCH_DIRS
    681 JAVA_INC_SPEC
    682 JAVA_INC_DIR
    683 JAVA_HOME
    684665INSTALL_PREFIX
    685 HAVE_RUBY_DEVEL
    686666HAVE_INTTYPES_H
    687 HAVE_FFMPEG_LIBS
    688 ENABLE_VTK_DICOM
    689 ENABLE_VTK
    690 ENABLE_GUI
    691 ENABLE_LANG
    692 FFMPEG
    693667LDFLAGS_DEFAULT
    694668CFLAGS_DEFAULT
    695 host_os
    696 host_vendor
    697 host_cpu
    698 host
    699 build_os
    700 build_vendor
    701 build_cpu
    702 build
    703 HAVE_RUBY_H
    704 RUBY_SITELIBDIR
    705 RUBY_LIBRUBYARG_STATIC
    706 RUBY_LIBRUBYARG
    707 RUBY_LIBS
    708 RUBY_LDFLAGS
    709 RUBY_CXXFLAGS
    710 RUBY_CFLAGS
    711 RUBY_CPPFLAGS
    712 RUBY_VERSION_CODE
    713 RUBY
    714 R
    715 JAVAH
    716 JAVAC
    717 JAVA
    718 PYTHON
    719 XSUBPP
    720 PERL
    721 mkoctfile2
    722 mkoctfile3
    723 MKOCTFILE
    724 OCTAVE
    725 MCC
    726 MEXEXT
    727 MEX
    728 MATLAB
    729 TCLSH
    730669INSTALL_STUB_LIB
    731670INSTALL_LIB
     
    752691AR
    753692CXXCPP
     693XMKMF
    754694EGREP
    755695GREP
     
    816756ac_user_opts='
    817757enable_option_checking
     758with_R
     759with_java
     760with_matlab
     761with_mkoctfile2
     762with_mkoctfile3
     763with_octave
     764with_perl
     765with_python
     766with_ruby
     767with_ruby_sitelibdir
     768with_tcl
    818769with_install
     770with_vtk
     771with_x
    819772enable_64bit
    820773enable_64bit_vis
    821774enable_corefoundation
    822775enable_load
    823 enable_lang
    824 enable_gui
    825 with_ffmpeg
    826 with_tclsh
    827 with_vtk
    828 enable_vtkdicom
    829 with_matlab
    830 with_octave
    831 with_mkoctfile3
    832 with_mkoctfile2
    833 with_perl
    834 with_python
    835 with_java
    836 with_R
    837 with_ruby
    838 with_ruby_sitelibdir
    839 enable_shared
    840776enable_symbols
    841777'
     
    854790FFLAGS
    855791CPP
     792XMKMF
    856793CXXCPP'
    857 ac_subdirs_all='packages/optimizer/src '
     794
    858795
    859796# Initialize some variables set by options.
     
    13951332  # This message is too long to be a string in the A/UX 3.1 sh.
    13961333  cat <<_ACEOF
    1397 \`configure' configures Rappture 1.4 to adapt to many kinds of systems.
     1334\`configure' configures Rappture 1.5 to adapt to many kinds of systems.
    13981335
    13991336Usage: $0 [OPTION]... [VAR=VALUE]...
     
    14521389  cat <<\_ACEOF
    14531390
    1454 System types:
    1455   --build=BUILD     configure for building on BUILD [guessed]
    1456   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
     1391X features:
     1392  --x-includes=DIR    X include files are in DIR
     1393  --x-libraries=DIR   X library files are in DIR
    14571394_ACEOF
    14581395fi
     
    14601397if test -n "$ac_init_help"; then
    14611398  case $ac_init_help in
    1462      short | recursive ) echo "Configuration of Rappture 1.4:";;
     1399     short | recursive ) echo "Configuration of Rappture 1.5:";;
    14631400   esac
    14641401  cat <<\_ACEOF
     
    14721409  --enable-corefoundation use CoreFoundation API --enable-corefoundation
    14731410  --disable-load          disallow dynamic loading and "load" command
    1474   --enable-lang           build language bindings [default=yes]
    1475   --enable-gui            build code related to the graphical user interface
    1476                           [default=yes]
    1477   --enable-vtkdicom       Use vtkDICOM package [default=no]
    1478   --enable-shared         build and link with shared libraries --enable-shared
    14791411  --enable-symbols        build with debugging symbols --disable-symbols
    14801412
     
    14821414  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    14831415  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    1484   --with-install=DIR      location of installation [default=yes]
    1485   --with-ffmpeg=DIR       location of ffmpeg [default=yes]
    1486   --with-tclsh=DIR        location of tclsh [default=yes]
    1487   --with-vtk=version      VTK library version [default=6.0]
     1416  --with-R=DIR            location of R interpreter [default=yes]
     1417  --with-java=DIR         location of java [default=yes]
    14881418  --with-matlab=DIR       location of matlab and mex compiler [default=yes]
     1419  --with-mkoctfile2=DIR   path of octave compiler `mkoctfile' [default=no]
     1420  --with-mkoctfile3=DIR   path of octave compiler `mkoctfile' [default=no]
    14891421  --with-octave=DIR       path of default octave compiler `mkoctfile'
    14901422                          [default=yes]
    1491   --with-mkoctfile3=DIR   path of octave compiler `mkoctfile' [default=no]
    1492   --with-mkoctfile2=DIR   path of octave compiler `mkoctfile' [default=no]
    1493   --with-perl=DIR         location of perl [default=yes]
    1494   --with-python=DIR       location of python [default=yes]
    1495   --with-java=DIR         location of java [default=yes]
    1496   --with-R=DIR            location of R interpreter [default=yes]
     1423  --with-perl=DIR         location of perl library [default=yes]
     1424  --with-python=DIR       location of python library [default=yes]
    14971425  --with-ruby=PATH        path to the ruby interpreter [[ruby]]
    14981426  --with-ruby-sitelibdir=PATH
    14991427                          path to install ruby scripts [[auto-detect]]
     1428  --with-tcl=DIR          location of tcl library [default=yes]
     1429  --with-install=DIR      location of installation [default=yes]
     1430  --with-vtk              Build VTK for rappture
     1431  --with-x                use the X Window System
    15001432
    15011433Some influential environment variables:
     
    15121444  FFLAGS      Fortran 77 compiler flags
    15131445  CPP         C preprocessor
     1446  XMKMF       Path to xmkmf, Makefile generator for X Window System
    15141447  CXXCPP      C++ preprocessor
    15151448
     
    15801513if $ac_init_version; then
    15811514  cat <<\_ACEOF
    1582 Rappture configure 1.4
     1515Rappture configure 1.5
    15831516generated by GNU Autoconf 2.69
    15841517
     
    19001833} # ac_fn_c_check_func
    19011834
     1835# ac_fn_cxx_try_cpp LINENO
     1836# ------------------------
     1837# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
     1838ac_fn_cxx_try_cpp ()
     1839{
     1840  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1841  if { { ac_try="$ac_cpp conftest.$ac_ext"
     1842case "(($ac_try" in
     1843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1844  *) ac_try_echo=$ac_try;;
     1845esac
     1846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1847$as_echo "$ac_try_echo"; } >&5
     1848  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
     1849  ac_status=$?
     1850  if test -s conftest.err; then
     1851    grep -v '^ *+' conftest.err >conftest.er1
     1852    cat conftest.er1 >&5
     1853    mv -f conftest.er1 conftest.err
     1854  fi
     1855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1856  test $ac_status = 0; } > conftest.i && {
     1857         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
     1858         test ! -s conftest.err
     1859       }; then :
     1860  ac_retval=0
     1861else
     1862  $as_echo "$as_me: failed program was:" >&5
     1863sed 's/^/| /' conftest.$ac_ext >&5
     1864
     1865    ac_retval=1
     1866fi
     1867  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1868  as_fn_set_status $ac_retval
     1869
     1870} # ac_fn_cxx_try_cpp
     1871
    19021872# ac_fn_cxx_try_link LINENO
    19031873# -------------------------
     
    19461916} # ac_fn_cxx_try_link
    19471917
     1918# ac_fn_cxx_try_run LINENO
     1919# ------------------------
     1920# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
     1921# that executables *can* be run.
     1922ac_fn_cxx_try_run ()
     1923{
     1924  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1925  if { { ac_try="$ac_link"
     1926case "(($ac_try" in
     1927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1928  *) ac_try_echo=$ac_try;;
     1929esac
     1930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1931$as_echo "$ac_try_echo"; } >&5
     1932  (eval "$ac_link") 2>&5
     1933  ac_status=$?
     1934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1935  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
     1936  { { case "(($ac_try" in
     1937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1938  *) ac_try_echo=$ac_try;;
     1939esac
     1940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1941$as_echo "$ac_try_echo"; } >&5
     1942  (eval "$ac_try") 2>&5
     1943  ac_status=$?
     1944  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1945  test $ac_status = 0; }; }; then :
     1946  ac_retval=0
     1947else
     1948  $as_echo "$as_me: program exited with status $ac_status" >&5
     1949       $as_echo "$as_me: failed program was:" >&5
     1950sed 's/^/| /' conftest.$ac_ext >&5
     1951
     1952       ac_retval=$ac_status
     1953fi
     1954  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     1955  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1956  as_fn_set_status $ac_retval
     1957
     1958} # ac_fn_cxx_try_run
     1959
     1960# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
     1961# ---------------------------------------------------------
     1962# Tests whether HEADER exists and can be compiled using the include files in
     1963# INCLUDES, setting the cache variable VAR accordingly.
     1964ac_fn_cxx_check_header_compile ()
     1965{
     1966  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1967  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1968$as_echo_n "checking for $2... " >&6; }
     1969if eval \${$3+:} false; then :
     1970  $as_echo_n "(cached) " >&6
     1971else
     1972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1973/* end confdefs.h.  */
     1974$4
     1975#include <$2>
     1976_ACEOF
     1977if ac_fn_cxx_try_compile "$LINENO"; then :
     1978  eval "$3=yes"
     1979else
     1980  eval "$3=no"
     1981fi
     1982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1983fi
     1984eval ac_res=\$$3
     1985               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1986$as_echo "$ac_res" >&6; }
     1987  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1988
     1989} # ac_fn_cxx_check_header_compile
     1990
     1991# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
     1992# ----------------------------------------------
     1993# Tries to find the compile-time value of EXPR in a program that includes
     1994# INCLUDES, setting VAR accordingly. Returns whether the value could be
     1995# computed
     1996ac_fn_cxx_compute_int ()
     1997{
     1998  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1999  if test "$cross_compiling" = yes; then
     2000    # Depending upon the size, compute the lo and hi bounds.
     2001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2002/* end confdefs.h.  */
     2003$4
     2004int
     2005main ()
     2006{
     2007static int test_array [1 - 2 * !(($2) >= 0)];
     2008test_array [0] = 0;
     2009return test_array [0];
     2010
     2011  ;
     2012  return 0;
     2013}
     2014_ACEOF
     2015if ac_fn_cxx_try_compile "$LINENO"; then :
     2016  ac_lo=0 ac_mid=0
     2017  while :; do
     2018    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2019/* end confdefs.h.  */
     2020$4
     2021int
     2022main ()
     2023{
     2024static int test_array [1 - 2 * !(($2) <= $ac_mid)];
     2025test_array [0] = 0;
     2026return test_array [0];
     2027
     2028  ;
     2029  return 0;
     2030}
     2031_ACEOF
     2032if ac_fn_cxx_try_compile "$LINENO"; then :
     2033  ac_hi=$ac_mid; break
     2034else
     2035  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
     2036                        if test $ac_lo -le $ac_mid; then
     2037                          ac_lo= ac_hi=
     2038                          break
     2039                        fi
     2040                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
     2041fi
     2042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2043  done
     2044else
     2045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2046/* end confdefs.h.  */
     2047$4
     2048int
     2049main ()
     2050{
     2051static int test_array [1 - 2 * !(($2) < 0)];
     2052test_array [0] = 0;
     2053return test_array [0];
     2054
     2055  ;
     2056  return 0;
     2057}
     2058_ACEOF
     2059if ac_fn_cxx_try_compile "$LINENO"; then :
     2060  ac_hi=-1 ac_mid=-1
     2061  while :; do
     2062    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2063/* end confdefs.h.  */
     2064$4
     2065int
     2066main ()
     2067{
     2068static int test_array [1 - 2 * !(($2) >= $ac_mid)];
     2069test_array [0] = 0;
     2070return test_array [0];
     2071
     2072  ;
     2073  return 0;
     2074}
     2075_ACEOF
     2076if ac_fn_cxx_try_compile "$LINENO"; then :
     2077  ac_lo=$ac_mid; break
     2078else
     2079  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
     2080                        if test $ac_mid -le $ac_hi; then
     2081                          ac_lo= ac_hi=
     2082                          break
     2083                        fi
     2084                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
     2085fi
     2086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2087  done
     2088else
     2089  ac_lo= ac_hi=
     2090fi
     2091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2092fi
     2093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2094# Binary search between lo and hi bounds.
     2095while test "x$ac_lo" != "x$ac_hi"; do
     2096  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
     2097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2098/* end confdefs.h.  */
     2099$4
     2100int
     2101main ()
     2102{
     2103static int test_array [1 - 2 * !(($2) <= $ac_mid)];
     2104test_array [0] = 0;
     2105return test_array [0];
     2106
     2107  ;
     2108  return 0;
     2109}
     2110_ACEOF
     2111if ac_fn_cxx_try_compile "$LINENO"; then :
     2112  ac_hi=$ac_mid
     2113else
     2114  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
     2115fi
     2116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2117done
     2118case $ac_lo in #((
     2119?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
     2120'') ac_retval=1 ;;
     2121esac
     2122  else
     2123    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2124/* end confdefs.h.  */
     2125$4
     2126static long int longval () { return $2; }
     2127static unsigned long int ulongval () { return $2; }
     2128#include <stdio.h>
     2129#include <stdlib.h>
     2130int
     2131main ()
     2132{
     2133
     2134  FILE *f = fopen ("conftest.val", "w");
     2135  if (! f)
     2136    return 1;
     2137  if (($2) < 0)
     2138    {
     2139      long int i = longval ();
     2140      if (i != ($2))
     2141        return 1;
     2142      fprintf (f, "%ld", i);
     2143    }
     2144  else
     2145    {
     2146      unsigned long int i = ulongval ();
     2147      if (i != ($2))
     2148        return 1;
     2149      fprintf (f, "%lu", i);
     2150    }
     2151  /* Do not output a trailing newline, as this causes \r\n confusion
     2152     on some platforms.  */
     2153  return ferror (f) || fclose (f) != 0;
     2154
     2155  ;
     2156  return 0;
     2157}
     2158_ACEOF
     2159if ac_fn_cxx_try_run "$LINENO"; then :
     2160  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
     2161else
     2162  ac_retval=1
     2163fi
     2164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     2165  conftest.$ac_objext conftest.beam conftest.$ac_ext
     2166rm -f conftest.val
     2167
     2168  fi
     2169  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     2170  as_fn_set_status $ac_retval
     2171
     2172} # ac_fn_cxx_compute_int
     2173
    19482174# ac_fn_cxx_check_func LINENO FUNC VAR
    19492175# ------------------------------------
     
    20122238
    20132239} # ac_fn_cxx_check_func
    2014 
    2015 # ac_fn_cxx_try_cpp LINENO
    2016 # ------------------------
    2017 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
    2018 ac_fn_cxx_try_cpp ()
    2019 {
    2020   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    2021   if { { ac_try="$ac_cpp conftest.$ac_ext"
    2022 case "(($ac_try" in
    2023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2024   *) ac_try_echo=$ac_try;;
    2025 esac
    2026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    2027 $as_echo "$ac_try_echo"; } >&5
    2028   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
    2029   ac_status=$?
    2030   if test -s conftest.err; then
    2031     grep -v '^ *+' conftest.err >conftest.er1
    2032     cat conftest.er1 >&5
    2033     mv -f conftest.er1 conftest.err
    2034   fi
    2035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    2036   test $ac_status = 0; } > conftest.i && {
    2037          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
    2038          test ! -s conftest.err
    2039        }; then :
    2040   ac_retval=0
    2041 else
    2042   $as_echo "$as_me: failed program was:" >&5
    2043 sed 's/^/| /' conftest.$ac_ext >&5
    2044 
    2045     ac_retval=1
    2046 fi
    2047   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    2048   as_fn_set_status $ac_retval
    2049 
    2050 } # ac_fn_cxx_try_cpp
    20512240
    20522241# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
     
    21402329
    21412330} # ac_fn_cxx_check_header_mongrel
    2142 
    2143 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
    2144 # ---------------------------------------------------------
    2145 # Tests whether HEADER exists and can be compiled using the include files in
    2146 # INCLUDES, setting the cache variable VAR accordingly.
    2147 ac_fn_cxx_check_header_compile ()
    2148 {
    2149   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    2150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    2151 $as_echo_n "checking for $2... " >&6; }
    2152 if eval \${$3+:} false; then :
    2153   $as_echo_n "(cached) " >&6
    2154 else
    2155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2156 /* end confdefs.h.  */
    2157 $4
    2158 #include <$2>
    2159 _ACEOF
    2160 if ac_fn_cxx_try_compile "$LINENO"; then :
    2161   eval "$3=yes"
    2162 else
    2163   eval "$3=no"
    2164 fi
    2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2166 fi
    2167 eval ac_res=\$$3
    2168                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    2169 $as_echo "$ac_res" >&6; }
    2170   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    2171 
    2172 } # ac_fn_cxx_check_header_compile
    2173 
    2174 # ac_fn_cxx_try_run LINENO
    2175 # ------------------------
    2176 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
    2177 # that executables *can* be run.
    2178 ac_fn_cxx_try_run ()
    2179 {
    2180   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    2181   if { { ac_try="$ac_link"
    2182 case "(($ac_try" in
    2183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2184   *) ac_try_echo=$ac_try;;
    2185 esac
    2186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    2187 $as_echo "$ac_try_echo"; } >&5
    2188   (eval "$ac_link") 2>&5
    2189   ac_status=$?
    2190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    2191   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
    2192   { { case "(($ac_try" in
    2193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2194   *) ac_try_echo=$ac_try;;
    2195 esac
    2196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    2197 $as_echo "$ac_try_echo"; } >&5
    2198   (eval "$ac_try") 2>&5
    2199   ac_status=$?
    2200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    2201   test $ac_status = 0; }; }; then :
    2202   ac_retval=0
    2203 else
    2204   $as_echo "$as_me: program exited with status $ac_status" >&5
    2205        $as_echo "$as_me: failed program was:" >&5
    2206 sed 's/^/| /' conftest.$ac_ext >&5
    2207 
    2208        ac_retval=$ac_status
    2209 fi
    2210   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
    2211   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    2212   as_fn_set_status $ac_retval
    2213 
    2214 } # ac_fn_cxx_try_run
    2215 
    2216 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
    2217 # ----------------------------------------------
    2218 # Tries to find the compile-time value of EXPR in a program that includes
    2219 # INCLUDES, setting VAR accordingly. Returns whether the value could be
    2220 # computed
    2221 ac_fn_cxx_compute_int ()
    2222 {
    2223   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    2224   if test "$cross_compiling" = yes; then
    2225     # Depending upon the size, compute the lo and hi bounds.
    2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2227 /* end confdefs.h.  */
    2228 $4
    2229 int
    2230 main ()
    2231 {
    2232 static int test_array [1 - 2 * !(($2) >= 0)];
    2233 test_array [0] = 0;
    2234 return test_array [0];
    2235 
    2236   ;
    2237   return 0;
    2238 }
    2239 _ACEOF
    2240 if ac_fn_cxx_try_compile "$LINENO"; then :
    2241   ac_lo=0 ac_mid=0
    2242   while :; do
    2243     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2244 /* end confdefs.h.  */
    2245 $4
    2246 int
    2247 main ()
    2248 {
    2249 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
    2250 test_array [0] = 0;
    2251 return test_array [0];
    2252 
    2253   ;
    2254   return 0;
    2255 }
    2256 _ACEOF
    2257 if ac_fn_cxx_try_compile "$LINENO"; then :
    2258   ac_hi=$ac_mid; break
    2259 else
    2260   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
    2261                         if test $ac_lo -le $ac_mid; then
    2262                           ac_lo= ac_hi=
    2263                           break
    2264                         fi
    2265                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
    2266 fi
    2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2268   done
    2269 else
    2270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2271 /* end confdefs.h.  */
    2272 $4
    2273 int
    2274 main ()
    2275 {
    2276 static int test_array [1 - 2 * !(($2) < 0)];
    2277 test_array [0] = 0;
    2278 return test_array [0];
    2279 
    2280   ;
    2281   return 0;
    2282 }
    2283 _ACEOF
    2284 if ac_fn_cxx_try_compile "$LINENO"; then :
    2285   ac_hi=-1 ac_mid=-1
    2286   while :; do
    2287     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2288 /* end confdefs.h.  */
    2289 $4
    2290 int
    2291 main ()
    2292 {
    2293 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
    2294 test_array [0] = 0;
    2295 return test_array [0];
    2296 
    2297   ;
    2298   return 0;
    2299 }
    2300 _ACEOF
    2301 if ac_fn_cxx_try_compile "$LINENO"; then :
    2302   ac_lo=$ac_mid; break
    2303 else
    2304   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
    2305                         if test $ac_mid -le $ac_hi; then
    2306                           ac_lo= ac_hi=
    2307                           break
    2308                         fi
    2309                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
    2310 fi
    2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2312   done
    2313 else
    2314   ac_lo= ac_hi=
    2315 fi
    2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2317 fi
    2318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2319 # Binary search between lo and hi bounds.
    2320 while test "x$ac_lo" != "x$ac_hi"; do
    2321   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
    2322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2323 /* end confdefs.h.  */
    2324 $4
    2325 int
    2326 main ()
    2327 {
    2328 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
    2329 test_array [0] = 0;
    2330 return test_array [0];
    2331 
    2332   ;
    2333   return 0;
    2334 }
    2335 _ACEOF
    2336 if ac_fn_cxx_try_compile "$LINENO"; then :
    2337   ac_hi=$ac_mid
    2338 else
    2339   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
    2340 fi
    2341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2342 done
    2343 case $ac_lo in #((
    2344 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
    2345 '') ac_retval=1 ;;
    2346 esac
    2347   else
    2348     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2349 /* end confdefs.h.  */
    2350 $4
    2351 static long int longval () { return $2; }
    2352 static unsigned long int ulongval () { return $2; }
    2353 #include <stdio.h>
    2354 #include <stdlib.h>
    2355 int
    2356 main ()
    2357 {
    2358 
    2359   FILE *f = fopen ("conftest.val", "w");
    2360   if (! f)
    2361     return 1;
    2362   if (($2) < 0)
    2363     {
    2364       long int i = longval ();
    2365       if (i != ($2))
    2366         return 1;
    2367       fprintf (f, "%ld", i);
    2368     }
    2369   else
    2370     {
    2371       unsigned long int i = ulongval ();
    2372       if (i != ($2))
    2373         return 1;
    2374       fprintf (f, "%lu", i);
    2375     }
    2376   /* Do not output a trailing newline, as this causes \r\n confusion
    2377      on some platforms.  */
    2378   return ferror (f) || fclose (f) != 0;
    2379 
    2380   ;
    2381   return 0;
    2382 }
    2383 _ACEOF
    2384 if ac_fn_cxx_try_run "$LINENO"; then :
    2385   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
    2386 else
    2387   ac_retval=1
    2388 fi
    2389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
    2390   conftest.$ac_objext conftest.beam conftest.$ac_ext
    2391 rm -f conftest.val
    2392 
    2393   fi
    2394   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    2395   as_fn_set_status $ac_retval
    2396 
    2397 } # ac_fn_cxx_compute_int
    23982331cat >config.log <<_ACEOF
    23992332This file contains any messages produced by compilers while
    24002333running configure, to aid debugging if configure makes a mistake.
    24012334
    2402 It was created by Rappture $as_me 1.4, which was
     2335It was created by Rappture $as_me 1.5, which was
    24032336generated by GNU Autoconf 2.69.  Invocation command line was
    24042337
     
    27772710
    27782711
    2779 ac_config_headers="$ac_config_headers src/core/config.h"
     2712ac_config_headers="$ac_config_headers libs/rappture/config.h"
     2713
     2714
     2715RAPPTURE_MAJOR_VERSION=1
     2716RAPPTURE_MINOR_VERSION=5
     2717RAPPTURE_RELEASE_SERIAL=0
     2718RAPPTURE_VERSION=1.5
     2719
     2720WITH_R=yes
     2721WITH_JAVA=yes
     2722WITH_MATLAB=yes
     2723WITH_MKOCTFILE2=yes
     2724WITH_MKOCTFILE3=yes
     2725WITH_OCTAVE=yes
     2726WITH_PERL=yes
     2727WITH_PYTHON=yes
     2728WITH_RUBY=yes
     2729WITH_RUBY_SITELIBDIR=yes
     2730WITH_TCL=yes
     2731
     2732
     2733# Check whether --with-R was given.
     2734if test "${with_R+set}" = set; then :
     2735  withval=$with_R; WITH_R=${with_val}
     2736else
     2737  WITH_R=yes
     2738fi
     2739
     2740
     2741
     2742# Check whether --with-java was given.
     2743if test "${with_java+set}" = set; then :
     2744  withval=$with_java; WITH_JAVA=${with_val}
     2745else
     2746  WITH_JAVA=yes
     2747fi
     2748
     2749
     2750
     2751# Check whether --with-matlab was given.
     2752if test "${with_matlab+set}" = set; then :
     2753  withval=$with_matlab; WITH_MATLAB=${with_val}
     2754else
     2755  WITH_MATLAB=yes
     2756fi
     2757
     2758
     2759
     2760# Check whether --with-mkoctfile2 was given.
     2761if test "${with_mkoctfile2+set}" = set; then :
     2762  withval=$with_mkoctfile2; WITH_MKOCTFILE2=${with_val}
     2763else
     2764  WITH_MKOCTFILE2=no
     2765fi
     2766
     2767
     2768
     2769# Check whether --with-mkoctfile3 was given.
     2770if test "${with_mkoctfile3+set}" = set; then :
     2771  withval=$with_mkoctfile3; WITH_MKOCTFILE3=${with_val}
     2772else
     2773  WITH_MKOCTFILE3=no
     2774fi
     2775
     2776
     2777
     2778# Check whether --with-octave was given.
     2779if test "${with_octave+set}" = set; then :
     2780  withval=$with_octave; WITH_OCTAVE=${with_val}
     2781else
     2782  with_octave=yes
     2783fi
     2784
     2785
     2786
     2787# Check whether --with-perl was given.
     2788if test "${with_perl+set}" = set; then :
     2789  withval=$with_perl; WITH_PERL=${with_val}
     2790else
     2791  WITH_PERL=yes
     2792fi
     2793
     2794
     2795
     2796# Check whether --with-python was given.
     2797if test "${with_python+set}" = set; then :
     2798  withval=$with_python; WITH_PYTHON=${with_val}
     2799else
     2800  WITH_PYTHON=yes
     2801fi
     2802
     2803
     2804
     2805# Check whether --with-ruby was given.
     2806if test "${with_ruby+set}" = set; then :
     2807  withval=$with_ruby; WITH_RUBY=${with_val}
     2808else
     2809  WITH_RUBY=yes
     2810fi
     2811
     2812
     2813
     2814# Check whether --with-ruby_sitelibdir was given.
     2815if test "${with_ruby_sitelibdir+set}" = set; then :
     2816  withval=$with_ruby_sitelibdir; WITH_RUBY_SITELIBDIR=${with_val}
     2817else
     2818  WITH_RUBY_SITELIBDIR=NONE
     2819fi
     2820
     2821
     2822
     2823# Check whether --with-tcl was given.
     2824if test "${with_tcl+set}" = set; then :
     2825  withval=$with_tcl; WITH_TCL=${with_val}
     2826else
     2827  WITH_TCL=yes
     2828fi
     2829
     2830
     2831
     2832# Check whether --with-install was given.
     2833if test "${with_install+set}" = set; then :
     2834  withval=$with_install; WITH_INSTALL=${withval}
     2835else
     2836  WITH_INSTALL=yes
     2837fi
     2838
     2839
     2840
     2841# Check whether --with-vtk was given.
     2842if test "${with_vtk+set}" = set; then :
     2843  withval=$with_vtk; WITH_VTK=${withval}
     2844else
     2845  WITH_VTK=no
     2846fi
    27802847
    27812848
     
    27902857    exec_prefix=$prefix
    27912858fi
    2792 
    2793 
    2794 # Check whether --with-install was given.
    2795 if test "${with_install+set}" = set; then :
    2796   withval=$with_install;
    2797 else
    2798   with_install=yes
    2799 fi
    2800 
    2801 
    2802 if test "$with_install" != "yes"; then
    2803     INSTALL_PREFIX=$with_install
    2804 else
    2805     INSTALL_PREFIX=$prefix
    2806 fi
    2807 
    2808 
    2809 if test "${libdir}" != "${prefix}/lib"; then
    2810     LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}"
    2811 else
    2812     LIB_SEARCH_DIRS="-L${libdir}"
    2813 fi
    2814 
    28152859
    28162860# Find a good install program.  We prefer a C program (faster),
     
    29072951test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    29082952
    2909 
    29102953if test -n "$ac_tool_prefix"; then
    29112954  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
     
    47484791
    47494792
    4750 
    4751 for ac_func in sysinfo
    4752 do :
    4753   ac_fn_cxx_check_func "$LINENO" "sysinfo" "ac_cv_func_sysinfo"
    4754 if test "x$ac_cv_func_sysinfo" = xyes; then :
    4755   cat >>confdefs.h <<_ACEOF
    4756 #define HAVE_SYSINFO 1
    4757 _ACEOF
    4758 
    4759 fi
    4760 done
    4761 
    4762 for ac_func in gettimeofday
    4763 do :
    4764   ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
    4765 if test "x$ac_cv_func_gettimeofday" = xyes; then :
    4766   cat >>confdefs.h <<_ACEOF
    4767 #define HAVE_GETTIMEOFDAY 1
    4768 _ACEOF
    4769 
    4770 fi
    4771 done
    4772 
    4773 ac_fn_cxx_check_func "$LINENO" "localtime" "ac_cv_func_localtime"
    4774 if test "x$ac_cv_func_localtime" = xyes; then :
    4775 
    4776 else
    4777   as_fn_error $? "oops! no localtime ?!?" "$LINENO" 5
    4778 fi
    4779 
    4780 ac_fn_cxx_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
    4781 if test "x$ac_cv_func_getenv" = xyes; then :
    4782 
    4783 else
    4784   as_fn_error $? "oops! no getenv ?!?" "$LINENO" 5
    4785 fi
    4786 
    4787 
    47884793ac_ext=cpp
    47894794ac_cpp='$CXXCPP $CPPFLAGS'
     
    49204925
    49214926
     4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
     4928$as_echo_n "checking for X... " >&6; }
     4929
     4930
     4931# Check whether --with-x was given.
     4932if test "${with_x+set}" = set; then :
     4933  withval=$with_x;
     4934fi
     4935
     4936# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
     4937if test "x$with_x" = xno; then
     4938  # The user explicitly disabled X.
     4939  have_x=disabled
     4940else
     4941  case $x_includes,$x_libraries in #(
     4942    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
     4943    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
     4944  $as_echo_n "(cached) " >&6
     4945else
     4946  # One or both of the vars are not set, and there is no cached value.
     4947ac_x_includes=no ac_x_libraries=no
     4948rm -f -r conftest.dir
     4949if mkdir conftest.dir; then
     4950  cd conftest.dir
     4951  cat >Imakefile <<'_ACEOF'
     4952incroot:
     4953        @echo incroot='${INCROOT}'
     4954usrlibdir:
     4955        @echo usrlibdir='${USRLIBDIR}'
     4956libdir:
     4957        @echo libdir='${LIBDIR}'
     4958_ACEOF
     4959  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
     4960    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
     4961    for ac_var in incroot usrlibdir libdir; do
     4962      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
     4963    done
     4964    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
     4965    for ac_extension in a so sl dylib la dll; do
     4966      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
     4967         test -f "$ac_im_libdir/libX11.$ac_extension"; then
     4968        ac_im_usrlibdir=$ac_im_libdir; break
     4969      fi
     4970    done
     4971    # Screen out bogus values from the imake configuration.  They are
     4972    # bogus both because they are the default anyway, and because
     4973    # using them would break gcc on systems where it needs fixed includes.
     4974    case $ac_im_incroot in
     4975        /usr/include) ac_x_includes= ;;
     4976        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
     4977    esac
     4978    case $ac_im_usrlibdir in
     4979        /usr/lib | /usr/lib64 | /lib | /lib64) ;;
     4980        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
     4981    esac
     4982  fi
     4983  cd ..
     4984  rm -f -r conftest.dir
     4985fi
     4986
     4987# Standard set of common directories for X headers.
     4988# Check X11 before X11Rn because it is often a symlink to the current release.
     4989ac_x_header_dirs='
     4990/usr/X11/include
     4991/usr/X11R7/include
     4992/usr/X11R6/include
     4993/usr/X11R5/include
     4994/usr/X11R4/include
     4995
     4996/usr/include/X11
     4997/usr/include/X11R7
     4998/usr/include/X11R6
     4999/usr/include/X11R5
     5000/usr/include/X11R4
     5001
     5002/usr/local/X11/include
     5003/usr/local/X11R7/include
     5004/usr/local/X11R6/include
     5005/usr/local/X11R5/include
     5006/usr/local/X11R4/include
     5007
     5008/usr/local/include/X11
     5009/usr/local/include/X11R7
     5010/usr/local/include/X11R6
     5011/usr/local/include/X11R5
     5012/usr/local/include/X11R4
     5013
     5014/usr/X386/include
     5015/usr/x386/include
     5016/usr/XFree86/include/X11
     5017
     5018/usr/include
     5019/usr/local/include
     5020/usr/unsupported/include
     5021/usr/athena/include
     5022/usr/local/x11r5/include
     5023/usr/lpp/Xamples/include
     5024
     5025/usr/openwin/include
     5026/usr/openwin/share/include'
     5027
     5028if test "$ac_x_includes" = no; then
     5029  # Guess where to find include files, by looking for Xlib.h.
     5030  # First, try using that file with no special directory specified.
     5031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5032/* end confdefs.h.  */
     5033#include <X11/Xlib.h>
     5034_ACEOF
     5035if ac_fn_cxx_try_cpp "$LINENO"; then :
     5036  # We can compile using X headers with no special include directory.
     5037ac_x_includes=
     5038else
     5039  for ac_dir in $ac_x_header_dirs; do
     5040  if test -r "$ac_dir/X11/Xlib.h"; then
     5041    ac_x_includes=$ac_dir
     5042    break
     5043  fi
     5044done
     5045fi
     5046rm -f conftest.err conftest.i conftest.$ac_ext
     5047fi # $ac_x_includes = no
     5048
     5049if test "$ac_x_libraries" = no; then
     5050  # Check for the libraries.
     5051  # See if we find them without any special options.
     5052  # Don't add to $LIBS permanently.
     5053  ac_save_LIBS=$LIBS
     5054  LIBS="-lX11 $LIBS"
     5055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5056/* end confdefs.h.  */
     5057#include <X11/Xlib.h>
     5058int
     5059main ()
     5060{
     5061XrmInitialize ()
     5062  ;
     5063  return 0;
     5064}
     5065_ACEOF
     5066if ac_fn_cxx_try_link "$LINENO"; then :
     5067  LIBS=$ac_save_LIBS
     5068# We can link X programs with no special library path.
     5069ac_x_libraries=
     5070else
     5071  LIBS=$ac_save_LIBS
     5072for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
     5073do
     5074  # Don't even attempt the hair of trying to link an X program!
     5075  for ac_extension in a so sl dylib la dll; do
     5076    if test -r "$ac_dir/libX11.$ac_extension"; then
     5077      ac_x_libraries=$ac_dir
     5078      break 2
     5079    fi
     5080  done
     5081done
     5082fi
     5083rm -f core conftest.err conftest.$ac_objext \
     5084    conftest$ac_exeext conftest.$ac_ext
     5085fi # $ac_x_libraries = no
     5086
     5087case $ac_x_includes,$ac_x_libraries in #(
     5088  no,* | *,no | *\'*)
     5089    # Didn't find X, or a directory has "'" in its name.
     5090    ac_cv_have_x="have_x=no";; #(
     5091  *)
     5092    # Record where we found X for the cache.
     5093    ac_cv_have_x="have_x=yes\
     5094        ac_x_includes='$ac_x_includes'\
     5095        ac_x_libraries='$ac_x_libraries'"
     5096esac
     5097fi
     5098;; #(
     5099    *) have_x=yes;;
     5100  esac
     5101  eval "$ac_cv_have_x"
     5102fi # $with_x != no
     5103
     5104if test "$have_x" != yes; then
     5105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
     5106$as_echo "$have_x" >&6; }
     5107  no_x=yes
     5108else
     5109  # If each of the values was on the command line, it overrides each guess.
     5110  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
     5111  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
     5112  # Update the cache value to reflect the command line values.
     5113  ac_cv_have_x="have_x=yes\
     5114        ac_x_includes='$x_includes'\
     5115        ac_x_libraries='$x_libraries'"
     5116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
     5117$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
     5118fi
     5119
     5120
     5121# -----------------------------------------------------------------------
     5122#
     5123# Compiler characteristics:
     5124#   Check for existence of types of size_t and pid_t
     5125#
     5126# -----------------------------------------------------------------------
     5127
    49225128# On IRIX 5.3, sys/types and inttypes.h are conflicting.
    49235129for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
     
    49355141
    49365142done
     5143
     5144
     5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
     5146$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
     5147if ${ac_cv_c_bigendian+:} false; then :
     5148  $as_echo_n "(cached) " >&6
     5149else
     5150  ac_cv_c_bigendian=unknown
     5151    # See if we're dealing with a universal compiler.
     5152    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5153/* end confdefs.h.  */
     5154#ifndef __APPLE_CC__
     5155               not a universal capable compiler
     5156             #endif
     5157             typedef int dummy;
     5158
     5159_ACEOF
     5160if ac_fn_cxx_try_compile "$LINENO"; then :
     5161
     5162        # Check for potential -arch flags.  It is not universal unless
     5163        # there are at least two -arch flags with different values.
     5164        ac_arch=
     5165        ac_prev=
     5166        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
     5167         if test -n "$ac_prev"; then
     5168           case $ac_word in
     5169             i?86 | x86_64 | ppc | ppc64)
     5170               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
     5171                 ac_arch=$ac_word
     5172               else
     5173                 ac_cv_c_bigendian=universal
     5174                 break
     5175               fi
     5176               ;;
     5177           esac
     5178           ac_prev=
     5179         elif test "x$ac_word" = "x-arch"; then
     5180           ac_prev=arch
     5181         fi
     5182       done
     5183fi
     5184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5185    if test $ac_cv_c_bigendian = unknown; then
     5186      # See if sys/param.h defines the BYTE_ORDER macro.
     5187      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5188/* end confdefs.h.  */
     5189#include <sys/types.h>
     5190             #include <sys/param.h>
     5191
     5192int
     5193main ()
     5194{
     5195#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
     5196                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
     5197                     && LITTLE_ENDIAN)
     5198              bogus endian macros
     5199             #endif
     5200
     5201  ;
     5202  return 0;
     5203}
     5204_ACEOF
     5205if ac_fn_cxx_try_compile "$LINENO"; then :
     5206  # It does; now see whether it defined to BIG_ENDIAN or not.
     5207         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5208/* end confdefs.h.  */
     5209#include <sys/types.h>
     5210                #include <sys/param.h>
     5211
     5212int
     5213main ()
     5214{
     5215#if BYTE_ORDER != BIG_ENDIAN
     5216                 not big endian
     5217                #endif
     5218
     5219  ;
     5220  return 0;
     5221}
     5222_ACEOF
     5223if ac_fn_cxx_try_compile "$LINENO"; then :
     5224  ac_cv_c_bigendian=yes
     5225else
     5226  ac_cv_c_bigendian=no
     5227fi
     5228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5229fi
     5230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5231    fi
     5232    if test $ac_cv_c_bigendian = unknown; then
     5233      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
     5234      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5235/* end confdefs.h.  */
     5236#include <limits.h>
     5237
     5238int
     5239main ()
     5240{
     5241#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
     5242              bogus endian macros
     5243             #endif
     5244
     5245  ;
     5246  return 0;
     5247}
     5248_ACEOF
     5249if ac_fn_cxx_try_compile "$LINENO"; then :
     5250  # It does; now see whether it defined to _BIG_ENDIAN or not.
     5251         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5252/* end confdefs.h.  */
     5253#include <limits.h>
     5254
     5255int
     5256main ()
     5257{
     5258#ifndef _BIG_ENDIAN
     5259                 not big endian
     5260                #endif
     5261
     5262  ;
     5263  return 0;
     5264}
     5265_ACEOF
     5266if ac_fn_cxx_try_compile "$LINENO"; then :
     5267  ac_cv_c_bigendian=yes
     5268else
     5269  ac_cv_c_bigendian=no
     5270fi
     5271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5272fi
     5273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5274    fi
     5275    if test $ac_cv_c_bigendian = unknown; then
     5276      # Compile a test program.
     5277      if test "$cross_compiling" = yes; then :
     5278  # Try to guess by grepping values from an object file.
     5279         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5280/* end confdefs.h.  */
     5281short int ascii_mm[] =
     5282                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
     5283                short int ascii_ii[] =
     5284                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
     5285                int use_ascii (int i) {
     5286                  return ascii_mm[i] + ascii_ii[i];
     5287                }
     5288                short int ebcdic_ii[] =
     5289                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
     5290                short int ebcdic_mm[] =
     5291                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
     5292                int use_ebcdic (int i) {
     5293                  return ebcdic_mm[i] + ebcdic_ii[i];
     5294                }
     5295                extern int foo;
     5296
     5297int
     5298main ()
     5299{
     5300return use_ascii (foo) == use_ebcdic (foo);
     5301  ;
     5302  return 0;
     5303}
     5304_ACEOF
     5305if ac_fn_cxx_try_compile "$LINENO"; then :
     5306  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
     5307              ac_cv_c_bigendian=yes
     5308            fi
     5309            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
     5310              if test "$ac_cv_c_bigendian" = unknown; then
     5311                ac_cv_c_bigendian=no
     5312              else
     5313                # finding both strings is unlikely to happen, but who knows?
     5314                ac_cv_c_bigendian=unknown
     5315              fi
     5316            fi
     5317fi
     5318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5319else
     5320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5321/* end confdefs.h.  */
     5322$ac_includes_default
     5323int
     5324main ()
     5325{
     5326
     5327             /* Are we little or big endian?  From Harbison&Steele.  */
     5328             union
     5329             {
     5330               long int l;
     5331               char c[sizeof (long int)];
     5332             } u;
     5333             u.l = 1;
     5334             return u.c[sizeof (long int) - 1] == 1;
     5335
     5336  ;
     5337  return 0;
     5338}
     5339_ACEOF
     5340if ac_fn_cxx_try_run "$LINENO"; then :
     5341  ac_cv_c_bigendian=no
     5342else
     5343  ac_cv_c_bigendian=yes
     5344fi
     5345rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     5346  conftest.$ac_objext conftest.beam conftest.$ac_ext
     5347fi
     5348
     5349    fi
     5350fi
     5351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
     5352$as_echo "$ac_cv_c_bigendian" >&6; }
     5353 case $ac_cv_c_bigendian in #(
     5354   yes)
     5355     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
     5356;; #(
     5357   no)
     5358      ;; #(
     5359   universal)
     5360
     5361$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
     5362
     5363     ;; #(
     5364   *)
     5365     as_fn_error $? "unknown endianness
     5366 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
     5367 esac
     5368
     5369# The cast to long int works around a bug in the HP C Compiler
     5370# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
     5371# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
     5372# This bug is HP SR number 8606223364.
     5373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
     5374$as_echo_n "checking size of int... " >&6; }
     5375if ${ac_cv_sizeof_int+:} false; then :
     5376  $as_echo_n "(cached) " >&6
     5377else
     5378  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
     5379
     5380else
     5381  if test "$ac_cv_type_int" = yes; then
     5382     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     5383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     5384as_fn_error 77 "cannot compute sizeof (int)
     5385See \`config.log' for more details" "$LINENO" 5; }
     5386   else
     5387     ac_cv_sizeof_int=0
     5388   fi
     5389fi
     5390
     5391fi
     5392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
     5393$as_echo "$ac_cv_sizeof_int" >&6; }
     5394
     5395
     5396
     5397cat >>confdefs.h <<_ACEOF
     5398#define SIZEOF_INT $ac_cv_sizeof_int
     5399_ACEOF
     5400
     5401
     5402# The cast to long int works around a bug in the HP C Compiler
     5403# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
     5404# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
     5405# This bug is HP SR number 8606223364.
     5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
     5407$as_echo_n "checking size of long... " >&6; }
     5408if ${ac_cv_sizeof_long+:} false; then :
     5409  $as_echo_n "(cached) " >&6
     5410else
     5411  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
     5412
     5413else
     5414  if test "$ac_cv_type_long" = yes; then
     5415     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     5416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     5417as_fn_error 77 "cannot compute sizeof (long)
     5418See \`config.log' for more details" "$LINENO" 5; }
     5419   else
     5420     ac_cv_sizeof_long=0
     5421   fi
     5422fi
     5423
     5424fi
     5425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
     5426$as_echo "$ac_cv_sizeof_long" >&6; }
     5427
     5428
     5429
     5430cat >>confdefs.h <<_ACEOF
     5431#define SIZEOF_LONG $ac_cv_sizeof_long
     5432_ACEOF
     5433
     5434
     5435# The cast to long int works around a bug in the HP C Compiler
     5436# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
     5437# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
     5438# This bug is HP SR number 8606223364.
     5439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
     5440$as_echo_n "checking size of long long... " >&6; }
     5441if ${ac_cv_sizeof_long_long+:} false; then :
     5442  $as_echo_n "(cached) " >&6
     5443else
     5444  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
     5445
     5446else
     5447  if test "$ac_cv_type_long_long" = yes; then
     5448     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     5449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     5450as_fn_error 77 "cannot compute sizeof (long long)
     5451See \`config.log' for more details" "$LINENO" 5; }
     5452   else
     5453     ac_cv_sizeof_long_long=0
     5454   fi
     5455fi
     5456
     5457fi
     5458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
     5459$as_echo "$ac_cv_sizeof_long_long" >&6; }
     5460
     5461
     5462
     5463cat >>confdefs.h <<_ACEOF
     5464#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
     5465_ACEOF
     5466
     5467
     5468# The cast to long int works around a bug in the HP C Compiler
     5469# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
     5470# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
     5471# This bug is HP SR number 8606223364.
     5472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
     5473$as_echo_n "checking size of void *... " >&6; }
     5474if ${ac_cv_sizeof_void_p+:} false; then :
     5475  $as_echo_n "(cached) " >&6
     5476else
     5477  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
     5478
     5479else
     5480  if test "$ac_cv_type_void_p" = yes; then
     5481     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     5482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     5483as_fn_error 77 "cannot compute sizeof (void *)
     5484See \`config.log' for more details" "$LINENO" 5; }
     5485   else
     5486     ac_cv_sizeof_void_p=0
     5487   fi
     5488fi
     5489
     5490fi
     5491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
     5492$as_echo "$ac_cv_sizeof_void_p" >&6; }
     5493
     5494
     5495
     5496cat >>confdefs.h <<_ACEOF
     5497#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
     5498_ACEOF
     5499
     5500
     5501
     5502SIZEOF_LONG="${ac_cv_sizeof_long}"
     5503SIZEOF_LONG_LONG="${ac_cv_sizeof_long_long}"
     5504SIZEOF_VOID_P="${ac_cv_sizeof_void_p}"
     5505SIZEOF_INT="${ac_cv_sizeof_int}"
     5506
     5507
     5508for ac_func in sysinfo
     5509do :
     5510  ac_fn_cxx_check_func "$LINENO" "sysinfo" "ac_cv_func_sysinfo"
     5511if test "x$ac_cv_func_sysinfo" = xyes; then :
     5512  cat >>confdefs.h <<_ACEOF
     5513#define HAVE_SYSINFO 1
     5514_ACEOF
     5515
     5516fi
     5517done
     5518
     5519for ac_func in gettimeofday
     5520do :
     5521  ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
     5522if test "x$ac_cv_func_gettimeofday" = xyes; then :
     5523  cat >>confdefs.h <<_ACEOF
     5524#define HAVE_GETTIMEOFDAY 1
     5525_ACEOF
     5526
     5527fi
     5528done
     5529
     5530ac_fn_cxx_check_func "$LINENO" "localtime" "ac_cv_func_localtime"
     5531if test "x$ac_cv_func_localtime" = xyes; then :
     5532
     5533else
     5534  as_fn_error $? "oops! no localtime ?!?" "$LINENO" 5
     5535fi
     5536
     5537ac_fn_cxx_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
     5538if test "x$ac_cv_func_getenv" = xyes; then :
     5539
     5540else
     5541  as_fn_error $? "oops! no getenv ?!?" "$LINENO" 5
     5542fi
    49375543
    49385544
     
    54826088fi
    54836089
     6090
     6091if test "$with_install" != "yes"; then
     6092    INSTALL_PREFIX=$with_install
     6093else
     6094    INSTALL_PREFIX=$prefix
     6095fi
     6096
     6097if test "${libdir}" != "${prefix}/lib"; then
     6098    LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}"
     6099else
     6100    LIB_SEARCH_DIRS="-L${libdir}"
     6101fi
     6102
     6103SVN_VERSION=`svnversion $srcdir`
     6104
     6105make_command=""
     6106for m in "$MAKE" make gmake gnumake ; do
     6107  if test "x${m}" != "x" ; then
     6108    if  ( sh -c "$m --version" 2>/dev/null | grep GNU >/dev/null ) ; then
     6109      make_command=$m; break;
     6110    fi
     6111  fi
     6112done
     6113if test "x${make_command}" = "x" ; then
     6114  as_fn_error $? "Requires GNU make. You can specify a version with \$MAKE" "$LINENO" 5
     6115fi
     6116
     6117#--------------------------------------------------------------------
     6118# Set the default compiler switches based on the --enable-symbols
     6119# option.
     6120#--------------------------------------------------------------------
    54846121
    54856122
     
    72977934
    72987935
    7299 SVN_VERSION=`svnversion $srcdir | sed 's/Unversioned directory/unknown/'`
    7300 SVN_URL=`svn info $srcdir | sed -ne 's/^URL: //p'`
    7301 
    7302 make_command=""
    7303 for m in "$MAKE" make gmake gnumake ; do
    7304   if test "x${m}" != "x" ; then
    7305     if  ( sh -c "$m --version" 2>/dev/null | grep GNU >/dev/null ) ; then
    7306       make_command=$m; break;
    7307     fi
    7308   fi
    7309 done
    7310 if test "x${make_command}" = "x" ; then
    7311   as_fn_error $? "Requires GNU make. You can specify a version with \$MAKE" "$LINENO" 5
    7312 fi
    7313 
    7314 # Check whether --enable-lang was given.
    7315 if test "${enable_lang+set}" = set; then :
    7316   enableval=$enable_lang;
    7317 else
    7318   enable_lang=yes
    7319 fi
    7320 
    7321 
    7322 ENABLE_LANG=
    7323 if test "$enable_lang" != "no" ; then
    7324     ENABLE_LANG="yes"
    7325 fi
    7326 
    7327 # Check whether --enable-gui was given.
    7328 if test "${enable_gui+set}" = set; then :
    7329   enableval=$enable_gui;
    7330 else
    7331   enable_gui=yes
    7332 fi
    7333 
    7334 
    7335 ENABLE_GUI=
    7336 if test "$enable_gui" != "no" ; then
    7337     ENABLE_GUI="yes"
    7338 fi
    7339 
    7340 TCL_VERSION="8.4"
    7341 for dir in \
    7342  ${exec_prefix} \
    7343  ${exec_prefix}/lib ; do
    7344   tclconfig="${dir}/tclConfig.sh"
    7345   if test -f "$tclconfig" ; then
    7346     . $tclconfig
    7347     break
    7348   fi
    7349 done
    7350 
    7351 
    7352 # Check whether --with-ffmpeg was given.
    7353 if test "${with_ffmpeg+set}" = set; then :
    7354   withval=$with_ffmpeg;
    7355 else
    7356   with_ffmpeg=yes
    7357 fi
    7358 
    7359 
    7360 
    7361 # Check whether --with-tclsh was given.
    7362 if test "${with_tclsh+set}" = set; then :
    7363   withval=$with_tclsh;
    7364 else
    7365   with_tclsh=yes
    7366 fi
    7367 
    7368 
    7369 TCLSH=""
    7370 if test "${with_tclsh}" != "no" ; then
    7371   tclsh="tclsh${TCL_VERSION}"
    7372   if test "${with_tclsh}" = "yes" ; then
    7373     # Extract the first word of "${tclsh}", so it can be a program name with args.
    7374 set dummy ${tclsh}; ac_word=$2
    7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    7376 $as_echo_n "checking for $ac_word... " >&6; }
    7377 if ${ac_cv_path_TCLSH+:} false; then :
    7378   $as_echo_n "(cached) " >&6
    7379 else
    7380   case $TCLSH in
    7381   [\\/]* | ?:[\\/]*)
    7382   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
    7383   ;;
    7384   *)
    7385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7386 as_dummy="${exec_prefix}/bin:${PATH}"
    7387 for as_dir in $as_dummy
    7388 do
    7389   IFS=$as_save_IFS
    7390   test -z "$as_dir" && as_dir=.
    7391     for ac_exec_ext in '' $ac_executable_extensions; do
    7392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    7393     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
    7394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    7395     break 2
    7396   fi
    7397 done
    7398   done
    7399 IFS=$as_save_IFS
    7400 
    7401   ;;
    7402 esac
    7403 fi
    7404 TCLSH=$ac_cv_path_TCLSH
    7405 if test -n "$TCLSH"; then
    7406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
    7407 $as_echo "$TCLSH" >&6; }
    7408 else
    7409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    7410 $as_echo "no" >&6; }
    7411 fi
    7412 
    7413 
    7414   else
    7415     # Extract the first word of "${tclsh}", so it can be a program name with args.
    7416 set dummy ${tclsh}; ac_word=$2
    7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    7418 $as_echo_n "checking for $ac_word... " >&6; }
    7419 if ${ac_cv_path_TCLSH+:} false; then :
    7420   $as_echo_n "(cached) " >&6
    7421 else
    7422   case $TCLSH in
    7423   [\\/]* | ?:[\\/]*)
    7424   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
    7425   ;;
    7426   *)
    7427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7428 as_dummy="${with_tclsh}/bin:${with_tclsh}"
    7429 for as_dir in $as_dummy
    7430 do
    7431   IFS=$as_save_IFS
    7432   test -z "$as_dir" && as_dir=.
    7433     for ac_exec_ext in '' $ac_executable_extensions; do
    7434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    7435     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
    7436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    7437     break 2
    7438   fi
    7439 done
    7440   done
    7441 IFS=$as_save_IFS
    7442 
    7443   ;;
    7444 esac
    7445 fi
    7446 TCLSH=$ac_cv_path_TCLSH
    7447 if test -n "$TCLSH"; then
    7448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
    7449 $as_echo "$TCLSH" >&6; }
    7450 else
    7451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    7452 $as_echo "no" >&6; }
    7453 fi
    7454 
    7455 
    7456   fi
    7457   if test "x${TCLSH}" = "x" ; then
    7458     as_fn_error $? "can't find tclsh" "$LINENO" 5
    7459   fi
    7460 fi
    7461 
    7462 
    7463 TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
    7464 
    7465 
    7466 # Check whether --with-vtk was given.
    7467 if test "${with_vtk+set}" = set; then :
    7468   withval=$with_vtk;
    7469 else
    7470   with_vtk=yes
    7471 fi
    7472 
    7473 
    7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vtk" >&5
    7475 $as_echo_n "checking for vtk... " >&6; }
    7476 VTK_VERSION=6.0
    7477 VTK_TCL_DIR=""
    7478 
    7479 ENABLE_VTK=
    7480 if test "$with_vtk" != "no" ; then
    7481   if test "$with_vtk" != "yes" ; then
    7482     VTK_VERSION=$with_vtk
    7483   fi
    7484   if test "x$with_vtk" != "x" ; then
    7485     ENABLE_VTK=yes
    7486     for path in \
    7487      $libdir/tcltk \
    7488      $exec_prefix/lib/tcltk \
    7489      $prefix/lib/tcltk \
    7490      $libdir \
    7491      $prefix/lib \
    7492      $exec_prefix/lib \
    7493      /usr/lib
    7494     do
    7495       if test -d "$path/vtk-$VTK_VERSION" ; then
    7496         VTK_TCL_DIR="$path/vtk-$VTK_VERSION"
    7497       fi
    7498       if test "x${VTK_TCL_DIR}" != "x" ; then
    7499         break
    7500       fi
    7501     done
    7502   fi
    7503 else
    7504   if test "${ENABLE_GUI}" = "yes" ; then
    7505     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: VTK missing: Rappture GUI requires VTK for some features" >&5
    7506 $as_echo "$as_me: WARNING: VTK missing: Rappture GUI requires VTK for some features" >&2;}
    7507   fi
    7508 fi
    7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTK_TCL_DIR" >&5
    7510 $as_echo "$VTK_TCL_DIR" >&6; }
    7511 
    7512 # Check whether --enable-vtkdicom was given.
    7513 if test "${enable_vtkdicom+set}" = set; then :
    7514   enableval=$enable_vtkdicom;
    7515 else
    7516   enable_vtkdicom=no
    7517 fi
    7518 
    7519 
    7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vtkDICOM" >&5
    7521 $as_echo_n "checking for vtkDICOM... " >&6; }
    7522 ENABLE_VTK_DICOM=
    7523 if test "$enable_vtkdicom" != "no" ; then
    7524     ENABLE_VTK_DICOM="yes"
    7525 fi
    7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtkdicom" >&5
    7527 $as_echo "$enable_vtkdicom" >&6; }
    7528 
    7529 
    7530 
    7531 # Check whether --with-matlab was given.
    7532 if test "${with_matlab+set}" = set; then :
    7533   withval=$with_matlab;
    7534 else
    7535   with_matlab=yes
    7536 fi
    7537 
    7538 
    7539 MCC=""
    7540 MEX=""
    7541 MEX_ARCH=""
    7542 MEXEXT=""
    7543 MATLAB=
    7544 if test "$with_matlab" != "no" ; then
    7545   if test "$with_matlab" = "yes" ; then
    7546     # Extract the first word of "matlab", so it can be a program name with args.
    7547 set dummy matlab; ac_word=$2
    7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    7549 $as_echo_n "checking for $ac_word... " >&6; }
    7550 if ${ac_cv_path_MATLAB+:} false; then :
    7551   $as_echo_n "(cached) " >&6
    7552 else
    7553   case $MATLAB in
    7554   [\\/]* | ?:[\\/]*)
    7555   ac_cv_path_MATLAB="$MATLAB" # Let the user override the test with a path.
    7556   ;;
    7557   *)
    7558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7559 for as_dir in $PATH
    7560 do
    7561   IFS=$as_save_IFS
    7562   test -z "$as_dir" && as_dir=.
    7563     for ac_exec_ext in '' $ac_executable_extensions; do
    7564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    7565     ac_cv_path_MATLAB="$as_dir/$ac_word$ac_exec_ext"
    7566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    7567     break 2
    7568   fi
    7569 done
    7570   done
    7571 IFS=$as_save_IFS
    7572 
    7573   ;;
    7574 esac
    7575 fi
    7576 MATLAB=$ac_cv_path_MATLAB
    7577 if test -n "$MATLAB"; then
    7578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MATLAB" >&5
    7579 $as_echo "$MATLAB" >&6; }
    7580 else
    7581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    7582 $as_echo "no" >&6; }
    7583 fi
    7584 
    7585 
    7586   else
    7587     # Extract the first word of "matlab", so it can be a program name with args.
    7588 set dummy matlab; ac_word=$2
    7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    7590 $as_echo_n "checking for $ac_word... " >&6; }
    7591 if ${ac_cv_path_MATLAB+:} false; then :
    7592   $as_echo_n "(cached) " >&6
    7593 else
    7594   case $MATLAB in
    7595   [\\/]* | ?:[\\/]*)
    7596   ac_cv_path_MATLAB="$MATLAB" # Let the user override the test with a path.
    7597   ;;
    7598   *)
    7599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7600 as_dummy="${with_matlab}/bin:${with_matlab}"
    7601 for as_dir in $as_dummy
    7602 do
    7603   IFS=$as_save_IFS
    7604   test -z "$as_dir" && as_dir=.
    7605     for ac_exec_ext in '' $ac_executable_extensions; do
    7606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    7607     ac_cv_path_MATLAB="$as_dir/$ac_word$ac_exec_ext"
    7608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    7609     break 2
    7610   fi
    7611 done
    7612   done
    7613 IFS=$as_save_IFS
    7614 
    7615   ;;
    7616 esac
    7617 fi
    7618 MATLAB=$ac_cv_path_MATLAB
    7619 if test -n "$MATLAB"; then
    7620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MATLAB" >&5
    7621 $as_echo "$MATLAB" >&6; }
    7622 else
    7623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    7624 $as_echo "no" >&6; }
    7625 fi
    7626 
    7627 
    7628   fi
    7629 fi
    7630 
    7631 if test "x$MATLAB" != "x" ; then
    7632   # Found matlab.  May be a symlink to the real binary.  Run "matlab -e"
    7633   # to tell where matlab is installed.
    7634 
    7635   matlab_bindir=`${MATLAB} -e | grep "MATLAB=" | sed s/MATLAB=//`/bin
    7636 
    7637   # Now see if we can find "mex" or "mexext" there.
    7638   # Extract the first word of "mex", so it can be a program name with args.
    7639 set dummy mex; ac_word=$2
    7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    7641 $as_echo_n "checking for $ac_word... " >&6; }
    7642 if ${ac_cv_path_MEX+:} false; then :
    7643   $as_echo_n "(cached) " >&6
    7644 else
    7645   case $MEX in
    7646   [\\/]* | ?:[\\/]*)
    7647   ac_cv_path_MEX="$MEX" # Let the user override the test with a path.
    7648   ;;
    7649   *)
    7650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7651 for as_dir in ${matlab_bindir}
    7652 do
    7653   IFS=$as_save_IFS
    7654   test -z "$as_dir" && as_dir=.
    7655     for ac_exec_ext in '' $ac_executable_extensions; do
    7656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    7657     ac_cv_path_MEX="$as_dir/$ac_word$ac_exec_ext"
    7658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    7659     break 2
    7660   fi
    7661 done
    7662   done
    7663 IFS=$as_save_IFS
    7664 
    7665   ;;
    7666 esac
    7667 fi
    7668 MEX=$ac_cv_path_MEX
    7669 if test -n "$MEX"; then
    7670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEX" >&5
    7671 $as_echo "$MEX" >&6; }
    7672 else
    7673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    7674 $as_echo "no" >&6; }
    7675 fi
    7676 
    7677 
    7678   # Extract the first word of "mexext", so it can be a program name with args.
    7679 set dummy mexext; ac_word=$2
    7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    7681 $as_echo_n "checking for $ac_word... " >&6; }
    7682 if ${ac_cv_path_MEXEXT+:} false; then :
    7683   $as_echo_n "(cached) " >&6
    7684 else
    7685   case $MEXEXT in
    7686   [\\/]* | ?:[\\/]*)
    7687   ac_cv_path_MEXEXT="$MEXEXT" # Let the user override the test with a path.
    7688   ;;
    7689   *)
    7690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7691 for as_dir in ${matlab_bindir}
    7692 do
    7693   IFS=$as_save_IFS
    7694   test -z "$as_dir" && as_dir=.
    7695     for ac_exec_ext in '' $ac_executable_extensions; do
    7696   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    7697     ac_cv_path_MEXEXT="$as_dir/$ac_word$ac_exec_ext"
    7698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    7699     break 2
    7700   fi
    7701 done
    7702   done
    7703 IFS=$as_save_IFS
    7704 
    7705   ;;
    7706 esac
    7707 fi
    7708 MEXEXT=$ac_cv_path_MEXEXT
    7709 if test -n "$MEXEXT"; then
    7710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEXEXT" >&5
    7711 $as_echo "$MEXEXT" >&6; }
    7712 else
    7713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    7714 $as_echo "no" >&6; }
    7715 fi
    7716 
    7717 
    7718 
    7719   # Run "mexext" to get the expected module extension for this platform.
    7720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mex extension" >&5
    7721 $as_echo_n "checking for mex extension... " >&6; }
    7722   if test "x$MEXEXT" != "x" ; then
    7723     MEXEXT=`$MEXEXT`
    7724   else
    7725     MEXEXT="mexglx"
    7726   fi
    7727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEXEXT" >&5
    7728 $as_echo "$MEXEXT" >&6; }
    7729   # Extract the first word of "mcc", so it can be a program name with args.
    7730 set dummy mcc; ac_word=$2
    7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    7732 $as_echo_n "checking for $ac_word... " >&6; }
    7733 if ${ac_cv_path_MCC+:} false; then :
    7734   $as_echo_n "(cached) " >&6
    7735 else
    7736   case $MCC in
    7737   [\\/]* | ?:[\\/]*)
    7738   ac_cv_path_MCC="$MCC" # Let the user override the test with a path.
    7739   ;;
    7740   *)
    7741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7742 for as_dir in ${matlab_bindir}
    7743 do
    7744   IFS=$as_save_IFS
    7745   test -z "$as_dir" && as_dir=.
    7746     for ac_exec_ext in '' $ac_executable_extensions; do
    7747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    7748     ac_cv_path_MCC="$as_dir/$ac_word$ac_exec_ext"
    7749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    7750     break 2
    7751   fi
    7752 done
    7753   done
    7754 IFS=$as_save_IFS
    7755 
    7756   ;;
    7757 esac
    7758 fi
    7759 MCC=$ac_cv_path_MCC
    7760 if test -n "$MCC"; then
    7761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCC" >&5
    7762 $as_echo "$MCC" >&6; }
    7763 else
    7764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    7765 $as_echo "no" >&6; }
    7766 fi
    7767 
    7768 
    7769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mcc extension" >&5
    7770 $as_echo_n "checking for mcc extension... " >&6; }
    7771 fi
    7772 
    7773 
    7774 
    7775 # Check whether --with-octave was given.
    7776 if test "${with_octave+set}" = set; then :
    7777   withval=$with_octave;
    7778 else
    7779   with_octave=yes
    7780 fi
    7781 
    7782 
    7783 OCTAVE=
    7784 OCTAVE_VERSION=
    7785 OCTAVE_VERSION_MAJOR=
    7786 MKOCTFILE2=
    7787 MKOCTFILE3=
    7788 
    7789 if test "$with_octave" != "no" ; then
    7790   if test "$with_octave" = "yes" ; then
    7791     # Extract the first word of "octave", so it can be a program name with args.
    7792 set dummy octave; ac_word=$2
    7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    7794 $as_echo_n "checking for $ac_word... " >&6; }
    7795 if ${ac_cv_path_OCTAVE+:} false; then :
    7796   $as_echo_n "(cached) " >&6
    7797 else
    7798   case $OCTAVE in
    7799   [\\/]* | ?:[\\/]*)
    7800   ac_cv_path_OCTAVE="$OCTAVE" # Let the user override the test with a path.
    7801   ;;
    7802   *)
    7803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7804 for as_dir in $PATH
    7805 do
    7806   IFS=$as_save_IFS
    7807   test -z "$as_dir" && as_dir=.
    7808     for ac_exec_ext in '' $ac_executable_extensions; do
    7809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    7810     ac_cv_path_OCTAVE="$as_dir/$ac_word$ac_exec_ext"
    7811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    7812     break 2
    7813   fi
    7814 done
    7815   done
    7816 IFS=$as_save_IFS
    7817 
    7818   ;;
    7819 esac
    7820 fi
    7821 OCTAVE=$ac_cv_path_OCTAVE
    7822 if test -n "$OCTAVE"; then
    7823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE" >&5
    7824 $as_echo "$OCTAVE" >&6; }
    7825 else
    7826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    7827 $as_echo "no" >&6; }
    7828 fi
    7829 
    7830 
    7831     # Extract the first word of "mkoctfile", so it can be a program name with args.
    7832 set dummy mkoctfile; ac_word=$2
    7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    7834 $as_echo_n "checking for $ac_word... " >&6; }
    7835 if ${ac_cv_path_MKOCTFILE+:} false; then :
    7836   $as_echo_n "(cached) " >&6
    7837 else
    7838   case $MKOCTFILE in
    7839   [\\/]* | ?:[\\/]*)
    7840   ac_cv_path_MKOCTFILE="$MKOCTFILE" # Let the user override the test with a path.
    7841   ;;
    7842   *)
    7843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7844 for as_dir in $PATH
    7845 do
    7846   IFS=$as_save_IFS
    7847   test -z "$as_dir" && as_dir=.
    7848     for ac_exec_ext in '' $ac_executable_extensions; do
    7849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    7850     ac_cv_path_MKOCTFILE="$as_dir/$ac_word$ac_exec_ext"
    7851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    7852     break 2
    7853   fi
    7854 done
    7855   done
    7856 IFS=$as_save_IFS
    7857 
    7858   ;;
    7859 esac
    7860 fi
    7861 MKOCTFILE=$ac_cv_path_MKOCTFILE
    7862 if test -n "$MKOCTFILE"; then
    7863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKOCTFILE" >&5
    7864 $as_echo "$MKOCTFILE" >&6; }
    7865 else
    7866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    7867 $as_echo "no" >&6; }
    7868 fi
    7869 
    7870 
    7871   else
    7872     OCTAVE=$with_octave
    7873     MKOCTFILE=`dirname $with_octave`/mkoctfile
    7874   fi
    7875 fi
    7876 
    7877 if test "x${OCTAVE}" != "x" ; then
    7878   OCTAVE_VERSION=`${OCTAVE} -v | grep version | cut -d' ' -f4`
    7879   OCTAVE_VERSION_MAJOR=`echo ${OCTAVE_VERSION} | cut -d'.' -f1`
    7880   if test "${OCTAVE_VERSION_MAJOR}" == "3" ; then
    7881     OCTAVE3=$OCTAVE
    7882     MKOCTFILE3=$MKOCTFILE
    7883   fi
    7884   if test "${OCTAVE_VERSION_MAJOR}" == "2" ; then
    7885     OCTAVE2=$OCTAVE
    7886     MKOCTFILE2=$MKOCTFILE
    7887   fi
    7888 fi
    7889 
    7890 #
    7891 # Check for octave3 before octave2 so that we can override the
    7892 # OCTAVE_VERSION variables.
    7893 #
    7894 # Rappture doesn't normally really support both octave2 and octave3
    7895 # simultaneously.  NANOhub has a hacked version of octave3 that
    7896 # looks for OCTAVE_LOADPATH before looking at OCTAVE_PATH (i.e.
    7897 # OCTAVE_PATH tells octave2 where to load the rappture bindings
    7898 # and OCTAVE_LOADPATH tells octave3 where to load).
    7899 #
    7900 # Usually you will have installed either octave2 or octave3, but
    7901 # not both.
    7902 #
    7903 
    7904 # Check if octave3 was designated *in addition* to the installed version.
    7905 # This can override the default version if they are the same versions.
    7906 
    7907 
    7908 # Check whether --with-mkoctfile3 was given.
    7909 if test "${with_mkoctfile3+set}" = set; then :
    7910   withval=$with_mkoctfile3;
    7911 else
    7912   with_mkoctfile3=no
    7913 fi
    7914 
    7915 
    7916 if test "$with_mkoctfile3" != "no" ; then
    7917   if test "$with_mkoctfile3" = "yes" ; then
    7918     # Extract the first word of "mkoctfile", so it can be a program name with args.
    7919 set dummy mkoctfile; ac_word=$2
    7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    7921 $as_echo_n "checking for $ac_word... " >&6; }
    7922 if ${ac_cv_path_mkoctfile3+:} false; then :
    7923   $as_echo_n "(cached) " >&6
    7924 else
    7925   case $mkoctfile3 in
    7926   [\\/]* | ?:[\\/]*)
    7927   ac_cv_path_mkoctfile3="$mkoctfile3" # Let the user override the test with a path.
    7928   ;;
    7929   *)
    7930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7931 for as_dir in $PATH
    7932 do
    7933   IFS=$as_save_IFS
    7934   test -z "$as_dir" && as_dir=.
    7935     for ac_exec_ext in '' $ac_executable_extensions; do
    7936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    7937     ac_cv_path_mkoctfile3="$as_dir/$ac_word$ac_exec_ext"
    7938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    7939     break 2
    7940   fi
    7941 done
    7942   done
    7943 IFS=$as_save_IFS
    7944 
    7945   ;;
    7946 esac
    7947 fi
    7948 mkoctfile3=$ac_cv_path_mkoctfile3
    7949 if test -n "$mkoctfile3"; then
    7950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mkoctfile3" >&5
    7951 $as_echo "$mkoctfile3" >&6; }
    7952 else
    7953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    7954 $as_echo "no" >&6; }
    7955 fi
    7956 
    7957 
    7958   else
    7959     MKOCTFILE3=$with_mkoctfile3
    7960   fi
    7961   OCTAVE_VERSION=`${MKOCTFILE3} --version 2>&1 | cut -d' ' -f3`
    7962   OCTAVE_VERSION_MAJOR=`echo ${OCTAVE_VERSION} | cut -d'.' -f1`
    7963 fi
    7964 
    7965 # Check if mkoctfile2 was designated *in addition* to the installed version.
    7966 # This can override the default version if they are the same versions.
    7967 
    7968 # Check whether --with-mkoctfile2 was given.
    7969 if test "${with_mkoctfile2+set}" = set; then :
    7970   withval=$with_mkoctfile2;
    7971 else
    7972   with_mkoctfile2=no
    7973 fi
    7974 
    7975 
    7976 if test "$with_mkoctfile2" != "no" ; then
    7977   if test "$with_mkoctfile2" = "yes" ; then
    7978     # Extract the first word of "mkoctfile", so it can be a program name with args.
    7979 set dummy mkoctfile; ac_word=$2
    7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    7981 $as_echo_n "checking for $ac_word... " >&6; }
    7982 if ${ac_cv_path_mkoctfile2+:} false; then :
    7983   $as_echo_n "(cached) " >&6
    7984 else
    7985   case $mkoctfile2 in
    7986   [\\/]* | ?:[\\/]*)
    7987   ac_cv_path_mkoctfile2="$mkoctfile2" # Let the user override the test with a path.
    7988   ;;
    7989   *)
    7990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7991 for as_dir in $PATH
    7992 do
    7993   IFS=$as_save_IFS
    7994   test -z "$as_dir" && as_dir=.
    7995     for ac_exec_ext in '' $ac_executable_extensions; do
    7996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    7997     ac_cv_path_mkoctfile2="$as_dir/$ac_word$ac_exec_ext"
    7998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    7999     break 2
    8000   fi
    8001 done
    8002   done
    8003 IFS=$as_save_IFS
    8004 
    8005   ;;
    8006 esac
    8007 fi
    8008 mkoctfile2=$ac_cv_path_mkoctfile2
    8009 if test -n "$mkoctfile2"; then
    8010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mkoctfile2" >&5
    8011 $as_echo "$mkoctfile2" >&6; }
    8012 else
    8013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8014 $as_echo "no" >&6; }
    8015 fi
    8016 
    8017 
    8018   else
    8019     MKOCTFILE2=$with_mkoctfile2
    8020   fi
    8021   # Have to use octave to get a version, instead of mkoctfile.
    8022   octave=`dirname $MKOCTFILE2`/octave
    8023   OCTAVE_VERSION=`${octave} -v | grep version | cut -d' ' -f4`
    8024   OCTAVE_VERSION_MAJOR=`echo ${OCTAVE_VERSION} | cut -d'.' -f1`
    8025 fi
    8026 
    8027 
    8028 
    8029 # Check whether --with-perl was given.
    8030 if test "${with_perl+set}" = set; then :
    8031   withval=$with_perl;
    8032 else
    8033   with_perl=yes
    8034 fi
    8035 
    8036 
    8037 PERL=
    8038 PERL_INCLUDES=
    8039 PERL_ARCHLIB=
    8040 PERL_ARCHLIBEXP=
    8041 PERL_VERSION=
    8042 PERL_VENDORLIB=
    8043 PERL_PRIVLIB=
    8044 PERL_CPPFLAGS=
    8045 PERL_CCFlAGS=
    8046 PERL_VERSION_RV=
    8047 XSUBPP=
    8048 PERL_LIBSPEC=
    8049 if test "$with_perl" != "no" ; then
    8050   if test "$with_perl" != "yes" ; then
    8051     # Extract the first word of "perl", so it can be a program name with args.
    8052 set dummy perl; ac_word=$2
    8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8054 $as_echo_n "checking for $ac_word... " >&6; }
    8055 if ${ac_cv_path_PERL+:} false; then :
    8056   $as_echo_n "(cached) " >&6
    8057 else
    8058   case $PERL in
    8059   [\\/]* | ?:[\\/]*)
    8060   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
    8061   ;;
    8062   *)
    8063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8064 as_dummy="$with_perl/bin:$with_perl"
    8065 for as_dir in $as_dummy
    8066 do
    8067   IFS=$as_save_IFS
    8068   test -z "$as_dir" && as_dir=.
    8069     for ac_exec_ext in '' $ac_executable_extensions; do
    8070   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8071     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
    8072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8073     break 2
    8074   fi
    8075 done
    8076   done
    8077 IFS=$as_save_IFS
    8078 
    8079   ;;
    8080 esac
    8081 fi
    8082 PERL=$ac_cv_path_PERL
    8083 if test -n "$PERL"; then
    8084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
    8085 $as_echo "$PERL" >&6; }
    8086 else
    8087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8088 $as_echo "no" >&6; }
    8089 fi
    8090 
    8091 
    8092     # Extract the first word of "xsubpp", so it can be a program name with args.
    8093 set dummy xsubpp; ac_word=$2
    8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8095 $as_echo_n "checking for $ac_word... " >&6; }
    8096 if ${ac_cv_path_XSUBPP+:} false; then :
    8097   $as_echo_n "(cached) " >&6
    8098 else
    8099   case $XSUBPP in
    8100   [\\/]* | ?:[\\/]*)
    8101   ac_cv_path_XSUBPP="$XSUBPP" # Let the user override the test with a path.
    8102   ;;
    8103   *)
    8104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8105 as_dummy="$with_perl/bin:$with_perl"
    8106 for as_dir in $as_dummy
    8107 do
    8108   IFS=$as_save_IFS
    8109   test -z "$as_dir" && as_dir=.
    8110     for ac_exec_ext in '' $ac_executable_extensions; do
    8111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8112     ac_cv_path_XSUBPP="$as_dir/$ac_word$ac_exec_ext"
    8113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8114     break 2
    8115   fi
    8116 done
    8117   done
    8118 IFS=$as_save_IFS
    8119 
    8120   ;;
    8121 esac
    8122 fi
    8123 XSUBPP=$ac_cv_path_XSUBPP
    8124 if test -n "$XSUBPP"; then
    8125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSUBPP" >&5
    8126 $as_echo "$XSUBPP" >&6; }
    8127 else
    8128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8129 $as_echo "no" >&6; }
    8130 fi
    8131 
    8132 
    8133   else
    8134     # Extract the first word of "perl", so it can be a program name with args.
    8135 set dummy perl; ac_word=$2
    8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8137 $as_echo_n "checking for $ac_word... " >&6; }
    8138 if ${ac_cv_path_PERL+:} false; then :
    8139   $as_echo_n "(cached) " >&6
    8140 else
    8141   case $PERL in
    8142   [\\/]* | ?:[\\/]*)
    8143   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
    8144   ;;
    8145   *)
    8146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8147 for as_dir in $PATH
    8148 do
    8149   IFS=$as_save_IFS
    8150   test -z "$as_dir" && as_dir=.
    8151     for ac_exec_ext in '' $ac_executable_extensions; do
    8152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8153     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
    8154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8155     break 2
    8156   fi
    8157 done
    8158   done
    8159 IFS=$as_save_IFS
    8160 
    8161   ;;
    8162 esac
    8163 fi
    8164 PERL=$ac_cv_path_PERL
    8165 if test -n "$PERL"; then
    8166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
    8167 $as_echo "$PERL" >&6; }
    8168 else
    8169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8170 $as_echo "no" >&6; }
    8171 fi
    8172 
    8173 
    8174     # Extract the first word of "xsubpp", so it can be a program name with args.
    8175 set dummy xsubpp; ac_word=$2
    8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8177 $as_echo_n "checking for $ac_word... " >&6; }
    8178 if ${ac_cv_path_XSUBPP+:} false; then :
    8179   $as_echo_n "(cached) " >&6
    8180 else
    8181   case $XSUBPP in
    8182   [\\/]* | ?:[\\/]*)
    8183   ac_cv_path_XSUBPP="$XSUBPP" # Let the user override the test with a path.
    8184   ;;
    8185   *)
    8186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8187 for as_dir in $PATH
    8188 do
    8189   IFS=$as_save_IFS
    8190   test -z "$as_dir" && as_dir=.
    8191     for ac_exec_ext in '' $ac_executable_extensions; do
    8192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8193     ac_cv_path_XSUBPP="$as_dir/$ac_word$ac_exec_ext"
    8194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8195     break 2
    8196   fi
    8197 done
    8198   done
    8199 IFS=$as_save_IFS
    8200 
    8201   ;;
    8202 esac
    8203 fi
    8204 XSUBPP=$ac_cv_path_XSUBPP
    8205 if test -n "$XSUBPP"; then
    8206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSUBPP" >&5
    8207 $as_echo "$XSUBPP" >&6; }
    8208 else
    8209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8210 $as_echo "no" >&6; }
    8211 fi
    8212 
    8213 
    8214   fi
    8215   if test "x${PERL}" != "x" ; then
    8216     PERL_ARCHLIB=`${PERL} -MConfig -e 'print $Config{archlib}'`
    8217     PERL_VERSION=`${PERL} -MConfig -e 'print $Config{version}'`
    8218     PERL_CCFLAGS=`${PERL} -MConfig -e 'print $Config{ccflags}'`
    8219     PERL_CPPFLAGS=`${PERL} -MConfig -e 'print $Config{cppflags}'`
    8220     PERL_VENDORLIB=`${PERL} -MConfig -e 'print $Config{vendorlib}'`
    8221     PERL_PRIVLIB=`${PERL} -MConfig -e 'print $Config{privlib}'`
    8222     PERL_INSTALLARCHLIB=`${PERL} -MConfig -e 'print $Config{installarchlib}'`
    8223     PERL_ARCHLIBEXP=`${PERL} -MConfig -e 'print $Config{archlibexp}'`
    8224     PERL_VERSION_RV=`echo ${PERL_VERSION} | cut -d'.' -f1-2`
    8225     # libperl may or may not be installed.  Check for its existence.
    8226     if test -f "${PERL_ARCHLIBEXP}/CORE/libperl${SHLIB_SUFFIX}" ; then
    8227       PERL_LIBSPEC="-L${PERL_ARCHLIBEXP}/CORE -lperl"
    8228     fi
    8229   fi
    8230 fi
    8231 
    8232 
    8233 PYTHON=""
    8234 PYTHON_CFLAGS=""
    8235 PYTHON_CPPFLAGS=""
    8236 PYTHON_DISTUTILS=""
    8237 PYTHON_INCLUDES=""
    8238 PYTHON_LDFLAGS=""
    8239 PYTHON_LIB=""
    8240 PYTHON_LIBDIR=""
    8241 PYTHON_SITE_DIR=""
    8242 PYTHON_SITE_PACKAGES=""
    8243 PYTHON_VERSION=""
    8244 pythondir=""
    8245 
    8246 # Check whether --with-python was given.
    8247 if test "${with_python+set}" = set; then :
    8248   withval=$with_python;
    8249 else
    8250   with_python=yes
    8251 fi
    8252 
    8253 
    8254 if test "$with_python" != "no" ; then
    8255   if test "$with_python" = "yes" ; then
    8256     # Extract the first word of "python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args.
    8257 set dummy python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
    8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8259 $as_echo_n "checking for $ac_word... " >&6; }
    8260 if ${ac_cv_path_PYTHON+:} false; then :
    8261   $as_echo_n "(cached) " >&6
    8262 else
    8263   case $PYTHON in
    8264   [\\/]* | ?:[\\/]*)
    8265   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
    8266   ;;
    8267   *)
    8268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8269 for as_dir in $PATH
    8270 do
    8271   IFS=$as_save_IFS
    8272   test -z "$as_dir" && as_dir=.
    8273     for ac_exec_ext in '' $ac_executable_extensions; do
    8274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8275     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
    8276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8277     break 2
    8278   fi
    8279 done
    8280   done
    8281 IFS=$as_save_IFS
    8282 
    8283   ;;
    8284 esac
    8285 fi
    8286 PYTHON=$ac_cv_path_PYTHON
    8287 if test -n "$PYTHON"; then
    8288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
    8289 $as_echo "$PYTHON" >&6; }
    8290 else
    8291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8292 $as_echo "no" >&6; }
    8293 fi
    8294 
    8295 
    8296   else
    8297     # Extract the first word of "python", so it can be a program name with args.
    8298 set dummy python; ac_word=$2
    8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8300 $as_echo_n "checking for $ac_word... " >&6; }
    8301 if ${ac_cv_path_PYTHON+:} false; then :
    8302   $as_echo_n "(cached) " >&6
    8303 else
    8304   case $PYTHON in
    8305   [\\/]* | ?:[\\/]*)
    8306   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
    8307   ;;
    8308   *)
    8309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8310 as_dummy="${with_python}/bin:${with_python}"
    8311 for as_dir in $as_dummy
    8312 do
    8313   IFS=$as_save_IFS
    8314   test -z "$as_dir" && as_dir=.
    8315     for ac_exec_ext in '' $ac_executable_extensions; do
    8316   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8317     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
    8318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8319     break 2
    8320   fi
    8321 done
    8322   done
    8323 IFS=$as_save_IFS
    8324 
    8325   ;;
    8326 esac
    8327 fi
    8328 PYTHON=$ac_cv_path_PYTHON
    8329 if test -n "$PYTHON"; then
    8330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
    8331 $as_echo "$PYTHON" >&6; }
    8332 else
    8333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8334 $as_echo "no" >&6; }
    8335 fi
    8336 
    8337 
    8338   fi
    8339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python version" >&5
    8340 $as_echo_n "checking for Python version... " >&6; }
    8341   if test "x${PYTHON}" != "x"; then
    8342     PYTHON_VERSION=`${PYTHON} -c "import sys; print sys.version[0:3]"`
    8343   fi
    8344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_VERSION" >&5
    8345 $as_echo "$PYTHON_VERSION" >&6; }
    8346 fi
    8347 
    8348 if test "x${PYTHON_VERSION}" != "x"; then
    8349   PYTHON_INCLUDES=$incdir
    8350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils" >&5
    8351 $as_echo_n "checking for Python distutils... " >&6; }
    8352   PYTHON_DISTUTILS=""
    8353   ${PYTHON} -c "from distutils.core import setup; setup(name='test')" \
    8354         build build_ext 2>&1 > /dev/null
    8355   if test $? = 0 ; then
    8356     PYTHON_DISTUTILS="yes"
    8357   fi
    8358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_DISTUTILS" >&5
    8359 $as_echo "$PYTHON_DISTUTILS" >&6; }
    8360   if test "${PYTHON_DISTUTILS}" = "yes" ; then
    8361     PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
    8362     #
    8363     # Check for Python include path
    8364     #
    8365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to Python headers" >&5
    8366 $as_echo_n "checking path to Python headers... " >&6; }
    8367     PYTHON_INCDIR=`${PYTHON} -c "import distutils.sysconfig; \
    8368      print distutils.sysconfig.get_python_inc();"`
    8369     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INCDIR" >&5
    8370 $as_echo "$PYTHON_INCDIR" >&6; }
    8371     #
    8372     # Python distutils found, get settings from python directly
    8373     #
    8374     PYTHON_SITE_DIR="`${PYTHON} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(0);'`"
    8375 
    8376     PYTHON_CFLAGS="`$PYTHON -c 'from distutils import sysconfig; flags = [\"-I\" + sysconfig.get_python_inc(0), \"-I\" + sysconfig.get_python_inc(1), \" \".join(sysconfig.get_config_var(\"CFLAGS\").split())]; print \" \".join(flags);'`"
    8377     PYTHON_LDFLAGS="`$PYTHON -c 'from distutils import sysconfig; libs = sysconfig.get_config_var(\"LIBS\").split() + sysconfig.get_config_var(\"SYSLIBS\").split(); libs.append(\"-lpython\"+sysconfig.get_config_var(\"VERSION\")); print \" \".join(libs);'`"
    8378     PYTHON_LIB="`$PYTHON -c 'from distutils import sysconfig; print \"python\" + sysconfig.get_config_var(\"VERSION\");'`"
    8379     PYTHON_LIBDIR="`$PYTHON -c 'from distutils import sysconfig; print sysconfig.get_config_var(\"LIBDIR\");'`"
    8380     save_CPPFLAGS=$CPPFLAGS
    8381     CPPFLAGS="$CPPFLAGS -I${PYTHON_INCDIR}"
    8382     for ac_header in Python.h
    8383 do :
    8384   ac_fn_cxx_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
    8385 if test "x$ac_cv_header_Python_h" = xyes; then :
    8386   cat >>confdefs.h <<_ACEOF
    8387 #define HAVE_PYTHON_H 1
    8388 _ACEOF
    8389  found=yes
    8390 else
    8391   found=no
    8392 fi
    8393 
    8394 done
    8395 
    8396     CPPFLAGS=$save_CPPFLAGS
    8397     if test "$found" = "no" ; then
    8398       PYTHON_DISTUTILS=""
    8399     fi
    8400   fi
    8401 fi
    8402 
    8403 
    8404 
    8405 # Check whether --with-java was given.
    8406 if test "${with_java+set}" = set; then :
    8407   withval=$with_java;
    8408 else
    8409   with_java=yes
    8410 fi
    8411 
    8412 JAVA=""
    8413 JAVAH=""
    8414 JAVAC=""
    8415 JAVA_DEV_PKG="no"
    8416 
    8417 if test "${with_java}" != "no" ; then
    8418   if test "${with_java}" = "yes" ; then
    8419     # Extract the first word of "java", so it can be a program name with args.
    8420 set dummy java; ac_word=$2
    8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8422 $as_echo_n "checking for $ac_word... " >&6; }
    8423 if ${ac_cv_path_JAVA+:} false; then :
    8424   $as_echo_n "(cached) " >&6
    8425 else
    8426   case $JAVA in
    8427   [\\/]* | ?:[\\/]*)
    8428   ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
    8429   ;;
    8430   *)
    8431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8432 for as_dir in $PATH
    8433 do
    8434   IFS=$as_save_IFS
    8435   test -z "$as_dir" && as_dir=.
    8436     for ac_exec_ext in '' $ac_executable_extensions; do
    8437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8438     ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
    8439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8440     break 2
    8441   fi
    8442 done
    8443   done
    8444 IFS=$as_save_IFS
    8445 
    8446   ;;
    8447 esac
    8448 fi
    8449 JAVA=$ac_cv_path_JAVA
    8450 if test -n "$JAVA"; then
    8451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
    8452 $as_echo "$JAVA" >&6; }
    8453 else
    8454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8455 $as_echo "no" >&6; }
    8456 fi
    8457 
    8458 
    8459     # Extract the first word of "javac", so it can be a program name with args.
    8460 set dummy javac; ac_word=$2
    8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8462 $as_echo_n "checking for $ac_word... " >&6; }
    8463 if ${ac_cv_path_JAVAC+:} false; then :
    8464   $as_echo_n "(cached) " >&6
    8465 else
    8466   case $JAVAC in
    8467   [\\/]* | ?:[\\/]*)
    8468   ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
    8469   ;;
    8470   *)
    8471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8472 for as_dir in $PATH
    8473 do
    8474   IFS=$as_save_IFS
    8475   test -z "$as_dir" && as_dir=.
    8476     for ac_exec_ext in '' $ac_executable_extensions; do
    8477   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8478     ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
    8479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8480     break 2
    8481   fi
    8482 done
    8483   done
    8484 IFS=$as_save_IFS
    8485 
    8486   ;;
    8487 esac
    8488 fi
    8489 JAVAC=$ac_cv_path_JAVAC
    8490 if test -n "$JAVAC"; then
    8491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
    8492 $as_echo "$JAVAC" >&6; }
    8493 else
    8494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8495 $as_echo "no" >&6; }
    8496 fi
    8497 
    8498 
    8499     # Extract the first word of "javah", so it can be a program name with args.
    8500 set dummy javah; ac_word=$2
    8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8502 $as_echo_n "checking for $ac_word... " >&6; }
    8503 if ${ac_cv_path_JAVAH+:} false; then :
    8504   $as_echo_n "(cached) " >&6
    8505 else
    8506   case $JAVAH in
    8507   [\\/]* | ?:[\\/]*)
    8508   ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
    8509   ;;
    8510   *)
    8511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8512 for as_dir in $PATH
    8513 do
    8514   IFS=$as_save_IFS
    8515   test -z "$as_dir" && as_dir=.
    8516     for ac_exec_ext in '' $ac_executable_extensions; do
    8517   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8518     ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
    8519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8520     break 2
    8521   fi
    8522 done
    8523   done
    8524 IFS=$as_save_IFS
    8525 
    8526   ;;
    8527 esac
    8528 fi
    8529 JAVAH=$ac_cv_path_JAVAH
    8530 if test -n "$JAVAH"; then
    8531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5
    8532 $as_echo "$JAVAH" >&6; }
    8533 else
    8534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8535 $as_echo "no" >&6; }
    8536 fi
    8537 
    8538 
    8539   else
    8540     # Extract the first word of "java", so it can be a program name with args.
    8541 set dummy java; ac_word=$2
    8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8543 $as_echo_n "checking for $ac_word... " >&6; }
    8544 if ${ac_cv_path_JAVA+:} false; then :
    8545   $as_echo_n "(cached) " >&6
    8546 else
    8547   case $JAVA in
    8548   [\\/]* | ?:[\\/]*)
    8549   ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
    8550   ;;
    8551   *)
    8552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8553 as_dummy="${with_java}/bin:${with_java}"
    8554 for as_dir in $as_dummy
    8555 do
    8556   IFS=$as_save_IFS
    8557   test -z "$as_dir" && as_dir=.
    8558     for ac_exec_ext in '' $ac_executable_extensions; do
    8559   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8560     ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
    8561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8562     break 2
    8563   fi
    8564 done
    8565   done
    8566 IFS=$as_save_IFS
    8567 
    8568   ;;
    8569 esac
    8570 fi
    8571 JAVA=$ac_cv_path_JAVA
    8572 if test -n "$JAVA"; then
    8573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
    8574 $as_echo "$JAVA" >&6; }
    8575 else
    8576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8577 $as_echo "no" >&6; }
    8578 fi
    8579 
    8580 
    8581     # Extract the first word of "javac", so it can be a program name with args.
    8582 set dummy javac; ac_word=$2
    8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8584 $as_echo_n "checking for $ac_word... " >&6; }
    8585 if ${ac_cv_path_JAVAC+:} false; then :
    8586   $as_echo_n "(cached) " >&6
    8587 else
    8588   case $JAVAC in
    8589   [\\/]* | ?:[\\/]*)
    8590   ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
    8591   ;;
    8592   *)
    8593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8594 as_dummy="${with_java}/bin:${with_java}"
    8595 for as_dir in $as_dummy
    8596 do
    8597   IFS=$as_save_IFS
    8598   test -z "$as_dir" && as_dir=.
    8599     for ac_exec_ext in '' $ac_executable_extensions; do
    8600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8601     ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
    8602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8603     break 2
    8604   fi
    8605 done
    8606   done
    8607 IFS=$as_save_IFS
    8608 
    8609   ;;
    8610 esac
    8611 fi
    8612 JAVAC=$ac_cv_path_JAVAC
    8613 if test -n "$JAVAC"; then
    8614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
    8615 $as_echo "$JAVAC" >&6; }
    8616 else
    8617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8618 $as_echo "no" >&6; }
    8619 fi
    8620 
    8621 
    8622     # Extract the first word of "javah", so it can be a program name with args.
    8623 set dummy javah; ac_word=$2
    8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8625 $as_echo_n "checking for $ac_word... " >&6; }
    8626 if ${ac_cv_path_JAVAH+:} false; then :
    8627   $as_echo_n "(cached) " >&6
    8628 else
    8629   case $JAVAH in
    8630   [\\/]* | ?:[\\/]*)
    8631   ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
    8632   ;;
    8633   *)
    8634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8635 as_dummy="${with_java}/bin:${with_java}"
    8636 for as_dir in $as_dummy
    8637 do
    8638   IFS=$as_save_IFS
    8639   test -z "$as_dir" && as_dir=.
    8640     for ac_exec_ext in '' $ac_executable_extensions; do
    8641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8642     ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
    8643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8644     break 2
    8645   fi
    8646 done
    8647   done
    8648 IFS=$as_save_IFS
    8649 
    8650   ;;
    8651 esac
    8652 fi
    8653 JAVAH=$ac_cv_path_JAVAH
    8654 if test -n "$JAVAH"; then
    8655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5
    8656 $as_echo "$JAVAH" >&6; }
    8657 else
    8658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8659 $as_echo "no" >&6; }
    8660 fi
    8661 
    8662 
    8663   fi
    8664 fi
    8665 JDK=
    8666 JAVA_INC_DIR=
    8667 JAVA_INC_SPEC=
    8668 
    8669 # If java exists, let's look for the jni.h file.
    8670 if test "x${JAVA}" != "x" ; then
    8671   for d in \
    8672    ${with_java} \
    8673    ${JAVA_HOME} \
    8674    /apps/java/jdk1.6* \
    8675    /opt/sun-jdk-1.6* \
    8676    /opt/icedtea6-* \
    8677    /opt/sun-jdk-1.5* \
    8678    /usr/lib/jvm/*sun* \
    8679    /usr/lib/jvm/*icedtea* \
    8680    /usr/lib/jvm/*openjdk*
    8681   do
    8682     if test -r "${d}/include/jni.h" ; then
    8683       JDK=${d}
    8684       JAVA_HOME=$JDK
    8685       JAVA_INC_DIR=${JDK}/include
    8686       JAVA_INC_SPEC="-I${JDK}/include -I${JDK}/include/linux"
    8687       break;
    8688     fi
    8689     if test -r "${d}/Headers/jni.h" ; then
    8690       JDK=${d}
    8691       JAVA_HOME=$JDK
    8692       JAVA_INC_DIR=${JDK}/Headers
    8693       JAVA_INC_SPEC="-I${JDK}/Headers -I${JDK}/Headers/macos"
    8694       break;
    8695     fi
    8696   done
    8697 fi
    8698 
    8699 
    8700 
    8701 # Check whether --with-R was given.
    8702 if test "${with_R+set}" = set; then :
    8703   withval=$with_R;
    8704 else
    8705   with_R=yes
    8706 fi
    8707 
    8708 
    8709 R=""
    8710 if test "$with_R" != "no" ; then
    8711   if test "$with_R" = "yes" ; then
    8712     # Extract the first word of "R", so it can be a program name with args.
    8713 set dummy R; ac_word=$2
    8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8715 $as_echo_n "checking for $ac_word... " >&6; }
    8716 if ${ac_cv_path_R+:} false; then :
    8717   $as_echo_n "(cached) " >&6
    8718 else
    8719   case $R in
    8720   [\\/]* | ?:[\\/]*)
    8721   ac_cv_path_R="$R" # Let the user override the test with a path.
    8722   ;;
    8723   *)
    8724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8725 for as_dir in $PATH
    8726 do
    8727   IFS=$as_save_IFS
    8728   test -z "$as_dir" && as_dir=.
    8729     for ac_exec_ext in '' $ac_executable_extensions; do
    8730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8731     ac_cv_path_R="$as_dir/$ac_word$ac_exec_ext"
    8732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8733     break 2
    8734   fi
    8735 done
    8736   done
    8737 IFS=$as_save_IFS
    8738 
    8739   ;;
    8740 esac
    8741 fi
    8742 R=$ac_cv_path_R
    8743 if test -n "$R"; then
    8744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $R" >&5
    8745 $as_echo "$R" >&6; }
    8746 else
    8747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8748 $as_echo "no" >&6; }
    8749 fi
    8750 
    8751 
    8752   else
    8753     # Extract the first word of "R", so it can be a program name with args.
    8754 set dummy R; ac_word=$2
    8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8756 $as_echo_n "checking for $ac_word... " >&6; }
    8757 if ${ac_cv_path_R+:} false; then :
    8758   $as_echo_n "(cached) " >&6
    8759 else
    8760   case $R in
    8761   [\\/]* | ?:[\\/]*)
    8762   ac_cv_path_R="$R" # Let the user override the test with a path.
    8763   ;;
    8764   *)
    8765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8766 as_dummy="${with_R}/bin:${with_R}"
    8767 for as_dir in $as_dummy
    8768 do
    8769   IFS=$as_save_IFS
    8770   test -z "$as_dir" && as_dir=.
    8771     for ac_exec_ext in '' $ac_executable_extensions; do
    8772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8773     ac_cv_path_R="$as_dir/$ac_word$ac_exec_ext"
    8774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8775     break 2
    8776   fi
    8777 done
    8778   done
    8779 IFS=$as_save_IFS
    8780 
    8781   ;;
    8782 esac
    8783 fi
    8784 R=$ac_cv_path_R
    8785 if test -n "$R"; then
    8786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $R" >&5
    8787 $as_echo "$R" >&6; }
    8788 else
    8789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8790 $as_echo "no" >&6; }
    8791 fi
    8792 
    8793 
    8794   fi
    8795 fi
    8796 
    8797 
    8798 # Make sure we can run config.sub.
    8799 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
    8800   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
    8801 
    8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
    8803 $as_echo_n "checking build system type... " >&6; }
    8804 if ${ac_cv_build+:} false; then :
    8805   $as_echo_n "(cached) " >&6
    8806 else
    8807   ac_build_alias=$build_alias
    8808 test "x$ac_build_alias" = x &&
    8809   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
    8810 test "x$ac_build_alias" = x &&
    8811   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
    8812 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
    8813   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
    8814 
    8815 fi
    8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
    8817 $as_echo "$ac_cv_build" >&6; }
    8818 case $ac_cv_build in
    8819 *-*-*) ;;
    8820 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
    8821 esac
    8822 build=$ac_cv_build
    8823 ac_save_IFS=$IFS; IFS='-'
    8824 set x $ac_cv_build
    8825 shift
    8826 build_cpu=$1
    8827 build_vendor=$2
    8828 shift; shift
    8829 # Remember, the first character of IFS is used to create $*,
    8830 # except with old shells:
    8831 build_os=$*
    8832 IFS=$ac_save_IFS
    8833 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
    8834 
    8835 
    8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
    8837 $as_echo_n "checking host system type... " >&6; }
    8838 if ${ac_cv_host+:} false; then :
    8839   $as_echo_n "(cached) " >&6
    8840 else
    8841   if test "x$host_alias" = x; then
    8842   ac_cv_host=$ac_cv_build
    8843 else
    8844   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
    8845     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
    8846 fi
    8847 
    8848 fi
    8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
    8850 $as_echo "$ac_cv_host" >&6; }
    8851 case $ac_cv_host in
    8852 *-*-*) ;;
    8853 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
    8854 esac
    8855 host=$ac_cv_host
    8856 ac_save_IFS=$IFS; IFS='-'
    8857 set x $ac_cv_host
    8858 shift
    8859 host_cpu=$1
    8860 host_vendor=$2
    8861 shift; shift
    8862 # Remember, the first character of IFS is used to create $*,
    8863 # except with old shells:
    8864 host_os=$*
    8865 IFS=$ac_save_IFS
    8866 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
    8867 
    8868 
    8869 
    8870 
    8871 
    8872 # Check whether --with-ruby was given.
    8873 if test "${with_ruby+set}" = set; then :
    8874   withval=$with_ruby;  RUBY=$withval
    8875 else
    8876    RUBY=ruby
    8877 fi
    8878 
    8879 
    8880 # Check whether --with-ruby_sitelibdir was given.
    8881 if test "${with_ruby_sitelibdir+set}" = set; then :
    8882   withval=$with_ruby_sitelibdir;  ruby_sitelibdir=$withval
    8883 else
    8884    ruby_sitelibdir=NONE
    8885 fi
    8886 
    8887 
    8888 
    8889 
    8890 RUBY_VERSION_CODE=`$RUBY -e "puts RUBY_VERSION.gsub(/\./, '')"`
    8891 
    8892 
    8893 RUBY_CONFIG_SO_NAME=`
    8894           $RUBY -rrbconfig -e "puts(Config::CONFIG['RUBY_SO_NAME'] || '')"`
    8895 RUBY_CONFIG_ARCHDIR=`
    8896           $RUBY -rrbconfig -e "puts(Config::CONFIG['archdir'] || '')"`
    8897 RUBY_CONFIG_ARCH=`
    8898           $RUBY -rrbconfig -e "puts(Config::CONFIG['arch'] || '')"`
    8899 RUBY_CONFIG_LIBDIR=`
    8900           $RUBY -rrbconfig -e "puts(Config::CONFIG['libdir'] || '')"`
    8901 RUBY_CONFIG_BINDIR=`
    8902           $RUBY -rrbconfig -e "puts(Config::CONFIG['bindir'] || '')"`
    8903 RUBY_CONFIG_RUBYHDRDIR=`
    8904           $RUBY -rrbconfig -e "puts(Config::CONFIG['rubyhdrdir'] || '')"`
    8905 RUBY_CONFIG_CFLAGS=`
    8906           $RUBY -rrbconfig -e "puts(Config::CONFIG['CFLAGS'] || '')"`
    8907 RUBY_CONFIG_LIBS=`
    8908           $RUBY -rrbconfig -e "puts(Config::CONFIG['LIBS'] || '')"`
    8909 RUBY_CONFIG_DLDLIBS=`
    8910           $RUBY -rrbconfig -e "puts(Config::CONFIG['DLDLIBS'] || '')"`
    8911 RUBY_CONFIG_LDFLAGS=`
    8912           $RUBY -rrbconfig -e "puts(Config::CONFIG['LDFLAGS'] || '')"`
    8913 RUBY_CONFIG_LIBRUBYARG=`
    8914           $RUBY -rrbconfig -e "puts(Config::CONFIG['LIBRUBYARG'] || '')"`
    8915 RUBY_CONFIG_LIBRUBYARG_STATIC=`
    8916           $RUBY -rrbconfig -e "puts(Config::CONFIG['LIBRUBYARG_STATIC'] || '')"`
    8917 RUBY_CONFIG_CCDLFLAGS=`
    8918           $RUBY -rrbconfig -e "puts(Config::CONFIG['CCDLFLAGS'] || '')"`
    8919 
    8920 if test "x${RUBY_CONFIG_RUBYHDRDIR}x" != "xx"; then
    8921   # 1.9
    8922   RUBY_CPPFLAGS="-I${RUBY_CONFIG_RUBYHDRDIR}"
    8923   RUBY_CPPFLAGS="${RUBY_CPPFLAGS} -I${RUBY_CONFIG_RUBYHDRDIR}/${RUBY_CONFIG_ARCH}"
    8924 else
    8925   # 1.8
    8926   RUBY_CPPFLAGS="-I${RUBY_CONFIG_ARCHDIR}"
    8927 fi
    8928 
    8929 
    8930 RUBY_CFLAGS="${RUBY_CONFIG_CFLAGS} ${RUBY_CONFIG_CCDLFLAGS}"
    8931 
    8932 
    8933 RUBY_CXXFLAGS="${RUBY_CONFIG_CFLAGS} ${RUBY_CONFIG_CCDLFLAGS}"
    8934 
    8935 
    8936 RUBY_LDFLAGS="-L${RUBY_CONFIG_ARCHDIR} -L${RUBY_CONFIG_LIBDIR} ${RUBY_CONFIG_LDFLAGS}"
    8937 
    8938 
    8939 RUBY_LIBS="${RUBY_CONFIG_LIBS} ${RUBY_CONFIG_DLDLIBS}"
    8940 
    8941 
    8942 RUBY_LIBRUBYARG="${RUBY_CONFIG_LIBRUBYARG}"
    8943 
    8944 
    8945 RUBY_LIBRUBYARG_STATIC="${RUBY_CONFIG_LIBRUBYARG_STATIC}"
    8946 
    8947 
    8948 if test "x${ruby_sitelibdir}x" != "xNONEx"
    8949 then
    8950   RUBY_SITELIBDIR="${ruby_sitelibdir}"
    8951 else
    8952   if test "x${prefix}x" = "xNONEx"
    8953   then
    8954     RUBY_SITELIBDIR=`
    8955           $RUBY -rrbconfig -e "puts(Config::CONFIG['sitelibdir'] || '')"`
    8956   else
    8957     sitelibdir_no_prefix=`$RUBY -rrbconfig \
    8958     -e "include Config; \
    8959     puts CONFIG['sitelibdir'].sub(CONFIG['prefix'], '')"`
    8960     RUBY_SITELIBDIR="${prefix}/${sitelibdir_no_prefix}"
    8961   fi
    8962 fi
    8963 
    8964 
    8965 CPPFLAGS_save="${CPPFLAGS}"
    8966 CPPFLAGS="${CPPFLAGS} ${RUBY_CPPFLAGS}"
    8967 CXXFLAGS="${CPPFLAGS}"
    8968 for ac_header in ruby.h
    8969 do :
    8970   ac_fn_cxx_check_header_mongrel "$LINENO" "ruby.h" "ac_cv_header_ruby_h" "$ac_includes_default"
    8971 if test "x$ac_cv_header_ruby_h" = xyes; then :
    8972   cat >>confdefs.h <<_ACEOF
    8973 #define HAVE_RUBY_H 1
    8974 _ACEOF
    8975 
    8976 fi
    8977 
    8978 done
    8979 
    8980 HAVE_RUBY_H=${ac_cv_header_ruby_h}
    8981 
    8982 
    8983 for ac_header in node.h
    8984 do :
    8985   ac_fn_cxx_check_header_compile "$LINENO" "node.h" "ac_cv_header_node_h" "
    8986 #include <ruby.h>
    8987 
    8988 "
    8989 if test "x$ac_cv_header_node_h" = xyes; then :
    8990   cat >>confdefs.h <<_ACEOF
    8991 #define HAVE_NODE_H 1
    8992 _ACEOF
    8993 
    8994 fi
    8995 
    8996 done
    8997 
    8998 for ac_header in ruby/node.h
    8999 do :
    9000   ac_fn_cxx_check_header_compile "$LINENO" "ruby/node.h" "ac_cv_header_ruby_node_h" "
    9001                              #include <ruby.h>
    9002 
    9003 "
    9004 if test "x$ac_cv_header_ruby_node_h" = xyes; then :
    9005   cat >>confdefs.h <<_ACEOF
    9006 #define HAVE_RUBY_NODE_H 1
    9007 _ACEOF
    9008 
    9009 $as_echo "#define REALLY_HAVE_RUBY_NODE_H /**/" >>confdefs.h
    9010 
    9011 fi
    9012 
    9013 done
    9014 
    9015 for ac_header in version.h
    9016 do :
    9017   ac_fn_cxx_check_header_compile "$LINENO" "version.h" "ac_cv_header_version_h" "
    9018 #include <ruby.h>
    9019 
    9020 "
    9021 if test "x$ac_cv_header_version_h" = xyes; then :
    9022   cat >>confdefs.h <<_ACEOF
    9023 #define HAVE_VERSION_H 1
    9024 _ACEOF
    9025 
    9026 fi
    9027 
    9028 done
    9029 
    9030 for ac_header in env.h
    9031 do :
    9032   ac_fn_cxx_check_header_compile "$LINENO" "env.h" "ac_cv_header_env_h" "
    9033 #include <ruby.h>
    9034 
    9035 "
    9036 if test "x$ac_cv_header_env_h" = xyes; then :
    9037   cat >>confdefs.h <<_ACEOF
    9038 #define HAVE_ENV_H 1
    9039 _ACEOF
    9040 
    9041 fi
    9042 
    9043 done
    9044 
    9045 
    9046 CPPFLAGS="${CPPFLAGS_save}"
    9047 
    9048 
    9049 case $host_os in
    9050   *mingw32* ) MINGW32=yes;;
    9051           * ) MINGW32=no;;
    9052 esac
    9053 
    9054 
    9055 if test x"${MINGW32}"x = xyesx; then
    9056 
    9057 RUBY_LIBS=`echo ${RUBY_LIBS} | sed -e "s%oldnames.lib%-lmoldname%"`
    9058 RUBY_LIBS=`echo ${RUBY_LIBS} | sed -e "s%user32.lib%-luser32%"`
    9059 RUBY_LIBS=`echo ${RUBY_LIBS} | sed -e "s%advapi32.lib%-ladvapi32%"`
    9060 RUBY_LIBS=`echo ${RUBY_LIBS} | sed -e "s%ws2_32.lib%-lws2_32%"`
    9061 RUBY_LIBRUBYARG=`echo ${RUBY_LIBRUBYARG} | sed -e "s%\(msvcrt-ruby.*\).lib%${RUBY_CONFIG_BINDIR}/\1.dll%"`
    9062 RUBY_LIBRUBYARG_STATIC=`echo ${RUBY_LIBRUBYARG_STATIC} | sed -e "s%\(msvcrt-ruby.*\).lib%${RUBY_CONFIG_LIBDIR}/\1.lib%"`
    9063 
    9064 fi
    9065 
    9066 
    9067 
    9068 RP_BASE=`pwd`
    9069 
    9070 
    9071     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5
    9072 $as_echo_n "checking how to build libraries... " >&6; }
    9073     # Check whether --enable-shared was given.
    9074 if test "${enable_shared+set}" = set; then :
    9075   enableval=$enable_shared; tcl_ok=$enableval
    9076 else
    9077   tcl_ok=yes
    9078 fi
    9079 
    9080 
    9081     if test "${enable_shared+set}" = set; then
    9082         enableval="$enable_shared"
    9083         tcl_ok=$enableval
    9084     else
    9085         tcl_ok=yes
    9086     fi
    9087 
    9088     if test "$tcl_ok" = "yes" ; then
    9089         { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5
    9090 $as_echo "shared" >&6; }
    9091         SHARED_BUILD=1
    9092     else
    9093         { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
    9094 $as_echo "static" >&6; }
    9095         SHARED_BUILD=0
    9096         $as_echo "#define STATIC_BUILD 1" >>confdefs.h
    9097 
    9098     fi
    9099 
    9100 
    9101 #--------------------------------------------------------------------
    9102 # This macro figures out what flags to use with the compiler/linker
    9103 # when building shared/static debug/optimized objects.  This information
    9104 # is all taken from the tclConfig.sh file.
    9105 #--------------------------------------------------------------------
    9106 
    9107 if test -f "${exec_prefix}/lib/tclConfig.sh" ; then
    9108   . ${exec_prefix}/lib/tclConfig.sh
    9109 fi
    9110 if test -f "${exec_prefix}/lib/tkConfig.sh" ; then
    9111   . ${exec_prefix}/lib/tkConfig.sh
    9112 fi
    9113 
    9114 # -----------------------------------------------------------------------
    9115 #
    9116 # Compiler characteristics:
    9117 #   Check for existence of types of size_t and pid_t
    9118 #
    9119 # -----------------------------------------------------------------------
    9120 
    9121  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
    9122 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
    9123 if ${ac_cv_c_bigendian+:} false; then :
    9124   $as_echo_n "(cached) " >&6
    9125 else
    9126   ac_cv_c_bigendian=unknown
    9127     # See if we're dealing with a universal compiler.
    9128     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    9129 /* end confdefs.h.  */
    9130 #ifndef __APPLE_CC__
    9131                not a universal capable compiler
    9132              #endif
    9133              typedef int dummy;
    9134 
    9135 _ACEOF
    9136 if ac_fn_cxx_try_compile "$LINENO"; then :
    9137 
    9138         # Check for potential -arch flags.  It is not universal unless
    9139         # there are at least two -arch flags with different values.
    9140         ac_arch=
    9141         ac_prev=
    9142         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
    9143          if test -n "$ac_prev"; then
    9144            case $ac_word in
    9145              i?86 | x86_64 | ppc | ppc64)
    9146                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
    9147                  ac_arch=$ac_word
    9148                else
    9149                  ac_cv_c_bigendian=universal
    9150                  break
    9151                fi
    9152                ;;
    9153            esac
    9154            ac_prev=
    9155          elif test "x$ac_word" = "x-arch"; then
    9156            ac_prev=arch
    9157          fi
    9158        done
    9159 fi
    9160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    9161     if test $ac_cv_c_bigendian = unknown; then
    9162       # See if sys/param.h defines the BYTE_ORDER macro.
    9163       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    9164 /* end confdefs.h.  */
    9165 #include <sys/types.h>
    9166              #include <sys/param.h>
    9167 
    9168 int
    9169 main ()
    9170 {
    9171 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
    9172                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
    9173                      && LITTLE_ENDIAN)
    9174               bogus endian macros
    9175              #endif
    9176 
    9177   ;
    9178   return 0;
    9179 }
    9180 _ACEOF
    9181 if ac_fn_cxx_try_compile "$LINENO"; then :
    9182   # It does; now see whether it defined to BIG_ENDIAN or not.
    9183          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    9184 /* end confdefs.h.  */
    9185 #include <sys/types.h>
    9186                 #include <sys/param.h>
    9187 
    9188 int
    9189 main ()
    9190 {
    9191 #if BYTE_ORDER != BIG_ENDIAN
    9192                  not big endian
    9193                 #endif
    9194 
    9195   ;
    9196   return 0;
    9197 }
    9198 _ACEOF
    9199 if ac_fn_cxx_try_compile "$LINENO"; then :
    9200   ac_cv_c_bigendian=yes
    9201 else
    9202   ac_cv_c_bigendian=no
    9203 fi
    9204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    9205 fi
    9206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    9207     fi
    9208     if test $ac_cv_c_bigendian = unknown; then
    9209       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
    9210       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    9211 /* end confdefs.h.  */
    9212 #include <limits.h>
    9213 
    9214 int
    9215 main ()
    9216 {
    9217 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
    9218               bogus endian macros
    9219              #endif
    9220 
    9221   ;
    9222   return 0;
    9223 }
    9224 _ACEOF
    9225 if ac_fn_cxx_try_compile "$LINENO"; then :
    9226   # It does; now see whether it defined to _BIG_ENDIAN or not.
    9227          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    9228 /* end confdefs.h.  */
    9229 #include <limits.h>
    9230 
    9231 int
    9232 main ()
    9233 {
    9234 #ifndef _BIG_ENDIAN
    9235                  not big endian
    9236                 #endif
    9237 
    9238   ;
    9239   return 0;
    9240 }
    9241 _ACEOF
    9242 if ac_fn_cxx_try_compile "$LINENO"; then :
    9243   ac_cv_c_bigendian=yes
    9244 else
    9245   ac_cv_c_bigendian=no
    9246 fi
    9247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    9248 fi
    9249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    9250     fi
    9251     if test $ac_cv_c_bigendian = unknown; then
    9252       # Compile a test program.
    9253       if test "$cross_compiling" = yes; then :
    9254   # Try to guess by grepping values from an object file.
    9255          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    9256 /* end confdefs.h.  */
    9257 short int ascii_mm[] =
    9258                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
    9259                 short int ascii_ii[] =
    9260                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
    9261                 int use_ascii (int i) {
    9262                   return ascii_mm[i] + ascii_ii[i];
    9263                 }
    9264                 short int ebcdic_ii[] =
    9265                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
    9266                 short int ebcdic_mm[] =
    9267                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
    9268                 int use_ebcdic (int i) {
    9269                   return ebcdic_mm[i] + ebcdic_ii[i];
    9270                 }
    9271                 extern int foo;
    9272 
    9273 int
    9274 main ()
    9275 {
    9276 return use_ascii (foo) == use_ebcdic (foo);
    9277   ;
    9278   return 0;
    9279 }
    9280 _ACEOF
    9281 if ac_fn_cxx_try_compile "$LINENO"; then :
    9282   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
    9283               ac_cv_c_bigendian=yes
    9284             fi
    9285             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
    9286               if test "$ac_cv_c_bigendian" = unknown; then
    9287                 ac_cv_c_bigendian=no
    9288               else
    9289                 # finding both strings is unlikely to happen, but who knows?
    9290                 ac_cv_c_bigendian=unknown
    9291               fi
    9292             fi
    9293 fi
    9294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    9295 else
    9296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    9297 /* end confdefs.h.  */
    9298 $ac_includes_default
    9299 int
    9300 main ()
    9301 {
    9302 
    9303              /* Are we little or big endian?  From Harbison&Steele.  */
    9304              union
    9305              {
    9306                long int l;
    9307                char c[sizeof (long int)];
    9308              } u;
    9309              u.l = 1;
    9310              return u.c[sizeof (long int) - 1] == 1;
    9311 
    9312   ;
    9313   return 0;
    9314 }
    9315 _ACEOF
    9316 if ac_fn_cxx_try_run "$LINENO"; then :
    9317   ac_cv_c_bigendian=no
    9318 else
    9319   ac_cv_c_bigendian=yes
    9320 fi
    9321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
    9322   conftest.$ac_objext conftest.beam conftest.$ac_ext
    9323 fi
    9324 
    9325     fi
    9326 fi
    9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
    9328 $as_echo "$ac_cv_c_bigendian" >&6; }
    9329  case $ac_cv_c_bigendian in #(
    9330    yes)
    9331      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
    9332 ;; #(
    9333    no)
    9334       ;; #(
    9335    universal)
    9336 
    9337 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
    9338 
    9339      ;; #(
    9340    *)
    9341      as_fn_error $? "unknown endianness
    9342  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
    9343  esac
    9344 
    9345 # The cast to long int works around a bug in the HP C Compiler
    9346 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
    9347 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
    9348 # This bug is HP SR number 8606223364.
    9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
    9350 $as_echo_n "checking size of int... " >&6; }
    9351 if ${ac_cv_sizeof_int+:} false; then :
    9352   $as_echo_n "(cached) " >&6
    9353 else
    9354   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
    9355 
    9356 else
    9357   if test "$ac_cv_type_int" = yes; then
    9358      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    9359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    9360 as_fn_error 77 "cannot compute sizeof (int)
    9361 See \`config.log' for more details" "$LINENO" 5; }
    9362    else
    9363      ac_cv_sizeof_int=0
    9364    fi
    9365 fi
    9366 
    9367 fi
    9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
    9369 $as_echo "$ac_cv_sizeof_int" >&6; }
    9370 
    9371 
    9372 
    9373 cat >>confdefs.h <<_ACEOF
    9374 #define SIZEOF_INT $ac_cv_sizeof_int
    9375 _ACEOF
    9376 
    9377 
    9378 # The cast to long int works around a bug in the HP C Compiler
    9379 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
    9380 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
    9381 # This bug is HP SR number 8606223364.
    9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
    9383 $as_echo_n "checking size of long... " >&6; }
    9384 if ${ac_cv_sizeof_long+:} false; then :
    9385   $as_echo_n "(cached) " >&6
    9386 else
    9387   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
    9388 
    9389 else
    9390   if test "$ac_cv_type_long" = yes; then
    9391      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    9392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    9393 as_fn_error 77 "cannot compute sizeof (long)
    9394 See \`config.log' for more details" "$LINENO" 5; }
    9395    else
    9396      ac_cv_sizeof_long=0
    9397    fi
    9398 fi
    9399 
    9400 fi
    9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
    9402 $as_echo "$ac_cv_sizeof_long" >&6; }
    9403 
    9404 
    9405 
    9406 cat >>confdefs.h <<_ACEOF
    9407 #define SIZEOF_LONG $ac_cv_sizeof_long
    9408 _ACEOF
    9409 
    9410 
    9411 # The cast to long int works around a bug in the HP C Compiler
    9412 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
    9413 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
    9414 # This bug is HP SR number 8606223364.
    9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
    9416 $as_echo_n "checking size of long long... " >&6; }
    9417 if ${ac_cv_sizeof_long_long+:} false; then :
    9418   $as_echo_n "(cached) " >&6
    9419 else
    9420   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
    9421 
    9422 else
    9423   if test "$ac_cv_type_long_long" = yes; then
    9424      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    9425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    9426 as_fn_error 77 "cannot compute sizeof (long long)
    9427 See \`config.log' for more details" "$LINENO" 5; }
    9428    else
    9429      ac_cv_sizeof_long_long=0
    9430    fi
    9431 fi
    9432 
    9433 fi
    9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
    9435 $as_echo "$ac_cv_sizeof_long_long" >&6; }
    9436 
    9437 
    9438 
    9439 cat >>confdefs.h <<_ACEOF
    9440 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
    9441 _ACEOF
    9442 
    9443 
    9444 # The cast to long int works around a bug in the HP C Compiler
    9445 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
    9446 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
    9447 # This bug is HP SR number 8606223364.
    9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
    9449 $as_echo_n "checking size of void *... " >&6; }
    9450 if ${ac_cv_sizeof_void_p+:} false; then :
    9451   $as_echo_n "(cached) " >&6
    9452 else
    9453   if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
    9454 
    9455 else
    9456   if test "$ac_cv_type_void_p" = yes; then
    9457      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    9458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    9459 as_fn_error 77 "cannot compute sizeof (void *)
    9460 See \`config.log' for more details" "$LINENO" 5; }
    9461    else
    9462      ac_cv_sizeof_void_p=0
    9463    fi
    9464 fi
    9465 
    9466 fi
    9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
    9468 $as_echo "$ac_cv_sizeof_void_p" >&6; }
    9469 
    9470 
    9471 
    9472 cat >>confdefs.h <<_ACEOF
    9473 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
    9474 _ACEOF
    9475 
    9476 
    9477 
    9478 SIZEOF_LONG="${ac_cv_sizeof_long}"
    9479 SIZEOF_LONG_LONG="${ac_cv_sizeof_long_long}"
    9480 SIZEOF_VOID_P="${ac_cv_sizeof_void_p}"
    9481 SIZEOF_INT="${ac_cv_sizeof_int}"
    9482 
    9483 
    9484 #--------------------------------------------------------------------
    9485 # Set the default compiler switches based on the --enable-symbols
    9486 # option.
    9487 #--------------------------------------------------------------------
    9488 
    9489 
    94907936    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5
    94917937$as_echo_n "checking for build with symbols... " >&6; }
     
    95407986
    95417987
    9542 #--------------------------------------------------------------------
    9543 # search for ffmpeg libraries libavcodec, libavformat, libswscale
    9544 #--------------------------------------------------------------------
    9545 if test "${with_ffmpeg}" != "no" ; then
    9546   if test "${with_ffmpeg}" = "yes" ; then
    9547     # Extract the first word of "ffmpeg", so it can be a program name with args.
    9548 set dummy ffmpeg; ac_word=$2
    9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    9550 $as_echo_n "checking for $ac_word... " >&6; }
    9551 if ${ac_cv_path_FFMPEG+:} false; then :
    9552   $as_echo_n "(cached) " >&6
    9553 else
    9554   case $FFMPEG in
    9555   [\\/]* | ?:[\\/]*)
    9556   ac_cv_path_FFMPEG="$FFMPEG" # Let the user override the test with a path.
    9557   ;;
    9558   *)
    9559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    9560 for as_dir in $PATH
    9561 do
    9562   IFS=$as_save_IFS
    9563   test -z "$as_dir" && as_dir=.
    9564     for ac_exec_ext in '' $ac_executable_extensions; do
    9565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    9566     ac_cv_path_FFMPEG="$as_dir/$ac_word$ac_exec_ext"
    9567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    9568     break 2
    9569   fi
    9570 done
    9571   done
    9572 IFS=$as_save_IFS
    9573 
    9574   ;;
    9575 esac
    9576 fi
    9577 FFMPEG=$ac_cv_path_FFMPEG
    9578 if test -n "$FFMPEG"; then
    9579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FFMPEG" >&5
    9580 $as_echo "$FFMPEG" >&6; }
    9581 else
    9582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    9583 $as_echo "no" >&6; }
    9584 fi
    9585 
    9586 
    9587   else
    9588     # Extract the first word of "ffmpeg", so it can be a program name with args.
    9589 set dummy ffmpeg; ac_word=$2
    9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    9591 $as_echo_n "checking for $ac_word... " >&6; }
    9592 if ${ac_cv_path_FFMPEG+:} false; then :
    9593   $as_echo_n "(cached) " >&6
    9594 else
    9595   case $FFMPEG in
    9596   [\\/]* | ?:[\\/]*)
    9597   ac_cv_path_FFMPEG="$FFMPEG" # Let the user override the test with a path.
    9598   ;;
    9599   *)
    9600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    9601 as_dummy="${with_ffmpeg}/bin:${with_ffmpeg}"
    9602 for as_dir in $as_dummy
    9603 do
    9604   IFS=$as_save_IFS
    9605   test -z "$as_dir" && as_dir=.
    9606     for ac_exec_ext in '' $ac_executable_extensions; do
    9607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    9608     ac_cv_path_FFMPEG="$as_dir/$ac_word$ac_exec_ext"
    9609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    9610     break 2
    9611   fi
    9612 done
    9613   done
    9614 IFS=$as_save_IFS
    9615 
    9616   ;;
    9617 esac
    9618 fi
    9619 FFMPEG=$ac_cv_path_FFMPEG
    9620 if test -n "$FFMPEG"; then
    9621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FFMPEG" >&5
    9622 $as_echo "$FFMPEG" >&6; }
    9623 else
    9624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    9625 $as_echo "no" >&6; }
    9626 fi
    9627 
    9628 
    9629   fi
    9630   if test "${FFMPEG}x" != "x" ; then
    9631 
    9632 $as_echo "#define HAVE_FFMPEG 1" >>confdefs.h
    9633 
    9634   fi
    9635 fi
    9636 
    9637 for ac_header in ffmpeg/avcodec.h libavcodec/avcodec.h ffmpeg/avformat.h libavformat/avformat.h ffmpeg/avutil.h libavutil/avutil.h libavutil/mathematics.h ffmpeg/swscale.h libswscale/swscale.h
    9638 do :
    9639   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    9640 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
    9641 #define __STDC_CONSTANT_MACROS 1
    9642 
    9643 "
    9644 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
    9645   cat >>confdefs.h <<_ACEOF
    9646 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    9647 _ACEOF
    9648 
    9649 fi
    9650 
    9651 done
    9652 
    9653 
    9654 HAVE_FFMPEG_LIBS=""
    9655 if test "${with_ffmpeg}" != "no"; then
    9656   if [ \( "${ac_cv_header_ffmpeg_avcodec_h}" = "yes" -o \
    9657         "${ac_cv_header_libavcodec_avcodec_h}" = "yes" \) -a \
    9658      \( "${ac_cv_header_ffmpeg_avformat_h}" = "yes" -o \
    9659         "${ac_cv_header_libavformat_avformat_h}" = "yes" \) -a \
    9660      \( "${ac_cv_header_ffmpeg_avutil_h}" = "yes" -o \
    9661         "${ac_cv_header_libavutil_avutil_h}" = "yes" \) -a \
    9662      \( "${ac_cv_header_ffmpeg_swscale_h}" = "yes" -o \
    9663         "${ac_cv_header_libswscale_swscale_h}" = "yes" \) ] ; then
    9664     HAVE_FFMPEG_LIBS="yes"
    9665 
    9666 $as_echo "#define BUILD_with_ffmpeg 1" >>confdefs.h
    9667 
    9668   fi
    9669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavcodec" >&5
    9670 $as_echo_n "checking for main in -lavcodec... " >&6; }
    9671 if ${ac_cv_lib_avcodec_main+:} false; then :
    9672   $as_echo_n "(cached) " >&6
    9673 else
    9674   ac_check_lib_save_LIBS=$LIBS
    9675 LIBS="-lavcodec  $LIBS"
    9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    9677 /* end confdefs.h.  */
    9678 
    9679 
    9680 int
    9681 main ()
    9682 {
    9683 return main ();
    9684   ;
    9685   return 0;
    9686 }
    9687 _ACEOF
    9688 if ac_fn_cxx_try_link "$LINENO"; then :
    9689   ac_cv_lib_avcodec_main=yes
    9690 else
    9691   ac_cv_lib_avcodec_main=no
    9692 fi
    9693 rm -f core conftest.err conftest.$ac_objext \
    9694     conftest$ac_exeext conftest.$ac_ext
    9695 LIBS=$ac_check_lib_save_LIBS
    9696 fi
    9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_main" >&5
    9698 $as_echo "$ac_cv_lib_avcodec_main" >&6; }
    9699 if test "x$ac_cv_lib_avcodec_main" = xyes; then :
    9700   cat >>confdefs.h <<_ACEOF
    9701 #define HAVE_LIBAVCODEC 1
    9702 _ACEOF
    9703 
    9704   LIBS="-lavcodec $LIBS"
    9705 
    9706 else
    9707   as_fn_error $? "librappture requires libavcodec" "$LINENO" 5
    9708 fi
    9709 
    9710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavutil" >&5
    9711 $as_echo_n "checking for main in -lavutil... " >&6; }
    9712 if ${ac_cv_lib_avutil_main+:} false; then :
    9713   $as_echo_n "(cached) " >&6
    9714 else
    9715   ac_check_lib_save_LIBS=$LIBS
    9716 LIBS="-lavutil  $LIBS"
    9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    9718 /* end confdefs.h.  */
    9719 
    9720 
    9721 int
    9722 main ()
    9723 {
    9724 return main ();
    9725   ;
    9726   return 0;
    9727 }
    9728 _ACEOF
    9729 if ac_fn_cxx_try_link "$LINENO"; then :
    9730   ac_cv_lib_avutil_main=yes
    9731 else
    9732   ac_cv_lib_avutil_main=no
    9733 fi
    9734 rm -f core conftest.err conftest.$ac_objext \
    9735     conftest$ac_exeext conftest.$ac_ext
    9736 LIBS=$ac_check_lib_save_LIBS
    9737 fi
    9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_main" >&5
    9739 $as_echo "$ac_cv_lib_avutil_main" >&6; }
    9740 if test "x$ac_cv_lib_avutil_main" = xyes; then :
    9741   cat >>confdefs.h <<_ACEOF
    9742 #define HAVE_LIBAVUTIL 1
    9743 _ACEOF
    9744 
    9745   LIBS="-lavutil $LIBS"
    9746 
    9747 else
    9748   as_fn_error $? "librappture requires libavutil" "$LINENO" 5
    9749 fi
    9750 
    9751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavformat" >&5
    9752 $as_echo_n "checking for main in -lavformat... " >&6; }
    9753 if ${ac_cv_lib_avformat_main+:} false; then :
    9754   $as_echo_n "(cached) " >&6
    9755 else
    9756   ac_check_lib_save_LIBS=$LIBS
    9757 LIBS="-lavformat  $LIBS"
    9758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    9759 /* end confdefs.h.  */
    9760 
    9761 
    9762 int
    9763 main ()
    9764 {
    9765 return main ();
    9766   ;
    9767   return 0;
    9768 }
    9769 _ACEOF
    9770 if ac_fn_cxx_try_link "$LINENO"; then :
    9771   ac_cv_lib_avformat_main=yes
    9772 else
    9773   ac_cv_lib_avformat_main=no
    9774 fi
    9775 rm -f core conftest.err conftest.$ac_objext \
    9776     conftest$ac_exeext conftest.$ac_ext
    9777 LIBS=$ac_check_lib_save_LIBS
    9778 fi
    9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_main" >&5
    9780 $as_echo "$ac_cv_lib_avformat_main" >&6; }
    9781 if test "x$ac_cv_lib_avformat_main" = xyes; then :
    9782   cat >>confdefs.h <<_ACEOF
    9783 #define HAVE_LIBAVFORMAT 1
    9784 _ACEOF
    9785 
    9786   LIBS="-lavformat $LIBS"
    9787 
    9788 else
    9789   as_fn_error $? "librappture requires libavformat" "$LINENO" 5
    9790 fi
    9791 
    9792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lswscale" >&5
    9793 $as_echo_n "checking for main in -lswscale... " >&6; }
    9794 if ${ac_cv_lib_swscale_main+:} false; then :
    9795   $as_echo_n "(cached) " >&6
    9796 else
    9797   ac_check_lib_save_LIBS=$LIBS
    9798 LIBS="-lswscale  $LIBS"
    9799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    9800 /* end confdefs.h.  */
    9801 
    9802 
    9803 int
    9804 main ()
    9805 {
    9806 return main ();
    9807   ;
    9808   return 0;
    9809 }
    9810 _ACEOF
    9811 if ac_fn_cxx_try_link "$LINENO"; then :
    9812   ac_cv_lib_swscale_main=yes
    9813 else
    9814   ac_cv_lib_swscale_main=no
    9815 fi
    9816 rm -f core conftest.err conftest.$ac_objext \
    9817     conftest$ac_exeext conftest.$ac_ext
    9818 LIBS=$ac_check_lib_save_LIBS
    9819 fi
    9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_main" >&5
    9821 $as_echo "$ac_cv_lib_swscale_main" >&6; }
    9822 if test "x$ac_cv_lib_swscale_main" = xyes; then :
    9823   cat >>confdefs.h <<_ACEOF
    9824 #define HAVE_LIBSWSCALE 1
    9825 _ACEOF
    9826 
    9827   LIBS="-lswscale $LIBS"
    9828 
    9829 fi
    9830 
    9831   for ac_func in av_find_stream_info
    9832 do :
    9833   ac_fn_cxx_check_func "$LINENO" "av_find_stream_info" "ac_cv_func_av_find_stream_info"
    9834 if test "x$ac_cv_func_av_find_stream_info" = xyes; then :
    9835   cat >>confdefs.h <<_ACEOF
    9836 #define HAVE_AV_FIND_STREAM_INFO 1
    9837 _ACEOF
    9838 
    9839 fi
    9840 done
    9841 
    9842   for ac_func in av_open_input_file
    9843 do :
    9844   ac_fn_cxx_check_func "$LINENO" "av_open_input_file" "ac_cv_func_av_open_input_file"
    9845 if test "x$ac_cv_func_av_open_input_file" = xyes; then :
    9846   cat >>confdefs.h <<_ACEOF
    9847 #define HAVE_AV_OPEN_INPUT_FILE 1
    9848 _ACEOF
    9849 
    9850 fi
    9851 done
    9852 
    9853   for ac_func in avcodec_decode_video
    9854 do :
    9855   ac_fn_cxx_check_func "$LINENO" "avcodec_decode_video" "ac_cv_func_avcodec_decode_video"
    9856 if test "x$ac_cv_func_avcodec_decode_video" = xyes; then :
    9857   cat >>confdefs.h <<_ACEOF
    9858 #define HAVE_AVCODEC_DECODE_VIDEO 1
    9859 _ACEOF
    9860 
    9861 fi
    9862 done
    9863 
    9864   for ac_func in avcodec_decode_video2
    9865 do :
    9866   ac_fn_cxx_check_func "$LINENO" "avcodec_decode_video2" "ac_cv_func_avcodec_decode_video2"
    9867 if test "x$ac_cv_func_avcodec_decode_video2" = xyes; then :
    9868   cat >>confdefs.h <<_ACEOF
    9869 #define HAVE_AVCODEC_DECODE_VIDEO2 1
    9870 _ACEOF
    9871 
    9872 fi
    9873 done
    9874 
    9875   for ac_func in avcodec_open
    9876 do :
    9877   ac_fn_cxx_check_func "$LINENO" "avcodec_open" "ac_cv_func_avcodec_open"
    9878 if test "x$ac_cv_func_avcodec_open" = xyes; then :
    9879   cat >>confdefs.h <<_ACEOF
    9880 #define HAVE_AVCODEC_OPEN 1
    9881 _ACEOF
    9882 
    9883 fi
    9884 done
    9885 
    9886   for ac_func in avcodec_open2
    9887 do :
    9888   ac_fn_cxx_check_func "$LINENO" "avcodec_open2" "ac_cv_func_avcodec_open2"
    9889 if test "x$ac_cv_func_avcodec_open2" = xyes; then :
    9890   cat >>confdefs.h <<_ACEOF
    9891 #define HAVE_AVCODEC_OPEN2 1
    9892 _ACEOF
    9893 
    9894 fi
    9895 done
    9896 
    9897   for ac_func in avformat_find_stream_info
    9898 do :
    9899   ac_fn_cxx_check_func "$LINENO" "avformat_find_stream_info" "ac_cv_func_avformat_find_stream_info"
    9900 if test "x$ac_cv_func_avformat_find_stream_info" = xyes; then :
    9901   cat >>confdefs.h <<_ACEOF
    9902 #define HAVE_AVFORMAT_FIND_STREAM_INFO 1
    9903 _ACEOF
    9904 
    9905 fi
    9906 done
    9907 
    9908   for ac_func in avformat_open_input
    9909 do :
    9910   ac_fn_cxx_check_func "$LINENO" "avformat_open_input" "ac_cv_func_avformat_open_input"
    9911 if test "x$ac_cv_func_avformat_open_input" = xyes; then :
    9912   cat >>confdefs.h <<_ACEOF
    9913 #define HAVE_AVFORMAT_OPEN_INPUT 1
    9914 _ACEOF
    9915 
    9916 fi
    9917 done
    9918 
    9919   for ac_func in avio_close
    9920 do :
    9921   ac_fn_cxx_check_func "$LINENO" "avio_close" "ac_cv_func_avio_close"
    9922 if test "x$ac_cv_func_avio_close" = xyes; then :
    9923   cat >>confdefs.h <<_ACEOF
    9924 #define HAVE_AVIO_CLOSE 1
    9925 _ACEOF
    9926 
    9927 fi
    9928 done
    9929 
    9930   for ac_func in img_convert
    9931 do :
    9932   ac_fn_cxx_check_func "$LINENO" "img_convert" "ac_cv_func_img_convert"
    9933 if test "x$ac_cv_func_img_convert" = xyes; then :
    9934   cat >>confdefs.h <<_ACEOF
    9935 #define HAVE_IMG_CONVERT 1
    9936 _ACEOF
    9937 
    9938 fi
    9939 done
    9940 
    9941   for ac_func in sws_getCachedContext
    9942 do :
    9943   ac_fn_cxx_check_func "$LINENO" "sws_getCachedContext" "ac_cv_func_sws_getCachedContext"
    9944 if test "x$ac_cv_func_sws_getCachedContext" = xyes; then :
    9945   cat >>confdefs.h <<_ACEOF
    9946 #define HAVE_SWS_GETCACHEDCONTEXT 1
    9947 _ACEOF
    9948 
    9949 fi
    9950 done
    9951 
    9952   for ac_func in sws_scale
    9953 do :
    9954   ac_fn_cxx_check_func "$LINENO" "sws_scale" "ac_cv_func_sws_scale"
    9955 if test "x$ac_cv_func_sws_scale" = xyes; then :
    9956   cat >>confdefs.h <<_ACEOF
    9957 #define HAVE_SWS_SCALE 1
    9958 _ACEOF
    9959 
    9960 fi
    9961 done
    9962 
    9963   for ac_func in url_close
    9964 do :
    9965   ac_fn_cxx_check_func "$LINENO" "url_close" "ac_cv_func_url_close"
    9966 if test "x$ac_cv_func_url_close" = xyes; then :
    9967   cat >>confdefs.h <<_ACEOF
    9968 #define HAVE_URL_CLOSE 1
    9969 _ACEOF
    9970 
    9971 fi
    9972 done
    9973 
    9974   for ac_func in av_close_input_file
    9975 do :
    9976   ac_fn_cxx_check_func "$LINENO" "av_close_input_file" "ac_cv_func_av_close_input_file"
    9977 if test "x$ac_cv_func_av_close_input_file" = xyes; then :
    9978   cat >>confdefs.h <<_ACEOF
    9979 #define HAVE_AV_CLOSE_INPUT_FILE 1
    9980 _ACEOF
    9981 
    9982 fi
    9983 done
    9984 
    9985   for ac_func in avformat_close_input
    9986 do :
    9987   ac_fn_cxx_check_func "$LINENO" "avformat_close_input" "ac_cv_func_avformat_close_input"
    9988 if test "x$ac_cv_func_avformat_close_input" = xyes; then :
    9989   cat >>confdefs.h <<_ACEOF
    9990 #define HAVE_AVFORMAT_CLOSE_INPUT 1
    9991 _ACEOF
    9992 
    9993 fi
    9994 done
    9995 
    9996 
    9997   ac_fn_cxx_check_func "$LINENO" "avcodec_find_decoder" "ac_cv_func_avcodec_find_decoder"
    9998 if test "x$ac_cv_func_avcodec_find_decoder" = xyes; then :
    9999 
    10000 else
    10001   as_fn_error $? "oops! no av_codec_find_decoder ?!?" "$LINENO" 5
    10002 fi
    10003 
    10004   ac_fn_cxx_check_func "$LINENO" "avcodec_alloc_frame" "ac_cv_func_avcodec_alloc_frame"
    10005 if test "x$ac_cv_func_avcodec_alloc_frame" = xyes; then :
    10006 
    10007 else
    10008   as_fn_error $? "oops! no avcode_alloc_frame ?!?" "$LINENO" 5
    10009 fi
    10010 
    10011   ac_fn_cxx_check_func "$LINENO" "av_rescale_q" "ac_cv_func_av_rescale_q"
    10012 if test "x$ac_cv_func_av_rescale_q" = xyes; then :
    10013 
    10014 else
    10015   as_fn_error $? "oops! no av_rescale_q ?!?" "$LINENO" 5
    10016 fi
    10017 
    10018   ac_fn_cxx_check_func "$LINENO" "av_read_frame" "ac_cv_func_av_read_frame"
    10019 if test "x$ac_cv_func_av_read_frame" = xyes; then :
    10020 
    10021 else
    10022   as_fn_error $? "oops! av_read_frame ?!?" "$LINENO" 5
    10023 fi
    10024 
    10025   ac_fn_cxx_check_func "$LINENO" "av_free" "ac_cv_func_av_free"
    10026 if test "x$ac_cv_func_av_free" = xyes; then :
    10027 
    10028 else
    10029   as_fn_error $? "oops! no av_frame ?!?" "$LINENO" 5
    10030 fi
    10031 
    10032   ac_fn_cxx_check_func "$LINENO" "avcodec_default_release_buffer" "ac_cv_func_avcodec_default_release_buffer"
    10033 if test "x$ac_cv_func_avcodec_default_release_buffer" = xyes; then :
    10034 
    10035 else
    10036   as_fn_error $? "oops! no avcode_default_release_buffer ?!?" "$LINENO" 5
    10037 fi
    10038 
    10039   ac_fn_cxx_check_func "$LINENO" "avpicture_get_size" "ac_cv_func_avpicture_get_size"
    10040 if test "x$ac_cv_func_avpicture_get_size" = xyes; then :
    10041 
    10042 else
    10043   as_fn_error $? "oops! no avpicture_get_size ?!?" "$LINENO" 5
    10044 fi
    10045 
    10046   ac_fn_cxx_check_func "$LINENO" "avpicture_fill" "ac_cv_func_avpicture_fill"
    10047 if test "x$ac_cv_func_avpicture_fill" = xyes; then :
    10048 
    10049 else
    10050   as_fn_error $? "oops! no avpicture_fill ?!?" "$LINENO" 5
    10051 fi
    10052 
    10053   for ac_func in sws_getCachedContext
    10054 do :
    10055   ac_fn_cxx_check_func "$LINENO" "sws_getCachedContext" "ac_cv_func_sws_getCachedContext"
    10056 if test "x$ac_cv_func_sws_getCachedContext" = xyes; then :
    10057   cat >>confdefs.h <<_ACEOF
    10058 #define HAVE_SWS_GETCACHEDCONTEXT 1
    10059 _ACEOF
    10060 
    10061 fi
    10062 done
    10063 
    10064   for ac_func in img_convert
    10065 do :
    10066   ac_fn_cxx_check_func "$LINENO" "img_convert" "ac_cv_func_img_convert"
    10067 if test "x$ac_cv_func_img_convert" = xyes; then :
    10068   cat >>confdefs.h <<_ACEOF
    10069 #define HAVE_IMG_CONVERT 1
    10070 _ACEOF
    10071 
    10072 fi
    10073 done
    10074 
    10075   for ac_func in sws_scale
    10076 do :
    10077   ac_fn_cxx_check_func "$LINENO" "sws_scale" "ac_cv_func_sws_scale"
    10078 if test "x$ac_cv_func_sws_scale" = xyes; then :
    10079   cat >>confdefs.h <<_ACEOF
    10080 #define HAVE_SWS_SCALE 1
    10081 _ACEOF
    10082 
    10083 fi
    10084 done
    10085 
    10086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    10087 /* end confdefs.h.  */
    10088 
    10089 #define __STDC_CONSTANT_MACROS 1
    10090 #include <stdlib.h>
    10091 #ifdef HAVE_FFMPEG_AVCODEC_H
    10092 # include <ffmpeg/avcodec.h>
    10093 #endif
    10094 #ifdef HAVE_LIBAVCODEC_AVCODEC_H
    10095 # include <libavcodec/avcodec.h>
    10096 #endif
    10097 int x = AVMEDIA_TYPE_VIDEO;
    10098 
    10099 int
    10100 main ()
    10101 {
    10102 
    10103   ;
    10104   return 0;
    10105 }
    10106 _ACEOF
    10107 if ac_fn_cxx_try_compile "$LINENO"; then :
    10108   ac_avmedia_type_video="yes"
    10109 else
    10110   ac_avmedia_type_video="no"
    10111 fi
    10112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    10113   if test "$ac_avmedia_type_video" == "yes" ; then
    10114 
    10115 $as_echo "#define HAVE_AVMEDIA_TYPE_VIDEO 1" >>confdefs.h
    10116 
    10117   fi
    10118 fi
    10119 
    10120 
    10121 
    10122 
    10123 
    10124 
    10125 
    10126 
    10127 
    10128 
    10129 
    10130 
    10131 
    10132 
    10133 
    101347988
    101357989
     
    101868040
    101878041
    10188 
    10189 
    10190 
    10191 
    10192 
    10193 
    10194 
    10195 
    10196 
    10197 
    10198 
    10199 
    10200 
    10201 
    10202 
    10203 
    10204 
    10205 
    10206 
    10207 
    10208 
    10209 
    10210 
    10211 
    10212 ac_configure_args="--disable-threads --enable-shared"
    10213 
    10214 
    10215 subdirs="$subdirs packages/optimizer/src"
    10216 
    10217 
    10218 ac_config_files="$ac_config_files Makefile packages/Makefile src/Makefile src/core/Makefile src/core2/Makefile src/objects/Makefile src/objects/RpHash.h gui/Makefile gui/apps/Makefile gui/apps/about gui/apps/copy_rappture_examples gui/apps/encodedata gui/apps/rappture gui/apps/rappture-csh.env gui/apps/rappture.env gui/apps/rappture.use gui/apps/rerun gui/apps/simsim gui/apps/xmldiff gui/pkgIndex.tcl gui/scripts/Makefile gui/src/Makefile builder/Makefile builder/pkgIndex.tcl builder/scripts/Makefile tester/Makefile tester/pkgIndex.tcl tester/scripts/Makefile lang/Makefile lang/java/Makefile lang/java/rappture/Makefile lang/perl/Makefile lang/perl/Makefile.PL lang/python/Makefile lang/python/setup.py lang/matlab/Makefile lang/octave/Makefile lang/octave/octave2/Makefile lang/octave/octave3/Makefile lang/R/Makefile lang/ruby/Makefile lang/ruby/build.rb lang/tcl/Makefile lang/tcl/pkgIndex.tcl lang/tcl/scripts/Makefile lang/tcl/src/Makefile lang/tcl/tests/Makefile lib/Makefile examples/3D/Makefile examples/Makefile examples/app-fermi/2.0/Makefile examples/app-fermi/Makefile examples/app-fermi/cee/Makefile examples/app-fermi/fortran/Makefile examples/app-fermi/java/Makefile examples/app-fermi/matlab/Makefile examples/app-fermi/matlab/compiled/Makefile examples/app-fermi/matlab/uncompiled/Makefile examples/app-fermi/octave/octave2/Makefile examples/app-fermi/octave/octave3/Makefile examples/app-fermi/octave/Makefile examples/app-fermi/perl/Makefile examples/app-fermi/python/Makefile examples/app-fermi/ruby/Makefile examples/app-fermi/tcl/Makefile examples/app-fermi/wrapper/Makefile examples/app-fermi/wrapper/cee/Makefile examples/app-fermi/wrapper/perl/Makefile examples/app-fermi/wrapper/python/Makefile examples/app-fermi/wrapper/tcl/Makefile examples/app-fermi/R/Makefile examples/c-example/Makefile examples/canvas/Makefile examples/demo.bash examples/flow/Makefile examples/flow/demo1/Makefile examples/flow/demo2/Makefile examples/flow/demo3/Makefile examples/graph/Makefile examples/objects/Makefile examples/objects/axis/Makefile examples/objects/curve/Makefile examples/objects/dxWriter/Makefile examples/objects/floatBuffer/Makefile examples/objects/histogram/Makefile examples/objects/library/Makefile examples/objects/number/Makefile examples/objects/path/Makefile examples/objects/plot/Makefile examples/objects/scatter/Makefile examples/objects/string/Makefile examples/objects/tree/Makefile examples/objects/xmlparser/Makefile examples/zoo/Makefile examples/zoo/binary/Makefile examples/zoo/boolean/Makefile examples/zoo/choice/Makefile examples/zoo/curve/Makefile examples/zoo/drawing/Makefile examples/zoo/enable/Makefile examples/zoo/field/Makefile examples/zoo/group/Makefile examples/zoo/histogram/Makefile examples/zoo/image/Makefile examples/zoo/image/docs/Makefile examples/zoo/image/examples/Makefile examples/zoo/integer/Makefile examples/zoo/integer2/Makefile examples/zoo/loader/Makefile examples/zoo/loader/examples/Makefile examples/zoo/log/Makefile examples/zoo/mesh/Makefile examples/zoo/note/Makefile examples/zoo/note/docs/Makefile examples/zoo/number/Makefile examples/zoo/number2/Makefile examples/zoo/parallelepiped/Makefile examples/zoo/periodicelement/Makefile examples/zoo/phase/Makefile examples/zoo/sequence/Makefile examples/zoo/sequence/examples/Makefile examples/zoo/string/Makefile examples/zoo/structure/Makefile examples/zoo/structure/examples/Makefile examples/zoo/table/Makefile video/Makefile video/pkgIndex.tcl oldtest/Makefile oldtest/src/Makefile puq/Makefile"
     8042ac_config_files="$ac_config_files Makefile fixrunpaths.tcl apps/Makefile apps/about apps/copy_rappture_examples apps/encodedata apps/rappture apps/rappture-csh.env apps/rappture.env apps/rappture.use apps/rerun apps/simsim apps/xmldiff libs/Makefile libs/objects/Makefile libs/objects/RpHash.h libs/rappture/Makefile libs/rappture2/Makefile rapptureConfig.sh"
    102198043
    102208044cat >confcache <<\_ACEOF
     
    107258549# values after options handling.
    107268550ac_log="
    10727 This file was extended by Rappture $as_me 1.4, which was
     8551This file was extended by Rappture $as_me 1.5, which was
    107288552generated by GNU Autoconf 2.69.  Invocation command line was
    107298553
     
    107878611ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
    107888612ac_cs_version="\\
    10789 Rappture config.status 1.4
     8613Rappture config.status 1.5
    107908614configured by $0, generated by GNU Autoconf 2.69,
    107918615  with options \\"\$ac_cs_config\\"
     
    109108734do
    109118735  case $ac_config_target in
    10912     "src/core/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/core/config.h" ;;
     8736    "libs/rappture/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libs/rappture/config.h" ;;
    109138737    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    10914     "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
    10915     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
    10916     "src/core/Makefile") CONFIG_FILES="$CONFIG_FILES src/core/Makefile" ;;
    10917     "src/core2/Makefile") CONFIG_FILES="$CONFIG_FILES src/core2/Makefile" ;;
    10918     "src/objects/Makefile") CONFIG_FILES="$CONFIG_FILES src/objects/Makefile" ;;
    10919     "src/objects/RpHash.h") CONFIG_FILES="$CONFIG_FILES src/objects/RpHash.h" ;;
    10920     "gui/Makefile") CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;;
    10921     "gui/apps/Makefile") CONFIG_FILES="$CONFIG_FILES gui/apps/Makefile" ;;
    10922     "gui/apps/about") CONFIG_FILES="$CONFIG_FILES gui/apps/about" ;;
    10923     "gui/apps/copy_rappture_examples") CONFIG_FILES="$CONFIG_FILES gui/apps/copy_rappture_examples" ;;
    10924     "gui/apps/encodedata") CONFIG_FILES="$CONFIG_FILES gui/apps/encodedata" ;;
    10925     "gui/apps/rappture") CONFIG_FILES="$CONFIG_FILES gui/apps/rappture" ;;
    10926     "gui/apps/rappture-csh.env") CONFIG_FILES="$CONFIG_FILES gui/apps/rappture-csh.env" ;;
    10927     "gui/apps/rappture.env") CONFIG_FILES="$CONFIG_FILES gui/apps/rappture.env" ;;
    10928     "gui/apps/rappture.use") CONFIG_FILES="$CONFIG_FILES gui/apps/rappture.use" ;;
    10929     "gui/apps/rerun") CONFIG_FILES="$CONFIG_FILES gui/apps/rerun" ;;
    10930     "gui/apps/simsim") CONFIG_FILES="$CONFIG_FILES gui/apps/simsim" ;;
    10931     "gui/apps/xmldiff") CONFIG_FILES="$CONFIG_FILES gui/apps/xmldiff" ;;
    10932     "gui/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES gui/pkgIndex.tcl" ;;
    10933     "gui/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES gui/scripts/Makefile" ;;
    10934     "gui/src/Makefile") CONFIG_FILES="$CONFIG_FILES gui/src/Makefile" ;;
    10935     "builder/Makefile") CONFIG_FILES="$CONFIG_FILES builder/Makefile" ;;
    10936     "builder/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES builder/pkgIndex.tcl" ;;
    10937     "builder/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES builder/scripts/Makefile" ;;
    10938     "tester/Makefile") CONFIG_FILES="$CONFIG_FILES tester/Makefile" ;;
    10939     "tester/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES tester/pkgIndex.tcl" ;;
    10940     "tester/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tester/scripts/Makefile" ;;
    10941     "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
    10942     "lang/java/Makefile") CONFIG_FILES="$CONFIG_FILES lang/java/Makefile" ;;
    10943     "lang/java/rappture/Makefile") CONFIG_FILES="$CONFIG_FILES lang/java/rappture/Makefile" ;;
    10944     "lang/perl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/perl/Makefile" ;;
    10945     "lang/perl/Makefile.PL") CONFIG_FILES="$CONFIG_FILES lang/perl/Makefile.PL" ;;
    10946     "lang/python/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/Makefile" ;;
    10947     "lang/python/setup.py") CONFIG_FILES="$CONFIG_FILES lang/python/setup.py" ;;
    10948     "lang/matlab/Makefile") CONFIG_FILES="$CONFIG_FILES lang/matlab/Makefile" ;;
    10949     "lang/octave/Makefile") CONFIG_FILES="$CONFIG_FILES lang/octave/Makefile" ;;
    10950     "lang/octave/octave2/Makefile") CONFIG_FILES="$CONFIG_FILES lang/octave/octave2/Makefile" ;;
    10951     "lang/octave/octave3/Makefile") CONFIG_FILES="$CONFIG_FILES lang/octave/octave3/Makefile" ;;
    10952     "lang/R/Makefile") CONFIG_FILES="$CONFIG_FILES lang/R/Makefile" ;;
    10953     "lang/ruby/Makefile") CONFIG_FILES="$CONFIG_FILES lang/ruby/Makefile" ;;
    10954     "lang/ruby/build.rb") CONFIG_FILES="$CONFIG_FILES lang/ruby/build.rb" ;;
    10955     "lang/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/tcl/Makefile" ;;
    10956     "lang/tcl/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES lang/tcl/pkgIndex.tcl" ;;
    10957     "lang/tcl/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES lang/tcl/scripts/Makefile" ;;
    10958     "lang/tcl/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/tcl/src/Makefile" ;;
    10959     "lang/tcl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/tcl/tests/Makefile" ;;
    10960     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
    10961     "examples/3D/Makefile") CONFIG_FILES="$CONFIG_FILES examples/3D/Makefile" ;;
    10962     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
    10963     "examples/app-fermi/2.0/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/2.0/Makefile" ;;
    10964     "examples/app-fermi/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/Makefile" ;;
    10965     "examples/app-fermi/cee/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/cee/Makefile" ;;
    10966     "examples/app-fermi/fortran/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/fortran/Makefile" ;;
    10967     "examples/app-fermi/java/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/java/Makefile" ;;
    10968     "examples/app-fermi/matlab/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/matlab/Makefile" ;;
    10969     "examples/app-fermi/matlab/compiled/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/matlab/compiled/Makefile" ;;
    10970     "examples/app-fermi/matlab/uncompiled/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/matlab/uncompiled/Makefile" ;;
    10971     "examples/app-fermi/octave/octave2/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/octave/octave2/Makefile" ;;
    10972     "examples/app-fermi/octave/octave3/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/octave/octave3/Makefile" ;;
    10973     "examples/app-fermi/octave/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/octave/Makefile" ;;
    10974     "examples/app-fermi/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/perl/Makefile" ;;
    10975     "examples/app-fermi/python/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/python/Makefile" ;;
    10976     "examples/app-fermi/ruby/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/ruby/Makefile" ;;
    10977     "examples/app-fermi/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/tcl/Makefile" ;;
    10978     "examples/app-fermi/wrapper/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/Makefile" ;;
    10979     "examples/app-fermi/wrapper/cee/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/cee/Makefile" ;;
    10980     "examples/app-fermi/wrapper/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/perl/Makefile" ;;
    10981     "examples/app-fermi/wrapper/python/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/python/Makefile" ;;
    10982     "examples/app-fermi/wrapper/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/tcl/Makefile" ;;
    10983     "examples/app-fermi/R/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/R/Makefile" ;;
    10984     "examples/c-example/Makefile") CONFIG_FILES="$CONFIG_FILES examples/c-example/Makefile" ;;
    10985     "examples/canvas/Makefile") CONFIG_FILES="$CONFIG_FILES examples/canvas/Makefile" ;;
    10986     "examples/demo.bash") CONFIG_FILES="$CONFIG_FILES examples/demo.bash" ;;
    10987     "examples/flow/Makefile") CONFIG_FILES="$CONFIG_FILES examples/flow/Makefile" ;;
    10988     "examples/flow/demo1/Makefile") CONFIG_FILES="$CONFIG_FILES examples/flow/demo1/Makefile" ;;
    10989     "examples/flow/demo2/Makefile") CONFIG_FILES="$CONFIG_FILES examples/flow/demo2/Makefile" ;;
    10990     "examples/flow/demo3/Makefile") CONFIG_FILES="$CONFIG_FILES examples/flow/demo3/Makefile" ;;
    10991     "examples/graph/Makefile") CONFIG_FILES="$CONFIG_FILES examples/graph/Makefile" ;;
    10992     "examples/objects/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/Makefile" ;;
    10993     "examples/objects/axis/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/axis/Makefile" ;;
    10994     "examples/objects/curve/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/curve/Makefile" ;;
    10995     "examples/objects/dxWriter/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/dxWriter/Makefile" ;;
    10996     "examples/objects/floatBuffer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/floatBuffer/Makefile" ;;
    10997     "examples/objects/histogram/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/histogram/Makefile" ;;
    10998     "examples/objects/library/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/library/Makefile" ;;
    10999     "examples/objects/number/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/number/Makefile" ;;
    11000     "examples/objects/path/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/path/Makefile" ;;
    11001     "examples/objects/plot/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/plot/Makefile" ;;
    11002     "examples/objects/scatter/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/scatter/Makefile" ;;
    11003     "examples/objects/string/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/string/Makefile" ;;
    11004     "examples/objects/tree/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/tree/Makefile" ;;
    11005     "examples/objects/xmlparser/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/xmlparser/Makefile" ;;
    11006     "examples/zoo/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/Makefile" ;;
    11007     "examples/zoo/binary/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/binary/Makefile" ;;
    11008     "examples/zoo/boolean/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/boolean/Makefile" ;;
    11009     "examples/zoo/choice/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/choice/Makefile" ;;
    11010     "examples/zoo/curve/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/curve/Makefile" ;;
    11011     "examples/zoo/drawing/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/drawing/Makefile" ;;
    11012     "examples/zoo/enable/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/enable/Makefile" ;;
    11013     "examples/zoo/field/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/field/Makefile" ;;
    11014     "examples/zoo/group/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/group/Makefile" ;;
    11015     "examples/zoo/histogram/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/histogram/Makefile" ;;
    11016     "examples/zoo/image/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/image/Makefile" ;;
    11017     "examples/zoo/image/docs/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/image/docs/Makefile" ;;
    11018     "examples/zoo/image/examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/image/examples/Makefile" ;;
    11019     "examples/zoo/integer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/integer/Makefile" ;;
    11020     "examples/zoo/integer2/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/integer2/Makefile" ;;
    11021     "examples/zoo/loader/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/loader/Makefile" ;;
    11022     "examples/zoo/loader/examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/loader/examples/Makefile" ;;
    11023     "examples/zoo/log/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/log/Makefile" ;;
    11024     "examples/zoo/mesh/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/mesh/Makefile" ;;
    11025     "examples/zoo/note/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/note/Makefile" ;;
    11026     "examples/zoo/note/docs/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/note/docs/Makefile" ;;
    11027     "examples/zoo/number/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/number/Makefile" ;;
    11028     "examples/zoo/number2/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/number2/Makefile" ;;
    11029     "examples/zoo/parallelepiped/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/parallelepiped/Makefile" ;;
    11030     "examples/zoo/periodicelement/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/periodicelement/Makefile" ;;
    11031     "examples/zoo/phase/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/phase/Makefile" ;;
    11032     "examples/zoo/sequence/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/sequence/Makefile" ;;
    11033     "examples/zoo/sequence/examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/sequence/examples/Makefile" ;;
    11034     "examples/zoo/string/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/string/Makefile" ;;
    11035     "examples/zoo/structure/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/structure/Makefile" ;;
    11036     "examples/zoo/structure/examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/structure/examples/Makefile" ;;
    11037     "examples/zoo/table/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/table/Makefile" ;;
    11038     "video/Makefile") CONFIG_FILES="$CONFIG_FILES video/Makefile" ;;
    11039     "video/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES video/pkgIndex.tcl" ;;
    11040     "oldtest/Makefile") CONFIG_FILES="$CONFIG_FILES oldtest/Makefile" ;;
    11041     "oldtest/src/Makefile") CONFIG_FILES="$CONFIG_FILES oldtest/src/Makefile" ;;
    11042     "puq/Makefile") CONFIG_FILES="$CONFIG_FILES puq/Makefile" ;;
     8738    "fixrunpaths.tcl") CONFIG_FILES="$CONFIG_FILES fixrunpaths.tcl" ;;
     8739    "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;;
     8740    "apps/about") CONFIG_FILES="$CONFIG_FILES apps/about" ;;
     8741    "apps/copy_rappture_examples") CONFIG_FILES="$CONFIG_FILES apps/copy_rappture_examples" ;;
     8742    "apps/encodedata") CONFIG_FILES="$CONFIG_FILES apps/encodedata" ;;
     8743    "apps/rappture") CONFIG_FILES="$CONFIG_FILES apps/rappture" ;;
     8744    "apps/rappture-csh.env") CONFIG_FILES="$CONFIG_FILES apps/rappture-csh.env" ;;
     8745    "apps/rappture.env") CONFIG_FILES="$CONFIG_FILES apps/rappture.env" ;;
     8746    "apps/rappture.use") CONFIG_FILES="$CONFIG_FILES apps/rappture.use" ;;
     8747    "apps/rerun") CONFIG_FILES="$CONFIG_FILES apps/rerun" ;;
     8748    "apps/simsim") CONFIG_FILES="$CONFIG_FILES apps/simsim" ;;
     8749    "apps/xmldiff") CONFIG_FILES="$CONFIG_FILES apps/xmldiff" ;;
     8750    "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
     8751    "libs/objects/Makefile") CONFIG_FILES="$CONFIG_FILES libs/objects/Makefile" ;;
     8752    "libs/objects/RpHash.h") CONFIG_FILES="$CONFIG_FILES libs/objects/RpHash.h" ;;
     8753    "libs/rappture/Makefile") CONFIG_FILES="$CONFIG_FILES libs/rappture/Makefile" ;;
     8754    "libs/rappture2/Makefile") CONFIG_FILES="$CONFIG_FILES libs/rappture2/Makefile" ;;
     8755    "rapptureConfig.sh") CONFIG_FILES="$CONFIG_FILES rapptureConfig.sh" ;;
    110438756
    110448757  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
     
    116289341  $ac_cs_success || as_fn_exit 1
    116299342fi
    11630 
    11631 #
    11632 # CONFIG_SUBDIRS section.
    11633 #
    11634 if test "$no_recursion" != yes; then
    11635 
    11636   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
    11637   # so they do not pile up.
    11638   ac_sub_configure_args=
    11639   ac_prev=
    11640   eval "set x $ac_configure_args"
    11641   shift
    11642   for ac_arg
    11643   do
    11644     if test -n "$ac_prev"; then
    11645       ac_prev=
    11646       continue
    11647     fi
    11648     case $ac_arg in
    11649     -cache-file | --cache-file | --cache-fil | --cache-fi \
    11650     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    11651       ac_prev=cache_file ;;
    11652     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    11653     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
    11654     | --c=*)
    11655       ;;
    11656     --config-cache | -C)
    11657       ;;
    11658     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    11659       ac_prev=srcdir ;;
    11660     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    11661       ;;
    11662     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    11663       ac_prev=prefix ;;
    11664     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    11665       ;;
    11666     --disable-option-checking)
    11667       ;;
    11668     *)
    11669       case $ac_arg in
    11670       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    11671       esac
    11672       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
    11673     esac
    11674   done
    11675 
    11676   # Always prepend --prefix to ensure using the same prefix
    11677   # in subdir configurations.
    11678   ac_arg="--prefix=$prefix"
    11679   case $ac_arg in
    11680   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    11681   esac
    11682   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
    11683 
    11684   # Pass --silent
    11685   if test "$silent" = yes; then
    11686     ac_sub_configure_args="--silent $ac_sub_configure_args"
    11687   fi
    11688 
    11689   # Always prepend --disable-option-checking to silence warnings, since
    11690   # different subdirs can have different --enable and --with options.
    11691   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
    11692 
    11693   ac_popdir=`pwd`
    11694   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
    11695 
    11696     # Do not complain, so a configure script can configure whichever
    11697     # parts of a large source tree are present.
    11698     test -d "$srcdir/$ac_dir" || continue
    11699 
    11700     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
    11701     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
    11702     $as_echo "$ac_msg" >&6
    11703     as_dir="$ac_dir"; as_fn_mkdir_p
    11704     ac_builddir=.
    11705 
    11706 case "$ac_dir" in
    11707 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
    11708 *)
    11709   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
    11710   # A ".." for each directory in $ac_dir_suffix.
    11711   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
    11712   case $ac_top_builddir_sub in
    11713   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
    11714   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
    11715   esac ;;
    11716 esac
    11717 ac_abs_top_builddir=$ac_pwd
    11718 ac_abs_builddir=$ac_pwd$ac_dir_suffix
    11719 # for backward compatibility:
    11720 ac_top_builddir=$ac_top_build_prefix
    11721 
    11722 case $srcdir in
    11723   .)  # We are building in place.
    11724     ac_srcdir=.
    11725     ac_top_srcdir=$ac_top_builddir_sub
    11726     ac_abs_top_srcdir=$ac_pwd ;;
    11727   [\\/]* | ?:[\\/]* )  # Absolute name.
    11728     ac_srcdir=$srcdir$ac_dir_suffix;
    11729     ac_top_srcdir=$srcdir
    11730     ac_abs_top_srcdir=$srcdir ;;
    11731   *) # Relative name.
    11732     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    11733     ac_top_srcdir=$ac_top_build_prefix$srcdir
    11734     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
    11735 esac
    11736 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
    11737 
    11738 
    11739     cd "$ac_dir"
    11740 
    11741     # Check for guested configure; otherwise get Cygnus style configure.
    11742     if test -f "$ac_srcdir/configure.gnu"; then
    11743       ac_sub_configure=$ac_srcdir/configure.gnu
    11744     elif test -f "$ac_srcdir/configure"; then
    11745       ac_sub_configure=$ac_srcdir/configure
    11746     elif test -f "$ac_srcdir/configure.in"; then
    11747       # This should be Cygnus configure.
    11748       ac_sub_configure=$ac_aux_dir/configure
    11749     else
    11750       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
    11751 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
    11752       ac_sub_configure=
    11753     fi
    11754 
    11755     # The recursion is here.
    11756     if test -n "$ac_sub_configure"; then
    11757       # Make the cache file name correct relative to the subdirectory.
    11758       case $cache_file in
    11759       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
    11760       *) # Relative name.
    11761         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
    11762       esac
    11763 
    11764       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
    11765 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
    11766       # The eval makes quoting arguments work.
    11767       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
    11768            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
    11769         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
    11770     fi
    11771 
    11772     cd "$ac_popdir"
    11773   done
    11774 fi
    117759343if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
    117769344  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  • branches/1.5/configure.in

    r5862 r5906  
    1 
    2 AC_INIT([Rappture],[1.4],[rappture@nanohub.org])
     1define(Major_Version, [1])
     2define(Minor_Version, [5])
     3define(Release_Serial, [0])
     4
     5define(Version, [Major_Version].[Minor_Version])
     6AC_INIT([Rappture],[Version],[rappture@nanohub.org])
    37AC_CONFIG_AUX_DIR(cf)
    4 AC_CONFIG_HEADER(src/core/config.h)
     8AC_CONFIG_HEADER(libs/rappture/config.h)
     9
     10RAPPTURE_MAJOR_VERSION=Major_Version
     11RAPPTURE_MINOR_VERSION=Minor_Version
     12RAPPTURE_RELEASE_SERIAL=Release_Serial
     13RAPPTURE_VERSION=Version
     14
     15WITH_R=yes
     16WITH_JAVA=yes
     17WITH_MATLAB=yes
     18WITH_MKOCTFILE2=yes
     19WITH_MKOCTFILE3=yes
     20WITH_OCTAVE=yes
     21WITH_PERL=yes
     22WITH_PYTHON=yes
     23WITH_RUBY=yes
     24WITH_RUBY_SITELIBDIR=yes
     25WITH_TCL=yes
     26
     27AC_ARG_WITH(
     28    [R],
     29    [AS_HELP_STRING([--with-R[=DIR]],
     30        [location of R interpreter @<:@default=yes@:>@])],
     31    [WITH_R=${with_val}],
     32    [WITH_R=yes])
     33
     34AC_ARG_WITH(
     35    [java],
     36    [AS_HELP_STRING([--with-java[=DIR]],
     37        [location of java @<:@default=yes@:>@])],
     38    [WITH_JAVA=${with_val}],
     39    [WITH_JAVA=yes])
     40
     41AC_ARG_WITH(
     42    [matlab],
     43    [AS_HELP_STRING([--with-matlab[=DIR]],
     44        [location of matlab and mex compiler @<:@default=yes@:>@])],
     45    [WITH_MATLAB=${with_val}],
     46    [WITH_MATLAB=yes])
     47
     48AC_ARG_WITH(
     49    [mkoctfile2],
     50    [AS_HELP_STRING([--with-mkoctfile2[=DIR]],
     51        [path of octave compiler `mkoctfile' @<:@default=no@:>@])],
     52    [WITH_MKOCTFILE2=${with_val}],
     53    [WITH_MKOCTFILE2=no])
     54
     55AC_ARG_WITH(
     56    [mkoctfile3],
     57    [AS_HELP_STRING([--with-mkoctfile3[=DIR]],
     58        [path of octave compiler `mkoctfile' @<:@default=no@:>@])],
     59    [WITH_MKOCTFILE3=${with_val}],
     60    [WITH_MKOCTFILE3=no])
     61
     62AC_ARG_WITH(
     63    [octave],
     64    [AS_HELP_STRING([--with-octave[=DIR]],
     65        [path of default octave compiler `mkoctfile' @<:@default=yes@:>@])],
     66    [WITH_OCTAVE=${with_val}],
     67    [with_octave=yes])
     68
     69AC_ARG_WITH(
     70    [perl],
     71    [AS_HELP_STRING([--with-perl[=DIR]],
     72        [location of perl library @<:@default=yes@:>@])],
     73    [WITH_PERL=${with_val}],
     74    [WITH_PERL=yes])
     75
     76AC_ARG_WITH(
     77    [python],
     78    [AS_HELP_STRING([--with-python[=DIR]],
     79        [location of python library @<:@default=yes@:>@])],
     80    [WITH_PYTHON=${with_val}],
     81    [WITH_PYTHON=yes])
     82
     83AC_ARG_WITH(
     84    [ruby],
     85    AC_HELP_STRING(
     86     --with-ruby=PATH,
     87     [ path to the ruby interpreter [[ruby]] ]),
     88    [WITH_RUBY=${with_val}],
     89    [WITH_RUBY=yes])
     90
     91AC_ARG_WITH(
     92    [ruby_sitelibdir],
     93    AC_HELP_STRING(
     94     --with-ruby-sitelibdir=PATH,
     95     [ path to install ruby scripts [[auto-detect]] ]),
     96    [WITH_RUBY_SITELIBDIR=${with_val}],
     97    [WITH_RUBY_SITELIBDIR=NONE ])
     98
     99AC_ARG_WITH(
     100    [tcl],
     101    [AS_HELP_STRING([--with-tcl[=DIR]],
     102        [location of tcl library @<:@default=yes@:>@])],
     103    [WITH_TCL=${with_val}],
     104    [WITH_TCL=yes])
     105
     106AC_ARG_WITH(
     107    [install],
     108    [AS_HELP_STRING([--with-install[=DIR]],
     109        [location of installation @<:@default=yes@:>@])],
     110    [WITH_INSTALL=${withval}],
     111    [WITH_INSTALL=yes])
     112
     113AC_ARG_WITH(
     114    [vtk],
     115    [AS_HELP_STRING([--with-vtk],
     116        [Build VTK for rappture])],
     117    [WITH_VTK=${withval}],
     118    [WITH_VTK=no])
    5119
    6120#------------------------------------------------------------------------
     
    15129fi
    16130
    17 AC_ARG_WITH(
    18     [install],
    19     [AS_HELP_STRING([--with-install[=DIR]],
    20         [location of installation @<:@default=yes@:>@])],
    21     [],
    22     [with_install=yes])
    23 
    24 if test "$with_install" != "yes"; then
    25     INSTALL_PREFIX=$with_install
    26 else
    27     INSTALL_PREFIX=$prefix
    28 fi
    29 
    30 
    31 if test "${libdir}" != "${prefix}/lib"; then
    32     LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}"
    33 else
    34     LIB_SEARCH_DIRS="-L${libdir}"
    35 fi
    36 
    37 
    38 AC_PROG_INSTALL
    39131AC_PROG_INSTALL
    40132AC_PROG_RANLIB
     
    43135AC_PROG_MAKE_SET
    44136
    45 # Check for C, C++, and FORTRAN
     137# Check for C, C++, and FORTRAN 
    46138AC_PROG_CC
    47139AC_PROG_CXX
    48 # Avoid g95
     140# Avoid g95 
    49141AC_PROG_F77([g77 gfortran f77 fort77 f90 xlf xlf90 fl32])
    50142
     
    55147
    56148AC_LANG([C++])
     149AC_PATH_X
     150
     151# -----------------------------------------------------------------------
     152#
     153# Compiler characteristics:
     154#   Check for existence of types of size_t and pid_t
     155#
     156# -----------------------------------------------------------------------
     157
     158AC_C_BIGENDIAN
     159AC_CHECK_SIZEOF(int)
     160AC_CHECK_SIZEOF(long)
     161AC_CHECK_SIZEOF(long long)
     162AC_CHECK_SIZEOF(void *)
     163
     164SIZEOF_LONG="${ac_cv_sizeof_long}"
     165SIZEOF_LONG_LONG="${ac_cv_sizeof_long_long}"
     166SIZEOF_VOID_P="${ac_cv_sizeof_void_p}"
     167SIZEOF_INT="${ac_cv_sizeof_int}"
     168
    57169
    58170AC_CHECK_FUNCS(sysinfo)
     
    105217
    106218
    107 SC_CONFIG_CFLAGS
    108 
    109 SVN_VERSION=`svnversion $srcdir | sed 's/Unversioned directory/unknown/'`
    110 SVN_URL=`svn info $srcdir | sed -ne 's/^URL: //p'`
     219if test "$with_install" != "yes"; then
     220    INSTALL_PREFIX=$with_install
     221else
     222    INSTALL_PREFIX=$prefix
     223fi
     224
     225if test "${libdir}" != "${prefix}/lib"; then
     226    LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}"
     227else
     228    LIB_SEARCH_DIRS="-L${libdir}"
     229fi
     230
     231SVN_VERSION=`svnversion $srcdir`
    111232
    112233make_command=""
     
    122243fi
    123244
    124 AC_ARG_ENABLE(
    125     [lang],
    126     [AS_HELP_STRING([--enable-lang], [build language bindings @<:@default=yes@:>@])],
    127     [],
    128     [enable_lang=yes])
    129 
    130 ENABLE_LANG=
    131 if test "$enable_lang" != "no" ; then
    132     ENABLE_LANG="yes"
    133 fi
    134 
    135 AC_ARG_ENABLE(
    136     [gui],
    137     [AS_HELP_STRING([--enable-gui], [build code related to the graphical user interface @<:@default=yes@:>@])],
    138     [],
    139     [enable_gui=yes])
    140 
    141 ENABLE_GUI=
    142 if test "$enable_gui" != "no" ; then
    143     ENABLE_GUI="yes"
    144 fi
    145 
    146 TCL_VERSION="8.4"
    147 for dir in \
    148  ${exec_prefix} \
    149  ${exec_prefix}/lib ; do
    150   tclconfig="${dir}/tclConfig.sh"
    151   if test -f "$tclconfig" ; then
    152     . $tclconfig
    153     break
    154   fi
    155 done
    156 
    157 AC_ARG_WITH(
    158     [ffmpeg],
    159     [AS_HELP_STRING([--with-ffmpeg[=DIR]],
    160       [location of ffmpeg @<:@default=yes@:>@])],
    161     [],
    162     [with_ffmpeg=yes])
    163 
    164 AC_ARG_WITH(
    165     [tclsh],
    166     [AS_HELP_STRING([--with-tclsh[=DIR]],
    167         [location of tclsh @<:@default=yes@:>@])],
    168     [],
    169     [with_tclsh=yes])
    170 
    171 TCLSH=""
    172 if test "${with_tclsh}" != "no" ; then
    173   tclsh="tclsh${TCL_VERSION}"
    174   if test "${with_tclsh}" = "yes" ; then
    175     AC_PATH_PROG(TCLSH, ${tclsh}, [], [${exec_prefix}/bin:${PATH}])
    176   else
    177     AC_PATH_PROG(TCLSH, ${tclsh}, [], [${with_tclsh}/bin:${with_tclsh}])
    178   fi
    179   if test "x${TCLSH}" = "x" ; then
    180     AC_ERROR([can't find tclsh])
    181   fi
    182 fi
    183 
    184 
    185 TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
    186 
    187 AC_ARG_WITH(
    188     [vtk],
    189     [AS_HELP_STRING([--with-vtk[=version]],
    190         [VTK library version @<:@default=6.0@:>@])],
    191     [],
    192     [with_vtk=yes])
    193 
    194 AC_MSG_CHECKING([for vtk])
    195 VTK_VERSION=6.0
    196 VTK_TCL_DIR=""
    197 
    198 ENABLE_VTK=
    199 if test "$with_vtk" != "no" ; then
    200   if test "$with_vtk" != "yes" ; then
    201     VTK_VERSION=$with_vtk
    202   fi
    203   if test "x$with_vtk" != "x" ; then
    204     ENABLE_VTK=yes
    205     for path in \
    206      $libdir/tcltk \
    207      $exec_prefix/lib/tcltk \
    208      $prefix/lib/tcltk \
    209      $libdir \
    210      $prefix/lib \
    211      $exec_prefix/lib \
    212      /usr/lib
    213     do
    214       if test -d "$path/vtk-$VTK_VERSION" ; then
    215         VTK_TCL_DIR="$path/vtk-$VTK_VERSION"
    216       fi
    217       if test "x${VTK_TCL_DIR}" != "x" ; then
    218         break
    219       fi
    220     done
    221   fi
    222 else
    223   if test "${ENABLE_GUI}" = "yes" ; then
    224     AC_MSG_WARN([VTK missing: Rappture GUI requires VTK for some features])
    225   fi
    226 fi
    227 AC_MSG_RESULT([$VTK_TCL_DIR])
    228 
    229 AC_ARG_ENABLE(
    230     [vtkdicom],
    231     [AS_HELP_STRING([--enable-vtkdicom],
    232         [Use vtkDICOM package @<:@default=no@:>@])],
    233     [],
    234     [enable_vtkdicom=no])
    235 
    236 AC_MSG_CHECKING([for vtkDICOM])
    237 ENABLE_VTK_DICOM=
    238 if test "$enable_vtkdicom" != "no" ; then
    239     ENABLE_VTK_DICOM="yes"
    240 fi
    241 AC_MSG_RESULT([$enable_vtkdicom])
    242 
    243 RP_LANG_MATLAB
    244 RP_LANG_OCTAVE
    245 RP_LANG_PERL
    246 RP_LANG_PYTHON
    247 RP_LANG_JAVA
    248 RP_LANG_R
    249 RP_LANG_RUBY
    250 
    251 RP_BASE=`pwd`
    252 
    253 SC_ENABLE_SHARED
    254 
    255 #--------------------------------------------------------------------
    256 # This macro figures out what flags to use with the compiler/linker
    257 # when building shared/static debug/optimized objects.  This information
    258 # is all taken from the tclConfig.sh file.
    259 #--------------------------------------------------------------------
    260 
    261 if test -f "${exec_prefix}/lib/tclConfig.sh" ; then
    262   . ${exec_prefix}/lib/tclConfig.sh
    263 fi
    264 if test -f "${exec_prefix}/lib/tkConfig.sh" ; then
    265   . ${exec_prefix}/lib/tkConfig.sh
    266 fi
    267 
    268 # -----------------------------------------------------------------------
    269 #
    270 # Compiler characteristics:
    271 #   Check for existence of types of size_t and pid_t
    272 #
    273 # -----------------------------------------------------------------------
    274 
    275 AC_C_BIGENDIAN
    276 AC_CHECK_SIZEOF(int)
    277 AC_CHECK_SIZEOF(long)
    278 AC_CHECK_SIZEOF(long long)
    279 AC_CHECK_SIZEOF(void *)
    280 
    281 SIZEOF_LONG="${ac_cv_sizeof_long}"
    282 SIZEOF_LONG_LONG="${ac_cv_sizeof_long_long}"
    283 SIZEOF_VOID_P="${ac_cv_sizeof_void_p}"
    284 SIZEOF_INT="${ac_cv_sizeof_int}"
    285 
    286 
    287245#--------------------------------------------------------------------
    288246# Set the default compiler switches based on the --enable-symbols
     
    290248#--------------------------------------------------------------------
    291249
     250SC_CONFIG_CFLAGS
    292251SC_ENABLE_SYMBOLS
    293 
    294 
    295 #--------------------------------------------------------------------
    296 # search for ffmpeg libraries libavcodec, libavformat, libswscale
    297 #--------------------------------------------------------------------
    298 if test "${with_ffmpeg}" != "no" ; then
    299   if test "${with_ffmpeg}" = "yes" ; then
    300     AC_PATH_PROG(FFMPEG, ffmpeg, [], $PATH)
    301   else
    302     AC_PATH_PROG(FFMPEG, ffmpeg, [], [${with_ffmpeg}/bin:${with_ffmpeg}])
    303   fi
    304   if test "${FFMPEG}x" != "x" ; then
    305     AC_DEFINE(HAVE_FFMPEG, 1, [Render servers can use ffmpeg])
    306   fi
    307 fi
    308 
    309 AC_CHECK_HEADERS([ffmpeg/avcodec.h libavcodec/avcodec.h ffmpeg/avformat.h libavformat/avformat.h ffmpeg/avutil.h libavutil/avutil.h libavutil/mathematics.h ffmpeg/swscale.h libswscale/swscale.h],,,[
    310 #define __STDC_CONSTANT_MACROS 1
    311 ])
    312 
    313 HAVE_FFMPEG_LIBS=""
    314 if test "${with_ffmpeg}" != "no"; then
    315   if [[ \( "${ac_cv_header_ffmpeg_avcodec_h}" = "yes" -o \
    316         "${ac_cv_header_libavcodec_avcodec_h}" = "yes" \) -a \
    317      \( "${ac_cv_header_ffmpeg_avformat_h}" = "yes" -o \
    318         "${ac_cv_header_libavformat_avformat_h}" = "yes" \) -a \
    319      \( "${ac_cv_header_ffmpeg_avutil_h}" = "yes" -o \
    320         "${ac_cv_header_libavutil_avutil_h}" = "yes" \) -a \
    321      \( "${ac_cv_header_ffmpeg_swscale_h}" = "yes" -o \
    322         "${ac_cv_header_libswscale_swscale_h}" = "yes" \) ]] ; then
    323     HAVE_FFMPEG_LIBS="yes"
    324     AC_DEFINE(BUILD_with_ffmpeg, 1, [Build rappture with ffmpeg widgets])
    325   fi
    326   AC_CHECK_LIB(avcodec, main,,AC_MSG_ERROR(librappture requires libavcodec))
    327   AC_CHECK_LIB(avutil, main,,AC_MSG_ERROR(librappture requires libavutil))
    328   AC_CHECK_LIB(avformat, main,,AC_MSG_ERROR(librappture requires libavformat))
    329   AC_CHECK_LIB(swscale, main)
    330   AC_CHECK_FUNCS(av_find_stream_info)
    331   AC_CHECK_FUNCS(av_open_input_file)
    332   AC_CHECK_FUNCS(avcodec_decode_video)
    333   AC_CHECK_FUNCS(avcodec_decode_video2)
    334   AC_CHECK_FUNCS(avcodec_open)
    335   AC_CHECK_FUNCS(avcodec_open2)
    336   AC_CHECK_FUNCS(avformat_find_stream_info)
    337   AC_CHECK_FUNCS(avformat_open_input)
    338   AC_CHECK_FUNCS(avio_close)
    339   AC_CHECK_FUNCS(img_convert)
    340   AC_CHECK_FUNCS(sws_getCachedContext)
    341   AC_CHECK_FUNCS(sws_scale)
    342   AC_CHECK_FUNCS(url_close)
    343   AC_CHECK_FUNCS(av_close_input_file)
    344   AC_CHECK_FUNCS(avformat_close_input)
    345 
    346   AC_CHECK_FUNC(avcodec_find_decoder,,
    347     AC_MSG_ERROR(oops! no av_codec_find_decoder ?!?))
    348   AC_CHECK_FUNC(avcodec_alloc_frame,,
    349     AC_MSG_ERROR(oops! no avcode_alloc_frame ?!?))
    350   AC_CHECK_FUNC(av_rescale_q,,AC_MSG_ERROR(oops! no av_rescale_q ?!?))
    351   AC_CHECK_FUNC(av_read_frame,,AC_MSG_ERROR(oops! av_read_frame ?!?))
    352   AC_CHECK_FUNC(av_free,,AC_MSG_ERROR(oops! no av_frame ?!?))
    353   AC_CHECK_FUNC(avcodec_default_release_buffer,,
    354     AC_MSG_ERROR(oops! no avcode_default_release_buffer ?!?))
    355   AC_CHECK_FUNC(avpicture_get_size,,
    356     AC_MSG_ERROR(oops! no avpicture_get_size ?!?))
    357   AC_CHECK_FUNC(avpicture_fill,,AC_MSG_ERROR(oops! no avpicture_fill ?!?))
    358   AC_CHECK_FUNCS(sws_getCachedContext)
    359   AC_CHECK_FUNCS(img_convert)
    360   AC_CHECK_FUNCS(sws_scale)
    361   AC_TRY_COMPILE([
    362 #define __STDC_CONSTANT_MACROS 1
    363 #include <stdlib.h>
    364 #ifdef HAVE_FFMPEG_AVCODEC_H
    365 # include <ffmpeg/avcodec.h>
    366 #endif
    367 #ifdef HAVE_LIBAVCODEC_AVCODEC_H
    368 # include <libavcodec/avcodec.h>
    369 #endif
    370 int x = AVMEDIA_TYPE_VIDEO;
    371 ],, ac_avmedia_type_video="yes", ac_avmedia_type_video="no")
    372   if test "$ac_avmedia_type_video" == "yes" ; then
    373     AC_DEFINE(HAVE_AVMEDIA_TYPE_VIDEO,1,[Define if AVMEDIA_TYPE_VIDEO enum exists. ])
    374   fi
    375 fi
    376252
    377253AC_SUBST(CFLAGS_DEBUG)
    378254AC_SUBST(CFLAGS_OPTIMIZE)
    379 AC_SUBST(ENABLE_LANG)
    380 AC_SUBST(ENABLE_GUI)
    381 AC_SUBST(ENABLE_VTK)
    382 AC_SUBST(ENABLE_VTK_DICOM)
    383 AC_SUBST(FFMPEG)
    384 AC_SUBST(HAVE_FFMPEG_LIBS)
    385255AC_SUBST(HAVE_INTTYPES_H)
    386 AC_SUBST(HAVE_RUBY_DEVEL)
    387256AC_SUBST(INSTALL_PREFIX)
    388 AC_SUBST(JAVA)
    389 AC_SUBST(JAVAC)
    390 AC_SUBST(JAVAH)
    391 AC_SUBST(JAVA_HOME)
    392 AC_SUBST(JAVA_INC_DIR)
    393 AC_SUBST(JAVA_INC_SPEC)
    394257AC_SUBST(LIB_SEARCH_DIRS)
    395258AC_SUBST(MAKE, ${make_command})
    396 AC_SUBST(MATLAB)
    397 AC_SUBST(MCC)
    398 AC_SUBST(MEX)
    399 AC_SUBST(MEXEXT)
    400 AC_SUBST(MEX_ARCH)
    401 AC_SUBST(MKOCTFILE2)
    402 AC_SUBST(MKOCTFILE3)
    403259AC_SUBST(SVN_VERSION)
    404 AC_SUBST(SVN_URL)
    405 AC_SUBST(OCTAVE_VERSION)
    406 AC_SUBST(OCTAVE_VERSION_MAJOR)
    407 AC_SUBST(PERL)
    408 AC_SUBST(PERL_ARCHLIB)
    409 AC_SUBST(PERL_ARCHLIBEXP)
    410 AC_SUBST(PERL_CCFLAGS)
    411 AC_SUBST(PERL_CPPFLAGS)
    412 AC_SUBST(PERL_INCLUDES)
    413 AC_SUBST(PERL_INSTALLARCHLIB)
    414 AC_SUBST(PERL_LIBSPEC)
    415 AC_SUBST(PERL_PRIVLIB)
    416 AC_SUBST(PERL_VENDORLIB)
    417 AC_SUBST(PERL_VERSION)
    418 AC_SUBST(PERL_VERSION_RV)
    419 AC_SUBST(PYTHON)
    420 AC_SUBST(PYTHON_CFLAGS)
    421 AC_SUBST(PYTHON_DISTUTILS)
    422 AC_SUBST(PYTHON_INCDIR)
    423 AC_SUBST(PYTHON_INCLUDES)
    424 AC_SUBST(PYTHON_LDFLAGS)
    425 AC_SUBST(PYTHON_LIB)
    426 AC_SUBST(PYTHON_LIBDIR)
    427 AC_SUBST(PYTHON_SITE_DIR)
    428 AC_SUBST(PYTHON_SITE_PACKAGES)
    429 AC_SUBST(PYTHON_VERSION)
    430 AC_SUBST(R)
    431 AC_SUBST(RP_BASE)
    432 AC_SUBST(RUBY)
    433 AC_SUBST(RUBY_PLATFORM)
    434 AC_SUBST(RUBY_VERSION_RV)
    435260AC_SUBST(SHLIB_CFLAGS)
    436261AC_SUBST(SHLIB_LD)
     
    442267AC_SUBST(SIZEOF_VOID_P)
    443268AC_SUBST(STLIB_LD)
    444 AC_SUBST(TCLSH)
    445269AC_SUBST(TCL_INC_SPEC)
    446270AC_SUBST(TCL_LIB_SPEC)
     
    451275AC_SUBST(TCL_SHLIB_LDFLAGS)
    452276AC_SUBST(TCL_SHLIB_SUFFIX)
    453 AC_SUBST(TCL_VERSION)
    454 AC_SUBST(TCL_VERSION)
    455277AC_SUBST(TK_INC_SPEC)
    456278AC_SUBST(TK_LIB_SPEC)
     
    462284AC_SUBST(TK_XLIBSW)
    463285AC_SUBST(TK_VERSION)
    464 AC_SUBST(VTK_TCL_DIR)
    465 AC_SUBST(VTK_VERSION)
    466 AC_SUBST(XSUBPP)
    467 
    468 ac_configure_args="--disable-threads --enable-shared"
    469 AC_CONFIG_SUBDIRS( [packages/optimizer/src] )
     286AC_SUBST(X_INCLUDES)
     287AC_SUBST(X_LIBRARIES)
     288AC_SUBST(WORDSIZE)
     289AC_SUBST(RAPPTURE_MAJOR_VERSION)
     290AC_SUBST(RAPPTURE_MINOR_VERSION)
     291AC_SUBST(RAPPTURE_RELEASE_SERIAL)
     292AC_SUBST(RAPPTURE_VERSION)
     293AC_SUBST(WITH_VTK)
     294AC_SUBST(WITH_R)
     295AC_SUBST(WITH_JAVA)
     296AC_SUBST(WITH_MATLAB)
     297AC_SUBST(WITH_MKOCTFILE2)
     298AC_SUBST(WITH_MKOCTFILE3)
     299AC_SUBST(WITH_OCTAVE)
     300AC_SUBST(WITH_PERL)
     301AC_SUBST(WITH_PYTHON)
     302AC_SUBST(WITH_RUBY)
     303AC_SUBST(WITH_RUBY_SITELIBDIR)
     304AC_SUBST(WITH_TCL)
     305AC_SUBST(WITH_VTK)
    470306
    471307dnl read Makefile.in and write Makefile
    472308AC_CONFIG_FILES([
    473309    Makefile
    474     packages/Makefile
    475     src/Makefile
    476     src/core/Makefile
    477     src/core2/Makefile
    478     src/objects/Makefile
    479     src/objects/RpHash.h
    480     gui/Makefile
    481     gui/apps/Makefile
    482     gui/apps/about
    483     gui/apps/copy_rappture_examples
    484     gui/apps/encodedata
    485     gui/apps/rappture
    486     gui/apps/rappture-csh.env
    487     gui/apps/rappture.env
    488     gui/apps/rappture.use
    489     gui/apps/rerun
    490     gui/apps/simsim
    491     gui/apps/xmldiff
    492     gui/pkgIndex.tcl
    493     gui/scripts/Makefile
    494     gui/src/Makefile
    495     builder/Makefile
    496     builder/pkgIndex.tcl
    497     builder/scripts/Makefile
    498     tester/Makefile
    499     tester/pkgIndex.tcl
    500     tester/scripts/Makefile
    501     lang/Makefile
    502     lang/java/Makefile
    503     lang/java/rappture/Makefile
    504     lang/perl/Makefile
    505     lang/perl/Makefile.PL
    506     lang/python/Makefile
    507     lang/python/setup.py
    508     lang/matlab/Makefile
    509     lang/octave/Makefile
    510     lang/octave/octave2/Makefile
    511     lang/octave/octave3/Makefile
    512     lang/R/Makefile
    513     lang/ruby/Makefile
    514     lang/ruby/build.rb
    515     lang/tcl/Makefile
    516     lang/tcl/pkgIndex.tcl
    517     lang/tcl/scripts/Makefile
    518     lang/tcl/src/Makefile
    519     lang/tcl/tests/Makefile
    520     lib/Makefile
    521     examples/3D/Makefile
    522     examples/Makefile
    523     examples/app-fermi/2.0/Makefile
    524     examples/app-fermi/Makefile
    525     examples/app-fermi/cee/Makefile
    526     examples/app-fermi/fortran/Makefile
    527     examples/app-fermi/java/Makefile
    528     examples/app-fermi/matlab/Makefile
    529     examples/app-fermi/matlab/compiled/Makefile
    530     examples/app-fermi/matlab/uncompiled/Makefile
    531     examples/app-fermi/octave/octave2/Makefile
    532     examples/app-fermi/octave/octave3/Makefile
    533     examples/app-fermi/octave/Makefile
    534     examples/app-fermi/perl/Makefile
    535     examples/app-fermi/python/Makefile
    536     examples/app-fermi/ruby/Makefile
    537     examples/app-fermi/tcl/Makefile
    538     examples/app-fermi/wrapper/Makefile
    539     examples/app-fermi/wrapper/cee/Makefile
    540     examples/app-fermi/wrapper/perl/Makefile
    541     examples/app-fermi/wrapper/python/Makefile
    542     examples/app-fermi/wrapper/tcl/Makefile
    543     examples/app-fermi/R/Makefile
    544     examples/c-example/Makefile
    545     examples/canvas/Makefile
    546     examples/demo.bash
    547     examples/flow/Makefile
    548     examples/flow/demo1/Makefile
    549     examples/flow/demo2/Makefile
    550     examples/flow/demo3/Makefile
    551     examples/graph/Makefile
    552     examples/objects/Makefile
    553     examples/objects/axis/Makefile
    554     examples/objects/curve/Makefile
    555     examples/objects/dxWriter/Makefile
    556     examples/objects/floatBuffer/Makefile
    557     examples/objects/histogram/Makefile
    558     examples/objects/library/Makefile
    559     examples/objects/number/Makefile
    560     examples/objects/path/Makefile
    561     examples/objects/plot/Makefile
    562     examples/objects/scatter/Makefile
    563     examples/objects/string/Makefile
    564     examples/objects/tree/Makefile
    565     examples/objects/xmlparser/Makefile
    566     examples/zoo/Makefile
    567     examples/zoo/binary/Makefile
    568     examples/zoo/boolean/Makefile
    569     examples/zoo/choice/Makefile
    570     examples/zoo/curve/Makefile
    571     examples/zoo/drawing/Makefile
    572     examples/zoo/enable/Makefile
    573     examples/zoo/field/Makefile
    574     examples/zoo/group/Makefile
    575     examples/zoo/histogram/Makefile
    576     examples/zoo/image/Makefile
    577     examples/zoo/image/docs/Makefile
    578     examples/zoo/image/examples/Makefile
    579     examples/zoo/integer/Makefile
    580     examples/zoo/integer2/Makefile
    581     examples/zoo/loader/Makefile
    582     examples/zoo/loader/examples/Makefile
    583     examples/zoo/log/Makefile
    584     examples/zoo/mesh/Makefile
    585     examples/zoo/note/Makefile
    586     examples/zoo/note/docs/Makefile
    587     examples/zoo/number/Makefile
    588     examples/zoo/number2/Makefile
    589     examples/zoo/parallelepiped/Makefile
    590     examples/zoo/periodicelement/Makefile
    591     examples/zoo/phase/Makefile
    592     examples/zoo/sequence/Makefile
    593     examples/zoo/sequence/examples/Makefile
    594     examples/zoo/string/Makefile
    595     examples/zoo/structure/Makefile
    596     examples/zoo/structure/examples/Makefile
    597     examples/zoo/table/Makefile
    598     video/Makefile
    599     video/pkgIndex.tcl
    600     oldtest/Makefile
    601     oldtest/src/Makefile
    602     puq/Makefile
     310    fixrunpaths.tcl
     311    apps/Makefile
     312    apps/about
     313    apps/copy_rappture_examples
     314    apps/encodedata
     315    apps/rappture
     316    apps/rappture-csh.env
     317    apps/rappture.env
     318    apps/rappture.use
     319    apps/rerun
     320    apps/simsim
     321    apps/xmldiff
     322    libs/Makefile
     323    libs/objects/Makefile
     324    libs/objects/RpHash.h
     325    libs/rappture/Makefile
     326    libs/rappture2/Makefile
     327    rapptureConfig.sh
    603328])
    604329AC_OUTPUT
    605 
     330       
  • branches/1.5/lang/Makefile.in

    r3745 r5906  
    1717HAVE_RUBY_H     = @HAVE_RUBY_H@
    1818RUBY            = @RUBY@
     19WITH_RUBY       = @WITH_RUBY@
    1920PERL            = @PERL@
    2021TCLSH           = @TCLSH@
     
    3435  LANGS += python
    3536endif
    36 ifneq ($(RUBY),)
     37ifneq ($(WITH_RUBY), "no")
    3738  ifeq ($(HAVE_RUBY_H),yes)
    3839    LANGS += ruby
     
    5253endif
    5354
    54 .PHONY: all install test clean distclean $(LANGS)
     55.PHONY: all install test clean distclean $(LANGS) examples
    5556
    56 all:
    57         make -C ../src install
     57all:
    5858        for i in $(LANGS) ; do \
    5959          $(MAKE) -C $$i all || exit 1 ;\
    6060        done
    61 
    62 install:
    6361        for i in $(LANGS) ; do \
    6462          $(MAKE) -C $$i install || exit 1 ;\
     63        done
     64        $(MAKE) -C examples all || exit 1
     65
     66install: all
     67        $(MAKE) -C examples install || exit 1
     68
     69test:
     70        for i in $(LANGS) ; do \
     71          $(MAKE) -C $$i test || exit 1 ;\
    6572        done
    6673
     
    7481          $(MAKE) -C $$i clean ;\
    7582        done
     83        $(MAKE) -C examples clean
    7684
    7785distclean:
     
    7987          $(MAKE) -C $$i distclean ;\
    8088        done
     89        $(MAKE) -C examples distclean
    8190        $(RM) Makefile *~
  • branches/1.5/lang/R/Makefile.in

    r3745 r5906  
    2121R               = @R@
    2222
    23 coresrcdir      = `pwd`/$(srcdir)/../../src/core
    24 corelibdir      = `pwd`/../../src/core
    2523R_flags         = --configure-args='--with-rappture-include=$(includedir)  \
    2624                                    --with-rappture-lib=$(libdir)'
  • branches/1.5/lang/cf/rpLangJava.m4

    r5905 r5906  
    3030   ${JAVA_HOME} \
    3131   /apps/java/jdk1.6* \
     32   /usr/lib/jvm/oracle-jdk-*-1.8* \
     33   /usr/lib/jvm/oracle-jdk-*-1.7* \
     34   /usr/lib/jvm/oracle-jdk-*-1.6* \
    3235   /opt/sun-jdk-1.6* \
    3336   /opt/icedtea6-* \
  • branches/1.5/lang/java/Makefile.in

    r1944 r5906  
    3333SHLIB_LD        = @SHLIB_LD@
    3434SHLIB_CFLAGS    = @SHLIB_CFLAGS@
    35 SHLIB_LDFLAGS   = @SHLIB_LDFLAGS@
     35SHLIB_LDFLAGS   = @CC_SEARCH_FLAGS@
    3636SHLIB_SUFFIX    = @SHLIB_SUFFIX@
    3737CFLAGS_DEFAULT  = @CFLAGS_DEFAULT@
     38LIB_RUNTIME_DIR  = $(libdir)
    3839CFLAGS          = ${CFLAGS_DEFAULT} ${CFLAGS_WARNING} ${SHLIB_CFLAGS}
    3940LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@
     
    4243RM              = rm -f
    4344
    44 INCLUDES        = $(JAVA_INCLUDES) -I $(srcdir)/../../src/core -I .
    45 LIBS            = -L../../src/core -lrappture
     45INCLUDES        = $(JAVA_INCLUDES) -I$(includedir) -I .
     46LIBS            = -L$(libdir) -lrappture
    4647
    4748CC_SWITCHES     = $(CFLAGS) $(CFLAGS_DEBUG) $(SHLIB_CFLAGS) $(INCLUDES) $(DEFINES)
  • branches/1.5/lang/matlab/Makefile.in

    r1944 r5906  
    2424matlabdir       = $$RAPPTURE_INSTALL_DIR/lib/matlab
    2525
    26 INCLUDES        = \
    27                 -I$(srcdir)/../../src/core \
    28                 -I$(prefix)/include
     26INCLUDES        = -I$(includedir)
     27
    2928DEFINES         = -g
    30 LIBS            =  -L../../src/core -L$(libdir) -lrappture
     29LIBS            = -L$(libdir) -lrappture
    3130
    3231MEX_FLAGS       = $(MEX_ARCH) $(INCLUDES) $(DEFINES)
  • branches/1.5/lang/octave/octave2/Makefile.in

    r3471 r5906  
    2020INCLUDES    = \
    2121                -I$(srcdir) \
    22                 -I$(srcdir)/../../../src/core \
    23                 -I$(prefix)/include
     22                -I$(includedir)
    2423DEFINES     =
    25 LIBS        = -L../../../src/core -lrappture
     24LIBS        = -L$(libdir) -lrappture
    2625OCT_FLAGS   = $(INCLUDES) $(DEFINES)
    2726
  • branches/1.5/lang/octave/octave3/Makefile.in

    r3471 r5906  
    2020INCLUDES    = \
    2121                -I$(srcdir) \
    22                 -I$(srcdir)/../../../src/core \
    23                 -I$(prefix)/include
     22                -I$(includedir)
    2423DEFINES     =
    25 LIBS        = -L../../../src/core -lrappture
     24LIBS        = -L$(libdir) -lrappture
    2625OCT_FLAGS   = $(INCLUDES) $(DEFINES)
    2726
  • branches/1.5/lang/perl/Makefile.PL.in

    r1083 r5906  
    2121                     );
    2222    }
    23     @RAPPTURE_INC_SEARCHPATH = ( "@srcdir@/../../src/core", "@prefix@/include",
     23    @RAPPTURE_INC_SEARCHPATH = ( "@prefix@/include",
    2424        "../include", "/usr/local/include", "/opt/include");
    2525    $RAPPTURE_INC = "rappture.h";
     
    2929        "/opt/expat-2.0.0/lib", "/opt/expat/lib" );
    3030    $EXPAT_INC="expat.h";
    31     @RAPPTURE_LIB_SEARCHPATH = ( "../../../src/core", "@prefix@/lib",
     31    @RAPPTURE_LIB_SEARCHPATH = ( "@prefix@/lib",
    3232        "@libdir@",
    3333        "../src", "/usr/local/lib", "/opt/lib" );
  • branches/1.5/lang/perl/Makefile.in

    r2549 r5906  
    6060INCLUDES        = \
    6161                -I$(srcdir) \
    62                 -I$(srcdir)/../../src/core \
     62                -I$(includedir) \
    6363                -I$(archlibexp)/CORE
    6464
    6565LIBS            = \
    66                 -L../../src/core -lrappture \
     66                -L$(libdir) -lrappture \
    6767                $(PERL_LIBSPEC) \
    6868                -lexpat
  • branches/1.5/lang/python/Makefile.in

    r3471 r5906  
    2424PYTHON_VERSION  = @PYTHON_VERSION@
    2525
    26 python_flags    = --library-dirs=$(libdir):../../src/core \
    27                   --include-dirs=$(srcdir)/../../src/core:$(PYTHON_INCDIR)
     26python_flags    = --library-dirs=$(libdir) \
     27                  --include-dirs=$(includedir):$(PYTHON_INCDIR)
    2828pythonlib       = $(libdir)/python$(PYTHON_VERSION)/site-packages
    2929envfile         = python.env
  • branches/1.5/lang/python/setup.py.in

    r5410 r5906  
    44tmpdir = 'build/tmp/'
    55srcdir = '@srcdir@/Rappture/'
    6 incdir = '@srcdir@/../../src/core'
    7 libdir = '@srcdir@/../../src/core'
     6incdir = '@includedir@'
     7libdir = '@libdir@'
    88
    99library_module = Extension('Rappture.library',
  • branches/1.5/lang/ruby/Makefile.in

    r3471 r5906  
    3636CFLAGS          = @CFLAGS@ @SHLIB_CFLAGS@
    3737INCLUDES        = -I$(srcdir) \
    38                   -I$(srcdir)/../../src/core \
    3938                  -I$(includedir) \
    4039                  $(RUBY_CPPFLAGS)
     
    4948
    5049LIBS            = \
    51                 -L../../src/core -lrappture \
     50                -L$(libdir) -lrappture \
    5251                $(RUBY_LIBRUBYARG)
    5352
  • branches/1.5/lang/ruby/build.rb.in

    r1081 r5906  
    1111cxxflags      = "@CXXFLAGS@"
    1212srcdir        = "@srcdir@"
     13libdir        = "@libdir@"
     14includedir    = "@includedir@"
    1315install       = "@INSTALL@"
    1416shlib_cflags  = "@SHLIB_CFLAGS@"
     
    5759f.printf("CFLAGS        = #{cxxflags}\n")
    5860f.printf("CXX_DLFLAGS   = #{cxx_dlflags}\n")
    59 f.printf("INCLUDES      = -I$(incdir) -I#{srcdir}/../../src/core -I$(archdir)/\n")
     61f.printf("INCLUDES      = -I$(incdir) -I#{includedir} -I$(archdir)/\n")
    6062f.printf("INSTALL       = #{install}\n")
    6163f.printf("SHLIB_FLAGS   = $(CFLAGS) $(CXX_DLFLAGS) $(LDFLAGS) $(INCLUDES)\n\n")
     
    6365f.printf("SHLIB_LD      = #{ldshared}\n")
    6466f.printf("LDFLAGS       = #{ldflags}\n")
    65 f.printf("LIBS          = -L../../src/core -lrappture #{libs}\n\n")
     67f.printf("LIBS          = -L#{libdir} -lrappture #{libs}\n\n")
    6668f.printf("package       = $(TARGET).$(DLEXT)\n\n")
    6769f.printf("all: extension\n\n")
  • branches/1.5/lang/tcl/Makefile.in

    r1944 r5906  
    99prefix          = @prefix@
    1010
    11 destdir         = $(libdir)/Rappture$(PACKAGE_VERSION)
     11destdir         = $(libdir)/Rappture$(VERSION)
    1212
    13 PACKAGE_VERSION = @PACKAGE_VERSION@
    14 
     13AR              = ar
     14CC              = @CC@
     15CFLAGS          = @CFLAGS@
     16CFLAGS_DEBUG    = @CFLAGS_DEBUG@
     17CFLAGS_DEFAULT  = @CFLAGS_DEFAULT@
     18CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@
     19CXX             = @CXX@
    1520INSTALL         = @INSTALL@
    16 
    17 CXX             = @CXX@
    18 CC              = @CC@
    19 CFLAGS_DEBUG    = @CFLAGS_DEBUG@
    20 CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@
    21 STLIB_LD        = @STLIB_LD@
     21LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@
     22LN_S            = @LN_S@
     23MKDIR_P         = @MKDIR_P@
     24RANLIB          = @RANLIB@
     25VERSION         = @RAPPTURE_VERSION@
     26RM              = rm -f
     27SHLIB_CFLAGS    = @SHLIB_CFLAGS@
    2228SHLIB_LD        = @SHLIB_LD@
    23 SHLIB_CFLAGS    = @SHLIB_CFLAGS@
    2429SHLIB_LDFLAGS   = @SHLIB_LDFLAGS@
    2530SHLIB_SUFFIX    = @SHLIB_SUFFIX@
    26 CFLAGS_DEFAULT  = @CFLAGS_DEFAULT@
    27 LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@
    28 CFLAGS          = @CFLAGS@
    29 TCL_VERSION     = @TCL_VERSION@
    30 TK_VERSION      = @TK_VERSION@
    31 
    32 RANLIB          = @RANLIB@
    33 MKDIR_P         = @MKDIR_P@
    34 AR              = ar
    35 LN_S            = @LN_S@
    36 RM              = rm -f
     31STLIB_LD        = @STLIB_LD@
    3732
    3833# The script directory is moved from src/tcl.
     
    5146        $(MAKE) -C src install
    5247        $(MAKE) -C scripts install
    53         $(RM) $(bindir)/tclsh
    54         (cd $(bindir); $(LN_S) tclsh$(TCL_VERSION) tclsh)
    55         $(RM) $(bindir)/wish
    56         (cd $(bindir); $(LN_S) wish$(TK_VERSION) wish)
    5748
    5849test:
  • branches/1.5/lang/tcl/pkgIndex.tcl.in

    r5121 r5906  
    1 package ifneeded Rappture @PACKAGE_VERSION@ [format {
     1# This is a duplicate of pkgs/runner/pkgIndex.tcl.in
     2package ifneeded Rappture @RAPPTURE_VERSION@ [format {
    23    set dir "%s"
    3     set version @PACKAGE_VERSION@
     4    set version @RAPPTURE_VERSION@
    45    lappend auto_path [file join $dir scripts]
    56    namespace eval Rappture {
  • branches/1.5/lang/tcl/scripts/Makefile.in

    r4514 r5906  
    1010srcdir          = @srcdir@
    1111
     12AR              = ar
     13CC              = @CC@
     14CFLAGS          = @CFLAGS@
     15CFLAGS_DEBUG    = @CFLAGS_DEBUG@
     16CFLAGS_DEFAULT  = @CFLAGS_DEFAULT@
     17CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@
     18CXX             = @CXX@
    1219INSTALL         = @INSTALL@
     20INSTALL_DATA    = ${INSTALL} -m 644
    1321INSTALL_PROGRAM = ${INSTALL} -m 755
    14 INSTALL_DATA    = ${INSTALL} -m 644
    1522INSTALL_SCRIPT  = ${INSTALL}
    16 TCL_VERSION     = @TCL_VERSION@
    17 TCLSH           = $(bindir)/tclsh$(TCL_VERSION)
    18 VERSION         = @PACKAGE_VERSION@
    19 VPATH           = $(srcdir)
    20 
    21 CXX             = @CXX@
    22 CC              = @CC@
    23 CFLAGS_DEBUG    = @CFLAGS_DEBUG@
    24 CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@
     23LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@
     24MKDIR_P         = @MKDIR_P@
     25RANLIB          = @RANLIB@
     26RM              = rm -f
     27SHLIB_CFLAGS    = @SHLIB_CFLAGS@
    2528SHLIB_LD        = @SHLIB_LD@
    26 SHLIB_CFLAGS    = @SHLIB_CFLAGS@
    2729SHLIB_LDFLAGS   = @SHLIB_LDFLAGS@
    2830SHLIB_SUFFIX    = @SHLIB_SUFFIX@
    29 CFLAGS_DEFAULT  = @CFLAGS_DEFAULT@
    30 LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@
    31 CFLAGS          = @CFLAGS@
    32 
    33 RANLIB          = @RANLIB@
    34 MKDIR_P         = @MKDIR_P@
    35 AR              = ar
    36 RM              = rm -f
     31TCLSH           = $(bindir)/tclsh$(TCL_VERSION)
     32TCL_VERSION     = @TCL_VERSION@
     33VERSION         = @RAPPTURE_VERSION@
     34VPATH           = $(srcdir)
    3735
    3836destdir         = $(prefix)/lib/Rappture$(VERSION)/scripts
    3937
    4038FILES           = \
    41                 $(srcdir)/exec.tcl \
    42                 $(srcdir)/getopts.tcl \
    4339                $(srcdir)/library.tcl \
    44                 $(srcdir)/objects.tcl \
    45                 $(srcdir)/resources.tcl \
    46                 $(srcdir)/result.tcl \
    47                 $(srcdir)/task.tcl \
    48                 $(srcdir)/units.tcl \
    49                 $(srcdir)/xauth.tcl
     40                $(srcdir)/units.tcl
    5041
    51 OBJECTS         = \
    52                 boolean \
    53                 choice \
    54                 curve \
    55                 group \
    56                 histogram \
    57                 image \
    58                 integer \
    59                 note \
    60                 number \
    61                 periodicelement \
    62                 phase \
    63                 string
     42all:
    6443
    65 TYPEFILES       = \
    66                 $(srcdir)/types/atomactive.tcl \
    67                 $(srcdir)/types/atomelem.tcl \
    68                 $(srcdir)/types/atomprops.tcl \
    69                 $(srcdir)/types/boolean.tcl \
    70                 $(srcdir)/types/choices.tcl \
    71                 $(srcdir)/types/color.tcl \
    72                 $(srcdir)/types/file.tcl \
    73                 $(srcdir)/types/image.tcl \
    74                 $(srcdir)/types/language.tcl \
    75                 $(srcdir)/types/string.tcl \
    76                 $(srcdir)/types/units.tcl
    77 
    78 VALIDATEFILES   = \
    79                 $(srcdir)/validations/enable.tcl \
    80                 $(srcdir)/validations/int.tcl \
    81                 $(srcdir)/validations/imformat.tcl \
    82                 $(srcdir)/validations/imresize.tcl \
    83                 $(srcdir)/validations/number.tcl \
    84                 $(srcdir)/validations/size.tcl
    85 
    86 all: tclIndex
    87 
    88 tclIndex: install-objects install-types install-validations $(FILES)
    89         $(TCLSH) $(srcdir)/../cf/mkindex.tcl --srcdir $(srcdir) \
    90                 --outfile tclIndex
    91         $(TCLSH) $(srcdir)/../cf/mkobjects.tcl --srcdir $(srcdir) \
    92                 $(OBJECTS)
    93 
    94 install: tclIndex
     44#
     45# Scripts used with the Rappture Tcl bindings are installed in the same
     46# directory as the scripts for the Rappture runner.  This means we have to
     47# be careful about updating/installing the tclIndex file.
     48#
     49install:
    9550        $(MKDIR_P) -m 0755 $(destdir)
    9651        for i in $(FILES); do \
    9752            $(INSTALL) -m 0444 $$i $(destdir) ; \
    9853        done
     54        $(TCLSH) $(srcdir)/../../cf/mkindex.tcl --srcdir $(destdir) \
     55                --outfile tclIndex
     56        $(RM) $(destdir)/tclIndex
    9957        $(INSTALL) -m 0444 tclIndex $(destdir)
    100 
    101 install-objects:
    102         $(MKDIR_P) -m 0755 $(destdir)/objects
    103         $(INSTALL) -m 0444 $(srcdir)/objects/base.rp $(destdir)/objects
    104         for i in $(OBJECTS); do \
    105             echo "Installing object definition: $$i" ; \
    106             $(MKDIR_P) -m 0755 $(destdir)/objects/$$i ; \
    107             for j in $(srcdir)/objects/$$i/*; do \
    108                 $(INSTALL) -m 0444 $$j $(destdir)/objects/$$i ; \
    109             done \
    110         done
    111 
    112 install-types: $(TYPEFILES)
    113         $(MKDIR_P) -m 0755 $(destdir)/types
    114         @for i in $(TYPEFILES); do \
    115             echo "Installing $$i" ; \
    116             $(INSTALL) -m 555 $$i $(destdir)/types ; \
    117         done
    118 
    119 install-validations: $(VALIDATEFILES)
    120         $(MKDIR_P) -m 0755 $(destdir)/validations
    121         @for i in $(VALIDATEFILES); do \
    122             echo "Installing $$i" ; \
    123             $(INSTALL) -m 555 $$i $(destdir)/validations ; \
    124         done
     58        $(RM) tclIndex
    12559
    12660clean:
    127         $(RM) tclIndex
    12861
    12962distclean: clean
  • branches/1.5/lang/tcl/src/Makefile.in

    r5471 r5906  
    1010srcdir          = @srcdir@
    1111
     12CC              = @CC@
     13CFLAGS          = @CFLAGS@ -fPIC
     14CFLAGS_DEBUG    = @CFLAGS_DEBUG@ -Wall
     15CFLAGS_DEFAULT  = @CFLAGS_DEFAULT@
     16CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@
     17CXX             = @CXX@
     18INSTALL         = @INSTALL@
     19LIB_RUNTIME_DIR = $(libdir)
     20LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@
     21MKDIR_P         = @MKDIR_P@
    1222SHELL           = @SHELL@
    13 INSTALL         = @INSTALL@
    14 MKDIR_P         = @MKDIR_P@
    15 
    16 CXX             = @CXX@
    17 CC              = @CC@
    18 CFLAGS_DEBUG    = @CFLAGS_DEBUG@ -Wall
    19 CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@
     23SHLIB_CFLAGS    = @SHLIB_CFLAGS@
     24SHLIB_LD        = @SHLIB_LD@
     25SHLIB_LDFLAGS   = @CC_SEARCH_FLAGS@
     26SHLIB_SUFFIX    = @SHLIB_SUFFIX@
    2027STLIB_LD        = @STLIB_LD@
    21 SHLIB_LD        = @SHLIB_LD@
    22 SHLIB_CFLAGS    = @SHLIB_CFLAGS@
    23 SHLIB_LDFLAGS   = @SHLIB_LDFLAGS@
    24 SHLIB_SUFFIX    = @SHLIB_SUFFIX@
    25 CFLAGS_DEFAULT  = @CFLAGS_DEFAULT@
    26 LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@
    27 CFLAGS          = @CFLAGS@ -fPIC
    28 TCL_VERSION     = @TCL_VERSION@
     28SVN_VERSION     = @SVN_VERSION@
    2929TCL_LIB_SPEC    = @TCL_LIB_SPEC@
    30 HAVE_FFMPEG     = @HAVE_FFMPEG_LIBS@
    31 HAVE_NCURSES    = @HAVE_LIBNCURSES@
     30VERSION         = @RAPPTURE_VERSION@
    3231
    3332CC_SWITCHES     = $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES)
    3433CXX_SWITCHES    = $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES)
    3534
    36 INCLUDES    = -I$(srcdir) \
    37   -I../../../src/core \
    38   -I$(srcdir)/../../../src/core \
    39   -I$(srcdir)/../../../src/objects \
    40   -I$(includedir)
    41 RAPPTURE_VERSION = @PACKAGE_VERSION@
    42 SVN_VERSION     := $(shell svnversion $(srcdir) | sed 's/Unversioned directory/unknown/')
     35INCLUDES        = -I$(srcdir) \
     36                  -I$(includedir)
     37
    4338DEFINES         = -DSVN_VERSION=\"$(SVN_VERSION)\" \
    44                   -DRAPPTURE_VERSION=\"$(RAPPTURE_VERSION)\"
     39                  -DRAPPTURE_VERSION=\"$(VERSION)\"
    4540
    4641RANLIB          = @RANLIB@
     
    5146CDEBUGFLAGS     = -g -Wall
    5247
    53 LIBS = \
    54         -L../../../src/core -lrappture \
    55         $(TCL_LIB_SPEC) -lncurses -lexpat -lz -lm -lstdc++
     48LIBS            = \
     49                -L$(libdir) -lrappture \
     50                $(TCL_LIB_SPEC) -lexpat -lz -lm -lstdc++
    5651
    5752OBJS = \
    58         Rappture_Init.o \
    59         RpCurses.o \
    60         RpDaemon.o \
     53        Rappture_Init.o \
     54        RpSwitch.o \
    6155        RpEncodeTclInterface.o \
    62         RpOp.o \
    63         RpRlimit.o  \
    64         RpRusage.o \
    65         RpSignal.o  \
    66         RpSlice.o  \
    67         RpSysinfo.o  \
    68         Switch.o \
    6956        RpUnitsTclInterface.o \
    7057        RpUtilsTclInterface.o
    7158
    72 ifeq ($(WIN32),"")
    73    OBJS += RpWinResource.o
    74 endif
    75 
    76 ifeq ($(HAVE_LIBCURSES),yes)
    77    OBJS += RpCurses.o
    78    LIBS += -lncurses
    79 endif
    80 
    8159# Not using     RpLibraryTclInterface.o \
    8260
    83 name        = Rappture$(RAPPTURE_VERSION)
     61name        = Rappture$(VERSION)
    8462libname     = $(name)
    8563lib         = $(libname)$(SHLIB_SUFFIX)
  • branches/1.5/lang/tcl/src/RpEncodeTclInterface.cc

    r5679 r5906  
    1515#include "RpEncode.h"
    1616extern "C" {
    17 #include "Switch.h"
     17#include "RpSwitch.h"
    1818extern Tcl_AppInitProc RpEncoding_Init;
    1919}
     
    179179          Tcl_Obj *const *objv)
    180180{
     181    EncodeSwitches switches;
     182    const char* string;
     183    int last;
     184    int n;
     185    int nBytes;
     186
    181187    if (objc < 1) {
    182188        Tcl_AppendResult(interp, "wrong # args: should be \"",
     
    185191        return TCL_ERROR;
    186192    }
    187     EncodeSwitches switches;
    188193    switches.flags = 0;
    189     int n;
    190     n = Rp_ParseSwitches(interp, encodeSwitches, objc - 1, objv + 1, &switches,
     194    n = RpParseSwitches(interp, encodeSwitches, objc - 1, objv + 1, &switches,
    191195                         SWITCH_OBJV_PARTIAL);
    192196    if (n < 0) {
    193197        return TCL_ERROR;
    194198    }
    195     int last;
    196199    last = n + 1;
    197200    if ((objc - last) != 1) {
     
    201204        return TCL_ERROR;
    202205    }
    203     int nBytes;
    204     const char* string;
    205206    string = (const char*)Tcl_GetByteArrayFromObj(objv[last], &nBytes);
    206207    if (nBytes <= 0) {
     
    251252          Tcl_Obj *const *objv)
    252253{
     254    DecodeSwitches switches;
     255    int n;
     256    int numBytes;
     257    const char *string;
     258    int last;
     259
    253260    if (objc < 1) {
    254261        Tcl_AppendResult(interp, "wrong # args: should be \"",
     
    258265    }
    259266
    260     DecodeSwitches switches;
    261267    switches.flags = 0;
    262     int n;
    263     n = Rp_ParseSwitches(interp, decodeSwitches, objc - 1, objv + 1, &switches,
     268    n = RpParseSwitches(interp, decodeSwitches, objc - 1, objv + 1, &switches,
    264269        SWITCH_OBJV_PARTIAL);
    265270    if (n < 0) {
    266271        return TCL_ERROR;
    267272    }
    268     int last;
    269273    last = n + 1;
    270274    if ((objc - last) != 1) {
     
    274278        return TCL_ERROR;
    275279    }
    276     int numBytes;
    277     const char *string;
    278280
    279281    string = Tcl_GetStringFromObj(objv[last], &numBytes);
  • branches/1.5/pkgs/DicomToVtk/Makefile.in

    r5901 r5906  
    7171
    7272OBJS =          \
    73                 RpDicomToVtk.o
     73                dicomToVtk.o
    7474
    7575name            = RapptureDicomToVtk$(version)
  • branches/1.5/pkgs/DxToVtk/dxToVtk.c

    r5905 r5906  
    427427            isUniform = 1;
    428428            if ((count[0] < 0) || (count[1] < 0) || (count[2] < 0)) {
    429                 sprintf(mesg, "Invalid grid size: x=%d, y=%d, z=%d",
     429                sprintf(mesg, "invalid grid size: x=%d, y=%d, z=%d",
    430430                        count[0], count[1], count[2]);
    431431                Tcl_AppendResult(interp, mesg, (char *)NULL);
     
    446446            if (nAxes == 3) {
    447447                Tcl_AppendResult(interp, "too many delta statements",
    448                                  (char *)NULL);
     448                        (char *)NULL);
    449449                return TCL_ERROR;
    450450            }
     
    502502                          " items %d data follows", &nPoints) == 1) {
    503503            // XXX: Deprecated, invalid ordering of keywords
    504             Tcl_AppendResult(interp, "Invalid DX: 'rank' keyword should precede 'shape'.",
     504            Tcl_AppendResult(interp, "invalid DX: 'rank' keyword should precede 'shape'.",
    505505                             (char *)NULL);
    506506            return TCL_ERROR;
     
    571571                          " times %d data follows", &nPoints) == 1) {
    572572            /* Handle incorrect keyword: Do any tools make this mistake? */
    573             Tcl_AppendResult(interp, "Invalid DX: found 'times' where 'items' keyword was expected.",
     573            Tcl_AppendResult(interp, "invalid DX: found 'times' where 'items' keyword was expected.",
    574574                             (char *)NULL);
    575575            return TCL_ERROR;
     
    583583    if (isUniform) {
    584584        if (nPoints > 1 && nAxes == 0) {
    585             Tcl_AppendResult(interp, "Invalid DX file: uniform grid with no deltas found",
     585            Tcl_AppendResult(interp, "invalid DX file: uniform grid with no deltas found",
    586586                             (char *)NULL);
    587587            return TCL_ERROR;
    588588        }
    589589        if (nPoints > 1 && ((dx == dy) && (dx == dz) && (dx == 0.0))) {
    590             sprintf(mesg, "Invalid deltas in DX file: %g %g %g", dx, dy, dz);
     590            sprintf(mesg, "invalid deltas in DX file: %g %g %g", dx, dy, dz);
    591591            Tcl_AppendResult(interp, mesg, (char *)NULL);
    592592            return TCL_ERROR;
     
    801801/*
    802802 * ------------------------------------------------------------------------
    803  *  RpDxToVtk_Init --
     803 *  Rappture_dx_to_vtk_Init --
    804804 *
    805805 *  Invoked when the Rappture GUI library is being initialized
     
    811811 */
    812812int
    813 RpDxToVtk_Init(Tcl_Interp *interp)
     813Rappture_dx_to_vtk_Init(Tcl_Interp *interp)
    814814{
    815815    /* install the widget command */
Note: See TracChangeset for help on using the changeset viewer.