1 | dnl Process this file with autoconf to produce a configure script. |
---|
2 | |
---|
3 | AC_PREREQ(2.13) |
---|
4 | |
---|
5 | AC_INIT(project.am) |
---|
6 | |
---|
7 | RTEMS_VERSION=4.5.0-beta3 |
---|
8 | |
---|
9 | AM_INIT_AUTOMAKE(rtemsdoc,${RTEMS_VERSION},no) |
---|
10 | AM_MAINTAINER_MODE |
---|
11 | |
---|
12 | AC_ARG_ENABLE(html, |
---|
13 | [ --disable-html disable html support ], |
---|
14 | [case $enableval in |
---|
15 | yes) ;; |
---|
16 | no) ;; |
---|
17 | *) AC_MSG_ERROR("invalid value");; |
---|
18 | esac], |
---|
19 | [enable_html="yes"] |
---|
20 | ) |
---|
21 | |
---|
22 | AC_ARG_ENABLE(dvi, |
---|
23 | [ --disable-dvi disable dvi support ], |
---|
24 | [case $enableval in |
---|
25 | yes) ;; |
---|
26 | no) ;; |
---|
27 | *) AC_MSG_ERROR("invalid value");; |
---|
28 | esac], |
---|
29 | [enable_dvi="yes"] |
---|
30 | ) |
---|
31 | |
---|
32 | AC_ARG_ENABLE(pdf, |
---|
33 | [ --disable-pdf disable pdf support ], |
---|
34 | [case $enableval in |
---|
35 | yes) ;; |
---|
36 | no) ;; |
---|
37 | *) AC_MSG_ERROR("invalid value");; |
---|
38 | esac], |
---|
39 | [enable_pdf="yes"] |
---|
40 | ) |
---|
41 | |
---|
42 | AC_ARG_ENABLE(ps, |
---|
43 | [ --disable-ps disable ps support ], |
---|
44 | [case $enableval in |
---|
45 | yes) ;; |
---|
46 | no) ;; |
---|
47 | *) AC_MSG_ERROR("invalid value");; |
---|
48 | esac], |
---|
49 | [enable_ps="yes"] |
---|
50 | ) |
---|
51 | |
---|
52 | AC_ARG_ENABLE(papersize, |
---|
53 | [ --enable-papersize=[letter|a4|] set papersize [default:system defaults]], |
---|
54 | [case $enableval in |
---|
55 | a4) papersize=a4 ;; |
---|
56 | letter) papersize=letter ;; |
---|
57 | yes) papersize= ;; |
---|
58 | no) papersize= ;; |
---|
59 | *) AC_MSG_ERROR([Invalid papersize]) |
---|
60 | ;; |
---|
61 | esac], |
---|
62 | [papersize=] |
---|
63 | ) |
---|
64 | |
---|
65 | htmldir='$(pkgdatadir)/html' |
---|
66 | AC_SUBST(htmldir) |
---|
67 | |
---|
68 | dnl Checks for programs. |
---|
69 | AC_PROG_LN_S |
---|
70 | |
---|
71 | AC_CHECK_PROGS(PERL,perl) |
---|
72 | |
---|
73 | TEXI2WWW='$(PERL) $(top_srcdir)/tools/texi2www/texi2www' |
---|
74 | AC_SUBST(TEXI2WWW) |
---|
75 | |
---|
76 | AC_CHECK_PROGS(GS,gs) |
---|
77 | AM_CONDITIONAL(GS,test x"$GS" != x"") |
---|
78 | |
---|
79 | AC_CHECK_PROGS(TEXI2DVI,texi2dvi) |
---|
80 | AM_CONDITIONAL(TEXI2DVI,test x"$TEXI2DVI" != x"") |
---|
81 | if test "$enable_pdf" = "yes"; then |
---|
82 | AC_CHECK_PROGS(EPSTOPDF,epstopdf) |
---|
83 | AM_CONDITIONAL(EPSTOPDF,test x"$EPSTOPDF" != x"") |
---|
84 | |
---|
85 | AC_CHECK_PROGS(TEXI2PDF,texi2pdf) |
---|
86 | AM_CONDITIONAL(TEXI2PDF,test x"$TEXI2PDF" != x"") |
---|
87 | fi |
---|
88 | |
---|
89 | AM_CONDITIONAL(USE_HTML, |
---|
90 | test "$enable_html" = "yes" \ |
---|
91 | && test x"PERL" != x"" ) |
---|
92 | |
---|
93 | AM_CONDITIONAL(USE_DVI, |
---|
94 | test "$enable_dvi" = "yes" \ |
---|
95 | && test x"$TEXI2DVI" != x"" ) |
---|
96 | |
---|
97 | AM_CONDITIONAL(USE_PS, |
---|
98 | test "$enable_ps" = "yes" \ |
---|
99 | && test x"$TEXI2DVI" != x"" ) |
---|
100 | |
---|
101 | AM_CONDITIONAL(USE_PDF, |
---|
102 | test "$enable_pdf" = "yes" \ |
---|
103 | && test x"$TEXI2DVI" != x"" \ |
---|
104 | && test x"$TEXI2PDF" != x"" ) |
---|
105 | |
---|
106 | case $papersize in |
---|
107 | a4) |
---|
108 | TEXI2DVI="${TEXI2DVI} --texinfo=@afourpaper" |
---|
109 | TEXI2PDF="${TEXI2PDF} --texinfo=@afourpaper" |
---|
110 | DVIPS="dvips -t a4" |
---|
111 | ;; |
---|
112 | letter) |
---|
113 | DVIPS="dvips -t letter" |
---|
114 | ;; |
---|
115 | *) |
---|
116 | DVIPS="dvips" |
---|
117 | ;; |
---|
118 | esac |
---|
119 | AC_SUBST(DVIPS) |
---|
120 | |
---|
121 | BMENU2='$(top_builddir)/tools/bmenu/bmenu2' |
---|
122 | AC_SUBST(BMENU2) |
---|
123 | |
---|
124 | dnl Checks for libraries. |
---|
125 | |
---|
126 | dnl Checks for header files. |
---|
127 | |
---|
128 | dnl Checks for typedefs, structures, and compiler characteristics. |
---|
129 | |
---|
130 | dnl Checks for library functions. |
---|
131 | |
---|
132 | AC_CONFIG_SUBDIRS(tools) |
---|
133 | |
---|
134 | AC_OUTPUT( |
---|
135 | Makefile |
---|
136 | rtems_support.html |
---|
137 | index.html |
---|
138 | images/Makefile |
---|
139 | common/Makefile |
---|
140 | FAQ/Makefile |
---|
141 | develenv/Makefile |
---|
142 | user/Makefile |
---|
143 | bsp_howto/Makefile |
---|
144 | started/Makefile |
---|
145 | started/pictures/Makefile |
---|
146 | porting/Makefile |
---|
147 | networking/Makefile |
---|
148 | posix_users/Makefile |
---|
149 | posix1003.1/Makefile |
---|
150 | filesystem/Makefile |
---|
151 | itron3.0/Makefile |
---|
152 | ada_user/Makefile |
---|
153 | started_ada/Makefile |
---|
154 | rtems_gdb/Makefile |
---|
155 | rgdb_specs/Makefile |
---|
156 | relnotes/Makefile |
---|
157 | new_chapters/Makefile |
---|
158 | supplements/Makefile |
---|
159 | supplements/hppa1_1/Makefile |
---|
160 | supplements/i386/Makefile |
---|
161 | supplements/i960/Makefile |
---|
162 | supplements/m68k/Makefile |
---|
163 | supplements/mips64orion/Makefile |
---|
164 | supplements/powerpc/Makefile |
---|
165 | supplements/sh/Makefile |
---|
166 | supplements/sparc/Makefile |
---|
167 | supplements/template/Makefile |
---|
168 | gnu_docs/Makefile |
---|
169 | src2html/Makefile |
---|
170 | ) |
---|