Changeset 4909 for branches/r9/configure


Ignore:
Timestamp:
Dec 31, 2014 10:05:58 AM (7 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/r9/configure

    r4872 r4909  
    624624ac_subst_vars='LTLIBOBJS
    625625LIBOBJS
    626 HAVE_VTK
     626WITH_TCL
     627WITH_RUBY_SITELIBDIR
     628WITH_RUBY
     629WITH_PYTHON
     630WITH_PERL
     631WITH_OCTAVE
     632WITH_MKOCTFILE3
     633WITH_MKOCTFILE2
     634WITH_MATLAB
     635WITH_JAVA
     636WITH_R
     637WITH_VTK
    627638RAPPTURE_RELEASE_SERIAL
    628639RAPPTURE_MINOR_VERSION
     
    648659TCL_LIB_SPEC
    649660TCL_INC_SPEC
    650 STLIB_LD
    651661SIZEOF_VOID_P
    652662SIZEOF_LONG_LONG
    653663SIZEOF_LONG
    654664SIZEOF_INT
    655 SHLIB_SUFFIX
    656665SHLIB_LDFLAGS
    657 SHLIB_LD
    658 SHLIB_CFLAGS
    659666RP_BASE
    660667SVN_VERSION
     
    667674ENABLE_GUI
    668675ENABLE_LANG
     676LDFLAGS_DEFAULT
     677CFLAGS_DEFAULT
     678INSTALL_STUB_LIB
     679INSTALL_LIB
     680MAKE_STUB_LIB
     681MAKE_LIB
     682SHLIB_SUFFIX
     683SHLIB_CFLAGS
     684SHLIB_LD_LIBS
     685TK_SHLIB_LD_EXTRAS
     686TCL_SHLIB_LD_EXTRAS
     687SHLIB_LD
     688STLIB_LD
     689LD_SEARCH_FLAGS
     690CC_SEARCH_FLAGS
     691LDFLAGS_OPTIMIZE
     692LDFLAGS_DEBUG
     693CFLAGS_WARNING
    669694CFLAGS_OPTIMIZE
    670695CFLAGS_DEBUG
     696PLAT_SRCS
     697PLAT_OBJS
     698DL_OBJS
     699DL_LIBS
     700AR
    671701CXXCPP
    672702XMKMF
     
    735765ac_user_opts='
    736766enable_option_checking
    737 with_x
     767with_R
     768with_java
     769with_matlab
     770with_mkoctfile2
     771with_mkoctfile3
     772with_octave
     773with_perl
     774with_python
     775with_ruby
     776with_ruby_sitelibdir
     777with_tcl
    738778with_install
    739 with_statsdir
    740 enable_lang
    741 enable_gui
    742 with_ffmpeg
    743779with_vtk
    744780enable_vtkdicom
     781with_x
     782enable_64bit
     783enable_64bit_vis
     784enable_corefoundation
     785enable_load
     786enable_symbols
    745787'
    746788      ac_precious_vars='build_alias
     
    13731415  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    13741416  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    1375   --enable-lang           build language bindings [default=yes]
    1376   --enable-gui            build code related to the graphical user interface
    1377                           [default=yes]
    13781417  --enable-vtkdicom       Use vtkDICOM package [default=no]
     1418  --enable-64bit          enable 64bit support (where applicable)
     1419  --enable-64bit-vis      enable 64bit Sparc VIS support
     1420  --enable-corefoundation use CoreFoundation API --enable-corefoundation
     1421  --disable-load          disallow dynamic loading and "load" command
     1422  --enable-symbols        build with debugging symbols --disable-symbols
    13791423
    13801424Optional Packages:
    13811425  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    13821426  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     1427  --with-R=DIR            location of R interpreter [default=yes]
     1428  --with-java=DIR         location of java [default=yes]
     1429  --with-matlab=DIR       location of matlab and mex compiler [default=yes]
     1430  --with-mkoctfile2=DIR   path of octave compiler `mkoctfile' [default=no]
     1431  --with-mkoctfile3=DIR   path of octave compiler `mkoctfile' [default=no]
     1432  --with-octave=DIR       path of default octave compiler `mkoctfile'
     1433                          [default=yes]
     1434  --with-perl=DIR         location of perl library [default=yes]
     1435  --with-python=DIR       location of python library [default=yes]
     1436  --with-ruby=PATH        path to the ruby interpreter [[ruby]]
     1437  --with-ruby-sitelibdir=PATH
     1438                          path to install ruby scripts [[auto-detect]]
     1439  --with-tcl=DIR          location of tcl library [default=yes]
     1440  --with-install=DIR      location of installation [default=yes]
     1441  --with-vtk              Build VTK for rappture
    13831442  --with-x                use the X Window System
    1384   --with-install=DIR      location of installation [default=yes]
    1385   --with-statsdir=DIR     Write statistics in DIR
    1386   --with-vtk              Build VTK for rappture
    1387   --with-ffmpeg=DIR       location of ffmpeg [default=yes]
    1388   --with-vtk=version      VTK library version [default=6.1]
    13891443
    13901444Some influential environment variables:
     
    18731927} # ac_fn_cxx_try_link
    18741928
     1929# ac_fn_cxx_try_run LINENO
     1930# ------------------------
     1931# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
     1932# that executables *can* be run.
     1933ac_fn_cxx_try_run ()
     1934{
     1935  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1936  if { { ac_try="$ac_link"
     1937case "(($ac_try" in
     1938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1939  *) ac_try_echo=$ac_try;;
     1940esac
     1941eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1942$as_echo "$ac_try_echo"; } >&5
     1943  (eval "$ac_link") 2>&5
     1944  ac_status=$?
     1945  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1946  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
     1947  { { case "(($ac_try" in
     1948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1949  *) ac_try_echo=$ac_try;;
     1950esac
     1951eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1952$as_echo "$ac_try_echo"; } >&5
     1953  (eval "$ac_try") 2>&5
     1954  ac_status=$?
     1955  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1956  test $ac_status = 0; }; }; then :
     1957  ac_retval=0
     1958else
     1959  $as_echo "$as_me: program exited with status $ac_status" >&5
     1960       $as_echo "$as_me: failed program was:" >&5
     1961sed 's/^/| /' conftest.$ac_ext >&5
     1962
     1963       ac_retval=$ac_status
     1964fi
     1965  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     1966  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1967  as_fn_set_status $ac_retval
     1968
     1969} # ac_fn_cxx_try_run
     1970
     1971# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
     1972# ---------------------------------------------------------
     1973# Tests whether HEADER exists and can be compiled using the include files in
     1974# INCLUDES, setting the cache variable VAR accordingly.
     1975ac_fn_cxx_check_header_compile ()
     1976{
     1977  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1978  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1979$as_echo_n "checking for $2... " >&6; }
     1980if eval \${$3+:} false; then :
     1981  $as_echo_n "(cached) " >&6
     1982else
     1983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1984/* end confdefs.h.  */
     1985$4
     1986#include <$2>
     1987_ACEOF
     1988if ac_fn_cxx_try_compile "$LINENO"; then :
     1989  eval "$3=yes"
     1990else
     1991  eval "$3=no"
     1992fi
     1993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1994fi
     1995eval ac_res=\$$3
     1996               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1997$as_echo "$ac_res" >&6; }
     1998  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     1999
     2000} # ac_fn_cxx_check_header_compile
     2001
     2002# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
     2003# ----------------------------------------------
     2004# Tries to find the compile-time value of EXPR in a program that includes
     2005# INCLUDES, setting VAR accordingly. Returns whether the value could be
     2006# computed
     2007ac_fn_cxx_compute_int ()
     2008{
     2009  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     2010  if test "$cross_compiling" = yes; then
     2011    # Depending upon the size, compute the lo and hi bounds.
     2012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2013/* end confdefs.h.  */
     2014$4
     2015int
     2016main ()
     2017{
     2018static int test_array [1 - 2 * !(($2) >= 0)];
     2019test_array [0] = 0;
     2020return test_array [0];
     2021
     2022  ;
     2023  return 0;
     2024}
     2025_ACEOF
     2026if ac_fn_cxx_try_compile "$LINENO"; then :
     2027  ac_lo=0 ac_mid=0
     2028  while :; do
     2029    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2030/* end confdefs.h.  */
     2031$4
     2032int
     2033main ()
     2034{
     2035static int test_array [1 - 2 * !(($2) <= $ac_mid)];
     2036test_array [0] = 0;
     2037return test_array [0];
     2038
     2039  ;
     2040  return 0;
     2041}
     2042_ACEOF
     2043if ac_fn_cxx_try_compile "$LINENO"; then :
     2044  ac_hi=$ac_mid; break
     2045else
     2046  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
     2047                        if test $ac_lo -le $ac_mid; then
     2048                          ac_lo= ac_hi=
     2049                          break
     2050                        fi
     2051                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
     2052fi
     2053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2054  done
     2055else
     2056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2057/* end confdefs.h.  */
     2058$4
     2059int
     2060main ()
     2061{
     2062static int test_array [1 - 2 * !(($2) < 0)];
     2063test_array [0] = 0;
     2064return test_array [0];
     2065
     2066  ;
     2067  return 0;
     2068}
     2069_ACEOF
     2070if ac_fn_cxx_try_compile "$LINENO"; then :
     2071  ac_hi=-1 ac_mid=-1
     2072  while :; do
     2073    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2074/* end confdefs.h.  */
     2075$4
     2076int
     2077main ()
     2078{
     2079static int test_array [1 - 2 * !(($2) >= $ac_mid)];
     2080test_array [0] = 0;
     2081return test_array [0];
     2082
     2083  ;
     2084  return 0;
     2085}
     2086_ACEOF
     2087if ac_fn_cxx_try_compile "$LINENO"; then :
     2088  ac_lo=$ac_mid; break
     2089else
     2090  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
     2091                        if test $ac_mid -le $ac_hi; then
     2092                          ac_lo= ac_hi=
     2093                          break
     2094                        fi
     2095                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
     2096fi
     2097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2098  done
     2099else
     2100  ac_lo= ac_hi=
     2101fi
     2102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2103fi
     2104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2105# Binary search between lo and hi bounds.
     2106while test "x$ac_lo" != "x$ac_hi"; do
     2107  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
     2108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2109/* end confdefs.h.  */
     2110$4
     2111int
     2112main ()
     2113{
     2114static int test_array [1 - 2 * !(($2) <= $ac_mid)];
     2115test_array [0] = 0;
     2116return test_array [0];
     2117
     2118  ;
     2119  return 0;
     2120}
     2121_ACEOF
     2122if ac_fn_cxx_try_compile "$LINENO"; then :
     2123  ac_hi=$ac_mid
     2124else
     2125  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
     2126fi
     2127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2128done
     2129case $ac_lo in #((
     2130?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
     2131'') ac_retval=1 ;;
     2132esac
     2133  else
     2134    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2135/* end confdefs.h.  */
     2136$4
     2137static long int longval () { return $2; }
     2138static unsigned long int ulongval () { return $2; }
     2139#include <stdio.h>
     2140#include <stdlib.h>
     2141int
     2142main ()
     2143{
     2144
     2145  FILE *f = fopen ("conftest.val", "w");
     2146  if (! f)
     2147    return 1;
     2148  if (($2) < 0)
     2149    {
     2150      long int i = longval ();
     2151      if (i != ($2))
     2152        return 1;
     2153      fprintf (f, "%ld", i);
     2154    }
     2155  else
     2156    {
     2157      unsigned long int i = ulongval ();
     2158      if (i != ($2))
     2159        return 1;
     2160      fprintf (f, "%lu", i);
     2161    }
     2162  /* Do not output a trailing newline, as this causes \r\n confusion
     2163     on some platforms.  */
     2164  return ferror (f) || fclose (f) != 0;
     2165
     2166  ;
     2167  return 0;
     2168}
     2169_ACEOF
     2170if ac_fn_cxx_try_run "$LINENO"; then :
     2171  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
     2172else
     2173  ac_retval=1
     2174fi
     2175rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     2176  conftest.$ac_objext conftest.beam conftest.$ac_ext
     2177rm -f conftest.val
     2178
     2179  fi
     2180  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     2181  as_fn_set_status $ac_retval
     2182
     2183} # ac_fn_cxx_compute_int
     2184
    18752185# ac_fn_cxx_check_func LINENO FUNC VAR
    18762186# ------------------------------------
     
    20302340
    20312341} # ac_fn_cxx_check_header_mongrel
    2032 
    2033 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
    2034 # ---------------------------------------------------------
    2035 # Tests whether HEADER exists and can be compiled using the include files in
    2036 # INCLUDES, setting the cache variable VAR accordingly.
    2037 ac_fn_cxx_check_header_compile ()
    2038 {
    2039   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    2040   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    2041 $as_echo_n "checking for $2... " >&6; }
    2042 if eval \${$3+:} false; then :
    2043   $as_echo_n "(cached) " >&6
    2044 else
    2045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2046 /* end confdefs.h.  */
    2047 $4
    2048 #include <$2>
    2049 _ACEOF
    2050 if ac_fn_cxx_try_compile "$LINENO"; then :
    2051   eval "$3=yes"
    2052 else
    2053   eval "$3=no"
    2054 fi
    2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2056 fi
    2057 eval ac_res=\$$3
    2058                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    2059 $as_echo "$ac_res" >&6; }
    2060   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    2061 
    2062 } # ac_fn_cxx_check_header_compile
    2063 
    2064 # ac_fn_cxx_try_run LINENO
    2065 # ------------------------
    2066 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
    2067 # that executables *can* be run.
    2068 ac_fn_cxx_try_run ()
    2069 {
    2070   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    2071   if { { ac_try="$ac_link"
    2072 case "(($ac_try" in
    2073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2074   *) ac_try_echo=$ac_try;;
    2075 esac
    2076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    2077 $as_echo "$ac_try_echo"; } >&5
    2078   (eval "$ac_link") 2>&5
    2079   ac_status=$?
    2080   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    2081   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
    2082   { { case "(($ac_try" in
    2083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
    2084   *) ac_try_echo=$ac_try;;
    2085 esac
    2086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
    2087 $as_echo "$ac_try_echo"; } >&5
    2088   (eval "$ac_try") 2>&5
    2089   ac_status=$?
    2090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    2091   test $ac_status = 0; }; }; then :
    2092   ac_retval=0
    2093 else
    2094   $as_echo "$as_me: program exited with status $ac_status" >&5
    2095        $as_echo "$as_me: failed program was:" >&5
    2096 sed 's/^/| /' conftest.$ac_ext >&5
    2097 
    2098        ac_retval=$ac_status
    2099 fi
    2100   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
    2101   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    2102   as_fn_set_status $ac_retval
    2103 
    2104 } # ac_fn_cxx_try_run
    2105 
    2106 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
    2107 # ----------------------------------------------
    2108 # Tries to find the compile-time value of EXPR in a program that includes
    2109 # INCLUDES, setting VAR accordingly. Returns whether the value could be
    2110 # computed
    2111 ac_fn_cxx_compute_int ()
    2112 {
    2113   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    2114   if test "$cross_compiling" = yes; then
    2115     # Depending upon the size, compute the lo and hi bounds.
    2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2117 /* end confdefs.h.  */
    2118 $4
    2119 int
    2120 main ()
    2121 {
    2122 static int test_array [1 - 2 * !(($2) >= 0)];
    2123 test_array [0] = 0;
    2124 return test_array [0];
    2125 
    2126   ;
    2127   return 0;
    2128 }
    2129 _ACEOF
    2130 if ac_fn_cxx_try_compile "$LINENO"; then :
    2131   ac_lo=0 ac_mid=0
    2132   while :; do
    2133     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2134 /* end confdefs.h.  */
    2135 $4
    2136 int
    2137 main ()
    2138 {
    2139 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
    2140 test_array [0] = 0;
    2141 return test_array [0];
    2142 
    2143   ;
    2144   return 0;
    2145 }
    2146 _ACEOF
    2147 if ac_fn_cxx_try_compile "$LINENO"; then :
    2148   ac_hi=$ac_mid; break
    2149 else
    2150   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
    2151                         if test $ac_lo -le $ac_mid; then
    2152                           ac_lo= ac_hi=
    2153                           break
    2154                         fi
    2155                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
    2156 fi
    2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2158   done
    2159 else
    2160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2161 /* end confdefs.h.  */
    2162 $4
    2163 int
    2164 main ()
    2165 {
    2166 static int test_array [1 - 2 * !(($2) < 0)];
    2167 test_array [0] = 0;
    2168 return test_array [0];
    2169 
    2170   ;
    2171   return 0;
    2172 }
    2173 _ACEOF
    2174 if ac_fn_cxx_try_compile "$LINENO"; then :
    2175   ac_hi=-1 ac_mid=-1
    2176   while :; do
    2177     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2178 /* end confdefs.h.  */
    2179 $4
    2180 int
    2181 main ()
    2182 {
    2183 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
    2184 test_array [0] = 0;
    2185 return test_array [0];
    2186 
    2187   ;
    2188   return 0;
    2189 }
    2190 _ACEOF
    2191 if ac_fn_cxx_try_compile "$LINENO"; then :
    2192   ac_lo=$ac_mid; break
    2193 else
    2194   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
    2195                         if test $ac_mid -le $ac_hi; then
    2196                           ac_lo= ac_hi=
    2197                           break
    2198                         fi
    2199                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
    2200 fi
    2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2202   done
    2203 else
    2204   ac_lo= ac_hi=
    2205 fi
    2206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2207 fi
    2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2209 # Binary search between lo and hi bounds.
    2210 while test "x$ac_lo" != "x$ac_hi"; do
    2211   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
    2212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2213 /* end confdefs.h.  */
    2214 $4
    2215 int
    2216 main ()
    2217 {
    2218 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
    2219 test_array [0] = 0;
    2220 return test_array [0];
    2221 
    2222   ;
    2223   return 0;
    2224 }
    2225 _ACEOF
    2226 if ac_fn_cxx_try_compile "$LINENO"; then :
    2227   ac_hi=$ac_mid
    2228 else
    2229   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
    2230 fi
    2231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    2232 done
    2233 case $ac_lo in #((
    2234 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
    2235 '') ac_retval=1 ;;
    2236 esac
    2237   else
    2238     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    2239 /* end confdefs.h.  */
    2240 $4
    2241 static long int longval () { return $2; }
    2242 static unsigned long int ulongval () { return $2; }
    2243 #include <stdio.h>
    2244 #include <stdlib.h>
    2245 int
    2246 main ()
    2247 {
    2248 
    2249   FILE *f = fopen ("conftest.val", "w");
    2250   if (! f)
    2251     return 1;
    2252   if (($2) < 0)
    2253     {
    2254       long int i = longval ();
    2255       if (i != ($2))
    2256         return 1;
    2257       fprintf (f, "%ld", i);
    2258     }
    2259   else
    2260     {
    2261       unsigned long int i = ulongval ();
    2262       if (i != ($2))
    2263         return 1;
    2264       fprintf (f, "%lu", i);
    2265     }
    2266   /* Do not output a trailing newline, as this causes \r\n confusion
    2267      on some platforms.  */
    2268   return ferror (f) || fclose (f) != 0;
    2269 
    2270   ;
    2271   return 0;
    2272 }
    2273 _ACEOF
    2274 if ac_fn_cxx_try_run "$LINENO"; then :
    2275   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
    2276 else
    2277   ac_retval=1
    2278 fi
    2279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
    2280   conftest.$ac_objext conftest.beam conftest.$ac_ext
    2281 rm -f conftest.val
    2282 
    2283   fi
    2284   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    2285   as_fn_set_status $ac_retval
    2286 
    2287 } # ac_fn_cxx_compute_int
    22882342cat >config.log <<_ACEOF
    22892343This file contains any messages produced by compilers while
     
    26672721
    26682722
    2669 
    2670 RAPPTURE_MAJOR_VERSION=1
    2671 RAPPTURE_MINOR_VERSION=4
    2672 RAPPTURE_RELEASE_SERIAL=0
     2723ac_config_headers="$ac_config_headers lib/rappture/config.h"
     2724
     2725
     2726WITH_R=yes
     2727WITH_JAVA=yes
     2728WITH_MATLAB=yes
     2729WITH_MKOCTFILE2=yes
     2730WITH_MKOCTFILE3=yes
     2731WITH_OCTAVE=yes
     2732WITH_PERL=yes
     2733WITH_PYTHON=yes
     2734WITH_RUBY=yes
     2735WITH_RUBY_SITELIBDIR=yes
     2736WITH_TCL=yes
     2737
     2738
     2739# Check whether --with-R was given.
     2740if test "${with_R+set}" = set; then :
     2741  withval=$with_R; WITH_R=${with_val}
     2742else
     2743  WITH_R=yes
     2744fi
     2745
     2746
     2747
     2748# Check whether --with-java was given.
     2749if test "${with_java+set}" = set; then :
     2750  withval=$with_java; WITH_JAVA=${with_val}
     2751else
     2752  WITH_JAVA=yes
     2753fi
     2754
     2755
     2756
     2757# Check whether --with-matlab was given.
     2758if test "${with_matlab+set}" = set; then :
     2759  withval=$with_matlab; WITH_MATLAB=${with_val}
     2760else
     2761  WITH_MATLAB=yes
     2762fi
     2763
     2764
     2765
     2766# Check whether --with-mkoctfile2 was given.
     2767if test "${with_mkoctfile2+set}" = set; then :
     2768  withval=$with_mkoctfile2; WITH_MKOCTFILE2=${with_val}
     2769else
     2770  WITH_MKOCTFILE2=no
     2771fi
     2772
     2773
     2774
     2775# Check whether --with-mkoctfile3 was given.
     2776if test "${with_mkoctfile3+set}" = set; then :
     2777  withval=$with_mkoctfile3; WITH_MKOCTFILE3=${with_val}
     2778else
     2779  WITH_MKOCTFILE3=no
     2780fi
     2781
     2782
     2783
     2784# Check whether --with-octave was given.
     2785if test "${with_octave+set}" = set; then :
     2786  withval=$with_octave; WITH_OCTAVE=${with_val}
     2787else
     2788  with_octave=yes
     2789fi
     2790
     2791
     2792
     2793# Check whether --with-perl was given.
     2794if test "${with_perl+set}" = set; then :
     2795  withval=$with_perl; WITH_PERL=${with_val}
     2796else
     2797  WITH_PERL=yes
     2798fi
     2799
     2800
     2801
     2802# Check whether --with-python was given.
     2803if test "${with_python+set}" = set; then :
     2804  withval=$with_python; WITH_PYTHON=${with_val}
     2805else
     2806  WITH_PYTHON=yes
     2807fi
     2808
     2809
     2810
     2811# Check whether --with-ruby was given.
     2812if test "${with_ruby+set}" = set; then :
     2813  withval=$with_ruby; WITH_RUBY=${with_val}
     2814else
     2815  WITH_RUBY=yes
     2816fi
     2817
     2818
     2819
     2820# Check whether --with-ruby_sitelibdir was given.
     2821if test "${with_ruby_sitelibdir+set}" = set; then :
     2822  withval=$with_ruby_sitelibdir; WITH_RUBY_SITELIBDIR=${with_val}
     2823else
     2824  WITH_RUBY_SITELIBDIR=NONE
     2825fi
     2826
     2827
     2828
     2829# Check whether --with-tcl was given.
     2830if test "${with_tcl+set}" = set; then :
     2831  withval=$with_tcl; WITH_TCL=${with_val}
     2832else
     2833  WITH_TCL=yes
     2834fi
     2835
     2836
     2837
     2838# Check whether --with-install was given.
     2839if test "${with_install+set}" = set; then :
     2840  withval=$with_install; WITH_INSTALL=${withval}
     2841else
     2842  WITH_INSTALL=yes
     2843fi
     2844
     2845
     2846
     2847# Check whether --with-vtk was given.
     2848if test "${with_vtk+set}" = set; then :
     2849  withval=$with_vtk; WITH_VTK=${withval}
     2850else
     2851  WITH_VTK=no
     2852fi
     2853
     2854
     2855# Check whether --enable-vtkdicom was given.
     2856if test "${enable_vtkdicom+set}" = set; then :
     2857  enableval=$enable_vtkdicom;
     2858else
     2859  enable_vtkdicom=no
     2860fi
     2861
    26732862
    26742863#------------------------------------------------------------------------
     
    27762965test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    27772966
    2778 
    27792967if test -n "$ac_tool_prefix"; then
    27802968  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
     
    49455133
    49465134
    4947 
    4948 # Check whether --with-install was given.
    4949 if test "${with_install+set}" = set; then :
    4950   withval=$with_install;
    4951 else
    4952   with_install=yes
    4953 fi
    4954 
    4955 
    4956 if test "$with_install" != "yes"; then
    4957     INSTALL_PREFIX=$with_install
    4958 else
    4959     INSTALL_PREFIX=$prefix
    4960 fi
    4961 
    4962 if test "${libdir}" != "${prefix}/lib"; then
    4963     LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}"
    4964 else
    4965     LIB_SEARCH_DIRS="-L${libdir}"
    4966 fi
    4967 
    4968 
    4969 # Check whether --with-statsdir was given.
    4970 if test "${with_statsdir+set}" = set; then :
    4971   withval=$with_statsdir; STATSDIR=$withval
    4972 else
    4973   STATSDIR="/var/tmp/visservers"
    4974 fi
    4975 
    4976 
    4977 HAVE_VTK=""
    4978 
    4979 # Check whether --with-statsdir was given.
    4980 if test "${with_statsdir+set}" = set; then :
    4981   withval=$with_statsdir; HAVE_VTK=$withval
    4982 else
    4983   HAVE_VTK=""
    4984 fi
    4985 
    4986 
    4987 for ac_func in sysinfo
    4988 do :
    4989   ac_fn_cxx_check_func "$LINENO" "sysinfo" "ac_cv_func_sysinfo"
    4990 if test "x$ac_cv_func_sysinfo" = xyes; then :
    4991   cat >>confdefs.h <<_ACEOF
    4992 #define HAVE_SYSINFO 1
    4993 _ACEOF
    4994 
    4995 fi
    4996 done
    4997 
    4998 for ac_func in gettimeofday
    4999 do :
    5000   ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
    5001 if test "x$ac_cv_func_gettimeofday" = xyes; then :
    5002   cat >>confdefs.h <<_ACEOF
    5003 #define HAVE_GETTIMEOFDAY 1
    5004 _ACEOF
    5005 
    5006 fi
    5007 done
    5008 
    5009 ac_fn_cxx_check_func "$LINENO" "localtime" "ac_cv_func_localtime"
    5010 if test "x$ac_cv_func_localtime" = xyes; then :
    5011 
    5012 else
    5013   as_fn_error $? "oops! no localtime ?!?" "$LINENO" 5
    5014 fi
    5015 
    5016 ac_fn_cxx_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
    5017 if test "x$ac_cv_func_getenv" = xyes; then :
    5018 
    5019 else
    5020   as_fn_error $? "oops! no getenv ?!?" "$LINENO" 5
    5021 fi
    5022 
     5135# -----------------------------------------------------------------------
     5136#
     5137# Compiler characteristics:
     5138#   Check for existence of types of size_t and pid_t
     5139#
     5140# -----------------------------------------------------------------------
    50235141
    50245142# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     
    50385156done
    50395157
    5040 
    5041 for ac_header in sys/sysinfo.h
    5042 do :
    5043   ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default"
    5044 if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then :
    5045   cat >>confdefs.h <<_ACEOF
    5046 #define HAVE_SYS_SYSINFO_H 1
    5047 _ACEOF
    5048 
    5049 fi
    5050 
    5051 done
    5052 
    5053 
    5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clrtoeol in -lncurses" >&5
    5055 $as_echo_n "checking for clrtoeol in -lncurses... " >&6; }
    5056 if ${ac_cv_lib_ncurses_clrtoeol+:} false; then :
    5057   $as_echo_n "(cached) " >&6
    5058 else
    5059   ac_check_lib_save_LIBS=$LIBS
    5060 LIBS="-lncurses  $LIBS"
    5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    5062 /* end confdefs.h.  */
    5063 
    5064 /* Override any GCC internal prototype to avoid an error.
    5065    Use char because int might match the return type of a GCC
    5066    builtin and then its argument prototype would still apply.  */
    5067 #ifdef __cplusplus
    5068 extern "C"
    5069 #endif
    5070 char clrtoeol ();
    5071 int
    5072 main ()
    5073 {
    5074 return clrtoeol ();
    5075   ;
    5076   return 0;
    5077 }
    5078 _ACEOF
    5079 if ac_fn_cxx_try_link "$LINENO"; then :
    5080   ac_cv_lib_ncurses_clrtoeol=yes
    5081 else
    5082   ac_cv_lib_ncurses_clrtoeol=no
    5083 fi
    5084 rm -f core conftest.err conftest.$ac_objext \
    5085     conftest$ac_exeext conftest.$ac_ext
    5086 LIBS=$ac_check_lib_save_LIBS
    5087 fi
    5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_clrtoeol" >&5
    5089 $as_echo "$ac_cv_lib_ncurses_clrtoeol" >&6; }
    5090 if test "x$ac_cv_lib_ncurses_clrtoeol" = xyes; then :
    5091   cat >>confdefs.h <<_ACEOF
    5092 #define HAVE_LIBNCURSES 1
    5093 _ACEOF
    5094 
    5095   LIBS="-lncurses $LIBS"
    5096 
    5097 else
    5098   as_fn_error $? "ncurses library missing?" "$LINENO" 5
    5099 fi
    5100 
    5101 for ac_header in ncurses.h
    5102 do :
    5103   ac_fn_cxx_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
    5104 if test "x$ac_cv_header_ncurses_h" = xyes; then :
    5105   cat >>confdefs.h <<_ACEOF
    5106 #define HAVE_NCURSES_H 1
    5107 _ACEOF
    5108 
    5109 else
    5110   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ncurses headers missing ?" >&5
    5111 $as_echo "$as_me: WARNING: ncurses headers missing ?" >&2;}
    5112 fi
    5113 
    5114 done
    5115 
    5116 
    5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5
    5118 $as_echo_n "checking for main in -lstdc++... " >&6; }
    5119 if ${ac_cv_lib_stdcpp_main+:} false; then :
    5120   $as_echo_n "(cached) " >&6
    5121 else
    5122   ac_check_lib_save_LIBS=$LIBS
    5123 LIBS="-lstdc++  $LIBS"
    5124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    5125 /* end confdefs.h.  */
    5126 
    5127 
    5128 int
    5129 main ()
    5130 {
    5131 return main ();
    5132   ;
    5133   return 0;
    5134 }
    5135 _ACEOF
    5136 if ac_fn_cxx_try_link "$LINENO"; then :
    5137   ac_cv_lib_stdcpp_main=yes
    5138 else
    5139   ac_cv_lib_stdcpp_main=no
    5140 fi
    5141 rm -f core conftest.err conftest.$ac_objext \
    5142     conftest$ac_exeext conftest.$ac_ext
    5143 LIBS=$ac_check_lib_save_LIBS
    5144 fi
    5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5
    5146 $as_echo "$ac_cv_lib_stdcpp_main" >&6; }
    5147 if test "x$ac_cv_lib_stdcpp_main" = xyes; then :
    5148   cat >>confdefs.h <<_ACEOF
    5149 #define HAVE_LIBSTDC__ 1
    5150 _ACEOF
    5151 
    5152   LIBS="-lstdc++ $LIBS"
    5153 
    5154 else
    5155   as_fn_error $? "librappture requires libstdc++" "$LINENO" 5
    5156 fi
    5157 
    5158 for ac_header in algorithm
    5159 do :
    5160   ac_fn_cxx_check_header_mongrel "$LINENO" "algorithm" "ac_cv_header_algorithm" "$ac_includes_default"
    5161 if test "x$ac_cv_header_algorithm" = xyes; then :
    5162   cat >>confdefs.h <<_ACEOF
    5163 #define HAVE_ALGORITHM 1
    5164 _ACEOF
    5165 
    5166 else
    5167   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
    5168 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
    5169 fi
    5170 
    5171 done
    5172 
    5173 for ac_header in cctype
    5174 do :
    5175   ac_fn_cxx_check_header_mongrel "$LINENO" "cctype" "ac_cv_header_cctype" "$ac_includes_default"
    5176 if test "x$ac_cv_header_cctype" = xyes; then :
    5177   cat >>confdefs.h <<_ACEOF
    5178 #define HAVE_CCTYPE 1
    5179 _ACEOF
    5180 
    5181 else
    5182   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
    5183 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
    5184 fi
    5185 
    5186 done
    5187 
    5188 for ac_header in cfloat
    5189 do :
    5190   ac_fn_cxx_check_header_mongrel "$LINENO" "cfloat" "ac_cv_header_cfloat" "$ac_includes_default"
    5191 if test "x$ac_cv_header_cfloat" = xyes; then :
    5192   cat >>confdefs.h <<_ACEOF
    5193 #define HAVE_CFLOAT 1
    5194 _ACEOF
    5195 
    5196 else
    5197   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
    5198 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
    5199 fi
    5200 
    5201 done
    5202 
    5203 for ac_header in cmath
    5204 do :
    5205   ac_fn_cxx_check_header_mongrel "$LINENO" "cmath" "ac_cv_header_cmath" "$ac_includes_default"
    5206 if test "x$ac_cv_header_cmath" = xyes; then :
    5207   cat >>confdefs.h <<_ACEOF
    5208 #define HAVE_CMATH 1
    5209 _ACEOF
    5210 
    5211 else
    5212   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
    5213 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
    5214 fi
    5215 
    5216 done
    5217 
    5218 for ac_header in cstdio
    5219 do :
    5220   ac_fn_cxx_check_header_mongrel "$LINENO" "cstdio" "ac_cv_header_cstdio" "$ac_includes_default"
    5221 if test "x$ac_cv_header_cstdio" = xyes; then :
    5222   cat >>confdefs.h <<_ACEOF
    5223 #define HAVE_CSTDIO 1
    5224 _ACEOF
    5225 
    5226 else
    5227   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
    5228 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
    5229 fi
    5230 
    5231 done
    5232 
    5233 for ac_header in cstdlib
    5234 do :
    5235   ac_fn_cxx_check_header_mongrel "$LINENO" "cstdlib" "ac_cv_header_cstdlib" "$ac_includes_default"
    5236 if test "x$ac_cv_header_cstdlib" = xyes; then :
    5237   cat >>confdefs.h <<_ACEOF
    5238 #define HAVE_CSTDLIB 1
    5239 _ACEOF
    5240 
    5241 else
    5242   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
    5243 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
    5244 fi
    5245 
    5246 done
    5247 
    5248 for ac_header in cstring
    5249 do :
    5250   ac_fn_cxx_check_header_mongrel "$LINENO" "cstring" "ac_cv_header_cstring" "$ac_includes_default"
    5251 if test "x$ac_cv_header_cstring" = xyes; then :
    5252   cat >>confdefs.h <<_ACEOF
    5253 #define HAVE_CSTRING 1
    5254 _ACEOF
    5255 
    5256 else
    5257   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
    5258 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
    5259 fi
    5260 
    5261 done
    5262 
    5263 for ac_header in fstream
    5264 do :
    5265   ac_fn_cxx_check_header_mongrel "$LINENO" "fstream" "ac_cv_header_fstream" "$ac_includes_default"
    5266 if test "x$ac_cv_header_fstream" = xyes; then :
    5267   cat >>confdefs.h <<_ACEOF
    5268 #define HAVE_FSTREAM 1
    5269 _ACEOF
    5270 
    5271 else
    5272   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
    5273 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
    5274 fi
    5275 
    5276 done
    5277 
    5278 for ac_header in list
    5279 do :
    5280   ac_fn_cxx_check_header_mongrel "$LINENO" "list" "ac_cv_header_list" "$ac_includes_default"
    5281 if test "x$ac_cv_header_list" = xyes; then :
    5282   cat >>confdefs.h <<_ACEOF
    5283 #define HAVE_LIST 1
    5284 _ACEOF
    5285 
    5286 else
    5287   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
    5288 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
    5289 fi
    5290 
    5291 done
    5292 
    5293 for ac_header in iostream
    5294 do :
    5295   ac_fn_cxx_check_header_mongrel "$LINENO" "iostream" "ac_cv_header_iostream" "$ac_includes_default"
    5296 if test "x$ac_cv_header_iostream" = xyes; then :
    5297   cat >>confdefs.h <<_ACEOF
    5298 #define HAVE_IOSTREAM 1
    5299 _ACEOF
    5300 
    5301 else
    5302   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
    5303 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
    5304 fi
    5305 
    5306 done
    5307 
    5308 for ac_header in iterator
    5309 do :
    5310   ac_fn_cxx_check_header_mongrel "$LINENO" "iterator" "ac_cv_header_iterator" "$ac_includes_default"
    5311 if test "x$ac_cv_header_iterator" = xyes; then :
    5312   cat >>confdefs.h <<_ACEOF
    5313 #define HAVE_ITERATOR 1
    5314 _ACEOF
    5315 
    5316 else
    5317   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
    5318 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
    5319 fi
    5320 
    5321 done
    5322 
    5323 for ac_header in sstream
    5324 do :
    5325   ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default"
    5326 if test "x$ac_cv_header_sstream" = xyes; then :
    5327   cat >>confdefs.h <<_ACEOF
    5328 #define HAVE_SSTREAM 1
    5329 _ACEOF
    5330 
    5331 else
    5332   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
    5333 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
    5334 fi
    5335 
    5336 done
    5337 
    5338 for ac_header in stack
    5339 do :
    5340   ac_fn_cxx_check_header_mongrel "$LINENO" "stack" "ac_cv_header_stack" "$ac_includes_default"
    5341 if test "x$ac_cv_header_stack" = xyes; then :
    5342   cat >>confdefs.h <<_ACEOF
    5343 #define HAVE_STACK 1
    5344 _ACEOF
    5345 
    5346 else
    5347   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
    5348 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
    5349 fi
    5350 
    5351 done
    5352 
    5353 for ac_header in string
    5354 do :
    5355   ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"
    5356 if test "x$ac_cv_header_string" = xyes; then :
    5357   cat >>confdefs.h <<_ACEOF
    5358 #define HAVE_STRING 1
    5359 _ACEOF
    5360 
    5361 else
    5362   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
    5363 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
    5364 fi
    5365 
    5366 done
    5367 
    5368 for ac_header in vector
    5369 do :
    5370   ac_fn_cxx_check_header_mongrel "$LINENO" "vector" "ac_cv_header_vector" "$ac_includes_default"
    5371 if test "x$ac_cv_header_vector" = xyes; then :
    5372   cat >>confdefs.h <<_ACEOF
    5373 #define HAVE_VECTOR 1
    5374 _ACEOF
    5375 
    5376 else
    5377   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
    5378 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
    5379 fi
    5380 
    5381 done
    5382 
    5383 
    5384 for ac_header in assert.h
    5385 do :
    5386   ac_fn_cxx_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
    5387 if test "x$ac_cv_header_assert_h" = xyes; then :
    5388   cat >>confdefs.h <<_ACEOF
    5389 #define HAVE_ASSERT_H 1
    5390 _ACEOF
    5391 
    5392 else
    5393   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
    5394 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}
    5395 fi
    5396 
    5397 done
    5398 
    5399 for ac_header in ctype.h
    5400 do :
    5401   ac_fn_cxx_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
    5402 if test "x$ac_cv_header_ctype_h" = xyes; then :
    5403   cat >>confdefs.h <<_ACEOF
    5404 #define HAVE_CTYPE_H 1
    5405 _ACEOF
    5406 
    5407 else
    5408   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
    5409 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}
    5410 fi
    5411 
    5412 done
    5413 
    5414 for ac_header in errno.h
    5415 do :
    5416   ac_fn_cxx_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
    5417 if test "x$ac_cv_header_errno_h" = xyes; then :
    5418   cat >>confdefs.h <<_ACEOF
    5419 #define HAVE_ERRNO_H 1
    5420 _ACEOF
    5421 
    5422 else
    5423   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
    5424 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}
    5425 fi
    5426 
    5427 done
    5428 
    5429 for ac_header in limits.h
    5430 do :
    5431   ac_fn_cxx_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
    5432 if test "x$ac_cv_header_limits_h" = xyes; then :
    5433   cat >>confdefs.h <<_ACEOF
    5434 #define HAVE_LIMITS_H 1
    5435 _ACEOF
    5436 
    5437 else
    5438   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
    5439 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}
    5440 fi
    5441 
    5442 done
    5443 
    5444 for ac_header in string.h
    5445 do :
    5446   ac_fn_cxx_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
    5447 if test "x$ac_cv_header_string_h" = xyes; then :
    5448   cat >>confdefs.h <<_ACEOF
    5449 #define HAVE_STRING_H 1
    5450 _ACEOF
    5451 
    5452 else
    5453   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
    5454 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}
    5455 fi
    5456 
    5457 done
    5458 
    5459 for ac_header in stdlib.h
    5460 do :
    5461   ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
    5462 if test "x$ac_cv_header_stdlib_h" = xyes; then :
    5463   cat >>confdefs.h <<_ACEOF
    5464 #define HAVE_STDLIB_H 1
    5465 _ACEOF
    5466 
    5467 else
    5468   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
    5469 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}
    5470 fi
    5471 
    5472 done
    5473 
    5474 for ac_header in stddef.h
    5475 do :
    5476   ac_fn_cxx_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
    5477 if test "x$ac_cv_header_stddef_h" = xyes; then :
    5478   cat >>confdefs.h <<_ACEOF
    5479 #define HAVE_STDDEF_H 1
    5480 _ACEOF
    5481 
    5482 else
    5483   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
    5484 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}
    5485 fi
    5486 
    5487 done
    5488 
    5489 for ac_header in float.h
    5490 do :
    5491   ac_fn_cxx_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
    5492 if test "x$ac_cv_header_float_h" = xyes; then :
    5493   cat >>confdefs.h <<_ACEOF
    5494 #define HAVE_FLOAT_H 1
    5495 _ACEOF
    5496 
    5497 else
    5498   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
    5499 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}
    5500 fi
    5501 
    5502 done
    5503 
    5504 for ac_header in math.h
    5505 do :
    5506   ac_fn_cxx_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
    5507 if test "x$ac_cv_header_math_h" = xyes; then :
    5508   cat >>confdefs.h <<_ACEOF
    5509 #define HAVE_MATH_H 1
    5510 _ACEOF
    5511 
    5512 else
    5513   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
    5514 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}
    5515 fi
    5516 
    5517 done
    5518 
    5519 for ac_header in malloc.h
    5520 do :
    5521   ac_fn_cxx_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
    5522 if test "x$ac_cv_header_malloc_h" = xyes; then :
    5523   cat >>confdefs.h <<_ACEOF
    5524 #define HAVE_MALLOC_H 1
    5525 _ACEOF
    5526 
    5527 else
    5528   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
    5529 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}
    5530 fi
    5531 
    5532 done
    5533 
    5534 for ac_header in memory.h
    5535 do :
    5536   ac_fn_cxx_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
    5537 if test "x$ac_cv_header_memory_h" = xyes; then :
    5538   cat >>confdefs.h <<_ACEOF
    5539 #define HAVE_MEMORY_H 1
    5540 _ACEOF
    5541 
    5542 else
    5543   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
    5544 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}
    5545 fi
    5546 
    5547 done
    5548 
    5549 for ac_header in unistd.h
    5550 do :
    5551   ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
    5552 if test "x$ac_cv_header_unistd_h" = xyes; then :
    5553   cat >>confdefs.h <<_ACEOF
    5554 #define HAVE_UNISTD_H 1
    5555 _ACEOF
    5556 
    5557 else
    5558   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
    5559 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}
    5560 fi
    5561 
    5562 done
    5563 
    5564 
    5565 for ac_header in inttypes.h
    5566 do :
    5567   ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
    5568 if test "x$ac_cv_header_inttypes_h" = xyes; then :
    5569   cat >>confdefs.h <<_ACEOF
    5570 #define HAVE_INTTYPES_H 1
    5571 _ACEOF
    5572 
    5573 else
    5574   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
    5575 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}
    5576 fi
    5577 
    5578 done
    5579 
    5580 if test "${ac_cv_header_inttypes_h}" = "yes" ; then
    5581   HAVE_INTTYPES_H=1
    5582 else
    5583   HAVE_INTTYPES_H=0
    5584 fi
    5585 
    5586 
    5587 SVN_VERSION=`svnversion $srcdir`
    5588 
    5589 make_command=""
    5590 for m in "$MAKE" make gmake gnumake ; do
    5591   if test "x${m}" != "x" ; then
    5592     if  ( sh -c "$m --version" 2>/dev/null | grep GNU >/dev/null ) ; then
    5593       make_command=$m; break;
    5594     fi
    5595   fi
    5596 done
    5597 if test "x${make_command}" = "x" ; then
    5598   as_fn_error $? "Requires GNU make. You can specify a version with \$MAKE" "$LINENO" 5
    5599 fi
    5600 
    5601 # Check whether --enable-lang was given.
    5602 if test "${enable_lang+set}" = set; then :
    5603   enableval=$enable_lang;
    5604 else
    5605   enable_lang=yes
    5606 fi
    5607 
    5608 
    5609 ENABLE_LANG=
    5610 if test "$enable_lang" != "no" ; then
    5611     ENABLE_LANG="yes"
    5612 fi
    5613 
    5614 # Check whether --enable-gui was given.
    5615 if test "${enable_gui+set}" = set; then :
    5616   enableval=$enable_gui;
    5617 else
    5618   enable_gui=yes
    5619 fi
    5620 
    5621 
    5622 ENABLE_GUI=
    5623 if test "$enable_gui" != "no" ; then
    5624     ENABLE_GUI="yes"
    5625 fi
    5626 
    5627 TCL_VERSION="8.5"
    5628 TK_VERSION="8.5"
    5629 
    5630 for dir in \
    5631  ${exec_prefix} \
    5632  ${exec_prefix}/lib ; do
    5633   tclconfig="${dir}/tclConfig.sh"
    5634   if test -f "$tclconfig" ; then
    5635     . $tclconfig
    5636     break
    5637   fi
    5638 done
    5639 
    5640 
    5641 # Check whether --with-ffmpeg was given.
    5642 if test "${with_ffmpeg+set}" = set; then :
    5643   withval=$with_ffmpeg;
    5644 else
    5645   with_ffmpeg=yes
    5646 fi
    5647 
    5648 
    5649 TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
    5650 
    5651 
    5652 # Check whether --with-vtk was given.
    5653 if test "${with_vtk+set}" = set; then :
    5654   withval=$with_vtk;
    5655 else
    5656   with_vtk=yes
    5657 fi
    5658 
    5659 
    5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vtk" >&5
    5661 $as_echo_n "checking for vtk... " >&6; }
    5662 VTK_VERSION=6.1
    5663 VTK_TCL_DIR=""
    5664 
    5665 ENABLE_VTK=
    5666 if test "$with_vtk" != "no" ; then
    5667   if test "$with_vtk" != "yes" ; then
    5668     VTK_VERSION=$with_vtk
    5669   fi
    5670   if test "x$with_vtk" != "x" ; then
    5671     ENABLE_VTK=yes
    5672     for path in \
    5673      $libdir/tcltk \
    5674      $exec_prefix/lib/tcltk \
    5675      $prefix/lib/tcltk \
    5676      $libdir \
    5677      $prefix/lib \
    5678      $exec_prefix/lib \
    5679      /usr/lib
    5680     do
    5681       if test -d "$path/vtk-$VTK_VERSION" ; then
    5682         VTK_TCL_DIR="$path/vtk-$VTK_VERSION"
    5683       fi
    5684       if test "x${VTK_TCL_DIR}" != "x" ; then
    5685         break
    5686       fi
    5687     done
    5688   fi
    5689 else
    5690   if test "${ENABLE_GUI}" = "yes" ; then
    5691     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: VTK missing: Rappture GUI requires VTK for some features" >&5
    5692 $as_echo "$as_me: WARNING: VTK missing: Rappture GUI requires VTK for some features" >&2;}
    5693   fi
    5694 fi
    5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTK_TCL_DIR" >&5
    5696 $as_echo "$VTK_TCL_DIR" >&6; }
    5697 
    5698 # Check whether --enable-vtkdicom was given.
    5699 if test "${enable_vtkdicom+set}" = set; then :
    5700   enableval=$enable_vtkdicom;
    5701 else
    5702   enable_vtkdicom=no
    5703 fi
    5704 
    5705 
    5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vtkDICOM" >&5
    5707 $as_echo_n "checking for vtkDICOM... " >&6; }
    5708 ENABLE_VTK_DICOM=
    5709 if test "$enable_vtkdicom" != "no" ; then
    5710     ENABLE_VTK_DICOM="yes"
    5711 fi
    5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtkdicom" >&5
    5713 $as_echo "$enable_vtkdicom" >&6; }
    5714 
    5715 RP_BASE=`pwd`
    5716 
    5717 #--------------------------------------------------------------------
    5718 # This macro figures out what flags to use with the compiler/linker
    5719 # when building shared/static debug/optimized objects.  This information
    5720 # is all taken from the tclConfig.sh file.
    5721 #--------------------------------------------------------------------
    5722 
    5723 if test -f "${exec_prefix}/lib/tclConfig.sh" ; then
    5724   . ${exec_prefix}/lib/tclConfig.sh
    5725 fi
    5726 if test -f "${exec_prefix}/lib/tkConfig.sh" ; then
    5727   . ${exec_prefix}/lib/tkConfig.sh
    5728 fi
    5729 
    5730 # -----------------------------------------------------------------------
    5731 #
    5732 # Compiler characteristics:
    5733 #   Check for existence of types of size_t and pid_t
    5734 #
    5735 # -----------------------------------------------------------------------
    57365158
    57375159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
     
    60985520
    60995521
     5522for ac_func in sysinfo
     5523do :
     5524  ac_fn_cxx_check_func "$LINENO" "sysinfo" "ac_cv_func_sysinfo"
     5525if test "x$ac_cv_func_sysinfo" = xyes; then :
     5526  cat >>confdefs.h <<_ACEOF
     5527#define HAVE_SYSINFO 1
     5528_ACEOF
     5529
     5530fi
     5531done
     5532
     5533for ac_func in gettimeofday
     5534do :
     5535  ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
     5536if test "x$ac_cv_func_gettimeofday" = xyes; then :
     5537  cat >>confdefs.h <<_ACEOF
     5538#define HAVE_GETTIMEOFDAY 1
     5539_ACEOF
     5540
     5541fi
     5542done
     5543
     5544ac_fn_cxx_check_func "$LINENO" "localtime" "ac_cv_func_localtime"
     5545if test "x$ac_cv_func_localtime" = xyes; then :
     5546
     5547else
     5548  as_fn_error $? "oops! no localtime ?!?" "$LINENO" 5
     5549fi
     5550
     5551ac_fn_cxx_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
     5552if test "x$ac_cv_func_getenv" = xyes; then :
     5553
     5554else
     5555  as_fn_error $? "oops! no getenv ?!?" "$LINENO" 5
     5556fi
     5557
     5558
     5559for ac_header in sys/sysinfo.h
     5560do :
     5561  ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default"
     5562if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then :
     5563  cat >>confdefs.h <<_ACEOF
     5564#define HAVE_SYS_SYSINFO_H 1
     5565_ACEOF
     5566
     5567fi
     5568
     5569done
     5570
     5571
     5572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clrtoeol in -lncurses" >&5
     5573$as_echo_n "checking for clrtoeol in -lncurses... " >&6; }
     5574if ${ac_cv_lib_ncurses_clrtoeol+:} false; then :
     5575  $as_echo_n "(cached) " >&6
     5576else
     5577  ac_check_lib_save_LIBS=$LIBS
     5578LIBS="-lncurses  $LIBS"
     5579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5580/* end confdefs.h.  */
     5581
     5582/* Override any GCC internal prototype to avoid an error.
     5583   Use char because int might match the return type of a GCC
     5584   builtin and then its argument prototype would still apply.  */
     5585#ifdef __cplusplus
     5586extern "C"
     5587#endif
     5588char clrtoeol ();
     5589int
     5590main ()
     5591{
     5592return clrtoeol ();
     5593  ;
     5594  return 0;
     5595}
     5596_ACEOF
     5597if ac_fn_cxx_try_link "$LINENO"; then :
     5598  ac_cv_lib_ncurses_clrtoeol=yes
     5599else
     5600  ac_cv_lib_ncurses_clrtoeol=no
     5601fi
     5602rm -f core conftest.err conftest.$ac_objext \
     5603    conftest$ac_exeext conftest.$ac_ext
     5604LIBS=$ac_check_lib_save_LIBS
     5605fi
     5606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_clrtoeol" >&5
     5607$as_echo "$ac_cv_lib_ncurses_clrtoeol" >&6; }
     5608if test "x$ac_cv_lib_ncurses_clrtoeol" = xyes; then :
     5609  cat >>confdefs.h <<_ACEOF
     5610#define HAVE_LIBNCURSES 1
     5611_ACEOF
     5612
     5613  LIBS="-lncurses $LIBS"
     5614
     5615else
     5616  as_fn_error $? "ncurses library missing?" "$LINENO" 5
     5617fi
     5618
     5619for ac_header in ncurses.h
     5620do :
     5621  ac_fn_cxx_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
     5622if test "x$ac_cv_header_ncurses_h" = xyes; then :
     5623  cat >>confdefs.h <<_ACEOF
     5624#define HAVE_NCURSES_H 1
     5625_ACEOF
     5626
     5627else
     5628  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ncurses headers missing ?" >&5
     5629$as_echo "$as_me: WARNING: ncurses headers missing ?" >&2;}
     5630fi
     5631
     5632done
     5633
     5634
     5635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5
     5636$as_echo_n "checking for main in -lstdc++... " >&6; }
     5637if ${ac_cv_lib_stdcpp_main+:} false; then :
     5638  $as_echo_n "(cached) " >&6
     5639else
     5640  ac_check_lib_save_LIBS=$LIBS
     5641LIBS="-lstdc++  $LIBS"
     5642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5643/* end confdefs.h.  */
     5644
     5645
     5646int
     5647main ()
     5648{
     5649return main ();
     5650  ;
     5651  return 0;
     5652}
     5653_ACEOF
     5654if ac_fn_cxx_try_link "$LINENO"; then :
     5655  ac_cv_lib_stdcpp_main=yes
     5656else
     5657  ac_cv_lib_stdcpp_main=no
     5658fi
     5659rm -f core conftest.err conftest.$ac_objext \
     5660    conftest$ac_exeext conftest.$ac_ext
     5661LIBS=$ac_check_lib_save_LIBS
     5662fi
     5663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5
     5664$as_echo "$ac_cv_lib_stdcpp_main" >&6; }
     5665if test "x$ac_cv_lib_stdcpp_main" = xyes; then :
     5666  cat >>confdefs.h <<_ACEOF
     5667#define HAVE_LIBSTDC__ 1
     5668_ACEOF
     5669
     5670  LIBS="-lstdc++ $LIBS"
     5671
     5672else
     5673  as_fn_error $? "librappture requires libstdc++" "$LINENO" 5
     5674fi
     5675
     5676for ac_header in algorithm
     5677do :
     5678  ac_fn_cxx_check_header_mongrel "$LINENO" "algorithm" "ac_cv_header_algorithm" "$ac_includes_default"
     5679if test "x$ac_cv_header_algorithm" = xyes; then :
     5680  cat >>confdefs.h <<_ACEOF
     5681#define HAVE_ALGORITHM 1
     5682_ACEOF
     5683
     5684else
     5685  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5686$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5687fi
     5688
     5689done
     5690
     5691for ac_header in cctype
     5692do :
     5693  ac_fn_cxx_check_header_mongrel "$LINENO" "cctype" "ac_cv_header_cctype" "$ac_includes_default"
     5694if test "x$ac_cv_header_cctype" = xyes; then :
     5695  cat >>confdefs.h <<_ACEOF
     5696#define HAVE_CCTYPE 1
     5697_ACEOF
     5698
     5699else
     5700  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5701$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5702fi
     5703
     5704done
     5705
     5706for ac_header in cfloat
     5707do :
     5708  ac_fn_cxx_check_header_mongrel "$LINENO" "cfloat" "ac_cv_header_cfloat" "$ac_includes_default"
     5709if test "x$ac_cv_header_cfloat" = xyes; then :
     5710  cat >>confdefs.h <<_ACEOF
     5711#define HAVE_CFLOAT 1
     5712_ACEOF
     5713
     5714else
     5715  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5716$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5717fi
     5718
     5719done
     5720
     5721for ac_header in cmath
     5722do :
     5723  ac_fn_cxx_check_header_mongrel "$LINENO" "cmath" "ac_cv_header_cmath" "$ac_includes_default"
     5724if test "x$ac_cv_header_cmath" = xyes; then :
     5725  cat >>confdefs.h <<_ACEOF
     5726#define HAVE_CMATH 1
     5727_ACEOF
     5728
     5729else
     5730  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5731$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5732fi
     5733
     5734done
     5735
     5736for ac_header in cstdio
     5737do :
     5738  ac_fn_cxx_check_header_mongrel "$LINENO" "cstdio" "ac_cv_header_cstdio" "$ac_includes_default"
     5739if test "x$ac_cv_header_cstdio" = xyes; then :
     5740  cat >>confdefs.h <<_ACEOF
     5741#define HAVE_CSTDIO 1
     5742_ACEOF
     5743
     5744else
     5745  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5746$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5747fi
     5748
     5749done
     5750
     5751for ac_header in cstdlib
     5752do :
     5753  ac_fn_cxx_check_header_mongrel "$LINENO" "cstdlib" "ac_cv_header_cstdlib" "$ac_includes_default"
     5754if test "x$ac_cv_header_cstdlib" = xyes; then :
     5755  cat >>confdefs.h <<_ACEOF
     5756#define HAVE_CSTDLIB 1
     5757_ACEOF
     5758
     5759else
     5760  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5761$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5762fi
     5763
     5764done
     5765
     5766for ac_header in cstring
     5767do :
     5768  ac_fn_cxx_check_header_mongrel "$LINENO" "cstring" "ac_cv_header_cstring" "$ac_includes_default"
     5769if test "x$ac_cv_header_cstring" = xyes; then :
     5770  cat >>confdefs.h <<_ACEOF
     5771#define HAVE_CSTRING 1
     5772_ACEOF
     5773
     5774else
     5775  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5776$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5777fi
     5778
     5779done
     5780
     5781for ac_header in fstream
     5782do :
     5783  ac_fn_cxx_check_header_mongrel "$LINENO" "fstream" "ac_cv_header_fstream" "$ac_includes_default"
     5784if test "x$ac_cv_header_fstream" = xyes; then :
     5785  cat >>confdefs.h <<_ACEOF
     5786#define HAVE_FSTREAM 1
     5787_ACEOF
     5788
     5789else
     5790  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5791$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5792fi
     5793
     5794done
     5795
     5796for ac_header in list
     5797do :
     5798  ac_fn_cxx_check_header_mongrel "$LINENO" "list" "ac_cv_header_list" "$ac_includes_default"
     5799if test "x$ac_cv_header_list" = xyes; then :
     5800  cat >>confdefs.h <<_ACEOF
     5801#define HAVE_LIST 1
     5802_ACEOF
     5803
     5804else
     5805  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5806$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5807fi
     5808
     5809done
     5810
     5811for ac_header in iostream
     5812do :
     5813  ac_fn_cxx_check_header_mongrel "$LINENO" "iostream" "ac_cv_header_iostream" "$ac_includes_default"
     5814if test "x$ac_cv_header_iostream" = xyes; then :
     5815  cat >>confdefs.h <<_ACEOF
     5816#define HAVE_IOSTREAM 1
     5817_ACEOF
     5818
     5819else
     5820  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5821$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5822fi
     5823
     5824done
     5825
     5826for ac_header in iterator
     5827do :
     5828  ac_fn_cxx_check_header_mongrel "$LINENO" "iterator" "ac_cv_header_iterator" "$ac_includes_default"
     5829if test "x$ac_cv_header_iterator" = xyes; then :
     5830  cat >>confdefs.h <<_ACEOF
     5831#define HAVE_ITERATOR 1
     5832_ACEOF
     5833
     5834else
     5835  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5836$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5837fi
     5838
     5839done
     5840
     5841for ac_header in sstream
     5842do :
     5843  ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default"
     5844if test "x$ac_cv_header_sstream" = xyes; then :
     5845  cat >>confdefs.h <<_ACEOF
     5846#define HAVE_SSTREAM 1
     5847_ACEOF
     5848
     5849else
     5850  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5851$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5852fi
     5853
     5854done
     5855
     5856for ac_header in stack
     5857do :
     5858  ac_fn_cxx_check_header_mongrel "$LINENO" "stack" "ac_cv_header_stack" "$ac_includes_default"
     5859if test "x$ac_cv_header_stack" = xyes; then :
     5860  cat >>confdefs.h <<_ACEOF
     5861#define HAVE_STACK 1
     5862_ACEOF
     5863
     5864else
     5865  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5866$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5867fi
     5868
     5869done
     5870
     5871for ac_header in string
     5872do :
     5873  ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"
     5874if test "x$ac_cv_header_string" = xyes; then :
     5875  cat >>confdefs.h <<_ACEOF
     5876#define HAVE_STRING 1
     5877_ACEOF
     5878
     5879else
     5880  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5881$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5882fi
     5883
     5884done
     5885
     5886for ac_header in vector
     5887do :
     5888  ac_fn_cxx_check_header_mongrel "$LINENO" "vector" "ac_cv_header_vector" "$ac_includes_default"
     5889if test "x$ac_cv_header_vector" = xyes; then :
     5890  cat >>confdefs.h <<_ACEOF
     5891#define HAVE_VECTOR 1
     5892_ACEOF
     5893
     5894else
     5895  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
     5896$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
     5897fi
     5898
     5899done
     5900
     5901
     5902for ac_header in assert.h
     5903do :
     5904  ac_fn_cxx_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
     5905if test "x$ac_cv_header_assert_h" = xyes; then :
     5906  cat >>confdefs.h <<_ACEOF
     5907#define HAVE_ASSERT_H 1
     5908_ACEOF
     5909
     5910else
     5911  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
     5912$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
     5913fi
     5914
     5915done
     5916
     5917for ac_header in ctype.h
     5918do :
     5919  ac_fn_cxx_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
     5920if test "x$ac_cv_header_ctype_h" = xyes; then :
     5921  cat >>confdefs.h <<_ACEOF
     5922#define HAVE_CTYPE_H 1
     5923_ACEOF
     5924
     5925else
     5926  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
     5927$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
     5928fi
     5929
     5930done
     5931
     5932for ac_header in errno.h
     5933do :
     5934  ac_fn_cxx_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
     5935if test "x$ac_cv_header_errno_h" = xyes; then :
     5936  cat >>confdefs.h <<_ACEOF
     5937#define HAVE_ERRNO_H 1
     5938_ACEOF
     5939
     5940else
     5941  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
     5942$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
     5943fi
     5944
     5945done
     5946
     5947for ac_header in limits.h
     5948do :
     5949  ac_fn_cxx_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
     5950if test "x$ac_cv_header_limits_h" = xyes; then :
     5951  cat >>confdefs.h <<_ACEOF
     5952#define HAVE_LIMITS_H 1
     5953_ACEOF
     5954
     5955else
     5956  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
     5957$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
     5958fi
     5959
     5960done
     5961
     5962for ac_header in string.h
     5963do :
     5964  ac_fn_cxx_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
     5965if test "x$ac_cv_header_string_h" = xyes; then :
     5966  cat >>confdefs.h <<_ACEOF
     5967#define HAVE_STRING_H 1
     5968_ACEOF
     5969
     5970else
     5971  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
     5972$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
     5973fi
     5974
     5975done
     5976
     5977for ac_header in stdlib.h
     5978do :
     5979  ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
     5980if test "x$ac_cv_header_stdlib_h" = xyes; then :
     5981  cat >>confdefs.h <<_ACEOF
     5982#define HAVE_STDLIB_H 1
     5983_ACEOF
     5984
     5985else
     5986  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
     5987$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
     5988fi
     5989
     5990done
     5991
     5992for ac_header in stddef.h
     5993do :
     5994  ac_fn_cxx_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
     5995if test "x$ac_cv_header_stddef_h" = xyes; then :
     5996  cat >>confdefs.h <<_ACEOF
     5997#define HAVE_STDDEF_H 1
     5998_ACEOF
     5999
     6000else
     6001  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
     6002$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
     6003fi
     6004
     6005done
     6006
     6007for ac_header in float.h
     6008do :
     6009  ac_fn_cxx_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
     6010if test "x$ac_cv_header_float_h" = xyes; then :
     6011  cat >>confdefs.h <<_ACEOF
     6012#define HAVE_FLOAT_H 1
     6013_ACEOF
     6014
     6015else
     6016  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
     6017$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
     6018fi
     6019
     6020done
     6021
     6022for ac_header in math.h
     6023do :
     6024  ac_fn_cxx_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
     6025if test "x$ac_cv_header_math_h" = xyes; then :
     6026  cat >>confdefs.h <<_ACEOF
     6027#define HAVE_MATH_H 1
     6028_ACEOF
     6029
     6030else
     6031  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
     6032$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
     6033fi
     6034
     6035done
     6036
     6037for ac_header in malloc.h
     6038do :
     6039  ac_fn_cxx_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
     6040if test "x$ac_cv_header_malloc_h" = xyes; then :
     6041  cat >>confdefs.h <<_ACEOF
     6042#define HAVE_MALLOC_H 1
     6043_ACEOF
     6044
     6045else
     6046  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
     6047$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
     6048fi
     6049
     6050done
     6051
     6052for ac_header in memory.h
     6053do :
     6054  ac_fn_cxx_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
     6055if test "x$ac_cv_header_memory_h" = xyes; then :
     6056  cat >>confdefs.h <<_ACEOF
     6057#define HAVE_MEMORY_H 1
     6058_ACEOF
     6059
     6060else
     6061  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
     6062$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
     6063fi
     6064
     6065done
     6066
     6067for ac_header in unistd.h
     6068do :
     6069  ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
     6070if test "x$ac_cv_header_unistd_h" = xyes; then :
     6071  cat >>confdefs.h <<_ACEOF
     6072#define HAVE_UNISTD_H 1
     6073_ACEOF
     6074
     6075else
     6076  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
     6077$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
     6078fi
     6079
     6080done
     6081
     6082
     6083for ac_header in inttypes.h
     6084do :
     6085  ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
     6086if test "x$ac_cv_header_inttypes_h" = xyes; then :
     6087  cat >>confdefs.h <<_ACEOF
     6088#define HAVE_INTTYPES_H 1
     6089_ACEOF
     6090
     6091else
     6092  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
     6093$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
     6094fi
     6095
     6096done
     6097
     6098if test "${ac_cv_header_inttypes_h}" = "yes" ; then
     6099  HAVE_INTTYPES_H=1
     6100else
     6101  HAVE_INTTYPES_H=0
     6102fi
     6103
     6104
     6105if test "$with_install" != "yes"; then
     6106    INSTALL_PREFIX=$with_install
     6107else
     6108    INSTALL_PREFIX=$prefix
     6109fi
     6110
     6111if test "${libdir}" != "${prefix}/lib"; then
     6112    LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}"
     6113else
     6114    LIB_SEARCH_DIRS="-L${libdir}"
     6115fi
     6116
     6117SVN_VERSION=`svnversion $srcdir`
     6118
     6119make_command=""
     6120for m in "$MAKE" make gmake gnumake ; do
     6121  if test "x${m}" != "x" ; then
     6122    if  ( sh -c "$m --version" 2>/dev/null | grep GNU >/dev/null ) ; then
     6123      make_command=$m; break;
     6124    fi
     6125  fi
     6126done
     6127if test "x${make_command}" = "x" ; then
     6128  as_fn_error $? "Requires GNU make. You can specify a version with \$MAKE" "$LINENO" 5
     6129fi
     6130
     6131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for vtkDICOM" >&5
     6132$as_echo_n "checking for vtkDICOM... " >&6; }
     6133ENABLE_VTK_DICOM=
     6134if test "$enable_vtkdicom" != "no" ; then
     6135    ENABLE_VTK_DICOM="yes"
     6136fi
     6137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtkdicom" >&5
     6138$as_echo "$enable_vtkdicom" >&6; }
     6139
     6140RP_BASE=`pwd`
     6141
    61006142#--------------------------------------------------------------------
    61016143# Set the default compiler switches based on the --enable-symbols
     
    61036145#--------------------------------------------------------------------
    61046146
    6105 SC_ENABLE_SYMBOLS
     6147TCL_VERSION="8.5"
     6148TK_VERSION="8.5"
     6149
     6150
     6151
     6152    # Step 0.a: Enable 64 bit support?
     6153
     6154    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
     6155$as_echo_n "checking if 64bit support is requested... " >&6; }
     6156    # Check whether --enable-64bit was given.
     6157if test "${enable_64bit+set}" = set; then :
     6158  enableval=$enable_64bit; do64bit=$enableval
     6159else
     6160  do64bit=no
     6161fi
     6162
     6163    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
     6164$as_echo "$do64bit" >&6; }
     6165
     6166    # Step 0.b: Enable Solaris 64 bit VIS support?
     6167
     6168    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
     6169$as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; }
     6170    # Check whether --enable-64bit-vis was given.
     6171if test "${enable_64bit_vis+set}" = set; then :
     6172  enableval=$enable_64bit_vis; do64bitVIS=$enableval
     6173else
     6174  do64bitVIS=no
     6175fi
     6176
     6177    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
     6178$as_echo "$do64bitVIS" >&6; }
     6179
     6180    if test "$do64bitVIS" = "yes"; then
     6181        # Force 64bit on with VIS
     6182        do64bit=yes
     6183    fi
     6184
     6185    # Step 1: set the variable "system" to hold the name and version number
     6186    # for the system.
     6187
     6188
     6189    { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5
     6190$as_echo_n "checking system version... " >&6; }
     6191if ${tcl_cv_sys_version+:} false; then :
     6192  $as_echo_n "(cached) " >&6
     6193else
     6194
     6195        if test -f /usr/lib/NextStep/software_version; then
     6196            tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
     6197        else
     6198            tcl_cv_sys_version=`uname -s`-`uname -r`
     6199            if test "$?" -ne 0 ; then
     6200                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
     6201$as_echo "$as_me: WARNING: can't find uname command" >&2;}
     6202                tcl_cv_sys_version=unknown
     6203            else
     6204                # Special check for weird MP-RAS system (uname returns weird
     6205                # results, and the version is kept in special file).
     6206
     6207                if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
     6208                    tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid`
     6209                fi
     6210                if test "`uname -s`" = "AIX" ; then
     6211                    tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
     6212                fi
     6213            fi
     6214        fi
     6215
     6216fi
     6217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
     6218$as_echo "$tcl_cv_sys_version" >&6; }
     6219    system=$tcl_cv_sys_version
     6220
     6221
     6222    # Step 2: check for existence of -ldl library.  This is needed because
     6223    # Linux can use either -ldl or -ldld for dynamic loading.
     6224
     6225    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
     6226$as_echo_n "checking for dlopen in -ldl... " >&6; }
     6227if ${ac_cv_lib_dl_dlopen+:} false; then :
     6228  $as_echo_n "(cached) " >&6
     6229else
     6230  ac_check_lib_save_LIBS=$LIBS
     6231LIBS="-ldl  $LIBS"
     6232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6233/* end confdefs.h.  */
     6234
     6235/* Override any GCC internal prototype to avoid an error.
     6236   Use char because int might match the return type of a GCC
     6237   builtin and then its argument prototype would still apply.  */
     6238#ifdef __cplusplus
     6239extern "C"
     6240#endif
     6241char dlopen ();
     6242int
     6243main ()
     6244{
     6245return dlopen ();
     6246  ;
     6247  return 0;
     6248}
     6249_ACEOF
     6250if ac_fn_cxx_try_link "$LINENO"; then :
     6251  ac_cv_lib_dl_dlopen=yes
     6252else
     6253  ac_cv_lib_dl_dlopen=no
     6254fi
     6255rm -f core conftest.err conftest.$ac_objext \
     6256    conftest$ac_exeext conftest.$ac_ext
     6257LIBS=$ac_check_lib_save_LIBS
     6258fi
     6259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
     6260$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
     6261if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
     6262  have_dl=yes
     6263else
     6264  have_dl=no
     6265fi
     6266
     6267
     6268    # Require ranlib early so we can override it in special cases below.
     6269
     6270
     6271
     6272    # Step 3: set configuration options based on system name and version.
     6273
     6274    do64bit_ok=no
     6275    LDFLAGS_ORIG="$LDFLAGS"
     6276    TCL_EXPORT_FILE_SUFFIX=""
     6277    UNSHARED_LIB_SUFFIX=""
     6278    TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`'
     6279    ECHO_VERSION='`echo ${VERSION}`'
     6280    TCL_LIB_VERSIONS_OK=ok
     6281    CFLAGS_DEBUG=-g
     6282    CFLAGS_OPTIMIZE=-O
     6283    if test "$GCC" = "yes" ; then
     6284        CFLAGS_WARNING="-Wall -Wno-implicit-int -fno-strict-aliasing"
     6285    else
     6286        CFLAGS_WARNING=""
     6287    fi
     6288    TCL_NEEDS_EXP_FILE=0
     6289    TCL_BUILD_EXP_FILE=""
     6290    TCL_EXP_FILE=""
     6291    # Extract the first word of "ar", so it can be a program name with args.
     6292set dummy ar; ac_word=$2
     6293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     6294$as_echo_n "checking for $ac_word... " >&6; }
     6295if ${ac_cv_prog_AR+:} false; then :
     6296  $as_echo_n "(cached) " >&6
     6297else
     6298  if test -n "$AR"; then
     6299  ac_cv_prog_AR="$AR" # Let the user override the test.
     6300else
     6301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     6302for as_dir in $PATH
     6303do
     6304  IFS=$as_save_IFS
     6305  test -z "$as_dir" && as_dir=.
     6306    for ac_exec_ext in '' $ac_executable_extensions; do
     6307  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     6308    ac_cv_prog_AR="ar"
     6309    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     6310    break 2
     6311  fi
     6312done
     6313  done
     6314IFS=$as_save_IFS
     6315
     6316fi
     6317fi
     6318AR=$ac_cv_prog_AR
     6319if test -n "$AR"; then
     6320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
     6321$as_echo "$AR" >&6; }
     6322else
     6323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     6324$as_echo "no" >&6; }
     6325fi
     6326
     6327
     6328    if test "${AR}" = "" ; then
     6329        as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
     6330    fi
     6331    STLIB_LD='${AR} cr'
     6332    LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
     6333    PLAT_OBJS=""
     6334    PLAT_SRCS=""
     6335    case $system in
     6336        AIX-*)
     6337            if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then
     6338                # AIX requires the _r compiler when gcc isn't being used
     6339                case "${CC}" in
     6340                    *_r)
     6341                        # ok ...
     6342                        ;;
     6343                    *)
     6344                        CC=${CC}_r
     6345                        ;;
     6346                esac
     6347                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
     6348$as_echo "Using $CC for compiling with threads" >&6; }
     6349            fi
     6350            LIBS="$LIBS -lc"
     6351            SHLIB_CFLAGS=""
     6352            # Note: need the LIBS below, otherwise Tk won't find Tcl's
     6353            # symbols when dynamically loaded into tclsh.
     6354            SHLIB_LD_LIBS='${LIBS}'
     6355            SHLIB_SUFFIX=".so"
     6356
     6357            DL_OBJS="tclLoadDl.o"
     6358            LD_LIBRARY_PATH_VAR="LIBPATH"
     6359
     6360            # Check to enable 64-bit flags for compiler/linker on AIX 4+
     6361            if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then
     6362                if test "$GCC" = "yes" ; then
     6363                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
     6364$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
     6365                else
     6366                    do64bit_ok=yes
     6367                    CFLAGS="$CFLAGS -q64"
     6368                    LDFLAGS="$LDFLAGS -q64"
     6369                    RANLIB="${RANLIB} -X64"
     6370                    AR="${AR} -X64"
     6371                    SHLIB_LD_FLAGS="-b64"
     6372                fi
     6373            fi
     6374
     6375            if test "`uname -m`" = "ia64" ; then
     6376                # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
     6377                SHLIB_LD="/usr/ccs/bin/ld -G -z text"
     6378                # AIX-5 has dl* in libc.so
     6379                DL_LIBS=""
     6380                if test "$GCC" = "yes" ; then
     6381                    CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
     6382                else
     6383                    CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
     6384                fi
     6385                LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
     6386            else
     6387                if test "$GCC" = "yes" ; then
     6388                    SHLIB_LD="gcc -shared"
     6389                else
     6390                    SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry"
     6391                fi
     6392                SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}"
     6393                DL_LIBS="-ldl"
     6394                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
     6395                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     6396                TCL_NEEDS_EXP_FILE=1
     6397                TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.exp'
     6398            fi
     6399
     6400            # AIX v<=4.1 has some different flags than 4.2+
     6401            if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then
     6402                LIBOBJS="$LIBOBJS tclLoadAix.o"
     6403                DL_LIBS="-lld"
     6404            fi
     6405
     6406            # On AIX <=v4 systems, libbsd.a has to be linked in to support
     6407            # non-blocking file IO.  This library has to be linked in after
     6408            # the MATH_LIBS or it breaks the pow() function.  The way to
     6409            # insure proper sequencing, is to add it to the tail of MATH_LIBS.
     6410            # This library also supplies gettimeofday.
     6411            #
     6412            # AIX does not have a timezone field in struct tm. When the AIX
     6413            # bsd library is used, the timezone global and the gettimeofday
     6414            # methods are to be avoided for timezone deduction instead, we
     6415            # deduce the timezone by comparing the localtime result on a
     6416            # known GMT value.
     6417
     6418            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5
     6419$as_echo_n "checking for gettimeofday in -lbsd... " >&6; }
     6420if ${ac_cv_lib_bsd_gettimeofday+:} false; then :
     6421  $as_echo_n "(cached) " >&6
     6422else
     6423  ac_check_lib_save_LIBS=$LIBS
     6424LIBS="-lbsd  $LIBS"
     6425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6426/* end confdefs.h.  */
     6427
     6428/* Override any GCC internal prototype to avoid an error.
     6429   Use char because int might match the return type of a GCC
     6430   builtin and then its argument prototype would still apply.  */
     6431#ifdef __cplusplus
     6432extern "C"
     6433#endif
     6434char gettimeofday ();
     6435int
     6436main ()
     6437{
     6438return gettimeofday ();
     6439  ;
     6440  return 0;
     6441}
     6442_ACEOF
     6443if ac_fn_cxx_try_link "$LINENO"; then :
     6444  ac_cv_lib_bsd_gettimeofday=yes
     6445else
     6446  ac_cv_lib_bsd_gettimeofday=no
     6447fi
     6448rm -f core conftest.err conftest.$ac_objext \
     6449    conftest$ac_exeext conftest.$ac_ext
     6450LIBS=$ac_check_lib_save_LIBS
     6451fi
     6452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5
     6453$as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; }
     6454if test "x$ac_cv_lib_bsd_gettimeofday" = xyes; then :
     6455  libbsd=yes
     6456else
     6457  libbsd=no
     6458fi
     6459
     6460            if test $libbsd = yes; then
     6461                MATH_LIBS="$MATH_LIBS -lbsd"
     6462                $as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h
     6463
     6464            fi
     6465            ;;
     6466        BeOS*)
     6467            SHLIB_CFLAGS="-fPIC"
     6468            SHLIB_LD="${CC} -nostart"
     6469            SHLIB_LD_LIBS='${LIBS}'
     6470            SHLIB_SUFFIX=".so"
     6471            DL_OBJS="tclLoadDl.o"
     6472            DL_LIBS="-ldl"
     6473
     6474            #-----------------------------------------------------------
     6475            # Check for inet_ntoa in -lbind, for BeOS (which also needs
     6476            # -lsocket, even if the network functions are in -lnet which
     6477            # is always linked to, for compatibility.
     6478            #-----------------------------------------------------------
     6479            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
     6480$as_echo_n "checking for inet_ntoa in -lbind... " >&6; }
     6481if ${ac_cv_lib_bind_inet_ntoa+:} false; then :
     6482  $as_echo_n "(cached) " >&6
     6483else
     6484  ac_check_lib_save_LIBS=$LIBS
     6485LIBS="-lbind  $LIBS"
     6486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6487/* end confdefs.h.  */
     6488
     6489/* Override any GCC internal prototype to avoid an error.
     6490   Use char because int might match the return type of a GCC
     6491   builtin and then its argument prototype would still apply.  */
     6492#ifdef __cplusplus
     6493extern "C"
     6494#endif
     6495char inet_ntoa ();
     6496int
     6497main ()
     6498{
     6499return inet_ntoa ();
     6500  ;
     6501  return 0;
     6502}
     6503_ACEOF
     6504if ac_fn_cxx_try_link "$LINENO"; then :
     6505  ac_cv_lib_bind_inet_ntoa=yes
     6506else
     6507  ac_cv_lib_bind_inet_ntoa=no
     6508fi
     6509rm -f core conftest.err conftest.$ac_objext \
     6510    conftest$ac_exeext conftest.$ac_ext
     6511LIBS=$ac_check_lib_save_LIBS
     6512fi
     6513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
     6514$as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; }
     6515if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then :
     6516  LIBS="$LIBS -lbind -lsocket"
     6517fi
     6518
     6519            ;;
     6520        BSD/OS-2.1*|BSD/OS-3*)
     6521            SHLIB_CFLAGS=""
     6522            SHLIB_LD="shlicc -r"
     6523            SHLIB_LD_LIBS='${LIBS}'
     6524            SHLIB_SUFFIX=".so"
     6525            DL_OBJS="tclLoadDl.o"
     6526            DL_LIBS="-ldl"
     6527            CC_SEARCH_FLAGS=""
     6528            LD_SEARCH_FLAGS=""
     6529            ;;
     6530        BSD/OS-4.*)
     6531            SHLIB_CFLAGS="-export-dynamic -fPIC"
     6532            SHLIB_LD="cc -shared"
     6533            SHLIB_LD_LIBS='${LIBS}'
     6534            SHLIB_SUFFIX=".so"
     6535            DL_OBJS="tclLoadDl.o"
     6536            DL_LIBS="-ldl"
     6537            LDFLAGS="$LDFLAGS -export-dynamic"
     6538            CC_SEARCH_FLAGS=""
     6539            LD_SEARCH_FLAGS=""
     6540            ;;
     6541        dgux*)
     6542            SHLIB_CFLAGS="-K PIC"
     6543            SHLIB_LD="cc -G"
     6544            SHLIB_LD_LIBS=""
     6545            SHLIB_SUFFIX=".so"
     6546            DL_OBJS="tclLoadDl.o"
     6547            DL_LIBS="-ldl"
     6548            CC_SEARCH_FLAGS=""
     6549            LD_SEARCH_FLAGS=""
     6550            ;;
     6551        HP-UX-*.11.*)
     6552            # Use updated header definitions where possible
     6553            $as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h
     6554          # Use the XOPEN network library
     6555            $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
     6556 # Use the XOPEN network library
     6557            LIBS="$LIBS -lxnet"               # Use the XOPEN network library
     6558
     6559            if test "`uname -m`" = "ia64" ; then
     6560                SHLIB_SUFFIX=".so"
     6561            else
     6562                SHLIB_SUFFIX=".sl"
     6563            fi
     6564            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
     6565$as_echo_n "checking for shl_load in -ldld... " >&6; }
     6566if ${ac_cv_lib_dld_shl_load+:} false; then :
     6567  $as_echo_n "(cached) " >&6
     6568else
     6569  ac_check_lib_save_LIBS=$LIBS
     6570LIBS="-ldld  $LIBS"
     6571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6572/* end confdefs.h.  */
     6573
     6574/* Override any GCC internal prototype to avoid an error.
     6575   Use char because int might match the return type of a GCC
     6576   builtin and then its argument prototype would still apply.  */
     6577#ifdef __cplusplus
     6578extern "C"
     6579#endif
     6580char shl_load ();
     6581int
     6582main ()
     6583{
     6584return shl_load ();
     6585  ;
     6586  return 0;
     6587}
     6588_ACEOF
     6589if ac_fn_cxx_try_link "$LINENO"; then :
     6590  ac_cv_lib_dld_shl_load=yes
     6591else
     6592  ac_cv_lib_dld_shl_load=no
     6593fi
     6594rm -f core conftest.err conftest.$ac_objext \
     6595    conftest$ac_exeext conftest.$ac_ext
     6596LIBS=$ac_check_lib_save_LIBS
     6597fi
     6598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
     6599$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
     6600if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
     6601  tcl_ok=yes
     6602else
     6603  tcl_ok=no
     6604fi
     6605
     6606            if test "$tcl_ok" = yes; then
     6607                SHLIB_CFLAGS="+z"
     6608                SHLIB_LD="ld -b"
     6609                SHLIB_LD_LIBS='${LIBS}'
     6610                DL_OBJS="tclLoadShl.o"
     6611                DL_LIBS="-ldld"
     6612                LDFLAGS="$LDFLAGS -Wl,-E"
     6613                CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
     6614                LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
     6615                LD_LIBRARY_PATH_VAR="SHLIB_PATH"
     6616            fi
     6617            if test "$GCC" = "yes" ; then
     6618                SHLIB_LD="gcc -shared"
     6619                SHLIB_LD_LIBS='${LIBS}'
     6620                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     6621            fi
     6622
     6623            # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
     6624            #CFLAGS="$CFLAGS +DAportable"
     6625
     6626            # Check to enable 64-bit flags for compiler/linker
     6627            if test "$do64bit" = "yes" ; then
     6628                if test "$GCC" = "yes" ; then
     6629                    hpux_arch=`${CC} -dumpmachine`
     6630                    case $hpux_arch in
     6631                        hppa64*)
     6632                            # 64-bit gcc in use.  Fix flags for GNU ld.
     6633                            do64bit_ok=yes
     6634                            SHLIB_LD="${CC} -shared"
     6635                            SHLIB_LD_LIBS='${LIBS}'
     6636                            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     6637                            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     6638                            ;;
     6639                        *)
     6640                            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
     6641$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
     6642                            ;;
     6643                    esac
     6644                else
     6645                    do64bit_ok=yes
     6646                    CFLAGS="$CFLAGS +DD64"
     6647                    LDFLAGS="$LDFLAGS +DD64"
     6648                fi
     6649            fi
     6650            ;;
     6651        HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
     6652            SHLIB_SUFFIX=".sl"
     6653            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
     6654$as_echo_n "checking for shl_load in -ldld... " >&6; }
     6655if ${ac_cv_lib_dld_shl_load+:} false; then :
     6656  $as_echo_n "(cached) " >&6
     6657else
     6658  ac_check_lib_save_LIBS=$LIBS
     6659LIBS="-ldld  $LIBS"
     6660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6661/* end confdefs.h.  */
     6662
     6663/* Override any GCC internal prototype to avoid an error.
     6664   Use char because int might match the return type of a GCC
     6665   builtin and then its argument prototype would still apply.  */
     6666#ifdef __cplusplus
     6667extern "C"
     6668#endif
     6669char shl_load ();
     6670int
     6671main ()
     6672{
     6673return shl_load ();
     6674  ;
     6675  return 0;
     6676}
     6677_ACEOF
     6678if ac_fn_cxx_try_link "$LINENO"; then :
     6679  ac_cv_lib_dld_shl_load=yes
     6680else
     6681  ac_cv_lib_dld_shl_load=no
     6682fi
     6683rm -f core conftest.err conftest.$ac_objext \
     6684    conftest$ac_exeext conftest.$ac_ext
     6685LIBS=$ac_check_lib_save_LIBS
     6686fi
     6687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
     6688$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
     6689if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
     6690  tcl_ok=yes
     6691else
     6692  tcl_ok=no
     6693fi
     6694
     6695            if test "$tcl_ok" = yes; then
     6696                SHLIB_CFLAGS="+z"
     6697                SHLIB_LD="ld -b"
     6698                SHLIB_LD_LIBS=""
     6699                DL_OBJS="tclLoadShl.o"
     6700                DL_LIBS="-ldld"
     6701                LDFLAGS="$LDFLAGS -Wl,-E"
     6702                CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
     6703                LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
     6704                LD_LIBRARY_PATH_VAR="SHLIB_PATH"
     6705            fi
     6706            ;;
     6707        IRIX-4.*)
     6708            SHLIB_CFLAGS="-G 0"
     6709            SHLIB_SUFFIX=".a"
     6710            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
     6711            SHLIB_LD_LIBS='${LIBS}'
     6712            DL_OBJS="tclLoadAout.o"
     6713            DL_LIBS=""
     6714            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
     6715            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
     6716            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     6717            SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
     6718            ;;
     6719        IRIX-5.*)
     6720            SHLIB_CFLAGS=""
     6721            SHLIB_LD="ld -shared -rdata_shared"
     6722            SHLIB_LD_LIBS='${LIBS}'
     6723            SHLIB_SUFFIX=".so"
     6724            DL_OBJS="tclLoadDl.o"
     6725            DL_LIBS=""
     6726            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     6727            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
     6728            ;;
     6729        IRIX-6.*)
     6730            SHLIB_CFLAGS=""
     6731            SHLIB_LD="ld -n32 -shared -rdata_shared"
     6732            SHLIB_LD_LIBS='${LIBS}'
     6733            SHLIB_SUFFIX=".so"
     6734            DL_OBJS="tclLoadDl.o"
     6735            DL_LIBS=""
     6736            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     6737            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
     6738            if test "$GCC" = "yes" ; then
     6739                CFLAGS="$CFLAGS -mabi=n32"
     6740                LDFLAGS="$LDFLAGS -mabi=n32"
     6741            else
     6742                case $system in
     6743                    IRIX-6.3)
     6744                        # Use to build 6.2 compatible binaries on 6.3.
     6745                        CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
     6746                        ;;
     6747                    *)
     6748                        CFLAGS="$CFLAGS -n32"
     6749                        ;;
     6750                esac
     6751                LDFLAGS="$LDFLAGS -n32"
     6752            fi
     6753            ;;
     6754        IRIX64-6.*)
     6755            SHLIB_CFLAGS=""
     6756            SHLIB_LD="ld -n32 -shared -rdata_shared"
     6757            SHLIB_LD_LIBS='${LIBS}'
     6758            SHLIB_SUFFIX=".so"
     6759            DL_OBJS="tclLoadDl.o"
     6760            DL_LIBS=""
     6761            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     6762            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
     6763
     6764            # Check to enable 64-bit flags for compiler/linker
     6765
     6766            if test "$do64bit" = "yes" ; then
     6767                if test "$GCC" = "yes" ; then
     6768                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
     6769$as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
     6770                else
     6771                    do64bit_ok=yes
     6772                    SHLIB_LD="ld -64 -shared -rdata_shared"
     6773                    CFLAGS="$CFLAGS -64"
     6774                    LDFLAGS="$LDFLAGS -64"
     6775                fi
     6776            fi
     6777            ;;
     6778        Linux*)
     6779            SHLIB_CFLAGS="-fPIC"
     6780            SHLIB_LD_LIBS='${LIBS}'
     6781            SHLIB_SUFFIX=".so"
     6782
     6783            CFLAGS_OPTIMIZE=-O2
     6784            # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings
     6785            # when you inline the string and math operations.  Turn this off to
     6786            # get rid of the warnings.
     6787            #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
     6788
     6789            if test "$have_dl" = yes; then
     6790                SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
     6791                DL_OBJS="tclLoadDl.o"
     6792                DL_LIBS="-ldl"
     6793                LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
     6794                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     6795                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     6796            else
     6797                ac_fn_cxx_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
     6798if test "x$ac_cv_header_dld_h" = xyes; then :
     6799
     6800                    SHLIB_LD="ld -shared"
     6801                    DL_OBJS="tclLoadDld.o"
     6802                    DL_LIBS="-ldld"
     6803                    CC_SEARCH_FLAGS=""
     6804                    LD_SEARCH_FLAGS=""
     6805fi
     6806
     6807
     6808            fi
     6809            if test "`uname -m`" = "alpha" ; then
     6810                CFLAGS="$CFLAGS -mieee"
     6811            fi
     6812            if test $do64bit = yes; then
     6813                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
     6814$as_echo_n "checking if compiler accepts -m64 flag... " >&6; }
     6815if ${tcl_cv_cc_m64+:} false; then :
     6816  $as_echo_n "(cached) " >&6
     6817else
     6818
     6819                    hold_cflags=$CFLAGS
     6820                    CFLAGS="$CFLAGS -m64"
     6821                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6822/* end confdefs.h.  */
     6823
     6824int
     6825main ()
     6826{
     6827
     6828  ;
     6829  return 0;
     6830}
     6831_ACEOF
     6832if ac_fn_cxx_try_link "$LINENO"; then :
     6833  tcl_cv_cc_m64=yes
     6834else
     6835  tcl_cv_cc_m64=no
     6836fi
     6837rm -f core conftest.err conftest.$ac_objext \
     6838    conftest$ac_exeext conftest.$ac_ext
     6839                    CFLAGS=$hold_cflags
     6840fi
     6841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
     6842$as_echo "$tcl_cv_cc_m64" >&6; }
     6843                if test $tcl_cv_cc_m64 = yes; then
     6844                    CFLAGS="$CFLAGS -m64"
     6845                    do64bit_ok=yes
     6846                fi
     6847            fi
     6848
     6849            # The combo of gcc + glibc has a bug related
     6850            # to inlining of functions like strtod(). The
     6851            # -fno-builtin flag should address this problem
     6852            # but it does not work. The -fno-inline flag
     6853            # is kind of overkill but it works.
     6854            # Disable inlining only when one of the
     6855            # files in compat/*.c is being linked in.
     6856            if test x"${LIBOBJS}" != x ; then
     6857                CFLAGS="$CFLAGS -fno-inline"
     6858            fi
     6859
     6860            # XIM peeking works under XFree86.
     6861            $as_echo "#define PEEK_XCLOSEIM 1" >>confdefs.h
     6862
     6863
     6864            ;;
     6865        GNU*)
     6866            SHLIB_CFLAGS="-fPIC"
     6867            SHLIB_LD_LIBS='${LIBS}'
     6868            SHLIB_SUFFIX=".so"
     6869
     6870            if test "$have_dl" = yes; then
     6871                SHLIB_LD="${CC} -shared"
     6872                DL_OBJS=""
     6873                DL_LIBS="-ldl"
     6874                LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
     6875                CC_SEARCH_FLAGS=""
     6876                LD_SEARCH_FLAGS=""
     6877            else
     6878                ac_fn_cxx_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
     6879if test "x$ac_cv_header_dld_h" = xyes; then :
     6880
     6881                    SHLIB_LD="ld -shared"
     6882                    DL_OBJS=""
     6883                    DL_LIBS="-ldld"
     6884                    CC_SEARCH_FLAGS=""
     6885                    LD_SEARCH_FLAGS=""
     6886fi
     6887
     6888
     6889            fi
     6890            if test "`uname -m`" = "alpha" ; then
     6891                CFLAGS="$CFLAGS -mieee"
     6892            fi
     6893            ;;
     6894        Lynx*)
     6895            SHLIB_CFLAGS="-fPIC"
     6896            SHLIB_LD_LIBS='${LIBS}'
     6897            SHLIB_SUFFIX=".so"
     6898            CFLAGS_OPTIMIZE=-02
     6899            SHLIB_LD="${CC} -shared "
     6900            DL_OBJS="tclLoadDl.o"
     6901            DL_LIBS="-mshared -ldl"
     6902            LD_FLAGS="-Wl,--export-dynamic"
     6903            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     6904            LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     6905            ;;
     6906        MP-RAS-02*)
     6907            SHLIB_CFLAGS="-K PIC"
     6908            SHLIB_LD="cc -G"
     6909            SHLIB_LD_LIBS=""
     6910            SHLIB_SUFFIX=".so"
     6911            DL_OBJS="tclLoadDl.o"
     6912            DL_LIBS="-ldl"
     6913            CC_SEARCH_FLAGS=""
     6914            LD_SEARCH_FLAGS=""
     6915            ;;
     6916        MP-RAS-*)
     6917            SHLIB_CFLAGS="-K PIC"
     6918            SHLIB_LD="cc -G"
     6919            SHLIB_LD_LIBS=""
     6920            SHLIB_SUFFIX=".so"
     6921            DL_OBJS="tclLoadDl.o"
     6922            DL_LIBS="-ldl"
     6923            LDFLAGS="$LDFLAGS -Wl,-Bexport"
     6924            CC_SEARCH_FLAGS=""
     6925            LD_SEARCH_FLAGS=""
     6926            ;;
     6927        NetBSD-*|FreeBSD-[1-2].*)
     6928            # Not available on all versions:  check for include file.
     6929            ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
     6930if test "x$ac_cv_header_dlfcn_h" = xyes; then :
     6931
     6932                # NetBSD/SPARC needs -fPIC, -fpic will not do.
     6933                SHLIB_CFLAGS="-fPIC"
     6934                SHLIB_LD="ld -Bshareable -x"
     6935                SHLIB_LD_LIBS='${LIBS}'
     6936                SHLIB_SUFFIX=".so"
     6937                DL_OBJS="tclLoadDl.o"
     6938                DL_LIBS=""
     6939                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     6940                LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
     6941                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
     6942$as_echo_n "checking for ELF... " >&6; }
     6943if ${tcl_cv_ld_elf+:} false; then :
     6944  $as_echo_n "(cached) " >&6
     6945else
     6946
     6947                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     6948/* end confdefs.h.  */
     6949
     6950#ifdef __ELF__
     6951        yes
     6952#endif
     6953
     6954_ACEOF
     6955if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     6956  $EGREP "yes" >/dev/null 2>&1; then :
     6957  tcl_cv_ld_elf=yes
     6958else
     6959  tcl_cv_ld_elf=no
     6960fi
     6961rm -f conftest*
     6962
     6963fi
     6964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
     6965$as_echo "$tcl_cv_ld_elf" >&6; }
     6966                if test $tcl_cv_ld_elf = yes; then
     6967                    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
     6968                else
     6969                    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
     6970                fi
     6971
     6972else
     6973
     6974                SHLIB_CFLAGS=""
     6975                SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
     6976                SHLIB_LD_LIBS='${LIBS}'
     6977                SHLIB_SUFFIX=".a"
     6978                DL_OBJS="tclLoadAout.o"
     6979                DL_LIBS=""
     6980                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
     6981                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     6982                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
     6983
     6984fi
     6985
     6986
     6987
     6988            # FreeBSD doesn't handle version numbers with dots.
     6989
     6990            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
     6991            TCL_LIB_VERSIONS_OK=nodots
     6992            ;;
     6993        OpenBSD-*)
     6994            case `arch -s` in
     6995            m88k|vax)
     6996                SHLIB_CFLAGS=""
     6997                SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
     6998                SHLIB_LD_LIBS='${LIBS}'
     6999                SHLIB_SUFFIX=".a"
     7000                DL_OBJS="tclLoadAout.o"
     7001                DL_LIBS=""
     7002                LDFLAGS=""
     7003                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
     7004                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     7005                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
     7006                ;;
     7007            *)
     7008                # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do.
     7009                case `machine` in
     7010                sparc|sparc64)
     7011                    SHLIB_CFLAGS="-fPIC";;
     7012                *)
     7013                    SHLIB_CFLAGS="-fpic";;
     7014                esac
     7015                SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}"
     7016                SHLIB_LD_LIBS='${LIBS}'
     7017                SHLIB_SUFFIX=".so"
     7018                DL_OBJS="tclLoadDl.o"
     7019                DL_LIBS=""
     7020                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     7021                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     7022                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
     7023                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
     7024$as_echo_n "checking for ELF... " >&6; }
     7025if ${tcl_cv_ld_elf+:} false; then :
     7026  $as_echo_n "(cached) " >&6
     7027else
     7028
     7029                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     7030/* end confdefs.h.  */
     7031
     7032#ifdef __ELF__
     7033        yes
     7034#endif
     7035
     7036_ACEOF
     7037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     7038  $EGREP "yes" >/dev/null 2>&1; then :
     7039  tcl_cv_ld_elf=yes
     7040else
     7041  tcl_cv_ld_elf=no
     7042fi
     7043rm -f conftest*
     7044
     7045fi
     7046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
     7047$as_echo "$tcl_cv_ld_elf" >&6; }
     7048                if test $tcl_cv_ld_elf = yes; then
     7049                    LDFLAGS=-Wl,-export-dynamic
     7050                else
     7051                    LDFLAGS=""
     7052                fi
     7053                ;;
     7054            esac
     7055
     7056            # OpenBSD doesn't do version numbers with dots.
     7057            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
     7058            TCL_LIB_VERSIONS_OK=nodots
     7059            ;;
     7060        FreeBSD-*)
     7061            # FreeBSD 3.* and greater have ELF.
     7062            SHLIB_CFLAGS="-fPIC"
     7063            SHLIB_LD="ld -Bshareable -x"
     7064            SHLIB_LD_LIBS='${LIBS}'
     7065            SHLIB_SUFFIX=".so"
     7066            DL_OBJS="tclLoadDl.o"
     7067            DL_LIBS=""
     7068            LDFLAGS="$LDFLAGS -export-dynamic"
     7069            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     7070            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
     7071            if test "${TCL_THREADS}" = "1" ; then
     7072                # The -pthread needs to go in the CFLAGS, not LIBS
     7073                LIBS=`echo $LIBS | sed s/-pthread//`
     7074                CFLAGS="$CFLAGS -pthread"
     7075                LDFLAGS="$LDFLAGS -pthread"
     7076            fi
     7077            case $system in
     7078            FreeBSD-3.*)
     7079                # FreeBSD-3 doesn't handle version numbers with dots.
     7080                UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
     7081                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
     7082                TCL_LIB_VERSIONS_OK=nodots
     7083                ;;
     7084            esac
     7085            ;;
     7086        Darwin-*)
     7087            CFLAGS_OPTIMIZE="-Os"
     7088            SHLIB_CFLAGS="-fno-common"
     7089            # To avoid discrepancies between what headers configure sees during
     7090            # preprocessing tests and compiling tests, move any -isysroot and
     7091            # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
     7092            CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
     7093                awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
     7094                if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
     7095            CFLAGS="`echo " ${CFLAGS}" | \
     7096                awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
     7097                if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
     7098            if test $do64bit = yes; then
     7099                case `arch` in
     7100                    ppc)
     7101                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
     7102$as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; }
     7103if ${tcl_cv_cc_arch_ppc64+:} false; then :
     7104  $as_echo_n "(cached) " >&6
     7105else
     7106
     7107                            hold_cflags=$CFLAGS
     7108                            CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
     7109                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     7110/* end confdefs.h.  */
     7111
     7112int
     7113main ()
     7114{
     7115
     7116  ;
     7117  return 0;
     7118}
     7119_ACEOF
     7120if ac_fn_cxx_try_link "$LINENO"; then :
     7121  tcl_cv_cc_arch_ppc64=yes
     7122else
     7123  tcl_cv_cc_arch_ppc64=no
     7124fi
     7125rm -f core conftest.err conftest.$ac_objext \
     7126    conftest$ac_exeext conftest.$ac_ext
     7127                            CFLAGS=$hold_cflags
     7128fi
     7129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
     7130$as_echo "$tcl_cv_cc_arch_ppc64" >&6; }
     7131                        if test $tcl_cv_cc_arch_ppc64 = yes; then
     7132                            CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
     7133                            do64bit_ok=yes
     7134                        fi;;
     7135                    i386)
     7136                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
     7137$as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; }
     7138if ${tcl_cv_cc_arch_x86_64+:} false; then :
     7139  $as_echo_n "(cached) " >&6
     7140else
     7141
     7142                            hold_cflags=$CFLAGS
     7143                            CFLAGS="$CFLAGS -arch x86_64"
     7144                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     7145/* end confdefs.h.  */
     7146
     7147int
     7148main ()
     7149{
     7150
     7151  ;
     7152  return 0;
     7153}
     7154_ACEOF
     7155if ac_fn_cxx_try_link "$LINENO"; then :
     7156  tcl_cv_cc_arch_x86_64=yes
     7157else
     7158  tcl_cv_cc_arch_x86_64=no
     7159fi
     7160rm -f core conftest.err conftest.$ac_objext \
     7161    conftest$ac_exeext conftest.$ac_ext
     7162                            CFLAGS=$hold_cflags
     7163fi
     7164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
     7165$as_echo "$tcl_cv_cc_arch_x86_64" >&6; }
     7166                        if test $tcl_cv_cc_arch_x86_64 = yes; then
     7167                            CFLAGS="$CFLAGS -arch x86_64"
     7168                            do64bit_ok=yes
     7169                        fi;;
     7170                    *)
     7171                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
     7172$as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
     7173                esac
     7174            else
     7175                # Check for combined 32-bit and 64-bit fat build
     7176                echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \
     7177                    echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \
     7178                    fat_32_64=yes
     7179            fi
     7180            SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}'
     7181            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5
     7182$as_echo_n "checking if ld accepts -single_module flag... " >&6; }
     7183if ${tcl_cv_ld_single_module+:} false; then :
     7184  $as_echo_n "(cached) " >&6
     7185else
     7186
     7187                hold_ldflags=$LDFLAGS
     7188                LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
     7189                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     7190/* end confdefs.h.  */
     7191
     7192int
     7193main ()
     7194{
     7195int i;
     7196  ;
     7197  return 0;
     7198}
     7199_ACEOF
     7200if ac_fn_cxx_try_link "$LINENO"; then :
     7201  tcl_cv_ld_single_module=yes
     7202else
     7203  tcl_cv_ld_single_module=no
     7204fi
     7205rm -f core conftest.err conftest.$ac_objext \
     7206    conftest$ac_exeext conftest.$ac_ext
     7207                LDFLAGS=$hold_ldflags
     7208fi
     7209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5
     7210$as_echo "$tcl_cv_ld_single_module" >&6; }
     7211            if test $tcl_cv_ld_single_module = yes; then
     7212                SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
     7213            fi
     7214            SHLIB_LD_LIBS='${LIBS}'
     7215            SHLIB_SUFFIX=".dylib"
     7216            DL_OBJS="tclLoadDyld.o"
     7217            DL_LIBS=""
     7218            # Don't use -prebind when building for Mac OS X 10.4 or later only:
     7219            test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \
     7220                "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \
     7221                LDFLAGS="$LDFLAGS -prebind"
     7222            LDFLAGS="$LDFLAGS -headerpad_max_install_names"
     7223            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
     7224$as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; }
     7225if ${tcl_cv_ld_search_paths_first+:} false; then :
     7226  $as_echo_n "(cached) " >&6
     7227else
     7228
     7229                hold_ldflags=$LDFLAGS
     7230                LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
     7231                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     7232/* end confdefs.h.  */
     7233
     7234int
     7235main ()
     7236{
     7237int i;
     7238  ;
     7239  return 0;
     7240}
     7241_ACEOF
     7242if ac_fn_cxx_try_link "$LINENO"; then :
     7243  tcl_cv_ld_search_paths_first=yes
     7244else
     7245  tcl_cv_ld_search_paths_first=no
     7246fi
     7247rm -f core conftest.err conftest.$ac_objext \
     7248    conftest$ac_exeext conftest.$ac_ext
     7249                LDFLAGS=$hold_ldflags
     7250fi
     7251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
     7252$as_echo "$tcl_cv_ld_search_paths_first" >&6; }
     7253            if test $tcl_cv_ld_search_paths_first = yes; then
     7254                LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
     7255            fi
     7256            CC_SEARCH_FLAGS=""
     7257            LD_SEARCH_FLAGS=""
     7258            LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
     7259            PLAT_OBJS=\$\(MAC\_OSX_OBJS\)
     7260            PLAT_SRCS=\$\(MAC\_OSX_SRCS\)
     7261            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use CoreFoundation" >&5
     7262$as_echo_n "checking whether to use CoreFoundation... " >&6; }
     7263            # Check whether --enable-corefoundation was given.
     7264if test "${enable_corefoundation+set}" = set; then :
     7265  enableval=$enable_corefoundation; tcl_corefoundation=$enableval
     7266else
     7267  tcl_corefoundation=yes
     7268fi
     7269
     7270            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_corefoundation" >&5
     7271$as_echo "$tcl_corefoundation" >&6; }
     7272            if test $tcl_corefoundation = yes; then
     7273                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5
     7274$as_echo_n "checking for CoreFoundation.framework... " >&6; }
     7275if ${tcl_cv_lib_corefoundation+:} false; then :
     7276  $as_echo_n "(cached) " >&6
     7277else
     7278
     7279                    hold_libs=$LIBS
     7280                    if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do
     7281                        # On Tiger there is no 64-bit CF, so remove 64-bit archs
     7282                        # from CFLAGS et al. while testing for presence of CF.
     7283                        # 64-bit CF is disabled in tclUnixPort.h if necessary.
     7284                        eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
     7285                    done; fi
     7286                    LIBS="$LIBS -framework CoreFoundation"
     7287                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     7288/* end confdefs.h.  */
     7289#include <CoreFoundation/CoreFoundation.h>
     7290int
     7291main ()
     7292{
     7293CFBundleRef b = CFBundleGetMainBundle();
     7294  ;
     7295  return 0;
     7296}
     7297_ACEOF
     7298if ac_fn_cxx_try_link "$LINENO"; then :
     7299  tcl_cv_lib_corefoundation=yes
     7300else
     7301  tcl_cv_lib_corefoundation=no
     7302fi
     7303rm -f core conftest.err conftest.$ac_objext \
     7304    conftest$ac_exeext conftest.$ac_ext
     7305                    if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do
     7306                        eval $v'="$hold_'$v'"'
     7307                    done; fi; LIBS=$hold_libs
     7308fi
     7309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation" >&5
     7310$as_echo "$tcl_cv_lib_corefoundation" >&6; }
     7311                if test $tcl_cv_lib_corefoundation = yes; then
     7312                    LIBS="$LIBS -framework CoreFoundation"
     7313                    $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h
     7314
     7315                else
     7316                    tcl_corefoundation=no
     7317                fi
     7318                if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then
     7319                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5
     7320$as_echo_n "checking for 64-bit CoreFoundation... " >&6; }
     7321if ${tcl_cv_lib_corefoundation_64+:} false; then :
     7322  $as_echo_n "(cached) " >&6
     7323else
     7324
     7325                        for v in CFLAGS CPPFLAGS LDFLAGS; do
     7326                            eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
     7327                        done
     7328                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     7329/* end confdefs.h.  */
     7330#include <CoreFoundation/CoreFoundation.h>
     7331int
     7332main ()
     7333{
     7334CFBundleRef b = CFBundleGetMainBundle();
     7335  ;
     7336  return 0;
     7337}
     7338_ACEOF
     7339if ac_fn_cxx_try_link "$LINENO"; then :
     7340  tcl_cv_lib_corefoundation_64=yes
     7341else
     7342  tcl_cv_lib_corefoundation_64=no
     7343fi
     7344rm -f core conftest.err conftest.$ac_objext \
     7345    conftest$ac_exeext conftest.$ac_ext
     7346                        for v in CFLAGS CPPFLAGS LDFLAGS; do
     7347                            eval $v'="$hold_'$v'"'
     7348                        done
     7349fi
     7350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation_64" >&5
     7351$as_echo "$tcl_cv_lib_corefoundation_64" >&6; }
     7352                    if test $tcl_cv_lib_corefoundation_64 = no; then
     7353                        $as_echo "#define NO_COREFOUNDATION_64 1" >>confdefs.h
     7354
     7355                    fi
     7356                fi
     7357            fi
     7358            $as_echo "#define MAC_OSX_TCL 1" >>confdefs.h
     7359
     7360            ;;
     7361        NEXTSTEP-*)
     7362            SHLIB_CFLAGS=""
     7363            SHLIB_LD="cc -nostdlib -r"
     7364            SHLIB_LD_LIBS=""
     7365            SHLIB_SUFFIX=".so"
     7366            DL_OBJS="tclLoadNext.o"
     7367            DL_LIBS=""
     7368            CC_SEARCH_FLAGS=""
     7369            LD_SEARCH_FLAGS=""
     7370            ;;
     7371        OS/390-*)
     7372            CFLAGS_OPTIMIZE=""          # Optimizer is buggy
     7373            $as_echo "#define _OE_SOCKETS 1" >>confdefs.h
     7374        # needed in sys/socket.h
     7375            ;;
     7376        OSF1-1.0|OSF1-1.1|OSF1-1.2)
     7377            # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1
     7378            SHLIB_CFLAGS=""
     7379            # Hack: make package name same as library name
     7380            SHLIB_LD='ld -R -export :'
     7381            SHLIB_LD_LIBS=""
     7382            SHLIB_SUFFIX=".so"
     7383            DL_OBJS="tclLoadOSF.o"
     7384            DL_LIBS=""
     7385            CC_SEARCH_FLAGS=""
     7386            LD_SEARCH_FLAGS=""
     7387            ;;
     7388        OSF1-1.*)
     7389            # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
     7390            SHLIB_CFLAGS="-fPIC"
     7391            if test "$SHARED_BUILD" = "1" ; then
     7392                SHLIB_LD="ld -shared"
     7393            else
     7394                SHLIB_LD="ld -non_shared"
     7395            fi
     7396            SHLIB_LD_LIBS=""
     7397            SHLIB_SUFFIX=".so"
     7398            DL_OBJS="tclLoadDl.o"
     7399            DL_LIBS=""
     7400            CC_SEARCH_FLAGS=""
     7401            LD_SEARCH_FLAGS=""
     7402            ;;
     7403        OSF1-V*)
     7404            # Digital OSF/1
     7405            SHLIB_CFLAGS=""
     7406            if test "$SHARED_BUILD" = "1" ; then
     7407                SHLIB_LD='ld -shared -expect_unresolved "*"'
     7408            else
     7409                SHLIB_LD='ld -non_shared -expect_unresolved "*"'
     7410            fi
     7411            SHLIB_LD_LIBS=""
     7412            SHLIB_SUFFIX=".so"
     7413            DL_OBJS="tclLoadDl.o"
     7414            DL_LIBS=""
     7415            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     7416            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
     7417            if test "$GCC" = "yes" ; then
     7418                CFLAGS="$CFLAGS -mieee"
     7419            else
     7420                CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
     7421            fi
     7422            # see pthread_intro(3) for pthread support on osf1, k.furukawa
     7423            if test "${TCL_THREADS}" = "1" ; then
     7424                CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
     7425                CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
     7426                LIBS=`echo $LIBS | sed s/-lpthreads//`
     7427                if test "$GCC" = "yes" ; then
     7428                    LIBS="$LIBS -lpthread -lmach -lexc"
     7429                else
     7430                    CFLAGS="$CFLAGS -pthread"
     7431                    LDFLAGS="$LDFLAGS -pthread"
     7432                fi
     7433            fi
     7434
     7435            ;;
     7436        QNX-6*)
     7437            # QNX RTP
     7438            # This may work for all QNX, but it was only reported for v6.
     7439            SHLIB_CFLAGS="-fPIC"
     7440            SHLIB_LD="ld -Bshareable -x"
     7441            SHLIB_LD_LIBS=""
     7442            SHLIB_SUFFIX=".so"
     7443            DL_OBJS="tclLoadDl.o"
     7444            # dlopen is in -lc on QNX
     7445            DL_LIBS=""
     7446            CC_SEARCH_FLAGS=""
     7447            LD_SEARCH_FLAGS=""
     7448            ;;
     7449        RISCos-*)
     7450            SHLIB_CFLAGS="-G 0"
     7451            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
     7452            SHLIB_LD_LIBS='${LIBS}'
     7453            SHLIB_SUFFIX=".a"
     7454            DL_OBJS="tclLoadAout.o"
     7455            DL_LIBS=""
     7456            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
     7457            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
     7458            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     7459            ;;
     7460        SCO_SV-3.2*)
     7461            # Note, dlopen is available only on SCO 3.2.5 and greater. However,
     7462            # this test works, since "uname -s" was non-standard in 3.2.4 and
     7463            # below.
     7464            if test "$GCC" = "yes" ; then
     7465                SHLIB_CFLAGS="-fPIC -melf"
     7466                LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
     7467            else
     7468                SHLIB_CFLAGS="-Kpic -belf"
     7469                LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
     7470            fi
     7471            SHLIB_LD="ld -G"
     7472            SHLIB_LD_LIBS=""
     7473            SHLIB_SUFFIX=".so"
     7474            DL_OBJS="tclLoadDl.o"
     7475            DL_LIBS=""
     7476            CC_SEARCH_FLAGS=""
     7477            LD_SEARCH_FLAGS=""
     7478            ;;
     7479        SINIX*5.4*)
     7480            SHLIB_CFLAGS="-K PIC"
     7481            SHLIB_LD="cc -G"
     7482            SHLIB_LD_LIBS=""
     7483            SHLIB_SUFFIX=".so"
     7484            DL_OBJS="tclLoadDl.o"
     7485            DL_LIBS="-ldl"
     7486            CC_SEARCH_FLAGS=""
     7487            LD_SEARCH_FLAGS=""
     7488            ;;
     7489        SunOS-4*)
     7490            SHLIB_CFLAGS="-PIC"
     7491            SHLIB_LD="ld"
     7492            SHLIB_LD_LIBS=""
     7493            SHLIB_SUFFIX=".so"
     7494            DL_OBJS="tclLoadDl.o"
     7495            DL_LIBS="-ldl"
     7496            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
     7497            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     7498
     7499            # SunOS can't handle version numbers with dots in them in library
     7500            # specs, like -ltcl7.5, so use -ltcl75 instead.  Also, it
     7501            # requires an extra version number at the end of .so file names.
     7502            # So, the library has to have a name like libtcl75.so.1.0
     7503
     7504            SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
     7505            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
     7506            TCL_LIB_VERSIONS_OK=nodots
     7507            ;;
     7508        SunOS-5.[0-6])
     7509            # Careful to not let 5.10+ fall into this case
     7510
     7511            # Note: If _REENTRANT isn't defined, then Solaris
     7512            # won't define thread-safe library routines.
     7513
     7514            $as_echo "#define _REENTRANT 1" >>confdefs.h
     7515
     7516            $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
     7517
     7518
     7519            SHLIB_CFLAGS="-KPIC"
     7520
     7521            # Note: need the LIBS below, otherwise Tk won't find Tcl's
     7522            # symbols when dynamically loaded into tclsh.
     7523
     7524            SHLIB_LD_LIBS='${LIBS}'
     7525            SHLIB_SUFFIX=".so"
     7526            DL_OBJS="tclLoadDl.o"
     7527            DL_LIBS="-ldl"
     7528            if test "$GCC" = "yes" ; then
     7529                SHLIB_LD="$CC -shared"
     7530                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
     7531                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     7532            else
     7533                SHLIB_LD="/usr/ccs/bin/ld -G -z text"
     7534                CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
     7535                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     7536            fi
     7537            ;;
     7538        SunOS-5*)
     7539            # Note: If _REENTRANT isn't defined, then Solaris
     7540            # won't define thread-safe library routines.
     7541
     7542            $as_echo "#define _REENTRANT 1" >>confdefs.h
     7543
     7544            $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
     7545
     7546
     7547            SHLIB_CFLAGS="-KPIC"
     7548
     7549            # Check to enable 64-bit flags for compiler/linker
     7550            if test "$do64bit" = "yes" ; then
     7551                arch=`isainfo`
     7552                if test "$arch" = "sparcv9 sparc" ; then
     7553                        if test "$GCC" = "yes" ; then
     7554                            if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then
     7555                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
     7556$as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
     7557                            else
     7558                                do64bit_ok=yes
     7559                                CFLAGS="$CFLAGS -m64 -mcpu=v9"
     7560                                LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
     7561                                SHLIB_CFLAGS="-fPIC"
     7562                            fi
     7563                        else
     7564                            do64bit_ok=yes
     7565                            if test "$do64bitVIS" = "yes" ; then
     7566                                CFLAGS="$CFLAGS -xarch=v9a"
     7567                                LDFLAGS="$LDFLAGS -xarch=v9a"
     7568                            else
     7569                                CFLAGS="$CFLAGS -xarch=v9"
     7570                                LDFLAGS="$LDFLAGS -xarch=v9"
     7571                            fi
     7572                            # Solaris 64 uses this as well
     7573                            #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
     7574                        fi
     7575                elif test "$arch" = "amd64 i386" ; then
     7576                    if test "$GCC" = "yes" ; then
     7577                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
     7578$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
     7579                    else
     7580                        do64bit_ok=yes
     7581                        CFLAGS="$CFLAGS -xarch=amd64"
     7582                        LDFLAGS="$LDFLAGS -xarch=amd64"
     7583                    fi
     7584                else
     7585                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
     7586$as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
     7587                fi
     7588            fi
     7589
     7590            # Note: need the LIBS below, otherwise Tk won't find Tcl's
     7591            # symbols when dynamically loaded into tclsh.
     7592
     7593            SHLIB_LD_LIBS='${LIBS}'
     7594            SHLIB_SUFFIX=".so"
     7595            DL_OBJS="tclLoadDl.o"
     7596            DL_LIBS="-ldl"
     7597            if test "$GCC" = "yes" ; then
     7598                SHLIB_LD="$CC -shared"
     7599                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
     7600                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     7601                if test "$do64bit_ok" = "yes" ; then
     7602                    # We need to specify -static-libgcc or we need to
     7603                    # add the path to the sparv9 libgcc.
     7604                    SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
     7605                    # for finding sparcv9 libgcc, get the regular libgcc
     7606                    # path, remove so name and append 'sparcv9'
     7607                    #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
     7608                    #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
     7609                fi
     7610            else
     7611                case $system in
     7612                    SunOS-5.[1-9][0-9]*)
     7613                        SHLIB_LD='${CC} -G -z text ${LDFLAGS}';;
     7614                    *)
     7615                        SHLIB_LD="/usr/ccs/bin/ld -G -z text";;
     7616                esac
     7617                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
     7618                LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
     7619            fi
     7620            ;;
     7621        ULTRIX-4.*)
     7622            SHLIB_CFLAGS="-G 0"
     7623            SHLIB_SUFFIX=".a"
     7624            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
     7625            SHLIB_LD_LIBS='${LIBS}'
     7626            DL_OBJS="tclLoadAout.o"
     7627            DL_LIBS=""
     7628            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
     7629            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
     7630            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     7631            if test "$GCC" != "yes" ; then
     7632                CFLAGS="$CFLAGS -DHAVE_TZSET -std1"
     7633            fi
     7634            ;;
     7635        UNIX_SV* | UnixWare-5*)
     7636            SHLIB_CFLAGS="-KPIC"
     7637            SHLIB_LD="cc -G"
     7638            SHLIB_LD_LIBS=""
     7639            SHLIB_SUFFIX=".so"
     7640            DL_OBJS="tclLoadDl.o"
     7641            DL_LIBS="-ldl"
     7642            # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
     7643            # that don't grok the -Bexport option.  Test that it does.
     7644            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
     7645$as_echo_n "checking for ld accepts -Bexport flag... " >&6; }
     7646if ${tcl_cv_ld_Bexport+:} false; then :
     7647  $as_echo_n "(cached) " >&6
     7648else
     7649
     7650                hold_ldflags=$LDFLAGS
     7651                LDFLAGS="$LDFLAGS -Wl,-Bexport"
     7652                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     7653/* end confdefs.h.  */
     7654
     7655int
     7656main ()
     7657{
     7658int i;
     7659  ;
     7660  return 0;
     7661}
     7662_ACEOF
     7663if ac_fn_cxx_try_link "$LINENO"; then :
     7664  tcl_cv_ld_Bexport=yes
     7665else
     7666  tcl_cv_ld_Bexport=no
     7667fi
     7668rm -f core conftest.err conftest.$ac_objext \
     7669    conftest$ac_exeext conftest.$ac_ext
     7670                LDFLAGS=$hold_ldflags
     7671fi
     7672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
     7673$as_echo "$tcl_cv_ld_Bexport" >&6; }
     7674            if test $tcl_cv_ld_Bexport = yes; then
     7675                LDFLAGS="$LDFLAGS -Wl,-Bexport"
     7676            fi
     7677            CC_SEARCH_FLAGS=""
     7678            LD_SEARCH_FLAGS=""
     7679            ;;
     7680    esac
     7681
     7682    if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then
     7683        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
     7684$as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
     7685    fi
     7686
     7687
     7688
     7689
     7690    # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic
     7691    # Loading for Tcl -- What Became of It?".  Proc. 2nd Tcl/Tk Workshop,
     7692    # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need
     7693    # to determine which of several header files defines the a.out file
     7694    # format (a.out.h, sys/exec.h, or sys/exec_aout.h).  At present, we
     7695    # support only a file format that is more or less version-7-compatible.
     7696    # In particular,
     7697    #   - a.out files must begin with `struct exec'.
     7698    #   - the N_TXTOFF on the `struct exec' must compute the seek address
     7699    #     of the text segment
     7700    #   - The `struct exec' must contain a_magic, a_text, a_data, a_bss
     7701    #     and a_entry fields.
     7702    # The following compilation should succeed if and only if either sys/exec.h
     7703    # or a.out.h is usable for the purpose.
     7704    #
     7705    # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the
     7706    # `struct exec' includes a second header that contains information that
     7707    # duplicates the v7 fields that are needed.
     7708
     7709    if test "x$DL_OBJS" = "xtclLoadAout.o" ; then
     7710        { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec.h" >&5
     7711$as_echo_n "checking sys/exec.h... " >&6; }
     7712if ${tcl_cv_sysexec_h+:} false; then :
     7713  $as_echo_n "(cached) " >&6
     7714else
     7715
     7716        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     7717/* end confdefs.h.  */
     7718#include <sys/exec.h>
     7719int
     7720main ()
     7721{
     7722
     7723            struct exec foo;
     7724            unsigned long seek;
     7725            int flag;
     7726#if defined(__mips) || defined(mips)
     7727            seek = N_TXTOFF (foo.ex_f, foo.ex_o);
     7728#else
     7729            seek = N_TXTOFF (foo);
     7730#endif
     7731            flag = (foo.a_magic == OMAGIC);
     7732            return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
     7733
     7734  ;
     7735  return 0;
     7736}
     7737_ACEOF
     7738if ac_fn_cxx_try_compile "$LINENO"; then :
     7739  tcl_cv_sysexec_h=usable
     7740else
     7741  tcl_cv_sysexec_h=unusable
     7742fi
     7743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     7744fi
     7745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexec_h" >&5
     7746$as_echo "$tcl_cv_sysexec_h" >&6; }
     7747        if test $tcl_cv_sysexec_h = usable; then
     7748            $as_echo "#define USE_SYS_EXEC_H 1" >>confdefs.h
     7749
     7750        else
     7751            { $as_echo "$as_me:${as_lineno-$LINENO}: checking a.out.h" >&5
     7752$as_echo_n "checking a.out.h... " >&6; }
     7753if ${tcl_cv_aout_h+:} false; then :
     7754  $as_echo_n "(cached) " >&6
     7755else
     7756
     7757            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     7758/* end confdefs.h.  */
     7759#include <a.out.h>
     7760int
     7761main ()
     7762{
     7763
     7764                struct exec foo;
     7765                unsigned long seek;
     7766                int flag;
     7767#if defined(__mips) || defined(mips)
     7768                seek = N_TXTOFF (foo.ex_f, foo.ex_o);
     7769#else
     7770                seek = N_TXTOFF (foo);
     7771#endif
     7772                flag = (foo.a_magic == OMAGIC);
     7773                return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
     7774
     7775  ;
     7776  return 0;
     7777}
     7778_ACEOF
     7779if ac_fn_cxx_try_compile "$LINENO"; then :
     7780  tcl_cv_aout_h=usable
     7781else
     7782  tcl_cv_aout_h=unusable
     7783fi
     7784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     7785fi
     7786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_aout_h" >&5
     7787$as_echo "$tcl_cv_aout_h" >&6; }
     7788            if test $tcl_cv_aout_h = usable; then
     7789                $as_echo "#define USE_A_OUT_H 1" >>confdefs.h
     7790
     7791            else
     7792                { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec_aout.h" >&5
     7793$as_echo_n "checking sys/exec_aout.h... " >&6; }
     7794if ${tcl_cv_sysexecaout_h+:} false; then :
     7795  $as_echo_n "(cached) " >&6
     7796else
     7797
     7798                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     7799/* end confdefs.h.  */
     7800#include <sys/exec_aout.h>
     7801int
     7802main ()
     7803{
     7804
     7805                    struct exec foo;
     7806                    unsigned long seek;
     7807                    int flag;
     7808#if defined(__mips) || defined(mips)
     7809                    seek = N_TXTOFF (foo.ex_f, foo.ex_o);
     7810#else
     7811                    seek = N_TXTOFF (foo);
     7812#endif
     7813                    flag = (foo.a_midmag == OMAGIC);
     7814                    return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
     7815
     7816  ;
     7817  return 0;
     7818}
     7819_ACEOF
     7820if ac_fn_cxx_try_compile "$LINENO"; then :
     7821  tcl_cv_sysexecaout_h=usable
     7822else
     7823  tcl_cv_sysexecaout_h=unusable
     7824fi
     7825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     7826fi
     7827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexecaout_h" >&5
     7828$as_echo "$tcl_cv_sysexecaout_h" >&6; }
     7829                if test $tcl_cv_sysexecaout_h = usable; then
     7830                    $as_echo "#define USE_SYS_EXEC_AOUT_H 1" >>confdefs.h
     7831
     7832                else
     7833                    DL_OBJS=""
     7834                fi
     7835            fi
     7836        fi
     7837    fi
     7838
     7839    # Step 5: disable dynamic loading if requested via a command-line switch.
     7840
     7841    # Check whether --enable-load was given.
     7842if test "${enable_load+set}" = set; then :
     7843  enableval=$enable_load; tcl_ok=$enableval
     7844else
     7845  tcl_ok=yes
     7846fi
     7847
     7848    if test "$tcl_ok" = "no"; then
     7849        DL_OBJS=""
     7850    fi
     7851
     7852    if test "x$DL_OBJS" != "x" ; then
     7853        BUILD_DLTEST="\$(DLTEST_TARGETS)"
     7854    else
     7855        echo "Can't figure out how to do dynamic loading or shared libraries"
     7856        echo "on this system."
     7857        SHLIB_CFLAGS=""
     7858        SHLIB_LD=""
     7859        SHLIB_SUFFIX=""
     7860        DL_OBJS="tclLoadNone.o"
     7861        DL_LIBS=""
     7862        LDFLAGS="$LDFLAGS_ORIG"
     7863        CC_SEARCH_FLAGS=""
     7864        LD_SEARCH_FLAGS=""
     7865        BUILD_DLTEST=""
     7866    fi
     7867
     7868    # If we're running gcc, then change the C flags for compiling shared
     7869    # libraries to the right flags for gcc, instead of those for the
     7870    # standard manufacturer compiler.
     7871
     7872    if test "$DL_OBJS" != "tclLoadNone.o" ; then
     7873        if test "$GCC" = "yes" ; then
     7874            case $system in
     7875                AIX-*)
     7876                    ;;
     7877                BSD/OS*)
     7878                    ;;
     7879                IRIX*)
     7880                    ;;
     7881                NetBSD-*|FreeBSD-*|OpenBSD-*)
     7882                    ;;
     7883                Darwin-*)
     7884                    ;;
     7885                RISCos-*)
     7886                    ;;
     7887                SCO_SV-3.2*)
     7888                    ;;
     7889                ULTRIX-4.*)
     7890                    ;;
     7891                *)
     7892                    SHLIB_CFLAGS="-fPIC"
     7893                    ;;
     7894            esac
     7895        fi
     7896    fi
     7897
     7898    if test "$SHARED_LIB_SUFFIX" = "" ; then
     7899        SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}${SHLIB_SUFFIX}'
     7900    fi
     7901    if test "$UNSHARED_LIB_SUFFIX" = "" ; then
     7902        UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
     7903    fi
     7904
     7905    if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then
     7906        LIB_SUFFIX=${SHARED_LIB_SUFFIX}
     7907        MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}'
     7908        INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
     7909    else
     7910        LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}
     7911
     7912        if test "$RANLIB" = "" ; then
     7913            MAKE_LIB='$(STLIB_LD) $@ ${OBJS}'
     7914            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
     7915        else
     7916            MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@'
     7917            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))'
     7918        fi
     7919
     7920    fi
     7921
     7922
     7923    # Stub lib does not depend on shared/static configuration
     7924    if test "$RANLIB" = "" ; then
     7925        MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}'
     7926        INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)'
     7927    else
     7928        MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@'
     7929        INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))'
     7930    fi
     7931
     7932
     7933
     7934
     7935
     7936
     7937
     7938
     7939
     7940
     7941
     7942
     7943
     7944
     7945
     7946
     7947
     7948
     7949
     7950
     7951
     7952
     7953
     7954
     7955
     7956
     7957
     7958
     7959
     7960
     7961
     7962
     7963
     7964    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5
     7965$as_echo_n "checking for build with symbols... " >&6; }
     7966    # Check whether --enable-symbols was given.
     7967if test "${enable_symbols+set}" = set; then :
     7968  enableval=$enable_symbols; tcl_ok=$enableval
     7969else
     7970  tcl_ok=no
     7971fi
     7972
     7973# FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT.
     7974    if test "$tcl_ok" = "no"; then
     7975        CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)'
     7976        LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)'
     7977        DBGX=""
     7978        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     7979$as_echo "no" >&6; }
     7980    else
     7981        CFLAGS_DEFAULT='$(CFLAGS_DEBUG)'
     7982        LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)'
     7983        DBGX=g
     7984        if test "$tcl_ok" = "yes"; then
     7985            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5
     7986$as_echo "yes (standard debugging)" >&6; }
     7987        fi
     7988    fi
     7989
     7990
     7991
     7992    if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
     7993        $as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h
     7994
     7995    fi
     7996
     7997    if test "$tcl_ok" = "compile" -o "$tcl_ok" = "all"; then
     7998        $as_echo "#define TCL_COMPILE_DEBUG 1" >>confdefs.h
     7999
     8000        $as_echo "#define TCL_COMPILE_STATS 1" >>confdefs.h
     8001
     8002    fi
     8003
     8004    if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
     8005        if test "$tcl_ok" = "all"; then
     8006            { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem compile debugging" >&5
     8007$as_echo "enabled symbols mem compile debugging" >&6; }
     8008        else
     8009            { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5
     8010$as_echo "enabled $tcl_ok debugging" >&6; }
     8011        fi
     8012    fi
     8013
    61068014
    61078015
     
    61588066
    61598067
    6160 ac_config_files="$ac_config_files Makefile fixrunpaths.tcl apps/Makefile apps/about apps/copy_rappture_examples apps/encodedata apps/rappture apps/rappture-csh.env apps/rappture.env apps/rappture.use apps/rerun apps/simsim apps/xmldiff pkgs/DicomToVtk/Makefile pkgs/DicomToVtk/pkgIndex.tcl pkgs/DxToVtk/Makefile pkgs/DxToVtk/pkgIndex.tcl pkgs/Makefile pkgs/PdbToVtk/Makefile pkgs/PdbToVtk/pkgIndex.tcl pkgs/builder/Makefile pkgs/builder/pkgIndex.tcl pkgs/builder/scripts/Makefile pkgs/diffview/Makefile pkgs/diffview/pkgIndex.tcl pkgs/hotspot/Makefile pkgs/hotspot/pkgIndex.tcl pkgs/listbox/Makefile pkgs/listbox/pkgIndex.tcl pkgs/objects/Makefile pkgs/p2p/Makefile pkgs/placard/Makefile pkgs/placard/pkgIndex.tcl pkgs/readpoints/Makefile pkgs/readpoints/pkgIndex.tcl pkgs/runner/Makefile pkgs/runner/pkgIndex.tcl pkgs/runner/scripts/Makefile pkgs/squeezer/Makefile pkgs/squeezer/pkgIndex.tcl pkgs/system/Makefile pkgs/system/pkgIndex.tcl pkgs/tester/Makefile pkgs/tester/pkgIndex.tcl pkgs/tester/scripts/Makefile"
     8068
     8069
     8070
     8071
     8072
     8073
     8074
     8075
     8076
     8077
     8078
     8079
     8080ac_config_files="$ac_config_files Makefile fixrunpaths.tcl apps/Makefile apps/about apps/copy_rappture_examples apps/encodedata apps/rappture apps/rappture-csh.env apps/rappture.env apps/rappture.use apps/rerun apps/simsim apps/xmldiff lib/Makefile lib/objects/Makefile lib/objects/RpHash.h lib/rappture/Makefile lib/rappture2/Makefile lib/rapptureConfig.sh pkgs/DicomToVtk/Makefile pkgs/DicomToVtk/pkgIndex.tcl pkgs/DxToVtk/Makefile pkgs/DxToVtk/pkgIndex.tcl pkgs/Makefile pkgs/PdbToVtk/Makefile pkgs/PdbToVtk/pkgIndex.tcl pkgs/builder/Makefile pkgs/builder/pkgIndex.tcl pkgs/builder/scripts/Makefile pkgs/diffview/Makefile pkgs/diffview/pkgIndex.tcl pkgs/hotspot/Makefile pkgs/hotspot/pkgIndex.tcl pkgs/listbox/Makefile pkgs/listbox/pkgIndex.tcl pkgs/objects/Makefile pkgs/p2p/Makefile pkgs/placard/Makefile pkgs/placard/pkgIndex.tcl pkgs/readpoints/Makefile pkgs/readpoints/pkgIndex.tcl pkgs/runner/Makefile pkgs/runner/pkgIndex.tcl pkgs/runner/scripts/Makefile pkgs/squeezer/Makefile pkgs/squeezer/pkgIndex.tcl pkgs/system/Makefile pkgs/system/pkgIndex.tcl pkgs/tester/Makefile pkgs/tester/pkgIndex.tcl pkgs/tester/scripts/Makefile"
    61618081
    61628082cat >confcache <<\_ACEOF
     
    62508170test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    62518171
    6252 # Transform confdefs.h into DEFS.
    6253 # Protect against shell expansion while executing Makefile rules.
    6254 # Protect against Makefile macro expansion.
    6255 #
    6256 # If the first sed substitution is executed (which looks for macros that
    6257 # take arguments), then branch to the quote section.  Otherwise,
    6258 # look for a macro that doesn't take arguments.
    6259 ac_script='
    6260 :mline
    6261 /\\$/{
    6262  N
    6263  s,\\\n,,
    6264  b mline
    6265 }
    6266 t clear
    6267 :clear
    6268 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
    6269 t quote
    6270 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
    6271 t quote
    6272 b any
    6273 :quote
    6274 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
    6275 s/\[/\\&/g
    6276 s/\]/\\&/g
    6277 s/\$/$$/g
    6278 H
    6279 :any
    6280 ${
    6281         g
    6282         s/^\n//
    6283         s/\n/ /g
    6284         p
    6285 }
    6286 '
    6287 DEFS=`sed -n "$ac_script" confdefs.h`
    6288 
     8172DEFS=-DHAVE_CONFIG_H
    62898173
    62908174ac_libobjs=
     
    67218605esac
    67228606
     8607case $ac_config_headers in *"
     8608"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
     8609esac
    67238610
    67248611
     
    67268613# Files that config.status was made for.
    67278614config_files="$ac_config_files"
     8615config_headers="$ac_config_headers"
    67288616
    67298617_ACEOF
     
    67468634      --file=FILE[:TEMPLATE]
    67478635                   instantiate the configuration file FILE
     8636      --header=FILE[:TEMPLATE]
     8637                   instantiate the configuration header FILE
    67488638
    67498639Configuration files:
    67508640$config_files
     8641
     8642Configuration headers:
     8643$config_headers
    67518644
    67528645Report bugs to <rappture@nanohub.org>."
     
    68128705    as_fn_append CONFIG_FILES " '$ac_optarg'"
    68138706    ac_need_defaults=false;;
    6814   --he | --h |  --help | --hel | -h )
     8707  --header | --heade | --head | --hea )
     8708    $ac_shift
     8709    case $ac_optarg in
     8710    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
     8711    esac
     8712    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
     8713    ac_need_defaults=false;;
     8714  --he | --h)
     8715    # Conflict between --help and --header
     8716    as_fn_error $? "ambiguous option: \`$1'
     8717Try \`$0 --help' for more information.";;
     8718  --help | --hel | -h )
    68158719    $as_echo "$ac_cs_usage"; exit ;;
    68168720  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     
    68688772do
    68698773  case $ac_config_target in
     8774    "lib/rappture/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/rappture/config.h" ;;
    68708775    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    68718776    "fixrunpaths.tcl") CONFIG_FILES="$CONFIG_FILES fixrunpaths.tcl" ;;
     
    68818786    "apps/simsim") CONFIG_FILES="$CONFIG_FILES apps/simsim" ;;
    68828787    "apps/xmldiff") CONFIG_FILES="$CONFIG_FILES apps/xmldiff" ;;
     8788    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
     8789    "lib/objects/Makefile") CONFIG_FILES="$CONFIG_FILES lib/objects/Makefile" ;;
     8790    "lib/objects/RpHash.h") CONFIG_FILES="$CONFIG_FILES lib/objects/RpHash.h" ;;
     8791    "lib/rappture/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rappture/Makefile" ;;
     8792    "lib/rappture2/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rappture2/Makefile" ;;
     8793    "lib/rapptureConfig.sh") CONFIG_FILES="$CONFIG_FILES lib/rapptureConfig.sh" ;;
    68838794    "pkgs/DicomToVtk/Makefile") CONFIG_FILES="$CONFIG_FILES pkgs/DicomToVtk/Makefile" ;;
    68848795    "pkgs/DicomToVtk/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgs/DicomToVtk/pkgIndex.tcl" ;;
     
    69258836if $ac_need_defaults; then
    69268837  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
     8838  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
    69278839fi
    69288840
     
    71129024fi # test -n "$CONFIG_FILES"
    71139025
    7114 
    7115 eval set X "  :F $CONFIG_FILES      "
     9026# Set up the scripts for CONFIG_HEADERS section.
     9027# No need to generate them if there are no CONFIG_HEADERS.
     9028# This happens for instance with `./config.status Makefile'.
     9029if test -n "$CONFIG_HEADERS"; then
     9030cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
     9031BEGIN {
     9032_ACEOF
     9033
     9034# Transform confdefs.h into an awk script `defines.awk', embedded as
     9035# here-document in config.status, that substitutes the proper values into
     9036# config.h.in to produce config.h.
     9037
     9038# Create a delimiter string that does not exist in confdefs.h, to ease
     9039# handling of long lines.
     9040ac_delim='%!_!# '
     9041for ac_last_try in false false :; do
     9042  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
     9043  if test -z "$ac_tt"; then
     9044    break
     9045  elif $ac_last_try; then
     9046    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
     9047  else
     9048    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     9049  fi
     9050done
     9051
     9052# For the awk script, D is an array of macro values keyed by name,
     9053# likewise P contains macro parameters if any.  Preserve backslash
     9054# newline sequences.
     9055
     9056ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
     9057sed -n '
     9058s/.\{148\}/&'"$ac_delim"'/g
     9059t rset
     9060:rset
     9061s/^[     ]*#[    ]*define[       ][      ]*/ /
     9062t def
     9063d
     9064:def
     9065s/\\$//
     9066t bsnl
     9067s/["\\]/\\&/g
     9068s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
     9069D["\1"]=" \3"/p
     9070s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
     9071d
     9072:bsnl
     9073s/["\\]/\\&/g
     9074s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
     9075D["\1"]=" \3\\\\\\n"\\/p
     9076t cont
     9077s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
     9078t cont
     9079d
     9080:cont
     9081n
     9082s/.\{148\}/&'"$ac_delim"'/g
     9083t clear
     9084:clear
     9085s/\\$//
     9086t bsnlc
     9087s/["\\]/\\&/g; s/^/"/; s/$/"/p
     9088d
     9089:bsnlc
     9090s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
     9091b cont
     9092' <confdefs.h | sed '
     9093s/'"$ac_delim"'/"\\\
     9094"/g' >>$CONFIG_STATUS || ac_write_fail=1
     9095
     9096cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
     9097  for (key in D) D_is_set[key] = 1
     9098  FS = ""
     9099}
     9100/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
     9101  line = \$ 0
     9102  split(line, arg, " ")
     9103  if (arg[1] == "#") {
     9104    defundef = arg[2]
     9105    mac1 = arg[3]
     9106  } else {
     9107    defundef = substr(arg[1], 2)
     9108    mac1 = arg[2]
     9109  }
     9110  split(mac1, mac2, "(") #)
     9111  macro = mac2[1]
     9112  prefix = substr(line, 1, index(line, defundef) - 1)
     9113  if (D_is_set[macro]) {
     9114    # Preserve the white space surrounding the "#".
     9115    print prefix "define", macro P[macro] D[macro]
     9116    next
     9117  } else {
     9118    # Replace #undef with comments.  This is necessary, for example,
     9119    # in the case of _POSIX_SOURCE, which is predefined and required
     9120    # on some systems where configure will not decide to define it.
     9121    if (defundef == "undef") {
     9122      print "/*", prefix defundef, macro, "*/"
     9123      next
     9124    }
     9125  }
     9126}
     9127{ print }
     9128_ACAWK
     9129_ACEOF
     9130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
     9131  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
     9132fi # test -n "$CONFIG_HEADERS"
     9133
     9134
     9135eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
    71169136shift
    71179137for ac_tag
     
    73329352  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    73339353 ;;
    7334 
     9354  :H)
     9355  #
     9356  # CONFIG_HEADER
     9357  #
     9358  if test x"$ac_file" != x-; then
     9359    {
     9360      $as_echo "/* $configure_input  */" \
     9361      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
     9362    } >"$ac_tmp/config.h" \
     9363      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     9364    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
     9365      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
     9366$as_echo "$as_me: $ac_file is unchanged" >&6;}
     9367    else
     9368      rm -f "$ac_file"
     9369      mv "$ac_tmp/config.h" "$ac_file" \
     9370        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     9371    fi
     9372  else
     9373    $as_echo "/* $configure_input  */" \
     9374      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
     9375      || as_fn_error $? "could not create -" "$LINENO" 5
     9376  fi
     9377 ;;
    73359378
    73369379
Note: See TracChangeset for help on using the changeset viewer.