netlist: Accept very old schematic files
[geda-gaf.git] / configure.ac
blob591cb244cd81774264c62db4f93df206b6be2066
1 # Process this file with autoconf to produce a configure script.
2 # Copyright (C) 2013-2020 Roland Lutz
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software Foundation,
16 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 AC_PREREQ([2.69])
19 LT_PREREQ([2.4.6])
21 AC_INIT([Xorn], [0.0], [bug-xorn@hedmen.org], [], [http://hedmen.org/xorn/])
22 AC_CONFIG_SRCDIR([src/cpython/storage/module.c])
23 AC_CONFIG_MACRO_DIR([m4])
25 AM_INIT_AUTOMAKE([-Wall -Werror silent-rules subdir-objects])
26 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
27 LT_INIT([])
29 AX_PROG_CC_WARNING([cast_function_type], [cast-function-type])
31 AC_PROG_CXX
33 AM_PATH_PYTHON([2.7])
34 PKG_CHECK_MODULES([PYTHON], [python-2.7 >= 2.7],, [
35   PKG_CHECK_MODULES([PYTHON], [python2 >= 2.7])
37 PKG_CHECK_MODULES([GUILE], [guile-2.2 >= 2.2.4])
39 AM_GNU_GETTEXT([external])
40 AM_GNU_GETTEXT_VERSION([0.19.8])
42 # gEDA is planning to move this to $datarootdir/geda-gaf
43 AC_MSG_CHECKING([where to look for gEDA shared data])
44 AC_ARG_WITH(
45         [geda-datadir],
46         [AS_HELP_STRING(
47                 [--with-geda-datadir@<:@=DIR@:>@],
48                 [where to look for shared gEDA data @<:@DATAROOTDIR/gEDA@:>@])], [
49         if test "x$with_geda_datadir" == "xno"
50         then    gedadatadir=""
51                 AC_MSG_RESULT([no default])
52         else    if test "x$with_geda_datadir" = "xyes"
53                 then    gedadatadir="$datarootdir/gEDA"
54                 else    gedadatadir="$with_geda_datadir"
55                 fi
56                 AC_MSG_RESULT([$gedadatadir])
57         fi
58 ], [
59         gedadatadir="$datarootdir/gEDA"
60         AC_MSG_RESULT([$gedadatadir])
62 AS_IF([test "x$gedadatadir" = "x"],
63       [AC_MSG_ERROR([No gEDA shared data location given])])
64 AC_SUBST([gedadatadir])
66 # gEDA is planning to move this to $sysconfdir/geda-gaf
67 AC_MSG_CHECKING([where to look for gEDA rc files])
68 AC_ARG_WITH(
69         [geda-sysconfdir],
70         [AS_HELP_STRING(
71                 [--with-geda-sysconfdir@<:@=DIR@:>@],
72                 [where to look for system-wide gEDA configuration @<:@SYSCONFDIR/gEDA@:>@])], [
73         if test "x$with_geda_sysconfdir" == "xno"
74         then    gedasysconfdir=""
75                 AC_MSG_RESULT([no default])
76         else    if test "x$with_geda_sysconfdir" = "xyes"
77                 then    gedasysconfdir="$sysconfdir/gEDA"
78                 else    gedasysconfdir="$with_geda_sysconfdir"
79                 fi
80                 AC_MSG_RESULT([$gedasysconfdir])
81         fi
82 ], [
83         gedasysconfdir="$sysconfdir/gEDA"
84         AC_MSG_RESULT([$gedasysconfdir])
86 AC_SUBST([gedasysconfdir])
88 AC_CONFIG_HEADERS([config.h])
89 AC_CONFIG_FILES([
90         Makefile
91         po/Makefile.in
92         src/storage/Makefile
93         src/cpython/storage/Makefile
94         src/cpython/guile/Makefile
95         src/python/Makefile
96         src/gaf/Makefile
97         src/command/Makefile
98         src/backend/Makefile
99         tests/Makefile
100         tests/netlist/Makefile
102 AC_OUTPUT