1999-10-05 09:17:15 +00:00
|
|
|
dnl Process with autoconf to generate configure script -*- sh -*-
|
1999-09-27 18:44:28 +00:00
|
|
|
AC_INIT(reLyX.in)
|
|
|
|
AC_PREREQ(2.13) dnl We want to use autoconf 2.13
|
1999-10-12 14:08:52 +00:00
|
|
|
AC_CONFIG_AUX_DIR(../../config)
|
2001-05-17 15:11:01 +00:00
|
|
|
AC_EXEEXT
|
1999-09-27 18:44:28 +00:00
|
|
|
|
2000-01-10 16:28:29 +00:00
|
|
|
dnl PACKAGE=reLyX
|
|
|
|
dnl Do this to install in $datadir/lyx/reLyX instead of $datadir/reLyX/reLyX
|
|
|
|
|
2003-05-27 12:45:52 +00:00
|
|
|
AM_MAINTAINER_MODE
|
2005-02-04 09:14:24 +00:00
|
|
|
AC_CANONICAL_TARGET
|
2003-05-27 12:45:52 +00:00
|
|
|
|
2001-03-05 11:54:00 +00:00
|
|
|
AC_ARG_WITH(version-suffix,
|
|
|
|
[ --with-version-suffix[=<version>] install lyx files as lyx<version>],
|
|
|
|
[lyxname="lyx$withval"
|
|
|
|
program_suffix=$withval],
|
2001-01-24 13:52:04 +00:00
|
|
|
[lyxname=lyx])
|
2000-01-10 16:28:29 +00:00
|
|
|
|
|
|
|
dnl must make a macro that gets the reLyX version
|
|
|
|
VERSION=2.0
|
|
|
|
AM_INIT_AUTOMAKE($lyxname, $VERSION)
|
|
|
|
|
2000-06-08 13:55:33 +00:00
|
|
|
# if reLyX has already been generated in this directory, delete it first
|
|
|
|
test -x reLyX && rm -f reLyX
|
2005-02-02 13:12:22 +00:00
|
|
|
|
|
|
|
### Check how the files should be packaged
|
|
|
|
RELYX_USE_PACKAGING
|
1999-11-18 11:42:36 +00:00
|
|
|
# fix the value of the prefixes.
|
2005-02-02 13:12:22 +00:00
|
|
|
test "x$prefix" = xNONE && prefix=$default_prefix
|
1999-11-18 11:42:36 +00:00
|
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
2005-02-02 13:12:22 +00:00
|
|
|
if echo $prefix |grep ' ' >/dev/null 2>/dev/null ; then
|
|
|
|
RELYX_WARNING([The installation prefix \"${prefix}\" contains a space, which
|
|
|
|
causes problems with the Makefiles. The installation will be done in
|
|
|
|
directory \"`pwd`/installprefix\" instead. Please move its contents to
|
|
|
|
the right place after installation.])
|
|
|
|
prefix=`pwd`/installprefix
|
|
|
|
fi
|
1999-11-18 11:42:36 +00:00
|
|
|
|
2000-01-26 13:16:41 +00:00
|
|
|
# we need to expand ${datadir} to put it into the reLyX wrapper.
|
|
|
|
LYX_DIR=`eval "echo \`eval \"echo ${datadir}/${PACKAGE}\"\`"`
|
|
|
|
AC_SUBST(LYX_DIR)
|
|
|
|
|
2000-06-26 15:33:13 +00:00
|
|
|
# Work around a problem in automake 1.4: when invoking install-strip,
|
|
|
|
# INSTALL_PROGRAM is changed to 'install -s', and since
|
|
|
|
# INSTALL_SCRIPT==INSTALL_PROGRAM, we get errors with fileutils-4.0
|
|
|
|
# which returns an error condition when stripping fails.
|
|
|
|
INSTALL_SCRIPT='${INSTALL}'
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
dnl Checks for programs.
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
RELYX_CHECK_PERL
|
|
|
|
|
1999-10-05 09:17:15 +00:00
|
|
|
dnl Finish the work
|
1999-10-12 14:08:52 +00:00
|
|
|
AC_OUTPUT(Makefile reLyX noweb2lyx, chmod 755 reLyX noweb2lyx)
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
RELYX_CHECK_ERRORS
|