comparison configure.in @ 759:3fc1ccd5a9db

[project @ 1994-10-02 15:34:26 by jwe]
author jwe
date Sun, 02 Oct 1994 15:41:13 +0000
parents e77b62b20824
children 0e146d12d46a
comparison
equal deleted inserted replaced
758:fdc889cdfb2e 759:3fc1ccd5a9db
19 dnl 19 dnl
20 dnl You should have received a copy of the GNU General Public License 20 dnl You should have received a copy of the GNU General Public License
21 dnl along with Octave; see the file COPYING. If not, write to the Free 21 dnl along with Octave; see the file COPYING. If not, write to the Free
22 dnl Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 22 dnl Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
23 dnl 23 dnl
24 AC_REVISION($Revision: 1.50 $)dnl 24 AC_REVISION($Revision: 1.51 $)dnl
25 AC_PREREQ(1.8)dnl 25 AC_PREREQ(1.8)dnl
26 AC_INIT(src/octave.cc) 26 AC_INIT(src/octave.cc)
27 AC_CONFIG_HEADER(config.h kpathsea/c-auto.h) 27 AC_CONFIG_HEADER(config.h kpathsea/c-auto.h)
28 dnl 28 dnl
29 AC_DEFINE(OCTAVE_SOURCE, 1)dnl 29 AC_DEFINE(OCTAVE_SOURCE, 1)dnl
170 AC_SUBST(fcnfilepath) 170 AC_SUBST(fcnfilepath)
171 AC_SUBST(imagepath) 171 AC_SUBST(imagepath)
172 dnl 172 dnl
173 DLD_DIR= 173 DLD_DIR=
174 LIBDLD= 174 LIBDLD=
175 LIBOCTDLD='../liboctdld.a' 175 LIBOCTDLD='liboctdld.a'
176 LD_STATIC_FLAG= 176 LD_STATIC_FLAG=
177 if $use_dld; then 177 if $use_dld; then
178 DLD_DIR=dld 178 DLD_DIR=dld
179 LIBDLD='../libdld.a' 179 LIBDLD='../dld/libdld.a'
180 # don't link them in only if doing dynamic linking and small kernel 180 # don't link them in only if doing dynamic linking and small kernel
181 # requested. 181 # requested.
182 if $lite_kernel; then 182 if $lite_kernel; then
183 LIBOCTDLD= 183 LIBOCTDLD=
184 fi 184 fi
231 AC_PROG_CXXCPP 231 AC_PROG_CXXCPP
232 dnl 232 dnl
233 dnl Do special things for g++. 233 dnl Do special things for g++.
234 dnl 234 dnl
235 ADD_CXX_WALL=false 235 ADD_CXX_WALL=false
236 NO_IMPLICIT_TEMPLATES=
236 gxx_version=`$CXX -v 2>&1 | grep "^g.. version" | sed 's/^g.. version *//'` 237 gxx_version=`$CXX -v 2>&1 | grep "^g.. version" | sed 's/^g.. version *//'`
237 case "$gxx_version" in 238 case "$gxx_version" in
238 2.5.*|2.6.*|2.7.*|2.8.*|2.9.*) 239 2.0.*|2.1.*|2.2.*|2.3.*|2.4.*)
240 AC_ERROR([g++ version $gxx_version will not work to compile Octave])
241 ;;
242 2.6.*|2.7.*|2.8.*|2.9.*)
239 CXXFLAGS="-g -O" 243 CXXFLAGS="-g -O"
240 AC_VERBOSE([defining CXXFLAGS to be $CXXFLAGS]) 244 AC_VERBOSE([defining CXXFLAGS to be $CXXFLAGS])
241 EXTERNAL_TEMPLATES="-fexternal-templates" 245 NO_IMPLICIT_TEMPLATES="-fno-implicit-templates"
242 AC_VERBOSE([defining EXTERNAL_TEMPLATES to be $EXTERNAL_TEMPLATES]) 246 AC_VERBOSE([defining NO_IMPLICIT_TEMPLATES to be $NO_IMPLICIT_TEMPLATES])
243 ADD_CXX_WALL=true 247 ADD_CXX_WALL=true
244 AC_DEFINE(USE_EXTERNAL_TEMPLATES, 1)dnl
245 ;; 248 ;;
246 1.*) 249 1.*)
247 AC_WARN([g++ version $gxx_version will not work to compile Octave]) 250 AC_WARN([g++ version $gxx_version will not work to compile Octave])
248 ;; 251 ;;
249 *) 252 *)
256 dnl 259 dnl
257 CXXLIBS=`sh $srcdir/cxxlibs.sh` 260 CXXLIBS=`sh $srcdir/cxxlibs.sh`
258 AC_VERBOSE([defining CXXLIBS to be $CXXLIBS]) 261 AC_VERBOSE([defining CXXLIBS to be $CXXLIBS])
259 dnl 262 dnl
260 AC_SUBST(CXXFLAGS)dnl 263 AC_SUBST(CXXFLAGS)dnl
261 AC_SUBST(EXTERNAL_TEMPLATES)dnl 264 AC_SUBST(NO_IMPLICIT_TEMPLATES)dnl
262 AC_SUBST(CXXLIBS)dnl 265 AC_SUBST(CXXLIBS)dnl
263 dnl 266 dnl
264 dnl See which C compiler to use (we expect to find gcc). 267 dnl See which C compiler to use (we expect to find gcc).
265 dnl 268 dnl
266 AC_PROG_CC 269 AC_PROG_CC