2 dnl Process this file with autoconf to generate configure.
4 dnl The AX_* macros are defined in files in the top-level m4
7 #####################################################################
8 # Set up configuration system
9 #####################################################################
11 AC_INIT([gEDA/gaf], [1.5.3], [geda-bug@seul.org], [gEDA-gaf])
14 AC_CONFIG_SRCDIR([libgeda/src/libgeda.c])
15 AC_CONFIG_AUX_DIR([build-tools])
16 AC_CONFIG_MACRO_DIR([m4])
17 AC_CONFIG_HEADER([config.h])
21 AC_GNU_SOURCE # FIXME for some reason this is needed?
23 #####################################################################
24 # Do version number magic
25 #####################################################################
27 AX_GIT_VERSION([20090829])
29 # This is used for keeping the ChangeLog files up-to-date
30 AC_SUBST([CHANGELOG_BASE], [1.0-20070526])
32 #####################################################################
34 #####################################################################
39 #####################################################################
40 # Check for compiling & linking tools
41 #####################################################################
56 AC_PATH_PROGS([M4], [gm4 m4], [m4])
58 #####################################################################
59 # Internationalisation
60 #####################################################################
64 AM_GNU_GETTEXT_VERSION([0.16])
67 #####################################################################
68 # Check for libraries that use pkg-config
69 #####################################################################
73 AX_CHECK_GUILE([1.8.0])
75 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.12.0], ,
76 AC_MSG_ERROR([GLib 2.12.0 or later is required.]))
78 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.10.0], ,
79 AC_MSG_ERROR([GTK+ 2.10.0 or later is required.]))
81 PKG_CHECK_MODULES(GDK_PIXBUF, [gdk-pixbuf-2.0 >= 0.15.0], ,
82 AC_MSG_ERROR([GDK_PIXBUF 0.15.0 or later is required.]))
84 PKG_CHECK_MODULES(CAIRO, [cairo >= 1.2.0], ,
85 AC_MSG_ERROR([CAIRO 1.2.0 or later is required.]))
87 #####################################################################
88 # Header files & particular functions
89 #####################################################################
93 # FIXME these checks are obsolete, because every plausible platform
94 # provides what they check for.
97 # FIXME these checks may be pointless for one of three reasons: every
98 # even vaguely sane libc implementation provides them; we don't use
99 # any of their functions in favour of GLib alternatives; or we don't
100 # provide an alternative, so the build will fail anyway.
101 AC_CHECK_HEADERS([stdlib.h string.h unistd.h])
103 # FIXME since we don't have a sensible alternative, if these headers
104 # are missing we should fail. Also need to remove HAVE_ERRNO_H tests
105 # in the C source code, since if we *don't* have it the build will
107 AC_CHECK_HEADERS([errno.h fcntl.h])
109 # Check for rint in math library. FIXME do we actually need to test
110 # this? Should we use lrint instead?
111 AC_CHECK_LIB([m], [lrint],
112 AC_DEFINE([HAVE_LRINT], 1,
113 [If your math library has lrint in it, define this]))
115 AC_CHECK_FUNCS([chown getlogin])
117 # Check if the getopt header is present
118 AC_CHECK_HEADERS([getopt.h])
119 # Check for getopt_long
120 # On FreeBSD the 'gnugetopt' library is needed.
121 AC_SEARCH_LIBS([getopt_long], [gnugetopt],
122 AC_DEFINE([HAVE_GETOPT_LONG], 1,
123 [Define to 1 if you have the `getopt_long' function.]))
125 # Check for misc features of awk
128 #####################################################################
130 #####################################################################
138 # KDE 3 desktop files
140 # XDG database updates
147 #####################################################################
148 # Tool-specific setup
149 #####################################################################
151 # Where should data files be installed/searched for?
153 # Where should PCB footprints be searched for?
155 # Set up libgeda with the correct ld version number
158 #####################################################################
160 #####################################################################
162 AC_CONFIG_FILES([Makefile
167 libgeda/po/domain.mak
168 libgeda/po/Makefile.in
169 libgeda/data/Makefile
170 libgeda/docs/Makefile
171 libgeda/docs/images/Makefile
172 libgeda/include/Makefile
174 libgeda/scheme/Makefile
175 libgeda/share/Makefile
179 gschem/po/Makefile.in
181 gschem/include/Makefile
182 gschem/scripts/Makefile
184 gschem/examples/Makefile
186 gschem/lib/system-gschemrc
188 gschem/bitmap/Makefile
189 gschem/tests/Makefile
190 gschem/scheme/Makefile
193 gattrib/po/Makefile.in
194 gattrib/design/Makefile
195 gattrib/docs/Makefile
196 gattrib/include/Makefile
198 gattrib/lib/system-gattribrc
200 gattrib/data/Makefile
202 gsymcheck/docs/Makefile
203 gsymcheck/include/Makefile
204 gsymcheck/lib/Makefile
205 gsymcheck/lib/system-gsymcheckrc
206 gsymcheck/src/Makefile
207 gsymcheck/tests/Makefile
211 gnetlist/src/Makefile
212 gnetlist/include/Makefile
213 gnetlist/scheme/Makefile
214 gnetlist/examples/Makefile
215 gnetlist/tests/Makefile
216 gnetlist/tests/hierarchy/Makefile
217 gnetlist/tests/hierarchy2/Makefile
218 gnetlist/tests/drc2/Makefile
219 gnetlist/tests/common/Makefile
220 gnetlist/docs/Makefile
221 gnetlist/docs/vams/Makefile
222 gnetlist/examples/vams/Makefile
223 gnetlist/examples/vams/vhdl/Makefile
224 gnetlist/examples/vams/vhdl/basic-vhdl/Makefile
225 gnetlist/examples/vams/vhdl/new-vhdl/Makefile
226 gnetlist/examples/switcap/Makefile
227 gnetlist/lib/Makefile
228 gnetlist/utils/Makefile
229 gnetlist/scripts/Makefile
230 gnetlist/scripts/annotate.sh
231 gnetlist/scripts/bom_xref.sh
232 gnetlist/scripts/bompp.sh
233 gnetlist/scripts/sw2asc
234 gnetlist/lib/system-gnetlistrc
238 utils/examples/Makefile
239 utils/examples/gmk_sym/Makefile
240 utils/examples/gsch2pcb/Makefile
241 utils/examples/tragesym/Makefile
242 utils/gschlas/Makefile
244 utils/include/Makefile
246 utils/lib/system-gschlasrc
248 utils/scripts/Makefile
251 utils/tests/gxyrs/Makefile
252 utils/tests/gxyrs/inputs/Makefile
253 utils/tests/gxyrs/outputs/Makefile
254 utils/tests/refdes_renum/Makefile
255 utils/tests/refdes_renum/inputs/Makefile
256 utils/tests/refdes_renum/outputs/Makefile
259 symbols/documentation/Makefile
262 docs/scripts/Makefile
263 docs/toplevel/Makefile
264 docs/toplevel/gedadocs.html
266 docs/wiki/_detail/Makefile
267 docs/wiki/_media/Makefile
268 docs/wiki/lib/Makefile
269 docs/wiki/lib/exe/Makefile
270 docs/wiki/lib/images/Makefile
271 docs/wiki/lib/images/fileicons/Makefile
272 docs/wiki/lib/images/interwiki/Makefile
273 docs/wiki/lib/images/smileys/Makefile
274 docs/wiki/lib/plugins/Makefile
275 docs/wiki/lib/plugins/definitionlist/Makefile
276 docs/wiki/lib/plugins/definitionlist/images/Makefile
277 docs/wiki/lib/plugins/note/Makefile
278 docs/wiki/lib/plugins/note/images/Makefile
279 docs/wiki/lib/tpl/Makefile
280 docs/wiki/lib/tpl/geda/Makefile
281 docs/wiki/lib/tpl/geda/images/Makefile
284 examples/RF_Amp/Makefile
285 examples/RF_Amp/model/Makefile
286 examples/RF_Amp/sym/Makefile
287 examples/TwoStageAmp/Makefile
288 examples/gTAG/Makefile
289 examples/lightning_detector/Makefile