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/nsnam/conf/configure.in.tail,v 1.26 2008/02/18 03:39:02 tom_henderson 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. *-*-cygwin*)
  38. V_LIB_DL="dl"
  39. ;;
  40. esac
  41. if test ! -z "$V_LIB_DL" ; then
  42. case "$target" in
  43. *-*-linux*)
  44. ;;
  45. *)
  46. AC_CHECK_LIB($V_LIB_DL, main, , V_LIB_DL="", $V_STATIC)
  47. ;;
  48. esac
  49. fi
  50. if test ! -z "$V_LIB_DL" ; then
  51. case "$target" in
  52. *-*-bsdi*)
  53. ;;
  54. *-*-linux*)
  55. if test -z "$V_STATIC" ; then
  56. V_LIB="$V_LIB -l$V_LIB_DL"
  57. fi
  58. ;;
  59. *)
  60. V_LIB="$V_LIB -l$V_LIB_DL"
  61. ;;
  62. esac
  63. else
  64. echo "no dynamic load lib"
  65. fi
  66. fi
  67. 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
  68. if test "$host_cpu" = alpha ; then 
  69. V_DEFINE="$V_DEFINE -DINT_64=u_long"
  70. fi
  71. # various include hacks
  72. dirs="/usr/src/local/include-fixes 
  73. /import/mcast/include"
  74. for dir in $dirs; do
  75. if test -d $dir ; then
  76. V_INCLUDE="$V_INCLUDE -I$dir"
  77. fi
  78. done
  79. # always use -g with gcc during development (even with -O)
  80. # force noline so that we can debug all functions
  81. if test "$CC" = gcc && test -f .devel ; then
  82. V_CCOPT="$V_CCOPT -g -Wall -Werror"
  83. V_DEFINE="$V_DEFINE -fsigned-char -fno-inline"
  84. fi
  85. V_DEFINE="$V_DEFINE $V_SHM"
  86. V_TAR_TARGET=$target_os
  87. AC_SUBST(V_TAR_TARGET)
  88. absolutize_list() {
  89.     tmp=""
  90.     for p
  91.     do 
  92. case $p in
  93. -L* | -I*) tmp="$tmp `absolutize $p`";;
  94. *) tmp="$tmp $p";;
  95.         esac
  96.     done
  97.     echo $tmp
  98. }
  99. # Replace relative path with absolute path
  100. V_LIB_TCLCL=`absolutize_list $V_LIB_TCLCL`
  101. V_LIB_OTCL=`absolutize_list $V_LIB_OTCL`
  102. V_LIB_TCL=`absolutize_list $V_LIB_TCL`
  103. V_LIB_TK=`absolutize_list $V_LIB_TK`
  104. V_LIBS=`absolutize_list $V_LIBS`
  105. V_INCLUDES=`absolutize_list $V_INCLUDES`
  106. # Since SMASH and MASH need different sets of libraries, we
  107. # use each lib definition seperately instead of using V_LIBS.
  108. AC_SUBST(V_LIB_TCLCL)
  109. AC_SUBST(V_LIB_OTCL)
  110. AC_SUBST(V_LIB_TCL)
  111. AC_SUBST(V_LIB_TK)
  112. AC_SUBST(V_ALL)
  113. AC_SUBST(V_CCOPT)
  114. AC_SUBST(V_TAR_EXTRA)
  115. AC_SUBST(V_LIB)
  116. AC_SUBST(V_DEFINE)
  117. AC_SUBST(V_SIGRET)
  118. AC_SUBST(V_SHELL)
  119. AC_SUBST(V_TARCMD)
  120. AC_SUBST(V_INCLUDE)
  121. AC_SUBST(V_OBJ)
  122. AC_SUBST(V_BROKEN_OBJ)
  123. AC_SUBST(V_OBJ_CRYPT)
  124. AC_SUBST(V_RANLIB)
  125. AC_SUBST(V_AR)
  126. AC_SUBST(V_STLOBJ)
  127. AC_SUBST(V_NS_TCL_LIB_STL)
  128. AC_SUBST(V_LSSCRIPT)
  129. AC_PROG_INSTALL
  130. dnl backwards compability---if nothing else, do Makefile
  131. define([AcOutputFiles],ifdef([AcOutputFiles],AcOutputFiles,Makefile))
  132. AC_OUTPUT(AcOutputFiles)
  133. if test ! -d gen ; then 
  134. echo "creating ./gen"
  135. mkdir gen
  136. fi
  137. if test ! -d bin ; then 
  138. echo "creating ./bin"
  139. mkdir bin
  140. fi
  141. if test -f .devel -o "$enable_devel" = "yes" ; then
  142. make depend
  143. fi