configure.in.tk
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:6k
源码类别:

通讯编程

开发平台:

Visual C++

  1. dnl autoconf rules to find tk 
  2. dnl $Header: /cvsroot/otcl-tclcl/conf/configure.in.tk,v 1.31 2007/02/18 22:16:52 tom_henderson Exp $ (LBL)
  3. AC_ARG_WITH(tk, --with-tk=path specify a pathname for tk, d=$withval, d="")
  4. dnl library version defaults to 8.0
  5. AC_ARG_WITH(tk-ver, --with-tk-ver=path specify the version of tcl/tk, TK_VERS=$withval, TK_VERS=8.4.18)
  6. dnl Truncate anything beyond and including the second decimal point
  7. TK_HI_VERS=`echo $TK_VERS | sed 's/([[0-9]]*).([[0-9]]*).([[0-9]]*)/1.2/'`
  8. TK_MAJOR_VERS=`echo $TK_VERS | sed 's/([[0-9]]*).([[0-9]]*).([[0-9]]*)/1/'`
  9. TK_ALT_VERS=`echo $TK_VERS | sed 's/.//'`
  10. dnl work with one version in the past
  11. TK_OLD_VERS=8.3.5
  12. TK_OLD_ALT_VERS=`echo $TK_OLD_VERS | sed 's/.//'`
  13. TK_TCL_PLACES_D="$d 
  14.                 $d/lib/tk$TK_VERS 
  15.                 $d/lib/tk$TK_ALT_VERS 
  16. $d/lib/tk$TK_HI_VERS 
  17.                 $d/library 
  18.                 $d/lib/tk 
  19.                 $d/../lib/tk$TK_VERS 
  20.                 $d/../lib/tk$TK_ALT_VERS 
  21.                 $d/../lib/tk$TK_HI_VERS 
  22.                 $d/../lib/tk 
  23.                 $d/lib/tk$TK_OLD_VERS 
  24.                 $d/lib/tk$TK_OLD_ALT_VERS 
  25.                 $d/../lib/tk$TK_OLD_VERS 
  26.                 $d/../lib/tk$TK_OLD_ALT_VERS 
  27.                 $d/../lib/tk 
  28.                 $d/lib 
  29.                 $d/library"
  30. TK_TCL_PLACES=" 
  31. ../lib/tk$TK_HI_VERS 
  32. ../lib/tk$TK_VERS 
  33. ../lib/tk$TK_ALT_VERS 
  34. ../tk$TK_VERS/library 
  35.                 ../tk$TK_ALT_VERS/library 
  36.                 ../tk$TK_HI_VERS/library 
  37. ../tk/library 
  38.                 /usr/src/local/tk$TK_VERS/library 
  39.                 /usr/src/local/tk$TK_ALT_VERS/library 
  40.                 /usr/src/local/tk$TK_HI_VERS/library 
  41.                 /usr/contrib/include 
  42.                 /usr/local/lib/tk$TK_VERS 
  43.                 /usr/local/lib/tk$TK_ALT_VERS 
  44.                 /usr/local/lib/tk$TK_HI_VERS 
  45.                 /usr/local/include/tk$TK_VERS 
  46.                 /usr/local/include/tk$TK_ALT_VERS 
  47.                 /usr/local/include/tk$TK_HI_VERS 
  48.                 /usr/local/include  
  49.                 /usr/lib/tk$TK_VERS 
  50.                 /usr/lib/tk$TK_ALT_VERS 
  51.                 /usr/lib/tk$TK_HI_VERS 
  52.                 /usr/lib/tk 
  53.                 /usr/share/tk$TK_VERS 
  54.                 /usr/share/tk$TK_ALT_VERS 
  55.                 /usr/share/tk$TK_HI_VERS 
  56.                 /usr/share/tk 
  57. ../tk$TK_OLD_VERS/library 
  58.                 ../tk$TK_OLD_ALT_VERS/library 
  59.                 /usr/src/local/tk$TK_OLD_VERS/library 
  60.                 /usr/src/local/tk$TK_OLD_ALT_VERS/library 
  61.                 /usr/local/lib/tk$TK_OLD_VERS 
  62.                 /usr/local/lib/tk$TK_OLD_ALT_VERS 
  63.                 /usr/local/include/tk$TK_OLD_VERS 
  64.                 /usr/local/include/tk$TK_OLD_ALT_VERS 
  65.                 /usr/lib/tk$TK_OLD_VERS 
  66.                 /usr/lib/tk$TK_OLD_ALT_VERS 
  67.                 $prefix/include 
  68. $prefix/lib/tk 
  69.                 $x_includes/tk 
  70.                 $x_includes 
  71.                 /usr/include"
  72. TK_H_PLACES_D="$d 
  73.                 $d/generic 
  74.                 $d/../include/tk$TK_VERS 
  75.                 $d/../include/tk$TK_HI_VERS 
  76.                 $d/../include/tk$TK_OLD_VERS 
  77. $d/include/tk$TK_VERS 
  78. $d/include/tk$TK_HI_VERS 
  79. $d/include/tk$TK_OLD_VERS 
  80.                 $d/include"
  81. TK_H_PLACES=" 
  82. ../include 
  83. ../tk$TK_VERS/generic 
  84.                 ../tk$TK_ALT_VERS/generic 
  85.                 ../tk$TK_HI_VERS/generic 
  86. /usr/src/local/tk$TK_VERS/generic 
  87.                 /usr/src/local/tk$TK_ALT_VERS/generic 
  88.                 /usr/src/local/tk$TK_HI_VERS/generic 
  89.                 /usr/contrib/include 
  90.                 /usr/local/lib/tk$TK_VERS 
  91.                 /usr/local/lib/tk$TK_ALT_VERS 
  92.                 /usr/local/lib/tk$TK_HI_VERS 
  93.                 /usr/local/include/tk$TK_VERS 
  94.                 /usr/local/include/tk$TK_ALT_VERS 
  95.                 /usr/local/include/tk$TK_HI_VERS 
  96.                 /usr/local/include 
  97.                 /import/tk/include/tk$TK_VERS 
  98.                 /import/tk/include/tk$TK_ALT_VERS 
  99.                 /import/tk/include/tk$TK_HI_VERS 
  100. ../tk$TK_OLD_VERS/generic 
  101.                 ../tk$TK_OLD_ALT_VERS/generic 
  102. /usr/src/local/tk$TK_OLD_VERS/generic 
  103.                 /usr/src/local/tk$TK_OLD_ALT_VERS/generic 
  104.                 /usr/local/lib/tk$TK_OLD_VERS 
  105.                 /usr/local/lib/tk$TK_OLD_ALT_VERS 
  106.                 /usr/local/include/tk$TK_OLD_VERS 
  107.                 /usr/local/include/tk$TK_OLD_ALT_VERS 
  108.                 /import/tk/include/tk$TK_OLD_VERS 
  109.                 /import/tk/include/tk$TK_OLD_ALT_VERS 
  110.                 $prefix/include 
  111.                 $x_includes/tk 
  112.                 $x_includes 
  113.                 /usr/include 
  114.                 /usr/include/tcl 
  115.                 /usr/include/tcl$TK_VERS 
  116.                 /usr/include/tcl$TK_ALT_VERS 
  117.                 /usr/include/tcl$TK_HI_VERS 
  118.                 "
  119. dnl /usr/include/tcl for debian/linux
  120. TK_LIB_PLACES_D="$d  
  121.                 $d/lib 
  122. $d/unix"
  123. TK_LIB_PLACES=" 
  124. ../lib 
  125. ../lib/tk$TK_HI_VERS 
  126. ../lib/tk$TK_VERS 
  127. ../lib/tk$TK_ALT_VERS 
  128. ../tk$TK_VERS/unix 
  129.                 ../tk$TK_ALT_VERS/unix 
  130.                 ../tk$TK_HI_VERS/unix 
  131.                 /usr/src/local/tk$TK_VERS/unix 
  132.                 /usr/src/local/tk$TK_ALT_VERS/unix 
  133.                 /usr/src/local/tk$TK_HI_VERS/unix 
  134.                 /usr/contrib/lib 
  135.                 /usr/local/lib/tk$TK_VERS 
  136.                 /usr/local/lib/tk$TK_ALT_VERS 
  137.                 /usr/local/lib/tk$TK_HI_VERS 
  138. ../tk$TK_OLD_VERS/unix 
  139.                 ../tk$TK_OLD_ALT_VERS/unix 
  140.                 /usr/src/local/tk$TK_OLD_VERS/unix 
  141.                 /usr/src/local/tk$TK_OLD_ALT_VERS/unix 
  142.                 /usr/local/lib/tk$TK_OLD_VERS 
  143.                 /usr/local/lib/tk$TK_OLD_ALT_VERS 
  144.                 /usr/local/lib 
  145.                 $prefix/lib 
  146.                 $x_libs/tk 
  147.                 $x_libs 
  148.                 /usr/lib"
  149. NS_BEGIN_PACKAGE(tk)
  150. NS_CHECK_HEADER_PATH(tk.h,$TK_H_PLACES,$d,$TK_H_PLACES_D,V_INCLUDE_TK,tk)
  151. NS_CHECK_LIB_PATH(tk$TK_HI_VERS,$TK_LIB_PLACES,$d,$TK_LIB_PLACES_D,V_LIB_TK,tk)
  152. NS_CHECK_ANY_PATH(tk.tcl,$TK_TCL_PLACES,$d,$TK_TCL_PLACES_D,V_LIBRARY_TK,tk)
  153. NS_END_PACKAGE(tk,no)
  154. if test -r $V_LIBRARY_TK/optionMenu.tcl ; then
  155. V_TKDOSNAMES='$(LIBRARY_TK)/optionMenu.tcl $(LIBRARY_TK)/scrollbar.tcl'
  156. V_NEED_DL=""
  157. else
  158. V_TKDOSNAMES='$(LIBRARY_TK)/optMenu.tcl $(LIBRARY_TK)/scrlbar.tcl'
  159. V_NEED_DL=YES
  160. fi
  161. AC_SUBST(V_TKDOSNAMES)
  162. AC_SUBST(V_LIBRARY_TK)