refdes_renum: warn of possible number clash with non-conforming values
[geda-gaf/whiteaudio.git] / configure.ac
blobf11585778c4c522dee8483063c8e40cb0f8516cf
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.7.2], [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([20111231])
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 AC_PROG_MKDIR_P
53 AM_PROG_LEX
54 AX_PROG_AWK
55 AX_PROG_GROFF
56 AC_PATH_PROGS([M4], [gm4 m4], [m4])
58 #####################################################################
59 # Internationalisation
60 #####################################################################
62 AM_NLS
63 AM_GNU_GETTEXT
64 AM_GNU_GETTEXT_VERSION([0.16])
65 AX_DESKTOP_I18N
67 #####################################################################
68 # Check for libraries that use pkg-config
69 #####################################################################
71 PKG_PROG_PKG_CONFIG
73 AX_CHECK_GUILE([1.8.0])
75 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.20.0], ,
76   AC_MSG_ERROR([GLib 2.20.0 or later is required.]))
78 PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.16.0], ,
79   AC_MSG_ERROR([GTK+ 2.16.0 or later is required.]))
81 PKG_CHECK_MODULES(GDK_PIXBUF, [gdk-pixbuf-2.0 >= 2.16.0], ,
82   AC_MSG_ERROR([GDK_PIXBUF 2.16.0 or later is required.]))
84 PKG_CHECK_MODULES(CAIRO, [cairo >= 1.8.0], ,
85   AC_MSG_ERROR([CAIRO 1.8.0 or later is required.]))
87 #####################################################################
88 # Header files & particular functions
89 #####################################################################
91 AC_HEADER_SYS_WAIT
93 # FIXME these checks are obsolete, because every plausible platform
94 # provides what they check for.
95 AC_HEADER_STDC
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
106 # fail anyway.
107 AC_CHECK_HEADERS([errno.h fcntl.h])
109 # FIXME On a system without locale.h, the user may have just disabled NLS
110 # to be able to build.  But are there known systems with working NLS but
111 # without a locale.h?  We do need to include locale.h on some systems
112 # to be able to build gschem/src/gschem.c
113 AC_CHECK_HEADERS([locale.h])
115 # Check for lrint in math library.
116 AC_CHECK_LIB([m], [lrint],
117              AC_DEFINE([HAVE_LRINT], 1,
118                        [If your math library has lrint in it, define this]))
120 AC_CHECK_LIB([m], [atan2])
122 AC_CHECK_FUNCS([chown getlogin])
124 # Check if the getopt header is present
125 AC_CHECK_HEADERS([getopt.h])
126 # Check for getopt_long
127 # On FreeBSD the 'gnugetopt' library is needed.
128 AC_SEARCH_LIBS([getopt_long], [gnugetopt],
129                AC_DEFINE([HAVE_GETOPT_LONG], 1,
130                          [Define to 1 if you have the `getopt_long' function.]))
132 # Check for misc features of awk
133 AX_AWK_FEATURES
135 #####################################################################
136 # Optional things
137 #####################################################################
139 # Assertions
140 AX_OPTION_ASSERT
141 # Viewing documentation
142 AX_OPTION_URI_VIEWER
143 # API documentation
144 AX_OPTION_DOXYGEN
145 # XDG desktop files
146 AX_OPTION_XDG_DATA
147 # KDE 3 desktop files
148 AX_OPTION_KDE3_DATA
149 # XDG database updates
150 AX_OPTION_XDG_DB
151 # libstroke support
152 AX_OPTION_STROKE
153 # gattrib
154 AX_OPTION_GATTRIB
156 #####################################################################
157 # Tool-specific setup
158 #####################################################################
160 # Where should data files be installed/searched for?
161 AX_DATA_DIRS
162 # Where should PCB footprints be searched for?
163 AX_PCB_DIRS
164 # Set up libgeda with the correct ld version number
165 AX_LIBGEDA([41:0:0])
167 #####################################################################
168 # Generate output
169 #####################################################################
171 AC_CONFIG_FILES([Makefile
172                  intl/Makefile
174                  libgeda/Makefile
175                  libgeda/libgeda.pc
176                  libgeda/po/domain.mak
177                  libgeda/po/Makefile.in
178                  libgeda/shell/Makefile
179                  libgeda/data/Makefile
180                  libgeda/docs/Makefile
181                  libgeda/docs/images/Makefile
182                  libgeda/include/Makefile
183                  libgeda/lib/Makefile
184                  libgeda/scheme/Makefile
185                  libgeda/share/Makefile
186                  libgeda/src/Makefile
188                  gschem/Makefile
189                  gschem/po/Makefile.in
190                  gschem/docs/Makefile
191                  gschem/include/Makefile
192                  gschem/scripts/Makefile
193                  gschem/src/Makefile
194                  gschem/examples/Makefile
195                  gschem/lib/Makefile
196                  gschem/data/Makefile
197                  gschem/bitmap/Makefile
198                  gschem/tests/Makefile
199                  gschem/scheme/Makefile
201                  gattrib/Makefile
202                  gattrib/po/Makefile.in
203                  gattrib/design/Makefile
204                  gattrib/docs/Makefile
205                  gattrib/include/Makefile
206                  gattrib/lib/Makefile
207                  gattrib/lib/system-gattribrc
208                  gattrib/src/Makefile
209                  gattrib/data/Makefile
211                  gsymcheck/docs/Makefile
212                  gsymcheck/include/Makefile
213                  gsymcheck/lib/Makefile
214                  gsymcheck/lib/system-gsymcheckrc
215                  gsymcheck/src/Makefile
216                  gsymcheck/tests/Makefile
217                  gsymcheck/Makefile
219                  gnetlist/Makefile
220                  gnetlist/src/Makefile
221                  gnetlist/include/Makefile
222                  gnetlist/scheme/Makefile
223                  gnetlist/examples/Makefile
224                  gnetlist/tests/Makefile
225                  gnetlist/tests/hierarchy/Makefile
226                  gnetlist/tests/hierarchy2/Makefile
227                  gnetlist/tests/drc2/Makefile
228                  gnetlist/tests/common/Makefile
229                  gnetlist/docs/Makefile
230                  gnetlist/docs/vams/Makefile
231                  gnetlist/examples/vams/Makefile
232                  gnetlist/examples/vams/vhdl/Makefile
233                  gnetlist/examples/vams/vhdl/basic-vhdl/Makefile
234                  gnetlist/examples/vams/vhdl/new-vhdl/Makefile
235                  gnetlist/examples/switcap/Makefile
236                  gnetlist/lib/Makefile
237                  gnetlist/utils/Makefile
238                  gnetlist/scripts/Makefile
239                  gnetlist/scripts/annotate.sh
240                  gnetlist/scripts/bom_xref.sh
241                  gnetlist/scripts/bompp.sh
242                  gnetlist/lib/system-gnetlistrc
244                  utils/Makefile
245                  utils/docs/Makefile
246                  utils/examples/Makefile
247                  utils/examples/gmk_sym/Makefile
248                  utils/examples/gsch2pcb/Makefile
249                  utils/examples/tragesym/Makefile
250                  utils/gschlas/Makefile
251                  utils/gxyrs/Makefile
252                  utils/include/Makefile
253                  utils/lib/Makefile
254                  utils/lib/system-gschlasrc
255                  utils/scripts/Makefile
256                  utils/scripts/sw2asc
257                  utils/src/Makefile
258                  utils/tests/Makefile
259                  utils/tests/gxyrs/Makefile
260                  utils/tests/gxyrs/inputs/Makefile
261                  utils/tests/gxyrs/outputs/Makefile
262                  utils/tests/refdes_renum/Makefile
263                  utils/tests/refdes_renum/inputs/Makefile
264                  utils/tests/refdes_renum/outputs/Makefile
266                  symbols/Makefile
267                  symbols/documentation/Makefile
269                  docs/Makefile
270                  docs/scheme-api/Makefile
271                  docs/scripts/Makefile
272                  docs/toplevel/Makefile
273                  docs/toplevel/gedadocs.html
274                  docs/wiki/Makefile
275                  docs/wiki/images/smileys/Makefile
276                  docs/wiki/images/Makefile
277                  docs/wiki/images/interwiki/Makefile
278                  docs/wiki/media/geda/Makefile
279                  docs/wiki/media/wiki/Makefile
280                  docs/wiki/media/tragesym/tragesym/Makefile
281                  docs/wiki/media/tragesym/Makefile
282                  docs/wiki/media/Makefile
283                  docs/wiki/media/devel_tips/Makefile
285                  examples/Makefile
286                  examples/RF_Amp/Makefile
287                  examples/RF_Amp/model/Makefile
288                  examples/RF_Amp/sym/Makefile
289                  examples/TwoStageAmp/Makefile
290                  examples/gTAG/Makefile
291                  examples/lightning_detector/Makefile
293 AC_OUTPUT