]> git.eshelyaron.com Git - emacs.git/commitdiff
(main) [USE_FONT_BACKEND]: Handle arg
authorKenichi Handa <handa@m17n.org>
Tue, 6 Jun 2006 03:50:58 +0000 (03:50 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 6 Jun 2006 03:50:58 +0000 (03:50 +0000)
--enable-font-backend.  Call syms_of_font.

src/emacs.c

index 41857b7ccb84843030b24d0b1fcbbc3646b5059d..27e349c637f45f335e1c19406b4a301399fe92f0 100644 (file)
@@ -821,6 +821,9 @@ bug_reporting_address ()
   return count >= 3 ? REPORT_EMACS_BUG_PRETEST_ADDRESS : REPORT_EMACS_BUG_ADDRESS;
 }
 
+#ifdef USE_FONT_BACKEND
+extern int enable_font_backend;
+#endif /* USE_FONT_BACKEND */
 
 /* ARGSUSED */
 int
@@ -1178,6 +1181,13 @@ main (argc, argv
       exit (0);
     }
 
+#ifdef USE_FONT_BACKEND
+  enable_font_backend = 0;
+  if (argmatch (argv, argc, "-enable-font-backend", "--enable-font-backend",
+               4, NULL, &skip_args))
+    enable_font_backend = 1;
+#endif /* USE_FONT_BACKEND */
+
   if (! noninteractive)
     {
 #ifdef BSD_PGRPS
@@ -1624,6 +1634,9 @@ main (argc, argv
       syms_of_window ();
       syms_of_xdisp ();
 #ifdef HAVE_WINDOW_SYSTEM
+#ifdef USE_FONT_BACKEND
+      syms_of_font ();
+#endif /* USE_FONT_BACKEND */
       syms_of_fringe ();
       syms_of_image ();
 #endif /* HAVE_WINDOW_SYSTEM */