+2005-10-12 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
+
+ * configure.ac: call LYX_USE_PACKAGING early. Sanitize PACKAGE
+ setting.
+
2005-09-30 Angus Leeming <leeming@lyx.org>
* configure.ac: check for NewAPIs.h. If found, define the
+2005-10-12 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
+
+ * lyxinclude.m4 (LYX_USE_PACKAGING): set PACKAGE depending on
+ packaging setting.
+ (LYX_VERSION_SUFFIX): honor PACKAGE value.
+
2005-09-29 Angus Leeming <leeming@lyx.org>
* lyxinclude.m4: add a new MSYS_AC_CANONICAL_PATH macro that
dnl
dnl
AC_DEFUN([LYX_VERSION_SUFFIX],[
-AC_MSG_CHECKING([for install target ... ])
+AC_MSG_CHECKING([for install target])
RPM_VERSION_SUFFIX='""'
AC_ARG_WITH(version-suffix,
[ --with-version-suffix[=<version>] install lyx files as lyx<version>],
withval="-$VERSION"
ac_configure_args=`echo $ac_configure_args | sed "s,--with-version-suffix,--with-version-suffix=$withval,"`
fi
- lyxname="lyx$withval"
+ PACKAGE="$PACKAGE$withval"
program_suffix=$withval
- RPM_VERSION_SUFFIX="--with-version-suffix=$withval"],
- [lyxname=lyx])
+ RPM_VERSION_SUFFIX="--with-version-suffix=$withval"])
AC_SUBST(RPM_VERSION_SUFFIX)
-AC_MSG_RESULT([$lyxname])
+AC_MSG_RESULT([$PACKAGE])
])
AC_MSG_RESULT($lyx_use_packaging)
case $lyx_use_packaging in
macosx) AC_DEFINE(USE_MACOSX_PACKAGING, 1, [Define to 1 if LyX should use a MacOS X application bundle file layout])
- test $PACKAGE = "lyx" && PACKAGE=LyX
+ PACKAGE=LyX
default_prefix="/Applications/LyX.app"
bindir='${prefix}/Contents/MacOS'
libdir='${prefix}/Contents/Resources'
datadir='${prefix}/Contents/Resources'
mandir='${prefix}/Contents/Resources/man' ;;
windows) AC_DEFINE(USE_WINDOWS_PACKAGING, 1, [Define to 1 if LyX should use a Windows-style file layout])
- test $PACKAGE = "lyx" && PACKAGE=LyX
+ PACKAGE=LyX
default_prefix="C:/Program Files/LyX"
bindir='${prefix}/bin'
libdir='${prefix}/Resources'
datadir='${prefix}/Resources'
mandir='${prefix}/Resources/man' ;;
posix) AC_DEFINE(USE_POSIX_PACKAGING, 1, [Define to 1 if LyX should use a POSIX-style file layout])
+ PACKAGE=lyx
default_prefix=$ac_default_prefix ;;
*) LYX_ERROR([Unknown packaging type $lyx_use_packaging]) ;;
esac
AC_CONFIG_AUX_DIR(config)
-PACKAGE=lyx${program_suffix}
+# first the version
VERSION="1.4.0cvs"
LYX_CHECK_VERSION
+# Check how the files should be packaged
+LYX_USE_PACKAGING
+LYX_VERSION_SUFFIX
dnl default maintainer mode to true for development versions
if test "${enable_maintainer_mode+set}" != set; then
AM_MAINTAINER_MODE
AC_CANONICAL_TARGET
-LYX_VERSION_SUFFIX
-
-AM_INIT_AUTOMAKE($lyxname, $VERSION)
+AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
### Set the execute permissions of the various scripts correctly
for file in config/install-sh config/mkinstalldirs lib/configure ; do
esac
done
-### Check how the files should be packaged
-LYX_USE_PACKAGING
# fix the value of the prefixes.
test "x$prefix" = xNONE && prefix=$default_prefix
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
+2005-10-12 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
+
+ * package.C.in (get_default_user_support_dir): do not play tricks
+ with PACKAGE value.
+
2005-09-30 Angus Leeming <leeming@lyx.org>
* os_win32.h: new file, providing a public and portable interface
#if defined (USE_WINDOWS_PACKAGING)
(void)home_dir; // Silence warning about unused variable.
- string const user_dir = (string(PACKAGE) == "lyx") ? "LyX" : PACKAGE;
os::GetFolderPath win32_folder_path;
- return AddPath(win32_folder_path(os::GetFolderPath::APPDATA), user_dir);
+ return AddPath(win32_folder_path(os::GetFolderPath::APPDATA), PACKAGE);
#elif defined (USE_MACOSX_PACKAGING)
(void)home_dir; // Silence warning about unused variable.
if (status_code != 0)
return string();
- string const user_dir = (string(PACKAGE) == "lyx") ? "LyX" : PACKAGE;
- return AddPath(reinterpret_cast<char const *>(store), user_dir);
+ return AddPath(reinterpret_cast<char const *>(store), PACKAGE);
#else // USE_POSIX_PACKAGING
return AddPath(home_dir, string(".") + PACKAGE);