~vcs-imports-ii/gnubik/master

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: NIIBE Yutaka
  • Date: 2023-04-28 02:17:43 UTC
  • Revision ID: git-v1:913a74cd5e3417105b1f5ca42b73417720a022e0
build: Update tools, fixing configure and Makefiles.

* README_developer: Update.
* configure.ac (AH_BOTTOM): Add GTK_DISABLE_DEPRECATED define.
(AC_USE_SYSTEM_EXTENSIONS): Replace, instead of AC_GNU_SOURCE.
(GUILE_PKG, GUILE_FLAGS): Use this instead of PKG_CHECK_MODULES.
(AC_CONFIG_FILES): New.
(AC_OUTPUT): No args, with AC_CONFIG_FILES.
* icons/automake.mk (uninstall-icons): Add check with DESTDIR.
* po/automake.mk: Fix call of XGETTEXT with icons/gen-dot-desktop.scm.
Having --directory is enough.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
dnl    GNU General Public License for more details.
14
14
dnl  
15
15
dnl    You should have received a copy of the GNU General Public License
16
 
dnl    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
16
dnl    along with this program.  If not, see <https://www.gnu.org/licenses/>.
17
17
 
18
18
dnl Process this file with autoconf to produce a configure script.
19
19
 
20
20
 
21
21
AX_PREREQ(2.60)
22
 
AC_INIT([GNUbik], [2.4.3], [bug-gnubik@gnu.org], [gnubik], [http://www.gnu.org/software/gnubik])
 
22
AC_INIT([GNUbik],[2.4.3],[bug-gnubik@gnu.org],[gnubik],[https://www.gnu.org/software/gnubik])
23
23
AC_CONFIG_AUX_DIR([build-aux])
24
24
AC_CONFIG_HEADERS([config.h])
25
25
AM_INIT_AUTOMAKE
26
26
 
 
27
dnl We use GTK+ 2.0 API, with no deprecated ones.
 
28
AH_BOTTOM([
 
29
#define GTK_DISABLE_DEPRECATED 1
 
30
])
 
31
 
27
32
dnl Checks for programs.
28
 
AC_GNU_SOURCE
 
33
AC_USE_SYSTEM_EXTENSIONS
29
34
AC_PROG_CC
30
35
AM_PROG_CC_C_O
31
36
 
70
75
 
71
76
 
72
77
dnl Checks for libraries.
73
 
PKG_CHECK_MODULES(GUILE, guile-2.0,,
74
 
  AC_SEARCH_LIBS([scm_c_string_length], [guile],,
75
 
        AC_MSG_ERROR("Guile 2.0 or later is required"))
76
 
)
77
 
 
 
78
GUILE_PKG([3.0])
78
79
GUILE_PROGS
 
80
GUILE_FLAGS
79
81
 
80
82
AC_SEARCH_LIBS([cos],[m],,
81
83
        AC_MSG_ERROR("No maths library present" ))
106
108
AC_SUBST(VERSION)
107
109
 
108
110
 
109
 
AC_OUTPUT(Makefile po/Makefile)
 
111
AC_CONFIG_FILES([Makefile po/Makefile])
 
112
AC_OUTPUT
110
113