Changeset 2117


Ignore:
Timestamp:
Mar 2, 2011 7:22:07 PM (11 years ago)
Author:
mmc
Message:

Added the "placard" canvas item type and a first cut at the Diffview
widget for showing textual diffs. I've been working on both of these
as part of "gui15", but we probably need Diffview for the new regression
tester, so I'm moving them over. The Diffview still needs lots of work.

Location:
trunk/gui
Files:
7 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/Makefile.in

    r1944 r2117  
    2828.PHONY: src scripts apps
    2929
    30 all: scripts apps
     30all: src scripts apps
    3131
    3232scripts:
    3333        $(MAKE) -C scripts all
    3434src:
    35         $(MAKE) -C all
     35        $(MAKE) -C src all
    3636apps:
    3737        $(MAKE) -C apps all
    3838
    39 install: install_scripts install_apps
     39install: install_src install_scripts install_apps
    4040        $(MKDIR_P) -m 0755 $(destdir)
    4141        @for i in $(FILES); do \
     
    4747install_scripts: scripts
    4848        $(MAKE) -C scripts install
     49install_src: src
     50        $(MAKE) -C src install
    4951install_apps: apps
    5052        $(MAKE) -C apps install
  • trunk/gui/configure

    r1870 r2117  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.65 for RapptureGUI 1.1.
     3# Generated by GNU Autoconf 2.64 for RapptureGUI 1.1.
    44#
    55# Report bugs to <rappture@nanohub.org>.
    66#
    7 #
    87# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
    9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
    10 # Inc.
    11 #
     8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
     9# Foundation, Inc.
    1210#
    1311# This configure script is free software; the Free Software Foundation
     
    173171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    174172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
     173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
     174test \$(( 1 + 1 )) = 2 || exit 1"
    176175  if (eval "$as_required") 2>/dev/null; then :
    177176  as_have_required=yes
     
    529528
    530529
    531 test -n "$DJDIR" || exec 7<&0 </dev/null
    532 exec 6>&1
     530exec 7<&0 </dev/null 6>&1
    533531
    534532# Name of the host.
     
    557555PACKAGE_URL=''
    558556
     557# Factoring default headers for most tests.
     558ac_includes_default="\
     559#include <stdio.h>
     560#ifdef HAVE_SYS_TYPES_H
     561# include <sys/types.h>
     562#endif
     563#ifdef HAVE_SYS_STAT_H
     564# include <sys/stat.h>
     565#endif
     566#ifdef STDC_HEADERS
     567# include <stdlib.h>
     568# include <stddef.h>
     569#else
     570# ifdef HAVE_STDLIB_H
     571#  include <stdlib.h>
     572# endif
     573#endif
     574#ifdef HAVE_STRING_H
     575# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
     576#  include <memory.h>
     577# endif
     578# include <string.h>
     579#endif
     580#ifdef HAVE_STRINGS_H
     581# include <strings.h>
     582#endif
     583#ifdef HAVE_INTTYPES_H
     584# include <inttypes.h>
     585#endif
     586#ifdef HAVE_STDINT_H
     587# include <stdint.h>
     588#endif
     589#ifdef HAVE_UNISTD_H
     590# include <unistd.h>
     591#endif"
     592
    559593ac_subst_vars='LTLIBOBJS
    560594LIBOBJS
     
    566600ENABLE_GUI
    567601MAKE
     602SHLIB_LDFLAGS
     603INSTALL_STUB_LIB
     604INSTALL_LIB
     605MAKE_STUB_LIB
     606MAKE_LIB
     607SHLIB_SUFFIX
     608SHLIB_CFLAGS
     609SHLIB_LD_LIBS
     610TK_SHLIB_LD_EXTRAS
     611TCL_SHLIB_LD_EXTRAS
     612SHLIB_LD
     613STLIB_LD
     614LD_SEARCH_FLAGS
     615CC_SEARCH_FLAGS
     616LDFLAGS_OPTIMIZE
     617LDFLAGS_DEBUG
     618CFLAGS_WARNING
     619CFLAGS_OPTIMIZE
     620CFLAGS_DEBUG
     621PLAT_SRCS
     622PLAT_OBJS
     623DL_OBJS
     624DL_LIBS
     625EGREP
     626GREP
     627CPP
     628AR
     629OBJEXT
     630EXEEXT
     631ac_ct_CC
     632CPPFLAGS
     633LDFLAGS
     634CFLAGS
     635CC
    568636SET_MAKE
    569637MKDIR_P
     
    627695ac_user_opts='
    628696enable_option_checking
     697enable_64bit
     698enable_64bit_vis
     699enable_corefoundation
     700enable_load
     701enable_shared
    629702enable_gui
    630703with_tclsh
     
    632705      ac_precious_vars='build_alias
    633706host_alias
    634 target_alias'
     707target_alias
     708CC
     709CFLAGS
     710LDFLAGS
     711LIBS
     712CPPFLAGS
     713CPP'
    635714
    636715
     
    12481327  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    12491328  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     1329  --enable-64bit          enable 64bit support (where applicable)
     1330  --enable-64bit-vis      enable 64bit Sparc VIS support
     1331  --enable-corefoundation use CoreFoundation API --enable-corefoundation
     1332  --disable-load          disallow dynamic loading and "load" command
     1333  --enable-shared         build and link with shared libraries --enable-shared
    12501334  --enable-gui            build code related to the graphical user interface
    12511335                          [default=yes]
     
    12551339  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    12561340  --with-tclsh=DIR        location of tclsh [default=yes]
     1341
     1342Some influential environment variables:
     1343  CC          C compiler command
     1344  CFLAGS      C compiler flags
     1345  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
     1346              nonstandard directory <lib dir>
     1347  LIBS        libraries to pass to the linker, e.g. -l<library>
     1348  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
     1349              you have headers in a nonstandard directory <include dir>
     1350  CPP         C preprocessor
     1351
     1352Use these variables to override the choices made by `configure' or to help
     1353it to find libraries and programs with nonstandard names/locations.
    12571354
    12581355Report bugs to <rappture@nanohub.org>.
     
    13201417  cat <<\_ACEOF
    13211418RapptureGUI configure 1.1
    1322 generated by GNU Autoconf 2.65
     1419generated by GNU Autoconf 2.64
    13231420
    13241421Copyright (C) 2009 Free Software Foundation, Inc.
     
    13321429## Autoconf initialization. ##
    13331430## ------------------------ ##
     1431
     1432# ac_fn_c_try_compile LINENO
     1433# --------------------------
     1434# Try to compile conftest.$ac_ext, and return whether this succeeded.
     1435ac_fn_c_try_compile ()
     1436{
     1437  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1438  rm -f conftest.$ac_objext
     1439  if { { ac_try="$ac_compile"
     1440case "(($ac_try" in
     1441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1442  *) ac_try_echo=$ac_try;;
     1443esac
     1444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1445$as_echo "$ac_try_echo"; } >&5
     1446  (eval "$ac_compile") 2>conftest.err
     1447  ac_status=$?
     1448  if test -s conftest.err; then
     1449    grep -v '^ *+' conftest.err >conftest.er1
     1450    cat conftest.er1 >&5
     1451    mv -f conftest.er1 conftest.err
     1452  fi
     1453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1454  test $ac_status = 0; } && {
     1455         test -z "$ac_c_werror_flag" ||
     1456         test ! -s conftest.err
     1457       } && test -s conftest.$ac_objext; then :
     1458  ac_retval=0
     1459else
     1460  $as_echo "$as_me: failed program was:" >&5
     1461sed 's/^/| /' conftest.$ac_ext >&5
     1462
     1463        ac_retval=1
     1464fi
     1465  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1466  return $ac_retval
     1467
     1468} # ac_fn_c_try_compile
     1469
     1470# ac_fn_c_try_link LINENO
     1471# -----------------------
     1472# Try to link conftest.$ac_ext, and return whether this succeeded.
     1473ac_fn_c_try_link ()
     1474{
     1475  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1476  rm -f conftest.$ac_objext conftest$ac_exeext
     1477  if { { ac_try="$ac_link"
     1478case "(($ac_try" in
     1479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1480  *) ac_try_echo=$ac_try;;
     1481esac
     1482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1483$as_echo "$ac_try_echo"; } >&5
     1484  (eval "$ac_link") 2>conftest.err
     1485  ac_status=$?
     1486  if test -s conftest.err; then
     1487    grep -v '^ *+' conftest.err >conftest.er1
     1488    cat conftest.er1 >&5
     1489    mv -f conftest.er1 conftest.err
     1490  fi
     1491  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1492  test $ac_status = 0; } && {
     1493         test -z "$ac_c_werror_flag" ||
     1494         test ! -s conftest.err
     1495       } && test -s conftest$ac_exeext && {
     1496         test "$cross_compiling" = yes ||
     1497         $as_test_x conftest$ac_exeext
     1498       }; then :
     1499  ac_retval=0
     1500else
     1501  $as_echo "$as_me: failed program was:" >&5
     1502sed 's/^/| /' conftest.$ac_ext >&5
     1503
     1504        ac_retval=1
     1505fi
     1506  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
     1507  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
     1508  # interfere with the next link command; also delete a directory that is
     1509  # left behind by Apple's compiler.  We do this before executing the actions.
     1510  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     1511  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1512  return $ac_retval
     1513
     1514} # ac_fn_c_try_link
     1515
     1516# ac_fn_c_try_cpp LINENO
     1517# ----------------------
     1518# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
     1519ac_fn_c_try_cpp ()
     1520{
     1521  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1522  if { { ac_try="$ac_cpp conftest.$ac_ext"
     1523case "(($ac_try" in
     1524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1525  *) ac_try_echo=$ac_try;;
     1526esac
     1527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1528$as_echo "$ac_try_echo"; } >&5
     1529  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
     1530  ac_status=$?
     1531  if test -s conftest.err; then
     1532    grep -v '^ *+' conftest.err >conftest.er1
     1533    cat conftest.er1 >&5
     1534    mv -f conftest.er1 conftest.err
     1535  fi
     1536  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1537  test $ac_status = 0; } >/dev/null && {
     1538         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
     1539         test ! -s conftest.err
     1540       }; then :
     1541  ac_retval=0
     1542else
     1543  $as_echo "$as_me: failed program was:" >&5
     1544sed 's/^/| /' conftest.$ac_ext >&5
     1545
     1546    ac_retval=1
     1547fi
     1548  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1549  return $ac_retval
     1550
     1551} # ac_fn_c_try_cpp
     1552
     1553# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
     1554# -------------------------------------------------------
     1555# Tests whether HEADER exists, giving a warning if it cannot be compiled using
     1556# the include files in INCLUDES and setting the cache variable VAR
     1557# accordingly.
     1558ac_fn_c_check_header_mongrel ()
     1559{
     1560  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1561  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
     1562  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1563$as_echo_n "checking for $2... " >&6; }
     1564if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
     1565  $as_echo_n "(cached) " >&6
     1566fi
     1567eval ac_res=\$$3
     1568               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1569$as_echo "$ac_res" >&6; }
     1570else
     1571  # Is the header compilable?
     1572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
     1573$as_echo_n "checking $2 usability... " >&6; }
     1574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1575/* end confdefs.h.  */
     1576$4
     1577#include <$2>
     1578_ACEOF
     1579if ac_fn_c_try_compile "$LINENO"; then :
     1580  ac_header_compiler=yes
     1581else
     1582  ac_header_compiler=no
     1583fi
     1584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
     1586$as_echo "$ac_header_compiler" >&6; }
     1587
     1588# Is the header present?
     1589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
     1590$as_echo_n "checking $2 presence... " >&6; }
     1591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1592/* end confdefs.h.  */
     1593#include <$2>
     1594_ACEOF
     1595if ac_fn_c_try_cpp "$LINENO"; then :
     1596  ac_header_preproc=yes
     1597else
     1598  ac_header_preproc=no
     1599fi
     1600rm -f conftest.err conftest.$ac_ext
     1601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
     1602$as_echo "$ac_header_preproc" >&6; }
     1603
     1604# So?  What about this header?
     1605case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
     1606  yes:no: )
     1607    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
     1608$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
     1609    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
     1610$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
     1611    ;;
     1612  no:yes:* )
     1613    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
     1614$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
     1615    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
     1616$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
     1617    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
     1618$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
     1619    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
     1620$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
     1621    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
     1622$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
     1623( cat <<\_ASBOX
     1624## ----------------------------------- ##
     1625## Report this to rappture@nanohub.org ##
     1626## ----------------------------------- ##
     1627_ASBOX
     1628     ) | sed "s/^/$as_me: WARNING:     /" >&2
     1629    ;;
     1630esac
     1631  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1632$as_echo_n "checking for $2... " >&6; }
     1633if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
     1634  $as_echo_n "(cached) " >&6
     1635else
     1636  eval "$3=\$ac_header_compiler"
     1637fi
     1638eval ac_res=\$$3
     1639               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1640$as_echo "$ac_res" >&6; }
     1641fi
     1642  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1643
     1644} # ac_fn_c_check_header_mongrel
     1645
     1646# ac_fn_c_try_run LINENO
     1647# ----------------------
     1648# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
     1649# that executables *can* be run.
     1650ac_fn_c_try_run ()
     1651{
     1652  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1653  if { { ac_try="$ac_link"
     1654case "(($ac_try" in
     1655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1656  *) ac_try_echo=$ac_try;;
     1657esac
     1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1659$as_echo "$ac_try_echo"; } >&5
     1660  (eval "$ac_link") 2>&5
     1661  ac_status=$?
     1662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1663  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
     1664  { { case "(($ac_try" in
     1665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     1666  *) ac_try_echo=$ac_try;;
     1667esac
     1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     1669$as_echo "$ac_try_echo"; } >&5
     1670  (eval "$ac_try") 2>&5
     1671  ac_status=$?
     1672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     1673  test $ac_status = 0; }; }; then :
     1674  ac_retval=0
     1675else
     1676  $as_echo "$as_me: program exited with status $ac_status" >&5
     1677       $as_echo "$as_me: failed program was:" >&5
     1678sed 's/^/| /' conftest.$ac_ext >&5
     1679
     1680       ac_retval=$ac_status
     1681fi
     1682  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     1683  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1684  return $ac_retval
     1685
     1686} # ac_fn_c_try_run
     1687
     1688# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
     1689# -------------------------------------------------------
     1690# Tests whether HEADER exists and can be compiled using the include files in
     1691# INCLUDES, setting the cache variable VAR accordingly.
     1692ac_fn_c_check_header_compile ()
     1693{
     1694  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1695  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1696$as_echo_n "checking for $2... " >&6; }
     1697if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
     1698  $as_echo_n "(cached) " >&6
     1699else
     1700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1701/* end confdefs.h.  */
     1702$4
     1703#include <$2>
     1704_ACEOF
     1705if ac_fn_c_try_compile "$LINENO"; then :
     1706  eval "$3=yes"
     1707else
     1708  eval "$3=no"
     1709fi
     1710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     1711fi
     1712eval ac_res=\$$3
     1713               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     1714$as_echo "$ac_res" >&6; }
     1715  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
     1716
     1717} # ac_fn_c_check_header_compile
    13341718cat >config.log <<_ACEOF
    13351719This file contains any messages produced by compilers while
     
    13371721
    13381722It was created by RapptureGUI $as_me 1.1, which was
    1339 generated by GNU Autoconf 2.65.  Invocation command line was
     1723generated by GNU Autoconf 2.64.  Invocation command line was
    13401724
    13411725  $ $0 $@
     
    15901974do
    15911975  test "x$ac_site_file" = xNONE && continue
    1592   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
     1976  if test -r "$ac_site_file"; then
    15931977    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
    15941978$as_echo "$as_me: loading site script $ac_site_file" >&6;}
     
    15991983
    16001984if test -r "$cache_file"; then
    1601   # Some versions of bash will fail to source /dev/null (special files
    1602   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
    1603   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
     1985  # Some versions of bash will fail to source /dev/null (special
     1986  # files actually), so we avoid doing that.
     1987  if test -f "$cache_file"; then
    16041988    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
    16051989$as_echo "$as_me: loading cache $cache_file" >&6;}
     
    20592443fi
    20602444
    2061   test -d ./--version && rmdir ./--version
    20622445  if test "${ac_cv_path_mkdir+set}" = set; then
    20632446    MKDIR_P="$ac_cv_path_mkdir -p"
     
    20672450    # break other packages using the cache if that directory is
    20682451    # removed, or if the value is a relative name.
     2452    test -d ./--version && rmdir ./--version
    20692453    MKDIR_P="$ac_install_sh -d"
    20702454  fi
     
    21032487  SET_MAKE="MAKE=${MAKE-make}"
    21042488fi
     2489
     2490ac_ext=c
     2491ac_cpp='$CPP $CPPFLAGS'
     2492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2494ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2495if test -n "$ac_tool_prefix"; then
     2496  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
     2497set dummy ${ac_tool_prefix}gcc; ac_word=$2
     2498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2499$as_echo_n "checking for $ac_word... " >&6; }
     2500if test "${ac_cv_prog_CC+set}" = set; then :
     2501  $as_echo_n "(cached) " >&6
     2502else
     2503  if test -n "$CC"; then
     2504  ac_cv_prog_CC="$CC" # Let the user override the test.
     2505else
     2506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2507for as_dir in $PATH
     2508do
     2509  IFS=$as_save_IFS
     2510  test -z "$as_dir" && as_dir=.
     2511    for ac_exec_ext in '' $ac_executable_extensions; do
     2512  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2513    ac_cv_prog_CC="${ac_tool_prefix}gcc"
     2514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     2515    break 2
     2516  fi
     2517done
     2518  done
     2519IFS=$as_save_IFS
     2520
     2521fi
     2522fi
     2523CC=$ac_cv_prog_CC
     2524if test -n "$CC"; then
     2525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2526$as_echo "$CC" >&6; }
     2527else
     2528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2529$as_echo "no" >&6; }
     2530fi
     2531
     2532
     2533fi
     2534if test -z "$ac_cv_prog_CC"; then
     2535  ac_ct_CC=$CC
     2536  # Extract the first word of "gcc", so it can be a program name with args.
     2537set dummy gcc; ac_word=$2
     2538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2539$as_echo_n "checking for $ac_word... " >&6; }
     2540if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
     2541  $as_echo_n "(cached) " >&6
     2542else
     2543  if test -n "$ac_ct_CC"; then
     2544  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     2545else
     2546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2547for as_dir in $PATH
     2548do
     2549  IFS=$as_save_IFS
     2550  test -z "$as_dir" && as_dir=.
     2551    for ac_exec_ext in '' $ac_executable_extensions; do
     2552  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2553    ac_cv_prog_ac_ct_CC="gcc"
     2554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     2555    break 2
     2556  fi
     2557done
     2558  done
     2559IFS=$as_save_IFS
     2560
     2561fi
     2562fi
     2563ac_ct_CC=$ac_cv_prog_ac_ct_CC
     2564if test -n "$ac_ct_CC"; then
     2565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
     2566$as_echo "$ac_ct_CC" >&6; }
     2567else
     2568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2569$as_echo "no" >&6; }
     2570fi
     2571
     2572  if test "x$ac_ct_CC" = x; then
     2573    CC=""
     2574  else
     2575    case $cross_compiling:$ac_tool_warned in
     2576yes:)
     2577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     2578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     2579ac_tool_warned=yes ;;
     2580esac
     2581    CC=$ac_ct_CC
     2582  fi
     2583else
     2584  CC="$ac_cv_prog_CC"
     2585fi
     2586
     2587if test -z "$CC"; then
     2588          if test -n "$ac_tool_prefix"; then
     2589    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     2590set dummy ${ac_tool_prefix}cc; ac_word=$2
     2591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2592$as_echo_n "checking for $ac_word... " >&6; }
     2593if test "${ac_cv_prog_CC+set}" = set; then :
     2594  $as_echo_n "(cached) " >&6
     2595else
     2596  if test -n "$CC"; then
     2597  ac_cv_prog_CC="$CC" # Let the user override the test.
     2598else
     2599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2600for as_dir in $PATH
     2601do
     2602  IFS=$as_save_IFS
     2603  test -z "$as_dir" && as_dir=.
     2604    for ac_exec_ext in '' $ac_executable_extensions; do
     2605  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2606    ac_cv_prog_CC="${ac_tool_prefix}cc"
     2607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     2608    break 2
     2609  fi
     2610done
     2611  done
     2612IFS=$as_save_IFS
     2613
     2614fi
     2615fi
     2616CC=$ac_cv_prog_CC
     2617if test -n "$CC"; then
     2618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2619$as_echo "$CC" >&6; }
     2620else
     2621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2622$as_echo "no" >&6; }
     2623fi
     2624
     2625
     2626  fi
     2627fi
     2628if test -z "$CC"; then
     2629  # Extract the first word of "cc", so it can be a program name with args.
     2630set dummy cc; ac_word=$2
     2631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2632$as_echo_n "checking for $ac_word... " >&6; }
     2633if test "${ac_cv_prog_CC+set}" = set; then :
     2634  $as_echo_n "(cached) " >&6
     2635else
     2636  if test -n "$CC"; then
     2637  ac_cv_prog_CC="$CC" # Let the user override the test.
     2638else
     2639  ac_prog_rejected=no
     2640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2641for as_dir in $PATH
     2642do
     2643  IFS=$as_save_IFS
     2644  test -z "$as_dir" && as_dir=.
     2645    for ac_exec_ext in '' $ac_executable_extensions; do
     2646  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2647    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
     2648       ac_prog_rejected=yes
     2649       continue
     2650     fi
     2651    ac_cv_prog_CC="cc"
     2652    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     2653    break 2
     2654  fi
     2655done
     2656  done
     2657IFS=$as_save_IFS
     2658
     2659if test $ac_prog_rejected = yes; then
     2660  # We found a bogon in the path, so make sure we never use it.
     2661  set dummy $ac_cv_prog_CC
     2662  shift
     2663  if test $# != 0; then
     2664    # We chose a different compiler from the bogus one.
     2665    # However, it has the same basename, so the bogon will be chosen
     2666    # first if we set CC to just the basename; use the full file name.
     2667    shift
     2668    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
     2669  fi
     2670fi
     2671fi
     2672fi
     2673CC=$ac_cv_prog_CC
     2674if test -n "$CC"; then
     2675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2676$as_echo "$CC" >&6; }
     2677else
     2678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2679$as_echo "no" >&6; }
     2680fi
     2681
     2682
     2683fi
     2684if test -z "$CC"; then
     2685  if test -n "$ac_tool_prefix"; then
     2686  for ac_prog in cl.exe
     2687  do
     2688    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     2689set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2691$as_echo_n "checking for $ac_word... " >&6; }
     2692if test "${ac_cv_prog_CC+set}" = set; then :
     2693  $as_echo_n "(cached) " >&6
     2694else
     2695  if test -n "$CC"; then
     2696  ac_cv_prog_CC="$CC" # Let the user override the test.
     2697else
     2698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2699for as_dir in $PATH
     2700do
     2701  IFS=$as_save_IFS
     2702  test -z "$as_dir" && as_dir=.
     2703    for ac_exec_ext in '' $ac_executable_extensions; do
     2704  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2705    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     2706    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     2707    break 2
     2708  fi
     2709done
     2710  done
     2711IFS=$as_save_IFS
     2712
     2713fi
     2714fi
     2715CC=$ac_cv_prog_CC
     2716if test -n "$CC"; then
     2717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2718$as_echo "$CC" >&6; }
     2719else
     2720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2721$as_echo "no" >&6; }
     2722fi
     2723
     2724
     2725    test -n "$CC" && break
     2726  done
     2727fi
     2728if test -z "$CC"; then
     2729  ac_ct_CC=$CC
     2730  for ac_prog in cl.exe
     2731do
     2732  # Extract the first word of "$ac_prog", so it can be a program name with args.
     2733set dummy $ac_prog; ac_word=$2
     2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2735$as_echo_n "checking for $ac_word... " >&6; }
     2736if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
     2737  $as_echo_n "(cached) " >&6
     2738else
     2739  if test -n "$ac_ct_CC"; then
     2740  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     2741else
     2742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2743for as_dir in $PATH
     2744do
     2745  IFS=$as_save_IFS
     2746  test -z "$as_dir" && as_dir=.
     2747    for ac_exec_ext in '' $ac_executable_extensions; do
     2748  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     2749    ac_cv_prog_ac_ct_CC="$ac_prog"
     2750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     2751    break 2
     2752  fi
     2753done
     2754  done
     2755IFS=$as_save_IFS
     2756
     2757fi
     2758fi
     2759ac_ct_CC=$ac_cv_prog_ac_ct_CC
     2760if test -n "$ac_ct_CC"; then
     2761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
     2762$as_echo "$ac_ct_CC" >&6; }
     2763else
     2764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2765$as_echo "no" >&6; }
     2766fi
     2767
     2768
     2769  test -n "$ac_ct_CC" && break
     2770done
     2771
     2772  if test "x$ac_ct_CC" = x; then
     2773    CC=""
     2774  else
     2775    case $cross_compiling:$ac_tool_warned in
     2776yes:)
     2777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
     2778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
     2779ac_tool_warned=yes ;;
     2780esac
     2781    CC=$ac_ct_CC
     2782  fi
     2783fi
     2784
     2785fi
     2786
     2787
     2788test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2789$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2790as_fn_error "no acceptable C compiler found in \$PATH
     2791See \`config.log' for more details." "$LINENO" 5; }
     2792
     2793# Provide some information about the compiler.
     2794$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
     2795set X $ac_compile
     2796ac_compiler=$2
     2797for ac_option in --version -v -V -qversion; do
     2798  { { ac_try="$ac_compiler $ac_option >&5"
     2799case "(($ac_try" in
     2800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2801  *) ac_try_echo=$ac_try;;
     2802esac
     2803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2804$as_echo "$ac_try_echo"; } >&5
     2805  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
     2806  ac_status=$?
     2807  if test -s conftest.err; then
     2808    sed '10a\
     2809... rest of stderr output deleted ...
     2810         10q' conftest.err >conftest.er1
     2811    cat conftest.er1 >&5
     2812    rm -f conftest.er1 conftest.err
     2813  fi
     2814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2815  test $ac_status = 0; }
     2816done
     2817
     2818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2819/* end confdefs.h.  */
     2820#include <stdio.h>
     2821int
     2822main ()
     2823{
     2824FILE *f = fopen ("conftest.out", "w");
     2825 return ferror (f) || fclose (f) != 0;
     2826
     2827  ;
     2828  return 0;
     2829}
     2830_ACEOF
     2831ac_clean_files_save=$ac_clean_files
     2832ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
     2833# Try to create an executable without -o first, disregard a.out.
     2834# It will help us diagnose broken compilers, and finding out an intuition
     2835# of exeext.
     2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
     2837$as_echo_n "checking for C compiler default output file name... " >&6; }
     2838ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     2839
     2840# The possible output files:
     2841ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
     2842
     2843ac_rmfiles=
     2844for ac_file in $ac_files
     2845do
     2846  case $ac_file in
     2847    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
     2848    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
     2849  esac
     2850done
     2851rm -f $ac_rmfiles
     2852
     2853if { { ac_try="$ac_link_default"
     2854case "(($ac_try" in
     2855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2856  *) ac_try_echo=$ac_try;;
     2857esac
     2858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2859$as_echo "$ac_try_echo"; } >&5
     2860  (eval "$ac_link_default") 2>&5
     2861  ac_status=$?
     2862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2863  test $ac_status = 0; }; then :
     2864  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
     2865# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
     2866# in a Makefile.  We should not override ac_cv_exeext if it was cached,
     2867# so that the user can short-circuit this test for compilers unknown to
     2868# Autoconf.
     2869for ac_file in $ac_files ''
     2870do
     2871  test -f "$ac_file" || continue
     2872  case $ac_file in
     2873    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
     2874        ;;
     2875    [ab].out )
     2876        # We found the default executable, but exeext='' is most
     2877        # certainly right.
     2878        break;;
     2879    *.* )
     2880        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
     2881        then :; else
     2882           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     2883        fi
     2884        # We set ac_cv_exeext here because the later test for it is not
     2885        # safe: cross compilers may not add the suffix if given an `-o'
     2886        # argument, so we may need to know it at that point already.
     2887        # Even if this section looks crufty: it has the advantage of
     2888        # actually working.
     2889        break;;
     2890    * )
     2891        break;;
     2892  esac
     2893done
     2894test "$ac_cv_exeext" = no && ac_cv_exeext=
     2895
     2896else
     2897  ac_file=''
     2898fi
     2899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
     2900$as_echo "$ac_file" >&6; }
     2901if test -z "$ac_file"; then :
     2902  $as_echo "$as_me: failed program was:" >&5
     2903sed 's/^/| /' conftest.$ac_ext >&5
     2904
     2905{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2907{ as_fn_set_status 77
     2908as_fn_error "C compiler cannot create executables
     2909See \`config.log' for more details." "$LINENO" 5; }; }
     2910fi
     2911ac_exeext=$ac_cv_exeext
     2912
     2913# Check that the compiler produces executables we can run.  If not, either
     2914# the compiler is broken, or we cross compile.
     2915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
     2916$as_echo_n "checking whether the C compiler works... " >&6; }
     2917# If not cross compiling, check that we can run a simple program.
     2918if test "$cross_compiling" != yes; then
     2919  if { ac_try='./$ac_file'
     2920  { { case "(($ac_try" in
     2921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2922  *) ac_try_echo=$ac_try;;
     2923esac
     2924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2925$as_echo "$ac_try_echo"; } >&5
     2926  (eval "$ac_try") 2>&5
     2927  ac_status=$?
     2928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2929  test $ac_status = 0; }; }; then
     2930    cross_compiling=no
     2931  else
     2932    if test "$cross_compiling" = maybe; then
     2933        cross_compiling=yes
     2934    else
     2935        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2936$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2937as_fn_error "cannot run C compiled programs.
     2938If you meant to cross compile, use \`--host'.
     2939See \`config.log' for more details." "$LINENO" 5; }
     2940    fi
     2941  fi
     2942fi
     2943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     2944$as_echo "yes" >&6; }
     2945
     2946rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
     2947ac_clean_files=$ac_clean_files_save
     2948# Check that the compiler produces executables we can run.  If not, either
     2949# the compiler is broken, or we cross compile.
     2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
     2951$as_echo_n "checking whether we are cross compiling... " >&6; }
     2952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
     2953$as_echo "$cross_compiling" >&6; }
     2954
     2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
     2956$as_echo_n "checking for suffix of executables... " >&6; }
     2957if { { ac_try="$ac_link"
     2958case "(($ac_try" in
     2959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     2960  *) ac_try_echo=$ac_try;;
     2961esac
     2962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     2963$as_echo "$ac_try_echo"; } >&5
     2964  (eval "$ac_link") 2>&5
     2965  ac_status=$?
     2966  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     2967  test $ac_status = 0; }; then :
     2968  # If both `conftest.exe' and `conftest' are `present' (well, observable)
     2969# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     2970# work properly (i.e., refer to `conftest.exe'), while it won't with
     2971# `rm'.
     2972for ac_file in conftest.exe conftest conftest.*; do
     2973  test -f "$ac_file" || continue
     2974  case $ac_file in
     2975    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
     2976    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     2977          break;;
     2978    * ) break;;
     2979  esac
     2980done
     2981else
     2982  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     2983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     2984as_fn_error "cannot compute suffix of executables: cannot compile and link
     2985See \`config.log' for more details." "$LINENO" 5; }
     2986fi
     2987rm -f conftest$ac_cv_exeext
     2988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
     2989$as_echo "$ac_cv_exeext" >&6; }
     2990
     2991rm -f conftest.$ac_ext
     2992EXEEXT=$ac_cv_exeext
     2993ac_exeext=$EXEEXT
     2994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
     2995$as_echo_n "checking for suffix of object files... " >&6; }
     2996if test "${ac_cv_objext+set}" = set; then :
     2997  $as_echo_n "(cached) " >&6
     2998else
     2999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3000/* end confdefs.h.  */
     3001
     3002int
     3003main ()
     3004{
     3005
     3006  ;
     3007  return 0;
     3008}
     3009_ACEOF
     3010rm -f conftest.o conftest.obj
     3011if { { ac_try="$ac_compile"
     3012case "(($ac_try" in
     3013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     3014  *) ac_try_echo=$ac_try;;
     3015esac
     3016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
     3017$as_echo "$ac_try_echo"; } >&5
     3018  (eval "$ac_compile") 2>&5
     3019  ac_status=$?
     3020  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     3021  test $ac_status = 0; }; then :
     3022  for ac_file in conftest.o conftest.obj conftest.*; do
     3023  test -f "$ac_file" || continue;
     3024  case $ac_file in
     3025    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
     3026    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
     3027       break;;
     3028  esac
     3029done
     3030else
     3031  $as_echo "$as_me: failed program was:" >&5
     3032sed 's/^/| /' conftest.$ac_ext >&5
     3033
     3034{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     3035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     3036as_fn_error "cannot compute suffix of object files: cannot compile
     3037See \`config.log' for more details." "$LINENO" 5; }
     3038fi
     3039rm -f conftest.$ac_cv_objext conftest.$ac_ext
     3040fi
     3041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
     3042$as_echo "$ac_cv_objext" >&6; }
     3043OBJEXT=$ac_cv_objext
     3044ac_objext=$OBJEXT
     3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
     3046$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
     3047if test "${ac_cv_c_compiler_gnu+set}" = set; then :
     3048  $as_echo_n "(cached) " >&6
     3049else
     3050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3051/* end confdefs.h.  */
     3052
     3053int
     3054main ()
     3055{
     3056#ifndef __GNUC__
     3057       choke me
     3058#endif
     3059
     3060  ;
     3061  return 0;
     3062}
     3063_ACEOF
     3064if ac_fn_c_try_compile "$LINENO"; then :
     3065  ac_compiler_gnu=yes
     3066else
     3067  ac_compiler_gnu=no
     3068fi
     3069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3070ac_cv_c_compiler_gnu=$ac_compiler_gnu
     3071
     3072fi
     3073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
     3074$as_echo "$ac_cv_c_compiler_gnu" >&6; }
     3075if test $ac_compiler_gnu = yes; then
     3076  GCC=yes
     3077else
     3078  GCC=
     3079fi
     3080ac_test_CFLAGS=${CFLAGS+set}
     3081ac_save_CFLAGS=$CFLAGS
     3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
     3083$as_echo_n "checking whether $CC accepts -g... " >&6; }
     3084if test "${ac_cv_prog_cc_g+set}" = set; then :
     3085  $as_echo_n "(cached) " >&6
     3086else
     3087  ac_save_c_werror_flag=$ac_c_werror_flag
     3088   ac_c_werror_flag=yes
     3089   ac_cv_prog_cc_g=no
     3090   CFLAGS="-g"
     3091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3092/* end confdefs.h.  */
     3093
     3094int
     3095main ()
     3096{
     3097
     3098  ;
     3099  return 0;
     3100}
     3101_ACEOF
     3102if ac_fn_c_try_compile "$LINENO"; then :
     3103  ac_cv_prog_cc_g=yes
     3104else
     3105  CFLAGS=""
     3106      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3107/* end confdefs.h.  */
     3108
     3109int
     3110main ()
     3111{
     3112
     3113  ;
     3114  return 0;
     3115}
     3116_ACEOF
     3117if ac_fn_c_try_compile "$LINENO"; then :
     3118
     3119else
     3120  ac_c_werror_flag=$ac_save_c_werror_flag
     3121         CFLAGS="-g"
     3122         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3123/* end confdefs.h.  */
     3124
     3125int
     3126main ()
     3127{
     3128
     3129  ;
     3130  return 0;
     3131}
     3132_ACEOF
     3133if ac_fn_c_try_compile "$LINENO"; then :
     3134  ac_cv_prog_cc_g=yes
     3135fi
     3136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3137fi
     3138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3139fi
     3140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3141   ac_c_werror_flag=$ac_save_c_werror_flag
     3142fi
     3143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
     3144$as_echo "$ac_cv_prog_cc_g" >&6; }
     3145if test "$ac_test_CFLAGS" = set; then
     3146  CFLAGS=$ac_save_CFLAGS
     3147elif test $ac_cv_prog_cc_g = yes; then
     3148  if test "$GCC" = yes; then
     3149    CFLAGS="-g -O2"
     3150  else
     3151    CFLAGS="-g"
     3152  fi
     3153else
     3154  if test "$GCC" = yes; then
     3155    CFLAGS="-O2"
     3156  else
     3157    CFLAGS=
     3158  fi
     3159fi
     3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
     3161$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
     3162if test "${ac_cv_prog_cc_c89+set}" = set; then :
     3163  $as_echo_n "(cached) " >&6
     3164else
     3165  ac_cv_prog_cc_c89=no
     3166ac_save_CC=$CC
     3167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3168/* end confdefs.h.  */
     3169#include <stdarg.h>
     3170#include <stdio.h>
     3171#include <sys/types.h>
     3172#include <sys/stat.h>
     3173/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
     3174struct buf { int x; };
     3175FILE * (*rcsopen) (struct buf *, struct stat *, int);
     3176static char *e (p, i)
     3177     char **p;
     3178     int i;
     3179{
     3180  return p[i];
     3181}
     3182static char *f (char * (*g) (char **, int), char **p, ...)
     3183{
     3184  char *s;
     3185  va_list v;
     3186  va_start (v,p);
     3187  s = g (p, va_arg (v,int));
     3188  va_end (v);
     3189  return s;
     3190}
     3191
     3192/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
     3193   function prototypes and stuff, but not '\xHH' hex character constants.
     3194   These don't provoke an error unfortunately, instead are silently treated
     3195   as 'x'.  The following induces an error, until -std is added to get
     3196   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
     3197   array size at least.  It's necessary to write '\x00'==0 to get something
     3198   that's true only with -std.  */
     3199int osf4_cc_array ['\x00' == 0 ? 1 : -1];
     3200
     3201/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
     3202   inside strings and character constants.  */
     3203#define FOO(x) 'x'
     3204int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
     3205
     3206int test (int i, double x);
     3207struct s1 {int (*f) (int a);};
     3208struct s2 {int (*f) (double a);};
     3209int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
     3210int argc;
     3211char **argv;
     3212int
     3213main ()
     3214{
     3215return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
     3216  ;
     3217  return 0;
     3218}
     3219_ACEOF
     3220for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
     3221        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
     3222do
     3223  CC="$ac_save_CC $ac_arg"
     3224  if ac_fn_c_try_compile "$LINENO"; then :
     3225  ac_cv_prog_cc_c89=$ac_arg
     3226fi
     3227rm -f core conftest.err conftest.$ac_objext
     3228  test "x$ac_cv_prog_cc_c89" != "xno" && break
     3229done
     3230rm -f conftest.$ac_ext
     3231CC=$ac_save_CC
     3232
     3233fi
     3234# AC_CACHE_VAL
     3235case "x$ac_cv_prog_cc_c89" in
     3236  x)
     3237    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
     3238$as_echo "none needed" >&6; } ;;
     3239  xno)
     3240    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
     3241$as_echo "unsupported" >&6; } ;;
     3242  *)
     3243    CC="$CC $ac_cv_prog_cc_c89"
     3244    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
     3245$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
     3246esac
     3247if test "x$ac_cv_prog_cc_c89" != xno; then :
     3248
     3249fi
     3250
     3251ac_ext=c
     3252ac_cpp='$CPP $CPPFLAGS'
     3253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3255ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3256
     3257
     3258
     3259ac_ext=c
     3260ac_cpp='$CPP $CPPFLAGS'
     3261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3263ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
     3265$as_echo_n "checking how to run the C preprocessor... " >&6; }
     3266# On Suns, sometimes $CPP names a directory.
     3267if test -n "$CPP" && test -d "$CPP"; then
     3268  CPP=
     3269fi
     3270if test -z "$CPP"; then
     3271  if test "${ac_cv_prog_CPP+set}" = set; then :
     3272  $as_echo_n "(cached) " >&6
     3273else
     3274      # Double quotes because CPP needs to be expanded
     3275    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     3276    do
     3277      ac_preproc_ok=false
     3278for ac_c_preproc_warn_flag in '' yes
     3279do
     3280  # Use a header file that comes with gcc, so configuring glibc
     3281  # with a fresh cross-compiler works.
     3282  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     3283  # <limits.h> exists even on freestanding compilers.
     3284  # On the NeXT, cc -E runs the code through the compiler's parser,
     3285  # not just through cpp. "Syntax error" is here to catch this case.
     3286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3287/* end confdefs.h.  */
     3288#ifdef __STDC__
     3289# include <limits.h>
     3290#else
     3291# include <assert.h>
     3292#endif
     3293                     Syntax error
     3294_ACEOF
     3295if ac_fn_c_try_cpp "$LINENO"; then :
     3296
     3297else
     3298  # Broken: fails on valid input.
     3299continue
     3300fi
     3301rm -f conftest.err conftest.$ac_ext
     3302
     3303  # OK, works on sane cases.  Now check whether nonexistent headers
     3304  # can be detected and how.
     3305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3306/* end confdefs.h.  */
     3307#include <ac_nonexistent.h>
     3308_ACEOF
     3309if ac_fn_c_try_cpp "$LINENO"; then :
     3310  # Broken: success on invalid input.
     3311continue
     3312else
     3313  # Passes both tests.
     3314ac_preproc_ok=:
     3315break
     3316fi
     3317rm -f conftest.err conftest.$ac_ext
     3318
     3319done
     3320# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3321rm -f conftest.err conftest.$ac_ext
     3322if $ac_preproc_ok; then :
     3323  break
     3324fi
     3325
     3326    done
     3327    ac_cv_prog_CPP=$CPP
     3328
     3329fi
     3330  CPP=$ac_cv_prog_CPP
     3331else
     3332  ac_cv_prog_CPP=$CPP
     3333fi
     3334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
     3335$as_echo "$CPP" >&6; }
     3336ac_preproc_ok=false
     3337for ac_c_preproc_warn_flag in '' yes
     3338do
     3339  # Use a header file that comes with gcc, so configuring glibc
     3340  # with a fresh cross-compiler works.
     3341  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     3342  # <limits.h> exists even on freestanding compilers.
     3343  # On the NeXT, cc -E runs the code through the compiler's parser,
     3344  # not just through cpp. "Syntax error" is here to catch this case.
     3345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3346/* end confdefs.h.  */
     3347#ifdef __STDC__
     3348# include <limits.h>
     3349#else
     3350# include <assert.h>
     3351#endif
     3352                     Syntax error
     3353_ACEOF
     3354if ac_fn_c_try_cpp "$LINENO"; then :
     3355
     3356else
     3357  # Broken: fails on valid input.
     3358continue
     3359fi
     3360rm -f conftest.err conftest.$ac_ext
     3361
     3362  # OK, works on sane cases.  Now check whether nonexistent headers
     3363  # can be detected and how.
     3364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3365/* end confdefs.h.  */
     3366#include <ac_nonexistent.h>
     3367_ACEOF
     3368if ac_fn_c_try_cpp "$LINENO"; then :
     3369  # Broken: success on invalid input.
     3370continue
     3371else
     3372  # Passes both tests.
     3373ac_preproc_ok=:
     3374break
     3375fi
     3376rm -f conftest.err conftest.$ac_ext
     3377
     3378done
     3379# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3380rm -f conftest.err conftest.$ac_ext
     3381if $ac_preproc_ok; then :
     3382
     3383else
     3384  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
     3385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
     3386as_fn_error "C preprocessor \"$CPP\" fails sanity check
     3387See \`config.log' for more details." "$LINENO" 5; }
     3388fi
     3389
     3390ac_ext=c
     3391ac_cpp='$CPP $CPPFLAGS'
     3392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3394ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3395
     3396
     3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
     3398$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
     3399if test "${ac_cv_path_GREP+set}" = set; then :
     3400  $as_echo_n "(cached) " >&6
     3401else
     3402  if test -z "$GREP"; then
     3403  ac_path_GREP_found=false
     3404  # Loop through the user's path and test for each of PROGNAME-LIST
     3405  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3406for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
     3407do
     3408  IFS=$as_save_IFS
     3409  test -z "$as_dir" && as_dir=.
     3410    for ac_prog in grep ggrep; do
     3411    for ac_exec_ext in '' $ac_executable_extensions; do
     3412      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
     3413      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
     3414# Check for GNU ac_path_GREP and select it if it is found.
     3415  # Check for GNU $ac_path_GREP
     3416case `"$ac_path_GREP" --version 2>&1` in
     3417*GNU*)
     3418  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
     3419*)
     3420  ac_count=0
     3421  $as_echo_n 0123456789 >"conftest.in"
     3422  while :
     3423  do
     3424    cat "conftest.in" "conftest.in" >"conftest.tmp"
     3425    mv "conftest.tmp" "conftest.in"
     3426    cp "conftest.in" "conftest.nl"
     3427    $as_echo 'GREP' >> "conftest.nl"
     3428    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
     3429    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     3430    as_fn_arith $ac_count + 1 && ac_count=$as_val
     3431    if test $ac_count -gt ${ac_path_GREP_max-0}; then
     3432      # Best one so far, save it but keep looking for a better one
     3433      ac_cv_path_GREP="$ac_path_GREP"
     3434      ac_path_GREP_max=$ac_count
     3435    fi
     3436    # 10*(2^10) chars as input seems more than enough
     3437    test $ac_count -gt 10 && break
     3438  done
     3439  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     3440esac
     3441
     3442      $ac_path_GREP_found && break 3
     3443    done
     3444  done
     3445  done
     3446IFS=$as_save_IFS
     3447  if test -z "$ac_cv_path_GREP"; then
     3448    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     3449  fi
     3450else
     3451  ac_cv_path_GREP=$GREP
     3452fi
     3453
     3454fi
     3455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
     3456$as_echo "$ac_cv_path_GREP" >&6; }
     3457 GREP="$ac_cv_path_GREP"
     3458
     3459
     3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
     3461$as_echo_n "checking for egrep... " >&6; }
     3462if test "${ac_cv_path_EGREP+set}" = set; then :
     3463  $as_echo_n "(cached) " >&6
     3464else
     3465  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
     3466   then ac_cv_path_EGREP="$GREP -E"
     3467   else
     3468     if test -z "$EGREP"; then
     3469  ac_path_EGREP_found=false
     3470  # Loop through the user's path and test for each of PROGNAME-LIST
     3471  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3472for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
     3473do
     3474  IFS=$as_save_IFS
     3475  test -z "$as_dir" && as_dir=.
     3476    for ac_prog in egrep; do
     3477    for ac_exec_ext in '' $ac_executable_extensions; do
     3478      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
     3479      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
     3480# Check for GNU ac_path_EGREP and select it if it is found.
     3481  # Check for GNU $ac_path_EGREP
     3482case `"$ac_path_EGREP" --version 2>&1` in
     3483*GNU*)
     3484  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
     3485*)
     3486  ac_count=0
     3487  $as_echo_n 0123456789 >"conftest.in"
     3488  while :
     3489  do
     3490    cat "conftest.in" "conftest.in" >"conftest.tmp"
     3491    mv "conftest.tmp" "conftest.in"
     3492    cp "conftest.in" "conftest.nl"
     3493    $as_echo 'EGREP' >> "conftest.nl"
     3494    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
     3495    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
     3496    as_fn_arith $ac_count + 1 && ac_count=$as_val
     3497    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
     3498      # Best one so far, save it but keep looking for a better one
     3499      ac_cv_path_EGREP="$ac_path_EGREP"
     3500      ac_path_EGREP_max=$ac_count
     3501    fi
     3502    # 10*(2^10) chars as input seems more than enough
     3503    test $ac_count -gt 10 && break
     3504  done
     3505  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
     3506esac
     3507
     3508      $ac_path_EGREP_found && break 3
     3509    done
     3510  done
     3511  done
     3512IFS=$as_save_IFS
     3513  if test -z "$ac_cv_path_EGREP"; then
     3514    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     3515  fi
     3516else
     3517  ac_cv_path_EGREP=$EGREP
     3518fi
     3519
     3520   fi
     3521fi
     3522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
     3523$as_echo "$ac_cv_path_EGREP" >&6; }
     3524 EGREP="$ac_cv_path_EGREP"
     3525
     3526
     3527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
     3528$as_echo_n "checking for ANSI C header files... " >&6; }
     3529if test "${ac_cv_header_stdc+set}" = set; then :
     3530  $as_echo_n "(cached) " >&6
     3531else
     3532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3533/* end confdefs.h.  */
     3534#include <stdlib.h>
     3535#include <stdarg.h>
     3536#include <string.h>
     3537#include <float.h>
     3538
     3539int
     3540main ()
     3541{
     3542
     3543  ;
     3544  return 0;
     3545}
     3546_ACEOF
     3547if ac_fn_c_try_compile "$LINENO"; then :
     3548  ac_cv_header_stdc=yes
     3549else
     3550  ac_cv_header_stdc=no
     3551fi
     3552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     3553
     3554if test $ac_cv_header_stdc = yes; then
     3555  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     3556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3557/* end confdefs.h.  */
     3558#include <string.h>
     3559
     3560_ACEOF
     3561if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3562  $EGREP "memchr" >/dev/null 2>&1; then :
     3563
     3564else
     3565  ac_cv_header_stdc=no
     3566fi
     3567rm -f conftest*
     3568
     3569fi
     3570
     3571if test $ac_cv_header_stdc = yes; then
     3572  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     3573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3574/* end confdefs.h.  */
     3575#include <stdlib.h>
     3576
     3577_ACEOF
     3578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     3579  $EGREP "free" >/dev/null 2>&1; then :
     3580
     3581else
     3582  ac_cv_header_stdc=no
     3583fi
     3584rm -f conftest*
     3585
     3586fi
     3587
     3588if test $ac_cv_header_stdc = yes; then
     3589  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     3590  if test "$cross_compiling" = yes; then :
     3591  :
     3592else
     3593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3594/* end confdefs.h.  */
     3595#include <ctype.h>
     3596#include <stdlib.h>
     3597#if ((' ' & 0x0FF) == 0x020)
     3598# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     3599# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     3600#else
     3601# define ISLOWER(c) \
     3602                   (('a' <= (c) && (c) <= 'i') \
     3603                     || ('j' <= (c) && (c) <= 'r') \
     3604                     || ('s' <= (c) && (c) <= 'z'))
     3605# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     3606#endif
     3607
     3608#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     3609int
     3610main ()
     3611{
     3612  int i;
     3613  for (i = 0; i < 256; i++)
     3614    if (XOR (islower (i), ISLOWER (i))
     3615        || toupper (i) != TOUPPER (i))
     3616      return 2;
     3617  return 0;
     3618}
     3619_ACEOF
     3620if ac_fn_c_try_run "$LINENO"; then :
     3621
     3622else
     3623  ac_cv_header_stdc=no
     3624fi
     3625rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     3626  conftest.$ac_objext conftest.beam conftest.$ac_ext
     3627fi
     3628
     3629fi
     3630fi
     3631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
     3632$as_echo "$ac_cv_header_stdc" >&6; }
     3633if test $ac_cv_header_stdc = yes; then
     3634
     3635$as_echo "#define STDC_HEADERS 1" >>confdefs.h
     3636
     3637fi
     3638
     3639# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     3640for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
     3641                  inttypes.h stdint.h unistd.h
     3642do :
     3643  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     3644ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
     3645"
     3646eval as_val=\$$as_ac_Header
     3647   if test "x$as_val" = x""yes; then :
     3648  cat >>confdefs.h <<_ACEOF
     3649#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     3650_ACEOF
     3651
     3652fi
     3653
     3654done
     3655
     3656
     3657
     3658
     3659    # Step 0.a: Enable 64 bit support?
     3660
     3661    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
     3662$as_echo_n "checking if 64bit support is requested... " >&6; }
     3663    # Check whether --enable-64bit was given.
     3664if test "${enable_64bit+set}" = set; then :
     3665  enableval=$enable_64bit; do64bit=$enableval
     3666else
     3667  do64bit=no
     3668fi
     3669
     3670    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
     3671$as_echo "$do64bit" >&6; }
     3672
     3673    # Step 0.b: Enable Solaris 64 bit VIS support?
     3674
     3675    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
     3676$as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; }
     3677    # Check whether --enable-64bit-vis was given.
     3678if test "${enable_64bit_vis+set}" = set; then :
     3679  enableval=$enable_64bit_vis; do64bitVIS=$enableval
     3680else
     3681  do64bitVIS=no
     3682fi
     3683
     3684    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
     3685$as_echo "$do64bitVIS" >&6; }
     3686
     3687    if test "$do64bitVIS" = "yes"; then
     3688        # Force 64bit on with VIS
     3689        do64bit=yes
     3690    fi
     3691
     3692    # Step 1: set the variable "system" to hold the name and version number
     3693    # for the system.
     3694
     3695
     3696    { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5
     3697$as_echo_n "checking system version... " >&6; }
     3698if test "${tcl_cv_sys_version+set}" = set; then :
     3699  $as_echo_n "(cached) " >&6
     3700else
     3701
     3702        if test -f /usr/lib/NextStep/software_version; then
     3703            tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
     3704        else
     3705            tcl_cv_sys_version=`uname -s`-`uname -r`
     3706            if test "$?" -ne 0 ; then
     3707                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
     3708$as_echo "$as_me: WARNING: can't find uname command" >&2;}
     3709                tcl_cv_sys_version=unknown
     3710            else
     3711                # Special check for weird MP-RAS system (uname returns weird
     3712                # results, and the version is kept in special file).
     3713
     3714                if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
     3715                    tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid`
     3716                fi
     3717                if test "`uname -s`" = "AIX" ; then
     3718                    tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
     3719                fi
     3720            fi
     3721        fi
     3722
     3723fi
     3724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
     3725$as_echo "$tcl_cv_sys_version" >&6; }
     3726    system=$tcl_cv_sys_version
     3727
     3728
     3729    # Step 2: check for existence of -ldl library.  This is needed because
     3730    # Linux can use either -ldl or -ldld for dynamic loading.
     3731
     3732    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
     3733$as_echo_n "checking for dlopen in -ldl... " >&6; }
     3734if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
     3735  $as_echo_n "(cached) " >&6
     3736else
     3737  ac_check_lib_save_LIBS=$LIBS
     3738LIBS="-ldl  $LIBS"
     3739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3740/* end confdefs.h.  */
     3741
     3742/* Override any GCC internal prototype to avoid an error.
     3743   Use char because int might match the return type of a GCC
     3744   builtin and then its argument prototype would still apply.  */
     3745#ifdef __cplusplus
     3746extern "C"
     3747#endif
     3748char dlopen ();
     3749int
     3750main ()
     3751{
     3752return dlopen ();
     3753  ;
     3754  return 0;
     3755}
     3756_ACEOF
     3757if ac_fn_c_try_link "$LINENO"; then :
     3758  ac_cv_lib_dl_dlopen=yes
     3759else
     3760  ac_cv_lib_dl_dlopen=no
     3761fi
     3762rm -f core conftest.err conftest.$ac_objext \
     3763    conftest$ac_exeext conftest.$ac_ext
     3764LIBS=$ac_check_lib_save_LIBS
     3765fi
     3766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
     3767$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
     3768if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
     3769  have_dl=yes
     3770else
     3771  have_dl=no
     3772fi
     3773
     3774
     3775    # Require ranlib early so we can override it in special cases below.
     3776
     3777
     3778
     3779    # Step 3: set configuration options based on system name and version.
     3780
     3781    do64bit_ok=no
     3782    LDFLAGS_ORIG="$LDFLAGS"
     3783    TCL_EXPORT_FILE_SUFFIX=""
     3784    UNSHARED_LIB_SUFFIX=""
     3785    TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`'
     3786    ECHO_VERSION='`echo ${VERSION}`'
     3787    TCL_LIB_VERSIONS_OK=ok
     3788    CFLAGS_DEBUG=-g
     3789    CFLAGS_OPTIMIZE=-O
     3790    if test "$GCC" = "yes" ; then
     3791        CFLAGS_WARNING="-Wall -Wno-implicit-int -fno-strict-aliasing"
     3792    else
     3793        CFLAGS_WARNING=""
     3794    fi
     3795    TCL_NEEDS_EXP_FILE=0
     3796    TCL_BUILD_EXP_FILE=""
     3797    TCL_EXP_FILE=""
     3798    # Extract the first word of "ar", so it can be a program name with args.
     3799set dummy ar; ac_word=$2
     3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3801$as_echo_n "checking for $ac_word... " >&6; }
     3802if test "${ac_cv_prog_AR+set}" = set; then :
     3803  $as_echo_n "(cached) " >&6
     3804else
     3805  if test -n "$AR"; then
     3806  ac_cv_prog_AR="$AR" # Let the user override the test.
     3807else
     3808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3809for as_dir in $PATH
     3810do
     3811  IFS=$as_save_IFS
     3812  test -z "$as_dir" && as_dir=.
     3813    for ac_exec_ext in '' $ac_executable_extensions; do
     3814  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     3815    ac_cv_prog_AR="ar"
     3816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3817    break 2
     3818  fi
     3819done
     3820  done
     3821IFS=$as_save_IFS
     3822
     3823fi
     3824fi
     3825AR=$ac_cv_prog_AR
     3826if test -n "$AR"; then
     3827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
     3828$as_echo "$AR" >&6; }
     3829else
     3830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3831$as_echo "no" >&6; }
     3832fi
     3833
     3834
     3835    if test "${AR}" = "" ; then
     3836        as_fn_error "Required archive tool 'ar' not found on PATH." "$LINENO" 5
     3837    fi
     3838    STLIB_LD='${AR} cr'
     3839    LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
     3840    PLAT_OBJS=""
     3841    PLAT_SRCS=""
     3842    case $system in
     3843        AIX-*)
     3844            if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then
     3845                # AIX requires the _r compiler when gcc isn't being used
     3846                case "${CC}" in
     3847                    *_r)
     3848                        # ok ...
     3849                        ;;
     3850                    *)
     3851                        CC=${CC}_r
     3852                        ;;
     3853                esac
     3854                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
     3855$as_echo "Using $CC for compiling with threads" >&6; }
     3856            fi
     3857            LIBS="$LIBS -lc"
     3858            SHLIB_CFLAGS=""
     3859            # Note: need the LIBS below, otherwise Tk won't find Tcl's
     3860            # symbols when dynamically loaded into tclsh.
     3861            SHLIB_LD_LIBS='${LIBS}'
     3862            SHLIB_SUFFIX=".so"
     3863
     3864            DL_OBJS="tclLoadDl.o"
     3865            LD_LIBRARY_PATH_VAR="LIBPATH"
     3866
     3867            # Check to enable 64-bit flags for compiler/linker on AIX 4+
     3868            if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then
     3869                if test "$GCC" = "yes" ; then
     3870                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
     3871$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
     3872                else
     3873                    do64bit_ok=yes
     3874                    CFLAGS="$CFLAGS -q64"
     3875                    LDFLAGS="$LDFLAGS -q64"
     3876                    RANLIB="${RANLIB} -X64"
     3877                    AR="${AR} -X64"
     3878                    SHLIB_LD_FLAGS="-b64"
     3879                fi
     3880            fi
     3881
     3882            if test "`uname -m`" = "ia64" ; then
     3883                # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
     3884                SHLIB_LD="/usr/ccs/bin/ld -G -z text"
     3885                # AIX-5 has dl* in libc.so
     3886                DL_LIBS=""
     3887                if test "$GCC" = "yes" ; then
     3888                    CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
     3889                else
     3890                    CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
     3891                fi
     3892                LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
     3893            else
     3894                if test "$GCC" = "yes" ; then
     3895                    SHLIB_LD="gcc -shared"
     3896                else
     3897                    SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry"
     3898                fi
     3899                SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}"
     3900                DL_LIBS="-ldl"
     3901                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
     3902                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     3903                TCL_NEEDS_EXP_FILE=1
     3904                TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.exp'
     3905            fi
     3906
     3907            # AIX v<=4.1 has some different flags than 4.2+
     3908            if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then
     3909                LIBOBJS="$LIBOBJS tclLoadAix.o"
     3910                DL_LIBS="-lld"
     3911            fi
     3912
     3913            # On AIX <=v4 systems, libbsd.a has to be linked in to support
     3914            # non-blocking file IO.  This library has to be linked in after
     3915            # the MATH_LIBS or it breaks the pow() function.  The way to
     3916            # insure proper sequencing, is to add it to the tail of MATH_LIBS.
     3917            # This library also supplies gettimeofday.
     3918            #
     3919            # AIX does not have a timezone field in struct tm. When the AIX
     3920            # bsd library is used, the timezone global and the gettimeofday
     3921            # methods are to be avoided for timezone deduction instead, we
     3922            # deduce the timezone by comparing the localtime result on a
     3923            # known GMT value.
     3924
     3925            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5
     3926$as_echo_n "checking for gettimeofday in -lbsd... " >&6; }
     3927if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then :
     3928  $as_echo_n "(cached) " >&6
     3929else
     3930  ac_check_lib_save_LIBS=$LIBS
     3931LIBS="-lbsd  $LIBS"
     3932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3933/* end confdefs.h.  */
     3934
     3935/* Override any GCC internal prototype to avoid an error.
     3936   Use char because int might match the return type of a GCC
     3937   builtin and then its argument prototype would still apply.  */
     3938#ifdef __cplusplus
     3939extern "C"
     3940#endif
     3941char gettimeofday ();
     3942int
     3943main ()
     3944{
     3945return gettimeofday ();
     3946  ;
     3947  return 0;
     3948}
     3949_ACEOF
     3950if ac_fn_c_try_link "$LINENO"; then :
     3951  ac_cv_lib_bsd_gettimeofday=yes
     3952else
     3953  ac_cv_lib_bsd_gettimeofday=no
     3954fi
     3955rm -f core conftest.err conftest.$ac_objext \
     3956    conftest$ac_exeext conftest.$ac_ext
     3957LIBS=$ac_check_lib_save_LIBS
     3958fi
     3959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5
     3960$as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; }
     3961if test "x$ac_cv_lib_bsd_gettimeofday" = x""yes; then :
     3962  libbsd=yes
     3963else
     3964  libbsd=no
     3965fi
     3966
     3967            if test $libbsd = yes; then
     3968                MATH_LIBS="$MATH_LIBS -lbsd"
     3969                $as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h
     3970
     3971            fi
     3972            ;;
     3973        BeOS*)
     3974            SHLIB_CFLAGS="-fPIC"
     3975            SHLIB_LD="${CC} -nostart"
     3976            SHLIB_LD_LIBS='${LIBS}'
     3977            SHLIB_SUFFIX=".so"
     3978            DL_OBJS="tclLoadDl.o"
     3979            DL_LIBS="-ldl"
     3980
     3981            #-----------------------------------------------------------
     3982            # Check for inet_ntoa in -lbind, for BeOS (which also needs
     3983            # -lsocket, even if the network functions are in -lnet which
     3984            # is always linked to, for compatibility.
     3985            #-----------------------------------------------------------
     3986            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
     3987$as_echo_n "checking for inet_ntoa in -lbind... " >&6; }
     3988if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then :
     3989  $as_echo_n "(cached) " >&6
     3990else
     3991  ac_check_lib_save_LIBS=$LIBS
     3992LIBS="-lbind  $LIBS"
     3993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     3994/* end confdefs.h.  */
     3995
     3996/* Override any GCC internal prototype to avoid an error.
     3997   Use char because int might match the return type of a GCC
     3998   builtin and then its argument prototype would still apply.  */
     3999#ifdef __cplusplus
     4000extern "C"
     4001#endif
     4002char inet_ntoa ();
     4003int
     4004main ()
     4005{
     4006return inet_ntoa ();
     4007  ;
     4008  return 0;
     4009}
     4010_ACEOF
     4011if ac_fn_c_try_link "$LINENO"; then :
     4012  ac_cv_lib_bind_inet_ntoa=yes
     4013else
     4014  ac_cv_lib_bind_inet_ntoa=no
     4015fi
     4016rm -f core conftest.err conftest.$ac_objext \
     4017    conftest$ac_exeext conftest.$ac_ext
     4018LIBS=$ac_check_lib_save_LIBS
     4019fi
     4020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
     4021$as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; }
     4022if test "x$ac_cv_lib_bind_inet_ntoa" = x""yes; then :
     4023  LIBS="$LIBS -lbind -lsocket"
     4024fi
     4025
     4026            ;;
     4027        BSD/OS-2.1*|BSD/OS-3*)
     4028            SHLIB_CFLAGS=""
     4029            SHLIB_LD="shlicc -r"
     4030            SHLIB_LD_LIBS='${LIBS}'
     4031            SHLIB_SUFFIX=".so"
     4032            DL_OBJS="tclLoadDl.o"
     4033            DL_LIBS="-ldl"
     4034            CC_SEARCH_FLAGS=""
     4035            LD_SEARCH_FLAGS=""
     4036            ;;
     4037        BSD/OS-4.*)
     4038            SHLIB_CFLAGS="-export-dynamic -fPIC"
     4039            SHLIB_LD="cc -shared"
     4040            SHLIB_LD_LIBS='${LIBS}'
     4041            SHLIB_SUFFIX=".so"
     4042            DL_OBJS="tclLoadDl.o"
     4043            DL_LIBS="-ldl"
     4044            LDFLAGS="$LDFLAGS -export-dynamic"
     4045            CC_SEARCH_FLAGS=""
     4046            LD_SEARCH_FLAGS=""
     4047            ;;
     4048        dgux*)
     4049            SHLIB_CFLAGS="-K PIC"
     4050            SHLIB_LD="cc -G"
     4051            SHLIB_LD_LIBS=""
     4052            SHLIB_SUFFIX=".so"
     4053            DL_OBJS="tclLoadDl.o"
     4054            DL_LIBS="-ldl"
     4055            CC_SEARCH_FLAGS=""
     4056            LD_SEARCH_FLAGS=""
     4057            ;;
     4058        HP-UX-*.11.*)
     4059            # Use updated header definitions where possible
     4060            $as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h
     4061          # Use the XOPEN network library
     4062            $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
     4063 # Use the XOPEN network library
     4064            LIBS="$LIBS -lxnet"               # Use the XOPEN network library
     4065
     4066            if test "`uname -m`" = "ia64" ; then
     4067                SHLIB_SUFFIX=".so"
     4068            else
     4069                SHLIB_SUFFIX=".sl"
     4070            fi
     4071            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
     4072$as_echo_n "checking for shl_load in -ldld... " >&6; }
     4073if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
     4074  $as_echo_n "(cached) " >&6
     4075else
     4076  ac_check_lib_save_LIBS=$LIBS
     4077LIBS="-ldld  $LIBS"
     4078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4079/* end confdefs.h.  */
     4080
     4081/* Override any GCC internal prototype to avoid an error.
     4082   Use char because int might match the return type of a GCC
     4083   builtin and then its argument prototype would still apply.  */
     4084#ifdef __cplusplus
     4085extern "C"
     4086#endif
     4087char shl_load ();
     4088int
     4089main ()
     4090{
     4091return shl_load ();
     4092  ;
     4093  return 0;
     4094}
     4095_ACEOF
     4096if ac_fn_c_try_link "$LINENO"; then :
     4097  ac_cv_lib_dld_shl_load=yes
     4098else
     4099  ac_cv_lib_dld_shl_load=no
     4100fi
     4101rm -f core conftest.err conftest.$ac_objext \
     4102    conftest$ac_exeext conftest.$ac_ext
     4103LIBS=$ac_check_lib_save_LIBS
     4104fi
     4105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
     4106$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
     4107if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
     4108  tcl_ok=yes
     4109else
     4110  tcl_ok=no
     4111fi
     4112
     4113            if test "$tcl_ok" = yes; then
     4114                SHLIB_CFLAGS="+z"
     4115                SHLIB_LD="ld -b"
     4116                SHLIB_LD_LIBS='${LIBS}'
     4117                DL_OBJS="tclLoadShl.o"
     4118                DL_LIBS="-ldld"
     4119                LDFLAGS="$LDFLAGS -Wl,-E"
     4120                CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
     4121                LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
     4122                LD_LIBRARY_PATH_VAR="SHLIB_PATH"
     4123            fi
     4124            if test "$GCC" = "yes" ; then
     4125                SHLIB_LD="gcc -shared"
     4126                SHLIB_LD_LIBS='${LIBS}'
     4127                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     4128            fi
     4129
     4130            # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
     4131            #CFLAGS="$CFLAGS +DAportable"
     4132
     4133            # Check to enable 64-bit flags for compiler/linker
     4134            if test "$do64bit" = "yes" ; then
     4135                if test "$GCC" = "yes" ; then
     4136                    hpux_arch=`${CC} -dumpmachine`
     4137                    case $hpux_arch in
     4138                        hppa64*)
     4139                            # 64-bit gcc in use.  Fix flags for GNU ld.
     4140                            do64bit_ok=yes
     4141                            SHLIB_LD="${CC} -shared"
     4142                            SHLIB_LD_LIBS='${LIBS}'
     4143                            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     4144                            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     4145                            ;;
     4146                        *)
     4147                            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
     4148$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
     4149                            ;;
     4150                    esac
     4151                else
     4152                    do64bit_ok=yes
     4153                    CFLAGS="$CFLAGS +DD64"
     4154                    LDFLAGS="$LDFLAGS +DD64"
     4155                fi
     4156            fi
     4157            ;;
     4158        HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
     4159            SHLIB_SUFFIX=".sl"
     4160            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
     4161$as_echo_n "checking for shl_load in -ldld... " >&6; }
     4162if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
     4163  $as_echo_n "(cached) " >&6
     4164else
     4165  ac_check_lib_save_LIBS=$LIBS
     4166LIBS="-ldld  $LIBS"
     4167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4168/* end confdefs.h.  */
     4169
     4170/* Override any GCC internal prototype to avoid an error.
     4171   Use char because int might match the return type of a GCC
     4172   builtin and then its argument prototype would still apply.  */
     4173#ifdef __cplusplus
     4174extern "C"
     4175#endif
     4176char shl_load ();
     4177int
     4178main ()
     4179{
     4180return shl_load ();
     4181  ;
     4182  return 0;
     4183}
     4184_ACEOF
     4185if ac_fn_c_try_link "$LINENO"; then :
     4186  ac_cv_lib_dld_shl_load=yes
     4187else
     4188  ac_cv_lib_dld_shl_load=no
     4189fi
     4190rm -f core conftest.err conftest.$ac_objext \
     4191    conftest$ac_exeext conftest.$ac_ext
     4192LIBS=$ac_check_lib_save_LIBS
     4193fi
     4194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
     4195$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
     4196if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
     4197  tcl_ok=yes
     4198else
     4199  tcl_ok=no
     4200fi
     4201
     4202            if test "$tcl_ok" = yes; then
     4203                SHLIB_CFLAGS="+z"
     4204                SHLIB_LD="ld -b"
     4205                SHLIB_LD_LIBS=""
     4206                DL_OBJS="tclLoadShl.o"
     4207                DL_LIBS="-ldld"
     4208                LDFLAGS="$LDFLAGS -Wl,-E"
     4209                CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
     4210                LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
     4211                LD_LIBRARY_PATH_VAR="SHLIB_PATH"
     4212            fi
     4213            ;;
     4214        IRIX-4.*)
     4215            SHLIB_CFLAGS="-G 0"
     4216            SHLIB_SUFFIX=".a"
     4217            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
     4218            SHLIB_LD_LIBS='${LIBS}'
     4219            DL_OBJS="tclLoadAout.o"
     4220            DL_LIBS=""
     4221            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
     4222            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
     4223            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     4224            SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
     4225            ;;
     4226        IRIX-5.*)
     4227            SHLIB_CFLAGS=""
     4228            SHLIB_LD="ld -shared -rdata_shared"
     4229            SHLIB_LD_LIBS='${LIBS}'
     4230            SHLIB_SUFFIX=".so"
     4231            DL_OBJS="tclLoadDl.o"
     4232            DL_LIBS=""
     4233            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     4234            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
     4235            ;;
     4236        IRIX-6.*)
     4237            SHLIB_CFLAGS=""
     4238            SHLIB_LD="ld -n32 -shared -rdata_shared"
     4239            SHLIB_LD_LIBS='${LIBS}'
     4240            SHLIB_SUFFIX=".so"
     4241            DL_OBJS="tclLoadDl.o"
     4242            DL_LIBS=""
     4243            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     4244            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
     4245            if test "$GCC" = "yes" ; then
     4246                CFLAGS="$CFLAGS -mabi=n32"
     4247                LDFLAGS="$LDFLAGS -mabi=n32"
     4248            else
     4249                case $system in
     4250                    IRIX-6.3)
     4251                        # Use to build 6.2 compatible binaries on 6.3.
     4252                        CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
     4253                        ;;
     4254                    *)
     4255                        CFLAGS="$CFLAGS -n32"
     4256                        ;;
     4257                esac
     4258                LDFLAGS="$LDFLAGS -n32"
     4259            fi
     4260            ;;
     4261        IRIX64-6.*)
     4262            SHLIB_CFLAGS=""
     4263            SHLIB_LD="ld -n32 -shared -rdata_shared"
     4264            SHLIB_LD_LIBS='${LIBS}'
     4265            SHLIB_SUFFIX=".so"
     4266            DL_OBJS="tclLoadDl.o"
     4267            DL_LIBS=""
     4268            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     4269            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
     4270
     4271            # Check to enable 64-bit flags for compiler/linker
     4272
     4273            if test "$do64bit" = "yes" ; then
     4274                if test "$GCC" = "yes" ; then
     4275                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
     4276$as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
     4277                else
     4278                    do64bit_ok=yes
     4279                    SHLIB_LD="ld -64 -shared -rdata_shared"
     4280                    CFLAGS="$CFLAGS -64"
     4281                    LDFLAGS="$LDFLAGS -64"
     4282                fi
     4283            fi
     4284            ;;
     4285        Linux*)
     4286            SHLIB_CFLAGS="-fPIC"
     4287            SHLIB_LD_LIBS='${LIBS}'
     4288            SHLIB_SUFFIX=".so"
     4289
     4290            CFLAGS_OPTIMIZE=-O2
     4291            # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings
     4292            # when you inline the string and math operations.  Turn this off to
     4293            # get rid of the warnings.
     4294            #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
     4295
     4296            if test "$have_dl" = yes; then
     4297                SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
     4298                DL_OBJS="tclLoadDl.o"
     4299                DL_LIBS="-ldl"
     4300                LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
     4301                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     4302                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     4303            else
     4304                ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
     4305if test "x$ac_cv_header_dld_h" = x""yes; then :
     4306
     4307                    SHLIB_LD="ld -shared"
     4308                    DL_OBJS="tclLoadDld.o"
     4309                    DL_LIBS="-ldld"
     4310                    CC_SEARCH_FLAGS=""
     4311                    LD_SEARCH_FLAGS=""
     4312fi
     4313
     4314
     4315            fi
     4316            if test "`uname -m`" = "alpha" ; then
     4317                CFLAGS="$CFLAGS -mieee"
     4318            fi
     4319            if test $do64bit = yes; then
     4320                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
     4321$as_echo_n "checking if compiler accepts -m64 flag... " >&6; }
     4322if test "${tcl_cv_cc_m64+set}" = set; then :
     4323  $as_echo_n "(cached) " >&6
     4324else
     4325
     4326                    hold_cflags=$CFLAGS
     4327                    CFLAGS="$CFLAGS -m64"
     4328                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4329/* end confdefs.h.  */
     4330
     4331int
     4332main ()
     4333{
     4334
     4335  ;
     4336  return 0;
     4337}
     4338_ACEOF
     4339if ac_fn_c_try_link "$LINENO"; then :
     4340  tcl_cv_cc_m64=yes
     4341else
     4342  tcl_cv_cc_m64=no
     4343fi
     4344rm -f core conftest.err conftest.$ac_objext \
     4345    conftest$ac_exeext conftest.$ac_ext
     4346                    CFLAGS=$hold_cflags
     4347fi
     4348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
     4349$as_echo "$tcl_cv_cc_m64" >&6; }
     4350                if test $tcl_cv_cc_m64 = yes; then
     4351                    CFLAGS="$CFLAGS -m64"
     4352                    do64bit_ok=yes
     4353                fi
     4354            fi
     4355
     4356            # The combo of gcc + glibc has a bug related
     4357            # to inlining of functions like strtod(). The
     4358            # -fno-builtin flag should address this problem
     4359            # but it does not work. The -fno-inline flag
     4360            # is kind of overkill but it works.
     4361            # Disable inlining only when one of the
     4362            # files in compat/*.c is being linked in.
     4363            if test x"${LIBOBJS}" != x ; then
     4364                CFLAGS="$CFLAGS -fno-inline"
     4365            fi
     4366
     4367            # XIM peeking works under XFree86.
     4368            $as_echo "#define PEEK_XCLOSEIM 1" >>confdefs.h
     4369
     4370
     4371            ;;
     4372        GNU*)
     4373            SHLIB_CFLAGS="-fPIC"
     4374            SHLIB_LD_LIBS='${LIBS}'
     4375            SHLIB_SUFFIX=".so"
     4376
     4377            if test "$have_dl" = yes; then
     4378                SHLIB_LD="${CC} -shared"
     4379                DL_OBJS=""
     4380                DL_LIBS="-ldl"
     4381                LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
     4382                CC_SEARCH_FLAGS=""
     4383                LD_SEARCH_FLAGS=""
     4384            else
     4385                ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
     4386if test "x$ac_cv_header_dld_h" = x""yes; then :
     4387
     4388                    SHLIB_LD="ld -shared"
     4389                    DL_OBJS=""
     4390                    DL_LIBS="-ldld"
     4391                    CC_SEARCH_FLAGS=""
     4392                    LD_SEARCH_FLAGS=""
     4393fi
     4394
     4395
     4396            fi
     4397            if test "`uname -m`" = "alpha" ; then
     4398                CFLAGS="$CFLAGS -mieee"
     4399            fi
     4400            ;;
     4401        Lynx*)
     4402            SHLIB_CFLAGS="-fPIC"
     4403            SHLIB_LD_LIBS='${LIBS}'
     4404            SHLIB_SUFFIX=".so"
     4405            CFLAGS_OPTIMIZE=-02
     4406            SHLIB_LD="${CC} -shared "
     4407            DL_OBJS="tclLoadDl.o"
     4408            DL_LIBS="-mshared -ldl"
     4409            LD_FLAGS="-Wl,--export-dynamic"
     4410            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     4411            LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     4412            ;;
     4413        MP-RAS-02*)
     4414            SHLIB_CFLAGS="-K PIC"
     4415            SHLIB_LD="cc -G"
     4416            SHLIB_LD_LIBS=""
     4417            SHLIB_SUFFIX=".so"
     4418            DL_OBJS="tclLoadDl.o"
     4419            DL_LIBS="-ldl"
     4420            CC_SEARCH_FLAGS=""
     4421            LD_SEARCH_FLAGS=""
     4422            ;;
     4423        MP-RAS-*)
     4424            SHLIB_CFLAGS="-K PIC"
     4425            SHLIB_LD="cc -G"
     4426            SHLIB_LD_LIBS=""
     4427            SHLIB_SUFFIX=".so"
     4428            DL_OBJS="tclLoadDl.o"
     4429            DL_LIBS="-ldl"
     4430            LDFLAGS="$LDFLAGS -Wl,-Bexport"
     4431            CC_SEARCH_FLAGS=""
     4432            LD_SEARCH_FLAGS=""
     4433            ;;
     4434        NetBSD-*|FreeBSD-[1-2].*)
     4435            # Not available on all versions:  check for include file.
     4436            ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
     4437if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
     4438
     4439                # NetBSD/SPARC needs -fPIC, -fpic will not do.
     4440                SHLIB_CFLAGS="-fPIC"
     4441                SHLIB_LD="ld -Bshareable -x"
     4442                SHLIB_LD_LIBS='${LIBS}'
     4443                SHLIB_SUFFIX=".so"
     4444                DL_OBJS="tclLoadDl.o"
     4445                DL_LIBS=""
     4446                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     4447                LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
     4448                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
     4449$as_echo_n "checking for ELF... " >&6; }
     4450if test "${tcl_cv_ld_elf+set}" = set; then :
     4451  $as_echo_n "(cached) " >&6
     4452else
     4453
     4454                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4455/* end confdefs.h.  */
     4456
     4457#ifdef __ELF__
     4458        yes
     4459#endif
     4460
     4461_ACEOF
     4462if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     4463  $EGREP "yes" >/dev/null 2>&1; then :
     4464  tcl_cv_ld_elf=yes
     4465else
     4466  tcl_cv_ld_elf=no
     4467fi
     4468rm -f conftest*
     4469
     4470fi
     4471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
     4472$as_echo "$tcl_cv_ld_elf" >&6; }
     4473                if test $tcl_cv_ld_elf = yes; then
     4474                    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
     4475                else
     4476                    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
     4477                fi
     4478
     4479else
     4480
     4481                SHLIB_CFLAGS=""
     4482                SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
     4483                SHLIB_LD_LIBS='${LIBS}'
     4484                SHLIB_SUFFIX=".a"
     4485                DL_OBJS="tclLoadAout.o"
     4486                DL_LIBS=""
     4487                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
     4488                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     4489                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
     4490
     4491fi
     4492
     4493
     4494
     4495            # FreeBSD doesn't handle version numbers with dots.
     4496
     4497            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
     4498            TCL_LIB_VERSIONS_OK=nodots
     4499            ;;
     4500        OpenBSD-*)
     4501            case `arch -s` in
     4502            m88k|vax)
     4503                SHLIB_CFLAGS=""
     4504                SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
     4505                SHLIB_LD_LIBS='${LIBS}'
     4506                SHLIB_SUFFIX=".a"
     4507                DL_OBJS="tclLoadAout.o"
     4508                DL_LIBS=""
     4509                LDFLAGS=""
     4510                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
     4511                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     4512                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
     4513                ;;
     4514            *)
     4515                # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do.
     4516                case `machine` in
     4517                sparc|sparc64)
     4518                    SHLIB_CFLAGS="-fPIC";;
     4519                *)
     4520                    SHLIB_CFLAGS="-fpic";;
     4521                esac
     4522                SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}"
     4523                SHLIB_LD_LIBS='${LIBS}'
     4524                SHLIB_SUFFIX=".so"
     4525                DL_OBJS="tclLoadDl.o"
     4526                DL_LIBS=""
     4527                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     4528                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     4529                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
     4530                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
     4531$as_echo_n "checking for ELF... " >&6; }
     4532if test "${tcl_cv_ld_elf+set}" = set; then :
     4533  $as_echo_n "(cached) " >&6
     4534else
     4535
     4536                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4537/* end confdefs.h.  */
     4538
     4539#ifdef __ELF__
     4540        yes
     4541#endif
     4542
     4543_ACEOF
     4544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     4545  $EGREP "yes" >/dev/null 2>&1; then :
     4546  tcl_cv_ld_elf=yes
     4547else
     4548  tcl_cv_ld_elf=no
     4549fi
     4550rm -f conftest*
     4551
     4552fi
     4553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
     4554$as_echo "$tcl_cv_ld_elf" >&6; }
     4555                if test $tcl_cv_ld_elf = yes; then
     4556                    LDFLAGS=-Wl,-export-dynamic
     4557                else
     4558                    LDFLAGS=""
     4559                fi
     4560                ;;
     4561            esac
     4562
     4563            # OpenBSD doesn't do version numbers with dots.
     4564            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
     4565            TCL_LIB_VERSIONS_OK=nodots
     4566            ;;
     4567        FreeBSD-*)
     4568            # FreeBSD 3.* and greater have ELF.
     4569            SHLIB_CFLAGS="-fPIC"
     4570            SHLIB_LD="ld -Bshareable -x"
     4571            SHLIB_LD_LIBS='${LIBS}'
     4572            SHLIB_SUFFIX=".so"
     4573            DL_OBJS="tclLoadDl.o"
     4574            DL_LIBS=""
     4575            LDFLAGS="$LDFLAGS -export-dynamic"
     4576            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     4577            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
     4578            if test "${TCL_THREADS}" = "1" ; then
     4579                # The -pthread needs to go in the CFLAGS, not LIBS
     4580                LIBS=`echo $LIBS | sed s/-pthread//`
     4581                CFLAGS="$CFLAGS -pthread"
     4582                LDFLAGS="$LDFLAGS -pthread"
     4583            fi
     4584            case $system in
     4585            FreeBSD-3.*)
     4586                # FreeBSD-3 doesn't handle version numbers with dots.
     4587                UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
     4588                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
     4589                TCL_LIB_VERSIONS_OK=nodots
     4590                ;;
     4591            esac
     4592            ;;
     4593        Darwin-*)
     4594            CFLAGS_OPTIMIZE="-Os"
     4595            SHLIB_CFLAGS="-fno-common"
     4596            # To avoid discrepancies between what headers configure sees during
     4597            # preprocessing tests and compiling tests, move any -isysroot and
     4598            # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
     4599            CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
     4600                awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
     4601                if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
     4602            CFLAGS="`echo " ${CFLAGS}" | \
     4603                awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
     4604                if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
     4605            if test $do64bit = yes; then
     4606                case `arch` in
     4607                    ppc)
     4608                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
     4609$as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; }
     4610if test "${tcl_cv_cc_arch_ppc64+set}" = set; then :
     4611  $as_echo_n "(cached) " >&6
     4612else
     4613
     4614                            hold_cflags=$CFLAGS
     4615                            CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
     4616                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4617/* end confdefs.h.  */
     4618
     4619int
     4620main ()
     4621{
     4622
     4623  ;
     4624  return 0;
     4625}
     4626_ACEOF
     4627if ac_fn_c_try_link "$LINENO"; then :
     4628  tcl_cv_cc_arch_ppc64=yes
     4629else
     4630  tcl_cv_cc_arch_ppc64=no
     4631fi
     4632rm -f core conftest.err conftest.$ac_objext \
     4633    conftest$ac_exeext conftest.$ac_ext
     4634                            CFLAGS=$hold_cflags
     4635fi
     4636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
     4637$as_echo "$tcl_cv_cc_arch_ppc64" >&6; }
     4638                        if test $tcl_cv_cc_arch_ppc64 = yes; then
     4639                            CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
     4640                            do64bit_ok=yes
     4641                        fi;;
     4642                    i386)
     4643                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
     4644$as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; }
     4645if test "${tcl_cv_cc_arch_x86_64+set}" = set; then :
     4646  $as_echo_n "(cached) " >&6
     4647else
     4648
     4649                            hold_cflags=$CFLAGS
     4650                            CFLAGS="$CFLAGS -arch x86_64"
     4651                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4652/* end confdefs.h.  */
     4653
     4654int
     4655main ()
     4656{
     4657
     4658  ;
     4659  return 0;
     4660}
     4661_ACEOF
     4662if ac_fn_c_try_link "$LINENO"; then :
     4663  tcl_cv_cc_arch_x86_64=yes
     4664else
     4665  tcl_cv_cc_arch_x86_64=no
     4666fi
     4667rm -f core conftest.err conftest.$ac_objext \
     4668    conftest$ac_exeext conftest.$ac_ext
     4669                            CFLAGS=$hold_cflags
     4670fi
     4671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
     4672$as_echo "$tcl_cv_cc_arch_x86_64" >&6; }
     4673                        if test $tcl_cv_cc_arch_x86_64 = yes; then
     4674                            CFLAGS="$CFLAGS -arch x86_64"
     4675                            do64bit_ok=yes
     4676                        fi;;
     4677                    *)
     4678                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
     4679$as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
     4680                esac
     4681            else
     4682                # Check for combined 32-bit and 64-bit fat build
     4683                echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \
     4684                    echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \
     4685                    fat_32_64=yes
     4686            fi
     4687            SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}'
     4688            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5
     4689$as_echo_n "checking if ld accepts -single_module flag... " >&6; }
     4690if test "${tcl_cv_ld_single_module+set}" = set; then :
     4691  $as_echo_n "(cached) " >&6
     4692else
     4693
     4694                hold_ldflags=$LDFLAGS
     4695                LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
     4696                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4697/* end confdefs.h.  */
     4698
     4699int
     4700main ()
     4701{
     4702int i;
     4703  ;
     4704  return 0;
     4705}
     4706_ACEOF
     4707if ac_fn_c_try_link "$LINENO"; then :
     4708  tcl_cv_ld_single_module=yes
     4709else
     4710  tcl_cv_ld_single_module=no
     4711fi
     4712rm -f core conftest.err conftest.$ac_objext \
     4713    conftest$ac_exeext conftest.$ac_ext
     4714                LDFLAGS=$hold_ldflags
     4715fi
     4716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5
     4717$as_echo "$tcl_cv_ld_single_module" >&6; }
     4718            if test $tcl_cv_ld_single_module = yes; then
     4719                SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
     4720            fi
     4721            SHLIB_LD_LIBS='${LIBS}'
     4722            SHLIB_SUFFIX=".dylib"
     4723            DL_OBJS="tclLoadDyld.o"
     4724            DL_LIBS=""
     4725            # Don't use -prebind when building for Mac OS X 10.4 or later only:
     4726            test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \
     4727                "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \
     4728                LDFLAGS="$LDFLAGS -prebind"
     4729            LDFLAGS="$LDFLAGS -headerpad_max_install_names"
     4730            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
     4731$as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; }
     4732if test "${tcl_cv_ld_search_paths_first+set}" = set; then :
     4733  $as_echo_n "(cached) " >&6
     4734else
     4735
     4736                hold_ldflags=$LDFLAGS
     4737                LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
     4738                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4739/* end confdefs.h.  */
     4740
     4741int
     4742main ()
     4743{
     4744int i;
     4745  ;
     4746  return 0;
     4747}
     4748_ACEOF
     4749if ac_fn_c_try_link "$LINENO"; then :
     4750  tcl_cv_ld_search_paths_first=yes
     4751else
     4752  tcl_cv_ld_search_paths_first=no
     4753fi
     4754rm -f core conftest.err conftest.$ac_objext \
     4755    conftest$ac_exeext conftest.$ac_ext
     4756                LDFLAGS=$hold_ldflags
     4757fi
     4758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
     4759$as_echo "$tcl_cv_ld_search_paths_first" >&6; }
     4760            if test $tcl_cv_ld_search_paths_first = yes; then
     4761                LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
     4762            fi
     4763            CC_SEARCH_FLAGS=""
     4764            LD_SEARCH_FLAGS=""
     4765            LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
     4766            PLAT_OBJS=\$\(MAC\_OSX_OBJS\)
     4767            PLAT_SRCS=\$\(MAC\_OSX_SRCS\)
     4768            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use CoreFoundation" >&5
     4769$as_echo_n "checking whether to use CoreFoundation... " >&6; }
     4770            # Check whether --enable-corefoundation was given.
     4771if test "${enable_corefoundation+set}" = set; then :
     4772  enableval=$enable_corefoundation; tcl_corefoundation=$enableval
     4773else
     4774  tcl_corefoundation=yes
     4775fi
     4776
     4777            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_corefoundation" >&5
     4778$as_echo "$tcl_corefoundation" >&6; }
     4779            if test $tcl_corefoundation = yes; then
     4780                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5
     4781$as_echo_n "checking for CoreFoundation.framework... " >&6; }
     4782if test "${tcl_cv_lib_corefoundation+set}" = set; then :
     4783  $as_echo_n "(cached) " >&6
     4784else
     4785
     4786                    hold_libs=$LIBS
     4787                    if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do
     4788                        # On Tiger there is no 64-bit CF, so remove 64-bit archs
     4789                        # from CFLAGS et al. while testing for presence of CF.
     4790                        # 64-bit CF is disabled in tclUnixPort.h if necessary.
     4791                        eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
     4792                    done; fi
     4793                    LIBS="$LIBS -framework CoreFoundation"
     4794                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4795/* end confdefs.h.  */
     4796#include <CoreFoundation/CoreFoundation.h>
     4797int
     4798main ()
     4799{
     4800CFBundleRef b = CFBundleGetMainBundle();
     4801  ;
     4802  return 0;
     4803}
     4804_ACEOF
     4805if ac_fn_c_try_link "$LINENO"; then :
     4806  tcl_cv_lib_corefoundation=yes
     4807else
     4808  tcl_cv_lib_corefoundation=no
     4809fi
     4810rm -f core conftest.err conftest.$ac_objext \
     4811    conftest$ac_exeext conftest.$ac_ext
     4812                    if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do
     4813                        eval $v'="$hold_'$v'"'
     4814                    done; fi; LIBS=$hold_libs
     4815fi
     4816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation" >&5
     4817$as_echo "$tcl_cv_lib_corefoundation" >&6; }
     4818                if test $tcl_cv_lib_corefoundation = yes; then
     4819                    LIBS="$LIBS -framework CoreFoundation"
     4820                    $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h
     4821
     4822                else
     4823                    tcl_corefoundation=no
     4824                fi
     4825                if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then
     4826                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5
     4827$as_echo_n "checking for 64-bit CoreFoundation... " >&6; }
     4828if test "${tcl_cv_lib_corefoundation_64+set}" = set; then :
     4829  $as_echo_n "(cached) " >&6
     4830else
     4831
     4832                        for v in CFLAGS CPPFLAGS LDFLAGS; do
     4833                            eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
     4834                        done
     4835                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     4836/* end confdefs.h.  */
     4837#include <CoreFoundation/CoreFoundation.h>
     4838int
     4839main ()
     4840{
     4841CFBundleRef b = CFBundleGetMainBundle();
     4842  ;
     4843  return 0;
     4844}
     4845_ACEOF
     4846if ac_fn_c_try_link "$LINENO"; then :
     4847  tcl_cv_lib_corefoundation_64=yes
     4848else
     4849  tcl_cv_lib_corefoundation_64=no
     4850fi
     4851rm -f core conftest.err conftest.$ac_objext \
     4852    conftest$ac_exeext conftest.$ac_ext
     4853                        for v in CFLAGS CPPFLAGS LDFLAGS; do
     4854                            eval $v'="$hold_'$v'"'
     4855                        done
     4856fi
     4857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation_64" >&5
     4858$as_echo "$tcl_cv_lib_corefoundation_64" >&6; }
     4859                    if test $tcl_cv_lib_corefoundation_64 = no; then
     4860                        $as_echo "#define NO_COREFOUNDATION_64 1" >>confdefs.h
     4861
     4862                    fi
     4863                fi
     4864            fi
     4865            $as_echo "#define MAC_OSX_TCL 1" >>confdefs.h
     4866
     4867            ;;
     4868        NEXTSTEP-*)
     4869            SHLIB_CFLAGS=""
     4870            SHLIB_LD="cc -nostdlib -r"
     4871            SHLIB_LD_LIBS=""
     4872            SHLIB_SUFFIX=".so"
     4873            DL_OBJS="tclLoadNext.o"
     4874            DL_LIBS=""
     4875            CC_SEARCH_FLAGS=""
     4876            LD_SEARCH_FLAGS=""
     4877            ;;
     4878        OS/390-*)
     4879            CFLAGS_OPTIMIZE=""          # Optimizer is buggy
     4880            $as_echo "#define _OE_SOCKETS 1" >>confdefs.h
     4881        # needed in sys/socket.h
     4882            ;;
     4883        OSF1-1.0|OSF1-1.1|OSF1-1.2)
     4884            # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1
     4885            SHLIB_CFLAGS=""
     4886            # Hack: make package name same as library name
     4887            SHLIB_LD='ld -R -export :'
     4888            SHLIB_LD_LIBS=""
     4889            SHLIB_SUFFIX=".so"
     4890            DL_OBJS="tclLoadOSF.o"
     4891            DL_LIBS=""
     4892            CC_SEARCH_FLAGS=""
     4893            LD_SEARCH_FLAGS=""
     4894            ;;
     4895        OSF1-1.*)
     4896            # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
     4897            SHLIB_CFLAGS="-fPIC"
     4898            if test "$SHARED_BUILD" = "1" ; then
     4899                SHLIB_LD="ld -shared"
     4900            else
     4901                SHLIB_LD="ld -non_shared"
     4902            fi
     4903            SHLIB_LD_LIBS=""
     4904            SHLIB_SUFFIX=".so"
     4905            DL_OBJS="tclLoadDl.o"
     4906            DL_LIBS=""
     4907            CC_SEARCH_FLAGS=""
     4908            LD_SEARCH_FLAGS=""
     4909            ;;
     4910        OSF1-V*)
     4911            # Digital OSF/1
     4912            SHLIB_CFLAGS=""
     4913            if test "$SHARED_BUILD" = "1" ; then
     4914                SHLIB_LD='ld -shared -expect_unresolved "*"'
     4915            else
     4916                SHLIB_LD='ld -non_shared -expect_unresolved "*"'
     4917            fi
     4918            SHLIB_LD_LIBS=""
     4919            SHLIB_SUFFIX=".so"
     4920            DL_OBJS="tclLoadDl.o"
     4921            DL_LIBS=""
     4922            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
     4923            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
     4924            if test "$GCC" = "yes" ; then
     4925                CFLAGS="$CFLAGS -mieee"
     4926            else
     4927                CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
     4928            fi
     4929            # see pthread_intro(3) for pthread support on osf1, k.furukawa
     4930            if test "${TCL_THREADS}" = "1" ; then
     4931                CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
     4932                CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
     4933                LIBS=`echo $LIBS | sed s/-lpthreads//`
     4934                if test "$GCC" = "yes" ; then
     4935                    LIBS="$LIBS -lpthread -lmach -lexc"
     4936                else
     4937                    CFLAGS="$CFLAGS -pthread"
     4938                    LDFLAGS="$LDFLAGS -pthread"
     4939                fi
     4940            fi
     4941
     4942            ;;
     4943        QNX-6*)
     4944            # QNX RTP
     4945            # This may work for all QNX, but it was only reported for v6.
     4946            SHLIB_CFLAGS="-fPIC"
     4947            SHLIB_LD="ld -Bshareable -x"
     4948            SHLIB_LD_LIBS=""
     4949            SHLIB_SUFFIX=".so"
     4950            DL_OBJS="tclLoadDl.o"
     4951            # dlopen is in -lc on QNX
     4952            DL_LIBS=""
     4953            CC_SEARCH_FLAGS=""
     4954            LD_SEARCH_FLAGS=""
     4955            ;;
     4956        RISCos-*)
     4957            SHLIB_CFLAGS="-G 0"
     4958            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
     4959            SHLIB_LD_LIBS='${LIBS}'
     4960            SHLIB_SUFFIX=".a"
     4961            DL_OBJS="tclLoadAout.o"
     4962            DL_LIBS=""
     4963            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
     4964            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
     4965            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     4966            ;;
     4967        SCO_SV-3.2*)
     4968            # Note, dlopen is available only on SCO 3.2.5 and greater. However,
     4969            # this test works, since "uname -s" was non-standard in 3.2.4 and
     4970            # below.
     4971            if test "$GCC" = "yes" ; then
     4972                SHLIB_CFLAGS="-fPIC -melf"
     4973                LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
     4974            else
     4975                SHLIB_CFLAGS="-Kpic -belf"
     4976                LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
     4977            fi
     4978            SHLIB_LD="ld -G"
     4979            SHLIB_LD_LIBS=""
     4980            SHLIB_SUFFIX=".so"
     4981            DL_OBJS="tclLoadDl.o"
     4982            DL_LIBS=""
     4983            CC_SEARCH_FLAGS=""
     4984            LD_SEARCH_FLAGS=""
     4985            ;;
     4986        SINIX*5.4*)
     4987            SHLIB_CFLAGS="-K PIC"
     4988            SHLIB_LD="cc -G"
     4989            SHLIB_LD_LIBS=""
     4990            SHLIB_SUFFIX=".so"
     4991            DL_OBJS="tclLoadDl.o"
     4992            DL_LIBS="-ldl"
     4993            CC_SEARCH_FLAGS=""
     4994            LD_SEARCH_FLAGS=""
     4995            ;;
     4996        SunOS-4*)
     4997            SHLIB_CFLAGS="-PIC"
     4998            SHLIB_LD="ld"
     4999            SHLIB_LD_LIBS=""
     5000            SHLIB_SUFFIX=".so"
     5001            DL_OBJS="tclLoadDl.o"
     5002            DL_LIBS="-ldl"
     5003            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
     5004            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     5005
     5006            # SunOS can't handle version numbers with dots in them in library
     5007            # specs, like -ltcl7.5, so use -ltcl75 instead.  Also, it
     5008            # requires an extra version number at the end of .so file names.
     5009            # So, the library has to have a name like libtcl75.so.1.0
     5010
     5011            SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
     5012            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
     5013            TCL_LIB_VERSIONS_OK=nodots
     5014            ;;
     5015        SunOS-5.[0-6])
     5016            # Careful to not let 5.10+ fall into this case
     5017
     5018            # Note: If _REENTRANT isn't defined, then Solaris
     5019            # won't define thread-safe library routines.
     5020
     5021            $as_echo "#define _REENTRANT 1" >>confdefs.h
     5022
     5023            $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
     5024
     5025
     5026            SHLIB_CFLAGS="-KPIC"
     5027
     5028            # Note: need the LIBS below, otherwise Tk won't find Tcl's
     5029            # symbols when dynamically loaded into tclsh.
     5030
     5031            SHLIB_LD_LIBS='${LIBS}'
     5032            SHLIB_SUFFIX=".so"
     5033            DL_OBJS="tclLoadDl.o"
     5034            DL_LIBS="-ldl"
     5035            if test "$GCC" = "yes" ; then
     5036                SHLIB_LD="$CC -shared"
     5037                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
     5038                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     5039            else
     5040                SHLIB_LD="/usr/ccs/bin/ld -G -z text"
     5041                CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
     5042                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     5043            fi
     5044            ;;
     5045        SunOS-5*)
     5046            # Note: If _REENTRANT isn't defined, then Solaris
     5047            # won't define thread-safe library routines.
     5048
     5049            $as_echo "#define _REENTRANT 1" >>confdefs.h
     5050
     5051            $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
     5052
     5053
     5054            SHLIB_CFLAGS="-KPIC"
     5055
     5056            # Check to enable 64-bit flags for compiler/linker
     5057            if test "$do64bit" = "yes" ; then
     5058                arch=`isainfo`
     5059                if test "$arch" = "sparcv9 sparc" ; then
     5060                        if test "$GCC" = "yes" ; then
     5061                            if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then
     5062                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
     5063$as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
     5064                            else
     5065                                do64bit_ok=yes
     5066                                CFLAGS="$CFLAGS -m64 -mcpu=v9"
     5067                                LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
     5068                                SHLIB_CFLAGS="-fPIC"
     5069                            fi
     5070                        else
     5071                            do64bit_ok=yes
     5072                            if test "$do64bitVIS" = "yes" ; then
     5073                                CFLAGS="$CFLAGS -xarch=v9a"
     5074                                LDFLAGS="$LDFLAGS -xarch=v9a"
     5075                            else
     5076                                CFLAGS="$CFLAGS -xarch=v9"
     5077                                LDFLAGS="$LDFLAGS -xarch=v9"
     5078                            fi
     5079                            # Solaris 64 uses this as well
     5080                            #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
     5081                        fi
     5082                elif test "$arch" = "amd64 i386" ; then
     5083                    if test "$GCC" = "yes" ; then
     5084                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
     5085$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
     5086                    else
     5087                        do64bit_ok=yes
     5088                        CFLAGS="$CFLAGS -xarch=amd64"
     5089                        LDFLAGS="$LDFLAGS -xarch=amd64"
     5090                    fi
     5091                else
     5092                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
     5093$as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
     5094                fi
     5095            fi
     5096
     5097            # Note: need the LIBS below, otherwise Tk won't find Tcl's
     5098            # symbols when dynamically loaded into tclsh.
     5099
     5100            SHLIB_LD_LIBS='${LIBS}'
     5101            SHLIB_SUFFIX=".so"
     5102            DL_OBJS="tclLoadDl.o"
     5103            DL_LIBS="-ldl"
     5104            if test "$GCC" = "yes" ; then
     5105                SHLIB_LD="$CC -shared"
     5106                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
     5107                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     5108                if test "$do64bit_ok" = "yes" ; then
     5109                    # We need to specify -static-libgcc or we need to
     5110                    # add the path to the sparv9 libgcc.
     5111                    SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
     5112                    # for finding sparcv9 libgcc, get the regular libgcc
     5113                    # path, remove so name and append 'sparcv9'
     5114                    #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
     5115                    #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
     5116                fi
     5117            else
     5118                case $system in
     5119                    SunOS-5.[1-9][0-9]*)
     5120                        SHLIB_LD='${CC} -G -z text ${LDFLAGS}';;
     5121                    *)
     5122                        SHLIB_LD="/usr/ccs/bin/ld -G -z text";;
     5123                esac
     5124                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
     5125                LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
     5126            fi
     5127            ;;
     5128        ULTRIX-4.*)
     5129            SHLIB_CFLAGS="-G 0"
     5130            SHLIB_SUFFIX=".a"
     5131            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
     5132            SHLIB_LD_LIBS='${LIBS}'
     5133            DL_OBJS="tclLoadAout.o"
     5134            DL_LIBS=""
     5135            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
     5136            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
     5137            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
     5138            if test "$GCC" != "yes" ; then
     5139                CFLAGS="$CFLAGS -DHAVE_TZSET -std1"
     5140            fi
     5141            ;;
     5142        UNIX_SV* | UnixWare-5*)
     5143            SHLIB_CFLAGS="-KPIC"
     5144            SHLIB_LD="cc -G"
     5145            SHLIB_LD_LIBS=""
     5146            SHLIB_SUFFIX=".so"
     5147            DL_OBJS="tclLoadDl.o"
     5148            DL_LIBS="-ldl"
     5149            # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
     5150            # that don't grok the -Bexport option.  Test that it does.
     5151            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
     5152$as_echo_n "checking for ld accepts -Bexport flag... " >&6; }
     5153if test "${tcl_cv_ld_Bexport+set}" = set; then :
     5154  $as_echo_n "(cached) " >&6
     5155else
     5156
     5157                hold_ldflags=$LDFLAGS
     5158                LDFLAGS="$LDFLAGS -Wl,-Bexport"
     5159                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5160/* end confdefs.h.  */
     5161
     5162int
     5163main ()
     5164{
     5165int i;
     5166  ;
     5167  return 0;
     5168}
     5169_ACEOF
     5170if ac_fn_c_try_link "$LINENO"; then :
     5171  tcl_cv_ld_Bexport=yes
     5172else
     5173  tcl_cv_ld_Bexport=no
     5174fi
     5175rm -f core conftest.err conftest.$ac_objext \
     5176    conftest$ac_exeext conftest.$ac_ext
     5177                LDFLAGS=$hold_ldflags
     5178fi
     5179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
     5180$as_echo "$tcl_cv_ld_Bexport" >&6; }
     5181            if test $tcl_cv_ld_Bexport = yes; then
     5182                LDFLAGS="$LDFLAGS -Wl,-Bexport"
     5183            fi
     5184            CC_SEARCH_FLAGS=""
     5185            LD_SEARCH_FLAGS=""
     5186            ;;
     5187    esac
     5188
     5189    if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then
     5190        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
     5191$as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
     5192    fi
     5193
     5194
     5195
     5196
     5197    # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic
     5198    # Loading for Tcl -- What Became of It?".  Proc. 2nd Tcl/Tk Workshop,
     5199    # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need
     5200    # to determine which of several header files defines the a.out file
     5201    # format (a.out.h, sys/exec.h, or sys/exec_aout.h).  At present, we
     5202    # support only a file format that is more or less version-7-compatible.
     5203    # In particular,
     5204    #   - a.out files must begin with `struct exec'.
     5205    #   - the N_TXTOFF on the `struct exec' must compute the seek address
     5206    #     of the text segment
     5207    #   - The `struct exec' must contain a_magic, a_text, a_data, a_bss
     5208    #     and a_entry fields.
     5209    # The following compilation should succeed if and only if either sys/exec.h
     5210    # or a.out.h is usable for the purpose.
     5211    #
     5212    # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the
     5213    # `struct exec' includes a second header that contains information that
     5214    # duplicates the v7 fields that are needed.
     5215
     5216    if test "x$DL_OBJS" = "xtclLoadAout.o" ; then
     5217        { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec.h" >&5
     5218$as_echo_n "checking sys/exec.h... " >&6; }
     5219if test "${tcl_cv_sysexec_h+set}" = set; then :
     5220  $as_echo_n "(cached) " >&6
     5221else
     5222
     5223        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5224/* end confdefs.h.  */
     5225#include <sys/exec.h>
     5226int
     5227main ()
     5228{
     5229
     5230            struct exec foo;
     5231            unsigned long seek;
     5232            int flag;
     5233#if defined(__mips) || defined(mips)
     5234            seek = N_TXTOFF (foo.ex_f, foo.ex_o);
     5235#else
     5236            seek = N_TXTOFF (foo);
     5237#endif
     5238            flag = (foo.a_magic == OMAGIC);
     5239            return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
     5240
     5241  ;
     5242  return 0;
     5243}
     5244_ACEOF
     5245if ac_fn_c_try_compile "$LINENO"; then :
     5246  tcl_cv_sysexec_h=usable
     5247else
     5248  tcl_cv_sysexec_h=unusable
     5249fi
     5250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5251fi
     5252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexec_h" >&5
     5253$as_echo "$tcl_cv_sysexec_h" >&6; }
     5254        if test $tcl_cv_sysexec_h = usable; then
     5255            $as_echo "#define USE_SYS_EXEC_H 1" >>confdefs.h
     5256
     5257        else
     5258            { $as_echo "$as_me:${as_lineno-$LINENO}: checking a.out.h" >&5
     5259$as_echo_n "checking a.out.h... " >&6; }
     5260if test "${tcl_cv_aout_h+set}" = set; then :
     5261  $as_echo_n "(cached) " >&6
     5262else
     5263
     5264            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5265/* end confdefs.h.  */
     5266#include <a.out.h>
     5267int
     5268main ()
     5269{
     5270
     5271                struct exec foo;
     5272                unsigned long seek;
     5273                int flag;
     5274#if defined(__mips) || defined(mips)
     5275                seek = N_TXTOFF (foo.ex_f, foo.ex_o);
     5276#else
     5277                seek = N_TXTOFF (foo);
     5278#endif
     5279                flag = (foo.a_magic == OMAGIC);
     5280                return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
     5281
     5282  ;
     5283  return 0;
     5284}
     5285_ACEOF
     5286if ac_fn_c_try_compile "$LINENO"; then :
     5287  tcl_cv_aout_h=usable
     5288else
     5289  tcl_cv_aout_h=unusable
     5290fi
     5291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5292fi
     5293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_aout_h" >&5
     5294$as_echo "$tcl_cv_aout_h" >&6; }
     5295            if test $tcl_cv_aout_h = usable; then
     5296                $as_echo "#define USE_A_OUT_H 1" >>confdefs.h
     5297
     5298            else
     5299                { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec_aout.h" >&5
     5300$as_echo_n "checking sys/exec_aout.h... " >&6; }
     5301if test "${tcl_cv_sysexecaout_h+set}" = set; then :
     5302  $as_echo_n "(cached) " >&6
     5303else
     5304
     5305                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     5306/* end confdefs.h.  */
     5307#include <sys/exec_aout.h>
     5308int
     5309main ()
     5310{
     5311
     5312                    struct exec foo;
     5313                    unsigned long seek;
     5314                    int flag;
     5315#if defined(__mips) || defined(mips)
     5316                    seek = N_TXTOFF (foo.ex_f, foo.ex_o);
     5317#else
     5318                    seek = N_TXTOFF (foo);
     5319#endif
     5320                    flag = (foo.a_midmag == OMAGIC);
     5321                    return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
     5322
     5323  ;
     5324  return 0;
     5325}
     5326_ACEOF
     5327if ac_fn_c_try_compile "$LINENO"; then :
     5328  tcl_cv_sysexecaout_h=usable
     5329else
     5330  tcl_cv_sysexecaout_h=unusable
     5331fi
     5332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     5333fi
     5334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexecaout_h" >&5
     5335$as_echo "$tcl_cv_sysexecaout_h" >&6; }
     5336                if test $tcl_cv_sysexecaout_h = usable; then
     5337                    $as_echo "#define USE_SYS_EXEC_AOUT_H 1" >>confdefs.h
     5338
     5339                else
     5340                    DL_OBJS=""
     5341                fi
     5342            fi
     5343        fi
     5344    fi
     5345
     5346    # Step 5: disable dynamic loading if requested via a command-line switch.
     5347
     5348    # Check whether --enable-load was given.
     5349if test "${enable_load+set}" = set; then :
     5350  enableval=$enable_load; tcl_ok=$enableval
     5351else
     5352  tcl_ok=yes
     5353fi
     5354
     5355    if test "$tcl_ok" = "no"; then
     5356        DL_OBJS=""
     5357    fi
     5358
     5359    if test "x$DL_OBJS" != "x" ; then
     5360        BUILD_DLTEST="\$(DLTEST_TARGETS)"
     5361    else
     5362        echo "Can't figure out how to do dynamic loading or shared libraries"
     5363        echo "on this system."
     5364        SHLIB_CFLAGS=""
     5365        SHLIB_LD=""
     5366        SHLIB_SUFFIX=""
     5367        DL_OBJS="tclLoadNone.o"
     5368        DL_LIBS=""
     5369        LDFLAGS="$LDFLAGS_ORIG"
     5370        CC_SEARCH_FLAGS=""
     5371        LD_SEARCH_FLAGS=""
     5372        BUILD_DLTEST=""
     5373    fi
     5374
     5375    # If we're running gcc, then change the C flags for compiling shared
     5376    # libraries to the right flags for gcc, instead of those for the
     5377    # standard manufacturer compiler.
     5378
     5379    if test "$DL_OBJS" != "tclLoadNone.o" ; then
     5380        if test "$GCC" = "yes" ; then
     5381            case $system in
     5382                AIX-*)
     5383                    ;;
     5384                BSD/OS*)
     5385                    ;;
     5386                IRIX*)
     5387                    ;;
     5388                NetBSD-*|FreeBSD-*|OpenBSD-*)
     5389                    ;;
     5390                Darwin-*)
     5391                    ;;
     5392                RISCos-*)
     5393                    ;;
     5394                SCO_SV-3.2*)
     5395                    ;;
     5396                ULTRIX-4.*)
     5397                    ;;
     5398                *)
     5399                    SHLIB_CFLAGS="-fPIC"
     5400                    ;;
     5401            esac
     5402        fi
     5403    fi
     5404
     5405    if test "$SHARED_LIB_SUFFIX" = "" ; then
     5406        SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}${SHLIB_SUFFIX}'
     5407    fi
     5408    if test "$UNSHARED_LIB_SUFFIX" = "" ; then
     5409        UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
     5410    fi
     5411
     5412    if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then
     5413        LIB_SUFFIX=${SHARED_LIB_SUFFIX}
     5414        MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}'
     5415        INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
     5416    else
     5417        LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}
     5418
     5419        if test "$RANLIB" = "" ; then
     5420            MAKE_LIB='$(STLIB_LD) $@ ${OBJS}'
     5421            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
     5422        else
     5423            MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@'
     5424            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))'
     5425        fi
     5426
     5427    fi
     5428
     5429
     5430    # Stub lib does not depend on shared/static configuration
     5431    if test "$RANLIB" = "" ; then
     5432        MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}'
     5433        INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)'
     5434    else
     5435        MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@'
     5436        INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))'
     5437    fi
     5438
     5439
     5440
     5441
     5442
     5443
     5444
     5445
     5446
     5447
     5448
     5449
     5450
     5451
     5452
     5453
     5454
     5455
     5456
     5457
     5458
     5459
     5460
     5461
     5462
     5463
     5464
     5465
     5466
     5467
     5468
     5469
     5470
     5471    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5
     5472$as_echo_n "checking how to build libraries... " >&6; }
     5473    # Check whether --enable-shared was given.
     5474if test "${enable_shared+set}" = set; then :
     5475  enableval=$enable_shared; tcl_ok=$enableval
     5476else
     5477  tcl_ok=yes
     5478fi
     5479
     5480
     5481    if test "${enable_shared+set}" = set; then
     5482        enableval="$enable_shared"
     5483        tcl_ok=$enableval
     5484    else
     5485        tcl_ok=yes
     5486    fi
     5487
     5488    if test "$tcl_ok" = "yes" ; then
     5489        { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5
     5490$as_echo "shared" >&6; }
     5491        SHARED_BUILD=1
     5492    else
     5493        { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
     5494$as_echo "static" >&6; }
     5495        SHARED_BUILD=0
     5496        $as_echo "#define STATIC_BUILD 1" >>confdefs.h
     5497
     5498    fi
     5499
     5500
     5501
     5502
     5503
     5504
     5505
     5506
    21055507
    21065508
     
    22345636
    22355637
    2236 ac_config_files="$ac_config_files Makefile pkgIndex.tcl apps/Makefile apps/about apps/encodedata apps/rappture apps/rappture-csh.env apps/rappture.env apps/rappture.use apps/rerun apps/simsim apps/xmldiff scripts/Makefile"
     5638ac_config_files="$ac_config_files Makefile pkgIndex.tcl apps/Makefile apps/about apps/encodedata apps/rappture apps/rappture-csh.env apps/rappture.env apps/rappture.use apps/rerun apps/simsim apps/xmldiff scripts/Makefile src/Makefile"
    22375639
    22385640cat >confcache <<\_ACEOF
     
    27786180ac_log="
    27796181This file was extended by RapptureGUI $as_me 1.1, which was
    2780 generated by GNU Autoconf 2.65.  Invocation command line was
     6182generated by GNU Autoconf 2.64.  Invocation command line was
    27816183
    27826184  CONFIG_FILES    = $CONFIG_FILES
     
    28136215  -h, --help       print this help, then exit
    28146216  -V, --version    print version number and configuration settings, then exit
    2815       --config     print configuration, then exit
    28166217  -q, --quiet, --silent
    28176218                   do not print progress messages
     
    28286229_ACEOF
    28296230cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
    2830 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
    28316231ac_cs_version="\\
    28326232RapptureGUI config.status 1.1
    2833 configured by $0, generated by GNU Autoconf 2.65,
    2834   with options \\"\$ac_cs_config\\"
     6233configured by $0, generated by GNU Autoconf 2.64,
     6234  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
    28356235
    28366236Copyright (C) 2009 Free Software Foundation, Inc.
     
    28696269  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    28706270    $as_echo "$ac_cs_version"; exit ;;
    2871   --config | --confi | --conf | --con | --co | --c )
    2872     $as_echo "$ac_cs_config"; exit ;;
    28736271  --debug | --debu | --deb | --de | --d | -d )
    28746272    debug=: ;;
     
    29496347    "apps/xmldiff") CONFIG_FILES="$CONFIG_FILES apps/xmldiff" ;;
    29506348    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
     6349    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
    29516350
    29526351  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
     
    30506449:nl
    30516450h
    3052 s/\(.\{148\}\)..*/\1/
     6451s/\(.\{148\}\).*/\1/
    30536452t more1
    30546453s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
     
    30646463:delim
    30656464h
    3066 s/\(.\{148\}\)..*/\1/
     6465s/\(.\{148\}\).*/\1/
    30676466t more2
    30686467s/["\\]/\\&/g; s/^/"/; s/$/"/
  • trunk/gui/configure.in

    r1870 r2117  
    2727AC_PROG_MKDIR_P
    2828AC_PROG_MAKE_SET
     29AC_PROG_CC
     30
     31SC_CONFIG_CFLAGS
     32SC_ENABLE_SHARED
     33
     34AC_SUBST(CFLAGS_DEBUG)
     35AC_SUBST(CFLAGS_OPTIMIZE)
     36AC_SUBST(STLIB_LD)
     37AC_SUBST(SHLIB_LD)
     38AC_SUBST(SHLIB_CFLAGS)
     39AC_SUBST(SHLIB_LDFLAGS)
     40AC_SUBST(SHLIB_SUFFIX)
    2941
    3042gui_with_tcl=""
     
    163175    apps/xmldiff
    164176    scripts/Makefile
     177    src/Makefile
    165178])
    166179AC_OUTPUT
  • trunk/gui/pkgIndex.tcl.in

    r1859 r2117  
    88        variable library $dir
    99    }
     10    set ext [info sharedlibextension]
     11    load [file join $dir "RapptureGUI${version}${ext}"]
    1012    package provide RapptureGUI $version
    1113} $dir]
  • trunk/gui/scripts/Makefile.in

    r2081 r2117  
    4040                $(srcdir)/deviceViewer1D.tcl \
    4141                $(srcdir)/deviceresult.tcl \
     42                $(srcdir)/diffview.tcl \
    4243                $(srcdir)/dispatcher.tcl \
    4344                $(srcdir)/drawing.tcl \
Note: See TracChangeset for help on using the changeset viewer.