Fixes for new version of Octave
[texmacs.git] / server / configure.in
blobdc51b06a7f2b82041e46d89235fda97a46177ce0
2 #--------------------------------------------------------------------
4 # MODULE      : configure.in
5 # DESCRIPTION : TeXmacs configuration file for autoconf
6 # COPYRIGHT   : (C) 2000  Joris van der Hoeven
8 # This software falls under the GNU general public license and comes WITHOUT
9 # ANY WARRANTY WHATSOEVER. See the file $TEXMACS_PATH/LICENSE for details.
10 # If you don't have this file, write to the Free Software Foundation, Inc.,
11 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
13 #--------------------------------------------------------------------
15 AC_INIT
17 PACKAGE="texmacsd"
18 VERSION="0.0"
19 RELEASE="1"
20 AC_SUBST(PACKAGE)
21 AC_SUBST(VERSION)
22 AC_SUBST(RELEASE)
24 #--------------------------------------------------------------------
25 # Checks for Guile
26 #--------------------------------------------------------------------
28 GUILE_FLAGS
29 AC_MSG_CHECKING(version of guile)
30 GUILE_VERSION=`guile --version | grep 'Guile \([[0-9]]\)' | sed 's/Guile \([[0-9]]*\)/\1/'`
31 AC_MSG_RESULT($GUILE_VERSION)
33 #--------------------------------------------------------------------
34 # Default paths for installation
35 #--------------------------------------------------------------------
37 if test "$prefix" = ""; then
38   prefix=/usr/local
40 if test "$prefix" = "NONE"; then
41   prefix=/usr/local
43 if test "$exec_prefix" = ""; then
44   exec_prefix=${prefix}
46 if test "$exec_prefix" = "NONE"; then
47   exec_prefix=${prefix}
49 if test "$exec_prefix" = '${prefix}'; then
50   exec_prefix=${prefix}
52 if test "$bindir" = ""; then
53   bindir=${exec_prefix}/bin
55 if test "$bindir" = "NONE"; then
56   bindir=${exec_prefix}/bin
58 if test "$bindir" = '${exec_prefix}/bin'; then
59   bindir=${exec_prefix}/bin
61 if test "$datadir" = ""; then
62   datadir=${prefix}/share
64 if test "$datadir" = "NONE"; then
65   datadir=${prefix}/share
67 if test "$datadir" = '${prefix}/share'; then
68   datadir=${prefix}/share
70 if test "$libexecdir" = ""; then
71   libexecdir=${exec_prefix}/libexec
73 if test "$libexecdir" = "NONE"; then
74   libexecdir=${exec_prefix}/libexec
76 if test "$libexecdir" = '${exec_prefix}/libexec'; then
77   libexecdir=${exec_prefix}/libexec
80 curdir="`pwd`"
81 tmorig=${curdir}
82 tmdir=${PACKAGE}
83 tmsrc=${curdir}/${tmdir}
84 progdir=${datadir}/texmacsd
85 AC_SUBST(tmorig)
86 AC_SUBST(tmdir)
87 AC_SUBST(tmsrc)
88 AC_SUBST(tmdata)
90 #--------------------------------------------------------------------
91 # Done
92 #--------------------------------------------------------------------
94 AC_OUTPUT(Makefile:Makefile.in bin/texmacsd:bin/texmacsd.in bin/tm-client:bin/tm-client.in)