Update NEWS file
[geda-gaf.git] / configure.ac
blobd060c2ed439037701a0433493197bf485e49d05f
1 # Process this file with autoconf to produce a configure script.
2 # Copyright (C) 2013-2017 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.61])
19 LT_PREREQ([2.4.2])
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 AC_PROG_CXX
31 AM_PATH_PYTHON([2.7])
32 PKG_CHECK_MODULES([PYTHON], [python2 >= 2.7])
33 PKG_CHECK_MODULES([GUILE], [guile-2.0 >= 2.0.10])
35 AM_GNU_GETTEXT([external])
36 AM_GNU_GETTEXT_VERSION([0.18.2])
38 # gEDA is planning to move this to $datarootdir/geda-gaf
39 AC_MSG_CHECKING([where to look for gEDA shared data])
40 AC_ARG_WITH(
41         [geda-datadir],
42         [AS_HELP_STRING(
43                 [--with-geda-datadir@<:@=DIR@:>@],
44                 [where to look for shared gEDA data @<:@DATAROOTDIR/gEDA@:>@])], [
45         if test "x$with_geda_datadir" == "xno"
46         then    gedadatadir=""
47                 AC_MSG_RESULT([no default])
48         else    if test "x$with_geda_datadir" = "xyes"
49                 then    gedadatadir="$datarootdir/gEDA"
50                 else    gedadatadir="$with_geda_datadir"
51                 fi
52                 AC_MSG_RESULT([$gedadatadir])
53         fi
54 ], [
55         gedadatadir="$datarootdir/gEDA"
56         AC_MSG_RESULT([$gedadatadir])
58 AS_IF([test "x$gedadatadir" = "x"],
59       [AC_MSG_ERROR([No gEDA shared data location given])])
60 AC_SUBST([gedadatadir])
62 # gEDA is planning to move this to $sysconfdir/geda-gaf
63 AC_MSG_CHECKING([where to look for gEDA rc files])
64 AC_ARG_WITH(
65         [geda-sysconfdir],
66         [AS_HELP_STRING(
67                 [--with-geda-sysconfdir@<:@=DIR@:>@],
68                 [where to look for system-wide gEDA configuration @<:@SYSCONFDIR/gEDA@:>@])], [
69         if test "x$with_geda_sysconfdir" == "xno"
70         then    gedasysconfdir=""
71                 AC_MSG_RESULT([no default])
72         else    if test "x$with_geda_sysconfdir" = "xyes"
73                 then    gedasysconfdir="$sysconfdir/gEDA"
74                 else    gedasysconfdir="$with_geda_sysconfdir"
75                 fi
76                 AC_MSG_RESULT([$gedasysconfdir])
77         fi
78 ], [
79         gedasysconfdir="$sysconfdir/gEDA"
80         AC_MSG_RESULT([$gedasysconfdir])
82 AC_SUBST([gedasysconfdir])
84 AC_CONFIG_HEADERS([config.h])
85 AC_CONFIG_FILES([
86         Makefile
87         po/Makefile.in
88         src/storage/Makefile
89         src/cpython/storage/Makefile
90         src/cpython/guile/Makefile
91         src/python/Makefile
92         src/command/Makefile
93         src/backend/Makefile
94         tests/Makefile
95         tests/netlist/Makefile
97 AC_OUTPUT