Irix 6.5.16 compilation problems with new beta: 2.96.2
ezra peisach <[email protected]>
| Newsgroups | gmane.comp.tex.tetex.beta |
|---|---|
| Message-ID | <[email protected]> |
Found two problems in texk/dvipng when compiling under Irix 6.5.16m
using the native cc compiler.
a) inline does not work (add AC_C_INLINE to configure.in)
b) To use basename() - besides include libgen.h - you need to link with libgen.
(Use AC_CHECK_LIB to see if basename is present in libgen)
Fixes are relatively easy... (I am including the config.h.in change
as the top level reautoconf does not run autoheader...)
Still compiling the tree... More later if anything breaks...
Ezra
*** texk/dvipng/config.h.in 2004/05/10 17:44:30 1.1
--- texk/dvipng/config.h.in 2004/05/10 17:51:30
***************
*** 28,33 ****
--- 28,36 ----
/* Define if you have the vprintf function. */
#undef HAVE_VPRINTF
+ /* Define as __inline if that's what the C compiler calls it. */
+ #undef inline
+
/* Define to `int' if <sys/types.h> doesn't define. */
#undef pid_t
***************
*** 99,104 ****
--- 102,110 ----
/* Define if you have the gd library (-lgd). */
#undef HAVE_LIBGD
+
+ /* Define if you have the gen library (-lgen). */
+ #undef HAVE_LIBGEN
/* Define if you have the m library (-lm). */
#undef HAVE_LIBM
*** texk/dvipng/configure.in 2004/05/10 17:28:00 1.1
--- texk/dvipng/configure.in 2004/05/10 17:51:25
***************
*** 22,27 ****
--- 22,28 ----
AC_PROG_CC
AC_PROG_INSTALL
AC_PATH_PROG(GS, gs, :)
+ AC_C_INLINE
AC_DEFINE_UNQUOTED(GS_PATH, "$GS", [Define as the path to GhostScript.])
ac_cv_lib_t1_T1_InitLib=yes
***************
*** 63,68 ****
--- 64,70 ----
sinclude(../kpathsea/withenable.ac)
AC_CHECK_LIB(m, main)
+ AC_CHECK_LIB(gen, basename)
AC_CONFIG_HEADER([config.h])
AC_OUTPUT(Makefile)