Changeset 5906 for branches/1.5
- Timestamp:
- Oct 9, 2015, 12:00:06 PM (9 years ago)
- 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 1 1 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 10 RAPPTURE_MAJOR_VERSION = @RAPPTURE_MAJOR_VERSION@ 11 RAPPTURE_MINOR_VERSION = @RAPPTURE_MINOR_VERSION@ 12 RAPPTURE_RELEASE_SERIAL = @RAPPTURE_RELEASE_SERIAL@ 13 X_INCLUDES = @X_INCLUDES@ 14 X_LIBRARIES = @X_LIBRARIES@ 15 WORDSIZE = @WORDSIZE@ 16 version = $(RAPPTURE_MAJOR_VERSION).$(RAPPTURE_MINOR_VERSION).$(RAPPTURE_RELEASE_SERIAL) 17 runtime = $(shell cd ../rappture/runtime; pwd) 18 TAG = branches/blt4 19 20 # ------------------------------------------------------------------------ 21 # Source and targer installation directories 22 # ------------------------------------------------------------------------ 23 24 bindir = $(exec_prefix)/bin 25 datadir = @datadir@ 26 datarootdir = @datarootdir@ 27 exec_prefix = @exec_prefix@ 28 incdir = $(prefix)/include 29 includedir = @includedir@ 30 libdir = @libdir@ 31 prefix = @prefix@ 32 scriptdir = $(exec_prefix)/scripts 33 pkgdir = $(exec_prefix)/lib 34 srcdir = $(shell cd @srcdir@; pwd) 35 statsdir = @STATSDIR@ 36 37 # ------------------------------------------------------------------------ 38 # You don't need to edit anything beyond this point 39 # ------------------------------------------------------------------------ 40 41 INSTALL = @INSTALL@ 42 INSTALL_DATA = @INSTALL_DATA@ 43 DESTDIR = 44 RANLIB = @RANLIB@ 45 MAKE = make 46 SHELL = /bin/sh 47 AR = ar rc 48 RM = rm -f 49 LN_S = @LN_S@ 50 VPATH = $(srcdir) 51 MKDIR_P = @MKDIR_P@ 52 CP = /bin/cp 53 54 WITH_R = @WITH_R@ 55 WITH_JAVA = @WITH_JAVA@ 56 WITH_MATLAB = @WITH_MATLAB@ 57 WITH_MKOCTFILE2 = @WITH_MKOCTFILE2@ 58 WITH_MKOCTFILE3 = @WITH_MKOCTFILE3@ 59 WITH_OCTAVE = @WITH_OCTAVE@ 60 WITH_PERL = @WITH_PERL@ 61 WITH_PYTHON = @WITH_PYTHON@ 62 WITH_RUBY = @WITH_RUBY@ 63 WITH_RUBY_SITELIBDIR = @WITH_RUBY_SITELIBDIR@ 64 WITH_TCL = @WITH_TCL@ 65 WITH_VTK = @WITH_VTK@ 66 67 common_flags = --prefix=$(prefix) --exec_prefix=$(exec_prefix) 68 x_flags = 69 ifneq ("$(X_INCLUDES)", ) 70 x_flags += --x-includes=$(X_INCLUDES) 40 71 endif 41 ifneq ( $(ENABLE_GUI),)42 TARGETS += gui builder tester examples puq72 ifneq ("$(X_LIBRARIES)", ) 73 x_flags += --x-includes=$(X_LIBRARIES) 43 74 endif 44 ifneq ($(HAVE_FFMPEG),) 45 TARGETS += video 75 76 PATH := $(bindir):$(PATH) 77 78 targets = \ 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 87 all: gui lang apps allpackages 88 89 allpackages: packages video optimizer 90 91 update: 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 99 blt = blt2.4z 100 cmake = cmake-2.8.12.2 101 examples = examples 102 expat = expat-2.1.0 103 expect = expect5.45 104 # Doesn't exist in 1.4 runtime 105 freetype = freetype-2.5.3 106 gui = gui 107 htmlwidget = htmlwidget-3a14 108 itcl = itcl3.3 109 itk = itk3.3 110 # Doesn't exist in 1.4 runtime 111 jpeg = jpeg-8d 112 # Doesn't exist in 1.4 runtime 113 libpng = libpng-1.6.15 114 libs = libs 115 # Doesn't exist in 1.4 runtime 116 openssl = openssl-1.0.1j 117 optimizer = optimizer 118 shape = shape0.4 119 sqlitetcl = sqlite-3071502 120 tcl = tcl8.4.19 121 tcllib = tcllib-1.12 122 tdom = tDOM-0.8.2 123 # Doesn't exist in 1.4 runtime 124 tiff = tiff-4.0.3 125 tk = tk8.4.19 126 tkimg = tkimg1.3 127 tls = tls1.6 128 vtk = vtk-6.0.0 129 zlib = zlib 130 lang = lang 131 video = video 132 packages = pkgs 133 apps = apps 134 135 subdirs = \ 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 142 ifneq ("$(WITH_VTK)", "no") 143 vtk_timestamp = $(vtk)/timestamp 46 144 endif 47 145 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 ;\ 146 clean: 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 174 apps_flags = \ 175 --enable-shared \ 176 $(common_flags) 177 178 apps: $(apps)/timestamp 179 180 clean-apps: 181 $(clean_apps) 182 fetch-apps: 183 $(fetch_apps) 184 configure-apps: 185 $(configure_apps) 186 build-apps: 187 $(build_apps) 188 install-apps: 189 $(install_apps) 190 touch-apps: 191 $(touch_apps) 192 force-apps: $(gui)/timestamp 193 + $(clean_apps) 194 + $(fetch_apps) 195 + $(configure_apps) 196 + $(build_apps) 197 + $(install_apps) 198 + $(touch_apps) 199 200 define clean_apps 201 $(MAKE) -C $(apps) clean 202 endef 203 define fetch_apps 204 endef 205 define configure_apps 206 endef 207 define build_apps 208 $(MAKE) -C $(apps) all 209 endef 210 define install_apps 211 $(MAKE) -C $(apps) install 212 endef 213 define touch_apps 214 touch $(apps)/timestamp 215 endef 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 230 blt_flags = \ 231 --enable-shared \ 232 $(common_flags) 233 234 blt: $(blt)/timestamp 235 236 clean-blt: 237 $(clean_blt) 238 fetch-blt: 239 $(fetch_blt) 240 configure-blt: 241 $(configure_blt) 242 build-blt: 243 $(build_blt) 244 install-blt: 245 $(install_blt) 246 touch-blt: 247 $(touch_blt) 248 force-blt: $(tcl)/timestamp $(tk)/timestamp 249 + $(clean_blt) 250 + $(fetch_blt) 251 + $(configure_blt) 252 + $(build_blt) 253 + $(install_blt) 254 + $(touch_blt) 255 256 define clean_blt 257 $(RM) -r $(blt) 258 endef 259 define fetch_blt 260 sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(blt) 261 endef 262 define configure_blt 263 $(MKDIR_P) $(blt) 264 cd $(blt); $(runtime)/$(blt)/configure $(blt_flags) 265 endef 266 define build_blt 267 $(MAKE) -C $(blt) all 268 endef 269 define install_blt 270 $(MAKE) -C $(blt) install 271 endef 272 define touch_blt 273 touch $(blt)/timestamp 274 endef 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 288 cmake_flags = \ 289 --prefix=$(prefix) 290 291 cmake: $(cmake)/timestamp 292 293 clean-cmake: 294 $(clean_cmake) 295 fetch-cmake: 296 $(fetch_cmake) 297 configure-cmake: 298 $(configure_cmake) 299 build-cmake: 300 $(build_cmake) 301 install-cmake: 302 $(install_cmake) 303 touch-cmake: 304 $(touch_cmake) 305 force-cmake: 306 + $(clean_cmake) 307 + $(fetch_cmake) 308 + $(configure_cmake) 309 + $(build_cmake) 310 + $(install_cmake) 311 + $(touch_cmake) 312 313 define clean_cmake 314 $(RM) -r $(cmake) 315 endef 316 define fetch_cmake 317 sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(cmake) 318 endef 319 define configure_cmake 320 $(MKDIR_P) $(cmake) 321 cd $(cmake); $(runtime)/$(cmake)/configure $(cmake_flags) 322 endef 323 define build_cmake 324 $(MAKE) -C $(cmake) all 325 endef 326 define install_cmake 327 $(MAKE) -C $(cmake) install 328 endef 329 define touch_cmake 330 touch $(cmake)/timestamp 331 endef 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 345 examples_flags = \ 346 --with-tclsh="$(bindir)/tclsh" \ 347 --enable-shared \ 348 $(common_flags) 349 350 examples: $(examples)/timestamp 351 352 clean-examples: 353 $(clean_examples) 354 fetch-examples: 355 $(fetch_examples) 356 configure-examples: 357 $(configure_examples) 358 build-examples: 359 $(build_examples) 360 install-examples: 361 $(install_examples) 362 touch-examples: 363 $(touch_examples) 364 force-examples: $(gui)/timestamp 365 + $(clean_examples) 366 + $(fetch_examples) 367 + $(configure_examples) 368 + $(build_examples) 369 + $(install_examples) 370 + $(touch_examples) 371 372 define clean_examples 373 $(MAKE) -C $(examples) clean 374 endef 375 define fetch_examples 376 endef 377 define configure_examples 378 $(MKDIR_P) $(examples) 379 endef 380 define build_examples 381 $(MAKE) -C $(examples) all 382 endef 383 define install_examples 384 $(MAKE) -C $(examples) install 385 endef 386 define touch_examples 387 touch $(examples)/timestamp 388 endef 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 402 expat_flags = \ 403 --enable-shared \ 404 $(common_flags) 405 406 expat: $(expat)/timestamp 407 408 clean-expat: 409 $(clean_expat) 410 fetch-expat: 411 $(fetch_expat) 412 configure-expat: 413 $(configure_expat) 414 build-expat: 415 $(build_expat) 416 install-expat: 417 $(install_expat) 418 touch-expat: 419 $(touch_expat) 420 force-expat: 421 + $(clean_expat) 422 + $(fetch_expat) 423 + $(configure_expat) 424 + $(build_expat) 425 + $(install_expat) 426 + $(touch_expat) 427 428 define clean_expat 429 $(RM) -r $(expat) 430 endef 431 define fetch_expat 432 sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(expat) 433 endef 434 define configure_expat 435 $(MKDIR_P) $(expat) 436 cd $(expat); $(runtime)/$(expat)/configure $(expat_flags) 437 endef 438 define build_expat 439 $(MAKE) -C $(expat) all 440 endef 441 define install_expat 442 $(MAKE) -C $(expat) install 443 endef 444 define touch_expat 445 touch $(expat)/timestamp 446 endef 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 460 expect_flags = \ 461 --enable-shared \ 462 --enable-64bit \ 463 --with-tcl=$(libdir) \ 464 --with-tclinclude=$(incdir) \ 465 $(common_flags) 466 467 expect: $(expect)/timestamp 468 469 clean-expect: 470 $(clean_expect) 471 fetch-expect: 472 $(fetch_expect) 473 configure-expect: 474 $(configure_expect) 475 build-expect: 476 $(build_expect) 477 install-expect: 478 $(install_expect) 479 touch-expect: 480 $(touch_expect) 481 force-expect: $(tcl)/timestamp $(tk)/timestamp 482 + $(clean_expect) 483 + $(fetch_expect) 484 + $(configure_expect) 485 + $(build_expect) 486 + $(install_expect) 487 + $(touch_expect) 488 489 define clean_expect 490 $(RM) -r $(expect) 491 endef 492 define fetch_expect 493 sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(expect) 494 endef 495 define configure_expect 496 $(MKDIR_P) $(expect) 497 cd $(expect); $(runtime)/$(expect)/configure $(expect_flags) 498 endef 499 define build_expect 500 $(MAKE) -C $(expect) all 501 endef 502 define install_expect 503 $(MAKE) -C $(expect) install 504 endef 505 define touch_expect 506 touch $(expect)/timestamp 507 endef 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 521 gui_flags = \ 522 $(common_flags) 523 524 gui: $(gui)/timestamp 525 526 clean-gui: 527 $(clean_gui) 528 fetch-gui: 529 $(fetch_gui) 530 configure-gui: 531 $(configure_gui) 532 build-gui: 533 $(build_gui) 534 install-gui: 535 $(install_gui) 536 touch-gui: 537 $(touch_gui) 538 force-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 552 define clean_gui 553 $(RM) -r $(gui) 554 endef 555 define fetch_gui 556 endef 557 define configure_gui 558 $(MKDIR_P) $(gui) 559 cd $(gui); $(srcdir)/$(gui)/configure $(gui_flags) 560 endef 561 define build_gui 562 $(MAKE) -C $(gui) all 563 endef 564 define install_gui 565 $(MAKE) -C $(gui) install 566 endef 567 define touch_gui 568 touch $(gui)/timestamp 569 endef 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 593 htmlwidget_flags = \ 594 --enable-shared \ 595 $(common_flags) 596 597 htmlwidget: $(htmlwidget)/timestamp 598 599 clean-htmlwidget: 600 $(clean_htmlwidget) 601 fetch-htmlwidget: 602 $(fetch_htmlwidget) 603 configure-htmlwidget: 604 $(configure_htmlwidget) 605 build-htmlwidget: 606 $(build_htmlwidget) 607 install-htmlwidget: 608 $(install_htmlwidget) 609 touch-htmlwidget: 610 $(touch_htmlwidget) 611 force-htmlwidget: $(tk)/timestamp 612 + $(clean_htmlwidget) 613 + $(fetch_htmlwidget) 614 + $(configure_htmlwidget) 615 + $(build_htmlwidget) 616 + $(install_htmlwidget) 617 + $(touch_htmlwidget) 618 619 define clean_htmlwidget 620 $(RM) -r $(htmlwidget) 621 endef 622 define fetch_htmlwidget 623 sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(htmlwidget) 624 endef 625 define configure_htmlwidget 626 $(MKDIR_P) $(htmlwidget) 627 cd $(htmlwidget); $(runtime)/$(htmlwidget)/configure $(htmlwidget_flags) 628 endef 629 define build_htmlwidget 630 $(MAKE) -C $(htmlwidget) all 631 endef 632 define install_htmlwidget 633 $(MAKE) -C $(htmlwidget) install 634 endef 635 define touch_htmlwidget 636 touch $(htmlwidget)/timestamp 637 endef 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 651 itcl_flags = \ 652 --enable-shared \ 653 $(common_flags) 654 655 itcl: $(itcl)/timestamp 656 657 clean-itcl: 658 $(clean_itcl) 659 fetch-itcl: 660 $(fetch_itcl) 661 configure-itcl: 662 $(configure_itcl) 663 build-itcl: 664 $(build_itcl) 665 install-itcl: 666 $(install_itcl) 667 touch-itcl: 668 $(touch_itcl) 669 force-itcl: 670 + $(clean_itcl) 671 + $(fetch_itcl) 672 + $(configure_itcl) 673 + $(build_itcl) 674 + $(install_itcl) 675 + $(touch_itcl) 676 677 define clean_itcl 678 $(RM) -r $(itcl) 679 endef 680 define fetch_itcl 681 sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(itcl) 682 endef 683 define configure_itcl 684 $(MKDIR_P) $(itcl) 685 cd $(itcl); $(runtime)/$(itcl)/configure $(itcl_flags) 686 endef 687 define build_itcl 688 $(MAKE) -C $(itcl) all 689 endef 690 define install_itcl 691 $(MAKE) -C $(itcl) install 692 endef 693 define touch_itcl 694 touch $(itcl)/timestamp 695 endef 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 709 itk_flags = \ 710 --enable-shared \ 711 $(common_flags) 712 713 itk: $(itk)/timestamp 714 715 clean-itk: 716 $(clean_itk) 717 fetch-itk: 718 $(fetch_itk) 719 configure-itk: 720 $(configure_itk) 721 build-itk: 722 $(build_itk) 723 install-itk: 724 $(install_itk) 725 touch-itk: 726 $(touch_itk) 727 force-itk: $(itcl)/timestamp $(tk)/timestamp 728 + $(clean_itk) 729 + $(fetch_itk) 730 + $(configure_itk) 731 + $(build_itk) 732 + $(install_itk) 733 + $(touch_itk) 734 735 define clean_itk 736 $(RM) -r $(itk) 737 endef 738 define fetch_itk 739 sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(itk) 740 endef 741 define configure_itk 742 $(MKDIR_P) $(itk) 743 cd $(itk); $(runtime)/$(itk)/configure $(itk_flags) 744 endef 745 define build_itk 746 $(MAKE) -C $(itk) all 747 endef 748 define install_itk 749 $(MAKE) -C $(itk) install 750 endef 751 define touch_itk 752 touch $(itk)/timestamp 753 endef 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 767 lang_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 781 lang: $(lang)/timestamp 782 783 clean-lang: 784 $(clean_lang) 785 fetch-lang: 786 $(fetch_lang) 787 configure-lang: 788 $(configure_lang) 789 build-lang: 790 $(build_lang) 791 install-lang: 792 $(install_lang) 793 touch-lang: 794 $(touch_lang) 795 force-lang: $(gui)/timestamp 796 + $(clean_lang) 797 + $(fetch_lang) 798 + $(configure_lang) 799 + $(build_lang) 800 + $(install_lang) 801 + $(touch_lang) 802 803 define clean_lang 804 $(RM) -r $(lang) 805 endef 806 define fetch_lang 807 endef 808 define configure_lang 809 $(MKDIR_P) $(lang) 810 cd $(lang); $(srcdir)/$(lang)/configure $(lang_flags) 811 endef 812 define build_lang 813 $(MAKE) -C $(lang) all 814 endef 815 define install_lang 816 $(MAKE) -C $(lang) install 817 endef 818 define touch_lang 819 touch $(lang)/timestamp 820 endef 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 835 libs_flags = \ 836 --enable-shared \ 837 $(common_flags) 838 839 libs: $(libs)/timestamp 840 841 clean-libs: 842 $(clean_libs) 843 fetch-libs: 844 $(fetch_libs) 845 configure-libs: 846 $(configure_libs) 847 build-libs: 848 $(build_libs) 849 install-libs: 850 $(install_libs) 851 touch-libs: 852 $(touch_libs) 853 force-libs: 854 + $(clean_libs) 855 + $(fetch_libs) 856 + $(configure_libs) 857 + $(build_libs) 858 + $(install_libs) 859 + $(touch_libs) 860 861 define clean_libs 862 $(MAKE) -C $(libs) clean 863 $(RM) $(libs)/timestamp 864 endef 865 define fetch_libs 866 endef 867 define configure_libs 868 endef 869 define build_libs 870 $(MAKE) -C $(libs) all 871 endef 872 define install_libs 873 $(MAKE) -C $(libs) install 874 $(MKDIR_P) $(libdir) 875 $(INSTALL) -m 0444 rapptureConfig.sh $(libdir) 876 endef 877 define touch_libs 878 touch $(libs)/timestamp 879 endef 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 893 optimizer_flags = \ 894 --with-tclsh="$(bindir)/tclsh8.5" \ 895 --enable-shared \ 896 --disable-threads \ 897 $(common_flags) 898 899 optimizer: $(optimizer)/timestamp 900 901 clean-optimizer: 902 $(clean_optimizer) 903 fetch-optimizer: 904 $(fetch_optimizer) 905 configure-optimizer: 906 $(configure_optimizer) 907 build-optimizer: 908 $(build_optimizer) 909 install-optimizer: 910 $(install_optimizer) 911 touch-optimizer: 912 $(touch_optimizer) 913 force-optimizer: $(gui)/timestamp 914 + $(clean_optimizer) 915 + $(fetch_optimizer) 916 + $(configure_optimizer) 917 + $(build_optimizer) 918 + $(install_optimizer) 919 + $(touch_optimizer) 920 921 define clean_optimizer 922 $(RM) -r $(optimizer) 923 endef 924 define fetch_optimizer 925 endef 926 define configure_optimizer 927 $(MKDIR_P) $(optimizer) 928 cd $(optimizer); $(srcdir)/pkgs/$(optimizer)/configure $(optimizer_flags) 929 endef 930 define build_optimizer 931 $(MAKE) -C $(optimizer) all 932 endef 933 define install_optimizer 934 $(MAKE) -C $(optimizer) install 935 endef 936 define touch_optimizer 937 touch $(optimizer)/timestamp 938 endef 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 953 packages_flags = \ 954 $(common_flags) 955 956 packages: $(packages)/timestamp 957 958 clean-packages: 959 $(clean_packages) 960 fetch-packages: 961 $(fetch_packages) 962 configure-packages: 963 $(configure_packages) 964 build-packages: 965 $(build_packages) 966 install-packages: 967 $(install_packages) 968 touch-packages: 969 $(touch_packages) 970 force-packages: $(gui)/timestamp 971 + $(clean_packages) 972 + $(fetch_packages) 973 + $(configure_packages) 974 + $(build_packages) 975 + $(install_packages) 976 + $(touch_packages) 977 978 define clean_packages 979 $(RM) -r $(packages) 980 endef 981 define fetch_packages 982 endef 983 define configure_packages 984 $(MKDIR_P) $(packages) 985 cd $(packages); $(srcdir)/$(packages)/configure $(packages_flags) 986 endef 987 define build_packages 988 $(MAKE) -C $(packages) all 989 endef 990 define install_packages 991 $(MAKE) -C $(packages) install 992 endef 993 define touch_packages 994 touch $(packages)/timestamp 995 endef 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 1009 shape_flags = \ 1010 --enable-shared \ 1011 --with-tclconf=$(libdir) \ 1012 --with-tkconf=$(libdir) \ 1013 $(common_flags) 1014 1015 shape: $(shape)/timestamp 1016 1017 clean-shape: 1018 $(clean_shape) 1019 fetch-shape: 1020 $(fetch_shape) 1021 configure-shape: 1022 $(configure_shape) 1023 build-shape: 1024 $(build_shape) 1025 install-shape: 1026 $(install_shape) 1027 touch-shape: 1028 $(touch_shape) 1029 force-shape: $(tk)/timestamp 1030 + $(clean_shape) 1031 + $(fetch_shape) 1032 + $(configure_shape) 1033 + $(build_shape) 1034 + $(install_shape) 1035 + $(touch_shape) 1036 1037 define clean_shape 1038 $(RM) -r $(shape) 1039 endef 1040 define fetch_shape 1041 sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(shape) 1042 endef 1043 define configure_shape 1044 $(MKDIR_P) $(shape) 1045 cd $(shape); $(runtime)/$(shape)/unix/configure $(shape_flags) 1046 endef 1047 define build_shape 1048 $(MAKE) -C $(shape) all 1049 endef 1050 define install_shape 1051 $(MAKE) -C $(shape) install 1052 endef 1053 define touch_shape 1054 touch $(shape)/timestamp 1055 endef 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 1069 sqlitetcl_flags = \ 1070 --enable-shared \ 1071 $(common_flags) 1072 1073 sqlitetcl: $(sqlitetcl)/timestamp 1074 1075 clean-sqlitetcl: 1076 $(clean_sqlitetcl) 1077 fetch-sqlitetcl: 1078 $(fetch_sqlitetcl) 1079 configure-sqlitetcl: 1080 $(configure_sqlitetcl) 1081 build-sqlitetcl: 1082 $(build_sqlitetcl) 1083 install-sqlitetcl: 1084 $(install_sqlitetcl) 1085 touch-sqlitetcl: 1086 $(touch_sqlitetcl) 1087 force-sqlitetcl: $(tcl)/timestamp 1088 + $(clean_sqlitetcl) 1089 + $(fetch_sqlitetcl) 1090 + $(configure_sqlitetcl) 1091 + $(build_sqlitetcl) 1092 + $(install_sqlitetcl) 1093 + $(touch_sqlitetcl) 1094 1095 define clean_sqlitetcl 1096 $(RM) -r $(sqlitetcl) 1097 endef 1098 define fetch_sqlitetcl 1099 sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(sqlitetcl) 1100 endef 1101 define configure_sqlitetcl 1102 $(MKDIR_P) $(sqlitetcl) 1103 cd $(sqlitetcl); $(runtime)/$(sqlitetcl)/tea/configure $(sqlitetcl_flags) 1104 endef 1105 define build_sqlitetcl 1106 $(MAKE) -C $(sqlitetcl) all 1107 endef 1108 define install_sqlitetcl 1109 $(MAKE) -C $(sqlitetcl) install 1110 endef 1111 define touch_sqlitetcl 1112 touch $(sqlitetcl)/timestamp 1113 endef 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 1127 tcl_flags = \ 1128 --enable-shared \ 1129 --disable-threads \ 1130 $(common_flags) 1131 1132 tcl: $(tcl)/timestamp 1133 1134 clean-tcl: 1135 $(clean_tcl) 1136 fetch-tcl: 1137 $(fetch_tcl) 1138 configure-tcl: 1139 $(configure_tcl) 1140 build-tcl: 1141 $(build_tcl) 1142 install-tcl: 1143 $(install_tcl) 1144 touch-tcl: 1145 $(touch_tcl) 1146 force-tcl: 1147 + $(clean_tcl) 1148 + $(fetch_tcl) 1149 + $(configure_tcl) 1150 + $(build_tcl) 1151 + $(install_tcl) 1152 + $(touch_tcl) 1153 1154 define fetch_tcl 1155 sh $(srcdir)/fetch.sh $(TAG) $(srcdir) $(tcl) 1156 endef 1157 define clean_tcl 1158 $(RM) -r $(tcl) 1159 endef 1160 define fetch_tcl 1161 sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tcl) 1162 endef 1163 define configure_tcl 1164 $(MKDIR_P) $(tcl) 1165 cd $(tcl); $(srcdir)/runtime/$(tcl)/unix/configure $(tcl_flags) 1166 endef 1167 define build_tcl 1168 $(MAKE) -C $(tcl) all 1169 endef 1170 define install_tcl 1171 $(MAKE) -C $(tcl) install 1172 $(RM) $(bindir)/tclsh 1173 (. ${libdir}/tclConfig.sh ; cd $(bindir); $(LN_S) tclsh$${TCL_VERSION} tclsh) 1174 endef 1175 define touch_tcl 1176 touch $(tcl)/timestamp 1177 endef 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 1191 tcllib_flags = \ 1192 --enable-shared \ 1193 $(common_flags) 1194 1195 tcllib: $(tcllib)/timestamp 1196 1197 clean-tcllib: 1198 $(clean_tcllib) 1199 fetch-tcllib: 1200 $(fetch_tcllib) 1201 configure-tcllib: 1202 $(configure_tcllib) 1203 build-tcllib: 1204 $(build_tcllib) 1205 install-tcllib: 1206 $(install_tcllib) 1207 touch-tcllib: 1208 $(touch_tcllib) 1209 force-tcllib: $(tcl)/timestamp 1210 + $(clean_tcllib) 1211 + $(fetch_tcllib) 1212 + $(configure_tcllib) 1213 + $(build_tcllib) 1214 + $(install_tcllib) 1215 + $(touch_tcllib) 1216 1217 define clean_tcllib 1218 $(RM) -r $(tcllib) 1219 endef 1220 define fetch_tcllib 1221 sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tcllib) 1222 endef 1223 define configure_tcllib 1224 $(MKDIR_P) $(tcllib) 1225 cd $(tcllib); $(runtime)/$(tcllib)/configure $(tcllib_flags) 1226 endef 1227 define build_tcllib 1228 $(MAKE) -C $(tcllib) all 1229 endef 1230 define install_tcllib 1231 $(MAKE) -C $(tcllib) install 1232 endef 1233 define touch_tcllib 1234 touch $(tcllib)/timestamp 1235 endef 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 1249 tdom_flags = \ 1250 --enable-shared \ 1251 $(common_flags) 1252 1253 tdom: $(tdom)/timestamp 1254 1255 clean-tdom: 1256 $(clean_tdom) 1257 fetch-tdom: 1258 $(fetch_tdom) 1259 configure-tdom: 1260 $(configure_tdom) 1261 build-tdom: 1262 $(build_tdom) 1263 install-tdom: 1264 $(install_tdom) 1265 touch-tdom: 1266 $(touch_tdom) 1267 force-tdom: $(tcl)/timestamp 1268 + $(clean_tdom) 1269 + $(fetch_tdom) 1270 + $(configure_tdom) 1271 + $(build_tdom) 1272 + $(install_tdom) 1273 + $(touch_tdom) 1274 1275 define clean_tdom 1276 $(RM) -r $(tdom) 1277 endef 1278 define fetch_tdom 1279 sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tdom) 1280 endef 1281 define configure_tdom 1282 $(MKDIR_P) $(tdom) 1283 cd $(tdom); $(runtime)/$(tdom)/configure $(tdom_flags) 1284 endef 1285 define build_tdom 1286 $(MAKE) -C $(tdom) all 1287 endef 1288 define install_tdom 1289 $(MAKE) -C $(tdom) install 1290 endef 1291 define touch_tdom 1292 touch $(tdom)/timestamp 1293 endef 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 1307 tk_flags = \ 1308 --enable-shared \ 1309 --disable-threads \ 1310 $(common_flags) 1311 1312 tk: $(tk)/timestamp 1313 1314 clean-tk: 1315 $(clean_tk) 1316 fetch-tk: 1317 $(fetch_tk) 1318 configure-tk: 1319 $(configure_tk) 1320 build-tk: 1321 $(build_tk) 1322 install-tk: 1323 $(install_tk) 1324 touch-tk: 1325 $(touch_tk) 1326 force-tk: $(tcl)/timestamp 1327 + $(clean_tk) 1328 + $(fetch_tk) 1329 + $(configure_tk) 1330 + $(build_tk) 1331 + $(install_tk) 1332 + $(touch_tk) 1333 1334 define clean_tk 1335 $(RM) -r $(tk) 1336 endef 1337 define fetch_tk 1338 sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tk) 1339 endef 1340 define configure_tk 1341 $(MKDIR_P) $(tk) 1342 cd $(tk); $(runtime)/$(tk)/unix/configure $(tk_flags) 1343 endef 1344 define build_tk 1345 $(MAKE) -C $(tk) all 1346 endef 1347 define install_tk 1348 $(MAKE) -C $(tk) install 1349 $(RM) $(bindir)/wish 1350 (. $(libdir)/tkConfig.sh ; cd $(bindir); $(LN_S) wish$${TK_VERSION} wish) 1351 endef 1352 define touch_tk 1353 touch $(tk)/timestamp 1354 endef 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 1368 tkimg_flags = \ 1369 --enable-shared \ 1370 $(common_flags) 1371 1372 tkimg: $(tkimg)/timestamp 1373 1374 clean-tkimg: 1375 $(clean_tkimg) 1376 fetch-tkimg: 1377 $(fetch_tkimg) 1378 configure-tkimg: 1379 $(configure_tkimg) 1380 build-tkimg: 1381 $(build_tkimg) 1382 install-tkimg: 1383 $(install_tkimg) 1384 touch-tkimg: 1385 $(touch_tkimg) 1386 force-tkimg: $(tk)/timestamp 1387 + $(clean_tkimg) 1388 + $(fetch_tkimg) 1389 + $(configure_tkimg) 1390 + $(build_tkimg) 1391 + $(install_tkimg) 1392 + $(touch_tkimg) 1393 1394 define clean_tkimg 1395 $(RM) -r $(tkimg) 1396 endef 1397 define fetch_tkimg 1398 sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tkimg) 1399 endef 1400 define configure_tkimg 1401 $(MKDIR_P) $(tkimg) 1402 cd $(tkimg); $(runtime)/$(tkimg)/configure $(tkimg_flags) 1403 endef 1404 define build_tkimg 1405 $(MAKE) -C $(tkimg) all 1406 endef 1407 define install_tkimg 1408 $(MAKE) -C $(tkimg) install 1409 endef 1410 define touch_tkimg 1411 touch $(tkimg)/timestamp 1412 endef 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 1426 tls_flags = \ 1427 --enable-shared \ 1428 $(common_flags) 1429 1430 tls: $(tls)/timestamp 1431 1432 clean-tls: 1433 $(clean_tls) 1434 fetch-tls: 1435 $(fetch_tls) 1436 configure-tls: 1437 $(configure_tls) 1438 build-tls: 1439 $(build_tls) 1440 install-tls: 1441 $(install_tls) 1442 touch-tls: 1443 $(touch_tls) 1444 force-tls: $(tcl)/timestamp 1445 + $(clean_tls) 1446 + $(fetch_tls) 1447 + $(configure_tls) 1448 + $(build_tls) 1449 + $(install_tls) 1450 + $(touch_tls) 1451 1452 define clean_tls 1453 $(RM) -r $(tls) 1454 endef 1455 define fetch_tls 1456 sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tls) 1457 endef 1458 define configure_tls 1459 $(MKDIR_P) $(tls) 1460 cd $(tls); $(runtime)/$(tls)/configure $(tls_flags) 1461 endef 1462 define build_tls 1463 $(MAKE) -C $(tls) all 1464 endef 1465 define install_tls 1466 $(MAKE) -C $(tls) install 1467 endef 1468 define touch_tls 1469 touch $(tls)/timestamp 1470 endef 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 1484 video_flags = \ 1485 --with-tclsh="$(bindir)/tclsh" \ 1486 --enable-shared \ 1487 $(common_flags) 1488 1489 video: $(video)/timestamp 1490 1491 clean-video: 1492 $(clean_video) 1493 fetch-video: 1494 $(fetch_video) 1495 configure-video: 1496 $(configure_video) 1497 build-video: 1498 $(build_video) 1499 install-video: 1500 $(install_video) 1501 touch-video: 1502 $(touch_video) 1503 force-video: #$(gui)/timestamp 1504 + $(clean_video) 1505 + $(fetch_video) 1506 + $(configure_video) 1507 + $(build_video) 1508 + $(install_video) 1509 + $(touch_video) 1510 1511 define clean_video 1512 $(RM) -r $(video) 1513 endef 1514 define fetch_video 1515 endef 1516 define configure_video 1517 $(MKDIR_P) $(video) 1518 cd $(video); $(srcdir)/pkgs/$(video)/configure $(video_flags) 1519 endef 1520 define build_video 1521 $(MAKE) -C $(video) all 1522 endef 1523 define install_video 1524 $(MAKE) -C $(video) install 1525 endef 1526 define touch_video 1527 touch $(video)/timestamp 1528 endef 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 1542 vtk_flags = \ 1543 $(common_flags) 1544 1545 vtk: $(vtk)/timestamp 1546 1547 clean-vtk: 1548 $(clean_vtk) 1549 fetch-vtk: 1550 $(fetch_vtk) 1551 configure-vtk: 1552 $(configure_vtk) 1553 build-vtk: 1554 $(build_vtk) 1555 install-vtk: 1556 $(install_vtk) 1557 touch-vtk: 1558 $(touch_vtk) 1559 force-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 1567 define clean_vtk 1568 $(RM) -r $(vtk) 1569 endef 1570 define fetch_vtk 1571 sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(vtk) 1572 endef 1573 define configure_vtk 1574 $(MKDIR_P) $(vtk) 1575 cd $(vtk); $(runtime)/$(vtk)/configure $(vtk_flags) 1576 endef 1577 define build_vtk 1578 $(MAKE) -C $(vtk) all 1579 endef 1580 define 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) 1587 endef 1588 define touch_vtk 1589 touch $(vtk)/timestamp 1590 endef 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 1604 zlib_flags = \ 1605 --enable-shared \ 1606 $(common_flags) 1607 1608 zlib: $(zlib)/timestamp 1609 1610 clean-zlib: 1611 $(clean_zlib) 1612 fetch-zlib: 1613 $(fetch_zlib) 1614 configure-zlib: 1615 $(configure_zlib) 1616 build-zlib: 1617 $(build_zlib) 1618 install-zlib: 1619 $(install_zlib) 1620 touch-zlib: 1621 $(touch_zlib) 1622 force-zlib: 1623 + $(clean_zlib) 1624 + $(fetch_zlib) 1625 + $(configure_zlib) 1626 + $(build_zlib) 1627 + $(install_zlib) 1628 + $(touch_zlib) 1629 1630 define clean_zlib 1631 $(RM) -r $(zlib) 1632 endef 1633 define fetch_zlib 1634 sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(zlib) 1635 endef 1636 define configure_zlib 1637 $(MKDIR_P) $(zlib) 1638 cd $(zlib); $(runtime)/$(zlib)/configure $(zlib_flags) 1639 endef 1640 define build_zlib 1641 $(MAKE) -C $(zlib) all 1642 endef 1643 define install_zlib 1644 $(MAKE) -C $(zlib) install 1645 endef 1646 define touch_zlib 1647 touch $(zlib)/timestamp 1648 endef 1649 1650 $(zlib)/timestamp: 1651 + $(clean_zlib) 1652 + $(fetch_zlib) 1653 + $(configure_zlib) 1654 + $(build_zlib) 1655 + $(install_zlib) 1656 + $(touch_zlib) 1657 1658 1659 TRASH = \ 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 1691 installdir = rappture_install 1692 tmpdir = /tmp/$(installdir) 1693 arch = $(shell uname -m) 1694 package: 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 ; \ 54 1700 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 1 1 builtin(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 1 1 #! /bin/sh 2 2 # 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. 4 4 # 5 5 # Report bugs to <rappture@nanohub.org>. … … 581 581 PACKAGE_NAME='Rappture' 582 582 PACKAGE_TARNAME='rappture' 583 PACKAGE_VERSION='1. 4'584 PACKAGE_STRING='Rappture 1. 4'583 PACKAGE_VERSION='1.5' 584 PACKAGE_STRING='Rappture 1.5' 585 585 PACKAGE_BUGREPORT='rappture@nanohub.org' 586 586 PACKAGE_URL='' … … 622 622 #endif" 623 623 624 enable_option_checking=no625 624 ac_subst_vars='LTLIBOBJS 626 625 LIBOBJS 627 subdirs 628 VTK_VERSION 629 VTK_TCL_DIR 626 WITH_TCL 627 WITH_RUBY_SITELIBDIR 628 WITH_RUBY 629 WITH_PYTHON 630 WITH_PERL 631 WITH_OCTAVE 632 WITH_MKOCTFILE3 633 WITH_MKOCTFILE2 634 WITH_MATLAB 635 WITH_JAVA 636 WITH_R 637 WITH_VTK 638 RAPPTURE_VERSION 639 RAPPTURE_RELEASE_SERIAL 640 RAPPTURE_MINOR_VERSION 641 RAPPTURE_MAJOR_VERSION 642 WORDSIZE 643 X_LIBRARIES 644 X_INCLUDES 630 645 TK_VERSION 631 646 TK_XLIBSW 632 647 TK_LIB_SPEC 633 648 TK_INC_SPEC 634 TCL_VERSION635 649 TCL_SHLIB_SUFFIX 636 650 TCL_SHLIB_LDFLAGS … … 646 660 SIZEOF_INT 647 661 SHLIB_LDFLAGS 648 RUBY_VERSION_RV649 RUBY_PLATFORM650 RP_BASE651 PYTHON_VERSION652 PYTHON_SITE_PACKAGES653 PYTHON_SITE_DIR654 PYTHON_LIBDIR655 PYTHON_LIB656 PYTHON_LDFLAGS657 PYTHON_INCLUDES658 PYTHON_INCDIR659 PYTHON_DISTUTILS660 PYTHON_CFLAGS661 PERL_VERSION_RV662 PERL_VERSION663 PERL_VENDORLIB664 PERL_PRIVLIB665 PERL_LIBSPEC666 PERL_INSTALLARCHLIB667 PERL_INCLUDES668 PERL_CPPFLAGS669 PERL_CCFLAGS670 PERL_ARCHLIBEXP671 PERL_ARCHLIB672 OCTAVE_VERSION_MAJOR673 OCTAVE_VERSION674 SVN_URL675 662 SVN_VERSION 676 MKOCTFILE3677 MKOCTFILE2678 MEX_ARCH679 663 MAKE 680 664 LIB_SEARCH_DIRS 681 JAVA_INC_SPEC682 JAVA_INC_DIR683 JAVA_HOME684 665 INSTALL_PREFIX 685 HAVE_RUBY_DEVEL686 666 HAVE_INTTYPES_H 687 HAVE_FFMPEG_LIBS688 ENABLE_VTK_DICOM689 ENABLE_VTK690 ENABLE_GUI691 ENABLE_LANG692 FFMPEG693 667 LDFLAGS_DEFAULT 694 668 CFLAGS_DEFAULT 695 host_os696 host_vendor697 host_cpu698 host699 build_os700 build_vendor701 build_cpu702 build703 HAVE_RUBY_H704 RUBY_SITELIBDIR705 RUBY_LIBRUBYARG_STATIC706 RUBY_LIBRUBYARG707 RUBY_LIBS708 RUBY_LDFLAGS709 RUBY_CXXFLAGS710 RUBY_CFLAGS711 RUBY_CPPFLAGS712 RUBY_VERSION_CODE713 RUBY714 R715 JAVAH716 JAVAC717 JAVA718 PYTHON719 XSUBPP720 PERL721 mkoctfile2722 mkoctfile3723 MKOCTFILE724 OCTAVE725 MCC726 MEXEXT727 MEX728 MATLAB729 TCLSH730 669 INSTALL_STUB_LIB 731 670 INSTALL_LIB … … 752 691 AR 753 692 CXXCPP 693 XMKMF 754 694 EGREP 755 695 GREP … … 816 756 ac_user_opts=' 817 757 enable_option_checking 758 with_R 759 with_java 760 with_matlab 761 with_mkoctfile2 762 with_mkoctfile3 763 with_octave 764 with_perl 765 with_python 766 with_ruby 767 with_ruby_sitelibdir 768 with_tcl 818 769 with_install 770 with_vtk 771 with_x 819 772 enable_64bit 820 773 enable_64bit_vis 821 774 enable_corefoundation 822 775 enable_load 823 enable_lang824 enable_gui825 with_ffmpeg826 with_tclsh827 with_vtk828 enable_vtkdicom829 with_matlab830 with_octave831 with_mkoctfile3832 with_mkoctfile2833 with_perl834 with_python835 with_java836 with_R837 with_ruby838 with_ruby_sitelibdir839 enable_shared840 776 enable_symbols 841 777 ' … … 854 790 FFLAGS 855 791 CPP 792 XMKMF 856 793 CXXCPP' 857 ac_subdirs_all='packages/optimizer/src ' 794 858 795 859 796 # Initialize some variables set by options. … … 1395 1332 # This message is too long to be a string in the A/UX 3.1 sh. 1396 1333 cat <<_ACEOF 1397 \`configure' configures Rappture 1. 4to adapt to many kinds of systems.1334 \`configure' configures Rappture 1.5 to adapt to many kinds of systems. 1398 1335 1399 1336 Usage: $0 [OPTION]... [VAR=VALUE]... … … 1452 1389 cat <<\_ACEOF 1453 1390 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]1391 X features: 1392 --x-includes=DIR X include files are in DIR 1393 --x-libraries=DIR X library files are in DIR 1457 1394 _ACEOF 1458 1395 fi … … 1460 1397 if test -n "$ac_init_help"; then 1461 1398 case $ac_init_help in 1462 short | recursive ) echo "Configuration of Rappture 1. 4:";;1399 short | recursive ) echo "Configuration of Rappture 1.5:";; 1463 1400 esac 1464 1401 cat <<\_ACEOF … … 1472 1409 --enable-corefoundation use CoreFoundation API --enable-corefoundation 1473 1410 --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 interface1476 [default=yes]1477 --enable-vtkdicom Use vtkDICOM package [default=no]1478 --enable-shared build and link with shared libraries --enable-shared1479 1411 --enable-symbols build with debugging symbols --disable-symbols 1480 1412 … … 1482 1414 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1483 1415 --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] 1488 1418 --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] 1489 1421 --with-octave=DIR path of default octave compiler `mkoctfile' 1490 1422 [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] 1497 1425 --with-ruby=PATH path to the ruby interpreter [[ruby]] 1498 1426 --with-ruby-sitelibdir=PATH 1499 1427 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 1500 1432 1501 1433 Some influential environment variables: … … 1512 1444 FFLAGS Fortran 77 compiler flags 1513 1445 CPP C preprocessor 1446 XMKMF Path to xmkmf, Makefile generator for X Window System 1514 1447 CXXCPP C++ preprocessor 1515 1448 … … 1580 1513 if $ac_init_version; then 1581 1514 cat <<\_ACEOF 1582 Rappture configure 1. 41515 Rappture configure 1.5 1583 1516 generated by GNU Autoconf 2.69 1584 1517 … … 1900 1833 } # ac_fn_c_check_func 1901 1834 1835 # ac_fn_cxx_try_cpp LINENO 1836 # ------------------------ 1837 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1838 ac_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" 1842 case "(($ac_try" in 1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1844 *) ac_try_echo=$ac_try;; 1845 esac 1846 eval 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 1861 else 1862 $as_echo "$as_me: failed program was:" >&5 1863 sed 's/^/| /' conftest.$ac_ext >&5 1864 1865 ac_retval=1 1866 fi 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 1902 1872 # ac_fn_cxx_try_link LINENO 1903 1873 # ------------------------- … … 1946 1916 } # ac_fn_cxx_try_link 1947 1917 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. 1922 ac_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" 1926 case "(($ac_try" in 1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1928 *) ac_try_echo=$ac_try;; 1929 esac 1930 eval 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;; 1939 esac 1940 eval 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 1947 else 1948 $as_echo "$as_me: program exited with status $ac_status" >&5 1949 $as_echo "$as_me: failed program was:" >&5 1950 sed 's/^/| /' conftest.$ac_ext >&5 1951 1952 ac_retval=$ac_status 1953 fi 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. 1964 ac_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; } 1969 if eval \${$3+:} false; then : 1970 $as_echo_n "(cached) " >&6 1971 else 1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1973 /* end confdefs.h. */ 1974 $4 1975 #include <$2> 1976 _ACEOF 1977 if ac_fn_cxx_try_compile "$LINENO"; then : 1978 eval "$3=yes" 1979 else 1980 eval "$3=no" 1981 fi 1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1983 fi 1984 eval 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 1996 ac_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. 2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2002 /* end confdefs.h. */ 2003 $4 2004 int 2005 main () 2006 { 2007 static int test_array [1 - 2 * !(($2) >= 0)]; 2008 test_array [0] = 0; 2009 return test_array [0]; 2010 2011 ; 2012 return 0; 2013 } 2014 _ACEOF 2015 if 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 2021 int 2022 main () 2023 { 2024 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2025 test_array [0] = 0; 2026 return test_array [0]; 2027 2028 ; 2029 return 0; 2030 } 2031 _ACEOF 2032 if ac_fn_cxx_try_compile "$LINENO"; then : 2033 ac_hi=$ac_mid; break 2034 else 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 2041 fi 2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2043 done 2044 else 2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2046 /* end confdefs.h. */ 2047 $4 2048 int 2049 main () 2050 { 2051 static int test_array [1 - 2 * !(($2) < 0)]; 2052 test_array [0] = 0; 2053 return test_array [0]; 2054 2055 ; 2056 return 0; 2057 } 2058 _ACEOF 2059 if 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 2065 int 2066 main () 2067 { 2068 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2069 test_array [0] = 0; 2070 return test_array [0]; 2071 2072 ; 2073 return 0; 2074 } 2075 _ACEOF 2076 if ac_fn_cxx_try_compile "$LINENO"; then : 2077 ac_lo=$ac_mid; break 2078 else 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 2085 fi 2086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2087 done 2088 else 2089 ac_lo= ac_hi= 2090 fi 2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2092 fi 2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2094 # Binary search between lo and hi bounds. 2095 while 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 2100 int 2101 main () 2102 { 2103 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2104 test_array [0] = 0; 2105 return test_array [0]; 2106 2107 ; 2108 return 0; 2109 } 2110 _ACEOF 2111 if ac_fn_cxx_try_compile "$LINENO"; then : 2112 ac_hi=$ac_mid 2113 else 2114 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2115 fi 2116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2117 done 2118 case $ac_lo in #(( 2119 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2120 '') ac_retval=1 ;; 2121 esac 2122 else 2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2124 /* end confdefs.h. */ 2125 $4 2126 static long int longval () { return $2; } 2127 static unsigned long int ulongval () { return $2; } 2128 #include <stdio.h> 2129 #include <stdlib.h> 2130 int 2131 main () 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 2159 if ac_fn_cxx_try_run "$LINENO"; then : 2160 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2161 else 2162 ac_retval=1 2163 fi 2164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2165 conftest.$ac_objext conftest.beam conftest.$ac_ext 2166 rm -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 1948 2174 # ac_fn_cxx_check_func LINENO FUNC VAR 1949 2175 # ------------------------------------ … … 2012 2238 2013 2239 } # ac_fn_cxx_check_func 2014 2015 # ac_fn_cxx_try_cpp LINENO2016 # ------------------------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_stack2021 if { { ac_try="$ac_cpp conftest.$ac_ext"2022 case "(($ac_try" in2023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;2024 *) ac_try_echo=$ac_try;;2025 esac2026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""2027 $as_echo "$ac_try_echo"; } >&52028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err2029 ac_status=$?2030 if test -s conftest.err; then2031 grep -v '^ *+' conftest.err >conftest.er12032 cat conftest.er1 >&52033 mv -f conftest.er1 conftest.err2034 fi2035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&52036 test $ac_status = 0; } > conftest.i && {2037 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||2038 test ! -s conftest.err2039 }; then :2040 ac_retval=02041 else2042 $as_echo "$as_me: failed program was:" >&52043 sed 's/^/| /' conftest.$ac_ext >&52044 2045 ac_retval=12046 fi2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno2048 as_fn_set_status $ac_retval2049 2050 } # ac_fn_cxx_try_cpp2051 2240 2052 2241 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES … … 2140 2329 2141 2330 } # ac_fn_cxx_check_header_mongrel 2142 2143 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES2144 # ---------------------------------------------------------2145 # Tests whether HEADER exists and can be compiled using the include files in2146 # 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_stack2150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&52151 $as_echo_n "checking for $2... " >&6; }2152 if eval \${$3+:} false; then :2153 $as_echo_n "(cached) " >&62154 else2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext2156 /* end confdefs.h. */2157 $42158 #include <$2>2159 _ACEOF2160 if ac_fn_cxx_try_compile "$LINENO"; then :2161 eval "$3=yes"2162 else2163 eval "$3=no"2164 fi2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext2166 fi2167 eval ac_res=\$$32168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&52169 $as_echo "$ac_res" >&6; }2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno2171 2172 } # ac_fn_cxx_check_header_compile2173 2174 # ac_fn_cxx_try_run LINENO2175 # ------------------------2176 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes2177 # 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_stack2181 if { { ac_try="$ac_link"2182 case "(($ac_try" in2183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;2184 *) ac_try_echo=$ac_try;;2185 esac2186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""2187 $as_echo "$ac_try_echo"; } >&52188 (eval "$ac_link") 2>&52189 ac_status=$?2190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&52191 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'2192 { { case "(($ac_try" in2193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;2194 *) ac_try_echo=$ac_try;;2195 esac2196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""2197 $as_echo "$ac_try_echo"; } >&52198 (eval "$ac_try") 2>&52199 ac_status=$?2200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&52201 test $ac_status = 0; }; }; then :2202 ac_retval=02203 else2204 $as_echo "$as_me: program exited with status $ac_status" >&52205 $as_echo "$as_me: failed program was:" >&52206 sed 's/^/| /' conftest.$ac_ext >&52207 2208 ac_retval=$ac_status2209 fi2210 rm -rf conftest.dSYM conftest_ipa8_conftest.oo2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno2212 as_fn_set_status $ac_retval2213 2214 } # ac_fn_cxx_try_run2215 2216 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES2217 # ----------------------------------------------2218 # Tries to find the compile-time value of EXPR in a program that includes2219 # INCLUDES, setting VAR accordingly. Returns whether the value could be2220 # computed2221 ac_fn_cxx_compute_int ()2222 {2223 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack2224 if test "$cross_compiling" = yes; then2225 # Depending upon the size, compute the lo and hi bounds.2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext2227 /* end confdefs.h. */2228 $42229 int2230 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 _ACEOF2240 if ac_fn_cxx_try_compile "$LINENO"; then :2241 ac_lo=0 ac_mid=02242 while :; do2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext2244 /* end confdefs.h. */2245 $42246 int2247 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 _ACEOF2257 if ac_fn_cxx_try_compile "$LINENO"; then :2258 ac_hi=$ac_mid; break2259 else2260 as_fn_arith $ac_mid + 1 && ac_lo=$as_val2261 if test $ac_lo -le $ac_mid; then2262 ac_lo= ac_hi=2263 break2264 fi2265 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val2266 fi2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext2268 done2269 else2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext2271 /* end confdefs.h. */2272 $42273 int2274 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 _ACEOF2284 if ac_fn_cxx_try_compile "$LINENO"; then :2285 ac_hi=-1 ac_mid=-12286 while :; do2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext2288 /* end confdefs.h. */2289 $42290 int2291 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 _ACEOF2301 if ac_fn_cxx_try_compile "$LINENO"; then :2302 ac_lo=$ac_mid; break2303 else2304 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val2305 if test $ac_mid -le $ac_hi; then2306 ac_lo= ac_hi=2307 break2308 fi2309 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val2310 fi2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext2312 done2313 else2314 ac_lo= ac_hi=2315 fi2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext2317 fi2318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext2319 # Binary search between lo and hi bounds.2320 while test "x$ac_lo" != "x$ac_hi"; do2321 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext2323 /* end confdefs.h. */2324 $42325 int2326 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 _ACEOF2336 if ac_fn_cxx_try_compile "$LINENO"; then :2337 ac_hi=$ac_mid2338 else2339 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val2340 fi2341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext2342 done2343 case $ac_lo in #((2344 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;2345 '') ac_retval=1 ;;2346 esac2347 else2348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext2349 /* end confdefs.h. */2350 $42351 static long int longval () { return $2; }2352 static unsigned long int ulongval () { return $2; }2353 #include <stdio.h>2354 #include <stdlib.h>2355 int2356 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 else2370 {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 confusion2377 on some platforms. */2378 return ferror (f) || fclose (f) != 0;2379 2380 ;2381 return 0;2382 }2383 _ACEOF2384 if ac_fn_cxx_try_run "$LINENO"; then :2385 echo >>conftest.val; read $3 <conftest.val; ac_retval=02386 else2387 ac_retval=12388 fi2389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \2390 conftest.$ac_objext conftest.beam conftest.$ac_ext2391 rm -f conftest.val2392 2393 fi2394 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno2395 as_fn_set_status $ac_retval2396 2397 } # ac_fn_cxx_compute_int2398 2331 cat >config.log <<_ACEOF 2399 2332 This file contains any messages produced by compilers while 2400 2333 running configure, to aid debugging if configure makes a mistake. 2401 2334 2402 It was created by Rappture $as_me 1. 4, which was2335 It was created by Rappture $as_me 1.5, which was 2403 2336 generated by GNU Autoconf 2.69. Invocation command line was 2404 2337 … … 2777 2710 2778 2711 2779 ac_config_headers="$ac_config_headers src/core/config.h" 2712 ac_config_headers="$ac_config_headers libs/rappture/config.h" 2713 2714 2715 RAPPTURE_MAJOR_VERSION=1 2716 RAPPTURE_MINOR_VERSION=5 2717 RAPPTURE_RELEASE_SERIAL=0 2718 RAPPTURE_VERSION=1.5 2719 2720 WITH_R=yes 2721 WITH_JAVA=yes 2722 WITH_MATLAB=yes 2723 WITH_MKOCTFILE2=yes 2724 WITH_MKOCTFILE3=yes 2725 WITH_OCTAVE=yes 2726 WITH_PERL=yes 2727 WITH_PYTHON=yes 2728 WITH_RUBY=yes 2729 WITH_RUBY_SITELIBDIR=yes 2730 WITH_TCL=yes 2731 2732 2733 # Check whether --with-R was given. 2734 if test "${with_R+set}" = set; then : 2735 withval=$with_R; WITH_R=${with_val} 2736 else 2737 WITH_R=yes 2738 fi 2739 2740 2741 2742 # Check whether --with-java was given. 2743 if test "${with_java+set}" = set; then : 2744 withval=$with_java; WITH_JAVA=${with_val} 2745 else 2746 WITH_JAVA=yes 2747 fi 2748 2749 2750 2751 # Check whether --with-matlab was given. 2752 if test "${with_matlab+set}" = set; then : 2753 withval=$with_matlab; WITH_MATLAB=${with_val} 2754 else 2755 WITH_MATLAB=yes 2756 fi 2757 2758 2759 2760 # Check whether --with-mkoctfile2 was given. 2761 if test "${with_mkoctfile2+set}" = set; then : 2762 withval=$with_mkoctfile2; WITH_MKOCTFILE2=${with_val} 2763 else 2764 WITH_MKOCTFILE2=no 2765 fi 2766 2767 2768 2769 # Check whether --with-mkoctfile3 was given. 2770 if test "${with_mkoctfile3+set}" = set; then : 2771 withval=$with_mkoctfile3; WITH_MKOCTFILE3=${with_val} 2772 else 2773 WITH_MKOCTFILE3=no 2774 fi 2775 2776 2777 2778 # Check whether --with-octave was given. 2779 if test "${with_octave+set}" = set; then : 2780 withval=$with_octave; WITH_OCTAVE=${with_val} 2781 else 2782 with_octave=yes 2783 fi 2784 2785 2786 2787 # Check whether --with-perl was given. 2788 if test "${with_perl+set}" = set; then : 2789 withval=$with_perl; WITH_PERL=${with_val} 2790 else 2791 WITH_PERL=yes 2792 fi 2793 2794 2795 2796 # Check whether --with-python was given. 2797 if test "${with_python+set}" = set; then : 2798 withval=$with_python; WITH_PYTHON=${with_val} 2799 else 2800 WITH_PYTHON=yes 2801 fi 2802 2803 2804 2805 # Check whether --with-ruby was given. 2806 if test "${with_ruby+set}" = set; then : 2807 withval=$with_ruby; WITH_RUBY=${with_val} 2808 else 2809 WITH_RUBY=yes 2810 fi 2811 2812 2813 2814 # Check whether --with-ruby_sitelibdir was given. 2815 if test "${with_ruby_sitelibdir+set}" = set; then : 2816 withval=$with_ruby_sitelibdir; WITH_RUBY_SITELIBDIR=${with_val} 2817 else 2818 WITH_RUBY_SITELIBDIR=NONE 2819 fi 2820 2821 2822 2823 # Check whether --with-tcl was given. 2824 if test "${with_tcl+set}" = set; then : 2825 withval=$with_tcl; WITH_TCL=${with_val} 2826 else 2827 WITH_TCL=yes 2828 fi 2829 2830 2831 2832 # Check whether --with-install was given. 2833 if test "${with_install+set}" = set; then : 2834 withval=$with_install; WITH_INSTALL=${withval} 2835 else 2836 WITH_INSTALL=yes 2837 fi 2838 2839 2840 2841 # Check whether --with-vtk was given. 2842 if test "${with_vtk+set}" = set; then : 2843 withval=$with_vtk; WITH_VTK=${withval} 2844 else 2845 WITH_VTK=no 2846 fi 2780 2847 2781 2848 … … 2790 2857 exec_prefix=$prefix 2791 2858 fi 2792 2793 2794 # Check whether --with-install was given.2795 if test "${with_install+set}" = set; then :2796 withval=$with_install;2797 else2798 with_install=yes2799 fi2800 2801 2802 if test "$with_install" != "yes"; then2803 INSTALL_PREFIX=$with_install2804 else2805 INSTALL_PREFIX=$prefix2806 fi2807 2808 2809 if test "${libdir}" != "${prefix}/lib"; then2810 LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}"2811 else2812 LIB_SEARCH_DIRS="-L${libdir}"2813 fi2814 2815 2859 2816 2860 # Find a good install program. We prefer a C program (faster), … … 2907 2951 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2908 2952 2909 2910 2953 if test -n "$ac_tool_prefix"; then 2911 2954 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. … … 4748 4791 4749 4792 4750 4751 for ac_func in sysinfo4752 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 <<_ACEOF4756 #define HAVE_SYSINFO 14757 _ACEOF4758 4759 fi4760 done4761 4762 for ac_func in gettimeofday4763 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 <<_ACEOF4767 #define HAVE_GETTIMEOFDAY 14768 _ACEOF4769 4770 fi4771 done4772 4773 ac_fn_cxx_check_func "$LINENO" "localtime" "ac_cv_func_localtime"4774 if test "x$ac_cv_func_localtime" = xyes; then :4775 4776 else4777 as_fn_error $? "oops! no localtime ?!?" "$LINENO" 54778 fi4779 4780 ac_fn_cxx_check_func "$LINENO" "getenv" "ac_cv_func_getenv"4781 if test "x$ac_cv_func_getenv" = xyes; then :4782 4783 else4784 as_fn_error $? "oops! no getenv ?!?" "$LINENO" 54785 fi4786 4787 4788 4793 ac_ext=cpp 4789 4794 ac_cpp='$CXXCPP $CPPFLAGS' … … 4920 4925 4921 4926 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. 4932 if test "${with_x+set}" = set; then : 4933 withval=$with_x; 4934 fi 4935 4936 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 4937 if test "x$with_x" = xno; then 4938 # The user explicitly disabled X. 4939 have_x=disabled 4940 else 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 4945 else 4946 # One or both of the vars are not set, and there is no cached value. 4947 ac_x_includes=no ac_x_libraries=no 4948 rm -f -r conftest.dir 4949 if mkdir conftest.dir; then 4950 cd conftest.dir 4951 cat >Imakefile <<'_ACEOF' 4952 incroot: 4953 @echo incroot='${INCROOT}' 4954 usrlibdir: 4955 @echo usrlibdir='${USRLIBDIR}' 4956 libdir: 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 4985 fi 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. 4989 ac_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 5028 if 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 5035 if ac_fn_cxx_try_cpp "$LINENO"; then : 5036 # We can compile using X headers with no special include directory. 5037 ac_x_includes= 5038 else 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 5044 done 5045 fi 5046 rm -f conftest.err conftest.i conftest.$ac_ext 5047 fi # $ac_x_includes = no 5048 5049 if 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> 5058 int 5059 main () 5060 { 5061 XrmInitialize () 5062 ; 5063 return 0; 5064 } 5065 _ACEOF 5066 if ac_fn_cxx_try_link "$LINENO"; then : 5067 LIBS=$ac_save_LIBS 5068 # We can link X programs with no special library path. 5069 ac_x_libraries= 5070 else 5071 LIBS=$ac_save_LIBS 5072 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5073 do 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 5081 done 5082 fi 5083 rm -f core conftest.err conftest.$ac_objext \ 5084 conftest$ac_exeext conftest.$ac_ext 5085 fi # $ac_x_libraries = no 5086 5087 case $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'" 5096 esac 5097 fi 5098 ;; #( 5099 *) have_x=yes;; 5100 esac 5101 eval "$ac_cv_have_x" 5102 fi # $with_x != no 5103 5104 if 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 5108 else 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; } 5118 fi 5119 5120 5121 # ----------------------------------------------------------------------- 5122 # 5123 # Compiler characteristics: 5124 # Check for existence of types of size_t and pid_t 5125 # 5126 # ----------------------------------------------------------------------- 5127 4922 5128 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4923 5129 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ … … 4935 5141 4936 5142 done 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; } 5147 if ${ac_cv_c_bigendian+:} false; then : 5148 $as_echo_n "(cached) " >&6 5149 else 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 5160 if 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 5183 fi 5184 rm -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 5192 int 5193 main () 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 5205 if 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 5212 int 5213 main () 5214 { 5215 #if BYTE_ORDER != BIG_ENDIAN 5216 not big endian 5217 #endif 5218 5219 ; 5220 return 0; 5221 } 5222 _ACEOF 5223 if ac_fn_cxx_try_compile "$LINENO"; then : 5224 ac_cv_c_bigendian=yes 5225 else 5226 ac_cv_c_bigendian=no 5227 fi 5228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5229 fi 5230 rm -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 5238 int 5239 main () 5240 { 5241 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 5242 bogus endian macros 5243 #endif 5244 5245 ; 5246 return 0; 5247 } 5248 _ACEOF 5249 if 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 5255 int 5256 main () 5257 { 5258 #ifndef _BIG_ENDIAN 5259 not big endian 5260 #endif 5261 5262 ; 5263 return 0; 5264 } 5265 _ACEOF 5266 if ac_fn_cxx_try_compile "$LINENO"; then : 5267 ac_cv_c_bigendian=yes 5268 else 5269 ac_cv_c_bigendian=no 5270 fi 5271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5272 fi 5273 rm -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. */ 5281 short 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 5297 int 5298 main () 5299 { 5300 return use_ascii (foo) == use_ebcdic (foo); 5301 ; 5302 return 0; 5303 } 5304 _ACEOF 5305 if 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 5317 fi 5318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5319 else 5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5321 /* end confdefs.h. */ 5322 $ac_includes_default 5323 int 5324 main () 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 5340 if ac_fn_cxx_try_run "$LINENO"; then : 5341 ac_cv_c_bigendian=no 5342 else 5343 ac_cv_c_bigendian=yes 5344 fi 5345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5346 conftest.$ac_objext conftest.beam conftest.$ac_ext 5347 fi 5348 5349 fi 5350 fi 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; } 5375 if ${ac_cv_sizeof_int+:} false; then : 5376 $as_echo_n "(cached) " >&6 5377 else 5378 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 5379 5380 else 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;} 5384 as_fn_error 77 "cannot compute sizeof (int) 5385 See \`config.log' for more details" "$LINENO" 5; } 5386 else 5387 ac_cv_sizeof_int=0 5388 fi 5389 fi 5390 5391 fi 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 5397 cat >>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; } 5408 if ${ac_cv_sizeof_long+:} false; then : 5409 $as_echo_n "(cached) " >&6 5410 else 5411 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 5412 5413 else 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;} 5417 as_fn_error 77 "cannot compute sizeof (long) 5418 See \`config.log' for more details" "$LINENO" 5; } 5419 else 5420 ac_cv_sizeof_long=0 5421 fi 5422 fi 5423 5424 fi 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 5430 cat >>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; } 5441 if ${ac_cv_sizeof_long_long+:} false; then : 5442 $as_echo_n "(cached) " >&6 5443 else 5444 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 5445 5446 else 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;} 5450 as_fn_error 77 "cannot compute sizeof (long long) 5451 See \`config.log' for more details" "$LINENO" 5; } 5452 else 5453 ac_cv_sizeof_long_long=0 5454 fi 5455 fi 5456 5457 fi 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 5463 cat >>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; } 5474 if ${ac_cv_sizeof_void_p+:} false; then : 5475 $as_echo_n "(cached) " >&6 5476 else 5477 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 5478 5479 else 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;} 5483 as_fn_error 77 "cannot compute sizeof (void *) 5484 See \`config.log' for more details" "$LINENO" 5; } 5485 else 5486 ac_cv_sizeof_void_p=0 5487 fi 5488 fi 5489 5490 fi 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 5496 cat >>confdefs.h <<_ACEOF 5497 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p 5498 _ACEOF 5499 5500 5501 5502 SIZEOF_LONG="${ac_cv_sizeof_long}" 5503 SIZEOF_LONG_LONG="${ac_cv_sizeof_long_long}" 5504 SIZEOF_VOID_P="${ac_cv_sizeof_void_p}" 5505 SIZEOF_INT="${ac_cv_sizeof_int}" 5506 5507 5508 for ac_func in sysinfo 5509 do : 5510 ac_fn_cxx_check_func "$LINENO" "sysinfo" "ac_cv_func_sysinfo" 5511 if test "x$ac_cv_func_sysinfo" = xyes; then : 5512 cat >>confdefs.h <<_ACEOF 5513 #define HAVE_SYSINFO 1 5514 _ACEOF 5515 5516 fi 5517 done 5518 5519 for ac_func in gettimeofday 5520 do : 5521 ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 5522 if test "x$ac_cv_func_gettimeofday" = xyes; then : 5523 cat >>confdefs.h <<_ACEOF 5524 #define HAVE_GETTIMEOFDAY 1 5525 _ACEOF 5526 5527 fi 5528 done 5529 5530 ac_fn_cxx_check_func "$LINENO" "localtime" "ac_cv_func_localtime" 5531 if test "x$ac_cv_func_localtime" = xyes; then : 5532 5533 else 5534 as_fn_error $? "oops! no localtime ?!?" "$LINENO" 5 5535 fi 5536 5537 ac_fn_cxx_check_func "$LINENO" "getenv" "ac_cv_func_getenv" 5538 if test "x$ac_cv_func_getenv" = xyes; then : 5539 5540 else 5541 as_fn_error $? "oops! no getenv ?!?" "$LINENO" 5 5542 fi 4937 5543 4938 5544 … … 5482 6088 fi 5483 6089 6090 6091 if test "$with_install" != "yes"; then 6092 INSTALL_PREFIX=$with_install 6093 else 6094 INSTALL_PREFIX=$prefix 6095 fi 6096 6097 if test "${libdir}" != "${prefix}/lib"; then 6098 LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}" 6099 else 6100 LIB_SEARCH_DIRS="-L${libdir}" 6101 fi 6102 6103 SVN_VERSION=`svnversion $srcdir` 6104 6105 make_command="" 6106 for 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 6112 done 6113 if test "x${make_command}" = "x" ; then 6114 as_fn_error $? "Requires GNU make. You can specify a version with \$MAKE" "$LINENO" 5 6115 fi 6116 6117 #-------------------------------------------------------------------- 6118 # Set the default compiler switches based on the --enable-symbols 6119 # option. 6120 #-------------------------------------------------------------------- 5484 6121 5485 6122 … … 7297 7934 7298 7935 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 ; do7304 if test "x${m}" != "x" ; then7305 if ( sh -c "$m --version" 2>/dev/null | grep GNU >/dev/null ) ; then7306 make_command=$m; break;7307 fi7308 fi7309 done7310 if test "x${make_command}" = "x" ; then7311 as_fn_error $? "Requires GNU make. You can specify a version with \$MAKE" "$LINENO" 57312 fi7313 7314 # Check whether --enable-lang was given.7315 if test "${enable_lang+set}" = set; then :7316 enableval=$enable_lang;7317 else7318 enable_lang=yes7319 fi7320 7321 7322 ENABLE_LANG=7323 if test "$enable_lang" != "no" ; then7324 ENABLE_LANG="yes"7325 fi7326 7327 # Check whether --enable-gui was given.7328 if test "${enable_gui+set}" = set; then :7329 enableval=$enable_gui;7330 else7331 enable_gui=yes7332 fi7333 7334 7335 ENABLE_GUI=7336 if test "$enable_gui" != "no" ; then7337 ENABLE_GUI="yes"7338 fi7339 7340 TCL_VERSION="8.4"7341 for dir in \7342 ${exec_prefix} \7343 ${exec_prefix}/lib ; do7344 tclconfig="${dir}/tclConfig.sh"7345 if test -f "$tclconfig" ; then7346 . $tclconfig7347 break7348 fi7349 done7350 7351 7352 # Check whether --with-ffmpeg was given.7353 if test "${with_ffmpeg+set}" = set; then :7354 withval=$with_ffmpeg;7355 else7356 with_ffmpeg=yes7357 fi7358 7359 7360 7361 # Check whether --with-tclsh was given.7362 if test "${with_tclsh+set}" = set; then :7363 withval=$with_tclsh;7364 else7365 with_tclsh=yes7366 fi7367 7368 7369 TCLSH=""7370 if test "${with_tclsh}" != "no" ; then7371 tclsh="tclsh${TCL_VERSION}"7372 if test "${with_tclsh}" = "yes" ; then7373 # Extract the first word of "${tclsh}", so it can be a program name with args.7374 set dummy ${tclsh}; ac_word=$27375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57376 $as_echo_n "checking for $ac_word... " >&6; }7377 if ${ac_cv_path_TCLSH+:} false; then :7378 $as_echo_n "(cached) " >&67379 else7380 case $TCLSH in7381 [\\/]* | ?:[\\/]*)7382 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.7383 ;;7384 *)7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7386 as_dummy="${exec_prefix}/bin:${PATH}"7387 for as_dir in $as_dummy7388 do7389 IFS=$as_save_IFS7390 test -z "$as_dir" && as_dir=.7391 for ac_exec_ext in '' $ac_executable_extensions; do7392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7393 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" >&57395 break 27396 fi7397 done7398 done7399 IFS=$as_save_IFS7400 7401 ;;7402 esac7403 fi7404 TCLSH=$ac_cv_path_TCLSH7405 if test -n "$TCLSH"; then7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&57407 $as_echo "$TCLSH" >&6; }7408 else7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57410 $as_echo "no" >&6; }7411 fi7412 7413 7414 else7415 # Extract the first word of "${tclsh}", so it can be a program name with args.7416 set dummy ${tclsh}; ac_word=$27417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57418 $as_echo_n "checking for $ac_word... " >&6; }7419 if ${ac_cv_path_TCLSH+:} false; then :7420 $as_echo_n "(cached) " >&67421 else7422 case $TCLSH in7423 [\\/]* | ?:[\\/]*)7424 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.7425 ;;7426 *)7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7428 as_dummy="${with_tclsh}/bin:${with_tclsh}"7429 for as_dir in $as_dummy7430 do7431 IFS=$as_save_IFS7432 test -z "$as_dir" && as_dir=.7433 for ac_exec_ext in '' $ac_executable_extensions; do7434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7435 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" >&57437 break 27438 fi7439 done7440 done7441 IFS=$as_save_IFS7442 7443 ;;7444 esac7445 fi7446 TCLSH=$ac_cv_path_TCLSH7447 if test -n "$TCLSH"; then7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&57449 $as_echo "$TCLSH" >&6; }7450 else7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57452 $as_echo "no" >&6; }7453 fi7454 7455 7456 fi7457 if test "x${TCLSH}" = "x" ; then7458 as_fn_error $? "can't find tclsh" "$LINENO" 57459 fi7460 fi7461 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 else7470 with_vtk=yes7471 fi7472 7473 7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vtk" >&57475 $as_echo_n "checking for vtk... " >&6; }7476 VTK_VERSION=6.07477 VTK_TCL_DIR=""7478 7479 ENABLE_VTK=7480 if test "$with_vtk" != "no" ; then7481 if test "$with_vtk" != "yes" ; then7482 VTK_VERSION=$with_vtk7483 fi7484 if test "x$with_vtk" != "x" ; then7485 ENABLE_VTK=yes7486 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/lib7494 do7495 if test -d "$path/vtk-$VTK_VERSION" ; then7496 VTK_TCL_DIR="$path/vtk-$VTK_VERSION"7497 fi7498 if test "x${VTK_TCL_DIR}" != "x" ; then7499 break7500 fi7501 done7502 fi7503 else7504 if test "${ENABLE_GUI}" = "yes" ; then7505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: VTK missing: Rappture GUI requires VTK for some features" >&57506 $as_echo "$as_me: WARNING: VTK missing: Rappture GUI requires VTK for some features" >&2;}7507 fi7508 fi7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTK_TCL_DIR" >&57510 $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 else7516 enable_vtkdicom=no7517 fi7518 7519 7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vtkDICOM" >&57521 $as_echo_n "checking for vtkDICOM... " >&6; }7522 ENABLE_VTK_DICOM=7523 if test "$enable_vtkdicom" != "no" ; then7524 ENABLE_VTK_DICOM="yes"7525 fi7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtkdicom" >&57527 $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 else7535 with_matlab=yes7536 fi7537 7538 7539 MCC=""7540 MEX=""7541 MEX_ARCH=""7542 MEXEXT=""7543 MATLAB=7544 if test "$with_matlab" != "no" ; then7545 if test "$with_matlab" = "yes" ; then7546 # Extract the first word of "matlab", so it can be a program name with args.7547 set dummy matlab; ac_word=$27548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57549 $as_echo_n "checking for $ac_word... " >&6; }7550 if ${ac_cv_path_MATLAB+:} false; then :7551 $as_echo_n "(cached) " >&67552 else7553 case $MATLAB in7554 [\\/]* | ?:[\\/]*)7555 ac_cv_path_MATLAB="$MATLAB" # Let the user override the test with a path.7556 ;;7557 *)7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7559 for as_dir in $PATH7560 do7561 IFS=$as_save_IFS7562 test -z "$as_dir" && as_dir=.7563 for ac_exec_ext in '' $ac_executable_extensions; do7564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7565 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" >&57567 break 27568 fi7569 done7570 done7571 IFS=$as_save_IFS7572 7573 ;;7574 esac7575 fi7576 MATLAB=$ac_cv_path_MATLAB7577 if test -n "$MATLAB"; then7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MATLAB" >&57579 $as_echo "$MATLAB" >&6; }7580 else7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57582 $as_echo "no" >&6; }7583 fi7584 7585 7586 else7587 # Extract the first word of "matlab", so it can be a program name with args.7588 set dummy matlab; ac_word=$27589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57590 $as_echo_n "checking for $ac_word... " >&6; }7591 if ${ac_cv_path_MATLAB+:} false; then :7592 $as_echo_n "(cached) " >&67593 else7594 case $MATLAB in7595 [\\/]* | ?:[\\/]*)7596 ac_cv_path_MATLAB="$MATLAB" # Let the user override the test with a path.7597 ;;7598 *)7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7600 as_dummy="${with_matlab}/bin:${with_matlab}"7601 for as_dir in $as_dummy7602 do7603 IFS=$as_save_IFS7604 test -z "$as_dir" && as_dir=.7605 for ac_exec_ext in '' $ac_executable_extensions; do7606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7607 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" >&57609 break 27610 fi7611 done7612 done7613 IFS=$as_save_IFS7614 7615 ;;7616 esac7617 fi7618 MATLAB=$ac_cv_path_MATLAB7619 if test -n "$MATLAB"; then7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MATLAB" >&57621 $as_echo "$MATLAB" >&6; }7622 else7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57624 $as_echo "no" >&6; }7625 fi7626 7627 7628 fi7629 fi7630 7631 if test "x$MATLAB" != "x" ; then7632 # 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=//`/bin7636 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=$27640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57641 $as_echo_n "checking for $ac_word... " >&6; }7642 if ${ac_cv_path_MEX+:} false; then :7643 $as_echo_n "(cached) " >&67644 else7645 case $MEX in7646 [\\/]* | ?:[\\/]*)7647 ac_cv_path_MEX="$MEX" # Let the user override the test with a path.7648 ;;7649 *)7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7651 for as_dir in ${matlab_bindir}7652 do7653 IFS=$as_save_IFS7654 test -z "$as_dir" && as_dir=.7655 for ac_exec_ext in '' $ac_executable_extensions; do7656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7657 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" >&57659 break 27660 fi7661 done7662 done7663 IFS=$as_save_IFS7664 7665 ;;7666 esac7667 fi7668 MEX=$ac_cv_path_MEX7669 if test -n "$MEX"; then7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEX" >&57671 $as_echo "$MEX" >&6; }7672 else7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57674 $as_echo "no" >&6; }7675 fi7676 7677 7678 # Extract the first word of "mexext", so it can be a program name with args.7679 set dummy mexext; ac_word=$27680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57681 $as_echo_n "checking for $ac_word... " >&6; }7682 if ${ac_cv_path_MEXEXT+:} false; then :7683 $as_echo_n "(cached) " >&67684 else7685 case $MEXEXT in7686 [\\/]* | ?:[\\/]*)7687 ac_cv_path_MEXEXT="$MEXEXT" # Let the user override the test with a path.7688 ;;7689 *)7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7691 for as_dir in ${matlab_bindir}7692 do7693 IFS=$as_save_IFS7694 test -z "$as_dir" && as_dir=.7695 for ac_exec_ext in '' $ac_executable_extensions; do7696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7697 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" >&57699 break 27700 fi7701 done7702 done7703 IFS=$as_save_IFS7704 7705 ;;7706 esac7707 fi7708 MEXEXT=$ac_cv_path_MEXEXT7709 if test -n "$MEXEXT"; then7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEXEXT" >&57711 $as_echo "$MEXEXT" >&6; }7712 else7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57714 $as_echo "no" >&6; }7715 fi7716 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" >&57721 $as_echo_n "checking for mex extension... " >&6; }7722 if test "x$MEXEXT" != "x" ; then7723 MEXEXT=`$MEXEXT`7724 else7725 MEXEXT="mexglx"7726 fi7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEXEXT" >&57728 $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=$27731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57732 $as_echo_n "checking for $ac_word... " >&6; }7733 if ${ac_cv_path_MCC+:} false; then :7734 $as_echo_n "(cached) " >&67735 else7736 case $MCC in7737 [\\/]* | ?:[\\/]*)7738 ac_cv_path_MCC="$MCC" # Let the user override the test with a path.7739 ;;7740 *)7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7742 for as_dir in ${matlab_bindir}7743 do7744 IFS=$as_save_IFS7745 test -z "$as_dir" && as_dir=.7746 for ac_exec_ext in '' $ac_executable_extensions; do7747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7748 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" >&57750 break 27751 fi7752 done7753 done7754 IFS=$as_save_IFS7755 7756 ;;7757 esac7758 fi7759 MCC=$ac_cv_path_MCC7760 if test -n "$MCC"; then7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCC" >&57762 $as_echo "$MCC" >&6; }7763 else7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57765 $as_echo "no" >&6; }7766 fi7767 7768 7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mcc extension" >&57770 $as_echo_n "checking for mcc extension... " >&6; }7771 fi7772 7773 7774 7775 # Check whether --with-octave was given.7776 if test "${with_octave+set}" = set; then :7777 withval=$with_octave;7778 else7779 with_octave=yes7780 fi7781 7782 7783 OCTAVE=7784 OCTAVE_VERSION=7785 OCTAVE_VERSION_MAJOR=7786 MKOCTFILE2=7787 MKOCTFILE3=7788 7789 if test "$with_octave" != "no" ; then7790 if test "$with_octave" = "yes" ; then7791 # Extract the first word of "octave", so it can be a program name with args.7792 set dummy octave; ac_word=$27793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57794 $as_echo_n "checking for $ac_word... " >&6; }7795 if ${ac_cv_path_OCTAVE+:} false; then :7796 $as_echo_n "(cached) " >&67797 else7798 case $OCTAVE in7799 [\\/]* | ?:[\\/]*)7800 ac_cv_path_OCTAVE="$OCTAVE" # Let the user override the test with a path.7801 ;;7802 *)7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7804 for as_dir in $PATH7805 do7806 IFS=$as_save_IFS7807 test -z "$as_dir" && as_dir=.7808 for ac_exec_ext in '' $ac_executable_extensions; do7809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7810 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" >&57812 break 27813 fi7814 done7815 done7816 IFS=$as_save_IFS7817 7818 ;;7819 esac7820 fi7821 OCTAVE=$ac_cv_path_OCTAVE7822 if test -n "$OCTAVE"; then7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE" >&57824 $as_echo "$OCTAVE" >&6; }7825 else7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57827 $as_echo "no" >&6; }7828 fi7829 7830 7831 # Extract the first word of "mkoctfile", so it can be a program name with args.7832 set dummy mkoctfile; ac_word=$27833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57834 $as_echo_n "checking for $ac_word... " >&6; }7835 if ${ac_cv_path_MKOCTFILE+:} false; then :7836 $as_echo_n "(cached) " >&67837 else7838 case $MKOCTFILE in7839 [\\/]* | ?:[\\/]*)7840 ac_cv_path_MKOCTFILE="$MKOCTFILE" # Let the user override the test with a path.7841 ;;7842 *)7843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7844 for as_dir in $PATH7845 do7846 IFS=$as_save_IFS7847 test -z "$as_dir" && as_dir=.7848 for ac_exec_ext in '' $ac_executable_extensions; do7849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7850 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" >&57852 break 27853 fi7854 done7855 done7856 IFS=$as_save_IFS7857 7858 ;;7859 esac7860 fi7861 MKOCTFILE=$ac_cv_path_MKOCTFILE7862 if test -n "$MKOCTFILE"; then7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKOCTFILE" >&57864 $as_echo "$MKOCTFILE" >&6; }7865 else7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57867 $as_echo "no" >&6; }7868 fi7869 7870 7871 else7872 OCTAVE=$with_octave7873 MKOCTFILE=`dirname $with_octave`/mkoctfile7874 fi7875 fi7876 7877 if test "x${OCTAVE}" != "x" ; then7878 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" ; then7881 OCTAVE3=$OCTAVE7882 MKOCTFILE3=$MKOCTFILE7883 fi7884 if test "${OCTAVE_VERSION_MAJOR}" == "2" ; then7885 OCTAVE2=$OCTAVE7886 MKOCTFILE2=$MKOCTFILE7887 fi7888 fi7889 7890 #7891 # Check for octave3 before octave2 so that we can override the7892 # OCTAVE_VERSION variables.7893 #7894 # Rappture doesn't normally really support both octave2 and octave37895 # simultaneously. NANOhub has a hacked version of octave3 that7896 # looks for OCTAVE_LOADPATH before looking at OCTAVE_PATH (i.e.7897 # OCTAVE_PATH tells octave2 where to load the rappture bindings7898 # and OCTAVE_LOADPATH tells octave3 where to load).7899 #7900 # Usually you will have installed either octave2 or octave3, but7901 # 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 else7912 with_mkoctfile3=no7913 fi7914 7915 7916 if test "$with_mkoctfile3" != "no" ; then7917 if test "$with_mkoctfile3" = "yes" ; then7918 # Extract the first word of "mkoctfile", so it can be a program name with args.7919 set dummy mkoctfile; ac_word=$27920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57921 $as_echo_n "checking for $ac_word... " >&6; }7922 if ${ac_cv_path_mkoctfile3+:} false; then :7923 $as_echo_n "(cached) " >&67924 else7925 case $mkoctfile3 in7926 [\\/]* | ?:[\\/]*)7927 ac_cv_path_mkoctfile3="$mkoctfile3" # Let the user override the test with a path.7928 ;;7929 *)7930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7931 for as_dir in $PATH7932 do7933 IFS=$as_save_IFS7934 test -z "$as_dir" && as_dir=.7935 for ac_exec_ext in '' $ac_executable_extensions; do7936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7937 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" >&57939 break 27940 fi7941 done7942 done7943 IFS=$as_save_IFS7944 7945 ;;7946 esac7947 fi7948 mkoctfile3=$ac_cv_path_mkoctfile37949 if test -n "$mkoctfile3"; then7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mkoctfile3" >&57951 $as_echo "$mkoctfile3" >&6; }7952 else7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57954 $as_echo "no" >&6; }7955 fi7956 7957 7958 else7959 MKOCTFILE3=$with_mkoctfile37960 fi7961 OCTAVE_VERSION=`${MKOCTFILE3} --version 2>&1 | cut -d' ' -f3`7962 OCTAVE_VERSION_MAJOR=`echo ${OCTAVE_VERSION} | cut -d'.' -f1`7963 fi7964 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 else7972 with_mkoctfile2=no7973 fi7974 7975 7976 if test "$with_mkoctfile2" != "no" ; then7977 if test "$with_mkoctfile2" = "yes" ; then7978 # Extract the first word of "mkoctfile", so it can be a program name with args.7979 set dummy mkoctfile; ac_word=$27980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57981 $as_echo_n "checking for $ac_word... " >&6; }7982 if ${ac_cv_path_mkoctfile2+:} false; then :7983 $as_echo_n "(cached) " >&67984 else7985 case $mkoctfile2 in7986 [\\/]* | ?:[\\/]*)7987 ac_cv_path_mkoctfile2="$mkoctfile2" # Let the user override the test with a path.7988 ;;7989 *)7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7991 for as_dir in $PATH7992 do7993 IFS=$as_save_IFS7994 test -z "$as_dir" && as_dir=.7995 for ac_exec_ext in '' $ac_executable_extensions; do7996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7997 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" >&57999 break 28000 fi8001 done8002 done8003 IFS=$as_save_IFS8004 8005 ;;8006 esac8007 fi8008 mkoctfile2=$ac_cv_path_mkoctfile28009 if test -n "$mkoctfile2"; then8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mkoctfile2" >&58011 $as_echo "$mkoctfile2" >&6; }8012 else8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58014 $as_echo "no" >&6; }8015 fi8016 8017 8018 else8019 MKOCTFILE2=$with_mkoctfile28020 fi8021 # Have to use octave to get a version, instead of mkoctfile.8022 octave=`dirname $MKOCTFILE2`/octave8023 OCTAVE_VERSION=`${octave} -v | grep version | cut -d' ' -f4`8024 OCTAVE_VERSION_MAJOR=`echo ${OCTAVE_VERSION} | cut -d'.' -f1`8025 fi8026 8027 8028 8029 # Check whether --with-perl was given.8030 if test "${with_perl+set}" = set; then :8031 withval=$with_perl;8032 else8033 with_perl=yes8034 fi8035 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" ; then8050 if test "$with_perl" != "yes" ; then8051 # Extract the first word of "perl", so it can be a program name with args.8052 set dummy perl; ac_word=$28053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58054 $as_echo_n "checking for $ac_word... " >&6; }8055 if ${ac_cv_path_PERL+:} false; then :8056 $as_echo_n "(cached) " >&68057 else8058 case $PERL in8059 [\\/]* | ?:[\\/]*)8060 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.8061 ;;8062 *)8063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8064 as_dummy="$with_perl/bin:$with_perl"8065 for as_dir in $as_dummy8066 do8067 IFS=$as_save_IFS8068 test -z "$as_dir" && as_dir=.8069 for ac_exec_ext in '' $ac_executable_extensions; do8070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8071 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" >&58073 break 28074 fi8075 done8076 done8077 IFS=$as_save_IFS8078 8079 ;;8080 esac8081 fi8082 PERL=$ac_cv_path_PERL8083 if test -n "$PERL"; then8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&58085 $as_echo "$PERL" >&6; }8086 else8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58088 $as_echo "no" >&6; }8089 fi8090 8091 8092 # Extract the first word of "xsubpp", so it can be a program name with args.8093 set dummy xsubpp; ac_word=$28094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58095 $as_echo_n "checking for $ac_word... " >&6; }8096 if ${ac_cv_path_XSUBPP+:} false; then :8097 $as_echo_n "(cached) " >&68098 else8099 case $XSUBPP in8100 [\\/]* | ?:[\\/]*)8101 ac_cv_path_XSUBPP="$XSUBPP" # Let the user override the test with a path.8102 ;;8103 *)8104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8105 as_dummy="$with_perl/bin:$with_perl"8106 for as_dir in $as_dummy8107 do8108 IFS=$as_save_IFS8109 test -z "$as_dir" && as_dir=.8110 for ac_exec_ext in '' $ac_executable_extensions; do8111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8112 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" >&58114 break 28115 fi8116 done8117 done8118 IFS=$as_save_IFS8119 8120 ;;8121 esac8122 fi8123 XSUBPP=$ac_cv_path_XSUBPP8124 if test -n "$XSUBPP"; then8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSUBPP" >&58126 $as_echo "$XSUBPP" >&6; }8127 else8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58129 $as_echo "no" >&6; }8130 fi8131 8132 8133 else8134 # Extract the first word of "perl", so it can be a program name with args.8135 set dummy perl; ac_word=$28136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58137 $as_echo_n "checking for $ac_word... " >&6; }8138 if ${ac_cv_path_PERL+:} false; then :8139 $as_echo_n "(cached) " >&68140 else8141 case $PERL in8142 [\\/]* | ?:[\\/]*)8143 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.8144 ;;8145 *)8146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8147 for as_dir in $PATH8148 do8149 IFS=$as_save_IFS8150 test -z "$as_dir" && as_dir=.8151 for ac_exec_ext in '' $ac_executable_extensions; do8152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8153 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" >&58155 break 28156 fi8157 done8158 done8159 IFS=$as_save_IFS8160 8161 ;;8162 esac8163 fi8164 PERL=$ac_cv_path_PERL8165 if test -n "$PERL"; then8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&58167 $as_echo "$PERL" >&6; }8168 else8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58170 $as_echo "no" >&6; }8171 fi8172 8173 8174 # Extract the first word of "xsubpp", so it can be a program name with args.8175 set dummy xsubpp; ac_word=$28176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58177 $as_echo_n "checking for $ac_word... " >&6; }8178 if ${ac_cv_path_XSUBPP+:} false; then :8179 $as_echo_n "(cached) " >&68180 else8181 case $XSUBPP in8182 [\\/]* | ?:[\\/]*)8183 ac_cv_path_XSUBPP="$XSUBPP" # Let the user override the test with a path.8184 ;;8185 *)8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8187 for as_dir in $PATH8188 do8189 IFS=$as_save_IFS8190 test -z "$as_dir" && as_dir=.8191 for ac_exec_ext in '' $ac_executable_extensions; do8192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8193 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" >&58195 break 28196 fi8197 done8198 done8199 IFS=$as_save_IFS8200 8201 ;;8202 esac8203 fi8204 XSUBPP=$ac_cv_path_XSUBPP8205 if test -n "$XSUBPP"; then8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSUBPP" >&58207 $as_echo "$XSUBPP" >&6; }8208 else8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58210 $as_echo "no" >&6; }8211 fi8212 8213 8214 fi8215 if test "x${PERL}" != "x" ; then8216 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}" ; then8227 PERL_LIBSPEC="-L${PERL_ARCHLIBEXP}/CORE -lperl"8228 fi8229 fi8230 fi8231 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 else8250 with_python=yes8251 fi8252 8253 8254 if test "$with_python" != "no" ; then8255 if test "$with_python" = "yes" ; then8256 # 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=$28258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58259 $as_echo_n "checking for $ac_word... " >&6; }8260 if ${ac_cv_path_PYTHON+:} false; then :8261 $as_echo_n "(cached) " >&68262 else8263 case $PYTHON in8264 [\\/]* | ?:[\\/]*)8265 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.8266 ;;8267 *)8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8269 for as_dir in $PATH8270 do8271 IFS=$as_save_IFS8272 test -z "$as_dir" && as_dir=.8273 for ac_exec_ext in '' $ac_executable_extensions; do8274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8275 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" >&58277 break 28278 fi8279 done8280 done8281 IFS=$as_save_IFS8282 8283 ;;8284 esac8285 fi8286 PYTHON=$ac_cv_path_PYTHON8287 if test -n "$PYTHON"; then8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&58289 $as_echo "$PYTHON" >&6; }8290 else8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58292 $as_echo "no" >&6; }8293 fi8294 8295 8296 else8297 # Extract the first word of "python", so it can be a program name with args.8298 set dummy python; ac_word=$28299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58300 $as_echo_n "checking for $ac_word... " >&6; }8301 if ${ac_cv_path_PYTHON+:} false; then :8302 $as_echo_n "(cached) " >&68303 else8304 case $PYTHON in8305 [\\/]* | ?:[\\/]*)8306 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.8307 ;;8308 *)8309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8310 as_dummy="${with_python}/bin:${with_python}"8311 for as_dir in $as_dummy8312 do8313 IFS=$as_save_IFS8314 test -z "$as_dir" && as_dir=.8315 for ac_exec_ext in '' $ac_executable_extensions; do8316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8317 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" >&58319 break 28320 fi8321 done8322 done8323 IFS=$as_save_IFS8324 8325 ;;8326 esac8327 fi8328 PYTHON=$ac_cv_path_PYTHON8329 if test -n "$PYTHON"; then8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&58331 $as_echo "$PYTHON" >&6; }8332 else8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58334 $as_echo "no" >&6; }8335 fi8336 8337 8338 fi8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python version" >&58340 $as_echo_n "checking for Python version... " >&6; }8341 if test "x${PYTHON}" != "x"; then8342 PYTHON_VERSION=`${PYTHON} -c "import sys; print sys.version[0:3]"`8343 fi8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_VERSION" >&58345 $as_echo "$PYTHON_VERSION" >&6; }8346 fi8347 8348 if test "x${PYTHON_VERSION}" != "x"; then8349 PYTHON_INCLUDES=$incdir8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils" >&58351 $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/null8355 if test $? = 0 ; then8356 PYTHON_DISTUTILS="yes"8357 fi8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_DISTUTILS" >&58359 $as_echo "$PYTHON_DISTUTILS" >&6; }8360 if test "${PYTHON_DISTUTILS}" = "yes" ; then8361 PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`8362 #8363 # Check for Python include path8364 #8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to Python headers" >&58366 $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" >&58370 $as_echo "$PYTHON_INCDIR" >&6; }8371 #8372 # Python distutils found, get settings from python directly8373 #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=$CPPFLAGS8381 CPPFLAGS="$CPPFLAGS -I${PYTHON_INCDIR}"8382 for ac_header in Python.h8383 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 <<_ACEOF8387 #define HAVE_PYTHON_H 18388 _ACEOF8389 found=yes8390 else8391 found=no8392 fi8393 8394 done8395 8396 CPPFLAGS=$save_CPPFLAGS8397 if test "$found" = "no" ; then8398 PYTHON_DISTUTILS=""8399 fi8400 fi8401 fi8402 8403 8404 8405 # Check whether --with-java was given.8406 if test "${with_java+set}" = set; then :8407 withval=$with_java;8408 else8409 with_java=yes8410 fi8411 8412 JAVA=""8413 JAVAH=""8414 JAVAC=""8415 JAVA_DEV_PKG="no"8416 8417 if test "${with_java}" != "no" ; then8418 if test "${with_java}" = "yes" ; then8419 # Extract the first word of "java", so it can be a program name with args.8420 set dummy java; ac_word=$28421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58422 $as_echo_n "checking for $ac_word... " >&6; }8423 if ${ac_cv_path_JAVA+:} false; then :8424 $as_echo_n "(cached) " >&68425 else8426 case $JAVA in8427 [\\/]* | ?:[\\/]*)8428 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.8429 ;;8430 *)8431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8432 for as_dir in $PATH8433 do8434 IFS=$as_save_IFS8435 test -z "$as_dir" && as_dir=.8436 for ac_exec_ext in '' $ac_executable_extensions; do8437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8438 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" >&58440 break 28441 fi8442 done8443 done8444 IFS=$as_save_IFS8445 8446 ;;8447 esac8448 fi8449 JAVA=$ac_cv_path_JAVA8450 if test -n "$JAVA"; then8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&58452 $as_echo "$JAVA" >&6; }8453 else8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58455 $as_echo "no" >&6; }8456 fi8457 8458 8459 # Extract the first word of "javac", so it can be a program name with args.8460 set dummy javac; ac_word=$28461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58462 $as_echo_n "checking for $ac_word... " >&6; }8463 if ${ac_cv_path_JAVAC+:} false; then :8464 $as_echo_n "(cached) " >&68465 else8466 case $JAVAC in8467 [\\/]* | ?:[\\/]*)8468 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.8469 ;;8470 *)8471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8472 for as_dir in $PATH8473 do8474 IFS=$as_save_IFS8475 test -z "$as_dir" && as_dir=.8476 for ac_exec_ext in '' $ac_executable_extensions; do8477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8478 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" >&58480 break 28481 fi8482 done8483 done8484 IFS=$as_save_IFS8485 8486 ;;8487 esac8488 fi8489 JAVAC=$ac_cv_path_JAVAC8490 if test -n "$JAVAC"; then8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&58492 $as_echo "$JAVAC" >&6; }8493 else8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58495 $as_echo "no" >&6; }8496 fi8497 8498 8499 # Extract the first word of "javah", so it can be a program name with args.8500 set dummy javah; ac_word=$28501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58502 $as_echo_n "checking for $ac_word... " >&6; }8503 if ${ac_cv_path_JAVAH+:} false; then :8504 $as_echo_n "(cached) " >&68505 else8506 case $JAVAH in8507 [\\/]* | ?:[\\/]*)8508 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.8509 ;;8510 *)8511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8512 for as_dir in $PATH8513 do8514 IFS=$as_save_IFS8515 test -z "$as_dir" && as_dir=.8516 for ac_exec_ext in '' $ac_executable_extensions; do8517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8518 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" >&58520 break 28521 fi8522 done8523 done8524 IFS=$as_save_IFS8525 8526 ;;8527 esac8528 fi8529 JAVAH=$ac_cv_path_JAVAH8530 if test -n "$JAVAH"; then8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&58532 $as_echo "$JAVAH" >&6; }8533 else8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58535 $as_echo "no" >&6; }8536 fi8537 8538 8539 else8540 # Extract the first word of "java", so it can be a program name with args.8541 set dummy java; ac_word=$28542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58543 $as_echo_n "checking for $ac_word... " >&6; }8544 if ${ac_cv_path_JAVA+:} false; then :8545 $as_echo_n "(cached) " >&68546 else8547 case $JAVA in8548 [\\/]* | ?:[\\/]*)8549 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.8550 ;;8551 *)8552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8553 as_dummy="${with_java}/bin:${with_java}"8554 for as_dir in $as_dummy8555 do8556 IFS=$as_save_IFS8557 test -z "$as_dir" && as_dir=.8558 for ac_exec_ext in '' $ac_executable_extensions; do8559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8560 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" >&58562 break 28563 fi8564 done8565 done8566 IFS=$as_save_IFS8567 8568 ;;8569 esac8570 fi8571 JAVA=$ac_cv_path_JAVA8572 if test -n "$JAVA"; then8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&58574 $as_echo "$JAVA" >&6; }8575 else8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58577 $as_echo "no" >&6; }8578 fi8579 8580 8581 # Extract the first word of "javac", so it can be a program name with args.8582 set dummy javac; ac_word=$28583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58584 $as_echo_n "checking for $ac_word... " >&6; }8585 if ${ac_cv_path_JAVAC+:} false; then :8586 $as_echo_n "(cached) " >&68587 else8588 case $JAVAC in8589 [\\/]* | ?:[\\/]*)8590 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.8591 ;;8592 *)8593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8594 as_dummy="${with_java}/bin:${with_java}"8595 for as_dir in $as_dummy8596 do8597 IFS=$as_save_IFS8598 test -z "$as_dir" && as_dir=.8599 for ac_exec_ext in '' $ac_executable_extensions; do8600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8601 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" >&58603 break 28604 fi8605 done8606 done8607 IFS=$as_save_IFS8608 8609 ;;8610 esac8611 fi8612 JAVAC=$ac_cv_path_JAVAC8613 if test -n "$JAVAC"; then8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&58615 $as_echo "$JAVAC" >&6; }8616 else8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58618 $as_echo "no" >&6; }8619 fi8620 8621 8622 # Extract the first word of "javah", so it can be a program name with args.8623 set dummy javah; ac_word=$28624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58625 $as_echo_n "checking for $ac_word... " >&6; }8626 if ${ac_cv_path_JAVAH+:} false; then :8627 $as_echo_n "(cached) " >&68628 else8629 case $JAVAH in8630 [\\/]* | ?:[\\/]*)8631 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.8632 ;;8633 *)8634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8635 as_dummy="${with_java}/bin:${with_java}"8636 for as_dir in $as_dummy8637 do8638 IFS=$as_save_IFS8639 test -z "$as_dir" && as_dir=.8640 for ac_exec_ext in '' $ac_executable_extensions; do8641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8642 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" >&58644 break 28645 fi8646 done8647 done8648 IFS=$as_save_IFS8649 8650 ;;8651 esac8652 fi8653 JAVAH=$ac_cv_path_JAVAH8654 if test -n "$JAVAH"; then8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&58656 $as_echo "$JAVAH" >&6; }8657 else8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58659 $as_echo "no" >&6; }8660 fi8661 8662 8663 fi8664 fi8665 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" ; then8671 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 do8682 if test -r "${d}/include/jni.h" ; then8683 JDK=${d}8684 JAVA_HOME=$JDK8685 JAVA_INC_DIR=${JDK}/include8686 JAVA_INC_SPEC="-I${JDK}/include -I${JDK}/include/linux"8687 break;8688 fi8689 if test -r "${d}/Headers/jni.h" ; then8690 JDK=${d}8691 JAVA_HOME=$JDK8692 JAVA_INC_DIR=${JDK}/Headers8693 JAVA_INC_SPEC="-I${JDK}/Headers -I${JDK}/Headers/macos"8694 break;8695 fi8696 done8697 fi8698 8699 8700 8701 # Check whether --with-R was given.8702 if test "${with_R+set}" = set; then :8703 withval=$with_R;8704 else8705 with_R=yes8706 fi8707 8708 8709 R=""8710 if test "$with_R" != "no" ; then8711 if test "$with_R" = "yes" ; then8712 # Extract the first word of "R", so it can be a program name with args.8713 set dummy R; ac_word=$28714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58715 $as_echo_n "checking for $ac_word... " >&6; }8716 if ${ac_cv_path_R+:} false; then :8717 $as_echo_n "(cached) " >&68718 else8719 case $R in8720 [\\/]* | ?:[\\/]*)8721 ac_cv_path_R="$R" # Let the user override the test with a path.8722 ;;8723 *)8724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8725 for as_dir in $PATH8726 do8727 IFS=$as_save_IFS8728 test -z "$as_dir" && as_dir=.8729 for ac_exec_ext in '' $ac_executable_extensions; do8730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8731 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" >&58733 break 28734 fi8735 done8736 done8737 IFS=$as_save_IFS8738 8739 ;;8740 esac8741 fi8742 R=$ac_cv_path_R8743 if test -n "$R"; then8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $R" >&58745 $as_echo "$R" >&6; }8746 else8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58748 $as_echo "no" >&6; }8749 fi8750 8751 8752 else8753 # Extract the first word of "R", so it can be a program name with args.8754 set dummy R; ac_word=$28755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58756 $as_echo_n "checking for $ac_word... " >&6; }8757 if ${ac_cv_path_R+:} false; then :8758 $as_echo_n "(cached) " >&68759 else8760 case $R in8761 [\\/]* | ?:[\\/]*)8762 ac_cv_path_R="$R" # Let the user override the test with a path.8763 ;;8764 *)8765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8766 as_dummy="${with_R}/bin:${with_R}"8767 for as_dir in $as_dummy8768 do8769 IFS=$as_save_IFS8770 test -z "$as_dir" && as_dir=.8771 for ac_exec_ext in '' $ac_executable_extensions; do8772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8773 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" >&58775 break 28776 fi8777 done8778 done8779 IFS=$as_save_IFS8780 8781 ;;8782 esac8783 fi8784 R=$ac_cv_path_R8785 if test -n "$R"; then8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $R" >&58787 $as_echo "$R" >&6; }8788 else8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58790 $as_echo "no" >&6; }8791 fi8792 8793 8794 fi8795 fi8796 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" 58801 8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&58803 $as_echo_n "checking build system type... " >&6; }8804 if ${ac_cv_build+:} false; then :8805 $as_echo_n "(cached) " >&68806 else8807 ac_build_alias=$build_alias8808 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" 58812 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" 58814 8815 fi8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&58817 $as_echo "$ac_cv_build" >&6; }8818 case $ac_cv_build in8819 *-*-*) ;;8820 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;8821 esac8822 build=$ac_cv_build8823 ac_save_IFS=$IFS; IFS='-'8824 set x $ac_cv_build8825 shift8826 build_cpu=$18827 build_vendor=$28828 shift; shift8829 # Remember, the first character of IFS is used to create $*,8830 # except with old shells:8831 build_os=$*8832 IFS=$ac_save_IFS8833 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac8834 8835 8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&58837 $as_echo_n "checking host system type... " >&6; }8838 if ${ac_cv_host+:} false; then :8839 $as_echo_n "(cached) " >&68840 else8841 if test "x$host_alias" = x; then8842 ac_cv_host=$ac_cv_build8843 else8844 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" 58846 fi8847 8848 fi8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&58850 $as_echo "$ac_cv_host" >&6; }8851 case $ac_cv_host in8852 *-*-*) ;;8853 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;8854 esac8855 host=$ac_cv_host8856 ac_save_IFS=$IFS; IFS='-'8857 set x $ac_cv_host8858 shift8859 host_cpu=$18860 host_vendor=$28861 shift; shift8862 # Remember, the first character of IFS is used to create $*,8863 # except with old shells:8864 host_os=$*8865 IFS=$ac_save_IFS8866 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac8867 8868 8869 8870 8871 8872 # Check whether --with-ruby was given.8873 if test "${with_ruby+set}" = set; then :8874 withval=$with_ruby; RUBY=$withval8875 else8876 RUBY=ruby8877 fi8878 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=$withval8883 else8884 ruby_sitelibdir=NONE8885 fi8886 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"; then8921 # 1.98922 RUBY_CPPFLAGS="-I${RUBY_CONFIG_RUBYHDRDIR}"8923 RUBY_CPPFLAGS="${RUBY_CPPFLAGS} -I${RUBY_CONFIG_RUBYHDRDIR}/${RUBY_CONFIG_ARCH}"8924 else8925 # 1.88926 RUBY_CPPFLAGS="-I${RUBY_CONFIG_ARCHDIR}"8927 fi8928 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 then8950 RUBY_SITELIBDIR="${ruby_sitelibdir}"8951 else8952 if test "x${prefix}x" = "xNONEx"8953 then8954 RUBY_SITELIBDIR=`8955 $RUBY -rrbconfig -e "puts(Config::CONFIG['sitelibdir'] || '')"`8956 else8957 sitelibdir_no_prefix=`$RUBY -rrbconfig \8958 -e "include Config; \8959 puts CONFIG['sitelibdir'].sub(CONFIG['prefix'], '')"`8960 RUBY_SITELIBDIR="${prefix}/${sitelibdir_no_prefix}"8961 fi8962 fi8963 8964 8965 CPPFLAGS_save="${CPPFLAGS}"8966 CPPFLAGS="${CPPFLAGS} ${RUBY_CPPFLAGS}"8967 CXXFLAGS="${CPPFLAGS}"8968 for ac_header in ruby.h8969 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 <<_ACEOF8973 #define HAVE_RUBY_H 18974 _ACEOF8975 8976 fi8977 8978 done8979 8980 HAVE_RUBY_H=${ac_cv_header_ruby_h}8981 8982 8983 for ac_header in node.h8984 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 <<_ACEOF8991 #define HAVE_NODE_H 18992 _ACEOF8993 8994 fi8995 8996 done8997 8998 for ac_header in ruby/node.h8999 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 <<_ACEOF9006 #define HAVE_RUBY_NODE_H 19007 _ACEOF9008 9009 $as_echo "#define REALLY_HAVE_RUBY_NODE_H /**/" >>confdefs.h9010 9011 fi9012 9013 done9014 9015 for ac_header in version.h9016 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 <<_ACEOF9023 #define HAVE_VERSION_H 19024 _ACEOF9025 9026 fi9027 9028 done9029 9030 for ac_header in env.h9031 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 <<_ACEOF9038 #define HAVE_ENV_H 19039 _ACEOF9040 9041 fi9042 9043 done9044 9045 9046 CPPFLAGS="${CPPFLAGS_save}"9047 9048 9049 case $host_os in9050 *mingw32* ) MINGW32=yes;;9051 * ) MINGW32=no;;9052 esac9053 9054 9055 if test x"${MINGW32}"x = xyesx; then9056 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 fi9065 9066 9067 9068 RP_BASE=`pwd`9069 9070 9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&59072 $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=$enableval9076 else9077 tcl_ok=yes9078 fi9079 9080 9081 if test "${enable_shared+set}" = set; then9082 enableval="$enable_shared"9083 tcl_ok=$enableval9084 else9085 tcl_ok=yes9086 fi9087 9088 if test "$tcl_ok" = "yes" ; then9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&59090 $as_echo "shared" >&6; }9091 SHARED_BUILD=19092 else9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&59094 $as_echo "static" >&6; }9095 SHARED_BUILD=09096 $as_echo "#define STATIC_BUILD 1" >>confdefs.h9097 9098 fi9099 9100 9101 #--------------------------------------------------------------------9102 # This macro figures out what flags to use with the compiler/linker9103 # when building shared/static debug/optimized objects. This information9104 # is all taken from the tclConfig.sh file.9105 #--------------------------------------------------------------------9106 9107 if test -f "${exec_prefix}/lib/tclConfig.sh" ; then9108 . ${exec_prefix}/lib/tclConfig.sh9109 fi9110 if test -f "${exec_prefix}/lib/tkConfig.sh" ; then9111 . ${exec_prefix}/lib/tkConfig.sh9112 fi9113 9114 # -----------------------------------------------------------------------9115 #9116 # Compiler characteristics:9117 # Check for existence of types of size_t and pid_t9118 #9119 # -----------------------------------------------------------------------9120 9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&59122 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }9123 if ${ac_cv_c_bigendian+:} false; then :9124 $as_echo_n "(cached) " >&69125 else9126 ac_cv_c_bigendian=unknown9127 # See if we're dealing with a universal compiler.9128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext9129 /* end confdefs.h. */9130 #ifndef __APPLE_CC__9131 not a universal capable compiler9132 #endif9133 typedef int dummy;9134 9135 _ACEOF9136 if ac_fn_cxx_try_compile "$LINENO"; then :9137 9138 # Check for potential -arch flags. It is not universal unless9139 # 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; do9143 if test -n "$ac_prev"; then9144 case $ac_word in9145 i?86 | x86_64 | ppc | ppc64)9146 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then9147 ac_arch=$ac_word9148 else9149 ac_cv_c_bigendian=universal9150 break9151 fi9152 ;;9153 esac9154 ac_prev=9155 elif test "x$ac_word" = "x-arch"; then9156 ac_prev=arch9157 fi9158 done9159 fi9160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext9161 if test $ac_cv_c_bigendian = unknown; then9162 # See if sys/param.h defines the BYTE_ORDER macro.9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext9164 /* end confdefs.h. */9165 #include <sys/types.h>9166 #include <sys/param.h>9167 9168 int9169 main ()9170 {9171 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \9172 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \9173 && LITTLE_ENDIAN)9174 bogus endian macros9175 #endif9176 9177 ;9178 return 0;9179 }9180 _ACEOF9181 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_ext9184 /* end confdefs.h. */9185 #include <sys/types.h>9186 #include <sys/param.h>9187 9188 int9189 main ()9190 {9191 #if BYTE_ORDER != BIG_ENDIAN9192 not big endian9193 #endif9194 9195 ;9196 return 0;9197 }9198 _ACEOF9199 if ac_fn_cxx_try_compile "$LINENO"; then :9200 ac_cv_c_bigendian=yes9201 else9202 ac_cv_c_bigendian=no9203 fi9204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext9205 fi9206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext9207 fi9208 if test $ac_cv_c_bigendian = unknown; then9209 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).9210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext9211 /* end confdefs.h. */9212 #include <limits.h>9213 9214 int9215 main ()9216 {9217 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)9218 bogus endian macros9219 #endif9220 9221 ;9222 return 0;9223 }9224 _ACEOF9225 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_ext9228 /* end confdefs.h. */9229 #include <limits.h>9230 9231 int9232 main ()9233 {9234 #ifndef _BIG_ENDIAN9235 not big endian9236 #endif9237 9238 ;9239 return 0;9240 }9241 _ACEOF9242 if ac_fn_cxx_try_compile "$LINENO"; then :9243 ac_cv_c_bigendian=yes9244 else9245 ac_cv_c_bigendian=no9246 fi9247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext9248 fi9249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext9250 fi9251 if test $ac_cv_c_bigendian = unknown; then9252 # 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_ext9256 /* 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 int9274 main ()9275 {9276 return use_ascii (foo) == use_ebcdic (foo);9277 ;9278 return 0;9279 }9280 _ACEOF9281 if ac_fn_cxx_try_compile "$LINENO"; then :9282 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then9283 ac_cv_c_bigendian=yes9284 fi9285 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then9286 if test "$ac_cv_c_bigendian" = unknown; then9287 ac_cv_c_bigendian=no9288 else9289 # finding both strings is unlikely to happen, but who knows?9290 ac_cv_c_bigendian=unknown9291 fi9292 fi9293 fi9294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext9295 else9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext9297 /* end confdefs.h. */9298 $ac_includes_default9299 int9300 main ()9301 {9302 9303 /* Are we little or big endian? From Harbison&Steele. */9304 union9305 {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 _ACEOF9316 if ac_fn_cxx_try_run "$LINENO"; then :9317 ac_cv_c_bigendian=no9318 else9319 ac_cv_c_bigendian=yes9320 fi9321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \9322 conftest.$ac_objext conftest.beam conftest.$ac_ext9323 fi9324 9325 fi9326 fi9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&59328 $as_echo "$ac_cv_c_bigendian" >&6; }9329 case $ac_cv_c_bigendian in #(9330 yes)9331 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h9332 ;; #(9333 no)9334 ;; #(9335 universal)9336 9337 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h9338 9339 ;; #(9340 *)9341 as_fn_error $? "unknown endianness9342 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;9343 esac9344 9345 # The cast to long int works around a bug in the HP C Compiler9346 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects9347 # 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" >&59350 $as_echo_n "checking size of int... " >&6; }9351 if ${ac_cv_sizeof_int+:} false; then :9352 $as_echo_n "(cached) " >&69353 else9354 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :9355 9356 else9357 if test "$ac_cv_type_int" = yes; then9358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&59359 $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 else9363 ac_cv_sizeof_int=09364 fi9365 fi9366 9367 fi9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&59369 $as_echo "$ac_cv_sizeof_int" >&6; }9370 9371 9372 9373 cat >>confdefs.h <<_ACEOF9374 #define SIZEOF_INT $ac_cv_sizeof_int9375 _ACEOF9376 9377 9378 # The cast to long int works around a bug in the HP C Compiler9379 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects9380 # 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" >&59383 $as_echo_n "checking size of long... " >&6; }9384 if ${ac_cv_sizeof_long+:} false; then :9385 $as_echo_n "(cached) " >&69386 else9387 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :9388 9389 else9390 if test "$ac_cv_type_long" = yes; then9391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&59392 $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 else9396 ac_cv_sizeof_long=09397 fi9398 fi9399 9400 fi9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&59402 $as_echo "$ac_cv_sizeof_long" >&6; }9403 9404 9405 9406 cat >>confdefs.h <<_ACEOF9407 #define SIZEOF_LONG $ac_cv_sizeof_long9408 _ACEOF9409 9410 9411 # The cast to long int works around a bug in the HP C Compiler9412 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects9413 # 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" >&59416 $as_echo_n "checking size of long long... " >&6; }9417 if ${ac_cv_sizeof_long_long+:} false; then :9418 $as_echo_n "(cached) " >&69419 else9420 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :9421 9422 else9423 if test "$ac_cv_type_long_long" = yes; then9424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&59425 $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 else9429 ac_cv_sizeof_long_long=09430 fi9431 fi9432 9433 fi9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&59435 $as_echo "$ac_cv_sizeof_long_long" >&6; }9436 9437 9438 9439 cat >>confdefs.h <<_ACEOF9440 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long9441 _ACEOF9442 9443 9444 # The cast to long int works around a bug in the HP C Compiler9445 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects9446 # 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 *" >&59449 $as_echo_n "checking size of void *... " >&6; }9450 if ${ac_cv_sizeof_void_p+:} false; then :9451 $as_echo_n "(cached) " >&69452 else9453 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :9454 9455 else9456 if test "$ac_cv_type_void_p" = yes; then9457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&59458 $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 else9462 ac_cv_sizeof_void_p=09463 fi9464 fi9465 9466 fi9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&59468 $as_echo "$ac_cv_sizeof_void_p" >&6; }9469 9470 9471 9472 cat >>confdefs.h <<_ACEOF9473 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p9474 _ACEOF9475 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-symbols9486 # option.9487 #--------------------------------------------------------------------9488 9489 9490 7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5 9491 7937 $as_echo_n "checking for build with symbols... " >&6; } … … 9540 7986 9541 7987 9542 #--------------------------------------------------------------------9543 # search for ffmpeg libraries libavcodec, libavformat, libswscale9544 #--------------------------------------------------------------------9545 if test "${with_ffmpeg}" != "no" ; then9546 if test "${with_ffmpeg}" = "yes" ; then9547 # Extract the first word of "ffmpeg", so it can be a program name with args.9548 set dummy ffmpeg; ac_word=$29549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&59550 $as_echo_n "checking for $ac_word... " >&6; }9551 if ${ac_cv_path_FFMPEG+:} false; then :9552 $as_echo_n "(cached) " >&69553 else9554 case $FFMPEG in9555 [\\/]* | ?:[\\/]*)9556 ac_cv_path_FFMPEG="$FFMPEG" # Let the user override the test with a path.9557 ;;9558 *)9559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR9560 for as_dir in $PATH9561 do9562 IFS=$as_save_IFS9563 test -z "$as_dir" && as_dir=.9564 for ac_exec_ext in '' $ac_executable_extensions; do9565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then9566 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" >&59568 break 29569 fi9570 done9571 done9572 IFS=$as_save_IFS9573 9574 ;;9575 esac9576 fi9577 FFMPEG=$ac_cv_path_FFMPEG9578 if test -n "$FFMPEG"; then9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FFMPEG" >&59580 $as_echo "$FFMPEG" >&6; }9581 else9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&59583 $as_echo "no" >&6; }9584 fi9585 9586 9587 else9588 # Extract the first word of "ffmpeg", so it can be a program name with args.9589 set dummy ffmpeg; ac_word=$29590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&59591 $as_echo_n "checking for $ac_word... " >&6; }9592 if ${ac_cv_path_FFMPEG+:} false; then :9593 $as_echo_n "(cached) " >&69594 else9595 case $FFMPEG in9596 [\\/]* | ?:[\\/]*)9597 ac_cv_path_FFMPEG="$FFMPEG" # Let the user override the test with a path.9598 ;;9599 *)9600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR9601 as_dummy="${with_ffmpeg}/bin:${with_ffmpeg}"9602 for as_dir in $as_dummy9603 do9604 IFS=$as_save_IFS9605 test -z "$as_dir" && as_dir=.9606 for ac_exec_ext in '' $ac_executable_extensions; do9607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then9608 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" >&59610 break 29611 fi9612 done9613 done9614 IFS=$as_save_IFS9615 9616 ;;9617 esac9618 fi9619 FFMPEG=$ac_cv_path_FFMPEG9620 if test -n "$FFMPEG"; then9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FFMPEG" >&59622 $as_echo "$FFMPEG" >&6; }9623 else9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&59625 $as_echo "no" >&6; }9626 fi9627 9628 9629 fi9630 if test "${FFMPEG}x" != "x" ; then9631 9632 $as_echo "#define HAVE_FFMPEG 1" >>confdefs.h9633 9634 fi9635 fi9636 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.h9638 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 19642 9643 "9644 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :9645 cat >>confdefs.h <<_ACEOF9646 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 19647 _ACEOF9648 9649 fi9650 9651 done9652 9653 9654 HAVE_FFMPEG_LIBS=""9655 if test "${with_ffmpeg}" != "no"; then9656 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" \) ] ; then9664 HAVE_FFMPEG_LIBS="yes"9665 9666 $as_echo "#define BUILD_with_ffmpeg 1" >>confdefs.h9667 9668 fi9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavcodec" >&59670 $as_echo_n "checking for main in -lavcodec... " >&6; }9671 if ${ac_cv_lib_avcodec_main+:} false; then :9672 $as_echo_n "(cached) " >&69673 else9674 ac_check_lib_save_LIBS=$LIBS9675 LIBS="-lavcodec $LIBS"9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext9677 /* end confdefs.h. */9678 9679 9680 int9681 main ()9682 {9683 return main ();9684 ;9685 return 0;9686 }9687 _ACEOF9688 if ac_fn_cxx_try_link "$LINENO"; then :9689 ac_cv_lib_avcodec_main=yes9690 else9691 ac_cv_lib_avcodec_main=no9692 fi9693 rm -f core conftest.err conftest.$ac_objext \9694 conftest$ac_exeext conftest.$ac_ext9695 LIBS=$ac_check_lib_save_LIBS9696 fi9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_main" >&59698 $as_echo "$ac_cv_lib_avcodec_main" >&6; }9699 if test "x$ac_cv_lib_avcodec_main" = xyes; then :9700 cat >>confdefs.h <<_ACEOF9701 #define HAVE_LIBAVCODEC 19702 _ACEOF9703 9704 LIBS="-lavcodec $LIBS"9705 9706 else9707 as_fn_error $? "librappture requires libavcodec" "$LINENO" 59708 fi9709 9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavutil" >&59711 $as_echo_n "checking for main in -lavutil... " >&6; }9712 if ${ac_cv_lib_avutil_main+:} false; then :9713 $as_echo_n "(cached) " >&69714 else9715 ac_check_lib_save_LIBS=$LIBS9716 LIBS="-lavutil $LIBS"9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext9718 /* end confdefs.h. */9719 9720 9721 int9722 main ()9723 {9724 return main ();9725 ;9726 return 0;9727 }9728 _ACEOF9729 if ac_fn_cxx_try_link "$LINENO"; then :9730 ac_cv_lib_avutil_main=yes9731 else9732 ac_cv_lib_avutil_main=no9733 fi9734 rm -f core conftest.err conftest.$ac_objext \9735 conftest$ac_exeext conftest.$ac_ext9736 LIBS=$ac_check_lib_save_LIBS9737 fi9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_main" >&59739 $as_echo "$ac_cv_lib_avutil_main" >&6; }9740 if test "x$ac_cv_lib_avutil_main" = xyes; then :9741 cat >>confdefs.h <<_ACEOF9742 #define HAVE_LIBAVUTIL 19743 _ACEOF9744 9745 LIBS="-lavutil $LIBS"9746 9747 else9748 as_fn_error $? "librappture requires libavutil" "$LINENO" 59749 fi9750 9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavformat" >&59752 $as_echo_n "checking for main in -lavformat... " >&6; }9753 if ${ac_cv_lib_avformat_main+:} false; then :9754 $as_echo_n "(cached) " >&69755 else9756 ac_check_lib_save_LIBS=$LIBS9757 LIBS="-lavformat $LIBS"9758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext9759 /* end confdefs.h. */9760 9761 9762 int9763 main ()9764 {9765 return main ();9766 ;9767 return 0;9768 }9769 _ACEOF9770 if ac_fn_cxx_try_link "$LINENO"; then :9771 ac_cv_lib_avformat_main=yes9772 else9773 ac_cv_lib_avformat_main=no9774 fi9775 rm -f core conftest.err conftest.$ac_objext \9776 conftest$ac_exeext conftest.$ac_ext9777 LIBS=$ac_check_lib_save_LIBS9778 fi9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_main" >&59780 $as_echo "$ac_cv_lib_avformat_main" >&6; }9781 if test "x$ac_cv_lib_avformat_main" = xyes; then :9782 cat >>confdefs.h <<_ACEOF9783 #define HAVE_LIBAVFORMAT 19784 _ACEOF9785 9786 LIBS="-lavformat $LIBS"9787 9788 else9789 as_fn_error $? "librappture requires libavformat" "$LINENO" 59790 fi9791 9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lswscale" >&59793 $as_echo_n "checking for main in -lswscale... " >&6; }9794 if ${ac_cv_lib_swscale_main+:} false; then :9795 $as_echo_n "(cached) " >&69796 else9797 ac_check_lib_save_LIBS=$LIBS9798 LIBS="-lswscale $LIBS"9799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext9800 /* end confdefs.h. */9801 9802 9803 int9804 main ()9805 {9806 return main ();9807 ;9808 return 0;9809 }9810 _ACEOF9811 if ac_fn_cxx_try_link "$LINENO"; then :9812 ac_cv_lib_swscale_main=yes9813 else9814 ac_cv_lib_swscale_main=no9815 fi9816 rm -f core conftest.err conftest.$ac_objext \9817 conftest$ac_exeext conftest.$ac_ext9818 LIBS=$ac_check_lib_save_LIBS9819 fi9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_main" >&59821 $as_echo "$ac_cv_lib_swscale_main" >&6; }9822 if test "x$ac_cv_lib_swscale_main" = xyes; then :9823 cat >>confdefs.h <<_ACEOF9824 #define HAVE_LIBSWSCALE 19825 _ACEOF9826 9827 LIBS="-lswscale $LIBS"9828 9829 fi9830 9831 for ac_func in av_find_stream_info9832 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 <<_ACEOF9836 #define HAVE_AV_FIND_STREAM_INFO 19837 _ACEOF9838 9839 fi9840 done9841 9842 for ac_func in av_open_input_file9843 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 <<_ACEOF9847 #define HAVE_AV_OPEN_INPUT_FILE 19848 _ACEOF9849 9850 fi9851 done9852 9853 for ac_func in avcodec_decode_video9854 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 <<_ACEOF9858 #define HAVE_AVCODEC_DECODE_VIDEO 19859 _ACEOF9860 9861 fi9862 done9863 9864 for ac_func in avcodec_decode_video29865 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 <<_ACEOF9869 #define HAVE_AVCODEC_DECODE_VIDEO2 19870 _ACEOF9871 9872 fi9873 done9874 9875 for ac_func in avcodec_open9876 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 <<_ACEOF9880 #define HAVE_AVCODEC_OPEN 19881 _ACEOF9882 9883 fi9884 done9885 9886 for ac_func in avcodec_open29887 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 <<_ACEOF9891 #define HAVE_AVCODEC_OPEN2 19892 _ACEOF9893 9894 fi9895 done9896 9897 for ac_func in avformat_find_stream_info9898 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 <<_ACEOF9902 #define HAVE_AVFORMAT_FIND_STREAM_INFO 19903 _ACEOF9904 9905 fi9906 done9907 9908 for ac_func in avformat_open_input9909 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 <<_ACEOF9913 #define HAVE_AVFORMAT_OPEN_INPUT 19914 _ACEOF9915 9916 fi9917 done9918 9919 for ac_func in avio_close9920 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 <<_ACEOF9924 #define HAVE_AVIO_CLOSE 19925 _ACEOF9926 9927 fi9928 done9929 9930 for ac_func in img_convert9931 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 <<_ACEOF9935 #define HAVE_IMG_CONVERT 19936 _ACEOF9937 9938 fi9939 done9940 9941 for ac_func in sws_getCachedContext9942 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 <<_ACEOF9946 #define HAVE_SWS_GETCACHEDCONTEXT 19947 _ACEOF9948 9949 fi9950 done9951 9952 for ac_func in sws_scale9953 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 <<_ACEOF9957 #define HAVE_SWS_SCALE 19958 _ACEOF9959 9960 fi9961 done9962 9963 for ac_func in url_close9964 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 <<_ACEOF9968 #define HAVE_URL_CLOSE 19969 _ACEOF9970 9971 fi9972 done9973 9974 for ac_func in av_close_input_file9975 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 <<_ACEOF9979 #define HAVE_AV_CLOSE_INPUT_FILE 19980 _ACEOF9981 9982 fi9983 done9984 9985 for ac_func in avformat_close_input9986 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 <<_ACEOF9990 #define HAVE_AVFORMAT_CLOSE_INPUT 19991 _ACEOF9992 9993 fi9994 done9995 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 else10001 as_fn_error $? "oops! no av_codec_find_decoder ?!?" "$LINENO" 510002 fi10003 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 else10008 as_fn_error $? "oops! no avcode_alloc_frame ?!?" "$LINENO" 510009 fi10010 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 else10015 as_fn_error $? "oops! no av_rescale_q ?!?" "$LINENO" 510016 fi10017 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 else10022 as_fn_error $? "oops! av_read_frame ?!?" "$LINENO" 510023 fi10024 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 else10029 as_fn_error $? "oops! no av_frame ?!?" "$LINENO" 510030 fi10031 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 else10036 as_fn_error $? "oops! no avcode_default_release_buffer ?!?" "$LINENO" 510037 fi10038 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 else10043 as_fn_error $? "oops! no avpicture_get_size ?!?" "$LINENO" 510044 fi10045 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 else10050 as_fn_error $? "oops! no avpicture_fill ?!?" "$LINENO" 510051 fi10052 10053 for ac_func in sws_getCachedContext10054 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 <<_ACEOF10058 #define HAVE_SWS_GETCACHEDCONTEXT 110059 _ACEOF10060 10061 fi10062 done10063 10064 for ac_func in img_convert10065 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 <<_ACEOF10069 #define HAVE_IMG_CONVERT 110070 _ACEOF10071 10072 fi10073 done10074 10075 for ac_func in sws_scale10076 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 <<_ACEOF10080 #define HAVE_SWS_SCALE 110081 _ACEOF10082 10083 fi10084 done10085 10086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext10087 /* end confdefs.h. */10088 10089 #define __STDC_CONSTANT_MACROS 110090 #include <stdlib.h>10091 #ifdef HAVE_FFMPEG_AVCODEC_H10092 # include <ffmpeg/avcodec.h>10093 #endif10094 #ifdef HAVE_LIBAVCODEC_AVCODEC_H10095 # include <libavcodec/avcodec.h>10096 #endif10097 int x = AVMEDIA_TYPE_VIDEO;10098 10099 int10100 main ()10101 {10102 10103 ;10104 return 0;10105 }10106 _ACEOF10107 if ac_fn_cxx_try_compile "$LINENO"; then :10108 ac_avmedia_type_video="yes"10109 else10110 ac_avmedia_type_video="no"10111 fi10112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext10113 if test "$ac_avmedia_type_video" == "yes" ; then10114 10115 $as_echo "#define HAVE_AVMEDIA_TYPE_VIDEO 1" >>confdefs.h10116 10117 fi10118 fi10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 7988 10135 7989 … … 10186 8040 10187 8041 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" 8042 ac_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" 10219 8043 10220 8044 cat >confcache <<\_ACEOF … … 10725 8549 # values after options handling. 10726 8550 ac_log=" 10727 This file was extended by Rappture $as_me 1. 4, which was8551 This file was extended by Rappture $as_me 1.5, which was 10728 8552 generated by GNU Autoconf 2.69. Invocation command line was 10729 8553 … … 10787 8611 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 10788 8612 ac_cs_version="\\ 10789 Rappture config.status 1. 48613 Rappture config.status 1.5 10790 8614 configured by $0, generated by GNU Autoconf 2.69, 10791 8615 with options \\"\$ac_cs_config\\" … … 10910 8734 do 10911 8735 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" ;; 10913 8737 "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" ;; 11043 8756 11044 8757 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; … … 11628 9341 $ac_cs_success || as_fn_exit 1 11629 9342 fi 11630 11631 #11632 # CONFIG_SUBDIRS section.11633 #11634 if test "$no_recursion" != yes; then11635 11636 # Remove --cache-file, --srcdir, and --disable-option-checking arguments11637 # so they do not pile up.11638 ac_sub_configure_args=11639 ac_prev=11640 eval "set x $ac_configure_args"11641 shift11642 for ac_arg11643 do11644 if test -n "$ac_prev"; then11645 ac_prev=11646 continue11647 fi11648 case $ac_arg in11649 -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 in11670 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;11671 esac11672 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;11673 esac11674 done11675 11676 # Always prepend --prefix to ensure using the same prefix11677 # in subdir configurations.11678 ac_arg="--prefix=$prefix"11679 case $ac_arg in11680 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;11681 esac11682 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"11683 11684 # Pass --silent11685 if test "$silent" = yes; then11686 ac_sub_configure_args="--silent $ac_sub_configure_args"11687 fi11688 11689 # Always prepend --disable-option-checking to silence warnings, since11690 # 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: && continue11695 11696 # Do not complain, so a configure script can configure whichever11697 # parts of a large source tree are present.11698 test -d "$srcdir/$ac_dir" || continue11699 11700 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"11701 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&511702 $as_echo "$ac_msg" >&611703 as_dir="$ac_dir"; as_fn_mkdir_p11704 ac_builddir=.11705 11706 case "$ac_dir" in11707 .) 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 in11713 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;11714 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;11715 esac ;;11716 esac11717 ac_abs_top_builddir=$ac_pwd11718 ac_abs_builddir=$ac_pwd$ac_dir_suffix11719 # for backward compatibility:11720 ac_top_builddir=$ac_top_build_prefix11721 11722 case $srcdir in11723 .) # We are building in place.11724 ac_srcdir=.11725 ac_top_srcdir=$ac_top_builddir_sub11726 ac_abs_top_srcdir=$ac_pwd ;;11727 [\\/]* | ?:[\\/]* ) # Absolute name.11728 ac_srcdir=$srcdir$ac_dir_suffix;11729 ac_top_srcdir=$srcdir11730 ac_abs_top_srcdir=$srcdir ;;11731 *) # Relative name.11732 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix11733 ac_top_srcdir=$ac_top_build_prefix$srcdir11734 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;11735 esac11736 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix11737 11738 11739 cd "$ac_dir"11740 11741 # Check for guested configure; otherwise get Cygnus style configure.11742 if test -f "$ac_srcdir/configure.gnu"; then11743 ac_sub_configure=$ac_srcdir/configure.gnu11744 elif test -f "$ac_srcdir/configure"; then11745 ac_sub_configure=$ac_srcdir/configure11746 elif test -f "$ac_srcdir/configure.in"; then11747 # This should be Cygnus configure.11748 ac_sub_configure=$ac_aux_dir/configure11749 else11750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&511751 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}11752 ac_sub_configure=11753 fi11754 11755 # The recursion is here.11756 if test -n "$ac_sub_configure"; then11757 # Make the cache file name correct relative to the subdirectory.11758 case $cache_file in11759 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;11760 *) # Relative name.11761 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;11762 esac11763 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" >&511765 $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" 511770 fi11771 11772 cd "$ac_popdir"11773 done11774 fi11775 9343 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 11776 9344 { $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]) 1 define(Major_Version, [1]) 2 define(Minor_Version, [5]) 3 define(Release_Serial, [0]) 4 5 define(Version, [Major_Version].[Minor_Version]) 6 AC_INIT([Rappture],[Version],[rappture@nanohub.org]) 3 7 AC_CONFIG_AUX_DIR(cf) 4 AC_CONFIG_HEADER(src/core/config.h) 8 AC_CONFIG_HEADER(libs/rappture/config.h) 9 10 RAPPTURE_MAJOR_VERSION=Major_Version 11 RAPPTURE_MINOR_VERSION=Minor_Version 12 RAPPTURE_RELEASE_SERIAL=Release_Serial 13 RAPPTURE_VERSION=Version 14 15 WITH_R=yes 16 WITH_JAVA=yes 17 WITH_MATLAB=yes 18 WITH_MKOCTFILE2=yes 19 WITH_MKOCTFILE3=yes 20 WITH_OCTAVE=yes 21 WITH_PERL=yes 22 WITH_PYTHON=yes 23 WITH_RUBY=yes 24 WITH_RUBY_SITELIBDIR=yes 25 WITH_TCL=yes 26 27 AC_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 34 AC_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 41 AC_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 48 AC_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 55 AC_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 62 AC_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 69 AC_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 76 AC_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 83 AC_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 91 AC_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 99 AC_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 106 AC_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 113 AC_ARG_WITH( 114 [vtk], 115 [AS_HELP_STRING([--with-vtk], 116 [Build VTK for rappture])], 117 [WITH_VTK=${withval}], 118 [WITH_VTK=no]) 5 119 6 120 #------------------------------------------------------------------------ … … 15 129 fi 16 130 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"; then25 INSTALL_PREFIX=$with_install26 else27 INSTALL_PREFIX=$prefix28 fi29 30 31 if test "${libdir}" != "${prefix}/lib"; then32 LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}"33 else34 LIB_SEARCH_DIRS="-L${libdir}"35 fi36 37 38 AC_PROG_INSTALL39 131 AC_PROG_INSTALL 40 132 AC_PROG_RANLIB … … 43 135 AC_PROG_MAKE_SET 44 136 45 # Check for C, C++, and FORTRAN 137 # Check for C, C++, and FORTRAN 46 138 AC_PROG_CC 47 139 AC_PROG_CXX 48 # Avoid g95 140 # Avoid g95 49 141 AC_PROG_F77([g77 gfortran f77 fort77 f90 xlf xlf90 fl32]) 50 142 … … 55 147 56 148 AC_LANG([C++]) 149 AC_PATH_X 150 151 # ----------------------------------------------------------------------- 152 # 153 # Compiler characteristics: 154 # Check for existence of types of size_t and pid_t 155 # 156 # ----------------------------------------------------------------------- 157 158 AC_C_BIGENDIAN 159 AC_CHECK_SIZEOF(int) 160 AC_CHECK_SIZEOF(long) 161 AC_CHECK_SIZEOF(long long) 162 AC_CHECK_SIZEOF(void *) 163 164 SIZEOF_LONG="${ac_cv_sizeof_long}" 165 SIZEOF_LONG_LONG="${ac_cv_sizeof_long_long}" 166 SIZEOF_VOID_P="${ac_cv_sizeof_void_p}" 167 SIZEOF_INT="${ac_cv_sizeof_int}" 168 57 169 58 170 AC_CHECK_FUNCS(sysinfo) … … 105 217 106 218 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'` 219 if test "$with_install" != "yes"; then 220 INSTALL_PREFIX=$with_install 221 else 222 INSTALL_PREFIX=$prefix 223 fi 224 225 if test "${libdir}" != "${prefix}/lib"; then 226 LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}" 227 else 228 LIB_SEARCH_DIRS="-L${libdir}" 229 fi 230 231 SVN_VERSION=`svnversion $srcdir` 111 232 112 233 make_command="" … … 122 243 fi 123 244 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" ; then132 ENABLE_LANG="yes"133 fi134 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" ; then143 ENABLE_GUI="yes"144 fi145 146 TCL_VERSION="8.4"147 for dir in \148 ${exec_prefix} \149 ${exec_prefix}/lib ; do150 tclconfig="${dir}/tclConfig.sh"151 if test -f "$tclconfig" ; then152 . $tclconfig153 break154 fi155 done156 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" ; then173 tclsh="tclsh${TCL_VERSION}"174 if test "${with_tclsh}" = "yes" ; then175 AC_PATH_PROG(TCLSH, ${tclsh}, [], [${exec_prefix}/bin:${PATH}])176 else177 AC_PATH_PROG(TCLSH, ${tclsh}, [], [${with_tclsh}/bin:${with_tclsh}])178 fi179 if test "x${TCLSH}" = "x" ; then180 AC_ERROR([can't find tclsh])181 fi182 fi183 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.0196 VTK_TCL_DIR=""197 198 ENABLE_VTK=199 if test "$with_vtk" != "no" ; then200 if test "$with_vtk" != "yes" ; then201 VTK_VERSION=$with_vtk202 fi203 if test "x$with_vtk" != "x" ; then204 ENABLE_VTK=yes205 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/lib213 do214 if test -d "$path/vtk-$VTK_VERSION" ; then215 VTK_TCL_DIR="$path/vtk-$VTK_VERSION"216 fi217 if test "x${VTK_TCL_DIR}" != "x" ; then218 break219 fi220 done221 fi222 else223 if test "${ENABLE_GUI}" = "yes" ; then224 AC_MSG_WARN([VTK missing: Rappture GUI requires VTK for some features])225 fi226 fi227 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" ; then239 ENABLE_VTK_DICOM="yes"240 fi241 AC_MSG_RESULT([$enable_vtkdicom])242 243 RP_LANG_MATLAB244 RP_LANG_OCTAVE245 RP_LANG_PERL246 RP_LANG_PYTHON247 RP_LANG_JAVA248 RP_LANG_R249 RP_LANG_RUBY250 251 RP_BASE=`pwd`252 253 SC_ENABLE_SHARED254 255 #--------------------------------------------------------------------256 # This macro figures out what flags to use with the compiler/linker257 # when building shared/static debug/optimized objects. This information258 # is all taken from the tclConfig.sh file.259 #--------------------------------------------------------------------260 261 if test -f "${exec_prefix}/lib/tclConfig.sh" ; then262 . ${exec_prefix}/lib/tclConfig.sh263 fi264 if test -f "${exec_prefix}/lib/tkConfig.sh" ; then265 . ${exec_prefix}/lib/tkConfig.sh266 fi267 268 # -----------------------------------------------------------------------269 #270 # Compiler characteristics:271 # Check for existence of types of size_t and pid_t272 #273 # -----------------------------------------------------------------------274 275 AC_C_BIGENDIAN276 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 287 245 #-------------------------------------------------------------------- 288 246 # Set the default compiler switches based on the --enable-symbols … … 290 248 #-------------------------------------------------------------------- 291 249 250 SC_CONFIG_CFLAGS 292 251 SC_ENABLE_SYMBOLS 293 294 295 #--------------------------------------------------------------------296 # search for ffmpeg libraries libavcodec, libavformat, libswscale297 #--------------------------------------------------------------------298 if test "${with_ffmpeg}" != "no" ; then299 if test "${with_ffmpeg}" = "yes" ; then300 AC_PATH_PROG(FFMPEG, ffmpeg, [], $PATH)301 else302 AC_PATH_PROG(FFMPEG, ffmpeg, [], [${with_ffmpeg}/bin:${with_ffmpeg}])303 fi304 if test "${FFMPEG}x" != "x" ; then305 AC_DEFINE(HAVE_FFMPEG, 1, [Render servers can use ffmpeg])306 fi307 fi308 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 1311 ])312 313 HAVE_FFMPEG_LIBS=""314 if test "${with_ffmpeg}" != "no"; then315 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" \) ]] ; then323 HAVE_FFMPEG_LIBS="yes"324 AC_DEFINE(BUILD_with_ffmpeg, 1, [Build rappture with ffmpeg widgets])325 fi326 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 1363 #include <stdlib.h>364 #ifdef HAVE_FFMPEG_AVCODEC_H365 # include <ffmpeg/avcodec.h>366 #endif367 #ifdef HAVE_LIBAVCODEC_AVCODEC_H368 # include <libavcodec/avcodec.h>369 #endif370 int x = AVMEDIA_TYPE_VIDEO;371 ],, ac_avmedia_type_video="yes", ac_avmedia_type_video="no")372 if test "$ac_avmedia_type_video" == "yes" ; then373 AC_DEFINE(HAVE_AVMEDIA_TYPE_VIDEO,1,[Define if AVMEDIA_TYPE_VIDEO enum exists. ])374 fi375 fi376 252 377 253 AC_SUBST(CFLAGS_DEBUG) 378 254 AC_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)385 255 AC_SUBST(HAVE_INTTYPES_H) 386 AC_SUBST(HAVE_RUBY_DEVEL)387 256 AC_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)394 257 AC_SUBST(LIB_SEARCH_DIRS) 395 258 AC_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)403 259 AC_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)435 260 AC_SUBST(SHLIB_CFLAGS) 436 261 AC_SUBST(SHLIB_LD) … … 442 267 AC_SUBST(SIZEOF_VOID_P) 443 268 AC_SUBST(STLIB_LD) 444 AC_SUBST(TCLSH)445 269 AC_SUBST(TCL_INC_SPEC) 446 270 AC_SUBST(TCL_LIB_SPEC) … … 451 275 AC_SUBST(TCL_SHLIB_LDFLAGS) 452 276 AC_SUBST(TCL_SHLIB_SUFFIX) 453 AC_SUBST(TCL_VERSION)454 AC_SUBST(TCL_VERSION)455 277 AC_SUBST(TK_INC_SPEC) 456 278 AC_SUBST(TK_LIB_SPEC) … … 462 284 AC_SUBST(TK_XLIBSW) 463 285 AC_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] ) 286 AC_SUBST(X_INCLUDES) 287 AC_SUBST(X_LIBRARIES) 288 AC_SUBST(WORDSIZE) 289 AC_SUBST(RAPPTURE_MAJOR_VERSION) 290 AC_SUBST(RAPPTURE_MINOR_VERSION) 291 AC_SUBST(RAPPTURE_RELEASE_SERIAL) 292 AC_SUBST(RAPPTURE_VERSION) 293 AC_SUBST(WITH_VTK) 294 AC_SUBST(WITH_R) 295 AC_SUBST(WITH_JAVA) 296 AC_SUBST(WITH_MATLAB) 297 AC_SUBST(WITH_MKOCTFILE2) 298 AC_SUBST(WITH_MKOCTFILE3) 299 AC_SUBST(WITH_OCTAVE) 300 AC_SUBST(WITH_PERL) 301 AC_SUBST(WITH_PYTHON) 302 AC_SUBST(WITH_RUBY) 303 AC_SUBST(WITH_RUBY_SITELIBDIR) 304 AC_SUBST(WITH_TCL) 305 AC_SUBST(WITH_VTK) 470 306 471 307 dnl read Makefile.in and write Makefile 472 308 AC_CONFIG_FILES([ 473 309 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 603 328 ]) 604 329 AC_OUTPUT 605 330 -
branches/1.5/lang/Makefile.in
r3745 r5906 17 17 HAVE_RUBY_H = @HAVE_RUBY_H@ 18 18 RUBY = @RUBY@ 19 WITH_RUBY = @WITH_RUBY@ 19 20 PERL = @PERL@ 20 21 TCLSH = @TCLSH@ … … 34 35 LANGS += python 35 36 endif 36 ifneq ($( RUBY),)37 ifneq ($(WITH_RUBY), "no") 37 38 ifeq ($(HAVE_RUBY_H),yes) 38 39 LANGS += ruby … … 52 53 endif 53 54 54 .PHONY: all install test clean distclean $(LANGS) 55 .PHONY: all install test clean distclean $(LANGS) examples 55 56 56 all: 57 make -C ../src install 57 all: 58 58 for i in $(LANGS) ; do \ 59 59 $(MAKE) -C $$i all || exit 1 ;\ 60 60 done 61 62 install:63 61 for i in $(LANGS) ; do \ 64 62 $(MAKE) -C $$i install || exit 1 ;\ 63 done 64 $(MAKE) -C examples all || exit 1 65 66 install: all 67 $(MAKE) -C examples install || exit 1 68 69 test: 70 for i in $(LANGS) ; do \ 71 $(MAKE) -C $$i test || exit 1 ;\ 65 72 done 66 73 … … 74 81 $(MAKE) -C $$i clean ;\ 75 82 done 83 $(MAKE) -C examples clean 76 84 77 85 distclean: … … 79 87 $(MAKE) -C $$i distclean ;\ 80 88 done 89 $(MAKE) -C examples distclean 81 90 $(RM) Makefile *~ -
branches/1.5/lang/R/Makefile.in
r3745 r5906 21 21 R = @R@ 22 22 23 coresrcdir = `pwd`/$(srcdir)/../../src/core24 corelibdir = `pwd`/../../src/core25 23 R_flags = --configure-args='--with-rappture-include=$(includedir) \ 26 24 --with-rappture-lib=$(libdir)' -
branches/1.5/lang/cf/rpLangJava.m4
r5905 r5906 30 30 ${JAVA_HOME} \ 31 31 /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* \ 32 35 /opt/sun-jdk-1.6* \ 33 36 /opt/icedtea6-* \ -
branches/1.5/lang/java/Makefile.in
r1944 r5906 33 33 SHLIB_LD = @SHLIB_LD@ 34 34 SHLIB_CFLAGS = @SHLIB_CFLAGS@ 35 SHLIB_LDFLAGS = @ SHLIB_LDFLAGS@35 SHLIB_LDFLAGS = @CC_SEARCH_FLAGS@ 36 36 SHLIB_SUFFIX = @SHLIB_SUFFIX@ 37 37 CFLAGS_DEFAULT = @CFLAGS_DEFAULT@ 38 LIB_RUNTIME_DIR = $(libdir) 38 39 CFLAGS = ${CFLAGS_DEFAULT} ${CFLAGS_WARNING} ${SHLIB_CFLAGS} 39 40 LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@ … … 42 43 RM = rm -f 43 44 44 INCLUDES = $(JAVA_INCLUDES) -I $(srcdir)/../../src/core-I .45 LIBS = -L ../../src/core-lrappture45 INCLUDES = $(JAVA_INCLUDES) -I$(includedir) -I . 46 LIBS = -L$(libdir) -lrappture 46 47 47 48 CC_SWITCHES = $(CFLAGS) $(CFLAGS_DEBUG) $(SHLIB_CFLAGS) $(INCLUDES) $(DEFINES) -
branches/1.5/lang/matlab/Makefile.in
r1944 r5906 24 24 matlabdir = $$RAPPTURE_INSTALL_DIR/lib/matlab 25 25 26 INCLUDES = \ 27 -I$(srcdir)/../../src/core \ 28 -I$(prefix)/include 26 INCLUDES = -I$(includedir) 27 29 28 DEFINES = -g 30 LIBS = -L../../src/core-L$(libdir) -lrappture29 LIBS = -L$(libdir) -lrappture 31 30 32 31 MEX_FLAGS = $(MEX_ARCH) $(INCLUDES) $(DEFINES) -
branches/1.5/lang/octave/octave2/Makefile.in
r3471 r5906 20 20 INCLUDES = \ 21 21 -I$(srcdir) \ 22 -I$(srcdir)/../../../src/core \ 23 -I$(prefix)/include 22 -I$(includedir) 24 23 DEFINES = 25 LIBS = -L ../../../src/core-lrappture24 LIBS = -L$(libdir) -lrappture 26 25 OCT_FLAGS = $(INCLUDES) $(DEFINES) 27 26 -
branches/1.5/lang/octave/octave3/Makefile.in
r3471 r5906 20 20 INCLUDES = \ 21 21 -I$(srcdir) \ 22 -I$(srcdir)/../../../src/core \ 23 -I$(prefix)/include 22 -I$(includedir) 24 23 DEFINES = 25 LIBS = -L ../../../src/core-lrappture24 LIBS = -L$(libdir) -lrappture 26 25 OCT_FLAGS = $(INCLUDES) $(DEFINES) 27 26 -
branches/1.5/lang/perl/Makefile.PL.in
r1083 r5906 21 21 ); 22 22 } 23 @RAPPTURE_INC_SEARCHPATH = ( "@ srcdir@/../../src/core", "@prefix@/include",23 @RAPPTURE_INC_SEARCHPATH = ( "@prefix@/include", 24 24 "../include", "/usr/local/include", "/opt/include"); 25 25 $RAPPTURE_INC = "rappture.h"; … … 29 29 "/opt/expat-2.0.0/lib", "/opt/expat/lib" ); 30 30 $EXPAT_INC="expat.h"; 31 @RAPPTURE_LIB_SEARCHPATH = ( " ../../../src/core", "@prefix@/lib",31 @RAPPTURE_LIB_SEARCHPATH = ( "@prefix@/lib", 32 32 "@libdir@", 33 33 "../src", "/usr/local/lib", "/opt/lib" ); -
branches/1.5/lang/perl/Makefile.in
r2549 r5906 60 60 INCLUDES = \ 61 61 -I$(srcdir) \ 62 -I$( srcdir)/../../src/core\62 -I$(includedir) \ 63 63 -I$(archlibexp)/CORE 64 64 65 65 LIBS = \ 66 -L ../../src/core-lrappture \66 -L$(libdir) -lrappture \ 67 67 $(PERL_LIBSPEC) \ 68 68 -lexpat -
branches/1.5/lang/python/Makefile.in
r3471 r5906 24 24 PYTHON_VERSION = @PYTHON_VERSION@ 25 25 26 python_flags = --library-dirs=$(libdir) :../../src/core\27 --include-dirs=$( srcdir)/../../src/core:$(PYTHON_INCDIR)26 python_flags = --library-dirs=$(libdir) \ 27 --include-dirs=$(includedir):$(PYTHON_INCDIR) 28 28 pythonlib = $(libdir)/python$(PYTHON_VERSION)/site-packages 29 29 envfile = python.env -
branches/1.5/lang/python/setup.py.in
r5410 r5906 4 4 tmpdir = 'build/tmp/' 5 5 srcdir = '@srcdir@/Rappture/' 6 incdir = '@ srcdir@/../../src/core'7 libdir = '@ srcdir@/../../src/core'6 incdir = '@includedir@' 7 libdir = '@libdir@' 8 8 9 9 library_module = Extension('Rappture.library', -
branches/1.5/lang/ruby/Makefile.in
r3471 r5906 36 36 CFLAGS = @CFLAGS@ @SHLIB_CFLAGS@ 37 37 INCLUDES = -I$(srcdir) \ 38 -I$(srcdir)/../../src/core \39 38 -I$(includedir) \ 40 39 $(RUBY_CPPFLAGS) … … 49 48 50 49 LIBS = \ 51 -L ../../src/core-lrappture \50 -L$(libdir) -lrappture \ 52 51 $(RUBY_LIBRUBYARG) 53 52 -
branches/1.5/lang/ruby/build.rb.in
r1081 r5906 11 11 cxxflags = "@CXXFLAGS@" 12 12 srcdir = "@srcdir@" 13 libdir = "@libdir@" 14 includedir = "@includedir@" 13 15 install = "@INSTALL@" 14 16 shlib_cflags = "@SHLIB_CFLAGS@" … … 57 59 f.printf("CFLAGS = #{cxxflags}\n") 58 60 f.printf("CXX_DLFLAGS = #{cxx_dlflags}\n") 59 f.printf("INCLUDES = -I$(incdir) -I#{ srcdir}/../../src/core-I$(archdir)/\n")61 f.printf("INCLUDES = -I$(incdir) -I#{includedir} -I$(archdir)/\n") 60 62 f.printf("INSTALL = #{install}\n") 61 63 f.printf("SHLIB_FLAGS = $(CFLAGS) $(CXX_DLFLAGS) $(LDFLAGS) $(INCLUDES)\n\n") … … 63 65 f.printf("SHLIB_LD = #{ldshared}\n") 64 66 f.printf("LDFLAGS = #{ldflags}\n") 65 f.printf("LIBS = -L ../../src/core-lrappture #{libs}\n\n")67 f.printf("LIBS = -L#{libdir} -lrappture #{libs}\n\n") 66 68 f.printf("package = $(TARGET).$(DLEXT)\n\n") 67 69 f.printf("all: extension\n\n") -
branches/1.5/lang/tcl/Makefile.in
r1944 r5906 9 9 prefix = @prefix@ 10 10 11 destdir = $(libdir)/Rappture$( PACKAGE_VERSION)11 destdir = $(libdir)/Rappture$(VERSION) 12 12 13 PACKAGE_VERSION = @PACKAGE_VERSION@ 14 13 AR = ar 14 CC = @CC@ 15 CFLAGS = @CFLAGS@ 16 CFLAGS_DEBUG = @CFLAGS_DEBUG@ 17 CFLAGS_DEFAULT = @CFLAGS_DEFAULT@ 18 CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@ 19 CXX = @CXX@ 15 20 INSTALL = @INSTALL@ 16 17 CXX = @CXX@ 18 CC = @CC@ 19 CFLAGS_DEBUG = @CFLAGS_DEBUG@ 20 CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@ 21 STLIB_LD = @STLIB_LD@ 21 LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@ 22 LN_S = @LN_S@ 23 MKDIR_P = @MKDIR_P@ 24 RANLIB = @RANLIB@ 25 VERSION = @RAPPTURE_VERSION@ 26 RM = rm -f 27 SHLIB_CFLAGS = @SHLIB_CFLAGS@ 22 28 SHLIB_LD = @SHLIB_LD@ 23 SHLIB_CFLAGS = @SHLIB_CFLAGS@24 29 SHLIB_LDFLAGS = @SHLIB_LDFLAGS@ 25 30 SHLIB_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 31 STLIB_LD = @STLIB_LD@ 37 32 38 33 # The script directory is moved from src/tcl. … … 51 46 $(MAKE) -C src install 52 47 $(MAKE) -C scripts install 53 $(RM) $(bindir)/tclsh54 (cd $(bindir); $(LN_S) tclsh$(TCL_VERSION) tclsh)55 $(RM) $(bindir)/wish56 (cd $(bindir); $(LN_S) wish$(TK_VERSION) wish)57 48 58 49 test: -
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 2 package ifneeded Rappture @RAPPTURE_VERSION@ [format { 2 3 set dir "%s" 3 set version @ PACKAGE_VERSION@4 set version @RAPPTURE_VERSION@ 4 5 lappend auto_path [file join $dir scripts] 5 6 namespace eval Rappture { -
branches/1.5/lang/tcl/scripts/Makefile.in
r4514 r5906 10 10 srcdir = @srcdir@ 11 11 12 AR = ar 13 CC = @CC@ 14 CFLAGS = @CFLAGS@ 15 CFLAGS_DEBUG = @CFLAGS_DEBUG@ 16 CFLAGS_DEFAULT = @CFLAGS_DEFAULT@ 17 CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@ 18 CXX = @CXX@ 12 19 INSTALL = @INSTALL@ 20 INSTALL_DATA = ${INSTALL} -m 644 13 21 INSTALL_PROGRAM = ${INSTALL} -m 755 14 INSTALL_DATA = ${INSTALL} -m 64415 22 INSTALL_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@ 23 LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@ 24 MKDIR_P = @MKDIR_P@ 25 RANLIB = @RANLIB@ 26 RM = rm -f 27 SHLIB_CFLAGS = @SHLIB_CFLAGS@ 25 28 SHLIB_LD = @SHLIB_LD@ 26 SHLIB_CFLAGS = @SHLIB_CFLAGS@27 29 SHLIB_LDFLAGS = @SHLIB_LDFLAGS@ 28 30 SHLIB_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 31 TCLSH = $(bindir)/tclsh$(TCL_VERSION) 32 TCL_VERSION = @TCL_VERSION@ 33 VERSION = @RAPPTURE_VERSION@ 34 VPATH = $(srcdir) 37 35 38 36 destdir = $(prefix)/lib/Rappture$(VERSION)/scripts 39 37 40 38 FILES = \ 41 $(srcdir)/exec.tcl \42 $(srcdir)/getopts.tcl \43 39 $(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 50 41 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 42 all: 64 43 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 # 49 install: 95 50 $(MKDIR_P) -m 0755 $(destdir) 96 51 for i in $(FILES); do \ 97 52 $(INSTALL) -m 0444 $$i $(destdir) ; \ 98 53 done 54 $(TCLSH) $(srcdir)/../../cf/mkindex.tcl --srcdir $(destdir) \ 55 --outfile tclIndex 56 $(RM) $(destdir)/tclIndex 99 57 $(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 125 59 126 60 clean: 127 $(RM) tclIndex128 61 129 62 distclean: clean -
branches/1.5/lang/tcl/src/Makefile.in
r5471 r5906 10 10 srcdir = @srcdir@ 11 11 12 CC = @CC@ 13 CFLAGS = @CFLAGS@ -fPIC 14 CFLAGS_DEBUG = @CFLAGS_DEBUG@ -Wall 15 CFLAGS_DEFAULT = @CFLAGS_DEFAULT@ 16 CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@ 17 CXX = @CXX@ 18 INSTALL = @INSTALL@ 19 LIB_RUNTIME_DIR = $(libdir) 20 LIB_SEARCH_DIRS = @LIB_SEARCH_DIRS@ 21 MKDIR_P = @MKDIR_P@ 12 22 SHELL = @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@ 23 SHLIB_CFLAGS = @SHLIB_CFLAGS@ 24 SHLIB_LD = @SHLIB_LD@ 25 SHLIB_LDFLAGS = @CC_SEARCH_FLAGS@ 26 SHLIB_SUFFIX = @SHLIB_SUFFIX@ 20 27 STLIB_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@ 28 SVN_VERSION = @SVN_VERSION@ 29 29 TCL_LIB_SPEC = @TCL_LIB_SPEC@ 30 HAVE_FFMPEG = @HAVE_FFMPEG_LIBS@ 31 HAVE_NCURSES = @HAVE_LIBNCURSES@ 30 VERSION = @RAPPTURE_VERSION@ 32 31 33 32 CC_SWITCHES = $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES) 34 33 CXX_SWITCHES = $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES) 35 34 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/') 35 INCLUDES = -I$(srcdir) \ 36 -I$(includedir) 37 43 38 DEFINES = -DSVN_VERSION=\"$(SVN_VERSION)\" \ 44 -DRAPPTURE_VERSION=\"$( RAPPTURE_VERSION)\"39 -DRAPPTURE_VERSION=\"$(VERSION)\" 45 40 46 41 RANLIB = @RANLIB@ … … 51 46 CDEBUGFLAGS = -g -Wall 52 47 53 LIBS = \54 -L../../../src/core-lrappture \55 $(TCL_LIB_SPEC) -lncurses-lexpat -lz -lm -lstdc++48 LIBS = \ 49 -L$(libdir) -lrappture \ 50 $(TCL_LIB_SPEC) -lexpat -lz -lm -lstdc++ 56 51 57 52 OBJS = \ 58 Rappture_Init.o \ 59 RpCurses.o \ 60 RpDaemon.o \ 53 Rappture_Init.o \ 54 RpSwitch.o \ 61 55 RpEncodeTclInterface.o \ 62 RpOp.o \63 RpRlimit.o \64 RpRusage.o \65 RpSignal.o \66 RpSlice.o \67 RpSysinfo.o \68 Switch.o \69 56 RpUnitsTclInterface.o \ 70 57 RpUtilsTclInterface.o 71 58 72 ifeq ($(WIN32),"")73 OBJS += RpWinResource.o74 endif75 76 ifeq ($(HAVE_LIBCURSES),yes)77 OBJS += RpCurses.o78 LIBS += -lncurses79 endif80 81 59 # Not using RpLibraryTclInterface.o \ 82 60 83 name = Rappture$( RAPPTURE_VERSION)61 name = Rappture$(VERSION) 84 62 libname = $(name) 85 63 lib = $(libname)$(SHLIB_SUFFIX) -
branches/1.5/lang/tcl/src/RpEncodeTclInterface.cc
r5679 r5906 15 15 #include "RpEncode.h" 16 16 extern "C" { 17 #include " Switch.h"17 #include "RpSwitch.h" 18 18 extern Tcl_AppInitProc RpEncoding_Init; 19 19 } … … 179 179 Tcl_Obj *const *objv) 180 180 { 181 EncodeSwitches switches; 182 const char* string; 183 int last; 184 int n; 185 int nBytes; 186 181 187 if (objc < 1) { 182 188 Tcl_AppendResult(interp, "wrong # args: should be \"", … … 185 191 return TCL_ERROR; 186 192 } 187 EncodeSwitches switches;188 193 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, 191 195 SWITCH_OBJV_PARTIAL); 192 196 if (n < 0) { 193 197 return TCL_ERROR; 194 198 } 195 int last;196 199 last = n + 1; 197 200 if ((objc - last) != 1) { … … 201 204 return TCL_ERROR; 202 205 } 203 int nBytes;204 const char* string;205 206 string = (const char*)Tcl_GetByteArrayFromObj(objv[last], &nBytes); 206 207 if (nBytes <= 0) { … … 251 252 Tcl_Obj *const *objv) 252 253 { 254 DecodeSwitches switches; 255 int n; 256 int numBytes; 257 const char *string; 258 int last; 259 253 260 if (objc < 1) { 254 261 Tcl_AppendResult(interp, "wrong # args: should be \"", … … 258 265 } 259 266 260 DecodeSwitches switches;261 267 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, 264 269 SWITCH_OBJV_PARTIAL); 265 270 if (n < 0) { 266 271 return TCL_ERROR; 267 272 } 268 int last;269 273 last = n + 1; 270 274 if ((objc - last) != 1) { … … 274 278 return TCL_ERROR; 275 279 } 276 int numBytes;277 const char *string;278 280 279 281 string = Tcl_GetStringFromObj(objv[last], &numBytes); -
branches/1.5/pkgs/DicomToVtk/Makefile.in
r5901 r5906 71 71 72 72 OBJS = \ 73 RpDicomToVtk.o73 dicomToVtk.o 74 74 75 75 name = RapptureDicomToVtk$(version) -
branches/1.5/pkgs/DxToVtk/dxToVtk.c
r5905 r5906 427 427 isUniform = 1; 428 428 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", 430 430 count[0], count[1], count[2]); 431 431 Tcl_AppendResult(interp, mesg, (char *)NULL); … … 446 446 if (nAxes == 3) { 447 447 Tcl_AppendResult(interp, "too many delta statements", 448 448 (char *)NULL); 449 449 return TCL_ERROR; 450 450 } … … 502 502 " items %d data follows", &nPoints) == 1) { 503 503 // 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'.", 505 505 (char *)NULL); 506 506 return TCL_ERROR; … … 571 571 " times %d data follows", &nPoints) == 1) { 572 572 /* 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.", 574 574 (char *)NULL); 575 575 return TCL_ERROR; … … 583 583 if (isUniform) { 584 584 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", 586 586 (char *)NULL); 587 587 return TCL_ERROR; 588 588 } 589 589 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); 591 591 Tcl_AppendResult(interp, mesg, (char *)NULL); 592 592 return TCL_ERROR; … … 801 801 /* 802 802 * ------------------------------------------------------------------------ 803 * R pDxToVtk_Init --803 * Rappture_dx_to_vtk_Init -- 804 804 * 805 805 * Invoked when the Rappture GUI library is being initialized … … 811 811 */ 812 812 int 813 R pDxToVtk_Init(Tcl_Interp *interp)813 Rappture_dx_to_vtk_Init(Tcl_Interp *interp) 814 814 { 815 815 /* install the widget command */
Note: See TracChangeset
for help on using the changeset viewer.