xaizek / vide (License: GPLv2+) (since 2018-12-07)
Graphical predecessor of vifm that uses GTK+.
Commit 5dacb57fa3a1ba1a7b2b25ff88b4c533588eb8d0

Remove gnome macros
Author: xaizek
Author date (UTC): 2014-05-18 16:41
Committer name: xaizek
Committer date (UTC): 2014-05-18 16:41
Parent(s): 20181147633a6345eaaf60f2d0cadd3c0bad485b
Signing key:
Tree: 279f822b8d2655325fe41320190ef60eacad3856
File Lines added Lines deleted
configure 1 2
configure.in 0 1
macros/Makefile 0 234
macros/Makefile.am 0 41
macros/Makefile.in 0 234
macros/aclocal-include.m4 0 16
macros/autogen.sh 0 169
macros/compiler-flags.m4 0 109
macros/curses.m4 0 318
macros/gnome-bonobo-check.m4 0 150
macros/gnome-common.m4 0 14
macros/gnome-fileutils.m4 0 414
macros/gnome-ghttp-check.m4 0 14
macros/gnome-gnorba-check.m4 0 35
macros/gnome-guile-checks.m4 0 119
macros/gnome-libgtop-check.m4 0 217
macros/gnome-objc-checks.m4 0 83
macros/gnome-orbit-check.m4 0 33
macros/gnome-print-check.m4 0 171
macros/gnome-pthread-check.m4 0 16
macros/gnome-support.m4 0 68
macros/gnome-undelfs.m4 0 20
macros/gnome-vfs.m4 0 120
macros/gnome-x-checks.m4 0 80
macros/gnome-xml-check.m4 0 30
macros/gnome.m4 0 128
macros/gperf-check.m4 0 79
macros/linger.m4 0 28
macros/need-declaration.m4 0 42
File configure changed (mode: 100755) (index 397f187..2e0813c)
... ... if test "x$GCC" = "xyes"; then
5492 5492 esac esac
5493 5493 fi fi
5494 5494
5495 ac_config_files="$ac_config_files Makefile macros/Makefile src/Makefile"
5495 ac_config_files="$ac_config_files Makefile src/Makefile"
5496 5496
5497 5497 cat >confcache <<\_ACEOF cat >confcache <<\_ACEOF
5498 5498 # This file is a shell script that caches the results of configure # This file is a shell script that caches the results of configure
 
