]> git.lyx.org Git - lyx.git/blob - config/relyx_configure.in
move some selection related stuff over to textcursor.C
[lyx.git] / config / relyx_configure.in
1 dnl Process with autoconf to generate configure script   -*- sh -*-
2 AC_INIT(reLyX.in)
3 AC_PREREQ(2.13) dnl We want to use autoconf 2.13
4 AC_CONFIG_AUX_DIR(../../config)
5 AC_EXEEXT
6
7 dnl PACKAGE=reLyX
8 dnl Do this to install in $datadir/lyx/reLyX instead of $datadir/reLyX/reLyX
9
10 AM_MAINTAINER_MODE
11
12 AC_ARG_WITH(version-suffix,
13   [  --with-version-suffix[=<version>]  install lyx files as lyx<version>],
14   [lyxname="lyx$withval"
15    program_suffix=$withval],
16   [lyxname=lyx])
17
18 dnl must make a macro that gets the reLyX version
19 VERSION=2.0
20 AM_INIT_AUTOMAKE($lyxname, $VERSION)
21
22 # if reLyX has already been generated in this directory, delete it first
23 test -x reLyX && rm -f reLyX
24 # fix the value of the prefixes.
25 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27
28 # we need to expand ${datadir} to put it into the reLyX wrapper.
29 LYX_DIR=`eval "echo \`eval \"echo ${datadir}/${PACKAGE}\"\`"`
30 AC_SUBST(LYX_DIR)
31
32 # Work around a problem in automake 1.4: when invoking install-strip,
33 # INSTALL_PROGRAM is changed to 'install -s', and since
34 # INSTALL_SCRIPT==INSTALL_PROGRAM, we get errors with fileutils-4.0
35 # which returns an error condition when stripping fails.
36 INSTALL_SCRIPT='${INSTALL}'
37
38 dnl Checks for programs.
39 AC_PROG_INSTALL
40 RELYX_CHECK_PERL
41
42 dnl Finish the work
43 AC_OUTPUT(Makefile reLyX noweb2lyx, chmod 755 reLyX noweb2lyx)
44
45 RELYX_CHECK_ERRORS