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

通讯编程

开发平台:

Visual C++

  1. dnl standard final commands for vic/vat/etc. autoconf scripts
  2. dnl $Header: /cvsroot/otcl-tclcl/conf/configure.in.tail,v 1.24 2000/11/14 02:15:01 haoboy Exp $ (LBL)
  3. if test "$enable_static" = "yes" ; then
  4. echo Explicitly enabling static compilation
  5. V_STATIC="-static"
  6. elif test "$enable_static" = "no" ; then
  7. echo Explicitly disabling static compilation
  8. V_STATIC=""
  9. else
  10. echo No explicit static compilation flag; setting V_STATIC to "$V_STATIC"
  11. fi
  12. AC_SUBST(V_STATIC)
  13. #
  14. # tcl7.x needs a dynamic loading library (unless built with the
  15. # -disable-load flag).  Try to find the appropriate one.
  16. if test ! -z "$V_NEED_DL" ; then
  17. V_LIB_DL=""
  18. case "$target" in 
  19. *-*-solaris*)
  20. V_LIB_DL="dl"
  21. ;;
  22. sparc-sun-sunos*)
  23. V_LIB_DL="dl"
  24. ;;
  25. *-*-bsdi2.1)
  26. V_LIB_DL="dl"
  27. ;;
  28. *-*-bsdi3.0)
  29. V_LIB_DL="dl"
  30. ;;
  31. *-*-hpux*)
  32. V_LIB_DL="dld"
  33. ;;
  34. *-*-linux*)
  35. AC_CHECK_LIB(dl, dlopen, V_LIB_DL="dl", V_LIB_DL="dld")
  36. ;;
  37. esac
  38. if test ! -z "$V_LIB_DL" ; then
  39. case "$target" in
  40. *-*-linux*)
  41. ;;
  42. *)
  43. AC_CHECK_LIB($V_LIB_DL, main, , V_LIB_DL="", $V_STATIC)
  44. ;;
  45. esac
  46. fi
  47. if test ! -z "$V_LIB_DL" ; then
  48. case "$target" in
  49. *-*-bsdi*)
  50. ;;
  51. *-*-linux*)
  52. if test -z "$V_STATIC" ; then
  53. V_LIB="$V_LIB -l$V_LIB_DL"
  54. fi
  55. ;;
  56. *)
  57. V_LIB="$V_LIB -l$V_LIB_DL"
  58. ;;
  59. esac
  60. else
  61. echo "no dynamic load lib"
  62. fi
  63. fi
  64. dnl This check is not very general and vestigal (at least from an ns-point of view).  Can it be deleted? -johnh, 13-Oct-99
  65. if test "$host_cpu" = alpha ; then 
  66. V_DEFINE="$V_DEFINE -DINT_64=u_long"
  67. fi
  68. # various include hacks
  69. dirs="/usr/src/local/include-fixes 
  70. /import/mcast/include"
  71. for dir in $dirs; do
  72. if test -d $dir ; then
  73. V_INCLUDE="$V_INCLUDE -I$dir"
  74. fi
  75. done
  76. # always use -g with gcc during development (even with -O)
  77. # force noline so that we can debug all functions
  78. if test "$CC" = gcc && test -f .devel ; then
  79. V_CCOPT="$V_CCOPT -g -Wall"
  80. V_DEFINE="$V_DEFINE -fsigned-char -fno-inline"
  81. fi
  82. V_DEFINE="$V_DEFINE $V_SHM"
  83. V_TAR_TARGET=$target_os
  84. AC_SUBST(V_TAR_TARGET)
  85. absolutize_list() {
  86.     tmp=""
  87.     for p
  88.     do 
  89. case $p in
  90. -L* | -I*) tmp="$tmp `absolutize $p`";;
  91. *) tmp="$tmp $p";;
  92.         esac
  93.     done
  94.     echo $tmp
  95. }
  96. # Replace relative path with absolute path
  97. V_LIB_TCLCL=`absolutize_list $V_LIB_TCLCL`
  98. V_LIB_OTCL=`absolutize_list $V_LIB_OTCL`
  99. V_LIB_TCL=`absolutize_list $V_LIB_TCL`
  100. V_LIB_TK=`absolutize_list $V_LIB_TK`
  101. V_LIBS=`absolutize_list $V_LIBS`
  102. V_INCLUDES=`absolutize_list $V_INCLUDES`
  103. # Since SMASH and MASH need different sets of libraries, we
  104. # use each lib definition seperately instead of using V_LIBS.
  105. AC_SUBST(V_LIB_TCLCL)
  106. AC_SUBST(V_LIB_OTCL)
  107. AC_SUBST(V_LIB_TCL)
  108. AC_SUBST(V_LIB_TK)
  109. AC_SUBST(V_ALL)
  110. AC_SUBST(V_CCOPT)
  111. AC_SUBST(V_TAR_EXTRA)
  112. AC_SUBST(V_LIB)
  113. AC_SUBST(V_DEFINE)
  114. AC_SUBST(V_SIGRET)
  115. AC_SUBST(V_SHELL)
  116. AC_SUBST(V_TARCMD)
  117. AC_SUBST(V_INCLUDE)
  118. AC_SUBST(V_OBJ)
  119. AC_SUBST(V_BROKEN_OBJ)
  120. AC_SUBST(V_OBJ_CRYPT)
  121. AC_SUBST(V_RANLIB)
  122. AC_SUBST(V_AR)
  123. AC_SUBST(V_STLOBJ)
  124. AC_SUBST(V_NS_TCL_LIB_STL)
  125. AC_SUBST(V_LSSCRIPT)
  126. AC_PROG_INSTALL
  127. dnl backwards compability---if nothing else, do Makefile
  128. define([AcOutputFiles],ifdef([AcOutputFiles],AcOutputFiles,Makefile))
  129. AC_OUTPUT(AcOutputFiles)
  130. if test ! -d gen ; then 
  131. echo "creating ./gen"
  132. mkdir gen
  133. fi
  134. if test ! -d bin ; then 
  135. echo "creating ./bin"
  136. mkdir bin
  137. fi
  138. if test -f .devel -o "$enable_devel" = "yes" ; then
  139. make depend
  140. fi