... ... do
6222 6222 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6223 6223 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6224 6224 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6225 "macros/Makefile") CONFIG_FILES="$CONFIG_FILES macros/Makefile" ;;
6226 6225 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6227 6226
6228 6227 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
File configure.in changed (mode: 100644) (index f17da69..25e01e4)
... ... changequote([,])dnl
49 49
50 50 AC_OUTPUT([ AC_OUTPUT([
51 51 Makefile Makefile
52 macros/Makefile
53 52 src/Makefile src/Makefile
54 53 ]) ])
55 54
File macros/Makefile deleted (index 2ebba1d..0000000)
1 # Makefile.in generated automatically by automake 1.4a from Makefile.am
2
3 # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
4 # This Makefile.in is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 # PARTICULAR PURPOSE.
12
13
14 SHELL = /bin/sh
15
16 srcdir = .
17 top_srcdir = ..
18
19 prefix = /usr/local
20 exec_prefix = ${prefix}
21
22 bindir = ${exec_prefix}/bin
23 sbindir = ${exec_prefix}/sbin
24 libexecdir = ${exec_prefix}/libexec
25 datadir = ${prefix}/share
26 sysconfdir = ${prefix}/etc
27 sharedstatedir = ${prefix}/com
28 localstatedir = ${prefix}/var
29 libdir = ${exec_prefix}/lib
30 infodir = ${prefix}/share/info
31 mandir = ${prefix}/share/man
32 includedir = ${prefix}/include
33 oldincludedir = /usr/include
34
35 DESTDIR =
36
37 pkgdatadir = $(datadir)/vide
38 pkglibdir = $(libdir)/vide
39 pkgincludedir = $(includedir)/vide
40
41 top_builddir = ..
42
43 ACLOCAL = aclocal-1.11
44 AUTOCONF = autoconf
45 AUTOMAKE = automake-1.11
46 AUTOHEADER = autoheader
47
48 INSTALL = /usr/bin/ginstall -c
49 INSTALL_PROGRAM = ${INSTALL}
50 INSTALL_DATA = ${INSTALL} -m 644
51 INSTALL_SCRIPT = ${INSTALL}
52 INSTALL_STRIP_FLAG =
53 transform = s,x,x,
54
55 NORMAL_INSTALL = :
56 PRE_INSTALL = :
57 POST_INSTALL = :
58 NORMAL_UNINSTALL = :
59 PRE_UNINSTALL = :
60 POST_UNINSTALL = :
61 CC = gcc
62 GNOMEGNORBA_LIBS = @GNOMEGNORBA_LIBS@
63 GNOMEUI_LIBS = @GNOMEUI_LIBS@
64 GNOME_APPLETS_LIBS = @GNOME_APPLETS_LIBS@
65 GNOME_CAPPLET_LIBS = @GNOME_CAPPLET_LIBS@
66 GNOME_CONFIG = @GNOME_CONFIG@
67 GNOME_DOCKLETS_LIBS = @GNOME_DOCKLETS_LIBS@
68 GNOME_INCLUDEDIR = @GNOME_INCLUDEDIR@
69 GNOME_LIBDIR = @GNOME_LIBDIR@
70 GNOME_LIBS = @GNOME_LIBS@
71 GNORBA_CFLAGS = @GNORBA_CFLAGS@
72 GNORBA_LIBS = @GNORBA_LIBS@
73 GTKXMHTML_LIBS = @GTKXMHTML_LIBS@
74 GTK_CFLAGS = -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib64/glib/include -D_REENTRANT
75 GTK_CONFIG = /usr/bin/gtk-config
76 GTK_LIBS = -L/usr/lib64 -L/usr/lib64 -lgtk -lgdk -rdynamic -lgmodule -lgthread -lglib -lpthread -ldl -lXext -lX11 -lm
77 MAKEINFO = makeinfo
78 ORBIT_CFLAGS = @ORBIT_CFLAGS@
79 ORBIT_CONFIG = @ORBIT_CONFIG@
80 ORBIT_IDL = @ORBIT_IDL@
81 ORBIT_LIBS = @ORBIT_LIBS@
82 PACKAGE = vide
83 PTHREAD_LIB = @PTHREAD_LIB@
84 VERSION = 0.5.2
85 XPM_LIBS = @XPM_LIBS@
86 ZVT_LIBS = @ZVT_LIBS@
87 cflags_set = @cflags_set@
88 cxxflags_set = @cxxflags_set@
89
90 MACROS = aclocal-include.m4 compiler-flags.m4 curses.m4 gnome-bonobo-check.m4 gnome-fileutils.m4 gnome-ghttp-check.m4 gnome-gnorba-check.m4 gnome-guile-checks.m4 gnome-libgtop-check.m4 gnome-objc-checks.m4 gnome-orbit-check.m4 gnome-print-check.m4 gnome-pthread-check.m4 gnome-support.m4 gnome-undelfs.m4 gnome-vfs.m4 gnome-x-checks.m4 gnome-xml-check.m4 gnome.m4 gperf-check.m4 linger.m4 need-declaration.m4
91
92
93 EXTRA_DIST = $(MACROS) gnome-common.m4 autogen.sh
94 MAINTAINERCLEANFILES = macros.dep
95
96 @INSIDE_GNOME_COMMON_TRUE@gnome_aclocaldir = $(datadir)/aclocal/gnome
97
98 @INSIDE_GNOME_COMMON_TRUE@gnome_aclocal_DATA = $(MACROS) gnome-macros.dep gnome-common.m4 autogen.sh
99 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
100 CONFIG_HEADER = ../config.h
101 CONFIG_CLEAN_FILES =
102 DATA = $(gnome_aclocal_DATA)
103
104 DIST_COMMON = Makefile.am Makefile.in
105
106
107 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
108
109 TAR = gtar
110 GZIP_ENV = --best
111 all: all-redirect
112 .SUFFIXES:
113 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
114 cd $(top_srcdir) && $(AUTOMAKE) --gnu macros/Makefile
115
116 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
117 cd $(top_builddir) \
118 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
119
120
121 install-gnome_aclocalDATA: $(gnome_aclocal_DATA)
122 @$(NORMAL_INSTALL)
123 $(mkinstalldirs) $(DESTDIR)$(gnome_aclocaldir)
124 @list='$(gnome_aclocal_DATA)'; for p in $$list; do \
125 if test -f $(srcdir)/$$p; then \
126 echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(gnome_aclocaldir)/$$p"; \
127 $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(gnome_aclocaldir)/$$p; \
128 else if test -f $$p; then \
129 echo " $(INSTALL_DATA) $$p $(DESTDIR)$(gnome_aclocaldir)/$$p"; \
130 $(INSTALL_DATA) $$p $(DESTDIR)$(gnome_aclocaldir)/$$p; \
131 fi; fi; \
132 done
133
134 uninstall-gnome_aclocalDATA:
135 @$(NORMAL_UNINSTALL)
136 list='$(gnome_aclocal_DATA)'; for p in $$list; do \
137 rm -f $(DESTDIR)$(gnome_aclocaldir)/$$p; \
138 done
139 tags: TAGS
140 TAGS:
141
142
143 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
144
145 subdir = macros
146
147 distdir: $(DISTFILES)
148 here=`cd $(top_builddir) && pwd`; \
149 top_distdir=`cd $(top_distdir) && pwd`; \
150 distdir=`cd $(distdir) && pwd`; \
151 cd $(top_srcdir) \
152 && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu macros/Makefile
153 @for file in $(DISTFILES); do \
154 d=$(srcdir); \
155 if test -d $$d/$$file; then \
156 cp -pr $$d/$$file $(distdir)/$$file; \
157 else \
158 test -f $(distdir)/$$file \
159 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
160 || cp -p $$d/$$file $(distdir)/$$file || :; \
161 fi; \
162 done
163 info-am:
164 info: info-am
165 dvi-am:
166 dvi: dvi-am
167 check-am: all-am
168 check: check-am
169 installcheck-am:
170 installcheck: installcheck-am
171 install-exec-am:
172 install-exec: install-exec-am
173
174 install-data-am: install-gnome_aclocalDATA
175 install-data: install-data-am
176
177 install-am: all-am
178 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
179 install: install-am
180 uninstall-am: uninstall-gnome_aclocalDATA
181 uninstall: uninstall-am
182 all-am: Makefile $(DATA)
183 all-redirect: all-am
184 install-strip:
185 $(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
186 installdirs:
187 $(mkinstalldirs) $(DESTDIR)$(gnome_aclocaldir)
188
189
190 mostlyclean-generic:
191
192 clean-generic:
193
194 distclean-generic:
195 -rm -f Makefile $(CONFIG_CLEAN_FILES)
196 -rm -f config.cache config.log stamp-h stamp-h[0-9]*
197
198 maintainer-clean-generic:
199 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
200 mostlyclean-am: mostlyclean-generic
201
202 mostlyclean: mostlyclean-am
203
204 clean-am: clean-generic mostlyclean-am
205
206 clean: clean-am
207
208 distclean-am: distclean-generic clean-am
209
210 distclean: distclean-am
211
212 maintainer-clean-am: maintainer-clean-generic distclean-am
213 @echo "This command is intended for maintainers to use;"
214 @echo "it deletes files that may require special tools to rebuild."
215
216 maintainer-clean: maintainer-clean-am
217
218 .PHONY: uninstall-gnome_aclocalDATA install-gnome_aclocalDATA tags \
219 distdir info-am info dvi-am dvi check check-am installcheck-am \
220 installcheck install-exec-am install-exec install-data-am install-data \
221 install-am install uninstall-am uninstall all-redirect all-am all \
222 installdirs mostlyclean-generic distclean-generic clean-generic \
223 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
224
225
226 macros.dep: Makefile.am
227 @echo '$$(top_srcdir)/aclocal.m4: $(MACROS:%=macros/%)' > $@
228
229 @INSIDE_GNOME_COMMON_TRUE@gnome-macros.dep: Makefile.am
230 @INSIDE_GNOME_COMMON_TRUE@ @echo '$$(top_srcdir)/aclocal.m4: $(MACROS:%=$(gnome_aclocaldir)/%)' > $@
231
232 # Tell versions [3.59,3.63) of GNU make to not export all variables.
233 # Otherwise a system limit (for SysV at least) may be exceeded.
234 .NOEXPORT:
File macros/Makefile.am deleted (index 2b7b6eb..0000000)
1 ## Please update this variable if any new macros are created
2
3 MACROS= \
4 aclocal-include.m4 \
5 compiler-flags.m4 \
6 curses.m4 \
7 gnome-bonobo-check.m4 \
8 gnome-fileutils.m4 \
9 gnome-ghttp-check.m4 \
10 gnome-gnorba-check.m4 \
11 gnome-guile-checks.m4 \
12 gnome-libgtop-check.m4 \
13 gnome-objc-checks.m4 \
14 gnome-orbit-check.m4 \
15 gnome-print-check.m4 \
16 gnome-pthread-check.m4 \
17 gnome-support.m4 \
18 gnome-undelfs.m4 \
19 gnome-vfs.m4 \
20 gnome-x-checks.m4 \
21 gnome-xml-check.m4 \
22 gnome.m4 \
23 gperf-check.m4 \
24 linger.m4 \
25 need-declaration.m4
26
27 EXTRA_DIST=$(MACROS) gnome-common.m4 autogen.sh
28 MAINTAINERCLEANFILES=macros.dep
29
30 @MAINT@macros.dep: Makefile.am
31 @MAINT@ @echo '$$(top_srcdir)/aclocal.m4: $(MACROS:%=macros/%)' > $@
32
33 if INSIDE_GNOME_COMMON
34 gnome_aclocaldir = $(datadir)/aclocal/gnome
35
36 gnome-macros.dep: Makefile.am
37 @echo '$$(top_srcdir)/aclocal.m4: $(MACROS:%=$(gnome_aclocaldir)/%)' > $@
38
39 gnome_aclocal_DATA = $(MACROS) gnome-macros.dep gnome-common.m4 autogen.sh
40
41 endif
File macros/Makefile.in deleted (index 0eb78cc..0000000)
1 # Makefile.in generated automatically by automake 1.4a from Makefile.am
2
3 # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
4 # This Makefile.in is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 # PARTICULAR PURPOSE.
12
13
14 SHELL = @SHELL@
15
16 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 prefix = @prefix@
20 exec_prefix = @exec_prefix@
21
22 bindir = @bindir@
23 sbindir = @sbindir@
24 libexecdir = @libexecdir@
25 datadir = @datadir@
26 sysconfdir = @sysconfdir@
27 sharedstatedir = @sharedstatedir@
28 localstatedir = @localstatedir@
29 libdir = @libdir@
30 infodir = @infodir@
31 mandir = @mandir@
32 includedir = @includedir@
33 oldincludedir = /usr/include
34
35 DESTDIR =
36
37 pkgdatadir = $(datadir)/@PACKAGE@
38 pkglibdir = $(libdir)/@PACKAGE@
39 pkgincludedir = $(includedir)/@PACKAGE@
40
41 top_builddir = ..
42
43 ACLOCAL = @ACLOCAL@
44 AUTOCONF = @AUTOCONF@
45 AUTOMAKE = @AUTOMAKE@
46 AUTOHEADER = @AUTOHEADER@
47
48 INSTALL = @INSTALL@
49 INSTALL_PROGRAM = @INSTALL_PROGRAM@
50 INSTALL_DATA = @INSTALL_DATA@
51 INSTALL_SCRIPT = @INSTALL_SCRIPT@
52 INSTALL_STRIP_FLAG =
53 transform = @program_transform_name@
54
55 NORMAL_INSTALL = :
56 PRE_INSTALL = :
57 POST_INSTALL = :
58 NORMAL_UNINSTALL = :
59 PRE_UNINSTALL = :
60 POST_UNINSTALL = :
61 CC = @CC@
62 GNOMEGNORBA_LIBS = @GNOMEGNORBA_LIBS@
63 GNOMEUI_LIBS = @GNOMEUI_LIBS@
64 GNOME_APPLETS_LIBS = @GNOME_APPLETS_LIBS@
65 GNOME_CAPPLET_LIBS = @GNOME_CAPPLET_LIBS@
66 GNOME_CONFIG = @GNOME_CONFIG@
67 GNOME_DOCKLETS_LIBS = @GNOME_DOCKLETS_LIBS@
68 GNOME_INCLUDEDIR = @GNOME_INCLUDEDIR@
69 GNOME_LIBDIR = @GNOME_LIBDIR@
70 GNOME_LIBS = @GNOME_LIBS@
71 GNORBA_CFLAGS = @GNORBA_CFLAGS@
72 GNORBA_LIBS = @GNORBA_LIBS@
73 GTKXMHTML_LIBS = @GTKXMHTML_LIBS@
74 GTK_CFLAGS = @GTK_CFLAGS@
75 GTK_CONFIG = @GTK_CONFIG@
76 GTK_LIBS = @GTK_LIBS@
77 MAKEINFO = @MAKEINFO@
78 ORBIT_CFLAGS = @ORBIT_CFLAGS@
79 ORBIT_CONFIG = @ORBIT_CONFIG@
80 ORBIT_IDL = @ORBIT_IDL@
81 ORBIT_LIBS = @ORBIT_LIBS@
82 PACKAGE = @PACKAGE@
83 PTHREAD_LIB = @PTHREAD_LIB@
84 VERSION = @VERSION@
85 XPM_LIBS = @XPM_LIBS@
86 ZVT_LIBS = @ZVT_LIBS@
87 cflags_set = @cflags_set@
88 cxxflags_set = @cxxflags_set@
89
90 MACROS = aclocal-include.m4 compiler-flags.m4 curses.m4 gnome-bonobo-check.m4 gnome-fileutils.m4 gnome-ghttp-check.m4 gnome-gnorba-check.m4 gnome-guile-checks.m4 gnome-libgtop-check.m4 gnome-objc-checks.m4 gnome-orbit-check.m4 gnome-print-check.m4 gnome-pthread-check.m4 gnome-support.m4 gnome-undelfs.m4 gnome-vfs.m4 gnome-x-checks.m4 gnome-xml-check.m4 gnome.m4 gperf-check.m4 linger.m4 need-declaration.m4
91
92
93 EXTRA_DIST = $(MACROS) gnome-common.m4 autogen.sh
94 MAINTAINERCLEANFILES = macros.dep
95
96 @INSIDE_GNOME_COMMON_TRUE@gnome_aclocaldir = $(datadir)/aclocal/gnome
97
98 @INSIDE_GNOME_COMMON_TRUE@gnome_aclocal_DATA = $(MACROS) gnome-macros.dep gnome-common.m4 autogen.sh
99 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
100 CONFIG_HEADER = ../config.h
101 CONFIG_CLEAN_FILES =
102 DATA = $(gnome_aclocal_DATA)
103
104 DIST_COMMON = Makefile.am Makefile.in
105
106
107 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
108
109 TAR = gtar
110 GZIP_ENV = --best
111 all: all-redirect
112 .SUFFIXES:
113 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
114 cd $(top_srcdir) && $(AUTOMAKE) --gnu macros/Makefile
115
116 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
117 cd $(top_builddir) \
118 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
119
120
121 install-gnome_aclocalDATA: $(gnome_aclocal_DATA)
122 @$(NORMAL_INSTALL)
123 $(mkinstalldirs) $(DESTDIR)$(gnome_aclocaldir)
124 @list='$(gnome_aclocal_DATA)'; for p in $$list; do \
125 if test -f $(srcdir)/$$p; then \
126 echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(gnome_aclocaldir)/$$p"; \
127 $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(gnome_aclocaldir)/$$p; \
128 else if test -f $$p; then \
129 echo " $(INSTALL_DATA) $$p $(DESTDIR)$(gnome_aclocaldir)/$$p"; \
130 $(INSTALL_DATA) $$p $(DESTDIR)$(gnome_aclocaldir)/$$p; \
131 fi; fi; \
132 done
133
134 uninstall-gnome_aclocalDATA:
135 @$(NORMAL_UNINSTALL)
136 list='$(gnome_aclocal_DATA)'; for p in $$list; do \
137 rm -f $(DESTDIR)$(gnome_aclocaldir)/$$p; \
138 done
139 tags: TAGS
140 TAGS:
141
142
143 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
144
145 subdir = macros
146
147 distdir: $(DISTFILES)
148 here=`cd $(top_builddir) && pwd`; \
149 top_distdir=`cd $(top_distdir) && pwd`; \
150 distdir=`cd $(distdir) && pwd`; \
151 cd $(top_srcdir) \
152 && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu macros/Makefile
153 @for file in $(DISTFILES); do \
154 d=$(srcdir); \
155 if test -d $$d/$$file; then \
156 cp -pr $$d/$$file $(distdir)/$$file; \
157 else \
158 test -f $(distdir)/$$file \
159 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
160 || cp -p $$d/$$file $(distdir)/$$file || :; \
161 fi; \
162 done
163 info-am:
164 info: info-am
165 dvi-am:
166 dvi: dvi-am
167 check-am: all-am
168 check: check-am
169 installcheck-am:
170 installcheck: installcheck-am
171 install-exec-am:
172 install-exec: install-exec-am
173
174 install-data-am: install-gnome_aclocalDATA
175 install-data: install-data-am
176
177 install-am: all-am
178 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
179 install: install-am
180 uninstall-am: uninstall-gnome_aclocalDATA
181 uninstall: uninstall-am
182 all-am: Makefile $(DATA)
183 all-redirect: all-am
184 install-strip:
185 $(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
186 installdirs:
187 $(mkinstalldirs) $(DESTDIR)$(gnome_aclocaldir)
188
189
190 mostlyclean-generic:
191
192 clean-generic:
193
194 distclean-generic:
195 -rm -f Makefile $(CONFIG_CLEAN_FILES)
196 -rm -f config.cache config.log stamp-h stamp-h[0-9]*
197
198 maintainer-clean-generic:
199 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
200 mostlyclean-am: mostlyclean-generic
201
202 mostlyclean: mostlyclean-am
203
204 clean-am: clean-generic mostlyclean-am
205
206 clean: clean-am
207
208 distclean-am: distclean-generic clean-am
209
210 distclean: distclean-am
211
212 maintainer-clean-am: maintainer-clean-generic distclean-am
213 @echo "This command is intended for maintainers to use;"
214 @echo "it deletes files that may require special tools to rebuild."
215
216 maintainer-clean: maintainer-clean-am
217
218 .PHONY: uninstall-gnome_aclocalDATA install-gnome_aclocalDATA tags \
219 distdir info-am info dvi-am dvi check check-am installcheck-am \
220 installcheck install-exec-am install-exec install-data-am install-data \
221 install-am install uninstall-am uninstall all-redirect all-am all \
222 installdirs mostlyclean-generic distclean-generic clean-generic \
223 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
224
225
226 macros.dep: Makefile.am
227 @echo '$$(top_srcdir)/aclocal.m4: $(MACROS:%=macros/%)' > $@
228
229 @INSIDE_GNOME_COMMON_TRUE@gnome-macros.dep: Makefile.am
230 @INSIDE_GNOME_COMMON_TRUE@ @echo '$$(top_srcdir)/aclocal.m4: $(MACROS:%=$(gnome_aclocaldir)/%)' > $@
231
232 # Tell versions [3.59,3.63) of GNU make to not export all variables.
233 # Otherwise a system limit (for SysV at least) may be exceeded.
234 .NOEXPORT:
File macros/aclocal-include.m4 deleted (index abf6533..0000000)
1 # aclocal-include.m4
2 #
3 # This macro adds the name macrodir to the set of directories
4 # that `aclocal' searches for macros.
5
6 # serial 1
7
8 dnl AM_ACLOCAL_INCLUDE(macrodir)
9 AC_DEFUN([AM_ACLOCAL_INCLUDE],
10 [
11 AM_CONDITIONAL(INSIDE_GNOME_COMMON, test x = y)
12
13 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
14
15 for k in $1 ; do ACLOCAL="$ACLOCAL -I $k" ; done
16 ])
File macros/autogen.sh deleted (index 18cfd60..0000000)
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3
4 DIE=0
5
6 if [ -n "$GNOME2_PATH" ]; then
7 ACLOCAL_FLAGS="-I $GNOME2_PATH/share/aclocal $ACLOCAL_FLAGS"
8 PATH="$GNOME2_PATH/bin:$PATH"
9 export PATH
10 fi
11
12 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
13 echo
14 echo "**Error**: You must have \`autoconf' installed to compile Gnome."
15 echo "Download the appropriate package for your distribution,"
16 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
17 DIE=1
18 }
19
20 (grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
21 (libtool --version) < /dev/null > /dev/null 2>&1 || {
22 echo
23 echo "**Error**: You must have \`libtool' installed to compile Gnome."
24 echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
25 echo "(or a newer version if it is available)"
26 DIE=1
27 }
28 }
29
30 grep "^AM_GNU_GETTEXT" $srcdir/configure.in >/dev/null && {
31 grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \
32 (gettext --version) < /dev/null > /dev/null 2>&1 || {
33 echo
34 echo "**Error**: You must have \`gettext' installed to compile Gnome."
35 echo "Get ftp://alpha.gnu.org/gnu/gettext-0.10.35.tar.gz"
36 echo "(or a newer version if it is available)"
37 DIE=1
38 }
39 }
40
41 grep "^AM_GNOME_GETTEXT" $srcdir/configure.in >/dev/null && {
42 grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \
43 (gettext --version) < /dev/null > /dev/null 2>&1 || {
44 echo
45 echo "**Error**: You must have \`gettext' installed to compile Gnome."
46 echo "Get ftp://alpha.gnu.org/gnu/gettext-0.10.35.tar.gz"
47 echo "(or a newer version if it is available)"
48 DIE=1
49 }
50 }
51
52 (automake --version) < /dev/null > /dev/null 2>&1 || {
53 echo
54 echo "**Error**: You must have \`automake' installed to compile Gnome."
55 echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
56 echo "(or a newer version if it is available)"
57 DIE=1
58 NO_AUTOMAKE=yes
59 }
60
61
62 # if no automake, don't bother testing for aclocal
63 test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
64 echo
65 echo "**Error**: Missing \`aclocal'. The version of \`automake'"
66 echo "installed doesn't appear recent enough."
67 echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
68 echo "(or a newer version if it is available)"
69 DIE=1
70 }
71
72 if test "$DIE" -eq 1; then
73 exit 1
74 fi
75
76 if test -z "$*"; then
77 echo "**Warning**: I am going to run \`configure' with no arguments."
78 echo "If you wish to pass any to it, please specify them on the"
79 echo \`$0\'" command line."
80 echo
81 fi
82
83 case $CC in
84 xlc )
85 am_opt=--include-deps;;
86 esac
87
88 for coin in `find $srcdir -name configure.in -print`
89 do
90 dr=`dirname $coin`
91 if test -f $dr/NO-AUTO-GEN; then
92 echo skipping $dr -- flagged as no auto-gen
93 else
94 echo processing $dr
95 macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE(\(.*\)),\1,gp' < $coin`
96 ( cd $dr
97 macrosdir=`find . -name macros -print`
98 for i in $macrodirs; do
99 if test -f $i/gnome-gettext.m4; then
100 DELETEFILES="$DELETEFILES $i/gnome-gettext.m4"
101 fi
102 done
103
104 echo "deletefiles is $DELETEFILES"
105 aclocalinclude="$ACLOCAL_FLAGS"
106 for k in $aclocalinclude; do
107 if test -d $k; then
108 if [ -f $k/gnome.m4 -a "$GNOME_INTERFACE_VERSION" = "1" ]; then
109 rm -f $DELETEFILES
110 fi
111 fi
112 done
113 for k in $macrodirs; do
114 if test -d $k; then
115 aclocalinclude="$aclocalinclude -I $k"
116 if [ -f $k/gnome.m4 -a "$GNOME_INTERFACE_VERSION" = "1" ]; then
117 rm -f $DELETEFILES
118 fi
119 fi
120 done
121 if grep "^AM_GNU_GETTEXT" configure.in >/dev/null; then
122 if grep "sed.*POTFILES" configure.in >/dev/null; then
123 : do nothing -- we still have an old unmodified configure.in
124 else
125 echo "Creating $dr/aclocal.m4 ..."
126 test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
127 echo "Running gettextize... Ignore non-fatal messages."
128 echo "no" | gettextize --force --copy
129 echo "Making $dr/aclocal.m4 writable ..."
130 test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
131 fi
132 fi
133 if grep "^AM_GNOME_GETTEXT" configure.in >/dev/null; then
134 echo "Creating $dr/aclocal.m4 ..."
135 test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
136 echo "Running gettextize... Ignore non-fatal messages."
137 echo "no" | gettextize --force --copy
138 echo "Making $dr/aclocal.m4 writable ..."
139 test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
140 fi
141 if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
142 if test -z "$NO_LIBTOOLIZE" ; then
143 echo "Running libtoolize..."
144 libtoolize --force --copy
145 fi
146 fi
147 echo "Running aclocal $aclocalinclude ..."
148 aclocal $aclocalinclude
149 if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
150 echo "Running autoheader..."
151 autoheader
152 fi
153 echo "Running automake --gnu $am_opt ..."
154 automake --add-missing --gnu $am_opt
155 echo "Running autoconf ..."
156 autoconf
157 )
158 fi
159 done
160
161 conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
162
163 if test x$NOCONFIGURE = x; then
164 echo Running $srcdir/configure $conf_flags "$@" ...
165 $srcdir/configure $conf_flags "$@" \
166 && echo Now type \`make\' to compile $PKG_NAME || exit 1
167 else
168 echo Skipping configure process.
169 fi
File macros/compiler-flags.m4 deleted (index 63f8e2e..0000000)
1 dnl GNOME_COMPILE_WARNINGS
2 dnl Turn on many useful compiler warnings
3 dnl For now, only works on GCC
4 AC_DEFUN([GNOME_COMPILE_WARNINGS],[
5 AC_ARG_ENABLE(compile-warnings,
6 [ --enable-compile-warnings=[no/minimum/yes] Turn on compiler warnings.],,enable_compile_warnings=minimum)
7
8 AC_MSG_CHECKING(what warning flags to pass to the C compiler)
9 warnCFLAGS=
10 if test "x$GCC" != xyes; then
11 enable_compile_warnings=no
12 fi
13
14 if test "x$enable_compile_warnings" != "xno"; then
15 if test "x$GCC" = "xyes"; then
16 case " $CFLAGS " in
17 *[\ \ ]-Wall[\ \ ]*) ;;
18 *) warnCFLAGS="-Wall -Wunused" ;;
19 esac
20
21 ## -W is not all that useful. And it cannot be controlled
22 ## with individual -Wno-xxx flags, unlike -Wall
23 if test "x$enable_compile_warnings" = "xyes"; then
24 warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations"
25 fi
26 fi
27 fi
28 AC_MSG_RESULT($warnCFLAGS)
29
30 AC_ARG_ENABLE(iso-c,
31 [ --enable-iso-c Try to warn if code is not ISO C ],,
32 enable_iso_c=no)
33
34 AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
35 complCFLAGS=
36 if test "x$enable_iso_c" != "xno"; then
37 if test "x$GCC" = "xyes"; then
38 case " $CFLAGS " in
39 *[\ \ ]-ansi[\ \ ]*) ;;
40 *) complCFLAGS="$complCFLAGS -ansi" ;;
41 esac
42
43 case " $CFLAGS " in
44 *[\ \ ]-pedantic[\ \ ]*) ;;
45 *) complCFLAGS="$complCFLAGS -pedantic" ;;
46 esac
47 fi
48 fi
49 AC_MSG_RESULT($complCFLAGS)
50 if test "x$cflags_set" != "xyes"; then
51 CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
52 cflags_set=yes
53 AC_SUBST(cflags_set)
54 fi
55 ])
56
57 dnl For C++, do basically the same thing.
58
59 AC_DEFUN([GNOME_CXX_WARNINGS],[
60 AC_ARG_ENABLE(cxx-warnings,
61 [ --enable-cxx-warnings=[no/minimum/yes] Turn on compiler warnings.],,enable_cxx_warnings=minimum)
62
63 AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
64 warnCXXFLAGS=
65 if test "x$GCC" != xyes; then
66 enable_compile_warnings=no
67 fi
68 if test "x$enable_cxx_warnings" != "xno"; then
69 if test "x$GCC" = "xyes"; then
70 case " $CXXFLAGS " in
71 *[\ \ ]-Wall[\ \ ]*) ;;
72 *) warnCXXFLAGS="-Wall -Wno-unused" ;;
73 esac
74
75 ## -W is not all that useful. And it cannot be controlled
76 ## with individual -Wno-xxx flags, unlike -Wall
77 if test "x$enable_cxx_warnings" = "xyes"; then
78 warnCXXFLAGS="$warnCXXFLAGS -Wmissing-prototypes -Wmissing-declarations -Wshadow -Woverloaded-virtual"
79 fi
80 fi
81 fi
82 AC_MSG_RESULT($warnCXXFLAGS)
83
84 AC_ARG_ENABLE(iso-cxx,
85 [ --enable-iso-cxx Try to warn if code is not ISO C++ ],,
86 enable_iso_cxx=no)
87
88 AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
89 complCXXFLAGS=
90 if test "x$enable_iso_cxx" != "xno"; then
91 if test "x$GCC" = "xyes"; then
92 case " $CXXFLAGS " in
93 *[\ \ ]-ansi[\ \ ]*) ;;
94 *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
95 esac
96
97 case " $CXXFLAGS " in
98 *[\ \ ]-pedantic[\ \ ]*) ;;
99 *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
100 esac
101 fi
102 fi
103 AC_MSG_RESULT($complCXXFLAGS)
104 if test "x$cxxflags_set" != "xyes"; then
105 CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
106 cxxflags_set=yes
107 AC_SUBST(cxxflags_set)
108 fi
109 ])
File macros/curses.m4 deleted (index 3dd4ffa..0000000)
1 dnl Curses detection: Munged from Midnight Commander's configure.in
2 dnl
3 dnl What it does:
4 dnl =============
5 dnl
6 dnl - Determine which version of curses is installed on your system
7 dnl and set the -I/-L/-l compiler entries and add a few preprocessor
8 dnl symbols
9 dnl - Do an AC_SUBST on the CURSES_INCLUDEDIR and CURSES_LIBS so that
10 dnl @CURSES_INCLUDEDIR@ and @CURSES_LIBS@ will be available in
11 dnl Makefile.in's
12 dnl - Modify the following configure variables (these are the only
13 dnl curses.m4 variables you can access from within configure.in)
14 dnl CURSES_INCLUDEDIR - contains -I's and possibly -DRENAMED_CURSES if
15 dnl an ncurses.h that's been renamed to curses.h
16 dnl is found.
17 dnl CURSES_LIBS - sets -L and -l's appropriately
18 dnl CFLAGS - if --with-sco, add -D_SVID3
19 dnl has_curses - exports result of tests to rest of configure
20 dnl
21 dnl Usage:
22 dnl ======
23 dnl 1) Add lines indicated below to acconfig.h
24 dnl 2) call AC_CHECK_CURSES after AC_PROG_CC in your configure.in
25 dnl 3) Instead of #include <curses.h> you should use the following to
26 dnl properly locate ncurses or curses header file
27 dnl
28 dnl #if defined(USE_NCURSES) && !defined(RENAMED_NCURSES)
29 dnl #include <ncurses.h>
30 dnl #else
31 dnl #include <curses.h>
32 dnl #endif
33 dnl
34 dnl 4) Make sure to add @CURSES_INCLUDEDIR@ to your preprocessor flags
35 dnl 5) Make sure to add @CURSES_LIBS@ to your linker flags or LIBS
36 dnl
37 dnl Notes with automake:
38 dnl - call AM_CONDITIONAL(HAS_CURSES, test "$has_curses" = true) from
39 dnl configure.in
40 dnl - your Makefile.am can look something like this
41 dnl -----------------------------------------------
42 dnl INCLUDES= blah blah blah $(CURSES_INCLUDEDIR)
43 dnl if HAS_CURSES
44 dnl CURSES_TARGETS=name_of_curses_prog
45 dnl endif
46 dnl bin_PROGRAMS = other_programs $(CURSES_TARGETS)
47 dnl other_programs_SOURCES = blah blah blah
48 dnl name_of_curses_prog_SOURCES = blah blah blah
49 dnl other_programs_LDADD = blah
50 dnl name_of_curses_prog_LDADD = blah $(CURSES_LIBS)
51 dnl -----------------------------------------------
52 dnl
53 dnl
54 dnl The following lines should be added to acconfig.h:
55 dnl ==================================================
56 dnl
57 dnl /*=== Curses version detection defines ===*/
58 dnl /* Found some version of curses that we're going to use */
59 dnl #undef HAS_CURSES
60 dnl
61 dnl /* Use SunOS SysV curses? */
62 dnl #undef USE_SUNOS_CURSES
63 dnl
64 dnl /* Use old BSD curses - not used right now */
65 dnl #undef USE_BSD_CURSES
66 dnl
67 dnl /* Use SystemV curses? */
68 dnl #undef USE_SYSV_CURSES
69 dnl
70 dnl /* Use Ncurses? */
71 dnl #undef USE_NCURSES
72 dnl
73 dnl /* If you Curses does not have color define this one */
74 dnl #undef NO_COLOR_CURSES
75 dnl
76 dnl /* Define if you want to turn on SCO-specific code */
77 dnl #undef SCO_FLAVOR
78 dnl
79 dnl /* Set to reflect version of ncurses *
80 dnl * 0 = version 1.*
81 dnl * 1 = version 1.9.9g
82 dnl * 2 = version 4.0/4.1 */
83 dnl #undef NCURSES_970530
84 dnl
85 dnl /*=== End new stuff for acconfig.h ===*/
86 dnl
87
88
89 AC_DEFUN(AC_CHECK_CURSES,[
90 search_ncurses=true
91 screen_manager=""
92 has_curses=false
93
94 CFLAGS=${CFLAGS--O}
95
96 AC_SUBST(CURSES_LIBS)
97 AC_SUBST(CURSES_INCLUDEDIR)
98
99 AC_ARG_WITH(sco,
100 [ --with-sco Use this to turn on SCO-specific code],[
101 if test x$withval = xyes; then
102 AC_DEFINE(SCO_FLAVOR)
103 CFLAGS="$CFLAGS -D_SVID3"
104 fi
105 ])
106
107 AC_ARG_WITH(sunos-curses,
108 [ --with-sunos-curses Used to force SunOS 4.x curses],[
109 if test x$withval = xyes; then
110 AC_USE_SUNOS_CURSES
111 fi
112 ])
113
114 AC_ARG_WITH(osf1-curses,
115 [ --with-osf1-curses Used to force OSF/1 curses],[
116 if test x$withval = xyes; then
117 AC_USE_OSF1_CURSES
118 fi
119 ])
120
121 AC_ARG_WITH(vcurses,
122 [ --with-vcurses[=incdir] Used to force SysV curses],
123 if test x$withval != xyes; then
124 CURSES_INCLUDEDIR="-I$withval"
125 fi
126 AC_USE_SYSV_CURSES
127 )
128
129 AC_ARG_WITH(ncurses,
130 [ --with-ncurses[=dir] Compile with ncurses/locate base dir],
131 if test x$withval = xno ; then
132 search_ncurses=false
133 elif test x$withval != xyes ; then
134 CURSES_LIBS="$LIBS -L$withval/lib -lncurses"
135 CURSES_INCLUDEDIR="-I$withval/include"
136 search_ncurses=false
137 screen_manager="ncurses"
138 AC_DEFINE(USE_NCURSES)
139 AC_DEFINE(HAS_CURSES)
140 has_curses=true
141 fi
142 )
143
144 if $search_ncurses
145 then
146 AC_SEARCH_NCURSES()
147 fi
148
149
150 ])
151
152
153 AC_DEFUN(AC_USE_SUNOS_CURSES, [
154 search_ncurses=false
155 screen_manager="SunOS 4.x /usr/5include curses"
156 AC_MSG_RESULT(Using SunOS 4.x /usr/5include curses)
157 AC_DEFINE(USE_SUNOS_CURSES)
158 AC_DEFINE(HAS_CURSES)
159 has_curses=true
160 AC_DEFINE(NO_COLOR_CURSES)
161 AC_DEFINE(USE_SYSV_CURSES)
162 CURSES_INCLUDEDIR="-I/usr/5include"
163 CURSES_LIBS="/usr/5lib/libcurses.a /usr/5lib/libtermcap.a"
164 AC_MSG_RESULT(Please note that some screen refreshs may fail)
165 ])
166
167 AC_DEFUN(AC_USE_OSF1_CURSES, [
168 AC_MSG_RESULT(Using OSF1 curses)
169 search_ncurses=false
170 screen_manager="OSF1 curses"
171 AC_DEFINE(HAS_CURSES)
172 has_curses=true
173 AC_DEFINE(NO_COLOR_CURSES)
174 AC_DEFINE(USE_SYSV_CURSES)
175 CURSES_LIBS="-lcurses"
176 ])
177
178 AC_DEFUN(AC_USE_SYSV_CURSES, [
179 AC_MSG_RESULT(Using SysV curses)
180 AC_DEFINE(HAS_CURSES)
181 has_curses=true
182 AC_DEFINE(USE_SYSV_CURSES)
183 search_ncurses=false
184 screen_manager="SysV/curses"
185 CURSES_LIBS="-lcurses"
186 ])
187
188 dnl AC_ARG_WITH(bsd-curses,
189 dnl [--with-bsd-curses Used to compile with bsd curses, not very fancy],
190 dnl search_ncurses=false
191 dnl screen_manager="Ultrix/cursesX"
192 dnl if test $system = ULTRIX
193 dnl then
194 dnl THIS_CURSES=cursesX
195 dnl else
196 dnl THIS_CURSES=curses
197 dnl fi
198 dnl
199 dnl CURSES_LIBS="-l$THIS_CURSES -ltermcap"
200 dnl AC_DEFINE(HAS_CURSES)
201 dnl has_curses=true
202 dnl AC_DEFINE(USE_BSD_CURSES)
203 dnl AC_MSG_RESULT(Please note that some screen refreshs may fail)
204 dnl AC_WARN(Use of the bsdcurses extension has some)
205 dnl AC_WARN(display/input problems.)
206 dnl AC_WARN(Reconsider using xcurses)
207 dnl)
208
209
210 dnl
211 dnl Parameters: directory filename cureses_LIBS curses_INCLUDEDIR nicename
212 dnl
213 AC_DEFUN(AC_NCURSES, [
214 if $search_ncurses
215 then
216 if test -f $1/$2
217 then
218 AC_MSG_RESULT(Found ncurses on $1/$2)
219 CURSES_LIBS="$3"
220 CURSES_INCLUDEDIR="$4"
221 search_ncurses=false
222 screen_manager=$5
223 AC_DEFINE(HAS_CURSES)
224 has_curses=true
225 AC_DEFINE(USE_NCURSES)
226 fi
227 fi
228 ])
229
230 AC_DEFUN(AC_SEARCH_NCURSES, [
231 AC_CHECKING("location of ncurses.h file")
232
233 AC_NCURSES(/usr/include, ncurses.h, -lncurses,, "ncurses on /usr/include")
234 AC_NCURSES(/usr/include/ncurses, ncurses.h, -lncurses, -I/usr/include/ncurses, "ncurses on /usr/include/ncurses")
235 AC_NCURSES(/usr/local/include, ncurses.h, -L/usr/local/lib -lncurses, -I/usr/local/include, "ncurses on /usr/local")
236 AC_NCURSES(/usr/local/include/ncurses, ncurses.h, -L/usr/local/lib -L/usr/local/lib/ncurses -lncurses, -I/usr/local/include/ncurses, "ncurses on /usr/local/include/ncurses")
237
238 AC_NCURSES(/usr/local/include/ncurses, curses.h, -L/usr/local/lib -lncurses, -I/usr/local/include/ncurses -DRENAMED_NCURSES, "renamed ncurses on /usr/local/.../ncurses")
239
240 AC_NCURSES(/usr/include/ncurses, curses.h, -lncurses, -I/usr/include/ncurses -DRENAMED_NCURSES, "renamed ncurses on /usr/include/ncurses")
241
242 dnl
243 dnl We couldn't find ncurses, try SysV curses
244 dnl
245 if $search_ncurses
246 then
247 AC_EGREP_HEADER(init_color, /usr/include/curses.h,
248 AC_USE_SYSV_CURSES)
249 AC_EGREP_CPP(USE_NCURSES,[
250 #include <curses.h>
251 #ifdef __NCURSES_H
252 #undef USE_NCURSES
253 USE_NCURSES
254 #endif
255 ],[
256 CURSES_INCLUDEDIR="$CURSES_INCLUDEDIR -DRENAMED_NCURSES"
257 AC_DEFINE(HAS_CURSES)
258 has_curses=true
259 AC_DEFINE(USE_NCURSES)
260 search_ncurses=false
261 screen_manager="ncurses installed as curses"
262 ])
263 fi
264
265 dnl
266 dnl Try SunOS 4.x /usr/5{lib,include} ncurses
267 dnl The flags USE_SUNOS_CURSES, USE_BSD_CURSES and BUGGY_CURSES
268 dnl should be replaced by a more fine grained selection routine
269 dnl
270 if $search_ncurses
271 then
272 if test -f /usr/5include/curses.h
273 then
274 AC_USE_SUNOS_CURSES
275 fi
276 else
277 # check for ncurses version, to properly ifdef mouse-fix
278 AC_MSG_CHECKING(for ncurses version)
279 ncurses_version=unknown
280 cat > conftest.$ac_ext <<EOF
281 [#]line __oline__ "configure"
282 #include "confdefs.h"
283 #ifdef RENAMED_NCURSES
284 #include <curses.h>
285 #else
286 #include <ncurses.h>
287 #endif
288 #undef VERSION
289 VERSION:NCURSES_VERSION
290 EOF
291 if (eval "$ac_cpp conftest.$ac_ext") 2>&AC_FD_CC |
292 egrep "VERSION:" >conftest.out 2>&1; then
293 changequote(,)dnl
294 ncurses_version=`cat conftest.out|sed -e 's/^[^"]*"//' -e 's/".*//'`
295 changequote([,])dnl
296 fi
297 rm -rf conftest*
298 AC_MSG_RESULT($ncurses_version)
299 case "$ncurses_version" in
300 changequote(,)dnl
301 4.[01])
302 changequote([,])dnl
303 AC_DEFINE(NCURSES_970530,2)
304 ;;
305 1.9.9g)
306 AC_DEFINE(NCURSES_970530,1)
307 ;;
308 1*)
309 AC_DEFINE(NCURSES_970530,0)
310 ;;
311 esac
312 fi
313 ])
314
315
316
317
318
File macros/gnome-bonobo-check.m4 deleted (index 7eb2b26..0000000)
1 # Configure paths for Bonobo
2 # Miguel de Icaza, 99-04-12
3 # Stolen from Chris Lahey 99-2-5
4 # stolen from Manish Singh again
5 # stolen back from Frank Belew
6 # stolen from Manish Singh
7 # Shamelessly stolen from Owen Taylor
8
9 dnl AM_PATH_BONOBO ([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
10 dnl Test for Bonobo, and define BONOBO_CFLAGS and BONOBO_LIBS
11 dnl
12 AC_DEFUN([AM_PATH_BONOBO],
13 [
14 dnl
15 dnl Get the cflags and libraries from the gnome-config script
16 dnl
17 AC_ARG_WITH(bonobo-prefix,[ --with-bonobo-prefix=PFX Prefix where Bonobo is installed (optional)],
18 bonobo_prefix="$withval", bonobo_prefix="")
19 AC_ARG_WITH(bonobo-exec-prefix,[ --with-bonobo-exec-prefix=PFX Exec prefix where Bonobo is installed (optional)],
20 bonobo_exec_prefix="$withval", bonobo_exec_prefix="")
21 AC_ARG_ENABLE(bonobotest, [ --disable-bonobotest Do not try to compile and run a test Bonobo program],
22 , enable_bonobotest=yes)
23
24 if test x$bonobo_exec_prefix != x ; then
25 bonobo_args="$bonobo_args --exec-prefix=$bonobo_exec_prefix"
26 if test x${GNOME_CONFIG+set} != xset ; then
27 GNOME_CONFIG=$bonobo_exec_prefix/bin/gnome-config
28 fi
29 fi
30 if test x$bonobo_prefix != x ; then
31 bonobo_args="$bonobo_args --prefix=$bonobo_prefix"
32 if test x${GNOME_CONFIG+set} != xset ; then
33 GNOME_CONFIG=$bonobo_prefix/bin/gnome-config
34 fi
35 fi
36
37 AC_PATH_PROG(GNOME_CONFIG, gnome-config, no)
38 min_bonobo_version=ifelse([$1], ,0.1.0,$1)
39 AC_MSG_CHECKING(for BONOBO - version >= $min_bonobo_version)
40 no_bonobo=""
41 if test "$GNOME_CONFIG" = "no" ; then
42 no_bonobo=yes
43 else
44 BONOBO_CFLAGS=`$GNOME_CONFIG $bonoboconf_args --cflags bonobo`
45 BONOBO_LIBS=`$GNOME_CONFIG $bonoboconf_args --libs bonobo`
46
47 bonobo_major_version=`$GNOME_CONFIG $bonobo_args --version | \
48 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
49 bonobo_minor_version=`$GNOME_CONFIG $bonobo_args --version | \
50 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
51 bonobo_micro_version=`$GNOME_CONFIG $bonobo_config_args --version | \
52 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
53 if test "x$enable_bonobotest" = "xyes" ; then
54 ac_save_CFLAGS="$CFLAGS"
55 ac_save_LIBS="$LIBS"
56 CFLAGS="$CFLAGS $BONOBO_CFLAGS"
57 LIBS="$LIBS $BONOBO_LIBS"
58 dnl
59 dnl Now check if the installed BONOBO is sufficiently new. (Also sanity
60 dnl checks the results of gnome-config to some extent
61 dnl
62 rm -f conf.bonobotest
63 AC_TRY_RUN([
64 #include <stdio.h>
65 #include <stdlib.h>
66 #include <string.h>
67 #include <bonobo.h>
68
69 static char*
70 my_strdup (char *str)
71 {
72 char *new_str;
73
74 if (str)
75 {
76 new_str = malloc ((strlen (str) + 1) * sizeof(char));
77 strcpy (new_str, str);
78 }
79 else
80 new_str = NULL;
81
82 return new_str;
83 }
84
85 int main ()
86 {
87 int major, minor, micro;
88 char *tmp_version;
89
90 system ("touch conf.bonobotest");
91 bonobo_object_get_type ();
92 return 0;
93 }
94
95 ],, no_bonobo=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
96 CFLAGS="$ac_save_CFLAGS"
97 LIBS="$ac_save_LIBS"
98 fi
99 fi
100 if test "x$no_bonobo" = x ; then
101 AC_MSG_RESULT(yes)
102 ifelse([$2], , :, [$2])
103 else
104 AC_MSG_RESULT(no)
105 if test "$GNOME_CONFIG" = "no" ; then
106 echo "*** The gnome-config script installed by GNOME-LIBS could not be found"
107 echo "*** If BONOBO was installed in PREFIX, make sure PREFIX/bin is in"
108 echo "*** your path, or set the GNOME_CONFIG environment variable to the"
109 echo "*** full path to gnome-config."
110 else
111 if test -f conf.bonobotest ; then
112 :
113 else
114 echo "*** Could not run BONOBO test program, checking why..."
115 CFLAGS="$CFLAGS $BONOBO_CFLAGS"
116 LIBS="$LIBS $BONOBO_LIBS"
117 AC_TRY_LINK([
118 #include <stdio.h>
119 #include <bonobo/gnome-object.h>
120 ], [ return 0; ],
121 [ echo "*** The test program compiled, but did not run. This usually means"
122 echo "*** that the run-time linker is not finding BONOBO or finding the wrong"
123 echo "*** version of BONOBO. If it is not finding BONOBO, you'll need to set your"
124 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
125 echo "*** to the installed location Also, make sure you have run ldconfig if that"
126 echo "*** is required on your system"
127 echo "***"
128 echo "*** If you have an old version installed, it is best to remove it, although"
129 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
130 [ echo "*** The test program failed to compile or link. See the file config.log for the"
131 echo "*** exact error that occured. This usually means BONOBO was incorrectly installed"
132 echo "*** or that you have moved BONOBO since it was installed. In the latter case, you"
133 echo "*** may want to edit the gnome-config script: $GNOME_CONFIG" ])
134 CFLAGS="$ac_save_CFLAGS"
135 LIBS="$ac_save_LIBS"
136 fi
137 fi
138 BONOBO_CFLAGS=""
139 BONOBO_LIBS=""
140 ifelse([$3], , :, [$3])
141 fi
142 AC_SUBST(BONOBO_CFLAGS)
143 AC_SUBST(BONOBO_LIBS)
144 rm -f conf.bonobotest
145 ])
146
147 AC_DEFUN([BONOBO_CHECK], [
148 AM_PATH_BONOBO(0.1.0,,[AC_MSG_ERROR(BONOBO not found)])
149 ])
150
File macros/gnome-common.m4 deleted (index b723829..0000000)
1 # gnome-common.m4
2 #
3 # This only for packages that are not in the GNOME CVS tree.
4
5 dnl GNOME_COMMON_INIT
6
7 AC_DEFUN([GNOME_COMMON_INIT],
8 [
9 GNOME_ACLOCAL_DIR=`$ACLOCAL --print-ac-dir`/gnome
10 AC_SUBST(GNOME_ACLOCAL_DIR)
11
12 ACLOCAL="$ACLOCAL -I $GNOME_ACLOCAL_DIR"
13 ])
14
File macros/gnome-fileutils.m4 deleted (index 7c11a78..0000000)
1 dnl
2 dnl GNOME_FILEUTILS_CHECKS
3 dnl
4 dnl checks that are needed for the diskusage applet.
5 dnl
6
7 AC_DEFUN([GNOME_FILEUTILS_CHECKS],
8 [
9 AC_CHECK_HEADERS(fcntl.h sys/param.h sys/statfs.h sys/fstyp.h \
10 mnttab.h mntent.h sys/statvfs.h sys/vfs.h sys/mount.h \
11 sys/filsys.h sys/fs_types.h sys/fs/s5param.h)
12
13 AC_CHECK_FUNCS(bcopy endgrent endpwent fchdir ftime ftruncate \
14 getcwd getmntinfo gettimeofday isascii lchown \
15 listmntent memcpy mkfifo strchr strerror strrchr vprintf)
16
17 dnl Set some defaults when cross-compiling
18
19 if test x$cross_compiling = xyes ; then
20 case "$host_os" in
21 linux*)
22 fu_cv_sys_mounted_getmntent1=yes
23 fu_cv_sys_stat_statfs2_bsize=yes
24 ;;
25 sunos*)
26 fu_cv_sys_stat_statfs4=yes
27 ;;
28 freebsd*)
29 fu_cv_sys_stat_statfs2_bsize=yes
30 ;;
31 osf*)
32 fu_cv_sys_stat_statfs3_osf1=yes
33 ;;
34 esac
35 fi
36
37 # Determine how to get the list of mounted filesystems.
38 list_mounted_fs=
39
40 # If the getmntent function is available but not in the standard library,
41 # make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
42 AC_FUNC_GETMNTENT
43
44 # This test must precede the ones for getmntent because Unicos-9 is
45 # reported to have the getmntent function, but its support is incompatible
46 # with other getmntent implementations.
47
48 # NOTE: Normally, I wouldn't use a check for system type as I've done for
49 # `CRAY' below since that goes against the whole autoconf philosophy. But
50 # I think there is too great a chance that some non-Cray system has a
51 # function named listmntent to risk the false positive.
52
53 if test -z "$list_mounted_fs"; then
54 # Cray UNICOS 9
55 AC_MSG_CHECKING([for listmntent of Cray/Unicos-9])
56 AC_CACHE_VAL(fu_cv_sys_mounted_cray_listmntent,
57 [fu_cv_sys_mounted_cray_listmntent=no
58 AC_EGREP_CPP(yes,
59 [#ifdef _CRAY
60 yes
61 #endif
62 ], [test $ac_cv_func_listmntent = yes \
63 && fu_cv_sys_mounted_cray_listmntent=yes]
64 )
65 ]
66 )
67 AC_MSG_RESULT($fu_cv_sys_mounted_cray_listmntent)
68 if test $fu_cv_sys_mounted_cray_listmntent = yes; then
69 list_mounted_fs=found
70 AC_DEFINE(MOUNTED_LISTMNTENT)
71 fi
72 fi
73
74 if test $ac_cv_func_getmntent = yes; then
75
76 # This system has the getmntent function.
77 # Determine whether it's the one-argument variant or the two-argument one.
78
79 if test -z "$list_mounted_fs"; then
80 # 4.3BSD, SunOS, HP-UX, Dynix, Irix
81 AC_MSG_CHECKING([for one-argument getmntent function])
82 AC_CACHE_VAL(fu_cv_sys_mounted_getmntent1,
83 [test $ac_cv_header_mntent_h = yes \
84 && fu_cv_sys_mounted_getmntent1=yes \
85 || fu_cv_sys_mounted_getmntent1=no])
86 AC_MSG_RESULT($fu_cv_sys_mounted_getmntent1)
87 if test $fu_cv_sys_mounted_getmntent1 = yes; then
88 list_mounted_fs=found
89 AC_DEFINE(MOUNTED_GETMNTENT1)
90 fi
91 fi
92
93 if test -z "$list_mounted_fs"; then
94 # SVR4
95 AC_MSG_CHECKING([for two-argument getmntent function])
96 AC_CACHE_VAL(fu_cv_sys_mounted_getmntent2,
97 [AC_EGREP_HEADER(getmntent, sys/mnttab.h,
98 fu_cv_sys_mounted_getmntent2=yes,
99 fu_cv_sys_mounted_getmntent2=no)])
100 AC_MSG_RESULT($fu_cv_sys_mounted_getmntent2)
101 if test $fu_cv_sys_mounted_getmntent2 = yes; then
102 list_mounted_fs=found
103 AC_DEFINE(MOUNTED_GETMNTENT2)
104 fi
105 fi
106
107 if test -z "$list_mounted_fs"; then
108 AC_MSG_ERROR([could not determine how to read list of mounted filesystems])
109 fi
110
111 fi
112
113 if test -z "$list_mounted_fs"; then
114 # DEC Alpha running OSF/1.
115 AC_MSG_CHECKING([for getfsstat function])
116 AC_CACHE_VAL(fu_cv_sys_mounted_getsstat,
117 [AC_TRY_LINK([
118 #include <sys/types.h>
119 #include <sys/mount.h>
120 #include <sys/fs_types.h>],
121 [struct statfs *stats;
122 int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT); ],
123 fu_cv_sys_mounted_getsstat=yes,
124 fu_cv_sys_mounted_getsstat=no)])
125 AC_MSG_RESULT($fu_cv_sys_mounted_getsstat)
126 if test $fu_cv_sys_mounted_getsstat = yes; then
127 list_mounted_fs=found
128 AC_DEFINE(MOUNTED_GETFSSTAT)
129 fi
130 fi
131
132 if test -z "$list_mounted_fs"; then
133 # AIX.
134 AC_MSG_CHECKING([for mntctl function and struct vmount])
135 AC_CACHE_VAL(fu_cv_sys_mounted_vmount,
136 [AC_TRY_CPP([#include <fshelp.h>],
137 fu_cv_sys_mounted_vmount=yes,
138 fu_cv_sys_mounted_vmount=no)])
139 AC_MSG_RESULT($fu_cv_sys_mounted_vmount)
140 if test $fu_cv_sys_mounted_vmount = yes; then
141 list_mounted_fs=found
142 AC_DEFINE(MOUNTED_VMOUNT)
143 fi
144 fi
145
146 if test -z "$list_mounted_fs"; then
147 # SVR3
148 AC_MSG_CHECKING([for FIXME existence of three headers])
149 AC_CACHE_VAL(fu_cv_sys_mounted_fread_fstyp,
150 [AC_TRY_CPP([
151 #include <sys/statfs.h>
152 #include <sys/fstyp.h>
153 #include <mnttab.h>],
154 fu_cv_sys_mounted_fread_fstyp=yes,
155 fu_cv_sys_mounted_fread_fstyp=no)])
156 AC_MSG_RESULT($fu_cv_sys_mounted_fread_fstyp)
157 if test $fu_cv_sys_mounted_fread_fstyp = yes; then
158 list_mounted_fs=found
159 AC_DEFINE(MOUNTED_FREAD_FSTYP)
160 fi
161 fi
162
163 if test -z "$list_mounted_fs"; then
164 # 4.4BSD and DEC OSF/1.
165 AC_MSG_CHECKING([for getmntinfo function])
166 AC_CACHE_VAL(fu_cv_sys_mounted_getmntinfo,
167 [
168 ok=
169 if test $ac_cv_func_getmntinfo = yes; then
170 AC_EGREP_HEADER(f_type;, sys/mount.h,
171 ok=yes)
172 fi
173 test -n "$ok" \
174 && fu_cv_sys_mounted_getmntinfo=yes \
175 || fu_cv_sys_mounted_getmntinfo=no
176 ])
177 AC_MSG_RESULT($fu_cv_sys_mounted_getmntinfo)
178 if test $fu_cv_sys_mounted_getmntinfo = yes; then
179 list_mounted_fs=found
180 AC_DEFINE(MOUNTED_GETMNTINFO)
181 fi
182 fi
183
184 # FIXME: add a test for netbsd-1.1 here
185
186 if test -z "$list_mounted_fs"; then
187 # Ultrix
188 AC_MSG_CHECKING([for getmnt function])
189 AC_CACHE_VAL(fu_cv_sys_mounted_getmnt,
190 [AC_TRY_CPP([
191 #include <sys/fs_types.h>
192 #include <sys/mount.h>],
193 fu_cv_sys_mounted_getmnt=yes,
194 fu_cv_sys_mounted_getmnt=no)])
195 AC_MSG_RESULT($fu_cv_sys_mounted_getmnt)
196 if test $fu_cv_sys_mounted_getmnt = yes; then
197 list_mounted_fs=found
198 AC_DEFINE(MOUNTED_GETMNT)
199 fi
200 fi
201
202 if test -z "$list_mounted_fs"; then
203 # SVR2
204 AC_MSG_CHECKING([whether it is possible to resort to fread on /etc/mnttab])
205 AC_CACHE_VAL(fu_cv_sys_mounted_fread,
206 [AC_TRY_CPP([#include <mnttab.h>],
207 fu_cv_sys_mounted_fread=yes,
208 fu_cv_sys_mounted_fread=no)])
209 AC_MSG_RESULT($fu_cv_sys_mounted_fread)
210 if test $fu_cv_sys_mounted_fread = yes; then
211 list_mounted_fs=found
212 AC_DEFINE(MOUNTED_FREAD)
213 fi
214 fi
215
216 if test -z "$list_mounted_fs"; then
217 AC_MSG_ERROR([could not determine how to read list of mounted filesystems])
218 # FIXME -- no need to abort building the whole package
219 # Can't build mountlist.c or anything that needs its functions
220 fi
221
222 AC_CHECKING(how to get filesystem space usage)
223 space=no
224
225 # Perform only the link test since it seems there are no variants of the
226 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
227 # because that got a false positive on SCO OSR5. Adding the declaration
228 # of a `struct statvfs' causes this test to fail (as it should) on such
229 # systems. That system is reported to work fine with STAT_STATFS4 which
230 # is what it gets when this test fails.
231 if test $space = no; then
232 # SVR4
233 AC_CACHE_CHECK([statvfs function (SVR4)], fu_cv_sys_stat_statvfs,
234 [AC_TRY_LINK([#include <sys/types.h>
235 #include <sys/statvfs.h>],
236 [struct statvfs fsd; statvfs (0, &fsd);],
237 fu_cv_sys_stat_statvfs=yes,
238 fu_cv_sys_stat_statvfs=no)])
239 if test $fu_cv_sys_stat_statvfs = yes; then
240 space=yes
241 AC_DEFINE(STAT_STATVFS)
242 fi
243 fi
244
245 if test $space = no; then
246 # DEC Alpha running OSF/1
247 AC_MSG_CHECKING([for 3-argument statfs function (DEC OSF/1)])
248 AC_CACHE_VAL(fu_cv_sys_stat_statfs3_osf1,
249 [AC_TRY_RUN([
250 #include <sys/param.h>
251 #include <sys/types.h>
252 #include <sys/mount.h>
253 main ()
254 {
255 struct statfs fsd;
256 fsd.f_fsize = 0;
257 exit (statfs (".", &fsd, sizeof (struct statfs)));
258 }],
259 fu_cv_sys_stat_statfs3_osf1=yes,
260 fu_cv_sys_stat_statfs3_osf1=no,
261 fu_cv_sys_stat_statfs3_osf1=no)])
262 AC_MSG_RESULT($fu_cv_sys_stat_statfs3_osf1)
263 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
264 space=yes
265 AC_DEFINE(STAT_STATFS3_OSF1)
266 fi
267 fi
268
269 if test $space = no; then
270 # AIX
271 AC_MSG_CHECKING([for two-argument statfs with statfs.bsize dnl
272 member (AIX, 4.3BSD)])
273 AC_CACHE_VAL(fu_cv_sys_stat_statfs2_bsize,
274 [AC_TRY_RUN([
275 #ifdef HAVE_SYS_PARAM_H
276 #include <sys/param.h>
277 #endif
278 #ifdef HAVE_SYS_MOUNT_H
279 #include <sys/mount.h>
280 #endif
281 #ifdef HAVE_SYS_VFS_H
282 #include <sys/vfs.h>
283 #endif
284 main ()
285 {
286 struct statfs fsd;
287 fsd.f_bsize = 0;
288 exit (statfs (".", &fsd));
289 }],
290 fu_cv_sys_stat_statfs2_bsize=yes,
291 fu_cv_sys_stat_statfs2_bsize=no,
292 fu_cv_sys_stat_statfs2_bsize=no)])
293 AC_MSG_RESULT($fu_cv_sys_stat_statfs2_bsize)
294 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
295 space=yes
296 AC_DEFINE(STAT_STATFS2_BSIZE)
297 fi
298 fi
299
300 if test $space = no; then
301 # SVR3
302 AC_MSG_CHECKING([for four-argument statfs (AIX-3.2.5, SVR3)])
303 AC_CACHE_VAL(fu_cv_sys_stat_statfs4,
304 [AC_TRY_RUN([#include <sys/types.h>
305 #include <sys/statfs.h>
306 main ()
307 {
308 struct statfs fsd;
309 exit (statfs (".", &fsd, sizeof fsd, 0));
310 }],
311 fu_cv_sys_stat_statfs4=yes,
312 fu_cv_sys_stat_statfs4=no,
313 fu_cv_sys_stat_statfs4=no)])
314 AC_MSG_RESULT($fu_cv_sys_stat_statfs4)
315 if test $fu_cv_sys_stat_statfs4 = yes; then
316 space=yes
317 AC_DEFINE(STAT_STATFS4)
318 fi
319 fi
320
321 if test $space = no; then
322 # 4.4BSD and NetBSD
323 AC_MSG_CHECKING([for two-argument statfs with statfs.fsize dnl
324 member (4.4BSD and NetBSD)])
325 AC_CACHE_VAL(fu_cv_sys_stat_statfs2_fsize,
326 [AC_TRY_RUN([#include <sys/types.h>
327 #ifdef HAVE_SYS_PARAM_H
328 #include <sys/param.h>
329 #endif
330 #ifdef HAVE_SYS_MOUNT_H
331 #include <sys/mount.h>
332 #endif
333 main ()
334 {
335 struct statfs fsd;
336 fsd.f_fsize = 0;
337 exit (statfs (".", &fsd));
338 }],
339 fu_cv_sys_stat_statfs2_fsize=yes,
340 fu_cv_sys_stat_statfs2_fsize=no,
341 fu_cv_sys_stat_statfs2_fsize=no)])
342 AC_MSG_RESULT($fu_cv_sys_stat_statfs2_fsize)
343 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
344 space=yes
345 AC_DEFINE(STAT_STATFS2_FSIZE)
346 fi
347 fi
348
349 if test $space = no; then
350 # Ultrix
351 AC_MSG_CHECKING([for two-argument statfs with struct fs_data (Ultrix)])
352 AC_CACHE_VAL(fu_cv_sys_stat_fs_data,
353 [AC_TRY_RUN([#include <sys/types.h>
354 #ifdef HAVE_SYS_PARAM_H
355 #include <sys/param.h>
356 #endif
357 #ifdef HAVE_SYS_MOUNT_H
358 #include <sys/mount.h>
359 #endif
360 #ifdef HAVE_SYS_FS_TYPES_H
361 #include <sys/fs_types.h>
362 #endif
363 main ()
364 {
365 struct fs_data fsd;
366 /* Ultrix's statfs returns 1 for success,
367 0 for not mounted, -1 for failure. */
368 exit (statfs (".", &fsd) != 1);
369 }],
370 fu_cv_sys_stat_fs_data=yes,
371 fu_cv_sys_stat_fs_data=no,
372 fu_cv_sys_stat_fs_data=no)])
373 AC_MSG_RESULT($fu_cv_sys_stat_fs_data)
374 if test $fu_cv_sys_stat_fs_data = yes; then
375 space=yes
376 AC_DEFINE(STAT_STATFS2_FS_DATA)
377 fi
378 fi
379
380 if test $space = no; then
381 # SVR2
382 AC_TRY_CPP([#include <sys/filsys.h>],
383 AC_DEFINE(STAT_READ_FILSYS) space=yes)
384 fi
385
386 if test -n "$list_mounted_fs" && test $space != no; then
387 DF_PROG="df"
388 # LIBOBJS="$LIBOBJS fsusage.o"
389 # LIBOBJS="$LIBOBJS mountlist.o"
390 fi
391
392 # Check for SunOS statfs brokenness wrt partitions 2GB and larger.
393 # If <sys/vfs.h> exists and struct statfs has a member named f_spare,
394 # enable the work-around code in fsusage.c.
395 AC_MSG_CHECKING([for statfs that truncates block counts])
396 AC_CACHE_VAL(fu_cv_sys_truncating_statfs,
397 [AC_TRY_COMPILE([
398 #if !defined(sun) && !defined(__sun)
399 choke -- this is a workaround for a Sun-specific problem
400 #endif
401 #include <sys/types.h>
402 #include <sys/vfs.h>],
403 [struct statfs t; long c = *(t.f_spare);],
404 fu_cv_sys_truncating_statfs=yes,
405 fu_cv_sys_truncating_statfs=no,
406 )])
407 if test $fu_cv_sys_truncating_statfs = yes; then
408 AC_DEFINE(STATFS_TRUNCATES_BLOCK_COUNTS)
409 fi
410 AC_MSG_RESULT($fu_cv_sys_truncating_statfs)
411
412 AC_CHECKING(for AFS)
413 test -d /afs && AC_DEFINE(AFS)
414 ])
File macros/gnome-ghttp-check.m4 deleted (index 0ecacaa..0000000)
1 AC_DEFUN([GNOME_GHTTP_CHECK],[
2 AC_REQUIRE([GNOME_INIT_HOOK])
3 GHTTP_LIB=
4 AC_CHECK_FUNC(connect,,[
5 AC_CHECK_LIB(socket,connect,
6 GHTTP_LIB="-lsocket $GHTTP_LIB",,$GHTTP_LIB)])
7 AC_CHECK_FUNC(gethostbyname,,[
8 AC_CHECK_LIB(nsl,gethostbyname,
9 GHTTP_LIB="-lnsl $GHTTP_LIB",,$GHTTP_LIB)])
10 AC_CHECK_LIB(ghttp, ghttp_request_new,
11 GHTTP_LIB="-lghttp $GHTTP_LIB",GHTTP_LIB="",-L$gnome_prefix $GHTTP_LIB)
12 AC_SUBST(GHTTP_LIB)
13 AC_PROVIDE([GNOME_GHTTP_CHECK])
14 ])
File macros/gnome-gnorba-check.m4 deleted (index dbac0a6..0000000)
1 dnl
2 dnl GNOME_GNORBA_HOOK (script-if-gnorba-found, failflag)
3 dnl
4 dnl if failflag is "failure" it aborts if gnorba is not found.
5 dnl
6
7 AC_DEFUN([GNOME_GNORBA_HOOK],[
8 GNOME_ORBIT_HOOK([],$2)
9 AC_CACHE_CHECK([for gnorba libraries],gnome_cv_gnorba_found,[
10 gnome_cv_gnorba_found=no
11 if test x$gnome_cv_orbit_found = xyes; then
12 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
13 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
14 if test -n "$GNORBA_LIBS"; then
15 gnome_cv_gnorba_found=yes
16 fi
17 fi
18 ])
19 AM_CONDITIONAL(HAVE_GNORBA, test x$gnome_cv_gnorba_found = xyes)
20 if test x$gnome_cv_orbit_found = xyes; then
21 $1
22 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
23 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
24 AC_SUBST(GNORBA_CFLAGS)
25 AC_SUBST(GNORBA_LIBS)
26 else
27 if test x$2 = xfailure; then
28 AC_MSG_ERROR(gnorba library not installed or installation problem)
29 fi
30 fi
31 ])
32
33 AC_DEFUN([GNOME_GNORBA_CHECK], [
34 GNOME_GNORBA_HOOK([],failure)
35 ])
File macros/gnome-guile-checks.m4 deleted (index 1086d30..0000000)
1 dnl
2 dnl GNOME_CHECK_GUILE (failflag)
3 dnl
4 dnl if failflag is "fail" then GNOME_CHECK_GUILE will abort if guile is not found.
5 dnl
6
7 AC_DEFUN([GNOME_CHECK_GUILE],
8 [
9 saved_ldflags="$LDFLAGS"
10 saved_cppflags="$CPPFLAGS"
11 LDFLAGS="$LDFLAGS $GNOME_LIBDIR"
12
13 AC_CHECK_LIB(qthreads,qt_null,[
14 QTTHREADS_LIB="-lqthreads"
15 ],[
16 AC_CHECK_LIB(qt, qt_null, QTTHREADS_LIB="-lqt")
17 ],$LIBS)
18 AC_SUBST(QTTHREADS_LIB)
19
20 AC_CHECK_LIB(termcap,main,TERMCAP_LIB="-ltermcap")
21 AC_CHECK_LIB(readline,main,READLINE_LIB="-lreadline",,$TERMCAP_LIB)
22
23 AC_SUBST(TERMCAP_LIB)
24 AC_SUBST(READLINE_LIB)
25
26 if test "x$cross_compiling" = "xyes" ; then
27 name_build_guile="$target_alias-guile-config"
28 else
29 name_build_guile="guile-config"
30 fi
31
32 AC_CHECK_PROG(BUILD_GUILE, $name_build_guile, yes, no)
33
34 if test "x$BUILD_GUILE" = "xyes"; then
35 AC_MSG_CHECKING(whether $name_build_guile works)
36 if test x`$name_build_guile --version >/dev/null 2>&1 || \
37 echo no` = xno; then
38 BUILD_GUILE=no
39 fi
40 AC_MSG_RESULT($BUILD_GUILE)
41 else
42
43 if test "x$cross_compiling" = "xyes" ; then
44 name_build_guile="$target_alias-build-guile"
45 else
46 name_build_guile="build-guile"
47 fi
48
49 AC_CHECK_PROG(BUILD_GUILE, $name_build_guile, yes, no)
50
51 if test "x$BUILD_GUILE" = "xyes"; then
52 AC_MSG_CHECKING(whether $name_build_guile works)
53 if test x`$name_build_guile --version >/dev/null 2>&1 || \
54 echo no` = xno; then
55 BUILD_GUILE=no
56 fi
57 AC_MSG_RESULT($BUILD_GUILE)
58 fi
59 fi
60
61 AC_CHECK_LIB(m, sin)
62
63 if test "x$BUILD_GUILE" = "xyes"; then
64 AC_MSG_CHECKING(for guile libraries)
65 GUILE_LIBS="`$name_build_guile link`"
66 AC_MSG_RESULT($GUILE_LIBS)
67 AC_MSG_CHECKING(for guile headers)
68 GUILE_INCS="`$name_build_guile compile`"
69 AC_MSG_RESULT($GUILE_INCS)
70 else
71 GUILE_LIBS="$GNOME_LIBDIR"
72 GUILE_INCS="$GNOME_INCLUDEDIR"
73 AC_CHECK_LIB(rx, main, GUILE_LIBS="-lrx $GUILE_LIBS")
74 AC_CHECK_LIB(qt, qt_null, GUILE_LIBS="-lqt $GUILE_LIBS")
75 AC_CHECK_LIB(dl, dlopen, GUILE_LIBS="-ldl $GUILE_LIBS")
76 AC_CHECK_LIB(nsl, t_accept, GUILE_LIBS="$GUILE_LIBS -lnsl")
77 AC_CHECK_LIB(socket, socket, GUILE_LIBS="$GUILE_LIBS -lsocket")
78 GUILE_LIBS="-lguile $GUILE_LIBS $QTTHREADS_LIB $READLINE_LIB $TERMCAP_LIB"
79 fi
80
81 AC_SUBST(GUILE_LIBS)
82 AC_SUBST(GUILE_INCS)
83
84 saved_LIBS="$LIBS"
85 LIBS="$LIBS $GUILE_LIBS"
86 CPPFLAGS="$saved_cppflags $GUILE_INCS"
87
88 AC_MSG_CHECKING(whether guile works)
89 AC_TRY_LINK([
90 #include <libguile.h>
91 #include <guile/gh.h>
92 ],[
93 gh_eval_str("(newline)");
94 scm_boot_guile(0,NULL,NULL,NULL);
95 ],[
96 ac_cv_guile_found=yes
97 AC_DEFINE(HAVE_GUILE)
98 ],[
99 ac_cv_guile_found=no
100 ])
101 AC_MSG_RESULT($ac_cv_guile_found)
102
103 if test x$ac_cv_guile_found = xno ; then
104 if test x$1 = xfail ; then
105 AC_MSG_ERROR(Can not find Guile on this system)
106 else
107 AC_MSG_WARN(Can not find Guile on this system)
108 fi
109 ac_cv_guile_found=no
110 GUILE_LIBS= GUILE_INCS=
111 fi
112
113 LIBS="$saved_LIBS"
114 LDFLAGS="$saved_ldflags"
115 CPPFLAGS="$saved_cppflags"
116
117 AC_SUBST(GUILE_LIBS)
118 AM_CONDITIONAL(GUILE, test x$ac_cv_guile_found = xyes)
119 ])
File macros/gnome-libgtop-check.m4 deleted (index 0ce6f6f..0000000)
1 dnl
2 dnl LIBGTOP_CHECK_TYPE
3 dnl
4 dnl Improved version of AC_CHECK_TYPE which takes into account
5 dnl that we need to #include some other header files on some
6 dnl systems to get some types.
7
8 dnl AC_LIBGTOP_CHECK_TYPE(TYPE, DEFAULT)
9 AC_DEFUN(AC_LIBGTOP_CHECK_TYPE,
10 [AC_REQUIRE([AC_HEADER_STDC])dnl
11 AC_MSG_CHECKING(for $1)
12 AC_CACHE_VAL(ac_cv_type_$1,
13 [AC_EGREP_CPP(dnl
14 changequote(<<,>>)dnl
15 <<(^|[^a-zA-Z_0-9])$1[^a-zA-Z_0-9]>>dnl
16 changequote([,]), [#include <sys/types.h>
17 #if STDC_HEADERS
18 #include <stdlib.h>
19 #include <stddef.h>
20 #endif
21
22 /* For Tru64 */
23 #ifdef HAVE_SYS_BITYPES_H
24 #include <sys/bitypes.h>
25 #endif
26 ], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl
27 AC_MSG_RESULT($ac_cv_type_$1)
28 if test $ac_cv_type_$1 = no; then
29 AC_DEFINE($1, $2)
30 fi
31 ])
32
33 dnl
34 dnl GNOME_LIBGTOP_TYPES
35 dnl
36 dnl some typechecks for libgtop.
37 dnl
38
39 AC_DEFUN([GNOME_LIBGTOP_TYPES],
40 [
41 AC_CHECK_HEADERS(sys/bitypes.h)
42 AC_LIBGTOP_CHECK_TYPE(u_int64_t, unsigned long long int)
43 AC_LIBGTOP_CHECK_TYPE(int64_t, signed long long int)
44 ])
45
46 dnl
47 dnl GNOME_LIBGTOP_HOOK (minversion, script-if-libgtop-enabled, failflag)
48 dnl
49 dnl if failflag is "fail" then GNOME_LIBGTOP_HOOK will abort if LibGTop
50 dnl is not found.
51 dnl
52
53 AC_DEFUN([GNOME_LIBGTOP_HOOK],
54 [
55 AC_REQUIRE([GNOME_LIBGTOP_TYPES])
56
57 AC_SUBST(LIBGTOP_LIBDIR)
58 AC_SUBST(LIBGTOP_INCLUDEDIR)
59 AC_SUBST(LIBGTOP_EXTRA_LIBS)
60 AC_SUBST(LIBGTOP_LIBS)
61 AC_SUBST(LIBGTOP_INCS)
62 AC_SUBST(LIBGTOP_NAMES_LIBS)
63 AC_SUBST(LIBGTOP_NAMES_INCS)
64 AC_SUBST(LIBGTOP_MAJOR_VERSION)
65 AC_SUBST(LIBGTOP_MINOR_VERSION)
66 AC_SUBST(LIBGTOP_MICRO_VERSION)
67 AC_SUBST(LIBGTOP_VERSION)
68 AC_SUBST(LIBGTOP_VERSION_CODE)
69 AC_SUBST(LIBGTOP_SERVER_VERSION)
70 AC_SUBST(LIBGTOP_INTERFACE_AGE)
71 AC_SUBST(LIBGTOP_BINARY_AGE)
72 AC_SUBST(LIBGTOP_BINDIR)
73 AC_SUBST(LIBGTOP_SERVER)
74
75 dnl Get the cflags and libraries from the libgtop-config script
76 dnl
77 AC_ARG_WITH(libgtop,
78 [ --with-libgtop=PFX Prefix where LIBGTOP is installed (optional)],
79 libgtop_config_prefix="$withval", libgtop_config_prefix="")
80 AC_ARG_WITH(libgtop-exec,
81 [ --with-libgtop-exec=PFX Exec prefix where LIBGTOP is installed (optional)],
82 libgtop_config_exec_prefix="$withval", libgtop_config_exec_prefix="")
83
84 if test x$libgtop_config_exec_prefix != x ; then
85 libgtop_config_args="$libgtop_config_args --exec-prefix=$libgtop_config_exec_prefix"
86 if test x${LIBGTOP_CONFIG+set} != xset ; then
87 LIBGTOP_CONFIG=$libgtop_config_exec_prefix/bin/libgtop-config
88 fi
89 fi
90 if test x$libgtop_config_prefix != x ; then
91 libgtop_config_args="$libgtop_config_args --prefix=$libgtop_config_prefix"
92 if test x${LIBGTOP_CONFIG+set} != xset ; then
93 LIBGTOP_CONFIG=$libgtop_config_prefix/bin/libgtop-config
94 fi
95 fi
96
97 AC_PATH_PROG(LIBGTOP_CONFIG, libgtop-config, no)
98 dnl IMPORTANT NOTICE:
99 dnl If you increase this number here, this means that *ALL*
100 dnl modules will require the new version, even if they explicitly
101 dnl give a lower number in their `configure.in' !!!
102 real_min_libgtop_version=1.0.0
103 min_libgtop_version=ifelse([$1], ,$real_min_libgtop_version,$1)
104 dnl I know, the following code looks really ugly, but if you want
105 dnl to make changes, please test it with a brain-dead /bin/sh and
106 dnl with a brain-dead /bin/test (not all shells/tests support the
107 dnl `<' operator to compare strings, that's why I convert everything
108 dnl into numbers and test them).
109 min_libgtop_major=`echo $min_libgtop_version | \
110 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
111 min_libgtop_minor=`echo $min_libgtop_version | \
112 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
113 min_libgtop_micro=`echo $min_libgtop_version | \
114 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
115 test x$min_libgtop_micro = x && min_libgtop_micro=0
116 real_min_libgtop_major=`echo $real_min_libgtop_version | \
117 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
118 real_min_libgtop_minor=`echo $real_min_libgtop_version | \
119 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
120 real_min_libgtop_micro=`echo $real_min_libgtop_version | \
121 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
122 test x$real_min_libgtop_micro = x && real_min_libgtop_micro=0
123 dnl You cannot require a version less then $real_min_libgtop_version,
124 dnl so you don't need to update each `configure.in' when it's increased.
125 if test $real_min_libgtop_major -gt $min_libgtop_major ; then
126 min_libgtop_major=$real_min_libgtop_major
127 min_libgtop_minor=$real_min_libgtop_minor
128 min_libgtop_micro=$real_min_libgtop_micro
129 elif test $real_min_libgtop_major = $min_libgtop_major ; then
130 if test $real_min_libgtop_minor -gt $min_libgtop_minor ; then
131 min_libgtop_minor=$real_min_libgtop_minor
132 min_libgtop_micro=$real_min_libgtop_micro
133 elif test $real_min_libgtop_minor = $min_libgtop_minor ; then
134 if test $real_min_libgtop_micro -gt $min_libgtop_micro ; then
135 min_libgtop_micro=$real_min_libgtop_micro
136 fi
137 fi
138 fi
139 min_libgtop_version="$min_libgtop_major.$min_libgtop_minor.$min_libgtop_micro"
140 AC_MSG_CHECKING(for libgtop - version >= $min_libgtop_version)
141 no_libgtop=""
142 if test "$LIBGTOP_CONFIG" = "no" ; then
143 no_libgtop=yes
144 else
145 configfile=`$LIBGTOP_CONFIG --config`
146 libgtop_major_version=`$LIBGTOP_CONFIG --version | \
147 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
148 libgtop_minor_version=`$LIBGTOP_CONFIG --version | \
149 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
150 libgtop_micro_version=`$LIBGTOP_CONFIG --version | \
151 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
152 if test $libgtop_major_version != $min_libgtop_major ; then
153 no_libgtop=mismatch
154 else
155 test $libgtop_minor_version -lt $min_libgtop_minor && no_libgtop=yes
156 if test $libgtop_minor_version = $min_libgtop_minor ; then
157 test $libgtop_micro_version -lt $min_libgtop_micro && no_libgtop=yes
158 fi
159 fi
160 . $configfile
161 fi
162 if test x$no_libgtop = x ; then
163 AC_DEFINE(HAVE_LIBGTOP)
164 AC_DEFINE_UNQUOTED(LIBGTOP_VERSION, "$LIBGTOP_VERSION")
165 AC_DEFINE_UNQUOTED(LIBGTOP_VERSION_CODE, $LIBGTOP_VERSION_CODE)
166 AC_DEFINE_UNQUOTED(LIBGTOP_MAJOR_VERSION, $LIBGTOP_MAJOR_VERSION)
167 AC_DEFINE_UNQUOTED(LIBGTOP_MINOR_VERSION, $LIBGTOP_MINOR_VERSION)
168 AC_DEFINE_UNQUOTED(LIBGTOP_MICRO_VERSION, $LIBGTOP_MICRO_VERSION)
169 AC_DEFINE_UNQUOTED(LIBGTOP_SERVER_VERSION, $LIBGTOP_SERVER_VERSION)
170 AC_MSG_RESULT(yes)
171 dnl Note that an empty true branch is not valid sh syntax.
172 ifelse([$2], [], :, [$2])
173 else
174 AC_MSG_RESULT(no)
175 if test "$no_libgtop"x = mismatchx; then
176 AC_MSG_ERROR(LibGTop major version mismatch $libgtop_major_version != $min_libgtop_major)
177 fi
178 if test "x$3" = "xfail"; then
179 AC_MSG_ERROR(LibGTop >= $min_libgtop_version not found)
180 else
181 AC_MSG_WARN(LibGTop >= $min_libgtop_version not found)
182 fi
183 fi
184
185 AM_CONDITIONAL(HAVE_LIBGTOP, test x$no_libgtop != xyes)
186 ])
187
188 AC_DEFUN([GNOME_INIT_LIBGTOP],[
189 GNOME_LIBGTOP_HOOK($1,[ifelse([$3], [], :, [$3])],$2)
190 ])
191
192 dnl
193 dnl GNOME_LIBGTOP_DOCU
194 dnl
195 dnl checks whether the documentation of LibGTop is installed
196 dnl
197
198 AC_DEFUN([GNOME_LIBGTOP_DOCU],
199 [
200 AC_REQUIRE([GNOME_LIBGTOP_HOOK])
201
202 helpdir="$LIBGTOP_DATADIR/gnome/help/libgtop"
203
204 AC_MSG_CHECKING(whether you have the LibGTop Documentation)
205
206 if test -f "$helpdir/C/topic.dat" ; then
207 have_libgtop_docu=yes
208 AC_DEFINE(HAVE_LIBGTOP_DOCU)
209 else
210 have_libgtop_docu=no
211 fi
212
213 AC_MSG_RESULT($have_libgtop_docu)
214
215 AM_CONDITIONAL(HAVE_LIBGTOP_DOCU, test x$have_libgtop_docu = xyes)
216 ])
217
File macros/gnome-objc-checks.m4 deleted (index c69acb0..0000000)
1 AC_DEFUN([GNOME_CHECK_OBJC],
2 [
3 dnl Look for an ObjC compiler.
4 dnl FIXME: extend list of possible names of ObjC compilers.
5 AC_CHECK_PROGS(OBJC, $OBJC egcs, "")
6 if test "x$OBJC" = "x" ; then
7 AC_CHECK_PROGS(OBJC, $OBJC egcc, "")
8 if test "x$OBJC" = "x" ; then
9 AC_CHECK_PROGS(OBJC, $OBJC gcc, "")
10 fi
11 fi
12
13 AC_REQUIRE([GNOME_PTHREAD_CHECK])
14
15 OBJC_LIBS="-lobjc $PTHREAD_LIB"
16 AC_CHECK_FUNC(sched_yield,,[
17 AC_CHECK_LIB(rt,sched_yield,
18 OBJC_LIBS="$OBJC_LIBS -lrt",[
19 AC_CHECK_LIB(posix4,sched_yield,
20 OBJC_LIBS="$OBJC_LIBS -lposix4",,
21 $OBJC_LIBS)],
22 $OBJC_LIBS)])
23 AC_SUBST(OBJC_LIBS)
24
25 AC_CACHE_CHECK([if Objective C compiler ($OBJC) works],
26 ac_cv_prog_objc_works, [
27 if test -n "$OBJC"; then
28 cat > conftest.m <<EOF
29 #include <objc/Object.h>
30 @interface myRandomObj : Object
31 {
32 }
33 @end
34 @implementation myRandomObj
35 @end
36 int main () {
37 /* No, you are not seeing double. Remember that square brackets
38 are the autoconf m4 quotes. */
39 id myid = [[myRandomObj alloc]];
40 [[myid free]];
41 return 0;
42 }
43 EOF
44
45 $OBJC $CFLAGS -o conftest $LDFLAGS conftest.m $OBJC_LIBS 1>&AC_FD_CC 2>&1
46 result=$?
47 rm -f conftest*
48
49 if test $result -eq 0; then
50 ac_cv_prog_objc_works=yes
51 fi
52 else
53 ac_cv_prog_objc_works=no
54 fi
55 ])
56
57 AM_CONDITIONAL(OBJECTIVE_C, test x$ac_cv_prog_objc_works = xyes)
58 dnl Also set the shell variable OBJECTIVE_C to "yes" or "no".
59 OBJECTIVE_C=$ac_cv_prog_objc_works
60 ])
61
62 AC_DEFUN([GNOME_INIT_OBJC],
63 [
64 AC_MSG_CHECKING(for an obGnomeConf.sh)
65 my_gnome_libdir=`$GNOME_CONFIG --libdir`
66 if test -f $my_gnome_libdir/obGnomeConf.sh; then
67 . $my_gnome_libdir/obGnomeConf.sh
68 AC_MSG_RESULT(found $my_gnome_libdir)
69 ac_cv_have_gnome_objc=yes
70 else
71 AC_MSG_RESULT(not found)
72 AC_MSG_WARN(Could not find the obGnomeConf.sh file that is generated by gnome-objc install)
73 ac_cv_have_gnome_objc=no
74 fi
75
76 dnl Add a conditional on whether or not we have gnome-objc
77 AM_CONDITIONAL(HAVE_GNOME_OBJC, test x$ac_cv_have_gnome_objc = xyes)
78 HAVE_GNOME_OBJC=$ac_cv_have_gnome_objc
79
80 AC_SUBST(OBGNOME_INCLUDEDIR)
81 AC_SUBST(OBGNOME_LIBS)
82 AC_SUBST(OBGTK_LIBS)
83 ])
File macros/gnome-orbit-check.m4 deleted (index 54bf33a..0000000)
1 dnl
2 dnl GNOME_ORBIT_HOOK (script-if-orbit-found, failflag)
3 dnl
4 dnl if failflag is "failure" it aborts if orbit is not found.
5 dnl
6
7 AC_DEFUN([GNOME_ORBIT_HOOK],[
8 AC_PATH_PROG(ORBIT_CONFIG,orbit-config,no)
9 AC_PATH_PROG(ORBIT_IDL,orbit-idl,no)
10 AC_CACHE_CHECK([for working ORBit environment],gnome_cv_orbit_found,[
11 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
12 gnome_cv_orbit_found=no
13 else
14 gnome_cv_orbit_found=yes
15 fi
16 ])
17 AM_CONDITIONAL(HAVE_ORBIT, test x$gnome_cv_orbit_found = xyes)
18 if test x$gnome_cv_orbit_found = xyes; then
19 $1
20 ORBIT_CFLAGS=`orbit-config --cflags client server`
21 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
22 AC_SUBST(ORBIT_CFLAGS)
23 AC_SUBST(ORBIT_LIBS)
24 else
25 if test x$2 = xfailure; then
26 AC_MSG_ERROR(ORBit not installed or installation problem)
27 fi
28 fi
29 ])
30
31 AC_DEFUN([GNOME_ORBIT_CHECK], [
32 GNOME_ORBIT_HOOK([],failure)
33 ])
File macros/gnome-print-check.m4 deleted (index 7d98281..0000000)
1 # Configure paths for GNOME-PRINT
2 # Chris Lahey 99-2-5
3 # stolen from Manish Singh again
4 # stolen back from Frank Belew
5 # stolen from Manish Singh
6 # Shamelessly stolen from Owen Taylor
7
8 dnl AM_PATH_GNOME_PRINT([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
9 dnl Test for GNOME-PRINT, and define GNOME_PRINT_CFLAGS and GNOME_PRINT_LIBS
10 dnl
11 AC_DEFUN(AM_PATH_GNOME_PRINT,
12 [dnl
13 dnl Get the cflags and libraries from the gnome-config script
14 dnl
15 AC_ARG_WITH(gnome-print-prefix,[ --with-gnome-print-prefix=PFX Prefix where GNOME-PRINT is installed (optional)],
16 gnome_print_prefix="$withval", gnome_print_prefix="")
17 AC_ARG_WITH(gnome-print-exec-prefix,[ --with-gnome-print-exec-prefix=PFX Exec prefix where GNOME-PRINT is installed (optional)],
18 gnome_print_exec_prefix="$withval", gnome_print_exec_prefix="")
19 AC_ARG_ENABLE(gnome-printtest, [ --disable-gnome-printtest Do not try to compile and run a test GNOME-PRINT program],
20 , enable_gnome_printtest=yes)
21
22 if test x$gnome_print_exec_prefix != x ; then
23 gnome_print_args="$gnome_print_args --exec-prefix=$gnome_print_exec_prefix"
24 if test x${GNOME_CONFIG+set} != xset ; then
25 GNOME_CONFIG=$gnome_print_exec_prefix/bin/gnome-config
26 fi
27 fi
28 if test x$gnome_print_prefix != x ; then
29 gnome_print_args="$gnome_print_args --prefix=$gnome_print_prefix"
30 if test x${GNOME_CONFIG+set} != xset ; then
31 GNOME_CONFIG=$gnome_print_prefix/bin/gnome-config
32 fi
33 fi
34
35 AC_PATH_PROG(GNOME_CONFIG, gnome-config, no)
36 min_gnome_print_version=ifelse([$1], ,0.1.0,$1)
37 AC_MSG_CHECKING(for GNOME-PRINT - version >= $min_gnome_print_version)
38 no_gnome_print=""
39 if test "$GNOME_CONFIG" = "no" ; then
40 no_gnome_print=yes
41 else
42 GNOME_PRINT_CFLAGS=`$GNOME_CONFIG $gnome_printconf_args --cflags print`
43 GNOME_PRINT_LIBS=`$GNOME_CONFIG $gnome_printconf_args --libs print`
44
45 gnome_print_major_version=`$GNOME_CONFIG $gnome_print_args --version | \
46 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
47 gnome_print_minor_version=`$GNOME_CONFIG $gnome_print_args --version | \
48 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
49 gnome_print_micro_version=`$GNOME_CONFIG $gnome_print_config_args --version | \
50 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
51 if test "x$enable_gnome_printtest" = "xyes" ; then
52 ac_save_CFLAGS="$CFLAGS"
53 ac_save_LIBS="$LIBS"
54 CFLAGS="$CFLAGS $GNOME_PRINT_CFLAGS"
55 LIBS="$LIBS $GNOME_PRINT_LIBS"
56 dnl
57 dnl Now check if the installed GNOME-PRINT is sufficiently new. (Also sanity
58 dnl checks the results of gnome-config to some extent
59 dnl
60 rm -f conf.gnome_printtest
61 AC_TRY_RUN([
62 #include <stdio.h>
63 #include <stdlib.h>
64 #include <string.h>
65 #include <libgnomeprint/gnome-print.h>
66
67 static char*
68 my_strdup (char *str)
69 {
70 char *new_str;
71
72 if (str)
73 {
74 new_str = malloc ((strlen (str) + 1) * sizeof(char));
75 strcpy (new_str, str);
76 }
77 else
78 new_str = NULL;
79
80 return new_str;
81 }
82
83 int main ()
84 {
85 int major, minor, micro;
86 char *tmp_version;
87
88 system ("touch conf.gnome_printtest");
89
90 /* HP/UX 9 (%@#!) writes to sscanf strings */
91 tmp_version = my_strdup("$min_gnome_print_version");
92 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
93 printf("%s, bad version string\n", "$min_gnome_print_version");
94 exit(1);
95 }
96 return 0;
97 #if 0
98 if (($gnome_print_major_version > major) ||
99 (($gnome_print_major_version == major) && ($gnome_print_minor_version > minor)) ||
100 (($gnome_print_major_version == major) && ($gnome_print_minor_version == minor) && ($gnome_print_micro_version >= micro)))
101 {
102 return 0;
103 }
104 else
105 {
106 printf("\n*** 'gnome-config print --version' returned %d.%d.%d, but the minimum version\n", $gnome_print_major_version, $gnome_print_minor_version, $gnome_print_micro_version);
107 printf("*** of GNOME-PRINT required is %d.%d.%d. If gnome-config is correct, then it is\n", major, minor, micro);
108 printf("*** best to upgrade to the required version.\n");
109 printf("*** If gnome-config was wrong, set the environment variable GNOME_CONFIG\n");
110 printf("*** to point to the correct copy of gnome-config, and remove the file\n");
111 printf("*** config.cache before re-running configure\n");
112 return 1;
113 }
114 #endif
115 }
116
117 ],, no_gnome_print=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
118 CFLAGS="$ac_save_CFLAGS"
119 LIBS="$ac_save_LIBS"
120 fi
121 fi
122 if test "x$no_gnome_print" = x ; then
123 AC_MSG_RESULT(yes)
124 ifelse([$2], , :, [$2])
125 else
126 AC_MSG_RESULT(no)
127 if test "$GNOME_CONFIG" = "no" ; then
128 echo "*** The gnome-config script installed by GNOME-LIBS could not be found"
129 echo "*** If GNOME-PRINT was installed in PREFIX, make sure PREFIX/bin is in"
130 echo "*** your path, or set the GNOME_CONFIG environment variable to the"
131 echo "*** full path to gnome-config."
132 else
133 if test -f conf.gnome_printtest ; then
134 :
135 else
136 echo "*** Could not run GNOME-PRINT test program, checking why..."
137 CFLAGS="$CFLAGS $GNOME_PRINT_CFLAGS"
138 LIBS="$LIBS $GNOME_PRINT_LIBS"
139 AC_TRY_LINK([
140 #include <stdio.h>
141 #include <libgnomeprint/gnome-print.h>
142 ], [ return 0; ],
143 [ echo "*** The test program compiled, but did not run. This usually means"
144 echo "*** that the run-time linker is not finding GNOME-PRINT or finding the wrong"
145 echo "*** version of GNOME-PRINT. If it is not finding GNOME-PRINT, you'll need to set your"
146 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
147 echo "*** to the installed location Also, make sure you have run ldconfig if that"
148 echo "*** is required on your system"
149 echo "***"
150 echo "*** If you have an old version installed, it is best to remove it, although"
151 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
152 [ echo "*** The test program failed to compile or link. See the file config.log for the"
153 echo "*** exact error that occured. This usually means GNOME-PRINT was incorrectly installed"
154 echo "*** or that you have moved GNOME-PRINT since it was installed. In the latter case, you"
155 echo "*** may want to edit the gnome-config script: $GNOME_CONFIG" ])
156 CFLAGS="$ac_save_CFLAGS"
157 LIBS="$ac_save_LIBS"
158 fi
159 fi
160 GNOME_PRINT_CFLAGS=""
161 GNOME_PRINT_LIBS=""
162 ifelse([$3], , :, [$3])
163 fi
164 AC_SUBST(GNOME_PRINT_CFLAGS)
165 AC_SUBST(GNOME_PRINT_LIBS)
166 rm -f conf.gnome_printtest
167 ])
168
169 AC_DEFUN([GNOME_PRINT_CHECK], [
170 AM_PATH_GNOME_PRINT(0.1.0,,[AC_MSG_ERROR(GNOME-PRINT not found)])
171 ])
File macros/gnome-pthread-check.m4 deleted (index a4eb3b4..0000000)
1 dnl
2 dnl And better, use gthreads instead...
3 dnl
4
5 AC_DEFUN([GNOME_PTHREAD_CHECK],[
6 PTHREAD_LIB=""
7 AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIB="-lpthread",
8 [AC_CHECK_LIB(pthreads, pthread_create, PTHREAD_LIB="-lpthreads",
9 [AC_CHECK_LIB(c_r, pthread_create, PTHREAD_LIB="-lc_r",
10 [AC_CHECK_FUNC(pthread_create)]
11 )]
12 )]
13 )
14 AC_SUBST(PTHREAD_LIB)
15 AC_PROVIDE([GNOME_PTHREAD_CHECK])
16 ])
File macros/gnome-support.m4 deleted (index 2c1d049..0000000)
1 dnl GNOME_SUPPORT_CHECKS
2 dnl Check for various support functions needed by the standard
3 dnl Gnome libraries. Sets LIBOBJS, might define some macros.
4 dnl This should only be used when building the Gnome libs;
5 dnl Gnome clients should not need this macro.
6 AC_DEFUN([GNOME_SUPPORT_CHECKS],[
7 # we need an `awk' to build `gnomesupport.h'
8 AC_REQUIRE([AC_PROG_AWK])
9
10 # this should go away soon
11 need_gnome_support=yes
12
13 save_LIBOBJS="$LIBOBJS"
14 LIBOBJS=
15
16 AC_CHECK_FUNCS(getopt_long,,LIBOBJS="$LIBOBJS getopt.o getopt1.o")
17
18 # for `scandir'
19 AC_HEADER_DIRENT
20
21 # copied from `configure.in' of `libiberty'
22 vars="program_invocation_short_name program_invocation_name sys_errlist"
23 for v in $vars; do
24 AC_MSG_CHECKING([for $v])
25 AC_CACHE_VAL(gnome_cv_var_$v,
26 [AC_TRY_LINK([int *p;], [extern int $v; p = &$v;],
27 [eval "gnome_cv_var_$v=yes"],
28 [eval "gnome_cv_var_$v=no"])])
29 if eval "test \"`echo '$gnome_cv_var_'$v`\" = yes"; then
30 AC_MSG_RESULT(yes)
31 n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
32 AC_DEFINE_UNQUOTED($n)
33 else
34 AC_MSG_RESULT(no)
35 fi
36 done
37
38 AC_REPLACE_FUNCS(memmove mkstemp scandir strcasecmp strerror strndup strnlen)
39 AC_REPLACE_FUNCS(strtok_r strtod strtol strtoul vasprintf vsnprintf)
40
41 AC_CHECK_FUNCS(realpath,,LIBOBJS="$LIBOBJS canonicalize.o")
42
43 # to include `error.c' error.c has some HAVE_* checks
44 AC_CHECK_FUNCS(vprintf doprnt strerror_r)
45 AM_FUNC_ERROR_AT_LINE
46
47 # This is required if we declare setreuid () and setregid ().
48 AC_TYPE_UID_T
49
50 # see if we need to declare some functions. Solaris is notorious for
51 # putting functions into the `libc' but not listing them in the headers
52 AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h dirent.h)
53 GCC_NEED_DECLARATIONS(gethostname setreuid setregid getpagesize)
54 GCC_NEED_DECLARATION(scandir,[
55 #ifdef HAVE_DIRENT_H
56 #include <dirent.h>
57 #endif
58 ])
59
60 # Turn our LIBOBJS into libtool objects. This is gross, but it
61 # requires changes to autoconf before it goes away.
62 LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/.lo/g'`
63 AC_SUBST(need_gnome_support)
64 AC_SUBST(LTLIBOBJS)
65
66 LIBOBJS="$save_LIBOBJS"
67 AM_CONDITIONAL(BUILD_GNOME_SUPPORT, test "$need_gnome_support" = yes)
68 ])
File macros/gnome-undelfs.m4 deleted (index c8ea6f4..0000000)
1 dnl GNOME_UNDELFS_CHECKS
2 dnl Check for ext2fs undel support.
3 dnl Set shell variable ext2fs_undel to "yes" if we have it,
4 dnl "no" otherwise. May define USE_EXT2FSLIB for cpp.
5 dnl Will set EXT2FS_UNDEL_LIBS to required libraries.
6
7 AC_DEFUN([GNOME_UNDELFS_CHECKS], [
8 AC_CHECK_HEADERS(ext2fs/ext2fs.h linux/ext2_fs.h)
9 ext2fs_undel=no
10 EXT2FS_UNDEL_LIBS=
11 if test x$ac_cv_header_ext2fs_ext2fs_h = xyes
12 then
13 if test x$ac_cv_header_linux_ext2_fs_h = xyes
14 then
15 AC_DEFINE(USE_EXT2FSLIB)
16 ext2fs_undel=yes
17 EXT2FS_UNDEL_LIBS="-lext2fs -lcom_err"
18 fi
19 fi
20 ])
File macros/gnome-vfs.m4 deleted (index 137a39d..0000000)
1 dnl GNOME_VFS_CHECKS
2 dnl Check for various functions needed by libvfs.
3 dnl This has various effects:
4 dnl Sets GNOME_VFS_LIBS to libraries required
5 dnl Sets termnet to true or false depending on whether it is required.
6 dnl If yes, defines USE_TERMNET.
7 dnl Sets vfs_flags to "pretty" list of vfs implementations we include.
8 dnl Sets shell variable use_vfs to yes (default, --with-vfs) or
9 dnl "no" (--without-vfs).
10 dnl Calls AC_SUBST(mcserv), which is either empty or "mcserv".
11
12 dnl Private define
13 AC_DEFUN([GNOME_WITH_VFS],[
14 dnl FIXME: network checks should probably be in their own macro.
15 AC_CHECK_LIB(nsl, t_accept)
16 AC_CHECK_LIB(socket, socket)
17
18 have_socket=no
19 AC_CHECK_FUNCS(socket, have_socket=yes)
20 if test $have_socket = no; then
21 # socket is not in the default libraries. See if it's in some other.
22 for lib in bsd socket inet; do
23 AC_CHECK_LIB($lib, socket, [
24 LIBS="$LIBS -l$lib"
25 have_socket=yes
26 AC_DEFINE(HAVE_SOCKET)
27 break])
28 done
29 fi
30
31 have_gethostbyname=no
32 AC_CHECK_FUNC(gethostbyname, have_gethostbyname=yes)
33 if test $have_gethostbyname = no; then
34 # gethostbyname is not in the default libraries. See if it's in some other.
35 for lib in bsd socket inet; do
36 AC_CHECK_LIB($lib, gethostbyname, [LIBS="$LIBS -l$lib"; have_gethostbyname=yes; break])
37 done
38 fi
39
40 vfs_flags="tarfs"
41 use_net_code=false
42 if test $have_socket = yes; then
43 AC_STRUCT_LINGER
44 AC_CHECK_FUNCS(pmap_set, , [
45 AC_CHECK_LIB(rpc, pmap_set, [
46 LIBS="-lrpc $LIBS"
47 AC_DEFINE(HAVE_PMAP_SET)
48 ])])
49 AC_CHECK_FUNCS(pmap_getport pmap_getmaps rresvport)
50 dnl add for source routing support setsockopt
51 AC_CHECK_HEADERS(rpc/pmap_clnt.h)
52 vfs_flags="$vfs_flags, mcfs, ftpfs, fish"
53 use_net_code=true
54 fi
55
56 dnl
57 dnl Samba support
58 dnl
59 smbfs=""
60 SAMBAFILES=""
61 AC_ARG_WITH(samba,
62 [--with-samba Support smb virtual file system],[
63 if test "x$withval != xno"; then
64 AC_DEFINE(WITH_SMBFS)
65 vfs_flags="$vfs_flags, smbfs"
66 smbfs="smbfs.o"
67 SAMBAFILES="\$(SAMBAFILES)"
68 fi
69 ])
70 AC_SUBST(smbfs)
71 AC_SUBST(SAMBAFILES)
72
73 dnl
74 dnl The termnet support
75 dnl
76 termnet=false
77 AC_ARG_WITH(termnet,
78 [--with-termnet If you want a termified net support],[
79 if test x$withval = xyes; then
80 AC_DEFINE(USE_TERMNET)
81 termnet=true
82 fi
83 ])
84
85 TERMNET=""
86 AC_DEFINE(USE_VFS)
87 if $use_net_code; then
88 AC_DEFINE(USE_NETCODE)
89 fi
90 mcserv=
91 if test $have_socket = yes; then
92 mcserv="mcserv"
93 if $termnet; then
94 TERMNET="-ltermnet"
95 fi
96 fi
97
98 AC_SUBST(TERMNET)
99 AC_SUBST(mcserv)
100
101 dnl FIXME:
102 dnl GNOME_VFS_LIBS=
103
104 ])
105
106 AC_DEFUN([GNOME_VFS_CHECKS],[
107 use_vfs=yes
108 AC_ARG_WITH(vfs,
109 [--with-vfs Compile with the VFS code],
110 use_vfs=$withval
111 )
112 case $use_vfs in
113 yes) GNOME_WITH_VFS;;
114 no) use_vfs=no;;
115 *) use_vfs=no;;
116 dnl Should we issue a warning?
117 esac
118 ])
119
120
File macros/gnome-x-checks.m4 deleted (index 1e397ef..0000000)
1 dnl GNOME_X_CHECKS
2 dnl
3 dnl Basic X11 related checks for X11. At the end, the following will be
4 dnl defined/changed:
5 dnl GTK_{CFLAGS,LIBS} From AM_PATH_GTK
6 dnl CPPFLAGS Will include $X_CFLAGS
7 dnl GNOME_HAVE_SM `true' or `false' depending on whether session
8 dnl management is available. It is available if
9 dnl both -lSM and X11/SM/SMlib.h exist. (Some
10 dnl Solaris boxes have the library but not the header)
11 dnl XPM_LIBS -lXpm if Xpm library is present, otherwise ""
12 dnl
13 dnl The following configure cache variables are defined (but not used):
14 dnl gnome_cv_passdown_{x_libs,X_LIBS,X_CFLAGS}
15 dnl
16 AC_DEFUN([GNOME_X_CHECKS],
17 [
18 AM_PATH_GTK(1.2.0,,AC_MSG_ERROR(GTK not installed, or gtk-config not in path))
19 dnl Hope that GTK_CFLAGS have only -I and -D. Otherwise, we could
20 dnl test -z "$x_includes" || CPPFLAGS="$CPPFLAGS -I$x_includes"
21 dnl
22 dnl Use CPPFLAGS instead of CFLAGS because AC_CHECK_HEADERS uses
23 dnl CPPFLAGS, not CFLAGS
24 CPPFLAGS="$CPPFLAGS $GTK_CFLAGS"
25
26 saved_ldflags="$LDFLAGS"
27 LDFLAGS="$LDFLAGS $GTK_LIBS"
28
29 gnome_cv_passdown_x_libs="$GTK_LIBS"
30 gnome_cv_passdown_X_LIBS="$GTK_LIBS"
31 gnome_cv_passdown_X_CFLAGS="$GTK_CFLAGS"
32 gnome_cv_passdown_GTK_LIBS="$GTK_LIBS"
33
34 LDFLAGS="$saved_ldflags $GTK_LIBS"
35
36 dnl We are requiring GTK >= 1.1.1, which means this will be fine anyhow.
37 USE_DEVGTK=true
38
39 dnl AC_MSG_CHECKING([whether to use features from (unstable) GTK+ 1.1.x])
40 dnl AC_EGREP_CPP(answer_affirmatively,
41 dnl [#include <gtk/gtkfeatures.h>
42 dnl #ifdef GTK_HAVE_FEATURES_1_1_0
43 dnl answer_affirmatively
44 dnl #endif
45 dnl ], dev_gtk=yes, dev_gtk=no)
46 dnl if test "$dev_gtk" = "yes"; then
47 dnl USE_DEVGTK=true
48 dnl fi
49 dnl AC_MSG_RESULT("$dev_gtk")
50
51 GNOME_HAVE_SM=true
52 case "$GTK_LIBS" in
53 *-lSM*)
54 dnl Already found it.
55 ;;
56 *)
57 dnl Assume that if we have -lSM then we also have -lICE.
58 AC_CHECK_LIB(SM, SmcSaveYourselfDone,
59 [GTK_LIBS="-lSM -lICE $GTK_LIBS"],GNOME_HAVE_SM=false,
60 $x_libs -lICE)
61 ;;
62 esac
63
64 if test "$GNOME_HAVE_SM" = true; then
65 AC_CHECK_HEADERS(X11/SM/SMlib.h,,GNOME_HAVE_SM=false)
66 fi
67
68 if test "$GNOME_HAVE_SM" = true; then
69 AC_DEFINE(HAVE_LIBSM)
70 fi
71
72 XPM_LIBS=""
73 AC_CHECK_LIB(Xpm, XpmFreeXpmImage, [XPM_LIBS="-lXpm"], , $x_libs)
74 AC_SUBST(XPM_LIBS)
75
76 AC_REQUIRE([GNOME_PTHREAD_CHECK])
77 LDFLAGS="$saved_ldflags"
78
79 AC_PROVIDE([GNOME_X_CHECKS])
80 ])
File macros/gnome-xml-check.m4 deleted (index 4bc91d1..0000000)
1 dnl
2 dnl GNOME_XML_HOOK (script-if-xml-found, failflag)
3 dnl
4 dnl If failflag is "failure", script aborts due to lack of XML
5 dnl
6 dnl Check for availability of the libxml library
7 dnl the XML parser uses libz if available too
8 dnl
9
10 AC_DEFUN([GNOME_XML_HOOK],[
11 AC_PATH_PROG(GNOME_CONFIG,gnome-config,no)
12 if test "$GNOME_CONFIG" = no; then
13 if test x$2 = xfailure; then
14 AC_MSG_ERROR(Could not find gnome-config)
15 fi
16 fi
17 AC_CHECK_LIB(xml, xmlNewDoc, [
18 $1
19 GNOME_XML_LIB=`$GNOME_CONFIG --libs xml`
20 ], [
21 if test x$2 = xfailure; then
22 AC_MSG_ERROR(Could not link sample xml program)
23 fi
24 ], `$GNOME_CONFIG --libs xml`)
25 AC_SUBST(GNOME_XML_LIB)
26 ])
27
28 AC_DEFUN([GNOME_XML_CHECK], [
29 GNOME_XML_HOOK([],failure)
30 ])
File macros/gnome.m4 deleted (index 659c22c..0000000)
1 dnl
2 dnl GNOME_INIT_HOOK (script-if-gnome-enabled, [failflag], [additional-inits])
3 dnl
4 dnl if failflag is "fail" then GNOME_INIT_HOOK will abort if gnomeConf.sh
5 dnl is not found.
6 dnl
7
8 AC_DEFUN([GNOME_INIT_HOOK],[
9 AC_SUBST(GNOME_LIBS)
10 AC_SUBST(GNOMEUI_LIBS)
11 AC_SUBST(GNOMEGNORBA_LIBS)
12 AC_SUBST(GTKXMHTML_LIBS)
13 AC_SUBST(ZVT_LIBS)
14 AC_SUBST(GNOME_LIBDIR)
15 AC_SUBST(GNOME_INCLUDEDIR)
16
17 AC_ARG_WITH(gnome-includes,
18 [ --with-gnome-includes Specify location of GNOME headers],[
19 CFLAGS="$CFLAGS -I$withval"
20 ])
21
22 AC_ARG_WITH(gnome-libs,
23 [ --with-gnome-libs Specify location of GNOME libs],[
24 LDFLAGS="$LDFLAGS -L$withval"
25 gnome_prefix=$withval
26 ])
27
28 AC_ARG_WITH(gnome,
29 [ --with-gnome Specify prefix for GNOME files],
30 if test x$withval = xyes; then
31 want_gnome=yes
32 dnl Note that an empty true branch is not
33 dnl valid sh syntax.
34 ifelse([$1], [], :, [$1])
35 else
36 if test "x$withval" = xno; then
37 want_gnome=no
38 else
39 want_gnome=yes
40 LDFLAGS="$LDFLAGS -L$withval/lib"
41 CFLAGS="$CFLAGS -I$withval/include"
42 gnome_prefix=$withval/lib
43 fi
44 fi,
45 want_gnome=yes)
46
47 if test "x$want_gnome" = xyes; then
48
49 AC_PATH_PROG(GNOME_CONFIG,gnome-config,no)
50 if test "$GNOME_CONFIG" = "no"; then
51 no_gnome_config="yes"
52 else
53 AC_MSG_CHECKING(if $GNOME_CONFIG works)
54 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
55 AC_MSG_RESULT(yes)
56 GNOME_GNORBA_HOOK([],$2)
57 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
58 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
59 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
60 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
61 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
62 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
63 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
64 $1
65 else
66 AC_MSG_RESULT(no)
67 no_gnome_config="yes"
68 fi
69 fi
70
71 if test x$exec_prefix = xNONE; then
72 if test x$prefix = xNONE; then
73 gnome_prefix=$ac_default_prefix/lib
74 else
75 gnome_prefix=$prefix/lib
76 fi
77 else
78 gnome_prefix=`eval echo \`echo $libdir\``
79 fi
80
81 if test "$no_gnome_config" = "yes"; then
82 AC_MSG_CHECKING(for gnomeConf.sh file in $gnome_prefix)
83 if test -f $gnome_prefix/gnomeConf.sh; then
84 AC_MSG_RESULT(found)
85 echo "loading gnome configuration from" \
86 "$gnome_prefix/gnomeConf.sh"
87 . $gnome_prefix/gnomeConf.sh
88 $1
89 else
90 AC_MSG_RESULT(not found)
91 if test x$2 = xfail; then
92 AC_MSG_ERROR(Could not find the gnomeConf.sh file that is generated by gnome-libs install)
93 fi
94 fi
95 fi
96 fi
97
98 if test -n "$3"; then
99 n="$3"
100 for i in $n; do
101 AC_MSG_CHECKING(extra library \"$i\")
102 case $i in
103 applets)
104 AC_SUBST(GNOME_APPLETS_LIBS)
105 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
106 AC_MSG_RESULT($GNOME_APPLETS_LIBS);;
107 docklets)
108 AC_SUBST(GNOME_DOCKLETS_LIBS)
109 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
110 AC_MSG_RESULT($GNOME_DOCKLETS_LIBS);;
111 capplet)
112 AC_SUBST(GNOME_CAPPLET_LIBS)
113 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
114 AC_MSG_RESULT($GNOME_CAPPLET_LIBS);;
115 *)
116 AC_MSG_RESULT(unknown library)
117 esac
118 done
119 fi
120 ])
121
122 dnl
123 dnl GNOME_INIT ([additional-inits])
124 dnl
125
126 AC_DEFUN([GNOME_INIT],[
127 GNOME_INIT_HOOK([],fail,$1)
128 ])
File macros/gperf-check.m4 deleted (index 1b73d3f..0000000)
1 dnl
2 dnl AC_PROG_GPERF (MINIMUM-VERSION)
3 dnl
4 dnl Check for availability of gperf.
5 dnl Abort if not found or if current version is not up to par.
6 dnl
7
8 AC_DEFUN([AC_PROG_GPERF],[
9 AC_PATH_PROG(GPERF, gperf, no)
10 if test "$GPERF" = no; then
11 AC_MSG_ERROR(Could not find gperf)
12 fi
13 min_gperf_version=ifelse([$1], ,2.7,$1)
14 AC_MSG_CHECKING(for gperf - version >= $min_gperf_version)
15 gperf_major_version=`$GPERF --version | \
16 sed 's/GNU gperf \([[0-9]]*\).\([[0-9]]*\)/\1/'`
17 gperf_minor_version=`$GPERF --version | \
18 sed 's/GNU gperf \([[0-9]]*\).\([[0-9]]*\)/\2/'`
19 no_gperf=""
20 dnl
21 dnl Now check if the installed gperf is sufficiently new.
22 dnl
23 AC_TRY_RUN([
24 #include <stdio.h>
25 #include <stdlib.h>
26 #include <string.h>
27
28 static char*
29 my_strdup (char *str)
30 {
31 char *new_str;
32
33 if (str)
34 {
35 new_str = malloc ((strlen (str) + 1) * sizeof(char));
36 strcpy (new_str, str);
37 }
38 else
39 new_str = NULL;
40
41 return new_str;
42 }
43
44 int
45 main ()
46 {
47 char *tmp_version;
48
49 int major;
50 int minor;
51
52 /* HP/UX 9 (%@#!) writes to sscanf strings */
53 tmp_version = my_strdup("$min_gperf_version");
54 if (sscanf(tmp_version, "%d.%d", &major, &minor) != 2) {
55 printf ("%s, bad version string\n", "$min_gperf_version");
56 exit (1);
57 }
58
59 if (($gperf_major_version > major) ||
60 (($gperf_major_version == major) && ($gperf_minor_version >= minor))) {
61 return 0;
62 } else {
63 printf ("\n");
64 printf ("*** An old version of gperf ($gperf_major_version.$gperf_minor_version) was found.\n");
65 printf ("*** You need a version of gperf newer than %d.%d.%d. The latest version of\n",
66 major, minor);
67 printf ("*** gperf is always available from ftp://ftp.gnu.org.\n");
68 printf ("***\n");
69 return 1;
70 }
71 }
72 ],,no_gperf=yes,[/bin/true])
73 if test "x$no_gperf" = x ; then
74 AC_MSG_RESULT(yes)
75 else
76 AC_MSG_RESULT(no)
77 fi
78
79 ])
File macros/linger.m4 deleted (index dfa7c8a..0000000)
1 dnl
2 dnl Check for struct linger
3 dnl
4 AC_DEFUN(AC_STRUCT_LINGER, [
5 av_struct_linger=no
6 AC_MSG_CHECKING(struct linger is available)
7 AC_TRY_RUN([
8 #include <sys/types.h>
9 #include <sys/socket.h>
10
11 struct linger li;
12
13 main ()
14 {
15 li.l_onoff = 1;
16 li.l_linger = 120;
17 exit (0);
18 }
19 ],[
20 AC_DEFINE(HAVE_STRUCT_LINGER)
21 av_struct_linger=yes
22 ],[
23 av_struct_linger=no
24 ],[
25 av_struct_linger=no
26 ])
27 AC_MSG_RESULT($av_struct_linger)
28 ])
File macros/need-declaration.m4 deleted (index d5b7bc6..0000000)
1 dnl See whether we need a declaration for a function.
2 dnl GCC_NEED_DECLARATION(FUNCTION [, EXTRA-HEADER-FILES])
3 AC_DEFUN(GCC_NEED_DECLARATION,
4 [AC_MSG_CHECKING([whether $1 must be declared])
5 AC_CACHE_VAL(gcc_cv_decl_needed_$1,
6 [AC_TRY_COMPILE([
7 #include <stdio.h>
8 #ifdef HAVE_STRING_H
9 #include <string.h>
10 #else
11 #ifdef HAVE_STRINGS_H
12 #include <strings.h>
13 #endif
14 #endif
15 #ifdef HAVE_STDLIB_H
16 #include <stdlib.h>
17 #endif
18 #ifdef HAVE_UNISTD_H
19 #include <unistd.h>
20 #endif
21 $2],
22 [char *(*pfn) = (char *(*)) $1],
23 eval "gcc_cv_decl_needed_$1=no", eval "gcc_cv_decl_needed_$1=yes")])
24 if eval "test \"`echo '$gcc_cv_decl_needed_'$1`\" = yes"; then
25 AC_MSG_RESULT(yes)
26 gcc_need_declarations="$gcc_need_declarations $1"
27 gcc_tr_decl=NEED_DECLARATION_`echo $1 | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
28 AC_DEFINE_UNQUOTED($gcc_tr_decl)
29 else
30 AC_MSG_RESULT(no)
31 fi
32 ])dnl
33
34 dnl Check multiple functions to see whether each needs a declaration.
35 dnl GCC_NEED_DECLARATIONS(FUNCTION... [, EXTRA-HEADER-FILES])
36 AC_DEFUN(GCC_NEED_DECLARATIONS,
37 [for ac_func in $1
38 do
39 GCC_NEED_DECLARATION($ac_func, $2)
40 done
41 ]
42 )
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vide

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vide

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master