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 #--------------------------------------------------------------------
24 #--------------------------------------------------------------------
26 #--------------------------------------------------------------------
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
40 if test "$prefix" = "NONE"; then
43 if test "$exec_prefix" = ""; then
46 if test "$exec_prefix" = "NONE"; then
49 if test "$exec_prefix" = '${prefix}'; then
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
83 tmsrc=${curdir}/${tmdir}
84 progdir=${datadir}/texmacsd
90 #--------------------------------------------------------------------
92 #--------------------------------------------------------------------
94 AC_OUTPUT(Makefile:Makefile.in bin/texmacsd:bin/texmacsd.in bin/tm-client:bin/tm-client.in)