~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Open Mash Cross Reference
mash/conf/configure.in.tail

Component: ~ [ mash ] ~ [ apps ] ~ [ gsm ] ~ [ lib ] ~ [ otcl ] ~ [ srm ] ~ [ tcl8.3 ] ~ [ tclcl ] ~ [ tk8.3 ] ~ [ tutorials ] ~

  1 dnl configure.in.tail --
  2 dnl
  3 dnl     standard final commands for vic/vat/etc. autoconf scripts
  4 dnl
  5 dnl Copyright (c) 2000-2002 The Regents of the University of California.
  6 dnl All rights reserved.
  7 dnl
  8 dnl Redistribution and use in source and binary forms, with or without
  9 dnl modification, are permitted provided that the following conditions are met:
 10 dnl
 11 dnl A. Redistributions of source code must retain the above copyright notice,
 12 dnl    this list of conditions and the following disclaimer.
 13 dnl B. Redistributions in binary form must reproduce the above copyright
 14 dnl    notice, this list of conditions and the following disclaimer in the
 15 dnl    documentation and/or other materials provided with the distribution.
 16 dnl C. Neither the names of the copyright holders nor the names of its
 17 dnl    contributors may be used to endorse or promote products derived from
 18 dnl    this software without specific prior written permission.
 19 dnl
 20 dnl THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
 21 dnl IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 22 dnl THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 23 dnl PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
 24 dnl LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 25 dnl CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 26 dnl SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 27 dnl INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 28 dnl CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 29 dnl ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 30 dnl POSSIBILITY OF SUCH DAMAGE.
 31 dnl
 32 dnl $Header: /usr/mash/src/repository/conf/configure.in.tail,v 1.8 2004/03/05 01:46:25 aswan Exp $
 33 
 34 
 35 if test "$enable_static" = "yes" ; then
 36         echo Explicitly enabling static compilation
 37         V_STATIC="-static"
 38 elif test "$enable_static" = "no" ; then
 39         echo Explicitly disabling static compilation
 40         V_STATIC=""
 41 else
 42         echo Using non-static compilation by default
 43         V_STATIC=""
 44 fi
 45 
 46 AC_SUBST(V_STATIC)
 47 
 48 #
 49 # tcl7.x needs a dynamic loading library (unless built with the
 50 # -disable-load flag).  Try to find the appropriate one.
 51 
 52 if test ! -z "$V_NEED_DL" ; then
 53         V_LIB_DL=""
 54         case "$target" in
 55         *-*-solaris*)
 56                 V_LIB_DL="dl"
 57                 ;;
 58         sparc-sun-sunos*)
 59                 V_LIB_DL="dl"
 60                 ;;
 61         *-*-bsdi2.1)
 62                 V_LIB_DL="dl"
 63                 ;;
 64         *-*-bsdi3.0)
 65                 V_LIB_DL="dl"
 66                 ;;
 67         *-*-hpux*)
 68                 V_LIB_DL="dld"
 69                 ;;
 70         *-*-linux*)
 71                 AC_CHECK_LIB(dl, dlopen, V_LIB_DL="dl", V_LIB_DL="dld")
 72                 ;;
 73         esac
 74         if test ! -z "$V_LIB_DL" ; then
 75                 case "$target" in
 76                 *-*-linux*)
 77                         ;;
 78                 *)
 79                         AC_CHECK_LIB($V_LIB_DL, main, , V_LIB_DL="", $V_STATIC)
 80                         ;;
 81                 esac
 82         fi
 83         if test ! -z "$V_LIB_DL" ; then
 84                 case "$target" in
 85                 *-*-bsdi*)
 86                         ;;
 87                 *-*-linux*)
 88                         if test -z "$V_STATIC" ; then
 89                                 V_LIB="$V_LIB -l$V_LIB_DL"
 90                         fi
 91                         ;;
 92                 *)
 93                         V_LIB="$V_LIB -l$V_LIB_DL"
 94                         ;;
 95                 esac
 96         else
 97                 echo "no dynamic load lib"
 98         fi
 99 fi
100 
101 
102 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
103 if test "$host_cpu" = alpha ; then
104         V_DEFINE="$V_DEFINE -DINT_64=u_long"
105 fi
106 
107 # various include hacks
108 dirs="/usr/src/local/include-fixes \
109         /import/mcast/include"
110 for dir in $dirs; do
111         if test -d $dir ; then
112                 V_INCLUDE="$V_INCLUDE -I$dir"
113         fi
114 done
115 
116 # always use -g with gcc during development (even with -O)
117 # force noline so that we can debug all functions
118 if test "$CC" = gcc -a "$enable_devel" = yes ; then
119         V_CCOPT="$V_CCOPT -g -Wall"
120         V_DEFINE="$V_DEFINE -fsigned-char -fno-inline"
121 fi
122 
123 V_DEFINE="$V_DEFINE $V_SHM"
124 
125 V_TAR_TARGET=$target_os
126 AC_SUBST(V_TAR_TARGET)
127 
128 absolutize_list() {
129     tmp=""
130     for p
131     do
132         case $p in
133         -L* | -I*) tmp="$tmp `absolutize $p`";;
134         *) tmp="$tmp $p";;
135         esac
136     done
137     echo $tmp
138 }
139 
140 # Replace relative path with absolute path
141 V_LIB_TCLCL=`absolutize_list $V_LIB_TCLCL`
142 V_LIB_OTCL=`absolutize_list $V_LIB_OTCL`
143 V_LIB_TCL=`absolutize_list $V_LIB_TCL`
144 V_LIB_TK=`absolutize_list $V_LIB_TK`
145 V_LIBS=`absolutize_list $V_LIBS`
146 V_INCLUDES=`absolutize_list $V_INCLUDES`
147 
148 # Since SMASH and MASH need different sets of libraries, we
149 # use each lib definition seperately instead of using V_LIBS.
150 AC_SUBST(V_LIB_TCLCL)
151 AC_SUBST(V_LIB_OTCL)
152 AC_SUBST(V_LIB_TCL)
153 AC_SUBST(V_LIB_TK)
154 
155 AC_SUBST(V_ALL)
156 AC_SUBST(V_CCOPT)
157 AC_SUBST(V_TAR_EXTRA)
158 AC_SUBST(V_LIB)
159 AC_SUBST(V_DEFINE)
160 AC_SUBST(V_SIGRET)
161 AC_SUBST(V_SHELL)
162 AC_SUBST(V_TARCMD)
163 AC_SUBST(V_INCLUDE)
164 AC_SUBST(V_OBJ)
165 AC_SUBST(V_BROKEN_OBJ)
166 AC_SUBST(V_OBJ_CRYPT)
167 AC_SUBST(V_RANLIB)
168 AC_SUBST(V_AR)
169 
170 AC_SUBST(V_STLOBJ)
171 AC_SUBST(V_NS_TCL_LIB_STL)
172 AC_SUBST(V_LSSCRIPT)
173 
174 AC_PROG_INSTALL
175 
176 dnl backwards compability---if nothing else, do Makefile
177 define([AcOutputFiles],ifdef([AcOutputFiles],AcOutputFiles,[Makefile]))
178 AC_OUTPUT(AcOutputFiles)
179 
180 if test ! -d gen ; then
181         echo "creating ./gen"
182         mkdir gen
183 fi
184 
185 if test ! -d bin ; then
186         echo "creating ./bin"
187         mkdir bin
188 fi
189 
190 # if test "$enable_devel" = yes ; then
191 #       make depend
192 # fi
193 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.