mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
70572847e2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10024 a592a061-630c-0410-9148-cb99ea01b6c8
60 lines
1.8 KiB
Plaintext
60 lines
1.8 KiB
Plaintext
dnl Process with autoconf to generate configure script -*- sh -*-
|
|
AC_INIT
|
|
AC_CONFIG_SRCDIR(reLyX.in)
|
|
AC_PREREQ(2.52)
|
|
AC_CONFIG_AUX_DIR(../../config)
|
|
|
|
dnl PACKAGE=reLyX
|
|
dnl Do this to install in $datadir/lyx/reLyX instead of $datadir/reLyX/reLyX
|
|
|
|
AM_MAINTAINER_MODE
|
|
AC_CANONICAL_TARGET
|
|
|
|
AC_ARG_WITH(version-suffix,
|
|
[ --with-version-suffix[=<version>] install lyx files as lyx<version>],
|
|
[lyxname="lyx$withval"
|
|
program_suffix=$withval],
|
|
[lyxname=lyx])
|
|
|
|
dnl must make a macro that gets the reLyX version
|
|
VERSION=2.0
|
|
AM_INIT_AUTOMAKE($lyxname, $VERSION)
|
|
|
|
# if reLyX has already been generated in this directory, delete it first
|
|
test -x reLyX && rm -f reLyX
|
|
|
|
### Check how the files should be packaged
|
|
RELYX_USE_PACKAGING
|
|
# fix the value of the prefixes.
|
|
test "x$prefix" = xNONE && prefix=$default_prefix
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|
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
|
|
|
|
# we need to expand ${datadir} to put it into the reLyX wrapper.
|
|
LYX_DIR=`eval "echo \`eval \"echo ${datadir}/${PACKAGE}\"\`"`
|
|
AC_SUBST(LYX_DIR)
|
|
|
|
# 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}'
|
|
|
|
dnl Checks for programs.
|
|
AC_PROG_INSTALL
|
|
RELYX_CHECK_PERL
|
|
|
|
dnl Finish the work
|
|
AC_CONFIG_FILES([Makefile])
|
|
AC_CONFIG_FILES([reLyX], [chmod 755 reLyX])
|
|
AC_CONFIG_FILES([noweb2lyx], [chmod 755 noweb2lyx])
|
|
AC_OUTPUT
|
|
|
|
RELYX_CHECK_ERRORS
|