Updated versions in prep for a new version
[geda-gaf.git] / configure.ac
blob8e614fba3193df38d60809d1b53c239a8cd7113a
1 dnl                                                      -*-Autoconf-*-
2 dnl Process this file with autoconf to generate configure.
3 dnl
4 dnl The AX_* macros are defined in files in the top-level m4
5 dnl directory.
7 #####################################################################
8 # Set up configuration system
9 #####################################################################
11 AC_INIT([gEDA/gaf], [1.6.0], [geda-bug@seul.org], [geda-gaf])
12 AC_PREREQ([2.60])
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])
19 AM_INIT_AUTOMAKE
21 AC_GNU_SOURCE # FIXME for some reason this is needed?
23 #####################################################################
24 # Do version number magic
25 #####################################################################
27 AX_GIT_VERSION([20091004])
29 # This is used for keeping the ChangeLog files up-to-date
30 AC_SUBST([CHANGELOG_BASE], [1.0-20070526])
32 #####################################################################
33 # Windows/MinGW/Cygwin support
34 #####################################################################
36 AX_WINDOWS_FLAGS
38 #####################################################################
39 # Check for compiling & linking tools
40 #####################################################################
42 AC_PROG_CC
43 AC_PROG_CPP
45 AC_LIBTOOL_WIN32_DLL
46 AC_DISABLE_STATIC
47 AC_PROG_LIBTOOL
49 AM_PROG_CC_C_O
50 AX_GCC_FLAGS([-Wall])
52 AM_PROG_LEX
53 AX_PROG_AWK
54 AX_PROG_GROFF
55 AC_PATH_PROGS([M4], [gm4 m4], [m4])
57 #####################################################################
58 # Internationalisation
59 #####################################################################
61 AM_NLS
62 AM_GNU_GETTEXT
63 AM_GNU_GETTEXT_VERSION([0.16])
64 AX_DESKTOP_I18N
66 #####################################################################
67 # Check for libraries that use pkg-config
68 #####################################################################
70 PKG_PROG_PKG_CONFIG
72 AX_CHECK_GUILE([1.8.0])
74 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.12.0], ,
75   AC_MSG_ERROR([GLib 2.12.0 or later is required.]))
77 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.10.0], ,
78   AC_MSG_ERROR([GTK+ 2.10.0 or later is required.]))
80 PKG_CHECK_MODULES(GDK_PIXBUF, [gdk-pixbuf-2.0 >= 0.15.0], ,
81   AC_MSG_ERROR([GDK_PIXBUF 0.15.0 or later is required.]))
83 PKG_CHECK_MODULES(CAIRO, [cairo >= 1.2.0], ,
84   AC_MSG_ERROR([CAIRO 1.2.0 or later is required.]))
86 #####################################################################
87 # Header files & particular functions
88 #####################################################################
90 AC_HEADER_SYS_WAIT
92 # FIXME these checks are obsolete, because every plausible platform
93 # provides what they check for.
94 AC_HEADER_STDC
96 # FIXME these checks may be pointless for one of three reasons: every
97 # even vaguely sane libc implementation provides them; we don't use
98 # any of their functions in favour of GLib alternatives; or we don't
99 # provide an alternative, so the build will fail anyway.
100 AC_CHECK_HEADERS([stdlib.h string.h unistd.h])
102 # FIXME since we don't have a sensible alternative, if these headers
103 # are missing we should fail. Also need to remove HAVE_ERRNO_H tests
104 # in the C source code, since if we *don't* have it the build will
105 # fail anyway.
106 AC_CHECK_HEADERS([errno.h fcntl.h])
108 # Check for rint in math library. FIXME do we actually need to test
109 # this? Should we use lrint instead?
110 AC_CHECK_LIB([m], [lrint],
111              AC_DEFINE([HAVE_LRINT], 1,
112                        [If your math library has lrint in it, define this]))
114 AC_CHECK_FUNCS([chown getlogin])
116 # Check if the getopt header is present
117 AC_CHECK_HEADERS([getopt.h])
118 # Check for getopt_long
119 # On FreeBSD the 'gnugetopt' library is needed.
120 AC_SEARCH_LIBS([getopt_long], [gnugetopt],
121                AC_DEFINE([HAVE_GETOPT_LONG], 1,
122                          [Define to 1 if you have the `getopt_long' function.]))
124 # Check for misc features of awk
125 AX_AWK_FEATURES
127 #####################################################################
128 # Optional things
129 #####################################################################
131 # Assertions
132 AX_OPTION_ASSERT
133 # API documentation
134 AX_OPTION_DOXYGEN
135 # XDG desktop files
136 AX_OPTION_XDG_DATA
137 # KDE 3 desktop files
138 AX_OPTION_KDE3_DATA
139 # XDG database updates
140 AX_OPTION_XDG_DB
141 # libstroke support
142 AX_OPTION_STROKE
143 # gattrib
144 AX_OPTION_GATTRIB
146 #####################################################################
147 # Tool-specific setup
148 #####################################################################
150 # Where should data files be installed/searched for?
151 AX_DATA_DIRS
152 # Where should PCB footprints be searched for?
153 AX_PCB_DIRS
154 # Set up libgeda with the correct ld version number
155 AX_LIBGEDA([38:0:0])
157 #####################################################################
158 # Generate output
159 #####################################################################
161 AC_CONFIG_FILES([Makefile
162                  intl/Makefile
164                  libgeda/Makefile
165                  libgeda/libgeda.pc
166                  libgeda/po/domain.mak
167                  libgeda/po/Makefile.in
168                  libgeda/data/Makefile
169                  libgeda/docs/Makefile
170                  libgeda/docs/images/Makefile
171                  libgeda/include/Makefile
172                  libgeda/lib/Makefile
173                  libgeda/scheme/Makefile
174                  libgeda/share/Makefile
175                  libgeda/src/Makefile
177                  gschem/Makefile
178                  gschem/po/Makefile.in
179                  gschem/docs/Makefile
180                  gschem/include/Makefile
181                  gschem/scripts/Makefile
182                  gschem/src/Makefile
183                  gschem/examples/Makefile
184                  gschem/lib/Makefile
185                  gschem/lib/system-gschemrc
186                  gschem/data/Makefile
187                  gschem/bitmap/Makefile
188                  gschem/tests/Makefile
189                  gschem/scheme/Makefile
191                  gattrib/Makefile
192                  gattrib/po/Makefile.in
193                  gattrib/design/Makefile
194                  gattrib/docs/Makefile
195                  gattrib/include/Makefile
196                  gattrib/lib/Makefile
197                  gattrib/lib/system-gattribrc
198                  gattrib/src/Makefile
199                  gattrib/data/Makefile
201                  gsymcheck/docs/Makefile
202                  gsymcheck/include/Makefile
203                  gsymcheck/lib/Makefile
204                  gsymcheck/lib/system-gsymcheckrc
205                  gsymcheck/src/Makefile
206                  gsymcheck/tests/Makefile
207                  gsymcheck/Makefile
209                  gnetlist/Makefile
210                  gnetlist/src/Makefile
211                  gnetlist/include/Makefile
212                  gnetlist/scheme/Makefile
213                  gnetlist/examples/Makefile
214                  gnetlist/tests/Makefile
215                  gnetlist/tests/hierarchy/Makefile
216                  gnetlist/tests/hierarchy2/Makefile
217                  gnetlist/tests/drc2/Makefile
218                  gnetlist/tests/common/Makefile
219                  gnetlist/docs/Makefile
220                  gnetlist/docs/vams/Makefile
221                  gnetlist/examples/vams/Makefile
222                  gnetlist/examples/vams/vhdl/Makefile
223                  gnetlist/examples/vams/vhdl/basic-vhdl/Makefile
224                  gnetlist/examples/vams/vhdl/new-vhdl/Makefile
225                  gnetlist/examples/switcap/Makefile
226                  gnetlist/lib/Makefile
227                  gnetlist/utils/Makefile
228                  gnetlist/scripts/Makefile
229                  gnetlist/scripts/annotate.sh
230                  gnetlist/scripts/bom_xref.sh
231                  gnetlist/scripts/bompp.sh
232                  gnetlist/scripts/sw2asc
233                  gnetlist/lib/system-gnetlistrc
235                  utils/Makefile
236                  utils/docs/Makefile
237                  utils/examples/Makefile
238                  utils/examples/gmk_sym/Makefile
239                  utils/examples/gsch2pcb/Makefile
240                  utils/examples/tragesym/Makefile
241                  utils/gschlas/Makefile
242                  utils/gxyrs/Makefile
243                  utils/include/Makefile
244                  utils/lib/Makefile
245                  utils/lib/system-gschlasrc
246                  utils/man/Makefile
247                  utils/scripts/Makefile
248                  utils/src/Makefile
249                  utils/tests/Makefile
250                  utils/tests/gxyrs/Makefile
251                  utils/tests/gxyrs/inputs/Makefile
252                  utils/tests/gxyrs/outputs/Makefile
253                  utils/tests/refdes_renum/Makefile
254                  utils/tests/refdes_renum/inputs/Makefile
255                  utils/tests/refdes_renum/outputs/Makefile
257                  symbols/Makefile
258                  symbols/documentation/Makefile
260                  docs/Makefile
261                  docs/scripts/Makefile
262                  docs/toplevel/Makefile
263                  docs/toplevel/gedadocs.html
264                  docs/wiki/Makefile
265                  docs/wiki/images/smileys/Makefile
266                  docs/wiki/images/Makefile
267                  docs/wiki/images/interwiki/Makefile
268                  docs/wiki/media/geda/Makefile
269                  docs/wiki/media/wiki/Makefile
270                  docs/wiki/media/tragesym/tragesym/Makefile
271                  docs/wiki/media/tragesym/Makefile
272                  docs/wiki/media/Makefile
273                  docs/wiki/media/devel_tips/Makefile
275                  examples/Makefile
276                  examples/RF_Amp/Makefile
277                  examples/RF_Amp/model/Makefile
278                  examples/RF_Amp/sym/Makefile
279                  examples/TwoStageAmp/Makefile
280                  examples/gTAG/Makefile
281                  examples/lightning_detector/Makefile
283 AC_OUTPUT