diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-04-29 14:34:22 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-04-29 14:34:22 +0000 |
commit | 6be9f4dc7c015da2a94183970394935fd6ae72a2 (patch) | |
tree | e0e54cc331861f34533d6a240400f9cef789a287 /Build/source/texk/web2c | |
parent | 5d10ffc76a7d39e7523819add5a8cd46542b672f (diff) |
fix Cygwin and Solaris build problems
git-svn-id: svn://tug.org/texlive/trunk@12856 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c')
-rw-r--r-- | Build/source/texk/web2c/Makefile.in | 4 | ||||
-rwxr-xr-x | Build/source/texk/web2c/configure | 111 | ||||
-rw-r--r-- | Build/source/texk/web2c/configure.ac | 18 | ||||
-rw-r--r-- | Build/source/texk/web2c/doc/Makefile.in | 2 | ||||
-rw-r--r-- | Build/source/texk/web2c/lib/Makefile.in | 2 | ||||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/am/luatex.am | 2 | ||||
-rw-r--r-- | Build/source/texk/web2c/man/Makefile.in | 2 | ||||
-rw-r--r-- | Build/source/texk/web2c/mpware/Makefile.in | 2 | ||||
-rw-r--r-- | Build/source/texk/web2c/omegafonts/Makefile.am | 10 | ||||
-rw-r--r-- | Build/source/texk/web2c/omegafonts/Makefile.in | 12 | ||||
-rw-r--r-- | Build/source/texk/web2c/otps/Makefile.in | 2 | ||||
-rw-r--r-- | Build/source/texk/web2c/window/Makefile.in | 2 |
12 files changed, 142 insertions, 27 deletions
diff --git a/Build/source/texk/web2c/Makefile.in b/Build/source/texk/web2c/Makefile.in index 0cb786f5bdd..aa121eccef0 100644 --- a/Build/source/texk/web2c/Makefile.in +++ b/Build/source/texk/web2c/Makefile.in @@ -940,6 +940,7 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ +lua_socketlibs = @lua_socketlibs@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -949,7 +950,6 @@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ -socketlibs = @socketlibs@ srcdir = @srcdir@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ @@ -1351,7 +1351,7 @@ luatex_CPPFLAGS = $(ZLIB_INCLUDES) $(LIBPNG_INCLUDES) $(XPDF_INCLUDES) \ luatex_ldadd = libluatex.a libff.a libluamisc.a libzzip.a \ libluasocket.a liblua51.a $(LIBPNG_LIBS) $(ZLIB_LIBS) \ $(XPDF_LIBS) $(OBSDCOMPAT_LIBS) libmd5.a libmplib.a -luatex_LDADD = $(luatex_ldadd) $(LDADD) $(socketlibs) +luatex_LDADD = $(luatex_ldadd) $(LDADD) $(lua_socketlibs) luatex_DEPENDENCIES = $(proglib) libluatex.a $(LIBPNG_DEPEND) \ $(ZLIB_DEPEND) $(XPDF_DEPEND) $(OBSDCOMPAT_DEPEND) libmd5.a \ libmplib.a diff --git a/Build/source/texk/web2c/configure b/Build/source/texk/web2c/configure index 0f8d5db0a57..06af77c9b5a 100755 --- a/Build/source/texk/web2c/configure +++ b/Build/source/texk/web2c/configure @@ -893,7 +893,7 @@ XETEX_MACOSX_TRUE FONTCONFIG_LIBS FONTCONFIG_INCLUDES ipc_socketlibs -socketlibs +lua_socketlibs MINGW32_FALSE MINGW32_TRUE WIN32_FALSE @@ -18036,9 +18036,99 @@ cat >>confdefs.h <<\_ACEOF _ACEOF fi -# On Solaris we may need -lrt for nanosleep in luaTeX. +# We may need additional libraries for luaTeX. +# On Solaris -lnsl for gethostbyname() and -lrt for nanosleep(). +lua_socketlibs=$socketlibs if test "x$kpse_cv_have_win32" = xno; then kpse_save_LIBS=$LIBS + { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 +$as_echo_n "checking for library containing gethostbyname... " >&6; } +if test "${ac_cv_search_gethostbyname+set}" = set; then + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char gethostbyname (); +int +main () +{ +return gethostbyname (); + ; + return 0; +} +_ACEOF +for ac_lib in '' nsl; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then + ac_cv_search_gethostbyname=$ac_res +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -rf conftest.dSYM +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext + if test "${ac_cv_search_gethostbyname+set}" = set; then + break +fi +done +if test "${ac_cv_search_gethostbyname+set}" = set; then + : +else + ac_cv_search_gethostbyname=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 +$as_echo "$ac_cv_search_gethostbyname" >&6; } +ac_res=$ac_cv_search_gethostbyname +if test "$ac_res" != no; then + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + LIBS=$kpse_save_LIBS { $as_echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 $as_echo_n "checking for library containing nanosleep... " >&6; } if test "${ac_cv_search_nanosleep+set}" = set; then @@ -18127,15 +18217,26 @@ if test "$ac_res" != no; then fi LIBS=$kpse_save_LIBS + case $ac_cv_search_gethostbyname in + "none required") : ;; + no) if test "x$enable_luatex" = xyes; then + { $as_echo "$as_me:$LINENO: WARNING: Sorry, no gethostbyname(): can not build luaTeX" >&5 +$as_echo "$as_me: WARNING: Sorry, no gethostbyname(): can not build luaTeX" >&2;} + enable_luatex=no +fi + ;; + *) lua_socketlibs="$lua_socketlibs ac_cv_search_gethostbyname" ;; +esac + case $ac_cv_search_nanosleep in "none required") : ;; no) if test "x$enable_luatex" = xyes; then - { $as_echo "$as_me:$LINENO: WARNING: Sorry, no nanosleep: can not build luaTeX" >&5 -$as_echo "$as_me: WARNING: Sorry, no nanosleep: can not build luaTeX" >&2;} + { $as_echo "$as_me:$LINENO: WARNING: Sorry, no nanosleep(): can not build luaTeX" >&5 +$as_echo "$as_me: WARNING: Sorry, no nanosleep(): can not build luaTeX" >&2;} enable_luatex=no fi ;; - *) socketlibs="$socketlibs ac_cv_search_nanosleep" ;; + *) lua_socketlibs="$lua_socketlibs ac_cv_search_nanosleep" ;; esac fi diff --git a/Build/source/texk/web2c/configure.ac b/Build/source/texk/web2c/configure.ac index 56e0fa4c8b2..94a56c66719 100644 --- a/Build/source/texk/web2c/configure.ac +++ b/Build/source/texk/web2c/configure.ac @@ -80,19 +80,29 @@ if test "x$enable_ipc" = xyes; then ipc_socketlibs=$socketlibs AC_DEFINE([IPC], 1, [tex: Define to enable --ipc.]) fi -# On Solaris we may need -lrt for nanosleep in luaTeX. +# We may need additional libraries for luaTeX. +# On Solaris -lnsl for gethostbyname() and -lrt for nanosleep(). +lua_socketlibs=$socketlibs if test "x$kpse_cv_have_win32" = xno; then kpse_save_LIBS=$LIBS + AC_SEARCH_LIBS([gethostbyname], [nsl]) + LIBS=$kpse_save_LIBS AC_SEARCH_LIBS([nanosleep], [rt]) LIBS=$kpse_save_LIBS + AS_CASE([$ac_cv_search_gethostbyname], + ["none required"], [], + [no], [AS_IF([test "x$enable_luatex" = xyes], + [AC_MSG_WARN([Sorry, no gethostbyname(): can not build luaTeX]) + enable_luatex=no])], + [lua_socketlibs="$lua_socketlibs ac_cv_search_gethostbyname"]) AS_CASE([$ac_cv_search_nanosleep], ["none required"], [], [no], [AS_IF([test "x$enable_luatex" = xyes], - [AC_MSG_WARN([Sorry, no nanosleep: can not build luaTeX]) + [AC_MSG_WARN([Sorry, no nanosleep(): can not build luaTeX]) enable_luatex=no])], - [socketlibs="$socketlibs ac_cv_search_nanosleep"]) + [lua_socketlibs="$lua_socketlibs ac_cv_search_nanosleep"]) fi -AC_SUBST([socketlibs]) +AC_SUBST([lua_socketlibs]) AC_SUBST([ipc_socketlibs]) KPSE_CHECK_FRAMEWORK([Carbon], [ATSUStyle style]) diff --git a/Build/source/texk/web2c/doc/Makefile.in b/Build/source/texk/web2c/doc/Makefile.in index 88b37dfb66b..76ea945b884 100644 --- a/Build/source/texk/web2c/doc/Makefile.in +++ b/Build/source/texk/web2c/doc/Makefile.in @@ -242,6 +242,7 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ +lua_socketlibs = @lua_socketlibs@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -251,7 +252,6 @@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ -socketlibs = @socketlibs@ srcdir = @srcdir@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ diff --git a/Build/source/texk/web2c/lib/Makefile.in b/Build/source/texk/web2c/lib/Makefile.in index 9a6800de692..cd7144dcdd9 100644 --- a/Build/source/texk/web2c/lib/Makefile.in +++ b/Build/source/texk/web2c/lib/Makefile.in @@ -247,6 +247,7 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ +lua_socketlibs = @lua_socketlibs@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -256,7 +257,6 @@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ -socketlibs = @socketlibs@ srcdir = @srcdir@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ diff --git a/Build/source/texk/web2c/luatexdir/am/luatex.am b/Build/source/texk/web2c/luatexdir/am/luatex.am index e3f179f5c96..769f443a41e 100644 --- a/Build/source/texk/web2c/luatexdir/am/luatex.am +++ b/Build/source/texk/web2c/luatexdir/am/luatex.am @@ -24,7 +24,7 @@ luatex_ldadd = libluatex.a libff.a libluamisc.a libzzip.a libluasocket.a liblua5 luatex_ldadd += $(LIBPNG_LIBS) $(ZLIB_LIBS) $(XPDF_LIBS) luatex_ldadd += $(OBSDCOMPAT_LIBS) libmd5.a libmplib.a -luatex_LDADD = $(luatex_ldadd) $(LDADD) $(socketlibs) +luatex_LDADD = $(luatex_ldadd) $(LDADD) $(lua_socketlibs) luatex_DEPENDENCIES = $(proglib) libluatex.a luatex_DEPENDENCIES += $(LIBPNG_DEPEND) $(ZLIB_DEPEND) $(XPDF_DEPEND) diff --git a/Build/source/texk/web2c/man/Makefile.in b/Build/source/texk/web2c/man/Makefile.in index c238f0bda1a..ce6a5c98df5 100644 --- a/Build/source/texk/web2c/man/Makefile.in +++ b/Build/source/texk/web2c/man/Makefile.in @@ -237,6 +237,7 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ +lua_socketlibs = @lua_socketlibs@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -246,7 +247,6 @@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ -socketlibs = @socketlibs@ srcdir = @srcdir@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ diff --git a/Build/source/texk/web2c/mpware/Makefile.in b/Build/source/texk/web2c/mpware/Makefile.in index 4e95ffc7ede..772a196a659 100644 --- a/Build/source/texk/web2c/mpware/Makefile.in +++ b/Build/source/texk/web2c/mpware/Makefile.in @@ -257,6 +257,7 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ +lua_socketlibs = @lua_socketlibs@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -266,7 +267,6 @@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ -socketlibs = @socketlibs@ srcdir = @srcdir@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ diff --git a/Build/source/texk/web2c/omegafonts/Makefile.am b/Build/source/texk/web2c/omegafonts/Makefile.am index 7f7c549aac0..7f27bca4274 100644 --- a/Build/source/texk/web2c/omegafonts/Makefile.am +++ b/Build/source/texk/web2c/omegafonts/Makefile.am @@ -63,13 +63,15 @@ DISTCLEANFILES = pl-parser.output linked_programs = ofm2opl opl2ofm ovf2ovp ovp2ovf install-exec-hook: - cd $(DESTDIR)$(bindir) && for f in $(linked_programs); do \ - rm -f $$f && $(LN_S) omfonts $$f || exit 1; \ - done + cd $(DESTDIR)$(bindir) && \ + for f in $(linked_programs); do \ + rm -f $$f$(EXEEXT) && \ + $(LN_S) omfonts$(EXEEXT) $$f$(EXEEXT) || exit 1; \ + done unistall-hook: for f in $(linked_programs); do \ - rm -f $(DESTDIR)$(bindir)/$$f; \ + rm -f $(DESTDIR)$(bindir)/$$f$(EXEEXT); \ done ## ###### diff --git a/Build/source/texk/web2c/omegafonts/Makefile.in b/Build/source/texk/web2c/omegafonts/Makefile.in index e6f250633fc..34b9b617ee6 100644 --- a/Build/source/texk/web2c/omegafonts/Makefile.in +++ b/Build/source/texk/web2c/omegafonts/Makefile.in @@ -263,6 +263,7 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ +lua_socketlibs = @lua_socketlibs@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -272,7 +273,6 @@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ -socketlibs = @socketlibs@ srcdir = @srcdir@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ @@ -642,13 +642,15 @@ $(proglib): $(KPATHSEA_DEPEND) ${top_srcdir}/lib/*.c @KPATHSEA_RULE@ install-exec-hook: - cd $(DESTDIR)$(bindir) && for f in $(linked_programs); do \ - rm -f $$f && $(LN_S) omfonts $$f || exit 1; \ - done + cd $(DESTDIR)$(bindir) && \ + for f in $(linked_programs); do \ + rm -f $$f$(EXEEXT) && \ + $(LN_S) omfonts$(EXEEXT) $$f$(EXEEXT) || exit 1; \ + done unistall-hook: for f in $(linked_programs); do \ - rm -f $(DESTDIR)$(bindir)/$$f; \ + rm -f $(DESTDIR)$(bindir)/$$f$(EXEEXT); \ done # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. diff --git a/Build/source/texk/web2c/otps/Makefile.in b/Build/source/texk/web2c/otps/Makefile.in index 444be45f025..82dc41ed35d 100644 --- a/Build/source/texk/web2c/otps/Makefile.in +++ b/Build/source/texk/web2c/otps/Makefile.in @@ -265,6 +265,7 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ +lua_socketlibs = @lua_socketlibs@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -274,7 +275,6 @@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ -socketlibs = @socketlibs@ srcdir = @srcdir@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ diff --git a/Build/source/texk/web2c/window/Makefile.in b/Build/source/texk/web2c/window/Makefile.in index d09dbcc5dae..d95efbe477b 100644 --- a/Build/source/texk/web2c/window/Makefile.in +++ b/Build/source/texk/web2c/window/Makefile.in @@ -252,6 +252,7 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ lt_ECHO = @lt_ECHO@ +lua_socketlibs = @lua_socketlibs@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -261,7 +262,6 @@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ -socketlibs = @socketlibs@ srcdir = @srcdir@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ |