Changeset 2179 for branches/blt4/gui


Ignore:
Timestamp:
Mar 30, 2011 9:49:25 PM (13 years ago)
Author:
gah
Message:
 
Location:
branches/blt4/gui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/blt4/gui/configure

    r2170 r2179  
    605605LIBOBJS
    606606TK_VERSION
     607TK_INC_SPEC
     608TK_LIB_SPEC
    607609TCL_LIB_SPEC
    608610TCL_INC_SPEC
     
    713715enable_gui
    714716with_tclsh
     717with_tk
    715718'
    716719      ac_precious_vars='build_alias
     
    13511354  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    13521355  --with-tclsh=DIR        location of tclsh [default=yes]
     1356  --with-tcl=DIR          path of tclConfig.sh [default=yes]
     1357  --with-tk=DIR           path of tkConfig.sh [default=yes]
    13531358
    13541359Some influential environment variables:
     
    55465551
    55475552
    5548 gui_with_tcl=""
     5553with_tcl=""
     5554with_tk=""
    55495555
    55505556make_command=""
     
    55865592
    55875593
     5594with_tcl="yes"
     5595
     5596# Check whether --with-tk was given.
     5597if test "${with_tk+set}" = set; then :
     5598  withval=$with_tk;
     5599else
     5600  with_tcl="yes"
     5601fi
     5602
     5603
     5604with_tk="yes"
     5605
     5606# Check whether --with-tk was given.
     5607if test "${with_tk+set}" = set; then :
     5608  withval=$with_tk;
     5609else
     5610  with_tk=yes
     5611fi
     5612
    55885613TCLSH=
     5614
    55895615# -----------------------------------------------------------------------
    55905616#
     
    55925618#
    55935619# -----------------------------------------------------------------------
    5594 
    55955620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
    55965621$as_echo_n "checking for tclConfig.sh... " >&6; }
    55975622tcl_config_sh=""
    5598 if test "x$gui_with_tcl" != "x" ; then
     5623if test "$with_tcl" != "yes" ; then
    55995624
    56005625  # Verify that a tclConfig.sh file exists in the directory specified
     
    56025627
    56035628  for dir in \
    5604    $gui_with_tcl
     5629        $with_tcl
    56055630  do
    56065631    if test -r "$dir/tclConfig.sh" ; then
     
    56415666fi
    56425667. ${tcl_config_sh}
    5643 TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
     5668
     5669
     5670# -----------------------------------------------------------------------
     5671#
     5672#       Find the Tcl build configuration file "tclConfig.sh"
     5673#
     5674# -----------------------------------------------------------------------
     5675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tkConfig.sh" >&5
     5676$as_echo_n "checking for tkConfig.sh... " >&6; }
     5677tk_config_sh=""
     5678if test "$with_tk" != "yes" ; then
     5679
     5680  # Verify that a tclConfig.sh file exists in the directory specified
     5681  # by --with-tk.
     5682
     5683  for dir in \
     5684        $with_tk \
     5685        $with_tcl \
     5686  do
     5687    if test -r "$dir/tkConfig.sh" ; then
     5688      tcl_config_sh="$dir/tkConfig.sh"
     5689      break
     5690    elif test -r "$dir/lib/tkConfig.sh" ; then
     5691      tcl_config_sh="$dir/lib/tkConfig.sh"
     5692      break
     5693    fi
     5694  done
     5695else
     5696
     5697  # Otherwise, search for Tcl configuration file.
     5698
     5699  #  1. Search previously named locations.
     5700
     5701  for dir in \
     5702   $prefix \
     5703   $exec_prefix \
     5704  do
     5705    if test -r "$dir/tkConfig.sh" ; then
     5706      tcl_config_sh="$dir/tkConfig.sh"
     5707      break
     5708    elif test -r "$dir/lib/tkConfig.sh" ; then
     5709      tcl_config_sh="$dir/lib/tkConfig.sh"
     5710      break
     5711    fi
     5712  done
     5713fi
     5714
     5715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tk_config_sh}" >&5
     5716$as_echo "${tk_config_sh}" >&6; }
     5717
     5718if test "x$tk_config_sh" = "x" ; then
     5719  echo "can't find Tk configuration script \"tkConfig.sh\""
     5720  exit 1
     5721fi
     5722. ${tk_config_sh}
     5723
    56445724
    56455725case $target in
     
    56665746
    56675747
    5668 if test -f "${exec_prefix}/lib/tclConfig.sh" ; then
    5669   . ${exec_prefix}/lib/tclConfig.sh
    5670 fi
    5671 if test -f "${exec_prefix}/lib/tclConfig.sh" ; then
    5672   . ${exec_prefix}/lib/tkConfig.sh
    5673 fi
     5748
     5749
    56745750
    56755751
  • branches/blt4/gui/configure.in

    r2170 r2179  
    4040AC_SUBST(SHLIB_SUFFIX)
    4141
    42 gui_with_tcl=""
     42with_tcl=""
     43with_tk=""
    4344
    4445make_command=""
     
    7576    [with_tclsh=yes])
    7677
     78with_tcl="yes"
     79AC_ARG_WITH(
     80    [tk],
     81    [AS_HELP_STRING([--with-tcl[=DIR]],
     82        [path of tclConfig.sh @<:@default=yes@:>@])],
     83    [],
     84    [with_tcl="yes"])
     85
     86with_tk="yes"
     87AC_ARG_WITH(
     88    [tk],
     89    [AS_HELP_STRING([--with-tk[=DIR]],
     90        [path of tkConfig.sh @<:@default=yes@:>@])],
     91    [],
     92    [with_tk=yes])
    7793TCLSH=
     94
    7895# -----------------------------------------------------------------------
    7996#
     
    8198#
    8299# -----------------------------------------------------------------------
    83 
    84100AC_MSG_CHECKING([for tclConfig.sh])
    85101tcl_config_sh=""
    86 if test "x$gui_with_tcl" != "x" ; then
     102if test "$with_tcl" != "yes" ; then
    87103
    88104  # Verify that a tclConfig.sh file exists in the directory specified
     
    90106
    91107  for dir in \
    92    $gui_with_tcl
     108        $with_tcl
    93109  do
    94110    if test -r "$dir/tclConfig.sh" ; then
     
    128144fi
    129145. ${tcl_config_sh}
    130 TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
     146
     147
     148# -----------------------------------------------------------------------
     149#
     150#       Find the Tcl build configuration file "tclConfig.sh"
     151#
     152# -----------------------------------------------------------------------
     153AC_MSG_CHECKING([for tkConfig.sh])
     154tk_config_sh=""
     155if test "$with_tk" != "yes" ; then
     156
     157  # Verify that a tclConfig.sh file exists in the directory specified
     158  # by --with-tk.
     159
     160  for dir in \
     161        $with_tk \
     162        $with_tcl \
     163  do
     164    if test -r "$dir/tkConfig.sh" ; then
     165      tcl_config_sh="$dir/tkConfig.sh"
     166      break
     167    elif test -r "$dir/lib/tkConfig.sh" ; then
     168      tcl_config_sh="$dir/lib/tkConfig.sh"
     169      break
     170    fi
     171  done
     172else
     173
     174  # Otherwise, search for Tcl configuration file. 
     175
     176  #  1. Search previously named locations.
     177
     178  for dir in \
     179   $prefix \
     180   $exec_prefix \
     181  do
     182    if test -r "$dir/tkConfig.sh" ; then
     183      tcl_config_sh="$dir/tkConfig.sh"
     184      break
     185    elif test -r "$dir/lib/tkConfig.sh" ; then
     186      tcl_config_sh="$dir/lib/tkConfig.sh"
     187      break
     188    fi
     189  done
     190fi
     191
     192AC_MSG_RESULT([${tk_config_sh}])
     193
     194if test "x$tk_config_sh" = "x" ; then
     195  echo "can't find Tk configuration script \"tkConfig.sh\""
     196  exit 1
     197fi
     198. ${tk_config_sh}
     199
    131200
    132201case $target in
     
    148217AC_SUBST(TCLSH)
    149218
     219
    150220AC_SUBST(TCL_VERSION)
    151221AC_SUBST(TCL_INC_SPEC)
    152222AC_SUBST(TCL_LIB_SPEC)
    153 
    154 if test -f "${exec_prefix}/lib/tclConfig.sh" ; then
    155   . ${exec_prefix}/lib/tclConfig.sh
    156 fi
    157 if test -f "${exec_prefix}/lib/tclConfig.sh" ; then
    158   . ${exec_prefix}/lib/tkConfig.sh     
    159 fi
     223AC_SUBST(TK_LIB_SPEC)
     224AC_SUBST(TK_INC_SPEC)
    160225AC_SUBST(TCL_VERSION)
    161226AC_SUBST(TK_VERSION)
  • branches/blt4/gui/src/Makefile.in

    r2170 r2179  
    2828TCL_VERSION     = @TCL_VERSION@
    2929TCL_LIB_SPEC    = @TCL_LIB_SPEC@
     30TK_LIB_SPEC     = @TK_LIB_SPEC@
    3031
    3132CC_SWITCHES     = $(SHLIB_CFLAGS) $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES)
     
    4647LIBS            = \
    4748                -L../../src/core -lrappture \
    48                 -L$(libdir) -ltcl8.4 -ltk8.4 -lm
     49                -L$(libdir) $(TCL_LIB_SPEC) $(TK_LIB_SPEC) -lm
    4950
    5051OBJS            = \
Note: See TracChangeset for help on using the changeset viewer.