diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-03-21 08:24:16 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-03-21 08:24:16 +0000 |
commit | 5171fa05ebaf022ddbb0783e9b4874c5f587e6fe (patch) | |
tree | a91d4c04b39265e3dc6df28c9eac33372de3502e | |
parent | d4811744c4e0e5cfc78304a7e53750cda780bde0 (diff) |
libs/lua52: Build fix for FreeBSD
git-svn-id: svn://tug.org/texlive/trunk@33245 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Build/source/libs/lua52/ChangeLog | 5 | ||||
-rwxr-xr-x | Build/source/libs/lua52/configure | 4 | ||||
-rw-r--r-- | Build/source/libs/lua52/configure.ac | 4 |
3 files changed, 13 insertions, 0 deletions
diff --git a/Build/source/libs/lua52/ChangeLog b/Build/source/libs/lua52/ChangeLog index c639f54482a..1098c44d2dc 100644 --- a/Build/source/libs/lua52/ChangeLog +++ b/Build/source/libs/lua52/ChangeLog @@ -1,3 +1,8 @@ +2014-03-21 Peter Breitenlohner <peb@mppmu.mpg.de> + + * configure.ac: Add -DHAVE_UNISTD_H to LUA52_DEFINES because + config.h is not used. + 2014-03-15 Peter Breitenlohner <peb@mppmu.mpg.de> * Makefile.am (AM_CPPFLAGS): Define LUAI_HASHLIMIT=6 for LuaTeX. diff --git a/Build/source/libs/lua52/configure b/Build/source/libs/lua52/configure index f80ec0715e9..bdb379d9a7c 100755 --- a/Build/source/libs/lua52/configure +++ b/Build/source/libs/lua52/configure @@ -5532,6 +5532,10 @@ case $ac_cv_sys_largefile_source in #( esac +if test "x$ac_cv_header_stdc" = xyes; then + LUA52_DEFINES="$LUA52_DEFINES -DHAVE_UNISTD_H" +fi + LUA52_TREE=lua-5.2.3 diff --git a/Build/source/libs/lua52/configure.ac b/Build/source/libs/lua52/configure.ac index 727a7311672..c4ad5c5e3e5 100644 --- a/Build/source/libs/lua52/configure.ac +++ b/Build/source/libs/lua52/configure.ac @@ -30,6 +30,10 @@ AC_SEARCH_LIBS([sqrt], [m]) KPSE_LUA52_DEFINES KPSE_LARGEFILE([LUA52_DEFINES]) +if test "x$ac_cv_header_stdc" = xyes; then + LUA52_DEFINES="$LUA52_DEFINES -DHAVE_UNISTD_H" +fi + AC_SUBST([LUA52_TREE], [lua-]lua52_version) AC_CONFIG_FILES([Makefile include/Makefile]) |