Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 129 lines (103 sloc) 3.15 kb
8cb2cf0 @eht16 Initial import
eht16 authored
1 dnl Process this file with autoconf to produce a configure script.
2
4dd7092 @b4n Modernize configure.ac a bit
b4n authored
3 AC_PREREQ([2.60])
e9d61aa @b4n Post release version bump
b4n authored
4 AC_INIT([Geany], [1.23],
4dd7092 @b4n Modernize configure.ac a bit
b4n authored
5 [https://sourceforge.net/tracker/?group_id=153444&atid=787791])
6 AC_CONFIG_SRCDIR([src/geany.h])
7 AC_CONFIG_AUX_DIR([build-aux])
71ac86c @ntrel Use AC_CONFIG_MACRO_DIR (patch by Erik de Castro Lopo, thanks).
ntrel authored
8 AC_CONFIG_MACRO_DIR([m4])
5762981 @b4n Revert adding reStructuredText extension to README
b4n authored
9 AM_INIT_AUTOMAKE
4dd7092 @b4n Modernize configure.ac a bit
b4n authored
10 AC_CONFIG_HEADERS([config.h])
d8c06b0 @eht16 Small changes to get cross compiling using mingw32 suite working.
eht16 authored
11
531bb25 @eht16 Turn on automake silent rules if supported.
eht16 authored
12 m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
13
974bb4c @b4n Reorder configure.ac a bit
b4n authored
14 GEANY_PREFIX
15 GEANY_DOCDIR
16
17 GEANY_STATUS_ADD([Install Geany in], [${prefix}])
18 if test -n "${build}" -a -n "${target}"; then
19 GEANY_STATUS_ADD([Building Geany on], [${build}])
20 GEANY_STATUS_ADD([Building Geany for], [${target}])
21 fi
22
4dd7092 @b4n Modernize configure.ac a bit
b4n authored
23 # why do we use this?
24 AC_USE_SYSTEM_EXTENSIONS
8cb2cf0 @eht16 Initial import
eht16 authored
25
26 AC_PROG_CC
2719f6d @eht16 Apply patch from Shiv to make build system more compatible with other co...
eht16 authored
27
8cb2cf0 @eht16 Initial import
eht16 authored
28 AC_PROG_CXX
bab2942 @eht16 Add an explicit check for a C++ compiler (#1938040).
eht16 authored
29 # check for C++ compiler explicitly and fail if none is found, do this check
30 # after AC_PROG_CXX has set the CXX environment variable
4dd7092 @b4n Modernize configure.ac a bit
b4n authored
31 if ! which $CXX >/dev/null 2>&1; then
5bb2882 @ntrel Use AC_PATH_PROG instead of which for portability (patch by Erik
ntrel authored
32 AC_MSG_ERROR([No C++ compiler found. Please install a C++ compiler.])
bab2942 @eht16 Add an explicit check for a C++ compiler (#1938040).
eht16 authored
33 fi
34
8cb2cf0 @eht16 Initial import
eht16 authored
35 AC_PROG_INSTALL
36 AC_PROG_LN_S
37
38 # autoscan start
39
40 # Checks for header files.
6de8f97 @ntrel Remove GNU regex now we have GRegex
ntrel authored
41 AC_CHECK_HEADERS([fcntl.h fnmatch.h glob.h stdlib.h sys/time.h])
8cb2cf0 @eht16 Initial import
eht16 authored
42
43 # Checks for typedefs, structures, and compiler characteristics.
44 AC_TYPE_OFF_T
45 AC_TYPE_SIZE_T
46 AC_STRUCT_TM
47
48 # Checks for library functions.
a24d6dc @ntrel Auto-enable building with included regex if no regcomp function is
ntrel authored
49 AC_CHECK_FUNCS([gethostname ftruncate fgetpos mkstemp strerror strstr])
8cb2cf0 @eht16 Initial import
eht16 authored
50
51 # autoscan end
52
93a3490 @b4n Auto-generate final configure summary
b4n authored
53
4dd7092 @b4n Modernize configure.ac a bit
b4n authored
54 # check for SVN revision
680064b @b4n Move configure logic that checks for SVN revision to its own file
b4n authored
55 GEANY_CHECK_REVISION([dnl force debug mode for a SVN working copy
56 CFLAGS="-g -DGEANY_DEBUG $CFLAGS"])
f0cfbf3 @eht16 src/dialogs.c, src/about.c, src/callbacks.c, configure.in: rewrote about...
eht16 authored
57
fc6c31a @eht16 Add binary relocation support.
eht16 authored
58
2f20305 @b4n Dump dependencies to GTK >= 2.12, GLib >= 2.16 and GIO
b4n authored
59 # GTK/GLib/GIO checks
5f0963d @b4n List package dependencies only in configure.ac
b4n authored
60 gtk_modules="gtk+-2.0 >= 2.16 glib-2.0 >= 2.20"
61 gtk_modules_private="gio-2.0 >= 2.20 gmodule-2.0"
62 PKG_CHECK_MODULES([GTK], [$gtk_modules $gtk_modules_private])
63 AC_SUBST([DEPENDENCIES], [$gtk_modules])
4dd7092 @b4n Modernize configure.ac a bit
b4n authored
64 AC_SUBST([GTK_CFLAGS])
65 AC_SUBST([GTK_LIBS])
66 GTK_VERSION=`$PKG_CONFIG --modversion gtk+-2.0`
93a3490 @b4n Auto-generate final configure summary
b4n authored
67 GEANY_STATUS_ADD([Using GTK version], [${GTK_VERSION}])
5521c67 @eht16 Initialize GLib's Gthread system early at startup in case any plugins ne...
eht16 authored
68 # GTHREAD checks
69 gthread_modules="gthread-2.0"
4dd7092 @b4n Modernize configure.ac a bit
b4n authored
70 PKG_CHECK_MODULES([GTHREAD], [$gthread_modules])
71 AC_SUBST([GTHREAD_CFLAGS])
72 AC_SUBST([GTHREAD_LIBS])
8cb2cf0 @eht16 Initial import
eht16 authored
73
04d0cab @eht16 Add --disable-deprecated option to configure to build without deprecated...
eht16 authored
74 # --disable-deprecated switch for GTK2 purification
4dd7092 @b4n Modernize configure.ac a bit
b4n authored
75 AC_ARG_ENABLE([deprecated],
76 [AS_HELP_STRING([--disable-deprecated], [Disable deprecated GTK functions.])],
77 [GTK_CFLAGS="$GTK_CFLAGS -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"],
78 [])
79
04d0cab @eht16 Add --disable-deprecated option to configure to build without deprecated...
eht16 authored
80
974bb4c @b4n Reorder configure.ac a bit
b4n authored
81 # Check for binary relocation support
82 GEANY_CHECK_BINRELOC
6de8f97 @ntrel Remove GNU regex now we have GRegex
ntrel authored
83 # CTags source compatibility (we actually use GRegex instead of POSIX regcomp)
84 AC_DEFINE([HAVE_REGCOMP], [1], [Should always be 1, required for CTags.])
6e53eac @ntrel Added very basic plugin support - any plugins found in
ntrel authored
85 # Plugins support
ff3ad0e @b4n Move configure logic for enabling plugins to its own file
b4n authored
86 GEANY_CHECK_PLUGINS
4dd7092 @b4n Modernize configure.ac a bit
b4n authored
87 # check for mingw specific settings
f1bce08 @b4n Move configure logic for MinGW, socket and VTE to their own files
b4n authored
88 GEANY_CHECK_MINGW
d8c06b0 @eht16 Small changes to get cross compiling using mingw32 suite working.
eht16 authored
89
f1bce08 @b4n Move configure logic for MinGW, socket and VTE to their own files
b4n authored
90 GEANY_CHECK_SOCKET
91 GEANY_CHECK_VTE
7c7bf88 @b4n Move configure check for The Force to its own file
b4n authored
92 GEANY_CHECK_THE_FORCE dnl hehe
77b3e93 @eht16 added catalan translation contributed by Topi
eht16 authored
93
94 # i18n
574d5ce @b4n Move configure logic for i18n to its own file
b4n authored
95 GEANY_I18N
8cb2cf0 @eht16 Initial import
eht16 authored
96
a79ac62 @eht16 Use datarootdir for defining paths to fix autoconf 2.60 problems.
eht16 authored
97 GEANY_DATA_DIR=`eval echo ${datarootdir}/geany`
4dd7092 @b4n Modernize configure.ac a bit
b4n authored
98 AC_SUBST([GEANY_DATA_DIR])
97a3f2e @eht16 replaced geany.desktop by geany.desktop.in, some changes to the desktop ...
eht16 authored
99
4dd7092 @b4n Modernize configure.ac a bit
b4n authored
100 # Output
101 AC_CONFIG_FILES([
102 Makefile
103 icons/Makefile
104 icons/16x16/Makefile
105 icons/48x48/Makefile
106 icons/scalable/Makefile
107 tagmanager/Makefile
d69a153 @b4n Refactor tagmanager source files architecture
b4n authored
108 tagmanager/ctags/Makefile
4dd7092 @b4n Modernize configure.ac a bit
b4n authored
109 tagmanager/mio/Makefile
d69a153 @b4n Refactor tagmanager source files architecture
b4n authored
110 tagmanager/src/Makefile
4dd7092 @b4n Modernize configure.ac a bit
b4n authored
111 scintilla/Makefile
112 scintilla/include/Makefile
113 src/Makefile
114 plugins/Makefile
115 po/Makefile.in
116 doc/Makefile
117 doc/geany.1
118 geany.spec
119 geany.pc
120 doc/Doxyfile
8cb2cf0 @eht16 Initial import
eht16 authored
121 ])
4dd7092 @b4n Modernize configure.ac a bit
b4n authored
122 AC_OUTPUT
123
124 # Summary
93a3490 @b4n Auto-generate final configure summary
b4n authored
125 GEANY_STATUS_OUTPUT
3bb81f2 @eht16 added check for mkfifo(), made it also an option
eht16 authored
126 echo ""
8cb2cf0 @eht16 Initial import
eht16 authored
127 echo "Configuration is done OK."
128 echo ""
Something went wrong with that request. Please try again.