Lines 1-10209
Link Here
|
1 |
Index: Makefile.am |
|
|
2 |
=================================================================== |
3 |
|
4 |
|
5 |
--- /dev/null Fri Jun 8 19:07:45 2001 |
6 |
+++ Makefile.am Fri Jun 8 19:30:18 2001 |
7 |
@@ -0,0 +1,16 @@ |
8 |
+DATA_DIR=${prefix}/share/xmakemol |
9 |
+ELEM_FILE=$(DATA_DIR)/elements |
10 |
+ELEM = -DELEMENTS=\"${ELEM_FILE}\" |
11 |
+ |
12 |
+bin_PROGRAMS = xmakemol |
13 |
+xmakemol_SOURCES = animate.c bbox.c canvas.c control.c draw.c edit.c file.c frames.c gl_funcs.c help.c menus.c region.c rotate.c sort.c store.c track.c translate.c utils.c vectors.c view.c xmakemol.c bbox.h config.h draw.h globals.h view.h bonds.h defs.h gl_funcs.h vectors.h xm_logo.h elements |
14 |
+xmakemol_LDADD = @XM_LIBS@ @XT_LIBS@ @XPM_LIBS@ @XEXT_LIBS@ @X11_LIBS@ @GL_LIBS@ |
15 |
+ |
16 |
+file.o: file.c bonds.h defs.h draw.h globals.h view.h |
17 |
+ $(COMPILE) -c ${ELEM} $< |
18 |
+install-binPROGRAMS:$(bin_PROGRAMS) |
19 |
+ $(INSTALL_PROGRAM) $(top_builddir)/xmakemol $(prefix)/bin |
20 |
+install-data: |
21 |
+ -mkdir -p $(DATA_DIR) |
22 |
+ $(INSTALL_DATA) $(top_srcdir)/elements ${DATA_DIR} |
23 |
+install:install-binPROGRAMS install-data |
24 |
Index: Makefile.in |
25 |
=================================================================== |
26 |
|
27 |
|
28 |
--- /dev/null Fri Jun 8 19:07:45 2001 |
29 |
+++ Makefile.in Fri Jun 8 19:30:18 2001 |
30 |
@@ -0,0 +1,372 @@ |
31 |
+# Makefile.in generated automatically by automake 1.4 from Makefile.am |
32 |
+ |
33 |
+# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. |
34 |
+# This Makefile.in is free software; the Free Software Foundation |
35 |
+# gives unlimited permission to copy and/or distribute it, |
36 |
+# with or without modifications, as long as this notice is preserved. |
37 |
+ |
38 |
+# This program is distributed in the hope that it will be useful, |
39 |
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
40 |
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
41 |
+# PARTICULAR PURPOSE. |
42 |
+ |
43 |
+ |
44 |
+SHELL = @SHELL@ |
45 |
+ |
46 |
+srcdir = @srcdir@ |
47 |
+top_srcdir = @top_srcdir@ |
48 |
+VPATH = @srcdir@ |
49 |
+prefix = @prefix@ |
50 |
+exec_prefix = @exec_prefix@ |
51 |
+ |
52 |
+bindir = @bindir@ |
53 |
+sbindir = @sbindir@ |
54 |
+libexecdir = @libexecdir@ |
55 |
+datadir = @datadir@ |
56 |
+sysconfdir = @sysconfdir@ |
57 |
+sharedstatedir = @sharedstatedir@ |
58 |
+localstatedir = @localstatedir@ |
59 |
+libdir = @libdir@ |
60 |
+infodir = @infodir@ |
61 |
+mandir = @mandir@ |
62 |
+includedir = @includedir@ |
63 |
+oldincludedir = /usr/include |
64 |
+ |
65 |
+DESTDIR = |
66 |
+ |
67 |
+pkgdatadir = $(datadir)/@PACKAGE@ |
68 |
+pkglibdir = $(libdir)/@PACKAGE@ |
69 |
+pkgincludedir = $(includedir)/@PACKAGE@ |
70 |
+ |
71 |
+top_builddir = . |
72 |
+ |
73 |
+ACLOCAL = @ACLOCAL@ |
74 |
+AUTOCONF = @AUTOCONF@ |
75 |
+AUTOMAKE = @AUTOMAKE@ |
76 |
+AUTOHEADER = @AUTOHEADER@ |
77 |
+ |
78 |
+INSTALL = @INSTALL@ |
79 |
+INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) |
80 |
+INSTALL_DATA = @INSTALL_DATA@ |
81 |
+INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
82 |
+transform = @program_transform_name@ |
83 |
+ |
84 |
+NORMAL_INSTALL = : |
85 |
+PRE_INSTALL = : |
86 |
+POST_INSTALL = : |
87 |
+NORMAL_UNINSTALL = : |
88 |
+PRE_UNINSTALL = : |
89 |
+POST_UNINSTALL = : |
90 |
+build_alias = @build_alias@ |
91 |
+build_triplet = @build@ |
92 |
+host_alias = @host_alias@ |
93 |
+host_triplet = @host@ |
94 |
+target_alias = @target_alias@ |
95 |
+target_triplet = @target@ |
96 |
+CC = @CC@ |
97 |
+GL_LIBS = @GL_LIBS@ |
98 |
+MAKEINFO = @MAKEINFO@ |
99 |
+PACKAGE = @PACKAGE@ |
100 |
+VERSION = @VERSION@ |
101 |
+X11_LIBS = @X11_LIBS@ |
102 |
+XEXT_LIBS = @XEXT_LIBS@ |
103 |
+XM_LIBS = @XM_LIBS@ |
104 |
+XPM_LIBS = @XPM_LIBS@ |
105 |
+XT_LIBS = @XT_LIBS@ |
106 |
+X_LIBS = @X_LIBS@ |
107 |
+X_PRE_LIBS = @X_PRE_LIBS@ |
108 |
+ |
109 |
+DATA_DIR = ${prefix}/share/xmakemol |
110 |
+ELEM_FILE = $(DATA_DIR)/elements |
111 |
+ELEM = -DELEMENTS=\"${ELEM_FILE}\" |
112 |
+ |
113 |
+bin_PROGRAMS = xmakemol |
114 |
+xmakemol_SOURCES = animate.c bbox.c canvas.c control.c draw.c edit.c file.c frames.c gl_funcs.c help.c menus.c region.c rotate.c sort.c store.c track.c translate.c utils.c vectors.c view.c xmakemol.c bbox.h config.h draw.h globals.h view.h bonds.h defs.h gl_funcs.h vectors.h xm_logo.h elements |
115 |
+xmakemol_LDADD = @XM_LIBS@ @XT_LIBS@ @XPM_LIBS@ @XEXT_LIBS@ @X11_LIBS@ @GL_LIBS@ |
116 |
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
117 |
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs |
118 |
+CONFIG_HEADER = config.h |
119 |
+CONFIG_CLEAN_FILES = |
120 |
+PROGRAMS = $(bin_PROGRAMS) |
121 |
+ |
122 |
+ |
123 |
+DEFS = @DEFS@ -I. -I$(srcdir) -I. |
124 |
+CPPFLAGS = @CPPFLAGS@ |
125 |
+LDFLAGS = @LDFLAGS@ |
126 |
+LIBS = @LIBS@ |
127 |
+X_CFLAGS = @X_CFLAGS@ |
128 |
+X_EXTRA_LIBS = @X_EXTRA_LIBS@ |
129 |
+xmakemol_OBJECTS = animate.o bbox.o canvas.o control.o draw.o edit.o \ |
130 |
+file.o frames.o gl_funcs.o help.o menus.o region.o rotate.o sort.o \ |
131 |
+store.o track.o translate.o utils.o vectors.o view.o xmakemol.o |
132 |
+xmakemol_DEPENDENCIES = |
133 |
+xmakemol_LDFLAGS = |
134 |
+CFLAGS = @CFLAGS@ |
135 |
+COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) |
136 |
+CCLD = $(CC) |
137 |
+LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ |
138 |
+DIST_COMMON = README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \ |
139 |
+Makefile.am Makefile.in NEWS acconfig.h acinclude.m4 aclocal.m4 \ |
140 |
+config.guess config.h.in config.sub configure configure.in install-sh \ |
141 |
+missing mkinstalldirs |
142 |
+ |
143 |
+ |
144 |
+DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) |
145 |
+ |
146 |
+TAR = tar |
147 |
+GZIP_ENV = --best |
148 |
+SOURCES = $(xmakemol_SOURCES) |
149 |
+OBJECTS = $(xmakemol_OBJECTS) |
150 |
+ |
151 |
+all: all-redirect |
152 |
+.SUFFIXES: |
153 |
+.SUFFIXES: .S .c .o .s |
154 |
+$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) |
155 |
+ cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps Makefile |
156 |
+ |
157 |
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
158 |
+ cd $(top_builddir) \ |
159 |
+ && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status |
160 |
+ |
161 |
+$(ACLOCAL_M4): configure.in acinclude.m4 |
162 |
+ cd $(srcdir) && $(ACLOCAL) |
163 |
+ |
164 |
+config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) |
165 |
+ $(SHELL) ./config.status --recheck |
166 |
+$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) |
167 |
+ cd $(srcdir) && $(AUTOCONF) |
168 |
+ |
169 |
+config.h: stamp-h |
170 |
+ @if test ! -f $@; then \ |
171 |
+ rm -f stamp-h; \ |
172 |
+ $(MAKE) stamp-h; \ |
173 |
+ else :; fi |
174 |
+stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status |
175 |
+ cd $(top_builddir) \ |
176 |
+ && CONFIG_FILES= CONFIG_HEADERS=config.h \ |
177 |
+ $(SHELL) ./config.status |
178 |
+ @echo timestamp > stamp-h 2> /dev/null |
179 |
+$(srcdir)/config.h.in: $(srcdir)/stamp-h.in |
180 |
+ @if test ! -f $@; then \ |
181 |
+ rm -f $(srcdir)/stamp-h.in; \ |
182 |
+ $(MAKE) $(srcdir)/stamp-h.in; \ |
183 |
+ else :; fi |
184 |
+$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h |
185 |
+ cd $(top_srcdir) && $(AUTOHEADER) |
186 |
+ @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null |
187 |
+ |
188 |
+mostlyclean-hdr: |
189 |
+ |
190 |
+clean-hdr: |
191 |
+ |
192 |
+distclean-hdr: |
193 |
+ -rm -f config.h |
194 |
+ |
195 |
+maintainer-clean-hdr: |
196 |
+ |
197 |
+mostlyclean-binPROGRAMS: |
198 |
+ |
199 |
+clean-binPROGRAMS: |
200 |
+ -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) |
201 |
+ |
202 |
+distclean-binPROGRAMS: |
203 |
+ |
204 |
+maintainer-clean-binPROGRAMS: |
205 |
+ |
206 |
+uninstall-binPROGRAMS: |
207 |
+ @$(NORMAL_UNINSTALL) |
208 |
+ list='$(bin_PROGRAMS)'; for p in $$list; do \ |
209 |
+ rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ |
210 |
+ done |
211 |
+ |
212 |
+.c.o: |
213 |
+ $(COMPILE) -c $< |
214 |
+ |
215 |
+.s.o: |
216 |
+ $(COMPILE) -c $< |
217 |
+ |
218 |
+.S.o: |
219 |
+ $(COMPILE) -c $< |
220 |
+ |
221 |
+mostlyclean-compile: |
222 |
+ -rm -f *.o core *.core |
223 |
+ |
224 |
+clean-compile: |
225 |
+ |
226 |
+distclean-compile: |
227 |
+ -rm -f *.tab.c |
228 |
+ |
229 |
+maintainer-clean-compile: |
230 |
+ |
231 |
+xmakemol: $(xmakemol_OBJECTS) $(xmakemol_DEPENDENCIES) |
232 |
+ @rm -f xmakemol |
233 |
+ $(LINK) $(xmakemol_LDFLAGS) $(xmakemol_OBJECTS) $(xmakemol_LDADD) $(LIBS) |
234 |
+ |
235 |
+tags: TAGS |
236 |
+ |
237 |
+ID: $(HEADERS) $(SOURCES) $(LISP) |
238 |
+ list='$(SOURCES) $(HEADERS)'; \ |
239 |
+ unique=`for i in $$list; do echo $$i; done | \ |
240 |
+ awk ' { files[$$0] = 1; } \ |
241 |
+ END { for (i in files) print i; }'`; \ |
242 |
+ here=`pwd` && cd $(srcdir) \ |
243 |
+ && mkid -f$$here/ID $$unique $(LISP) |
244 |
+ |
245 |
+TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP) |
246 |
+ tags=; \ |
247 |
+ here=`pwd`; \ |
248 |
+ list='$(SOURCES) $(HEADERS)'; \ |
249 |
+ unique=`for i in $$list; do echo $$i; done | \ |
250 |
+ awk ' { files[$$0] = 1; } \ |
251 |
+ END { for (i in files) print i; }'`; \ |
252 |
+ test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \ |
253 |
+ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS) |
254 |
+ |
255 |
+mostlyclean-tags: |
256 |
+ |
257 |
+clean-tags: |
258 |
+ |
259 |
+distclean-tags: |
260 |
+ -rm -f TAGS ID |
261 |
+ |
262 |
+maintainer-clean-tags: |
263 |
+ |
264 |
+distdir = $(PACKAGE)-$(VERSION) |
265 |
+top_distdir = $(distdir) |
266 |
+ |
267 |
+# This target untars the dist file and tries a VPATH configuration. Then |
268 |
+# it guarantees that the distribution is self-contained by making another |
269 |
+# tarfile. |
270 |
+distcheck: dist |
271 |
+ -rm -rf $(distdir) |
272 |
+ GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz |
273 |
+ mkdir $(distdir)/=build |
274 |
+ mkdir $(distdir)/=inst |
275 |
+ dc_install_base=`cd $(distdir)/=inst && pwd`; \ |
276 |
+ cd $(distdir)/=build \ |
277 |
+ && ../configure --srcdir=.. --prefix=$$dc_install_base \ |
278 |
+ && $(MAKE) $(AM_MAKEFLAGS) \ |
279 |
+ && $(MAKE) $(AM_MAKEFLAGS) dvi \ |
280 |
+ && $(MAKE) $(AM_MAKEFLAGS) check \ |
281 |
+ && $(MAKE) $(AM_MAKEFLAGS) install \ |
282 |
+ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ |
283 |
+ && $(MAKE) $(AM_MAKEFLAGS) dist |
284 |
+ -rm -rf $(distdir) |
285 |
+ @banner="$(distdir).tar.gz is ready for distribution"; \ |
286 |
+ dashes=`echo "$$banner" | sed s/./=/g`; \ |
287 |
+ echo "$$dashes"; \ |
288 |
+ echo "$$banner"; \ |
289 |
+ echo "$$dashes" |
290 |
+dist: distdir |
291 |
+ -chmod -R a+r $(distdir) |
292 |
+ GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) |
293 |
+ -rm -rf $(distdir) |
294 |
+dist-all: distdir |
295 |
+ -chmod -R a+r $(distdir) |
296 |
+ GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) |
297 |
+ -rm -rf $(distdir) |
298 |
+distdir: $(DISTFILES) |
299 |
+ -rm -rf $(distdir) |
300 |
+ mkdir $(distdir) |
301 |
+ -chmod 777 $(distdir) |
302 |
+ @for file in $(DISTFILES); do \ |
303 |
+ d=$(srcdir); \ |
304 |
+ if test -d $$d/$$file; then \ |
305 |
+ cp -pr $$d/$$file $(distdir)/$$file; \ |
306 |
+ else \ |
307 |
+ test -f $(distdir)/$$file \ |
308 |
+ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ |
309 |
+ || cp -p $$d/$$file $(distdir)/$$file || :; \ |
310 |
+ fi; \ |
311 |
+ done |
312 |
+ |
313 |
+info-am: |
314 |
+info: info-am |
315 |
+dvi-am: |
316 |
+dvi: dvi-am |
317 |
+check-am: all-am |
318 |
+check: check-am |
319 |
+installcheck-am: |
320 |
+installcheck: installcheck-am |
321 |
+all-recursive-am: config.h |
322 |
+ $(MAKE) $(AM_MAKEFLAGS) all-recursive |
323 |
+ |
324 |
+install-exec-am: install-binPROGRAMS |
325 |
+install-exec: install-exec-am |
326 |
+ |
327 |
+install-data-am: |
328 |
+install-data: install-data-am |
329 |
+ |
330 |
+install-am: all-am |
331 |
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am |
332 |
+install: install-am |
333 |
+uninstall-am: uninstall-binPROGRAMS |
334 |
+uninstall: uninstall-am |
335 |
+all-am: Makefile $(PROGRAMS) config.h |
336 |
+all-redirect: all-am |
337 |
+install-strip: |
338 |
+ $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install |
339 |
+installdirs: |
340 |
+ $(mkinstalldirs) $(DESTDIR)$(bindir) |
341 |
+ |
342 |
+ |
343 |
+mostlyclean-generic: |
344 |
+ |
345 |
+clean-generic: |
346 |
+ |
347 |
+distclean-generic: |
348 |
+ -rm -f Makefile $(CONFIG_CLEAN_FILES) |
349 |
+ -rm -f config.cache config.log stamp-h stamp-h[0-9]* |
350 |
+ |
351 |
+maintainer-clean-generic: |
352 |
+mostlyclean-am: mostlyclean-hdr mostlyclean-binPROGRAMS \ |
353 |
+ mostlyclean-compile mostlyclean-tags \ |
354 |
+ mostlyclean-generic |
355 |
+ |
356 |
+mostlyclean: mostlyclean-am |
357 |
+ |
358 |
+clean-am: clean-hdr clean-binPROGRAMS clean-compile clean-tags \ |
359 |
+ clean-generic mostlyclean-am |
360 |
+ |
361 |
+clean: clean-am |
362 |
+ |
363 |
+distclean-am: distclean-hdr distclean-binPROGRAMS distclean-compile \ |
364 |
+ distclean-tags distclean-generic clean-am |
365 |
+ |
366 |
+distclean: distclean-am |
367 |
+ -rm -f config.status |
368 |
+ |
369 |
+maintainer-clean-am: maintainer-clean-hdr maintainer-clean-binPROGRAMS \ |
370 |
+ maintainer-clean-compile maintainer-clean-tags \ |
371 |
+ maintainer-clean-generic distclean-am |
372 |
+ @echo "This command is intended for maintainers to use;" |
373 |
+ @echo "it deletes files that may require special tools to rebuild." |
374 |
+ |
375 |
+maintainer-clean: maintainer-clean-am |
376 |
+ -rm -f config.status |
377 |
+ |
378 |
+.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \ |
379 |
+mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \ |
380 |
+maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \ |
381 |
+mostlyclean-compile distclean-compile clean-compile \ |
382 |
+maintainer-clean-compile tags mostlyclean-tags distclean-tags \ |
383 |
+clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \ |
384 |
+check-am installcheck-am installcheck all-recursive-am install-exec-am \ |
385 |
+install-exec install-data-am install-data install-am install \ |
386 |
+uninstall-am uninstall all-redirect all-am all installdirs \ |
387 |
+mostlyclean-generic distclean-generic clean-generic \ |
388 |
+maintainer-clean-generic clean mostlyclean distclean maintainer-clean |
389 |
+ |
390 |
+ |
391 |
+file.o: file.c bonds.h defs.h draw.h globals.h view.h |
392 |
+ $(COMPILE) -c ${ELEM} $< |
393 |
+install-binPROGRAMS:$(bin_PROGRAMS) |
394 |
+ $(INSTALL_PROGRAM) $(top_builddir)/xmakemol $(prefix)/bin |
395 |
+install-data: |
396 |
+ -mkdir -p $(DATA_DIR) |
397 |
+ $(INSTALL_DATA) $(top_srcdir)/elements ${DATA_DIR} |
398 |
+install:install-binPROGRAMS install-data |
399 |
+ |
400 |
+# Tell versions [3.59,3.63) of GNU make to not export all variables. |
401 |
+# Otherwise a system limit (for SysV at least) may be exceeded. |
402 |
+.NOEXPORT: |
403 |
Index: NEWS |
404 |
=================================================================== |
405 |
|
406 |
|
407 |
Index: acconfig.h |
408 |
=================================================================== |
409 |
|
410 |
|
411 |
--- /dev/null Fri Jun 8 19:07:45 2001 |
412 |
+++ acconfig.h Fri Jun 8 19:30:18 2001 |
413 |
@@ -0,0 +1,283 @@ |
414 |
+#undef HAVE_LIBGEN |
415 |
+#undef HAVE_MOTIF |
416 |
+#undef XPM |
417 |
+#undef VERSION |
418 |
+#undef GL |
419 |
+ |
420 |
+/* acconfig.h |
421 |
+ This file is in the public domain. |
422 |
+ |
423 |
+ Descriptive text for the C preprocessor macros that |
424 |
+ the distributed Autoconf macros can define. |
425 |
+ No software package will use all of them; autoheader copies the ones |
426 |
+ your configure.in uses into your configuration header file templates. |
427 |
+ |
428 |
+ The entries are in sort -df order: alphabetical, case insensitive, |
429 |
+ ignoring punctuation (such as underscores). Although this order |
430 |
+ can split up related entries, it makes it easier to check whether |
431 |
+ a given entry is in the file. |
432 |
+ |
433 |
+ Leave the following blank line there!! Autoheader needs it. */ |
434 |
+ |
435 |
+ |
436 |
+/* Define if on AIX 3. |
437 |
+ System headers sometimes define this. |
438 |
+ We just want to avoid a redefinition error message. */ |
439 |
+#ifndef _ALL_SOURCE |
440 |
+#undef _ALL_SOURCE |
441 |
+#endif |
442 |
+ |
443 |
+/* Define if using alloca.c. */ |
444 |
+#undef C_ALLOCA |
445 |
+ |
446 |
+/* Define if type char is unsigned and you are not using gcc. */ |
447 |
+#ifndef __CHAR_UNSIGNED__ |
448 |
+#undef __CHAR_UNSIGNED__ |
449 |
+#endif |
450 |
+ |
451 |
+/* Define if the closedir function returns void instead of int. */ |
452 |
+#undef CLOSEDIR_VOID |
453 |
+ |
454 |
+/* Define to empty if the keyword does not work. */ |
455 |
+#undef const |
456 |
+ |
457 |
+/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. |
458 |
+ This function is required for alloca.c support on those systems. */ |
459 |
+#undef CRAY_STACKSEG_END |
460 |
+ |
461 |
+/* Define for DGUX with <sys/dg_sys_info.h>. */ |
462 |
+#undef DGUX |
463 |
+ |
464 |
+/* Define if you have <dirent.h>. */ |
465 |
+#undef DIRENT |
466 |
+ |
467 |
+/* Define to the type of elements in the array set by `getgroups'. |
468 |
+ Usually this is either `int' or `gid_t'. */ |
469 |
+#undef GETGROUPS_T |
470 |
+ |
471 |
+/* Define if the `getloadavg' function needs to be run setuid or setgid. */ |
472 |
+#undef GETLOADAVG_PRIVILEGED |
473 |
+ |
474 |
+/* Define if the `getpgrp' function takes no argument. */ |
475 |
+#undef GETPGRP_VOID |
476 |
+ |
477 |
+/* Define to `int' if <sys/types.h> doesn't define. */ |
478 |
+#undef gid_t |
479 |
+ |
480 |
+/* Define if you have alloca, as a function or macro. */ |
481 |
+#undef HAVE_ALLOCA |
482 |
+ |
483 |
+/* Define if you have <alloca.h> and it should be used (not on Ultrix). */ |
484 |
+#undef HAVE_ALLOCA_H |
485 |
+ |
486 |
+/* Define if you don't have vprintf but do have _doprnt. */ |
487 |
+#undef HAVE_DOPRNT |
488 |
+ |
489 |
+/* Define if your system has a working fnmatch function. */ |
490 |
+#undef HAVE_FNMATCH |
491 |
+ |
492 |
+/* Define if your system has its own `getloadavg' function. */ |
493 |
+#undef HAVE_GETLOADAVG |
494 |
+ |
495 |
+/* Define if you have the getmntent function. */ |
496 |
+#undef HAVE_GETMNTENT |
497 |
+ |
498 |
+/* Define if the `long double' type works. */ |
499 |
+#undef HAVE_LONG_DOUBLE |
500 |
+ |
501 |
+/* Define if you support file names longer than 14 characters. */ |
502 |
+#undef HAVE_LONG_FILE_NAMES |
503 |
+ |
504 |
+/* Define if you have a working `mmap' system call. */ |
505 |
+#undef HAVE_MMAP |
506 |
+ |
507 |
+/* Define if system calls automatically restart after interruption |
508 |
+ by a signal. */ |
509 |
+#undef HAVE_RESTARTABLE_SYSCALLS |
510 |
+ |
511 |
+/* Define if your struct stat has st_blksize. */ |
512 |
+#undef HAVE_ST_BLKSIZE |
513 |
+ |
514 |
+/* Define if your struct stat has st_blocks. */ |
515 |
+#undef HAVE_ST_BLOCKS |
516 |
+ |
517 |
+/* Define if you have the strcoll function and it is properly defined. */ |
518 |
+#undef HAVE_STRCOLL |
519 |
+ |
520 |
+/* Define if your struct stat has st_rdev. */ |
521 |
+#undef HAVE_ST_RDEV |
522 |
+ |
523 |
+/* Define if you have the strftime function. */ |
524 |
+#undef HAVE_STRFTIME |
525 |
+ |
526 |
+/* Define if you have the ANSI # stringizing operator in cpp. */ |
527 |
+#undef HAVE_STRINGIZE |
528 |
+ |
529 |
+/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */ |
530 |
+#undef HAVE_SYS_WAIT_H |
531 |
+ |
532 |
+/* Define if your struct tm has tm_zone. */ |
533 |
+#undef HAVE_TM_ZONE |
534 |
+ |
535 |
+/* Define if you don't have tm_zone but do have the external array |
536 |
+ tzname. */ |
537 |
+#undef HAVE_TZNAME |
538 |
+ |
539 |
+/* Define if you have <unistd.h>. */ |
540 |
+#undef HAVE_UNISTD_H |
541 |
+ |
542 |
+/* Define if utime(file, NULL) sets file's timestamp to the present. */ |
543 |
+#undef HAVE_UTIME_NULL |
544 |
+ |
545 |
+/* Define if you have <vfork.h>. */ |
546 |
+#undef HAVE_VFORK_H |
547 |
+ |
548 |
+/* Define if you have the vprintf function. */ |
549 |
+#undef HAVE_VPRINTF |
550 |
+ |
551 |
+/* Define if you have the wait3 system call. */ |
552 |
+#undef HAVE_WAIT3 |
553 |
+ |
554 |
+/* Define as __inline if that's what the C compiler calls it. */ |
555 |
+#undef inline |
556 |
+ |
557 |
+/* Define if int is 16 bits instead of 32. */ |
558 |
+#undef INT_16_BITS |
559 |
+ |
560 |
+/* Define if long int is 64 bits. */ |
561 |
+#undef LONG_64_BITS |
562 |
+ |
563 |
+/* Define if major, minor, and makedev are declared in <mkdev.h>. */ |
564 |
+#undef MAJOR_IN_MKDEV |
565 |
+ |
566 |
+/* Define if major, minor, and makedev are declared in <sysmacros.h>. */ |
567 |
+#undef MAJOR_IN_SYSMACROS |
568 |
+ |
569 |
+/* Define if on MINIX. */ |
570 |
+#undef _MINIX |
571 |
+ |
572 |
+/* Define to `int' if <sys/types.h> doesn't define. */ |
573 |
+#undef mode_t |
574 |
+ |
575 |
+/* Define if you don't have <dirent.h>, but have <ndir.h>. */ |
576 |
+#undef NDIR |
577 |
+ |
578 |
+/* Define if you have <memory.h>, and <string.h> doesn't declare the |
579 |
+ mem* functions. */ |
580 |
+#undef NEED_MEMORY_H |
581 |
+ |
582 |
+/* Define if your struct nlist has an n_un member. */ |
583 |
+#undef NLIST_NAME_UNION |
584 |
+ |
585 |
+/* Define if you have <nlist.h>. */ |
586 |
+#undef NLIST_STRUCT |
587 |
+ |
588 |
+/* Define if your C compiler doesn't accept -c and -o together. */ |
589 |
+#undef NO_MINUS_C_MINUS_O |
590 |
+ |
591 |
+/* Define if your Fortran 77 compiler doesn't accept -c and -o together. */ |
592 |
+#undef F77_NO_MINUS_C_MINUS_O |
593 |
+ |
594 |
+/* Define to `long' if <sys/types.h> doesn't define. */ |
595 |
+#undef off_t |
596 |
+ |
597 |
+/* Define to `int' if <sys/types.h> doesn't define. */ |
598 |
+#undef pid_t |
599 |
+ |
600 |
+/* Define if the system does not provide POSIX.1 features except |
601 |
+ with this defined. */ |
602 |
+#undef _POSIX_1_SOURCE |
603 |
+ |
604 |
+/* Define if you need to in order for stat and other things to work. */ |
605 |
+#undef _POSIX_SOURCE |
606 |
+ |
607 |
+/* Define as the return type of signal handlers (int or void). */ |
608 |
+#undef RETSIGTYPE |
609 |
+ |
610 |
+/* Define to the type of arg1 for select(). */ |
611 |
+#undef SELECT_TYPE_ARG1 |
612 |
+ |
613 |
+/* Define to the type of args 2, 3 and 4 for select(). */ |
614 |
+#undef SELECT_TYPE_ARG234 |
615 |
+ |
616 |
+/* Define to the type of arg5 for select(). */ |
617 |
+#undef SELECT_TYPE_ARG5 |
618 |
+ |
619 |
+/* Define if the `setpgrp' function takes no argument. */ |
620 |
+#undef SETPGRP_VOID |
621 |
+ |
622 |
+/* Define if the setvbuf function takes the buffering type as its second |
623 |
+ argument and the buffer pointer as the third, as on System V |
624 |
+ before release 3. */ |
625 |
+#undef SETVBUF_REVERSED |
626 |
+ |
627 |
+/* Define to `unsigned' if <sys/types.h> doesn't define. */ |
628 |
+#undef size_t |
629 |
+ |
630 |
+/* If using the C implementation of alloca, define if you know the |
631 |
+ direction of stack growth for your system; otherwise it will be |
632 |
+ automatically deduced at run-time. |
633 |
+ STACK_DIRECTION > 0 => grows toward higher addresses |
634 |
+ STACK_DIRECTION < 0 => grows toward lower addresses |
635 |
+ STACK_DIRECTION = 0 => direction of growth unknown |
636 |
+ */ |
637 |
+#undef STACK_DIRECTION |
638 |
+ |
639 |
+/* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. */ |
640 |
+#undef STAT_MACROS_BROKEN |
641 |
+ |
642 |
+/* Define if you have the ANSI C header files. */ |
643 |
+#undef STDC_HEADERS |
644 |
+ |
645 |
+/* Define on System V Release 4. */ |
646 |
+#undef SVR4 |
647 |
+ |
648 |
+/* Define if you don't have <dirent.h>, but have <sys/dir.h>. */ |
649 |
+#undef SYSDIR |
650 |
+ |
651 |
+/* Define if you don't have <dirent.h>, but have <sys/ndir.h>. */ |
652 |
+#undef SYSNDIR |
653 |
+ |
654 |
+/* Define if `sys_siglist' is declared by <signal.h>. */ |
655 |
+#undef SYS_SIGLIST_DECLARED |
656 |
+ |
657 |
+/* Define if you can safely include both <sys/time.h> and <time.h>. */ |
658 |
+#undef TIME_WITH_SYS_TIME |
659 |
+ |
660 |
+/* Define if your <sys/time.h> declares struct tm. */ |
661 |
+#undef TM_IN_SYS_TIME |
662 |
+ |
663 |
+/* Define to `int' if <sys/types.h> doesn't define. */ |
664 |
+#undef uid_t |
665 |
+ |
666 |
+/* Define for Encore UMAX. */ |
667 |
+#undef UMAX |
668 |
+ |
669 |
+/* Define for Encore UMAX 4.3 that has <inq_status/cpustats.h> |
670 |
+ instead of <sys/cpustats.h>. */ |
671 |
+#undef UMAX4_3 |
672 |
+ |
673 |
+/* Define if you do not have <strings.h>, index, bzero, etc.. */ |
674 |
+#undef USG |
675 |
+ |
676 |
+/* Define vfork as fork if vfork does not work. */ |
677 |
+#undef vfork |
678 |
+ |
679 |
+/* Define if the closedir function returns void instead of int. */ |
680 |
+#undef VOID_CLOSEDIR |
681 |
+ |
682 |
+/* Define if your processor stores words with the most significant |
683 |
+ byte first (like Motorola and SPARC, unlike Intel and VAX). */ |
684 |
+#undef WORDS_BIGENDIAN |
685 |
+ |
686 |
+/* Define if the X Window System is missing or not being used. */ |
687 |
+#undef X_DISPLAY_MISSING |
688 |
+ |
689 |
+/* Define if lex declares yytext as a char * by default, not a char[]. */ |
690 |
+#undef YYTEXT_POINTER |
691 |
+ |
692 |
+ |
693 |
+/* Leave that blank line there!! Autoheader needs it. |
694 |
+ If you're adding to this file, keep in mind: |
695 |
+ The entries are in sort -df order: alphabetical, case insensitive, |
696 |
+ ignoring punctuation (such as underscores). */ |
697 |
Index: acinclude.m4 |
698 |
=================================================================== |
699 |
|
700 |
|
701 |
--- /dev/null Fri Jun 8 19:07:45 2001 |
702 |
+++ acinclude.m4 Fri Jun 8 19:30:18 2001 |
703 |
@@ -0,0 +1,910 @@ |
704 |
+dnl @(#)$Mu: mgv/acinclude.m4 1.5 1998/08/25 21:34:32 $ |
705 |
+dnl |
706 |
+dnl acinclude.m4 |
707 |
+dnl local automake/autoconf/m4 fun for mgv. |
708 |
+dnl |
709 |
+dnl Copyright (C) 1998 Eric A. Howe |
710 |
+dnl |
711 |
+dnl This program is free software; you can redistribute it and/or modify |
712 |
+dnl it under the terms of the GNU General Public License as published by |
713 |
+dnl the Free Software Foundation; either version 2 of the License, or |
714 |
+dnl (at your option) any later version. |
715 |
+dnl |
716 |
+dnl This program is distributed in the hope that it will be useful, |
717 |
+dnl but WITHOUT ANY WARRANTY; without even the implied warranty of |
718 |
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
719 |
+dnl GNU General Public License for more details. |
720 |
+dnl |
721 |
+dnl You should have received a copy of the GNU General Public License |
722 |
+dnl along with this program; if not, write to the Free Software |
723 |
+dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
724 |
+dnl |
725 |
+dnl Authors: Eric A. Howe (mu@trends.net) |
726 |
+dnl |
727 |
+ |
728 |
+dnl |
729 |
+dnl ICE_FIND_XPM |
730 |
+dnl --------------- |
731 |
+dnl |
732 |
+dnl Find Xpm libraries and headers. |
733 |
+dnl Put Xpm include directory in xpm_includes, |
734 |
+dnl put Xpm library directory in xpm_libraries, |
735 |
+dnl and add appropriate flags to X_CFLAGS and X_LIBS. |
736 |
+dnl |
737 |
+dnl Borrowed from DDD. |
738 |
+dnl |
739 |
+AC_DEFUN(ICE_FIND_XPM, |
740 |
+[ |
741 |
+AC_REQUIRE([AC_PATH_XTRA]) |
742 |
+xpm_includes= |
743 |
+xpm_libraries= |
744 |
+AC_ARG_WITH(xpm, |
745 |
+[ --without-xpm do not use the Xpm library]) |
746 |
+dnl Treat --without-xpm like |
747 |
+dnl --without-xpm-includes --without-xpm-libraries. |
748 |
+if test "$with_xpm" = "no" |
749 |
+then |
750 |
+xpm_includes=no |
751 |
+xpm_libraries=no |
752 |
+fi |
753 |
+AC_ARG_WITH(xpm-includes, |
754 |
+[ --with-xpm-includes=DIR Xpm include files are in DIR], |
755 |
+xpm_includes="$withval") |
756 |
+AC_ARG_WITH(xpm-libraries, |
757 |
+[ --with-xpm-libraries=DIR Xpm libraries are in DIR], |
758 |
+xpm_libraries="$withval") |
759 |
+AC_MSG_CHECKING(for Xpm) |
760 |
+# |
761 |
+# |
762 |
+# Search the include files. Note that XPM can come in <X11/xpm.h> (as |
763 |
+# in X11R6) or in <xpm.h> if installed locally. |
764 |
+# |
765 |
+if test "$xpm_includes" = ""; then |
766 |
+AC_CACHE_VAL(ice_cv_xpm_includes, |
767 |
+[ |
768 |
+ice_xpm_save_LIBS="$LIBS" |
769 |
+ice_xpm_save_CFLAGS="$CFLAGS" |
770 |
+ice_xpm_save_CPPFLAGS="$CPPFLAGS" |
771 |
+ice_xpm_save_LDFLAGS="$LDFLAGS" |
772 |
+# |
773 |
+LIBS="$X_PRE_LIBS -lXpm -lXt -lX11 $X_EXTRA_LIBS $LIBS" |
774 |
+CFLAGS="$X_CFLAGS $CFLAGS" |
775 |
+CPPFLAGS="$X_CFLAGS $CPPFLAGS" |
776 |
+LDFLAGS="$X_LIBS $LDFLAGS" |
777 |
+# |
778 |
+AC_TRY_COMPILE([ |
779 |
+#include <X11/xpm.h> |
780 |
+],[int a;], |
781 |
+[ |
782 |
+# X11/xpm.h is in the standard search path. |
783 |
+ice_cv_xpm_includes= |
784 |
+], |
785 |
+[ |
786 |
+# X11/xpm.h is not in the standard search path. |
787 |
+# Locate it and put its directory in `xpm_includes' |
788 |
+# |
789 |
+# /usr/include/Motif* are used on HP-UX (Motif). |
790 |
+# /usr/include/X11* are used on HP-UX (X and Xaw). |
791 |
+# /usr/dt is used on Solaris (Motif). |
792 |
+# /usr/openwin is used on Solaris (X and Xaw). |
793 |
+# Other directories are just guesses. |
794 |
+for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \ |
795 |
+ /usr/include/Motif2.0 /usr/include/Motif1.2 /usr/include/Motif1.1 \ |
796 |
+ /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 \ |
797 |
+ /usr/dt/include /usr/openwin/include \ |
798 |
+ /usr/dt/*/include /opt/*/include /usr/include/Motif* \ |
799 |
+ "${prefix}"/*/include /usr/*/include /usr/local/*/include \ |
800 |
+ "${prefix}"/include/* /usr/include/* /usr/local/include/*; do |
801 |
+if test -f "$dir/X11/xpm.h" || test -f "$dir/xpm.h"; then |
802 |
+ice_cv_xpm_includes="$dir" |
803 |
+break |
804 |
+fi |
805 |
+done |
806 |
+]) |
807 |
+# |
808 |
+LIBS="$ice_xpm_save_LIBS" |
809 |
+CFLAGS="$ice_xpm_save_CFLAGS" |
810 |
+CPPFLAGS="$ice_xpm_save_CPPFLAGS" |
811 |
+LDFLAGS="$ice_xpm_save_LDFLAGS" |
812 |
+]) |
813 |
+xpm_includes="$ice_cv_xpm_includes" |
814 |
+fi |
815 |
+# |
816 |
+# |
817 |
+# Now for the libraries. |
818 |
+# |
819 |
+if test "$xpm_libraries" = ""; then |
820 |
+AC_CACHE_VAL(ice_cv_xpm_libraries, |
821 |
+[ |
822 |
+ice_xpm_save_LIBS="$LIBS" |
823 |
+ice_xpm_save_CFLAGS="$CFLAGS" |
824 |
+ice_xpm_save_CPPFLAGS="$CPPFLAGS" |
825 |
+ice_xpm_save_LDFLAGS="$LDFLAGS" |
826 |
+# |
827 |
+LIBS="$X_PRE_LIBS -lXpm -lXt -lX11 $X_EXTRA_LIBS $LIBS" |
828 |
+CFLAGS="$X_CFLAGS $CFLAGS" |
829 |
+CPPFLAGS="$X_CFLAGS $CPPFLAGS" |
830 |
+LDFLAGS="$X_LIBS $LDFLAGS" |
831 |
+# |
832 |
+# |
833 |
+# We use XtToolkitInitialize() here since it takes no arguments |
834 |
+# and thus also works with a C++ compiler. |
835 |
+AC_TRY_LINK([ |
836 |
+#include <X11/Intrinsic.h> |
837 |
+#include <X11/xpm.h> |
838 |
+],[XtToolkitInitialize();], |
839 |
+[ |
840 |
+# libxpm.a is in the standard search path. |
841 |
+ice_cv_xpm_libraries= |
842 |
+], |
843 |
+[ |
844 |
+# libXpm.a is not in the standard search path. |
845 |
+# Locate it and put its directory in `xpm_libraries' |
846 |
+# |
847 |
+# |
848 |
+# /usr/lib/Motif* are used on HP-UX (Motif). |
849 |
+# /usr/lib/X11* are used on HP-UX (X and Xpm). |
850 |
+# /usr/dt is used on Solaris (Motif). |
851 |
+# /usr/openwin is used on Solaris (X and Xpm). |
852 |
+# Other directories are just guesses. |
853 |
+for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \ |
854 |
+ /usr/lib/Motif2.1 /usr/lib/Motif2.0 /usr/lib/Motif1.2 \ |
855 |
+ /usr/lib/Motif1.1 /usr/lib/X11R6 /usr/lib/X11R5 /usr/lib/X11R4 \ |
856 |
+ /usr/lib/X11 /usr/dt/lib /usr/openwin/lib \ |
857 |
+ /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \ |
858 |
+ "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \ |
859 |
+ "${prefix}"/lib/* /usr/lib/* /usr/local/lib/*; do |
860 |
+if test -d "$dir" && test "`ls $dir/libXpm.* 2> /dev/null`" != ""; then |
861 |
+ice_cv_xpm_libraries="$dir" |
862 |
+break |
863 |
+fi |
864 |
+done |
865 |
+]) |
866 |
+# |
867 |
+LIBS="$ice_xpm_save_LIBS" |
868 |
+CFLAGS="$ice_xpm_save_CFLAGS" |
869 |
+CPPFLAGS="$ice_xpm_save_CPPFLAGS" |
870 |
+LDFLAGS="$ice_xpm_save_LDFLAGS" |
871 |
+]) |
872 |
+# |
873 |
+xpm_libraries="$ice_cv_xpm_libraries" |
874 |
+fi |
875 |
+# |
876 |
+# Add Xpm definitions to X flags |
877 |
+# |
878 |
+if test "$xpm_includes" != "" && test "$xpm_includes" != "$x_includes" && test "$xpm_includes" != "no" |
879 |
+then |
880 |
+X_CFLAGS="-I$xpm_includes $X_CFLAGS" |
881 |
+fi |
882 |
+if test "$xpm_libraries" != "" && test "$xpm_libraries" != "$x_libraries" && test "$xpm_libraries" != "no" |
883 |
+then |
884 |
+case "$X_LIBS" in |
885 |
+ *-R\ *) X_LIBS="-L$xpm_libraries -R $xpm_libraries $X_LIBS";; |
886 |
+ *-R*) X_LIBS="-L$xpm_libraries -R$xpm_libraries $X_LIBS";; |
887 |
+ *) X_LIBS="-L$xpm_libraries $X_LIBS";; |
888 |
+esac |
889 |
+fi |
890 |
+# |
891 |
+# |
892 |
+xpm_libraries_result="$xpm_libraries" |
893 |
+xpm_includes_result="$xpm_includes" |
894 |
+test "$xpm_libraries_result" = "" && |
895 |
+ xpm_libraries_result="in default path" |
896 |
+test "$xpm_includes_result" = "" && |
897 |
+ xpm_includes_result="in default path" |
898 |
+test "$xpm_libraries_result" = "no" && |
899 |
+ xpm_libraries_result="(none)" |
900 |
+test "$xpm_includes_result" = "no" && |
901 |
+ xpm_includes_result="(none)" |
902 |
+AC_MSG_RESULT( |
903 |
+ [libraries $xpm_libraries_result, headers $xpm_includes_result]) |
904 |
+])dnl |
905 |
+ |
906 |
+dnl |
907 |
+dnl ICE_FIND_MOTIF |
908 |
+dnl -------------- |
909 |
+dnl |
910 |
+dnl Find Motif libraries and headers |
911 |
+dnl Put Motif include directory in motif_includes, |
912 |
+dnl put Motif library directory in motif_libraries, |
913 |
+dnl and add appropriate flags to X_CFLAGS and X_LIBS. |
914 |
+dnl |
915 |
+dnl Borrowed from DDD. |
916 |
+dnl |
917 |
+AC_DEFUN(ICE_FIND_MOTIF, |
918 |
+[ |
919 |
+AC_REQUIRE([AC_PATH_XTRA]) |
920 |
+motif_includes= |
921 |
+motif_libraries= |
922 |
+AC_ARG_WITH(motif-includes, |
923 |
+[ --with-motif-includes=DIR Motif include files are in DIR], |
924 |
+motif_includes="$withval") |
925 |
+AC_ARG_WITH(motif-libraries, |
926 |
+[ --with-motif-libraries=DIR Motif libraries are in DIR], |
927 |
+motif_libraries="$withval") |
928 |
+AC_MSG_CHECKING(for Motif) |
929 |
+# |
930 |
+# |
931 |
+# Search the include files. |
932 |
+# |
933 |
+if test "$motif_includes" = ""; then |
934 |
+AC_CACHE_VAL(ice_cv_motif_includes, |
935 |
+[ |
936 |
+ice_motif_save_LIBS="$LIBS" |
937 |
+ice_motif_save_CFLAGS="$CFLAGS" |
938 |
+ice_motif_save_CPPFLAGS="$CPPFLAGS" |
939 |
+ice_motif_save_LDFLAGS="$LDFLAGS" |
940 |
+# |
941 |
+LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS" |
942 |
+CFLAGS="$X_CFLAGS $CFLAGS" |
943 |
+CPPFLAGS="$X_CFLAGS $CPPFLAGS" |
944 |
+LDFLAGS="$X_LIBS $LDFLAGS" |
945 |
+# |
946 |
+AC_TRY_COMPILE([#include <Xm/Xm.h>],[int a;], |
947 |
+[ |
948 |
+# Xm/Xm.h is in the standard search path. |
949 |
+ice_cv_motif_includes= |
950 |
+], |
951 |
+[ |
952 |
+# Xm/Xm.h is not in the standard search path. |
953 |
+# Locate it and put its directory in `motif_includes' |
954 |
+# |
955 |
+# /usr/include/Motif* are used on HP-UX (Motif). |
956 |
+# /usr/include/X11* are used on HP-UX (X and Athena). |
957 |
+# /usr/dt is used on Solaris (Motif). |
958 |
+# /usr/openwin is used on Solaris (X and Athena). |
959 |
+# Other directories are just guesses. |
960 |
+for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \ |
961 |
+ /usr/include/Motif2.0 /usr/include/Motif1.2 /usr/include/Motif1.1 \ |
962 |
+ /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 \ |
963 |
+ /usr/dt/include /usr/openwin/include \ |
964 |
+ /usr/dt/*/include /opt/*/include /usr/include/Motif* \ |
965 |
+ "${prefix}"/*/include /usr/*/include /usr/local/*/include \ |
966 |
+ "${prefix}"/include/* /usr/include/* /usr/local/include/*; do |
967 |
+if test -f "$dir/Xm/Xm.h"; then |
968 |
+ice_cv_motif_includes="$dir" |
969 |
+break |
970 |
+fi |
971 |
+done |
972 |
+if test "$ice_cv_motif_includes" = ""; then |
973 |
+ice_cv_motif_includes=no |
974 |
+fi |
975 |
+]) |
976 |
+# |
977 |
+LIBS="$ice_motif_save_LIBS" |
978 |
+CFLAGS="$ice_motif_save_CFLAGS" |
979 |
+CPPFLAGS="$ice_motif_save_CPPFLAGS" |
980 |
+LDFLAGS="$ice_motif_save_LDFLAGS" |
981 |
+]) |
982 |
+motif_includes="$ice_cv_motif_includes" |
983 |
+fi |
984 |
+# |
985 |
+# |
986 |
+# Now for the libraries. |
987 |
+# |
988 |
+if test "$motif_libraries" = ""; then |
989 |
+AC_CACHE_VAL(ice_cv_motif_libraries, |
990 |
+[ |
991 |
+ice_motif_save_LIBS="$LIBS" |
992 |
+ice_motif_save_CFLAGS="$CFLAGS" |
993 |
+ice_motif_save_CPPFLAGS="$CPPFLAGS" |
994 |
+ice_motif_save_LDFLAGS="$LDFLAGS" |
995 |
+# |
996 |
+LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS" |
997 |
+CFLAGS="$X_CFLAGS $CFLAGS" |
998 |
+CPPFLAGS="$X_CFLAGS $CPPFLAGS" |
999 |
+LDFLAGS="$X_LIBS $LDFLAGS" |
1000 |
+# |
1001 |
+# We use XtToolkitInitialize() here since it takes no arguments |
1002 |
+# and thus also works with a C++ compiler. |
1003 |
+AC_TRY_LINK([ |
1004 |
+#include <X11/Intrinsic.h> |
1005 |
+#include <Xm/Xm.h> |
1006 |
+],[XtToolkitInitialize();], |
1007 |
+[ |
1008 |
+# libXm.a is in the standard search path. |
1009 |
+ice_cv_motif_libraries= |
1010 |
+], |
1011 |
+[ |
1012 |
+# libXm.a is not in the standard search path. |
1013 |
+# Locate it and put its directory in `motif_libraries' |
1014 |
+# |
1015 |
+# /usr/lib/Motif* are used on HP-UX (Motif). |
1016 |
+# /usr/lib/X11* are used on HP-UX (X and Athena). |
1017 |
+# /usr/dt is used on Solaris (Motif). |
1018 |
+# /usr/lesstif is used on Linux (Lesstif). |
1019 |
+# /usr/openwin is used on Solaris (X and Athena). |
1020 |
+# Other directories are just guesses. |
1021 |
+for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \ |
1022 |
+ /usr/lib/Motif2.0 /usr/lib/Motif1.2 /usr/lib/Motif1.1 \ |
1023 |
+ /usr/lib/X11R6 /usr/lib/X11R5 /usr/lib/X11R4 /usr/lib/X11 \ |
1024 |
+ /usr/dt/lib /usr/openwin/lib \ |
1025 |
+ /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \ |
1026 |
+ /usr/lesstif*/lib /usr/lib/Lesstif* \ |
1027 |
+ "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \ |
1028 |
+ "${prefix}"/lib/* /usr/lib/* /usr/local/lib/*; do |
1029 |
+if test -d "$dir" && test "`ls $dir/libXm.* 2> /dev/null`" != ""; then |
1030 |
+ice_cv_motif_libraries="$dir" |
1031 |
+break |
1032 |
+fi |
1033 |
+done |
1034 |
+if test "$ice_cv_motif_libraries" = ""; then |
1035 |
+ice_cv_motif_libraries=no |
1036 |
+fi |
1037 |
+]) |
1038 |
+# |
1039 |
+LIBS="$ice_motif_save_LIBS" |
1040 |
+CFLAGS="$ice_motif_save_CFLAGS" |
1041 |
+CPPFLAGS="$ice_motif_save_CPPFLAGS" |
1042 |
+LDFLAGS="$ice_motif_save_LDFLAGS" |
1043 |
+]) |
1044 |
+# |
1045 |
+motif_libraries="$ice_cv_motif_libraries" |
1046 |
+fi |
1047 |
+# Add Motif definitions to X flags |
1048 |
+# |
1049 |
+if test "$motif_includes" != "" && test "$motif_includes" != "$x_includes" && test "$motif_includes" != "no" |
1050 |
+then |
1051 |
+X_CFLAGS="-I$motif_includes $X_CFLAGS" |
1052 |
+fi |
1053 |
+if test "$motif_libraries" != "" && test "$motif_libraries" != "$x_libraries" && test "$motif_libraries" != "no" |
1054 |
+then |
1055 |
+case "$X_LIBS" in |
1056 |
+ *-R\ *) X_LIBS="-L$motif_libraries -R $motif_libraries $X_LIBS";; |
1057 |
+ *-R*) X_LIBS="-L$motif_libraries -R$motif_libraries $X_LIBS";; |
1058 |
+ *) X_LIBS="-L$motif_libraries $X_LIBS";; |
1059 |
+esac |
1060 |
+fi |
1061 |
+# |
1062 |
+# |
1063 |
+motif_libraries_result="$motif_libraries" |
1064 |
+motif_includes_result="$motif_includes" |
1065 |
+test "$motif_libraries_result" = "" && |
1066 |
+ motif_libraries_result="in default path" |
1067 |
+test "$motif_includes_result" = "" && |
1068 |
+ motif_includes_result="in default path" |
1069 |
+test "$motif_libraries_result" = "no" && |
1070 |
+ motif_libraries_result="(none)" |
1071 |
+test "$motif_includes_result" = "no" && |
1072 |
+ motif_includes_result="(none)" |
1073 |
+AC_MSG_RESULT( |
1074 |
+ [libraries $motif_libraries_result, headers $motif_includes_result]) |
1075 |
+])dnl |
1076 |
+############################################################################ |
1077 |
+# Usage: |
1078 |
+# SIM_AC_CHECK_PTHREAD([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) |
1079 |
+# |
1080 |
+# Try to find the PTHREAD development system. If it is found, these |
1081 |
+# shell variables are set: |
1082 |
+# |
1083 |
+# $sim_ac_pthread_cppflags (extra flags the compiler needs for pthread) |
1084 |
+# $sim_ac_pthread_ldflags (extra flags the linker needs for pthread) |
1085 |
+# $sim_ac_pthread_libs (link libraries the linker needs for pthread) |
1086 |
+# |
1087 |
+# The CPPFLAGS, LDFLAGS and LIBS flags will also be modified accordingly. |
1088 |
+# In addition, the variable $sim_ac_pthread_avail is set to "yes" if the |
1089 |
+# pthread development system is found. |
1090 |
+# |
1091 |
+# |
1092 |
+# Author: Morten Eriksen, <mortene@sim.no>. |
1093 |
+ |
1094 |
+AC_DEFUN([SIM_AC_CHECK_PTHREAD], [ |
1095 |
+ |
1096 |
+AC_ARG_WITH( |
1097 |
+ [pthread], |
1098 |
+ [ --with-pthread pthread installation directory], |
1099 |
+ [],[with_pthread=yes]) |
1100 |
+ |
1101 |
+sim_ac_pthread_avail=no |
1102 |
+ |
1103 |
+if test x"$with_pthread" != xno; then |
1104 |
+ if test x"$with_pthread" != xyes; then |
1105 |
+ sim_ac_pthread_cppflags="-I${with_pthread}/include" |
1106 |
+ sim_ac_pthread_ldflags="-L${with_pthread}/lib" |
1107 |
+ fi |
1108 |
+ sim_ac_pthread_libs_first="-lpthread" |
1109 |
+ sim_ac_pthread_libs_second="-pthread" |
1110 |
+ sim_ac_pthread_libs_third="-lc_r" |
1111 |
+ sim_ac_pthread_libs="" |
1112 |
+# FreeBSD 4.x use "-pthread" or "-lc_r" |
1113 |
+ |
1114 |
+ sim_ac_save_cppflags=$CPPFLAGS |
1115 |
+ sim_ac_save_ldflags=$LDFLAGS |
1116 |
+ sim_ac_save_libs=$LIBS |
1117 |
+ |
1118 |
+ AC_CACHE_CHECK( |
1119 |
+ [whether the pthread development system is available], |
1120 |
+ sim_cv_lib_pthread_avail, |
1121 |
+ [ |
1122 |
+ for sim_pthread_libs in $sim_ac_pthread_libs_first \ |
1123 |
+ $sim_ac_pthread_libs_second $sim_ac_pthread_libs_third ; do |
1124 |
+ if test x"$sim_cv_lib_pthread_avail" != x"yes" ; then |
1125 |
+ CPPFLAGS="$CPPFLAGS $sim_ac_pthread_cppflags" |
1126 |
+ LDFLAGS="$LDFLAGS $sim_ac_pthread_ldflags" |
1127 |
+ LIBS="$sim_pthread_libs $LIBS" |
1128 |
+ AC_TRY_LINK([#include <pthread.h>], |
1129 |
+ [(void)pthread_create(0L, 0L, 0L, 0L);], |
1130 |
+ [sim_cv_lib_pthread_avail=yes |
1131 |
+ sim_ac_pthread_libs="$sim_pthread_libs" |
1132 |
+ ], |
1133 |
+ [sim_cv_lib_pthread_avail=no]) |
1134 |
+ fi |
1135 |
+ if test x"$sim_cv_lib_pthread_avail" != x"yes"; then |
1136 |
+ CPPFLAGS=$sim_ac_save_cppflags |
1137 |
+ LDFLAGS=$sim_ac_save_ldflags |
1138 |
+ LIBS=$sim_ac_save_libs |
1139 |
+ fi |
1140 |
+ done |
1141 |
+ ] |
1142 |
+ ) |
1143 |
+ |
1144 |
+ if test x"$sim_cv_lib_pthread_avail" = xyes; then |
1145 |
+ sim_ac_pthread_avail=yes |
1146 |
+ $1 |
1147 |
+ else |
1148 |
+ CPPFLAGS=$sim_ac_save_cppflags |
1149 |
+ LDFLAGS=$sim_ac_save_ldflags |
1150 |
+ LIBS=$sim_ac_save_libs |
1151 |
+ $2 |
1152 |
+ fi |
1153 |
+fi |
1154 |
+]) |
1155 |
+ |
1156 |
+############################################################################ |
1157 |
+# Usage: |
1158 |
+# SIM_AC_CHECK_OPENGL([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) |
1159 |
+# |
1160 |
+# Try to find an OpenGL development system, either a native |
1161 |
+# implementation or the OpenGL-compatible Mesa library. If |
1162 |
+# it is found, these shell variables are set: |
1163 |
+# |
1164 |
+# $sim_ac_gl_cppflags (extra flags the compiler needs for OpenGL/Mesa) |
1165 |
+# $sim_ac_gl_ldflags (extra flags the linker needs for OpenGL/Mesa) |
1166 |
+# $sim_ac_gl_libs (link libraries the linker needs for OpenGL/Mesa) |
1167 |
+# |
1168 |
+# The CPPFLAGS, LDFLAGS and LIBS flags will also be modified accordingly. |
1169 |
+# In addition, the variable $sim_ac_gl_avail is set to "yes" if an |
1170 |
+# OpenGL-compatible development system is found. |
1171 |
+# |
1172 |
+# |
1173 |
+# Author: Morten Eriksen, <mortene@sim.no>. |
1174 |
+ |
1175 |
+AC_DEFUN(SIM_AC_CHECK_OPENGL, [ |
1176 |
+ |
1177 |
+unset sim_ac_gl_cppflags |
1178 |
+unset sim_ac_gl_ldflags |
1179 |
+unset sim_ac_gl_libs |
1180 |
+sim_ac_gl_avail=no |
1181 |
+ |
1182 |
+AC_ARG_WITH( |
1183 |
+ [mesa], |
1184 |
+ [ --with-mesa prefer MesaGL (if found) over OpenGL [[default=yes]]], |
1185 |
+ [],[with_mesa=yes]) |
1186 |
+ |
1187 |
+# It's usually libGL.so on UNIX systems and opengl32.lib on MSWindows. |
1188 |
+sim_ac_gl_glnames="-lGL -lopengl32" |
1189 |
+sim_ac_gl_mesaglnames=-lMesaGL |
1190 |
+GL_LIBS="" |
1191 |
+ |
1192 |
+if test "x$with_mesa" = "xyes"; then |
1193 |
+ sim_ac_gl_first=$sim_ac_gl_mesaglnames |
1194 |
+ sim_ac_gl_second=$sim_ac_gl_glnames |
1195 |
+else |
1196 |
+ sim_ac_gl_first=$sim_ac_gl_glnames |
1197 |
+ sim_ac_gl_second=$sim_ac_gl_mesaglnames |
1198 |
+fi |
1199 |
+ |
1200 |
+AC_ARG_WITH( |
1201 |
+ [opengl], |
1202 |
+ [ --with-opengl OpenGL/Mesa installation directory],[],[with_opengl=yes]) |
1203 |
+ |
1204 |
+if test x"$with_opengl" != xno; then |
1205 |
+ if test x"$with_opengl" != xyes; then |
1206 |
+ sim_ac_gl_cppflags="-I${with_opengl}/include" |
1207 |
+ sim_ac_gl_ldflags="-L${with_opengl}/lib" |
1208 |
+ else |
1209 |
+ # This is a common location for the OpenGL library on HPUX. |
1210 |
+ sim_ac_gl_hpux=/opt/graphics/OpenGL |
1211 |
+ if test -d $sim_ac_gl_hpux; then |
1212 |
+ sim_ac_gl_cppflags=-I$sim_ac_gl_hpux/include |
1213 |
+ sim_ac_gl_ldflags=-L$sim_ac_gl_hpux/lib |
1214 |
+ fi |
1215 |
+ fi |
1216 |
+ |
1217 |
+ sim_ac_save_cppflags=$CPPFLAGS |
1218 |
+ sim_ac_save_ldflags=$LDFLAGS |
1219 |
+ sim_ac_save_libs=$LIBS |
1220 |
+ |
1221 |
+ CPPFLAGS="$CPPFLAGS $sim_ac_gl_cppflags" |
1222 |
+ LDFLAGS="$LDFLAGS $sim_ac_gl_ldflags" |
1223 |
+ |
1224 |
+ AC_CACHE_CHECK( |
1225 |
+ [whether OpenGL library is available], |
1226 |
+ sim_cv_lib_gl, |
1227 |
+ [sim_cv_lib_gl=UNRESOLVED |
1228 |
+ |
1229 |
+ for sim_ac_gl_libcheck in $sim_ac_gl_first $sim_ac_gl_second; do |
1230 |
+ if test "x$sim_cv_lib_gl" = "xUNRESOLVED"; then |
1231 |
+ LIBS="$sim_ac_gl_libcheck $sim_ac_save_libs -lm" |
1232 |
+ AC_TRY_LINK([ |
1233 |
+ #if HAVE_WINDOWS_H |
1234 |
+ #include <windows.h> |
1235 |
+ #endif /* HAVE_WINDOWS_H */ |
1236 |
+ #include <GL/gl.h> |
1237 |
+ ], |
1238 |
+ [glPointSize(1.0f);], |
1239 |
+ [sim_cv_lib_gl="$sim_ac_gl_libcheck"], |
1240 |
+ ) |
1241 |
+ fi |
1242 |
+ done |
1243 |
+ ]) |
1244 |
+ |
1245 |
+ LIBS="$sim_ac_save_libs" |
1246 |
+ |
1247 |
+ if test "x$sim_cv_lib_gl" != "xUNRESOLVED"; then |
1248 |
+ sim_ac_gl_libs="$sim_cv_lib_gl" |
1249 |
+ else |
1250 |
+ AC_MSG_WARN([couldn't compile or link with OpenGL library -- trying with pthread library in place...]) |
1251 |
+ |
1252 |
+ SIM_AC_CHECK_PTHREAD([ |
1253 |
+ sim_ac_gl_cppflags="$sim_ac_gl_cppflags $sim_ac_pthread_cppflags" |
1254 |
+ sim_ac_gl_ldflags="$sim_ac_gl_ldflags $sim_ac_pthread_ldflags"], |
1255 |
+ [AC_MSG_WARN([couldn't compile or link with pthread library])]) |
1256 |
+ |
1257 |
+ if test "x$sim_ac_pthread_avail" = "xyes"; then |
1258 |
+ AC_CACHE_CHECK( |
1259 |
+ [whether OpenGL library can be linked with pthread library], |
1260 |
+ sim_cv_lib_gl_pthread, |
1261 |
+ [sim_cv_lib_gl_pthread=UNRESOLVED |
1262 |
+ for sim_ac_gl_libcheck in $sim_ac_gl_first $sim_ac_gl_second; do |
1263 |
+ if test "x$sim_cv_lib_gl_pthread" = "xUNRESOLVED"; then |
1264 |
+ LIBS="$sim_ac_gl_libcheck $sim_ac_pthread_libs $sim_ac_save_libs" |
1265 |
+ AC_TRY_LINK([ |
1266 |
+#if HAVE_WINDOWS_H |
1267 |
+#include <windows.h> |
1268 |
+#endif /* HAVE_WINDOWS_H */ |
1269 |
+#include <GL/gl.h> |
1270 |
+], |
1271 |
+ [ |
1272 |
+glPointSize(1.0f); |
1273 |
+], |
1274 |
+ [sim_cv_lib_gl_pthread="$sim_ac_gl_libcheck"]) |
1275 |
+ fi |
1276 |
+ done |
1277 |
+ ]) |
1278 |
+ |
1279 |
+ if test "x$sim_cv_lib_gl_pthread" != "xUNRESOLVED"; then |
1280 |
+ sim_ac_gl_libs="$sim_cv_lib_gl_pthread $sim_ac_pthread_libs" |
1281 |
+ fi |
1282 |
+ fi |
1283 |
+ fi |
1284 |
+ |
1285 |
+ |
1286 |
+ if test "x$sim_ac_gl_libs" != "x"; then |
1287 |
+ LIBS="$sim_ac_save_libs" |
1288 |
+ GL_LIBS="$sim_ac_gl_libs" |
1289 |
+ sim_ac_gl_avail=yes |
1290 |
+ $1 |
1291 |
+ else |
1292 |
+ CPPFLAGS=$sim_ac_save_cppflags |
1293 |
+ LDFLAGS=$sim_ac_save_ldflags |
1294 |
+ LIBS=$sim_ac_save_libs |
1295 |
+ $2 |
1296 |
+ fi |
1297 |
+fi |
1298 |
+]) |
1299 |
+ |
1300 |
+ |
1301 |
+############################################################################ |
1302 |
+# Usage: |
1303 |
+# SIM_AC_CHECK_GLU([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) |
1304 |
+# |
1305 |
+# Try to use the OpenGL utility library; GLU. If it is found, |
1306 |
+# these shell variables are set: |
1307 |
+# |
1308 |
+# $sim_ac_glu_cppflags (extra flags the compiler needs for GLU) |
1309 |
+# $sim_ac_glu_ldflags (extra flags the linker needs for GLU) |
1310 |
+# $sim_ac_glu_libs (link libraries the linker needs for GLU) |
1311 |
+# |
1312 |
+# The CPPFLAGS, LDFLAGS and LIBS flags will also be modified accordingly. |
1313 |
+# In addition, the variable $sim_ac_gly_avail is set to "yes" if GLU |
1314 |
+# is found. |
1315 |
+# |
1316 |
+# |
1317 |
+# Author: Morten Eriksen, <mortene@sim.no>. |
1318 |
+ |
1319 |
+AC_DEFUN(SIM_AC_CHECK_GLU, [ |
1320 |
+ |
1321 |
+unset sim_ac_glu_cppflags |
1322 |
+unset sim_ac_glu_ldflags |
1323 |
+unset sim_ac_glu_libs |
1324 |
+sim_ac_glu_avail=no |
1325 |
+ |
1326 |
+# It's usually libGLU.so on UNIX systems and glu32.lib on MSWindows. |
1327 |
+sim_ac_glu_names="-lGLU -lglu32" |
1328 |
+sim_ac_glu_mesanames=-lMesaGLU |
1329 |
+# with_mesa is set from the SIM_AC_CHECK_OPENGL macro. |
1330 |
+if test "x$with_mesa" = "xyes"; then |
1331 |
+ sim_ac_glu_first=$sim_ac_glu_mesanames |
1332 |
+ sim_ac_glu_second=$sim_ac_glu_names |
1333 |
+else |
1334 |
+ sim_ac_glu_first=$sim_ac_glu_names |
1335 |
+ sim_ac_glu_second=$sim_ac_glu_mesanames |
1336 |
+fi |
1337 |
+ |
1338 |
+AC_ARG_WITH( |
1339 |
+ [glu],[ --with-glu use the OpenGL utility library [[default=yes]]],[],[with_glu=yes]) |
1340 |
+ |
1341 |
+if test x"$with_glu" != xno; then |
1342 |
+ if test x"$with_glu" != xyes; then |
1343 |
+ sim_ac_glu_cppflags="-I${with_glu}/include" |
1344 |
+ sim_ac_glu_ldflags="-L${with_glu}/lib" |
1345 |
+ fi |
1346 |
+ |
1347 |
+ sim_ac_save_cppflags=$CPPFLAGS |
1348 |
+ sim_ac_save_ldflags=$LDFLAGS |
1349 |
+ sim_ac_save_libs=$LIBS |
1350 |
+ |
1351 |
+ CPPFLAGS="$CPPFLAGS $sim_ac_glu_cppflags" |
1352 |
+ LDFLAGS="$LDFLAGS $sim_ac_glu_ldflags" |
1353 |
+ |
1354 |
+ AC_CACHE_CHECK( |
1355 |
+ [whether GLU is available], |
1356 |
+ sim_cv_lib_glu, |
1357 |
+ [sim_cv_lib_glu=UNRESOLVED |
1358 |
+ |
1359 |
+ # Some platforms (like BeOS) have the GLU functionality in the GL |
1360 |
+ # library (and no GLU library present). |
1361 |
+ for sim_ac_glu_libcheck in "" $sim_ac_glu_first $sim_ac_glu_second; do |
1362 |
+ if test "x$sim_cv_lib_glu" = "xUNRESOLVED"; then |
1363 |
+ LIBS="$sim_ac_glu_libcheck $sim_ac_save_libs $GL_LIBS" |
1364 |
+ AC_TRY_LINK([ |
1365 |
+#if HAVE_WINDOWS_H |
1366 |
+#include <windows.h> |
1367 |
+#endif /* HAVE_WINDOWS_H */ |
1368 |
+#include <GL/gl.h> |
1369 |
+#include <GL/glu.h> |
1370 |
+], |
1371 |
+ [ |
1372 |
+gluSphere(0L, 1.0, 1, 1); |
1373 |
+], |
1374 |
+ [sim_cv_lib_glu="$sim_ac_glu_libcheck"]) |
1375 |
+ fi |
1376 |
+ done |
1377 |
+ ]) |
1378 |
+ |
1379 |
+ LIBS="$sim_ac_save_libs" |
1380 |
+ |
1381 |
+ if test "x$sim_cv_lib_glu" != "xUNRESOLVED"; then |
1382 |
+ sim_ac_glu_libs="$sim_cv_lib_glu" |
1383 |
+ LIBS="$sim_ac_save_libs" |
1384 |
+ GL_LIBS="$GL_LIBS $sim_ac_glu_libs" |
1385 |
+ sim_ac_glu_avail=yes |
1386 |
+ $1 |
1387 |
+ else |
1388 |
+ CPPFLAGS=$sim_ac_save_cppflags |
1389 |
+ LDFLAGS=$sim_ac_save_ldflags |
1390 |
+ LIBS=$sim_ac_save_libs |
1391 |
+ $2 |
1392 |
+ fi |
1393 |
+fi |
1394 |
+]) |
1395 |
+ |
1396 |
+ |
1397 |
+# ************************************************************************** |
1398 |
+# SIM_AC_GLU_READY_IFELSE( [ACTION-IF-TRUE], [ACTION-IF-FALSE] ) |
1399 |
+ |
1400 |
+AC_DEFUN([SIM_AC_GLU_READY_IFELSE], |
1401 |
+[AC_CACHE_CHECK( |
1402 |
+ [if GLU is available as part of GL library], |
1403 |
+ [sim_cv_glu_ready], |
1404 |
+ [AC_TRY_LINK( |
1405 |
+ [ |
1406 |
+#if HAVE_WINDOWS_H |
1407 |
+#include <windows.h> |
1408 |
+#endif /* HAVE_WINDOWS_H */ |
1409 |
+#include <GL/gl.h> |
1410 |
+#include <GL/glu.h> |
1411 |
+], |
1412 |
+ [ |
1413 |
+gluSphere(0L, 1.0, 1, 1); |
1414 |
+], |
1415 |
+ [sim_cv_glu_ready=true], |
1416 |
+ [sim_cv_glu_ready=false])]) |
1417 |
+if ${sim_cv_glu_ready}; then |
1418 |
+ ifelse([$1], , :, [$1]) |
1419 |
+else |
1420 |
+ ifelse([$2], , :, [$2]) |
1421 |
+fi |
1422 |
+]) # SIM_AC_GLU_READY_IFELSE() |
1423 |
+ |
1424 |
+ |
1425 |
+############################################################################ |
1426 |
+# Usage: |
1427 |
+# SIM_AC_GLU_NURBSOBJECT([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) |
1428 |
+# |
1429 |
+# Try to find out whether the interface struct against the GLU |
1430 |
+# library NURBS functions is called "GLUnurbs" or "GLUnurbsObj". |
1431 |
+# (This seems to have changed somewhere between release 1.1 and |
1432 |
+# release 1.3 of GLU). |
1433 |
+# |
1434 |
+# The variable $sim_ac_glu_nurbsobject is set to the correct name |
1435 |
+# if the nurbs structure is found. |
1436 |
+# |
1437 |
+# Author: Morten Eriksen, <mortene@sim.no>. |
1438 |
+ |
1439 |
+AC_DEFUN(SIM_AC_GLU_NURBSOBJECT, [ |
1440 |
+AC_CACHE_CHECK( |
1441 |
+ [what structure to use in the GLU NURBS interface], |
1442 |
+ sim_cv_func_glu_nurbsobject, |
1443 |
+ [sim_cv_func_glu_nurbsobject=NONE |
1444 |
+ for sim_ac_glu_structname in GLUnurbs GLUnurbsObj; do |
1445 |
+ if test "$sim_cv_func_glu_nurbsobject" = NONE; then |
1446 |
+ AC_TRY_LINK([ |
1447 |
+#if HAVE_WINDOWS_H |
1448 |
+#include <windows.h> |
1449 |
+#endif /* HAVE_WINDOWS_H */ |
1450 |
+#include <GL/gl.h> |
1451 |
+#include <GL/glu.h>], |
1452 |
+ [$sim_ac_glu_structname * hepp = gluNewNurbsRenderer(); |
1453 |
+ gluDeleteNurbsRenderer(hepp)], |
1454 |
+ [sim_cv_func_glu_nurbsobject=$sim_ac_glu_structname]) |
1455 |
+ fi |
1456 |
+ done |
1457 |
+]) |
1458 |
+ |
1459 |
+if test $sim_cv_func_glu_nurbsobject = NONE; then |
1460 |
+ sim_ac_glu_nurbsobject= |
1461 |
+ $2 |
1462 |
+else |
1463 |
+ sim_ac_glu_nurbsobject=$sim_cv_func_glu_nurbsobject |
1464 |
+ $1 |
1465 |
+fi |
1466 |
+]) |
1467 |
+ |
1468 |
+# ************************************************************************** |
1469 |
+# SIM_AC_HAVE_GLX_IFELSE( IF-FOUND, IF-NOT-FOUND ) |
1470 |
+# |
1471 |
+# Check whether GLX is on the system. |
1472 |
+ |
1473 |
+AC_DEFUN([SIM_AC_HAVE_GLX_IFELSE], [ |
1474 |
+AC_CACHE_CHECK( |
1475 |
+ [whether GLX is on the system], |
1476 |
+ sim_cv_have_glx, |
1477 |
+ AC_TRY_LINK( |
1478 |
+ [#include <GL/glx.h>], |
1479 |
+ [(void)glXChooseVisual(0L, 0, 0L);], |
1480 |
+ [sim_cv_have_glx=true], |
1481 |
+ [sim_cv_have_glx=false])) |
1482 |
+ |
1483 |
+if ${sim_cv_have_glx=false}; then |
1484 |
+ ifelse([$1], , :, [$1]) |
1485 |
+else |
1486 |
+ ifelse([$2], , :, [$2]) |
1487 |
+fi |
1488 |
+]) # SIM_AC_HAVE_GLX_IFELSE() |
1489 |
+ |
1490 |
+############################################################################ |
1491 |
+# Usage: |
1492 |
+# SIM_CHECK_MOTIF_GLWIDGET([ ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]) |
1493 |
+# |
1494 |
+# Description: |
1495 |
+# This macro checks for a GL widget that can be used with Xt/Motif. |
1496 |
+# |
1497 |
+# Variables: |
1498 |
+# $sim_cv_motif_glwidget (cached) class + header + library |
1499 |
+# $sim_cv_motif_glwidget_hdrloc (cached) GL | X11/GLw |
1500 |
+# |
1501 |
+# $sim_ac_motif_glwidget_class glwMDrawingAreaWidgetClass | |
1502 |
+# glwDrawingAreaWidgetClass |
1503 |
+# $sim_ac_motif_glwidget_header GLwDrawA.h | GLwMDrawA.h |
1504 |
+# $sim_ac_motif_glwidget_library GLwM | GLw | MesaGLwM | MesaGLw |
1505 |
+# |
1506 |
+# $LIBS = -l$sim_ac_motif_glwidget_library $LIBS |
1507 |
+# |
1508 |
+# Defines: |
1509 |
+# XT_GLWIDGET $sim_ac_motif_glwidget_class |
1510 |
+# HAVE_GL_GLWDRAWA_H #include <GL/GLwDrawA.h> |
1511 |
+# HAVE_GL_GLWMDRAWA_H #include <GL/GLwMDrawA.h> |
1512 |
+# HAVE_X11_GWL_GLWDRAWA_H #include <X11/GLw/GLwDrawA.h> |
1513 |
+# HAVE_X11_GWL_GLWMDRAWA_H #include <X11/GLw/GLwMDrawA.h> |
1514 |
+# |
1515 |
+# Authors: |
1516 |
+# Lars J. Aas <larsa@sim.no>, |
1517 |
+# Loring Holden <lsh@cs.brown.edu>, |
1518 |
+# Morten Eriksen <mortene@sim.no> |
1519 |
+# |
1520 |
+ |
1521 |
+AC_DEFUN([SIM_CHECK_MOTIF_GLWIDGET], [ |
1522 |
+ |
1523 |
+AC_ARG_WITH( |
1524 |
+[glw],[ --with-glw use the OpenGL widget Library [[default=yes]]], [], [with_glw=yes]) |
1525 |
+ |
1526 |
+if test x"$with_glw" != x"no" ; then |
1527 |
+ if test x"$with_glw" != x"yes" ; then |
1528 |
+ sim_ac_glw_cppflags="-I${with_glw}/include" |
1529 |
+ sim_ac_glw_ldflags="-L${with_glw}/lib" |
1530 |
+ fi |
1531 |
+ |
1532 |
+ SAVECPPFLAGS="$CPPFLAGS" |
1533 |
+ SAVELDFLAGS="$LDFLAGS" |
1534 |
+ SAVELIBS="$LIBS" |
1535 |
+ |
1536 |
+ CPPFLAGS="$SAVECPPFLAGS $sim_ac_glw_cppflags" |
1537 |
+ LDFLAGS="$SAVELDFLAGS $sim_ac_glw_ldflags" |
1538 |
+ AC_CACHE_CHECK( |
1539 |
+ [for a GL widget], |
1540 |
+ sim_cv_motif_glwidget, |
1541 |
+ [ |
1542 |
+ XWIDGETLIBS="$X_LIBS $X11_LIBS $XT_LIBS $X_LIBS $X_PRE_LIBS $XM_LIBS" |
1543 |
+ sim_cv_motif_glwidget=UNKNOWN |
1544 |
+ for lib in GLwM GLw MesaGLwM MesaGLw; do |
1545 |
+ if test x"$sim_cv_motif_glwidget" = x"UNKNOWN"; then |
1546 |
+ LIBS="-l$lib $SAVELIBS $XWIDGETLIBS $GL_LIBS -lm" |
1547 |
+ AC_TRY_LINK( |
1548 |
+ [#include <X11/Intrinsic.h> |
1549 |
+ #include <GL/GLwMDrawA.h> |
1550 |
+ extern WidgetClass glwMDrawingAreaWidgetClass;], |
1551 |
+ [Widget glxManager = NULL; |
1552 |
+ Widget glxWidget = XtVaCreateManagedWidget("GLWidget", |
1553 |
+ glwMDrawingAreaWidgetClass, glxManager, NULL);], |
1554 |
+ [sim_cv_motif_glwidget="glwMDrawingAreaWidgetClass GLwMDrawA.h $lib"], |
1555 |
+ [sim_cv_motif_glwidget=UNKNOWN]) |
1556 |
+ fi |
1557 |
+ done |
1558 |
+ LIBS=$SAVELIBS |
1559 |
+ ]) |
1560 |
+ |
1561 |
+if test "x$sim_cv_motif_glwidget" = "xUNKNOWN"; then |
1562 |
+ ifelse([$2], , :, [$2]) |
1563 |
+else |
1564 |
+ sim_ac_motif_glwidget_class=`echo $sim_cv_motif_glwidget | cut -d" " -f1` |
1565 |
+ sim_ac_motif_glwidget_header=`echo $sim_cv_motif_glwidget | cut -d" " -f2` |
1566 |
+ sim_ac_motif_glwidget_library=`echo $sim_cv_motif_glwidget | cut -d" " -f3` |
1567 |
+ |
1568 |
+ AC_CACHE_CHECK( |
1569 |
+ [the $sim_ac_motif_glwidget_header header location], |
1570 |
+ sim_cv_motif_glwidget_hdrloc, |
1571 |
+ [sim_cv_motif_glwidget_hdrloc=UNKNOWN |
1572 |
+ for location in X11/GLw GL; do |
1573 |
+ if test "x$sim_cv_motif_glwidget_hdrloc" = "xUNKNOWN"; then |
1574 |
+ AC_TRY_CPP( |
1575 |
+ [#include <X11/Intrinsic.h> |
1576 |
+ #include <$location/$sim_ac_motif_glwidget_header>], |
1577 |
+ [sim_cv_motif_glwidget_hdrloc=$location], |
1578 |
+ [sim_cv_motif_glwidget_hdrloc=UNKNOWN]) |
1579 |
+ fi |
1580 |
+ done]) |
1581 |
+ |
1582 |
+ if test "x$sim_cv_motif_glwidget_hdrloc" = "xUNKNOWN"; then |
1583 |
+ ifelse([$2], , :, [$2]) |
1584 |
+ else |
1585 |
+ if test "x$sim_ac_motif_glwidget_header" = "xGLwDrawA.h"; then |
1586 |
+ if test "x$sim_cv_motif_glwidget_hdrloc" = "xGL"; then |
1587 |
+ AC_DEFINE(HAVE_GL_GLWDRAWA_H, 1, |
1588 |
+ [Define this to use OpenGL widget from <GL/GLwDrawA.h>]) |
1589 |
+ else |
1590 |
+ AC_DEFINE(HAVE_X11_GLW_GLWDRAWA_H, 1, |
1591 |
+ [Define this to use OpenGL widget from <X11/GLw/GLwDrawA.h>]) |
1592 |
+ fi |
1593 |
+ else |
1594 |
+ if test "x$sim_cv_motif_glwidget_hdrloc" = "xGL"; then |
1595 |
+ AC_DEFINE(HAVE_GL_GLWMDRAWA_H, 1, |
1596 |
+ [Define this to use OpenGL widget from <GL/GLwMDrawA.h>]) |
1597 |
+ else |
1598 |
+ AC_DEFINE(HAVE_X11_GLW_GLWMDRAWA_H, 1, |
1599 |
+ [Define this to use OpenGL widget from <X11/GLw/GLwMDrawA.h>]) |
1600 |
+ fi |
1601 |
+ fi |
1602 |
+ |
1603 |
+ AC_DEFINE_UNQUOTED(XT_GLWIDGET, $sim_ac_motif_glwidget_class, |
1604 |
+ [Define this to the Xt/Motif OpenGL widget class to use]) |
1605 |
+ |
1606 |
+ LIBS="$LIBS" |
1607 |
+ GL_LIBS="$GL_LIBS -l$sim_ac_motif_glwidget_library" |
1608 |
+ $1 |
1609 |
+ fi |
1610 |
+fi |
1611 |
+ |
1612 |
+fi |
1613 |
+]) |
1614 |
Index: aclocal.m4 |
1615 |
=================================================================== |
1616 |
|
1617 |
|
1618 |
--- /dev/null Fri Jun 8 19:07:45 2001 |
1619 |
+++ aclocal.m4 Fri Jun 8 19:30:18 2001 |
1620 |
@@ -0,0 +1,1033 @@ |
1621 |
+dnl aclocal.m4 generated automatically by aclocal 1.4 |
1622 |
+ |
1623 |
+dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. |
1624 |
+dnl This file is free software; the Free Software Foundation |
1625 |
+dnl gives unlimited permission to copy and/or distribute it, |
1626 |
+dnl with or without modifications, as long as this notice is preserved. |
1627 |
+ |
1628 |
+dnl This program is distributed in the hope that it will be useful, |
1629 |
+dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
1630 |
+dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
1631 |
+dnl PARTICULAR PURPOSE. |
1632 |
+ |
1633 |
+dnl @(#)$Mu: mgv/acinclude.m4 1.5 1998/08/25 21:34:32 $ |
1634 |
+dnl |
1635 |
+dnl acinclude.m4 |
1636 |
+dnl local automake/autoconf/m4 fun for mgv. |
1637 |
+dnl |
1638 |
+dnl Copyright (C) 1998 Eric A. Howe |
1639 |
+dnl |
1640 |
+dnl This program is free software; you can redistribute it and/or modify |
1641 |
+dnl it under the terms of the GNU General Public License as published by |
1642 |
+dnl the Free Software Foundation; either version 2 of the License, or |
1643 |
+dnl (at your option) any later version. |
1644 |
+dnl |
1645 |
+dnl This program is distributed in the hope that it will be useful, |
1646 |
+dnl but WITHOUT ANY WARRANTY; without even the implied warranty of |
1647 |
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1648 |
+dnl GNU General Public License for more details. |
1649 |
+dnl |
1650 |
+dnl You should have received a copy of the GNU General Public License |
1651 |
+dnl along with this program; if not, write to the Free Software |
1652 |
+dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
1653 |
+dnl |
1654 |
+dnl Authors: Eric A. Howe (mu@trends.net) |
1655 |
+dnl |
1656 |
+ |
1657 |
+dnl |
1658 |
+dnl ICE_FIND_XPM |
1659 |
+dnl --------------- |
1660 |
+dnl |
1661 |
+dnl Find Xpm libraries and headers. |
1662 |
+dnl Put Xpm include directory in xpm_includes, |
1663 |
+dnl put Xpm library directory in xpm_libraries, |
1664 |
+dnl and add appropriate flags to X_CFLAGS and X_LIBS. |
1665 |
+dnl |
1666 |
+dnl Borrowed from DDD. |
1667 |
+dnl |
1668 |
+AC_DEFUN(ICE_FIND_XPM, |
1669 |
+[ |
1670 |
+AC_REQUIRE([AC_PATH_XTRA]) |
1671 |
+xpm_includes= |
1672 |
+xpm_libraries= |
1673 |
+AC_ARG_WITH(xpm, |
1674 |
+[ --without-xpm do not use the Xpm library]) |
1675 |
+dnl Treat --without-xpm like |
1676 |
+dnl --without-xpm-includes --without-xpm-libraries. |
1677 |
+if test "$with_xpm" = "no" |
1678 |
+then |
1679 |
+xpm_includes=no |
1680 |
+xpm_libraries=no |
1681 |
+fi |
1682 |
+AC_ARG_WITH(xpm-includes, |
1683 |
+[ --with-xpm-includes=DIR Xpm include files are in DIR], |
1684 |
+xpm_includes="$withval") |
1685 |
+AC_ARG_WITH(xpm-libraries, |
1686 |
+[ --with-xpm-libraries=DIR Xpm libraries are in DIR], |
1687 |
+xpm_libraries="$withval") |
1688 |
+AC_MSG_CHECKING(for Xpm) |
1689 |
+# |
1690 |
+# |
1691 |
+# Search the include files. Note that XPM can come in <X11/xpm.h> (as |
1692 |
+# in X11R6) or in <xpm.h> if installed locally. |
1693 |
+# |
1694 |
+if test "$xpm_includes" = ""; then |
1695 |
+AC_CACHE_VAL(ice_cv_xpm_includes, |
1696 |
+[ |
1697 |
+ice_xpm_save_LIBS="$LIBS" |
1698 |
+ice_xpm_save_CFLAGS="$CFLAGS" |
1699 |
+ice_xpm_save_CPPFLAGS="$CPPFLAGS" |
1700 |
+ice_xpm_save_LDFLAGS="$LDFLAGS" |
1701 |
+# |
1702 |
+LIBS="$X_PRE_LIBS -lXpm -lXt -lX11 $X_EXTRA_LIBS $LIBS" |
1703 |
+CFLAGS="$X_CFLAGS $CFLAGS" |
1704 |
+CPPFLAGS="$X_CFLAGS $CPPFLAGS" |
1705 |
+LDFLAGS="$X_LIBS $LDFLAGS" |
1706 |
+# |
1707 |
+AC_TRY_COMPILE([ |
1708 |
+#include <X11/xpm.h> |
1709 |
+],[int a;], |
1710 |
+[ |
1711 |
+# X11/xpm.h is in the standard search path. |
1712 |
+ice_cv_xpm_includes= |
1713 |
+], |
1714 |
+[ |
1715 |
+# X11/xpm.h is not in the standard search path. |
1716 |
+# Locate it and put its directory in `xpm_includes' |
1717 |
+# |
1718 |
+# /usr/include/Motif* are used on HP-UX (Motif). |
1719 |
+# /usr/include/X11* are used on HP-UX (X and Xaw). |
1720 |
+# /usr/dt is used on Solaris (Motif). |
1721 |
+# /usr/openwin is used on Solaris (X and Xaw). |
1722 |
+# Other directories are just guesses. |
1723 |
+for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \ |
1724 |
+ /usr/include/Motif2.0 /usr/include/Motif1.2 /usr/include/Motif1.1 \ |
1725 |
+ /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 \ |
1726 |
+ /usr/dt/include /usr/openwin/include \ |
1727 |
+ /usr/dt/*/include /opt/*/include /usr/include/Motif* \ |
1728 |
+ "${prefix}"/*/include /usr/*/include /usr/local/*/include \ |
1729 |
+ "${prefix}"/include/* /usr/include/* /usr/local/include/*; do |
1730 |
+if test -f "$dir/X11/xpm.h" || test -f "$dir/xpm.h"; then |
1731 |
+ice_cv_xpm_includes="$dir" |
1732 |
+break |
1733 |
+fi |
1734 |
+done |
1735 |
+]) |
1736 |
+# |
1737 |
+LIBS="$ice_xpm_save_LIBS" |
1738 |
+CFLAGS="$ice_xpm_save_CFLAGS" |
1739 |
+CPPFLAGS="$ice_xpm_save_CPPFLAGS" |
1740 |
+LDFLAGS="$ice_xpm_save_LDFLAGS" |
1741 |
+]) |
1742 |
+xpm_includes="$ice_cv_xpm_includes" |
1743 |
+fi |
1744 |
+# |
1745 |
+# |
1746 |
+# Now for the libraries. |
1747 |
+# |
1748 |
+if test "$xpm_libraries" = ""; then |
1749 |
+AC_CACHE_VAL(ice_cv_xpm_libraries, |
1750 |
+[ |
1751 |
+ice_xpm_save_LIBS="$LIBS" |
1752 |
+ice_xpm_save_CFLAGS="$CFLAGS" |
1753 |
+ice_xpm_save_CPPFLAGS="$CPPFLAGS" |
1754 |
+ice_xpm_save_LDFLAGS="$LDFLAGS" |
1755 |
+# |
1756 |
+LIBS="$X_PRE_LIBS -lXpm -lXt -lX11 $X_EXTRA_LIBS $LIBS" |
1757 |
+CFLAGS="$X_CFLAGS $CFLAGS" |
1758 |
+CPPFLAGS="$X_CFLAGS $CPPFLAGS" |
1759 |
+LDFLAGS="$X_LIBS $LDFLAGS" |
1760 |
+# |
1761 |
+# |
1762 |
+# We use XtToolkitInitialize() here since it takes no arguments |
1763 |
+# and thus also works with a C++ compiler. |
1764 |
+AC_TRY_LINK([ |
1765 |
+#include <X11/Intrinsic.h> |
1766 |
+#include <X11/xpm.h> |
1767 |
+],[XtToolkitInitialize();], |
1768 |
+[ |
1769 |
+# libxpm.a is in the standard search path. |
1770 |
+ice_cv_xpm_libraries= |
1771 |
+], |
1772 |
+[ |
1773 |
+# libXpm.a is not in the standard search path. |
1774 |
+# Locate it and put its directory in `xpm_libraries' |
1775 |
+# |
1776 |
+# |
1777 |
+# /usr/lib/Motif* are used on HP-UX (Motif). |
1778 |
+# /usr/lib/X11* are used on HP-UX (X and Xpm). |
1779 |
+# /usr/dt is used on Solaris (Motif). |
1780 |
+# /usr/openwin is used on Solaris (X and Xpm). |
1781 |
+# Other directories are just guesses. |
1782 |
+for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \ |
1783 |
+ /usr/lib/Motif2.1 /usr/lib/Motif2.0 /usr/lib/Motif1.2 \ |
1784 |
+ /usr/lib/Motif1.1 /usr/lib/X11R6 /usr/lib/X11R5 /usr/lib/X11R4 \ |
1785 |
+ /usr/lib/X11 /usr/dt/lib /usr/openwin/lib \ |
1786 |
+ /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \ |
1787 |
+ "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \ |
1788 |
+ "${prefix}"/lib/* /usr/lib/* /usr/local/lib/*; do |
1789 |
+if test -d "$dir" && test "`ls $dir/libXpm.* 2> /dev/null`" != ""; then |
1790 |
+ice_cv_xpm_libraries="$dir" |
1791 |
+break |
1792 |
+fi |
1793 |
+done |
1794 |
+]) |
1795 |
+# |
1796 |
+LIBS="$ice_xpm_save_LIBS" |
1797 |
+CFLAGS="$ice_xpm_save_CFLAGS" |
1798 |
+CPPFLAGS="$ice_xpm_save_CPPFLAGS" |
1799 |
+LDFLAGS="$ice_xpm_save_LDFLAGS" |
1800 |
+]) |
1801 |
+# |
1802 |
+xpm_libraries="$ice_cv_xpm_libraries" |
1803 |
+fi |
1804 |
+# |
1805 |
+# Add Xpm definitions to X flags |
1806 |
+# |
1807 |
+if test "$xpm_includes" != "" && test "$xpm_includes" != "$x_includes" && test "$xpm_includes" != "no" |
1808 |
+then |
1809 |
+X_CFLAGS="-I$xpm_includes $X_CFLAGS" |
1810 |
+fi |
1811 |
+if test "$xpm_libraries" != "" && test "$xpm_libraries" != "$x_libraries" && test "$xpm_libraries" != "no" |
1812 |
+then |
1813 |
+case "$X_LIBS" in |
1814 |
+ *-R\ *) X_LIBS="-L$xpm_libraries -R $xpm_libraries $X_LIBS";; |
1815 |
+ *-R*) X_LIBS="-L$xpm_libraries -R$xpm_libraries $X_LIBS";; |
1816 |
+ *) X_LIBS="-L$xpm_libraries $X_LIBS";; |
1817 |
+esac |
1818 |
+fi |
1819 |
+# |
1820 |
+# |
1821 |
+xpm_libraries_result="$xpm_libraries" |
1822 |
+xpm_includes_result="$xpm_includes" |
1823 |
+test "$xpm_libraries_result" = "" && |
1824 |
+ xpm_libraries_result="in default path" |
1825 |
+test "$xpm_includes_result" = "" && |
1826 |
+ xpm_includes_result="in default path" |
1827 |
+test "$xpm_libraries_result" = "no" && |
1828 |
+ xpm_libraries_result="(none)" |
1829 |
+test "$xpm_includes_result" = "no" && |
1830 |
+ xpm_includes_result="(none)" |
1831 |
+AC_MSG_RESULT( |
1832 |
+ [libraries $xpm_libraries_result, headers $xpm_includes_result]) |
1833 |
+])dnl |
1834 |
+ |
1835 |
+dnl |
1836 |
+dnl ICE_FIND_MOTIF |
1837 |
+dnl -------------- |
1838 |
+dnl |
1839 |
+dnl Find Motif libraries and headers |
1840 |
+dnl Put Motif include directory in motif_includes, |
1841 |
+dnl put Motif library directory in motif_libraries, |
1842 |
+dnl and add appropriate flags to X_CFLAGS and X_LIBS. |
1843 |
+dnl |
1844 |
+dnl Borrowed from DDD. |
1845 |
+dnl |
1846 |
+AC_DEFUN(ICE_FIND_MOTIF, |
1847 |
+[ |
1848 |
+AC_REQUIRE([AC_PATH_XTRA]) |
1849 |
+motif_includes= |
1850 |
+motif_libraries= |
1851 |
+AC_ARG_WITH(motif-includes, |
1852 |
+[ --with-motif-includes=DIR Motif include files are in DIR], |
1853 |
+motif_includes="$withval") |
1854 |
+AC_ARG_WITH(motif-libraries, |
1855 |
+[ --with-motif-libraries=DIR Motif libraries are in DIR], |
1856 |
+motif_libraries="$withval") |
1857 |
+AC_MSG_CHECKING(for Motif) |
1858 |
+# |
1859 |
+# |
1860 |
+# Search the include files. |
1861 |
+# |
1862 |
+if test "$motif_includes" = ""; then |
1863 |
+AC_CACHE_VAL(ice_cv_motif_includes, |
1864 |
+[ |
1865 |
+ice_motif_save_LIBS="$LIBS" |
1866 |
+ice_motif_save_CFLAGS="$CFLAGS" |
1867 |
+ice_motif_save_CPPFLAGS="$CPPFLAGS" |
1868 |
+ice_motif_save_LDFLAGS="$LDFLAGS" |
1869 |
+# |
1870 |
+LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS" |
1871 |
+CFLAGS="$X_CFLAGS $CFLAGS" |
1872 |
+CPPFLAGS="$X_CFLAGS $CPPFLAGS" |
1873 |
+LDFLAGS="$X_LIBS $LDFLAGS" |
1874 |
+# |
1875 |
+AC_TRY_COMPILE([#include <Xm/Xm.h>],[int a;], |
1876 |
+[ |
1877 |
+# Xm/Xm.h is in the standard search path. |
1878 |
+ice_cv_motif_includes= |
1879 |
+], |
1880 |
+[ |
1881 |
+# Xm/Xm.h is not in the standard search path. |
1882 |
+# Locate it and put its directory in `motif_includes' |
1883 |
+# |
1884 |
+# /usr/include/Motif* are used on HP-UX (Motif). |
1885 |
+# /usr/include/X11* are used on HP-UX (X and Athena). |
1886 |
+# /usr/dt is used on Solaris (Motif). |
1887 |
+# /usr/openwin is used on Solaris (X and Athena). |
1888 |
+# Other directories are just guesses. |
1889 |
+for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \ |
1890 |
+ /usr/include/Motif2.0 /usr/include/Motif1.2 /usr/include/Motif1.1 \ |
1891 |
+ /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 \ |
1892 |
+ /usr/dt/include /usr/openwin/include \ |
1893 |
+ /usr/dt/*/include /opt/*/include /usr/include/Motif* \ |
1894 |
+ "${prefix}"/*/include /usr/*/include /usr/local/*/include \ |
1895 |
+ "${prefix}"/include/* /usr/include/* /usr/local/include/*; do |
1896 |
+if test -f "$dir/Xm/Xm.h"; then |
1897 |
+ice_cv_motif_includes="$dir" |
1898 |
+break |
1899 |
+fi |
1900 |
+done |
1901 |
+if test "$ice_cv_motif_includes" = ""; then |
1902 |
+ice_cv_motif_includes=no |
1903 |
+fi |
1904 |
+]) |
1905 |
+# |
1906 |
+LIBS="$ice_motif_save_LIBS" |
1907 |
+CFLAGS="$ice_motif_save_CFLAGS" |
1908 |
+CPPFLAGS="$ice_motif_save_CPPFLAGS" |
1909 |
+LDFLAGS="$ice_motif_save_LDFLAGS" |
1910 |
+]) |
1911 |
+motif_includes="$ice_cv_motif_includes" |
1912 |
+fi |
1913 |
+# |
1914 |
+# |
1915 |
+# Now for the libraries. |
1916 |
+# |
1917 |
+if test "$motif_libraries" = ""; then |
1918 |
+AC_CACHE_VAL(ice_cv_motif_libraries, |
1919 |
+[ |
1920 |
+ice_motif_save_LIBS="$LIBS" |
1921 |
+ice_motif_save_CFLAGS="$CFLAGS" |
1922 |
+ice_motif_save_CPPFLAGS="$CPPFLAGS" |
1923 |
+ice_motif_save_LDFLAGS="$LDFLAGS" |
1924 |
+# |
1925 |
+LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS" |
1926 |
+CFLAGS="$X_CFLAGS $CFLAGS" |
1927 |
+CPPFLAGS="$X_CFLAGS $CPPFLAGS" |
1928 |
+LDFLAGS="$X_LIBS $LDFLAGS" |
1929 |
+# |
1930 |
+# We use XtToolkitInitialize() here since it takes no arguments |
1931 |
+# and thus also works with a C++ compiler. |
1932 |
+AC_TRY_LINK([ |
1933 |
+#include <X11/Intrinsic.h> |
1934 |
+#include <Xm/Xm.h> |
1935 |
+],[XtToolkitInitialize();], |
1936 |
+[ |
1937 |
+# libXm.a is in the standard search path. |
1938 |
+ice_cv_motif_libraries= |
1939 |
+], |
1940 |
+[ |
1941 |
+# libXm.a is not in the standard search path. |
1942 |
+# Locate it and put its directory in `motif_libraries' |
1943 |
+# |
1944 |
+# /usr/lib/Motif* are used on HP-UX (Motif). |
1945 |
+# /usr/lib/X11* are used on HP-UX (X and Athena). |
1946 |
+# /usr/dt is used on Solaris (Motif). |
1947 |
+# /usr/lesstif is used on Linux (Lesstif). |
1948 |
+# /usr/openwin is used on Solaris (X and Athena). |
1949 |
+# Other directories are just guesses. |
1950 |
+for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \ |
1951 |
+ /usr/lib/Motif2.0 /usr/lib/Motif1.2 /usr/lib/Motif1.1 \ |
1952 |
+ /usr/lib/X11R6 /usr/lib/X11R5 /usr/lib/X11R4 /usr/lib/X11 \ |
1953 |
+ /usr/dt/lib /usr/openwin/lib \ |
1954 |
+ /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \ |
1955 |
+ /usr/lesstif*/lib /usr/lib/Lesstif* \ |
1956 |
+ "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \ |
1957 |
+ "${prefix}"/lib/* /usr/lib/* /usr/local/lib/*; do |
1958 |
+if test -d "$dir" && test "`ls $dir/libXm.* 2> /dev/null`" != ""; then |
1959 |
+ice_cv_motif_libraries="$dir" |
1960 |
+break |
1961 |
+fi |
1962 |
+done |
1963 |
+if test "$ice_cv_motif_libraries" = ""; then |
1964 |
+ice_cv_motif_libraries=no |
1965 |
+fi |
1966 |
+]) |
1967 |
+# |
1968 |
+LIBS="$ice_motif_save_LIBS" |
1969 |
+CFLAGS="$ice_motif_save_CFLAGS" |
1970 |
+CPPFLAGS="$ice_motif_save_CPPFLAGS" |
1971 |
+LDFLAGS="$ice_motif_save_LDFLAGS" |
1972 |
+]) |
1973 |
+# |
1974 |
+motif_libraries="$ice_cv_motif_libraries" |
1975 |
+fi |
1976 |
+# Add Motif definitions to X flags |
1977 |
+# |
1978 |
+if test "$motif_includes" != "" && test "$motif_includes" != "$x_includes" && test "$motif_includes" != "no" |
1979 |
+then |
1980 |
+X_CFLAGS="-I$motif_includes $X_CFLAGS" |
1981 |
+fi |
1982 |
+if test "$motif_libraries" != "" && test "$motif_libraries" != "$x_libraries" && test "$motif_libraries" != "no" |
1983 |
+then |
1984 |
+case "$X_LIBS" in |
1985 |
+ *-R\ *) X_LIBS="-L$motif_libraries -R $motif_libraries $X_LIBS";; |
1986 |
+ *-R*) X_LIBS="-L$motif_libraries -R$motif_libraries $X_LIBS";; |
1987 |
+ *) X_LIBS="-L$motif_libraries $X_LIBS";; |
1988 |
+esac |
1989 |
+fi |
1990 |
+# |
1991 |
+# |
1992 |
+motif_libraries_result="$motif_libraries" |
1993 |
+motif_includes_result="$motif_includes" |
1994 |
+test "$motif_libraries_result" = "" && |
1995 |
+ motif_libraries_result="in default path" |
1996 |
+test "$motif_includes_result" = "" && |
1997 |
+ motif_includes_result="in default path" |
1998 |
+test "$motif_libraries_result" = "no" && |
1999 |
+ motif_libraries_result="(none)" |
2000 |
+test "$motif_includes_result" = "no" && |
2001 |
+ motif_includes_result="(none)" |
2002 |
+AC_MSG_RESULT( |
2003 |
+ [libraries $motif_libraries_result, headers $motif_includes_result]) |
2004 |
+])dnl |
2005 |
+# Usage: |
2006 |
+# SIM_AC_CHECK_PTHREAD([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) |
2007 |
+# |
2008 |
+# Try to find the PTHREAD development system. If it is found, these |
2009 |
+# shell variables are set: |
2010 |
+# |
2011 |
+# $sim_ac_pthread_cppflags (extra flags the compiler needs for pthread) |
2012 |
+# $sim_ac_pthread_ldflags (extra flags the linker needs for pthread) |
2013 |
+# $sim_ac_pthread_libs (link libraries the linker needs for pthread) |
2014 |
+# |
2015 |
+# The CPPFLAGS, LDFLAGS and LIBS flags will also be modified accordingly. |
2016 |
+# In addition, the variable $sim_ac_pthread_avail is set to "yes" if the |
2017 |
+# pthread development system is found. |
2018 |
+# |
2019 |
+# |
2020 |
+# Author: Morten Eriksen, <mortene@sim.no>. |
2021 |
+ |
2022 |
+AC_DEFUN([SIM_AC_CHECK_PTHREAD], [ |
2023 |
+ |
2024 |
+AC_ARG_WITH( |
2025 |
+ [pthread], |
2026 |
+ [ --with-pthread pthread installation directory], |
2027 |
+ [],[with_pthread=yes]) |
2028 |
+ |
2029 |
+sim_ac_pthread_avail=no |
2030 |
+ |
2031 |
+if test x"$with_pthread" != xno; then |
2032 |
+ if test x"$with_pthread" != xyes; then |
2033 |
+ sim_ac_pthread_cppflags="-I${with_pthread}/include" |
2034 |
+ sim_ac_pthread_ldflags="-L${with_pthread}/lib" |
2035 |
+ fi |
2036 |
+ sim_ac_pthread_libs_first="-lpthread" |
2037 |
+ sim_ac_pthread_libs_second="-pthread" |
2038 |
+ sim_ac_pthread_libs_third="-lc_r" |
2039 |
+ sim_ac_pthread_libs="" |
2040 |
+# FreeBSD 4.x use "-pthread" or "-lc_r" |
2041 |
+ |
2042 |
+ sim_ac_save_cppflags=$CPPFLAGS |
2043 |
+ sim_ac_save_ldflags=$LDFLAGS |
2044 |
+ sim_ac_save_libs=$LIBS |
2045 |
+ |
2046 |
+ AC_CACHE_CHECK( |
2047 |
+ [whether the pthread development system is available], |
2048 |
+ sim_cv_lib_pthread_avail, |
2049 |
+ [ |
2050 |
+ for sim_pthread_libs in $sim_ac_pthread_libs_first \ |
2051 |
+ $sim_ac_pthread_libs_second $sim_ac_pthread_libs_third ; do |
2052 |
+ if test x"$sim_cv_lib_pthread_avail" != x"yes" ; then |
2053 |
+ CPPFLAGS="$CPPFLAGS $sim_ac_pthread_cppflags" |
2054 |
+ LDFLAGS="$LDFLAGS $sim_ac_pthread_ldflags" |
2055 |
+ LIBS="$sim_pthread_libs $LIBS" |
2056 |
+ AC_TRY_LINK([#include <pthread.h>], |
2057 |
+ [(void)pthread_create(0L, 0L, 0L, 0L);], |
2058 |
+ [sim_cv_lib_pthread_avail=yes |
2059 |
+ sim_ac_pthread_libs="$sim_pthread_libs" |
2060 |
+ ], |
2061 |
+ [sim_cv_lib_pthread_avail=no]) |
2062 |
+ fi |
2063 |
+ if test x"$sim_cv_lib_pthread_avail" != x"yes"; then |
2064 |
+ CPPFLAGS=$sim_ac_save_cppflags |
2065 |
+ LDFLAGS=$sim_ac_save_ldflags |
2066 |
+ LIBS=$sim_ac_save_libs |
2067 |
+ fi |
2068 |
+ done |
2069 |
+ ] |
2070 |
+ ) |
2071 |
+ |
2072 |
+ if test x"$sim_cv_lib_pthread_avail" = xyes; then |
2073 |
+ sim_ac_pthread_avail=yes |
2074 |
+ $1 |
2075 |
+ else |
2076 |
+ CPPFLAGS=$sim_ac_save_cppflags |
2077 |
+ LDFLAGS=$sim_ac_save_ldflags |
2078 |
+ LIBS=$sim_ac_save_libs |
2079 |
+ $2 |
2080 |
+ fi |
2081 |
+fi |
2082 |
+]) |
2083 |
+ |
2084 |
+# Usage: |
2085 |
+# SIM_AC_CHECK_OPENGL([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) |
2086 |
+# |
2087 |
+# Try to find an OpenGL development system, either a native |
2088 |
+# implementation or the OpenGL-compatible Mesa library. If |
2089 |
+# it is found, these shell variables are set: |
2090 |
+# |
2091 |
+# $sim_ac_gl_cppflags (extra flags the compiler needs for OpenGL/Mesa) |
2092 |
+# $sim_ac_gl_ldflags (extra flags the linker needs for OpenGL/Mesa) |
2093 |
+# $sim_ac_gl_libs (link libraries the linker needs for OpenGL/Mesa) |
2094 |
+# |
2095 |
+# The CPPFLAGS, LDFLAGS and LIBS flags will also be modified accordingly. |
2096 |
+# In addition, the variable $sim_ac_gl_avail is set to "yes" if an |
2097 |
+# OpenGL-compatible development system is found. |
2098 |
+# |
2099 |
+# |
2100 |
+# Author: Morten Eriksen, <mortene@sim.no>. |
2101 |
+ |
2102 |
+AC_DEFUN(SIM_AC_CHECK_OPENGL, [ |
2103 |
+ |
2104 |
+unset sim_ac_gl_cppflags |
2105 |
+unset sim_ac_gl_ldflags |
2106 |
+unset sim_ac_gl_libs |
2107 |
+sim_ac_gl_avail=no |
2108 |
+ |
2109 |
+AC_ARG_WITH( |
2110 |
+ [mesa], |
2111 |
+ [ --with-mesa prefer MesaGL (if found) over OpenGL [[default=yes]]], |
2112 |
+ [],[with_mesa=yes]) |
2113 |
+ |
2114 |
+# It's usually libGL.so on UNIX systems and opengl32.lib on MSWindows. |
2115 |
+sim_ac_gl_glnames="-lGL -lopengl32" |
2116 |
+sim_ac_gl_mesaglnames=-lMesaGL |
2117 |
+GL_LIBS="" |
2118 |
+ |
2119 |
+if test "x$with_mesa" = "xyes"; then |
2120 |
+ sim_ac_gl_first=$sim_ac_gl_mesaglnames |
2121 |
+ sim_ac_gl_second=$sim_ac_gl_glnames |
2122 |
+else |
2123 |
+ sim_ac_gl_first=$sim_ac_gl_glnames |
2124 |
+ sim_ac_gl_second=$sim_ac_gl_mesaglnames |
2125 |
+fi |
2126 |
+ |
2127 |
+AC_ARG_WITH( |
2128 |
+ [opengl], |
2129 |
+ [ --with-opengl OpenGL/Mesa installation directory],[],[with_opengl=yes]) |
2130 |
+ |
2131 |
+if test x"$with_opengl" != xno; then |
2132 |
+ if test x"$with_opengl" != xyes; then |
2133 |
+ sim_ac_gl_cppflags="-I${with_opengl}/include" |
2134 |
+ sim_ac_gl_ldflags="-L${with_opengl}/lib" |
2135 |
+ else |
2136 |
+ # This is a common location for the OpenGL library on HPUX. |
2137 |
+ sim_ac_gl_hpux=/opt/graphics/OpenGL |
2138 |
+ if test -d $sim_ac_gl_hpux; then |
2139 |
+ sim_ac_gl_cppflags=-I$sim_ac_gl_hpux/include |
2140 |
+ sim_ac_gl_ldflags=-L$sim_ac_gl_hpux/lib |
2141 |
+ fi |
2142 |
+ fi |
2143 |
+ |
2144 |
+ sim_ac_save_cppflags=$CPPFLAGS |
2145 |
+ sim_ac_save_ldflags=$LDFLAGS |
2146 |
+ sim_ac_save_libs=$LIBS |
2147 |
+ |
2148 |
+ CPPFLAGS="$CPPFLAGS $sim_ac_gl_cppflags" |
2149 |
+ LDFLAGS="$LDFLAGS $sim_ac_gl_ldflags" |
2150 |
+ |
2151 |
+ AC_CACHE_CHECK( |
2152 |
+ [whether OpenGL library is available], |
2153 |
+ sim_cv_lib_gl, |
2154 |
+ [sim_cv_lib_gl=UNRESOLVED |
2155 |
+ |
2156 |
+ for sim_ac_gl_libcheck in $sim_ac_gl_first $sim_ac_gl_second; do |
2157 |
+ if test "x$sim_cv_lib_gl" = "xUNRESOLVED"; then |
2158 |
+ LIBS="$sim_ac_gl_libcheck $sim_ac_save_libs -lm" |
2159 |
+ AC_TRY_LINK([ |
2160 |
+ #if HAVE_WINDOWS_H |
2161 |
+ #include <windows.h> |
2162 |
+ #endif /* HAVE_WINDOWS_H */ |
2163 |
+ #include <GL/gl.h> |
2164 |
+ ], |
2165 |
+ [glPointSize(1.0f);], |
2166 |
+ [sim_cv_lib_gl="$sim_ac_gl_libcheck"], |
2167 |
+ ) |
2168 |
+ fi |
2169 |
+ done |
2170 |
+ ]) |
2171 |
+ |
2172 |
+ LIBS="$sim_ac_save_libs" |
2173 |
+ |
2174 |
+ if test "x$sim_cv_lib_gl" != "xUNRESOLVED"; then |
2175 |
+ sim_ac_gl_libs="$sim_cv_lib_gl" |
2176 |
+ else |
2177 |
+ AC_MSG_WARN([couldn't compile or link with OpenGL library -- trying with pthread library in place...]) |
2178 |
+ |
2179 |
+ SIM_AC_CHECK_PTHREAD([ |
2180 |
+ sim_ac_gl_cppflags="$sim_ac_gl_cppflags $sim_ac_pthread_cppflags" |
2181 |
+ sim_ac_gl_ldflags="$sim_ac_gl_ldflags $sim_ac_pthread_ldflags"], |
2182 |
+ [AC_MSG_WARN([couldn't compile or link with pthread library])]) |
2183 |
+ |
2184 |
+ if test "x$sim_ac_pthread_avail" = "xyes"; then |
2185 |
+ AC_CACHE_CHECK( |
2186 |
+ [whether OpenGL library can be linked with pthread library], |
2187 |
+ sim_cv_lib_gl_pthread, |
2188 |
+ [sim_cv_lib_gl_pthread=UNRESOLVED |
2189 |
+ for sim_ac_gl_libcheck in $sim_ac_gl_first $sim_ac_gl_second; do |
2190 |
+ if test "x$sim_cv_lib_gl_pthread" = "xUNRESOLVED"; then |
2191 |
+ LIBS="$sim_ac_gl_libcheck $sim_ac_pthread_libs $sim_ac_save_libs" |
2192 |
+ AC_TRY_LINK([ |
2193 |
+#if HAVE_WINDOWS_H |
2194 |
+#include <windows.h> |
2195 |
+#endif /* HAVE_WINDOWS_H */ |
2196 |
+#include <GL/gl.h> |
2197 |
+], |
2198 |
+ [ |
2199 |
+glPointSize(1.0f); |
2200 |
+], |
2201 |
+ [sim_cv_lib_gl_pthread="$sim_ac_gl_libcheck"]) |
2202 |
+ fi |
2203 |
+ done |
2204 |
+ ]) |
2205 |
+ |
2206 |
+ if test "x$sim_cv_lib_gl_pthread" != "xUNRESOLVED"; then |
2207 |
+ sim_ac_gl_libs="$sim_cv_lib_gl_pthread $sim_ac_pthread_libs" |
2208 |
+ fi |
2209 |
+ fi |
2210 |
+ fi |
2211 |
+ |
2212 |
+ |
2213 |
+ if test "x$sim_ac_gl_libs" != "x"; then |
2214 |
+ LIBS="$sim_ac_save_libs" |
2215 |
+ GL_LIBS="$sim_ac_gl_libs" |
2216 |
+ sim_ac_gl_avail=yes |
2217 |
+ $1 |
2218 |
+ else |
2219 |
+ CPPFLAGS=$sim_ac_save_cppflags |
2220 |
+ LDFLAGS=$sim_ac_save_ldflags |
2221 |
+ LIBS=$sim_ac_save_libs |
2222 |
+ $2 |
2223 |
+ fi |
2224 |
+fi |
2225 |
+]) |
2226 |
+ |
2227 |
+ |
2228 |
+# Usage: |
2229 |
+# SIM_AC_CHECK_GLU([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) |
2230 |
+# |
2231 |
+# Try to use the OpenGL utility library; GLU. If it is found, |
2232 |
+# these shell variables are set: |
2233 |
+# |
2234 |
+# $sim_ac_glu_cppflags (extra flags the compiler needs for GLU) |
2235 |
+# $sim_ac_glu_ldflags (extra flags the linker needs for GLU) |
2236 |
+# $sim_ac_glu_libs (link libraries the linker needs for GLU) |
2237 |
+# |
2238 |
+# The CPPFLAGS, LDFLAGS and LIBS flags will also be modified accordingly. |
2239 |
+# In addition, the variable $sim_ac_gly_avail is set to "yes" if GLU |
2240 |
+# is found. |
2241 |
+# |
2242 |
+# |
2243 |
+# Author: Morten Eriksen, <mortene@sim.no>. |
2244 |
+ |
2245 |
+AC_DEFUN(SIM_AC_CHECK_GLU, [ |
2246 |
+ |
2247 |
+unset sim_ac_glu_cppflags |
2248 |
+unset sim_ac_glu_ldflags |
2249 |
+unset sim_ac_glu_libs |
2250 |
+sim_ac_glu_avail=no |
2251 |
+ |
2252 |
+# It's usually libGLU.so on UNIX systems and glu32.lib on MSWindows. |
2253 |
+sim_ac_glu_names="-lGLU -lglu32" |
2254 |
+sim_ac_glu_mesanames=-lMesaGLU |
2255 |
+# with_mesa is set from the SIM_AC_CHECK_OPENGL macro. |
2256 |
+if test "x$with_mesa" = "xyes"; then |
2257 |
+ sim_ac_glu_first=$sim_ac_glu_mesanames |
2258 |
+ sim_ac_glu_second=$sim_ac_glu_names |
2259 |
+else |
2260 |
+ sim_ac_glu_first=$sim_ac_glu_names |
2261 |
+ sim_ac_glu_second=$sim_ac_glu_mesanames |
2262 |
+fi |
2263 |
+ |
2264 |
+AC_ARG_WITH( |
2265 |
+ [glu],[ --with-glu use the OpenGL utility library [[default=yes]]],[],[with_glu=yes]) |
2266 |
+ |
2267 |
+if test x"$with_glu" != xno; then |
2268 |
+ if test x"$with_glu" != xyes; then |
2269 |
+ sim_ac_glu_cppflags="-I${with_glu}/include" |
2270 |
+ sim_ac_glu_ldflags="-L${with_glu}/lib" |
2271 |
+ fi |
2272 |
+ |
2273 |
+ sim_ac_save_cppflags=$CPPFLAGS |
2274 |
+ sim_ac_save_ldflags=$LDFLAGS |
2275 |
+ sim_ac_save_libs=$LIBS |
2276 |
+ |
2277 |
+ CPPFLAGS="$CPPFLAGS $sim_ac_glu_cppflags" |
2278 |
+ LDFLAGS="$LDFLAGS $sim_ac_glu_ldflags" |
2279 |
+ |
2280 |
+ AC_CACHE_CHECK( |
2281 |
+ [whether GLU is available], |
2282 |
+ sim_cv_lib_glu, |
2283 |
+ [sim_cv_lib_glu=UNRESOLVED |
2284 |
+ |
2285 |
+ # Some platforms (like BeOS) have the GLU functionality in the GL |
2286 |
+ # library (and no GLU library present). |
2287 |
+ for sim_ac_glu_libcheck in "" $sim_ac_glu_first $sim_ac_glu_second; do |
2288 |
+ if test "x$sim_cv_lib_glu" = "xUNRESOLVED"; then |
2289 |
+ LIBS="$sim_ac_glu_libcheck $sim_ac_save_libs $GL_LIBS" |
2290 |
+ AC_TRY_LINK([ |
2291 |
+#if HAVE_WINDOWS_H |
2292 |
+#include <windows.h> |
2293 |
+#endif /* HAVE_WINDOWS_H */ |
2294 |
+#include <GL/gl.h> |
2295 |
+#include <GL/glu.h> |
2296 |
+], |
2297 |
+ [ |
2298 |
+gluSphere(0L, 1.0, 1, 1); |
2299 |
+], |
2300 |
+ [sim_cv_lib_glu="$sim_ac_glu_libcheck"]) |
2301 |
+ fi |
2302 |
+ done |
2303 |
+ ]) |
2304 |
+ |
2305 |
+ LIBS="$sim_ac_save_libs" |
2306 |
+ |
2307 |
+ if test "x$sim_cv_lib_glu" != "xUNRESOLVED"; then |
2308 |
+ sim_ac_glu_libs="$sim_cv_lib_glu" |
2309 |
+ LIBS="$sim_ac_save_libs" |
2310 |
+ GL_LIBS="$GL_LIBS $sim_ac_glu_libs" |
2311 |
+ sim_ac_glu_avail=yes |
2312 |
+ $1 |
2313 |
+ else |
2314 |
+ CPPFLAGS=$sim_ac_save_cppflags |
2315 |
+ LDFLAGS=$sim_ac_save_ldflags |
2316 |
+ LIBS=$sim_ac_save_libs |
2317 |
+ $2 |
2318 |
+ fi |
2319 |
+fi |
2320 |
+]) |
2321 |
+ |
2322 |
+ |
2323 |
+# ************************************************************************** |
2324 |
+# SIM_AC_GLU_READY_IFELSE( [ACTION-IF-TRUE], [ACTION-IF-FALSE] ) |
2325 |
+ |
2326 |
+AC_DEFUN([SIM_AC_GLU_READY_IFELSE], |
2327 |
+[AC_CACHE_CHECK( |
2328 |
+ [if GLU is available as part of GL library], |
2329 |
+ [sim_cv_glu_ready], |
2330 |
+ [AC_TRY_LINK( |
2331 |
+ [ |
2332 |
+#if HAVE_WINDOWS_H |
2333 |
+#include <windows.h> |
2334 |
+#endif /* HAVE_WINDOWS_H */ |
2335 |
+#include <GL/gl.h> |
2336 |
+#include <GL/glu.h> |
2337 |
+], |
2338 |
+ [ |
2339 |
+gluSphere(0L, 1.0, 1, 1); |
2340 |
+], |
2341 |
+ [sim_cv_glu_ready=true], |
2342 |
+ [sim_cv_glu_ready=false])]) |
2343 |
+if ${sim_cv_glu_ready}; then |
2344 |
+ ifelse([$1], , :, [$1]) |
2345 |
+else |
2346 |
+ ifelse([$2], , :, [$2]) |
2347 |
+fi |
2348 |
+]) # SIM_AC_GLU_READY_IFELSE() |
2349 |
+ |
2350 |
+ |
2351 |
+# Usage: |
2352 |
+# SIM_AC_GLU_NURBSOBJECT([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) |
2353 |
+# |
2354 |
+# Try to find out whether the interface struct against the GLU |
2355 |
+# library NURBS functions is called "GLUnurbs" or "GLUnurbsObj". |
2356 |
+# (This seems to have changed somewhere between release 1.1 and |
2357 |
+# release 1.3 of GLU). |
2358 |
+# |
2359 |
+# The variable $sim_ac_glu_nurbsobject is set to the correct name |
2360 |
+# if the nurbs structure is found. |
2361 |
+# |
2362 |
+# Author: Morten Eriksen, <mortene@sim.no>. |
2363 |
+ |
2364 |
+AC_DEFUN(SIM_AC_GLU_NURBSOBJECT, [ |
2365 |
+AC_CACHE_CHECK( |
2366 |
+ [what structure to use in the GLU NURBS interface], |
2367 |
+ sim_cv_func_glu_nurbsobject, |
2368 |
+ [sim_cv_func_glu_nurbsobject=NONE |
2369 |
+ for sim_ac_glu_structname in GLUnurbs GLUnurbsObj; do |
2370 |
+ if test "$sim_cv_func_glu_nurbsobject" = NONE; then |
2371 |
+ AC_TRY_LINK([ |
2372 |
+#if HAVE_WINDOWS_H |
2373 |
+#include <windows.h> |
2374 |
+#endif /* HAVE_WINDOWS_H */ |
2375 |
+#include <GL/gl.h> |
2376 |
+#include <GL/glu.h>], |
2377 |
+ [$sim_ac_glu_structname * hepp = gluNewNurbsRenderer(); |
2378 |
+ gluDeleteNurbsRenderer(hepp)], |
2379 |
+ [sim_cv_func_glu_nurbsobject=$sim_ac_glu_structname]) |
2380 |
+ fi |
2381 |
+ done |
2382 |
+]) |
2383 |
+ |
2384 |
+if test $sim_cv_func_glu_nurbsobject = NONE; then |
2385 |
+ sim_ac_glu_nurbsobject= |
2386 |
+ $2 |
2387 |
+else |
2388 |
+ sim_ac_glu_nurbsobject=$sim_cv_func_glu_nurbsobject |
2389 |
+ $1 |
2390 |
+fi |
2391 |
+]) |
2392 |
+ |
2393 |
+# ************************************************************************** |
2394 |
+# SIM_AC_HAVE_GLX_IFELSE( IF-FOUND, IF-NOT-FOUND ) |
2395 |
+# |
2396 |
+# Check whether GLX is on the system. |
2397 |
+ |
2398 |
+AC_DEFUN([SIM_AC_HAVE_GLX_IFELSE], [ |
2399 |
+AC_CACHE_CHECK( |
2400 |
+ [whether GLX is on the system], |
2401 |
+ sim_cv_have_glx, |
2402 |
+ AC_TRY_LINK( |
2403 |
+ [#include <GL/glx.h>], |
2404 |
+ [(void)glXChooseVisual(0L, 0, 0L);], |
2405 |
+ [sim_cv_have_glx=true], |
2406 |
+ [sim_cv_have_glx=false])) |
2407 |
+ |
2408 |
+if ${sim_cv_have_glx=false}; then |
2409 |
+ ifelse([$1], , :, [$1]) |
2410 |
+else |
2411 |
+ ifelse([$2], , :, [$2]) |
2412 |
+fi |
2413 |
+]) # SIM_AC_HAVE_GLX_IFELSE() |
2414 |
+ |
2415 |
+# Usage: |
2416 |
+# SIM_CHECK_MOTIF_GLWIDGET([ ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]) |
2417 |
+# |
2418 |
+# Description: |
2419 |
+# This macro checks for a GL widget that can be used with Xt/Motif. |
2420 |
+# |
2421 |
+# Variables: |
2422 |
+# $sim_cv_motif_glwidget (cached) class + header + library |
2423 |
+# $sim_cv_motif_glwidget_hdrloc (cached) GL | X11/GLw |
2424 |
+# |
2425 |
+# $sim_ac_motif_glwidget_class glwMDrawingAreaWidgetClass | |
2426 |
+# glwDrawingAreaWidgetClass |
2427 |
+# $sim_ac_motif_glwidget_header GLwDrawA.h | GLwMDrawA.h |
2428 |
+# $sim_ac_motif_glwidget_library GLwM | GLw | MesaGLwM | MesaGLw |
2429 |
+# |
2430 |
+# $LIBS = -l$sim_ac_motif_glwidget_library $LIBS |
2431 |
+# |
2432 |
+# Defines: |
2433 |
+# XT_GLWIDGET $sim_ac_motif_glwidget_class |
2434 |
+# HAVE_GL_GLWDRAWA_H #include <GL/GLwDrawA.h> |
2435 |
+# HAVE_GL_GLWMDRAWA_H #include <GL/GLwMDrawA.h> |
2436 |
+# HAVE_X11_GWL_GLWDRAWA_H #include <X11/GLw/GLwDrawA.h> |
2437 |
+# HAVE_X11_GWL_GLWMDRAWA_H #include <X11/GLw/GLwMDrawA.h> |
2438 |
+# |
2439 |
+# Authors: |
2440 |
+# Lars J. Aas <larsa@sim.no>, |
2441 |
+# Loring Holden <lsh@cs.brown.edu>, |
2442 |
+# Morten Eriksen <mortene@sim.no> |
2443 |
+# |
2444 |
+ |
2445 |
+AC_DEFUN([SIM_CHECK_MOTIF_GLWIDGET], [ |
2446 |
+ |
2447 |
+AC_ARG_WITH( |
2448 |
+[glw],[ --with-glw use the OpenGL widget Library [[default=yes]]], [], [with_glw=yes]) |
2449 |
+ |
2450 |
+if test x"$with_glw" != x"no" ; then |
2451 |
+ if test x"$with_glw" != x"yes" ; then |
2452 |
+ sim_ac_glw_cppflags="-I${with_glw}/include" |
2453 |
+ sim_ac_glw_ldflags="-L${with_glw}/lib" |
2454 |
+ fi |
2455 |
+ |
2456 |
+ SAVECPPFLAGS="$CPPFLAGS" |
2457 |
+ SAVELDFLAGS="$LDFLAGS" |
2458 |
+ SAVELIBS="$LIBS" |
2459 |
+ |
2460 |
+ CPPFLAGS="$SAVECPPFLAGS $sim_ac_glw_cppflags" |
2461 |
+ LDFLAGS="$SAVELDFLAGS $sim_ac_glw_ldflags" |
2462 |
+ AC_CACHE_CHECK( |
2463 |
+ [for a GL widget], |
2464 |
+ sim_cv_motif_glwidget, |
2465 |
+ [ |
2466 |
+ XWIDGETLIBS="$X_LIBS $X11_LIBS $XT_LIBS $X_LIBS $X_PRE_LIBS $XM_LIBS" |
2467 |
+ sim_cv_motif_glwidget=UNKNOWN |
2468 |
+ for lib in GLwM GLw MesaGLwM MesaGLw; do |
2469 |
+ if test x"$sim_cv_motif_glwidget" = x"UNKNOWN"; then |
2470 |
+ LIBS="-l$lib $SAVELIBS $XWIDGETLIBS $GL_LIBS -lm" |
2471 |
+ AC_TRY_LINK( |
2472 |
+ [#include <X11/Intrinsic.h> |
2473 |
+ #include <GL/GLwMDrawA.h> |
2474 |
+ extern WidgetClass glwMDrawingAreaWidgetClass;], |
2475 |
+ [Widget glxManager = NULL; |
2476 |
+ Widget glxWidget = XtVaCreateManagedWidget("GLWidget", |
2477 |
+ glwMDrawingAreaWidgetClass, glxManager, NULL);], |
2478 |
+ [sim_cv_motif_glwidget="glwMDrawingAreaWidgetClass GLwMDrawA.h $lib"], |
2479 |
+ [sim_cv_motif_glwidget=UNKNOWN]) |
2480 |
+ fi |
2481 |
+ done |
2482 |
+ LIBS=$SAVELIBS |
2483 |
+ ]) |
2484 |
+ |
2485 |
+if test "x$sim_cv_motif_glwidget" = "xUNKNOWN"; then |
2486 |
+ ifelse([$2], , :, [$2]) |
2487 |
+else |
2488 |
+ sim_ac_motif_glwidget_class=`echo $sim_cv_motif_glwidget | cut -d" " -f1` |
2489 |
+ sim_ac_motif_glwidget_header=`echo $sim_cv_motif_glwidget | cut -d" " -f2` |
2490 |
+ sim_ac_motif_glwidget_library=`echo $sim_cv_motif_glwidget | cut -d" " -f3` |
2491 |
+ |
2492 |
+ AC_CACHE_CHECK( |
2493 |
+ [the $sim_ac_motif_glwidget_header header location], |
2494 |
+ sim_cv_motif_glwidget_hdrloc, |
2495 |
+ [sim_cv_motif_glwidget_hdrloc=UNKNOWN |
2496 |
+ for location in X11/GLw GL; do |
2497 |
+ if test "x$sim_cv_motif_glwidget_hdrloc" = "xUNKNOWN"; then |
2498 |
+ AC_TRY_CPP( |
2499 |
+ [#include <X11/Intrinsic.h> |
2500 |
+ #include <$location/$sim_ac_motif_glwidget_header>], |
2501 |
+ [sim_cv_motif_glwidget_hdrloc=$location], |
2502 |
+ [sim_cv_motif_glwidget_hdrloc=UNKNOWN]) |
2503 |
+ fi |
2504 |
+ done]) |
2505 |
+ |
2506 |
+ if test "x$sim_cv_motif_glwidget_hdrloc" = "xUNKNOWN"; then |
2507 |
+ ifelse([$2], , :, [$2]) |
2508 |
+ else |
2509 |
+ if test "x$sim_ac_motif_glwidget_header" = "xGLwDrawA.h"; then |
2510 |
+ if test "x$sim_cv_motif_glwidget_hdrloc" = "xGL"; then |
2511 |
+ AC_DEFINE(HAVE_GL_GLWDRAWA_H, 1, |
2512 |
+ [Define this to use OpenGL widget from <GL/GLwDrawA.h>]) |
2513 |
+ else |
2514 |
+ AC_DEFINE(HAVE_X11_GLW_GLWDRAWA_H, 1, |
2515 |
+ [Define this to use OpenGL widget from <X11/GLw/GLwDrawA.h>]) |
2516 |
+ fi |
2517 |
+ else |
2518 |
+ if test "x$sim_cv_motif_glwidget_hdrloc" = "xGL"; then |
2519 |
+ AC_DEFINE(HAVE_GL_GLWMDRAWA_H, 1, |
2520 |
+ [Define this to use OpenGL widget from <GL/GLwMDrawA.h>]) |
2521 |
+ else |
2522 |
+ AC_DEFINE(HAVE_X11_GLW_GLWMDRAWA_H, 1, |
2523 |
+ [Define this to use OpenGL widget from <X11/GLw/GLwMDrawA.h>]) |
2524 |
+ fi |
2525 |
+ fi |
2526 |
+ |
2527 |
+ AC_DEFINE_UNQUOTED(XT_GLWIDGET, $sim_ac_motif_glwidget_class, |
2528 |
+ [Define this to the Xt/Motif OpenGL widget class to use]) |
2529 |
+ |
2530 |
+ LIBS="$LIBS" |
2531 |
+ GL_LIBS="$GL_LIBS -l$sim_ac_motif_glwidget_library" |
2532 |
+ $1 |
2533 |
+ fi |
2534 |
+fi |
2535 |
+ |
2536 |
+fi |
2537 |
+]) |
2538 |
+ |
2539 |
+# Do all the work for Automake. This macro actually does too much -- |
2540 |
+# some checks are only needed if your package does certain things. |
2541 |
+# But this isn't really a big deal. |
2542 |
+ |
2543 |
+# serial 1 |
2544 |
+ |
2545 |
+dnl Usage: |
2546 |
+dnl AM_INIT_AUTOMAKE(package,version, [no-define]) |
2547 |
+ |
2548 |
+AC_DEFUN(AM_INIT_AUTOMAKE, |
2549 |
+[AC_REQUIRE([AC_PROG_INSTALL]) |
2550 |
+PACKAGE=[$1] |
2551 |
+AC_SUBST(PACKAGE) |
2552 |
+VERSION=[$2] |
2553 |
+AC_SUBST(VERSION) |
2554 |
+dnl test to see if srcdir already configured |
2555 |
+if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
2556 |
+ AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) |
2557 |
+fi |
2558 |
+ifelse([$3],, |
2559 |
+AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |
2560 |
+AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) |
2561 |
+AC_REQUIRE([AM_SANITY_CHECK]) |
2562 |
+AC_REQUIRE([AC_ARG_PROGRAM]) |
2563 |
+dnl FIXME This is truly gross. |
2564 |
+missing_dir=`cd $ac_aux_dir && pwd` |
2565 |
+AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) |
2566 |
+AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) |
2567 |
+AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) |
2568 |
+AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) |
2569 |
+AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) |
2570 |
+AC_REQUIRE([AC_PROG_MAKE_SET])]) |
2571 |
+ |
2572 |
+# |
2573 |
+# Check to make sure that the build environment is sane. |
2574 |
+# |
2575 |
+ |
2576 |
+AC_DEFUN(AM_SANITY_CHECK, |
2577 |
+[AC_MSG_CHECKING([whether build environment is sane]) |
2578 |
+# Just in case |
2579 |
+sleep 1 |
2580 |
+echo timestamp > conftestfile |
2581 |
+# Do `set' in a subshell so we don't clobber the current shell's |
2582 |
+# arguments. Must try -L first in case configure is actually a |
2583 |
+# symlink; some systems play weird games with the mod time of symlinks |
2584 |
+# (eg FreeBSD returns the mod time of the symlink's containing |
2585 |
+# directory). |
2586 |
+if ( |
2587 |
+ set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
2588 |
+ if test "[$]*" = "X"; then |
2589 |
+ # -L didn't work. |
2590 |
+ set X `ls -t $srcdir/configure conftestfile` |
2591 |
+ fi |
2592 |
+ if test "[$]*" != "X $srcdir/configure conftestfile" \ |
2593 |
+ && test "[$]*" != "X conftestfile $srcdir/configure"; then |
2594 |
+ |
2595 |
+ # If neither matched, then we have a broken ls. This can happen |
2596 |
+ # if, for instance, CONFIG_SHELL is bash and it inherits a |
2597 |
+ # broken ls alias from the environment. This has actually |
2598 |
+ # happened. Such a system could not be considered "sane". |
2599 |
+ AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken |
2600 |
+alias in your environment]) |
2601 |
+ fi |
2602 |
+ |
2603 |
+ test "[$]2" = conftestfile |
2604 |
+ ) |
2605 |
+then |
2606 |
+ # Ok. |
2607 |
+ : |
2608 |
+else |
2609 |
+ AC_MSG_ERROR([newly created file is older than distributed files! |
2610 |
+Check your system clock]) |
2611 |
+fi |
2612 |
+rm -f conftest* |
2613 |
+AC_MSG_RESULT(yes)]) |
2614 |
+ |
2615 |
+dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) |
2616 |
+dnl The program must properly implement --version. |
2617 |
+AC_DEFUN(AM_MISSING_PROG, |
2618 |
+[AC_MSG_CHECKING(for working $2) |
2619 |
+# Run test in a subshell; some versions of sh will print an error if |
2620 |
+# an executable is not found, even if stderr is redirected. |
2621 |
+# Redirect stdin to placate older versions of autoconf. Sigh. |
2622 |
+if ($2 --version) < /dev/null > /dev/null 2>&1; then |
2623 |
+ $1=$2 |
2624 |
+ AC_MSG_RESULT(found) |
2625 |
+else |
2626 |
+ $1="$3/missing $2" |
2627 |
+ AC_MSG_RESULT(missing) |
2628 |
+fi |
2629 |
+AC_SUBST($1)]) |
2630 |
+ |
2631 |
+# Like AC_CONFIG_HEADER, but automatically create stamp file. |
2632 |
+ |
2633 |
+AC_DEFUN(AM_CONFIG_HEADER, |
2634 |
+[AC_PREREQ([2.12]) |
2635 |
+AC_CONFIG_HEADER([$1]) |
2636 |
+dnl When config.status generates a header, we must update the stamp-h file. |
2637 |
+dnl This file resides in the same directory as the config header |
2638 |
+dnl that is generated. We must strip everything past the first ":", |
2639 |
+dnl and everything past the last "/". |
2640 |
+AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl |
2641 |
+ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>, |
2642 |
+<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>, |
2643 |
+<<am_indx=1 |
2644 |
+for am_file in <<$1>>; do |
2645 |
+ case " <<$>>CONFIG_HEADERS " in |
2646 |
+ *" <<$>>am_file "*<<)>> |
2647 |
+ echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx |
2648 |
+ ;; |
2649 |
+ esac |
2650 |
+ am_indx=`expr "<<$>>am_indx" + 1` |
2651 |
+done<<>>dnl>>) |
2652 |
+changequote([,]))]) |
2653 |
+ |
2654 |
Index: config.guess |
2655 |
=================================================================== |
2656 |
|
2657 |
|
2658 |
--- /dev/null Fri Jun 8 19:07:45 2001 |
2659 |
+++ config.guess Fri Jun 8 19:30:18 2001 |
2660 |
@@ -0,0 +1,1183 @@ |
2661 |
+#! /bin/sh |
2662 |
+# Attempt to guess a canonical system name. |
2663 |
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 |
2664 |
+# Free Software Foundation, Inc. |
2665 |
+# |
2666 |
+# This file is free software; you can redistribute it and/or modify it |
2667 |
+# under the terms of the GNU General Public License as published by |
2668 |
+# the Free Software Foundation; either version 2 of the License, or |
2669 |
+# (at your option) any later version. |
2670 |
+# |
2671 |
+# This program is distributed in the hope that it will be useful, but |
2672 |
+# WITHOUT ANY WARRANTY; without even the implied warranty of |
2673 |
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
2674 |
+# General Public License for more details. |
2675 |
+# |
2676 |
+# You should have received a copy of the GNU General Public License |
2677 |
+# along with this program; if not, write to the Free Software |
2678 |
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
2679 |
+# |
2680 |
+# As a special exception to the GNU General Public License, if you |
2681 |
+# distribute this file as part of a program that contains a |
2682 |
+# configuration script generated by Autoconf, you may include it under |
2683 |
+# the same distribution terms that you use for the rest of that program. |
2684 |
+ |
2685 |
+# Written by Per Bothner <bothner@cygnus.com>. |
2686 |
+# Please send patches to <config-patches@gnu.org>. |
2687 |
+# |
2688 |
+# This script attempts to guess a canonical system name similar to |
2689 |
+# config.sub. If it succeeds, it prints the system name on stdout, and |
2690 |
+# exits with 0. Otherwise, it exits with 1. |
2691 |
+# |
2692 |
+# The plan is that this can be called by configure scripts if you |
2693 |
+# don't specify an explicit system type (host/target name). |
2694 |
+# |
2695 |
+# Only a few systems have been added to this list; please add others |
2696 |
+# (but try to keep the structure clean). |
2697 |
+# |
2698 |
+ |
2699 |
+# Use $HOST_CC if defined. $CC may point to a cross-compiler |
2700 |
+if test x"$CC_FOR_BUILD" = x; then |
2701 |
+ if test x"$HOST_CC" != x; then |
2702 |
+ CC_FOR_BUILD="$HOST_CC" |
2703 |
+ else |
2704 |
+ if test x"$CC" != x; then |
2705 |
+ CC_FOR_BUILD="$CC" |
2706 |
+ else |
2707 |
+ CC_FOR_BUILD=cc |
2708 |
+ fi |
2709 |
+ fi |
2710 |
+fi |
2711 |
+ |
2712 |
+ |
2713 |
+# This is needed to find uname on a Pyramid OSx when run in the BSD universe. |
2714 |
+# (ghazi@noc.rutgers.edu 8/24/94.) |
2715 |
+if (test -f /.attbin/uname) >/dev/null 2>&1 ; then |
2716 |
+ PATH=$PATH:/.attbin ; export PATH |
2717 |
+fi |
2718 |
+ |
2719 |
+UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown |
2720 |
+UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown |
2721 |
+UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown |
2722 |
+UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown |
2723 |
+ |
2724 |
+dummy=dummy-$$ |
2725 |
+trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15 |
2726 |
+ |
2727 |
+# Note: order is significant - the case branches are not exclusive. |
2728 |
+ |
2729 |
+case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in |
2730 |
+ *:NetBSD:*:*) |
2731 |
+ # Netbsd (nbsd) targets should (where applicable) match one or |
2732 |
+ # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, |
2733 |
+ # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently |
2734 |
+ # switched to ELF, *-*-netbsd* would select the old |
2735 |
+ # object file format. This provides both forward |
2736 |
+ # compatibility and a consistent mechanism for selecting the |
2737 |
+ # object file format. |
2738 |
+ # Determine the machine/vendor (is the vendor relevant). |
2739 |
+ case "${UNAME_MACHINE}" in |
2740 |
+ amiga) machine=m68k-cbm ;; |
2741 |
+ arm32) machine=arm-unknown ;; |
2742 |
+ atari*) machine=m68k-atari ;; |
2743 |
+ sun3*) machine=m68k-sun ;; |
2744 |
+ mac68k) machine=m68k-apple ;; |
2745 |
+ macppc) machine=powerpc-apple ;; |
2746 |
+ hp3[0-9][05]) machine=m68k-hp ;; |
2747 |
+ ibmrt|romp-ibm) machine=romp-ibm ;; |
2748 |
+ *) machine=${UNAME_MACHINE}-unknown ;; |
2749 |
+ esac |
2750 |
+ # The Operating System including object format. |
2751 |
+ if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
2752 |
+ | grep __ELF__ >/dev/null |
2753 |
+ then |
2754 |
+ # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). |
2755 |
+ # Return netbsd for either. FIX? |
2756 |
+ os=netbsd |
2757 |
+ else |
2758 |
+ os=netbsdelf |
2759 |
+ fi |
2760 |
+ # The OS release |
2761 |
+ release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` |
2762 |
+ # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: |
2763 |
+ # contains redundant information, the shorter form: |
2764 |
+ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
2765 |
+ echo "${machine}-${os}${release}" |
2766 |
+ exit 0 ;; |
2767 |
+ alpha:OSF1:*:*) |
2768 |
+ if test $UNAME_RELEASE = "V4.0"; then |
2769 |
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` |
2770 |
+ fi |
2771 |
+ # A Vn.n version is a released version. |
2772 |
+ # A Tn.n version is a released field test version. |
2773 |
+ # A Xn.n version is an unreleased experimental baselevel. |
2774 |
+ # 1.2 uses "1.2" for uname -r. |
2775 |
+ cat <<EOF >$dummy.s |
2776 |
+ .data |
2777 |
+\$Lformat: |
2778 |
+ .byte 37,100,45,37,120,10,0 # "%d-%x\n" |
2779 |
+ |
2780 |
+ .text |
2781 |
+ .globl main |
2782 |
+ .align 4 |
2783 |
+ .ent main |
2784 |
+main: |
2785 |
+ .frame \$30,16,\$26,0 |
2786 |
+ ldgp \$29,0(\$27) |
2787 |
+ .prologue 1 |
2788 |
+ .long 0x47e03d80 # implver \$0 |
2789 |
+ lda \$2,-1 |
2790 |
+ .long 0x47e20c21 # amask \$2,\$1 |
2791 |
+ lda \$16,\$Lformat |
2792 |
+ mov \$0,\$17 |
2793 |
+ not \$1,\$18 |
2794 |
+ jsr \$26,printf |
2795 |
+ ldgp \$29,0(\$26) |
2796 |
+ mov 0,\$16 |
2797 |
+ jsr \$26,exit |
2798 |
+ .end main |
2799 |
+EOF |
2800 |
+ $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null |
2801 |
+ if test "$?" = 0 ; then |
2802 |
+ case `./$dummy` in |
2803 |
+ 0-0) |
2804 |
+ UNAME_MACHINE="alpha" |
2805 |
+ ;; |
2806 |
+ 1-0) |
2807 |
+ UNAME_MACHINE="alphaev5" |
2808 |
+ ;; |
2809 |
+ 1-1) |
2810 |
+ UNAME_MACHINE="alphaev56" |
2811 |
+ ;; |
2812 |
+ 1-101) |
2813 |
+ UNAME_MACHINE="alphapca56" |
2814 |
+ ;; |
2815 |
+ 2-303) |
2816 |
+ UNAME_MACHINE="alphaev6" |
2817 |
+ ;; |
2818 |
+ 2-307) |
2819 |
+ UNAME_MACHINE="alphaev67" |
2820 |
+ ;; |
2821 |
+ esac |
2822 |
+ fi |
2823 |
+ rm -f $dummy.s $dummy |
2824 |
+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` |
2825 |
+ exit 0 ;; |
2826 |
+ Alpha\ *:Windows_NT*:*) |
2827 |
+ # How do we know it's Interix rather than the generic POSIX subsystem? |
2828 |
+ # Should we change UNAME_MACHINE based on the output of uname instead |
2829 |
+ # of the specific Alpha model? |
2830 |
+ echo alpha-pc-interix |
2831 |
+ exit 0 ;; |
2832 |
+ 21064:Windows_NT:50:3) |
2833 |
+ echo alpha-dec-winnt3.5 |
2834 |
+ exit 0 ;; |
2835 |
+ Amiga*:UNIX_System_V:4.0:*) |
2836 |
+ echo m68k-cbm-sysv4 |
2837 |
+ exit 0;; |
2838 |
+ amiga:OpenBSD:*:*) |
2839 |
+ echo m68k-unknown-openbsd${UNAME_RELEASE} |
2840 |
+ exit 0 ;; |
2841 |
+ *:[Aa]miga[Oo][Ss]:*:*) |
2842 |
+ echo ${UNAME_MACHINE}-unknown-amigaos |
2843 |
+ exit 0 ;; |
2844 |
+ arc64:OpenBSD:*:*) |
2845 |
+ echo mips64el-unknown-openbsd${UNAME_RELEASE} |
2846 |
+ exit 0 ;; |
2847 |
+ arc:OpenBSD:*:*) |
2848 |
+ echo mipsel-unknown-openbsd${UNAME_RELEASE} |
2849 |
+ exit 0 ;; |
2850 |
+ hkmips:OpenBSD:*:*) |
2851 |
+ echo mips-unknown-openbsd${UNAME_RELEASE} |
2852 |
+ exit 0 ;; |
2853 |
+ pmax:OpenBSD:*:*) |
2854 |
+ echo mipsel-unknown-openbsd${UNAME_RELEASE} |
2855 |
+ exit 0 ;; |
2856 |
+ sgi:OpenBSD:*:*) |
2857 |
+ echo mips-unknown-openbsd${UNAME_RELEASE} |
2858 |
+ exit 0 ;; |
2859 |
+ wgrisc:OpenBSD:*:*) |
2860 |
+ echo mipsel-unknown-openbsd${UNAME_RELEASE} |
2861 |
+ exit 0 ;; |
2862 |
+ *:OS/390:*:*) |
2863 |
+ echo i370-ibm-openedition |
2864 |
+ exit 0 ;; |
2865 |
+ arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
2866 |
+ echo arm-acorn-riscix${UNAME_RELEASE} |
2867 |
+ exit 0;; |
2868 |
+ SR2?01:HI-UX/MPP:*:*) |
2869 |
+ echo hppa1.1-hitachi-hiuxmpp |
2870 |
+ exit 0;; |
2871 |
+ Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) |
2872 |
+ # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. |
2873 |
+ if test "`(/bin/universe) 2>/dev/null`" = att ; then |
2874 |
+ echo pyramid-pyramid-sysv3 |
2875 |
+ else |
2876 |
+ echo pyramid-pyramid-bsd |
2877 |
+ fi |
2878 |
+ exit 0 ;; |
2879 |
+ NILE*:*:*:dcosx) |
2880 |
+ echo pyramid-pyramid-svr4 |
2881 |
+ exit 0 ;; |
2882 |
+ sun4H:SunOS:5.*:*) |
2883 |
+ echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
2884 |
+ exit 0 ;; |
2885 |
+ sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
2886 |
+ echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
2887 |
+ exit 0 ;; |
2888 |
+ i86pc:SunOS:5.*:*) |
2889 |
+ echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
2890 |
+ exit 0 ;; |
2891 |
+ sun4*:SunOS:6*:*) |
2892 |
+ # According to config.sub, this is the proper way to canonicalize |
2893 |
+ # SunOS6. Hard to guess exactly what SunOS6 will be like, but |
2894 |
+ # it's likely to be more like Solaris than SunOS4. |
2895 |
+ echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
2896 |
+ exit 0 ;; |
2897 |
+ sun4*:SunOS:*:*) |
2898 |
+ case "`/usr/bin/arch -k`" in |
2899 |
+ Series*|S4*) |
2900 |
+ UNAME_RELEASE=`uname -v` |
2901 |
+ ;; |
2902 |
+ esac |
2903 |
+ # Japanese Language versions have a version number like `4.1.3-JL'. |
2904 |
+ echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` |
2905 |
+ exit 0 ;; |
2906 |
+ sun3*:SunOS:*:*) |
2907 |
+ echo m68k-sun-sunos${UNAME_RELEASE} |
2908 |
+ exit 0 ;; |
2909 |
+ sun*:*:4.2BSD:*) |
2910 |
+ UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` |
2911 |
+ test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 |
2912 |
+ case "`/bin/arch`" in |
2913 |
+ sun3) |
2914 |
+ echo m68k-sun-sunos${UNAME_RELEASE} |
2915 |
+ ;; |
2916 |
+ sun4) |
2917 |
+ echo sparc-sun-sunos${UNAME_RELEASE} |
2918 |
+ ;; |
2919 |
+ esac |
2920 |
+ exit 0 ;; |
2921 |
+ aushp:SunOS:*:*) |
2922 |
+ echo sparc-auspex-sunos${UNAME_RELEASE} |
2923 |
+ exit 0 ;; |
2924 |
+ atari*:OpenBSD:*:*) |
2925 |
+ echo m68k-unknown-openbsd${UNAME_RELEASE} |
2926 |
+ exit 0 ;; |
2927 |
+ # The situation for MiNT is a little confusing. The machine name |
2928 |
+ # can be virtually everything (everything which is not |
2929 |
+ # "atarist" or "atariste" at least should have a processor |
2930 |
+ # > m68000). The system name ranges from "MiNT" over "FreeMiNT" |
2931 |
+ # to the lowercase version "mint" (or "freemint"). Finally |
2932 |
+ # the system name "TOS" denotes a system which is actually not |
2933 |
+ # MiNT. But MiNT is downward compatible to TOS, so this should |
2934 |
+ # be no problem. |
2935 |
+ atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
2936 |
+ echo m68k-atari-mint${UNAME_RELEASE} |
2937 |
+ exit 0 ;; |
2938 |
+ atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) |
2939 |
+ echo m68k-atari-mint${UNAME_RELEASE} |
2940 |
+ exit 0 ;; |
2941 |
+ *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
2942 |
+ echo m68k-atari-mint${UNAME_RELEASE} |
2943 |
+ exit 0 ;; |
2944 |
+ milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
2945 |
+ echo m68k-milan-mint${UNAME_RELEASE} |
2946 |
+ exit 0 ;; |
2947 |
+ hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
2948 |
+ echo m68k-hades-mint${UNAME_RELEASE} |
2949 |
+ exit 0 ;; |
2950 |
+ *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
2951 |
+ echo m68k-unknown-mint${UNAME_RELEASE} |
2952 |
+ exit 0 ;; |
2953 |
+ sun3*:OpenBSD:*:*) |
2954 |
+ echo m68k-unknown-openbsd${UNAME_RELEASE} |
2955 |
+ exit 0 ;; |
2956 |
+ mac68k:OpenBSD:*:*) |
2957 |
+ echo m68k-unknown-openbsd${UNAME_RELEASE} |
2958 |
+ exit 0 ;; |
2959 |
+ mvme68k:OpenBSD:*:*) |
2960 |
+ echo m68k-unknown-openbsd${UNAME_RELEASE} |
2961 |
+ exit 0 ;; |
2962 |
+ mvme88k:OpenBSD:*:*) |
2963 |
+ echo m88k-unknown-openbsd${UNAME_RELEASE} |
2964 |
+ exit 0 ;; |
2965 |
+ powerpc:machten:*:*) |
2966 |
+ echo powerpc-apple-machten${UNAME_RELEASE} |
2967 |
+ exit 0 ;; |
2968 |
+ RISC*:Mach:*:*) |
2969 |
+ echo mips-dec-mach_bsd4.3 |
2970 |
+ exit 0 ;; |
2971 |
+ RISC*:ULTRIX:*:*) |
2972 |
+ echo mips-dec-ultrix${UNAME_RELEASE} |
2973 |
+ exit 0 ;; |
2974 |
+ VAX*:ULTRIX*:*:*) |
2975 |
+ echo vax-dec-ultrix${UNAME_RELEASE} |
2976 |
+ exit 0 ;; |
2977 |
+ 2020:CLIX:*:* | 2430:CLIX:*:*) |
2978 |
+ echo clipper-intergraph-clix${UNAME_RELEASE} |
2979 |
+ exit 0 ;; |
2980 |
+ mips:*:*:UMIPS | mips:*:*:RISCos) |
2981 |
+ sed 's/^ //' << EOF >$dummy.c |
2982 |
+#ifdef __cplusplus |
2983 |
+#include <stdio.h> /* for printf() prototype */ |
2984 |
+ int main (int argc, char *argv[]) { |
2985 |
+#else |
2986 |
+ int main (argc, argv) int argc; char *argv[]; { |
2987 |
+#endif |
2988 |
+ #if defined (host_mips) && defined (MIPSEB) |
2989 |
+ #if defined (SYSTYPE_SYSV) |
2990 |
+ printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); |
2991 |
+ #endif |
2992 |
+ #if defined (SYSTYPE_SVR4) |
2993 |
+ printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); |
2994 |
+ #endif |
2995 |
+ #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) |
2996 |
+ printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); |
2997 |
+ #endif |
2998 |
+ #endif |
2999 |
+ exit (-1); |
3000 |
+ } |
3001 |
+EOF |
3002 |
+ $CC_FOR_BUILD $dummy.c -o $dummy \ |
3003 |
+ && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ |
3004 |
+ && rm $dummy.c $dummy && exit 0 |
3005 |
+ rm -f $dummy.c $dummy |
3006 |
+ echo mips-mips-riscos${UNAME_RELEASE} |
3007 |
+ exit 0 ;; |
3008 |
+ Night_Hawk:Power_UNIX:*:*) |
3009 |
+ echo powerpc-harris-powerunix |
3010 |
+ exit 0 ;; |
3011 |
+ m88k:CX/UX:7*:*) |
3012 |
+ echo m88k-harris-cxux7 |
3013 |
+ exit 0 ;; |
3014 |
+ m88k:*:4*:R4*) |
3015 |
+ echo m88k-motorola-sysv4 |
3016 |
+ exit 0 ;; |
3017 |
+ m88k:*:3*:R3*) |
3018 |
+ echo m88k-motorola-sysv3 |
3019 |
+ exit 0 ;; |
3020 |
+ AViiON:dgux:*:*) |
3021 |
+ # DG/UX returns AViiON for all architectures |
3022 |
+ UNAME_PROCESSOR=`/usr/bin/uname -p` |
3023 |
+ if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] |
3024 |
+ then |
3025 |
+ if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ |
3026 |
+ [ ${TARGET_BINARY_INTERFACE}x = x ] |
3027 |
+ then |
3028 |
+ echo m88k-dg-dgux${UNAME_RELEASE} |
3029 |
+ else |
3030 |
+ echo m88k-dg-dguxbcs${UNAME_RELEASE} |
3031 |
+ fi |
3032 |
+ else |
3033 |
+ echo i586-dg-dgux${UNAME_RELEASE} |
3034 |
+ fi |
3035 |
+ exit 0 ;; |
3036 |
+ M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
3037 |
+ echo m88k-dolphin-sysv3 |
3038 |
+ exit 0 ;; |
3039 |
+ M88*:*:R3*:*) |
3040 |
+ # Delta 88k system running SVR3 |
3041 |
+ echo m88k-motorola-sysv3 |
3042 |
+ exit 0 ;; |
3043 |
+ XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) |
3044 |
+ echo m88k-tektronix-sysv3 |
3045 |
+ exit 0 ;; |
3046 |
+ Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) |
3047 |
+ echo m68k-tektronix-bsd |
3048 |
+ exit 0 ;; |
3049 |
+ *:IRIX*:*:*) |
3050 |
+ echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` |
3051 |
+ exit 0 ;; |
3052 |
+ ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. |
3053 |
+ echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id |
3054 |
+ exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' |
3055 |
+ i?86:AIX:*:*) |
3056 |
+ echo i386-ibm-aix |
3057 |
+ exit 0 ;; |
3058 |
+ *:AIX:2:3) |
3059 |
+ if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then |
3060 |
+ sed 's/^ //' << EOF >$dummy.c |
3061 |
+ #include <sys/systemcfg.h> |
3062 |
+ |
3063 |
+ main() |
3064 |
+ { |
3065 |
+ if (!__power_pc()) |
3066 |
+ exit(1); |
3067 |
+ puts("powerpc-ibm-aix3.2.5"); |
3068 |
+ exit(0); |
3069 |
+ } |
3070 |
+EOF |
3071 |
+ $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0 |
3072 |
+ rm -f $dummy.c $dummy |
3073 |
+ echo rs6000-ibm-aix3.2.5 |
3074 |
+ elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then |
3075 |
+ echo rs6000-ibm-aix3.2.4 |
3076 |
+ else |
3077 |
+ echo rs6000-ibm-aix3.2 |
3078 |
+ fi |
3079 |
+ exit 0 ;; |
3080 |
+ *:AIX:*:4) |
3081 |
+ IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'` |
3082 |
+ if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then |
3083 |
+ IBM_ARCH=rs6000 |
3084 |
+ else |
3085 |
+ IBM_ARCH=powerpc |
3086 |
+ fi |
3087 |
+ if [ -x /usr/bin/oslevel ] ; then |
3088 |
+ IBM_REV=`/usr/bin/oslevel` |
3089 |
+ else |
3090 |
+ IBM_REV=4.${UNAME_RELEASE} |
3091 |
+ fi |
3092 |
+ echo ${IBM_ARCH}-ibm-aix${IBM_REV} |
3093 |
+ exit 0 ;; |
3094 |
+ *:AIX:*:*) |
3095 |
+ echo rs6000-ibm-aix |
3096 |
+ exit 0 ;; |
3097 |
+ ibmrt:4.4BSD:*|romp-ibm:BSD:*) |
3098 |
+ echo romp-ibm-bsd4.4 |
3099 |
+ exit 0 ;; |
3100 |
+ ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and |
3101 |
+ echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to |
3102 |
+ exit 0 ;; # report: romp-ibm BSD 4.3 |
3103 |
+ *:BOSX:*:*) |
3104 |
+ echo rs6000-bull-bosx |
3105 |
+ exit 0 ;; |
3106 |
+ DPX/2?00:B.O.S.:*:*) |
3107 |
+ echo m68k-bull-sysv3 |
3108 |
+ exit 0 ;; |
3109 |
+ 9000/[34]??:4.3bsd:1.*:*) |
3110 |
+ echo m68k-hp-bsd |
3111 |
+ exit 0 ;; |
3112 |
+ hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) |
3113 |
+ echo m68k-hp-bsd4.4 |
3114 |
+ exit 0 ;; |
3115 |
+ 9000/[34678]??:HP-UX:*:*) |
3116 |
+ case "${UNAME_MACHINE}" in |
3117 |
+ 9000/31? ) HP_ARCH=m68000 ;; |
3118 |
+ 9000/[34]?? ) HP_ARCH=m68k ;; |
3119 |
+ 9000/[678][0-9][0-9]) |
3120 |
+ sed 's/^ //' << EOF >$dummy.c |
3121 |
+ |
3122 |
+ #define _HPUX_SOURCE |
3123 |
+ #include <stdlib.h> |
3124 |
+ #include <unistd.h> |
3125 |
+ |
3126 |
+ int main () |
3127 |
+ { |
3128 |
+ #if defined(_SC_KERNEL_BITS) |
3129 |
+ long bits = sysconf(_SC_KERNEL_BITS); |
3130 |
+ #endif |
3131 |
+ long cpu = sysconf (_SC_CPU_VERSION); |
3132 |
+ |
3133 |
+ switch (cpu) |
3134 |
+ { |
3135 |
+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break; |
3136 |
+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break; |
3137 |
+ case CPU_PA_RISC2_0: |
3138 |
+ #if defined(_SC_KERNEL_BITS) |
3139 |
+ switch (bits) |
3140 |
+ { |
3141 |
+ case 64: puts ("hppa2.0w"); break; |
3142 |
+ case 32: puts ("hppa2.0n"); break; |
3143 |
+ default: puts ("hppa2.0"); break; |
3144 |
+ } break; |
3145 |
+ #else /* !defined(_SC_KERNEL_BITS) */ |
3146 |
+ puts ("hppa2.0"); break; |
3147 |
+ #endif |
3148 |
+ default: puts ("hppa1.0"); break; |
3149 |
+ } |
3150 |
+ exit (0); |
3151 |
+ } |
3152 |
+EOF |
3153 |
+ (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy` |
3154 |
+ rm -f $dummy.c $dummy |
3155 |
+ esac |
3156 |
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` |
3157 |
+ echo ${HP_ARCH}-hp-hpux${HPUX_REV} |
3158 |
+ exit 0 ;; |
3159 |
+ 3050*:HI-UX:*:*) |
3160 |
+ sed 's/^ //' << EOF >$dummy.c |
3161 |
+ #include <unistd.h> |
3162 |
+ int |
3163 |
+ main () |
3164 |
+ { |
3165 |
+ long cpu = sysconf (_SC_CPU_VERSION); |
3166 |
+ /* The order matters, because CPU_IS_HP_MC68K erroneously returns |
3167 |
+ true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct |
3168 |
+ results, however. */ |
3169 |
+ if (CPU_IS_PA_RISC (cpu)) |
3170 |
+ { |
3171 |
+ switch (cpu) |
3172 |
+ { |
3173 |
+ case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; |
3174 |
+ case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; |
3175 |
+ case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; |
3176 |
+ default: puts ("hppa-hitachi-hiuxwe2"); break; |
3177 |
+ } |
3178 |
+ } |
3179 |
+ else if (CPU_IS_HP_MC68K (cpu)) |
3180 |
+ puts ("m68k-hitachi-hiuxwe2"); |
3181 |
+ else puts ("unknown-hitachi-hiuxwe2"); |
3182 |
+ exit (0); |
3183 |
+ } |
3184 |
+EOF |
3185 |
+ $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0 |
3186 |
+ rm -f $dummy.c $dummy |
3187 |
+ echo unknown-hitachi-hiuxwe2 |
3188 |
+ exit 0 ;; |
3189 |
+ 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) |
3190 |
+ echo hppa1.1-hp-bsd |
3191 |
+ exit 0 ;; |
3192 |
+ 9000/8??:4.3bsd:*:*) |
3193 |
+ echo hppa1.0-hp-bsd |
3194 |
+ exit 0 ;; |
3195 |
+ *9??*:MPE/iX:*:*) |
3196 |
+ echo hppa1.0-hp-mpeix |
3197 |
+ exit 0 ;; |
3198 |
+ hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) |
3199 |
+ echo hppa1.1-hp-osf |
3200 |
+ exit 0 ;; |
3201 |
+ hp8??:OSF1:*:*) |
3202 |
+ echo hppa1.0-hp-osf |
3203 |
+ exit 0 ;; |
3204 |
+ i?86:OSF1:*:*) |
3205 |
+ if [ -x /usr/sbin/sysversion ] ; then |
3206 |
+ echo ${UNAME_MACHINE}-unknown-osf1mk |
3207 |
+ else |
3208 |
+ echo ${UNAME_MACHINE}-unknown-osf1 |
3209 |
+ fi |
3210 |
+ exit 0 ;; |
3211 |
+ parisc*:Lites*:*:*) |
3212 |
+ echo hppa1.1-hp-lites |
3213 |
+ exit 0 ;; |
3214 |
+ hppa*:OpenBSD:*:*) |
3215 |
+ echo hppa-unknown-openbsd |
3216 |
+ exit 0 ;; |
3217 |
+ C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) |
3218 |
+ echo c1-convex-bsd |
3219 |
+ exit 0 ;; |
3220 |
+ C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) |
3221 |
+ if getsysinfo -f scalar_acc |
3222 |
+ then echo c32-convex-bsd |
3223 |
+ else echo c2-convex-bsd |
3224 |
+ fi |
3225 |
+ exit 0 ;; |
3226 |
+ C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) |
3227 |
+ echo c34-convex-bsd |
3228 |
+ exit 0 ;; |
3229 |
+ C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) |
3230 |
+ echo c38-convex-bsd |
3231 |
+ exit 0 ;; |
3232 |
+ C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) |
3233 |
+ echo c4-convex-bsd |
3234 |
+ exit 0 ;; |
3235 |
+ CRAY*X-MP:*:*:*) |
3236 |
+ echo xmp-cray-unicos |
3237 |
+ exit 0 ;; |
3238 |
+ CRAY*Y-MP:*:*:*) |
3239 |
+ echo ymp-cray-unicos${UNAME_RELEASE} |
3240 |
+ exit 0 ;; |
3241 |
+ CRAY*[A-Z]90:*:*:*) |
3242 |
+ echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ |
3243 |
+ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ |
3244 |
+ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ |
3245 |
+ exit 0 ;; |
3246 |
+ CRAY*TS:*:*:*) |
3247 |
+ echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
3248 |
+ exit 0 ;; |
3249 |
+ CRAY*T3E:*:*:*) |
3250 |
+ echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
3251 |
+ exit 0 ;; |
3252 |
+ CRAY*SV1:*:*:*) |
3253 |
+ echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' |
3254 |
+ exit 0 ;; |
3255 |
+ CRAY-2:*:*:*) |
3256 |
+ echo cray2-cray-unicos |
3257 |
+ exit 0 ;; |
3258 |
+ F300:UNIX_System_V:*:*) |
3259 |
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` |
3260 |
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` |
3261 |
+ echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
3262 |
+ exit 0 ;; |
3263 |
+ F301:UNIX_System_V:*:*) |
3264 |
+ echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'` |
3265 |
+ exit 0 ;; |
3266 |
+ hp300:OpenBSD:*:*) |
3267 |
+ echo m68k-unknown-openbsd${UNAME_RELEASE} |
3268 |
+ exit 0 ;; |
3269 |
+ i?86:BSD/386:*:* | i?86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) |
3270 |
+ echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} |
3271 |
+ exit 0 ;; |
3272 |
+ sparc*:BSD/OS:*:*) |
3273 |
+ echo sparc-unknown-bsdi${UNAME_RELEASE} |
3274 |
+ exit 0 ;; |
3275 |
+ *:BSD/OS:*:*) |
3276 |
+ echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} |
3277 |
+ exit 0 ;; |
3278 |
+ *:FreeBSD:*:*) |
3279 |
+ echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` |
3280 |
+ exit 0 ;; |
3281 |
+ *:OpenBSD:*:*) |
3282 |
+ echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` |
3283 |
+ exit 0 ;; |
3284 |
+ i*:CYGWIN*:*) |
3285 |
+ echo ${UNAME_MACHINE}-pc-cygwin |
3286 |
+ exit 0 ;; |
3287 |
+ i*:MINGW*:*) |
3288 |
+ echo ${UNAME_MACHINE}-pc-mingw32 |
3289 |
+ exit 0 ;; |
3290 |
+ i*:Windows_NT*:* | Pentium*:Windows_NT*:*) |
3291 |
+ # How do we know it's Interix rather than the generic POSIX subsystem? |
3292 |
+ # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we |
3293 |
+ # UNAME_MACHINE based on the output of uname instead of i386? |
3294 |
+ echo i386-pc-interix |
3295 |
+ exit 0 ;; |
3296 |
+ i*:UWIN*:*) |
3297 |
+ echo ${UNAME_MACHINE}-pc-uwin |
3298 |
+ exit 0 ;; |
3299 |
+ p*:CYGWIN*:*) |
3300 |
+ echo powerpcle-unknown-cygwin |
3301 |
+ exit 0 ;; |
3302 |
+ prep*:SunOS:5.*:*) |
3303 |
+ echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
3304 |
+ exit 0 ;; |
3305 |
+ *:GNU:*:*) |
3306 |
+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` |
3307 |
+ exit 0 ;; |
3308 |
+ *:Linux:*:*) |
3309 |
+ |
3310 |
+ # The BFD linker knows what the default object file format is, so |
3311 |
+ # first see if it will tell us. cd to the root directory to prevent |
3312 |
+ # problems with other programs or directories called `ld' in the path. |
3313 |
+ ld_help_string=`cd /; ld --help 2>&1` |
3314 |
+ ld_supported_emulations=`echo $ld_help_string \ |
3315 |
+ | sed -ne '/supported emulations:/!d |
3316 |
+ s/[ ][ ]*/ /g |
3317 |
+ s/.*supported emulations: *// |
3318 |
+ s/ .*// |
3319 |
+ p'` |
3320 |
+ case "$ld_supported_emulations" in |
3321 |
+ *ia64) |
3322 |
+ echo "${UNAME_MACHINE}-unknown-linux" |
3323 |
+ exit 0 |
3324 |
+ ;; |
3325 |
+ i?86linux) |
3326 |
+ echo "${UNAME_MACHINE}-pc-linux-gnuaout" |
3327 |
+ exit 0 |
3328 |
+ ;; |
3329 |
+ elf_i?86) |
3330 |
+ echo "${UNAME_MACHINE}-pc-linux" |
3331 |
+ exit 0 |
3332 |
+ ;; |
3333 |
+ i?86coff) |
3334 |
+ echo "${UNAME_MACHINE}-pc-linux-gnucoff" |
3335 |
+ exit 0 |
3336 |
+ ;; |
3337 |
+ sparclinux) |
3338 |
+ echo "${UNAME_MACHINE}-unknown-linux-gnuaout" |
3339 |
+ exit 0 |
3340 |
+ ;; |
3341 |
+ armlinux) |
3342 |
+ echo "${UNAME_MACHINE}-unknown-linux-gnuaout" |
3343 |
+ exit 0 |
3344 |
+ ;; |
3345 |
+ elf32arm*) |
3346 |
+ echo "${UNAME_MACHINE}-unknown-linux-gnuoldld" |
3347 |
+ exit 0 |
3348 |
+ ;; |
3349 |
+ armelf_linux*) |
3350 |
+ echo "${UNAME_MACHINE}-unknown-linux-gnu" |
3351 |
+ exit 0 |
3352 |
+ ;; |
3353 |
+ m68klinux) |
3354 |
+ echo "${UNAME_MACHINE}-unknown-linux-gnuaout" |
3355 |
+ exit 0 |
3356 |
+ ;; |
3357 |
+ elf32ppc | elf32ppclinux) |
3358 |
+ # Determine Lib Version |
3359 |
+ cat >$dummy.c <<EOF |
3360 |
+#include <features.h> |
3361 |
+#if defined(__GLIBC__) |
3362 |
+extern char __libc_version[]; |
3363 |
+extern char __libc_release[]; |
3364 |
+#endif |
3365 |
+main(argc, argv) |
3366 |
+ int argc; |
3367 |
+ char *argv[]; |
3368 |
+{ |
3369 |
+#if defined(__GLIBC__) |
3370 |
+ printf("%s %s\n", __libc_version, __libc_release); |
3371 |
+#else |
3372 |
+ printf("unkown\n"); |
3373 |
+#endif |
3374 |
+ return 0; |
3375 |
+} |
3376 |
+EOF |
3377 |
+ LIBC="" |
3378 |
+ $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null |
3379 |
+ if test "$?" = 0 ; then |
3380 |
+ ./$dummy | grep 1\.99 > /dev/null |
3381 |
+ if test "$?" = 0 ; then |
3382 |
+ LIBC="libc1" |
3383 |
+ fi |
3384 |
+ fi |
3385 |
+ rm -f $dummy.c $dummy |
3386 |
+ echo powerpc-unknown-linux-gnu${LIBC} |
3387 |
+ exit 0 |
3388 |
+ ;; |
3389 |
+ esac |
3390 |
+ |
3391 |
+ if test "${UNAME_MACHINE}" = "alpha" ; then |
3392 |
+ cat <<EOF >$dummy.s |
3393 |
+ .data |
3394 |
+ \$Lformat: |
3395 |
+ .byte 37,100,45,37,120,10,0 # "%d-%x\n" |
3396 |
+ |
3397 |
+ .text |
3398 |
+ .globl main |
3399 |
+ .align 4 |
3400 |
+ .ent main |
3401 |
+ main: |
3402 |
+ .frame \$30,16,\$26,0 |
3403 |
+ ldgp \$29,0(\$27) |
3404 |
+ .prologue 1 |
3405 |
+ .long 0x47e03d80 # implver \$0 |
3406 |
+ lda \$2,-1 |
3407 |
+ .long 0x47e20c21 # amask \$2,\$1 |
3408 |
+ lda \$16,\$Lformat |
3409 |
+ mov \$0,\$17 |
3410 |
+ not \$1,\$18 |
3411 |
+ jsr \$26,printf |
3412 |
+ ldgp \$29,0(\$26) |
3413 |
+ mov 0,\$16 |
3414 |
+ jsr \$26,exit |
3415 |
+ .end main |
3416 |
+EOF |
3417 |
+ LIBC="" |
3418 |
+ $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null |
3419 |
+ if test "$?" = 0 ; then |
3420 |
+ case `./$dummy` in |
3421 |
+ 0-0) |
3422 |
+ UNAME_MACHINE="alpha" |
3423 |
+ ;; |
3424 |
+ 1-0) |
3425 |
+ UNAME_MACHINE="alphaev5" |
3426 |
+ ;; |
3427 |
+ 1-1) |
3428 |
+ UNAME_MACHINE="alphaev56" |
3429 |
+ ;; |
3430 |
+ 1-101) |
3431 |
+ UNAME_MACHINE="alphapca56" |
3432 |
+ ;; |
3433 |
+ 2-303) |
3434 |
+ UNAME_MACHINE="alphaev6" |
3435 |
+ ;; |
3436 |
+ 2-307) |
3437 |
+ UNAME_MACHINE="alphaev67" |
3438 |
+ ;; |
3439 |
+ esac |
3440 |
+ |
3441 |
+ objdump --private-headers $dummy | \ |
3442 |
+ grep ld.so.1 > /dev/null |
3443 |
+ if test "$?" = 0 ; then |
3444 |
+ LIBC="libc1" |
3445 |
+ fi |
3446 |
+ fi |
3447 |
+ rm -f $dummy.s $dummy |
3448 |
+ echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0 |
3449 |
+ elif test "${UNAME_MACHINE}" = "mips" ; then |
3450 |
+ cat >$dummy.c <<EOF |
3451 |
+#ifdef __cplusplus |
3452 |
+#include <stdio.h> /* for printf() prototype */ |
3453 |
+ int main (int argc, char *argv[]) { |
3454 |
+#else |
3455 |
+ int main (argc, argv) int argc; char *argv[]; { |
3456 |
+#endif |
3457 |
+#ifdef __MIPSEB__ |
3458 |
+ printf ("%s-unknown-linux-gnu\n", argv[1]); |
3459 |
+#endif |
3460 |
+#ifdef __MIPSEL__ |
3461 |
+ printf ("%sel-unknown-linux-gnu\n", argv[1]); |
3462 |
+#endif |
3463 |
+ return 0; |
3464 |
+} |
3465 |
+EOF |
3466 |
+ $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 |
3467 |
+ rm -f $dummy.c $dummy |
3468 |
+ elif test "${UNAME_MACHINE}" = "s390"; then |
3469 |
+ echo s390-ibm-linux && exit 0 |
3470 |
+ else |
3471 |
+ # Either a pre-BFD a.out linker (linux-gnuoldld) |
3472 |
+ # or one that does not give us useful --help. |
3473 |
+ # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout. |
3474 |
+ # If ld does not provide *any* "supported emulations:" |
3475 |
+ # that means it is gnuoldld. |
3476 |
+ echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:" |
3477 |
+ test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0 |
3478 |
+ |
3479 |
+ case "${UNAME_MACHINE}" in |
3480 |
+ i?86) |
3481 |
+ VENDOR=pc; |
3482 |
+ ;; |
3483 |
+ *) |
3484 |
+ VENDOR=unknown; |
3485 |
+ ;; |
3486 |
+ esac |
3487 |
+ # Determine whether the default compiler is a.out or elf |
3488 |
+ cat >$dummy.c <<EOF |
3489 |
+#include <features.h> |
3490 |
+#ifdef __cplusplus |
3491 |
+#include <stdio.h> /* for printf() prototype */ |
3492 |
+ int main (int argc, char *argv[]) { |
3493 |
+#else |
3494 |
+ int main (argc, argv) int argc; char *argv[]; { |
3495 |
+#endif |
3496 |
+#ifdef __ELF__ |
3497 |
+# ifdef __GLIBC__ |
3498 |
+# if __GLIBC__ >= 2 |
3499 |
+ printf ("%s-${VENDOR}-linux-gnu\n", argv[1]); |
3500 |
+# else |
3501 |
+ printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); |
3502 |
+# endif |
3503 |
+# else |
3504 |
+ printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); |
3505 |
+# endif |
3506 |
+#else |
3507 |
+ printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]); |
3508 |
+#endif |
3509 |
+ return 0; |
3510 |
+} |
3511 |
+EOF |
3512 |
+ $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 |
3513 |
+ rm -f $dummy.c $dummy |
3514 |
+ fi ;; |
3515 |
+# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions |
3516 |
+# are messed up and put the nodename in both sysname and nodename. |
3517 |
+ i?86:DYNIX/ptx:4*:*) |
3518 |
+ echo i386-sequent-sysv4 |
3519 |
+ exit 0 ;; |
3520 |
+ i?86:UNIX_SV:4.2MP:2.*) |
3521 |
+ # Unixware is an offshoot of SVR4, but it has its own version |
3522 |
+ # number series starting with 2... |
3523 |
+ # I am not positive that other SVR4 systems won't match this, |
3524 |
+ # I just have to hope. -- rms. |
3525 |
+ # Use sysv4.2uw... so that sysv4* matches it. |
3526 |
+ echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} |
3527 |
+ exit 0 ;; |
3528 |
+ i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*) |
3529 |
+ UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` |
3530 |
+ if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then |
3531 |
+ echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} |
3532 |
+ else |
3533 |
+ echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} |
3534 |
+ fi |
3535 |
+ exit 0 ;; |
3536 |
+ i?86:*:5:7*) |
3537 |
+ # Fixed at (any) Pentium or better |
3538 |
+ UNAME_MACHINE=i586 |
3539 |
+ if [ ${UNAME_SYSTEM} = "UnixWare" ] ; then |
3540 |
+ echo ${UNAME_MACHINE}-sco-sysv${UNAME_RELEASE}uw${UNAME_VERSION} |
3541 |
+ else |
3542 |
+ echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} |
3543 |
+ fi |
3544 |
+ exit 0 ;; |
3545 |
+ i?86:*:3.2:*) |
3546 |
+ if test -f /usr/options/cb.name; then |
3547 |
+ UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` |
3548 |
+ echo ${UNAME_MACHINE}-pc-isc$UNAME_REL |
3549 |
+ elif /bin/uname -X 2>/dev/null >/dev/null ; then |
3550 |
+ UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` |
3551 |
+ (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 |
3552 |
+ (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ |
3553 |
+ && UNAME_MACHINE=i586 |
3554 |
+ (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \ |
3555 |
+ && UNAME_MACHINE=i686 |
3556 |
+ (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \ |
3557 |
+ && UNAME_MACHINE=i686 |
3558 |
+ echo ${UNAME_MACHINE}-pc-sco$UNAME_REL |
3559 |
+ else |
3560 |
+ echo ${UNAME_MACHINE}-pc-sysv32 |
3561 |
+ fi |
3562 |
+ exit 0 ;; |
3563 |
+ i?86:*DOS:*:*) |
3564 |
+ echo ${UNAME_MACHINE}-pc-msdosdjgpp |
3565 |
+ exit 0 ;; |
3566 |
+ pc:*:*:*) |
3567 |
+ # Left here for compatibility: |
3568 |
+ # uname -m prints for DJGPP always 'pc', but it prints nothing about |
3569 |
+ # the processor, so we play safe by assuming i386. |
3570 |
+ echo i386-pc-msdosdjgpp |
3571 |
+ exit 0 ;; |
3572 |
+ Intel:Mach:3*:*) |
3573 |
+ echo i386-pc-mach3 |
3574 |
+ exit 0 ;; |
3575 |
+ paragon:*:*:*) |
3576 |
+ echo i860-intel-osf1 |
3577 |
+ exit 0 ;; |
3578 |
+ i860:*:4.*:*) # i860-SVR4 |
3579 |
+ if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then |
3580 |
+ echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 |
3581 |
+ else # Add other i860-SVR4 vendors below as they are discovered. |
3582 |
+ echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 |
3583 |
+ fi |
3584 |
+ exit 0 ;; |
3585 |
+ mini*:CTIX:SYS*5:*) |
3586 |
+ # "miniframe" |
3587 |
+ echo m68010-convergent-sysv |
3588 |
+ exit 0 ;; |
3589 |
+ M68*:*:R3V[567]*:*) |
3590 |
+ test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; |
3591 |
+ 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0) |
3592 |
+ OS_REL='' |
3593 |
+ test -r /etc/.relid \ |
3594 |
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
3595 |
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
3596 |
+ && echo i486-ncr-sysv4.3${OS_REL} && exit 0 |
3597 |
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
3598 |
+ && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; |
3599 |
+ 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
3600 |
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
3601 |
+ && echo i486-ncr-sysv4 && exit 0 ;; |
3602 |
+ m68*:LynxOS:2.*:*) |
3603 |
+ echo m68k-unknown-lynxos${UNAME_RELEASE} |
3604 |
+ exit 0 ;; |
3605 |
+ mc68030:UNIX_System_V:4.*:*) |
3606 |
+ echo m68k-atari-sysv4 |
3607 |
+ exit 0 ;; |
3608 |
+ i?86:LynxOS:2.*:* | i?86:LynxOS:3.[01]*:*) |
3609 |
+ echo i386-unknown-lynxos${UNAME_RELEASE} |
3610 |
+ exit 0 ;; |
3611 |
+ TSUNAMI:LynxOS:2.*:*) |
3612 |
+ echo sparc-unknown-lynxos${UNAME_RELEASE} |
3613 |
+ exit 0 ;; |
3614 |
+ rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*) |
3615 |
+ echo rs6000-unknown-lynxos${UNAME_RELEASE} |
3616 |
+ exit 0 ;; |
3617 |
+ SM[BE]S:UNIX_SV:*:*) |
3618 |
+ echo mips-dde-sysv${UNAME_RELEASE} |
3619 |
+ exit 0 ;; |
3620 |
+ RM*:ReliantUNIX-*:*:*) |
3621 |
+ echo mips-sni-sysv4 |
3622 |
+ exit 0 ;; |
3623 |
+ RM*:SINIX-*:*:*) |
3624 |
+ echo mips-sni-sysv4 |
3625 |
+ exit 0 ;; |
3626 |
+ *:SINIX-*:*:*) |
3627 |
+ if uname -p 2>/dev/null >/dev/null ; then |
3628 |
+ UNAME_MACHINE=`(uname -p) 2>/dev/null` |
3629 |
+ echo ${UNAME_MACHINE}-sni-sysv4 |
3630 |
+ else |
3631 |
+ echo ns32k-sni-sysv |
3632 |
+ fi |
3633 |
+ exit 0 ;; |
3634 |
+ PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort |
3635 |
+ # says <Richard.M.Bartel@ccMail.Census.GOV> |
3636 |
+ echo i586-unisys-sysv4 |
3637 |
+ exit 0 ;; |
3638 |
+ *:UNIX_System_V:4*:FTX*) |
3639 |
+ # From Gerald Hewes <hewes@openmarket.com>. |
3640 |
+ # How about |
3641 |
+ echo hppa1.1-stratus-sysv4 |
3642 |
+ exit 0 ;; |
3643 |
+ *:*:*:FTX*) |
3644 |
+ # From seanf@swdc.stratus.com. |
3645 |
+ echo i860-stratus-sysv4 |
3646 |
+ exit 0 ;; |
3647 |
+ mc68*:A/UX:*:*) |
3648 |
+ echo m68k-apple-aux${UNAME_RELEASE} |
3649 |
+ exit 0 ;; |
3650 |
+ news*:NEWS-OS:*:6*) |
3651 |
+ echo mips-sony-newsos6 |
3652 |
+ exit 0 ;; |
3653 |
+ R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
3654 |
+ if [ -d /usr/nec ]; then |
3655 |
+ echo mips-nec-sysv${UNAME_RELEASE} |
3656 |
+ else |
3657 |
+ echo mips-unknown-sysv${UNAME_RELEASE} |
3658 |
+ fi |
3659 |
+ exit 0 ;; |
3660 |
+ BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. |
3661 |
+ echo powerpc-be-beos |
3662 |
+ exit 0 ;; |
3663 |
+ BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. |
3664 |
+ echo powerpc-apple-beos |
3665 |
+ exit 0 ;; |
3666 |
+ BePC:BeOS:*:*) # BeOS running on Intel PC compatible. |
3667 |
+ echo i586-pc-beos |
3668 |
+ exit 0 ;; |
3669 |
+ SX-4:SUPER-UX:*:*) |
3670 |
+ echo sx4-nec-superux${UNAME_RELEASE} |
3671 |
+ exit 0 ;; |
3672 |
+ SX-5:SUPER-UX:*:*) |
3673 |
+ echo sx5-nec-superux${UNAME_RELEASE} |
3674 |
+ exit 0 ;; |
3675 |
+ Power*:Rhapsody:*:*) |
3676 |
+ echo powerpc-apple-rhapsody${UNAME_RELEASE} |
3677 |
+ exit 0 ;; |
3678 |
+ *:Rhapsody:*:*) |
3679 |
+ echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} |
3680 |
+ exit 0 ;; |
3681 |
+ *:Darwin:*:*) |
3682 |
+ echo `uname -p`-apple-darwin${UNAME_RELEASE} |
3683 |
+ exit 0 ;; |
3684 |
+ *:procnto*:*:* | *:QNX:[0123456789]*:*) |
3685 |
+ if test "${UNAME_MACHINE}" = "x86pc"; then |
3686 |
+ UNAME_MACHINE=pc |
3687 |
+ fi |
3688 |
+ echo `uname -p`-${UNAME_MACHINE}-nto-qnx |
3689 |
+ exit 0 ;; |
3690 |
+ *:QNX:*:4*) |
3691 |
+ echo i386-pc-qnx |
3692 |
+ exit 0 ;; |
3693 |
+ NSR-W:NONSTOP_KERNEL:*:*) |
3694 |
+ echo nsr-tandem-nsk${UNAME_RELEASE} |
3695 |
+ exit 0 ;; |
3696 |
+ BS2000:POSIX*:*:*) |
3697 |
+ echo bs2000-siemens-sysv |
3698 |
+ exit 0 ;; |
3699 |
+ DS/*:UNIX_System_V:*:*) |
3700 |
+ echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} |
3701 |
+ exit 0 ;; |
3702 |
+esac |
3703 |
+ |
3704 |
+#echo '(No uname command or uname output not recognized.)' 1>&2 |
3705 |
+#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 |
3706 |
+ |
3707 |
+cat >$dummy.c <<EOF |
3708 |
+#ifdef _SEQUENT_ |
3709 |
+# include <sys/types.h> |
3710 |
+# include <sys/utsname.h> |
3711 |
+#endif |
3712 |
+main () |
3713 |
+{ |
3714 |
+#if defined (sony) |
3715 |
+#if defined (MIPSEB) |
3716 |
+ /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, |
3717 |
+ I don't know.... */ |
3718 |
+ printf ("mips-sony-bsd\n"); exit (0); |
3719 |
+#else |
3720 |
+#include <sys/param.h> |
3721 |
+ printf ("m68k-sony-newsos%s\n", |
3722 |
+#ifdef NEWSOS4 |
3723 |
+ "4" |
3724 |
+#else |
3725 |
+ "" |
3726 |
+#endif |
3727 |
+ ); exit (0); |
3728 |
+#endif |
3729 |
+#endif |
3730 |
+ |
3731 |
+#if defined (__arm) && defined (__acorn) && defined (__unix) |
3732 |
+ printf ("arm-acorn-riscix"); exit (0); |
3733 |
+#endif |
3734 |
+ |
3735 |
+#if defined (hp300) && !defined (hpux) |
3736 |
+ printf ("m68k-hp-bsd\n"); exit (0); |
3737 |
+#endif |
3738 |
+ |
3739 |
+#if defined (NeXT) |
3740 |
+#if !defined (__ARCHITECTURE__) |
3741 |
+#define __ARCHITECTURE__ "m68k" |
3742 |
+#endif |
3743 |
+ int version; |
3744 |
+ version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; |
3745 |
+ if (version < 4) |
3746 |
+ printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); |
3747 |
+ else |
3748 |
+ printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); |
3749 |
+ exit (0); |
3750 |
+#endif |
3751 |
+ |
3752 |
+#if defined (MULTIMAX) || defined (n16) |
3753 |
+#if defined (UMAXV) |
3754 |
+ printf ("ns32k-encore-sysv\n"); exit (0); |
3755 |
+#else |
3756 |
+#if defined (CMU) |
3757 |
+ printf ("ns32k-encore-mach\n"); exit (0); |
3758 |
+#else |
3759 |
+ printf ("ns32k-encore-bsd\n"); exit (0); |
3760 |
+#endif |
3761 |
+#endif |
3762 |
+#endif |
3763 |
+ |
3764 |
+#if defined (__386BSD__) |
3765 |
+ printf ("i386-pc-bsd\n"); exit (0); |
3766 |
+#endif |
3767 |
+ |
3768 |
+#if defined (sequent) |
3769 |
+#if defined (i386) |
3770 |
+ printf ("i386-sequent-dynix\n"); exit (0); |
3771 |
+#endif |
3772 |
+#if defined (ns32000) |
3773 |
+ printf ("ns32k-sequent-dynix\n"); exit (0); |
3774 |
+#endif |
3775 |
+#endif |
3776 |
+ |
3777 |
+#if defined (_SEQUENT_) |
3778 |
+ struct utsname un; |
3779 |
+ |
3780 |
+ uname(&un); |
3781 |
+ |
3782 |
+ if (strncmp(un.version, "V2", 2) == 0) { |
3783 |
+ printf ("i386-sequent-ptx2\n"); exit (0); |
3784 |
+ } |
3785 |
+ if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ |
3786 |
+ printf ("i386-sequent-ptx1\n"); exit (0); |
3787 |
+ } |
3788 |
+ printf ("i386-sequent-ptx\n"); exit (0); |
3789 |
+ |
3790 |
+#endif |
3791 |
+ |
3792 |
+#if defined (vax) |
3793 |
+#if !defined (ultrix) |
3794 |
+ printf ("vax-dec-bsd\n"); exit (0); |
3795 |
+#else |
3796 |
+ printf ("vax-dec-ultrix\n"); exit (0); |
3797 |
+#endif |
3798 |
+#endif |
3799 |
+ |
3800 |
+#if defined (alliant) && defined (i860) |
3801 |
+ printf ("i860-alliant-bsd\n"); exit (0); |
3802 |
+#endif |
3803 |
+ |
3804 |
+ exit (1); |
3805 |
+} |
3806 |
+EOF |
3807 |
+ |
3808 |
+$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm $dummy.c $dummy && exit 0 |
3809 |
+rm -f $dummy.c $dummy |
3810 |
+ |
3811 |
+# Apollos put the system type in the environment. |
3812 |
+ |
3813 |
+test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } |
3814 |
+ |
3815 |
+# Convex versions that predate uname can use getsysinfo(1) |
3816 |
+ |
3817 |
+if [ -x /usr/convex/getsysinfo ] |
3818 |
+then |
3819 |
+ case `getsysinfo -f cpu_type` in |
3820 |
+ c1*) |
3821 |
+ echo c1-convex-bsd |
3822 |
+ exit 0 ;; |
3823 |
+ c2*) |
3824 |
+ if getsysinfo -f scalar_acc |
3825 |
+ then echo c32-convex-bsd |
3826 |
+ else echo c2-convex-bsd |
3827 |
+ fi |
3828 |
+ exit 0 ;; |
3829 |
+ c34*) |
3830 |
+ echo c34-convex-bsd |
3831 |
+ exit 0 ;; |
3832 |
+ c38*) |
3833 |
+ echo c38-convex-bsd |
3834 |
+ exit 0 ;; |
3835 |
+ c4*) |
3836 |
+ echo c4-convex-bsd |
3837 |
+ exit 0 ;; |
3838 |
+ esac |
3839 |
+fi |
3840 |
+ |
3841 |
+#echo '(Unable to guess system type)' 1>&2 |
3842 |
+ |
3843 |
+exit 1 |
3844 |
Index: config.h.in |
3845 |
=================================================================== |
3846 |
|
3847 |
|
3848 |
--- /dev/null Fri Jun 8 19:07:45 2001 |
3849 |
+++ config.h.in Fri Jun 8 19:30:18 2001 |
3850 |
@@ -0,0 +1,106 @@ |
3851 |
+/* config.h.in. Generated automatically from configure.in by autoheader. */ |
3852 |
+ |
3853 |
+/* Define if using alloca.c. */ |
3854 |
+#undef C_ALLOCA |
3855 |
+ |
3856 |
+/* Define to empty if the keyword does not work. */ |
3857 |
+#undef const |
3858 |
+ |
3859 |
+/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. |
3860 |
+ This function is required for alloca.c support on those systems. */ |
3861 |
+#undef CRAY_STACKSEG_END |
3862 |
+ |
3863 |
+/* Define if you have alloca, as a function or macro. */ |
3864 |
+#undef HAVE_ALLOCA |
3865 |
+ |
3866 |
+/* Define if you have <alloca.h> and it should be used (not on Ultrix). */ |
3867 |
+#undef HAVE_ALLOCA_H |
3868 |
+ |
3869 |
+/* If using the C implementation of alloca, define if you know the |
3870 |
+ direction of stack growth for your system; otherwise it will be |
3871 |
+ automatically deduced at run-time. |
3872 |
+ STACK_DIRECTION > 0 => grows toward higher addresses |
3873 |
+ STACK_DIRECTION < 0 => grows toward lower addresses |
3874 |
+ STACK_DIRECTION = 0 => direction of growth unknown |
3875 |
+ */ |
3876 |
+#undef STACK_DIRECTION |
3877 |
+ |
3878 |
+/* Define if you have the ANSI C header files. */ |
3879 |
+#undef STDC_HEADERS |
3880 |
+ |
3881 |
+/* Define if the X Window System is missing or not being used. */ |
3882 |
+#undef X_DISPLAY_MISSING |
3883 |
+ |
3884 |
+#undef HAVE_LIBGEN |
3885 |
+#undef HAVE_MOTIF |
3886 |
+#undef XPM |
3887 |
+#undef VERSION |
3888 |
+#undef GL |
3889 |
+ |
3890 |
+/* Define if using alloca.c. */ |
3891 |
+#undef C_ALLOCA |
3892 |
+ |
3893 |
+/* Define to empty if the keyword does not work. */ |
3894 |
+#undef const |
3895 |
+ |
3896 |
+/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. |
3897 |
+ This function is required for alloca.c support on those systems. */ |
3898 |
+#undef CRAY_STACKSEG_END |
3899 |
+ |
3900 |
+/* Define if you have alloca, as a function or macro. */ |
3901 |
+#undef HAVE_ALLOCA |
3902 |
+ |
3903 |
+/* Define if you have <alloca.h> and it should be used (not on Ultrix). */ |
3904 |
+#undef HAVE_ALLOCA_H |
3905 |
+ |
3906 |
+/* If using the C implementation of alloca, define if you know the |
3907 |
+ direction of stack growth for your system; otherwise it will be |
3908 |
+ automatically deduced at run-time. |
3909 |
+ STACK_DIRECTION > 0 => grows toward higher addresses |
3910 |
+ STACK_DIRECTION < 0 => grows toward lower addresses |
3911 |
+ STACK_DIRECTION = 0 => direction of growth unknown |
3912 |
+ */ |
3913 |
+#undef STACK_DIRECTION |
3914 |
+ |
3915 |
+/* Define if you have the ANSI C header files. */ |
3916 |
+#undef STDC_HEADERS |
3917 |
+ |
3918 |
+/* Define if the X Window System is missing or not being used. */ |
3919 |
+#undef X_DISPLAY_MISSING |
3920 |
+ |
3921 |
+/* Define if you have the ftime function. */ |
3922 |
+#undef HAVE_FTIME |
3923 |
+ |
3924 |
+/* Define if you have the strstr function. */ |
3925 |
+#undef HAVE_STRSTR |
3926 |
+ |
3927 |
+/* Define if you have the usleep function. */ |
3928 |
+#undef HAVE_USLEEP |
3929 |
+ |
3930 |
+/* Define if you have the <X11/xpm.h> header file. */ |
3931 |
+#undef HAVE_X11_XPM_H |
3932 |
+ |
3933 |
+/* Define if you have the <unistd.h> header file. */ |
3934 |
+#undef HAVE_UNISTD_H |
3935 |
+ |
3936 |
+/* Name of package */ |
3937 |
+#undef PACKAGE |
3938 |
+ |
3939 |
+/* Version number of package */ |
3940 |
+#undef VERSION |
3941 |
+ |
3942 |
+/* Define this to use OpenGL widget from <GL/GLwDrawA.h> */ |
3943 |
+#undef HAVE_GL_GLWDRAWA_H |
3944 |
+ |
3945 |
+/* Define this to use OpenGL widget from <X11/GLw/GLwDrawA.h> */ |
3946 |
+#undef HAVE_X11_GLW_GLWDRAWA_H |
3947 |
+ |
3948 |
+/* Define this to use OpenGL widget from <GL/GLwMDrawA.h> */ |
3949 |
+#undef HAVE_GL_GLWMDRAWA_H |
3950 |
+ |
3951 |
+/* Define this to use OpenGL widget from <X11/GLw/GLwMDrawA.h> */ |
3952 |
+#undef HAVE_X11_GLW_GLWMDRAWA_H |
3953 |
+ |
3954 |
+/* Define this to the Xt/Motif OpenGL widget class to use */ |
3955 |
+#undef XT_GLWIDGET |
3956 |
+ |
3957 |
Index: config.sub |
3958 |
=================================================================== |
3959 |
|
3960 |
|
3961 |
--- /dev/null Fri Jun 8 19:07:45 2001 |
3962 |
+++ config.sub Fri Jun 8 19:30:17 2001 |
3963 |
@@ -0,0 +1,1268 @@ |
3964 |
+#! /bin/sh |
3965 |
+# Configuration validation subroutine script, version 1.1. |
3966 |
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 |
3967 |
+# Free Software Foundation, Inc. |
3968 |
+# |
3969 |
+# This file is (in principle) common to ALL GNU software. |
3970 |
+# The presence of a machine in this file suggests that SOME GNU software |
3971 |
+# can handle that machine. It does not imply ALL GNU software can. |
3972 |
+# |
3973 |
+# This file is free software; you can redistribute it and/or modify |
3974 |
+# it under the terms of the GNU General Public License as published by |
3975 |
+# the Free Software Foundation; either version 2 of the License, or |
3976 |
+# (at your option) any later version. |
3977 |
+# |
3978 |
+# This program is distributed in the hope that it will be useful, |
3979 |
+# but WITHOUT ANY WARRANTY; without even the implied warranty of |
3980 |
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
3981 |
+# GNU General Public License for more details. |
3982 |
+# |
3983 |
+# You should have received a copy of the GNU General Public License |
3984 |
+# along with this program; if not, write to the Free Software |
3985 |
+# Foundation, Inc., 59 Temple Place - Suite 330, |
3986 |
+# Boston, MA 02111-1307, USA. |
3987 |
+ |
3988 |
+# As a special exception to the GNU General Public License, if you |
3989 |
+# distribute this file as part of a program that contains a |
3990 |
+# configuration script generated by Autoconf, you may include it under |
3991 |
+# the same distribution terms that you use for the rest of that program. |
3992 |
+ |
3993 |
+# Written by Per Bothner <bothner@cygnus.com>. |
3994 |
+# Please send patches to <config-patches@gnu.org>. |
3995 |
+# |
3996 |
+# Configuration subroutine to validate and canonicalize a configuration type. |
3997 |
+# Supply the specified configuration type as an argument. |
3998 |
+# If it is invalid, we print an error message on stderr and exit with code 1. |
3999 |
+# Otherwise, we print the canonical config type on stdout and succeed. |
4000 |
+ |
4001 |
+# This file is supposed to be the same for all GNU packages |
4002 |
+# and recognize all the CPU types, system types and aliases |
4003 |
+# that are meaningful with *any* GNU software. |
4004 |
+# Each package is responsible for reporting which valid configurations |
4005 |
+# it does not support. The user should be able to distinguish |
4006 |
+# a failure to support a valid configuration from a meaningless |
4007 |
+# configuration. |
4008 |
+ |
4009 |
+# The goal of this file is to map all the various variations of a given |
4010 |
+# machine specification into a single specification in the form: |
4011 |
+# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM |
4012 |
+# or in some cases, the newer four-part form: |
4013 |
+# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM |
4014 |
+# It is wrong to echo any other type of specification. |
4015 |
+ |
4016 |
+if [ x$1 = x ] |
4017 |
+then |
4018 |
+ echo Configuration name missing. 1>&2 |
4019 |
+ echo "Usage: $0 CPU-MFR-OPSYS" 1>&2 |
4020 |
+ echo "or $0 ALIAS" 1>&2 |
4021 |
+ echo where ALIAS is a recognized configuration type. 1>&2 |
4022 |
+ exit 1 |
4023 |
+fi |
4024 |
+ |
4025 |
+# First pass through any local machine types. |
4026 |
+case $1 in |
4027 |
+ *local*) |
4028 |
+ echo $1 |
4029 |
+ exit 0 |
4030 |
+ ;; |
4031 |
+ *) |
4032 |
+ ;; |
4033 |
+esac |
4034 |
+ |
4035 |
+# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
4036 |
+# Here we must recognize all the valid KERNEL-OS combinations. |
4037 |
+maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
4038 |
+case $maybe_os in |
4039 |
+ nto-qnx* | linux-gnu*) |
4040 |
+ os=-$maybe_os |
4041 |
+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
4042 |
+ ;; |
4043 |
+ *) |
4044 |
+ basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
4045 |
+ if [ $basic_machine != $1 ] |
4046 |
+ then os=`echo $1 | sed 's/.*-/-/'` |
4047 |
+ else os=; fi |
4048 |
+ ;; |
4049 |
+esac |
4050 |
+ |
4051 |
+### Let's recognize common machines as not being operating systems so |
4052 |
+### that things like config.sub decstation-3100 work. We also |
4053 |
+### recognize some manufacturers as not being operating systems, so we |
4054 |
+### can provide default operating systems below. |
4055 |
+case $os in |
4056 |
+ -sun*os*) |
4057 |
+ # Prevent following clause from handling this invalid input. |
4058 |
+ ;; |
4059 |
+ -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ |
4060 |
+ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ |
4061 |
+ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ |
4062 |
+ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
4063 |
+ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
4064 |
+ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
4065 |
+ -apple) |
4066 |
+ os= |
4067 |
+ basic_machine=$1 |
4068 |
+ ;; |
4069 |
+ -sim | -cisco | -oki | -wec | -winbond) |
4070 |
+ os= |
4071 |
+ basic_machine=$1 |
4072 |
+ ;; |
4073 |
+ -scout) |
4074 |
+ ;; |
4075 |
+ -wrs) |
4076 |
+ os=-vxworks |
4077 |
+ basic_machine=$1 |
4078 |
+ ;; |
4079 |
+ -hiux*) |
4080 |
+ os=-hiuxwe2 |
4081 |
+ ;; |
4082 |
+ -sco5) |
4083 |
+ os=-sco3.2v5 |
4084 |
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
4085 |
+ ;; |
4086 |
+ -sco4) |
4087 |
+ os=-sco3.2v4 |
4088 |
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
4089 |
+ ;; |
4090 |
+ -sco3.2.[4-9]*) |
4091 |
+ os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` |
4092 |
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
4093 |
+ ;; |
4094 |
+ -sco3.2v[4-9]*) |
4095 |
+ # Don't forget version if it is 3.2v4 or newer. |
4096 |
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
4097 |
+ ;; |
4098 |
+ -sco*) |
4099 |
+ os=-sco3.2v2 |
4100 |
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
4101 |
+ ;; |
4102 |
+ -udk*) |
4103 |
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
4104 |
+ ;; |
4105 |
+ -isc) |
4106 |
+ os=-isc2.2 |
4107 |
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
4108 |
+ ;; |
4109 |
+ -clix*) |
4110 |
+ basic_machine=clipper-intergraph |
4111 |
+ ;; |
4112 |
+ -isc*) |
4113 |
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
4114 |
+ ;; |
4115 |
+ -lynx*) |
4116 |
+ os=-lynxos |
4117 |
+ ;; |
4118 |
+ -ptx*) |
4119 |
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` |
4120 |
+ ;; |
4121 |
+ -windowsnt*) |
4122 |
+ os=`echo $os | sed -e 's/windowsnt/winnt/'` |
4123 |
+ ;; |
4124 |
+ -psos*) |
4125 |
+ os=-psos |
4126 |
+ ;; |
4127 |
+ -mint | -mint[0-9]*) |
4128 |
+ basic_machine=m68k-atari |
4129 |
+ os=-mint |
4130 |
+ ;; |
4131 |
+esac |
4132 |
+ |
4133 |
+# Decode aliases for certain CPU-COMPANY combinations. |
4134 |
+case $basic_machine in |
4135 |
+ # Recognize the basic CPU types without company name. |
4136 |
+ # Some are omitted here because they have special meanings below. |
4137 |
+ tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ |
4138 |
+ | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ |
4139 |
+ | 580 | i960 | h8300 \ |
4140 |
+ | x86 | ppcbe | mipsbe | mipsle | shbe | shle | armbe | armle \ |
4141 |
+ | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \ |
4142 |
+ | hppa64 \ |
4143 |
+ | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \ |
4144 |
+ | alphaev6[78] \ |
4145 |
+ | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \ |
4146 |
+ | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \ |
4147 |
+ | mips64orion | mips64orionel | mipstx39 | mipstx39el \ |
4148 |
+ | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \ |
4149 |
+ | mips64vr5000 | miprs64vr5000el | mcore \ |
4150 |
+ | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \ |
4151 |
+ | thumb | d10v | fr30 | avr) |
4152 |
+ basic_machine=$basic_machine-unknown |
4153 |
+ ;; |
4154 |
+ m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl) |
4155 |
+ ;; |
4156 |
+ |
4157 |
+ # We use `pc' rather than `unknown' |
4158 |
+ # because (1) that's what they normally are, and |
4159 |
+ # (2) the word "unknown" tends to confuse beginning users. |
4160 |
+ i[34567]86) |
4161 |
+ basic_machine=$basic_machine-pc |
4162 |
+ ;; |
4163 |
+ # Object if more than one company name word. |
4164 |
+ *-*-*) |
4165 |
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
4166 |
+ exit 1 |
4167 |
+ ;; |
4168 |
+ # Recognize the basic CPU types with company name. |
4169 |
+ # FIXME: clean up the formatting here. |
4170 |
+ vax-* | tahoe-* | i[34567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ |
4171 |
+ | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ |
4172 |
+ | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ |
4173 |
+ | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ |
4174 |
+ | xmp-* | ymp-* \ |
4175 |
+ | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* | armbe-* | armle-* \ |
4176 |
+ | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \ |
4177 |
+ | hppa2.0n-* | hppa64-* \ |
4178 |
+ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \ |
4179 |
+ | alphaev6[78]-* \ |
4180 |
+ | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \ |
4181 |
+ | clipper-* | orion-* \ |
4182 |
+ | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ |
4183 |
+ | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \ |
4184 |
+ | mips64el-* | mips64orion-* | mips64orionel-* \ |
4185 |
+ | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \ |
4186 |
+ | mipstx39-* | mipstx39el-* | mcore-* \ |
4187 |
+ | f301-* | armv*-* | s390-* | sv1-* | t3e-* \ |
4188 |
+ | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \ |
4189 |
+ | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* \ |
4190 |
+ | bs2000-*) |
4191 |
+ ;; |
4192 |
+ # Recognize the various machine names and aliases which stand |
4193 |
+ # for a CPU type and a company and sometimes even an OS. |
4194 |
+ 386bsd) |
4195 |
+ basic_machine=i386-unknown |
4196 |
+ os=-bsd |
4197 |
+ ;; |
4198 |
+ 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) |
4199 |
+ basic_machine=m68000-att |
4200 |
+ ;; |
4201 |
+ 3b*) |
4202 |
+ basic_machine=we32k-att |
4203 |
+ ;; |
4204 |
+ a29khif) |
4205 |
+ basic_machine=a29k-amd |
4206 |
+ os=-udi |
4207 |
+ ;; |
4208 |
+ adobe68k) |
4209 |
+ basic_machine=m68010-adobe |
4210 |
+ os=-scout |
4211 |
+ ;; |
4212 |
+ alliant | fx80) |
4213 |
+ basic_machine=fx80-alliant |
4214 |
+ ;; |
4215 |
+ altos | altos3068) |
4216 |
+ basic_machine=m68k-altos |
4217 |
+ ;; |
4218 |
+ am29k) |
4219 |
+ basic_machine=a29k-none |
4220 |
+ os=-bsd |
4221 |
+ ;; |
4222 |
+ amdahl) |
4223 |
+ basic_machine=580-amdahl |
4224 |
+ os=-sysv |
4225 |
+ ;; |
4226 |
+ amiga | amiga-*) |
4227 |
+ basic_machine=m68k-cbm |
4228 |
+ ;; |
4229 |
+ amigaos | amigados) |
4230 |
+ basic_machine=m68k-cbm |
4231 |
+ os=-amigaos |
4232 |
+ ;; |
4233 |
+ amigaunix | amix) |
4234 |
+ basic_machine=m68k-cbm |
4235 |
+ os=-sysv4 |
4236 |
+ ;; |
4237 |
+ apollo68) |
4238 |
+ basic_machine=m68k-apollo |
4239 |
+ os=-sysv |
4240 |
+ ;; |
4241 |
+ apollo68bsd) |
4242 |
+ basic_machine=m68k-apollo |
4243 |
+ os=-bsd |
4244 |
+ ;; |
4245 |
+ aux) |
4246 |
+ basic_machine=m68k-apple |
4247 |
+ os=-aux |
4248 |
+ ;; |
4249 |
+ balance) |
4250 |
+ basic_machine=ns32k-sequent |
4251 |
+ os=-dynix |
4252 |
+ ;; |
4253 |
+ convex-c1) |
4254 |
+ basic_machine=c1-convex |
4255 |
+ os=-bsd |
4256 |
+ ;; |
4257 |
+ convex-c2) |
4258 |
+ basic_machine=c2-convex |
4259 |
+ os=-bsd |
4260 |
+ ;; |
4261 |
+ convex-c32) |
4262 |
+ basic_machine=c32-convex |
4263 |
+ os=-bsd |
4264 |
+ ;; |
4265 |
+ convex-c34) |
4266 |
+ basic_machine=c34-convex |
4267 |
+ os=-bsd |
4268 |
+ ;; |
4269 |
+ convex-c38) |
4270 |
+ basic_machine=c38-convex |
4271 |
+ os=-bsd |
4272 |
+ ;; |
4273 |
+ cray | ymp) |
4274 |
+ basic_machine=ymp-cray |
4275 |
+ os=-unicos |
4276 |
+ ;; |
4277 |
+ cray2) |
4278 |
+ basic_machine=cray2-cray |
4279 |
+ os=-unicos |
4280 |
+ ;; |
4281 |
+ [ctj]90-cray) |
4282 |
+ basic_machine=c90-cray |
4283 |
+ os=-unicos |
4284 |
+ ;; |
4285 |
+ crds | unos) |
4286 |
+ basic_machine=m68k-crds |
4287 |
+ ;; |
4288 |
+ da30 | da30-*) |
4289 |
+ basic_machine=m68k-da30 |
4290 |
+ ;; |
4291 |
+ decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) |
4292 |
+ basic_machine=mips-dec |
4293 |
+ ;; |
4294 |
+ delta | 3300 | motorola-3300 | motorola-delta \ |
4295 |
+ | 3300-motorola | delta-motorola) |
4296 |
+ basic_machine=m68k-motorola |
4297 |
+ ;; |
4298 |
+ delta88) |
4299 |
+ basic_machine=m88k-motorola |
4300 |
+ os=-sysv3 |
4301 |
+ ;; |
4302 |
+ dpx20 | dpx20-*) |
4303 |
+ basic_machine=rs6000-bull |
4304 |
+ os=-bosx |
4305 |
+ ;; |
4306 |
+ dpx2* | dpx2*-bull) |
4307 |
+ basic_machine=m68k-bull |
4308 |
+ os=-sysv3 |
4309 |
+ ;; |
4310 |
+ ebmon29k) |
4311 |
+ basic_machine=a29k-amd |
4312 |
+ os=-ebmon |
4313 |
+ ;; |
4314 |
+ elxsi) |
4315 |
+ basic_machine=elxsi-elxsi |
4316 |
+ os=-bsd |
4317 |
+ ;; |
4318 |
+ encore | umax | mmax) |
4319 |
+ basic_machine=ns32k-encore |
4320 |
+ ;; |
4321 |
+ es1800 | OSE68k | ose68k | ose | OSE) |
4322 |
+ basic_machine=m68k-ericsson |
4323 |
+ os=-ose |
4324 |
+ ;; |
4325 |
+ fx2800) |
4326 |
+ basic_machine=i860-alliant |
4327 |
+ ;; |
4328 |
+ genix) |
4329 |
+ basic_machine=ns32k-ns |
4330 |
+ ;; |
4331 |
+ gmicro) |
4332 |
+ basic_machine=tron-gmicro |
4333 |
+ os=-sysv |
4334 |
+ ;; |
4335 |
+ h3050r* | hiux*) |
4336 |
+ basic_machine=hppa1.1-hitachi |
4337 |
+ os=-hiuxwe2 |
4338 |
+ ;; |
4339 |
+ h8300hms) |
4340 |
+ basic_machine=h8300-hitachi |
4341 |
+ os=-hms |
4342 |
+ ;; |
4343 |
+ h8300xray) |
4344 |
+ basic_machine=h8300-hitachi |
4345 |
+ os=-xray |
4346 |
+ ;; |
4347 |
+ h8500hms) |
4348 |
+ basic_machine=h8500-hitachi |
4349 |
+ os=-hms |
4350 |
+ ;; |
4351 |
+ harris) |
4352 |
+ basic_machine=m88k-harris |
4353 |
+ os=-sysv3 |
4354 |
+ ;; |
4355 |
+ hp300-*) |
4356 |
+ basic_machine=m68k-hp |
4357 |
+ ;; |
4358 |
+ hp300bsd) |
4359 |
+ basic_machine=m68k-hp |
4360 |
+ os=-bsd |
4361 |
+ ;; |
4362 |
+ hp300hpux) |
4363 |
+ basic_machine=m68k-hp |
4364 |
+ os=-hpux |
4365 |
+ ;; |
4366 |
+ hp3k9[0-9][0-9] | hp9[0-9][0-9]) |
4367 |
+ basic_machine=hppa1.0-hp |
4368 |
+ ;; |
4369 |
+ hp9k2[0-9][0-9] | hp9k31[0-9]) |
4370 |
+ basic_machine=m68000-hp |
4371 |
+ ;; |
4372 |
+ hp9k3[2-9][0-9]) |
4373 |
+ basic_machine=m68k-hp |
4374 |
+ ;; |
4375 |
+ hp9k6[0-9][0-9] | hp6[0-9][0-9]) |
4376 |
+ basic_machine=hppa1.0-hp |
4377 |
+ ;; |
4378 |
+ hp9k7[0-79][0-9] | hp7[0-79][0-9]) |
4379 |
+ basic_machine=hppa1.1-hp |
4380 |
+ ;; |
4381 |
+ hp9k78[0-9] | hp78[0-9]) |
4382 |
+ # FIXME: really hppa2.0-hp |
4383 |
+ basic_machine=hppa1.1-hp |
4384 |
+ ;; |
4385 |
+ hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) |
4386 |
+ # FIXME: really hppa2.0-hp |
4387 |
+ basic_machine=hppa1.1-hp |
4388 |
+ ;; |
4389 |
+ hp9k8[0-9][13679] | hp8[0-9][13679]) |
4390 |
+ basic_machine=hppa1.1-hp |
4391 |
+ ;; |
4392 |
+ hp9k8[0-9][0-9] | hp8[0-9][0-9]) |
4393 |
+ basic_machine=hppa1.0-hp |
4394 |
+ ;; |
4395 |
+ hppa-next) |
4396 |
+ os=-nextstep3 |
4397 |
+ ;; |
4398 |
+ hppaosf) |
4399 |
+ basic_machine=hppa1.1-hp |
4400 |
+ os=-osf |
4401 |
+ ;; |
4402 |
+ hppro) |
4403 |
+ basic_machine=hppa1.1-hp |
4404 |
+ os=-proelf |
4405 |
+ ;; |
4406 |
+ i370-ibm* | ibm*) |
4407 |
+ basic_machine=i370-ibm |
4408 |
+ ;; |
4409 |
+# I'm not sure what "Sysv32" means. Should this be sysv3.2? |
4410 |
+ i[34567]86v32) |
4411 |
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
4412 |
+ os=-sysv32 |
4413 |
+ ;; |
4414 |
+ i[34567]86v4*) |
4415 |
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
4416 |
+ os=-sysv4 |
4417 |
+ ;; |
4418 |
+ i[34567]86v) |
4419 |
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
4420 |
+ os=-sysv |
4421 |
+ ;; |
4422 |
+ i[34567]86sol2) |
4423 |
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
4424 |
+ os=-solaris2 |
4425 |
+ ;; |
4426 |
+ i386mach) |
4427 |
+ basic_machine=i386-mach |
4428 |
+ os=-mach |
4429 |
+ ;; |
4430 |
+ i386-vsta | vsta) |
4431 |
+ basic_machine=i386-unknown |
4432 |
+ os=-vsta |
4433 |
+ ;; |
4434 |
+ i386-go32 | go32) |
4435 |
+ basic_machine=i386-unknown |
4436 |
+ os=-go32 |
4437 |
+ ;; |
4438 |
+ i386-mingw32 | mingw32) |
4439 |
+ basic_machine=i386-unknown |
4440 |
+ os=-mingw32 |
4441 |
+ ;; |
4442 |
+ iris | iris4d) |
4443 |
+ basic_machine=mips-sgi |
4444 |
+ case $os in |
4445 |
+ -irix*) |
4446 |
+ ;; |
4447 |
+ *) |
4448 |
+ os=-irix4 |
4449 |
+ ;; |
4450 |
+ esac |
4451 |
+ ;; |
4452 |
+ isi68 | isi) |
4453 |
+ basic_machine=m68k-isi |
4454 |
+ os=-sysv |
4455 |
+ ;; |
4456 |
+ m88k-omron*) |
4457 |
+ basic_machine=m88k-omron |
4458 |
+ ;; |
4459 |
+ magnum | m3230) |
4460 |
+ basic_machine=mips-mips |
4461 |
+ os=-sysv |
4462 |
+ ;; |
4463 |
+ merlin) |
4464 |
+ basic_machine=ns32k-utek |
4465 |
+ os=-sysv |
4466 |
+ ;; |
4467 |
+ miniframe) |
4468 |
+ basic_machine=m68000-convergent |
4469 |
+ ;; |
4470 |
+ *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) |
4471 |
+ basic_machine=m68k-atari |
4472 |
+ os=-mint |
4473 |
+ ;; |
4474 |
+ mipsel*-linux*) |
4475 |
+ basic_machine=mipsel-unknown |
4476 |
+ os=-linux-gnu |
4477 |
+ ;; |
4478 |
+ mips*-linux*) |
4479 |
+ basic_machine=mips-unknown |
4480 |
+ os=-linux-gnu |
4481 |
+ ;; |
4482 |
+ mips3*-*) |
4483 |
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` |
4484 |
+ ;; |
4485 |
+ mips3*) |
4486 |
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown |
4487 |
+ ;; |
4488 |
+ mmix*) |
4489 |
+ basic_machine=mmix-knuth |
4490 |
+ os=-mmixware |
4491 |
+ ;; |
4492 |
+ monitor) |
4493 |
+ basic_machine=m68k-rom68k |
4494 |
+ os=-coff |
4495 |
+ ;; |
4496 |
+ msdos) |
4497 |
+ basic_machine=i386-unknown |
4498 |
+ os=-msdos |
4499 |
+ ;; |
4500 |
+ mvs) |
4501 |
+ basic_machine=i370-ibm |
4502 |
+ os=-mvs |
4503 |
+ ;; |
4504 |
+ ncr3000) |
4505 |
+ basic_machine=i486-ncr |
4506 |
+ os=-sysv4 |
4507 |
+ ;; |
4508 |
+ netbsd386) |
4509 |
+ basic_machine=i386-unknown |
4510 |
+ os=-netbsd |
4511 |
+ ;; |
4512 |
+ netwinder) |
4513 |
+ basic_machine=armv4l-rebel |
4514 |
+ os=-linux |
4515 |
+ ;; |
4516 |
+ news | news700 | news800 | news900) |
4517 |
+ basic_machine=m68k-sony |
4518 |
+ os=-newsos |
4519 |
+ ;; |
4520 |
+ news1000) |
4521 |
+ basic_machine=m68030-sony |
4522 |
+ os=-newsos |
4523 |
+ ;; |
4524 |
+ news-3600 | risc-news) |
4525 |
+ basic_machine=mips-sony |
4526 |
+ os=-newsos |
4527 |
+ ;; |
4528 |
+ necv70) |
4529 |
+ basic_machine=v70-nec |
4530 |
+ os=-sysv |
4531 |
+ ;; |
4532 |
+ next | m*-next ) |
4533 |
+ basic_machine=m68k-next |
4534 |
+ case $os in |
4535 |
+ -nextstep* ) |
4536 |
+ ;; |
4537 |
+ -ns2*) |
4538 |
+ os=-nextstep2 |
4539 |
+ ;; |
4540 |
+ *) |
4541 |
+ os=-nextstep3 |
4542 |
+ ;; |
4543 |
+ esac |
4544 |
+ ;; |
4545 |
+ nh3000) |
4546 |
+ basic_machine=m68k-harris |
4547 |
+ os=-cxux |
4548 |
+ ;; |
4549 |
+ nh[45]000) |
4550 |
+ basic_machine=m88k-harris |
4551 |
+ os=-cxux |
4552 |
+ ;; |
4553 |
+ nindy960) |
4554 |
+ basic_machine=i960-intel |
4555 |
+ os=-nindy |
4556 |
+ ;; |
4557 |
+ mon960) |
4558 |
+ basic_machine=i960-intel |
4559 |
+ os=-mon960 |
4560 |
+ ;; |
4561 |
+ np1) |
4562 |
+ basic_machine=np1-gould |
4563 |
+ ;; |
4564 |
+ nsr-tandem) |
4565 |
+ basic_machine=nsr-tandem |
4566 |
+ ;; |
4567 |
+ op50n-* | op60c-*) |
4568 |
+ basic_machine=hppa1.1-oki |
4569 |
+ os=-proelf |
4570 |
+ ;; |
4571 |
+ OSE68000 | ose68000) |
4572 |
+ basic_machine=m68000-ericsson |
4573 |
+ os=-ose |
4574 |
+ ;; |
4575 |
+ os68k) |
4576 |
+ basic_machine=m68k-none |
4577 |
+ os=-os68k |
4578 |
+ ;; |
4579 |
+ pa-hitachi) |
4580 |
+ basic_machine=hppa1.1-hitachi |
4581 |
+ os=-hiuxwe2 |
4582 |
+ ;; |
4583 |
+ paragon) |
4584 |
+ basic_machine=i860-intel |
4585 |
+ os=-osf |
4586 |
+ ;; |
4587 |
+ pbd) |
4588 |
+ basic_machine=sparc-tti |
4589 |
+ ;; |
4590 |
+ pbb) |
4591 |
+ basic_machine=m68k-tti |
4592 |
+ ;; |
4593 |
+ pc532 | pc532-*) |
4594 |
+ basic_machine=ns32k-pc532 |
4595 |
+ ;; |
4596 |
+ pentium | p5 | k5 | k6 | nexen) |
4597 |
+ basic_machine=i586-pc |
4598 |
+ ;; |
4599 |
+ pentiumpro | p6 | 6x86) |
4600 |
+ basic_machine=i686-pc |
4601 |
+ ;; |
4602 |
+ pentiumii | pentium2) |
4603 |
+ basic_machine=i786-pc |
4604 |
+ ;; |
4605 |
+ pentium-* | p5-* | k5-* | k6-* | nexen-*) |
4606 |
+ basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` |
4607 |
+ ;; |
4608 |
+ pentiumpro-* | p6-* | 6x86-*) |
4609 |
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` |
4610 |
+ ;; |
4611 |
+ pentiumii-* | pentium2-*) |
4612 |
+ basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` |
4613 |
+ ;; |
4614 |
+ pn) |
4615 |
+ basic_machine=pn-gould |
4616 |
+ ;; |
4617 |
+ power) basic_machine=rs6000-ibm |
4618 |
+ ;; |
4619 |
+ ppc) basic_machine=powerpc-unknown |
4620 |
+ ;; |
4621 |
+ ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` |
4622 |
+ ;; |
4623 |
+ ppcle | powerpclittle | ppc-le | powerpc-little) |
4624 |
+ basic_machine=powerpcle-unknown |
4625 |
+ ;; |
4626 |
+ ppcle-* | powerpclittle-*) |
4627 |
+ basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` |
4628 |
+ ;; |
4629 |
+ ps2) |
4630 |
+ basic_machine=i386-ibm |
4631 |
+ ;; |
4632 |
+ rom68k) |
4633 |
+ basic_machine=m68k-rom68k |
4634 |
+ os=-coff |
4635 |
+ ;; |
4636 |
+ rm[46]00) |
4637 |
+ basic_machine=mips-siemens |
4638 |
+ ;; |
4639 |
+ rtpc | rtpc-*) |
4640 |
+ basic_machine=romp-ibm |
4641 |
+ ;; |
4642 |
+ sa29200) |
4643 |
+ basic_machine=a29k-amd |
4644 |
+ os=-udi |
4645 |
+ ;; |
4646 |
+ sequent) |
4647 |
+ basic_machine=i386-sequent |
4648 |
+ ;; |
4649 |
+ sh) |
4650 |
+ basic_machine=sh-hitachi |
4651 |
+ os=-hms |
4652 |
+ ;; |
4653 |
+ sparclite-wrs) |
4654 |
+ basic_machine=sparclite-wrs |
4655 |
+ os=-vxworks |
4656 |
+ ;; |
4657 |
+ sps7) |
4658 |
+ basic_machine=m68k-bull |
4659 |
+ os=-sysv2 |
4660 |
+ ;; |
4661 |
+ spur) |
4662 |
+ basic_machine=spur-unknown |
4663 |
+ ;; |
4664 |
+ st2000) |
4665 |
+ basic_machine=m68k-tandem |
4666 |
+ ;; |
4667 |
+ stratus) |
4668 |
+ basic_machine=i860-stratus |
4669 |
+ os=-sysv4 |
4670 |
+ ;; |
4671 |
+ sun2) |
4672 |
+ basic_machine=m68000-sun |
4673 |
+ ;; |
4674 |
+ sun2os3) |
4675 |
+ basic_machine=m68000-sun |
4676 |
+ os=-sunos3 |
4677 |
+ ;; |
4678 |
+ sun2os4) |
4679 |
+ basic_machine=m68000-sun |
4680 |
+ os=-sunos4 |
4681 |
+ ;; |
4682 |
+ sun3os3) |
4683 |
+ basic_machine=m68k-sun |
4684 |
+ os=-sunos3 |
4685 |
+ ;; |
4686 |
+ sun3os4) |
4687 |
+ basic_machine=m68k-sun |
4688 |
+ os=-sunos4 |
4689 |
+ ;; |
4690 |
+ sun4os3) |
4691 |
+ basic_machine=sparc-sun |
4692 |
+ os=-sunos3 |
4693 |
+ ;; |
4694 |
+ sun4os4) |
4695 |
+ basic_machine=sparc-sun |
4696 |
+ os=-sunos4 |
4697 |
+ ;; |
4698 |
+ sun4sol2) |
4699 |
+ basic_machine=sparc-sun |
4700 |
+ os=-solaris2 |
4701 |
+ ;; |
4702 |
+ sun3 | sun3-*) |
4703 |
+ basic_machine=m68k-sun |
4704 |
+ ;; |
4705 |
+ sun4) |
4706 |
+ basic_machine=sparc-sun |
4707 |
+ ;; |
4708 |
+ sun386 | sun386i | roadrunner) |
4709 |
+ basic_machine=i386-sun |
4710 |
+ ;; |
4711 |
+ sv1) |
4712 |
+ basic_machine=sv1-cray |
4713 |
+ os=-unicos |
4714 |
+ ;; |
4715 |
+ symmetry) |
4716 |
+ basic_machine=i386-sequent |
4717 |
+ os=-dynix |
4718 |
+ ;; |
4719 |
+ t3e) |
4720 |
+ basic_machine=t3e-cray |
4721 |
+ os=-unicos |
4722 |
+ ;; |
4723 |
+ tx39) |
4724 |
+ basic_machine=mipstx39-unknown |
4725 |
+ ;; |
4726 |
+ tx39el) |
4727 |
+ basic_machine=mipstx39el-unknown |
4728 |
+ ;; |
4729 |
+ tower | tower-32) |
4730 |
+ basic_machine=m68k-ncr |
4731 |
+ ;; |
4732 |
+ udi29k) |
4733 |
+ basic_machine=a29k-amd |
4734 |
+ os=-udi |
4735 |
+ ;; |
4736 |
+ ultra3) |
4737 |
+ basic_machine=a29k-nyu |
4738 |
+ os=-sym1 |
4739 |
+ ;; |
4740 |
+ v810 | necv810) |
4741 |
+ basic_machine=v810-nec |
4742 |
+ os=-none |
4743 |
+ ;; |
4744 |
+ vaxv) |
4745 |
+ basic_machine=vax-dec |
4746 |
+ os=-sysv |
4747 |
+ ;; |
4748 |
+ vms) |
4749 |
+ basic_machine=vax-dec |
4750 |
+ os=-vms |
4751 |
+ ;; |
4752 |
+ vpp*|vx|vx-*) |
4753 |
+ basic_machine=f301-fujitsu |
4754 |
+ ;; |
4755 |
+ vxworks960) |
4756 |
+ basic_machine=i960-wrs |
4757 |
+ os=-vxworks |
4758 |
+ ;; |
4759 |
+ vxworks68) |
4760 |
+ basic_machine=m68k-wrs |
4761 |
+ os=-vxworks |
4762 |
+ ;; |
4763 |
+ vxworks29k) |
4764 |
+ basic_machine=a29k-wrs |
4765 |
+ os=-vxworks |
4766 |
+ ;; |
4767 |
+ w65*) |
4768 |
+ basic_machine=w65-wdc |
4769 |
+ os=-none |
4770 |
+ ;; |
4771 |
+ w89k-*) |
4772 |
+ basic_machine=hppa1.1-winbond |
4773 |
+ os=-proelf |
4774 |
+ ;; |
4775 |
+ xmp) |
4776 |
+ basic_machine=xmp-cray |
4777 |
+ os=-unicos |
4778 |
+ ;; |
4779 |
+ xps | xps100) |
4780 |
+ basic_machine=xps100-honeywell |
4781 |
+ ;; |
4782 |
+ z8k-*-coff) |
4783 |
+ basic_machine=z8k-unknown |
4784 |
+ os=-sim |
4785 |
+ ;; |
4786 |
+ none) |
4787 |
+ basic_machine=none-none |
4788 |
+ os=-none |
4789 |
+ ;; |
4790 |
+ |
4791 |
+# Here we handle the default manufacturer of certain CPU types. It is in |
4792 |
+# some cases the only manufacturer, in others, it is the most popular. |
4793 |
+ w89k) |
4794 |
+ basic_machine=hppa1.1-winbond |
4795 |
+ ;; |
4796 |
+ op50n) |
4797 |
+ basic_machine=hppa1.1-oki |
4798 |
+ ;; |
4799 |
+ op60c) |
4800 |
+ basic_machine=hppa1.1-oki |
4801 |
+ ;; |
4802 |
+ mips) |
4803 |
+ if [ x$os = x-linux-gnu ]; then |
4804 |
+ basic_machine=mips-unknown |
4805 |
+ else |
4806 |
+ basic_machine=mips-mips |
4807 |
+ fi |
4808 |
+ ;; |
4809 |
+ romp) |
4810 |
+ basic_machine=romp-ibm |
4811 |
+ ;; |
4812 |
+ rs6000) |
4813 |
+ basic_machine=rs6000-ibm |
4814 |
+ ;; |
4815 |
+ vax) |
4816 |
+ basic_machine=vax-dec |
4817 |
+ ;; |
4818 |
+ pdp11) |
4819 |
+ basic_machine=pdp11-dec |
4820 |
+ ;; |
4821 |
+ we32k) |
4822 |
+ basic_machine=we32k-att |
4823 |
+ ;; |
4824 |
+ sparc | sparcv9) |
4825 |
+ basic_machine=sparc-sun |
4826 |
+ ;; |
4827 |
+ cydra) |
4828 |
+ basic_machine=cydra-cydrome |
4829 |
+ ;; |
4830 |
+ orion) |
4831 |
+ basic_machine=orion-highlevel |
4832 |
+ ;; |
4833 |
+ orion105) |
4834 |
+ basic_machine=clipper-highlevel |
4835 |
+ ;; |
4836 |
+ mac | mpw | mac-mpw) |
4837 |
+ basic_machine=m68k-apple |
4838 |
+ ;; |
4839 |
+ pmac | pmac-mpw) |
4840 |
+ basic_machine=powerpc-apple |
4841 |
+ ;; |
4842 |
+ c4x*) |
4843 |
+ basic_machine=c4x-none |
4844 |
+ os=-coff |
4845 |
+ ;; |
4846 |
+ *) |
4847 |
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 |
4848 |
+ exit 1 |
4849 |
+ ;; |
4850 |
+esac |
4851 |
+ |
4852 |
+# Here we canonicalize certain aliases for manufacturers. |
4853 |
+case $basic_machine in |
4854 |
+ *-digital*) |
4855 |
+ basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` |
4856 |
+ ;; |
4857 |
+ *-commodore*) |
4858 |
+ basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` |
4859 |
+ ;; |
4860 |
+ *) |
4861 |
+ ;; |
4862 |
+esac |
4863 |
+ |
4864 |
+# Decode manufacturer-specific aliases for certain operating systems. |
4865 |
+ |
4866 |
+if [ x"$os" != x"" ] |
4867 |
+then |
4868 |
+case $os in |
4869 |
+ # First match some system type aliases |
4870 |
+ # that might get confused with valid system types. |
4871 |
+ # -solaris* is a basic system type, with this one exception. |
4872 |
+ -solaris1 | -solaris1.*) |
4873 |
+ os=`echo $os | sed -e 's|solaris1|sunos4|'` |
4874 |
+ ;; |
4875 |
+ -solaris) |
4876 |
+ os=-solaris2 |
4877 |
+ ;; |
4878 |
+ -svr4*) |
4879 |
+ os=-sysv4 |
4880 |
+ ;; |
4881 |
+ -unixware*) |
4882 |
+ os=-sysv4.2uw |
4883 |
+ ;; |
4884 |
+ -gnu/linux*) |
4885 |
+ os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` |
4886 |
+ ;; |
4887 |
+ # First accept the basic system types. |
4888 |
+ # The portable systems comes first. |
4889 |
+ # Each alternative MUST END IN A *, to match a version number. |
4890 |
+ # -sysv* is not here because it comes later, after sysvr4. |
4891 |
+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
4892 |
+ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ |
4893 |
+ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ |
4894 |
+ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
4895 |
+ | -aos* \ |
4896 |
+ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
4897 |
+ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
4898 |
+ | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ |
4899 |
+ | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
4900 |
+ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
4901 |
+ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
4902 |
+ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
4903 |
+ | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ |
4904 |
+ | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ |
4905 |
+ | -openstep* | -oskit*) |
4906 |
+ # Remember, each alternative MUST END IN *, to match a version number. |
4907 |
+ ;; |
4908 |
+ -qnx*) |
4909 |
+ case $basic_machine in |
4910 |
+ x86-* | i[34567]86-*) |
4911 |
+ ;; |
4912 |
+ *) |
4913 |
+ os=-nto$os |
4914 |
+ ;; |
4915 |
+ esac |
4916 |
+ ;; |
4917 |
+ -nto*) |
4918 |
+ os=-nto-qnx |
4919 |
+ ;; |
4920 |
+ -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ |
4921 |
+ | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ |
4922 |
+ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) |
4923 |
+ ;; |
4924 |
+ -mac*) |
4925 |
+ os=`echo $os | sed -e 's|mac|macos|'` |
4926 |
+ ;; |
4927 |
+ -linux*) |
4928 |
+ os=`echo $os | sed -e 's|linux|linux-gnu|'` |
4929 |
+ ;; |
4930 |
+ -sunos5*) |
4931 |
+ os=`echo $os | sed -e 's|sunos5|solaris2|'` |
4932 |
+ ;; |
4933 |
+ -sunos6*) |
4934 |
+ os=`echo $os | sed -e 's|sunos6|solaris3|'` |
4935 |
+ ;; |
4936 |
+ -opened*) |
4937 |
+ os=-openedition |
4938 |
+ ;; |
4939 |
+ -wince*) |
4940 |
+ os=-wince |
4941 |
+ ;; |
4942 |
+ -osfrose*) |
4943 |
+ os=-osfrose |
4944 |
+ ;; |
4945 |
+ -osf*) |
4946 |
+ os=-osf |
4947 |
+ ;; |
4948 |
+ -utek*) |
4949 |
+ os=-bsd |
4950 |
+ ;; |
4951 |
+ -dynix*) |
4952 |
+ os=-bsd |
4953 |
+ ;; |
4954 |
+ -acis*) |
4955 |
+ os=-aos |
4956 |
+ ;; |
4957 |
+ -386bsd) |
4958 |
+ os=-bsd |
4959 |
+ ;; |
4960 |
+ -ctix* | -uts*) |
4961 |
+ os=-sysv |
4962 |
+ ;; |
4963 |
+ -ns2 ) |
4964 |
+ os=-nextstep2 |
4965 |
+ ;; |
4966 |
+ -nsk) |
4967 |
+ os=-nsk |
4968 |
+ ;; |
4969 |
+ # Preserve the version number of sinix5. |
4970 |
+ -sinix5.*) |
4971 |
+ os=`echo $os | sed -e 's|sinix|sysv|'` |
4972 |
+ ;; |
4973 |
+ -sinix*) |
4974 |
+ os=-sysv4 |
4975 |
+ ;; |
4976 |
+ -triton*) |
4977 |
+ os=-sysv3 |
4978 |
+ ;; |
4979 |
+ -oss*) |
4980 |
+ os=-sysv3 |
4981 |
+ ;; |
4982 |
+ -svr4) |
4983 |
+ os=-sysv4 |
4984 |
+ ;; |
4985 |
+ -svr3) |
4986 |
+ os=-sysv3 |
4987 |
+ ;; |
4988 |
+ -sysvr4) |
4989 |
+ os=-sysv4 |
4990 |
+ ;; |
4991 |
+ # This must come after -sysvr4. |
4992 |
+ -sysv*) |
4993 |
+ ;; |
4994 |
+ -ose*) |
4995 |
+ os=-ose |
4996 |
+ ;; |
4997 |
+ -es1800*) |
4998 |
+ os=-ose |
4999 |
+ ;; |
5000 |
+ -xenix) |
5001 |
+ os=-xenix |
5002 |
+ ;; |
5003 |
+ -*mint | -*MiNT) |
5004 |
+ os=-mint |
5005 |
+ ;; |
5006 |
+ -none) |
5007 |
+ ;; |
5008 |
+ *) |
5009 |
+ # Get rid of the `-' at the beginning of $os. |
5010 |
+ os=`echo $os | sed 's/[^-]*-//'` |
5011 |
+ echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 |
5012 |
+ exit 1 |
5013 |
+ ;; |
5014 |
+esac |
5015 |
+else |
5016 |
+ |
5017 |
+# Here we handle the default operating systems that come with various machines. |
5018 |
+# The value should be what the vendor currently ships out the door with their |
5019 |
+# machine or put another way, the most popular os provided with the machine. |
5020 |
+ |
5021 |
+# Note that if you're going to try to match "-MANUFACTURER" here (say, |
5022 |
+# "-sun"), then you have to tell the case statement up towards the top |
5023 |
+# that MANUFACTURER isn't an operating system. Otherwise, code above |
5024 |
+# will signal an error saying that MANUFACTURER isn't an operating |
5025 |
+# system, and we'll never get to this point. |
5026 |
+ |
5027 |
+case $basic_machine in |
5028 |
+ *-acorn) |
5029 |
+ os=-riscix1.2 |
5030 |
+ ;; |
5031 |
+ arm*-rebel) |
5032 |
+ os=-linux |
5033 |
+ ;; |
5034 |
+ arm*-semi) |
5035 |
+ os=-aout |
5036 |
+ ;; |
5037 |
+ pdp11-*) |
5038 |
+ os=-none |
5039 |
+ ;; |
5040 |
+ *-dec | vax-*) |
5041 |
+ os=-ultrix4.2 |
5042 |
+ ;; |
5043 |
+ m68*-apollo) |
5044 |
+ os=-domain |
5045 |
+ ;; |
5046 |
+ i386-sun) |
5047 |
+ os=-sunos4.0.2 |
5048 |
+ ;; |
5049 |
+ m68000-sun) |
5050 |
+ os=-sunos3 |
5051 |
+ # This also exists in the configure program, but was not the |
5052 |
+ # default. |
5053 |
+ # os=-sunos4 |
5054 |
+ ;; |
5055 |
+ m68*-cisco) |
5056 |
+ os=-aout |
5057 |
+ ;; |
5058 |
+ mips*-cisco) |
5059 |
+ os=-elf |
5060 |
+ ;; |
5061 |
+ mips*-*) |
5062 |
+ os=-elf |
5063 |
+ ;; |
5064 |
+ *-tti) # must be before sparc entry or we get the wrong os. |
5065 |
+ os=-sysv3 |
5066 |
+ ;; |
5067 |
+ sparc-* | *-sun) |
5068 |
+ os=-sunos4.1.1 |
5069 |
+ ;; |
5070 |
+ *-be) |
5071 |
+ os=-beos |
5072 |
+ ;; |
5073 |
+ *-ibm) |
5074 |
+ os=-aix |
5075 |
+ ;; |
5076 |
+ *-wec) |
5077 |
+ os=-proelf |
5078 |
+ ;; |
5079 |
+ *-winbond) |
5080 |
+ os=-proelf |
5081 |
+ ;; |
5082 |
+ *-oki) |
5083 |
+ os=-proelf |
5084 |
+ ;; |
5085 |
+ *-hp) |
5086 |
+ os=-hpux |
5087 |
+ ;; |
5088 |
+ *-hitachi) |
5089 |
+ os=-hiux |
5090 |
+ ;; |
5091 |
+ i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) |
5092 |
+ os=-sysv |
5093 |
+ ;; |
5094 |
+ *-cbm) |
5095 |
+ os=-amigaos |
5096 |
+ ;; |
5097 |
+ *-dg) |
5098 |
+ os=-dgux |
5099 |
+ ;; |
5100 |
+ *-dolphin) |
5101 |
+ os=-sysv3 |
5102 |
+ ;; |
5103 |
+ m68k-ccur) |
5104 |
+ os=-rtu |
5105 |
+ ;; |
5106 |
+ m88k-omron*) |
5107 |
+ os=-luna |
5108 |
+ ;; |
5109 |
+ *-next ) |
5110 |
+ os=-nextstep |
5111 |
+ ;; |
5112 |
+ *-sequent) |
5113 |
+ os=-ptx |
5114 |
+ ;; |
5115 |
+ *-crds) |
5116 |
+ os=-unos |
5117 |
+ ;; |
5118 |
+ *-ns) |
5119 |
+ os=-genix |
5120 |
+ ;; |
5121 |
+ i370-*) |
5122 |
+ os=-mvs |
5123 |
+ ;; |
5124 |
+ *-next) |
5125 |
+ os=-nextstep3 |
5126 |
+ ;; |
5127 |
+ *-gould) |
5128 |
+ os=-sysv |
5129 |
+ ;; |
5130 |
+ *-highlevel) |
5131 |
+ os=-bsd |
5132 |
+ ;; |
5133 |
+ *-encore) |
5134 |
+ os=-bsd |
5135 |
+ ;; |
5136 |
+ *-sgi) |
5137 |
+ os=-irix |
5138 |
+ ;; |
5139 |
+ *-siemens) |
5140 |
+ os=-sysv4 |
5141 |
+ ;; |
5142 |
+ *-masscomp) |
5143 |
+ os=-rtu |
5144 |
+ ;; |
5145 |
+ f301-fujitsu) |
5146 |
+ os=-uxpv |
5147 |
+ ;; |
5148 |
+ *-rom68k) |
5149 |
+ os=-coff |
5150 |
+ ;; |
5151 |
+ *-*bug) |
5152 |
+ os=-coff |
5153 |
+ ;; |
5154 |
+ *-apple) |
5155 |
+ os=-macos |
5156 |
+ ;; |
5157 |
+ *-atari*) |
5158 |
+ os=-mint |
5159 |
+ ;; |
5160 |
+ *) |
5161 |
+ os=-none |
5162 |
+ ;; |
5163 |
+esac |
5164 |
+fi |
5165 |
+ |
5166 |
+# Here we handle the case where we know the os, and the CPU type, but not the |
5167 |
+# manufacturer. We pick the logical manufacturer. |
5168 |
+vendor=unknown |
5169 |
+case $basic_machine in |
5170 |
+ *-unknown) |
5171 |
+ case $os in |
5172 |
+ -riscix*) |
5173 |
+ vendor=acorn |
5174 |
+ ;; |
5175 |
+ -sunos*) |
5176 |
+ vendor=sun |
5177 |
+ ;; |
5178 |
+ -aix*) |
5179 |
+ vendor=ibm |
5180 |
+ ;; |
5181 |
+ -beos*) |
5182 |
+ vendor=be |
5183 |
+ ;; |
5184 |
+ -hpux*) |
5185 |
+ vendor=hp |
5186 |
+ ;; |
5187 |
+ -mpeix*) |
5188 |
+ vendor=hp |
5189 |
+ ;; |
5190 |
+ -hiux*) |
5191 |
+ vendor=hitachi |
5192 |
+ ;; |
5193 |
+ -unos*) |
5194 |
+ vendor=crds |
5195 |
+ ;; |
5196 |
+ -dgux*) |
5197 |
+ vendor=dg |
5198 |
+ ;; |
5199 |
+ -luna*) |
5200 |
+ vendor=omron |
5201 |
+ ;; |
5202 |
+ -genix*) |
5203 |
+ vendor=ns |
5204 |
+ ;; |
5205 |
+ -mvs* | -opened*) |
5206 |
+ vendor=ibm |
5207 |
+ ;; |
5208 |
+ -ptx*) |
5209 |
+ vendor=sequent |
5210 |
+ ;; |
5211 |
+ -vxsim* | -vxworks*) |
5212 |
+ vendor=wrs |
5213 |
+ ;; |
5214 |
+ -aux*) |
5215 |
+ vendor=apple |
5216 |
+ ;; |
5217 |
+ -hms*) |
5218 |
+ vendor=hitachi |
5219 |
+ ;; |
5220 |
+ -mpw* | -macos*) |
5221 |
+ vendor=apple |
5222 |
+ ;; |
5223 |
+ -*mint | -*MiNT) |
5224 |
+ vendor=atari |
5225 |
+ ;; |
5226 |
+ esac |
5227 |
+ basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` |
5228 |
+ ;; |
5229 |
+esac |
5230 |
+ |
5231 |
+echo $basic_machine$os |
5232 |
Index: configure |
5233 |
=================================================================== |
5234 |
|
5235 |
|
5236 |
--- /dev/null Fri Jun 8 19:07:45 2001 |
5237 |
+++ configure Fri Jun 8 19:30:17 2001 |
5238 |
@@ -0,0 +1,4307 @@ |
5239 |
+#! /bin/sh |
5240 |
+ |
5241 |
+# Guess values for system-dependent variables and create Makefiles. |
5242 |
+# Generated automatically using autoconf version 2.13 |
5243 |
+# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
5244 |
+# |
5245 |
+# This configure script is free software; the Free Software Foundation |
5246 |
+# gives unlimited permission to copy, distribute and modify it. |
5247 |
+ |
5248 |
+# Defaults: |
5249 |
+ac_help= |
5250 |
+ac_default_prefix=/usr/local |
5251 |
+# Any additions from configure.in: |
5252 |
+ac_help="$ac_help |
5253 |
+ --with-x use the X Window System" |
5254 |
+ac_help="$ac_help |
5255 |
+ --with-motif-includes=DIR Motif include files are in DIR" |
5256 |
+ac_help="$ac_help |
5257 |
+ --with-motif-libraries=DIR Motif libraries are in DIR" |
5258 |
+ac_help="$ac_help |
5259 |
+ --without-xpm do not use the Xpm library" |
5260 |
+ac_help="$ac_help |
5261 |
+ --with-xpm-includes=DIR Xpm include files are in DIR" |
5262 |
+ac_help="$ac_help |
5263 |
+ --with-xpm-libraries=DIR Xpm libraries are in DIR" |
5264 |
+ac_help="$ac_help |
5265 |
+ --with-mesa prefer MesaGL (if found) over OpenGL [[default=yes]]" |
5266 |
+ac_help="$ac_help |
5267 |
+ --with-opengl OpenGL/Mesa installation directory" |
5268 |
+ac_help="$ac_help |
5269 |
+ --with-pthread pthread installation directory" |
5270 |
+ac_help="$ac_help |
5271 |
+ --with-glu use the OpenGL utility library [[default=yes]]" |
5272 |
+ac_help="$ac_help |
5273 |
+ --with-glw use the OpenGL widget Library [[default=yes]]" |
5274 |
+ |
5275 |
+# Initialize some variables set by options. |
5276 |
+# The variables have the same names as the options, with |
5277 |
+# dashes changed to underlines. |
5278 |
+build=NONE |
5279 |
+cache_file=./config.cache |
5280 |
+exec_prefix=NONE |
5281 |
+host=NONE |
5282 |
+no_create= |
5283 |
+nonopt=NONE |
5284 |
+no_recursion= |
5285 |
+prefix=NONE |
5286 |
+program_prefix=NONE |
5287 |
+program_suffix=NONE |
5288 |
+program_transform_name=s,x,x, |
5289 |
+silent= |
5290 |
+site= |
5291 |
+srcdir= |
5292 |
+target=NONE |
5293 |
+verbose= |
5294 |
+x_includes=NONE |
5295 |
+x_libraries=NONE |
5296 |
+bindir='${exec_prefix}/bin' |
5297 |
+sbindir='${exec_prefix}/sbin' |
5298 |
+libexecdir='${exec_prefix}/libexec' |
5299 |
+datadir='${prefix}/share' |
5300 |
+sysconfdir='${prefix}/etc' |
5301 |
+sharedstatedir='${prefix}/com' |
5302 |
+localstatedir='${prefix}/var' |
5303 |
+libdir='${exec_prefix}/lib' |
5304 |
+includedir='${prefix}/include' |
5305 |
+oldincludedir='/usr/include' |
5306 |
+infodir='${prefix}/info' |
5307 |
+mandir='${prefix}/man' |
5308 |
+ |
5309 |
+# Initialize some other variables. |
5310 |
+subdirs= |
5311 |
+MFLAGS= MAKEFLAGS= |
5312 |
+SHELL=${CONFIG_SHELL-/bin/sh} |
5313 |
+# Maximum number of lines to put in a shell here document. |
5314 |
+ac_max_here_lines=12 |
5315 |
+ |
5316 |
+ac_prev= |
5317 |
+for ac_option |
5318 |
+do |
5319 |
+ |
5320 |
+ # If the previous option needs an argument, assign it. |
5321 |
+ if test -n "$ac_prev"; then |
5322 |
+ eval "$ac_prev=\$ac_option" |
5323 |
+ ac_prev= |
5324 |
+ continue |
5325 |
+ fi |
5326 |
+ |
5327 |
+ case "$ac_option" in |
5328 |
+ -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
5329 |
+ *) ac_optarg= ;; |
5330 |
+ esac |
5331 |
+ |
5332 |
+ # Accept the important Cygnus configure options, so we can diagnose typos. |
5333 |
+ |
5334 |
+ case "$ac_option" in |
5335 |
+ |
5336 |
+ -bindir | --bindir | --bindi | --bind | --bin | --bi) |
5337 |
+ ac_prev=bindir ;; |
5338 |
+ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
5339 |
+ bindir="$ac_optarg" ;; |
5340 |
+ |
5341 |
+ -build | --build | --buil | --bui | --bu) |
5342 |
+ ac_prev=build ;; |
5343 |
+ -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
5344 |
+ build="$ac_optarg" ;; |
5345 |
+ |
5346 |
+ -cache-file | --cache-file | --cache-fil | --cache-fi \ |
5347 |
+ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
5348 |
+ ac_prev=cache_file ;; |
5349 |
+ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
5350 |
+ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
5351 |
+ cache_file="$ac_optarg" ;; |
5352 |
+ |
5353 |
+ -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
5354 |
+ ac_prev=datadir ;; |
5355 |
+ -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
5356 |
+ | --da=*) |
5357 |
+ datadir="$ac_optarg" ;; |
5358 |
+ |
5359 |
+ -disable-* | --disable-*) |
5360 |
+ ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
5361 |
+ # Reject names that are not valid shell variable names. |
5362 |
+ if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
5363 |
+ { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
5364 |
+ fi |
5365 |
+ ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
5366 |
+ eval "enable_${ac_feature}=no" ;; |
5367 |
+ |
5368 |
+ -enable-* | --enable-*) |
5369 |
+ ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
5370 |
+ # Reject names that are not valid shell variable names. |
5371 |
+ if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
5372 |
+ { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
5373 |
+ fi |
5374 |
+ ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
5375 |
+ case "$ac_option" in |
5376 |
+ *=*) ;; |
5377 |
+ *) ac_optarg=yes ;; |
5378 |
+ esac |
5379 |
+ eval "enable_${ac_feature}='$ac_optarg'" ;; |
5380 |
+ |
5381 |
+ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
5382 |
+ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
5383 |
+ | --exec | --exe | --ex) |
5384 |
+ ac_prev=exec_prefix ;; |
5385 |
+ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
5386 |
+ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
5387 |
+ | --exec=* | --exe=* | --ex=*) |
5388 |
+ exec_prefix="$ac_optarg" ;; |
5389 |
+ |
5390 |
+ -gas | --gas | --ga | --g) |
5391 |
+ # Obsolete; use --with-gas. |
5392 |
+ with_gas=yes ;; |
5393 |
+ |
5394 |
+ -help | --help | --hel | --he) |
5395 |
+ # Omit some internal or obsolete options to make the list less imposing. |
5396 |
+ # This message is too long to be a string in the A/UX 3.1 sh. |
5397 |
+ cat << EOF |
5398 |
+Usage: configure [options] [host] |
5399 |
+Options: [defaults in brackets after descriptions] |
5400 |
+Configuration: |
5401 |
+ --cache-file=FILE cache test results in FILE |
5402 |
+ --help print this message |
5403 |
+ --no-create do not create output files |
5404 |
+ --quiet, --silent do not print \`checking...' messages |
5405 |
+ --version print the version of autoconf that created configure |
5406 |
+Directory and file names: |
5407 |
+ --prefix=PREFIX install architecture-independent files in PREFIX |
5408 |
+ [$ac_default_prefix] |
5409 |
+ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5410 |
+ [same as prefix] |
5411 |
+ --bindir=DIR user executables in DIR [EPREFIX/bin] |
5412 |
+ --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
5413 |
+ --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
5414 |
+ --datadir=DIR read-only architecture-independent data in DIR |
5415 |
+ [PREFIX/share] |
5416 |
+ --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
5417 |
+ --sharedstatedir=DIR modifiable architecture-independent data in DIR |
5418 |
+ [PREFIX/com] |
5419 |
+ --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
5420 |
+ --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
5421 |
+ --includedir=DIR C header files in DIR [PREFIX/include] |
5422 |
+ --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
5423 |
+ --infodir=DIR info documentation in DIR [PREFIX/info] |
5424 |
+ --mandir=DIR man documentation in DIR [PREFIX/man] |
5425 |
+ --srcdir=DIR find the sources in DIR [configure dir or ..] |
5426 |
+ --program-prefix=PREFIX prepend PREFIX to installed program names |
5427 |
+ --program-suffix=SUFFIX append SUFFIX to installed program names |
5428 |
+ --program-transform-name=PROGRAM |
5429 |
+ run sed PROGRAM on installed program names |
5430 |
+EOF |
5431 |
+ cat << EOF |
5432 |
+Host type: |
5433 |
+ --build=BUILD configure for building on BUILD [BUILD=HOST] |
5434 |
+ --host=HOST configure for HOST [guessed] |
5435 |
+ --target=TARGET configure for TARGET [TARGET=HOST] |
5436 |
+Features and packages: |
5437 |
+ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
5438 |
+ --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
5439 |
+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
5440 |
+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
5441 |
+ --x-includes=DIR X include files are in DIR |
5442 |
+ --x-libraries=DIR X library files are in DIR |
5443 |
+EOF |
5444 |
+ if test -n "$ac_help"; then |
5445 |
+ echo "--enable and --with options recognized:$ac_help" |
5446 |
+ fi |
5447 |
+ exit 0 ;; |
5448 |
+ |
5449 |
+ -host | --host | --hos | --ho) |
5450 |
+ ac_prev=host ;; |
5451 |
+ -host=* | --host=* | --hos=* | --ho=*) |
5452 |
+ host="$ac_optarg" ;; |
5453 |
+ |
5454 |
+ -includedir | --includedir | --includedi | --included | --include \ |
5455 |
+ | --includ | --inclu | --incl | --inc) |
5456 |
+ ac_prev=includedir ;; |
5457 |
+ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
5458 |
+ | --includ=* | --inclu=* | --incl=* | --inc=*) |
5459 |
+ includedir="$ac_optarg" ;; |
5460 |
+ |
5461 |
+ -infodir | --infodir | --infodi | --infod | --info | --inf) |
5462 |
+ ac_prev=infodir ;; |
5463 |
+ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
5464 |
+ infodir="$ac_optarg" ;; |
5465 |
+ |
5466 |
+ -libdir | --libdir | --libdi | --libd) |
5467 |
+ ac_prev=libdir ;; |
5468 |
+ -libdir=* | --libdir=* | --libdi=* | --libd=*) |
5469 |
+ libdir="$ac_optarg" ;; |
5470 |
+ |
5471 |
+ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
5472 |
+ | --libexe | --libex | --libe) |
5473 |
+ ac_prev=libexecdir ;; |
5474 |
+ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
5475 |
+ | --libexe=* | --libex=* | --libe=*) |
5476 |
+ libexecdir="$ac_optarg" ;; |
5477 |
+ |
5478 |
+ -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5479 |
+ | --localstate | --localstat | --localsta | --localst \ |
5480 |
+ | --locals | --local | --loca | --loc | --lo) |
5481 |
+ ac_prev=localstatedir ;; |
5482 |
+ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
5483 |
+ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
5484 |
+ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
5485 |
+ localstatedir="$ac_optarg" ;; |
5486 |
+ |
5487 |
+ -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
5488 |
+ ac_prev=mandir ;; |
5489 |
+ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
5490 |
+ mandir="$ac_optarg" ;; |
5491 |
+ |
5492 |
+ -nfp | --nfp | --nf) |
5493 |
+ # Obsolete; use --without-fp. |
5494 |
+ with_fp=no ;; |
5495 |
+ |
5496 |
+ -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
5497 |
+ | --no-cr | --no-c) |
5498 |
+ no_create=yes ;; |
5499 |
+ |
5500 |
+ -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
5501 |
+ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
5502 |
+ no_recursion=yes ;; |
5503 |
+ |
5504 |
+ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
5505 |
+ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
5506 |
+ | --oldin | --oldi | --old | --ol | --o) |
5507 |
+ ac_prev=oldincludedir ;; |
5508 |
+ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
5509 |
+ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
5510 |
+ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
5511 |
+ oldincludedir="$ac_optarg" ;; |
5512 |
+ |
5513 |
+ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
5514 |
+ ac_prev=prefix ;; |
5515 |
+ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
5516 |
+ prefix="$ac_optarg" ;; |
5517 |
+ |
5518 |
+ -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
5519 |
+ | --program-pre | --program-pr | --program-p) |
5520 |
+ ac_prev=program_prefix ;; |
5521 |
+ -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
5522 |
+ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
5523 |
+ program_prefix="$ac_optarg" ;; |
5524 |
+ |
5525 |
+ -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
5526 |
+ | --program-suf | --program-su | --program-s) |
5527 |
+ ac_prev=program_suffix ;; |
5528 |
+ -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
5529 |
+ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
5530 |
+ program_suffix="$ac_optarg" ;; |
5531 |
+ |
5532 |
+ -program-transform-name | --program-transform-name \ |
5533 |
+ | --program-transform-nam | --program-transform-na \ |
5534 |
+ | --program-transform-n | --program-transform- \ |
5535 |
+ | --program-transform | --program-transfor \ |
5536 |
+ | --program-transfo | --program-transf \ |
5537 |
+ | --program-trans | --program-tran \ |
5538 |
+ | --progr-tra | --program-tr | --program-t) |
5539 |
+ ac_prev=program_transform_name ;; |
5540 |
+ -program-transform-name=* | --program-transform-name=* \ |
5541 |
+ | --program-transform-nam=* | --program-transform-na=* \ |
5542 |
+ | --program-transform-n=* | --program-transform-=* \ |
5543 |
+ | --program-transform=* | --program-transfor=* \ |
5544 |
+ | --program-transfo=* | --program-transf=* \ |
5545 |
+ | --program-trans=* | --program-tran=* \ |
5546 |
+ | --progr-tra=* | --program-tr=* | --program-t=*) |
5547 |
+ program_transform_name="$ac_optarg" ;; |
5548 |
+ |
5549 |
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
5550 |
+ | -silent | --silent | --silen | --sile | --sil) |
5551 |
+ silent=yes ;; |
5552 |
+ |
5553 |
+ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
5554 |
+ ac_prev=sbindir ;; |
5555 |
+ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
5556 |
+ | --sbi=* | --sb=*) |
5557 |
+ sbindir="$ac_optarg" ;; |
5558 |
+ |
5559 |
+ -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
5560 |
+ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
5561 |
+ | --sharedst | --shareds | --shared | --share | --shar \ |
5562 |
+ | --sha | --sh) |
5563 |
+ ac_prev=sharedstatedir ;; |
5564 |
+ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
5565 |
+ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
5566 |
+ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
5567 |
+ | --sha=* | --sh=*) |
5568 |
+ sharedstatedir="$ac_optarg" ;; |
5569 |
+ |
5570 |
+ -site | --site | --sit) |
5571 |
+ ac_prev=site ;; |
5572 |
+ -site=* | --site=* | --sit=*) |
5573 |
+ site="$ac_optarg" ;; |
5574 |
+ |
5575 |
+ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
5576 |
+ ac_prev=srcdir ;; |
5577 |
+ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
5578 |
+ srcdir="$ac_optarg" ;; |
5579 |
+ |
5580 |
+ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
5581 |
+ | --syscon | --sysco | --sysc | --sys | --sy) |
5582 |
+ ac_prev=sysconfdir ;; |
5583 |
+ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
5584 |
+ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
5585 |
+ sysconfdir="$ac_optarg" ;; |
5586 |
+ |
5587 |
+ -target | --target | --targe | --targ | --tar | --ta | --t) |
5588 |
+ ac_prev=target ;; |
5589 |
+ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
5590 |
+ target="$ac_optarg" ;; |
5591 |
+ |
5592 |
+ -v | -verbose | --verbose | --verbos | --verbo | --verb) |
5593 |
+ verbose=yes ;; |
5594 |
+ |
5595 |
+ -version | --version | --versio | --versi | --vers) |
5596 |
+ echo "configure generated by autoconf version 2.13" |
5597 |
+ exit 0 ;; |
5598 |
+ |
5599 |
+ -with-* | --with-*) |
5600 |
+ ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
5601 |
+ # Reject names that are not valid shell variable names. |
5602 |
+ if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
5603 |
+ { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
5604 |
+ fi |
5605 |
+ ac_package=`echo $ac_package| sed 's/-/_/g'` |
5606 |
+ case "$ac_option" in |
5607 |
+ *=*) ;; |
5608 |
+ *) ac_optarg=yes ;; |
5609 |
+ esac |
5610 |
+ eval "with_${ac_package}='$ac_optarg'" ;; |
5611 |
+ |
5612 |
+ -without-* | --without-*) |
5613 |
+ ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
5614 |
+ # Reject names that are not valid shell variable names. |
5615 |
+ if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
5616 |
+ { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
5617 |
+ fi |
5618 |
+ ac_package=`echo $ac_package| sed 's/-/_/g'` |
5619 |
+ eval "with_${ac_package}=no" ;; |
5620 |
+ |
5621 |
+ --x) |
5622 |
+ # Obsolete; use --with-x. |
5623 |
+ with_x=yes ;; |
5624 |
+ |
5625 |
+ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
5626 |
+ | --x-incl | --x-inc | --x-in | --x-i) |
5627 |
+ ac_prev=x_includes ;; |
5628 |
+ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
5629 |
+ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
5630 |
+ x_includes="$ac_optarg" ;; |
5631 |
+ |
5632 |
+ -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
5633 |
+ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
5634 |
+ ac_prev=x_libraries ;; |
5635 |
+ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
5636 |
+ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
5637 |
+ x_libraries="$ac_optarg" ;; |
5638 |
+ |
5639 |
+ -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
5640 |
+ ;; |
5641 |
+ |
5642 |
+ *) |
5643 |
+ if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
5644 |
+ echo "configure: warning: $ac_option: invalid host type" 1>&2 |
5645 |
+ fi |
5646 |
+ if test "x$nonopt" != xNONE; then |
5647 |
+ { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
5648 |
+ fi |
5649 |
+ nonopt="$ac_option" |
5650 |
+ ;; |
5651 |
+ |
5652 |
+ esac |
5653 |
+done |
5654 |
+ |
5655 |
+if test -n "$ac_prev"; then |
5656 |
+ { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
5657 |
+fi |
5658 |
+ |
5659 |
+trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
5660 |
+ |
5661 |
+# File descriptor usage: |
5662 |
+# 0 standard input |
5663 |
+# 1 file creation |
5664 |
+# 2 errors and warnings |
5665 |
+# 3 some systems may open it to /dev/tty |
5666 |
+# 4 used on the Kubota Titan |
5667 |
+# 6 checking for... messages and results |
5668 |
+# 5 compiler messages saved in config.log |
5669 |
+if test "$silent" = yes; then |
5670 |
+ exec 6>/dev/null |
5671 |
+else |
5672 |
+ exec 6>&1 |
5673 |
+fi |
5674 |
+exec 5>./config.log |
5675 |
+ |
5676 |
+echo "\ |
5677 |
+This file contains any messages produced by compilers while |
5678 |
+running configure, to aid debugging if configure makes a mistake. |
5679 |
+" 1>&5 |
5680 |
+ |
5681 |
+# Strip out --no-create and --no-recursion so they do not pile up. |
5682 |
+# Also quote any args containing shell metacharacters. |
5683 |
+ac_configure_args= |
5684 |
+for ac_arg |
5685 |
+do |
5686 |
+ case "$ac_arg" in |
5687 |
+ -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
5688 |
+ | --no-cr | --no-c) ;; |
5689 |
+ -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
5690 |
+ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
5691 |
+ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
5692 |
+ ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
5693 |
+ *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
5694 |
+ esac |
5695 |
+done |
5696 |
+ |
5697 |
+# NLS nuisances. |
5698 |
+# Only set these to C if already set. These must not be set unconditionally |
5699 |
+# because not all systems understand e.g. LANG=C (notably SCO). |
5700 |
+# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
5701 |
+# Non-C LC_CTYPE values break the ctype check. |
5702 |
+if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
5703 |
+if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
5704 |
+if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
5705 |
+if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
5706 |
+ |
5707 |
+# confdefs.h avoids OS command line length limits that DEFS can exceed. |
5708 |
+rm -rf conftest* confdefs.h |
5709 |
+# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
5710 |
+echo > confdefs.h |
5711 |
+ |
5712 |
+# A filename unique to this package, relative to the directory that |
5713 |
+# configure is in, which we can look for to find out if srcdir is correct. |
5714 |
+ac_unique_file=xmakemol.c |
5715 |
+ |
5716 |
+# Find the source files, if location was not specified. |
5717 |
+if test -z "$srcdir"; then |
5718 |
+ ac_srcdir_defaulted=yes |
5719 |
+ # Try the directory containing this script, then its parent. |
5720 |
+ ac_prog=$0 |
5721 |
+ ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
5722 |
+ test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
5723 |
+ srcdir=$ac_confdir |
5724 |
+ if test ! -r $srcdir/$ac_unique_file; then |
5725 |
+ srcdir=.. |
5726 |
+ fi |
5727 |
+else |
5728 |
+ ac_srcdir_defaulted=no |
5729 |
+fi |
5730 |
+if test ! -r $srcdir/$ac_unique_file; then |
5731 |
+ if test "$ac_srcdir_defaulted" = yes; then |
5732 |
+ { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
5733 |
+ else |
5734 |
+ { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
5735 |
+ fi |
5736 |
+fi |
5737 |
+srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
5738 |
+ |
5739 |
+# Prefer explicitly selected file to automatically selected ones. |
5740 |
+if test -z "$CONFIG_SITE"; then |
5741 |
+ if test "x$prefix" != xNONE; then |
5742 |
+ CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
5743 |
+ else |
5744 |
+ CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
5745 |
+ fi |
5746 |
+fi |
5747 |
+for ac_site_file in $CONFIG_SITE; do |
5748 |
+ if test -r "$ac_site_file"; then |
5749 |
+ echo "loading site script $ac_site_file" |
5750 |
+ . "$ac_site_file" |
5751 |
+ fi |
5752 |
+done |
5753 |
+ |
5754 |
+if test -r "$cache_file"; then |
5755 |
+ echo "loading cache $cache_file" |
5756 |
+ . $cache_file |
5757 |
+else |
5758 |
+ echo "creating cache $cache_file" |
5759 |
+ > $cache_file |
5760 |
+fi |
5761 |
+ |
5762 |
+ac_ext=c |
5763 |
+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
5764 |
+ac_cpp='$CPP $CPPFLAGS' |
5765 |
+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
5766 |
+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
5767 |
+cross_compiling=$ac_cv_prog_cc_cross |
5768 |
+ |
5769 |
+ac_exeext= |
5770 |
+ac_objext=o |
5771 |
+if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
5772 |
+ # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
5773 |
+ if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
5774 |
+ ac_n= ac_c=' |
5775 |
+' ac_t=' ' |
5776 |
+ else |
5777 |
+ ac_n=-n ac_c= ac_t= |
5778 |
+ fi |
5779 |
+else |
5780 |
+ ac_n= ac_c='\c' ac_t= |
5781 |
+fi |
5782 |
+ |
5783 |
+ |
5784 |
+ |
5785 |
+ac_aux_dir= |
5786 |
+for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
5787 |
+ if test -f $ac_dir/install-sh; then |
5788 |
+ ac_aux_dir=$ac_dir |
5789 |
+ ac_install_sh="$ac_aux_dir/install-sh -c" |
5790 |
+ break |
5791 |
+ elif test -f $ac_dir/install.sh; then |
5792 |
+ ac_aux_dir=$ac_dir |
5793 |
+ ac_install_sh="$ac_aux_dir/install.sh -c" |
5794 |
+ break |
5795 |
+ fi |
5796 |
+done |
5797 |
+if test -z "$ac_aux_dir"; then |
5798 |
+ { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
5799 |
+fi |
5800 |
+ac_config_guess=$ac_aux_dir/config.guess |
5801 |
+ac_config_sub=$ac_aux_dir/config.sub |
5802 |
+ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
5803 |
+ |
5804 |
+ |
5805 |
+# Do some error checking and defaulting for the host and target type. |
5806 |
+# The inputs are: |
5807 |
+# configure --host=HOST --target=TARGET --build=BUILD NONOPT |
5808 |
+# |
5809 |
+# The rules are: |
5810 |
+# 1. You are not allowed to specify --host, --target, and nonopt at the |
5811 |
+# same time. |
5812 |
+# 2. Host defaults to nonopt. |
5813 |
+# 3. If nonopt is not specified, then host defaults to the current host, |
5814 |
+# as determined by config.guess. |
5815 |
+# 4. Target and build default to nonopt. |
5816 |
+# 5. If nonopt is not specified, then target and build default to host. |
5817 |
+ |
5818 |
+# The aliases save the names the user supplied, while $host etc. |
5819 |
+# will get canonicalized. |
5820 |
+case $host---$target---$nonopt in |
5821 |
+NONE---*---* | *---NONE---* | *---*---NONE) ;; |
5822 |
+*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; |
5823 |
+esac |
5824 |
+ |
5825 |
+ |
5826 |
+# Make sure we can run config.sub. |
5827 |
+if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
5828 |
+else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
5829 |
+fi |
5830 |
+ |
5831 |
+echo $ac_n "checking host system type""... $ac_c" 1>&6 |
5832 |
+echo "configure:595: checking host system type" >&5 |
5833 |
+ |
5834 |
+host_alias=$host |
5835 |
+case "$host_alias" in |
5836 |
+NONE) |
5837 |
+ case $nonopt in |
5838 |
+ NONE) |
5839 |
+ if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
5840 |
+ else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
5841 |
+ fi ;; |
5842 |
+ *) host_alias=$nonopt ;; |
5843 |
+ esac ;; |
5844 |
+esac |
5845 |
+ |
5846 |
+host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
5847 |
+host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
5848 |
+host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
5849 |
+host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
5850 |
+echo "$ac_t""$host" 1>&6 |
5851 |
+ |
5852 |
+echo $ac_n "checking target system type""... $ac_c" 1>&6 |
5853 |
+echo "configure:616: checking target system type" >&5 |
5854 |
+ |
5855 |
+target_alias=$target |
5856 |
+case "$target_alias" in |
5857 |
+NONE) |
5858 |
+ case $nonopt in |
5859 |
+ NONE) target_alias=$host_alias ;; |
5860 |
+ *) target_alias=$nonopt ;; |
5861 |
+ esac ;; |
5862 |
+esac |
5863 |
+ |
5864 |
+target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
5865 |
+target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
5866 |
+target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
5867 |
+target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
5868 |
+echo "$ac_t""$target" 1>&6 |
5869 |
+ |
5870 |
+echo $ac_n "checking build system type""... $ac_c" 1>&6 |
5871 |
+echo "configure:634: checking build system type" >&5 |
5872 |
+ |
5873 |
+build_alias=$build |
5874 |
+case "$build_alias" in |
5875 |
+NONE) |
5876 |
+ case $nonopt in |
5877 |
+ NONE) build_alias=$host_alias ;; |
5878 |
+ *) build_alias=$nonopt ;; |
5879 |
+ esac ;; |
5880 |
+esac |
5881 |
+ |
5882 |
+build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
5883 |
+build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
5884 |
+build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
5885 |
+build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
5886 |
+echo "$ac_t""$build" 1>&6 |
5887 |
+ |
5888 |
+test "$host_alias" != "$target_alias" && |
5889 |
+ test "$program_prefix$program_suffix$program_transform_name" = \ |
5890 |
+ NONENONEs,x,x, && |
5891 |
+ program_prefix=${target_alias}- |
5892 |
+ |
5893 |
+ |
5894 |
+# Find a good install program. We prefer a C program (faster), |
5895 |
+# so one script is as good as another. But avoid the broken or |
5896 |
+# incompatible versions: |
5897 |
+# SysV /etc/install, /usr/sbin/install |
5898 |
+# SunOS /usr/etc/install |
5899 |
+# IRIX /sbin/install |
5900 |
+# AIX /bin/install |
5901 |
+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
5902 |
+# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
5903 |
+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
5904 |
+# ./install, which can be erroneously created by make from ./install.sh. |
5905 |
+echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
5906 |
+echo "configure:669: checking for a BSD compatible install" >&5 |
5907 |
+if test -z "$INSTALL"; then |
5908 |
+if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
5909 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
5910 |
+else |
5911 |
+ IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
5912 |
+ for ac_dir in $PATH; do |
5913 |
+ # Account for people who put trailing slashes in PATH elements. |
5914 |
+ case "$ac_dir/" in |
5915 |
+ /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
5916 |
+ *) |
5917 |
+ # OSF1 and SCO ODT 3.0 have their own names for install. |
5918 |
+ # Don't use installbsd from OSF since it installs stuff as root |
5919 |
+ # by default. |
5920 |
+ for ac_prog in ginstall scoinst install; do |
5921 |
+ if test -f $ac_dir/$ac_prog; then |
5922 |
+ if test $ac_prog = install && |
5923 |
+ grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
5924 |
+ # AIX install. It has an incompatible calling convention. |
5925 |
+ : |
5926 |
+ else |
5927 |
+ ac_cv_path_install="$ac_dir/$ac_prog -c" |
5928 |
+ break 2 |
5929 |
+ fi |
5930 |
+ fi |
5931 |
+ done |
5932 |
+ ;; |
5933 |
+ esac |
5934 |
+ done |
5935 |
+ IFS="$ac_save_IFS" |
5936 |
+ |
5937 |
+fi |
5938 |
+ if test "${ac_cv_path_install+set}" = set; then |
5939 |
+ INSTALL="$ac_cv_path_install" |
5940 |
+ else |
5941 |
+ # As a last resort, use the slow shell script. We don't cache a |
5942 |
+ # path for INSTALL within a source directory, because that will |
5943 |
+ # break other packages using the cache if that directory is |
5944 |
+ # removed, or if the path is relative. |
5945 |
+ INSTALL="$ac_install_sh" |
5946 |
+ fi |
5947 |
+fi |
5948 |
+echo "$ac_t""$INSTALL" 1>&6 |
5949 |
+ |
5950 |
+# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
5951 |
+# It thinks the first close brace ends the variable substitution. |
5952 |
+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
5953 |
+ |
5954 |
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
5955 |
+ |
5956 |
+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
5957 |
+ |
5958 |
+echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
5959 |
+echo "configure:722: checking whether build environment is sane" >&5 |
5960 |
+# Just in case |
5961 |
+sleep 1 |
5962 |
+echo timestamp > conftestfile |
5963 |
+# Do `set' in a subshell so we don't clobber the current shell's |
5964 |
+# arguments. Must try -L first in case configure is actually a |
5965 |
+# symlink; some systems play weird games with the mod time of symlinks |
5966 |
+# (eg FreeBSD returns the mod time of the symlink's containing |
5967 |
+# directory). |
5968 |
+if ( |
5969 |
+ set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
5970 |
+ if test "$*" = "X"; then |
5971 |
+ # -L didn't work. |
5972 |
+ set X `ls -t $srcdir/configure conftestfile` |
5973 |
+ fi |
5974 |
+ if test "$*" != "X $srcdir/configure conftestfile" \ |
5975 |
+ && test "$*" != "X conftestfile $srcdir/configure"; then |
5976 |
+ |
5977 |
+ # If neither matched, then we have a broken ls. This can happen |
5978 |
+ # if, for instance, CONFIG_SHELL is bash and it inherits a |
5979 |
+ # broken ls alias from the environment. This has actually |
5980 |
+ # happened. Such a system could not be considered "sane". |
5981 |
+ { echo "configure: error: ls -t appears to fail. Make sure there is not a broken |
5982 |
+alias in your environment" 1>&2; exit 1; } |
5983 |
+ fi |
5984 |
+ |
5985 |
+ test "$2" = conftestfile |
5986 |
+ ) |
5987 |
+then |
5988 |
+ # Ok. |
5989 |
+ : |
5990 |
+else |
5991 |
+ { echo "configure: error: newly created file is older than distributed files! |
5992 |
+Check your system clock" 1>&2; exit 1; } |
5993 |
+fi |
5994 |
+rm -f conftest* |
5995 |
+echo "$ac_t""yes" 1>&6 |
5996 |
+if test "$program_transform_name" = s,x,x,; then |
5997 |
+ program_transform_name= |
5998 |
+else |
5999 |
+ # Double any \ or $. echo might interpret backslashes. |
6000 |
+ cat <<\EOF_SED > conftestsed |
6001 |
+s,\\,\\\\,g; s,\$,$$,g |
6002 |
+EOF_SED |
6003 |
+ program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
6004 |
+ rm -f conftestsed |
6005 |
+fi |
6006 |
+test "$program_prefix" != NONE && |
6007 |
+ program_transform_name="s,^,${program_prefix},; $program_transform_name" |
6008 |
+# Use a double $ so make ignores it. |
6009 |
+test "$program_suffix" != NONE && |
6010 |
+ program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
6011 |
+ |
6012 |
+# sed with no file args requires a program. |
6013 |
+test "$program_transform_name" = "" && program_transform_name="s,x,x," |
6014 |
+ |
6015 |
+echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
6016 |
+echo "configure:779: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
6017 |
+set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
6018 |
+if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
6019 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
6020 |
+else |
6021 |
+ cat > conftestmake <<\EOF |
6022 |
+all: |
6023 |
+ @echo 'ac_maketemp="${MAKE}"' |
6024 |
+EOF |
6025 |
+# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
6026 |
+eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
6027 |
+if test -n "$ac_maketemp"; then |
6028 |
+ eval ac_cv_prog_make_${ac_make}_set=yes |
6029 |
+else |
6030 |
+ eval ac_cv_prog_make_${ac_make}_set=no |
6031 |
+fi |
6032 |
+rm -f conftestmake |
6033 |
+fi |
6034 |
+if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
6035 |
+ echo "$ac_t""yes" 1>&6 |
6036 |
+ SET_MAKE= |
6037 |
+else |
6038 |
+ echo "$ac_t""no" 1>&6 |
6039 |
+ SET_MAKE="MAKE=${MAKE-make}" |
6040 |
+fi |
6041 |
+ |
6042 |
+ |
6043 |
+PACKAGE=xmakemol |
6044 |
+ |
6045 |
+VERSION=4.40.2b |
6046 |
+ |
6047 |
+if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
6048 |
+ { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
6049 |
+fi |
6050 |
+cat >> confdefs.h <<EOF |
6051 |
+#define PACKAGE "$PACKAGE" |
6052 |
+EOF |
6053 |
+ |
6054 |
+cat >> confdefs.h <<EOF |
6055 |
+#define VERSION "$VERSION" |
6056 |
+EOF |
6057 |
+ |
6058 |
+ |
6059 |
+ |
6060 |
+missing_dir=`cd $ac_aux_dir && pwd` |
6061 |
+echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
6062 |
+echo "configure:825: checking for working aclocal" >&5 |
6063 |
+# Run test in a subshell; some versions of sh will print an error if |
6064 |
+# an executable is not found, even if stderr is redirected. |
6065 |
+# Redirect stdin to placate older versions of autoconf. Sigh. |
6066 |
+if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
6067 |
+ ACLOCAL=aclocal |
6068 |
+ echo "$ac_t""found" 1>&6 |
6069 |
+else |
6070 |
+ ACLOCAL="$missing_dir/missing aclocal" |
6071 |
+ echo "$ac_t""missing" 1>&6 |
6072 |
+fi |
6073 |
+ |
6074 |
+echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
6075 |
+echo "configure:838: checking for working autoconf" >&5 |
6076 |
+# Run test in a subshell; some versions of sh will print an error if |
6077 |
+# an executable is not found, even if stderr is redirected. |
6078 |
+# Redirect stdin to placate older versions of autoconf. Sigh. |
6079 |
+if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
6080 |
+ AUTOCONF=autoconf |
6081 |
+ echo "$ac_t""found" 1>&6 |
6082 |
+else |
6083 |
+ AUTOCONF="$missing_dir/missing autoconf" |
6084 |
+ echo "$ac_t""missing" 1>&6 |
6085 |
+fi |
6086 |
+ |
6087 |
+echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
6088 |
+echo "configure:851: checking for working automake" >&5 |
6089 |
+# Run test in a subshell; some versions of sh will print an error if |
6090 |
+# an executable is not found, even if stderr is redirected. |
6091 |
+# Redirect stdin to placate older versions of autoconf. Sigh. |
6092 |
+if (automake --version) < /dev/null > /dev/null 2>&1; then |
6093 |
+ AUTOMAKE=automake |
6094 |
+ echo "$ac_t""found" 1>&6 |
6095 |
+else |
6096 |
+ AUTOMAKE="$missing_dir/missing automake" |
6097 |
+ echo "$ac_t""missing" 1>&6 |
6098 |
+fi |
6099 |
+ |
6100 |
+echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
6101 |
+echo "configure:864: checking for working autoheader" >&5 |
6102 |
+# Run test in a subshell; some versions of sh will print an error if |
6103 |
+# an executable is not found, even if stderr is redirected. |
6104 |
+# Redirect stdin to placate older versions of autoconf. Sigh. |
6105 |
+if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
6106 |
+ AUTOHEADER=autoheader |
6107 |
+ echo "$ac_t""found" 1>&6 |
6108 |
+else |
6109 |
+ AUTOHEADER="$missing_dir/missing autoheader" |
6110 |
+ echo "$ac_t""missing" 1>&6 |
6111 |
+fi |
6112 |
+ |
6113 |
+echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
6114 |
+echo "configure:877: checking for working makeinfo" >&5 |
6115 |
+# Run test in a subshell; some versions of sh will print an error if |
6116 |
+# an executable is not found, even if stderr is redirected. |
6117 |
+# Redirect stdin to placate older versions of autoconf. Sigh. |
6118 |
+if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
6119 |
+ MAKEINFO=makeinfo |
6120 |
+ echo "$ac_t""found" 1>&6 |
6121 |
+else |
6122 |
+ MAKEINFO="$missing_dir/missing makeinfo" |
6123 |
+ echo "$ac_t""missing" 1>&6 |
6124 |
+fi |
6125 |
+ |
6126 |
+ |
6127 |
+ |
6128 |
+ |
6129 |
+ |
6130 |
+ |
6131 |
+ |
6132 |
+# Extract the first word of "gcc", so it can be a program name with args. |
6133 |
+set dummy gcc; ac_word=$2 |
6134 |
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
6135 |
+echo "configure:898: checking for $ac_word" >&5 |
6136 |
+if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
6137 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
6138 |
+else |
6139 |
+ if test -n "$CC"; then |
6140 |
+ ac_cv_prog_CC="$CC" # Let the user override the test. |
6141 |
+else |
6142 |
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6143 |
+ ac_dummy="$PATH" |
6144 |
+ for ac_dir in $ac_dummy; do |
6145 |
+ test -z "$ac_dir" && ac_dir=. |
6146 |
+ if test -f $ac_dir/$ac_word; then |
6147 |
+ ac_cv_prog_CC="gcc" |
6148 |
+ break |
6149 |
+ fi |
6150 |
+ done |
6151 |
+ IFS="$ac_save_ifs" |
6152 |
+fi |
6153 |
+fi |
6154 |
+CC="$ac_cv_prog_CC" |
6155 |
+if test -n "$CC"; then |
6156 |
+ echo "$ac_t""$CC" 1>&6 |
6157 |
+else |
6158 |
+ echo "$ac_t""no" 1>&6 |
6159 |
+fi |
6160 |
+ |
6161 |
+if test -z "$CC"; then |
6162 |
+ # Extract the first word of "cc", so it can be a program name with args. |
6163 |
+set dummy cc; ac_word=$2 |
6164 |
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
6165 |
+echo "configure:928: checking for $ac_word" >&5 |
6166 |
+if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
6167 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
6168 |
+else |
6169 |
+ if test -n "$CC"; then |
6170 |
+ ac_cv_prog_CC="$CC" # Let the user override the test. |
6171 |
+else |
6172 |
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6173 |
+ ac_prog_rejected=no |
6174 |
+ ac_dummy="$PATH" |
6175 |
+ for ac_dir in $ac_dummy; do |
6176 |
+ test -z "$ac_dir" && ac_dir=. |
6177 |
+ if test -f $ac_dir/$ac_word; then |
6178 |
+ if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
6179 |
+ ac_prog_rejected=yes |
6180 |
+ continue |
6181 |
+ fi |
6182 |
+ ac_cv_prog_CC="cc" |
6183 |
+ break |
6184 |
+ fi |
6185 |
+ done |
6186 |
+ IFS="$ac_save_ifs" |
6187 |
+if test $ac_prog_rejected = yes; then |
6188 |
+ # We found a bogon in the path, so make sure we never use it. |
6189 |
+ set dummy $ac_cv_prog_CC |
6190 |
+ shift |
6191 |
+ if test $# -gt 0; then |
6192 |
+ # We chose a |
6193 |
+ # However, it has the same basename, so the bogon will be chosen |
6194 |
+ # first if we set CC to just the basename; use the full file name. |
6195 |
+ shift |
6196 |
+ set dummy "$ac_dir/$ac_word" "$@" |
6197 |
+ shift |
6198 |
+ ac_cv_prog_CC="$@" |
6199 |
+ fi |
6200 |
+fi |
6201 |
+fi |
6202 |
+fi |
6203 |
+CC="$ac_cv_prog_CC" |
6204 |
+if test -n "$CC"; then |
6205 |
+ echo "$ac_t""$CC" 1>&6 |
6206 |
+else |
6207 |
+ echo "$ac_t""no" 1>&6 |
6208 |
+fi |
6209 |
+ |
6210 |
+ if test -z "$CC"; then |
6211 |
+ case "`uname -s`" in |
6212 |
+ *win32* | *WIN32*) |
6213 |
+ # Extract the first word of "cl", so it can be a program name with args. |
6214 |
+set dummy cl; ac_word=$2 |
6215 |
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
6216 |
+echo "configure:979: checking for $ac_word" >&5 |
6217 |
+if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
6218 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
6219 |
+else |
6220 |
+ if test -n "$CC"; then |
6221 |
+ ac_cv_prog_CC="$CC" # Let the user override the test. |
6222 |
+else |
6223 |
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6224 |
+ ac_dummy="$PATH" |
6225 |
+ for ac_dir in $ac_dummy; do |
6226 |
+ test -z "$ac_dir" && ac_dir=. |
6227 |
+ if test -f $ac_dir/$ac_word; then |
6228 |
+ ac_cv_prog_CC="cl" |
6229 |
+ break |
6230 |
+ fi |
6231 |
+ done |
6232 |
+ IFS="$ac_save_ifs" |
6233 |
+fi |
6234 |
+fi |
6235 |
+CC="$ac_cv_prog_CC" |
6236 |
+if test -n "$CC"; then |
6237 |
+ echo "$ac_t""$CC" 1>&6 |
6238 |
+else |
6239 |
+ echo "$ac_t""no" 1>&6 |
6240 |
+fi |
6241 |
+ ;; |
6242 |
+ esac |
6243 |
+ fi |
6244 |
+ test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
6245 |
+fi |
6246 |
+ |
6247 |
+echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
6248 |
+echo "configure:1011: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
6249 |
+ |
6250 |
+ac_ext=c |
6251 |
+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6252 |
+ac_cpp='$CPP $CPPFLAGS' |
6253 |
+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
6254 |
+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
6255 |
+cross_compiling=$ac_cv_prog_cc_cross |
6256 |
+ |
6257 |
+cat > conftest.$ac_ext << EOF |
6258 |
+ |
6259 |
+#line 1022 "configure" |
6260 |
+#include "confdefs.h" |
6261 |
+ |
6262 |
+main(){return(0);} |
6263 |
+EOF |
6264 |
+if { (eval echo configure:1027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6265 |
+ ac_cv_prog_cc_works=yes |
6266 |
+ # If we can't run a trivial program, we are probably using a cross compiler. |
6267 |
+ if (./conftest; exit) 2>/dev/null; then |
6268 |
+ ac_cv_prog_cc_cross=no |
6269 |
+ else |
6270 |
+ ac_cv_prog_cc_cross=yes |
6271 |
+ fi |
6272 |
+else |
6273 |
+ echo "configure: failed program was:" >&5 |
6274 |
+ cat conftest.$ac_ext >&5 |
6275 |
+ ac_cv_prog_cc_works=no |
6276 |
+fi |
6277 |
+rm -fr conftest* |
6278 |
+ac_ext=c |
6279 |
+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6280 |
+ac_cpp='$CPP $CPPFLAGS' |
6281 |
+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
6282 |
+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
6283 |
+cross_compiling=$ac_cv_prog_cc_cross |
6284 |
+ |
6285 |
+echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
6286 |
+if test $ac_cv_prog_cc_works = no; then |
6287 |
+ { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
6288 |
+fi |
6289 |
+echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
6290 |
+echo "configure:1053: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
6291 |
+echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
6292 |
+cross_compiling=$ac_cv_prog_cc_cross |
6293 |
+ |
6294 |
+echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
6295 |
+echo "configure:1058: checking whether we are using GNU C" >&5 |
6296 |
+if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
6297 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
6298 |
+else |
6299 |
+ cat > conftest.c <<EOF |
6300 |
+#ifdef __GNUC__ |
6301 |
+ yes; |
6302 |
+#endif |
6303 |
+EOF |
6304 |
+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
6305 |
+ ac_cv_prog_gcc=yes |
6306 |
+else |
6307 |
+ ac_cv_prog_gcc=no |
6308 |
+fi |
6309 |
+fi |
6310 |
+ |
6311 |
+echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
6312 |
+ |
6313 |
+if test $ac_cv_prog_gcc = yes; then |
6314 |
+ GCC=yes |
6315 |
+else |
6316 |
+ GCC= |
6317 |
+fi |
6318 |
+ |
6319 |
+ac_test_CFLAGS="${CFLAGS+set}" |
6320 |
+ac_save_CFLAGS="$CFLAGS" |
6321 |
+CFLAGS= |
6322 |
+echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
6323 |
+echo "configure:1086: checking whether ${CC-cc} accepts -g" >&5 |
6324 |
+if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
6325 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
6326 |
+else |
6327 |
+ echo 'void f(){}' > conftest.c |
6328 |
+if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
6329 |
+ ac_cv_prog_cc_g=yes |
6330 |
+else |
6331 |
+ ac_cv_prog_cc_g=no |
6332 |
+fi |
6333 |
+rm -f conftest* |
6334 |
+ |
6335 |
+fi |
6336 |
+ |
6337 |
+echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
6338 |
+if test "$ac_test_CFLAGS" = set; then |
6339 |
+ CFLAGS="$ac_save_CFLAGS" |
6340 |
+elif test $ac_cv_prog_cc_g = yes; then |
6341 |
+ if test "$GCC" = yes; then |
6342 |
+ CFLAGS="-g -O2" |
6343 |
+ else |
6344 |
+ CFLAGS="-g" |
6345 |
+ fi |
6346 |
+else |
6347 |
+ if test "$GCC" = yes; then |
6348 |
+ CFLAGS="-O2" |
6349 |
+ else |
6350 |
+ CFLAGS= |
6351 |
+ fi |
6352 |
+fi |
6353 |
+ |
6354 |
+# Find a good install program. We prefer a C program (faster), |
6355 |
+# so one script is as good as another. But avoid the broken or |
6356 |
+# incompatible versions: |
6357 |
+# SysV /etc/install, /usr/sbin/install |
6358 |
+# SunOS /usr/etc/install |
6359 |
+# IRIX /sbin/install |
6360 |
+# AIX /bin/install |
6361 |
+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
6362 |
+# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
6363 |
+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
6364 |
+# ./install, which can be erroneously created by make from ./install.sh. |
6365 |
+echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
6366 |
+echo "configure:1129: checking for a BSD compatible install" >&5 |
6367 |
+if test -z "$INSTALL"; then |
6368 |
+if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
6369 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
6370 |
+else |
6371 |
+ IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
6372 |
+ for ac_dir in $PATH; do |
6373 |
+ # Account for people who put trailing slashes in PATH elements. |
6374 |
+ case "$ac_dir/" in |
6375 |
+ /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
6376 |
+ *) |
6377 |
+ # OSF1 and SCO ODT 3.0 have their own names for install. |
6378 |
+ # Don't use installbsd from OSF since it installs stuff as root |
6379 |
+ # by default. |
6380 |
+ for ac_prog in ginstall scoinst install; do |
6381 |
+ if test -f $ac_dir/$ac_prog; then |
6382 |
+ if test $ac_prog = install && |
6383 |
+ grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
6384 |
+ # AIX install. It has an incompatible calling convention. |
6385 |
+ : |
6386 |
+ else |
6387 |
+ ac_cv_path_install="$ac_dir/$ac_prog -c" |
6388 |
+ break 2 |
6389 |
+ fi |
6390 |
+ fi |
6391 |
+ done |
6392 |
+ ;; |
6393 |
+ esac |
6394 |
+ done |
6395 |
+ IFS="$ac_save_IFS" |
6396 |
+ |
6397 |
+fi |
6398 |
+ if test "${ac_cv_path_install+set}" = set; then |
6399 |
+ INSTALL="$ac_cv_path_install" |
6400 |
+ else |
6401 |
+ # As a last resort, use the slow shell script. We don't cache a |
6402 |
+ # path for INSTALL within a source directory, because that will |
6403 |
+ # break other packages using the cache if that directory is |
6404 |
+ # removed, or if the path is relative. |
6405 |
+ INSTALL="$ac_install_sh" |
6406 |
+ fi |
6407 |
+fi |
6408 |
+echo "$ac_t""$INSTALL" 1>&6 |
6409 |
+ |
6410 |
+# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
6411 |
+# It thinks the first close brace ends the variable substitution. |
6412 |
+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
6413 |
+ |
6414 |
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
6415 |
+ |
6416 |
+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
6417 |
+ |
6418 |
+ |
6419 |
+ |
6420 |
+echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
6421 |
+echo "configure:1184: checking how to run the C preprocessor" >&5 |
6422 |
+# On Suns, sometimes $CPP names a directory. |
6423 |
+if test -n "$CPP" && test -d "$CPP"; then |
6424 |
+ CPP= |
6425 |
+fi |
6426 |
+if test -z "$CPP"; then |
6427 |
+if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
6428 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
6429 |
+else |
6430 |
+ # This must be in double quotes, not single quotes, because CPP may get |
6431 |
+ # substituted into the Makefile and "${CC-cc}" will confuse make. |
6432 |
+ CPP="${CC-cc} -E" |
6433 |
+ # On the NeXT, cc -E runs the code through the compiler's parser, |
6434 |
+ # not just through cpp. |
6435 |
+ cat > conftest.$ac_ext <<EOF |
6436 |
+#line 1199 "configure" |
6437 |
+#include "confdefs.h" |
6438 |
+#include <assert.h> |
6439 |
+Syntax Error |
6440 |
+EOF |
6441 |
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6442 |
+{ (eval echo configure:1205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6443 |
+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6444 |
+if test -z "$ac_err"; then |
6445 |
+ : |
6446 |
+else |
6447 |
+ echo "$ac_err" >&5 |
6448 |
+ echo "configure: failed program was:" >&5 |
6449 |
+ cat conftest.$ac_ext >&5 |
6450 |
+ rm -rf conftest* |
6451 |
+ CPP="${CC-cc} -E -traditional-cpp" |
6452 |
+ cat > conftest.$ac_ext <<EOF |
6453 |
+#line 1216 "configure" |
6454 |
+#include "confdefs.h" |
6455 |
+#include <assert.h> |
6456 |
+Syntax Error |
6457 |
+EOF |
6458 |
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6459 |
+{ (eval echo configure:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6460 |
+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6461 |
+if test -z "$ac_err"; then |
6462 |
+ : |
6463 |
+else |
6464 |
+ echo "$ac_err" >&5 |
6465 |
+ echo "configure: failed program was:" >&5 |
6466 |
+ cat conftest.$ac_ext >&5 |
6467 |
+ rm -rf conftest* |
6468 |
+ CPP="${CC-cc} -nologo -E" |
6469 |
+ cat > conftest.$ac_ext <<EOF |
6470 |
+#line 1233 "configure" |
6471 |
+#include "confdefs.h" |
6472 |
+#include <assert.h> |
6473 |
+Syntax Error |
6474 |
+EOF |
6475 |
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6476 |
+{ (eval echo configure:1239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6477 |
+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6478 |
+if test -z "$ac_err"; then |
6479 |
+ : |
6480 |
+else |
6481 |
+ echo "$ac_err" >&5 |
6482 |
+ echo "configure: failed program was:" >&5 |
6483 |
+ cat conftest.$ac_ext >&5 |
6484 |
+ rm -rf conftest* |
6485 |
+ CPP=/lib/cpp |
6486 |
+fi |
6487 |
+rm -f conftest* |
6488 |
+fi |
6489 |
+rm -f conftest* |
6490 |
+fi |
6491 |
+rm -f conftest* |
6492 |
+ ac_cv_prog_CPP="$CPP" |
6493 |
+fi |
6494 |
+ CPP="$ac_cv_prog_CPP" |
6495 |
+else |
6496 |
+ ac_cv_prog_CPP="$CPP" |
6497 |
+fi |
6498 |
+echo "$ac_t""$CPP" 1>&6 |
6499 |
+ |
6500 |
+# If we find X, set shell vars x_includes and x_libraries to the |
6501 |
+# paths, otherwise set no_x=yes. |
6502 |
+# Uses ac_ vars as temps to allow command line to override cache and checks. |
6503 |
+# --without-x overrides everything else, but does not touch the cache. |
6504 |
+echo $ac_n "checking for X""... $ac_c" 1>&6 |
6505 |
+echo "configure:1268: checking for X" >&5 |
6506 |
+ |
6507 |
+# Check whether --with-x or --without-x was given. |
6508 |
+if test "${with_x+set}" = set; then |
6509 |
+ withval="$with_x" |
6510 |
+ : |
6511 |
+fi |
6512 |
+ |
6513 |
+# $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
6514 |
+if test "x$with_x" = xno; then |
6515 |
+ # The user explicitly disabled X. |
6516 |
+ have_x=disabled |
6517 |
+else |
6518 |
+ if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
6519 |
+ # Both variables are already set. |
6520 |
+ have_x=yes |
6521 |
+ else |
6522 |
+if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
6523 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
6524 |
+else |
6525 |
+ # One or both of the vars are not set, and there is no cached value. |
6526 |
+ac_x_includes=NO ac_x_libraries=NO |
6527 |
+rm -fr conftestdir |
6528 |
+if mkdir conftestdir; then |
6529 |
+ cd conftestdir |
6530 |
+ # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
6531 |
+ cat > Imakefile <<'EOF' |
6532 |
+acfindx: |
6533 |
+ @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
6534 |
+EOF |
6535 |
+ if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
6536 |
+ # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
6537 |
+ eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
6538 |
+ # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
6539 |
+ for ac_extension in a so sl; do |
6540 |
+ if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
6541 |
+ test -f $ac_im_libdir/libX11.$ac_extension; then |
6542 |
+ ac_im_usrlibdir=$ac_im_libdir; break |
6543 |
+ fi |
6544 |
+ done |
6545 |
+ # Screen out bogus values from the imake configuration. They are |
6546 |
+ # bogus both because they are the default anyway, and because |
6547 |
+ # using them would break gcc on systems where it needs fixed includes. |
6548 |
+ case "$ac_im_incroot" in |
6549 |
+ /usr/include) ;; |
6550 |
+ *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
6551 |
+ esac |
6552 |
+ case "$ac_im_usrlibdir" in |
6553 |
+ /usr/lib | /lib) ;; |
6554 |
+ *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
6555 |
+ esac |
6556 |
+ fi |
6557 |
+ cd .. |
6558 |
+ rm -fr conftestdir |
6559 |
+fi |
6560 |
+ |
6561 |
+if test "$ac_x_includes" = NO; then |
6562 |
+ # Guess where to find include files, by looking for this one X11 .h file. |
6563 |
+ test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h |
6564 |
+ |
6565 |
+ # First, try using that file with no special directory specified. |
6566 |
+cat > conftest.$ac_ext <<EOF |
6567 |
+#line 1330 "configure" |
6568 |
+#include "confdefs.h" |
6569 |
+#include <$x_direct_test_include> |
6570 |
+EOF |
6571 |
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6572 |
+{ (eval echo configure:1335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6573 |
+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6574 |
+if test -z "$ac_err"; then |
6575 |
+ rm -rf conftest* |
6576 |
+ # We can compile using X headers with no special include directory. |
6577 |
+ac_x_includes= |
6578 |
+else |
6579 |
+ echo "$ac_err" >&5 |
6580 |
+ echo "configure: failed program was:" >&5 |
6581 |
+ cat conftest.$ac_ext >&5 |
6582 |
+ rm -rf conftest* |
6583 |
+ # Look for the header file in a standard set of common directories. |
6584 |
+# Check X11 before X11Rn because it is often a symlink to the current release. |
6585 |
+ for ac_dir in \ |
6586 |
+ /usr/X11/include \ |
6587 |
+ /usr/X11R6/include \ |
6588 |
+ /usr/X11R5/include \ |
6589 |
+ /usr/X11R4/include \ |
6590 |
+ \ |
6591 |
+ /usr/include/X11 \ |
6592 |
+ /usr/include/X11R6 \ |
6593 |
+ /usr/include/X11R5 \ |
6594 |
+ /usr/include/X11R4 \ |
6595 |
+ \ |
6596 |
+ /usr/local/X11/include \ |
6597 |
+ /usr/local/X11R6/include \ |
6598 |
+ /usr/local/X11R5/include \ |
6599 |
+ /usr/local/X11R4/include \ |
6600 |
+ \ |
6601 |
+ /usr/local/include/X11 \ |
6602 |
+ /usr/local/include/X11R6 \ |
6603 |
+ /usr/local/include/X11R5 \ |
6604 |
+ /usr/local/include/X11R4 \ |
6605 |
+ \ |
6606 |
+ /usr/X386/include \ |
6607 |
+ /usr/x386/include \ |
6608 |
+ /usr/XFree86/include/X11 \ |
6609 |
+ \ |
6610 |
+ /usr/include \ |
6611 |
+ /usr/local/include \ |
6612 |
+ /usr/unsupported/include \ |
6613 |
+ /usr/athena/include \ |
6614 |
+ /usr/local/x11r5/include \ |
6615 |
+ /usr/lpp/Xamples/include \ |
6616 |
+ \ |
6617 |
+ /usr/openwin/include \ |
6618 |
+ /usr/openwin/share/include \ |
6619 |
+ ; \ |
6620 |
+ do |
6621 |
+ if test -r "$ac_dir/$x_direct_test_include"; then |
6622 |
+ ac_x_includes=$ac_dir |
6623 |
+ break |
6624 |
+ fi |
6625 |
+ done |
6626 |
+fi |
6627 |
+rm -f conftest* |
6628 |
+fi # $ac_x_includes = NO |
6629 |
+ |
6630 |
+if test "$ac_x_libraries" = NO; then |
6631 |
+ # Check for the libraries. |
6632 |
+ |
6633 |
+ test -z "$x_direct_test_library" && x_direct_test_library=Xt |
6634 |
+ test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc |
6635 |
+ |
6636 |
+ # See if we find them without any special options. |
6637 |
+ # Don't add to $LIBS permanently. |
6638 |
+ ac_save_LIBS="$LIBS" |
6639 |
+ LIBS="-l$x_direct_test_library $LIBS" |
6640 |
+cat > conftest.$ac_ext <<EOF |
6641 |
+#line 1404 "configure" |
6642 |
+#include "confdefs.h" |
6643 |
+ |
6644 |
+int main() { |
6645 |
+${x_direct_test_function}() |
6646 |
+; return 0; } |
6647 |
+EOF |
6648 |
+if { (eval echo configure:1411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6649 |
+ rm -rf conftest* |
6650 |
+ LIBS="$ac_save_LIBS" |
6651 |
+# We can link X programs with no special library path. |
6652 |
+ac_x_libraries= |
6653 |
+else |
6654 |
+ echo "configure: failed program was:" >&5 |
6655 |
+ cat conftest.$ac_ext >&5 |
6656 |
+ rm -rf conftest* |
6657 |
+ LIBS="$ac_save_LIBS" |
6658 |
+# First see if replacing the include by lib works. |
6659 |
+# Check X11 before X11Rn because it is often a symlink to the current release. |
6660 |
+for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ |
6661 |
+ /usr/X11/lib \ |
6662 |
+ /usr/X11R6/lib \ |
6663 |
+ /usr/X11R5/lib \ |
6664 |
+ /usr/X11R4/lib \ |
6665 |
+ \ |
6666 |
+ /usr/lib/X11 \ |
6667 |
+ /usr/lib/X11R6 \ |
6668 |
+ /usr/lib/X11R5 \ |
6669 |
+ /usr/lib/X11R4 \ |
6670 |
+ \ |
6671 |
+ /usr/local/X11/lib \ |
6672 |
+ /usr/local/X11R6/lib \ |
6673 |
+ /usr/local/X11R5/lib \ |
6674 |
+ /usr/local/X11R4/lib \ |
6675 |
+ \ |
6676 |
+ /usr/local/lib/X11 \ |
6677 |
+ /usr/local/lib/X11R6 \ |
6678 |
+ /usr/local/lib/X11R5 \ |
6679 |
+ /usr/local/lib/X11R4 \ |
6680 |
+ \ |
6681 |
+ /usr/X386/lib \ |
6682 |
+ /usr/x386/lib \ |
6683 |
+ /usr/XFree86/lib/X11 \ |
6684 |
+ \ |
6685 |
+ /usr/lib \ |
6686 |
+ /usr/local/lib \ |
6687 |
+ /usr/unsupported/lib \ |
6688 |
+ /usr/athena/lib \ |
6689 |
+ /usr/local/x11r5/lib \ |
6690 |
+ /usr/lpp/Xamples/lib \ |
6691 |
+ /lib/usr/lib/X11 \ |
6692 |
+ \ |
6693 |
+ /usr/openwin/lib \ |
6694 |
+ /usr/openwin/share/lib \ |
6695 |
+ ; \ |
6696 |
+do |
6697 |
+ for ac_extension in a so sl; do |
6698 |
+ if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
6699 |
+ ac_x_libraries=$ac_dir |
6700 |
+ break 2 |
6701 |
+ fi |
6702 |
+ done |
6703 |
+done |
6704 |
+fi |
6705 |
+rm -f conftest* |
6706 |
+fi # $ac_x_libraries = NO |
6707 |
+ |
6708 |
+if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
6709 |
+ # Didn't find X anywhere. Cache the known absence of X. |
6710 |
+ ac_cv_have_x="have_x=no" |
6711 |
+else |
6712 |
+ # Record where we found X for the cache. |
6713 |
+ ac_cv_have_x="have_x=yes \ |
6714 |
+ ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
6715 |
+fi |
6716 |
+fi |
6717 |
+ fi |
6718 |
+ eval "$ac_cv_have_x" |
6719 |
+fi # $with_x != no |
6720 |
+ |
6721 |
+if test "$have_x" != yes; then |
6722 |
+ echo "$ac_t""$have_x" 1>&6 |
6723 |
+ no_x=yes |
6724 |
+else |
6725 |
+ # If each of the values was on the command line, it overrides each guess. |
6726 |
+ test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
6727 |
+ test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
6728 |
+ # Update the cache value to reflect the command line values. |
6729 |
+ ac_cv_have_x="have_x=yes \ |
6730 |
+ ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
6731 |
+ echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
6732 |
+fi |
6733 |
+ |
6734 |
+if test "$no_x" = yes; then |
6735 |
+ # Not all programs may use this symbol, but it does not hurt to define it. |
6736 |
+ cat >> confdefs.h <<\EOF |
6737 |
+#define X_DISPLAY_MISSING 1 |
6738 |
+EOF |
6739 |
+ |
6740 |
+ X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
6741 |
+else |
6742 |
+ if test -n "$x_includes"; then |
6743 |
+ X_CFLAGS="$X_CFLAGS -I$x_includes" |
6744 |
+ fi |
6745 |
+ |
6746 |
+ # It would also be nice to do this for all -L options, not just this one. |
6747 |
+ if test -n "$x_libraries"; then |
6748 |
+ X_LIBS="$X_LIBS -L$x_libraries" |
6749 |
+ # For Solaris; some versions of Sun CC require a space after -R and |
6750 |
+ # others require no space. Words are not sufficient . . . . |
6751 |
+ case "`(uname -sr) 2>/dev/null`" in |
6752 |
+ "SunOS 5"*) |
6753 |
+ echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
6754 |
+echo "configure:1517: checking whether -R must be followed by a space" >&5 |
6755 |
+ ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
6756 |
+ cat > conftest.$ac_ext <<EOF |
6757 |
+#line 1520 "configure" |
6758 |
+#include "confdefs.h" |
6759 |
+ |
6760 |
+int main() { |
6761 |
+ |
6762 |
+; return 0; } |
6763 |
+EOF |
6764 |
+if { (eval echo configure:1527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6765 |
+ rm -rf conftest* |
6766 |
+ ac_R_nospace=yes |
6767 |
+else |
6768 |
+ echo "configure: failed program was:" >&5 |
6769 |
+ cat conftest.$ac_ext >&5 |
6770 |
+ rm -rf conftest* |
6771 |
+ ac_R_nospace=no |
6772 |
+fi |
6773 |
+rm -f conftest* |
6774 |
+ if test $ac_R_nospace = yes; then |
6775 |
+ echo "$ac_t""no" 1>&6 |
6776 |
+ X_LIBS="$X_LIBS -R$x_libraries" |
6777 |
+ else |
6778 |
+ LIBS="$ac_xsave_LIBS -R $x_libraries" |
6779 |
+ cat > conftest.$ac_ext <<EOF |
6780 |
+#line 1543 "configure" |
6781 |
+#include "confdefs.h" |
6782 |
+ |
6783 |
+int main() { |
6784 |
+ |
6785 |
+; return 0; } |
6786 |
+EOF |
6787 |
+if { (eval echo configure:1550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6788 |
+ rm -rf conftest* |
6789 |
+ ac_R_space=yes |
6790 |
+else |
6791 |
+ echo "configure: failed program was:" >&5 |
6792 |
+ cat conftest.$ac_ext >&5 |
6793 |
+ rm -rf conftest* |
6794 |
+ ac_R_space=no |
6795 |
+fi |
6796 |
+rm -f conftest* |
6797 |
+ if test $ac_R_space = yes; then |
6798 |
+ echo "$ac_t""yes" 1>&6 |
6799 |
+ X_LIBS="$X_LIBS -R $x_libraries" |
6800 |
+ else |
6801 |
+ echo "$ac_t""neither works" 1>&6 |
6802 |
+ fi |
6803 |
+ fi |
6804 |
+ LIBS="$ac_xsave_LIBS" |
6805 |
+ esac |
6806 |
+ fi |
6807 |
+ |
6808 |
+ # Check for system-dependent libraries X programs must link with. |
6809 |
+ # Do this before checking for the system-independent R6 libraries |
6810 |
+ # (-lICE), since we may need -lsocket or whatever for X linking. |
6811 |
+ |
6812 |
+ if test "$ISC" = yes; then |
6813 |
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
6814 |
+ else |
6815 |
+ # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
6816 |
+ # libraries were built with DECnet support. And karl@cs.umb.edu says |
6817 |
+ # the Alpha needs dnet_stub (dnet does not exist). |
6818 |
+ echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
6819 |
+echo "configure:1582: checking for dnet_ntoa in -ldnet" >&5 |
6820 |
+ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
6821 |
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6822 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
6823 |
+else |
6824 |
+ ac_save_LIBS="$LIBS" |
6825 |
+LIBS="-ldnet $LIBS" |
6826 |
+cat > conftest.$ac_ext <<EOF |
6827 |
+#line 1590 "configure" |
6828 |
+#include "confdefs.h" |
6829 |
+/* Override any gcc2 internal prototype to avoid an error. */ |
6830 |
+/* We use char because int might match the return type of a gcc2 |
6831 |
+ builtin and then its argument prototype would still apply. */ |
6832 |
+char dnet_ntoa(); |
6833 |
+ |
6834 |
+int main() { |
6835 |
+dnet_ntoa() |
6836 |
+; return 0; } |
6837 |
+EOF |
6838 |
+if { (eval echo configure:1601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6839 |
+ rm -rf conftest* |
6840 |
+ eval "ac_cv_lib_$ac_lib_var=yes" |
6841 |
+else |
6842 |
+ echo "configure: failed program was:" >&5 |
6843 |
+ cat conftest.$ac_ext >&5 |
6844 |
+ rm -rf conftest* |
6845 |
+ eval "ac_cv_lib_$ac_lib_var=no" |
6846 |
+fi |
6847 |
+rm -f conftest* |
6848 |
+LIBS="$ac_save_LIBS" |
6849 |
+ |
6850 |
+fi |
6851 |
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
6852 |
+ echo "$ac_t""yes" 1>&6 |
6853 |
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
6854 |
+else |
6855 |
+ echo "$ac_t""no" 1>&6 |
6856 |
+fi |
6857 |
+ |
6858 |
+ if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
6859 |
+ echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
6860 |
+echo "configure:1623: checking for dnet_ntoa in -ldnet_stub" >&5 |
6861 |
+ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
6862 |
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6863 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
6864 |
+else |
6865 |
+ ac_save_LIBS="$LIBS" |
6866 |
+LIBS="-ldnet_stub $LIBS" |
6867 |
+cat > conftest.$ac_ext <<EOF |
6868 |
+#line 1631 "configure" |
6869 |
+#include "confdefs.h" |
6870 |
+/* Override any gcc2 internal prototype to avoid an error. */ |
6871 |
+/* We use char because int might match the return type of a gcc2 |
6872 |
+ builtin and then its argument prototype would still apply. */ |
6873 |
+char dnet_ntoa(); |
6874 |
+ |
6875 |
+int main() { |
6876 |
+dnet_ntoa() |
6877 |
+; return 0; } |
6878 |
+EOF |
6879 |
+if { (eval echo configure:1642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6880 |
+ rm -rf conftest* |
6881 |
+ eval "ac_cv_lib_$ac_lib_var=yes" |
6882 |
+else |
6883 |
+ echo "configure: failed program was:" >&5 |
6884 |
+ cat conftest.$ac_ext >&5 |
6885 |
+ rm -rf conftest* |
6886 |
+ eval "ac_cv_lib_$ac_lib_var=no" |
6887 |
+fi |
6888 |
+rm -f conftest* |
6889 |
+LIBS="$ac_save_LIBS" |
6890 |
+ |
6891 |
+fi |
6892 |
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
6893 |
+ echo "$ac_t""yes" 1>&6 |
6894 |
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
6895 |
+else |
6896 |
+ echo "$ac_t""no" 1>&6 |
6897 |
+fi |
6898 |
+ |
6899 |
+ fi |
6900 |
+ |
6901 |
+ # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
6902 |
+ # to get the SysV transport functions. |
6903 |
+ # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
6904 |
+ # needs -lnsl. |
6905 |
+ # The nsl library prevents programs from opening the X display |
6906 |
+ # on Irix 5.2, according to dickey@clark.net. |
6907 |
+ echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
6908 |
+echo "configure:1671: checking for gethostbyname" >&5 |
6909 |
+if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
6910 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
6911 |
+else |
6912 |
+ cat > conftest.$ac_ext <<EOF |
6913 |
+#line 1676 "configure" |
6914 |
+#include "confdefs.h" |
6915 |
+/* System header to define __stub macros and hopefully few prototypes, |
6916 |
+ which can conflict with char gethostbyname(); below. */ |
6917 |
+#include <assert.h> |
6918 |
+/* Override any gcc2 internal prototype to avoid an error. */ |
6919 |
+/* We use char because int might match the return type of a gcc2 |
6920 |
+ builtin and then its argument prototype would still apply. */ |
6921 |
+char gethostbyname(); |
6922 |
+ |
6923 |
+int main() { |
6924 |
+ |
6925 |
+/* The GNU C library defines this for functions which it implements |
6926 |
+ to always fail with ENOSYS. Some functions are actually named |
6927 |
+ something starting with __ and the normal name is an alias. */ |
6928 |
+#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
6929 |
+choke me |
6930 |
+#else |
6931 |
+gethostbyname(); |
6932 |
+#endif |
6933 |
+ |
6934 |
+; return 0; } |
6935 |
+EOF |
6936 |
+if { (eval echo configure:1699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6937 |
+ rm -rf conftest* |
6938 |
+ eval "ac_cv_func_gethostbyname=yes" |
6939 |
+else |
6940 |
+ echo "configure: failed program was:" >&5 |
6941 |
+ cat conftest.$ac_ext >&5 |
6942 |
+ rm -rf conftest* |
6943 |
+ eval "ac_cv_func_gethostbyname=no" |
6944 |
+fi |
6945 |
+rm -f conftest* |
6946 |
+fi |
6947 |
+ |
6948 |
+if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
6949 |
+ echo "$ac_t""yes" 1>&6 |
6950 |
+ : |
6951 |
+else |
6952 |
+ echo "$ac_t""no" 1>&6 |
6953 |
+fi |
6954 |
+ |
6955 |
+ if test $ac_cv_func_gethostbyname = no; then |
6956 |
+ echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
6957 |
+echo "configure:1720: checking for gethostbyname in -lnsl" >&5 |
6958 |
+ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
6959 |
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6960 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
6961 |
+else |
6962 |
+ ac_save_LIBS="$LIBS" |
6963 |
+LIBS="-lnsl $LIBS" |
6964 |
+cat > conftest.$ac_ext <<EOF |
6965 |
+#line 1728 "configure" |
6966 |
+#include "confdefs.h" |
6967 |
+/* Override any gcc2 internal prototype to avoid an error. */ |
6968 |
+/* We use char because int might match the return type of a gcc2 |
6969 |
+ builtin and then its argument prototype would still apply. */ |
6970 |
+char gethostbyname(); |
6971 |
+ |
6972 |
+int main() { |
6973 |
+gethostbyname() |
6974 |
+; return 0; } |
6975 |
+EOF |
6976 |
+if { (eval echo configure:1739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6977 |
+ rm -rf conftest* |
6978 |
+ eval "ac_cv_lib_$ac_lib_var=yes" |
6979 |
+else |
6980 |
+ echo "configure: failed program was:" >&5 |
6981 |
+ cat conftest.$ac_ext >&5 |
6982 |
+ rm -rf conftest* |
6983 |
+ eval "ac_cv_lib_$ac_lib_var=no" |
6984 |
+fi |
6985 |
+rm -f conftest* |
6986 |
+LIBS="$ac_save_LIBS" |
6987 |
+ |
6988 |
+fi |
6989 |
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
6990 |
+ echo "$ac_t""yes" 1>&6 |
6991 |
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
6992 |
+else |
6993 |
+ echo "$ac_t""no" 1>&6 |
6994 |
+fi |
6995 |
+ |
6996 |
+ fi |
6997 |
+ |
6998 |
+ # lieder@skyler.mavd.honeywell.com says without -lsocket, |
6999 |
+ # socket/setsockopt and other routines are undefined under SCO ODT |
7000 |
+ # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
7001 |
+ # on later versions), says simon@lia.di.epfl.ch: it contains |
7002 |
+ # gethostby* variants that don't use the nameserver (or something). |
7003 |
+ # -lsocket must be given before -lnsl if both are needed. |
7004 |
+ # We assume that if connect needs -lnsl, so does gethostbyname. |
7005 |
+ echo $ac_n "checking for connect""... $ac_c" 1>&6 |
7006 |
+echo "configure:1769: checking for connect" >&5 |
7007 |
+if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
7008 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
7009 |
+else |
7010 |
+ cat > conftest.$ac_ext <<EOF |
7011 |
+#line 1774 "configure" |
7012 |
+#include "confdefs.h" |
7013 |
+/* System header to define __stub macros and hopefully few prototypes, |
7014 |
+ which can conflict with char connect(); below. */ |
7015 |
+#include <assert.h> |
7016 |
+/* Override any gcc2 internal prototype to avoid an error. */ |
7017 |
+/* We use char because int might match the return type of a gcc2 |
7018 |
+ builtin and then its argument prototype would still apply. */ |
7019 |
+char connect(); |
7020 |
+ |
7021 |
+int main() { |
7022 |
+ |
7023 |
+/* The GNU C library defines this for functions which it implements |
7024 |
+ to always fail with ENOSYS. Some functions are actually named |
7025 |
+ something starting with __ and the normal name is an alias. */ |
7026 |
+#if defined (__stub_connect) || defined (__stub___connect) |
7027 |
+choke me |
7028 |
+#else |
7029 |
+connect(); |
7030 |
+#endif |
7031 |
+ |
7032 |
+; return 0; } |
7033 |
+EOF |
7034 |
+if { (eval echo configure:1797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7035 |
+ rm -rf conftest* |
7036 |
+ eval "ac_cv_func_connect=yes" |
7037 |
+else |
7038 |
+ echo "configure: failed program was:" >&5 |
7039 |
+ cat conftest.$ac_ext >&5 |
7040 |
+ rm -rf conftest* |
7041 |
+ eval "ac_cv_func_connect=no" |
7042 |
+fi |
7043 |
+rm -f conftest* |
7044 |
+fi |
7045 |
+ |
7046 |
+if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
7047 |
+ echo "$ac_t""yes" 1>&6 |
7048 |
+ : |
7049 |
+else |
7050 |
+ echo "$ac_t""no" 1>&6 |
7051 |
+fi |
7052 |
+ |
7053 |
+ if test $ac_cv_func_connect = no; then |
7054 |
+ echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
7055 |
+echo "configure:1818: checking for connect in -lsocket" >&5 |
7056 |
+ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
7057 |
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7058 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
7059 |
+else |
7060 |
+ ac_save_LIBS="$LIBS" |
7061 |
+LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
7062 |
+cat > conftest.$ac_ext <<EOF |
7063 |
+#line 1826 "configure" |
7064 |
+#include "confdefs.h" |
7065 |
+/* Override any gcc2 internal prototype to avoid an error. */ |
7066 |
+/* We use char because int might match the return type of a gcc2 |
7067 |
+ builtin and then its argument prototype would still apply. */ |
7068 |
+char connect(); |
7069 |
+ |
7070 |
+int main() { |
7071 |
+connect() |
7072 |
+; return 0; } |
7073 |
+EOF |
7074 |
+if { (eval echo configure:1837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7075 |
+ rm -rf conftest* |
7076 |
+ eval "ac_cv_lib_$ac_lib_var=yes" |
7077 |
+else |
7078 |
+ echo "configure: failed program was:" >&5 |
7079 |
+ cat conftest.$ac_ext >&5 |
7080 |
+ rm -rf conftest* |
7081 |
+ eval "ac_cv_lib_$ac_lib_var=no" |
7082 |
+fi |
7083 |
+rm -f conftest* |
7084 |
+LIBS="$ac_save_LIBS" |
7085 |
+ |
7086 |
+fi |
7087 |
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
7088 |
+ echo "$ac_t""yes" 1>&6 |
7089 |
+ X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
7090 |
+else |
7091 |
+ echo "$ac_t""no" 1>&6 |
7092 |
+fi |
7093 |
+ |
7094 |
+ fi |
7095 |
+ |
7096 |
+ # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
7097 |
+ echo $ac_n "checking for remove""... $ac_c" 1>&6 |
7098 |
+echo "configure:1861: checking for remove" >&5 |
7099 |
+if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
7100 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
7101 |
+else |
7102 |
+ cat > conftest.$ac_ext <<EOF |
7103 |
+#line 1866 "configure" |
7104 |
+#include "confdefs.h" |
7105 |
+/* System header to define __stub macros and hopefully few prototypes, |
7106 |
+ which can conflict with char remove(); below. */ |
7107 |
+#include <assert.h> |
7108 |
+/* Override any gcc2 internal prototype to avoid an error. */ |
7109 |
+/* We use char because int might match the return type of a gcc2 |
7110 |
+ builtin and then its argument prototype would still apply. */ |
7111 |
+char remove(); |
7112 |
+ |
7113 |
+int main() { |
7114 |
+ |
7115 |
+/* The GNU C library defines this for functions which it implements |
7116 |
+ to always fail with ENOSYS. Some functions are actually named |
7117 |
+ something starting with __ and the normal name is an alias. */ |
7118 |
+#if defined (__stub_remove) || defined (__stub___remove) |
7119 |
+choke me |
7120 |
+#else |
7121 |
+remove(); |
7122 |
+#endif |
7123 |
+ |
7124 |
+; return 0; } |
7125 |
+EOF |
7126 |
+if { (eval echo configure:1889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7127 |
+ rm -rf conftest* |
7128 |
+ eval "ac_cv_func_remove=yes" |
7129 |
+else |
7130 |
+ echo "configure: failed program was:" >&5 |
7131 |
+ cat conftest.$ac_ext >&5 |
7132 |
+ rm -rf conftest* |
7133 |
+ eval "ac_cv_func_remove=no" |
7134 |
+fi |
7135 |
+rm -f conftest* |
7136 |
+fi |
7137 |
+ |
7138 |
+if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then |
7139 |
+ echo "$ac_t""yes" 1>&6 |
7140 |
+ : |
7141 |
+else |
7142 |
+ echo "$ac_t""no" 1>&6 |
7143 |
+fi |
7144 |
+ |
7145 |
+ if test $ac_cv_func_remove = no; then |
7146 |
+ echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
7147 |
+echo "configure:1910: checking for remove in -lposix" >&5 |
7148 |
+ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
7149 |
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7150 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
7151 |
+else |
7152 |
+ ac_save_LIBS="$LIBS" |
7153 |
+LIBS="-lposix $LIBS" |
7154 |
+cat > conftest.$ac_ext <<EOF |
7155 |
+#line 1918 "configure" |
7156 |
+#include "confdefs.h" |
7157 |
+/* Override any gcc2 internal prototype to avoid an error. */ |
7158 |
+/* We use char because int might match the return type of a gcc2 |
7159 |
+ builtin and then its argument prototype would still apply. */ |
7160 |
+char remove(); |
7161 |
+ |
7162 |
+int main() { |
7163 |
+remove() |
7164 |
+; return 0; } |
7165 |
+EOF |
7166 |
+if { (eval echo configure:1929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7167 |
+ rm -rf conftest* |
7168 |
+ eval "ac_cv_lib_$ac_lib_var=yes" |
7169 |
+else |
7170 |
+ echo "configure: failed program was:" >&5 |
7171 |
+ cat conftest.$ac_ext >&5 |
7172 |
+ rm -rf conftest* |
7173 |
+ eval "ac_cv_lib_$ac_lib_var=no" |
7174 |
+fi |
7175 |
+rm -f conftest* |
7176 |
+LIBS="$ac_save_LIBS" |
7177 |
+ |
7178 |
+fi |
7179 |
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
7180 |
+ echo "$ac_t""yes" 1>&6 |
7181 |
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
7182 |
+else |
7183 |
+ echo "$ac_t""no" 1>&6 |
7184 |
+fi |
7185 |
+ |
7186 |
+ fi |
7187 |
+ |
7188 |
+ # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
7189 |
+ echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
7190 |
+echo "configure:1953: checking for shmat" >&5 |
7191 |
+if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
7192 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
7193 |
+else |
7194 |
+ cat > conftest.$ac_ext <<EOF |
7195 |
+#line 1958 "configure" |
7196 |
+#include "confdefs.h" |
7197 |
+/* System header to define __stub macros and hopefully few prototypes, |
7198 |
+ which can conflict with char shmat(); below. */ |
7199 |
+#include <assert.h> |
7200 |
+/* Override any gcc2 internal prototype to avoid an error. */ |
7201 |
+/* We use char because int might match the return type of a gcc2 |
7202 |
+ builtin and then its argument prototype would still apply. */ |
7203 |
+char shmat(); |
7204 |
+ |
7205 |
+int main() { |
7206 |
+ |
7207 |
+/* The GNU C library defines this for functions which it implements |
7208 |
+ to always fail with ENOSYS. Some functions are actually named |
7209 |
+ something starting with __ and the normal name is an alias. */ |
7210 |
+#if defined (__stub_shmat) || defined (__stub___shmat) |
7211 |
+choke me |
7212 |
+#else |
7213 |
+shmat(); |
7214 |
+#endif |
7215 |
+ |
7216 |
+; return 0; } |
7217 |
+EOF |
7218 |
+if { (eval echo configure:1981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7219 |
+ rm -rf conftest* |
7220 |
+ eval "ac_cv_func_shmat=yes" |
7221 |
+else |
7222 |
+ echo "configure: failed program was:" >&5 |
7223 |
+ cat conftest.$ac_ext >&5 |
7224 |
+ rm -rf conftest* |
7225 |
+ eval "ac_cv_func_shmat=no" |
7226 |
+fi |
7227 |
+rm -f conftest* |
7228 |
+fi |
7229 |
+ |
7230 |
+if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then |
7231 |
+ echo "$ac_t""yes" 1>&6 |
7232 |
+ : |
7233 |
+else |
7234 |
+ echo "$ac_t""no" 1>&6 |
7235 |
+fi |
7236 |
+ |
7237 |
+ if test $ac_cv_func_shmat = no; then |
7238 |
+ echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
7239 |
+echo "configure:2002: checking for shmat in -lipc" >&5 |
7240 |
+ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
7241 |
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7242 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
7243 |
+else |
7244 |
+ ac_save_LIBS="$LIBS" |
7245 |
+LIBS="-lipc $LIBS" |
7246 |
+cat > conftest.$ac_ext <<EOF |
7247 |
+#line 2010 "configure" |
7248 |
+#include "confdefs.h" |
7249 |
+/* Override any gcc2 internal prototype to avoid an error. */ |
7250 |
+/* We use char because int might match the return type of a gcc2 |
7251 |
+ builtin and then its argument prototype would still apply. */ |
7252 |
+char shmat(); |
7253 |
+ |
7254 |
+int main() { |
7255 |
+shmat() |
7256 |
+; return 0; } |
7257 |
+EOF |
7258 |
+if { (eval echo configure:2021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7259 |
+ rm -rf conftest* |
7260 |
+ eval "ac_cv_lib_$ac_lib_var=yes" |
7261 |
+else |
7262 |
+ echo "configure: failed program was:" >&5 |
7263 |
+ cat conftest.$ac_ext >&5 |
7264 |
+ rm -rf conftest* |
7265 |
+ eval "ac_cv_lib_$ac_lib_var=no" |
7266 |
+fi |
7267 |
+rm -f conftest* |
7268 |
+LIBS="$ac_save_LIBS" |
7269 |
+ |
7270 |
+fi |
7271 |
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
7272 |
+ echo "$ac_t""yes" 1>&6 |
7273 |
+ X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
7274 |
+else |
7275 |
+ echo "$ac_t""no" 1>&6 |
7276 |
+fi |
7277 |
+ |
7278 |
+ fi |
7279 |
+ fi |
7280 |
+ |
7281 |
+ # Check for libraries that X11R6 Xt/Xaw programs need. |
7282 |
+ ac_save_LDFLAGS="$LDFLAGS" |
7283 |
+ test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
7284 |
+ # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
7285 |
+ # check for ICE first), but we must link in the order -lSM -lICE or |
7286 |
+ # we get undefined symbols. So assume we have SM if we have ICE. |
7287 |
+ # These have to be linked with before -lX11, unlike the other |
7288 |
+ # libraries we check for below, so use a |
7289 |
+ # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
7290 |
+ echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 |
7291 |
+echo "configure:2054: checking for IceConnectionNumber in -lICE" >&5 |
7292 |
+ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
7293 |
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7294 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
7295 |
+else |
7296 |
+ ac_save_LIBS="$LIBS" |
7297 |
+LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
7298 |
+cat > conftest.$ac_ext <<EOF |
7299 |
+#line 2062 "configure" |
7300 |
+#include "confdefs.h" |
7301 |
+/* Override any gcc2 internal prototype to avoid an error. */ |
7302 |
+/* We use char because int might match the return type of a gcc2 |
7303 |
+ builtin and then its argument prototype would still apply. */ |
7304 |
+char IceConnectionNumber(); |
7305 |
+ |
7306 |
+int main() { |
7307 |
+IceConnectionNumber() |
7308 |
+; return 0; } |
7309 |
+EOF |
7310 |
+if { (eval echo configure:2073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7311 |
+ rm -rf conftest* |
7312 |
+ eval "ac_cv_lib_$ac_lib_var=yes" |
7313 |
+else |
7314 |
+ echo "configure: failed program was:" >&5 |
7315 |
+ cat conftest.$ac_ext >&5 |
7316 |
+ rm -rf conftest* |
7317 |
+ eval "ac_cv_lib_$ac_lib_var=no" |
7318 |
+fi |
7319 |
+rm -f conftest* |
7320 |
+LIBS="$ac_save_LIBS" |
7321 |
+ |
7322 |
+fi |
7323 |
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
7324 |
+ echo "$ac_t""yes" 1>&6 |
7325 |
+ X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
7326 |
+else |
7327 |
+ echo "$ac_t""no" 1>&6 |
7328 |
+fi |
7329 |
+ |
7330 |
+ LDFLAGS="$ac_save_LDFLAGS" |
7331 |
+ |
7332 |
+fi |
7333 |
+ |
7334 |
+ |
7335 |
+ |
7336 |
+motif_includes= |
7337 |
+motif_libraries= |
7338 |
+# Check whether --with-motif-includes or --without-motif-includes was given. |
7339 |
+if test "${with_motif_includes+set}" = set; then |
7340 |
+ withval="$with_motif_includes" |
7341 |
+ motif_includes="$withval" |
7342 |
+fi |
7343 |
+ |
7344 |
+# Check whether --with-motif-libraries or --without-motif-libraries was given. |
7345 |
+if test "${with_motif_libraries+set}" = set; then |
7346 |
+ withval="$with_motif_libraries" |
7347 |
+ motif_libraries="$withval" |
7348 |
+fi |
7349 |
+ |
7350 |
+echo $ac_n "checking for Motif""... $ac_c" 1>&6 |
7351 |
+echo "configure:2114: checking for Motif" >&5 |
7352 |
+# |
7353 |
+# |
7354 |
+# Search the include files. |
7355 |
+# |
7356 |
+if test "$motif_includes" = ""; then |
7357 |
+if eval "test \"`echo '$''{'ice_cv_motif_includes'+set}'`\" = set"; then |
7358 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
7359 |
+else |
7360 |
+ |
7361 |
+ice_motif_save_LIBS="$LIBS" |
7362 |
+ice_motif_save_CFLAGS="$CFLAGS" |
7363 |
+ice_motif_save_CPPFLAGS="$CPPFLAGS" |
7364 |
+ice_motif_save_LDFLAGS="$LDFLAGS" |
7365 |
+# |
7366 |
+LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS" |
7367 |
+CFLAGS="$X_CFLAGS $CFLAGS" |
7368 |
+CPPFLAGS="$X_CFLAGS $CPPFLAGS" |
7369 |
+LDFLAGS="$X_LIBS $LDFLAGS" |
7370 |
+# |
7371 |
+cat > conftest.$ac_ext <<EOF |
7372 |
+#line 2135 "configure" |
7373 |
+#include "confdefs.h" |
7374 |
+#include <Xm/Xm.h> |
7375 |
+int main() { |
7376 |
+int a; |
7377 |
+; return 0; } |
7378 |
+EOF |
7379 |
+if { (eval echo configure:2142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7380 |
+ rm -rf conftest* |
7381 |
+ |
7382 |
+# Xm/Xm.h is in the standard search path. |
7383 |
+ice_cv_motif_includes= |
7384 |
+ |
7385 |
+else |
7386 |
+ echo "configure: failed program was:" >&5 |
7387 |
+ cat conftest.$ac_ext >&5 |
7388 |
+ rm -rf conftest* |
7389 |
+ |
7390 |
+# Xm/Xm.h is not in the standard search path. |
7391 |
+# Locate it and put its directory in `motif_includes' |
7392 |
+# |
7393 |
+# /usr/include/Motif* are used on HP-UX (Motif). |
7394 |
+# /usr/include/X11* are used on HP-UX (X and Athena). |
7395 |
+# /usr/dt is used on Solaris (Motif). |
7396 |
+# /usr/openwin is used on Solaris (X and Athena). |
7397 |
+# Other directories are just guesses. |
7398 |
+for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \ |
7399 |
+ /usr/include/Motif2.0 /usr/include/Motif1.2 /usr/include/Motif1.1 \ |
7400 |
+ /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 \ |
7401 |
+ /usr/dt/include /usr/openwin/include \ |
7402 |
+ /usr/dt/*/include /opt/*/include /usr/include/Motif* \ |
7403 |
+ "${prefix}"/*/include /usr/*/include /usr/local/*/include \ |
7404 |
+ "${prefix}"/include/* /usr/include/* /usr/local/include/*; do |
7405 |
+if test -f "$dir/Xm/Xm.h"; then |
7406 |
+ice_cv_motif_includes="$dir" |
7407 |
+break |
7408 |
+fi |
7409 |
+done |
7410 |
+if test "$ice_cv_motif_includes" = ""; then |
7411 |
+ice_cv_motif_includes=no |
7412 |
+fi |
7413 |
+ |
7414 |
+fi |
7415 |
+rm -f conftest* |
7416 |
+# |
7417 |
+LIBS="$ice_motif_save_LIBS" |
7418 |
+CFLAGS="$ice_motif_save_CFLAGS" |
7419 |
+CPPFLAGS="$ice_motif_save_CPPFLAGS" |
7420 |
+LDFLAGS="$ice_motif_save_LDFLAGS" |
7421 |
+ |
7422 |
+fi |
7423 |
+ |
7424 |
+motif_includes="$ice_cv_motif_includes" |
7425 |
+fi |
7426 |
+# |
7427 |
+# |
7428 |
+# Now for the libraries. |
7429 |
+# |
7430 |
+if test "$motif_libraries" = ""; then |
7431 |
+if eval "test \"`echo '$''{'ice_cv_motif_libraries'+set}'`\" = set"; then |
7432 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
7433 |
+else |
7434 |
+ |
7435 |
+ice_motif_save_LIBS="$LIBS" |
7436 |
+ice_motif_save_CFLAGS="$CFLAGS" |
7437 |
+ice_motif_save_CPPFLAGS="$CPPFLAGS" |
7438 |
+ice_motif_save_LDFLAGS="$LDFLAGS" |
7439 |
+# |
7440 |
+LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS" |
7441 |
+CFLAGS="$X_CFLAGS $CFLAGS" |
7442 |
+CPPFLAGS="$X_CFLAGS $CPPFLAGS" |
7443 |
+LDFLAGS="$X_LIBS $LDFLAGS" |
7444 |
+# |
7445 |
+# We use XtToolkitInitialize() here since it takes no arguments |
7446 |
+# and thus also works with a C++ compiler. |
7447 |
+cat > conftest.$ac_ext <<EOF |
7448 |
+#line 2211 "configure" |
7449 |
+#include "confdefs.h" |
7450 |
+ |
7451 |
+#include <X11/Intrinsic.h> |
7452 |
+#include <Xm/Xm.h> |
7453 |
+ |
7454 |
+int main() { |
7455 |
+XtToolkitInitialize(); |
7456 |
+; return 0; } |
7457 |
+EOF |
7458 |
+if { (eval echo configure:2221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7459 |
+ rm -rf conftest* |
7460 |
+ |
7461 |
+# libXm.a is in the standard search path. |
7462 |
+ice_cv_motif_libraries= |
7463 |
+ |
7464 |
+else |
7465 |
+ echo "configure: failed program was:" >&5 |
7466 |
+ cat conftest.$ac_ext >&5 |
7467 |
+ rm -rf conftest* |
7468 |
+ |
7469 |
+# libXm.a is not in the standard search path. |
7470 |
+# Locate it and put its directory in `motif_libraries' |
7471 |
+# |
7472 |
+# /usr/lib/Motif* are used on HP-UX (Motif). |
7473 |
+# /usr/lib/X11* are used on HP-UX (X and Athena). |
7474 |
+# /usr/dt is used on Solaris (Motif). |
7475 |
+# /usr/lesstif is used on Linux (Lesstif). |
7476 |
+# /usr/openwin is used on Solaris (X and Athena). |
7477 |
+# Other directories are just guesses. |
7478 |
+for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \ |
7479 |
+ /usr/lib/Motif2.0 /usr/lib/Motif1.2 /usr/lib/Motif1.1 \ |
7480 |
+ /usr/lib/X11R6 /usr/lib/X11R5 /usr/lib/X11R4 /usr/lib/X11 \ |
7481 |
+ /usr/dt/lib /usr/openwin/lib \ |
7482 |
+ /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \ |
7483 |
+ /usr/lesstif*/lib /usr/lib/Lesstif* \ |
7484 |
+ "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \ |
7485 |
+ "${prefix}"/lib/* /usr/lib/* /usr/local/lib/*; do |
7486 |
+if test -d "$dir" && test "`ls $dir/libXm.* 2> /dev/null`" != ""; then |
7487 |
+ice_cv_motif_libraries="$dir" |
7488 |
+break |
7489 |
+fi |
7490 |
+done |
7491 |
+if test "$ice_cv_motif_libraries" = ""; then |
7492 |
+ice_cv_motif_libraries=no |
7493 |
+fi |
7494 |
+ |
7495 |
+fi |
7496 |
+rm -f conftest* |
7497 |
+# |
7498 |
+LIBS="$ice_motif_save_LIBS" |
7499 |
+CFLAGS="$ice_motif_save_CFLAGS" |
7500 |
+CPPFLAGS="$ice_motif_save_CPPFLAGS" |
7501 |
+LDFLAGS="$ice_motif_save_LDFLAGS" |
7502 |
+ |
7503 |
+fi |
7504 |
+ |
7505 |
+# |
7506 |
+motif_libraries="$ice_cv_motif_libraries" |
7507 |
+fi |
7508 |
+# Add Motif definitions to X flags |
7509 |
+# |
7510 |
+if test "$motif_includes" != "" && test "$motif_includes" != "$x_includes" && test "$motif_includes" != "no" |
7511 |
+then |
7512 |
+X_CFLAGS="-I$motif_includes $X_CFLAGS" |
7513 |
+fi |
7514 |
+if test "$motif_libraries" != "" && test "$motif_libraries" != "$x_libraries" && test "$motif_libraries" != "no" |
7515 |
+then |
7516 |
+case "$X_LIBS" in |
7517 |
+ *-R\ *) X_LIBS="-L$motif_libraries -R $motif_libraries $X_LIBS";; |
7518 |
+ *-R*) X_LIBS="-L$motif_libraries -R$motif_libraries $X_LIBS";; |
7519 |
+ *) X_LIBS="-L$motif_libraries $X_LIBS";; |
7520 |
+esac |
7521 |
+fi |
7522 |
+# |
7523 |
+# |
7524 |
+motif_libraries_result="$motif_libraries" |
7525 |
+motif_includes_result="$motif_includes" |
7526 |
+test "$motif_libraries_result" = "" && |
7527 |
+ motif_libraries_result="in default path" |
7528 |
+test "$motif_includes_result" = "" && |
7529 |
+ motif_includes_result="in default path" |
7530 |
+test "$motif_libraries_result" = "no" && |
7531 |
+ motif_libraries_result="(none)" |
7532 |
+test "$motif_includes_result" = "no" && |
7533 |
+ motif_includes_result="(none)" |
7534 |
+echo "$ac_t""libraries $motif_libraries_result, headers $motif_includes_result" 1>&6 |
7535 |
+ |
7536 |
+ |
7537 |
+ |
7538 |
+xpm_includes= |
7539 |
+xpm_libraries= |
7540 |
+# Check whether --with-xpm or --without-xpm was given. |
7541 |
+if test "${with_xpm+set}" = set; then |
7542 |
+ withval="$with_xpm" |
7543 |
+ : |
7544 |
+fi |
7545 |
+ |
7546 |
+if test "$with_xpm" = "no" |
7547 |
+then |
7548 |
+xpm_includes=no |
7549 |
+xpm_libraries=no |
7550 |
+fi |
7551 |
+# Check whether --with-xpm-includes or --without-xpm-includes was given. |
7552 |
+if test "${with_xpm_includes+set}" = set; then |
7553 |
+ withval="$with_xpm_includes" |
7554 |
+ xpm_includes="$withval" |
7555 |
+fi |
7556 |
+ |
7557 |
+# Check whether --with-xpm-libraries or --without-xpm-libraries was given. |
7558 |
+if test "${with_xpm_libraries+set}" = set; then |
7559 |
+ withval="$with_xpm_libraries" |
7560 |
+ xpm_libraries="$withval" |
7561 |
+fi |
7562 |
+ |
7563 |
+echo $ac_n "checking for Xpm""... $ac_c" 1>&6 |
7564 |
+echo "configure:2327: checking for Xpm" >&5 |
7565 |
+# |
7566 |
+# |
7567 |
+# Search the include files. Note that XPM can come in <X11/xpm.h> (as |
7568 |
+# in X11R6) or in <xpm.h> if installed locally. |
7569 |
+# |
7570 |
+if test "$xpm_includes" = ""; then |
7571 |
+if eval "test \"`echo '$''{'ice_cv_xpm_includes'+set}'`\" = set"; then |
7572 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
7573 |
+else |
7574 |
+ |
7575 |
+ice_xpm_save_LIBS="$LIBS" |
7576 |
+ice_xpm_save_CFLAGS="$CFLAGS" |
7577 |
+ice_xpm_save_CPPFLAGS="$CPPFLAGS" |
7578 |
+ice_xpm_save_LDFLAGS="$LDFLAGS" |
7579 |
+# |
7580 |
+LIBS="$X_PRE_LIBS -lXpm -lXt -lX11 $X_EXTRA_LIBS $LIBS" |
7581 |
+CFLAGS="$X_CFLAGS $CFLAGS" |
7582 |
+CPPFLAGS="$X_CFLAGS $CPPFLAGS" |
7583 |
+LDFLAGS="$X_LIBS $LDFLAGS" |
7584 |
+# |
7585 |
+cat > conftest.$ac_ext <<EOF |
7586 |
+#line 2349 "configure" |
7587 |
+#include "confdefs.h" |
7588 |
+ |
7589 |
+#include <X11/xpm.h> |
7590 |
+ |
7591 |
+int main() { |
7592 |
+int a; |
7593 |
+; return 0; } |
7594 |
+EOF |
7595 |
+if { (eval echo configure:2358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7596 |
+ rm -rf conftest* |
7597 |
+ |
7598 |
+# X11/xpm.h is in the standard search path. |
7599 |
+ice_cv_xpm_includes= |
7600 |
+ |
7601 |
+else |
7602 |
+ echo "configure: failed program was:" >&5 |
7603 |
+ cat conftest.$ac_ext >&5 |
7604 |
+ rm -rf conftest* |
7605 |
+ |
7606 |
+# X11/xpm.h is not in the standard search path. |
7607 |
+# Locate it and put its directory in `xpm_includes' |
7608 |
+# |
7609 |
+# /usr/include/Motif* are used on HP-UX (Motif). |
7610 |
+# /usr/include/X11* are used on HP-UX (X and Xaw). |
7611 |
+# /usr/dt is used on Solaris (Motif). |
7612 |
+# /usr/openwin is used on Solaris (X and Xaw). |
7613 |
+# Other directories are just guesses. |
7614 |
+for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \ |
7615 |
+ /usr/include/Motif2.0 /usr/include/Motif1.2 /usr/include/Motif1.1 \ |
7616 |
+ /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 \ |
7617 |
+ /usr/dt/include /usr/openwin/include \ |
7618 |
+ /usr/dt/*/include /opt/*/include /usr/include/Motif* \ |
7619 |
+ "${prefix}"/*/include /usr/*/include /usr/local/*/include \ |
7620 |
+ "${prefix}"/include/* /usr/include/* /usr/local/include/*; do |
7621 |
+if test -f "$dir/X11/xpm.h" || test -f "$dir/xpm.h"; then |
7622 |
+ice_cv_xpm_includes="$dir" |
7623 |
+break |
7624 |
+fi |
7625 |
+done |
7626 |
+ |
7627 |
+fi |
7628 |
+rm -f conftest* |
7629 |
+# |
7630 |
+LIBS="$ice_xpm_save_LIBS" |
7631 |
+CFLAGS="$ice_xpm_save_CFLAGS" |
7632 |
+CPPFLAGS="$ice_xpm_save_CPPFLAGS" |
7633 |
+LDFLAGS="$ice_xpm_save_LDFLAGS" |
7634 |
+ |
7635 |
+fi |
7636 |
+ |
7637 |
+xpm_includes="$ice_cv_xpm_includes" |
7638 |
+fi |
7639 |
+# |
7640 |
+# |
7641 |
+# Now for the libraries. |
7642 |
+# |
7643 |
+if test "$xpm_libraries" = ""; then |
7644 |
+if eval "test \"`echo '$''{'ice_cv_xpm_libraries'+set}'`\" = set"; then |
7645 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
7646 |
+else |
7647 |
+ |
7648 |
+ice_xpm_save_LIBS="$LIBS" |
7649 |
+ice_xpm_save_CFLAGS="$CFLAGS" |
7650 |
+ice_xpm_save_CPPFLAGS="$CPPFLAGS" |
7651 |
+ice_xpm_save_LDFLAGS="$LDFLAGS" |
7652 |
+# |
7653 |
+LIBS="$X_PRE_LIBS -lXpm -lXt -lX11 $X_EXTRA_LIBS $LIBS" |
7654 |
+CFLAGS="$X_CFLAGS $CFLAGS" |
7655 |
+CPPFLAGS="$X_CFLAGS $CPPFLAGS" |
7656 |
+LDFLAGS="$X_LIBS $LDFLAGS" |
7657 |
+# |
7658 |
+# |
7659 |
+# We use XtToolkitInitialize() here since it takes no arguments |
7660 |
+# and thus also works with a C++ compiler. |
7661 |
+cat > conftest.$ac_ext <<EOF |
7662 |
+#line 2425 "configure" |
7663 |
+#include "confdefs.h" |
7664 |
+ |
7665 |
+#include <X11/Intrinsic.h> |
7666 |
+#include <X11/xpm.h> |
7667 |
+ |
7668 |
+int main() { |
7669 |
+XtToolkitInitialize(); |
7670 |
+; return 0; } |
7671 |
+EOF |
7672 |
+if { (eval echo configure:2435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7673 |
+ rm -rf conftest* |
7674 |
+ |
7675 |
+# libxpm.a is in the standard search path. |
7676 |
+ice_cv_xpm_libraries= |
7677 |
+ |
7678 |
+else |
7679 |
+ echo "configure: failed program was:" >&5 |
7680 |
+ cat conftest.$ac_ext >&5 |
7681 |
+ rm -rf conftest* |
7682 |
+ |
7683 |
+# libXpm.a is not in the standard search path. |
7684 |
+# Locate it and put its directory in `xpm_libraries' |
7685 |
+# |
7686 |
+# |
7687 |
+# /usr/lib/Motif* are used on HP-UX (Motif). |
7688 |
+# /usr/lib/X11* are used on HP-UX (X and Xpm). |
7689 |
+# /usr/dt is used on Solaris (Motif). |
7690 |
+# /usr/openwin is used on Solaris (X and Xpm). |
7691 |
+# Other directories are just guesses. |
7692 |
+for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \ |
7693 |
+ /usr/lib/Motif2.1 /usr/lib/Motif2.0 /usr/lib/Motif1.2 \ |
7694 |
+ /usr/lib/Motif1.1 /usr/lib/X11R6 /usr/lib/X11R5 /usr/lib/X11R4 \ |
7695 |
+ /usr/lib/X11 /usr/dt/lib /usr/openwin/lib \ |
7696 |
+ /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \ |
7697 |
+ "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \ |
7698 |
+ "${prefix}"/lib/* /usr/lib/* /usr/local/lib/*; do |
7699 |
+if test -d "$dir" && test "`ls $dir/libXpm.* 2> /dev/null`" != ""; then |
7700 |
+ice_cv_xpm_libraries="$dir" |
7701 |
+break |
7702 |
+fi |
7703 |
+done |
7704 |
+ |
7705 |
+fi |
7706 |
+rm -f conftest* |
7707 |
+# |
7708 |
+LIBS="$ice_xpm_save_LIBS" |
7709 |
+CFLAGS="$ice_xpm_save_CFLAGS" |
7710 |
+CPPFLAGS="$ice_xpm_save_CPPFLAGS" |
7711 |
+LDFLAGS="$ice_xpm_save_LDFLAGS" |
7712 |
+ |
7713 |
+fi |
7714 |
+ |
7715 |
+# |
7716 |
+xpm_libraries="$ice_cv_xpm_libraries" |
7717 |
+fi |
7718 |
+# |
7719 |
+# Add Xpm definitions to X flags |
7720 |
+# |
7721 |
+if test "$xpm_includes" != "" && test "$xpm_includes" != "$x_includes" && test "$xpm_includes" != "no" |
7722 |
+then |
7723 |
+X_CFLAGS="-I$xpm_includes $X_CFLAGS" |
7724 |
+fi |
7725 |
+if test "$xpm_libraries" != "" && test "$xpm_libraries" != "$x_libraries" && test "$xpm_libraries" != "no" |
7726 |
+then |
7727 |
+case "$X_LIBS" in |
7728 |
+ *-R\ *) X_LIBS="-L$xpm_libraries -R $xpm_libraries $X_LIBS";; |
7729 |
+ *-R*) X_LIBS="-L$xpm_libraries -R$xpm_libraries $X_LIBS";; |
7730 |
+ *) X_LIBS="-L$xpm_libraries $X_LIBS";; |
7731 |
+esac |
7732 |
+fi |
7733 |
+# |
7734 |
+# |
7735 |
+xpm_libraries_result="$xpm_libraries" |
7736 |
+xpm_includes_result="$xpm_includes" |
7737 |
+test "$xpm_libraries_result" = "" && |
7738 |
+ xpm_libraries_result="in default path" |
7739 |
+test "$xpm_includes_result" = "" && |
7740 |
+ xpm_includes_result="in default path" |
7741 |
+test "$xpm_libraries_result" = "no" && |
7742 |
+ xpm_libraries_result="(none)" |
7743 |
+test "$xpm_includes_result" = "no" && |
7744 |
+ xpm_includes_result="(none)" |
7745 |
+echo "$ac_t""libraries $xpm_libraries_result, headers $xpm_includes_result" 1>&6 |
7746 |
+ |
7747 |
+LIBS="$LIBS $X_EXTRA_LIBS" |
7748 |
+CFLAGS="$CFLAGS $X_CFLAGS" |
7749 |
+CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
7750 |
+LDFLAGS="$LDFLAGS $X_LIBS" |
7751 |
+ |
7752 |
+X11_LIBS="" |
7753 |
+echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 |
7754 |
+echo "configure:2517: checking for XOpenDisplay in -lX11" >&5 |
7755 |
+ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` |
7756 |
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7757 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
7758 |
+else |
7759 |
+ ac_save_LIBS="$LIBS" |
7760 |
+LIBS="-lX11 ${X_PRE_LIBS} $LIBS" |
7761 |
+cat > conftest.$ac_ext <<EOF |
7762 |
+#line 2525 "configure" |
7763 |
+#include "confdefs.h" |
7764 |
+/* Override any gcc2 internal prototype to avoid an error. */ |
7765 |
+/* We use char because int might match the return type of a gcc2 |
7766 |
+ builtin and then its argument prototype would still apply. */ |
7767 |
+char XOpenDisplay(); |
7768 |
+ |
7769 |
+int main() { |
7770 |
+XOpenDisplay() |
7771 |
+; return 0; } |
7772 |
+EOF |
7773 |
+if { (eval echo configure:2536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7774 |
+ rm -rf conftest* |
7775 |
+ eval "ac_cv_lib_$ac_lib_var=yes" |
7776 |
+else |
7777 |
+ echo "configure: failed program was:" >&5 |
7778 |
+ cat conftest.$ac_ext >&5 |
7779 |
+ rm -rf conftest* |
7780 |
+ eval "ac_cv_lib_$ac_lib_var=no" |
7781 |
+fi |
7782 |
+rm -f conftest* |
7783 |
+LIBS="$ac_save_LIBS" |
7784 |
+ |
7785 |
+fi |
7786 |
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
7787 |
+ echo "$ac_t""yes" 1>&6 |
7788 |
+ X11_LIBS="-lX11" |
7789 |
+else |
7790 |
+ echo "$ac_t""no" 1>&6 |
7791 |
+fi |
7792 |
+ |
7793 |
+if test "$X11_LIBS" = ""; then |
7794 |
+{ echo "configure: error: The X11 library '-lX11' could not be found. |
7795 |
+ Please use the configure options '--x-includes=DIR' |
7796 |
+ and '--x-libraries=DIR' to specify the X location. |
7797 |
+ See the 'config.log' file for further diagnostics." 1>&2; exit 1; } |
7798 |
+fi |
7799 |
+ |
7800 |
+ |
7801 |
+ |
7802 |
+ |
7803 |
+XEXT_LIBS="" |
7804 |
+echo $ac_n "checking for XShapeQueryVersion in -lXext""... $ac_c" 1>&6 |
7805 |
+echo "configure:2568: checking for XShapeQueryVersion in -lXext" >&5 |
7806 |
+ac_lib_var=`echo Xext'_'XShapeQueryVersion | sed 'y%./+-%__p_%'` |
7807 |
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7808 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
7809 |
+else |
7810 |
+ ac_save_LIBS="$LIBS" |
7811 |
+LIBS="-lXext ${X_PRE_LIBS} ${X11_LIBS} $LIBS" |
7812 |
+cat > conftest.$ac_ext <<EOF |
7813 |
+#line 2576 "configure" |
7814 |
+#include "confdefs.h" |
7815 |
+/* Override any gcc2 internal prototype to avoid an error. */ |
7816 |
+/* We use char because int might match the return type of a gcc2 |
7817 |
+ builtin and then its argument prototype would still apply. */ |
7818 |
+char XShapeQueryVersion(); |
7819 |
+ |
7820 |
+int main() { |
7821 |
+XShapeQueryVersion() |
7822 |
+; return 0; } |
7823 |
+EOF |
7824 |
+if { (eval echo configure:2587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7825 |
+ rm -rf conftest* |
7826 |
+ eval "ac_cv_lib_$ac_lib_var=yes" |
7827 |
+else |
7828 |
+ echo "configure: failed program was:" >&5 |
7829 |
+ cat conftest.$ac_ext >&5 |
7830 |
+ rm -rf conftest* |
7831 |
+ eval "ac_cv_lib_$ac_lib_var=no" |
7832 |
+fi |
7833 |
+rm -f conftest* |
7834 |
+LIBS="$ac_save_LIBS" |
7835 |
+ |
7836 |
+fi |
7837 |
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
7838 |
+ echo "$ac_t""yes" 1>&6 |
7839 |
+ XEXT_LIBS="-lXext" |
7840 |
+else |
7841 |
+ echo "$ac_t""no" 1>&6 |
7842 |
+fi |
7843 |
+ |
7844 |
+ |
7845 |
+ |
7846 |
+XT_LIBS="" |
7847 |
+echo $ac_n "checking for XtToolkitInitialize in -lXt""... $ac_c" 1>&6 |
7848 |
+echo "configure:2611: checking for XtToolkitInitialize in -lXt" >&5 |
7849 |
+ac_lib_var=`echo Xt'_'XtToolkitInitialize | sed 'y%./+-%__p_%'` |
7850 |
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7851 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
7852 |
+else |
7853 |
+ ac_save_LIBS="$LIBS" |
7854 |
+LIBS="-lXt ${X_PRE_LIBS} ${X11_LIBS} $LIBS" |
7855 |
+cat > conftest.$ac_ext <<EOF |
7856 |
+#line 2619 "configure" |
7857 |
+#include "confdefs.h" |
7858 |
+/* Override any gcc2 internal prototype to avoid an error. */ |
7859 |
+/* We use char because int might match the return type of a gcc2 |
7860 |
+ builtin and then its argument prototype would still apply. */ |
7861 |
+char XtToolkitInitialize(); |
7862 |
+ |
7863 |
+int main() { |
7864 |
+XtToolkitInitialize() |
7865 |
+; return 0; } |
7866 |
+EOF |
7867 |
+if { (eval echo configure:2630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7868 |
+ rm -rf conftest* |
7869 |
+ eval "ac_cv_lib_$ac_lib_var=yes" |
7870 |
+else |
7871 |
+ echo "configure: failed program was:" >&5 |
7872 |
+ cat conftest.$ac_ext >&5 |
7873 |
+ rm -rf conftest* |
7874 |
+ eval "ac_cv_lib_$ac_lib_var=no" |
7875 |
+fi |
7876 |
+rm -f conftest* |
7877 |
+LIBS="$ac_save_LIBS" |
7878 |
+ |
7879 |
+fi |
7880 |
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
7881 |
+ echo "$ac_t""yes" 1>&6 |
7882 |
+ XT_LIBS="-lXt" |
7883 |
+else |
7884 |
+ echo "$ac_t""no" 1>&6 |
7885 |
+fi |
7886 |
+ |
7887 |
+if test "$XT_LIBS" = ""; then |
7888 |
+{ echo "configure: error: The X toolkit library '-lXt' could not be found. |
7889 |
+ Please use the configure iptions '--x-includes=DIR' |
7890 |
+ and '--x-libraries=DIR' to specify the X location. |
7891 |
+ See the 'config.log' file for further diagnostics." 1>&2; exit 1; } |
7892 |
+fi |
7893 |
+ |
7894 |
+ |
7895 |
+XPM_LIBS="" |
7896 |
+echo $ac_n "checking for XpmCreatePixmapFromXpmImage in -lXpm""... $ac_c" 1>&6 |
7897 |
+echo "configure:2660: checking for XpmCreatePixmapFromXpmImage in -lXpm" >&5 |
7898 |
+ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromXpmImage | sed 'y%./+-%__p_%'` |
7899 |
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7900 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
7901 |
+else |
7902 |
+ ac_save_LIBS="$LIBS" |
7903 |
+LIBS="-lXpm ${X_PRE_LIBS} ${X11_LIBS} $LIBS" |
7904 |
+cat > conftest.$ac_ext <<EOF |
7905 |
+#line 2668 "configure" |
7906 |
+#include "confdefs.h" |
7907 |
+/* Override any gcc2 internal prototype to avoid an error. */ |
7908 |
+/* We use char because int might match the return type of a gcc2 |
7909 |
+ builtin and then its argument prototype would still apply. */ |
7910 |
+char XpmCreatePixmapFromXpmImage(); |
7911 |
+ |
7912 |
+int main() { |
7913 |
+XpmCreatePixmapFromXpmImage() |
7914 |
+; return 0; } |
7915 |
+EOF |
7916 |
+if { (eval echo configure:2679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7917 |
+ rm -rf conftest* |
7918 |
+ eval "ac_cv_lib_$ac_lib_var=yes" |
7919 |
+else |
7920 |
+ echo "configure: failed program was:" >&5 |
7921 |
+ cat conftest.$ac_ext >&5 |
7922 |
+ rm -rf conftest* |
7923 |
+ eval "ac_cv_lib_$ac_lib_var=no" |
7924 |
+fi |
7925 |
+rm -f conftest* |
7926 |
+LIBS="$ac_save_LIBS" |
7927 |
+ |
7928 |
+fi |
7929 |
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
7930 |
+ echo "$ac_t""yes" 1>&6 |
7931 |
+ XPM_LIBS="-lXpm" |
7932 |
+ cat >> confdefs.h <<\EOF |
7933 |
+#define XPM 1 |
7934 |
+EOF |
7935 |
+ |
7936 |
+else |
7937 |
+ echo "$ac_t""no" 1>&6 |
7938 |
+fi |
7939 |
+ |
7940 |
+if test "$XPM_LIBS" != ""; then |
7941 |
+for ac_hdr in X11/xpm.h |
7942 |
+do |
7943 |
+ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7944 |
+echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7945 |
+echo "configure:2708: checking for $ac_hdr" >&5 |
7946 |
+if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7947 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
7948 |
+else |
7949 |
+ cat > conftest.$ac_ext <<EOF |
7950 |
+#line 2713 "configure" |
7951 |
+#include "confdefs.h" |
7952 |
+#include <$ac_hdr> |
7953 |
+EOF |
7954 |
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7955 |
+{ (eval echo configure:2718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7956 |
+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7957 |
+if test -z "$ac_err"; then |
7958 |
+ rm -rf conftest* |
7959 |
+ eval "ac_cv_header_$ac_safe=yes" |
7960 |
+else |
7961 |
+ echo "$ac_err" >&5 |
7962 |
+ echo "configure: failed program was:" >&5 |
7963 |
+ cat conftest.$ac_ext >&5 |
7964 |
+ rm -rf conftest* |
7965 |
+ eval "ac_cv_header_$ac_safe=no" |
7966 |
+fi |
7967 |
+rm -f conftest* |
7968 |
+fi |
7969 |
+if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
7970 |
+ echo "$ac_t""yes" 1>&6 |
7971 |
+ ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
7972 |
+ cat >> confdefs.h <<EOF |
7973 |
+#define $ac_tr_hdr 1 |
7974 |
+EOF |
7975 |
+ |
7976 |
+else |
7977 |
+ echo "$ac_t""no" 1>&6 |
7978 |
+fi |
7979 |
+done |
7980 |
+ |
7981 |
+fi |
7982 |
+ |
7983 |
+ |
7984 |
+XM_LIBS="" |
7985 |
+echo $ac_n "checking for XmRepTypeInstallTearOffModelConverter in -lXm""... $ac_c" 1>&6 |
7986 |
+echo "configure:2749: checking for XmRepTypeInstallTearOffModelConverter in -lXm" >&5 |
7987 |
+ac_lib_var=`echo Xm'_'XmRepTypeInstallTearOffModelConverter | sed 'y%./+-%__p_%'` |
7988 |
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7989 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
7990 |
+else |
7991 |
+ ac_save_LIBS="$LIBS" |
7992 |
+LIBS="-lXm ${X_PRE_LIBS} ${XPM_LIBS} ${XEXT_LIBS} ${XT_LIBS} ${XEXT_LIBS} ${X11_LIBS} $LIBS" |
7993 |
+cat > conftest.$ac_ext <<EOF |
7994 |
+#line 2757 "configure" |
7995 |
+#include "confdefs.h" |
7996 |
+/* Override any gcc2 internal prototype to avoid an error. */ |
7997 |
+/* We use char because int might match the return type of a gcc2 |
7998 |
+ builtin and then its argument prototype would still apply. */ |
7999 |
+char XmRepTypeInstallTearOffModelConverter(); |
8000 |
+ |
8001 |
+int main() { |
8002 |
+XmRepTypeInstallTearOffModelConverter() |
8003 |
+; return 0; } |
8004 |
+EOF |
8005 |
+if { (eval echo configure:2768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8006 |
+ rm -rf conftest* |
8007 |
+ eval "ac_cv_lib_$ac_lib_var=yes" |
8008 |
+else |
8009 |
+ echo "configure: failed program was:" >&5 |
8010 |
+ cat conftest.$ac_ext >&5 |
8011 |
+ rm -rf conftest* |
8012 |
+ eval "ac_cv_lib_$ac_lib_var=no" |
8013 |
+fi |
8014 |
+rm -f conftest* |
8015 |
+LIBS="$ac_save_LIBS" |
8016 |
+ |
8017 |
+fi |
8018 |
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
8019 |
+ echo "$ac_t""yes" 1>&6 |
8020 |
+ XM_LIBS="-lXm" |
8021 |
+ cat >> confdefs.h <<\EOF |
8022 |
+#define HAVE_MOTIF 1 |
8023 |
+EOF |
8024 |
+ |
8025 |
+else |
8026 |
+ echo "$ac_t""no" 1>&6 |
8027 |
+cat >> confdefs.h <<\EOF |
8028 |
+#define HAVE_MOTIF 0 |
8029 |
+EOF |
8030 |
+ |
8031 |
+fi |
8032 |
+ |
8033 |
+if test "$XM_LIBS" = ""; then |
8034 |
+{ echo "configure: error: The Motif library '-lXm' could not be found. |
8035 |
+ Please use the configure options '--with-motif-includes=DIR' |
8036 |
+ and '--with-motif-libraries=DIR' to specify the Xm location. |
8037 |
+ See the 'config.log' file for further diagnostics." 1>&2; exit 1; } |
8038 |
+fi |
8039 |
+ |
8040 |
+ |
8041 |
+ |
8042 |
+GL_LIBS="" |
8043 |
+echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6 |
8044 |
+echo "configure:2807: checking for pow in -lm" >&5 |
8045 |
+ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'` |
8046 |
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
8047 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
8048 |
+else |
8049 |
+ ac_save_LIBS="$LIBS" |
8050 |
+LIBS="-lm $LIBS" |
8051 |
+cat > conftest.$ac_ext <<EOF |
8052 |
+#line 2815 "configure" |
8053 |
+#include "confdefs.h" |
8054 |
+/* Override any gcc2 internal prototype to avoid an error. */ |
8055 |
+/* We use char because int might match the return type of a gcc2 |
8056 |
+ builtin and then its argument prototype would still apply. */ |
8057 |
+char pow(); |
8058 |
+ |
8059 |
+int main() { |
8060 |
+pow() |
8061 |
+; return 0; } |
8062 |
+EOF |
8063 |
+if { (eval echo configure:2826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8064 |
+ rm -rf conftest* |
8065 |
+ eval "ac_cv_lib_$ac_lib_var=yes" |
8066 |
+else |
8067 |
+ echo "configure: failed program was:" >&5 |
8068 |
+ cat conftest.$ac_ext >&5 |
8069 |
+ rm -rf conftest* |
8070 |
+ eval "ac_cv_lib_$ac_lib_var=no" |
8071 |
+fi |
8072 |
+rm -f conftest* |
8073 |
+LIBS="$ac_save_LIBS" |
8074 |
+ |
8075 |
+fi |
8076 |
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
8077 |
+ echo "$ac_t""yes" 1>&6 |
8078 |
+ MATHLIB="true" |
8079 |
+else |
8080 |
+ echo "$ac_t""no" 1>&6 |
8081 |
+fi |
8082 |
+ |
8083 |
+if test x"$MATHLIB" != x"true"; then |
8084 |
+ { echo "configure: error: the math library '-lm' could not be found! |
8085 |
+ Please check the installation of math library" 1>&2; exit 1; } |
8086 |
+fi |
8087 |
+if test x"$MATHLIB" = x"true"; then |
8088 |
+ LIBS="$LIBS -lm" |
8089 |
+ |
8090 |
+ |
8091 |
+unset sim_ac_gl_cppflags |
8092 |
+unset sim_ac_gl_ldflags |
8093 |
+unset sim_ac_gl_libs |
8094 |
+sim_ac_gl_avail=no |
8095 |
+ |
8096 |
+# Check whether --with-mesa or --without-mesa was given. |
8097 |
+if test "${with_mesa+set}" = set; then |
8098 |
+ withval="$with_mesa" |
8099 |
+ : |
8100 |
+else |
8101 |
+ with_mesa=yes |
8102 |
+fi |
8103 |
+ |
8104 |
+ |
8105 |
+# It's usually libGL.so on UNIX systems and opengl32.lib on MSWindows. |
8106 |
+sim_ac_gl_glnames="-lGL -lopengl32" |
8107 |
+sim_ac_gl_mesaglnames=-lMesaGL |
8108 |
+GL_LIBS="" |
8109 |
+ |
8110 |
+if test "x$with_mesa" = "xyes"; then |
8111 |
+ sim_ac_gl_first=$sim_ac_gl_mesaglnames |
8112 |
+ sim_ac_gl_second=$sim_ac_gl_glnames |
8113 |
+else |
8114 |
+ sim_ac_gl_first=$sim_ac_gl_glnames |
8115 |
+ sim_ac_gl_second=$sim_ac_gl_mesaglnames |
8116 |
+fi |
8117 |
+ |
8118 |
+# Check whether --with-opengl or --without-opengl was given. |
8119 |
+if test "${with_opengl+set}" = set; then |
8120 |
+ withval="$with_opengl" |
8121 |
+ : |
8122 |
+else |
8123 |
+ with_opengl=yes |
8124 |
+fi |
8125 |
+ |
8126 |
+ |
8127 |
+if test x"$with_opengl" != xno; then |
8128 |
+ if test x"$with_opengl" != xyes; then |
8129 |
+ sim_ac_gl_cppflags="-I${with_opengl}/include" |
8130 |
+ sim_ac_gl_ldflags="-L${with_opengl}/lib" |
8131 |
+ else |
8132 |
+ # This is a common location for the OpenGL library on HPUX. |
8133 |
+ sim_ac_gl_hpux=/opt/graphics/OpenGL |
8134 |
+ if test -d $sim_ac_gl_hpux; then |
8135 |
+ sim_ac_gl_cppflags=-I$sim_ac_gl_hpux/include |
8136 |
+ sim_ac_gl_ldflags=-L$sim_ac_gl_hpux/lib |
8137 |
+ fi |
8138 |
+ fi |
8139 |
+ |
8140 |
+ sim_ac_save_cppflags=$CPPFLAGS |
8141 |
+ sim_ac_save_ldflags=$LDFLAGS |
8142 |
+ sim_ac_save_libs=$LIBS |
8143 |
+ |
8144 |
+ CPPFLAGS="$CPPFLAGS $sim_ac_gl_cppflags" |
8145 |
+ LDFLAGS="$LDFLAGS $sim_ac_gl_ldflags" |
8146 |
+ |
8147 |
+ echo $ac_n "checking whether OpenGL library is available""... $ac_c" 1>&6 |
8148 |
+echo "configure:2911: checking whether OpenGL library is available" >&5 |
8149 |
+if eval "test \"`echo '$''{'sim_cv_lib_gl'+set}'`\" = set"; then |
8150 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
8151 |
+else |
8152 |
+ sim_cv_lib_gl=UNRESOLVED |
8153 |
+ |
8154 |
+ for sim_ac_gl_libcheck in $sim_ac_gl_first $sim_ac_gl_second; do |
8155 |
+ if test "x$sim_cv_lib_gl" = "xUNRESOLVED"; then |
8156 |
+ LIBS="$sim_ac_gl_libcheck $sim_ac_save_libs -lm" |
8157 |
+ cat > conftest.$ac_ext <<EOF |
8158 |
+#line 2921 "configure" |
8159 |
+#include "confdefs.h" |
8160 |
+ |
8161 |
+ #if HAVE_WINDOWS_H |
8162 |
+ #include <windows.h> |
8163 |
+ #endif /* HAVE_WINDOWS_H */ |
8164 |
+ #include <GL/gl.h> |
8165 |
+ |
8166 |
+int main() { |
8167 |
+glPointSize(1.0f); |
8168 |
+; return 0; } |
8169 |
+EOF |
8170 |
+if { (eval echo configure:2933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8171 |
+ rm -rf conftest* |
8172 |
+ sim_cv_lib_gl="$sim_ac_gl_libcheck" |
8173 |
+else |
8174 |
+ echo "configure: failed program was:" >&5 |
8175 |
+ cat conftest.$ac_ext >&5 |
8176 |
+fi |
8177 |
+rm -f conftest* |
8178 |
+ fi |
8179 |
+ done |
8180 |
+ |
8181 |
+fi |
8182 |
+ |
8183 |
+echo "$ac_t""$sim_cv_lib_gl" 1>&6 |
8184 |
+ |
8185 |
+ LIBS="$sim_ac_save_libs" |
8186 |
+ |
8187 |
+ if test "x$sim_cv_lib_gl" != "xUNRESOLVED"; then |
8188 |
+ sim_ac_gl_libs="$sim_cv_lib_gl" |
8189 |
+ else |
8190 |
+ echo "configure: warning: couldn't compile or link with OpenGL library -- trying with pthread library in place..." 1>&2 |
8191 |
+ |
8192 |
+ |
8193 |
+ |
8194 |
+# Check whether --with-pthread or --without-pthread was given. |
8195 |
+if test "${with_pthread+set}" = set; then |
8196 |
+ withval="$with_pthread" |
8197 |
+ : |
8198 |
+else |
8199 |
+ with_pthread=yes |
8200 |
+fi |
8201 |
+ |
8202 |
+ |
8203 |
+sim_ac_pthread_avail=no |
8204 |
+ |
8205 |
+if test x"$with_pthread" != xno; then |
8206 |
+ if test x"$with_pthread" != xyes; then |
8207 |
+ sim_ac_pthread_cppflags="-I${with_pthread}/include" |
8208 |
+ sim_ac_pthread_ldflags="-L${with_pthread}/lib" |
8209 |
+ fi |
8210 |
+ sim_ac_pthread_libs_first="-lpthread" |
8211 |
+ sim_ac_pthread_libs_second="-pthread" |
8212 |
+ sim_ac_pthread_libs_third="-lc_r" |
8213 |
+ sim_ac_pthread_libs="" |
8214 |
+# FreeBSD 4.x use "-pthread" or "-lc_r" |
8215 |
+ |
8216 |
+ sim_ac_save_cppflags=$CPPFLAGS |
8217 |
+ sim_ac_save_ldflags=$LDFLAGS |
8218 |
+ sim_ac_save_libs=$LIBS |
8219 |
+ |
8220 |
+ echo $ac_n "checking whether the pthread development system is available""... $ac_c" 1>&6 |
8221 |
+echo "configure:2984: checking whether the pthread development system is available" >&5 |
8222 |
+if eval "test \"`echo '$''{'sim_cv_lib_pthread_avail'+set}'`\" = set"; then |
8223 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
8224 |
+else |
8225 |
+ |
8226 |
+ for sim_pthread_libs in $sim_ac_pthread_libs_first \ |
8227 |
+ $sim_ac_pthread_libs_second $sim_ac_pthread_libs_third ; do |
8228 |
+ if test x"$sim_cv_lib_pthread_avail" != x"yes" ; then |
8229 |
+ CPPFLAGS="$CPPFLAGS $sim_ac_pthread_cppflags" |
8230 |
+ LDFLAGS="$LDFLAGS $sim_ac_pthread_ldflags" |
8231 |
+ LIBS="$sim_pthread_libs $LIBS" |
8232 |
+ cat > conftest.$ac_ext <<EOF |
8233 |
+#line 2996 "configure" |
8234 |
+#include "confdefs.h" |
8235 |
+#include <pthread.h> |
8236 |
+int main() { |
8237 |
+(void)pthread_create(0L, 0L, 0L, 0L); |
8238 |
+; return 0; } |
8239 |
+EOF |
8240 |
+if { (eval echo configure:3003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8241 |
+ rm -rf conftest* |
8242 |
+ sim_cv_lib_pthread_avail=yes |
8243 |
+ sim_ac_pthread_libs="$sim_pthread_libs" |
8244 |
+ |
8245 |
+else |
8246 |
+ echo "configure: failed program was:" >&5 |
8247 |
+ cat conftest.$ac_ext >&5 |
8248 |
+ rm -rf conftest* |
8249 |
+ sim_cv_lib_pthread_avail=no |
8250 |
+fi |
8251 |
+rm -f conftest* |
8252 |
+ fi |
8253 |
+ if test x"$sim_cv_lib_pthread_avail" != x"yes"; then |
8254 |
+ CPPFLAGS=$sim_ac_save_cppflags |
8255 |
+ LDFLAGS=$sim_ac_save_ldflags |
8256 |
+ LIBS=$sim_ac_save_libs |
8257 |
+ fi |
8258 |
+ done |
8259 |
+ |
8260 |
+ |
8261 |
+fi |
8262 |
+ |
8263 |
+echo "$ac_t""$sim_cv_lib_pthread_avail" 1>&6 |
8264 |
+ |
8265 |
+ if test x"$sim_cv_lib_pthread_avail" = xyes; then |
8266 |
+ sim_ac_pthread_avail=yes |
8267 |
+ |
8268 |
+ sim_ac_gl_cppflags="$sim_ac_gl_cppflags $sim_ac_pthread_cppflags" |
8269 |
+ sim_ac_gl_ldflags="$sim_ac_gl_ldflags $sim_ac_pthread_ldflags" |
8270 |
+ else |
8271 |
+ CPPFLAGS=$sim_ac_save_cppflags |
8272 |
+ LDFLAGS=$sim_ac_save_ldflags |
8273 |
+ LIBS=$sim_ac_save_libs |
8274 |
+ echo "configure: warning: couldn't compile or link with pthread library" 1>&2 |
8275 |
+ fi |
8276 |
+fi |
8277 |
+ |
8278 |
+ |
8279 |
+ if test "x$sim_ac_pthread_avail" = "xyes"; then |
8280 |
+ echo $ac_n "checking whether OpenGL library can be linked with pthread library""... $ac_c" 1>&6 |
8281 |
+echo "configure:3044: checking whether OpenGL library can be linked with pthread library" >&5 |
8282 |
+if eval "test \"`echo '$''{'sim_cv_lib_gl_pthread'+set}'`\" = set"; then |
8283 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
8284 |
+else |
8285 |
+ sim_cv_lib_gl_pthread=UNRESOLVED |
8286 |
+ for sim_ac_gl_libcheck in $sim_ac_gl_first $sim_ac_gl_second; do |
8287 |
+ if test "x$sim_cv_lib_gl_pthread" = "xUNRESOLVED"; then |
8288 |
+ LIBS="$sim_ac_gl_libcheck $sim_ac_pthread_libs $sim_ac_save_libs" |
8289 |
+ cat > conftest.$ac_ext <<EOF |
8290 |
+#line 3053 "configure" |
8291 |
+#include "confdefs.h" |
8292 |
+ |
8293 |
+#if HAVE_WINDOWS_H |
8294 |
+#include <windows.h> |
8295 |
+#endif /* HAVE_WINDOWS_H */ |
8296 |
+#include <GL/gl.h> |
8297 |
+ |
8298 |
+int main() { |
8299 |
+ |
8300 |
+glPointSize(1.0f); |
8301 |
+ |
8302 |
+; return 0; } |
8303 |
+EOF |
8304 |
+if { (eval echo configure:3067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8305 |
+ rm -rf conftest* |
8306 |
+ sim_cv_lib_gl_pthread="$sim_ac_gl_libcheck" |
8307 |
+else |
8308 |
+ echo "configure: failed program was:" >&5 |
8309 |
+ cat conftest.$ac_ext >&5 |
8310 |
+fi |
8311 |
+rm -f conftest* |
8312 |
+ fi |
8313 |
+ done |
8314 |
+ |
8315 |
+fi |
8316 |
+ |
8317 |
+echo "$ac_t""$sim_cv_lib_gl_pthread" 1>&6 |
8318 |
+ |
8319 |
+ if test "x$sim_cv_lib_gl_pthread" != "xUNRESOLVED"; then |
8320 |
+ sim_ac_gl_libs="$sim_cv_lib_gl_pthread $sim_ac_pthread_libs" |
8321 |
+ fi |
8322 |
+ fi |
8323 |
+ fi |
8324 |
+ |
8325 |
+ |
8326 |
+ if test "x$sim_ac_gl_libs" != "x"; then |
8327 |
+ LIBS="$sim_ac_save_libs" |
8328 |
+ GL_LIBS="$sim_ac_gl_libs" |
8329 |
+ sim_ac_gl_avail=yes |
8330 |
+ OPENGLLIB="true" |
8331 |
+ else |
8332 |
+ CPPFLAGS=$sim_ac_save_cppflags |
8333 |
+ LDFLAGS=$sim_ac_save_ldflags |
8334 |
+ LIBS=$sim_ac_save_libs |
8335 |
+ |
8336 |
+ fi |
8337 |
+fi |
8338 |
+ |
8339 |
+ if test x"$OPENGLLIB" = x"true" ; then |
8340 |
+ |
8341 |
+ |
8342 |
+unset sim_ac_glu_cppflags |
8343 |
+unset sim_ac_glu_ldflags |
8344 |
+unset sim_ac_glu_libs |
8345 |
+sim_ac_glu_avail=no |
8346 |
+ |
8347 |
+# It's usually libGLU.so on UNIX systems and glu32.lib on MSWindows. |
8348 |
+sim_ac_glu_names="-lGLU -lglu32" |
8349 |
+sim_ac_glu_mesanames=-lMesaGLU |
8350 |
+# with_mesa is set from the SIM_AC_CHECK_OPENGL macro. |
8351 |
+if test "x$with_mesa" = "xyes"; then |
8352 |
+ sim_ac_glu_first=$sim_ac_glu_mesanames |
8353 |
+ sim_ac_glu_second=$sim_ac_glu_names |
8354 |
+else |
8355 |
+ sim_ac_glu_first=$sim_ac_glu_names |
8356 |
+ sim_ac_glu_second=$sim_ac_glu_mesanames |
8357 |
+fi |
8358 |
+ |
8359 |
+# Check whether --with-glu or --without-glu was given. |
8360 |
+if test "${with_glu+set}" = set; then |
8361 |
+ withval="$with_glu" |
8362 |
+ : |
8363 |
+else |
8364 |
+ with_glu=yes |
8365 |
+fi |
8366 |
+ |
8367 |
+ |
8368 |
+if test x"$with_glu" != xno; then |
8369 |
+ if test x"$with_glu" != xyes; then |
8370 |
+ sim_ac_glu_cppflags="-I${with_glu}/include" |
8371 |
+ sim_ac_glu_ldflags="-L${with_glu}/lib" |
8372 |
+ fi |
8373 |
+ |
8374 |
+ sim_ac_save_cppflags=$CPPFLAGS |
8375 |
+ sim_ac_save_ldflags=$LDFLAGS |
8376 |
+ sim_ac_save_libs=$LIBS |
8377 |
+ |
8378 |
+ CPPFLAGS="$CPPFLAGS $sim_ac_glu_cppflags" |
8379 |
+ LDFLAGS="$LDFLAGS $sim_ac_glu_ldflags" |
8380 |
+ |
8381 |
+ echo $ac_n "checking whether GLU is available""... $ac_c" 1>&6 |
8382 |
+echo "configure:3145: checking whether GLU is available" >&5 |
8383 |
+if eval "test \"`echo '$''{'sim_cv_lib_glu'+set}'`\" = set"; then |
8384 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
8385 |
+else |
8386 |
+ sim_cv_lib_glu=UNRESOLVED |
8387 |
+ |
8388 |
+ # Some platforms (like BeOS) have the GLU functionality in the GL |
8389 |
+ # library (and no GLU library present). |
8390 |
+ for sim_ac_glu_libcheck in "" $sim_ac_glu_first $sim_ac_glu_second; do |
8391 |
+ if test "x$sim_cv_lib_glu" = "xUNRESOLVED"; then |
8392 |
+ LIBS="$sim_ac_glu_libcheck $sim_ac_save_libs $GL_LIBS" |
8393 |
+ cat > conftest.$ac_ext <<EOF |
8394 |
+#line 3157 "configure" |
8395 |
+#include "confdefs.h" |
8396 |
+ |
8397 |
+#if HAVE_WINDOWS_H |
8398 |
+#include <windows.h> |
8399 |
+#endif /* HAVE_WINDOWS_H */ |
8400 |
+#include <GL/gl.h> |
8401 |
+#include <GL/glu.h> |
8402 |
+ |
8403 |
+int main() { |
8404 |
+ |
8405 |
+gluSphere(0L, 1.0, 1, 1); |
8406 |
+ |
8407 |
+; return 0; } |
8408 |
+EOF |
8409 |
+if { (eval echo configure:3172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8410 |
+ rm -rf conftest* |
8411 |
+ sim_cv_lib_glu="$sim_ac_glu_libcheck" |
8412 |
+else |
8413 |
+ echo "configure: failed program was:" >&5 |
8414 |
+ cat conftest.$ac_ext >&5 |
8415 |
+fi |
8416 |
+rm -f conftest* |
8417 |
+ fi |
8418 |
+ done |
8419 |
+ |
8420 |
+fi |
8421 |
+ |
8422 |
+echo "$ac_t""$sim_cv_lib_glu" 1>&6 |
8423 |
+ |
8424 |
+ LIBS="$sim_ac_save_libs" |
8425 |
+ |
8426 |
+ if test "x$sim_cv_lib_glu" != "xUNRESOLVED"; then |
8427 |
+ sim_ac_glu_libs="$sim_cv_lib_glu" |
8428 |
+ LIBS="$sim_ac_save_libs" |
8429 |
+ GL_LIBS="$GL_LIBS $sim_ac_glu_libs" |
8430 |
+ sim_ac_glu_avail=yes |
8431 |
+ GLULIB="true" |
8432 |
+ else |
8433 |
+ CPPFLAGS=$sim_ac_save_cppflags |
8434 |
+ LDFLAGS=$sim_ac_save_ldflags |
8435 |
+ LIBS=$sim_ac_save_libs |
8436 |
+ |
8437 |
+ fi |
8438 |
+fi |
8439 |
+ |
8440 |
+ if test x"$GLULIB" = x"true" ; then |
8441 |
+ |
8442 |
+ |
8443 |
+# Check whether --with-glw or --without-glw was given. |
8444 |
+if test "${with_glw+set}" = set; then |
8445 |
+ withval="$with_glw" |
8446 |
+ : |
8447 |
+else |
8448 |
+ with_glw=yes |
8449 |
+fi |
8450 |
+ |
8451 |
+ |
8452 |
+if test x"$with_glw" != x"no" ; then |
8453 |
+ if test x"$with_glw" != x"yes" ; then |
8454 |
+ sim_ac_glw_cppflags="-I${with_glw}/include" |
8455 |
+ sim_ac_glw_ldflags="-L${with_glw}/lib" |
8456 |
+ fi |
8457 |
+ |
8458 |
+ SAVECPPFLAGS="$CPPFLAGS" |
8459 |
+ SAVELDFLAGS="$LDFLAGS" |
8460 |
+ SAVELIBS="$LIBS" |
8461 |
+ |
8462 |
+ CPPFLAGS="$SAVECPPFLAGS $sim_ac_glw_cppflags" |
8463 |
+ LDFLAGS="$SAVELDFLAGS $sim_ac_glw_ldflags" |
8464 |
+ echo $ac_n "checking for a GL widget""... $ac_c" 1>&6 |
8465 |
+echo "configure:3228: checking for a GL widget" >&5 |
8466 |
+if eval "test \"`echo '$''{'sim_cv_motif_glwidget'+set}'`\" = set"; then |
8467 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
8468 |
+else |
8469 |
+ |
8470 |
+ XWIDGETLIBS="$X_LIBS $X11_LIBS $XT_LIBS $X_LIBS $X_PRE_LIBS $XM_LIBS" |
8471 |
+ sim_cv_motif_glwidget=UNKNOWN |
8472 |
+ for lib in GLwM GLw MesaGLwM MesaGLw; do |
8473 |
+ if test x"$sim_cv_motif_glwidget" = x"UNKNOWN"; then |
8474 |
+ LIBS="-l$lib $SAVELIBS $XWIDGETLIBS $GL_LIBS -lm" |
8475 |
+ cat > conftest.$ac_ext <<EOF |
8476 |
+#line 3239 "configure" |
8477 |
+#include "confdefs.h" |
8478 |
+#include <X11/Intrinsic.h> |
8479 |
+ #include <GL/GLwMDrawA.h> |
8480 |
+ extern WidgetClass glwMDrawingAreaWidgetClass; |
8481 |
+int main() { |
8482 |
+Widget glxManager = NULL; |
8483 |
+ Widget glxWidget = XtVaCreateManagedWidget("GLWidget", |
8484 |
+ glwMDrawingAreaWidgetClass, glxManager, NULL); |
8485 |
+; return 0; } |
8486 |
+EOF |
8487 |
+if { (eval echo configure:3250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8488 |
+ rm -rf conftest* |
8489 |
+ sim_cv_motif_glwidget="glwMDrawingAreaWidgetClass GLwMDrawA.h $lib" |
8490 |
+else |
8491 |
+ echo "configure: failed program was:" >&5 |
8492 |
+ cat conftest.$ac_ext >&5 |
8493 |
+ rm -rf conftest* |
8494 |
+ sim_cv_motif_glwidget=UNKNOWN |
8495 |
+fi |
8496 |
+rm -f conftest* |
8497 |
+ fi |
8498 |
+ done |
8499 |
+ LIBS=$SAVELIBS |
8500 |
+ |
8501 |
+fi |
8502 |
+ |
8503 |
+echo "$ac_t""$sim_cv_motif_glwidget" 1>&6 |
8504 |
+ |
8505 |
+if test "x$sim_cv_motif_glwidget" = "xUNKNOWN"; then |
8506 |
+ GL_LIBS="" |
8507 |
+else |
8508 |
+ sim_ac_motif_glwidget_class=`echo $sim_cv_motif_glwidget | cut -d" " -f1` |
8509 |
+ sim_ac_motif_glwidget_header=`echo $sim_cv_motif_glwidget | cut -d" " -f2` |
8510 |
+ sim_ac_motif_glwidget_library=`echo $sim_cv_motif_glwidget | cut -d" " -f3` |
8511 |
+ |
8512 |
+ echo $ac_n "checking the $sim_ac_motif_glwidget_header header location""... $ac_c" 1>&6 |
8513 |
+echo "configure:3276: checking the $sim_ac_motif_glwidget_header header location" >&5 |
8514 |
+if eval "test \"`echo '$''{'sim_cv_motif_glwidget_hdrloc'+set}'`\" = set"; then |
8515 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
8516 |
+else |
8517 |
+ sim_cv_motif_glwidget_hdrloc=UNKNOWN |
8518 |
+ for location in X11/GLw GL; do |
8519 |
+ if test "x$sim_cv_motif_glwidget_hdrloc" = "xUNKNOWN"; then |
8520 |
+ cat > conftest.$ac_ext <<EOF |
8521 |
+#line 3284 "configure" |
8522 |
+#include "confdefs.h" |
8523 |
+#include <X11/Intrinsic.h> |
8524 |
+ #include <$location/$sim_ac_motif_glwidget_header> |
8525 |
+EOF |
8526 |
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
8527 |
+{ (eval echo configure:3290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8528 |
+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8529 |
+if test -z "$ac_err"; then |
8530 |
+ rm -rf conftest* |
8531 |
+ sim_cv_motif_glwidget_hdrloc=$location |
8532 |
+else |
8533 |
+ echo "$ac_err" >&5 |
8534 |
+ echo "configure: failed program was:" >&5 |
8535 |
+ cat conftest.$ac_ext >&5 |
8536 |
+ rm -rf conftest* |
8537 |
+ sim_cv_motif_glwidget_hdrloc=UNKNOWN |
8538 |
+fi |
8539 |
+rm -f conftest* |
8540 |
+ fi |
8541 |
+ done |
8542 |
+fi |
8543 |
+ |
8544 |
+echo "$ac_t""$sim_cv_motif_glwidget_hdrloc" 1>&6 |
8545 |
+ |
8546 |
+ if test "x$sim_cv_motif_glwidget_hdrloc" = "xUNKNOWN"; then |
8547 |
+ GL_LIBS="" |
8548 |
+ else |
8549 |
+ if test "x$sim_ac_motif_glwidget_header" = "xGLwDrawA.h"; then |
8550 |
+ if test "x$sim_cv_motif_glwidget_hdrloc" = "xGL"; then |
8551 |
+ cat >> confdefs.h <<\EOF |
8552 |
+#define HAVE_GL_GLWDRAWA_H 1 |
8553 |
+EOF |
8554 |
+ |
8555 |
+ else |
8556 |
+ cat >> confdefs.h <<\EOF |
8557 |
+#define HAVE_X11_GLW_GLWDRAWA_H 1 |
8558 |
+EOF |
8559 |
+ |
8560 |
+ fi |
8561 |
+ else |
8562 |
+ if test "x$sim_cv_motif_glwidget_hdrloc" = "xGL"; then |
8563 |
+ cat >> confdefs.h <<\EOF |
8564 |
+#define HAVE_GL_GLWMDRAWA_H 1 |
8565 |
+EOF |
8566 |
+ |
8567 |
+ else |
8568 |
+ cat >> confdefs.h <<\EOF |
8569 |
+#define HAVE_X11_GLW_GLWMDRAWA_H 1 |
8570 |
+EOF |
8571 |
+ |
8572 |
+ fi |
8573 |
+ fi |
8574 |
+ |
8575 |
+ cat >> confdefs.h <<EOF |
8576 |
+#define XT_GLWIDGET $sim_ac_motif_glwidget_class |
8577 |
+EOF |
8578 |
+ |
8579 |
+ |
8580 |
+ LIBS="$LIBS" |
8581 |
+ GL_LIBS="$GL_LIBS -l$sim_ac_motif_glwidget_library" |
8582 |
+ GLWIDGETLIB="true" cat >> confdefs.h <<\EOF |
8583 |
+#define GL 1 |
8584 |
+EOF |
8585 |
+ |
8586 |
+ fi |
8587 |
+fi |
8588 |
+ |
8589 |
+fi |
8590 |
+ |
8591 |
+ fi |
8592 |
+ fi |
8593 |
+fi |
8594 |
+ |
8595 |
+ |
8596 |
+ |
8597 |
+ |
8598 |
+echo $ac_n "checking for basename in -lgen""... $ac_c" 1>&6 |
8599 |
+echo "configure:3362: checking for basename in -lgen" >&5 |
8600 |
+ac_lib_var=`echo gen'_'basename | sed 'y%./+-%__p_%'` |
8601 |
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
8602 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
8603 |
+else |
8604 |
+ ac_save_LIBS="$LIBS" |
8605 |
+LIBS="-lgen $LIBS" |
8606 |
+cat > conftest.$ac_ext <<EOF |
8607 |
+#line 3370 "configure" |
8608 |
+#include "confdefs.h" |
8609 |
+/* Override any gcc2 internal prototype to avoid an error. */ |
8610 |
+/* We use char because int might match the return type of a gcc2 |
8611 |
+ builtin and then its argument prototype would still apply. */ |
8612 |
+char basename(); |
8613 |
+ |
8614 |
+int main() { |
8615 |
+basename() |
8616 |
+; return 0; } |
8617 |
+EOF |
8618 |
+if { (eval echo configure:3381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8619 |
+ rm -rf conftest* |
8620 |
+ eval "ac_cv_lib_$ac_lib_var=yes" |
8621 |
+else |
8622 |
+ echo "configure: failed program was:" >&5 |
8623 |
+ cat conftest.$ac_ext >&5 |
8624 |
+ rm -rf conftest* |
8625 |
+ eval "ac_cv_lib_$ac_lib_var=no" |
8626 |
+fi |
8627 |
+rm -f conftest* |
8628 |
+LIBS="$ac_save_LIBS" |
8629 |
+ |
8630 |
+fi |
8631 |
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
8632 |
+ echo "$ac_t""yes" 1>&6 |
8633 |
+ cat >> confdefs.h <<\EOF |
8634 |
+#define HAVE_LIBGEN 1 |
8635 |
+EOF |
8636 |
+ LIBS="${LIBS} -lgen" |
8637 |
+else |
8638 |
+ echo "$ac_t""no" 1>&6 |
8639 |
+fi |
8640 |
+ |
8641 |
+ |
8642 |
+echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
8643 |
+echo "configure:3406: checking for ANSI C header files" >&5 |
8644 |
+if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
8645 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
8646 |
+else |
8647 |
+ cat > conftest.$ac_ext <<EOF |
8648 |
+#line 3411 "configure" |
8649 |
+#include "confdefs.h" |
8650 |
+#include <stdlib.h> |
8651 |
+#include <stdarg.h> |
8652 |
+#include <string.h> |
8653 |
+#include <float.h> |
8654 |
+EOF |
8655 |
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
8656 |
+{ (eval echo configure:3419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8657 |
+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8658 |
+if test -z "$ac_err"; then |
8659 |
+ rm -rf conftest* |
8660 |
+ ac_cv_header_stdc=yes |
8661 |
+else |
8662 |
+ echo "$ac_err" >&5 |
8663 |
+ echo "configure: failed program was:" >&5 |
8664 |
+ cat conftest.$ac_ext >&5 |
8665 |
+ rm -rf conftest* |
8666 |
+ ac_cv_header_stdc=no |
8667 |
+fi |
8668 |
+rm -f conftest* |
8669 |
+ |
8670 |
+if test $ac_cv_header_stdc = yes; then |
8671 |
+ # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
8672 |
+cat > conftest.$ac_ext <<EOF |
8673 |
+#line 3436 "configure" |
8674 |
+#include "confdefs.h" |
8675 |
+#include <string.h> |
8676 |
+EOF |
8677 |
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8678 |
+ egrep "memchr" >/dev/null 2>&1; then |
8679 |
+ : |
8680 |
+else |
8681 |
+ rm -rf conftest* |
8682 |
+ ac_cv_header_stdc=no |
8683 |
+fi |
8684 |
+rm -f conftest* |
8685 |
+ |
8686 |
+fi |
8687 |
+ |
8688 |
+if test $ac_cv_header_stdc = yes; then |
8689 |
+ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
8690 |
+cat > conftest.$ac_ext <<EOF |
8691 |
+#line 3454 "configure" |
8692 |
+#include "confdefs.h" |
8693 |
+#include <stdlib.h> |
8694 |
+EOF |
8695 |
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8696 |
+ egrep "free" >/dev/null 2>&1; then |
8697 |
+ : |
8698 |
+else |
8699 |
+ rm -rf conftest* |
8700 |
+ ac_cv_header_stdc=no |
8701 |
+fi |
8702 |
+rm -f conftest* |
8703 |
+ |
8704 |
+fi |
8705 |
+ |
8706 |
+if test $ac_cv_header_stdc = yes; then |
8707 |
+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
8708 |
+if test "$cross_compiling" = yes; then |
8709 |
+ : |
8710 |
+else |
8711 |
+ cat > conftest.$ac_ext <<EOF |
8712 |
+#line 3475 "configure" |
8713 |
+#include "confdefs.h" |
8714 |
+#include <ctype.h> |
8715 |
+#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
8716 |
+#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
8717 |
+#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
8718 |
+int main () { int i; for (i = 0; i < 256; i++) |
8719 |
+if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
8720 |
+exit (0); } |
8721 |
+ |
8722 |
+EOF |
8723 |
+if { (eval echo configure:3486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
8724 |
+then |
8725 |
+ : |
8726 |
+else |
8727 |
+ echo "configure: failed program was:" >&5 |
8728 |
+ cat conftest.$ac_ext >&5 |
8729 |
+ rm -fr conftest* |
8730 |
+ ac_cv_header_stdc=no |
8731 |
+fi |
8732 |
+rm -fr conftest* |
8733 |
+fi |
8734 |
+ |
8735 |
+fi |
8736 |
+fi |
8737 |
+ |
8738 |
+echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
8739 |
+if test $ac_cv_header_stdc = yes; then |
8740 |
+ cat >> confdefs.h <<\EOF |
8741 |
+#define STDC_HEADERS 1 |
8742 |
+EOF |
8743 |
+ |
8744 |
+fi |
8745 |
+ |
8746 |
+for ac_hdr in unistd.h |
8747 |
+do |
8748 |
+ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
8749 |
+echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
8750 |
+echo "configure:3513: checking for $ac_hdr" >&5 |
8751 |
+if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8752 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
8753 |
+else |
8754 |
+ cat > conftest.$ac_ext <<EOF |
8755 |
+#line 3518 "configure" |
8756 |
+#include "confdefs.h" |
8757 |
+#include <$ac_hdr> |
8758 |
+EOF |
8759 |
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
8760 |
+{ (eval echo configure:3523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8761 |
+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8762 |
+if test -z "$ac_err"; then |
8763 |
+ rm -rf conftest* |
8764 |
+ eval "ac_cv_header_$ac_safe=yes" |
8765 |
+else |
8766 |
+ echo "$ac_err" >&5 |
8767 |
+ echo "configure: failed program was:" >&5 |
8768 |
+ cat conftest.$ac_ext >&5 |
8769 |
+ rm -rf conftest* |
8770 |
+ eval "ac_cv_header_$ac_safe=no" |
8771 |
+fi |
8772 |
+rm -f conftest* |
8773 |
+fi |
8774 |
+if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
8775 |
+ echo "$ac_t""yes" 1>&6 |
8776 |
+ ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
8777 |
+ cat >> confdefs.h <<EOF |
8778 |
+#define $ac_tr_hdr 1 |
8779 |
+EOF |
8780 |
+ |
8781 |
+else |
8782 |
+ echo "$ac_t""no" 1>&6 |
8783 |
+fi |
8784 |
+done |
8785 |
+ |
8786 |
+ |
8787 |
+echo $ac_n "checking for working const""... $ac_c" 1>&6 |
8788 |
+echo "configure:3551: checking for working const" >&5 |
8789 |
+if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
8790 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
8791 |
+else |
8792 |
+ cat > conftest.$ac_ext <<EOF |
8793 |
+#line 3556 "configure" |
8794 |
+#include "confdefs.h" |
8795 |
+ |
8796 |
+int main() { |
8797 |
+ |
8798 |
+/* Ultrix mips cc rejects this. */ |
8799 |
+typedef int charset[2]; const charset x; |
8800 |
+/* SunOS 4.1.1 cc rejects this. */ |
8801 |
+char const *const *ccp; |
8802 |
+char **p; |
8803 |
+/* NEC SVR4.0.2 mips cc rejects this. */ |
8804 |
+struct point {int x, y;}; |
8805 |
+static struct point const zero = {0,0}; |
8806 |
+/* AIX XL C 1.02.0.0 rejects this. |
8807 |
+ It does not let you subtract one const X* pointer from another in an arm |
8808 |
+ of an if-expression whose if-part is not a constant expression */ |
8809 |
+const char *g = "string"; |
8810 |
+ccp = &g + (g ? g-g : 0); |
8811 |
+/* HPUX 7.0 cc rejects these. */ |
8812 |
+++ccp; |
8813 |
+p = (char**) ccp; |
8814 |
+ccp = (char const *const *) p; |
8815 |
+{ /* SCO 3.2v4 cc rejects this. */ |
8816 |
+ char *t; |
8817 |
+ char const *s = 0 ? (char *) 0 : (char const *) 0; |
8818 |
+ |
8819 |
+ *t++ = 0; |
8820 |
+} |
8821 |
+{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
8822 |
+ int x[] = {25, 17}; |
8823 |
+ const int *foo = &x[0]; |
8824 |
+ ++foo; |
8825 |
+} |
8826 |
+{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
8827 |
+ typedef const int *iptr; |
8828 |
+ iptr p = 0; |
8829 |
+ ++p; |
8830 |
+} |
8831 |
+{ /* AIX XL C 1.02.0.0 rejects this saying |
8832 |
+ "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
8833 |
+ struct s { int j; const int *ap[3]; }; |
8834 |
+ struct s *b; b->j = 5; |
8835 |
+} |
8836 |
+{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
8837 |
+ const int foo = 10; |
8838 |
+} |
8839 |
+ |
8840 |
+; return 0; } |
8841 |
+EOF |
8842 |
+if { (eval echo configure:3605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
8843 |
+ rm -rf conftest* |
8844 |
+ ac_cv_c_const=yes |
8845 |
+else |
8846 |
+ echo "configure: failed program was:" >&5 |
8847 |
+ cat conftest.$ac_ext >&5 |
8848 |
+ rm -rf conftest* |
8849 |
+ ac_cv_c_const=no |
8850 |
+fi |
8851 |
+rm -f conftest* |
8852 |
+fi |
8853 |
+ |
8854 |
+echo "$ac_t""$ac_cv_c_const" 1>&6 |
8855 |
+if test $ac_cv_c_const = no; then |
8856 |
+ cat >> confdefs.h <<\EOF |
8857 |
+#define const |
8858 |
+EOF |
8859 |
+ |
8860 |
+fi |
8861 |
+ |
8862 |
+ |
8863 |
+# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
8864 |
+# for constant arguments. Useless! |
8865 |
+echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
8866 |
+echo "configure:3629: checking for working alloca.h" >&5 |
8867 |
+if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
8868 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
8869 |
+else |
8870 |
+ cat > conftest.$ac_ext <<EOF |
8871 |
+#line 3634 "configure" |
8872 |
+#include "confdefs.h" |
8873 |
+#include <alloca.h> |
8874 |
+int main() { |
8875 |
+char *p = alloca(2 * sizeof(int)); |
8876 |
+; return 0; } |
8877 |
+EOF |
8878 |
+if { (eval echo configure:3641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8879 |
+ rm -rf conftest* |
8880 |
+ ac_cv_header_alloca_h=yes |
8881 |
+else |
8882 |
+ echo "configure: failed program was:" >&5 |
8883 |
+ cat conftest.$ac_ext >&5 |
8884 |
+ rm -rf conftest* |
8885 |
+ ac_cv_header_alloca_h=no |
8886 |
+fi |
8887 |
+rm -f conftest* |
8888 |
+fi |
8889 |
+ |
8890 |
+echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
8891 |
+if test $ac_cv_header_alloca_h = yes; then |
8892 |
+ cat >> confdefs.h <<\EOF |
8893 |
+#define HAVE_ALLOCA_H 1 |
8894 |
+EOF |
8895 |
+ |
8896 |
+fi |
8897 |
+ |
8898 |
+echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
8899 |
+echo "configure:3662: checking for alloca" >&5 |
8900 |
+if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
8901 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
8902 |
+else |
8903 |
+ cat > conftest.$ac_ext <<EOF |
8904 |
+#line 3667 "configure" |
8905 |
+#include "confdefs.h" |
8906 |
+ |
8907 |
+#ifdef __GNUC__ |
8908 |
+# define alloca __builtin_alloca |
8909 |
+#else |
8910 |
+# ifdef _MSC_VER |
8911 |
+# include <malloc.h> |
8912 |
+# define alloca _alloca |
8913 |
+# else |
8914 |
+# if HAVE_ALLOCA_H |
8915 |
+# include <alloca.h> |
8916 |
+# else |
8917 |
+# ifdef _AIX |
8918 |
+ #pragma alloca |
8919 |
+# else |
8920 |
+# ifndef alloca /* predefined by HP cc +Olibcalls */ |
8921 |
+char *alloca (); |
8922 |
+# endif |
8923 |
+# endif |
8924 |
+# endif |
8925 |
+# endif |
8926 |
+#endif |
8927 |
+ |
8928 |
+int main() { |
8929 |
+char *p = (char *) alloca(1); |
8930 |
+; return 0; } |
8931 |
+EOF |
8932 |
+if { (eval echo configure:3695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8933 |
+ rm -rf conftest* |
8934 |
+ ac_cv_func_alloca_works=yes |
8935 |
+else |
8936 |
+ echo "configure: failed program was:" >&5 |
8937 |
+ cat conftest.$ac_ext >&5 |
8938 |
+ rm -rf conftest* |
8939 |
+ ac_cv_func_alloca_works=no |
8940 |
+fi |
8941 |
+rm -f conftest* |
8942 |
+fi |
8943 |
+ |
8944 |
+echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
8945 |
+if test $ac_cv_func_alloca_works = yes; then |
8946 |
+ cat >> confdefs.h <<\EOF |
8947 |
+#define HAVE_ALLOCA 1 |
8948 |
+EOF |
8949 |
+ |
8950 |
+fi |
8951 |
+ |
8952 |
+if test $ac_cv_func_alloca_works = no; then |
8953 |
+ # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
8954 |
+ # that cause trouble. Some versions do not even contain alloca or |
8955 |
+ # contain a buggy version. If you still want to use their alloca, |
8956 |
+ # use ar to extract alloca.o from them instead of compiling alloca.c. |
8957 |
+ ALLOCA=alloca.${ac_objext} |
8958 |
+ cat >> confdefs.h <<\EOF |
8959 |
+#define C_ALLOCA 1 |
8960 |
+EOF |
8961 |
+ |
8962 |
+ |
8963 |
+echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
8964 |
+echo "configure:3727: checking whether alloca needs Cray hooks" >&5 |
8965 |
+if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
8966 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
8967 |
+else |
8968 |
+ cat > conftest.$ac_ext <<EOF |
8969 |
+#line 3732 "configure" |
8970 |
+#include "confdefs.h" |
8971 |
+#if defined(CRAY) && ! defined(CRAY2) |
8972 |
+webecray |
8973 |
+#else |
8974 |
+wenotbecray |
8975 |
+#endif |
8976 |
+ |
8977 |
+EOF |
8978 |
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8979 |
+ egrep "webecray" >/dev/null 2>&1; then |
8980 |
+ rm -rf conftest* |
8981 |
+ ac_cv_os_cray=yes |
8982 |
+else |
8983 |
+ rm -rf conftest* |
8984 |
+ ac_cv_os_cray=no |
8985 |
+fi |
8986 |
+rm -f conftest* |
8987 |
+ |
8988 |
+fi |
8989 |
+ |
8990 |
+echo "$ac_t""$ac_cv_os_cray" 1>&6 |
8991 |
+if test $ac_cv_os_cray = yes; then |
8992 |
+for ac_func in _getb67 GETB67 getb67; do |
8993 |
+ echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8994 |
+echo "configure:3757: checking for $ac_func" >&5 |
8995 |
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8996 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
8997 |
+else |
8998 |
+ cat > conftest.$ac_ext <<EOF |
8999 |
+#line 3762 "configure" |
9000 |
+#include "confdefs.h" |
9001 |
+/* System header to define __stub macros and hopefully few prototypes, |
9002 |
+ which can conflict with char $ac_func(); below. */ |
9003 |
+#include <assert.h> |
9004 |
+/* Override any gcc2 internal prototype to avoid an error. */ |
9005 |
+/* We use char because int might match the return type of a gcc2 |
9006 |
+ builtin and then its argument prototype would still apply. */ |
9007 |
+char $ac_func(); |
9008 |
+ |
9009 |
+int main() { |
9010 |
+ |
9011 |
+/* The GNU C library defines this for functions which it implements |
9012 |
+ to always fail with ENOSYS. Some functions are actually named |
9013 |
+ something starting with __ and the normal name is an alias. */ |
9014 |
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
9015 |
+choke me |
9016 |
+#else |
9017 |
+$ac_func(); |
9018 |
+#endif |
9019 |
+ |
9020 |
+; return 0; } |
9021 |
+EOF |
9022 |
+if { (eval echo configure:3785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9023 |
+ rm -rf conftest* |
9024 |
+ eval "ac_cv_func_$ac_func=yes" |
9025 |
+else |
9026 |
+ echo "configure: failed program was:" >&5 |
9027 |
+ cat conftest.$ac_ext >&5 |
9028 |
+ rm -rf conftest* |
9029 |
+ eval "ac_cv_func_$ac_func=no" |
9030 |
+fi |
9031 |
+rm -f conftest* |
9032 |
+fi |
9033 |
+ |
9034 |
+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9035 |
+ echo "$ac_t""yes" 1>&6 |
9036 |
+ cat >> confdefs.h <<EOF |
9037 |
+#define CRAY_STACKSEG_END $ac_func |
9038 |
+EOF |
9039 |
+ |
9040 |
+ break |
9041 |
+else |
9042 |
+ echo "$ac_t""no" 1>&6 |
9043 |
+fi |
9044 |
+ |
9045 |
+done |
9046 |
+fi |
9047 |
+ |
9048 |
+echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
9049 |
+echo "configure:3812: checking stack direction for C alloca" >&5 |
9050 |
+if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
9051 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
9052 |
+else |
9053 |
+ if test "$cross_compiling" = yes; then |
9054 |
+ ac_cv_c_stack_direction=0 |
9055 |
+else |
9056 |
+ cat > conftest.$ac_ext <<EOF |
9057 |
+#line 3820 "configure" |
9058 |
+#include "confdefs.h" |
9059 |
+find_stack_direction () |
9060 |
+{ |
9061 |
+ static char *addr = 0; |
9062 |
+ auto char dummy; |
9063 |
+ if (addr == 0) |
9064 |
+ { |
9065 |
+ addr = &dummy; |
9066 |
+ return find_stack_direction (); |
9067 |
+ } |
9068 |
+ else |
9069 |
+ return (&dummy > addr) ? 1 : -1; |
9070 |
+} |
9071 |
+main () |
9072 |
+{ |
9073 |
+ exit (find_stack_direction() < 0); |
9074 |
+} |
9075 |
+EOF |
9076 |
+if { (eval echo configure:3839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
9077 |
+then |
9078 |
+ ac_cv_c_stack_direction=1 |
9079 |
+else |
9080 |
+ echo "configure: failed program was:" >&5 |
9081 |
+ cat conftest.$ac_ext >&5 |
9082 |
+ rm -fr conftest* |
9083 |
+ ac_cv_c_stack_direction=-1 |
9084 |
+fi |
9085 |
+rm -fr conftest* |
9086 |
+fi |
9087 |
+ |
9088 |
+fi |
9089 |
+ |
9090 |
+echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
9091 |
+cat >> confdefs.h <<EOF |
9092 |
+#define STACK_DIRECTION $ac_cv_c_stack_direction |
9093 |
+EOF |
9094 |
+ |
9095 |
+fi |
9096 |
+ |
9097 |
+for ac_func in ftime strstr usleep |
9098 |
+do |
9099 |
+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
9100 |
+echo "configure:3863: checking for $ac_func" >&5 |
9101 |
+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9102 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
9103 |
+else |
9104 |
+ cat > conftest.$ac_ext <<EOF |
9105 |
+#line 3868 "configure" |
9106 |
+#include "confdefs.h" |
9107 |
+/* System header to define __stub macros and hopefully few prototypes, |
9108 |
+ which can conflict with char $ac_func(); below. */ |
9109 |
+#include <assert.h> |
9110 |
+/* Override any gcc2 internal prototype to avoid an error. */ |
9111 |
+/* We use char because int might match the return type of a gcc2 |
9112 |
+ builtin and then its argument prototype would still apply. */ |
9113 |
+char $ac_func(); |
9114 |
+ |
9115 |
+int main() { |
9116 |
+ |
9117 |
+/* The GNU C library defines this for functions which it implements |
9118 |
+ to always fail with ENOSYS. Some functions are actually named |
9119 |
+ something starting with __ and the normal name is an alias. */ |
9120 |
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
9121 |
+choke me |
9122 |
+#else |
9123 |
+$ac_func(); |
9124 |
+#endif |
9125 |
+ |
9126 |
+; return 0; } |
9127 |
+EOF |
9128 |
+if { (eval echo configure:3891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
9129 |
+ rm -rf conftest* |
9130 |
+ eval "ac_cv_func_$ac_func=yes" |
9131 |
+else |
9132 |
+ echo "configure: failed program was:" >&5 |
9133 |
+ cat conftest.$ac_ext >&5 |
9134 |
+ rm -rf conftest* |
9135 |
+ eval "ac_cv_func_$ac_func=no" |
9136 |
+fi |
9137 |
+rm -f conftest* |
9138 |
+fi |
9139 |
+ |
9140 |
+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9141 |
+ echo "$ac_t""yes" 1>&6 |
9142 |
+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
9143 |
+ cat >> confdefs.h <<EOF |
9144 |
+#define $ac_tr_func 1 |
9145 |
+EOF |
9146 |
+ |
9147 |
+else |
9148 |
+ echo "$ac_t""no" 1>&6 |
9149 |
+fi |
9150 |
+done |
9151 |
+ |
9152 |
+ |
9153 |
+trap '' 1 2 15 |
9154 |
+cat > confcache <<\EOF |
9155 |
+# This file is a shell script that caches the results of configure |
9156 |
+# tests run on this system so they can be shared between configure |
9157 |
+# scripts and configure runs. It is not useful on other systems. |
9158 |
+# If it contains results you don't want to keep, you may remove or edit it. |
9159 |
+# |
9160 |
+# By default, configure uses ./config.cache as the cache file, |
9161 |
+# creating it if it does not exist already. You can give configure |
9162 |
+# the --cache-file=FILE option to use a |
9163 |
+# what configure does when it calls configure scripts in |
9164 |
+# subdirectories, so they share the cache. |
9165 |
+# Giving --cache-file=/dev/null disables caching, for debugging configure. |
9166 |
+# config.status only pays attention to the cache file if you give it the |
9167 |
+# --recheck option to rerun configure. |
9168 |
+# |
9169 |
+EOF |
9170 |
+# The following way of writing the cache mishandles newlines in values, |
9171 |
+# but we know of no workaround that is simple, portable, and efficient. |
9172 |
+# So, don't put newlines in cache variables' values. |
9173 |
+# Ultrix sh set writes to stderr and can't be redirected directly, |
9174 |
+# and sets the high bit in the cache file unless we assign to the vars. |
9175 |
+(set) 2>&1 | |
9176 |
+ case `(ac_space=' '; set | grep ac_space) 2>&1` in |
9177 |
+ *ac_space=\ *) |
9178 |
+ # `set' does not quote correctly, so add quotes (double-quote substitution |
9179 |
+ # turns \\\\ into \\, and sed turns \\ into \). |
9180 |
+ sed -n \ |
9181 |
+ -e "s/'/'\\\\''/g" \ |
9182 |
+ -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
9183 |
+ ;; |
9184 |
+ *) |
9185 |
+ # `set' quotes correctly as required by POSIX, so do not add quotes. |
9186 |
+ sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
9187 |
+ ;; |
9188 |
+ esac >> confcache |
9189 |
+if cmp -s $cache_file confcache; then |
9190 |
+ : |
9191 |
+else |
9192 |
+ if test -w $cache_file; then |
9193 |
+ echo "updating cache $cache_file" |
9194 |
+ cat confcache > $cache_file |
9195 |
+ else |
9196 |
+ echo "not updating unwritable cache $cache_file" |
9197 |
+ fi |
9198 |
+fi |
9199 |
+rm -f confcache |
9200 |
+ |
9201 |
+trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
9202 |
+ |
9203 |
+test "x$prefix" = xNONE && prefix=$ac_default_prefix |
9204 |
+# Let make expand exec_prefix. |
9205 |
+test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
9206 |
+ |
9207 |
+# Any assignment to VPATH causes Sun make to only execute |
9208 |
+# the first set of double-colon rules, so remove it if not needed. |
9209 |
+# If there is a colon in the path, we need to keep it. |
9210 |
+if test "x$srcdir" = x.; then |
9211 |
+ ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
9212 |
+fi |
9213 |
+ |
9214 |
+trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
9215 |
+ |
9216 |
+DEFS=-DHAVE_CONFIG_H |
9217 |
+ |
9218 |
+# Without the "./", some shells look in PATH for config.status. |
9219 |
+: ${CONFIG_STATUS=./config.status} |
9220 |
+ |
9221 |
+echo creating $CONFIG_STATUS |
9222 |
+rm -f $CONFIG_STATUS |
9223 |
+cat > $CONFIG_STATUS <<EOF |
9224 |
+#! /bin/sh |
9225 |
+# Generated automatically by configure. |
9226 |
+# Run this file to recreate the current configuration. |
9227 |
+# This directory was configured as follows, |
9228 |
+# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
9229 |
+# |
9230 |
+# $0 $ac_configure_args |
9231 |
+# |
9232 |
+# Compiler output produced by configure, useful for debugging |
9233 |
+# configure, is in ./config.log if it exists. |
9234 |
+ |
9235 |
+ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
9236 |
+for ac_option |
9237 |
+do |
9238 |
+ case "\$ac_option" in |
9239 |
+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
9240 |
+ echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
9241 |
+ exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
9242 |
+ -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
9243 |
+ echo "$CONFIG_STATUS generated by autoconf version 2.13" |
9244 |
+ exit 0 ;; |
9245 |
+ -help | --help | --hel | --he | --h) |
9246 |
+ echo "\$ac_cs_usage"; exit 0 ;; |
9247 |
+ *) echo "\$ac_cs_usage"; exit 1 ;; |
9248 |
+ esac |
9249 |
+done |
9250 |
+ |
9251 |
+ac_given_srcdir=$srcdir |
9252 |
+ac_given_INSTALL="$INSTALL" |
9253 |
+ |
9254 |
+trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
9255 |
+EOF |
9256 |
+cat >> $CONFIG_STATUS <<EOF |
9257 |
+ |
9258 |
+# Protect against being on the right side of a sed subst in config.status. |
9259 |
+sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
9260 |
+ s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
9261 |
+$ac_vpsub |
9262 |
+$extrasub |
9263 |
+s%@SHELL@%$SHELL%g |
9264 |
+s%@CFLAGS@%$CFLAGS%g |
9265 |
+s%@CPPFLAGS@%$CPPFLAGS%g |
9266 |
+s%@CXXFLAGS@%$CXXFLAGS%g |
9267 |
+s%@FFLAGS@%$FFLAGS%g |
9268 |
+s%@DEFS@%$DEFS%g |
9269 |
+s%@LDFLAGS@%$LDFLAGS%g |
9270 |
+s%@LIBS@%$LIBS%g |
9271 |
+s%@exec_prefix@%$exec_prefix%g |
9272 |
+s%@prefix@%$prefix%g |
9273 |
+s%@program_transform_name@%$program_transform_name%g |
9274 |
+s%@bindir@%$bindir%g |
9275 |
+s%@sbindir@%$sbindir%g |
9276 |
+s%@libexecdir@%$libexecdir%g |
9277 |
+s%@datadir@%$datadir%g |
9278 |
+s%@sysconfdir@%$sysconfdir%g |
9279 |
+s%@sharedstatedir@%$sharedstatedir%g |
9280 |
+s%@localstatedir@%$localstatedir%g |
9281 |
+s%@libdir@%$libdir%g |
9282 |
+s%@includedir@%$includedir%g |
9283 |
+s%@oldincludedir@%$oldincludedir%g |
9284 |
+s%@infodir@%$infodir%g |
9285 |
+s%@mandir@%$mandir%g |
9286 |
+s%@host@%$host%g |
9287 |
+s%@host_alias@%$host_alias%g |
9288 |
+s%@host_cpu@%$host_cpu%g |
9289 |
+s%@host_vendor@%$host_vendor%g |
9290 |
+s%@host_os@%$host_os%g |
9291 |
+s%@target@%$target%g |
9292 |
+s%@target_alias@%$target_alias%g |
9293 |
+s%@target_cpu@%$target_cpu%g |
9294 |
+s%@target_vendor@%$target_vendor%g |
9295 |
+s%@target_os@%$target_os%g |
9296 |
+s%@build@%$build%g |
9297 |
+s%@build_alias@%$build_alias%g |
9298 |
+s%@build_cpu@%$build_cpu%g |
9299 |
+s%@build_vendor@%$build_vendor%g |
9300 |
+s%@build_os@%$build_os%g |
9301 |
+s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
9302 |
+s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
9303 |
+s%@INSTALL_DATA@%$INSTALL_DATA%g |
9304 |
+s%@PACKAGE@%$PACKAGE%g |
9305 |
+s%@VERSION@%$VERSION%g |
9306 |
+s%@ACLOCAL@%$ACLOCAL%g |
9307 |
+s%@AUTOCONF@%$AUTOCONF%g |
9308 |
+s%@AUTOMAKE@%$AUTOMAKE%g |
9309 |
+s%@AUTOHEADER@%$AUTOHEADER%g |
9310 |
+s%@MAKEINFO@%$MAKEINFO%g |
9311 |
+s%@SET_MAKE@%$SET_MAKE%g |
9312 |
+s%@CC@%$CC%g |
9313 |
+s%@CPP@%$CPP%g |
9314 |
+s%@X_CFLAGS@%$X_CFLAGS%g |
9315 |
+s%@X_PRE_LIBS@%$X_PRE_LIBS%g |
9316 |
+s%@X_LIBS@%$X_LIBS%g |
9317 |
+s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g |
9318 |
+s%@X11_LIBS@%$X11_LIBS%g |
9319 |
+s%@XEXT_LIBS@%$XEXT_LIBS%g |
9320 |
+s%@XT_LIBS@%$XT_LIBS%g |
9321 |
+s%@XPM_LIBS@%$XPM_LIBS%g |
9322 |
+s%@XM_LIBS@%$XM_LIBS%g |
9323 |
+s%@GL_LIBS@%$GL_LIBS%g |
9324 |
+s%@ALLOCA@%$ALLOCA%g |
9325 |
+ |
9326 |
+CEOF |
9327 |
+EOF |
9328 |
+ |
9329 |
+cat >> $CONFIG_STATUS <<\EOF |
9330 |
+ |
9331 |
+# Split the substitutions into bite-sized pieces for seds with |
9332 |
+# small command number limits, like on Digital OSF/1 and HP-UX. |
9333 |
+ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
9334 |
+ac_file=1 # Number of current file. |
9335 |
+ac_beg=1 # First line for current file. |
9336 |
+ac_end=$ac_max_sed_cmds # Line after last line for current file. |
9337 |
+ac_more_lines=: |
9338 |
+ac_sed_cmds="" |
9339 |
+while $ac_more_lines; do |
9340 |
+ if test $ac_beg -gt 1; then |
9341 |
+ sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
9342 |
+ else |
9343 |
+ sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
9344 |
+ fi |
9345 |
+ if test ! -s conftest.s$ac_file; then |
9346 |
+ ac_more_lines=false |
9347 |
+ rm -f conftest.s$ac_file |
9348 |
+ else |
9349 |
+ if test -z "$ac_sed_cmds"; then |
9350 |
+ ac_sed_cmds="sed -f conftest.s$ac_file" |
9351 |
+ else |
9352 |
+ ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
9353 |
+ fi |
9354 |
+ ac_file=`expr $ac_file + 1` |
9355 |
+ ac_beg=$ac_end |
9356 |
+ ac_end=`expr $ac_end + $ac_max_sed_cmds` |
9357 |
+ fi |
9358 |
+done |
9359 |
+if test -z "$ac_sed_cmds"; then |
9360 |
+ ac_sed_cmds=cat |
9361 |
+fi |
9362 |
+EOF |
9363 |
+ |
9364 |
+cat >> $CONFIG_STATUS <<EOF |
9365 |
+ |
9366 |
+CONFIG_FILES=\${CONFIG_FILES-"Makefile"} |
9367 |
+EOF |
9368 |
+cat >> $CONFIG_STATUS <<\EOF |
9369 |
+for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
9370 |
+ # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
9371 |
+ case "$ac_file" in |
9372 |
+ *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
9373 |
+ ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
9374 |
+ *) ac_file_in="${ac_file}.in" ;; |
9375 |
+ esac |
9376 |
+ |
9377 |
+ # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
9378 |
+ |
9379 |
+ # Remove last slash and all that follows it. Not all systems have dirname. |
9380 |
+ ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
9381 |
+ if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
9382 |
+ # The file is in a subdirectory. |
9383 |
+ test ! -d "$ac_dir" && mkdir "$ac_dir" |
9384 |
+ ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
9385 |
+ # A "../" for each directory in $ac_dir_suffix. |
9386 |
+ ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
9387 |
+ else |
9388 |
+ ac_dir_suffix= ac_dots= |
9389 |
+ fi |
9390 |
+ |
9391 |
+ case "$ac_given_srcdir" in |
9392 |
+ .) srcdir=. |
9393 |
+ if test -z "$ac_dots"; then top_srcdir=. |
9394 |
+ else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
9395 |
+ /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
9396 |
+ *) # Relative path. |
9397 |
+ srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
9398 |
+ top_srcdir="$ac_dots$ac_given_srcdir" ;; |
9399 |
+ esac |
9400 |
+ |
9401 |
+ case "$ac_given_INSTALL" in |
9402 |
+ [/$]*) INSTALL="$ac_given_INSTALL" ;; |
9403 |
+ *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
9404 |
+ esac |
9405 |
+ |
9406 |
+ echo creating "$ac_file" |
9407 |
+ rm -f "$ac_file" |
9408 |
+ configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
9409 |
+ case "$ac_file" in |
9410 |
+ *Makefile*) ac_comsub="1i\\ |
9411 |
+# $configure_input" ;; |
9412 |
+ *) ac_comsub= ;; |
9413 |
+ esac |
9414 |
+ |
9415 |
+ ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
9416 |
+ sed -e "$ac_comsub |
9417 |
+s%@configure_input@%$configure_input%g |
9418 |
+s%@srcdir@%$srcdir%g |
9419 |
+s%@top_srcdir@%$top_srcdir%g |
9420 |
+s%@INSTALL@%$INSTALL%g |
9421 |
+" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
9422 |
+fi; done |
9423 |
+rm -f conftest.s* |
9424 |
+ |
9425 |
+# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
9426 |
+# NAME is the cpp macro being defined and VALUE is the value it is being given. |
9427 |
+# |
9428 |
+# ac_d sets the value in "#define NAME VALUE" lines. |
9429 |
+ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
9430 |
+ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
9431 |
+ac_dC='\3' |
9432 |
+ac_dD='%g' |
9433 |
+# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
9434 |
+ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
9435 |
+ac_uB='\([ ]\)%\1#\2define\3' |
9436 |
+ac_uC=' ' |
9437 |
+ac_uD='\4%g' |
9438 |
+# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
9439 |
+ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
9440 |
+ac_eB='$%\1#\2define\3' |
9441 |
+ac_eC=' ' |
9442 |
+ac_eD='%g' |
9443 |
+ |
9444 |
+if test "${CONFIG_HEADERS+set}" != set; then |
9445 |
+EOF |
9446 |
+cat >> $CONFIG_STATUS <<EOF |
9447 |
+ CONFIG_HEADERS="config.h" |
9448 |
+EOF |
9449 |
+cat >> $CONFIG_STATUS <<\EOF |
9450 |
+fi |
9451 |
+for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
9452 |
+ # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
9453 |
+ case "$ac_file" in |
9454 |
+ *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
9455 |
+ ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
9456 |
+ *) ac_file_in="${ac_file}.in" ;; |
9457 |
+ esac |
9458 |
+ |
9459 |
+ echo creating $ac_file |
9460 |
+ |
9461 |
+ rm -f conftest.frag conftest.in conftest.out |
9462 |
+ ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
9463 |
+ cat $ac_file_inputs > conftest.in |
9464 |
+ |
9465 |
+EOF |
9466 |
+ |
9467 |
+# Transform confdefs.h into a sed script conftest.vals that substitutes |
9468 |
+# the proper values into config.h.in to produce config.h. And first: |
9469 |
+# Protect against being on the right side of a sed subst in config.status. |
9470 |
+# Protect against being in an unquoted here document in config.status. |
9471 |
+rm -f conftest.vals |
9472 |
+cat > conftest.hdr <<\EOF |
9473 |
+s/[\\&%]/\\&/g |
9474 |
+s%[\\$`]%\\&%g |
9475 |
+s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
9476 |
+s%ac_d%ac_u%gp |
9477 |
+s%ac_u%ac_e%gp |
9478 |
+EOF |
9479 |
+sed -n -f conftest.hdr confdefs.h > conftest.vals |
9480 |
+rm -f conftest.hdr |
9481 |
+ |
9482 |
+# This sed command replaces #undef with comments. This is necessary, for |
9483 |
+# example, in the case of _POSIX_SOURCE, which is predefined and required |
9484 |
+# on some systems where configure will not decide to define it. |
9485 |
+cat >> conftest.vals <<\EOF |
9486 |
+s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
9487 |
+EOF |
9488 |
+ |
9489 |
+# Break up conftest.vals because some shells have a limit on |
9490 |
+# the size of here documents, and old seds have small limits too. |
9491 |
+ |
9492 |
+rm -f conftest.tail |
9493 |
+while : |
9494 |
+do |
9495 |
+ ac_lines=`grep -c . conftest.vals` |
9496 |
+ # grep -c gives empty output for an empty file on some AIX systems. |
9497 |
+ if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
9498 |
+ # Write a limited-size here document to conftest.frag. |
9499 |
+ echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
9500 |
+ sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
9501 |
+ echo 'CEOF |
9502 |
+ sed -f conftest.frag conftest.in > conftest.out |
9503 |
+ rm -f conftest.in |
9504 |
+ mv conftest.out conftest.in |
9505 |
+' >> $CONFIG_STATUS |
9506 |
+ sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
9507 |
+ rm -f conftest.vals |
9508 |
+ mv conftest.tail conftest.vals |
9509 |
+done |
9510 |
+rm -f conftest.vals |
9511 |
+ |
9512 |
+cat >> $CONFIG_STATUS <<\EOF |
9513 |
+ rm -f conftest.frag conftest.h |
9514 |
+ echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
9515 |
+ cat conftest.in >> conftest.h |
9516 |
+ rm -f conftest.in |
9517 |
+ if cmp -s $ac_file conftest.h 2>/dev/null; then |
9518 |
+ echo "$ac_file is unchanged" |
9519 |
+ rm -f conftest.h |
9520 |
+ else |
9521 |
+ # Remove last slash and all that follows it. Not all systems have dirname. |
9522 |
+ ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
9523 |
+ if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
9524 |
+ # The file is in a subdirectory. |
9525 |
+ test ! -d "$ac_dir" && mkdir "$ac_dir" |
9526 |
+ fi |
9527 |
+ rm -f $ac_file |
9528 |
+ mv conftest.h $ac_file |
9529 |
+ fi |
9530 |
+fi; done |
9531 |
+ |
9532 |
+EOF |
9533 |
+cat >> $CONFIG_STATUS <<EOF |
9534 |
+ |
9535 |
+ |
9536 |
+EOF |
9537 |
+cat >> $CONFIG_STATUS <<\EOF |
9538 |
+test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h |
9539 |
+ |
9540 |
+exit 0 |
9541 |
+EOF |
9542 |
+chmod +x $CONFIG_STATUS |
9543 |
+rm -fr confdefs* $ac_clean_files |
9544 |
+test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
9545 |
+ |
9546 |
Index: configure.in |
9547 |
=================================================================== |
9548 |
|
9549 |
|
9550 |
--- /dev/null Fri Jun 8 19:07:45 2001 |
9551 |
+++ configure.in Fri Jun 8 19:30:17 2001 |
9552 |
@@ -0,0 +1,147 @@ |
9553 |
+/* configure.in for xmakemol: |
9554 |
+ Copyright (C) 2001 Chi Zhang |
9555 |
+ acincluce.m4 gives detailed description of local routines below: |
9556 |
+ ICE_FIND_MOTIF -- borrowed from mgv |
9557 |
+ ICE_FIND_XPM -- borrowed from mgv |
9558 |
+ SIM_AC_CHECK_OPENGL -- derived from coin3d |
9559 |
+ SIM_AC_CHECK_GLU -- derived from coin3d |
9560 |
+ SIM_CHECK_MOTIF_GLWIDGET --derived from coin3d |
9561 |
+*/ |
9562 |
+dnl Process this file with autoconf to produce a configure script. |
9563 |
+AC_INIT(xmakemol.c) |
9564 |
+ |
9565 |
+dnl Checks for system |
9566 |
+AC_CANONICAL_SYSTEM |
9567 |
+ |
9568 |
+AM_INIT_AUTOMAKE(xmakemol,4.40.2b) |
9569 |
+AM_CONFIG_HEADER(config.h) |
9570 |
+ |
9571 |
+ |
9572 |
+dnl Checks for programs. |
9573 |
+AC_PROG_CC |
9574 |
+AC_PROG_INSTALL |
9575 |
+ |
9576 |
+dnl Configs from ac_opengl package |
9577 |
+dnl AC_CONFIG_AUX_DIR(config) |
9578 |
+ |
9579 |
+dnl Checks for libraries. |
9580 |
+dnl ========================================================================== |
9581 |
+dnl Checks for libraries. |
9582 |
+dnl ========================================================================== |
9583 |
+AC_PATH_X |
9584 |
+AC_PATH_XTRA |
9585 |
+ICE_FIND_MOTIF |
9586 |
+ICE_FIND_XPM |
9587 |
+LIBS="$LIBS $X_EXTRA_LIBS" |
9588 |
+CFLAGS="$CFLAGS $X_CFLAGS" |
9589 |
+CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
9590 |
+LDFLAGS="$LDFLAGS $X_LIBS" |
9591 |
+ |
9592 |
+dnl ========================================================================== |
9593 |
+dnl Check for X11. |
9594 |
+dnl ========================================================================== |
9595 |
+X11_LIBS="" |
9596 |
+AC_CHECK_LIB(X11, XOpenDisplay, X11_LIBS="-lX11",,${X_PRE_LIBS}) |
9597 |
+if test "$X11_LIBS" = ""; then |
9598 |
+AC_MSG_ERROR([The X11 library '-lX11' could not be found. |
9599 |
+ Please use the configure options '--x-includes=DIR' |
9600 |
+ and '--x-libraries=DIR' to specify the X location. |
9601 |
+ See the 'config.log' file for further diagnostics.]) |
9602 |
+fi |
9603 |
+AC_SUBST(X_LIBS) |
9604 |
+AC_SUBST(X11_LIBS) |
9605 |
+AC_SUBST(X_PRE_LIBS) |
9606 |
+ |
9607 |
+dnl ========================================================================== |
9608 |
+dnl Check for Xext, Xpm usually needs the shape extensions. |
9609 |
+dnl We don't crap out if we can't find it though. |
9610 |
+dnl ========================================================================== |
9611 |
+XEXT_LIBS="" |
9612 |
+AC_CHECK_LIB(Xext, XShapeQueryVersion, XEXT_LIBS="-lXext",, |
9613 |
+ ${X_PRE_LIBS} ${X11_LIBS}) |
9614 |
+AC_SUBST(XEXT_LIBS) |
9615 |
+ |
9616 |
+dnl ========================================================================== |
9617 |
+dnl Check for Xt |
9618 |
+dnl ========================================================================== |
9619 |
+XT_LIBS="" |
9620 |
+AC_CHECK_LIB(Xt, XtToolkitInitialize, XT_LIBS="-lXt",, |
9621 |
+ ${X_PRE_LIBS} ${X11_LIBS}) |
9622 |
+if test "$XT_LIBS" = ""; then |
9623 |
+AC_MSG_ERROR([The X toolkit library '-lXt' could not be found. |
9624 |
+ Please use the configure iptions '--x-includes=DIR' |
9625 |
+ and '--x-libraries=DIR' to specify the X location. |
9626 |
+ See the 'config.log' file for further diagnostics.]) |
9627 |
+fi |
9628 |
+AC_SUBST(XT_LIBS) |
9629 |
+ |
9630 |
+dnl ========================================================================== |
9631 |
+dnl Check for Xpm |
9632 |
+dnl ========================================================================== |
9633 |
+XPM_LIBS="" |
9634 |
+AC_CHECK_LIB(Xpm, XpmCreatePixmapFromXpmImage, |
9635 |
+ XPM_LIBS="-lXpm" |
9636 |
+ AC_DEFINE(XPM, 1),, |
9637 |
+ ${X_PRE_LIBS} ${X11_LIBS}) |
9638 |
+if test "$XPM_LIBS" != ""; then |
9639 |
+AC_CHECK_HEADERS(X11/xpm.h) |
9640 |
+fi |
9641 |
+AC_SUBST(XPM_LIBS) |
9642 |
+ |
9643 |
+dnl ========================================================================== |
9644 |
+dnl Check for Motif |
9645 |
+dnl I couldn't resist using the most hideously named function in the Motif |
9646 |
+dnl API in this test, sorry if I've frightened anyone. |
9647 |
+dnl ========================================================================== |
9648 |
+XM_LIBS="" |
9649 |
+AC_CHECK_LIB(Xm, XmRepTypeInstallTearOffModelConverter, |
9650 |
+ XM_LIBS="-lXm" |
9651 |
+ AC_DEFINE(HAVE_MOTIF, 1), AC_DEFINE(HAVE_MOTIF, 0), |
9652 |
+ ${X_PRE_LIBS} ${XPM_LIBS} ${XEXT_LIBS} ${XT_LIBS} ${XEXT_LIBS} ${X11_LIBS}) |
9653 |
+if test "$XM_LIBS" = ""; then |
9654 |
+AC_MSG_ERROR([The Motif library '-lXm' could not be found. |
9655 |
+ Please use the configure options '--with-motif-includes=DIR' |
9656 |
+ and '--with-motif-libraries=DIR' to specify the Xm location. |
9657 |
+ See the 'config.log' file for further diagnostics.]) |
9658 |
+fi |
9659 |
+AC_SUBST(XM_LIBS) |
9660 |
+ |
9661 |
+dnl |
9662 |
+dnl Check for OpenGL |
9663 |
+dnl |
9664 |
+ |
9665 |
+GL_LIBS="" |
9666 |
+AC_CHECK_LIB(m,pow,[MATHLIB="true"]) |
9667 |
+if test x"$MATHLIB" != x"true"; then |
9668 |
+ AC_MSG_ERROR([the math library '-lm' could not be found! |
9669 |
+ Please check the installation of math library]) |
9670 |
+fi |
9671 |
+if test x"$MATHLIB" = x"true"; then |
9672 |
+ LIBS="$LIBS -lm" |
9673 |
+ SIM_AC_CHECK_OPENGL([OPENGLLIB="true"]) |
9674 |
+ if test x"$OPENGLLIB" = x"true" ; then |
9675 |
+ SIM_AC_CHECK_GLU([GLULIB="true"]) |
9676 |
+ if test x"$GLULIB" = x"true" ; then |
9677 |
+ SIM_CHECK_MOTIF_GLWIDGET([GLWIDGETLIB="true" AC_DEFINE(GL,1)],GL_LIBS="") |
9678 |
+ fi |
9679 |
+ fi |
9680 |
+fi |
9681 |
+ |
9682 |
+AC_SUBST(GL_LIBS) |
9683 |
+ |
9684 |
+dnl Checks for other libraries |
9685 |
+ |
9686 |
+AC_CHECK_LIB(gen,basename,[AC_DEFINE(HAVE_LIBGEN,1) LIBS="${LIBS} -lgen"],) |
9687 |
+ |
9688 |
+dnl Checks for other header files. |
9689 |
+AC_HEADER_STDC |
9690 |
+AC_CHECK_HEADERS(unistd.h) |
9691 |
+ |
9692 |
+dnl Checks for typedefs, structures, and compiler characteristics. |
9693 |
+AC_C_CONST |
9694 |
+ |
9695 |
+dnl Checks for library functions. |
9696 |
+AC_FUNC_ALLOCA |
9697 |
+AC_CHECK_FUNCS(ftime strstr usleep) |
9698 |
+ |
9699 |
+AC_OUTPUT(Makefile) |
9700 |
Index: install-sh |
9701 |
=================================================================== |
9702 |
|
9703 |
|
9704 |
--- /dev/null Fri Jun 8 19:07:45 2001 |
9705 |
+++ install-sh Fri Jun 8 19:30:17 2001 |
9706 |
@@ -0,0 +1,251 @@ |
9707 |
+#!/bin/sh |
9708 |
+# |
9709 |
+# install - install a program, script, or datafile |
9710 |
+# This comes from X11R5 (mit/util/scripts/install.sh). |
9711 |
+# |
9712 |
+# Copyright 1991 by the Massachusetts Institute of Technology |
9713 |
+# |
9714 |
+# Permission to use, copy, modify, distribute, and sell this software and its |
9715 |
+# documentation for any purpose is hereby granted without fee, provided that |
9716 |
+# the above copyright notice appear in all copies and that both that |
9717 |
+# copyright notice and this permission notice appear in supporting |
9718 |
+# documentation, and that the name of M.I.T. not be used in advertising or |
9719 |
+# publicity pertaining to distribution of the software without specific, |
9720 |
+# written prior permission. M.I.T. makes no representations about the |
9721 |
+# suitability of this software for any purpose. It is provided "as is" |
9722 |
+# without express or implied warranty. |
9723 |
+# |
9724 |
+# Calling this script install-sh is preferred over install.sh, to prevent |
9725 |
+# `make' implicit rules from creating a file called install from it |
9726 |
+# when there is no Makefile. |
9727 |
+# |
9728 |
+# This script is compatible with the BSD install script, but was written |
9729 |
+# from scratch. It can only install one file at a time, a restriction |
9730 |
+# shared with many OS's install programs. |
9731 |
+ |
9732 |
+ |
9733 |
+# set DOITPROG to echo to test this script |
9734 |
+ |
9735 |
+# Don't use :- since 4.3BSD and earlier shells don't like it. |
9736 |
+doit="${DOITPROG-}" |
9737 |
+ |
9738 |
+ |
9739 |
+# put in absolute paths if you don't have them in your path; or use env. vars. |
9740 |
+ |
9741 |
+mvprog="${MVPROG-mv}" |
9742 |
+cpprog="${CPPROG-cp}" |
9743 |
+chmodprog="${CHMODPROG-chmod}" |
9744 |
+chownprog="${CHOWNPROG-chown}" |
9745 |
+chgrpprog="${CHGRPPROG-chgrp}" |
9746 |
+stripprog="${STRIPPROG-strip}" |
9747 |
+rmprog="${RMPROG-rm}" |
9748 |
+mkdirprog="${MKDIRPROG-mkdir}" |
9749 |
+ |
9750 |
+transformbasename="" |
9751 |
+transform_arg="" |
9752 |
+instcmd="$mvprog" |
9753 |
+chmodcmd="$chmodprog 0755" |
9754 |
+chowncmd="" |
9755 |
+chgrpcmd="" |
9756 |
+stripcmd="" |
9757 |
+rmcmd="$rmprog -f" |
9758 |
+mvcmd="$mvprog" |
9759 |
+src="" |
9760 |
+dst="" |
9761 |
+dir_arg="" |
9762 |
+ |
9763 |
+while [ x"$1" != x ]; do |
9764 |
+ case $1 in |
9765 |
+ -c) instcmd="$cpprog" |
9766 |
+ shift |
9767 |
+ continue;; |
9768 |
+ |
9769 |
+ -d) dir_arg=true |
9770 |
+ shift |
9771 |
+ continue;; |
9772 |
+ |
9773 |
+ -m) chmodcmd="$chmodprog $2" |
9774 |
+ shift |
9775 |
+ shift |
9776 |
+ continue;; |
9777 |
+ |
9778 |
+ -o) chowncmd="$chownprog $2" |
9779 |
+ shift |
9780 |
+ shift |
9781 |
+ continue;; |
9782 |
+ |
9783 |
+ -g) chgrpcmd="$chgrpprog $2" |
9784 |
+ shift |
9785 |
+ shift |
9786 |
+ continue;; |
9787 |
+ |
9788 |
+ -s) stripcmd="$stripprog" |
9789 |
+ shift |
9790 |
+ continue;; |
9791 |
+ |
9792 |
+ -t=*) transformarg=`echo $1 | sed 's/-t=//'` |
9793 |
+ shift |
9794 |
+ continue;; |
9795 |
+ |
9796 |
+ -b=*) transformbasename=`echo $1 | sed 's/-b=//'` |
9797 |
+ shift |
9798 |
+ continue;; |
9799 |
+ |
9800 |
+ *) if [ x"$src" = x ] |
9801 |
+ then |
9802 |
+ src=$1 |
9803 |
+ else |
9804 |
+ # this colon is to work around a 386BSD /bin/sh bug |
9805 |
+ : |
9806 |
+ dst=$1 |
9807 |
+ fi |
9808 |
+ shift |
9809 |
+ continue;; |
9810 |
+ esac |
9811 |
+done |
9812 |
+ |
9813 |
+if [ x"$src" = x ] |
9814 |
+then |
9815 |
+ echo "install: no input file specified" |
9816 |
+ exit 1 |
9817 |
+else |
9818 |
+ true |
9819 |
+fi |
9820 |
+ |
9821 |
+if [ x"$dir_arg" != x ]; then |
9822 |
+ dst=$src |
9823 |
+ src="" |
9824 |
+ |
9825 |
+ if [ -d $dst ]; then |
9826 |
+ instcmd=: |
9827 |
+ chmodcmd="" |
9828 |
+ else |
9829 |
+ instcmd=mkdir |
9830 |
+ fi |
9831 |
+else |
9832 |
+ |
9833 |
+# Waiting for this to be detected by the "$instcmd $src $dsttmp" command |
9834 |
+# might cause directories to be created, which would be especially bad |
9835 |
+# if $src (and thus $dsttmp) contains '*'. |
9836 |
+ |
9837 |
+ if [ -f $src -o -d $src ] |
9838 |
+ then |
9839 |
+ true |
9840 |
+ else |
9841 |
+ echo "install: $src does not exist" |
9842 |
+ exit 1 |
9843 |
+ fi |
9844 |
+ |
9845 |
+ if [ x"$dst" = x ] |
9846 |
+ then |
9847 |
+ echo "install: no destination specified" |
9848 |
+ exit 1 |
9849 |
+ else |
9850 |
+ true |
9851 |
+ fi |
9852 |
+ |
9853 |
+# If destination is a directory, append the input filename; if your system |
9854 |
+# does not like double slashes in filenames, you may need to add some logic |
9855 |
+ |
9856 |
+ if [ -d $dst ] |
9857 |
+ then |
9858 |
+ dst="$dst"/`basename $src` |
9859 |
+ else |
9860 |
+ true |
9861 |
+ fi |
9862 |
+fi |
9863 |
+ |
9864 |
+## this sed command emulates the dirname command |
9865 |
+dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` |
9866 |
+ |
9867 |
+# Make sure that the destination directory exists. |
9868 |
+# this part is taken from Noah Friedman's mkinstalldirs script |
9869 |
+ |
9870 |
+# Skip lots of stat calls in the usual case. |
9871 |
+if [ ! -d "$dstdir" ]; then |
9872 |
+defaultIFS=' |
9873 |
+' |
9874 |
+IFS="${IFS-${defaultIFS}}" |
9875 |
+ |
9876 |
+oIFS="${IFS}" |
9877 |
+# Some sh's can't handle IFS=/ for some reason. |
9878 |
+IFS='%' |
9879 |
+set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` |
9880 |
+IFS="${oIFS}" |
9881 |
+ |
9882 |
+pathcomp='' |
9883 |
+ |
9884 |
+while [ $# -ne 0 ] ; do |
9885 |
+ pathcomp="${pathcomp}${1}" |
9886 |
+ shift |
9887 |
+ |
9888 |
+ if [ ! -d "${pathcomp}" ] ; |
9889 |
+ then |
9890 |
+ $mkdirprog "${pathcomp}" |
9891 |
+ else |
9892 |
+ true |
9893 |
+ fi |
9894 |
+ |
9895 |
+ pathcomp="${pathcomp}/" |
9896 |
+done |
9897 |
+fi |
9898 |
+ |
9899 |
+if [ x"$dir_arg" != x ] |
9900 |
+then |
9901 |
+ $doit $instcmd $dst && |
9902 |
+ |
9903 |
+ if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && |
9904 |
+ if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && |
9905 |
+ if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && |
9906 |
+ if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi |
9907 |
+else |
9908 |
+ |
9909 |
+# If we're going to rename the final executable, determine the name now. |
9910 |
+ |
9911 |
+ if [ x"$transformarg" = x ] |
9912 |
+ then |
9913 |
+ dstfile=`basename $dst` |
9914 |
+ else |
9915 |
+ dstfile=`basename $dst $transformbasename | |
9916 |
+ sed $transformarg`$transformbasename |
9917 |
+ fi |
9918 |
+ |
9919 |
+# don't allow the sed command to completely eliminate the filename |
9920 |
+ |
9921 |
+ if [ x"$dstfile" = x ] |
9922 |
+ then |
9923 |
+ dstfile=`basename $dst` |
9924 |
+ else |
9925 |
+ true |
9926 |
+ fi |
9927 |
+ |
9928 |
+# Make a temp file name in the proper directory. |
9929 |
+ |
9930 |
+ dsttmp=$dstdir/#inst.$$# |
9931 |
+ |
9932 |
+# Move or copy the file name to the temp name |
9933 |
+ |
9934 |
+ $doit $instcmd $src $dsttmp && |
9935 |
+ |
9936 |
+ trap "rm -f ${dsttmp}" 0 && |
9937 |
+ |
9938 |
+# and set any options; do chmod last to preserve setuid bits |
9939 |
+ |
9940 |
+# If any of these fail, we abort the whole thing. If we want to |
9941 |
+# ignore errors from any of these, just make sure not to ignore |
9942 |
+# errors from the above "$doit $instcmd $src $dsttmp" command. |
9943 |
+ |
9944 |
+ if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && |
9945 |
+ if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && |
9946 |
+ if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && |
9947 |
+ if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && |
9948 |
+ |
9949 |
+# Now rename the file to the real destination. |
9950 |
+ |
9951 |
+ $doit $rmcmd -f $dstdir/$dstfile && |
9952 |
+ $doit $mvcmd $dsttmp $dstdir/$dstfile |
9953 |
+ |
9954 |
+fi && |
9955 |
+ |
9956 |
+ |
9957 |
+exit 0 |
9958 |
Index: missing |
9959 |
=================================================================== |
9960 |
|
9961 |
|
9962 |
--- /dev/null Fri Jun 8 19:07:45 2001 |
9963 |
+++ missing Fri Jun 8 19:30:17 2001 |
9964 |
@@ -0,0 +1,190 @@ |
9965 |
+#! /bin/sh |
9966 |
+# Common stub for a few missing GNU programs while installing. |
9967 |
+# Copyright (C) 1996, 1997 Free Software Foundation, Inc. |
9968 |
+# Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996. |
9969 |
+ |
9970 |
+# This program is free software; you can redistribute it and/or modify |
9971 |
+# it under the terms of the GNU General Public License as published by |
9972 |
+# the Free Software Foundation; either version 2, or (at your option) |
9973 |
+# any later version. |
9974 |
+ |
9975 |
+# This program is distributed in the hope that it will be useful, |
9976 |
+# but WITHOUT ANY WARRANTY; without even the implied warranty of |
9977 |
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
9978 |
+# GNU General Public License for more details. |
9979 |
+ |
9980 |
+# You should have received a copy of the GNU General Public License |
9981 |
+# along with this program; if not, write to the Free Software |
9982 |
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
9983 |
+# 02111-1307, USA. |
9984 |
+ |
9985 |
+if test $# -eq 0; then |
9986 |
+ echo 1>&2 "Try \`$0 --help' for more information" |
9987 |
+ exit 1 |
9988 |
+fi |
9989 |
+ |
9990 |
+case "$1" in |
9991 |
+ |
9992 |
+ -h|--h|--he|--hel|--help) |
9993 |
+ echo "\ |
9994 |
+$0 [OPTION]... PROGRAM [ARGUMENT]... |
9995 |
+ |
9996 |
+Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an |
9997 |
+error status if there is no known handling for PROGRAM. |
9998 |
+ |
9999 |
+Options: |
10000 |
+ -h, --help display this help and exit |
10001 |
+ -v, --version output version information and exit |
10002 |
+ |
10003 |
+Supported PROGRAM values: |
10004 |
+ aclocal touch file \`aclocal.m4' |
10005 |
+ autoconf touch file \`configure' |
10006 |
+ autoheader touch file \`config.h.in' |
10007 |
+ automake touch all \`Makefile.in' files |
10008 |
+ bison create \`y.tab.[ch]', if possible, from existing .[ch] |
10009 |
+ flex create \`lex.yy.c', if possible, from existing .c |
10010 |
+ lex create \`lex.yy.c', if possible, from existing .c |
10011 |
+ makeinfo touch the output file |
10012 |
+ yacc create \`y.tab.[ch]', if possible, from existing .[ch]" |
10013 |
+ ;; |
10014 |
+ |
10015 |
+ -v|--v|--ve|--ver|--vers|--versi|--versio|--version) |
10016 |
+ echo "missing - GNU libit 0.0" |
10017 |
+ ;; |
10018 |
+ |
10019 |
+ -*) |
10020 |
+ echo 1>&2 "$0: Unknown \`$1' option" |
10021 |
+ echo 1>&2 "Try \`$0 --help' for more information" |
10022 |
+ exit 1 |
10023 |
+ ;; |
10024 |
+ |
10025 |
+ aclocal) |
10026 |
+ echo 1>&2 "\ |
10027 |
+WARNING: \`$1' is missing on your system. You should only need it if |
10028 |
+ you modified \`acinclude.m4' or \`configure.in'. You might want |
10029 |
+ to install the \`Automake' and \`Perl' packages. Grab them from |
10030 |
+ any GNU archive site." |
10031 |
+ touch aclocal.m4 |
10032 |
+ ;; |
10033 |
+ |
10034 |
+ autoconf) |
10035 |
+ echo 1>&2 "\ |
10036 |
+WARNING: \`$1' is missing on your system. You should only need it if |
10037 |
+ you modified \`configure.in'. You might want to install the |
10038 |
+ \`Autoconf' and \`GNU m4' packages. Grab them from any GNU |
10039 |
+ archive site." |
10040 |
+ touch configure |
10041 |
+ ;; |
10042 |
+ |
10043 |
+ autoheader) |
10044 |
+ echo 1>&2 "\ |
10045 |
+WARNING: \`$1' is missing on your system. You should only need it if |
10046 |
+ you modified \`acconfig.h' or \`configure.in'. You might want |
10047 |
+ to install the \`Autoconf' and \`GNU m4' packages. Grab them |
10048 |
+ from any GNU archive site." |
10049 |
+ files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' configure.in` |
10050 |
+ test -z "$files" && files="config.h" |
10051 |
+ touch_files= |
10052 |
+ for f in $files; do |
10053 |
+ case "$f" in |
10054 |
+ *:*) touch_files="$touch_files "`echo "$f" | |
10055 |
+ sed -e 's/^[^:]*://' -e 's/:.*//'`;; |
10056 |
+ *) touch_files="$touch_files $f.in";; |
10057 |
+ esac |
10058 |
+ done |
10059 |
+ touch $touch_files |
10060 |
+ ;; |
10061 |
+ |
10062 |
+ automake) |
10063 |
+ echo 1>&2 "\ |
10064 |
+WARNING: \`$1' is missing on your system. You should only need it if |
10065 |
+ you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'. |
10066 |
+ You might want to install the \`Automake' and \`Perl' packages. |
10067 |
+ Grab them from any GNU archive site." |
10068 |
+ find . -type f -name Makefile.am -print | |
10069 |
+ sed 's/\.am$/.in/' | |
10070 |
+ while read f; do touch "$f"; done |
10071 |
+ ;; |
10072 |
+ |
10073 |
+ bison|yacc) |
10074 |
+ echo 1>&2 "\ |
10075 |
+WARNING: \`$1' is missing on your system. You should only need it if |
10076 |
+ you modified a \`.y' file. You may need the \`Bison' package |
10077 |
+ in order for those modifications to take effect. You can get |
10078 |
+ \`Bison' from any GNU archive site." |
10079 |
+ rm -f y.tab.c y.tab.h |
10080 |
+ if [ $# -ne 1 ]; then |
10081 |
+ eval LASTARG="\${$#}" |
10082 |
+ case "$LASTARG" in |
10083 |
+ *.y) |
10084 |
+ SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` |
10085 |
+ if [ -f "$SRCFILE" ]; then |
10086 |
+ cp "$SRCFILE" y.tab.c |
10087 |
+ fi |
10088 |
+ SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` |
10089 |
+ if [ -f "$SRCFILE" ]; then |
10090 |
+ cp "$SRCFILE" y.tab.h |
10091 |
+ fi |
10092 |
+ ;; |
10093 |
+ esac |
10094 |
+ fi |
10095 |
+ if [ ! -f y.tab.h ]; then |
10096 |
+ echo >y.tab.h |
10097 |
+ fi |
10098 |
+ if [ ! -f y.tab.c ]; then |
10099 |
+ echo 'main() { return 0; }' >y.tab.c |
10100 |
+ fi |
10101 |
+ ;; |
10102 |
+ |
10103 |
+ lex|flex) |
10104 |
+ echo 1>&2 "\ |
10105 |
+WARNING: \`$1' is missing on your system. You should only need it if |
10106 |
+ you modified a \`.l' file. You may need the \`Flex' package |
10107 |
+ in order for those modifications to take effect. You can get |
10108 |
+ \`Flex' from any GNU archive site." |
10109 |
+ rm -f lex.yy.c |
10110 |
+ if [ $# -ne 1 ]; then |
10111 |
+ eval LASTARG="\${$#}" |
10112 |
+ case "$LASTARG" in |
10113 |
+ *.l) |
10114 |
+ SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` |
10115 |
+ if [ -f "$SRCFILE" ]; then |
10116 |
+ cp "$SRCFILE" lex.yy.c |
10117 |
+ fi |
10118 |
+ ;; |
10119 |
+ esac |
10120 |
+ fi |
10121 |
+ if [ ! -f lex.yy.c ]; then |
10122 |
+ echo 'main() { return 0; }' >lex.yy.c |
10123 |
+ fi |
10124 |
+ ;; |
10125 |
+ |
10126 |
+ makeinfo) |
10127 |
+ echo 1>&2 "\ |
10128 |
+WARNING: \`$1' is missing on your system. You should only need it if |
10129 |
+ you modified a \`.texi' or \`.texinfo' file, or any other file |
10130 |
+ indirectly affecting the aspect of the manual. The spurious |
10131 |
+ call might also be the consequence of using a buggy \`make' (AIX, |
10132 |
+ DU, IRIX). You might want to install the \`Texinfo' package or |
10133 |
+ the \`GNU make' package. Grab either from any GNU archive site." |
10134 |
+ file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` |
10135 |
+ if test -z "$file"; then |
10136 |
+ file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` |
10137 |
+ file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` |
10138 |
+ fi |
10139 |
+ touch $file |
10140 |
+ ;; |
10141 |
+ |
10142 |
+ *) |
10143 |
+ echo 1>&2 "\ |
10144 |
+WARNING: \`$1' is needed, and you do not seem to have it handy on your |
10145 |
+ system. You might have modified some files without having the |
10146 |
+ proper tools for further handling them. Check the \`README' file, |
10147 |
+ it often tells you about the needed prerequirements for installing |
10148 |
+ this package. You may also peek at any GNU archive site, in case |
10149 |
+ some other package would contain this missing \`$1' program." |
10150 |
+ exit 1 |
10151 |
+ ;; |
10152 |
+esac |
10153 |
+ |
10154 |
+exit 0 |
10155 |
Index: mkinstalldirs |
10156 |
=================================================================== |
10157 |
|
10158 |
|
10159 |
--- /dev/null Fri Jun 8 19:07:45 2001 |
10160 |
+++ mkinstalldirs Fri Jun 8 19:30:17 2001 |
10161 |
@@ -0,0 +1,40 @@ |
10162 |
+#! /bin/sh |
10163 |
+# mkinstalldirs --- make directory hierarchy |
10164 |
+# Author: Noah Friedman <friedman@prep.ai.mit.edu> |
10165 |
+# Created: 1993-05-16 |
10166 |
+# Public domain |
10167 |
+ |
10168 |
+# $Id: mkinstalldirs,v 1.13 1999/01/05 03:18:55 bje Exp $ |
10169 |
+ |
10170 |
+errstatus=0 |
10171 |
+ |
10172 |
+for file |
10173 |
+do |
10174 |
+ set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` |
10175 |
+ shift |
10176 |
+ |
10177 |
+ pathcomp= |
10178 |
+ for d |
10179 |
+ do |
10180 |
+ pathcomp="$pathcomp$d" |
10181 |
+ case "$pathcomp" in |
10182 |
+ -* ) pathcomp=./$pathcomp ;; |
10183 |
+ esac |
10184 |
+ |
10185 |
+ if test ! -d "$pathcomp"; then |
10186 |
+ echo "mkdir $pathcomp" |
10187 |
+ |
10188 |
+ mkdir "$pathcomp" || lasterr=$? |
10189 |
+ |
10190 |
+ if test ! -d "$pathcomp"; then |
10191 |
+ errstatus=$lasterr |
10192 |
+ fi |
10193 |
+ fi |
10194 |
+ |
10195 |
+ pathcomp="$pathcomp/" |
10196 |
+ done |
10197 |
+done |
10198 |
+ |
10199 |
+exit $errstatus |
10200 |
+ |
10201 |
+# mkinstalldirs ends here |
10202 |
Index: stamp-h.in |
10203 |
=================================================================== |
10204 |
|
10205 |
|
10206 |
--- /dev/null Fri Jun 8 19:07:45 2001 |
10207 |
+++ stamp-h.in Fri Jun 8 19:30:17 2001 |
10208 |
@@ -0,0 +1 @@ |
10209 |
+timestamp |