2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([G07710219-thesis], [0.0.1], [microcaicai@gmail.com])
6 AC_CONFIG_SRCDIR([src/parser.y])
8 AM_INIT_AUTOMAKE([-Wall])
12 AC_PROG_YACC # Bison detect, ^_^
15 ## Default font settings
16 songti="Adobe Song Std"
17 songtibold="song-bold"
18 monohei="WenQuanYi Zen Hei Mono"
19 heiti="Adobe Heiti Std"
20 TimesFont="Nimbus Roman No9 L"
26 AC_ARG_WITH(fontsong,[AC_HELP_STRING([--with-fontsong],[font used to set CJK song, default is Adobe Song Std])],[],[])
27 AC_ARG_WITH(fontsongbold,[AC_HELP_STRING([--with-fontsongbold],[font used to set CJK bold song, default is song-bold])],[],[])
28 AC_ARG_WITH(fontmonohei,[AC_HELP_STRING([--with-fontmonohei],[font used to set CJK mono font, default is WenQuanYi Zen Hei Mono])],[],[])
29 AC_ARG_WITH(heiti,[AC_HELP_STRING([--with-heiti],[font used to set CJK heiti font, default is Adobe Heiti Std])],[],[])
30 AC_ARG_WITH(TimesFont,[AC_HELP_STRING([--with-TimesFont],[font used to set English Times font.default is Nimbus Roman No9 L(type1)])],[],[])
32 # Checks for libraries.
33 PKG_CHECK_MODULES([PARSER],[libxml-2.0 glib-2.0])
34 # Checks for header files.
36 # Checks for typedefs, structures, and compiler characteristics.
38 # Checks for library functions.
39 AC_CHECK_LIB(fl,yyerror)
46 AC_CONFIG_FILES([doc/common/setup_font.tex
50 doc/commitment/Makefile
52 doc/Topic_Declaration/Makefile
53 doc/Mission_statement/Makefile
54 doc/Opening_report/Makefile
55 doc/Literature_Review/Makefile])