]> git.wh0rd.org Git - fontconfig.git/commitdiff
Add SEE ALSO section (bug 2085)
authorKeith Packard <keithp@keithp.com>
Thu, 13 Jan 2005 18:31:50 +0000 (18:31 +0000)
committerKeith Packard <keithp@keithp.com>
Thu, 13 Jan 2005 18:31:50 +0000 (18:31 +0000)
Cross compiling fixes (bug 280)
reviewed by: Keith Packard <keithp@keithp.com>

ChangeLog
Makefile.am
configure.in
doc/Makefile.am
doc/fontconfig-user.sgml
fc-case/Makefile.am
fc-glyphname/Makefile.am
fc-lang/Makefile.am
src/fontconfig.def.in

index fa256898f3f91df961eed11bd0496aabee820407..07621e8441d88485903fd43b71cd2078c5c05af7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2005-01-13  Keith Packard  <keithp@keithp.com>
+
+       * doc/fontconfig-user.sgml:
+       Add SEE ALSO section (bug 2085)
+       
+2005-01-13  J. Ali Harlow <ali@juiblex.co.uk>
+
+       reviewed by: Keith Packard  <keithp@keithp.com>
+
+       * 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  <keithp@keithp.com>
 
        * fonts.conf.in:
index 79908fdd7ffa8279583a8beeae8d79ea0991607e..16d2f218e34eff8ceba3f77a36d6935e0d3360dc 100644 (file)
@@ -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 \
index e45b72def4289f3f07e709ed0977bd155f367e19..7f333aa938d6e23b2baa795f89a5f4d22943f5d2 100644 (file)
@@ -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
index 9e9cbeb8aad622e0380b93acb7d53523c96d6e24..f2ae0ba42b0bb264eea7c247f0e96f94a78b7bbd 100644 (file)
 # 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) $@
index b0b03b074c94018f61ecc58b1285f0aff3b50c9c..5fefb40f07027bff363855111d6d941796f2a09a 100644 (file)
@@ -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.
   </para>
 </refsect1>
+<refsect1><title>See Also</title>
+  <para>
+fc-cache(1), fc-match(1), fc-list(1)
+  </para>
+</refsect1>
 <refsect1><title>Version</title>
            <para>
 Fontconfig version &version;
index e00508beded3f465fd73f996360269afad88724c..11da16eabc4eec96da2bc08e933ed1e93f6d51c7 100644 (file)
 # 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)
 
index 328e14dbb8ce3c1a7d6344cc47f1ab39f9cd2160..eb21101793cc0b21bb212f08f2f4266c83920be0 100644 (file)
 # 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)
 
index d9cd5d36b53da88e0d1ec8f99ae01a7019d422a8..5077810cbfcb6f4ab069dabab0eac08e5008dacb 100644 (file)
 # 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)
index 1d789875c1f24b5b849648cf125f67e9a1b444f7..510edbb31582e8de84d05307580f0ed3914a0f47 100755 (executable)
@@ -159,5 +159,5 @@ EXPORTS
        FcValueEqual
        FcValuePrint
        FcValueSave
-LIBRARY fontconfig
+LIBRARY libfontconfig-@LT_CURRENT_MINUS_AGE@
 VERSION @LT_CURRENT@.@LT_REVISION@