comparison configure.in @ 1261:d5a341c3d981

[project @ 1995-04-12 01:57:25 by jwe]
author jwe
date Wed, 12 Apr 1995 01:58:39 +0000
parents 1ef158ab5d98
children 3847255e2838
comparison
equal deleted inserted replaced
1260:1ef158ab5d98 1261:d5a341c3d981
18 ### 18 ###
19 ### You should have received a copy of the GNU General Public License 19 ### You should have received a copy of the GNU General Public License
20 ### along with Octave; see the file COPYING. If not, write to the Free 20 ### along with Octave; see the file COPYING. If not, write to the Free
21 ### Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 21 ### Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
22 22
23 AC_REVISION($Revision: 1.117 $) 23 AC_REVISION($Revision: 1.118 $)
24 AC_PREREQ(2.0) 24 AC_PREREQ(2.0)
25 AC_INIT(src/octave.cc) 25 AC_INIT(src/octave.cc)
26 AC_CONFIG_HEADER(config.h) 26 AC_CONFIG_HEADER(config.h)
27 27
28 AC_DEFINE(OCTAVE_SOURCE, 1) 28 AC_DEFINE(OCTAVE_SOURCE, 1)
78 fi 78 fi
79 AC_SUBST(lite_kernel) 79 AC_SUBST(lite_kernel)
80 80
81 ### Allow the user disable support for GNU info. 81 ### Allow the user disable support for GNU info.
82 82
83 INFO_DIR=info
83 USE_GNU_INFO=true 84 USE_GNU_INFO=true
84 LIBINFO=../info/libinfo.a 85 LIBINFO=../info/libinfo.a
85 AC_ARG_ENABLE(info, 86 AC_ARG_ENABLE(info,
86 [ --enable-info use GNU info (default is yes)], 87 [ --enable-info use GNU info (default is yes)],
87 [if test $enableval = no; then USE_GNU_INFO=false; LIBINFO=""; fi], []) 88 [if test $enableval = no; then
89 USE_GNU_INFO=false;
90 LIBINFO="";
91 INFO_DIR="";
92 fi], [])
88 AC_SUBST(USE_GNU_INFO) 93 AC_SUBST(USE_GNU_INFO)
89 AC_SUBST(LIBINFO) 94 AC_SUBST(LIBINFO)
95 AC_SUBST(INFO_DIR)
96
90 97
91 ### Allow the user disable support for command line editing using GNU 98 ### Allow the user disable support for command line editing using GNU
92 ### readline. 99 ### readline.
93 100
101 READLINE_DIR=readline
94 USE_READLINE=true 102 USE_READLINE=true
95 LIBREADLINE=../readline/libreadline.a 103 LIBREADLINE=../readline/libreadline.a
96 AC_ARG_ENABLE(readline, 104 AC_ARG_ENABLE(readline,
97 [ --enable-readline use readline library (default is yes)], 105 [ --enable-readline use readline library (default is yes)],
98 [if test "$enableval" = no; then USE_READLINE=false; LIBREADLINE=""; fi], []) 106 [if test "$enableval" = no; then
107 USE_READLINE=false;
108 LIBREADLINE="";
109 READLINE_DIR="";
110 fi], [])
99 AC_SUBST(USE_READLINE) 111 AC_SUBST(USE_READLINE)
100 AC_SUBST(LIBREADLINE) 112 AC_SUBST(LIBREADLINE)
113 AC_SUBST(READLINE_DIR)
101 114
102 ### some defaults 115 ### some defaults
103 116
104 AC_PREFIX_DEFAULT(/usr/local) 117 AC_PREFIX_DEFAULT(/usr/local)
105 118
758 AC_MSG_RESULT([adding -Wall to CFLAGS]) 771 AC_MSG_RESULT([adding -Wall to CFLAGS])
759 fi 772 fi
760 773
761 ### Run configure in subdirectories. 774 ### Run configure in subdirectories.
762 775
763 info_subdir= 776 AC_CONFIG_SUBDIRS(kpathsea libcruft scripts $INFO_DIR)
764 if $USE_GNU_INFO; then
765 info_subdir=info
766 fi
767 AC_CONFIG_SUBDIRS(kpathsea libcruft scripts $info_subdir)
768 777
769 ### Do the substitutions in all the Makefiles. 778 ### Do the substitutions in all the Makefiles.
770 779
771 define([tmpA], [Makefile octMakefile Makeconf])dnl 780 define([tmpA], [Makefile octMakefile Makeconf])dnl
772 define([tmpC], [liboctave/Makefile src/Makefile dld/Makefile])dnl 781 define([tmpC], [liboctave/Makefile src/Makefile dld/Makefile])dnl