comparison configure.in @ 679:93c63deed7aa

[project @ 1994-09-09 13:50:40 by jwe]
author jwe
date Fri, 09 Sep 1994 13:50:48 +0000
parents 991303b21bae
children 4e67ff861c84
comparison
equal deleted inserted replaced
678:d13c89674a0a 679:93c63deed7aa
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.41 $)dnl 24 AC_REVISION($Revision: 1.42 $)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) 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
30 dnl 30 dnl
31 dnl See if we were given the target host type. If not, use 31 dnl See if we were given the target host type. If not, use
32 dnl config.guess to try to guess the target host type. 32 dnl config.guess to try to guess the target host type.
80 datadir='$(prefix)/lib' 80 datadir='$(prefix)/lib'
81 libdir='$(exec_prefix)/lib' 81 libdir='$(exec_prefix)/lib'
82 includedir='$(prefix)/include' 82 includedir='$(prefix)/include'
83 mandir='$(prefix)/man/man1' 83 mandir='$(prefix)/man/man1'
84 infodir='$(prefix)/info' 84 infodir='$(prefix)/info'
85 fcnfiledir='$(datadir)/octave/$(version)/m' 85 fcnfiledir='$(datadir)/octave/$(version)/m//'
86 localfcnfilepath='$(datadir)/octave/site-m' 86 localfcnfilepath='$(datadir)/octave/site-m'
87 archlibdir='$(libdir)/octave/$(version)/$(target_host_type)/exec' 87 archlibdir='$(libdir)/octave/$(version)/$(target_host_type)/exec'
88 octfiledir='$(archlibdir)/oct' 88 octfiledir='$(archlibdir)/oct'
89 localoctfilepath='$(datadir)/octave/$(target_host_type)/site-oct' 89 localoctfilepath='$(datadir)/octave/$(target_host_type)/site-oct'
90 fcnfilepath='.:$(localoctfilepath):$(localfcnfilepath):$(octfiledir):$(fcnfiledir)' 90 fcnfilepath='.:$(localoctfilepath):$(localfcnfilepath):$(octfiledir):$(fcnfiledir)'
95 AC_ENABLE(run-in-place, [ 95 AC_ENABLE(run-in-place, [
96 run_in_place=true; 96 run_in_place=true;
97 if test "$enableval" = "yes"; then 97 if test "$enableval" = "yes"; then
98 builddir="." 98 builddir="."
99 else 99 else
100 builddir=enableval 100 builddir=$enableval
101 fi 101 fi
102 ], run_in_place=false)dnl 102 ], run_in_place=false)dnl
103 dnl 103 dnl
104 if $run_in_place; then 104 if $run_in_place; then
105 AC_DEFINE(RUN_IN_PLACE, 1)dnl 105 AC_DEFINE(RUN_IN_PLACE, 1)dnl
122 ;; 122 ;;
123 esac 123 esac
124 absolute_builddir=$absolute_builddir 124 absolute_builddir=$absolute_builddir
125 prefix=$absolute_srcdir 125 prefix=$absolute_srcdir
126 infodir=$absolute_srcdir/info 126 infodir=$absolute_srcdir/info
127 fcnfiledir=$absolute_srcdir/scripts 127 fcnfiledir=$absolute_srcdir/scripts//
128 archlibdir=$absolute_builddir 128 archlibdir=$absolute_builddir
129 fcnfilepath='.:$(fcnfiledir)' 129 fcnfilepath='.:$(fcnfiledir)'
130 fi 130 fi
131 AC_VERBOSE([setting prefix to $prefix]) 131 AC_VERBOSE([setting prefix to $prefix])
132 AC_VERBOSE([setting exec_prefix to $exec_prefix]) 132 AC_VERBOSE([setting exec_prefix to $exec_prefix])
327 esac 327 esac
328 dnl 328 dnl
329 dnl Does the C compiler handle alloca() and const correctly? 329 dnl Does the C compiler handle alloca() and const correctly?
330 dnl 330 dnl
331 AC_ALLOCA 331 AC_ALLOCA
332 dnl
333 dnl It would be nicer to test for the requisite putenv features directly,
334 dnl but can't figure out how to do that.
335 dnl
336 if test "`(uname) 2>/dev/null`" = NetBSD \
337 || test "`(uname) 2>/dev/null`" = FreeBSD; then
338 AC_DEFINE(SMART_PUTENV)
339 fi
340 dnl
332 AC_CONST 341 AC_CONST
333 dnl 342 dnl
334 dnl If we haven't been forced to use f2c, try to find a Fortran compiler 343 dnl If we haven't been forced to use f2c, try to find a Fortran compiler
335 dnl under any one of several common Un*x Fortran compiler names. 344 dnl under any one of several common Un*x Fortran compiler names.
336 dnl Put fc last to avoid confusion with some vendor's /bin/sh fc 345 dnl Put fc last to avoid confusion with some vendor's /bin/sh fc
426 AC_SUBST(DEFAULT_DOT_O_FROM_DOT_F)dnl 435 AC_SUBST(DEFAULT_DOT_O_FROM_DOT_F)dnl
427 dnl 436 dnl
428 dnl Checks for header files. 437 dnl Checks for header files.
429 dnl 438 dnl
430 AC_STDC_HEADERS 439 AC_STDC_HEADERS
440 AC_HAVE_HEADERS(assert.h float.h limits.h memory.h pwd.h stdlib.h)dnl
431 AC_HAVE_HEADERS(string.h varargs.h unistd.h floatingpoint.h)dnl 441 AC_HAVE_HEADERS(string.h varargs.h unistd.h floatingpoint.h)dnl
432 AC_HAVE_HEADERS(sys/utsname.h sys/time.h sys/fcntl.h)dnl 442 AC_HAVE_HEADERS(sys/utsname.h sys/time.h sys/fcntl.h)dnl
433 AC_HAVE_HEADERS(sys/ttold.h sys/ptem.h sys/select.h)dnl 443 AC_HAVE_HEADERS(sys/ttold.h sys/ptem.h sys/select.h)dnl
434 AC_DIR_HEADER 444 AC_DIR_HEADER
435 dnl 445 dnl
461 dnl 471 dnl
462 dnl Checks for functions. 472 dnl Checks for functions.
463 dnl 473 dnl
464 AC_HAVE_FUNCS(setvbuf getcwd gethostname bzero rindex vfprintf vsprintf)dnl 474 AC_HAVE_FUNCS(setvbuf getcwd gethostname bzero rindex vfprintf vsprintf)dnl
465 AC_HAVE_FUNCS(stricmp strnicmp strcasecmp strncasecmp strerror)dnl 475 AC_HAVE_FUNCS(stricmp strnicmp strcasecmp strncasecmp strerror)dnl
466 AC_HAVE_FUNCS(atexit on_exit tempnam)dnl 476 AC_HAVE_FUNCS(atexit on_exit tempnam memmove putenv)dnl
467 dnl 477 dnl
468 dnl Check to see if we have IEEE math functions, and if so, which ones. 478 dnl Check to see if we have IEEE math functions, and if so, which ones.
469 dnl 479 dnl
470 dnl For Linux: add -mieee-fp flag to CFLAGS when checking for IEEE FP 480 dnl For Linux: add -mieee-fp flag to CFLAGS when checking for IEEE FP
471 dnl functions, otherwise we may not find them. 481 dnl functions, otherwise we may not find them.
711 define([cruftdirs], [tmpa tmpb tmpc tmpd tmpe tmpf tmpg tmph])dnl 721 define([cruftdirs], [tmpa tmpb tmpc tmpd tmpe tmpf tmpg tmph])dnl
712 define([tmpA], [Makefile Makeconf libcruft/Makefile libcruft/Makerules])dnl 722 define([tmpA], [Makefile Makeconf libcruft/Makefile libcruft/Makerules])dnl
713 define([tmpB], [liboctave/Makefile src/Makefile dld/Makefile])dnl 723 define([tmpB], [liboctave/Makefile src/Makefile dld/Makefile])dnl
714 define([tmpC], [info/Makefile readline/Makefile readline/doc/Makefile])dnl 724 define([tmpC], [info/Makefile readline/Makefile readline/doc/Makefile])dnl
715 define([tmpD], [readline/examples/Makefile doc/Makefile])dnl 725 define([tmpD], [readline/examples/Makefile doc/Makefile])dnl
716 define([tmpE], [scripts/Makefile test/Makefile])dnl 726 define([tmpE], [scripts/Makefile test/Makefile kpathsea/Makefile])dnl
717 define([srcdirs], [tmpA tmpB tmpC tmpD tmpE])dnl 727 define([srcdirs], [tmpA tmpB tmpC tmpD tmpE])dnl
718 AC_OUTPUT([srcdirs cruftdirs])dnl 728 AC_OUTPUT([srcdirs cruftdirs])dnl