From: Keith Packard Date: Thu, 13 Jan 2005 18:31:50 +0000 (+0000) Subject: Add SEE ALSO section (bug 2085) X-Git-Tag: fc-2_2_99~4 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d8ae9c92197f1f2782b9decb276f6da756ce882d;p=fontconfig.git Add SEE ALSO section (bug 2085) Cross compiling fixes (bug 280) reviewed by: Keith Packard --- diff --git a/ChangeLog b/ChangeLog index fa25689..07621e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,21 @@ +2005-01-13 Keith Packard + + * doc/fontconfig-user.sgml: + Add SEE ALSO section (bug 2085) + +2005-01-13 J. Ali Harlow + + reviewed by: Keith Packard + + * Makefile.am: + * configure.in: + * doc/Makefile.am: + * fc-case/Makefile.am: + * fc-glyphname/Makefile.am: + * fc-lang/Makefile.am: + * src/fontconfig.def.in: + Cross compiling fixes (bug 280) + 2005-01-13 Keith Packard * fonts.conf.in: diff --git a/Makefile.am b/Makefile.am index 79908fd..16d2f21 100644 --- a/Makefile.am +++ b/Makefile.am @@ -39,6 +39,12 @@ pkgconfig_DATA = fontconfig.pc configdir=$(CONFDIR) config_DATA=fonts.dtd +if CROSS_COMPILING + RUN_FC_CACHE_TEST=false +else + RUN_FC_CACHE_TEST=test -z "$(DESTDIR)" +endif + install-data-local: $(mkinstalldirs) $(DESTDIR)$(configdir) if [ -f $(DESTDIR)$(configdir)/fonts.conf ]; then \ @@ -61,7 +67,16 @@ install-data-local: echo " $(INSTALL_DATA) local.conf $(DESTDIR)$(configdir)/local.conf"; \ $(INSTALL_DATA) local.conf $(DESTDIR)$(configdir)/local.conf; \ fi; fi; fi - if [ x$(DESTDIR) = x ]; then fc-cache/fc-cache -f -v; fi + if $(RUN_FC_CACHE_TEST); then \ + echo " fc-cache/fc-cache -f -v"; \ + fc-cache/fc-cache -f -v; \ + else \ + echo "***"; \ + echo "*** Warning: fonts.cache not built"; \ + echo "***"; \ + echo "*** Generate this file manually on host system using fc-cache"; \ + echo "***"; \ + fi uninstall-local: if [ -f $(srcdir)/fonts.conf ]; then \ diff --git a/configure.in b/configure.in index e45b72d..7f333aa 100644 --- a/configure.in +++ b/configure.in @@ -88,6 +88,50 @@ AC_SUBST(WARN_CFLAGS) dnl ========================================================================== +AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes) + +dnl ========================================================================== + +# Setup for compiling build tools (fc-glyphname, etc) +AC_MSG_CHECKING([for a C compiler for build tools]) +if test $cross_compiling = yes; then + AC_CHECK_PROGS(CC_FOR_BUILD, gcc cc) +else + CC_FOR_BUILD=$CC +fi +AC_MSG_RESULT([$CC_FOR_BUILD]) +AC_SUBST(CC_FOR_BUILD) + +AC_MSG_CHECKING([for suffix of executable build tools]) +if test $cross_compiling = yes; then + cat >conftest.c <<\_______EOF +int +main () +{ + exit (0); +} +_______EOF + for i in .exe ""; do + compile="$CC_FOR_BUILD conftest.c -o conftest$i" + if AC_TRY_EVAL(compile); then + if (./conftest) 2>&AC_FD_CC; then + EXEEXT_FOR_BUILD=$i + break + fi + fi + done + rm -f conftest* + if test "${EXEEXT_FOR_BUILD+set}" != set; then + AC_MSG_ERROR([Cannot determine suffix of executable build tools]) + fi +else + EXEEXT_FOR_BUILD=$EXEEXT +fi +AC_MSG_RESULT([$EXEEXT_FOR_BUILD]) +AC_SUBST(EXEEXT_FOR_BUILD) + +dnl ========================================================================== + # Checks for header files. AC_HEADER_DIRENT AC_HEADER_STDC diff --git a/doc/Makefile.am b/doc/Makefile.am index 9e9cbeb..f2ae0ba 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -21,6 +21,10 @@ # TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. +CC = @CC_FOR_BUILD@ +EXEEXT = @EXEEXT_FOR_BUILD@ +LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ + DOC_SRC = $(srcdir) DOC_MODULE = fontconfig DOC2HTML = docbook2html @@ -87,7 +91,7 @@ if USEDOCBOOK .fncs.sgml: $(RM) $@ - ./edit-sgml $(FNCS_TMPL) < '$<' > $*.sgml + ./edit-sgml$(EXEEXT) $(FNCS_TMPL) < '$<' > $*.sgml .sgml.txt: $(RM) $@ @@ -104,7 +108,7 @@ func.refs: local-fontconfig-devel.sgml $(DOC_FUNCS_SGML) version.sgml confdir.sg local-fontconfig-devel.sgml: fontconfig-devel.sgml $(LN_S) $< $@ -$(DOC_FUNCS_SGML): edit-sgml $(FNCS_TMPL) +$(DOC_FUNCS_SGML): edit-sgml$(EXEEXT) $(FNCS_TMPL) fonts-conf.5: local-fontconfig-user.sgml version.sgml confdir.sgml $(RM) $@ diff --git a/doc/fontconfig-user.sgml b/doc/fontconfig-user.sgml index b0b03b0..5fefb40 100644 --- a/doc/fontconfig-user.sgml +++ b/doc/fontconfig-user.sgml @@ -575,6 +575,11 @@ is the conventional repository of font information that isn't found in the per-directory caches. This file is automatically maintained by fontconfig. +See Also + +fc-cache(1), fc-match(1), fc-list(1) + + Version Fontconfig version &version; diff --git a/fc-case/Makefile.am b/fc-case/Makefile.am index e00508b..11da16e 100644 --- a/fc-case/Makefile.am +++ b/fc-case/Makefile.am @@ -22,6 +22,10 @@ # PERFORMANCE OF THIS SOFTWARE. # +CC = @CC_FOR_BUILD@ +EXEEXT = @EXEEXT_FOR_BUILD@ +LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ + INCLUDES=-I${top_srcdir}/src -I${top_srcdir} $(FREETYPE_CFLAGS) $(WARN_CFLAGS) TMPL=fccase.tmpl.h @@ -44,9 +48,9 @@ SCASEFOLDING=${top_srcdir}/fc-case/CaseFolding.txt EXTRA_DIST=$(TMPL) $(CASEFOLDING) -$(TARG): $(STMPL) fc-case $(SCASEFOLDING) +$(TARG): $(STMPL) fc-case$(EXEEXT) $(SCASEFOLDING) rm -f $(TARG) - ./fc-case $(SCASEFOLDING) < $(STMPL) > $(TARG) + ./fc-case$(EXEEXT) $(SCASEFOLDING) < $(STMPL) > $(TARG) CLEANFILES=$(TARG) diff --git a/fc-glyphname/Makefile.am b/fc-glyphname/Makefile.am index 328e14d..eb21101 100644 --- a/fc-glyphname/Makefile.am +++ b/fc-glyphname/Makefile.am @@ -22,6 +22,10 @@ # PERFORMANCE OF THIS SOFTWARE. # +CC = @CC_FOR_BUILD@ +EXEEXT = @EXEEXT_FOR_BUILD@ +LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ + INCLUDES=-I${top_srcdir}/src -I${top_srcdir} $(FREETYPE_CFLAGS) $(WARN_CFLAGS) TMPL=fcglyphname.tmpl.h @@ -39,9 +43,9 @@ SGLYPHNAME=${top_srcdir}/fc-glyphname/zapfdingbats.txt EXTRA_DIST=$(TMPL) $(GLYPHNAME) -$(TARG): $(STMPL) fc-glyphname $(SGLYPHNAME) +$(TARG): $(STMPL) fc-glyphname$(EXEEXT) $(SGLYPHNAME) rm -f $(TARG) - ./fc-glyphname $(SGLYPHNAME) < $(STMPL) > $(TARG) + ./fc-glyphname$(EXEEXT) $(SGLYPHNAME) < $(STMPL) > $(TARG) CLEANFILES=$(TARG) diff --git a/fc-lang/Makefile.am b/fc-lang/Makefile.am index d9cd5d3..5077810 100644 --- a/fc-lang/Makefile.am +++ b/fc-lang/Makefile.am @@ -22,6 +22,10 @@ # PERFORMANCE OF THIS SOFTWARE. # +CC = @CC_FOR_BUILD@ +EXEEXT = @EXEEXT_FOR_BUILD@ +LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ + INCLUDES=-I${top_srcdir}/src -I${top_srcdir} $(FREETYPE_CFLAGS) $(WARN_CFLAGS) TMPL=fclang.tmpl.h @@ -38,8 +42,8 @@ ORTH=@ORTH_FILES@ EXTRA_DIST=$(TMPL) $(ORTH) -$(TARG):$(ORTH) fc-lang $(STMPL) +$(TARG):$(ORTH) fc-lang${EXEEXT} $(STMPL) rm -f $(TARG) - ./fc-lang -d ${srcdir} $(ORTH) < $(STMPL) > $(TARG) + ./fc-lang${EXEEXT} -d ${srcdir} $(ORTH) < $(STMPL) > $(TARG) CLEANFILES=$(TARG) diff --git a/src/fontconfig.def.in b/src/fontconfig.def.in index 1d78987..510edbb 100755 --- a/src/fontconfig.def.in +++ b/src/fontconfig.def.in @@ -159,5 +159,5 @@ EXPORTS FcValueEqual FcValuePrint FcValueSave -LIBRARY fontconfig +LIBRARY libfontconfig-@LT_CURRENT_MINUS_AGE@ VERSION @LT_CURRENT@.@LT_REVISION@