Changeset 4867


Ignore:
Timestamp:
Dec 13, 2014 1:10:09 PM (7 years ago)
Author:
gah
Message:
 
Location:
branches/r9
Files:
11 added
18 edited
1 moved

Legend:

Unmodified
Added
Removed
  • branches/r9/Makefile.in

    r4866 r4867  
    6666targets = \
    6767        blt builder cmake examples expat expect gui htmlwidget itcl \
    68         itk lang librappture optimizer shape sqlitetcl tcl tcllib \
     68        itk lang lib optimizer shape sqlitetcl tcl tcllib \
    6969        tdom tester tk tkimg tls video vtk zlib  packages
    7070
     
    7373.NOTPARALLEL:
    7474
    75 all: gui packages lang
    76 
    77 fullpkg: tester builder packages
     75all: gui lang all_packages
     76
     77all_packages: runner tester builder packages video optimizer
    7878
    7979# Aliases for package directory names.
     
    9191jpeg = jpeg-8d
    9292libpng = libpng-1.6.15
    93 librappture = librappture
     93lib = lib
    9494openssl = openssl-1.0.1j
    9595optimizer = optimizer
     
    109109builder = builder
    110110lang = lang
     111video = video
     112runner = runner
    111113
    112114subdirs = \
    113115        $(blt) $(builder) $(cmake) $(examples) $(expat) $(expect) \
    114         $(gui) $(htmlwidget) $(itcl) $(itk) $(lang) $(librappture)  \
     116        $(gui) $(htmlwidget) $(itcl) $(itk) $(lang) $(lib)  \
    115117        $(optimizer) $(shape) \
    116118        $(sqlitetcl) $(tcl) $(tcllib) $(tdom) $(tester) $(tk) $(tkimg) \
    117119        $(tls) $(vtk) $(zlib)
    118120
    119 ifneq ("$(HAVE_VTK)", )
     121ifeq ("$(HAVE_VTK)", 1)
    120122  vtk_timestamp   = $(vtk)/timestamp
    121123  cmake_timestamp = $(cmake)/timestamp
     
    474476
    475477gui_flags =     \
    476         --with-tclsh="$(bindir)/tclsh8.4" \
    477         --enable-shared \
    478478        $(common_flags)
    479479
     
    492492touch-gui:
    493493        $(touch_gui)
    494 force-gui: $(librappture)/timestamp \
     494force-gui: $(lib)/timestamp \
    495495                  $(blt)/timestamp \
    496496                  $(itk)/timestamp \
     
    525525endef
    526526
    527 $(gui)/timestamp: $(librappture)/timestamp \
     527$(gui)/timestamp: $(lib)/timestamp \
    528528                  $(blt)/timestamp \
    529529                  $(itk)/timestamp \
     
    766766endef
    767767
    768 $(lang)/timestamp: $(librappture)/timestamp  $(tcl)/timestamp $(itcl)/timestamp
     768$(lang)/timestamp: $(lib)/timestamp  $(tcl)/timestamp $(itcl)/timestamp
    769769        + $(clean_lang)
    770770        + $(fetch_lang)
     
    776776
    777777# -------------------------------------------------------------------------
    778 #  LIBRAPPTURE
    779 # -------------------------------------------------------------------------
    780 
    781 librappture_flags =     \
    782         --enable-shared \
    783         $(common_flags)
    784 
    785 librappture: $(librappture)/timestamp
    786 
    787 clean-librappture:
    788         $(clean_librappture)
    789 fetch-librappture:
    790         $(fetch_librappture)
    791 configure-librappture:
    792         $(configure_librappture)
    793 build-librappture:
    794         $(build_librappture)
    795 install-librappture:
    796         $(install_librappture)
    797 touch-librappture:
    798         $(touch_librappture)
    799 force-librappture:
    800         + $(clean_librappture)
    801         + $(fetch_librappture)
    802         + $(configure_librappture)
    803         + $(build_librappture)
    804         + $(install_librappture)
    805         + $(touch_librappture)
    806 
    807 define clean_librappture
    808         $(RM) -r $(librappture)
    809 endef
    810 define fetch_librappture
    811 endef
    812 define configure_librappture
    813         $(MKDIR_P) $(librappture)
    814         cd $(librappture); $(srcdir)/lib/configure $(librappture_flags)
    815 endef
    816 define build_librappture
    817         $(MAKE)  -C $(librappture) all
    818 endef
    819 define install_librappture
    820         $(MAKE) -C $(librappture) install
    821 endef
    822 define touch_librappture
    823         touch $(librappture)/timestamp
    824 endef
    825 
    826 $(librappture)/timestamp:
    827         + $(clean_librappture)
    828         + $(fetch_librappture)
    829         + $(configure_librappture)
    830         + $(build_librappture)
    831         + $(install_librappture)
    832         + $(touch_librappture)
     778#  LIB
     779# -------------------------------------------------------------------------
     780
     781lib_flags =     \
     782        --enable-shared \
     783        $(common_flags)
     784
     785lib: $(lib)/timestamp
     786
     787clean-lib:
     788        $(clean_lib)
     789fetch-lib:
     790        $(fetch_lib)
     791configure-lib:
     792        $(configure_lib)
     793build-lib:
     794        $(build_lib)
     795install-lib:
     796        $(install_lib)
     797touch-lib:
     798        $(touch_lib)
     799force-lib:
     800        + $(clean_lib)
     801        + $(fetch_lib)
     802        + $(configure_lib)
     803        + $(build_lib)
     804        + $(install_lib)
     805        + $(touch_lib)
     806
     807define clean_lib
     808        $(RM) -r $(lib)
     809endef
     810define fetch_lib
     811endef
     812define configure_lib
     813        $(MKDIR_P) $(lib)
     814        cd $(lib); $(srcdir)/lib/configure $(lib_flags)
     815endef
     816define build_lib
     817        $(MAKE)  -C $(lib) all
     818endef
     819define install_lib
     820        $(MAKE) -C $(lib) install
     821endef
     822define touch_lib
     823        touch $(lib)/timestamp
     824endef
     825
     826$(lib)/timestamp:
     827        + $(clean_lib)
     828        + $(fetch_lib)
     829        + $(configure_lib)
     830        + $(build_lib)
     831        + $(install_lib)
     832        + $(touch_lib)
    833833
    834834# -------------------------------------------------------------------------
     
    871871define configure_optimizer
    872872        $(MKDIR_P) $(optimizer)
    873         cd $(optimizer); $(srcdir)/packages/$(optimizer)/src/configure $(optimizer_flags)
     873        cd $(optimizer); $(srcdir)/packages/$(optimizer)/configure $(optimizer_flags)
    874874endef
    875875define build_optimizer
     
    10581058define install_tcl
    10591059        $(MAKE) -C $(tcl) install
     1060        $(RM) $(bindir)/tclsh
     1061        (cd $(bindir); $(LN_S) tclsh$(TCL_VERSION) tclsh)
    10601062endef
    10611063define touch_tcl
     
    12891291define install_tk
    12901292        $(MAKE) -C $(tk) install
     1293        $(RM) $(bindir)/wish
     1294        (cd $(bindir); $(LN_S) wish$(TK_VERSION) wish)
    12911295endef
    12921296define touch_tk
     
    14411445touch-video:
    14421446        $(touch_video)
    1443 force-video: $(gui)/timestamp
     1447force-video: #$(gui)/timestamp
    14441448        + $(clean_video)
    14451449        + $(fetch_video)
     
    14681472endef
    14691473
    1470 $(video)/timestamp: $(gui)/timestamp
     1474$(video)/timestamp: #$(gui)/timestamp
    14711475        + $(clean_video)
    14721476        + $(fetch_video)
  • branches/r9/builder/Makefile.in

    r3471 r4867  
    1717top_builddir    = .
    1818
     19INSTALL         = @INSTALL@
    1920MKDIR_P         = @MKDIR_P@
    20 TCL_VERSION     = @TCL_VERSION@
    21 TCLSH           = $(bindir)/tclsh$(TCL_VERSION)
    22 INSTALL         = @INSTALL@
    23 
    2421PACKAGE_VERSION = @PACKAGE_VERSION@
     22TCLSH           = $(bindir)/tclsh
    2523
    2624version         = $(PACKAGE_VERSION)
  • branches/r9/builder/scripts/Makefile.in

    r4840 r4867  
    1010includedir      = @includedir@
    1111
    12 SHELL           = @SHELL@
    1312INSTALL         = @INSTALL@
    1413MKDIR_P         = @MKDIR_P@
    15 TCL_VERSION     = @TCL_VERSION@
    16 TCLSH           = $(bindir)/tclsh$(TCL_VERSION)
     14PACKAGE_VERSION = @PACKAGE_VERSION@
     15SHELL           = @SHELL@
     16TCLSH           = $(bindir)/tclsh
    1717VPATH           = $(srcdir)
    18 PACKAGE_VERSION = @PACKAGE_VERSION@
    1918
    2019FILES           = \
  • branches/r9/configure

    r4866 r4867  
    628628X_INCLUDES
    629629STATSDIR
     630XSUBPP
    630631VTK_VERSION
    631632VTK_TCL_DIR
     
    648649SIZEOF_INT
    649650SHLIB_LDFLAGS
    650 RUBY_VERSION_RV
    651 RUBY_PLATFORM
    652651RP_BASE
    653 PYTHON_VERSION
    654 PYTHON_SITE_PACKAGES
    655 PYTHON_SITE_DIR
    656 PYTHON_LIBDIR
    657 PYTHON_LIB
    658 PYTHON_LDFLAGS
    659 PYTHON_INCLUDES
    660 PYTHON_INCDIR
    661 PYTHON_DISTUTILS
    662 PYTHON_CFLAGS
    663 PERL_VERSION_RV
    664 PERL_VERSION
    665 PERL_VENDORLIB
    666 PERL_PRIVLIB
    667 PERL_LIBSPEC
    668 PERL_INSTALLARCHLIB
    669 PERL_INCLUDES
    670 PERL_CPPFLAGS
    671 PERL_CCFLAGS
    672 PERL_ARCHLIBEXP
    673 PERL_ARCHLIB
    674 OCTAVE_VERSION_MAJOR
    675 OCTAVE_VERSION
    676652SVN_VERSION
    677 MKOCTFILE3
    678 MKOCTFILE2
    679 MEX_ARCH
    680653MAKE
    681654LIB_SEARCH_DIRS
    682 JAVA_INC_SPEC
    683 JAVA_INC_DIR
    684 JAVA_HOME
    685655INSTALL_PREFIX
    686 HAVE_RUBY_DEVEL
    687656HAVE_INTTYPES_H
    688 HAVE_FFMPEG_LIBS
    689657ENABLE_VTK_DICOM
    690658ENABLE_VTK
    691659ENABLE_GUI
    692660ENABLE_LANG
    693 FFMPEG
    694661LDFLAGS_DEFAULT
    695662CFLAGS_DEFAULT
    696 host_os
    697 host_vendor
    698 host_cpu
    699 host
    700 build_os
    701 build_vendor
    702 build_cpu
    703 build
    704 HAVE_RUBY_H
    705 RUBY_SITELIBDIR
    706 RUBY_LIBRUBYARG_STATIC
    707 RUBY_LIBRUBYARG
    708 RUBY_LIBS
    709 RUBY_LDFLAGS
    710 RUBY_CXXFLAGS
    711 RUBY_CFLAGS
    712 RUBY_CPPFLAGS
    713 RUBY_VERSION_CODE
    714 RUBY
    715 R
    716 JAVAH
    717 JAVAC
    718 JAVA
    719 PYTHON
    720 XSUBPP
    721 PERL
    722 mkoctfile2
    723 mkoctfile3
    724 MKOCTFILE
    725 OCTAVE
    726 MCC
    727 MEXEXT
    728 MEX
    729 MATLAB
    730663INSTALL_STUB_LIB
    731664INSTALL_LIB
     
    829762with_vtk
    830763enable_vtkdicom
    831 with_matlab
    832 with_octave
    833 with_mkoctfile3
    834 with_mkoctfile2
    835 with_perl
    836 with_python
    837 with_java
    838 with_R
    839 with_ruby
    840 with_ruby_sitelibdir
    841764enable_shared
    842765enable_symbols
     
    14581381  --x-includes=DIR    X include files are in DIR
    14591382  --x-libraries=DIR   X library files are in DIR
    1460 
    1461 System types:
    1462   --build=BUILD     configure for building on BUILD [guessed]
    1463   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
    14641383_ACEOF
    14651384fi
     
    14941413  --with-ffmpeg=DIR       location of ffmpeg [default=yes]
    14951414  --with-vtk=version      VTK library version [default=6.1]
    1496   --with-matlab=DIR       location of matlab and mex compiler [default=yes]
    1497   --with-octave=DIR       path of default octave compiler `mkoctfile'
    1498                           [default=yes]
    1499   --with-mkoctfile3=DIR   path of octave compiler `mkoctfile' [default=no]
    1500   --with-mkoctfile2=DIR   path of octave compiler `mkoctfile' [default=no]
    1501   --with-perl=DIR         location of perl [default=yes]
    1502   --with-python=DIR       location of python [default=yes]
    1503   --with-java=DIR         location of java [default=yes]
    1504   --with-R=DIR            location of R interpreter [default=yes]
    1505   --with-ruby=PATH        path to the ruby interpreter [[ruby]]
    1506   --with-ruby-sitelibdir=PATH
    1507                           path to install ruby scripts [[auto-detect]]
    15081415
    15091416Some influential environment variables:
     
    27852692ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
    27862693
    2787 
    2788 ac_config_headers="$ac_config_headers lib/rappture/config.h"
    27892694
    27902695
     
    75477452fi
    75487453
    7549 TCL_VERSION="8.4"
     7454TCL_VERSION="8.5"
    75507455for dir in \
    75517456 ${exec_prefix} \
     
    76337538$as_echo "$enable_vtkdicom" >&6; }
    76347539
    7635 
    7636 
    7637 # Check whether --with-matlab was given.
    7638 if test "${with_matlab+set}" = set; then :
    7639   withval=$with_matlab;
    7640 else
    7641   with_matlab=yes
    7642 fi
    7643 
    7644 
    7645 MCC=""
    7646 MEX=""
    7647 MEX_ARCH=""
    7648 MEXEXT=""
    7649 MATLAB=
    7650 if test "$with_matlab" != "no" ; then
    7651   if test "$with_matlab" = "yes" ; then
    7652     # Extract the first word of "matlab", so it can be a program name with args.
    7653 set dummy matlab; ac_word=$2
    7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    7655 $as_echo_n "checking for $ac_word... " >&6; }
    7656 if ${ac_cv_path_MATLAB+:} false; then :
    7657   $as_echo_n "(cached) " >&6
    7658 else
    7659   case $MATLAB in
    7660   [\\/]* | ?:[\\/]*)
    7661   ac_cv_path_MATLAB="$MATLAB" # Let the user override the test with a path.
    7662   ;;
    7663   *)
    7664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7665 for as_dir in $PATH
    7666 do
    7667   IFS=$as_save_IFS
    7668   test -z "$as_dir" && as_dir=.
    7669     for ac_exec_ext in '' $ac_executable_extensions; do
    7670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    7671     ac_cv_path_MATLAB="$as_dir/$ac_word$ac_exec_ext"
    7672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    7673     break 2
    7674   fi
    7675 done
    7676   done
    7677 IFS=$as_save_IFS
    7678 
    7679   ;;
    7680 esac
    7681 fi
    7682 MATLAB=$ac_cv_path_MATLAB
    7683 if test -n "$MATLAB"; then
    7684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MATLAB" >&5
    7685 $as_echo "$MATLAB" >&6; }
    7686 else
    7687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    7688 $as_echo "no" >&6; }
    7689 fi
    7690 
    7691 
    7692   else
    7693     # Extract the first word of "matlab", so it can be a program name with args.
    7694 set dummy matlab; ac_word=$2
    7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    7696 $as_echo_n "checking for $ac_word... " >&6; }
    7697 if ${ac_cv_path_MATLAB+:} false; then :
    7698   $as_echo_n "(cached) " >&6
    7699 else
    7700   case $MATLAB in
    7701   [\\/]* | ?:[\\/]*)
    7702   ac_cv_path_MATLAB="$MATLAB" # Let the user override the test with a path.
    7703   ;;
    7704   *)
    7705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7706 as_dummy="${with_matlab}/bin:${with_matlab}"
    7707 for as_dir in $as_dummy
    7708 do
    7709   IFS=$as_save_IFS
    7710   test -z "$as_dir" && as_dir=.
    7711     for ac_exec_ext in '' $ac_executable_extensions; do
    7712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    7713     ac_cv_path_MATLAB="$as_dir/$ac_word$ac_exec_ext"
    7714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    7715     break 2
    7716   fi
    7717 done
    7718   done
    7719 IFS=$as_save_IFS
    7720 
    7721   ;;
    7722 esac
    7723 fi
    7724 MATLAB=$ac_cv_path_MATLAB
    7725 if test -n "$MATLAB"; then
    7726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MATLAB" >&5
    7727 $as_echo "$MATLAB" >&6; }
    7728 else
    7729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    7730 $as_echo "no" >&6; }
    7731 fi
    7732 
    7733 
    7734   fi
    7735 fi
    7736 
    7737 if test "x$MATLAB" != "x" ; then
    7738   # Found matlab.  May be a symlink to the real binary.  Run "matlab -e"
    7739   # to tell where matlab is installed.
    7740 
    7741   matlab_bindir=`${MATLAB} -e | grep "MATLAB=" | sed s/MATLAB=//`/bin
    7742 
    7743   # Now see if we can find "mex" or "mexext" there.
    7744   # Extract the first word of "mex", so it can be a program name with args.
    7745 set dummy mex; ac_word=$2
    7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    7747 $as_echo_n "checking for $ac_word... " >&6; }
    7748 if ${ac_cv_path_MEX+:} false; then :
    7749   $as_echo_n "(cached) " >&6
    7750 else
    7751   case $MEX in
    7752   [\\/]* | ?:[\\/]*)
    7753   ac_cv_path_MEX="$MEX" # Let the user override the test with a path.
    7754   ;;
    7755   *)
    7756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7757 for as_dir in ${matlab_bindir}
    7758 do
    7759   IFS=$as_save_IFS
    7760   test -z "$as_dir" && as_dir=.
    7761     for ac_exec_ext in '' $ac_executable_extensions; do
    7762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    7763     ac_cv_path_MEX="$as_dir/$ac_word$ac_exec_ext"
    7764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    7765     break 2
    7766   fi
    7767 done
    7768   done
    7769 IFS=$as_save_IFS
    7770 
    7771   ;;
    7772 esac
    7773 fi
    7774 MEX=$ac_cv_path_MEX
    7775 if test -n "$MEX"; then
    7776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEX" >&5
    7777 $as_echo "$MEX" >&6; }
    7778 else
    7779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    7780 $as_echo "no" >&6; }
    7781 fi
    7782 
    7783 
    7784   # Extract the first word of "mexext", so it can be a program name with args.
    7785 set dummy mexext; ac_word=$2
    7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    7787 $as_echo_n "checking for $ac_word... " >&6; }
    7788 if ${ac_cv_path_MEXEXT+:} false; then :
    7789   $as_echo_n "(cached) " >&6
    7790 else
    7791   case $MEXEXT in
    7792   [\\/]* | ?:[\\/]*)
    7793   ac_cv_path_MEXEXT="$MEXEXT" # Let the user override the test with a path.
    7794   ;;
    7795   *)
    7796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7797 for as_dir in ${matlab_bindir}
    7798 do
    7799   IFS=$as_save_IFS
    7800   test -z "$as_dir" && as_dir=.
    7801     for ac_exec_ext in '' $ac_executable_extensions; do
    7802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    7803     ac_cv_path_MEXEXT="$as_dir/$ac_word$ac_exec_ext"
    7804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    7805     break 2
    7806   fi
    7807 done
    7808   done
    7809 IFS=$as_save_IFS
    7810 
    7811   ;;
    7812 esac
    7813 fi
    7814 MEXEXT=$ac_cv_path_MEXEXT
    7815 if test -n "$MEXEXT"; then
    7816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEXEXT" >&5
    7817 $as_echo "$MEXEXT" >&6; }
    7818 else
    7819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    7820 $as_echo "no" >&6; }
    7821 fi
    7822 
    7823 
    7824 
    7825   # Run "mexext" to get the expected module extension for this platform.
    7826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mex extension" >&5
    7827 $as_echo_n "checking for mex extension... " >&6; }
    7828   if test "x$MEXEXT" != "x" ; then
    7829     MEXEXT=`$MEXEXT`
    7830   else
    7831     MEXEXT="mexglx"
    7832   fi
    7833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEXEXT" >&5
    7834 $as_echo "$MEXEXT" >&6; }
    7835   # Extract the first word of "mcc", so it can be a program name with args.
    7836 set dummy mcc; ac_word=$2
    7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    7838 $as_echo_n "checking for $ac_word... " >&6; }
    7839 if ${ac_cv_path_MCC+:} false; then :
    7840   $as_echo_n "(cached) " >&6
    7841 else
    7842   case $MCC in
    7843   [\\/]* | ?:[\\/]*)
    7844   ac_cv_path_MCC="$MCC" # Let the user override the test with a path.
    7845   ;;
    7846   *)
    7847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7848 for as_dir in ${matlab_bindir}
    7849 do
    7850   IFS=$as_save_IFS
    7851   test -z "$as_dir" && as_dir=.
    7852     for ac_exec_ext in '' $ac_executable_extensions; do
    7853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    7854     ac_cv_path_MCC="$as_dir/$ac_word$ac_exec_ext"
    7855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    7856     break 2
    7857   fi
    7858 done
    7859   done
    7860 IFS=$as_save_IFS
    7861 
    7862   ;;
    7863 esac
    7864 fi
    7865 MCC=$ac_cv_path_MCC
    7866 if test -n "$MCC"; then
    7867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCC" >&5
    7868 $as_echo "$MCC" >&6; }
    7869 else
    7870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    7871 $as_echo "no" >&6; }
    7872 fi
    7873 
    7874 
    7875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mcc extension" >&5
    7876 $as_echo_n "checking for mcc extension... " >&6; }
    7877 fi
    7878 
    7879 
    7880 
    7881 # Check whether --with-octave was given.
    7882 if test "${with_octave+set}" = set; then :
    7883   withval=$with_octave;
    7884 else
    7885   with_octave=yes
    7886 fi
    7887 
    7888 
    7889 OCTAVE=
    7890 OCTAVE_VERSION=
    7891 OCTAVE_VERSION_MAJOR=
    7892 MKOCTFILE2=
    7893 MKOCTFILE3=
    7894 
    7895 if test "$with_octave" != "no" ; then
    7896   if test "$with_octave" = "yes" ; then
    7897     # Extract the first word of "octave", so it can be a program name with args.
    7898 set dummy octave; ac_word=$2
    7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    7900 $as_echo_n "checking for $ac_word... " >&6; }
    7901 if ${ac_cv_path_OCTAVE+:} false; then :
    7902   $as_echo_n "(cached) " >&6
    7903 else
    7904   case $OCTAVE in
    7905   [\\/]* | ?:[\\/]*)
    7906   ac_cv_path_OCTAVE="$OCTAVE" # Let the user override the test with a path.
    7907   ;;
    7908   *)
    7909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7910 for as_dir in $PATH
    7911 do
    7912   IFS=$as_save_IFS
    7913   test -z "$as_dir" && as_dir=.
    7914     for ac_exec_ext in '' $ac_executable_extensions; do
    7915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    7916     ac_cv_path_OCTAVE="$as_dir/$ac_word$ac_exec_ext"
    7917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    7918     break 2
    7919   fi
    7920 done
    7921   done
    7922 IFS=$as_save_IFS
    7923 
    7924   ;;
    7925 esac
    7926 fi
    7927 OCTAVE=$ac_cv_path_OCTAVE
    7928 if test -n "$OCTAVE"; then
    7929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE" >&5
    7930 $as_echo "$OCTAVE" >&6; }
    7931 else
    7932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    7933 $as_echo "no" >&6; }
    7934 fi
    7935 
    7936 
    7937     # Extract the first word of "mkoctfile", so it can be a program name with args.
    7938 set dummy mkoctfile; ac_word=$2
    7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    7940 $as_echo_n "checking for $ac_word... " >&6; }
    7941 if ${ac_cv_path_MKOCTFILE+:} false; then :
    7942   $as_echo_n "(cached) " >&6
    7943 else
    7944   case $MKOCTFILE in
    7945   [\\/]* | ?:[\\/]*)
    7946   ac_cv_path_MKOCTFILE="$MKOCTFILE" # Let the user override the test with a path.
    7947   ;;
    7948   *)
    7949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    7950 for as_dir in $PATH
    7951 do
    7952   IFS=$as_save_IFS
    7953   test -z "$as_dir" && as_dir=.
    7954     for ac_exec_ext in '' $ac_executable_extensions; do
    7955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    7956     ac_cv_path_MKOCTFILE="$as_dir/$ac_word$ac_exec_ext"
    7957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    7958     break 2
    7959   fi
    7960 done
    7961   done
    7962 IFS=$as_save_IFS
    7963 
    7964   ;;
    7965 esac
    7966 fi
    7967 MKOCTFILE=$ac_cv_path_MKOCTFILE
    7968 if test -n "$MKOCTFILE"; then
    7969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKOCTFILE" >&5
    7970 $as_echo "$MKOCTFILE" >&6; }
    7971 else
    7972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    7973 $as_echo "no" >&6; }
    7974 fi
    7975 
    7976 
    7977   else
    7978     OCTAVE=$with_octave
    7979     MKOCTFILE=`dirname $with_octave`/mkoctfile
    7980   fi
    7981 fi
    7982 
    7983 if test "x${OCTAVE}" != "x" ; then
    7984   OCTAVE_VERSION=`${OCTAVE} -v | grep version | cut -d' ' -f4`
    7985   OCTAVE_VERSION_MAJOR=`echo ${OCTAVE_VERSION} | cut -d'.' -f1`
    7986   if test "${OCTAVE_VERSION_MAJOR}" == "3" ; then
    7987     OCTAVE3=$OCTAVE
    7988     MKOCTFILE3=$MKOCTFILE
    7989   fi
    7990   if test "${OCTAVE_VERSION_MAJOR}" == "2" ; then
    7991     OCTAVE2=$OCTAVE
    7992     MKOCTFILE2=$MKOCTFILE
    7993   fi
    7994 fi
    7995 
    7996 #
    7997 # Check for octave3 before octave2 so that we can override the
    7998 # OCTAVE_VERSION variables.
    7999 #
    8000 # Rappture doesn't normally really support both octave2 and octave3
    8001 # simultaneously.  NANOhub has a hacked version of octave3 that
    8002 # looks for OCTAVE_LOADPATH before looking at OCTAVE_PATH (i.e.
    8003 # OCTAVE_PATH tells octave2 where to load the rappture bindings
    8004 # and OCTAVE_LOADPATH tells octave3 where to load).
    8005 #
    8006 # Usually you will have installed either octave2 or octave3, but
    8007 # not both.
    8008 #
    8009 
    8010 # Check if octave3 was designated *in addition* to the installed version.
    8011 # This can override the default version if they are the same versions.
    8012 
    8013 
    8014 # Check whether --with-mkoctfile3 was given.
    8015 if test "${with_mkoctfile3+set}" = set; then :
    8016   withval=$with_mkoctfile3;
    8017 else
    8018   with_mkoctfile3=no
    8019 fi
    8020 
    8021 
    8022 if test "$with_mkoctfile3" != "no" ; then
    8023   if test "$with_mkoctfile3" = "yes" ; then
    8024     # Extract the first word of "mkoctfile", so it can be a program name with args.
    8025 set dummy mkoctfile; ac_word=$2
    8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8027 $as_echo_n "checking for $ac_word... " >&6; }
    8028 if ${ac_cv_path_mkoctfile3+:} false; then :
    8029   $as_echo_n "(cached) " >&6
    8030 else
    8031   case $mkoctfile3 in
    8032   [\\/]* | ?:[\\/]*)
    8033   ac_cv_path_mkoctfile3="$mkoctfile3" # Let the user override the test with a path.
    8034   ;;
    8035   *)
    8036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8037 for as_dir in $PATH
    8038 do
    8039   IFS=$as_save_IFS
    8040   test -z "$as_dir" && as_dir=.
    8041     for ac_exec_ext in '' $ac_executable_extensions; do
    8042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8043     ac_cv_path_mkoctfile3="$as_dir/$ac_word$ac_exec_ext"
    8044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8045     break 2
    8046   fi
    8047 done
    8048   done
    8049 IFS=$as_save_IFS
    8050 
    8051   ;;
    8052 esac
    8053 fi
    8054 mkoctfile3=$ac_cv_path_mkoctfile3
    8055 if test -n "$mkoctfile3"; then
    8056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mkoctfile3" >&5
    8057 $as_echo "$mkoctfile3" >&6; }
    8058 else
    8059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8060 $as_echo "no" >&6; }
    8061 fi
    8062 
    8063 
    8064   else
    8065     MKOCTFILE3=$with_mkoctfile3
    8066   fi
    8067   OCTAVE_VERSION=`${MKOCTFILE3} --version 2>&1 | cut -d' ' -f3`
    8068   OCTAVE_VERSION_MAJOR=`echo ${OCTAVE_VERSION} | cut -d'.' -f1`
    8069 fi
    8070 
    8071 # Check if mkoctfile2 was designated *in addition* to the installed version.
    8072 # This can override the default version if they are the same versions.
    8073 
    8074 # Check whether --with-mkoctfile2 was given.
    8075 if test "${with_mkoctfile2+set}" = set; then :
    8076   withval=$with_mkoctfile2;
    8077 else
    8078   with_mkoctfile2=no
    8079 fi
    8080 
    8081 
    8082 if test "$with_mkoctfile2" != "no" ; then
    8083   if test "$with_mkoctfile2" = "yes" ; then
    8084     # Extract the first word of "mkoctfile", so it can be a program name with args.
    8085 set dummy mkoctfile; ac_word=$2
    8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8087 $as_echo_n "checking for $ac_word... " >&6; }
    8088 if ${ac_cv_path_mkoctfile2+:} false; then :
    8089   $as_echo_n "(cached) " >&6
    8090 else
    8091   case $mkoctfile2 in
    8092   [\\/]* | ?:[\\/]*)
    8093   ac_cv_path_mkoctfile2="$mkoctfile2" # Let the user override the test with a path.
    8094   ;;
    8095   *)
    8096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8097 for as_dir in $PATH
    8098 do
    8099   IFS=$as_save_IFS
    8100   test -z "$as_dir" && as_dir=.
    8101     for ac_exec_ext in '' $ac_executable_extensions; do
    8102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8103     ac_cv_path_mkoctfile2="$as_dir/$ac_word$ac_exec_ext"
    8104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8105     break 2
    8106   fi
    8107 done
    8108   done
    8109 IFS=$as_save_IFS
    8110 
    8111   ;;
    8112 esac
    8113 fi
    8114 mkoctfile2=$ac_cv_path_mkoctfile2
    8115 if test -n "$mkoctfile2"; then
    8116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mkoctfile2" >&5
    8117 $as_echo "$mkoctfile2" >&6; }
    8118 else
    8119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8120 $as_echo "no" >&6; }
    8121 fi
    8122 
    8123 
    8124   else
    8125     MKOCTFILE2=$with_mkoctfile2
    8126   fi
    8127   # Have to use octave to get a version, instead of mkoctfile.
    8128   octave=`dirname $MKOCTFILE2`/octave
    8129   OCTAVE_VERSION=`${octave} -v | grep version | cut -d' ' -f4`
    8130   OCTAVE_VERSION_MAJOR=`echo ${OCTAVE_VERSION} | cut -d'.' -f1`
    8131 fi
    8132 
    8133 
    8134 
    8135 # Check whether --with-perl was given.
    8136 if test "${with_perl+set}" = set; then :
    8137   withval=$with_perl;
    8138 else
    8139   with_perl=yes
    8140 fi
    8141 
    8142 
    8143 PERL=
    8144 PERL_INCLUDES=
    8145 PERL_ARCHLIB=
    8146 PERL_ARCHLIBEXP=
    8147 PERL_VERSION=
    8148 PERL_VENDORLIB=
    8149 PERL_PRIVLIB=
    8150 PERL_CPPFLAGS=
    8151 PERL_CCFlAGS=
    8152 PERL_VERSION_RV=
    8153 XSUBPP=
    8154 PERL_LIBSPEC=
    8155 if test "$with_perl" != "no" ; then
    8156   if test "$with_perl" != "yes" ; then
    8157     # Extract the first word of "perl", so it can be a program name with args.
    8158 set dummy perl; ac_word=$2
    8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8160 $as_echo_n "checking for $ac_word... " >&6; }
    8161 if ${ac_cv_path_PERL+:} false; then :
    8162   $as_echo_n "(cached) " >&6
    8163 else
    8164   case $PERL in
    8165   [\\/]* | ?:[\\/]*)
    8166   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
    8167   ;;
    8168   *)
    8169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8170 as_dummy="$with_perl/bin:$with_perl"
    8171 for as_dir in $as_dummy
    8172 do
    8173   IFS=$as_save_IFS
    8174   test -z "$as_dir" && as_dir=.
    8175     for ac_exec_ext in '' $ac_executable_extensions; do
    8176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8177     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
    8178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8179     break 2
    8180   fi
    8181 done
    8182   done
    8183 IFS=$as_save_IFS
    8184 
    8185   ;;
    8186 esac
    8187 fi
    8188 PERL=$ac_cv_path_PERL
    8189 if test -n "$PERL"; then
    8190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
    8191 $as_echo "$PERL" >&6; }
    8192 else
    8193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8194 $as_echo "no" >&6; }
    8195 fi
    8196 
    8197 
    8198     # Extract the first word of "xsubpp", so it can be a program name with args.
    8199 set dummy xsubpp; ac_word=$2
    8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8201 $as_echo_n "checking for $ac_word... " >&6; }
    8202 if ${ac_cv_path_XSUBPP+:} false; then :
    8203   $as_echo_n "(cached) " >&6
    8204 else
    8205   case $XSUBPP in
    8206   [\\/]* | ?:[\\/]*)
    8207   ac_cv_path_XSUBPP="$XSUBPP" # Let the user override the test with a path.
    8208   ;;
    8209   *)
    8210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8211 as_dummy="$with_perl/bin:$with_perl"
    8212 for as_dir in $as_dummy
    8213 do
    8214   IFS=$as_save_IFS
    8215   test -z "$as_dir" && as_dir=.
    8216     for ac_exec_ext in '' $ac_executable_extensions; do
    8217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8218     ac_cv_path_XSUBPP="$as_dir/$ac_word$ac_exec_ext"
    8219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8220     break 2
    8221   fi
    8222 done
    8223   done
    8224 IFS=$as_save_IFS
    8225 
    8226   ;;
    8227 esac
    8228 fi
    8229 XSUBPP=$ac_cv_path_XSUBPP
    8230 if test -n "$XSUBPP"; then
    8231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSUBPP" >&5
    8232 $as_echo "$XSUBPP" >&6; }
    8233 else
    8234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8235 $as_echo "no" >&6; }
    8236 fi
    8237 
    8238 
    8239   else
    8240     # Extract the first word of "perl", so it can be a program name with args.
    8241 set dummy perl; ac_word=$2
    8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8243 $as_echo_n "checking for $ac_word... " >&6; }
    8244 if ${ac_cv_path_PERL+:} false; then :
    8245   $as_echo_n "(cached) " >&6
    8246 else
    8247   case $PERL in
    8248   [\\/]* | ?:[\\/]*)
    8249   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
    8250   ;;
    8251   *)
    8252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8253 for as_dir in $PATH
    8254 do
    8255   IFS=$as_save_IFS
    8256   test -z "$as_dir" && as_dir=.
    8257     for ac_exec_ext in '' $ac_executable_extensions; do
    8258   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8259     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
    8260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8261     break 2
    8262   fi
    8263 done
    8264   done
    8265 IFS=$as_save_IFS
    8266 
    8267   ;;
    8268 esac
    8269 fi
    8270 PERL=$ac_cv_path_PERL
    8271 if test -n "$PERL"; then
    8272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
    8273 $as_echo "$PERL" >&6; }
    8274 else
    8275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8276 $as_echo "no" >&6; }
    8277 fi
    8278 
    8279 
    8280     # Extract the first word of "xsubpp", so it can be a program name with args.
    8281 set dummy xsubpp; ac_word=$2
    8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8283 $as_echo_n "checking for $ac_word... " >&6; }
    8284 if ${ac_cv_path_XSUBPP+:} false; then :
    8285   $as_echo_n "(cached) " >&6
    8286 else
    8287   case $XSUBPP in
    8288   [\\/]* | ?:[\\/]*)
    8289   ac_cv_path_XSUBPP="$XSUBPP" # Let the user override the test with a path.
    8290   ;;
    8291   *)
    8292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8293 for as_dir in $PATH
    8294 do
    8295   IFS=$as_save_IFS
    8296   test -z "$as_dir" && as_dir=.
    8297     for ac_exec_ext in '' $ac_executable_extensions; do
    8298   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8299     ac_cv_path_XSUBPP="$as_dir/$ac_word$ac_exec_ext"
    8300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8301     break 2
    8302   fi
    8303 done
    8304   done
    8305 IFS=$as_save_IFS
    8306 
    8307   ;;
    8308 esac
    8309 fi
    8310 XSUBPP=$ac_cv_path_XSUBPP
    8311 if test -n "$XSUBPP"; then
    8312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSUBPP" >&5
    8313 $as_echo "$XSUBPP" >&6; }
    8314 else
    8315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8316 $as_echo "no" >&6; }
    8317 fi
    8318 
    8319 
    8320   fi
    8321   if test "x${PERL}" != "x" ; then
    8322     PERL_ARCHLIB=`${PERL} -MConfig -e 'print $Config{archlib}'`
    8323     PERL_VERSION=`${PERL} -MConfig -e 'print $Config{version}'`
    8324     PERL_CCFLAGS=`${PERL} -MConfig -e 'print $Config{ccflags}'`
    8325     PERL_CPPFLAGS=`${PERL} -MConfig -e 'print $Config{cppflags}'`
    8326     PERL_VENDORLIB=`${PERL} -MConfig -e 'print $Config{vendorlib}'`
    8327     PERL_PRIVLIB=`${PERL} -MConfig -e 'print $Config{privlib}'`
    8328     PERL_INSTALLARCHLIB=`${PERL} -MConfig -e 'print $Config{installarchlib}'`
    8329     PERL_ARCHLIBEXP=`${PERL} -MConfig -e 'print $Config{archlibexp}'`
    8330     PERL_VERSION_RV=`echo ${PERL_VERSION} | cut -d'.' -f1-2`
    8331     # libperl may or may not be installed.  Check for its existence.
    8332     if test -f "${PERL_ARCHLIBEXP}/CORE/libperl${SHLIB_SUFFIX}" ; then
    8333       PERL_LIBSPEC="-L${PERL_ARCHLIBEXP}/CORE -lperl"
    8334     fi
    8335   fi
    8336 fi
    8337 
    8338 
    8339 PYTHON=""
    8340 PYTHON_CFLAGS=""
    8341 PYTHON_CPPFLAGS=""
    8342 PYTHON_DISTUTILS=""
    8343 PYTHON_INCLUDES=""
    8344 PYTHON_LDFLAGS=""
    8345 PYTHON_LIB=""
    8346 PYTHON_LIBDIR=""
    8347 PYTHON_SITE_DIR=""
    8348 PYTHON_SITE_PACKAGES=""
    8349 PYTHON_VERSION=""
    8350 pythondir=""
    8351 
    8352 # Check whether --with-python was given.
    8353 if test "${with_python+set}" = set; then :
    8354   withval=$with_python;
    8355 else
    8356   with_python=yes
    8357 fi
    8358 
    8359 
    8360 if test "$with_python" != "no" ; then
    8361   if test "$with_python" = "yes" ; then
    8362     # 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.
    8363 set dummy python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
    8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8365 $as_echo_n "checking for $ac_word... " >&6; }
    8366 if ${ac_cv_path_PYTHON+:} false; then :
    8367   $as_echo_n "(cached) " >&6
    8368 else
    8369   case $PYTHON in
    8370   [\\/]* | ?:[\\/]*)
    8371   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
    8372   ;;
    8373   *)
    8374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8375 for as_dir in $PATH
    8376 do
    8377   IFS=$as_save_IFS
    8378   test -z "$as_dir" && as_dir=.
    8379     for ac_exec_ext in '' $ac_executable_extensions; do
    8380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8381     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
    8382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8383     break 2
    8384   fi
    8385 done
    8386   done
    8387 IFS=$as_save_IFS
    8388 
    8389   ;;
    8390 esac
    8391 fi
    8392 PYTHON=$ac_cv_path_PYTHON
    8393 if test -n "$PYTHON"; then
    8394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
    8395 $as_echo "$PYTHON" >&6; }
    8396 else
    8397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8398 $as_echo "no" >&6; }
    8399 fi
    8400 
    8401 
    8402   else
    8403     # Extract the first word of "python", so it can be a program name with args.
    8404 set dummy python; ac_word=$2
    8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8406 $as_echo_n "checking for $ac_word... " >&6; }
    8407 if ${ac_cv_path_PYTHON+:} false; then :
    8408   $as_echo_n "(cached) " >&6
    8409 else
    8410   case $PYTHON in
    8411   [\\/]* | ?:[\\/]*)
    8412   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
    8413   ;;
    8414   *)
    8415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8416 as_dummy="${with_python}/bin:${with_python}"
    8417 for as_dir in $as_dummy
    8418 do
    8419   IFS=$as_save_IFS
    8420   test -z "$as_dir" && as_dir=.
    8421     for ac_exec_ext in '' $ac_executable_extensions; do
    8422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8423     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
    8424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8425     break 2
    8426   fi
    8427 done
    8428   done
    8429 IFS=$as_save_IFS
    8430 
    8431   ;;
    8432 esac
    8433 fi
    8434 PYTHON=$ac_cv_path_PYTHON
    8435 if test -n "$PYTHON"; then
    8436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
    8437 $as_echo "$PYTHON" >&6; }
    8438 else
    8439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8440 $as_echo "no" >&6; }
    8441 fi
    8442 
    8443 
    8444   fi
    8445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python version" >&5
    8446 $as_echo_n "checking for Python version... " >&6; }
    8447   if test "x${PYTHON}" != "x"; then
    8448     PYTHON_VERSION=`${PYTHON} -c "import sys; print sys.version[0:3]"`
    8449   fi
    8450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_VERSION" >&5
    8451 $as_echo "$PYTHON_VERSION" >&6; }
    8452 fi
    8453 
    8454 if test "x${PYTHON_VERSION}" != "x"; then
    8455   PYTHON_INCLUDES=$incdir
    8456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils" >&5
    8457 $as_echo_n "checking for Python distutils... " >&6; }
    8458   PYTHON_DISTUTILS=""
    8459   ${PYTHON} -c "from distutils.core import setup; setup(name='test')" \
    8460         build build_ext 2>&1 > /dev/null
    8461   if test $? = 0 ; then
    8462     PYTHON_DISTUTILS="yes"
    8463   fi
    8464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_DISTUTILS" >&5
    8465 $as_echo "$PYTHON_DISTUTILS" >&6; }
    8466   if test "${PYTHON_DISTUTILS}" = "yes" ; then
    8467     PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
    8468     #
    8469     # Check for Python include path
    8470     #
    8471     { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to Python headers" >&5
    8472 $as_echo_n "checking path to Python headers... " >&6; }
    8473     PYTHON_INCDIR=`${PYTHON} -c "import distutils.sysconfig; \
    8474      print distutils.sysconfig.get_python_inc();"`
    8475     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INCDIR" >&5
    8476 $as_echo "$PYTHON_INCDIR" >&6; }
    8477     #
    8478     # Python distutils found, get settings from python directly
    8479     #
    8480     PYTHON_SITE_DIR="`${PYTHON} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(0);'`"
    8481 
    8482     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);'`"
    8483     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);'`"
    8484     PYTHON_LIB="`$PYTHON -c 'from distutils import sysconfig; print \"python\" + sysconfig.get_config_var(\"VERSION\");'`"
    8485     PYTHON_LIBDIR="`$PYTHON -c 'from distutils import sysconfig; print sysconfig.get_config_var(\"LIBDIR\");'`"
    8486     save_CPPFLAGS=$CPPFLAGS
    8487     CPPFLAGS="$CPPFLAGS -I${PYTHON_INCDIR}"
    8488     for ac_header in Python.h
    8489 do :
    8490   ac_fn_cxx_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
    8491 if test "x$ac_cv_header_Python_h" = xyes; then :
    8492   cat >>confdefs.h <<_ACEOF
    8493 #define HAVE_PYTHON_H 1
    8494 _ACEOF
    8495  found=yes
    8496 else
    8497   found=no
    8498 fi
    8499 
    8500 done
    8501 
    8502     CPPFLAGS=$save_CPPFLAGS
    8503     if test "$found" = "no" ; then
    8504       PYTHON_DISTUTILS=""
    8505     fi
    8506   fi
    8507 fi
    8508 
    8509 
    8510 
    8511 # Check whether --with-java was given.
    8512 if test "${with_java+set}" = set; then :
    8513   withval=$with_java;
    8514 else
    8515   with_java=yes
    8516 fi
    8517 
    8518 JAVA=""
    8519 JAVAH=""
    8520 JAVAC=""
    8521 JAVA_DEV_PKG="no"
    8522 
    8523 if test "${with_java}" != "no" ; then
    8524   if test "${with_java}" = "yes" ; then
    8525     # Extract the first word of "java", so it can be a program name with args.
    8526 set dummy java; ac_word=$2
    8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8528 $as_echo_n "checking for $ac_word... " >&6; }
    8529 if ${ac_cv_path_JAVA+:} false; then :
    8530   $as_echo_n "(cached) " >&6
    8531 else
    8532   case $JAVA in
    8533   [\\/]* | ?:[\\/]*)
    8534   ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
    8535   ;;
    8536   *)
    8537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8538 for as_dir in $PATH
    8539 do
    8540   IFS=$as_save_IFS
    8541   test -z "$as_dir" && as_dir=.
    8542     for ac_exec_ext in '' $ac_executable_extensions; do
    8543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8544     ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
    8545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8546     break 2
    8547   fi
    8548 done
    8549   done
    8550 IFS=$as_save_IFS
    8551 
    8552   ;;
    8553 esac
    8554 fi
    8555 JAVA=$ac_cv_path_JAVA
    8556 if test -n "$JAVA"; then
    8557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
    8558 $as_echo "$JAVA" >&6; }
    8559 else
    8560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8561 $as_echo "no" >&6; }
    8562 fi
    8563 
    8564 
    8565     # Extract the first word of "javac", so it can be a program name with args.
    8566 set dummy javac; ac_word=$2
    8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8568 $as_echo_n "checking for $ac_word... " >&6; }
    8569 if ${ac_cv_path_JAVAC+:} false; then :
    8570   $as_echo_n "(cached) " >&6
    8571 else
    8572   case $JAVAC in
    8573   [\\/]* | ?:[\\/]*)
    8574   ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
    8575   ;;
    8576   *)
    8577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8578 for as_dir in $PATH
    8579 do
    8580   IFS=$as_save_IFS
    8581   test -z "$as_dir" && as_dir=.
    8582     for ac_exec_ext in '' $ac_executable_extensions; do
    8583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8584     ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
    8585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8586     break 2
    8587   fi
    8588 done
    8589   done
    8590 IFS=$as_save_IFS
    8591 
    8592   ;;
    8593 esac
    8594 fi
    8595 JAVAC=$ac_cv_path_JAVAC
    8596 if test -n "$JAVAC"; then
    8597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
    8598 $as_echo "$JAVAC" >&6; }
    8599 else
    8600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8601 $as_echo "no" >&6; }
    8602 fi
    8603 
    8604 
    8605     # Extract the first word of "javah", so it can be a program name with args.
    8606 set dummy javah; ac_word=$2
    8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8608 $as_echo_n "checking for $ac_word... " >&6; }
    8609 if ${ac_cv_path_JAVAH+:} false; then :
    8610   $as_echo_n "(cached) " >&6
    8611 else
    8612   case $JAVAH in
    8613   [\\/]* | ?:[\\/]*)
    8614   ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
    8615   ;;
    8616   *)
    8617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8618 for as_dir in $PATH
    8619 do
    8620   IFS=$as_save_IFS
    8621   test -z "$as_dir" && as_dir=.
    8622     for ac_exec_ext in '' $ac_executable_extensions; do
    8623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8624     ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
    8625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8626     break 2
    8627   fi
    8628 done
    8629   done
    8630 IFS=$as_save_IFS
    8631 
    8632   ;;
    8633 esac
    8634 fi
    8635 JAVAH=$ac_cv_path_JAVAH
    8636 if test -n "$JAVAH"; then
    8637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5
    8638 $as_echo "$JAVAH" >&6; }
    8639 else
    8640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8641 $as_echo "no" >&6; }
    8642 fi
    8643 
    8644 
    8645   else
    8646     # Extract the first word of "java", so it can be a program name with args.
    8647 set dummy java; ac_word=$2
    8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8649 $as_echo_n "checking for $ac_word... " >&6; }
    8650 if ${ac_cv_path_JAVA+:} false; then :
    8651   $as_echo_n "(cached) " >&6
    8652 else
    8653   case $JAVA in
    8654   [\\/]* | ?:[\\/]*)
    8655   ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
    8656   ;;
    8657   *)
    8658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8659 as_dummy="${with_java}/bin:${with_java}"
    8660 for as_dir in $as_dummy
    8661 do
    8662   IFS=$as_save_IFS
    8663   test -z "$as_dir" && as_dir=.
    8664     for ac_exec_ext in '' $ac_executable_extensions; do
    8665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8666     ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
    8667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8668     break 2
    8669   fi
    8670 done
    8671   done
    8672 IFS=$as_save_IFS
    8673 
    8674   ;;
    8675 esac
    8676 fi
    8677 JAVA=$ac_cv_path_JAVA
    8678 if test -n "$JAVA"; then
    8679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
    8680 $as_echo "$JAVA" >&6; }
    8681 else
    8682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8683 $as_echo "no" >&6; }
    8684 fi
    8685 
    8686 
    8687     # Extract the first word of "javac", so it can be a program name with args.
    8688 set dummy javac; ac_word=$2
    8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8690 $as_echo_n "checking for $ac_word... " >&6; }
    8691 if ${ac_cv_path_JAVAC+:} false; then :
    8692   $as_echo_n "(cached) " >&6
    8693 else
    8694   case $JAVAC in
    8695   [\\/]* | ?:[\\/]*)
    8696   ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
    8697   ;;
    8698   *)
    8699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8700 as_dummy="${with_java}/bin:${with_java}"
    8701 for as_dir in $as_dummy
    8702 do
    8703   IFS=$as_save_IFS
    8704   test -z "$as_dir" && as_dir=.
    8705     for ac_exec_ext in '' $ac_executable_extensions; do
    8706   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8707     ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
    8708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8709     break 2
    8710   fi
    8711 done
    8712   done
    8713 IFS=$as_save_IFS
    8714 
    8715   ;;
    8716 esac
    8717 fi
    8718 JAVAC=$ac_cv_path_JAVAC
    8719 if test -n "$JAVAC"; then
    8720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
    8721 $as_echo "$JAVAC" >&6; }
    8722 else
    8723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8724 $as_echo "no" >&6; }
    8725 fi
    8726 
    8727 
    8728     # Extract the first word of "javah", so it can be a program name with args.
    8729 set dummy javah; ac_word=$2
    8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8731 $as_echo_n "checking for $ac_word... " >&6; }
    8732 if ${ac_cv_path_JAVAH+:} false; then :
    8733   $as_echo_n "(cached) " >&6
    8734 else
    8735   case $JAVAH in
    8736   [\\/]* | ?:[\\/]*)
    8737   ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
    8738   ;;
    8739   *)
    8740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8741 as_dummy="${with_java}/bin:${with_java}"
    8742 for as_dir in $as_dummy
    8743 do
    8744   IFS=$as_save_IFS
    8745   test -z "$as_dir" && as_dir=.
    8746     for ac_exec_ext in '' $ac_executable_extensions; do
    8747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8748     ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
    8749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8750     break 2
    8751   fi
    8752 done
    8753   done
    8754 IFS=$as_save_IFS
    8755 
    8756   ;;
    8757 esac
    8758 fi
    8759 JAVAH=$ac_cv_path_JAVAH
    8760 if test -n "$JAVAH"; then
    8761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5
    8762 $as_echo "$JAVAH" >&6; }
    8763 else
    8764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8765 $as_echo "no" >&6; }
    8766 fi
    8767 
    8768 
    8769   fi
    8770 fi
    8771 JDK=
    8772 JAVA_INC_DIR=
    8773 JAVA_INC_SPEC=
    8774 
    8775 # If java exists, let's look for the jni.h file.
    8776 if test "x${JAVA}" != "x" ; then
    8777   for d in \
    8778    ${with_java} \
    8779    ${JAVA_HOME} \
    8780    /apps/java/jdk1.6* \
    8781    /opt/sun-jdk-1.6* \
    8782    /opt/icedtea6-* \
    8783    /opt/sun-jdk-1.5* \
    8784    /usr/lib/jvm/*sun* \
    8785    /usr/lib/jvm/*icedtea* \
    8786    /usr/lib/jvm/*openjdk*
    8787   do
    8788     if test -r "${d}/include/jni.h" ; then
    8789       JDK=${d}
    8790       JAVA_HOME=$JDK
    8791       JAVA_INC_DIR=${JDK}/include
    8792       JAVA_INC_SPEC="-I${JDK}/include -I${JDK}/include/linux"
    8793       break;
    8794     fi
    8795     if test -r "${d}/Headers/jni.h" ; then
    8796       JDK=${d}
    8797       JAVA_HOME=$JDK
    8798       JAVA_INC_DIR=${JDK}/Headers
    8799       JAVA_INC_SPEC="-I${JDK}/Headers -I${JDK}/Headers/macos"
    8800       break;
    8801     fi
    8802   done
    8803 fi
    8804 
    8805 
    8806 
    8807 # Check whether --with-R was given.
    8808 if test "${with_R+set}" = set; then :
    8809   withval=$with_R;
    8810 else
    8811   with_R=yes
    8812 fi
    8813 
    8814 
    8815 R=""
    8816 if test "$with_R" != "no" ; then
    8817   if test "$with_R" = "yes" ; then
    8818     # Extract the first word of "R", so it can be a program name with args.
    8819 set dummy R; ac_word=$2
    8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8821 $as_echo_n "checking for $ac_word... " >&6; }
    8822 if ${ac_cv_path_R+:} false; then :
    8823   $as_echo_n "(cached) " >&6
    8824 else
    8825   case $R in
    8826   [\\/]* | ?:[\\/]*)
    8827   ac_cv_path_R="$R" # Let the user override the test with a path.
    8828   ;;
    8829   *)
    8830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8831 for as_dir in $PATH
    8832 do
    8833   IFS=$as_save_IFS
    8834   test -z "$as_dir" && as_dir=.
    8835     for ac_exec_ext in '' $ac_executable_extensions; do
    8836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8837     ac_cv_path_R="$as_dir/$ac_word$ac_exec_ext"
    8838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8839     break 2
    8840   fi
    8841 done
    8842   done
    8843 IFS=$as_save_IFS
    8844 
    8845   ;;
    8846 esac
    8847 fi
    8848 R=$ac_cv_path_R
    8849 if test -n "$R"; then
    8850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $R" >&5
    8851 $as_echo "$R" >&6; }
    8852 else
    8853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8854 $as_echo "no" >&6; }
    8855 fi
    8856 
    8857 
    8858   else
    8859     # Extract the first word of "R", so it can be a program name with args.
    8860 set dummy R; ac_word=$2
    8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    8862 $as_echo_n "checking for $ac_word... " >&6; }
    8863 if ${ac_cv_path_R+:} false; then :
    8864   $as_echo_n "(cached) " >&6
    8865 else
    8866   case $R in
    8867   [\\/]* | ?:[\\/]*)
    8868   ac_cv_path_R="$R" # Let the user override the test with a path.
    8869   ;;
    8870   *)
    8871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    8872 as_dummy="${with_R}/bin:${with_R}"
    8873 for as_dir in $as_dummy
    8874 do
    8875   IFS=$as_save_IFS
    8876   test -z "$as_dir" && as_dir=.
    8877     for ac_exec_ext in '' $ac_executable_extensions; do
    8878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    8879     ac_cv_path_R="$as_dir/$ac_word$ac_exec_ext"
    8880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    8881     break 2
    8882   fi
    8883 done
    8884   done
    8885 IFS=$as_save_IFS
    8886 
    8887   ;;
    8888 esac
    8889 fi
    8890 R=$ac_cv_path_R
    8891 if test -n "$R"; then
    8892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $R" >&5
    8893 $as_echo "$R" >&6; }
    8894 else
    8895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    8896 $as_echo "no" >&6; }
    8897 fi
    8898 
    8899 
    8900   fi
    8901 fi
    8902 
    8903 
    8904 # Make sure we can run config.sub.
    8905 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
    8906   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
    8907 
    8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
    8909 $as_echo_n "checking build system type... " >&6; }
    8910 if ${ac_cv_build+:} false; then :
    8911   $as_echo_n "(cached) " >&6
    8912 else
    8913   ac_build_alias=$build_alias
    8914 test "x$ac_build_alias" = x &&
    8915   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
    8916 test "x$ac_build_alias" = x &&
    8917   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
    8918 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
    8919   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
    8920 
    8921 fi
    8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
    8923 $as_echo "$ac_cv_build" >&6; }
    8924 case $ac_cv_build in
    8925 *-*-*) ;;
    8926 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
    8927 esac
    8928 build=$ac_cv_build
    8929 ac_save_IFS=$IFS; IFS='-'
    8930 set x $ac_cv_build
    8931 shift
    8932 build_cpu=$1
    8933 build_vendor=$2
    8934 shift; shift
    8935 # Remember, the first character of IFS is used to create $*,
    8936 # except with old shells:
    8937 build_os=$*
    8938 IFS=$ac_save_IFS
    8939 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
    8940 
    8941 
    8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
    8943 $as_echo_n "checking host system type... " >&6; }
    8944 if ${ac_cv_host+:} false; then :
    8945   $as_echo_n "(cached) " >&6
    8946 else
    8947   if test "x$host_alias" = x; then
    8948   ac_cv_host=$ac_cv_build
    8949 else
    8950   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
    8951     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
    8952 fi
    8953 
    8954 fi
    8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
    8956 $as_echo "$ac_cv_host" >&6; }
    8957 case $ac_cv_host in
    8958 *-*-*) ;;
    8959 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
    8960 esac
    8961 host=$ac_cv_host
    8962 ac_save_IFS=$IFS; IFS='-'
    8963 set x $ac_cv_host
    8964 shift
    8965 host_cpu=$1
    8966 host_vendor=$2
    8967 shift; shift
    8968 # Remember, the first character of IFS is used to create $*,
    8969 # except with old shells:
    8970 host_os=$*
    8971 IFS=$ac_save_IFS
    8972 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
    8973 
    8974 
    8975 
    8976 
    8977 
    8978 # Check whether --with-ruby was given.
    8979 if test "${with_ruby+set}" = set; then :
    8980   withval=$with_ruby;  RUBY=$withval
    8981 else
    8982    RUBY=ruby
    8983 fi
    8984 
    8985 
    8986 # Check whether --with-ruby_sitelibdir was given.
    8987 if test "${with_ruby_sitelibdir+set}" = set; then :
    8988   withval=$with_ruby_sitelibdir;  ruby_sitelibdir=$withval
    8989 else
    8990    ruby_sitelibdir=NONE
    8991 fi
    8992 
    8993 
    8994 
    8995 
    8996 RUBY_VERSION_CODE=`$RUBY -e "puts RUBY_VERSION.gsub(/\./, '')"`
    8997 
    8998 
    8999 RUBY_CONFIG_SO_NAME=`
    9000           $RUBY -rrbconfig -e "puts(Config::CONFIG['RUBY_SO_NAME'] || '')"`
    9001 RUBY_CONFIG_ARCHDIR=`
    9002           $RUBY -rrbconfig -e "puts(Config::CONFIG['archdir'] || '')"`
    9003 RUBY_CONFIG_ARCH=`
    9004           $RUBY -rrbconfig -e "puts(Config::CONFIG['arch'] || '')"`
    9005 RUBY_CONFIG_LIBDIR=`
    9006           $RUBY -rrbconfig -e "puts(Config::CONFIG['libdir'] || '')"`
    9007 RUBY_CONFIG_BINDIR=`
    9008           $RUBY -rrbconfig -e "puts(Config::CONFIG['bindir'] || '')"`
    9009 RUBY_CONFIG_RUBYHDRDIR=`
    9010           $RUBY -rrbconfig -e "puts(Config::CONFIG['rubyhdrdir'] || '')"`
    9011 RUBY_CONFIG_CFLAGS=`
    9012           $RUBY -rrbconfig -e "puts(Config::CONFIG['CFLAGS'] || '')"`
    9013 RUBY_CONFIG_LIBS=`
    9014           $RUBY -rrbconfig -e "puts(Config::CONFIG['LIBS'] || '')"`
    9015 RUBY_CONFIG_DLDLIBS=`
    9016           $RUBY -rrbconfig -e "puts(Config::CONFIG['DLDLIBS'] || '')"`
    9017 RUBY_CONFIG_LDFLAGS=`
    9018           $RUBY -rrbconfig -e "puts(Config::CONFIG['LDFLAGS'] || '')"`
    9019 RUBY_CONFIG_LIBRUBYARG=`
    9020           $RUBY -rrbconfig -e "puts(Config::CONFIG['LIBRUBYARG'] || '')"`
    9021 RUBY_CONFIG_LIBRUBYARG_STATIC=`
    9022           $RUBY -rrbconfig -e "puts(Config::CONFIG['LIBRUBYARG_STATIC'] || '')"`
    9023 RUBY_CONFIG_CCDLFLAGS=`
    9024           $RUBY -rrbconfig -e "puts(Config::CONFIG['CCDLFLAGS'] || '')"`
    9025 
    9026 if test "x${RUBY_CONFIG_RUBYHDRDIR}x" != "xx"; then
    9027   # 1.9
    9028   RUBY_CPPFLAGS="-I${RUBY_CONFIG_RUBYHDRDIR}"
    9029   RUBY_CPPFLAGS="${RUBY_CPPFLAGS} -I${RUBY_CONFIG_RUBYHDRDIR}/${RUBY_CONFIG_ARCH}"
    9030 else
    9031   # 1.8
    9032   RUBY_CPPFLAGS="-I${RUBY_CONFIG_ARCHDIR}"
    9033 fi
    9034 
    9035 
    9036 RUBY_CFLAGS="${RUBY_CONFIG_CFLAGS} ${RUBY_CONFIG_CCDLFLAGS}"
    9037 
    9038 
    9039 RUBY_CXXFLAGS="${RUBY_CONFIG_CFLAGS} ${RUBY_CONFIG_CCDLFLAGS}"
    9040 
    9041 
    9042 RUBY_LDFLAGS="-L${RUBY_CONFIG_ARCHDIR} -L${RUBY_CONFIG_LIBDIR} ${RUBY_CONFIG_LDFLAGS}"
    9043 
    9044 
    9045 RUBY_LIBS="${RUBY_CONFIG_LIBS} ${RUBY_CONFIG_DLDLIBS}"
    9046 
    9047 
    9048 RUBY_LIBRUBYARG="${RUBY_CONFIG_LIBRUBYARG}"
    9049 
    9050 
    9051 RUBY_LIBRUBYARG_STATIC="${RUBY_CONFIG_LIBRUBYARG_STATIC}"
    9052 
    9053 
    9054 if test "x${ruby_sitelibdir}x" != "xNONEx"
    9055 then
    9056   RUBY_SITELIBDIR="${ruby_sitelibdir}"
    9057 else
    9058   if test "x${prefix}x" = "xNONEx"
    9059   then
    9060     RUBY_SITELIBDIR=`
    9061           $RUBY -rrbconfig -e "puts(Config::CONFIG['sitelibdir'] || '')"`
    9062   else
    9063     sitelibdir_no_prefix=`$RUBY -rrbconfig \
    9064     -e "include Config; \
    9065     puts CONFIG['sitelibdir'].sub(CONFIG['prefix'], '')"`
    9066     RUBY_SITELIBDIR="${prefix}/${sitelibdir_no_prefix}"
    9067   fi
    9068 fi
    9069 
    9070 
    9071 CPPFLAGS_save="${CPPFLAGS}"
    9072 CPPFLAGS="${CPPFLAGS} ${RUBY_CPPFLAGS}"
    9073 CXXFLAGS="${CPPFLAGS}"
    9074 for ac_header in ruby.h
    9075 do :
    9076   ac_fn_cxx_check_header_mongrel "$LINENO" "ruby.h" "ac_cv_header_ruby_h" "$ac_includes_default"
    9077 if test "x$ac_cv_header_ruby_h" = xyes; then :
    9078   cat >>confdefs.h <<_ACEOF
    9079 #define HAVE_RUBY_H 1
    9080 _ACEOF
    9081 
    9082 fi
    9083 
    9084 done
    9085 
    9086 HAVE_RUBY_H=${ac_cv_header_ruby_h}
    9087 
    9088 
    9089 for ac_header in node.h
    9090 do :
    9091   ac_fn_cxx_check_header_compile "$LINENO" "node.h" "ac_cv_header_node_h" "
    9092 #include <ruby.h>
    9093 
    9094 "
    9095 if test "x$ac_cv_header_node_h" = xyes; then :
    9096   cat >>confdefs.h <<_ACEOF
    9097 #define HAVE_NODE_H 1
    9098 _ACEOF
    9099 
    9100 fi
    9101 
    9102 done
    9103 
    9104 for ac_header in ruby/node.h
    9105 do :
    9106   ac_fn_cxx_check_header_compile "$LINENO" "ruby/node.h" "ac_cv_header_ruby_node_h" "
    9107                              #include <ruby.h>
    9108 
    9109 "
    9110 if test "x$ac_cv_header_ruby_node_h" = xyes; then :
    9111   cat >>confdefs.h <<_ACEOF
    9112 #define HAVE_RUBY_NODE_H 1
    9113 _ACEOF
    9114 
    9115 $as_echo "#define REALLY_HAVE_RUBY_NODE_H /**/" >>confdefs.h
    9116 
    9117 fi
    9118 
    9119 done
    9120 
    9121 for ac_header in version.h
    9122 do :
    9123   ac_fn_cxx_check_header_compile "$LINENO" "version.h" "ac_cv_header_version_h" "
    9124 #include <ruby.h>
    9125 
    9126 "
    9127 if test "x$ac_cv_header_version_h" = xyes; then :
    9128   cat >>confdefs.h <<_ACEOF
    9129 #define HAVE_VERSION_H 1
    9130 _ACEOF
    9131 
    9132 fi
    9133 
    9134 done
    9135 
    9136 for ac_header in env.h
    9137 do :
    9138   ac_fn_cxx_check_header_compile "$LINENO" "env.h" "ac_cv_header_env_h" "
    9139 #include <ruby.h>
    9140 
    9141 "
    9142 if test "x$ac_cv_header_env_h" = xyes; then :
    9143   cat >>confdefs.h <<_ACEOF
    9144 #define HAVE_ENV_H 1
    9145 _ACEOF
    9146 
    9147 fi
    9148 
    9149 done
    9150 
    9151 
    9152 CPPFLAGS="${CPPFLAGS_save}"
    9153 
    9154 
    9155 case $host_os in
    9156   *mingw32* ) MINGW32=yes;;
    9157           * ) MINGW32=no;;
    9158 esac
    9159 
    9160 
    9161 if test x"${MINGW32}"x = xyesx; then
    9162 
    9163 RUBY_LIBS=`echo ${RUBY_LIBS} | sed -e "s%oldnames.lib%-lmoldname%"`
    9164 RUBY_LIBS=`echo ${RUBY_LIBS} | sed -e "s%user32.lib%-luser32%"`
    9165 RUBY_LIBS=`echo ${RUBY_LIBS} | sed -e "s%advapi32.lib%-ladvapi32%"`
    9166 RUBY_LIBS=`echo ${RUBY_LIBS} | sed -e "s%ws2_32.lib%-lws2_32%"`
    9167 RUBY_LIBRUBYARG=`echo ${RUBY_LIBRUBYARG} | sed -e "s%\(msvcrt-ruby.*\).lib%${RUBY_CONFIG_BINDIR}/\1.dll%"`
    9168 RUBY_LIBRUBYARG_STATIC=`echo ${RUBY_LIBRUBYARG_STATIC} | sed -e "s%\(msvcrt-ruby.*\).lib%${RUBY_CONFIG_LIBDIR}/\1.lib%"`
    9169 
    9170 fi
    9171 
    9172 
    9173 
    91747540RP_BASE=`pwd`
    91757541
     
    96468012
    96478013
    9648 #--------------------------------------------------------------------
    9649 # search for ffmpeg libraries libavcodec, libavformat, libswscale
    9650 #--------------------------------------------------------------------
    9651 if test "${with_ffmpeg}" != "no" ; then
    9652   if test "${with_ffmpeg}" = "yes" ; then
    9653     # Extract the first word of "ffmpeg", so it can be a program name with args.
    9654 set dummy ffmpeg; ac_word=$2
    9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    9656 $as_echo_n "checking for $ac_word... " >&6; }
    9657 if ${ac_cv_path_FFMPEG+:} false; then :
    9658   $as_echo_n "(cached) " >&6
    9659 else
    9660   case $FFMPEG in
    9661   [\\/]* | ?:[\\/]*)
    9662   ac_cv_path_FFMPEG="$FFMPEG" # Let the user override the test with a path.
    9663   ;;
    9664   *)
    9665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    9666 for as_dir in $PATH
    9667 do
    9668   IFS=$as_save_IFS
    9669   test -z "$as_dir" && as_dir=.
    9670     for ac_exec_ext in '' $ac_executable_extensions; do
    9671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    9672     ac_cv_path_FFMPEG="$as_dir/$ac_word$ac_exec_ext"
    9673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    9674     break 2
    9675   fi
    9676 done
    9677   done
    9678 IFS=$as_save_IFS
    9679 
    9680   ;;
    9681 esac
    9682 fi
    9683 FFMPEG=$ac_cv_path_FFMPEG
    9684 if test -n "$FFMPEG"; then
    9685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FFMPEG" >&5
    9686 $as_echo "$FFMPEG" >&6; }
    9687 else
    9688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    9689 $as_echo "no" >&6; }
    9690 fi
    9691 
    9692 
    9693   else
    9694     # Extract the first word of "ffmpeg", so it can be a program name with args.
    9695 set dummy ffmpeg; ac_word=$2
    9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    9697 $as_echo_n "checking for $ac_word... " >&6; }
    9698 if ${ac_cv_path_FFMPEG+:} false; then :
    9699   $as_echo_n "(cached) " >&6
    9700 else
    9701   case $FFMPEG in
    9702   [\\/]* | ?:[\\/]*)
    9703   ac_cv_path_FFMPEG="$FFMPEG" # Let the user override the test with a path.
    9704   ;;
    9705   *)
    9706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    9707 as_dummy="${with_ffmpeg}/bin:${with_ffmpeg}"
    9708 for as_dir in $as_dummy
    9709 do
    9710   IFS=$as_save_IFS
    9711   test -z "$as_dir" && as_dir=.
    9712     for ac_exec_ext in '' $ac_executable_extensions; do
    9713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    9714     ac_cv_path_FFMPEG="$as_dir/$ac_word$ac_exec_ext"
    9715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    9716     break 2
    9717   fi
    9718 done
    9719   done
    9720 IFS=$as_save_IFS
    9721 
    9722   ;;
    9723 esac
    9724 fi
    9725 FFMPEG=$ac_cv_path_FFMPEG
    9726 if test -n "$FFMPEG"; then
    9727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FFMPEG" >&5
    9728 $as_echo "$FFMPEG" >&6; }
    9729 else
    9730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    9731 $as_echo "no" >&6; }
    9732 fi
    9733 
    9734 
    9735   fi
    9736   if test "${FFMPEG}x" != "x" ; then
    9737 
    9738 $as_echo "#define HAVE_FFMPEG 1" >>confdefs.h
    9739 
    9740   fi
    9741 fi
    9742 
    9743 for ac_header in ffmpeg/avcodec.h libavcodec/avcodec.h ffmpeg/avformat.h libavformat/avformat.h ffmpeg/avutil.h libavutil/avutil.h libavutil/mathematics.h ffmpeg/swscale.h libswscale/swscale.h
    9744 do :
    9745   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    9746 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
    9747 #define __STDC_CONSTANT_MACROS 1
    9748 
    9749 "
    9750 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
    9751   cat >>confdefs.h <<_ACEOF
    9752 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
    9753 _ACEOF
    9754 
    9755 fi
    9756 
    9757 done
    9758 
    9759 
    9760 HAVE_FFMPEG_LIBS=""
    9761 if test "${with_ffmpeg}" != "no"; then
    9762   if [ \( "${ac_cv_header_ffmpeg_avcodec_h}" = "yes" -o \
    9763         "${ac_cv_header_libavcodec_avcodec_h}" = "yes" \) -a \
    9764      \( "${ac_cv_header_ffmpeg_avformat_h}" = "yes" -o \
    9765         "${ac_cv_header_libavformat_avformat_h}" = "yes" \) -a \
    9766      \( "${ac_cv_header_ffmpeg_avutil_h}" = "yes" -o \
    9767         "${ac_cv_header_libavutil_avutil_h}" = "yes" \) -a \
    9768      \( "${ac_cv_header_ffmpeg_swscale_h}" = "yes" -o \
    9769         "${ac_cv_header_libswscale_swscale_h}" = "yes" \) ] ; then
    9770     HAVE_FFMPEG_LIBS="yes"
    9771 
    9772 $as_echo "#define BUILD_with_ffmpeg 1" >>confdefs.h
    9773 
    9774   fi
    9775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavcodec" >&5
    9776 $as_echo_n "checking for main in -lavcodec... " >&6; }
    9777 if ${ac_cv_lib_avcodec_main+:} false; then :
    9778   $as_echo_n "(cached) " >&6
    9779 else
    9780   ac_check_lib_save_LIBS=$LIBS
    9781 LIBS="-lavcodec  $LIBS"
    9782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    9783 /* end confdefs.h.  */
    9784 
    9785 
    9786 int
    9787 main ()
    9788 {
    9789 return main ();
    9790   ;
    9791   return 0;
    9792 }
    9793 _ACEOF
    9794 if ac_fn_cxx_try_link "$LINENO"; then :
    9795   ac_cv_lib_avcodec_main=yes
    9796 else
    9797   ac_cv_lib_avcodec_main=no
    9798 fi
    9799 rm -f core conftest.err conftest.$ac_objext \
    9800     conftest$ac_exeext conftest.$ac_ext
    9801 LIBS=$ac_check_lib_save_LIBS
    9802 fi
    9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_main" >&5
    9804 $as_echo "$ac_cv_lib_avcodec_main" >&6; }
    9805 if test "x$ac_cv_lib_avcodec_main" = xyes; then :
    9806   cat >>confdefs.h <<_ACEOF
    9807 #define HAVE_LIBAVCODEC 1
    9808 _ACEOF
    9809 
    9810   LIBS="-lavcodec $LIBS"
    9811 
    9812 else
    9813   as_fn_error $? "librappture requires libavcodec" "$LINENO" 5
    9814 fi
    9815 
    9816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavutil" >&5
    9817 $as_echo_n "checking for main in -lavutil... " >&6; }
    9818 if ${ac_cv_lib_avutil_main+:} false; then :
    9819   $as_echo_n "(cached) " >&6
    9820 else
    9821   ac_check_lib_save_LIBS=$LIBS
    9822 LIBS="-lavutil  $LIBS"
    9823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    9824 /* end confdefs.h.  */
    9825 
    9826 
    9827 int
    9828 main ()
    9829 {
    9830 return main ();
    9831   ;
    9832   return 0;
    9833 }
    9834 _ACEOF
    9835 if ac_fn_cxx_try_link "$LINENO"; then :
    9836   ac_cv_lib_avutil_main=yes
    9837 else
    9838   ac_cv_lib_avutil_main=no
    9839 fi
    9840 rm -f core conftest.err conftest.$ac_objext \
    9841     conftest$ac_exeext conftest.$ac_ext
    9842 LIBS=$ac_check_lib_save_LIBS
    9843 fi
    9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_main" >&5
    9845 $as_echo "$ac_cv_lib_avutil_main" >&6; }
    9846 if test "x$ac_cv_lib_avutil_main" = xyes; then :
    9847   cat >>confdefs.h <<_ACEOF
    9848 #define HAVE_LIBAVUTIL 1
    9849 _ACEOF
    9850 
    9851   LIBS="-lavutil $LIBS"
    9852 
    9853 else
    9854   as_fn_error $? "librappture requires libavutil" "$LINENO" 5
    9855 fi
    9856 
    9857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavformat" >&5
    9858 $as_echo_n "checking for main in -lavformat... " >&6; }
    9859 if ${ac_cv_lib_avformat_main+:} false; then :
    9860   $as_echo_n "(cached) " >&6
    9861 else
    9862   ac_check_lib_save_LIBS=$LIBS
    9863 LIBS="-lavformat  $LIBS"
    9864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    9865 /* end confdefs.h.  */
    9866 
    9867 
    9868 int
    9869 main ()
    9870 {
    9871 return main ();
    9872   ;
    9873   return 0;
    9874 }
    9875 _ACEOF
    9876 if ac_fn_cxx_try_link "$LINENO"; then :
    9877   ac_cv_lib_avformat_main=yes
    9878 else
    9879   ac_cv_lib_avformat_main=no
    9880 fi
    9881 rm -f core conftest.err conftest.$ac_objext \
    9882     conftest$ac_exeext conftest.$ac_ext
    9883 LIBS=$ac_check_lib_save_LIBS
    9884 fi
    9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_main" >&5
    9886 $as_echo "$ac_cv_lib_avformat_main" >&6; }
    9887 if test "x$ac_cv_lib_avformat_main" = xyes; then :
    9888   cat >>confdefs.h <<_ACEOF
    9889 #define HAVE_LIBAVFORMAT 1
    9890 _ACEOF
    9891 
    9892   LIBS="-lavformat $LIBS"
    9893 
    9894 else
    9895   as_fn_error $? "librappture requires libavformat" "$LINENO" 5
    9896 fi
    9897 
    9898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lswscale" >&5
    9899 $as_echo_n "checking for main in -lswscale... " >&6; }
    9900 if ${ac_cv_lib_swscale_main+:} false; then :
    9901   $as_echo_n "(cached) " >&6
    9902 else
    9903   ac_check_lib_save_LIBS=$LIBS
    9904 LIBS="-lswscale  $LIBS"
    9905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    9906 /* end confdefs.h.  */
    9907 
    9908 
    9909 int
    9910 main ()
    9911 {
    9912 return main ();
    9913   ;
    9914   return 0;
    9915 }
    9916 _ACEOF
    9917 if ac_fn_cxx_try_link "$LINENO"; then :
    9918   ac_cv_lib_swscale_main=yes
    9919 else
    9920   ac_cv_lib_swscale_main=no
    9921 fi
    9922 rm -f core conftest.err conftest.$ac_objext \
    9923     conftest$ac_exeext conftest.$ac_ext
    9924 LIBS=$ac_check_lib_save_LIBS
    9925 fi
    9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_main" >&5
    9927 $as_echo "$ac_cv_lib_swscale_main" >&6; }
    9928 if test "x$ac_cv_lib_swscale_main" = xyes; then :
    9929   cat >>confdefs.h <<_ACEOF
    9930 #define HAVE_LIBSWSCALE 1
    9931 _ACEOF
    9932 
    9933   LIBS="-lswscale $LIBS"
    9934 
    9935 fi
    9936 
    9937   for ac_func in av_find_stream_info
    9938 do :
    9939   ac_fn_cxx_check_func "$LINENO" "av_find_stream_info" "ac_cv_func_av_find_stream_info"
    9940 if test "x$ac_cv_func_av_find_stream_info" = xyes; then :
    9941   cat >>confdefs.h <<_ACEOF
    9942 #define HAVE_AV_FIND_STREAM_INFO 1
    9943 _ACEOF
    9944 
    9945 fi
    9946 done
    9947 
    9948   for ac_func in av_open_input_file
    9949 do :
    9950   ac_fn_cxx_check_func "$LINENO" "av_open_input_file" "ac_cv_func_av_open_input_file"
    9951 if test "x$ac_cv_func_av_open_input_file" = xyes; then :
    9952   cat >>confdefs.h <<_ACEOF
    9953 #define HAVE_AV_OPEN_INPUT_FILE 1
    9954 _ACEOF
    9955 
    9956 fi
    9957 done
    9958 
    9959   for ac_func in avcodec_decode_video
    9960 do :
    9961   ac_fn_cxx_check_func "$LINENO" "avcodec_decode_video" "ac_cv_func_avcodec_decode_video"
    9962 if test "x$ac_cv_func_avcodec_decode_video" = xyes; then :
    9963   cat >>confdefs.h <<_ACEOF
    9964 #define HAVE_AVCODEC_DECODE_VIDEO 1
    9965 _ACEOF
    9966 
    9967 fi
    9968 done
    9969 
    9970   for ac_func in avcodec_decode_video2
    9971 do :
    9972   ac_fn_cxx_check_func "$LINENO" "avcodec_decode_video2" "ac_cv_func_avcodec_decode_video2"
    9973 if test "x$ac_cv_func_avcodec_decode_video2" = xyes; then :
    9974   cat >>confdefs.h <<_ACEOF
    9975 #define HAVE_AVCODEC_DECODE_VIDEO2 1
    9976 _ACEOF
    9977 
    9978 fi
    9979 done
    9980 
    9981   for ac_func in avcodec_open
    9982 do :
    9983   ac_fn_cxx_check_func "$LINENO" "avcodec_open" "ac_cv_func_avcodec_open"
    9984 if test "x$ac_cv_func_avcodec_open" = xyes; then :
    9985   cat >>confdefs.h <<_ACEOF
    9986 #define HAVE_AVCODEC_OPEN 1
    9987 _ACEOF
    9988 
    9989 fi
    9990 done
    9991 
    9992   for ac_func in avcodec_open2
    9993 do :
    9994   ac_fn_cxx_check_func "$LINENO" "avcodec_open2" "ac_cv_func_avcodec_open2"
    9995 if test "x$ac_cv_func_avcodec_open2" = xyes; then :
    9996   cat >>confdefs.h <<_ACEOF
    9997 #define HAVE_AVCODEC_OPEN2 1
    9998 _ACEOF
    9999 
    10000 fi
    10001 done
    10002 
    10003   for ac_func in avformat_find_stream_info
    10004 do :
    10005   ac_fn_cxx_check_func "$LINENO" "avformat_find_stream_info" "ac_cv_func_avformat_find_stream_info"
    10006 if test "x$ac_cv_func_avformat_find_stream_info" = xyes; then :
    10007   cat >>confdefs.h <<_ACEOF
    10008 #define HAVE_AVFORMAT_FIND_STREAM_INFO 1
    10009 _ACEOF
    10010 
    10011 fi
    10012 done
    10013 
    10014   for ac_func in avformat_open_input
    10015 do :
    10016   ac_fn_cxx_check_func "$LINENO" "avformat_open_input" "ac_cv_func_avformat_open_input"
    10017 if test "x$ac_cv_func_avformat_open_input" = xyes; then :
    10018   cat >>confdefs.h <<_ACEOF
    10019 #define HAVE_AVFORMAT_OPEN_INPUT 1
    10020 _ACEOF
    10021 
    10022 fi
    10023 done
    10024 
    10025   for ac_func in avio_close
    10026 do :
    10027   ac_fn_cxx_check_func "$LINENO" "avio_close" "ac_cv_func_avio_close"
    10028 if test "x$ac_cv_func_avio_close" = xyes; then :
    10029   cat >>confdefs.h <<_ACEOF
    10030 #define HAVE_AVIO_CLOSE 1
    10031 _ACEOF
    10032 
    10033 fi
    10034 done
    10035 
    10036   for ac_func in img_convert
    10037 do :
    10038   ac_fn_cxx_check_func "$LINENO" "img_convert" "ac_cv_func_img_convert"
    10039 if test "x$ac_cv_func_img_convert" = xyes; then :
    10040   cat >>confdefs.h <<_ACEOF
    10041 #define HAVE_IMG_CONVERT 1
    10042 _ACEOF
    10043 
    10044 fi
    10045 done
    10046 
    10047   for ac_func in sws_getCachedContext
    10048 do :
    10049   ac_fn_cxx_check_func "$LINENO" "sws_getCachedContext" "ac_cv_func_sws_getCachedContext"
    10050 if test "x$ac_cv_func_sws_getCachedContext" = xyes; then :
    10051   cat >>confdefs.h <<_ACEOF
    10052 #define HAVE_SWS_GETCACHEDCONTEXT 1
    10053 _ACEOF
    10054 
    10055 fi
    10056 done
    10057 
    10058   for ac_func in sws_scale
    10059 do :
    10060   ac_fn_cxx_check_func "$LINENO" "sws_scale" "ac_cv_func_sws_scale"
    10061 if test "x$ac_cv_func_sws_scale" = xyes; then :
    10062   cat >>confdefs.h <<_ACEOF
    10063 #define HAVE_SWS_SCALE 1
    10064 _ACEOF
    10065 
    10066 fi
    10067 done
    10068 
    10069   for ac_func in url_close
    10070 do :
    10071   ac_fn_cxx_check_func "$LINENO" "url_close" "ac_cv_func_url_close"
    10072 if test "x$ac_cv_func_url_close" = xyes; then :
    10073   cat >>confdefs.h <<_ACEOF
    10074 #define HAVE_URL_CLOSE 1
    10075 _ACEOF
    10076 
    10077 fi
    10078 done
    10079 
    10080   for ac_func in av_close_input_file
    10081 do :
    10082   ac_fn_cxx_check_func "$LINENO" "av_close_input_file" "ac_cv_func_av_close_input_file"
    10083 if test "x$ac_cv_func_av_close_input_file" = xyes; then :
    10084   cat >>confdefs.h <<_ACEOF
    10085 #define HAVE_AV_CLOSE_INPUT_FILE 1
    10086 _ACEOF
    10087 
    10088 fi
    10089 done
    10090 
    10091   for ac_func in avformat_close_input
    10092 do :
    10093   ac_fn_cxx_check_func "$LINENO" "avformat_close_input" "ac_cv_func_avformat_close_input"
    10094 if test "x$ac_cv_func_avformat_close_input" = xyes; then :
    10095   cat >>confdefs.h <<_ACEOF
    10096 #define HAVE_AVFORMAT_CLOSE_INPUT 1
    10097 _ACEOF
    10098 
    10099 fi
    10100 done
    10101 
    10102 
    10103   ac_fn_cxx_check_func "$LINENO" "avcodec_find_decoder" "ac_cv_func_avcodec_find_decoder"
    10104 if test "x$ac_cv_func_avcodec_find_decoder" = xyes; then :
    10105 
    10106 else
    10107   as_fn_error $? "oops! no av_codec_find_decoder ?!?" "$LINENO" 5
    10108 fi
    10109 
    10110   ac_fn_cxx_check_func "$LINENO" "avcodec_alloc_frame" "ac_cv_func_avcodec_alloc_frame"
    10111 if test "x$ac_cv_func_avcodec_alloc_frame" = xyes; then :
    10112 
    10113 else
    10114   as_fn_error $? "oops! no avcode_alloc_frame ?!?" "$LINENO" 5
    10115 fi
    10116 
    10117   ac_fn_cxx_check_func "$LINENO" "av_rescale_q" "ac_cv_func_av_rescale_q"
    10118 if test "x$ac_cv_func_av_rescale_q" = xyes; then :
    10119 
    10120 else
    10121   as_fn_error $? "oops! no av_rescale_q ?!?" "$LINENO" 5
    10122 fi
    10123 
    10124   ac_fn_cxx_check_func "$LINENO" "av_read_frame" "ac_cv_func_av_read_frame"
    10125 if test "x$ac_cv_func_av_read_frame" = xyes; then :
    10126 
    10127 else
    10128   as_fn_error $? "oops! av_read_frame ?!?" "$LINENO" 5
    10129 fi
    10130 
    10131   ac_fn_cxx_check_func "$LINENO" "av_free" "ac_cv_func_av_free"
    10132 if test "x$ac_cv_func_av_free" = xyes; then :
    10133 
    10134 else
    10135   as_fn_error $? "oops! no av_frame ?!?" "$LINENO" 5
    10136 fi
    10137 
    10138   ac_fn_cxx_check_func "$LINENO" "avcodec_default_release_buffer" "ac_cv_func_avcodec_default_release_buffer"
    10139 if test "x$ac_cv_func_avcodec_default_release_buffer" = xyes; then :
    10140 
    10141 else
    10142   as_fn_error $? "oops! no avcode_default_release_buffer ?!?" "$LINENO" 5
    10143 fi
    10144 
    10145   ac_fn_cxx_check_func "$LINENO" "avpicture_get_size" "ac_cv_func_avpicture_get_size"
    10146 if test "x$ac_cv_func_avpicture_get_size" = xyes; then :
    10147 
    10148 else
    10149   as_fn_error $? "oops! no avpicture_get_size ?!?" "$LINENO" 5
    10150 fi
    10151 
    10152   ac_fn_cxx_check_func "$LINENO" "avpicture_fill" "ac_cv_func_avpicture_fill"
    10153 if test "x$ac_cv_func_avpicture_fill" = xyes; then :
    10154 
    10155 else
    10156   as_fn_error $? "oops! no avpicture_fill ?!?" "$LINENO" 5
    10157 fi
    10158 
    10159   for ac_func in sws_getCachedContext
    10160 do :
    10161   ac_fn_cxx_check_func "$LINENO" "sws_getCachedContext" "ac_cv_func_sws_getCachedContext"
    10162 if test "x$ac_cv_func_sws_getCachedContext" = xyes; then :
    10163   cat >>confdefs.h <<_ACEOF
    10164 #define HAVE_SWS_GETCACHEDCONTEXT 1
    10165 _ACEOF
    10166 
    10167 fi
    10168 done
    10169 
    10170   for ac_func in img_convert
    10171 do :
    10172   ac_fn_cxx_check_func "$LINENO" "img_convert" "ac_cv_func_img_convert"
    10173 if test "x$ac_cv_func_img_convert" = xyes; then :
    10174   cat >>confdefs.h <<_ACEOF
    10175 #define HAVE_IMG_CONVERT 1
    10176 _ACEOF
    10177 
    10178 fi
    10179 done
    10180 
    10181   for ac_func in sws_scale
    10182 do :
    10183   ac_fn_cxx_check_func "$LINENO" "sws_scale" "ac_cv_func_sws_scale"
    10184 if test "x$ac_cv_func_sws_scale" = xyes; then :
    10185   cat >>confdefs.h <<_ACEOF
    10186 #define HAVE_SWS_SCALE 1
    10187 _ACEOF
    10188 
    10189 fi
    10190 done
    10191 
    10192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    10193 /* end confdefs.h.  */
    10194 
    10195 #define __STDC_CONSTANT_MACROS 1
    10196 #include <stdlib.h>
    10197 #ifdef HAVE_FFMPEG_AVCODEC_H
    10198 # include <ffmpeg/avcodec.h>
    10199 #endif
    10200 #ifdef HAVE_LIBAVCODEC_AVCODEC_H
    10201 # include <libavcodec/avcodec.h>
    10202 #endif
    10203 int x = AVMEDIA_TYPE_VIDEO;
    10204 
    10205 int
    10206 main ()
    10207 {
    10208 
    10209   ;
    10210   return 0;
    10211 }
    10212 _ACEOF
    10213 if ac_fn_cxx_try_compile "$LINENO"; then :
    10214   ac_avmedia_type_video="yes"
    10215 else
    10216   ac_avmedia_type_video="no"
    10217 fi
    10218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    10219   if test "$ac_avmedia_type_video" == "yes" ; then
    10220 
    10221 $as_echo "#define HAVE_AVMEDIA_TYPE_VIDEO 1" >>confdefs.h
    10222 
    10223   fi
    10224 fi
    10225 
    10226 
    10227 
    10228 
    10229 
    10230 
    10231 
    10232 
    10233 
    10234 
    10235 
    102368014
    102378015
     
    102828060
    102838061
    10284 
    10285 
    10286 
    10287 
    10288 
    10289 
    10290 
    10291 
    10292 
    10293 
    10294 
    10295 
    10296 
    10297 
    10298 
    10299 
    10300 
    10301 
    10302 
    10303 
    10304 
    10305 
    10306 
    10307 
    10308 
    10309 
    10310 
    10311 
    10312 
    10313 
    10314 
    10315 
    10316 
    10317 
    10318 
    10319 
    10320 ac_config_files="$ac_config_files Makefile 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 builder/Makefile builder/pkgIndex.tcl builder/scripts/Makefile examples/3D/Makefile examples/Makefile examples/app-fermi/2.0/Makefile examples/app-fermi/Makefile examples/app-fermi/R/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/Makefile examples/app-fermi/octave/octave2/Makefile examples/app-fermi/octave/octave3/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/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 gui/Makefile gui/pkgIndex.tcl gui/scripts/Makefile lang/Makefile lang/R/Makefile lang/java/Makefile lang/java/rappture/Makefile lang/matlab/Makefile lang/octave/Makefile lang/octave/octave2/Makefile lang/octave/octave3/Makefile lang/perl/Makefile lang/perl/Makefile.PL lang/python/Makefile lang/python/setup.py 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 lib/objects/Makefile lib/objects/RpHash.h lib/rappture/Makefile lib/rappture2/Makefile packages/DicomToVtk/Makefile packages/DicomToVtk/pkgIndex.tcl packages/DxToVtk/Makefile packages/DxToVtk/pkgIndex.tcl packages/Makefile packages/PdbToVtk/Makefile packages/PdbToVtk/pkgIndex.tcl packages/diffview/Makefile packages/diffview/pkgIndex.tcl packages/hotspot/Makefile packages/hotspot/pkgIndex.tcl packages/listbox/Makefile packages/listbox/pkgIndex.tcl packages/placard/Makefile packages/placard/pkgIndex.tcl packages/readpoints/Makefile packages/readpoints/pkgIndex.tcl packages/squeezer/Makefile packages/squeezer/pkgIndex.tcl packages/system/Makefile packages/system/pkgIndex.tcl runner/Makefile tester/Makefile tester/pkgIndex.tcl tester/scripts/Makefile"
     8062ac_config_files="$ac_config_files Makefile 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 builder/Makefile builder/pkgIndex.tcl builder/scripts/Makefile packages/DicomToVtk/Makefile packages/DicomToVtk/pkgIndex.tcl packages/DxToVtk/Makefile packages/DxToVtk/pkgIndex.tcl packages/Makefile packages/PdbToVtk/Makefile packages/PdbToVtk/pkgIndex.tcl packages/diffview/Makefile packages/diffview/pkgIndex.tcl packages/hotspot/Makefile packages/hotspot/pkgIndex.tcl packages/listbox/Makefile packages/listbox/pkgIndex.tcl packages/placard/Makefile packages/placard/pkgIndex.tcl packages/readpoints/Makefile packages/readpoints/pkgIndex.tcl packages/squeezer/Makefile packages/squeezer/pkgIndex.tcl packages/system/Makefile packages/system/pkgIndex.tcl runner/Makefile tester/Makefile tester/pkgIndex.tcl tester/scripts/Makefile"
    103218063
    103228064cat >confcache <<\_ACEOF
     
    104108152test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    104118153
    10412 DEFS=-DHAVE_CONFIG_H
     8154# Transform confdefs.h into DEFS.
     8155# Protect against shell expansion while executing Makefile rules.
     8156# Protect against Makefile macro expansion.
     8157#
     8158# If the first sed substitution is executed (which looks for macros that
     8159# take arguments), then branch to the quote section.  Otherwise,
     8160# look for a macro that doesn't take arguments.
     8161ac_script='
     8162:mline
     8163/\\$/{
     8164 N
     8165 s,\\\n,,
     8166 b mline
     8167}
     8168t clear
     8169:clear
     8170s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
     8171t quote
     8172s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
     8173t quote
     8174b any
     8175:quote
     8176s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
     8177s/\[/\\&/g
     8178s/\]/\\&/g
     8179s/\$/$$/g
     8180H
     8181:any
     8182${
     8183        g
     8184        s/^\n//
     8185        s/\n/ /g
     8186        p
     8187}
     8188'
     8189DEFS=`sed -n "$ac_script" confdefs.h`
     8190
    104138191
    104148192ac_libobjs=
     
    108458623esac
    108468624
    10847 case $ac_config_headers in *"
    10848 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
    10849 esac
    108508625
    108518626
     
    108538628# Files that config.status was made for.
    108548629config_files="$ac_config_files"
    10855 config_headers="$ac_config_headers"
    108568630
    108578631_ACEOF
     
    108748648      --file=FILE[:TEMPLATE]
    108758649                   instantiate the configuration file FILE
    10876       --header=FILE[:TEMPLATE]
    10877                    instantiate the configuration header FILE
    108788650
    108798651Configuration files:
    108808652$config_files
    10881 
    10882 Configuration headers:
    10883 $config_headers
    108848653
    108858654Report bugs to <rappture@nanohub.org>."
     
    109458714    as_fn_append CONFIG_FILES " '$ac_optarg'"
    109468715    ac_need_defaults=false;;
    10947   --header | --heade | --head | --hea )
    10948     $ac_shift
    10949     case $ac_optarg in
    10950     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    10951     esac
    10952     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
    10953     ac_need_defaults=false;;
    10954   --he | --h)
    10955     # Conflict between --help and --header
    10956     as_fn_error $? "ambiguous option: \`$1'
    10957 Try \`$0 --help' for more information.";;
    10958   --help | --hel | -h )
     8716  --he | --h |  --help | --hel | -h )
    109598717    $as_echo "$ac_cs_usage"; exit ;;
    109608718  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     
    110128770do
    110138771  case $ac_config_target in
    11014     "lib/rappture/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/rappture/config.h" ;;
    110158772    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    110168773    "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;;
     
    110288785    "builder/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES builder/pkgIndex.tcl" ;;
    110298786    "builder/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES builder/scripts/Makefile" ;;
    11030     "examples/3D/Makefile") CONFIG_FILES="$CONFIG_FILES examples/3D/Makefile" ;;
    11031     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
    11032     "examples/app-fermi/2.0/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/2.0/Makefile" ;;
    11033     "examples/app-fermi/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/Makefile" ;;
    11034     "examples/app-fermi/R/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/R/Makefile" ;;
    11035     "examples/app-fermi/cee/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/cee/Makefile" ;;
    11036     "examples/app-fermi/fortran/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/fortran/Makefile" ;;
    11037     "examples/app-fermi/java/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/java/Makefile" ;;
    11038     "examples/app-fermi/matlab/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/matlab/Makefile" ;;
    11039     "examples/app-fermi/matlab/compiled/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/matlab/compiled/Makefile" ;;
    11040     "examples/app-fermi/matlab/uncompiled/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/matlab/uncompiled/Makefile" ;;
    11041     "examples/app-fermi/octave/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/octave/Makefile" ;;
    11042     "examples/app-fermi/octave/octave2/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/octave/octave2/Makefile" ;;
    11043     "examples/app-fermi/octave/octave3/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/octave/octave3/Makefile" ;;
    11044     "examples/app-fermi/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/perl/Makefile" ;;
    11045     "examples/app-fermi/python/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/python/Makefile" ;;
    11046     "examples/app-fermi/ruby/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/ruby/Makefile" ;;
    11047     "examples/app-fermi/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/tcl/Makefile" ;;
    11048     "examples/app-fermi/wrapper/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/Makefile" ;;
    11049     "examples/app-fermi/wrapper/cee/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/cee/Makefile" ;;
    11050     "examples/app-fermi/wrapper/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/perl/Makefile" ;;
    11051     "examples/app-fermi/wrapper/python/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/python/Makefile" ;;
    11052     "examples/app-fermi/wrapper/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/tcl/Makefile" ;;
    11053     "examples/c-example/Makefile") CONFIG_FILES="$CONFIG_FILES examples/c-example/Makefile" ;;
    11054     "examples/canvas/Makefile") CONFIG_FILES="$CONFIG_FILES examples/canvas/Makefile" ;;
    11055     "examples/demo.bash") CONFIG_FILES="$CONFIG_FILES examples/demo.bash" ;;
    11056     "examples/flow/Makefile") CONFIG_FILES="$CONFIG_FILES examples/flow/Makefile" ;;
    11057     "examples/flow/demo1/Makefile") CONFIG_FILES="$CONFIG_FILES examples/flow/demo1/Makefile" ;;
    11058     "examples/flow/demo2/Makefile") CONFIG_FILES="$CONFIG_FILES examples/flow/demo2/Makefile" ;;
    11059     "examples/flow/demo3/Makefile") CONFIG_FILES="$CONFIG_FILES examples/flow/demo3/Makefile" ;;
    11060     "examples/graph/Makefile") CONFIG_FILES="$CONFIG_FILES examples/graph/Makefile" ;;
    11061     "examples/objects/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/Makefile" ;;
    11062     "examples/objects/axis/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/axis/Makefile" ;;
    11063     "examples/objects/curve/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/curve/Makefile" ;;
    11064     "examples/objects/dxWriter/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/dxWriter/Makefile" ;;
    11065     "examples/objects/floatBuffer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/floatBuffer/Makefile" ;;
    11066     "examples/objects/histogram/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/histogram/Makefile" ;;
    11067     "examples/objects/library/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/library/Makefile" ;;
    11068     "examples/objects/number/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/number/Makefile" ;;
    11069     "examples/objects/path/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/path/Makefile" ;;
    11070     "examples/objects/plot/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/plot/Makefile" ;;
    11071     "examples/objects/scatter/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/scatter/Makefile" ;;
    11072     "examples/objects/string/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/string/Makefile" ;;
    11073     "examples/objects/tree/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/tree/Makefile" ;;
    11074     "examples/objects/xmlparser/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/xmlparser/Makefile" ;;
    11075     "examples/zoo/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/Makefile" ;;
    11076     "examples/zoo/binary/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/binary/Makefile" ;;
    11077     "examples/zoo/boolean/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/boolean/Makefile" ;;
    11078     "examples/zoo/choice/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/choice/Makefile" ;;
    11079     "examples/zoo/curve/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/curve/Makefile" ;;
    11080     "examples/zoo/drawing/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/drawing/Makefile" ;;
    11081     "examples/zoo/enable/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/enable/Makefile" ;;
    11082     "examples/zoo/field/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/field/Makefile" ;;
    11083     "examples/zoo/group/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/group/Makefile" ;;
    11084     "examples/zoo/histogram/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/histogram/Makefile" ;;
    11085     "examples/zoo/image/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/image/Makefile" ;;
    11086     "examples/zoo/image/docs/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/image/docs/Makefile" ;;
    11087     "examples/zoo/image/examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/image/examples/Makefile" ;;
    11088     "examples/zoo/integer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/integer/Makefile" ;;
    11089     "examples/zoo/integer2/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/integer2/Makefile" ;;
    11090     "examples/zoo/loader/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/loader/Makefile" ;;
    11091     "examples/zoo/loader/examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/loader/examples/Makefile" ;;
    11092     "examples/zoo/log/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/log/Makefile" ;;
    11093     "examples/zoo/mesh/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/mesh/Makefile" ;;
    11094     "examples/zoo/note/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/note/Makefile" ;;
    11095     "examples/zoo/note/docs/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/note/docs/Makefile" ;;
    11096     "examples/zoo/number/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/number/Makefile" ;;
    11097     "examples/zoo/number2/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/number2/Makefile" ;;
    11098     "examples/zoo/parallelepiped/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/parallelepiped/Makefile" ;;
    11099     "examples/zoo/periodicelement/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/periodicelement/Makefile" ;;
    11100     "examples/zoo/phase/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/phase/Makefile" ;;
    11101     "examples/zoo/sequence/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/sequence/Makefile" ;;
    11102     "examples/zoo/sequence/examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/sequence/examples/Makefile" ;;
    11103     "examples/zoo/string/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/string/Makefile" ;;
    11104     "examples/zoo/structure/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/structure/Makefile" ;;
    11105     "examples/zoo/structure/examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/structure/examples/Makefile" ;;
    11106     "examples/zoo/table/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/table/Makefile" ;;
    11107     "gui/Makefile") CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;;
    11108     "gui/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES gui/pkgIndex.tcl" ;;
    11109     "gui/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES gui/scripts/Makefile" ;;
    11110     "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
    11111     "lang/R/Makefile") CONFIG_FILES="$CONFIG_FILES lang/R/Makefile" ;;
    11112     "lang/java/Makefile") CONFIG_FILES="$CONFIG_FILES lang/java/Makefile" ;;
    11113     "lang/java/rappture/Makefile") CONFIG_FILES="$CONFIG_FILES lang/java/rappture/Makefile" ;;
    11114     "lang/matlab/Makefile") CONFIG_FILES="$CONFIG_FILES lang/matlab/Makefile" ;;
    11115     "lang/octave/Makefile") CONFIG_FILES="$CONFIG_FILES lang/octave/Makefile" ;;
    11116     "lang/octave/octave2/Makefile") CONFIG_FILES="$CONFIG_FILES lang/octave/octave2/Makefile" ;;
    11117     "lang/octave/octave3/Makefile") CONFIG_FILES="$CONFIG_FILES lang/octave/octave3/Makefile" ;;
    11118     "lang/perl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/perl/Makefile" ;;
    11119     "lang/perl/Makefile.PL") CONFIG_FILES="$CONFIG_FILES lang/perl/Makefile.PL" ;;
    11120     "lang/python/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/Makefile" ;;
    11121     "lang/python/setup.py") CONFIG_FILES="$CONFIG_FILES lang/python/setup.py" ;;
    11122     "lang/ruby/Makefile") CONFIG_FILES="$CONFIG_FILES lang/ruby/Makefile" ;;
    11123     "lang/ruby/build.rb") CONFIG_FILES="$CONFIG_FILES lang/ruby/build.rb" ;;
    11124     "lang/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/tcl/Makefile" ;;
    11125     "lang/tcl/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES lang/tcl/pkgIndex.tcl" ;;
    11126     "lang/tcl/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES lang/tcl/scripts/Makefile" ;;
    11127     "lang/tcl/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/tcl/src/Makefile" ;;
    11128     "lang/tcl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/tcl/tests/Makefile" ;;
    11129     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
    11130     "lib/objects/Makefile") CONFIG_FILES="$CONFIG_FILES lib/objects/Makefile" ;;
    11131     "lib/objects/RpHash.h") CONFIG_FILES="$CONFIG_FILES lib/objects/RpHash.h" ;;
    11132     "lib/rappture/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rappture/Makefile" ;;
    11133     "lib/rappture2/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rappture2/Makefile" ;;
    111348787    "packages/DicomToVtk/Makefile") CONFIG_FILES="$CONFIG_FILES packages/DicomToVtk/Makefile" ;;
    111358788    "packages/DicomToVtk/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES packages/DicomToVtk/pkgIndex.tcl" ;;
     
    111698822if $ac_need_defaults; then
    111708823  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
    11171   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
    111728824fi
    111738825
     
    113579009fi # test -n "$CONFIG_FILES"
    113589010
    11359 # Set up the scripts for CONFIG_HEADERS section.
    11360 # No need to generate them if there are no CONFIG_HEADERS.
    11361 # This happens for instance with `./config.status Makefile'.
    11362 if test -n "$CONFIG_HEADERS"; then
    11363 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
    11364 BEGIN {
    11365 _ACEOF
    11366 
    11367 # Transform confdefs.h into an awk script `defines.awk', embedded as
    11368 # here-document in config.status, that substitutes the proper values into
    11369 # config.h.in to produce config.h.
    11370 
    11371 # Create a delimiter string that does not exist in confdefs.h, to ease
    11372 # handling of long lines.
    11373 ac_delim='%!_!# '
    11374 for ac_last_try in false false :; do
    11375   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
    11376   if test -z "$ac_tt"; then
    11377     break
    11378   elif $ac_last_try; then
    11379     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
    11380   else
    11381     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
    11382   fi
    11383 done
    11384 
    11385 # For the awk script, D is an array of macro values keyed by name,
    11386 # likewise P contains macro parameters if any.  Preserve backslash
    11387 # newline sequences.
    11388 
    11389 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
    11390 sed -n '
    11391 s/.\{148\}/&'"$ac_delim"'/g
    11392 t rset
    11393 :rset
    11394 s/^[     ]*#[    ]*define[       ][      ]*/ /
    11395 t def
    11396 d
    11397 :def
    11398 s/\\$//
    11399 t bsnl
    11400 s/["\\]/\\&/g
    11401 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
    11402 D["\1"]=" \3"/p
    11403 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
    11404 d
    11405 :bsnl
    11406 s/["\\]/\\&/g
    11407 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
    11408 D["\1"]=" \3\\\\\\n"\\/p
    11409 t cont
    11410 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
    11411 t cont
    11412 d
    11413 :cont
    11414 n
    11415 s/.\{148\}/&'"$ac_delim"'/g
    11416 t clear
    11417 :clear
    11418 s/\\$//
    11419 t bsnlc
    11420 s/["\\]/\\&/g; s/^/"/; s/$/"/p
    11421 d
    11422 :bsnlc
    11423 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
    11424 b cont
    11425 ' <confdefs.h | sed '
    11426 s/'"$ac_delim"'/"\\\
    11427 "/g' >>$CONFIG_STATUS || ac_write_fail=1
    11428 
    11429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    11430   for (key in D) D_is_set[key] = 1
    11431   FS = ""
    11432 }
    11433 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
    11434   line = \$ 0
    11435   split(line, arg, " ")
    11436   if (arg[1] == "#") {
    11437     defundef = arg[2]
    11438     mac1 = arg[3]
    11439   } else {
    11440     defundef = substr(arg[1], 2)
    11441     mac1 = arg[2]
    11442   }
    11443   split(mac1, mac2, "(") #)
    11444   macro = mac2[1]
    11445   prefix = substr(line, 1, index(line, defundef) - 1)
    11446   if (D_is_set[macro]) {
    11447     # Preserve the white space surrounding the "#".
    11448     print prefix "define", macro P[macro] D[macro]
    11449     next
    11450   } else {
    11451     # Replace #undef with comments.  This is necessary, for example,
    11452     # in the case of _POSIX_SOURCE, which is predefined and required
    11453     # on some systems where configure will not decide to define it.
    11454     if (defundef == "undef") {
    11455       print "/*", prefix defundef, macro, "*/"
    11456       next
    11457     }
    11458   }
    11459 }
    11460 { print }
    11461 _ACAWK
    11462 _ACEOF
    11463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    11464   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
    11465 fi # test -n "$CONFIG_HEADERS"
    11466 
    11467 
    11468 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
     9011
     9012eval set X "  :F $CONFIG_FILES      "
    114699013shift
    114709014for ac_tag
     
    116859229  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    116869230 ;;
    11687   :H)
    11688   #
    11689   # CONFIG_HEADER
    11690   #
    11691   if test x"$ac_file" != x-; then
    11692     {
    11693       $as_echo "/* $configure_input  */" \
    11694       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
    11695     } >"$ac_tmp/config.h" \
    11696       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    11697     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
    11698       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
    11699 $as_echo "$as_me: $ac_file is unchanged" >&6;}
    11700     else
    11701       rm -f "$ac_file"
    11702       mv "$ac_tmp/config.h" "$ac_file" \
    11703         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    11704     fi
    11705   else
    11706     $as_echo "/* $configure_input  */" \
    11707       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
    11708       || as_fn_error $? "could not create -" "$LINENO" 5
    11709   fi
    11710  ;;
     9231
    117119232
    117129233
  • branches/r9/configure.in

    r4866 r4867  
    1 
    21AC_INIT([Rappture],[1.4],[rappture@nanohub.org])
    32AC_CONFIG_AUX_DIR(cf)
    4 AC_CONFIG_HEADER(lib/rappture/config.h)
    53
    64#------------------------------------------------------------------------
     
    150148fi
    151149
    152 TCL_VERSION="8.4"
     150TCL_VERSION="8.5"
    153151for dir in \
    154152 ${exec_prefix} \
     
    226224AC_MSG_RESULT([$enable_vtkdicom])
    227225
    228 RP_LANG_MATLAB
    229 RP_LANG_OCTAVE
    230 RP_LANG_PERL
    231 RP_LANG_PYTHON
    232 RP_LANG_JAVA
    233 RP_LANG_R
    234 RP_LANG_RUBY
    235 
    236226RP_BASE=`pwd`
    237227
     
    277267SC_ENABLE_SYMBOLS
    278268
    279 
    280 #--------------------------------------------------------------------
    281 # search for ffmpeg libraries libavcodec, libavformat, libswscale
    282 #--------------------------------------------------------------------
    283 if test "${with_ffmpeg}" != "no" ; then
    284   if test "${with_ffmpeg}" = "yes" ; then
    285     AC_PATH_PROG(FFMPEG, ffmpeg, [], $PATH)
    286   else
    287     AC_PATH_PROG(FFMPEG, ffmpeg, [], [${with_ffmpeg}/bin:${with_ffmpeg}])
    288   fi
    289   if test "${FFMPEG}x" != "x" ; then
    290     AC_DEFINE(HAVE_FFMPEG, 1, [Render servers can use ffmpeg])
    291   fi
    292 fi
    293 
    294 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],,,[
    295 #define __STDC_CONSTANT_MACROS 1
    296 ])
    297 
    298 HAVE_FFMPEG_LIBS=""
    299 if test "${with_ffmpeg}" != "no"; then
    300   if [[ \( "${ac_cv_header_ffmpeg_avcodec_h}" = "yes" -o \
    301         "${ac_cv_header_libavcodec_avcodec_h}" = "yes" \) -a \
    302      \( "${ac_cv_header_ffmpeg_avformat_h}" = "yes" -o \
    303         "${ac_cv_header_libavformat_avformat_h}" = "yes" \) -a \
    304      \( "${ac_cv_header_ffmpeg_avutil_h}" = "yes" -o \
    305         "${ac_cv_header_libavutil_avutil_h}" = "yes" \) -a \
    306      \( "${ac_cv_header_ffmpeg_swscale_h}" = "yes" -o \
    307         "${ac_cv_header_libswscale_swscale_h}" = "yes" \) ]] ; then
    308     HAVE_FFMPEG_LIBS="yes"
    309     AC_DEFINE(BUILD_with_ffmpeg, 1, [Build rappture with ffmpeg widgets])
    310   fi
    311   AC_CHECK_LIB(avcodec, main,,AC_MSG_ERROR(librappture requires libavcodec))
    312   AC_CHECK_LIB(avutil, main,,AC_MSG_ERROR(librappture requires libavutil))
    313   AC_CHECK_LIB(avformat, main,,AC_MSG_ERROR(librappture requires libavformat))
    314   AC_CHECK_LIB(swscale, main)
    315   AC_CHECK_FUNCS(av_find_stream_info)
    316   AC_CHECK_FUNCS(av_open_input_file)
    317   AC_CHECK_FUNCS(avcodec_decode_video)
    318   AC_CHECK_FUNCS(avcodec_decode_video2)
    319   AC_CHECK_FUNCS(avcodec_open)
    320   AC_CHECK_FUNCS(avcodec_open2)
    321   AC_CHECK_FUNCS(avformat_find_stream_info)
    322   AC_CHECK_FUNCS(avformat_open_input)
    323   AC_CHECK_FUNCS(avio_close)
    324   AC_CHECK_FUNCS(img_convert)
    325   AC_CHECK_FUNCS(sws_getCachedContext)
    326   AC_CHECK_FUNCS(sws_scale)
    327   AC_CHECK_FUNCS(url_close)
    328   AC_CHECK_FUNCS(av_close_input_file)
    329   AC_CHECK_FUNCS(avformat_close_input)
    330        
    331   AC_CHECK_FUNC(avcodec_find_decoder,,
    332     AC_MSG_ERROR(oops! no av_codec_find_decoder ?!?))
    333   AC_CHECK_FUNC(avcodec_alloc_frame,,
    334     AC_MSG_ERROR(oops! no avcode_alloc_frame ?!?))
    335   AC_CHECK_FUNC(av_rescale_q,,AC_MSG_ERROR(oops! no av_rescale_q ?!?))
    336   AC_CHECK_FUNC(av_read_frame,,AC_MSG_ERROR(oops! av_read_frame ?!?))
    337   AC_CHECK_FUNC(av_free,,AC_MSG_ERROR(oops! no av_frame ?!?))
    338   AC_CHECK_FUNC(avcodec_default_release_buffer,,
    339     AC_MSG_ERROR(oops! no avcode_default_release_buffer ?!?))
    340   AC_CHECK_FUNC(avpicture_get_size,,
    341     AC_MSG_ERROR(oops! no avpicture_get_size ?!?))
    342   AC_CHECK_FUNC(avpicture_fill,,AC_MSG_ERROR(oops! no avpicture_fill ?!?))
    343   AC_CHECK_FUNCS(sws_getCachedContext)
    344   AC_CHECK_FUNCS(img_convert)
    345   AC_CHECK_FUNCS(sws_scale)
    346   AC_TRY_COMPILE([
    347 #define __STDC_CONSTANT_MACROS 1
    348 #include <stdlib.h>
    349 #ifdef HAVE_FFMPEG_AVCODEC_H
    350 # include <ffmpeg/avcodec.h>
    351 #endif
    352 #ifdef HAVE_LIBAVCODEC_AVCODEC_H
    353 # include <libavcodec/avcodec.h>
    354 #endif
    355 int x = AVMEDIA_TYPE_VIDEO;
    356 ],, ac_avmedia_type_video="yes", ac_avmedia_type_video="no")
    357   if test "$ac_avmedia_type_video" == "yes" ; then
    358     AC_DEFINE(HAVE_AVMEDIA_TYPE_VIDEO,1,[Define if AVMEDIA_TYPE_VIDEO enum exists. ])
    359   fi
    360 fi
    361 
    362269AC_SUBST(CFLAGS_DEBUG)
    363270AC_SUBST(CFLAGS_OPTIMIZE)
     
    366273AC_SUBST(ENABLE_VTK)
    367274AC_SUBST(ENABLE_VTK_DICOM)
    368 AC_SUBST(FFMPEG)
    369 AC_SUBST(HAVE_FFMPEG_LIBS)
    370275AC_SUBST(HAVE_INTTYPES_H)
    371 AC_SUBST(HAVE_RUBY_DEVEL)
    372276AC_SUBST(INSTALL_PREFIX)
    373 AC_SUBST(JAVA)
    374 AC_SUBST(JAVAC)
    375 AC_SUBST(JAVAH)
    376 AC_SUBST(JAVA_HOME)
    377 AC_SUBST(JAVA_INC_DIR)
    378 AC_SUBST(JAVA_INC_SPEC)
    379277AC_SUBST(LIB_SEARCH_DIRS)
    380278AC_SUBST(MAKE, ${make_command})
    381 AC_SUBST(MATLAB)
    382 AC_SUBST(MCC)
    383 AC_SUBST(MEX)
    384 AC_SUBST(MEXEXT)
    385 AC_SUBST(MEX_ARCH)
    386 AC_SUBST(MKOCTFILE2)
    387 AC_SUBST(MKOCTFILE3)
    388279AC_SUBST(SVN_VERSION)
    389 AC_SUBST(OCTAVE_VERSION)
    390 AC_SUBST(OCTAVE_VERSION_MAJOR)
    391 AC_SUBST(PERL)
    392 AC_SUBST(PERL_ARCHLIB)
    393 AC_SUBST(PERL_ARCHLIBEXP)
    394 AC_SUBST(PERL_CCFLAGS)
    395 AC_SUBST(PERL_CPPFLAGS)
    396 AC_SUBST(PERL_INCLUDES)
    397 AC_SUBST(PERL_INSTALLARCHLIB)
    398 AC_SUBST(PERL_LIBSPEC)
    399 AC_SUBST(PERL_PRIVLIB)
    400 AC_SUBST(PERL_VENDORLIB)
    401 AC_SUBST(PERL_VERSION)
    402 AC_SUBST(PERL_VERSION_RV)
    403 AC_SUBST(PYTHON)
    404 AC_SUBST(PYTHON_CFLAGS)
    405 AC_SUBST(PYTHON_DISTUTILS)
    406 AC_SUBST(PYTHON_INCDIR)
    407 AC_SUBST(PYTHON_INCLUDES)
    408 AC_SUBST(PYTHON_LDFLAGS)
    409 AC_SUBST(PYTHON_LIB)
    410 AC_SUBST(PYTHON_LIBDIR)
    411 AC_SUBST(PYTHON_SITE_DIR)
    412 AC_SUBST(PYTHON_SITE_PACKAGES)
    413 AC_SUBST(PYTHON_VERSION)
    414 AC_SUBST(R)
    415280AC_SUBST(RP_BASE)
    416 AC_SUBST(RUBY)
    417 AC_SUBST(RUBY_PLATFORM)
    418 AC_SUBST(RUBY_VERSION_RV)
    419281AC_SUBST(SHLIB_CFLAGS)
    420282AC_SUBST(SHLIB_LD)
     
    470332    builder/pkgIndex.tcl
    471333    builder/scripts/Makefile
    472     examples/3D/Makefile
    473     examples/Makefile
    474     examples/app-fermi/2.0/Makefile
    475     examples/app-fermi/Makefile
    476     examples/app-fermi/R/Makefile
    477     examples/app-fermi/cee/Makefile
    478     examples/app-fermi/fortran/Makefile
    479     examples/app-fermi/java/Makefile
    480     examples/app-fermi/matlab/Makefile
    481     examples/app-fermi/matlab/compiled/Makefile
    482     examples/app-fermi/matlab/uncompiled/Makefile
    483     examples/app-fermi/octave/Makefile
    484     examples/app-fermi/octave/octave2/Makefile
    485     examples/app-fermi/octave/octave3/Makefile
    486     examples/app-fermi/perl/Makefile
    487     examples/app-fermi/python/Makefile
    488     examples/app-fermi/ruby/Makefile
    489     examples/app-fermi/tcl/Makefile
    490     examples/app-fermi/wrapper/Makefile
    491     examples/app-fermi/wrapper/cee/Makefile
    492     examples/app-fermi/wrapper/perl/Makefile
    493     examples/app-fermi/wrapper/python/Makefile
    494     examples/app-fermi/wrapper/tcl/Makefile
    495     examples/c-example/Makefile
    496     examples/canvas/Makefile
    497     examples/demo.bash
    498     examples/flow/Makefile
    499     examples/flow/demo1/Makefile
    500     examples/flow/demo2/Makefile
    501     examples/flow/demo3/Makefile
    502     examples/graph/Makefile
    503     examples/objects/Makefile
    504     examples/objects/axis/Makefile
    505     examples/objects/curve/Makefile
    506     examples/objects/dxWriter/Makefile
    507     examples/objects/floatBuffer/Makefile
    508     examples/objects/histogram/Makefile
    509     examples/objects/library/Makefile
    510     examples/objects/number/Makefile
    511     examples/objects/path/Makefile
    512     examples/objects/plot/Makefile
    513     examples/objects/scatter/Makefile
    514     examples/objects/string/Makefile
    515     examples/objects/tree/Makefile
    516     examples/objects/xmlparser/Makefile
    517     examples/zoo/Makefile
    518     examples/zoo/binary/Makefile
    519     examples/zoo/boolean/Makefile
    520     examples/zoo/choice/Makefile
    521     examples/zoo/curve/Makefile
    522     examples/zoo/drawing/Makefile
    523     examples/zoo/enable/Makefile
    524     examples/zoo/field/Makefile
    525     examples/zoo/group/Makefile
    526     examples/zoo/histogram/Makefile
    527     examples/zoo/image/Makefile
    528     examples/zoo/image/docs/Makefile
    529     examples/zoo/image/examples/Makefile
    530     examples/zoo/integer/Makefile
    531     examples/zoo/integer2/Makefile
    532     examples/zoo/loader/Makefile
    533     examples/zoo/loader/examples/Makefile
    534     examples/zoo/log/Makefile
    535     examples/zoo/mesh/Makefile
    536     examples/zoo/note/Makefile
    537     examples/zoo/note/docs/Makefile
    538     examples/zoo/number/Makefile
    539     examples/zoo/number2/Makefile
    540     examples/zoo/parallelepiped/Makefile
    541     examples/zoo/periodicelement/Makefile
    542     examples/zoo/phase/Makefile
    543     examples/zoo/sequence/Makefile
    544     examples/zoo/sequence/examples/Makefile
    545     examples/zoo/string/Makefile
    546     examples/zoo/structure/Makefile
    547     examples/zoo/structure/examples/Makefile
    548     examples/zoo/table/Makefile
    549     gui/Makefile
    550     gui/pkgIndex.tcl
    551     gui/scripts/Makefile
    552     lang/Makefile
    553     lang/R/Makefile
    554     lang/java/Makefile
    555     lang/java/rappture/Makefile
    556     lang/matlab/Makefile
    557     lang/octave/Makefile
    558     lang/octave/octave2/Makefile
    559     lang/octave/octave3/Makefile
    560     lang/perl/Makefile
    561     lang/perl/Makefile.PL
    562     lang/python/Makefile
    563     lang/python/setup.py
    564     lang/ruby/Makefile
    565     lang/ruby/build.rb
    566     lang/tcl/Makefile
    567     lang/tcl/pkgIndex.tcl
    568     lang/tcl/scripts/Makefile
    569     lang/tcl/src/Makefile
    570     lang/tcl/tests/Makefile
    571     lib/Makefile
    572     lib/objects/Makefile
    573     lib/objects/RpHash.h
    574     lib/rappture/Makefile
    575     lib/rappture2/Makefile
    576334    packages/DicomToVtk/Makefile
    577335    packages/DicomToVtk/pkgIndex.tcl
  • branches/r9/gui/configure

    r4146 r4867  
    587587ac_subst_vars='LTLIBOBJS
    588588LIBOBJS
    589 TCL_SHLIB_SUFFIX
    590 TCL_SHLIB_LDFLAGS
    591 TCL_SHLIB_CFLAGS
    592 TCL_SHLIB_LD
    593 TCL_STLIB_LD
    594 TCL_CFLAGS_OPTIMIZE
    595 TCL_CFLAGS_DEBUG
    596 TK_VERSION
    597 TK_XLIBSW
    598 TK_LIB_SPEC
    599 TK_INC_SPEC
    600 TCL_VERSION
    601 TCL_LIB_SPEC
    602 TCL_INC_SPEC
    603589TCLSH
    604 ENABLE_GUI
    605 MAKE
    606 OBJEXT
    607 EXEEXT
    608 ac_ct_CC
    609 CPPFLAGS
    610 LDFLAGS
    611 CFLAGS
    612 CC
    613590SET_MAKE
    614591MKDIR_P
    615592LN_S
    616 RANLIB
    617593INSTALL_DATA
    618594INSTALL_SCRIPT
    619595INSTALL_PROGRAM
    620 LIB_SEARCH_DIRS
    621 target_os
    622 target_vendor
    623 target_cpu
    624 target
    625 host_os
    626 host_vendor
    627 host_cpu
    628 host
    629 build_os
    630 build_vendor
    631 build_cpu
    632 build
    633596target_alias
    634597host_alias
     
    672635ac_user_opts='
    673636enable_option_checking
    674 enable_gui
    675 with_tclsh
    676637'
    677638      ac_precious_vars='build_alias
    678639host_alias
    679 target_alias
    680 CC
    681 CFLAGS
    682 LDFLAGS
    683 LIBS
    684 CPPFLAGS'
     640target_alias'
    685641
    686642
     
    12791235
    12801236  cat <<\_ACEOF
    1281 
    1282 System types:
    1283   --build=BUILD     configure for building on BUILD [guessed]
    1284   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
    1285   --target=TARGET   configure for building compilers for TARGET [HOST]
    12861237_ACEOF
    12871238fi
     
    12921243   esac
    12931244  cat <<\_ACEOF
    1294 
    1295 Optional Features:
    1296   --disable-option-checking  ignore unrecognized --enable/--with options
    1297   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    1298   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    1299   --enable-gui            build code related to the graphical user interface
    1300                           [default=yes]
    1301 
    1302 Optional Packages:
    1303   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    1304   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    1305   --with-tclsh=DIR        location of tclsh [default=yes]
    1306 
    1307 Some influential environment variables:
    1308   CC          C compiler command
    1309   CFLAGS      C compiler flags
    1310   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    1311               nonstandard directory <lib dir>
    1312   LIBS        libraries to pass to the linker, e.g. -l<library>
    1313   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
    1314               you have headers in a nonstandard directory <include dir>
    1315 
    1316 Use these variables to override the choices made by `configure' or to help
    1317 it to find libraries and programs with nonstandard names/locations.
    13181245
    13191246Report bugs to <rappture@nanohub.org>.
     
    13931320## Autoconf initialization. ##
    13941321## ------------------------ ##
    1395 
    1396 # ac_fn_c_try_compile LINENO
    1397 # --------------------------
    1398 # Try to compile conftest.$ac_ext, and return whether this succeeded.
    1399 ac_fn_c_try_compile ()
    1400 {
    1401   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1402   rm -f conftest.$ac_objext
    1403   if { { ac_try="$ac_compile"
    1404 case "(($ac_try" in
    1405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    1406   *) ac_try_echo=$ac_try;;
    1407 esac
    1408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    1409 $as_echo "$ac_try_echo"; } >&5
    1410   (eval "$ac_compile") 2>conftest.err
    1411   ac_status=$?
    1412   if test -s conftest.err; then
    1413     grep -v '^ *+' conftest.err >conftest.er1
    1414     cat conftest.er1 >&5
    1415     mv -f conftest.er1 conftest.err
    1416   fi
    1417   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1418   test $ac_status = 0; } && {
    1419          test -z "$ac_c_werror_flag" ||
    1420          test ! -s conftest.err
    1421        } && test -s conftest.$ac_objext; then :
    1422   ac_retval=0
    1423 else
    1424   $as_echo "$as_me: failed program was:" >&5
    1425 sed 's/^/| /' conftest.$ac_ext >&5
    1426 
    1427         ac_retval=1
    1428 fi
    1429   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    1430   as_fn_set_status $ac_retval
    1431 
    1432 } # ac_fn_c_try_compile
    14331322cat >config.log <<_ACEOF
    14341323This file contains any messages produced by compilers while
     
    18121701
    18131702
     1703
    18141704#------------------------------------------------------------------------
    18151705# Handle the --prefix=... option
     
    18221712    exec_prefix=$prefix
    18231713fi
    1824 
    1825 if test "${libdir}" != "${prefix}/lib"; then
    1826     LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}"
    1827 else
    1828     LIB_SEARCH_DIRS="-L${libdir}"
    1829 fi
    1830 # Make sure we can run config.sub.
    1831 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
    1832   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
    1833 
    1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
    1835 $as_echo_n "checking build system type... " >&6; }
    1836 if ${ac_cv_build+:} false; then :
    1837   $as_echo_n "(cached) " >&6
    1838 else
    1839   ac_build_alias=$build_alias
    1840 test "x$ac_build_alias" = x &&
    1841   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
    1842 test "x$ac_build_alias" = x &&
    1843   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
    1844 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
    1845   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
    1846 
    1847 fi
    1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
    1849 $as_echo "$ac_cv_build" >&6; }
    1850 case $ac_cv_build in
    1851 *-*-*) ;;
    1852 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
    1853 esac
    1854 build=$ac_cv_build
    1855 ac_save_IFS=$IFS; IFS='-'
    1856 set x $ac_cv_build
    1857 shift
    1858 build_cpu=$1
    1859 build_vendor=$2
    1860 shift; shift
    1861 # Remember, the first character of IFS is used to create $*,
    1862 # except with old shells:
    1863 build_os=$*
    1864 IFS=$ac_save_IFS
    1865 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
    1866 
    1867 
    1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
    1869 $as_echo_n "checking host system type... " >&6; }
    1870 if ${ac_cv_host+:} false; then :
    1871   $as_echo_n "(cached) " >&6
    1872 else
    1873   if test "x$host_alias" = x; then
    1874   ac_cv_host=$ac_cv_build
    1875 else
    1876   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
    1877     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
    1878 fi
    1879 
    1880 fi
    1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
    1882 $as_echo "$ac_cv_host" >&6; }
    1883 case $ac_cv_host in
    1884 *-*-*) ;;
    1885 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
    1886 esac
    1887 host=$ac_cv_host
    1888 ac_save_IFS=$IFS; IFS='-'
    1889 set x $ac_cv_host
    1890 shift
    1891 host_cpu=$1
    1892 host_vendor=$2
    1893 shift; shift
    1894 # Remember, the first character of IFS is used to create $*,
    1895 # except with old shells:
    1896 host_os=$*
    1897 IFS=$ac_save_IFS
    1898 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
    1899 
    1900 
    1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
    1902 $as_echo_n "checking target system type... " >&6; }
    1903 if ${ac_cv_target+:} false; then :
    1904   $as_echo_n "(cached) " >&6
    1905 else
    1906   if test "x$target_alias" = x; then
    1907   ac_cv_target=$ac_cv_host
    1908 else
    1909   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
    1910     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
    1911 fi
    1912 
    1913 fi
    1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
    1915 $as_echo "$ac_cv_target" >&6; }
    1916 case $ac_cv_target in
    1917 *-*-*) ;;
    1918 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
    1919 esac
    1920 target=$ac_cv_target
    1921 ac_save_IFS=$IFS; IFS='-'
    1922 set x $ac_cv_target
    1923 shift
    1924 target_cpu=$1
    1925 target_vendor=$2
    1926 shift; shift
    1927 # Remember, the first character of IFS is used to create $*,
    1928 # except with old shells:
    1929 target_os=$*
    1930 IFS=$ac_save_IFS
    1931 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
    1932 
    1933 
    1934 # The aliases save the names the user supplied, while $host etc.
    1935 # will get canonicalized.
    1936 test -n "$target_alias" &&
    1937   test "$program_prefix$program_suffix$program_transform_name" = \
    1938     NONENONEs,x,x, &&
    1939   program_prefix=${target_alias}-
    1940 
    19411714
    19421715# Find a good install program.  We prefer a C program (faster),
     
    20331806test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    20341807
    2035 
    2036 if test -n "$ac_tool_prefix"; then
    2037   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
    2038 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
    2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2040 $as_echo_n "checking for $ac_word... " >&6; }
    2041 if ${ac_cv_prog_RANLIB+:} false; then :
    2042   $as_echo_n "(cached) " >&6
    2043 else
    2044   if test -n "$RANLIB"; then
    2045   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    2046 else
    2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2048 for as_dir in $PATH
    2049 do
    2050   IFS=$as_save_IFS
    2051   test -z "$as_dir" && as_dir=.
    2052     for ac_exec_ext in '' $ac_executable_extensions; do
    2053   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2054     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    2055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    2056     break 2
    2057   fi
    2058 done
    2059   done
    2060 IFS=$as_save_IFS
    2061 
    2062 fi
    2063 fi
    2064 RANLIB=$ac_cv_prog_RANLIB
    2065 if test -n "$RANLIB"; then
    2066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
    2067 $as_echo "$RANLIB" >&6; }
    2068 else
    2069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    2070 $as_echo "no" >&6; }
    2071 fi
    2072 
    2073 
    2074 fi
    2075 if test -z "$ac_cv_prog_RANLIB"; then
    2076   ac_ct_RANLIB=$RANLIB
    2077   # Extract the first word of "ranlib", so it can be a program name with args.
    2078 set dummy ranlib; ac_word=$2
    2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2080 $as_echo_n "checking for $ac_word... " >&6; }
    2081 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
    2082   $as_echo_n "(cached) " >&6
    2083 else
    2084   if test -n "$ac_ct_RANLIB"; then
    2085   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
    2086 else
    2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2088 for as_dir in $PATH
    2089 do
    2090   IFS=$as_save_IFS
    2091   test -z "$as_dir" && as_dir=.
    2092     for ac_exec_ext in '' $ac_executable_extensions; do
    2093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2094     ac_cv_prog_ac_ct_RANLIB="ranlib"
    2095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    2096     break 2
    2097   fi
    2098 done
    2099   done
    2100 IFS=$as_save_IFS
    2101 
    2102 fi
    2103 fi
    2104 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
    2105 if test -n "$ac_ct_RANLIB"; then
    2106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
    2107 $as_echo "$ac_ct_RANLIB" >&6; }
    2108 else
    2109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    2110 $as_echo "no" >&6; }
    2111 fi
    2112 
    2113   if test "x$ac_ct_RANLIB" = x; then
    2114     RANLIB=":"
    2115   else
    2116     case $cross_compiling:$ac_tool_warned in
    2117 yes:)
    2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    2119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    2120 ac_tool_warned=yes ;;
    2121 esac
    2122     RANLIB=$ac_ct_RANLIB
    2123   fi
    2124 else
    2125   RANLIB="$ac_cv_prog_RANLIB"
    2126 fi
    2127 
    21281808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
    21291809$as_echo_n "checking whether ln -s works... " >&6; }
     
    22101890fi
    22111891
    2212 ac_ext=c
    2213 ac_cpp='$CPP $CPPFLAGS'
    2214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2217 if test -n "$ac_tool_prefix"; then
    2218   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    2219 set dummy ${ac_tool_prefix}gcc; ac_word=$2
    2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2221 $as_echo_n "checking for $ac_word... " >&6; }
    2222 if ${ac_cv_prog_CC+:} false; then :
    2223   $as_echo_n "(cached) " >&6
    2224 else
    2225   if test -n "$CC"; then
    2226   ac_cv_prog_CC="$CC" # Let the user override the test.
    2227 else
    2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2229 for as_dir in $PATH
    2230 do
    2231   IFS=$as_save_IFS
    2232   test -z "$as_dir" && as_dir=.
    2233     for ac_exec_ext in '' $ac_executable_extensions; do
    2234   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2235     ac_cv_prog_CC="${ac_tool_prefix}gcc"
    2236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    2237     break 2
    2238   fi
    2239 done
    2240   done
    2241 IFS=$as_save_IFS
    2242 
    2243 fi
    2244 fi
    2245 CC=$ac_cv_prog_CC
    2246 if test -n "$CC"; then
    2247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
    2248 $as_echo "$CC" >&6; }
    2249 else
    2250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    2251 $as_echo "no" >&6; }
    2252 fi
    2253 
    2254 
    2255 fi
    2256 if test -z "$ac_cv_prog_CC"; then
    2257   ac_ct_CC=$CC
    2258   # Extract the first word of "gcc", so it can be a program name with args.
    2259 set dummy gcc; ac_word=$2
    2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2261 $as_echo_n "checking for $ac_word... " >&6; }
    2262 if ${ac_cv_prog_ac_ct_CC+:} false; then :
    2263   $as_echo_n "(cached) " >&6
    2264 else
    2265   if test -n "$ac_ct_CC"; then
    2266   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    2267 else
    2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2269 for as_dir in $PATH
    2270 do
    2271   IFS=$as_save_IFS
    2272   test -z "$as_dir" && as_dir=.
    2273     for ac_exec_ext in '' $ac_executable_extensions; do
    2274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2275     ac_cv_prog_ac_ct_CC="gcc"
    2276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    2277     break 2
    2278   fi
    2279 done
    2280   done
    2281 IFS=$as_save_IFS
    2282 
    2283 fi
    2284 fi
    2285 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    2286 if test -n "$ac_ct_CC"; then
    2287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
    2288 $as_echo "$ac_ct_CC" >&6; }
    2289 else
    2290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    2291 $as_echo "no" >&6; }
    2292 fi
    2293 
    2294   if test "x$ac_ct_CC" = x; then
    2295     CC=""
    2296   else
    2297     case $cross_compiling:$ac_tool_warned in
    2298 yes:)
    2299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    2300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    2301 ac_tool_warned=yes ;;
    2302 esac
    2303     CC=$ac_ct_CC
    2304   fi
    2305 else
    2306   CC="$ac_cv_prog_CC"
    2307 fi
    2308 
    2309 if test -z "$CC"; then
    2310           if test -n "$ac_tool_prefix"; then
    2311     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    2312 set dummy ${ac_tool_prefix}cc; ac_word=$2
    2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2314 $as_echo_n "checking for $ac_word... " >&6; }
    2315 if ${ac_cv_prog_CC+:} false; then :
    2316   $as_echo_n "(cached) " >&6
    2317 else
    2318   if test -n "$CC"; then
    2319   ac_cv_prog_CC="$CC" # Let the user override the test.
    2320 else
    2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2322 for as_dir in $PATH
    2323 do
    2324   IFS=$as_save_IFS
    2325   test -z "$as_dir" && as_dir=.
    2326     for ac_exec_ext in '' $ac_executable_extensions; do
    2327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2328     ac_cv_prog_CC="${ac_tool_prefix}cc"
    2329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    2330     break 2
    2331   fi
    2332 done
    2333   done
    2334 IFS=$as_save_IFS
    2335 
    2336 fi
    2337 fi
    2338 CC=$ac_cv_prog_CC
    2339 if test -n "$CC"; then
    2340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
    2341 $as_echo "$CC" >&6; }
    2342 else
    2343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    2344 $as_echo "no" >&6; }
    2345 fi
    2346 
    2347 
    2348   fi
    2349 fi
    2350 if test -z "$CC"; then
    2351   # Extract the first word of "cc", so it can be a program name with args.
    2352 set dummy cc; ac_word=$2
    2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2354 $as_echo_n "checking for $ac_word... " >&6; }
    2355 if ${ac_cv_prog_CC+:} false; then :
    2356   $as_echo_n "(cached) " >&6
    2357 else
    2358   if test -n "$CC"; then
    2359   ac_cv_prog_CC="$CC" # Let the user override the test.
    2360 else
    2361   ac_prog_rejected=no
    2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2363 for as_dir in $PATH
    2364 do
    2365   IFS=$as_save_IFS
    2366   test -z "$as_dir" && as_dir=.
    2367     for ac_exec_ext in '' $ac_executable_extensions; do
    2368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2369     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    2370        ac_prog_rejected=yes
    2371        continue
    2372      fi
    2373     ac_cv_prog_CC="cc"
    2374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    2375     break 2
    2376   fi
    2377 done
    2378   done
    2379 IFS=$as_save_IFS
    2380 
    2381 if test $ac_prog_rejected = yes; then
    2382   # We found a bogon in the path, so make sure we never use it.
    2383   set dummy $ac_cv_prog_CC
    2384   shift
    2385   if test $# != 0; then
    2386     # We chose a different compiler from the bogus one.
    2387     # However, it has the same basename, so the bogon will be chosen
    2388     # first if we set CC to just the basename; use the full file name.
    2389     shift
    2390     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
    2391   fi
    2392 fi
    2393 fi
    2394 fi
    2395 CC=$ac_cv_prog_CC
    2396 if test -n "$CC"; then
    2397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
    2398 $as_echo "$CC" >&6; }
    2399 else
    2400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    2401 $as_echo "no" >&6; }
    2402 fi
    2403 
    2404 
    2405 fi
    2406 if test -z "$CC"; then
    2407   if test -n "$ac_tool_prefix"; then
    2408   for ac_prog in cl.exe
    2409   do
    2410     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    2411 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2413 $as_echo_n "checking for $ac_word... " >&6; }
    2414 if ${ac_cv_prog_CC+:} false; then :
    2415   $as_echo_n "(cached) " >&6
    2416 else
    2417   if test -n "$CC"; then
    2418   ac_cv_prog_CC="$CC" # Let the user override the test.
    2419 else
    2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2421 for as_dir in $PATH
    2422 do
    2423   IFS=$as_save_IFS
    2424   test -z "$as_dir" && as_dir=.
    2425     for ac_exec_ext in '' $ac_executable_extensions; do
    2426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2427     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    2428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    2429     break 2
    2430   fi
    2431 done
    2432   done
    2433 IFS=$as_save_IFS
    2434 
    2435 fi
    2436 fi
    2437 CC=$ac_cv_prog_CC
    2438 if test -n "$CC"; then
    2439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
    2440 $as_echo "$CC" >&6; }
    2441 else
    2442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    2443 $as_echo "no" >&6; }
    2444 fi
    2445 
    2446 
    2447     test -n "$CC" && break
    2448   done
    2449 fi
    2450 if test -z "$CC"; then
    2451   ac_ct_CC=$CC
    2452   for ac_prog in cl.exe
    2453 do
    2454   # Extract the first word of "$ac_prog", so it can be a program name with args.
    2455 set dummy $ac_prog; ac_word=$2
    2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2457 $as_echo_n "checking for $ac_word... " >&6; }
    2458 if ${ac_cv_prog_ac_ct_CC+:} false; then :
    2459   $as_echo_n "(cached) " >&6
    2460 else
    2461   if test -n "$ac_ct_CC"; then
    2462   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    2463 else
    2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2465 for as_dir in $PATH
    2466 do
    2467   IFS=$as_save_IFS
    2468   test -z "$as_dir" && as_dir=.
    2469     for ac_exec_ext in '' $ac_executable_extensions; do
    2470   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2471     ac_cv_prog_ac_ct_CC="$ac_prog"
    2472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    2473     break 2
    2474   fi
    2475 done
    2476   done
    2477 IFS=$as_save_IFS
    2478 
    2479 fi
    2480 fi
    2481 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    2482 if test -n "$ac_ct_CC"; then
    2483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
    2484 $as_echo "$ac_ct_CC" >&6; }
    2485 else
    2486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    2487 $as_echo "no" >&6; }
    2488 fi
    2489 
    2490 
    2491   test -n "$ac_ct_CC" && break
    2492 done
    2493 
    2494   if test "x$ac_ct_CC" = x; then
    2495     CC=""
    2496   else
    2497     case $cross_compiling:$ac_tool_warned in
    2498 yes:)
    2499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
    2500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
    2501 ac_tool_warned=yes ;;
    2502 esac
    2503     CC=$ac_ct_CC
    2504   fi
    2505 fi
    2506 
    2507 fi
    2508 
    2509 
    2510 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    2511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2512 as_fn_error $? "no acceptable C compiler found in \$PATH
    2513 See \`config.log' for more details" "$LINENO" 5; }
    2514 
    2515 # Provide some information about the compiler.
    2516 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
    2517 set X $ac_compile
    2518 ac_compiler=$2
    2519 for ac_option in --version -v -V -qversion; do
    2520   { { ac_try="$ac_compiler $ac_option >&5"
    2521 case "(($ac_try" in
    2522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2523   *) ac_try_echo=$ac_try;;
    2524 esac
    2525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    2526 $as_echo "$ac_try_echo"; } >&5
    2527   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
    2528   ac_status=$?
    2529   if test -s conftest.err; then
    2530     sed '10a\
    2531 ... rest of stderr output deleted ...
    2532          10q' conftest.err >conftest.er1
    2533     cat conftest.er1 >&5
    2534   fi
    2535   rm -f conftest.er1 conftest.err
    2536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    2537   test $ac_status = 0; }
    2538 done
    2539 
    2540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2541 /* end confdefs.h.  */
    2542 
    2543 int
    2544 main ()
    2545 {
    2546 
    2547   ;
    2548   return 0;
    2549 }
    2550 _ACEOF
    2551 ac_clean_files_save=$ac_clean_files
    2552 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
    2553 # Try to create an executable without -o first, disregard a.out.
    2554 # It will help us diagnose broken compilers, and finding out an intuition
    2555 # of exeext.
    2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
    2557 $as_echo_n "checking whether the C compiler works... " >&6; }
    2558 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    2559 
    2560 # The possible output files:
    2561 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
    2562 
    2563 ac_rmfiles=
    2564 for ac_file in $ac_files
    2565 do
    2566   case $ac_file in
    2567     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    2568     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
    2569   esac
    2570 done
    2571 rm -f $ac_rmfiles
    2572 
    2573 if { { ac_try="$ac_link_default"
    2574 case "(($ac_try" in
    2575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2576   *) ac_try_echo=$ac_try;;
    2577 esac
    2578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    2579 $as_echo "$ac_try_echo"; } >&5
    2580   (eval "$ac_link_default") 2>&5
    2581   ac_status=$?
    2582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    2583   test $ac_status = 0; }; then :
    2584   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
    2585 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
    2586 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
    2587 # so that the user can short-circuit this test for compilers unknown to
    2588 # Autoconf.
    2589 for ac_file in $ac_files ''
    2590 do
    2591   test -f "$ac_file" || continue
    2592   case $ac_file in
    2593     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
    2594         ;;
    2595     [ab].out )
    2596         # We found the default executable, but exeext='' is most
    2597         # certainly right.
    2598         break;;
    2599     *.* )
    2600         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
    2601         then :; else
    2602            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    2603         fi
    2604         # We set ac_cv_exeext here because the later test for it is not
    2605         # safe: cross compilers may not add the suffix if given an `-o'
    2606         # argument, so we may need to know it at that point already.
    2607         # Even if this section looks crufty: it has the advantage of
    2608         # actually working.
    2609         break;;
    2610     * )
    2611         break;;
    2612   esac
    2613 done
    2614 test "$ac_cv_exeext" = no && ac_cv_exeext=
    2615 
    2616 else
    2617   ac_file=''
    2618 fi
    2619 if test -z "$ac_file"; then :
    2620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    2621 $as_echo "no" >&6; }
    2622 $as_echo "$as_me: failed program was:" >&5
    2623 sed 's/^/| /' conftest.$ac_ext >&5
    2624 
    2625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    2626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2627 as_fn_error 77 "C compiler cannot create executables
    2628 See \`config.log' for more details" "$LINENO" 5; }
    2629 else
    2630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
    2631 $as_echo "yes" >&6; }
    2632 fi
    2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
    2634 $as_echo_n "checking for C compiler default output file name... " >&6; }
    2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
    2636 $as_echo "$ac_file" >&6; }
    2637 ac_exeext=$ac_cv_exeext
    2638 
    2639 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
    2640 ac_clean_files=$ac_clean_files_save
    2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
    2642 $as_echo_n "checking for suffix of executables... " >&6; }
    2643 if { { ac_try="$ac_link"
    2644 case "(($ac_try" in
    2645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2646   *) ac_try_echo=$ac_try;;
    2647 esac
    2648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    2649 $as_echo "$ac_try_echo"; } >&5
    2650   (eval "$ac_link") 2>&5
    2651   ac_status=$?
    2652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    2653   test $ac_status = 0; }; then :
    2654   # If both `conftest.exe' and `conftest' are `present' (well, observable)
    2655 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
    2656 # work properly (i.e., refer to `conftest.exe'), while it won't with
    2657 # `rm'.
    2658 for ac_file in conftest.exe conftest conftest.*; do
    2659   test -f "$ac_file" || continue
    2660   case $ac_file in
    2661     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    2662     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    2663           break;;
    2664     * ) break;;
    2665   esac
    2666 done
    2667 else
    2668   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    2669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2670 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
    2671 See \`config.log' for more details" "$LINENO" 5; }
    2672 fi
    2673 rm -f conftest conftest$ac_cv_exeext
    2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
    2675 $as_echo "$ac_cv_exeext" >&6; }
    2676 
    2677 rm -f conftest.$ac_ext
    2678 EXEEXT=$ac_cv_exeext
    2679 ac_exeext=$EXEEXT
    2680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2681 /* end confdefs.h.  */
    2682 #include <stdio.h>
    2683 int
    2684 main ()
    2685 {
    2686 FILE *f = fopen ("conftest.out", "w");
    2687  return ferror (f) || fclose (f) != 0;
    2688 
    2689   ;
    2690   return 0;
    2691 }
    2692 _ACEOF
    2693 ac_clean_files="$ac_clean_files conftest.out"
    2694 # Check that the compiler produces executables we can run.  If not, either
    2695 # the compiler is broken, or we cross compile.
    2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
    2697 $as_echo_n "checking whether we are cross compiling... " >&6; }
    2698 if test "$cross_compiling" != yes; then
    2699   { { ac_try="$ac_link"
    2700 case "(($ac_try" in
    2701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2702   *) ac_try_echo=$ac_try;;
    2703 esac
    2704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    2705 $as_echo "$ac_try_echo"; } >&5
    2706   (eval "$ac_link") 2>&5
    2707   ac_status=$?
    2708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    2709   test $ac_status = 0; }
    2710   if { ac_try='./conftest$ac_cv_exeext'
    2711   { { case "(($ac_try" in
    2712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2713   *) ac_try_echo=$ac_try;;
    2714 esac
    2715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    2716 $as_echo "$ac_try_echo"; } >&5
    2717   (eval "$ac_try") 2>&5
    2718   ac_status=$?
    2719   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    2720   test $ac_status = 0; }; }; then
    2721     cross_compiling=no
    2722   else
    2723     if test "$cross_compiling" = maybe; then
    2724         cross_compiling=yes
    2725     else
    2726         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    2727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2728 as_fn_error $? "cannot run C compiled programs.
    2729 If you meant to cross compile, use \`--host'.
    2730 See \`config.log' for more details" "$LINENO" 5; }
    2731     fi
    2732   fi
    2733 fi
    2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
    2735 $as_echo "$cross_compiling" >&6; }
    2736 
    2737 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
    2738 ac_clean_files=$ac_clean_files_save
    2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
    2740 $as_echo_n "checking for suffix of object files... " >&6; }
    2741 if ${ac_cv_objext+:} false; then :
    2742   $as_echo_n "(cached) " >&6
    2743 else
    2744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2745 /* end confdefs.h.  */
    2746 
    2747 int
    2748 main ()
    2749 {
    2750 
    2751   ;
    2752   return 0;
    2753 }
    2754 _ACEOF
    2755 rm -f conftest.o conftest.obj
    2756 if { { ac_try="$ac_compile"
    2757 case "(($ac_try" in
    2758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2759   *) ac_try_echo=$ac_try;;
    2760 esac
    2761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    2762 $as_echo "$ac_try_echo"; } >&5
    2763   (eval "$ac_compile") 2>&5
    2764   ac_status=$?
    2765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    2766   test $ac_status = 0; }; then :
    2767   for ac_file in conftest.o conftest.obj conftest.*; do
    2768   test -f "$ac_file" || continue;
    2769   case $ac_file in
    2770     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
    2771     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
    2772        break;;
    2773   esac
    2774 done
    2775 else
    2776   $as_echo "$as_me: failed program was:" >&5
    2777 sed 's/^/| /' conftest.$ac_ext >&5
    2778 
    2779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    2780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2781 as_fn_error $? "cannot compute suffix of object files: cannot compile
    2782 See \`config.log' for more details" "$LINENO" 5; }
    2783 fi
    2784 rm -f conftest.$ac_cv_objext conftest.$ac_ext
    2785 fi
    2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
    2787 $as_echo "$ac_cv_objext" >&6; }
    2788 OBJEXT=$ac_cv_objext
    2789 ac_objext=$OBJEXT
    2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
    2791 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
    2792 if ${ac_cv_c_compiler_gnu+:} false; then :
    2793   $as_echo_n "(cached) " >&6
    2794 else
    2795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2796 /* end confdefs.h.  */
    2797 
    2798 int
    2799 main ()
    2800 {
    2801 #ifndef __GNUC__
    2802        choke me
    2803 #endif
    2804 
    2805   ;
    2806   return 0;
    2807 }
    2808 _ACEOF
    2809 if ac_fn_c_try_compile "$LINENO"; then :
    2810   ac_compiler_gnu=yes
    2811 else
    2812   ac_compiler_gnu=no
    2813 fi
    2814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2815 ac_cv_c_compiler_gnu=$ac_compiler_gnu
    2816 
    2817 fi
    2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
    2819 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
    2820 if test $ac_compiler_gnu = yes; then
    2821   GCC=yes
    2822 else
    2823   GCC=
    2824 fi
    2825 ac_test_CFLAGS=${CFLAGS+set}
    2826 ac_save_CFLAGS=$CFLAGS
    2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
    2828 $as_echo_n "checking whether $CC accepts -g... " >&6; }
    2829 if ${ac_cv_prog_cc_g+:} false; then :
    2830   $as_echo_n "(cached) " >&6
    2831 else
    2832   ac_save_c_werror_flag=$ac_c_werror_flag
    2833    ac_c_werror_flag=yes
    2834    ac_cv_prog_cc_g=no
    2835    CFLAGS="-g"
    2836    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2837 /* end confdefs.h.  */
    2838 
    2839 int
    2840 main ()
    2841 {
    2842 
    2843   ;
    2844   return 0;
    2845 }
    2846 _ACEOF
    2847 if ac_fn_c_try_compile "$LINENO"; then :
    2848   ac_cv_prog_cc_g=yes
    2849 else
    2850   CFLAGS=""
    2851       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2852 /* end confdefs.h.  */
    2853 
    2854 int
    2855 main ()
    2856 {
    2857 
    2858   ;
    2859   return 0;
    2860 }
    2861 _ACEOF
    2862 if ac_fn_c_try_compile "$LINENO"; then :
    2863 
    2864 else
    2865   ac_c_werror_flag=$ac_save_c_werror_flag
    2866          CFLAGS="-g"
    2867          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2868 /* end confdefs.h.  */
    2869 
    2870 int
    2871 main ()
    2872 {
    2873 
    2874   ;
    2875   return 0;
    2876 }
    2877 _ACEOF
    2878 if ac_fn_c_try_compile "$LINENO"; then :
    2879   ac_cv_prog_cc_g=yes
    2880 fi
    2881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2882 fi
    2883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2884 fi
    2885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2886    ac_c_werror_flag=$ac_save_c_werror_flag
    2887 fi
    2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
    2889 $as_echo "$ac_cv_prog_cc_g" >&6; }
    2890 if test "$ac_test_CFLAGS" = set; then
    2891   CFLAGS=$ac_save_CFLAGS
    2892 elif test $ac_cv_prog_cc_g = yes; then
    2893   if test "$GCC" = yes; then
    2894     CFLAGS="-g -O2"
    2895   else
    2896     CFLAGS="-g"
    2897   fi
    2898 else
    2899   if test "$GCC" = yes; then
    2900     CFLAGS="-O2"
    2901   else
    2902     CFLAGS=
    2903   fi
    2904 fi
    2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
    2906 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
    2907 if ${ac_cv_prog_cc_c89+:} false; then :
    2908   $as_echo_n "(cached) " >&6
    2909 else
    2910   ac_cv_prog_cc_c89=no
    2911 ac_save_CC=$CC
    2912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2913 /* end confdefs.h.  */
    2914 #include <stdarg.h>
    2915 #include <stdio.h>
    2916 struct stat;
    2917 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
    2918 struct buf { int x; };
    2919 FILE * (*rcsopen) (struct buf *, struct stat *, int);
    2920 static char *e (p, i)
    2921      char **p;
    2922      int i;
    2923 {
    2924   return p[i];
    2925 }
    2926 static char *f (char * (*g) (char **, int), char **p, ...)
    2927 {
    2928   char *s;
    2929   va_list v;
    2930   va_start (v,p);
    2931   s = g (p, va_arg (v,int));
    2932   va_end (v);
    2933   return s;
    2934 }
    2935 
    2936 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
    2937    function prototypes and stuff, but not '\xHH' hex character constants.
    2938    These don't provoke an error unfortunately, instead are silently treated
    2939    as 'x'.  The following induces an error, until -std is added to get
    2940    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
    2941    array size at least.  It's necessary to write '\x00'==0 to get something
    2942    that's true only with -std.  */
    2943 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
    2944 
    2945 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
    2946    inside strings and character constants.  */
    2947 #define FOO(x) 'x'
    2948 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
    2949 
    2950 int test (int i, double x);
    2951 struct s1 {int (*f) (int a);};
    2952 struct s2 {int (*f) (double a);};
    2953 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
    2954 int argc;
    2955 char **argv;
    2956 int
    2957 main ()
    2958 {
    2959 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
    2960   ;
    2961   return 0;
    2962 }
    2963 _ACEOF
    2964 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
    2965         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
    2966 do
    2967   CC="$ac_save_CC $ac_arg"
    2968   if ac_fn_c_try_compile "$LINENO"; then :
    2969   ac_cv_prog_cc_c89=$ac_arg
    2970 fi
    2971 rm -f core conftest.err conftest.$ac_objext
    2972   test "x$ac_cv_prog_cc_c89" != "xno" && break
    2973 done
    2974 rm -f conftest.$ac_ext
    2975 CC=$ac_save_CC
    2976 
    2977 fi
    2978 # AC_CACHE_VAL
    2979 case "x$ac_cv_prog_cc_c89" in
    2980   x)
    2981     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
    2982 $as_echo "none needed" >&6; } ;;
    2983   xno)
    2984     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
    2985 $as_echo "unsupported" >&6; } ;;
    2986   *)
    2987     CC="$CC $ac_cv_prog_cc_c89"
    2988     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
    2989 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
    2990 esac
    2991 if test "x$ac_cv_prog_cc_c89" != xno; then :
    2992 
    2993 fi
    2994 
    2995 ac_ext=c
    2996 ac_cpp='$CPP $CPPFLAGS'
    2997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3000 
    3001 
    3002 #SC_CONFIG_CFLAGS
    3003 #SC_ENABLE_SHARED
    3004 
    3005 gui_with_tcl=""
    3006 
    3007 make_command=""
    3008 for m in "$MAKE" make gmake gnumake ; do
    3009   if test "x${m}" != "x" ; then
    3010     if  ( sh -c "$m --version" 2>/dev/null | grep GNU >/dev/null ) ; then
    3011       make_command=$m; break;
    3012     fi
    3013   fi
    3014 done
    3015 if test "x${make_command}" = "x" ; then
    3016   as_fn_error $? "Requires GNU make. You can specify a version with \$MAKE" "$LINENO" 5
    3017 fi
    3018 MAKE=${make_command}
    3019 
    3020 
    3021 # Check whether --enable-gui was given.
    3022 if test "${enable_gui+set}" = set; then :
    3023   enableval=$enable_gui;
    3024 else
    3025   enable_gui=yes
    3026 fi
    3027 
    3028 
    3029 ENABLE_GUI=
    3030 if test "$enable_gui" != "no" ; then
    3031     ENABLE_GUI="yes"
    3032 fi
    3033 
    3034 
    3035 with_tclsh="yes"
    3036 
    3037 # Check whether --with-tclsh was given.
    3038 if test "${with_tclsh+set}" = set; then :
    3039   withval=$with_tclsh;
    3040 else
    3041   with_tclsh=yes
    3042 fi
    3043 
    3044 
    3045 TCLSH=
    3046 # -----------------------------------------------------------------------
    3047 #
    3048 #       Find the Tcl build configuration file "tclConfig.sh"
    3049 #
    3050 # -----------------------------------------------------------------------
    3051 
    3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
    3053 $as_echo_n "checking for tclConfig.sh... " >&6; }
    3054 tcl_config_sh=""
    3055 if test "x$gui_with_tcl" != "x" ; then
    3056 
    3057   # Verify that a tclConfig.sh file exists in the directory specified
    3058   # by --with-tcl.
    3059 
    3060   for dir in \
    3061    $gui_with_tcl
    3062   do
    3063     if test -r "$dir/tclConfig.sh" ; then
    3064       tcl_config_sh="$dir/tclConfig.sh"
    3065       break
    3066     elif test -r "$dir/lib/tclConfig.sh" ; then
    3067       tcl_config_sh="$dir/lib/tclConfig.sh"
    3068       break
    3069     fi
    3070   done
    3071 else
    3072 
    3073   # Otherwise, search for Tcl configuration file.
    3074 
    3075   #  1. Search previously named locations.
    3076 
    3077   for dir in \
    3078    $prefix \
    3079    $exec_prefix \
    3080    $gui_cv_tcl_lib
    3081   do
    3082     if test -r "$dir/tclConfig.sh" ; then
    3083       tcl_config_sh="$dir/tclConfig.sh"
    3084       break
    3085     elif test -r "$dir/lib/tclConfig.sh" ; then
    3086       tcl_config_sh="$dir/lib/tclConfig.sh"
    3087       break
    3088     fi
    3089   done
    3090 fi
    3091 
    3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_config_sh}" >&5
    3093 $as_echo "${tcl_config_sh}" >&6; }
    3094 
    3095 if test "x$tcl_config_sh" = "x" ; then
    3096   echo "can't find Tcl configuration script \"tclConfig.sh\""
    3097   exit 1
    3098 fi
    3099 . ${tcl_config_sh}
    3100 TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
    3101 
    3102 case $target in
    3103   *-*-cygwin*|*-*-mingw*)
    3104     gui_platform="win"
    3105     TCLSH=${TCL_PREFIX}/bin/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}
    3106     ;;
    3107   *-*-darwin*)
    3108     gui_platform="macosx"
    3109     TCLSH=${TCL_PREFIX}/bin/tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}
    3110     ;;
    3111   *)
    3112     blt_platform="unix"
    3113     TCLSH=${TCL_PREFIX}/bin/tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}
    3114     ;;
    3115 esac
    3116 
     1892
     1893if test -f "${exec_prefix}/lib/tclConfig.sh" ; then
     1894  . ${exec_prefix}/lib/tclConfig.sh
     1895fi
     1896if test -f "${exec_prefix}/lib/tkConfig.sh" ; then
     1897  . ${exec_prefix}/lib/tkConfig.sh
     1898fi
     1899
     1900TCLSH=${bindir}/tclsh${TCL_VERSION}
    31171901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TCLSH}" >&5
    31181902$as_echo "${TCLSH}" >&6; }
    31191903
    31201904
    3121 if test -f "${exec_prefix}/lib/tclConfig.sh" ; then
    3122   . ${exec_prefix}/lib/tclConfig.sh
    3123 fi
    3124 if test -f "${exec_prefix}/lib/tkConfig.sh" ; then
    3125   . ${exec_prefix}/lib/tkConfig.sh
    3126 fi
    3127 
    3128 
    3129 
    3130 
    3131 
    3132 
    3133 
    3134 
    3135 
    3136 
    3137 
    3138 
    3139 
    3140 
    3141 
    3142 
    3143 ac_config_files="$ac_config_files Makefile pkgIndex.tcl apps/Makefile apps/about apps/encodedata apps/rappture apps/rappture-csh.env apps/rappture.env apps/rappture.use apps/rerun apps/simsim apps/xmldiff scripts/Makefile src/Makefile"
     1905ac_config_files="$ac_config_files Makefile pkgIndex.tcl scripts/Makefile"
    31441906
    31451907cat >confcache <<\_ACEOF
     
    38522614    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    38532615    "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;;
    3854     "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;;
    3855     "apps/about") CONFIG_FILES="$CONFIG_FILES apps/about" ;;
    3856     "apps/encodedata") CONFIG_FILES="$CONFIG_FILES apps/encodedata" ;;
    3857     "apps/rappture") CONFIG_FILES="$CONFIG_FILES apps/rappture" ;;
    3858     "apps/rappture-csh.env") CONFIG_FILES="$CONFIG_FILES apps/rappture-csh.env" ;;
    3859     "apps/rappture.env") CONFIG_FILES="$CONFIG_FILES apps/rappture.env" ;;
    3860     "apps/rappture.use") CONFIG_FILES="$CONFIG_FILES apps/rappture.use" ;;
    3861     "apps/rerun") CONFIG_FILES="$CONFIG_FILES apps/rerun" ;;
    3862     "apps/simsim") CONFIG_FILES="$CONFIG_FILES apps/simsim" ;;
    3863     "apps/xmldiff") CONFIG_FILES="$CONFIG_FILES apps/xmldiff" ;;
    38642616    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
    3865     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
    38662617
    38672618  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  • branches/r9/gui/configure.in

    r4840 r4867  
    22AC_INIT([RapptureGUI],[1.4],[rappture@nanohub.org])
    33AC_CONFIG_AUX_DIR(cf)
     4
    45#------------------------------------------------------------------------
    56# Handle the --prefix=... option
     
    1314fi
    1415
    15 if test "${libdir}" != "${prefix}/lib"; then
    16     LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}"
    17 else
    18     LIB_SEARCH_DIRS="-L${libdir}"
    19 fi
    20 AC_CANONICAL_TARGET
    21 AC_SUBST(LIB_SEARCH_DIRS)
    22 
    2316AC_PROG_INSTALL
    24 AC_PROG_INSTALL
    25 AC_PROG_RANLIB
    2617AC_PROG_LN_S
    2718AC_PROG_MKDIR_P
    2819AC_PROG_MAKE_SET
    29 AC_PROG_CC
    30 
    31 AC_ARG_WITH(
    32     [install],
    33     [AS_HELP_STRING([--with-install[=DIR]],
    34         [location of installation @<:@default=yes@:>@])],
    35     [],
    36     [with_install=yes])
    37 
    38 if test "$with_install" != "yes"; then
    39     INSTALL_PREFIX=$with_install
    40 else
    41     INSTALL_PREFIX=$prefix
    42 fi
    43 
    44 #SC_CONFIG_CFLAGS
    45 #SC_ENABLE_SHARED
    46 
    47 gui_with_tcl=""
    48 
    49 make_command=""
    50 for m in "$MAKE" make gmake gnumake ; do
    51   if test "x${m}" != "x" ; then
    52     if  ( sh -c "$m --version" 2>/dev/null | grep GNU >/dev/null ) ; then
    53       make_command=$m; break;
    54     fi
    55   fi
    56 done
    57 if test "x${make_command}" = "x" ; then
    58   AC_MSG_ERROR([Requires GNU make. You can specify a version with \$MAKE])
    59 fi
    60 AC_SUBST(MAKE, ${make_command})
    61 
    62 AC_ARG_ENABLE(
    63     [gui],
    64     [AS_HELP_STRING([--enable-gui], [build code related to the graphical user interface @<:@default=yes@:>@])],
    65     [],
    66     [enable_gui=yes])
    67 
    68 ENABLE_GUI=
    69 if test "$enable_gui" != "no" ; then
    70     ENABLE_GUI="yes"
    71 fi
    72 AC_SUBST(ENABLE_GUI)
    73 
    74 with_tclsh="yes"
    75 AC_ARG_WITH(
    76     [tclsh],
    77     [AS_HELP_STRING([--with-tclsh[=DIR]],
    78         [location of tclsh @<:@default=yes@:>@])],
    79     [],
    80     [with_tclsh=yes])
    81 
    82 TCLSH=
    83 # -----------------------------------------------------------------------
    84 #
    85 #       Find the Tcl build configuration file "tclConfig.sh"
    86 #
    87 # -----------------------------------------------------------------------
    88 
    89 AC_MSG_CHECKING([for tclConfig.sh])
    90 tcl_config_sh=""
    91 if test "x$gui_with_tcl" != "x" ; then
    92 
    93   # Verify that a tclConfig.sh file exists in the directory specified
    94   # by --with-tcl.
    95 
    96   for dir in \
    97    $gui_with_tcl
    98   do
    99     if test -r "$dir/tclConfig.sh" ; then
    100       tcl_config_sh="$dir/tclConfig.sh"
    101       break
    102     elif test -r "$dir/lib/tclConfig.sh" ; then
    103       tcl_config_sh="$dir/lib/tclConfig.sh"
    104       break
    105     fi
    106   done
    107 else
    108 
    109   # Otherwise, search for Tcl configuration file. 
    110 
    111   #  1. Search previously named locations.
    112 
    113   for dir in \
    114    $prefix \
    115    $exec_prefix \
    116    $gui_cv_tcl_lib
    117   do
    118     if test -r "$dir/tclConfig.sh" ; then
    119       tcl_config_sh="$dir/tclConfig.sh"
    120       break
    121     elif test -r "$dir/lib/tclConfig.sh" ; then
    122       tcl_config_sh="$dir/lib/tclConfig.sh"
    123       break
    124     fi
    125   done
    126 fi
    127 
    128 AC_MSG_RESULT([${tcl_config_sh}])
    129 
    130 if test "x$tcl_config_sh" = "x" ; then
    131   echo "can't find Tcl configuration script \"tclConfig.sh\""
    132   exit 1
    133 fi
    134 . ${tcl_config_sh}
    135 TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
    136 
    137 case $target in
    138   *-*-cygwin*|*-*-mingw*)
    139     gui_platform="win"
    140     TCLSH=${TCL_PREFIX}/bin/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}
    141     ;;
    142   *-*-darwin*)
    143     gui_platform="macosx"
    144     TCLSH=${TCL_PREFIX}/bin/tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}
    145     ;;
    146   *)
    147     blt_platform="unix"
    148     TCLSH=${TCL_PREFIX}/bin/tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}
    149     ;;
    150 esac
    151 
    152 AC_MSG_RESULT([${TCLSH}])
    153 AC_SUBST(TCLSH)
    15420
    15521if test -f "${exec_prefix}/lib/tclConfig.sh" ; then
     
    16026fi
    16127
    162 AC_SUBST(INSTALL_PREFIX)
    163 AC_SUBST(TCL_INC_SPEC)
    164 AC_SUBST(TCL_LIB_SPEC)
    165 AC_SUBST(TCL_VERSION)
    166 AC_SUBST(TK_INC_SPEC)
    167 AC_SUBST(TK_LIB_SPEC)
    168 AC_SUBST(TK_XLIBSW)
    169 AC_SUBST(TK_VERSION)
    170 AC_SUBST(TCL_CFLAGS_DEBUG)
    171 AC_SUBST(TCL_CFLAGS_OPTIMIZE)
    172 AC_SUBST(TCL_STLIB_LD)
    173 AC_SUBST(TCL_SHLIB_LD)
    174 AC_SUBST(TCL_SHLIB_CFLAGS)
    175 AC_SUBST(TCL_SHLIB_LDFLAGS)
    176 AC_SUBST(TCL_SHLIB_SUFFIX)
    177 
     28TCLSH=${bindir}/tclsh${TCL_VERSION}
     29AC_MSG_RESULT([${TCLSH}])
     30AC_SUBST(TCLSH)
    17831
    17932AC_CONFIG_FILES([
    18033    Makefile
    18134    pkgIndex.tcl
    182     apps/Makefile
    183     apps/about
    184     apps/encodedata
    185     apps/rappture
    186     apps/rappture-csh.env
    187     apps/rappture.env
    188     apps/rappture.use
    189     apps/rerun
    190     apps/simsim
    191     apps/xmldiff
    19235    scripts/Makefile
    193     src/Makefile
    19436])
    19537AC_OUTPUT
  • branches/r9/lang/Makefile.in

    r3749 r4867  
    5555
    5656all:
    57         make -C ../src install
    5857        for i in $(LANGS) ; do \
    5958          $(MAKE) -C $$i all || exit 1 ;\
  • branches/r9/lang/configure

    r4837 r4867  
    96789678
    96799679
    9680 ac_config_files="$ac_config_files Makefile java/Makefile java/rappture/Makefile perl/Makefile perl/Makefile.PL python/Makefile python/setup.py matlab/Makefile octave/Makefile octave/octave2/Makefile octave/octave3/Makefile R/Makefile ruby/Makefile ruby/build.rb tcl/Makefile tcl/pkgIndex.tcl tcl/scripts/Makefile tcl/src/Makefile tcl/tests/Makefile"
     9680ac_config_files="$ac_config_files Makefile java/Makefile java/rappture/Makefile perl/Makefile perl/Makefile.PL python/Makefile python/setup.py matlab/Makefile octave/Makefile octave/octave2/Makefile octave/octave3/Makefile R/Makefile ruby/Makefile ruby/build.rb tcl/Makefile tcl/pkgIndex.tcl tcl/scripts/Makefile tcl/src/Makefile tcl/tests/Makefile examples/3D/Makefile examples/Makefile examples/app-fermi/2.0/Makefile examples/app-fermi/Makefile examples/app-fermi/R/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/Makefile examples/app-fermi/octave/octave2/Makefile examples/app-fermi/octave/octave3/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/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"
    96819681
    96829682cat >confcache <<\_ACEOF
     
    1040710407    "tcl/src/Makefile") CONFIG_FILES="$CONFIG_FILES tcl/src/Makefile" ;;
    1040810408    "tcl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES tcl/tests/Makefile" ;;
     10409    "examples/3D/Makefile") CONFIG_FILES="$CONFIG_FILES examples/3D/Makefile" ;;
     10410    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
     10411    "examples/app-fermi/2.0/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/2.0/Makefile" ;;
     10412    "examples/app-fermi/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/Makefile" ;;
     10413    "examples/app-fermi/R/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/R/Makefile" ;;
     10414    "examples/app-fermi/cee/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/cee/Makefile" ;;
     10415    "examples/app-fermi/fortran/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/fortran/Makefile" ;;
     10416    "examples/app-fermi/java/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/java/Makefile" ;;
     10417    "examples/app-fermi/matlab/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/matlab/Makefile" ;;
     10418    "examples/app-fermi/matlab/compiled/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/matlab/compiled/Makefile" ;;
     10419    "examples/app-fermi/matlab/uncompiled/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/matlab/uncompiled/Makefile" ;;
     10420    "examples/app-fermi/octave/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/octave/Makefile" ;;
     10421    "examples/app-fermi/octave/octave2/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/octave/octave2/Makefile" ;;
     10422    "examples/app-fermi/octave/octave3/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/octave/octave3/Makefile" ;;
     10423    "examples/app-fermi/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/perl/Makefile" ;;
     10424    "examples/app-fermi/python/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/python/Makefile" ;;
     10425    "examples/app-fermi/ruby/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/ruby/Makefile" ;;
     10426    "examples/app-fermi/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/tcl/Makefile" ;;
     10427    "examples/app-fermi/wrapper/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/Makefile" ;;
     10428    "examples/app-fermi/wrapper/cee/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/cee/Makefile" ;;
     10429    "examples/app-fermi/wrapper/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/perl/Makefile" ;;
     10430    "examples/app-fermi/wrapper/python/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/python/Makefile" ;;
     10431    "examples/app-fermi/wrapper/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/tcl/Makefile" ;;
     10432    "examples/c-example/Makefile") CONFIG_FILES="$CONFIG_FILES examples/c-example/Makefile" ;;
     10433    "examples/canvas/Makefile") CONFIG_FILES="$CONFIG_FILES examples/canvas/Makefile" ;;
     10434    "examples/demo.bash") CONFIG_FILES="$CONFIG_FILES examples/demo.bash" ;;
     10435    "examples/flow/Makefile") CONFIG_FILES="$CONFIG_FILES examples/flow/Makefile" ;;
     10436    "examples/flow/demo1/Makefile") CONFIG_FILES="$CONFIG_FILES examples/flow/demo1/Makefile" ;;
     10437    "examples/flow/demo2/Makefile") CONFIG_FILES="$CONFIG_FILES examples/flow/demo2/Makefile" ;;
     10438    "examples/flow/demo3/Makefile") CONFIG_FILES="$CONFIG_FILES examples/flow/demo3/Makefile" ;;
     10439    "examples/graph/Makefile") CONFIG_FILES="$CONFIG_FILES examples/graph/Makefile" ;;
     10440    "examples/objects/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/Makefile" ;;
     10441    "examples/objects/axis/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/axis/Makefile" ;;
     10442    "examples/objects/curve/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/curve/Makefile" ;;
     10443    "examples/objects/dxWriter/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/dxWriter/Makefile" ;;
     10444    "examples/objects/floatBuffer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/floatBuffer/Makefile" ;;
     10445    "examples/objects/histogram/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/histogram/Makefile" ;;
     10446    "examples/objects/library/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/library/Makefile" ;;
     10447    "examples/objects/number/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/number/Makefile" ;;
     10448    "examples/objects/path/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/path/Makefile" ;;
     10449    "examples/objects/plot/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/plot/Makefile" ;;
     10450    "examples/objects/scatter/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/scatter/Makefile" ;;
     10451    "examples/objects/string/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/string/Makefile" ;;
     10452    "examples/objects/tree/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/tree/Makefile" ;;
     10453    "examples/objects/xmlparser/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/xmlparser/Makefile" ;;
     10454    "examples/zoo/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/Makefile" ;;
     10455    "examples/zoo/binary/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/binary/Makefile" ;;
     10456    "examples/zoo/boolean/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/boolean/Makefile" ;;
     10457    "examples/zoo/choice/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/choice/Makefile" ;;
     10458    "examples/zoo/curve/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/curve/Makefile" ;;
     10459    "examples/zoo/drawing/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/drawing/Makefile" ;;
     10460    "examples/zoo/enable/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/enable/Makefile" ;;
     10461    "examples/zoo/field/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/field/Makefile" ;;
     10462    "examples/zoo/group/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/group/Makefile" ;;
     10463    "examples/zoo/histogram/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/histogram/Makefile" ;;
     10464    "examples/zoo/image/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/image/Makefile" ;;
     10465    "examples/zoo/image/docs/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/image/docs/Makefile" ;;
     10466    "examples/zoo/image/examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/image/examples/Makefile" ;;
     10467    "examples/zoo/integer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/integer/Makefile" ;;
     10468    "examples/zoo/integer2/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/integer2/Makefile" ;;
     10469    "examples/zoo/loader/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/loader/Makefile" ;;
     10470    "examples/zoo/loader/examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/loader/examples/Makefile" ;;
     10471    "examples/zoo/log/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/log/Makefile" ;;
     10472    "examples/zoo/mesh/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/mesh/Makefile" ;;
     10473    "examples/zoo/note/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/note/Makefile" ;;
     10474    "examples/zoo/note/docs/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/note/docs/Makefile" ;;
     10475    "examples/zoo/number/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/number/Makefile" ;;
     10476    "examples/zoo/number2/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/number2/Makefile" ;;
     10477    "examples/zoo/parallelepiped/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/parallelepiped/Makefile" ;;
     10478    "examples/zoo/periodicelement/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/periodicelement/Makefile" ;;
     10479    "examples/zoo/phase/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/phase/Makefile" ;;
     10480    "examples/zoo/sequence/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/sequence/Makefile" ;;
     10481    "examples/zoo/sequence/examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/sequence/examples/Makefile" ;;
     10482    "examples/zoo/string/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/string/Makefile" ;;
     10483    "examples/zoo/structure/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/structure/Makefile" ;;
     10484    "examples/zoo/structure/examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/structure/examples/Makefile" ;;
     10485    "examples/zoo/table/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/table/Makefile" ;;
    1040910486
    1041010487  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  • branches/r9/lang/configure.in

    r4837 r4867  
    292292    tcl/src/Makefile
    293293    tcl/tests/Makefile
     294    examples/3D/Makefile
     295    examples/Makefile
     296    examples/app-fermi/2.0/Makefile
     297    examples/app-fermi/Makefile
     298    examples/app-fermi/R/Makefile
     299    examples/app-fermi/cee/Makefile
     300    examples/app-fermi/fortran/Makefile
     301    examples/app-fermi/java/Makefile
     302    examples/app-fermi/matlab/Makefile
     303    examples/app-fermi/matlab/compiled/Makefile
     304    examples/app-fermi/matlab/uncompiled/Makefile
     305    examples/app-fermi/octave/Makefile
     306    examples/app-fermi/octave/octave2/Makefile
     307    examples/app-fermi/octave/octave3/Makefile
     308    examples/app-fermi/perl/Makefile
     309    examples/app-fermi/python/Makefile
     310    examples/app-fermi/ruby/Makefile
     311    examples/app-fermi/tcl/Makefile
     312    examples/app-fermi/wrapper/Makefile
     313    examples/app-fermi/wrapper/cee/Makefile
     314    examples/app-fermi/wrapper/perl/Makefile
     315    examples/app-fermi/wrapper/python/Makefile
     316    examples/app-fermi/wrapper/tcl/Makefile
     317    examples/c-example/Makefile
     318    examples/canvas/Makefile
     319    examples/demo.bash
     320    examples/flow/Makefile
     321    examples/flow/demo1/Makefile
     322    examples/flow/demo2/Makefile
     323    examples/flow/demo3/Makefile
     324    examples/graph/Makefile
     325    examples/objects/Makefile
     326    examples/objects/axis/Makefile
     327    examples/objects/curve/Makefile
     328    examples/objects/dxWriter/Makefile
     329    examples/objects/floatBuffer/Makefile
     330    examples/objects/histogram/Makefile
     331    examples/objects/library/Makefile
     332    examples/objects/number/Makefile
     333    examples/objects/path/Makefile
     334    examples/objects/plot/Makefile
     335    examples/objects/scatter/Makefile
     336    examples/objects/string/Makefile
     337    examples/objects/tree/Makefile
     338    examples/objects/xmlparser/Makefile
     339    examples/zoo/Makefile
     340    examples/zoo/binary/Makefile
     341    examples/zoo/boolean/Makefile
     342    examples/zoo/choice/Makefile
     343    examples/zoo/curve/Makefile
     344    examples/zoo/drawing/Makefile
     345    examples/zoo/enable/Makefile
     346    examples/zoo/field/Makefile
     347    examples/zoo/group/Makefile
     348    examples/zoo/histogram/Makefile
     349    examples/zoo/image/Makefile
     350    examples/zoo/image/docs/Makefile
     351    examples/zoo/image/examples/Makefile
     352    examples/zoo/integer/Makefile
     353    examples/zoo/integer2/Makefile
     354    examples/zoo/loader/Makefile
     355    examples/zoo/loader/examples/Makefile
     356    examples/zoo/log/Makefile
     357    examples/zoo/mesh/Makefile
     358    examples/zoo/note/Makefile
     359    examples/zoo/note/docs/Makefile
     360    examples/zoo/number/Makefile
     361    examples/zoo/number2/Makefile
     362    examples/zoo/parallelepiped/Makefile
     363    examples/zoo/periodicelement/Makefile
     364    examples/zoo/phase/Makefile
     365    examples/zoo/sequence/Makefile
     366    examples/zoo/sequence/examples/Makefile
     367    examples/zoo/string/Makefile
     368    examples/zoo/structure/Makefile
     369    examples/zoo/structure/examples/Makefile
     370    examples/zoo/table/Makefile
    294371])
    295372AC_OUTPUT
  • branches/r9/lang/tcl/src/Makefile.in

    r4861 r4867  
    4848
    4949LIBS            = \
    50                 -L$(libdir) -lrappture \
     50                -L$(libdir) -lrappture \
    5151                $(TCL_LIB_SPEC) -lexpat -lz -lm -lstdc++
    5252
    5353OBJS = \
    54         Rappture_Init.o \
     54        Rappture_Init.o \
     55        RpSwitch.o \
    5556        RpEncodeTclInterface.o \
    5657        RpUnitsTclInterface.o \
  • branches/r9/lang/tcl/src/RpEncodeTclInterface.cc

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

    r3471 r4867  
    3434
    3535INCLUDES =      \
     36                -I. \
    3637                -I$(srcdir) \
    37                 -I../src/core \
    38                 -I$(srcdir)/../src/core \
    39                 -I$(srcdir)/../src/objects \
    4038                -I$(includedir)
    4139
  • branches/r9/packages/video/RpVideo.h

    r3177 r4867  
     1#ifndef VIDEO_H
     2#define VIDEO_H
     3
    14/*
    25 * ----------------------------------------------------------------------
     
    1518 * ======================================================================
    1619 */
    17 
    18 #ifdef __cplusplus
    19 extern "C" {
    20 #endif
    21 
    2220
    2321typedef struct VideoObjRec VideoObj;
     
    4341int VideoClose (VideoObj *vidPtr);
    4442
    45 #ifdef __cplusplus
    46 }
    47 #endif
    48 
     43#endif /* VIDEO_H */
  • branches/r9/runner/Makefile.in

    r4858 r4867  
    4242
    4343all:
    44         $(MAKE) -C src all
    4544        $(MAKE) -C scripts all
    4645
    4746links:
    4847
    49 install-xmlfiles:
     48install:
     49        $(MKDIR_P) -m 0755 $(destdir)
     50        $(INSTALL) -m 0444 pkgIndex.tcl $(destdir)
    5051        $(MKDIR_P) -m 0755 $(destdir)/lib
    5152        for i in $(XMLFILES) ; do \
    5253          $(INSTALL) -m 0444  $$i $(destdir)/lib ; \
    5354        done
    54 
    55 make-links:
    56         $(RM) $(bindir)/tclsh
    57         (cd $(bindir); $(LN_S) tclsh$(TCL_VERSION) tclsh)
    58         $(RM) $(bindir)/wish
    59         (cd $(bindir); $(LN_S) wish$(TK_VERSION) wish)
    60 
    61 install: make-links install-xmlfiles
    62         $(MKDIR_P) -m 0755 $(destdir)
    63         $(INSTALL) -m 0444 pkgIndex.tcl $(destdir)
    6455        $(MAKE) -C scripts install
    6556
  • branches/r9/runner/scripts/Makefile.in

    r4861 r4867  
    4646                $(srcdir)/xauth.tcl
    4747
    48 all: tclIndex
     48all:
    4949
    50 tclIndex: $(FILES)
    51         $(TCLSH) $(srcdir)/../cf/mkindex.tcl --srcdir $(srcdir) \
    52                 --outfile tclIndex
    53 
    54 install: tclIndex
     50install:
    5551        $(MKDIR_P) -m 0755 $(destdir)
    5652        for i in $(FILES); do \
    5753            $(INSTALL) -m 0444 $$i $(destdir) ; \
    5854        done
     55        $(TCLSH) $(srcdir)/../cf/mkindex.tcl --srcdir $(destdir) \
     56                --outfile tclIndex
     57        $(RM) $(destdir)/tclIndex
    5958        $(INSTALL) -m 0444 tclIndex $(destdir)
     59        $(RM) tclIndex
    6060
    61 clean:
    62         $(RM) tclIndex
     61clean:
    6362
    6463distclean: clean
  • branches/r9/tester/Makefile.in

    r3471 r4867  
    1717top_builddir    = .
    1818
     19INSTALL         = @INSTALL@
    1920MKDIR_P         = @MKDIR_P@
    20 TCL_VERSION     = @TCL_VERSION@
    21 TCLSH           = $(bindir)/tclsh$(TCL_VERSION)
    22 INSTALL         = @INSTALL@
     21TCLSH           = $(bindir)/tclsh
    2322
    2423PACKAGE_VERSION = @PACKAGE_VERSION@
  • branches/r9/tester/scripts/Makefile.in

    r4840 r4867  
    1010includedir      = @includedir@
    1111
    12 SHELL           = @SHELL@
    1312INSTALL         = @INSTALL@
    1413MKDIR_P         = @MKDIR_P@
    15 TCL_VERSION     = @TCL_VERSION@
    16 TCLSH           = $(bindir)/tclsh$(TCL_VERSION)
     14PACKAGE_VERSION = @PACKAGE_VERSION@
     15SHELL           = @SHELL@
     16TCLSH           = $(bindir)/tclsh
    1717VPATH           = $(srcdir)
    18 PACKAGE_VERSION = @PACKAGE_VERSION@
    1918
    2019FILES           = \
Note: See TracChangeset for help on using the changeset viewer.