Add libnet package
[openwrt/svn-archive/archive.git] / openwrt / package / libnet / patches / 500-debian-subset.patch
1 diff -ruN libnet-1.0.2a-orig/Makefile.am libnet-1.0.2a-7/Makefile.am
2 --- libnet-1.0.2a-orig/Makefile.am 1970-01-01 01:00:00.000000000 +0100
3 +++ libnet-1.0.2a-7/Makefile.am 2005-03-08 03:53:26.000000000 +0100
4 @@ -0,0 +1,10 @@
5 +include $(top_srcdir)/Makefile.am.common
6 +
7 +SUBDIRS = src include
8 +
9 +EXTRA_DIST = Makefile.am.common
10 +
11 +bin_SCRIPTS = libnet-config
12 +
13 +version.h: VERSION
14 + sed -e 's/.*/#define VERSION "&"/' < $< > $@
15 diff -ruN libnet-1.0.2a-orig/Makefile.am.common libnet-1.0.2a-7/Makefile.am.common
16 --- libnet-1.0.2a-orig/Makefile.am.common 1970-01-01 01:00:00.000000000 +0100
17 +++ libnet-1.0.2a-7/Makefile.am.common 2005-03-08 03:53:26.000000000 +0100
18 @@ -0,0 +1,3 @@
19 +AUTOMAKE_OPTIONS = foreign no-dependencies
20 +
21 +DISTCLEANFILES = *~
22 diff -ruN libnet-1.0.2a-orig/Makefile.in libnet-1.0.2a-7/Makefile.in
23 --- libnet-1.0.2a-orig/Makefile.in 2001-02-05 18:51:41.000000000 +0100
24 +++ libnet-1.0.2a-7/Makefile.in 2005-03-08 03:53:26.000000000 +0100
25 @@ -1,147 +1,620 @@
26 -#
27 -# $Id$
28 -#
29 -# Libnet 1.0 makefile
30 -# (c) 1998 - 2001 Mike D. Schiffman <mike@infonexus.com>
31 -#
32 -# @configure_input@
33 -
34 -# Enabled: Dumps debugging info and verbose error information.
35 -# Disabled: Doesn't.
36 -# default: disabled.
37 -DEFINES += #-D__DEBUG
38 -prefix = @prefix@
39 -exec_prefix = @exec_prefix@
40 -srcdir = @srcdir@
41 -BIN_PREFIX = @bindir@/
42 -INC_PREFIX = @includedir@/
43 -LIB_PREFIX = @libdir@/
44 -MAN_PREFIX = @MAN_PREFIX@
45 -
46 -LIBNET = libnet
47 -LIBPWRITE = libpwrite
48 -LIB = lib/$(LIBNET).a
49 -MAN = doc/$(LIBNET).3
50 -INCLUDE = include/$(LIBNET).h
51 -INCLUDE-H = include/$(LIBNET)/$(LIBNET)-headers.h
52 -INCLUDE-F = include/$(LIBNET)/$(LIBNET)-functions.h
53 -INCLUDE-S = include/$(LIBNET)/$(LIBNET)-structures.h
54 -INCLUDE-M = include/$(LIBNET)/$(LIBNET)-macros.h
55 -INCLUDE-A = include/$(LIBNET)/$(LIBNET)-asn1.h
56 -INCLUDE-O = include/$(LIBNET)/$(LIBNET)-ospf.h
57 -CONFIG = $(LIBNET)-config
58 -DEFINES += @DEFS@
59 -RANLIB = @RANLIB@
60 -AR = @AR@
61 -LN = @LN@
62 -CC = @CC@
63 -ENSUREDIR = $(srcdir)/ensure-dir.sh
64 -INSTALL_DATA= $(srcdir)/install-sh
65 -CFLAGS = @CFLAGS@
66 -CPPFLAGS = @CPPFLAGS@
67 -OBJECTS = src/libnet_resolve.o\
68 - src/libnet_socket.o\
69 - src/libnet_checksum.o\
70 - src/libnet_prand.o\
71 - src/libnet_version.o\
72 - src/libnet_write_ip.o\
73 - src/libnet_insert_ipo.o\
74 - src/libnet_insert_tcpo.o\
75 - src/libnet_error.o\
76 - src/libnet_link_@LL_INT_TYPE@.o\
77 - src/libnet_packet_mem.o\
78 - src/libnet_build_ip.o\
79 - src/libnet_build_tcp.o\
80 - src/libnet_build_udp.o\
81 - src/libnet_build_arp.o\
82 - src/libnet_build_ethernet.o\
83 - src/libnet_build_icmp.o\
84 - src/libnet_build_igmp.o\
85 - src/libnet_build_dns.o\
86 - src/libnet_build_snmp.o\
87 - src/libnet_build_rip.o\
88 - src/libnet_build_ospf.o\
89 - src/libnet_build_vrrp.o\
90 - src/libnet_asn1.o\
91 - src/libnet_hex_dump.o\
92 - src/libnet_if_addr.o\
93 - src/libnet_port_list.o
94 -
95 -.c.o:
96 - $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFINES) -c $< -o $@
97 -
98 -all: libnet
99 -supp: test example
100 -
101 -libnet: version.h $(OBJECTS)
102 - $(AR) -cr $(LIB) $(OBJECTS)
103 - $(RANLIB) $(LIB)
104 -
105 -version.o: version.h
106 -version.h: ./VERSION
107 - @rm -f $@
108 - sed -e 's/.*/#define VERSION "&"/' ./VERSION > $@
109 -
110 -test: libnet
111 - cd test; make
112 -
113 -util: libnet install
114 - cd util; make
115 -
116 -example: libnet install
117 - cd example; make
118 -
119 -install: libnet
120 - $(ENSUREDIR) $(DESTDIR)$(prefix) 755
121 - $(ENSUREDIR) $(DESTDIR)$(LIB_PREFIX) 755
122 - $(ENSUREDIR) $(DESTDIR)$(INC_PREFIX)$(LIBNET) 755
123 - $(ENSUREDIR) $(DESTDIR)$(INC_PREFIX) 755
124 - $(ENSUREDIR) $(DESTDIR)$(MAN_PREFIX) 755
125 - $(ENSUREDIR) $(DESTDIR)$(BIN_PREFIX) 755
126 - $(INSTALL_DATA) $(LIB) $(DESTDIR)$(LIB_PREFIX)
127 - rm -f $(DESTDIR)$(LIB_PREFIX)$(LIBPWRITE).a
128 - cd $(DESTDIR)$(LIB_PREFIX); $(LN) -f -s $(LIBNET).a $(LIBPWRITE).a
129 - $(INSTALL_DATA) $(INCLUDE) $(DESTDIR)$(INC_PREFIX)
130 - $(INSTALL_DATA) $(INCLUDE-H) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
131 - $(INSTALL_DATA) $(INCLUDE-F) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
132 - $(INSTALL_DATA) $(INCLUDE-S) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
133 - $(INSTALL_DATA) $(INCLUDE-M) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
134 - $(INSTALL_DATA) $(INCLUDE-A) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
135 - $(INSTALL_DATA) $(INCLUDE-O) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
136 - $(INSTALL_DATA) $(MAN) $(DESTDIR)$(MAN_PREFIX)
137 - $(INSTALL_DATA) $(CONFIG) $(DESTDIR)$(BIN_PREFIX)
138 -
139 -
140 -
141 -clean:
142 - if test -f test/Makefile; then \
143 - cd test && make clean; \
144 - fi
145 - if test -f example/Makefile; then \
146 - cd example && make clean; \
147 - fi
148 - if test -f util/Makefile; then \
149 - cd util && make clean; \
150 - fi
151 - if test -f support/bpf-lkm/etherspoof; then \
152 - cd support/bpf-lkm/etherspoof && make clean; \
153 - fi
154 - rm -f *.core src/*.o $(LIB)
155 +# Makefile.in generated by automake 1.8.5 from Makefile.am.
156 +# @configure_input@
157
158 -distclean: clean
159 - if test -f test/Makefile; then \
160 - cd test && make distclean; \
161 - fi
162 - if test -f example/Makefile; then \
163 - cd example && make distclean; \
164 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
165 +# 2003, 2004 Free Software Foundation, Inc.
166 +# This Makefile.in is free software; the Free Software Foundation
167 +# gives unlimited permission to copy and/or distribute it,
168 +# with or without modifications, as long as this notice is preserved.
169 +
170 +# This program is distributed in the hope that it will be useful,
171 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
172 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
173 +# PARTICULAR PURPOSE.
174 +
175 +@SET_MAKE@
176 +
177 +srcdir = @srcdir@
178 +top_srcdir = @top_srcdir@
179 +VPATH = @srcdir@
180 +pkgdatadir = $(datadir)/@PACKAGE@
181 +pkglibdir = $(libdir)/@PACKAGE@
182 +pkgincludedir = $(includedir)/@PACKAGE@
183 +top_builddir = .
184 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
185 +INSTALL = @INSTALL@
186 +install_sh_DATA = $(install_sh) -c -m 644
187 +install_sh_PROGRAM = $(install_sh) -c
188 +install_sh_SCRIPT = $(install_sh) -c
189 +INSTALL_HEADER = $(INSTALL_DATA)
190 +transform = $(program_transform_name)
191 +NORMAL_INSTALL = :
192 +PRE_INSTALL = :
193 +POST_INSTALL = :
194 +NORMAL_UNINSTALL = :
195 +PRE_UNINSTALL = :
196 +POST_UNINSTALL = :
197 +build_triplet = @build@
198 +host_triplet = @host@
199 +target_triplet = @target@
200 +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
201 + $(srcdir)/Makefile.in $(srcdir)/libnet-config.in \
202 + $(top_srcdir)/Makefile.am.common $(top_srcdir)/configure \
203 + acconfig.h config.guess config.sub install-sh ltmain.sh \
204 + missing mkinstalldirs
205 +subdir = .
206 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
207 +am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
208 + $(top_srcdir)/configure.in
209 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
210 + $(ACLOCAL_M4)
211 +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
212 + configure.lineno configure.status.lineno
213 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
214 +CONFIG_HEADER = $(top_builddir)/include/config.h
215 +CONFIG_CLEAN_FILES = libnet-config
216 +am__installdirs = "$(DESTDIR)$(bindir)"
217 +binSCRIPT_INSTALL = $(INSTALL_SCRIPT)
218 +SCRIPTS = $(bin_SCRIPTS)
219 +depcomp =
220 +am__depfiles_maybe =
221 +SOURCES =
222 +DIST_SOURCES =
223 +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
224 + html-recursive info-recursive install-data-recursive \
225 + install-exec-recursive install-info-recursive \
226 + install-recursive installcheck-recursive installdirs-recursive \
227 + pdf-recursive ps-recursive uninstall-info-recursive \
228 + uninstall-recursive
229 +ETAGS = etags
230 +CTAGS = ctags
231 +DIST_SUBDIRS = $(SUBDIRS)
232 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
233 +distdir = $(PACKAGE)-$(VERSION)
234 +top_distdir = $(distdir)
235 +am__remove_distdir = \
236 + { test ! -d $(distdir) \
237 + || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
238 + && rm -fr $(distdir); }; }
239 +DIST_ARCHIVES = $(distdir).tar.gz
240 +GZIP_ENV = --best
241 +distuninstallcheck_listfiles = find . -type f -print
242 +distcleancheck_listfiles = find . -type f -print
243 +ACLOCAL = @ACLOCAL@
244 +ADDITIONAL_LIBS = @ADDITIONAL_LIBS@
245 +AMDEP_FALSE = @AMDEP_FALSE@
246 +AMDEP_TRUE = @AMDEP_TRUE@
247 +AMTAR = @AMTAR@
248 +AR = @AR@
249 +AUTOCONF = @AUTOCONF@
250 +AUTOHEADER = @AUTOHEADER@
251 +AUTOMAKE = @AUTOMAKE@
252 +AWK = @AWK@
253 +BIN_PREFIX = @BIN_PREFIX@
254 +CC = @CC@
255 +CCDEPMODE = @CCDEPMODE@
256 +CFLAGS = @CFLAGS@
257 +CPP = @CPP@
258 +CPPFLAGS = @CPPFLAGS@
259 +CYGPATH_W = @CYGPATH_W@
260 +DEFS = @DEFS@
261 +DEPDIR = @DEPDIR@
262 +ECHO = @ECHO@
263 +ECHO_C = @ECHO_C@
264 +ECHO_N = @ECHO_N@
265 +ECHO_T = @ECHO_T@
266 +EGREP = @EGREP@
267 +EXEEXT = @EXEEXT@
268 +INC_PREFIX = @INC_PREFIX@
269 +INSTALL_DATA = @INSTALL_DATA@
270 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
271 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
272 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
273 +LDFLAGS = @LDFLAGS@
274 +LIBNET_CONFIG_CFLAGS = @LIBNET_CONFIG_CFLAGS@
275 +LIBNET_CONFIG_DEFINES = @LIBNET_CONFIG_DEFINES@
276 +LIBNET_CONFIG_LIBS = @LIBNET_CONFIG_LIBS@
277 +LIBOBJS = @LIBOBJS@
278 +LIBS = @LIBS@
279 +LIBTOOL = @LIBTOOL@
280 +LIB_PREFIX = @LIB_PREFIX@
281 +LL_INT_TYPE = @LL_INT_TYPE@
282 +LL_INT_TYPE_UC = @LL_INT_TYPE_UC@
283 +LN = @LN@
284 +LN_S = @LN_S@
285 +LTLIBOBJS = @LTLIBOBJS@
286 +MAKEINFO = @MAKEINFO@
287 +MAN_PREFIX = @MAN_PREFIX@
288 +OBJEXT = @OBJEXT@
289 +PACKAGE = @PACKAGE@
290 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
291 +PACKAGE_NAME = @PACKAGE_NAME@
292 +PACKAGE_STRING = @PACKAGE_STRING@
293 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
294 +PACKAGE_VERSION = @PACKAGE_VERSION@
295 +PATH_SEPARATOR = @PATH_SEPARATOR@
296 +RANLIB = @RANLIB@
297 +SET_MAKE = @SET_MAKE@
298 +SHELL = @SHELL@
299 +STRIP = @STRIP@
300 +VERSION = @VERSION@
301 +ac_ct_CC = @ac_ct_CC@
302 +ac_ct_RANLIB = @ac_ct_RANLIB@
303 +ac_ct_STRIP = @ac_ct_STRIP@
304 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
305 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
306 +am__include = @am__include@
307 +am__leading_dot = @am__leading_dot@
308 +am__quote = @am__quote@
309 +bindir = @bindir@
310 +build = @build@
311 +build_alias = @build_alias@
312 +build_cpu = @build_cpu@
313 +build_os = @build_os@
314 +build_vendor = @build_vendor@
315 +datadir = @datadir@
316 +exec_prefix = @exec_prefix@
317 +host = @host@
318 +host_alias = @host_alias@
319 +host_cpu = @host_cpu@
320 +host_os = @host_os@
321 +host_vendor = @host_vendor@
322 +includedir = @includedir@
323 +infodir = @infodir@
324 +install_sh = @install_sh@
325 +libdir = @libdir@
326 +libexecdir = @libexecdir@
327 +localstatedir = @localstatedir@
328 +mandir = @mandir@
329 +mkdir_p = @mkdir_p@
330 +oldincludedir = @oldincludedir@
331 +prefix = @prefix@
332 +program_transform_name = @program_transform_name@
333 +sbindir = @sbindir@
334 +sharedstatedir = @sharedstatedir@
335 +sysconfdir = @sysconfdir@
336 +target = @target@
337 +target_alias = @target_alias@
338 +target_cpu = @target_cpu@
339 +target_os = @target_os@
340 +target_vendor = @target_vendor@
341 +AUTOMAKE_OPTIONS = foreign no-dependencies
342 +DISTCLEANFILES = *~
343 +SUBDIRS = src include
344 +EXTRA_DIST = Makefile.am.common
345 +bin_SCRIPTS = libnet-config
346 +all: all-recursive
347 +
348 +.SUFFIXES:
349 +am--refresh:
350 + @:
351 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/Makefile.am.common $(am__configure_deps)
352 + @for dep in $?; do \
353 + case '$(am__configure_deps)' in \
354 + *$$dep*) \
355 + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
356 + cd $(srcdir) && $(AUTOMAKE) --foreign \
357 + && exit 0; \
358 + exit 1;; \
359 + esac; \
360 + done; \
361 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
362 + cd $(top_srcdir) && \
363 + $(AUTOMAKE) --foreign Makefile
364 +.PRECIOUS: Makefile
365 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
366 + @case '$?' in \
367 + *config.status*) \
368 + echo ' $(SHELL) ./config.status'; \
369 + $(SHELL) ./config.status;; \
370 + *) \
371 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
372 + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
373 + esac;
374 +
375 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
376 + $(SHELL) ./config.status --recheck
377 +
378 +$(top_srcdir)/configure: $(am__configure_deps)
379 + cd $(srcdir) && $(AUTOCONF)
380 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
381 + cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
382 +libnet-config: $(top_builddir)/config.status $(srcdir)/libnet-config.in
383 + cd $(top_builddir) && $(SHELL) ./config.status $@
384 +install-binSCRIPTS: $(bin_SCRIPTS)
385 + @$(NORMAL_INSTALL)
386 + test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
387 + @list='$(bin_SCRIPTS)'; for p in $$list; do \
388 + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
389 + if test -f $$d$$p; then \
390 + f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
391 + echo " $(binSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(bindir)/$$f'"; \
392 + $(binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \
393 + else :; fi; \
394 + done
395 +
396 +uninstall-binSCRIPTS:
397 + @$(NORMAL_UNINSTALL)
398 + @list='$(bin_SCRIPTS)'; for p in $$list; do \
399 + f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
400 + echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
401 + rm -f "$(DESTDIR)$(bindir)/$$f"; \
402 + done
403 +
404 +mostlyclean-libtool:
405 + -rm -f *.lo
406 +
407 +clean-libtool:
408 + -rm -rf .libs _libs
409 +
410 +distclean-libtool:
411 + -rm -f libtool
412 +uninstall-info-am:
413 +
414 +# This directory's subdirectories are mostly independent; you can cd
415 +# into them and run `make' without going through this Makefile.
416 +# To change the values of `make' variables: instead of editing Makefiles,
417 +# (1) if the variable is set in `config.status', edit `config.status'
418 +# (which will cause the Makefiles to be regenerated when you run `make');
419 +# (2) otherwise, pass the desired values on the `make' command line.
420 +$(RECURSIVE_TARGETS):
421 + @set fnord $$MAKEFLAGS; amf=$$2; \
422 + dot_seen=no; \
423 + target=`echo $@ | sed s/-recursive//`; \
424 + list='$(SUBDIRS)'; for subdir in $$list; do \
425 + echo "Making $$target in $$subdir"; \
426 + if test "$$subdir" = "."; then \
427 + dot_seen=yes; \
428 + local_target="$$target-am"; \
429 + else \
430 + local_target="$$target"; \
431 + fi; \
432 + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
433 + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
434 + done; \
435 + if test "$$dot_seen" = "no"; then \
436 + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
437 + fi; test -z "$$fail"
438 +
439 +mostlyclean-recursive clean-recursive distclean-recursive \
440 +maintainer-clean-recursive:
441 + @set fnord $$MAKEFLAGS; amf=$$2; \
442 + dot_seen=no; \
443 + case "$@" in \
444 + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
445 + *) list='$(SUBDIRS)' ;; \
446 + esac; \
447 + rev=''; for subdir in $$list; do \
448 + if test "$$subdir" = "."; then :; else \
449 + rev="$$subdir $$rev"; \
450 + fi; \
451 + done; \
452 + rev="$$rev ."; \
453 + target=`echo $@ | sed s/-recursive//`; \
454 + for subdir in $$rev; do \
455 + echo "Making $$target in $$subdir"; \
456 + if test "$$subdir" = "."; then \
457 + local_target="$$target-am"; \
458 + else \
459 + local_target="$$target"; \
460 + fi; \
461 + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
462 + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
463 + done && test -z "$$fail"
464 +tags-recursive:
465 + list='$(SUBDIRS)'; for subdir in $$list; do \
466 + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
467 + done
468 +ctags-recursive:
469 + list='$(SUBDIRS)'; for subdir in $$list; do \
470 + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
471 + done
472 +
473 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
474 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
475 + unique=`for i in $$list; do \
476 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
477 + done | \
478 + $(AWK) ' { files[$$0] = 1; } \
479 + END { for (i in files) print i; }'`; \
480 + mkid -fID $$unique
481 +tags: TAGS
482 +
483 +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
484 + $(TAGS_FILES) $(LISP)
485 + tags=; \
486 + here=`pwd`; \
487 + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
488 + include_option=--etags-include; \
489 + empty_fix=.; \
490 + else \
491 + include_option=--include; \
492 + empty_fix=; \
493 + fi; \
494 + list='$(SUBDIRS)'; for subdir in $$list; do \
495 + if test "$$subdir" = .; then :; else \
496 + test ! -f $$subdir/TAGS || \
497 + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
498 + fi; \
499 + done; \
500 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
501 + unique=`for i in $$list; do \
502 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
503 + done | \
504 + $(AWK) ' { files[$$0] = 1; } \
505 + END { for (i in files) print i; }'`; \
506 + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
507 + test -n "$$unique" || unique=$$empty_fix; \
508 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
509 + $$tags $$unique; \
510 fi
511 - if test -f util/Makefile; then \
512 - cd util && make distclean; \
513 +ctags: CTAGS
514 +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
515 + $(TAGS_FILES) $(LISP)
516 + tags=; \
517 + here=`pwd`; \
518 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
519 + unique=`for i in $$list; do \
520 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
521 + done | \
522 + $(AWK) ' { files[$$0] = 1; } \
523 + END { for (i in files) print i; }'`; \
524 + test -z "$(CTAGS_ARGS)$$tags$$unique" \
525 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
526 + $$tags $$unique
527 +
528 +GTAGS:
529 + here=`$(am__cd) $(top_builddir) && pwd` \
530 + && cd $(top_srcdir) \
531 + && gtags -i $(GTAGS_ARGS) $$here
532 +
533 +distclean-tags:
534 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
535 +
536 +distdir: $(DISTFILES)
537 + $(am__remove_distdir)
538 + mkdir $(distdir)
539 + $(mkdir_p) $(distdir)/.
540 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
541 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
542 + list='$(DISTFILES)'; for file in $$list; do \
543 + case $$file in \
544 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
545 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
546 + esac; \
547 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
548 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
549 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
550 + dir="/$$dir"; \
551 + $(mkdir_p) "$(distdir)$$dir"; \
552 + else \
553 + dir=''; \
554 + fi; \
555 + if test -d $$d/$$file; then \
556 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
557 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
558 + fi; \
559 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
560 + else \
561 + test -f $(distdir)/$$file \
562 + || cp -p $$d/$$file $(distdir)/$$file \
563 + || exit 1; \
564 + fi; \
565 + done
566 + list='$(SUBDIRS)'; for subdir in $$list; do \
567 + if test "$$subdir" = .; then :; else \
568 + test -d "$(distdir)/$$subdir" \
569 + || mkdir "$(distdir)/$$subdir" \
570 + || exit 1; \
571 + (cd $$subdir && \
572 + $(MAKE) $(AM_MAKEFLAGS) \
573 + top_distdir="../$(top_distdir)" \
574 + distdir="../$(distdir)/$$subdir" \
575 + distdir) \
576 + || exit 1; \
577 + fi; \
578 + done
579 + -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
580 + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
581 + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
582 + ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
583 + || chmod -R a+r $(distdir)
584 +dist-gzip: distdir
585 + $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
586 + $(am__remove_distdir)
587 +
588 +dist-bzip2: distdir
589 + $(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
590 + $(am__remove_distdir)
591 +
592 +dist-tarZ: distdir
593 + $(AMTAR) chof - $(distdir) | compress -c >$(distdir).tar.Z
594 + $(am__remove_distdir)
595 +
596 +dist-shar: distdir
597 + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
598 + $(am__remove_distdir)
599 +
600 +dist-zip: distdir
601 + -rm -f $(distdir).zip
602 + zip -rq $(distdir).zip $(distdir)
603 + $(am__remove_distdir)
604 +
605 +dist dist-all: distdir
606 + $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
607 + $(am__remove_distdir)
608 +
609 +# This target untars the dist file and tries a VPATH configuration. Then
610 +# it guarantees that the distribution is self-contained by making another
611 +# tarfile.
612 +distcheck: dist
613 + case '$(DIST_ARCHIVES)' in \
614 + *.tar.gz*) \
615 + GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - ;;\
616 + *.tar.bz2*) \
617 + bunzip2 -c $(distdir).tar.bz2 | $(AMTAR) xf - ;;\
618 + *.tar.Z*) \
619 + uncompress -c $(distdir).tar.Z | $(AMTAR) xf - ;;\
620 + *.shar.gz*) \
621 + GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
622 + *.zip*) \
623 + unzip $(distdir).zip ;;\
624 + esac
625 + chmod -R a-w $(distdir); chmod a+w $(distdir)
626 + mkdir $(distdir)/_build
627 + mkdir $(distdir)/_inst
628 + chmod a-w $(distdir)
629 + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
630 + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
631 + && cd $(distdir)/_build \
632 + && ../configure --srcdir=.. --prefix="$$dc_install_base" \
633 + $(DISTCHECK_CONFIGURE_FLAGS) \
634 + && $(MAKE) $(AM_MAKEFLAGS) \
635 + && $(MAKE) $(AM_MAKEFLAGS) dvi \
636 + && $(MAKE) $(AM_MAKEFLAGS) check \
637 + && $(MAKE) $(AM_MAKEFLAGS) install \
638 + && $(MAKE) $(AM_MAKEFLAGS) installcheck \
639 + && $(MAKE) $(AM_MAKEFLAGS) uninstall \
640 + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
641 + distuninstallcheck \
642 + && chmod -R a-w "$$dc_install_base" \
643 + && ({ \
644 + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
645 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
646 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
647 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
648 + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
649 + } || { rm -rf "$$dc_destdir"; exit 1; }) \
650 + && rm -rf "$$dc_destdir" \
651 + && $(MAKE) $(AM_MAKEFLAGS) dist \
652 + && rm -rf $(DIST_ARCHIVES) \
653 + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
654 + $(am__remove_distdir)
655 + @(echo "$(distdir) archives ready for distribution: "; \
656 + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
657 + sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
658 +distuninstallcheck:
659 + @cd $(distuninstallcheck_dir) \
660 + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
661 + || { echo "ERROR: files left after uninstall:" ; \
662 + if test -n "$(DESTDIR)"; then \
663 + echo " (check DESTDIR support)"; \
664 + fi ; \
665 + $(distuninstallcheck_listfiles) ; \
666 + exit 1; } >&2
667 +distcleancheck: distclean
668 + @if test '$(srcdir)' = . ; then \
669 + echo "ERROR: distcleancheck can only run from a VPATH build" ; \
670 + exit 1 ; \
671 fi
672 - if test -f support/bpf-lkm/etherspoof; then \
673 - cd support/bpf-lkm/etherspoof && rm -rf Makefile; \
674 - fi
675 - rm -f config.log config.cache config.status Makefile include/config.h \
676 - version.h support/bpf-lkm/etherspoof conftest* libnet-config
677 + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
678 + || { echo "ERROR: files left in build directory after distclean:" ; \
679 + $(distcleancheck_listfiles) ; \
680 + exit 1; } >&2
681 +check-am: all-am
682 +check: check-recursive
683 +all-am: Makefile $(SCRIPTS)
684 +installdirs: installdirs-recursive
685 +installdirs-am:
686 + for dir in "$(DESTDIR)$(bindir)"; do \
687 + test -z "$$dir" || $(mkdir_p) "$$dir"; \
688 + done
689 +install: install-recursive
690 +install-exec: install-exec-recursive
691 +install-data: install-data-recursive
692 +uninstall: uninstall-recursive
693 +
694 +install-am: all-am
695 + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
696 +
697 +installcheck: installcheck-recursive
698 +install-strip:
699 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
700 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
701 + `test -z '$(STRIP)' || \
702 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
703 +mostlyclean-generic:
704 +
705 +clean-generic:
706 +
707 +distclean-generic:
708 + -rm -f $(CONFIG_CLEAN_FILES)
709 + -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
710 +
711 +maintainer-clean-generic:
712 + @echo "This command is intended for maintainers to use"
713 + @echo "it deletes files that may require special tools to rebuild."
714 +clean: clean-recursive
715 +
716 +clean-am: clean-generic clean-libtool mostlyclean-am
717 +
718 +distclean: distclean-recursive
719 + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
720 + -rm -f Makefile
721 +distclean-am: clean-am distclean-generic distclean-libtool \
722 + distclean-tags
723 +
724 +dvi: dvi-recursive
725 +
726 +dvi-am:
727 +
728 +html: html-recursive
729 +
730 +info: info-recursive
731 +
732 +info-am:
733 +
734 +install-data-am:
735 +
736 +install-exec-am: install-binSCRIPTS
737 +
738 +install-info: install-info-recursive
739 +
740 +install-man:
741 +
742 +installcheck-am:
743 +
744 +maintainer-clean: maintainer-clean-recursive
745 + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
746 + -rm -rf $(top_srcdir)/autom4te.cache
747 + -rm -f Makefile
748 +maintainer-clean-am: distclean-am maintainer-clean-generic
749 +
750 +mostlyclean: mostlyclean-recursive
751 +
752 +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
753 +
754 +pdf: pdf-recursive
755 +
756 +pdf-am:
757 +
758 +ps: ps-recursive
759 +
760 +ps-am:
761 +
762 +uninstall-am: uninstall-binSCRIPTS uninstall-info-am
763 +
764 +uninstall-info: uninstall-info-recursive
765 +
766 +.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
767 + check-am clean clean-generic clean-libtool clean-recursive \
768 + ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
769 + dist-shar dist-tarZ dist-zip distcheck distclean \
770 + distclean-generic distclean-libtool distclean-recursive \
771 + distclean-tags distcleancheck distdir distuninstallcheck dvi \
772 + dvi-am html html-am info info-am install install-am \
773 + install-binSCRIPTS install-data install-data-am install-exec \
774 + install-exec-am install-info install-info-am install-man \
775 + install-strip installcheck installcheck-am installdirs \
776 + installdirs-am maintainer-clean maintainer-clean-generic \
777 + maintainer-clean-recursive mostlyclean mostlyclean-generic \
778 + mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
779 + tags tags-recursive uninstall uninstall-am \
780 + uninstall-binSCRIPTS uninstall-info-am
781 +
782
783 -# EOF
784 +version.h: VERSION
785 + sed -e 's/.*/#define VERSION "&"/' < $< > $@
786 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
787 +# Otherwise a system limit (for SysV at least) may be exceeded.
788 +.NOEXPORT:
789 diff -ruN libnet-1.0.2a-orig/acconfig.h libnet-1.0.2a-7/acconfig.h
790 --- libnet-1.0.2a-orig/acconfig.h 2000-12-12 19:31:39.000000000 +0100
791 +++ libnet-1.0.2a-7/acconfig.h 2005-03-08 03:53:26.000000000 +0100
792 @@ -1,15 +1,17 @@
793 -dnl $Id$
794 -dnl
795 -dnl Libnet autoconfiguration acconfig.h file
796 -dnl Copyright (c) 1998 - 2001 Mike D. Schiffman <mike@infonexus.com>
797 -dnl All rights reserved.
798 -dnl
799 -dnl Process this file with autoheader to produce a config.h file.
800 -dnl
801 +/* $Id$
802 + *
803 + * Libnet autoconfiguration acconfig.h file
804 + * Copyright (c) 1998 - 2001 Mike D. Schiffman <mike@infonexus.com>
805 + * All rights reserved.
806 + *
807 + * Process this file with autoheader to produce a config.h file.
808 + */
809
810 #undef LIBNET_BSDISH_OS
811 #undef LIBNET_BSD_BYTE_SWAP
812 #undef DLPI_DEV_PREFIX
813 +#undef LIBNET_FAST_X86_CHECK
814 +#undef HAVE_SOLARIS
815 #undef HAVE_DEV_DLPI
816 #undef HAVE_SOCKADDR_SA_LEN
817 #undef HAVE_DLPI
818 @@ -23,5 +25,3 @@
819 #undef __FAVOR_BSD
820 #undef LIBNET_BIG_ENDIAN
821 #undef LIBNET_LIL_ENDIAN
822 -
823 -dnl EOF
824 diff -ruN libnet-1.0.2a-orig/acinclude.m4 libnet-1.0.2a-7/acinclude.m4
825 --- libnet-1.0.2a-orig/acinclude.m4 2000-12-12 19:31:54.000000000 +0100
826 +++ libnet-1.0.2a-7/acinclude.m4 2005-03-08 03:53:26.000000000 +0100
827 @@ -30,65 +30,43 @@
828 *)
829
830 cat > pf_packet-test.c << EOF
831 -#include <net/if.h>
832 -#if (__GLIBC__)
833 -#include <netinet/if_ether.h>
834 -#include <net/if_arp.h>
835 +#include <stdio.h>
836 +#include <errno.h>
837 +#include <stdlib.h>
838 +#include <netinet/in.h>
839 +#include <sys/socket.h>
840 +#include <features.h> /* for the glibc version number */
841 +#if __GLIBC__ >= 2 && __GLIBC_MINOR >= 1
842 +#include <netpacket/packet.h>
843 +#include <net/ethernet.h> /* the L2 protocols */
844 #else
845 -#include <linux/if_arp.h>
846 -#include <linux/if_ether.h>
847 +#include <asm/types.h>
848 +#include <linux/if_packet.h>
849 +#include <linux/if_ether.h> /* The L2 protocols */
850 #endif
851 -#if (PF_PACKET)
852 +
853 #ifndef SOL_PACKET
854 #define SOL_PACKET 263
855 #endif /* SOL_PACKET */
856 -#include <linux/if_packet.h>
857 -#endif
858 -#include "./include/libnet.h"
859
860 int
861 main()
862 {
863 -#if (PF_PACKET)
864 int fd;
865 - struct sockaddr_ll sa;
866 - struct ifreq ifr;
867 - struct packet_mreq mr;
868 - char *device ="lo";
869
870 fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
871 if (fd == -1)
872 {
873 - printf("choked");
874 - exit (EXIT_FAILURE);
875 - }
876 -
877 - memset(&sa, 0, sizeof(sa));
878 - strcpy(ifr.ifr_name, device);
879 - if (ioctl(fd, SIOCGIFINDEX, &ifr) < 0)
880 - {
881 - printf("choked");
882 - exit (EXIT_FAILURE);
883 - }
884 - sa.sll_family = AF_PACKET;
885 - sa.sll_ifindex = ifr.ifr_ifindex;
886 - sa.sll_protocol = htons(ETH_P_ALL);
887 -
888 - memset(&mr, 0, sizeof (mr));
889 - mr.mr_ifindex = sa.sll_ifindex;
890 - mr.mr_type = PACKET_MR_ALLMULTI;
891 -
892 - if (setsockopt(fd, SOL_PACKET, PACKET_ADD_MEMBERSHIP, (char *)&mr,
893 - sizeof (mr)) < 0)
894 - {
895 - printf("choked\n");
896 + if (errno == EPERM)
897 + {
898 + /* user's UID != 0 */
899 + printf("probably");
900 + exit (EXIT_FAILURE);
901 + }
902 + printf("no");
903 exit (EXIT_FAILURE);
904 }
905 - /* yay. we made it and it workz! */
906 printf("yes");
907 -#else /* PF_PACKET */
908 - printf("no");
909 -#endif
910 exit (EXIT_SUCCESS);
911 }
912 EOF
913 @@ -104,16 +82,21 @@
914 if test $ac_libnet_have_pf_packet = choked; then
915 AC_MSG_RESULT(test program choked... assuming no)
916 elif test $ac_libnet_have_pf_packet = yes; then
917 - AC_DEFINE(HAVE_PF_PACKET)
918 + AC_MSG_RESULT(yes)
919 LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_PF_PACKET"
920 + elif test $ac_libnet_have_pf_packet = probably; then
921 + AC_MSG_RESULT(test program got EPERM... assuming yes)
922 + elif test $ac_libnet_have_pf_packet = no; then
923 + AC_MSG_RESULT(no)
924 fi
925
926 - if test $ac_libnet_have_pf_packet != choked; then
927 - AC_MSG_RESULT($ac_libnet_have_pf_packet)
928 - fi
929 rm -f pf_packet-test* core core.pf_packet-test
930 ;;
931 esac])
932 +
933 + if test $ac_libnet_have_pf_packet = yes -o $ac_libnet_have_pf_packet = probably; then
934 + AC_DEFINE(HAVE_PF_PACKET)
935 + fi
936 ])
937
938 dnl
939 @@ -279,6 +262,8 @@
940
941 AC_DEFUN(AC_LIBNET_ENDIAN_CHECK,
942 [AC_MSG_CHECKING(machine endianess)
943 + AC_CACHE_VAL(ac_cv_libnet_endianess,
944 + [
945
946 cat > conftest.c << EOF
947 # include <stdio.h>
948 @@ -332,6 +317,7 @@
949 fi
950 rm -f conftest* core core.conftest
951
952 + ])
953 AC_MSG_RESULT($ac_cv_libnet_endianess)
954
955 if test $ac_cv_libnet_endianess = big ; then
956 diff -ruN libnet-1.0.2a-orig/aclocal.m4 libnet-1.0.2a-7/aclocal.m4
957 --- libnet-1.0.2a-orig/aclocal.m4 2001-01-07 21:49:29.000000000 +0100
958 +++ libnet-1.0.2a-7/aclocal.m4 2005-03-08 03:53:26.000000000 +0100
959 @@ -1,358 +1,4525 @@
960 -dnl aclocal.m4 generated automatically by aclocal 1.4
961 +# generated automatically by aclocal 1.8.5 -*- Autoconf -*-
962
963 -dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
964 -dnl This file is free software; the Free Software Foundation
965 -dnl gives unlimited permission to copy and/or distribute it,
966 -dnl with or without modifications, as long as this notice is preserved.
967 -
968 -dnl This program is distributed in the hope that it will be useful,
969 -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
970 -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
971 -dnl PARTICULAR PURPOSE.
972 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
973 +# Free Software Foundation, Inc.
974 +# This file is free software; the Free Software Foundation
975 +# gives unlimited permission to copy and/or distribute it,
976 +# with or without modifications, as long as this notice is preserved.
977
978 -dnl $Id$
979 -dnl
980 -dnl Libnet specific autoconf macros
981 -dnl Copyright (c) 1998, 1999, 2000 Mike D. Schiffman <mike@infonexus.com>
982 -dnl All rights reserved.
983 -dnl
984 +# This program is distributed in the hope that it will be useful,
985 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
986 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
987 +# PARTICULAR PURPOSE.
988
989 -dnl
990 -dnl Checks to see if this linux kernel has a working PF_PACKET
991 -dnl
992 -dnl usage:
993 -dnl
994 -dnl AC_LIBNET_CHECK_PF_PACKET
995 -dnl
996 -dnl results:
997 -dnl
998 -dnl HAVE_PF_PACKET (DEFINED)
999 +# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
1000 +
1001 +# serial 46 AC_PROG_LIBTOOL
1002 +# Debian $Rev: 102 $
1003 +
1004 +AC_DEFUN([AC_PROG_LIBTOOL],
1005 +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
1006 +
1007 +# This can be used to rebuild libtool when needed
1008 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1009 +
1010 +# Always use our own libtool.
1011 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1012 +AC_SUBST(LIBTOOL)dnl
1013 +
1014 +# Prevent multiple expansion
1015 +define([AC_PROG_LIBTOOL], [])
1016 +])
1017 +
1018 +AC_DEFUN([AC_LIBTOOL_SETUP],
1019 +[AC_PREREQ(2.13)dnl
1020 +AC_REQUIRE([AC_ENABLE_SHARED])dnl
1021 +AC_REQUIRE([AC_ENABLE_STATIC])dnl
1022 +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
1023 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
1024 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1025 +AC_REQUIRE([AC_PROG_CC])dnl
1026 +AC_REQUIRE([AC_PROG_LD])dnl
1027 +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
1028 +AC_REQUIRE([AC_PROG_NM])dnl
1029 +AC_REQUIRE([LT_AC_PROG_SED])dnl
1030 +
1031 +AC_REQUIRE([AC_PROG_LN_S])dnl
1032 +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
1033 +AC_REQUIRE([AC_OBJEXT])dnl
1034 +AC_REQUIRE([AC_EXEEXT])dnl
1035 dnl
1036
1037 -AC_DEFUN(AC_LIBNET_CHECK_PF_PACKET,
1038 -[
1039 - AC_MSG_CHECKING(for PF_PACKET)
1040 - AC_CACHE_VAL(ac_libnet_have_pf_packet,
1041 -
1042 - [case "$target_os" in
1043 -
1044 - linux)
1045 - ac_libnet_have_pf_packet = no
1046 - ;;
1047 - *)
1048 -
1049 - cat > pf_packet-test.c << EOF
1050 -#include <net/if.h>
1051 -#if (__GLIBC__)
1052 -#include <netinet/if_ether.h>
1053 -#include <net/if_arp.h>
1054 -#else
1055 -#include <linux/if_arp.h>
1056 -#include <linux/if_ether.h>
1057 +_LT_AC_PROG_ECHO_BACKSLASH
1058 +# Only perform the check for file, if the check method requires it
1059 +case $deplibs_check_method in
1060 +file_magic*)
1061 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1062 + AC_PATH_MAGIC
1063 + fi
1064 + ;;
1065 +esac
1066 +
1067 +AC_CHECK_TOOL(RANLIB, ranlib, :)
1068 +AC_CHECK_TOOL(STRIP, strip, :)
1069 +
1070 +ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1071 +ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
1072 +enable_win32_dll=yes, enable_win32_dll=no)
1073 +
1074 +AC_ARG_ENABLE(libtool-lock,
1075 + [ --disable-libtool-lock avoid locking (might break parallel builds)])
1076 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1077 +
1078 +# Some flags need to be propagated to the compiler or linker for good
1079 +# libtool support.
1080 +case $host in
1081 +*-*-irix6*)
1082 + # Find out which ABI we are using.
1083 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1084 + if AC_TRY_EVAL(ac_compile); then
1085 + case `/usr/bin/file conftest.$ac_objext` in
1086 + *32-bit*)
1087 + LD="${LD-ld} -32"
1088 + ;;
1089 + *N32*)
1090 + LD="${LD-ld} -n32"
1091 + ;;
1092 + *64-bit*)
1093 + LD="${LD-ld} -64"
1094 + ;;
1095 + esac
1096 + fi
1097 + rm -rf conftest*
1098 + ;;
1099 +
1100 +*-*-sco3.2v5*)
1101 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1102 + SAVE_CFLAGS="$CFLAGS"
1103 + CFLAGS="$CFLAGS -belf"
1104 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1105 + [AC_LANG_SAVE
1106 + AC_LANG_C
1107 + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1108 + AC_LANG_RESTORE])
1109 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1110 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1111 + CFLAGS="$SAVE_CFLAGS"
1112 + fi
1113 + ;;
1114 +
1115 +ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
1116 +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1117 + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1118 + AC_CHECK_TOOL(AS, as, false)
1119 + AC_CHECK_TOOL(OBJDUMP, objdump, false)
1120 +
1121 + # recent cygwin and mingw systems supply a stub DllMain which the user
1122 + # can override, but on older systems we have to supply one
1123 + AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
1124 + [AC_TRY_LINK([],
1125 + [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
1126 + DllMain (0, 0, 0);],
1127 + [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
1128 +
1129 + case $host/$CC in
1130 + *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
1131 + # old mingw systems require "-dll" to link a DLL, while more recent ones
1132 + # require "-mdll"
1133 + SAVE_CFLAGS="$CFLAGS"
1134 + CFLAGS="$CFLAGS -mdll"
1135 + AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
1136 + [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
1137 + CFLAGS="$SAVE_CFLAGS" ;;
1138 + *-*-cygwin* | *-*-pw32*)
1139 + # cygwin systems need to pass --dll to the linker, and not link
1140 + # crt.o which will require a WinMain@16 definition.
1141 + lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
1142 + esac
1143 + ;;
1144 + ])
1145 +esac
1146 +
1147 +_LT_AC_LTCONFIG_HACK
1148 +
1149 +])
1150 +
1151 +# AC_LIBTOOL_HEADER_ASSERT
1152 +# ------------------------
1153 +AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
1154 +[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
1155 + [lt_cv_func_assert_works],
1156 + [case $host in
1157 + *-*-solaris*)
1158 + if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
1159 + case `$CC --version 2>/dev/null` in
1160 + [[12]].*) lt_cv_func_assert_works=no ;;
1161 + *) lt_cv_func_assert_works=yes ;;
1162 + esac
1163 + fi
1164 + ;;
1165 + esac])
1166 +
1167 +if test "x$lt_cv_func_assert_works" = xyes; then
1168 + AC_CHECK_HEADERS(assert.h)
1169 +fi
1170 +])# AC_LIBTOOL_HEADER_ASSERT
1171 +
1172 +# _LT_AC_CHECK_DLFCN
1173 +# --------------------
1174 +AC_DEFUN([_LT_AC_CHECK_DLFCN],
1175 +[AC_CHECK_HEADERS(dlfcn.h)
1176 +])# _LT_AC_CHECK_DLFCN
1177 +
1178 +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1179 +# ---------------------------------
1180 +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
1181 +[AC_REQUIRE([AC_CANONICAL_HOST])
1182 +AC_REQUIRE([AC_PROG_NM])
1183 +AC_REQUIRE([AC_OBJEXT])
1184 +# Check for command to grab the raw symbol name followed by C symbol from nm.
1185 +AC_MSG_CHECKING([command to parse $NM output])
1186 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
1187 +
1188 +# These are sane defaults that work on at least a few old systems.
1189 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
1190 +
1191 +# Character class describing NM global symbol codes.
1192 +symcode='[[BCDEGRST]]'
1193 +
1194 +# Regexp to match symbols that can be accessed directly from C.
1195 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
1196 +
1197 +# Transform the above into a raw symbol and a C symbol.
1198 +symxfrm='\1 \2\3 \3'
1199 +
1200 +# Transform an extracted symbol line into a proper C declaration
1201 +lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1202 +
1203 +# Transform an extracted symbol line into symbol name and symbol address
1204 +lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
1205 +
1206 +# Define system-specific variables.
1207 +case $host_os in
1208 +aix*)
1209 + symcode='[[BCDT]]'
1210 + ;;
1211 +cygwin* | mingw* | pw32*)
1212 + symcode='[[ABCDGISTW]]'
1213 + ;;
1214 +hpux*) # Its linker distinguishes data from code symbols
1215 + lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1216 + lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
1217 + ;;
1218 +irix* | nonstopux*)
1219 + symcode='[[BCDEGRST]]'
1220 + ;;
1221 +osf*)
1222 + symcode='[[BCDEGQRST]]'
1223 + ;;
1224 +solaris* | sysv5*)
1225 + symcode='[[BDT]]'
1226 + ;;
1227 +sysv4)
1228 + symcode='[[DFNSTU]]'
1229 + ;;
1230 +esac
1231 +
1232 +# Handle CRLF in mingw tool chain
1233 +opt_cr=
1234 +case $host_os in
1235 +mingw*)
1236 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1237 + ;;
1238 +esac
1239 +
1240 +# If we're using GNU nm, then use its standard symbol codes.
1241 +if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
1242 + symcode='[[ABCDGISTW]]'
1243 +fi
1244 +
1245 +# Try without a prefix undercore, then with it.
1246 +for ac_symprfx in "" "_"; do
1247 +
1248 + # Write the raw and C identifiers.
1249 +lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
1250 +
1251 + # Check to see that the pipe works correctly.
1252 + pipe_works=no
1253 + rm -f conftest*
1254 + cat > conftest.$ac_ext <<EOF
1255 +#ifdef __cplusplus
1256 +extern "C" {
1257 #endif
1258 -#if (PF_PACKET)
1259 -#ifndef SOL_PACKET
1260 -#define SOL_PACKET 263
1261 -#endif /* SOL_PACKET */
1262 -#include <linux/if_packet.h>
1263 +char nm_test_var;
1264 +void nm_test_func(){}
1265 +#ifdef __cplusplus
1266 +}
1267 #endif
1268 -#include <stdlib.h>
1269 -#include <linux/sockios.h>
1270 +int main(){nm_test_var='a';nm_test_func();return(0);}
1271 +EOF
1272
1273 -int
1274 -main()
1275 -{
1276 -#if (PF_PACKET)
1277 - int fd;
1278 - struct sockaddr_ll sa;
1279 - struct ifreq ifr;
1280 - struct packet_mreq mr;
1281 - char *device ="lo";
1282 + if AC_TRY_EVAL(ac_compile); then
1283 + # Now try to grab the symbols.
1284 + nlist=conftest.nm
1285 + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
1286 + # Try sorting and uniquifying the output.
1287 + if sort "$nlist" | uniq > "$nlist"T; then
1288 + mv -f "$nlist"T "$nlist"
1289 + else
1290 + rm -f "$nlist"T
1291 + fi
1292
1293 - fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
1294 - if (fd == -1)
1295 - {
1296 - printf("choked");
1297 - exit (EXIT_FAILURE);
1298 - }
1299 + # Make sure that we snagged all the symbols we need.
1300 + if egrep ' nm_test_var$' "$nlist" >/dev/null; then
1301 + if egrep ' nm_test_func$' "$nlist" >/dev/null; then
1302 + cat <<EOF > conftest.$ac_ext
1303 +#ifdef __cplusplus
1304 +extern "C" {
1305 +#endif
1306
1307 - memset(&sa, 0, sizeof(sa));
1308 - strcpy(ifr.ifr_name, device);
1309 - if (ioctl(fd, SIOCGIFINDEX, &ifr) < 0)
1310 - {
1311 - printf("choked");
1312 - exit (EXIT_FAILURE);
1313 - }
1314 - sa.sll_family = AF_PACKET;
1315 - sa.sll_ifindex = ifr.ifr_ifindex;
1316 - sa.sll_protocol = htons(ETH_P_ALL);
1317 -
1318 - memset(&mr, 0, sizeof (mr));
1319 - mr.mr_ifindex = sa.sll_ifindex;
1320 - mr.mr_type = PACKET_MR_ALLMULTI;
1321 +EOF
1322 + # Now generate the symbol file.
1323 + eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
1324
1325 - if (setsockopt(fd, SOL_PACKET, PACKET_ADD_MEMBERSHIP, (char *)&mr,
1326 - sizeof (mr)) < 0)
1327 - {
1328 - printf("choked\n");
1329 - exit (EXIT_FAILURE);
1330 - }
1331 - /* yay. we made it and it workz! */
1332 - printf("yes");
1333 -#else /* PF_PACKET */
1334 - printf("no");
1335 + cat <<EOF >> conftest.$ac_ext
1336 +#if defined (__STDC__) && __STDC__
1337 +# define lt_ptr void *
1338 +#else
1339 +# define lt_ptr char *
1340 +# define const
1341 #endif
1342 - exit (EXIT_SUCCESS);
1343 +
1344 +/* The mapping between symbol names and symbols. */
1345 +const struct {
1346 + const char *name;
1347 + lt_ptr address;
1348 }
1349 +lt_preloaded_symbols[[]] =
1350 +{
1351 EOF
1352 - ${CC-cc} -o pf_packet-test $CFLAGS pf_packet-test.c >/dev/null 2>&1
1353 + sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
1354 + cat <<\EOF >> conftest.$ac_ext
1355 + {0, (lt_ptr) 0}
1356 +};
1357
1358 - # Oopz 4.3 BSD doesn't have this. Sorry.
1359 - if test ! -x ./pf_packet-test ; then
1360 - ac_libnet_have_pf_packet=choked
1361 +#ifdef __cplusplus
1362 +}
1363 +#endif
1364 +EOF
1365 + # Now try linking the two files.
1366 + mv conftest.$ac_objext conftstm.$ac_objext
1367 + save_LIBS="$LIBS"
1368 + save_CFLAGS="$CFLAGS"
1369 + LIBS="conftstm.$ac_objext"
1370 + CFLAGS="$CFLAGS$no_builtin_flag"
1371 + if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
1372 + pipe_works=yes
1373 + fi
1374 + LIBS="$save_LIBS"
1375 + CFLAGS="$save_CFLAGS"
1376 + else
1377 + echo "cannot find nm_test_func in $nlist" >&AC_FD_CC
1378 + fi
1379 + else
1380 + echo "cannot find nm_test_var in $nlist" >&AC_FD_CC
1381 + fi
1382 else
1383 - ac_libnet_have_pf_packet=`./pf_packet-test`;
1384 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC
1385 + fi
1386 + else
1387 + echo "$progname: failed program was:" >&AC_FD_CC
1388 + cat conftest.$ac_ext >&5
1389 + fi
1390 + rm -f conftest* conftst*
1391 +
1392 + # Do not use the global_symbol_pipe unless it works.
1393 + if test "$pipe_works" = yes; then
1394 + break
1395 + else
1396 + lt_cv_sys_global_symbol_pipe=
1397 + fi
1398 +done
1399 +])
1400 +global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
1401 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
1402 + global_symbol_to_cdecl=
1403 + global_symbol_to_c_name_address=
1404 +else
1405 + global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
1406 + global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
1407 +fi
1408 +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
1409 +then
1410 + AC_MSG_RESULT(failed)
1411 +else
1412 + AC_MSG_RESULT(ok)
1413 +fi
1414 +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1415 +
1416 +# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1417 +# ---------------------------------
1418 +AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
1419 +[# Find the correct PATH separator. Usually this is `:', but
1420 +# DJGPP uses `;' like DOS.
1421 +if test "X${PATH_SEPARATOR+set}" != Xset; then
1422 + UNAME=${UNAME-`uname 2>/dev/null`}
1423 + case X$UNAME in
1424 + *-DOS) lt_cv_sys_path_separator=';' ;;
1425 + *) lt_cv_sys_path_separator=':' ;;
1426 + esac
1427 + PATH_SEPARATOR=$lt_cv_sys_path_separator
1428 +fi
1429 +])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1430 +
1431 +# _LT_AC_PROG_ECHO_BACKSLASH
1432 +# --------------------------
1433 +# Add some code to the start of the generated configure script which
1434 +# will find an echo command which doesn't interpret backslashes.
1435 +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1436 +[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1437 + [AC_DIVERT_PUSH(NOTICE)])
1438 +_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1439 +
1440 +# Check that we are running under the correct shell.
1441 +SHELL=${CONFIG_SHELL-/bin/sh}
1442 +
1443 +case X$ECHO in
1444 +X*--fallback-echo)
1445 + # Remove one level of quotation (which was required for Make).
1446 + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1447 + ;;
1448 +esac
1449 +
1450 +echo=${ECHO-echo}
1451 +if test "X[$]1" = X--no-reexec; then
1452 + # Discard the --no-reexec flag, and continue.
1453 + shift
1454 +elif test "X[$]1" = X--fallback-echo; then
1455 + # Avoid inline document here, it may be left over
1456 + :
1457 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
1458 + # Yippee, $echo works!
1459 + :
1460 +else
1461 + # Restart under the correct shell.
1462 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1463 +fi
1464 +
1465 +if test "X[$]1" = X--fallback-echo; then
1466 + # used as fallback echo
1467 + shift
1468 + cat <<EOF
1469 +$*
1470 +EOF
1471 + exit 0
1472 +fi
1473 +
1474 +# The HP-UX ksh and POSIX shell print the target directory to stdout
1475 +# if CDPATH is set.
1476 +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
1477 +
1478 +if test -z "$ECHO"; then
1479 +if test "X${echo_test_string+set}" != Xset; then
1480 +# find a string as large as possible, as long as the shell can cope with it
1481 + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1482 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1483 + if (echo_test_string="`eval $cmd`") 2>/dev/null &&
1484 + echo_test_string="`eval $cmd`" &&
1485 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1486 + then
1487 + break
1488 + fi
1489 + done
1490 +fi
1491 +
1492 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1493 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1494 + test "X$echo_testing_string" = "X$echo_test_string"; then
1495 + :
1496 +else
1497 + # The Solaris, AIX, and Digital Unix default echo programs unquote
1498 + # backslashes. This makes it impossible to quote backslashes using
1499 + # echo "$something" | sed 's/\\/\\\\/g'
1500 + #
1501 + # So, first we look for a working echo in the user's PATH.
1502 +
1503 + IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1504 + for dir in $PATH /usr/ucb; do
1505 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1506 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1507 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1508 + test "X$echo_testing_string" = "X$echo_test_string"; then
1509 + echo="$dir/echo"
1510 + break
1511 fi
1512 + done
1513 + IFS="$save_ifs"
1514
1515 - if test $ac_libnet_have_pf_packet = choked; then
1516 - AC_MSG_RESULT(test program choked... assuming no)
1517 - elif test $ac_libnet_have_pf_packet = yes; then
1518 - AC_DEFINE(HAVE_PF_PACKET)
1519 - LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_PF_PACKET"
1520 + if test "X$echo" = Xecho; then
1521 + # We didn't find a better echo, so look for alternatives.
1522 + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1523 + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1524 + test "X$echo_testing_string" = "X$echo_test_string"; then
1525 + # This shell has a builtin print -r that does the trick.
1526 + echo='print -r'
1527 + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1528 + test "X$CONFIG_SHELL" != X/bin/ksh; then
1529 + # If we have ksh, try running configure again with it.
1530 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1531 + export ORIGINAL_CONFIG_SHELL
1532 + CONFIG_SHELL=/bin/ksh
1533 + export CONFIG_SHELL
1534 + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1535 + else
1536 + # Try using printf.
1537 + echo='printf %s\n'
1538 + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1539 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1540 + test "X$echo_testing_string" = "X$echo_test_string"; then
1541 + # Cool, printf works
1542 + :
1543 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1544 + test "X$echo_testing_string" = 'X\t' &&
1545 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1546 + test "X$echo_testing_string" = "X$echo_test_string"; then
1547 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1548 + export CONFIG_SHELL
1549 + SHELL="$CONFIG_SHELL"
1550 + export SHELL
1551 + echo="$CONFIG_SHELL [$]0 --fallback-echo"
1552 + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1553 + test "X$echo_testing_string" = 'X\t' &&
1554 + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1555 + test "X$echo_testing_string" = "X$echo_test_string"; then
1556 + echo="$CONFIG_SHELL [$]0 --fallback-echo"
1557 + else
1558 + # maybe with a smaller string...
1559 + prev=:
1560 +
1561 + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1562 + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1563 + then
1564 + break
1565 + fi
1566 + prev="$cmd"
1567 + done
1568 +
1569 + if test "$prev" != 'sed 50q "[$]0"'; then
1570 + echo_test_string=`eval $prev`
1571 + export echo_test_string
1572 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1573 + else
1574 + # Oops. We lost completely, so just stick with echo.
1575 + echo=echo
1576 + fi
1577 + fi
1578 fi
1579 + fi
1580 +fi
1581 +fi
1582 +
1583 +# Copy echo and quote the copy suitably for passing to libtool from
1584 +# the Makefile, instead of quoting the original, which is used later.
1585 +ECHO=$echo
1586 +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1587 + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1588 +fi
1589 +
1590 +AC_SUBST(ECHO)
1591 +AC_DIVERT_POP
1592 +])# _LT_AC_PROG_ECHO_BACKSLASH
1593 +
1594 +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1595 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1596 +# ------------------------------------------------------------------
1597 +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1598 +[if test "$cross_compiling" = yes; then :
1599 + [$4]
1600 +else
1601 + AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1602 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1603 + lt_status=$lt_dlunknown
1604 + cat > conftest.$ac_ext <<EOF
1605 +[#line __oline__ "configure"
1606 +#include "confdefs.h"
1607 +
1608 +#if HAVE_DLFCN_H
1609 +#include <dlfcn.h>
1610 +#endif
1611 +
1612 +#include <stdio.h>
1613 +
1614 +#ifdef RTLD_GLOBAL
1615 +# define LT_DLGLOBAL RTLD_GLOBAL
1616 +#else
1617 +# ifdef DL_GLOBAL
1618 +# define LT_DLGLOBAL DL_GLOBAL
1619 +# else
1620 +# define LT_DLGLOBAL 0
1621 +# endif
1622 +#endif
1623 +
1624 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1625 + find out it does not work in some platform. */
1626 +#ifndef LT_DLLAZY_OR_NOW
1627 +# ifdef RTLD_LAZY
1628 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
1629 +# else
1630 +# ifdef DL_LAZY
1631 +# define LT_DLLAZY_OR_NOW DL_LAZY
1632 +# else
1633 +# ifdef RTLD_NOW
1634 +# define LT_DLLAZY_OR_NOW RTLD_NOW
1635 +# else
1636 +# ifdef DL_NOW
1637 +# define LT_DLLAZY_OR_NOW DL_NOW
1638 +# else
1639 +# define LT_DLLAZY_OR_NOW 0
1640 +# endif
1641 +# endif
1642 +# endif
1643 +# endif
1644 +#endif
1645 +
1646 +#ifdef __cplusplus
1647 +extern "C" void exit (int);
1648 +#endif
1649 +
1650 +void fnord() { int i=42;}
1651 +int main ()
1652 +{
1653 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1654 + int status = $lt_dlunknown;
1655 +
1656 + if (self)
1657 + {
1658 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1659 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1660 + /* dlclose (self); */
1661 + }
1662 +
1663 + exit (status);
1664 +}]
1665 +EOF
1666 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1667 + (./conftest; exit; ) 2>/dev/null
1668 + lt_status=$?
1669 + case x$lt_status in
1670 + x$lt_dlno_uscore) $1 ;;
1671 + x$lt_dlneed_uscore) $2 ;;
1672 + x$lt_unknown|x*) $3 ;;
1673 + esac
1674 + else :
1675 + # compilation failed
1676 + $3
1677 + fi
1678 +fi
1679 +rm -fr conftest*
1680 +])# _LT_AC_TRY_DLOPEN_SELF
1681 +
1682 +# AC_LIBTOOL_DLOPEN_SELF
1683 +# -------------------
1684 +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1685 +[if test "x$enable_dlopen" != xyes; then
1686 + enable_dlopen=unknown
1687 + enable_dlopen_self=unknown
1688 + enable_dlopen_self_static=unknown
1689 +else
1690 + lt_cv_dlopen=no
1691 + lt_cv_dlopen_libs=
1692 +
1693 + case $host_os in
1694 + beos*)
1695 + lt_cv_dlopen="load_add_on"
1696 + lt_cv_dlopen_libs=
1697 + lt_cv_dlopen_self=yes
1698 + ;;
1699 +
1700 + cygwin* | mingw* | pw32*)
1701 + lt_cv_dlopen="LoadLibrary"
1702 + lt_cv_dlopen_libs=
1703 + ;;
1704 +
1705 + *)
1706 + AC_CHECK_FUNC([shl_load],
1707 + [lt_cv_dlopen="shl_load"],
1708 + [AC_CHECK_LIB([dld], [shl_load],
1709 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1710 + [AC_CHECK_FUNC([dlopen],
1711 + [lt_cv_dlopen="dlopen"],
1712 + [AC_CHECK_LIB([dl], [dlopen],
1713 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1714 + [AC_CHECK_LIB([svld], [dlopen],
1715 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1716 + [AC_CHECK_LIB([dld], [dld_link],
1717 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1718 + ])
1719 + ])
1720 + ])
1721 + ])
1722 + ])
1723 + ;;
1724 + esac
1725 +
1726 + if test "x$lt_cv_dlopen" != xno; then
1727 + enable_dlopen=yes
1728 + else
1729 + enable_dlopen=no
1730 + fi
1731 +
1732 + case $lt_cv_dlopen in
1733 + dlopen)
1734 + save_CPPFLAGS="$CPPFLAGS"
1735 + AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1736 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1737 +
1738 + save_LDFLAGS="$LDFLAGS"
1739 + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1740
1741 - if test $ac_libnet_have_pf_packet != choked; then
1742 - AC_MSG_RESULT($ac_libnet_have_pf_packet)
1743 + save_LIBS="$LIBS"
1744 + LIBS="$lt_cv_dlopen_libs $LIBS"
1745 +
1746 + AC_CACHE_CHECK([whether a program can dlopen itself],
1747 + lt_cv_dlopen_self, [dnl
1748 + _LT_AC_TRY_DLOPEN_SELF(
1749 + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1750 + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1751 + ])
1752 +
1753 + if test "x$lt_cv_dlopen_self" = xyes; then
1754 + LDFLAGS="$LDFLAGS $link_static_flag"
1755 + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1756 + lt_cv_dlopen_self_static, [dnl
1757 + _LT_AC_TRY_DLOPEN_SELF(
1758 + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1759 + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1760 + ])
1761 fi
1762 - rm -f pf_packet-test* core core.pf_packet-test
1763 +
1764 + CPPFLAGS="$save_CPPFLAGS"
1765 + LDFLAGS="$save_LDFLAGS"
1766 + LIBS="$save_LIBS"
1767 ;;
1768 - esac])
1769 + esac
1770 +
1771 + case $lt_cv_dlopen_self in
1772 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1773 + *) enable_dlopen_self=unknown ;;
1774 + esac
1775 +
1776 + case $lt_cv_dlopen_self_static in
1777 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1778 + *) enable_dlopen_self_static=unknown ;;
1779 + esac
1780 +fi
1781 +])# AC_LIBTOOL_DLOPEN_SELF
1782 +
1783 +AC_DEFUN([_LT_AC_LTCONFIG_HACK],
1784 +[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
1785 +# Sed substitution that helps us do robust quoting. It backslashifies
1786 +# metacharacters that are still active within double-quoted strings.
1787 +Xsed='sed -e s/^X//'
1788 +sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
1789 +
1790 +# Same as above, but do not quote variable references.
1791 +double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
1792 +
1793 +# Sed substitution to delay expansion of an escaped shell variable in a
1794 +# double_quote_subst'ed string.
1795 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1796 +
1797 +# Constants:
1798 +rm="rm -f"
1799 +
1800 +# Global variables:
1801 +default_ofile=libtool
1802 +can_build_shared=yes
1803 +
1804 +# All known linkers require a `.a' archive for static linking (except M$VC,
1805 +# which needs '.lib').
1806 +libext=a
1807 +ltmain="$ac_aux_dir/ltmain.sh"
1808 +ofile="$default_ofile"
1809 +with_gnu_ld="$lt_cv_prog_gnu_ld"
1810 +need_locks="$enable_libtool_lock"
1811 +
1812 +old_CC="$CC"
1813 +old_CFLAGS="$CFLAGS"
1814 +
1815 +# Set sane defaults for various variables
1816 +test -z "$AR" && AR=ar
1817 +test -z "$AR_FLAGS" && AR_FLAGS=cru
1818 +test -z "$AS" && AS=as
1819 +test -z "$CC" && CC=cc
1820 +test -z "$DLLTOOL" && DLLTOOL=dlltool
1821 +test -z "$LD" && LD=ld
1822 +test -z "$LN_S" && LN_S="ln -s"
1823 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
1824 +test -z "$NM" && NM=nm
1825 +test -z "$OBJDUMP" && OBJDUMP=objdump
1826 +test -z "$RANLIB" && RANLIB=:
1827 +test -z "$STRIP" && STRIP=:
1828 +test -z "$ac_objext" && ac_objext=o
1829 +
1830 +if test x"$host" != x"$build"; then
1831 + ac_tool_prefix=${host_alias}-
1832 +else
1833 + ac_tool_prefix=
1834 +fi
1835 +
1836 +# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
1837 +case $host_os in
1838 +linux-gnu*) ;;
1839 +linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
1840 +esac
1841 +
1842 +case $host_os in
1843 +aix3*)
1844 + # AIX sometimes has problems with the GCC collect2 program. For some
1845 + # reason, if we set the COLLECT_NAMES environment variable, the problems
1846 + # vanish in a puff of smoke.
1847 + if test "X${COLLECT_NAMES+set}" != Xset; then
1848 + COLLECT_NAMES=
1849 + export COLLECT_NAMES
1850 + fi
1851 + ;;
1852 +esac
1853 +
1854 +# Determine commands to create old-style static archives.
1855 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1856 +old_postinstall_cmds='chmod 644 $oldlib'
1857 +old_postuninstall_cmds=
1858 +
1859 +if test -n "$RANLIB"; then
1860 + case $host_os in
1861 + openbsd*)
1862 + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
1863 + ;;
1864 + *)
1865 + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
1866 + ;;
1867 + esac
1868 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1869 +fi
1870 +
1871 +# Allow CC to be a program name with arguments.
1872 +set dummy $CC
1873 +compiler="[$]2"
1874 +
1875 +AC_MSG_CHECKING([for objdir])
1876 +rm -f .libs 2>/dev/null
1877 +mkdir .libs 2>/dev/null
1878 +if test -d .libs; then
1879 + objdir=.libs
1880 +else
1881 + # MS-DOS does not allow filenames that begin with a dot.
1882 + objdir=_libs
1883 +fi
1884 +rmdir .libs 2>/dev/null
1885 +AC_MSG_RESULT($objdir)
1886 +
1887 +
1888 +AC_ARG_WITH(pic,
1889 +[ --with-pic try to use only PIC/non-PIC objects [default=use both]],
1890 +pic_mode="$withval", pic_mode=default)
1891 +test -z "$pic_mode" && pic_mode=default
1892 +
1893 +# We assume here that the value for lt_cv_prog_cc_pic will not be cached
1894 +# in isolation, and that seeing it set (from the cache) indicates that
1895 +# the associated values are set (in the cache) correctly too.
1896 +AC_MSG_CHECKING([for $compiler option to produce PIC])
1897 +AC_CACHE_VAL(lt_cv_prog_cc_pic,
1898 +[ lt_cv_prog_cc_pic=
1899 + lt_cv_prog_cc_shlib=
1900 + lt_cv_prog_cc_wl=
1901 + lt_cv_prog_cc_static=
1902 + lt_cv_prog_cc_no_builtin=
1903 + lt_cv_prog_cc_can_build_shared=$can_build_shared
1904 +
1905 + if test "$GCC" = yes; then
1906 + lt_cv_prog_cc_wl='-Wl,'
1907 + lt_cv_prog_cc_static='-static'
1908 +
1909 + case $host_os in
1910 + aix*)
1911 + # Below there is a dirty hack to force normal static linking with -ldl
1912 + # The problem is because libdl dynamically linked with both libc and
1913 + # libC (AIX C++ library), which obviously doesn't included in libraries
1914 + # list by gcc. This cause undefined symbols with -static flags.
1915 + # This hack allows C programs to be linked with "-static -ldl", but
1916 + # not sure about C++ programs.
1917 + lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
1918 + ;;
1919 + amigaos*)
1920 + # FIXME: we need at least 68020 code to build shared libraries, but
1921 + # adding the `-m68020' flag to GCC prevents building anything better,
1922 + # like `-m68040'.
1923 + lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
1924 + ;;
1925 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1926 + # PIC is the default for these OSes.
1927 + ;;
1928 + darwin* | rhapsody*)
1929 + # PIC is the default on this platform
1930 + # Common symbols not allowed in MH_DYLIB files
1931 + lt_cv_prog_cc_pic='-fno-common'
1932 + ;;
1933 + cygwin* | mingw* | pw32* | os2*)
1934 + # This hack is so that the source file can tell whether it is being
1935 + # built for inclusion in a dll (and should export symbols for example).
1936 + lt_cv_prog_cc_pic='-DDLL_EXPORT'
1937 + ;;
1938 + sysv4*MP*)
1939 + if test -d /usr/nec; then
1940 + lt_cv_prog_cc_pic=-Kconform_pic
1941 + fi
1942 + ;;
1943 + *)
1944 + lt_cv_prog_cc_pic='-fPIC'
1945 + ;;
1946 + esac
1947 + else
1948 + # PORTME Check for PIC flags for the system compiler.
1949 + case $host_os in
1950 + aix3* | aix4* | aix5*)
1951 + lt_cv_prog_cc_wl='-Wl,'
1952 + # All AIX code is PIC.
1953 + if test "$host_cpu" = ia64; then
1954 + # AIX 5 now supports IA64 processor
1955 + lt_cv_prog_cc_static='-Bstatic'
1956 + else
1957 + lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
1958 + fi
1959 + ;;
1960 +
1961 + hpux9* | hpux10* | hpux11*)
1962 + # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
1963 + lt_cv_prog_cc_wl='-Wl,'
1964 + lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
1965 + lt_cv_prog_cc_pic='+Z'
1966 + ;;
1967 +
1968 + irix5* | irix6* | nonstopux*)
1969 + lt_cv_prog_cc_wl='-Wl,'
1970 + lt_cv_prog_cc_static='-non_shared'
1971 + # PIC (with -KPIC) is the default.
1972 + ;;
1973 +
1974 + cygwin* | mingw* | pw32* | os2*)
1975 + # This hack is so that the source file can tell whether it is being
1976 + # built for inclusion in a dll (and should export symbols for example).
1977 + lt_cv_prog_cc_pic='-DDLL_EXPORT'
1978 + ;;
1979 +
1980 + newsos6)
1981 + lt_cv_prog_cc_pic='-KPIC'
1982 + lt_cv_prog_cc_static='-Bstatic'
1983 + ;;
1984 +
1985 + osf3* | osf4* | osf5*)
1986 + # All OSF/1 code is PIC.
1987 + lt_cv_prog_cc_wl='-Wl,'
1988 + lt_cv_prog_cc_static='-non_shared'
1989 + ;;
1990 +
1991 + sco3.2v5*)
1992 + lt_cv_prog_cc_pic='-Kpic'
1993 + lt_cv_prog_cc_static='-dn'
1994 + lt_cv_prog_cc_shlib='-belf'
1995 + ;;
1996 +
1997 + solaris*)
1998 + lt_cv_prog_cc_pic='-KPIC'
1999 + lt_cv_prog_cc_static='-Bstatic'
2000 + lt_cv_prog_cc_wl='-Wl,'
2001 + ;;
2002 +
2003 + sunos4*)
2004 + lt_cv_prog_cc_pic='-PIC'
2005 + lt_cv_prog_cc_static='-Bstatic'
2006 + lt_cv_prog_cc_wl='-Qoption ld '
2007 + ;;
2008 +
2009 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2010 + lt_cv_prog_cc_pic='-KPIC'
2011 + lt_cv_prog_cc_static='-Bstatic'
2012 + lt_cv_prog_cc_wl='-Wl,'
2013 + ;;
2014 +
2015 + uts4*)
2016 + lt_cv_prog_cc_pic='-pic'
2017 + lt_cv_prog_cc_static='-Bstatic'
2018 + ;;
2019 +
2020 + sysv4*MP*)
2021 + if test -d /usr/nec ;then
2022 + lt_cv_prog_cc_pic='-Kconform_pic'
2023 + lt_cv_prog_cc_static='-Bstatic'
2024 + fi
2025 + ;;
2026 +
2027 + *)
2028 + lt_cv_prog_cc_can_build_shared=no
2029 + ;;
2030 + esac
2031 + fi
2032 ])
2033 +if test -z "$lt_cv_prog_cc_pic"; then
2034 + AC_MSG_RESULT([none])
2035 +else
2036 + AC_MSG_RESULT([$lt_cv_prog_cc_pic])
2037
2038 -dnl
2039 -dnl Looks for a previous libnet version and attempts to determine which verion
2040 -dnl it is. Version 0.8 was the first version that actually knew internally
2041 -dnl what version it was.
2042 -dnl
2043 -dnl usage:
2044 -dnl
2045 -dnl AC_LIBNET_CHECK_LIBNET_VERSION
2046 -dnl
2047 -dnl results:
2048 -dnl
2049 -dnl
2050 -dnl
2051 + # Check to make sure the pic_flag actually works.
2052 + AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])
2053 + AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl
2054 + save_CFLAGS="$CFLAGS"
2055 + CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2056 + AC_TRY_COMPILE([], [], [dnl
2057 + case $host_os in
2058 + hpux9* | hpux10* | hpux11*)
2059 + # On HP-UX, both CC and GCC only warn that PIC is supported... then
2060 + # they create non-PIC objects. So, if there were any warnings, we
2061 + # assume that PIC is not supported.
2062 + if test -s conftest.err; then
2063 + lt_cv_prog_cc_pic_works=no
2064 + else
2065 + lt_cv_prog_cc_pic_works=yes
2066 + fi
2067 + ;;
2068 + *)
2069 + lt_cv_prog_cc_pic_works=yes
2070 + ;;
2071 + esac
2072 + ], [dnl
2073 + lt_cv_prog_cc_pic_works=no
2074 + ])
2075 + CFLAGS="$save_CFLAGS"
2076 + ])
2077
2078 -AC_DEFUN(AC_LIBNET_CHECK_LIBNET_VER,
2079 -[
2080 - AC_CHECK_LIB(net, libnet_build_ip, AC_MSG_CHECKING(version) \
2081 + if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2082 + lt_cv_prog_cc_pic=
2083 + lt_cv_prog_cc_can_build_shared=no
2084 + else
2085 + lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2086 + fi
2087
2088 -changequote(<<, >>)dnl
2089 - if [[ ! -f $LIB_PREFIX/libnet.a ]] ; then
2090 -changequote([, ])dnl
2091 - AC_MSG_RESULT($LIB_PREFIX/libnet.a doesn't exist)
2092 - AC_MSG_RESULT(previous libnet install lives elsewhere, you should probably find it)
2093 - else
2094 - __LIBNET_VERSION=`strings $LIB_PREFIX/libnet.a | grep "libnet version"\
2095 - | cut -f3 -d" "`;\
2096 - if test -z "$__LIBNET_VERSION"; then
2097 - AC_MSG_RESULT(<0.8)
2098 - else
2099 - AC_MSG_RESULT($__LIBNET_VERSION)
2100 - fi
2101 - fi\
2102 - )
2103 + AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])
2104 +fi
2105 +
2106 +# Check for any special shared library compilation flags.
2107 +if test -n "$lt_cv_prog_cc_shlib"; then
2108 + AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
2109 + if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then :
2110 + else
2111 + AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
2112 + lt_cv_prog_cc_can_build_shared=no
2113 + fi
2114 +fi
2115 +
2116 +AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])
2117 +AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl
2118 + lt_cv_prog_cc_static_works=no
2119 + save_LDFLAGS="$LDFLAGS"
2120 + LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2121 + AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])
2122 + LDFLAGS="$save_LDFLAGS"
2123 ])
2124
2125 +# Belt *and* braces to stop my trousers falling down:
2126 +test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2127 +AC_MSG_RESULT([$lt_cv_prog_cc_static_works])
2128
2129 -dnl
2130 -dnl Checks to see if this linux kernel uses ip_sum or ip_csum
2131 -dnl (Pulled from queso)
2132 -dnl
2133 -dnl usage:
2134 -dnl
2135 -dnl AC_LIBNET_CHECK_IP_CSUM
2136 -dnl
2137 -dnl results:
2138 -dnl
2139 -dnl HAVE_STRUCT_IP_CSUM (DEFINED)
2140 -dnl
2141 +pic_flag="$lt_cv_prog_cc_pic"
2142 +special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2143 +wl="$lt_cv_prog_cc_wl"
2144 +link_static_flag="$lt_cv_prog_cc_static"
2145 +no_builtin_flag="$lt_cv_prog_cc_no_builtin"
2146 +can_build_shared="$lt_cv_prog_cc_can_build_shared"
2147
2148 -AC_DEFUN(AC_LIBNET_CHECK_IP_CSUM,
2149 -[
2150 - AC_MSG_CHECKING([struct ip contains ip_csum])
2151 - AC_TRY_COMPILE([
2152 - #define __BSD_SOURCE
2153 - #define _BSD_SOURCE
2154 - #include <sys/types.h>
2155 - #include <netinet/in.h>
2156 - #include <netinet/in_systm.h>
2157 - #include <netinet/ip.h>],
2158 - [
2159 - struct ip ip;
2160 - ip.ip_csum = 0;
2161 - ],
2162 - [AC_MSG_RESULT(yes);
2163 - AC_DEFINE(HAVE_STRUCT_IP_CSUM)],
2164 - [AC_MSG_RESULT(no);
2165 - ])
2166 +
2167 +# Check to see if options -o and -c are simultaneously supported by compiler
2168 +AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])
2169 +AC_CACHE_VAL([lt_cv_compiler_c_o], [
2170 +$rm -r conftest 2>/dev/null
2171 +mkdir conftest
2172 +cd conftest
2173 +echo "int some_variable = 0;" > conftest.$ac_ext
2174 +mkdir out
2175 +# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2176 +# that will create temporary files in the current directory regardless of
2177 +# the output directory. Thus, making CWD read-only will cause this test
2178 +# to fail, enabling locking or at least warning the user not to do parallel
2179 +# builds.
2180 +chmod -w .
2181 +save_CFLAGS="$CFLAGS"
2182 +CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2183 +compiler_c_o=no
2184 +if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2185 + # The compiler can only warn and ignore the option if not recognized
2186 + # So say no if there are warnings
2187 + if test -s out/conftest.err; then
2188 + lt_cv_compiler_c_o=no
2189 + else
2190 + lt_cv_compiler_c_o=yes
2191 + fi
2192 +else
2193 + # Append any errors to the config.log.
2194 + cat out/conftest.err 1>&AC_FD_CC
2195 + lt_cv_compiler_c_o=no
2196 +fi
2197 +CFLAGS="$save_CFLAGS"
2198 +chmod u+w .
2199 +$rm conftest* out/*
2200 +rmdir out
2201 +cd ..
2202 +rmdir conftest
2203 +$rm -r conftest 2>/dev/null
2204 ])
2205 +compiler_c_o=$lt_cv_compiler_c_o
2206 +AC_MSG_RESULT([$compiler_c_o])
2207
2208 -dnl
2209 -dnl Checks to see if unaligned memory accesses fail
2210 -dnl (Pulled from libpcap)
2211 -dnl
2212 -dnl usage:
2213 -dnl
2214 -dnl AC_LBL_UNALIGNED_ACCESS
2215 -dnl
2216 -dnl results:
2217 -dnl
2218 -dnl LBL_ALIGN (DEFINED)
2219 -dnl
2220 +if test x"$compiler_c_o" = x"yes"; then
2221 + # Check to see if we can write to a .lo
2222 + AC_MSG_CHECKING([if $compiler supports -c -o file.lo])
2223 + AC_CACHE_VAL([lt_cv_compiler_o_lo], [
2224 + lt_cv_compiler_o_lo=no
2225 + save_CFLAGS="$CFLAGS"
2226 + CFLAGS="$CFLAGS -c -o conftest.lo"
2227 + save_objext="$ac_objext"
2228 + ac_objext=lo
2229 + AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
2230 + # The compiler can only warn and ignore the option if not recognized
2231 + # So say no if there are warnings
2232 + if test -s conftest.err; then
2233 + lt_cv_compiler_o_lo=no
2234 + else
2235 + lt_cv_compiler_o_lo=yes
2236 + fi
2237 + ])
2238 + ac_objext="$save_objext"
2239 + CFLAGS="$save_CFLAGS"
2240 + ])
2241 + compiler_o_lo=$lt_cv_compiler_o_lo
2242 + AC_MSG_RESULT([$compiler_o_lo])
2243 +else
2244 + compiler_o_lo=no
2245 +fi
2246
2247 -AC_DEFUN(AC_LBL_UNALIGNED_ACCESS,
2248 - [AC_MSG_CHECKING(if unaligned accesses fail)
2249 - AC_CACHE_VAL(ac_cv_lbl_unaligned_fail,
2250 - [case "$target_cpu" in
2251 -
2252 - alpha|hp*|mips|sparc)
2253 - ac_cv_lbl_unaligned_fail=yes
2254 - ;;
2255 -
2256 - *)
2257 - cat >conftest.c <<EOF
2258 -# include <sys/types.h>
2259 -# include <sys/wait.h>
2260 -# include <stdio.h>
2261 - unsigned char a[[5]] = { 1, 2, 3, 4, 5 };
2262 - main()
2263 - {
2264 - unsigned int i;
2265 - pid_t pid;
2266 - int status;
2267 - /* avoid "core dumped" message */
2268 - pid = fork();
2269 - if (pid < 0)
2270 - {
2271 - exit(2);
2272 - }
2273 - if (pid > 0)
2274 - {
2275 - /* parent */
2276 - pid = waitpid(pid, &status, 0);
2277 - if (pid < 0)
2278 - {
2279 - exit(3);
2280 - }
2281 - exit(!WIFEXITED(status));
2282 - }
2283 - /* child */
2284 - i = *(unsigned int *)&a[[1]];
2285 - printf("%d\n", i);
2286 - exit(0);
2287 - }
2288 -EOF
2289 - ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
2290 - conftest.c $LIBS > /dev/null 2>&1
2291 - # Oopz 4.3 BSD doesn't have this. Sorry.
2292 - if test ! -x conftest ; then
2293 - dnl failed to compile for some reason
2294 - ac_cv_lbl_unaligned_fail=yes
2295 - else
2296 - ./conftest > conftest.out
2297 - if test ! -s conftest.out ; then
2298 - ac_cv_lbl_unaligned_fail=yes
2299 - else
2300 - ac_cv_lbl_unaligned_fail=no
2301 - fi
2302 - fi
2303 - rm -f conftest* core core.conftest
2304 - ;;
2305 - esac])
2306 - AC_MSG_RESULT($ac_cv_lbl_unaligned_fail)
2307 - if test $ac_cv_lbl_unaligned_fail = yes ; then
2308 - AC_DEFINE(LBL_ALIGN)
2309 +# Check to see if we can do hard links to lock some files if needed
2310 +hard_links="nottested"
2311 +if test "$compiler_c_o" = no && test "$need_locks" != no; then
2312 + # do not overwrite the value of need_locks provided by the user
2313 + AC_MSG_CHECKING([if we can lock with hard links])
2314 + hard_links=yes
2315 + $rm conftest*
2316 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
2317 + touch conftest.a
2318 + ln conftest.a conftest.b 2>&5 || hard_links=no
2319 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
2320 + AC_MSG_RESULT([$hard_links])
2321 + if test "$hard_links" = no; then
2322 + AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])
2323 + need_locks=warn
2324 + fi
2325 +else
2326 + need_locks=no
2327 +fi
2328 +
2329 +if test "$GCC" = yes; then
2330 + # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
2331 + AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])
2332 + echo "int some_variable = 0;" > conftest.$ac_ext
2333 + save_CFLAGS="$CFLAGS"
2334 + CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
2335 + compiler_rtti_exceptions=no
2336 + AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
2337 + # The compiler can only warn and ignore the option if not recognized
2338 + # So say no if there are warnings
2339 + if test -s conftest.err; then
2340 + compiler_rtti_exceptions=no
2341 + else
2342 + compiler_rtti_exceptions=yes
2343 fi
2344 -])
2345 + ])
2346 + CFLAGS="$save_CFLAGS"
2347 + AC_MSG_RESULT([$compiler_rtti_exceptions])
2348
2349 + if test "$compiler_rtti_exceptions" = "yes"; then
2350 + no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
2351 + else
2352 + no_builtin_flag=' -fno-builtin'
2353 + fi
2354 +fi
2355
2356 -dnl
2357 -dnl Checks endianess
2358 -dnl
2359 -dnl usage:
2360 -dnl
2361 -dnl AC_LIBNET_ENDIAN_CHECK
2362 -dnl
2363 -dnl results:
2364 -dnl
2365 -dnl LIBNET_BIG_ENDIAN = 1 or
2366 -dnl LIBNET_LIL_ENDIAN = 1
2367 -dnl
2368 +# See if the linker supports building shared libraries.
2369 +AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])
2370
2371 -AC_DEFUN(AC_LIBNET_ENDIAN_CHECK,
2372 - [AC_MSG_CHECKING(machine endianess)
2373 +allow_undefined_flag=
2374 +no_undefined_flag=
2375 +need_lib_prefix=unknown
2376 +need_version=unknown
2377 +# when you set need_version to no, make sure it does not cause -set_version
2378 +# flags to be left without arguments
2379 +archive_cmds=
2380 +archive_expsym_cmds=
2381 +old_archive_from_new_cmds=
2382 +old_archive_from_expsyms_cmds=
2383 +export_dynamic_flag_spec=
2384 +whole_archive_flag_spec=
2385 +thread_safe_flag_spec=
2386 +hardcode_into_libs=no
2387 +hardcode_libdir_flag_spec=
2388 +hardcode_libdir_separator=
2389 +hardcode_direct=no
2390 +hardcode_minus_L=no
2391 +hardcode_shlibpath_var=unsupported
2392 +runpath_var=
2393 +link_all_deplibs=unknown
2394 +always_export_symbols=no
2395 +export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
2396 +# include_expsyms should be a list of space-separated symbols to be *always*
2397 +# included in the symbol list
2398 +include_expsyms=
2399 +# exclude_expsyms can be an egrep regular expression of symbols to exclude
2400 +# it will be wrapped by ` (' and `)$', so one must not match beginning or
2401 +# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
2402 +# as well as any symbol that contains `d'.
2403 +exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
2404 +# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
2405 +# platforms (ab)use it in PIC code, but their linkers get confused if
2406 +# the symbol is explicitly referenced. Since portable code cannot
2407 +# rely on this symbol name, it's probably fine to never include it in
2408 +# preloaded symbol tables.
2409 +extract_expsyms_cmds=
2410
2411 - cat > conftest.c << EOF
2412 -# include <stdio.h>
2413 -# include <stdlib.h>
2414 -
2415 - int main()
2416 - {
2417 - union
2418 - {
2419 - short s;
2420 - char c[[sizeof(short)]];
2421 - } un;
2422 -
2423 - un.s = 0x0102;
2424 - if (sizeof (short) == 2)
2425 - {
2426 - if (un.c [[0]] == 1 && un.c [[1]] == 2)
2427 - {
2428 - printf("B\n");
2429 - }
2430 - else
2431 - {
2432 - if (un.c [[0]] == 2 && un.c [[1]] == 1)
2433 - {
2434 - printf("L\n");
2435 - }
2436 - }
2437 - }
2438 - else
2439 - {
2440 - printf("?\n");
2441 - }
2442 - return (EXIT_SUCCESS);
2443 - }
2444 -EOF
2445 - ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.c $LIBS > /dev/null 2>&1
2446 - # Oopz 4.3 BSD doesn't have this. Sorry.
2447 - if test ! -x conftest ; then
2448 -dnl failed to compile for some reason
2449 - ac_cv_libnet_endianess=unknown
2450 - else
2451 - ./conftest > conftest.out
2452 - result=`cat conftest.out`
2453 - if test $result = "B"; then
2454 - ac_cv_libnet_endianess=big
2455 - elif test $result = "L"; then
2456 - ac_cv_libnet_endianess=lil
2457 - else
2458 - ac_cv_libnet_endianess=unknown
2459 - fi
2460 - fi
2461 - rm -f conftest* core core.conftest
2462 -
2463 - AC_MSG_RESULT($ac_cv_libnet_endianess)
2464 -
2465 - if test $ac_cv_libnet_endianess = big ; then
2466 - AC_DEFINE(LIBNET_BIG_ENDIAN)
2467 - LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_BIG_ENDIAN"
2468 - elif test $ac_cv_libnet_endianess = lil ; then
2469 - AC_DEFINE(LIBNET_LIL_ENDIAN)
2470 - LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_LIL_ENDIAN"
2471 - fi
2472 - ])
2473 +case $host_os in
2474 +cygwin* | mingw* | pw32*)
2475 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
2476 + # When not using gcc, we currently assume that we are using
2477 + # Microsoft Visual C++.
2478 + if test "$GCC" != yes; then
2479 + with_gnu_ld=no
2480 + fi
2481 + ;;
2482 +openbsd*)
2483 + with_gnu_ld=no
2484 + ;;
2485 +esac
2486 +
2487 +ld_shlibs=yes
2488 +if test "$with_gnu_ld" = yes; then
2489 + # If archive_cmds runs LD, not CC, wlarc should be empty
2490 + wlarc='${wl}'
2491 +
2492 + # See if GNU ld supports shared libraries.
2493 + case $host_os in
2494 + aix3* | aix4* | aix5*)
2495 + # On AIX, the GNU linker is very broken
2496 + # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
2497 + ld_shlibs=no
2498 + cat <<EOF 1>&2
2499 +
2500 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
2501 +*** to be unable to reliably create shared libraries on AIX.
2502 +*** Therefore, libtool is disabling shared libraries support. If you
2503 +*** really care for shared libraries, you may want to modify your PATH
2504 +*** so that a non-GNU linker is found, and then restart.
2505 +
2506 +EOF
2507 + ;;
2508 +
2509 + amigaos*)
2510 + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
2511 + hardcode_libdir_flag_spec='-L$libdir'
2512 + hardcode_minus_L=yes
2513 +
2514 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
2515 + # that the semantics of dynamic libraries on AmigaOS, at least up
2516 + # to version 4, is to share data among multiple programs linked
2517 + # with the same dynamic library. Since this doesn't match the
2518 + # behavior of shared libraries on other platforms, we can use
2519 + # them.
2520 + ld_shlibs=no
2521 + ;;
2522 +
2523 + beos*)
2524 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
2525 + allow_undefined_flag=unsupported
2526 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
2527 + # support --undefined. This deserves some investigation. FIXME
2528 + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2529 + else
2530 + ld_shlibs=no
2531 + fi
2532 + ;;
2533 +
2534 + cygwin* | mingw* | pw32*)
2535 + # hardcode_libdir_flag_spec is actually meaningless, as there is
2536 + # no search path for DLLs.
2537 + hardcode_libdir_flag_spec='-L$libdir'
2538 + allow_undefined_flag=unsupported
2539 + always_export_symbols=yes
2540 +
2541 + extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
2542 + sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
2543 + test -f $output_objdir/impgen.exe || (cd $output_objdir && \
2544 + if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
2545 + else $CC -o impgen impgen.c ; fi)~
2546 + $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
2547 +
2548 + old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
2549 +
2550 + # cygwin and mingw dlls have different entry points and sets of symbols
2551 + # to exclude.
2552 + # FIXME: what about values for MSVC?
2553 + dll_entry=__cygwin_dll_entry@12
2554 + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
2555 + case $host_os in
2556 + mingw*)
2557 + # mingw values
2558 + dll_entry=_DllMainCRTStartup@12
2559 + dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
2560 + ;;
2561 + esac
2562 +
2563 + # mingw and cygwin differ, and it's simplest to just exclude the union
2564 + # of the two symbol sets.
2565 + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
2566 +
2567 + # recent cygwin and mingw systems supply a stub DllMain which the user
2568 + # can override, but on older systems we have to supply one (in ltdll.c)
2569 + if test "x$lt_cv_need_dllmain" = "xyes"; then
2570 + ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
2571 + ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
2572 + test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
2573 + else
2574 + ltdll_obj=
2575 + ltdll_cmds=
2576 + fi
2577 +
2578 + # Extract the symbol export list from an `--export-all' def file,
2579 + # then regenerate the def file from the symbol export list, so that
2580 + # the compiled dll only exports the symbol export list.
2581 + # Be careful not to strip the DATA tag left be newer dlltools.
2582 + export_symbols_cmds="$ltdll_cmds"'
2583 + $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
2584 + sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
2585 +
2586 + # If the export-symbols file already is a .def file (1st line
2587 + # is EXPORTS), use it as is.
2588 + # If DATA tags from a recent dlltool are present, honour them!
2589 + archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
2590 + cp $export_symbols $output_objdir/$soname-def;
2591 + else
2592 + echo EXPORTS > $output_objdir/$soname-def;
2593 + _lt_hint=1;
2594 + cat $export_symbols | while read symbol; do
2595 + set dummy \$symbol;
2596 + case \[$]# in
2597 + 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
2598 + 4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
2599 + *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
2600 + esac;
2601 + _lt_hint=`expr 1 + \$_lt_hint`;
2602 + done;
2603 + fi~
2604 + '"$ltdll_cmds"'
2605 + $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
2606 + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
2607 + $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
2608 + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
2609 + $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
2610 + ;;
2611 +
2612 + netbsd*)
2613 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2614 + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
2615 + wlarc=
2616 + else
2617 + archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2618 + archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2619 + fi
2620 + ;;
2621 +
2622 + solaris* | sysv5*)
2623 + if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
2624 + ld_shlibs=no
2625 + cat <<EOF 1>&2
2626 +
2627 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
2628 +*** create shared libraries on Solaris systems. Therefore, libtool
2629 +*** is disabling shared libraries support. We urge you to upgrade GNU
2630 +*** binutils to release 2.9.1 or newer. Another option is to modify
2631 +*** your PATH or compiler configuration so that the native linker is
2632 +*** used, and then restart.
2633 +
2634 +EOF
2635 + elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
2636 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2637 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2638 + else
2639 + ld_shlibs=no
2640 + fi
2641 + ;;
2642 +
2643 + sunos4*)
2644 + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
2645 + wlarc=
2646 + hardcode_direct=yes
2647 + hardcode_shlibpath_var=no
2648 + ;;
2649 +
2650 + *)
2651 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
2652 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2653 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2654 + else
2655 + ld_shlibs=no
2656 + fi
2657 + ;;
2658 + esac
2659 +
2660 + if test "$ld_shlibs" = yes; then
2661 + runpath_var=LD_RUN_PATH
2662 + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
2663 + export_dynamic_flag_spec='${wl}--export-dynamic'
2664 + case $host_os in
2665 + cygwin* | mingw* | pw32*)
2666 + # dlltool doesn't understand --whole-archive et. al.
2667 + whole_archive_flag_spec=
2668 + ;;
2669 + *)
2670 + # ancient GNU ld didn't support --whole-archive et. al.
2671 + if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
2672 + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2673 + else
2674 + whole_archive_flag_spec=
2675 + fi
2676 + ;;
2677 + esac
2678 + fi
2679 +else
2680 + # PORTME fill in a description of your system's linker (not GNU ld)
2681 + case $host_os in
2682 + aix3*)
2683 + allow_undefined_flag=unsupported
2684 + always_export_symbols=yes
2685 + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
2686 + # Note: this linker hardcodes the directories in LIBPATH if there
2687 + # are no directories specified by -L.
2688 + hardcode_minus_L=yes
2689 + if test "$GCC" = yes && test -z "$link_static_flag"; then
2690 + # Neither direct hardcoding nor static linking is supported with a
2691 + # broken collect2.
2692 + hardcode_direct=unsupported
2693 + fi
2694 + ;;
2695 +
2696 + aix4* | aix5*)
2697 + if test "$host_cpu" = ia64; then
2698 + # On IA64, the linker does run time linking by default, so we don't
2699 + # have to do anything special.
2700 + aix_use_runtimelinking=no
2701 + exp_sym_flag='-Bexport'
2702 + no_entry_flag=""
2703 + else
2704 + aix_use_runtimelinking=no
2705 +
2706 + # Test if we are trying to use run time linking or normal
2707 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2708 + # need to do runtime linking.
2709 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
2710 + for ld_flag in $LDFLAGS; do
2711 + case $ld_flag in
2712 + *-brtl*)
2713 + aix_use_runtimelinking=yes
2714 + break
2715 + ;;
2716 + esac
2717 + done
2718 + esac
2719 +
2720 + exp_sym_flag='-bexport'
2721 + no_entry_flag='-bnoentry'
2722 + fi
2723 +
2724 + # When large executables or shared objects are built, AIX ld can
2725 + # have problems creating the table of contents. If linking a library
2726 + # or program results in "error TOC overflow" add -mminimal-toc to
2727 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
2728 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
2729 +
2730 + hardcode_direct=yes
2731 + archive_cmds=''
2732 + hardcode_libdir_separator=':'
2733 + if test "$GCC" = yes; then
2734 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
2735 + collect2name=`${CC} -print-prog-name=collect2`
2736 + if test -f "$collect2name" && \
2737 + strings "$collect2name" | grep resolve_lib_name >/dev/null
2738 + then
2739 + # We have reworked collect2
2740 + hardcode_direct=yes
2741 + else
2742 + # We have old collect2
2743 + hardcode_direct=unsupported
2744 + # It fails to find uninstalled libraries when the uninstalled
2745 + # path is not listed in the libpath. Setting hardcode_minus_L
2746 + # to unsupported forces relinking
2747 + hardcode_minus_L=yes
2748 + hardcode_libdir_flag_spec='-L$libdir'
2749 + hardcode_libdir_separator=
2750 + fi
2751 + esac
2752 +
2753 + shared_flag='-shared'
2754 + else
2755 + # not using gcc
2756 + if test "$host_cpu" = ia64; then
2757 + shared_flag='${wl}-G'
2758 + else
2759 + if test "$aix_use_runtimelinking" = yes; then
2760 + shared_flag='${wl}-G'
2761 + else
2762 + shared_flag='${wl}-bM:SRE'
2763 + fi
2764 + fi
2765 + fi
2766 +
2767 + # It seems that -bexpall can do strange things, so it is better to
2768 + # generate a list of symbols to export.
2769 + always_export_symbols=yes
2770 + if test "$aix_use_runtimelinking" = yes; then
2771 + # Warning - without using the other runtime loading flags (-brtl),
2772 + # -berok will link without error, but may produce a broken library.
2773 + allow_undefined_flag='-berok'
2774 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
2775 + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2776 + else
2777 + if test "$host_cpu" = ia64; then
2778 + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
2779 + allow_undefined_flag="-z nodefs"
2780 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
2781 + else
2782 + hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
2783 + # Warning - without using the other run time loading flags,
2784 + # -berok will link without error, but may produce a broken library.
2785 + allow_undefined_flag='${wl}-berok'
2786 + # This is a bit strange, but is similar to how AIX traditionally builds
2787 + # it's shared libraries.
2788 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname'
2789 + fi
2790 + fi
2791 + ;;
2792 +
2793 + amigaos*)
2794 + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
2795 + hardcode_libdir_flag_spec='-L$libdir'
2796 + hardcode_minus_L=yes
2797 + # see comment about different semantics on the GNU ld section
2798 + ld_shlibs=no
2799 + ;;
2800 +
2801 + cygwin* | mingw* | pw32*)
2802 + # When not using gcc, we currently assume that we are using
2803 + # Microsoft Visual C++.
2804 + # hardcode_libdir_flag_spec is actually meaningless, as there is
2805 + # no search path for DLLs.
2806 + hardcode_libdir_flag_spec=' '
2807 + allow_undefined_flag=unsupported
2808 + # Tell ltmain to make .lib files, not .a files.
2809 + libext=lib
2810 + # FIXME: Setting linknames here is a bad hack.
2811 + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
2812 + # The linker will automatically build a .lib file if we build a DLL.
2813 + old_archive_from_new_cmds='true'
2814 + # FIXME: Should let the user specify the lib program.
2815 + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
2816 + fix_srcfile_path='`cygpath -w "$srcfile"`'
2817 + ;;
2818 +
2819 + darwin* | rhapsody*)
2820 + case "$host_os" in
2821 + rhapsody* | darwin1.[[012]])
2822 + allow_undefined_flag='-undefined suppress'
2823 + ;;
2824 + *) # Darwin 1.3 on
2825 + allow_undefined_flag='-flat_namespace -undefined suppress'
2826 + ;;
2827 + esac
2828 + # FIXME: Relying on posixy $() will cause problems for
2829 + # cross-compilation, but unfortunately the echo tests do not
2830 + # yet detect zsh echo's removal of \ escapes. Also zsh mangles
2831 + # `"' quotes if we put them in here... so don't!
2832 + archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
2833 + # We need to add '_' to the symbols in $export_symbols first
2834 + #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
2835 + hardcode_direct=yes
2836 + hardcode_shlibpath_var=no
2837 + whole_archive_flag_spec='-all_load $convenience'
2838 + ;;
2839 +
2840 + freebsd1*)
2841 + ld_shlibs=no
2842 + ;;
2843 +
2844 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
2845 + # support. Future versions do this automatically, but an explicit c++rt0.o
2846 + # does not break anything, and helps significantly (at the cost of a little
2847 + # extra space).
2848 + freebsd2.2*)
2849 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
2850 + hardcode_libdir_flag_spec='-R$libdir'
2851 + hardcode_direct=yes
2852 + hardcode_shlibpath_var=no
2853 + ;;
2854 +
2855 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
2856 + freebsd2*)
2857 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
2858 + hardcode_direct=yes
2859 + hardcode_minus_L=yes
2860 + hardcode_shlibpath_var=no
2861 + ;;
2862 +
2863 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
2864 + freebsd*)
2865 + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
2866 + hardcode_libdir_flag_spec='-R$libdir'
2867 + hardcode_direct=yes
2868 + hardcode_shlibpath_var=no
2869 + ;;
2870 +
2871 + hpux9* | hpux10* | hpux11*)
2872 + case $host_os in
2873 + hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
2874 + *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
2875 + esac
2876 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
2877 + hardcode_libdir_separator=:
2878 + hardcode_direct=yes
2879 + hardcode_minus_L=yes # Not in the search PATH, but as the default
2880 + # location of the library.
2881 + export_dynamic_flag_spec='${wl}-E'
2882 + ;;
2883 +
2884 + irix5* | irix6* | nonstopux*)
2885 + if test "$GCC" = yes; then
2886 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2887 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
2888 + else
2889 + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
2890 + hardcode_libdir_flag_spec='-rpath $libdir'
2891 + fi
2892 + hardcode_libdir_separator=:
2893 + link_all_deplibs=yes
2894 + ;;
2895 +
2896 + netbsd*)
2897 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2898 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
2899 + else
2900 + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
2901 + fi
2902 + hardcode_libdir_flag_spec='-R$libdir'
2903 + hardcode_direct=yes
2904 + hardcode_shlibpath_var=no
2905 + ;;
2906 +
2907 + newsos6)
2908 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2909 + hardcode_direct=yes
2910 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
2911 + hardcode_libdir_separator=:
2912 + hardcode_shlibpath_var=no
2913 + ;;
2914 +
2915 + openbsd*)
2916 + hardcode_direct=yes
2917 + hardcode_shlibpath_var=no
2918 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2919 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
2920 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
2921 + export_dynamic_flag_spec='${wl}-E'
2922 + else
2923 + case "$host_os" in
2924 + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
2925 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
2926 + hardcode_libdir_flag_spec='-R$libdir'
2927 + ;;
2928 + *)
2929 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
2930 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
2931 + ;;
2932 + esac
2933 + fi
2934 + ;;
2935 +
2936 + os2*)
2937 + hardcode_libdir_flag_spec='-L$libdir'
2938 + hardcode_minus_L=yes
2939 + allow_undefined_flag=unsupported
2940 + archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
2941 + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
2942 + ;;
2943 +
2944 + osf3*)
2945 + if test "$GCC" = yes; then
2946 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
2947 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2948 + else
2949 + allow_undefined_flag=' -expect_unresolved \*'
2950 + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
2951 + fi
2952 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
2953 + hardcode_libdir_separator=:
2954 + ;;
2955 +
2956 + osf4* | osf5*) # as osf3* with the addition of -msym flag
2957 + if test "$GCC" = yes; then
2958 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
2959 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2960 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
2961 + else
2962 + allow_undefined_flag=' -expect_unresolved \*'
2963 + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
2964 + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
2965 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
2966 +
2967 + #Both c and cxx compiler support -rpath directly
2968 + hardcode_libdir_flag_spec='-rpath $libdir'
2969 + fi
2970 + hardcode_libdir_separator=:
2971 + ;;
2972 +
2973 + sco3.2v5*)
2974 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2975 + hardcode_shlibpath_var=no
2976 + runpath_var=LD_RUN_PATH
2977 + hardcode_runpath_var=yes
2978 + export_dynamic_flag_spec='${wl}-Bexport'
2979 + ;;
2980 +
2981 + solaris*)
2982 + # gcc --version < 3.0 without binutils cannot create self contained
2983 + # shared libraries reliably, requiring libgcc.a to resolve some of
2984 + # the object symbols generated in some cases. Libraries that use
2985 + # assert need libgcc.a to resolve __eprintf, for example. Linking
2986 + # a copy of libgcc.a into every shared library to guarantee resolving
2987 + # such symbols causes other problems: According to Tim Van Holder
2988 + # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
2989 + # (to the application) exception stack for one thing.
2990 + no_undefined_flag=' -z defs'
2991 + if test "$GCC" = yes; then
2992 + case `$CC --version 2>/dev/null` in
2993 + [[12]].*)
2994 + cat <<EOF 1>&2
2995 +
2996 +*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
2997 +*** create self contained shared libraries on Solaris systems, without
2998 +*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
2999 +*** -no-undefined support, which will at least allow you to build shared
3000 +*** libraries. However, you may find that when you link such libraries
3001 +*** into an application without using GCC, you have to manually add
3002 +*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
3003 +*** upgrade to a newer version of GCC. Another option is to rebuild your
3004 +*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
3005 +
3006 +EOF
3007 + no_undefined_flag=
3008 + ;;
3009 + esac
3010 + fi
3011 + # $CC -shared without GNU ld will not create a library from C++
3012 + # object files and a static libstdc++, better avoid it by now
3013 + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3014 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3015 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3016 + hardcode_libdir_flag_spec='-R$libdir'
3017 + hardcode_shlibpath_var=no
3018 + case $host_os in
3019 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3020 + *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3021 + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3022 + esac
3023 + link_all_deplibs=yes
3024 + ;;
3025 +
3026 + sunos4*)
3027 + if test "x$host_vendor" = xsequent; then
3028 + # Use $CC to link under sequent, because it throws in some extra .o
3029 + # files that make .init and .fini sections work.
3030 + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3031 + else
3032 + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3033 + fi
3034 + hardcode_libdir_flag_spec='-L$libdir'
3035 + hardcode_direct=yes
3036 + hardcode_minus_L=yes
3037 + hardcode_shlibpath_var=no
3038 + ;;
3039 +
3040 + sysv4)
3041 + case $host_vendor in
3042 + sni)
3043 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3044 + hardcode_direct=yes # is this really true???
3045 + ;;
3046 + siemens)
3047 + ## LD is ld it makes a PLAMLIB
3048 + ## CC just makes a GrossModule.
3049 + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3050 + reload_cmds='$CC -r -o $output$reload_objs'
3051 + hardcode_direct=no
3052 + ;;
3053 + motorola)
3054 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3055 + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3056 + ;;
3057 + esac
3058 + runpath_var='LD_RUN_PATH'
3059 + hardcode_shlibpath_var=no
3060 + ;;
3061 +
3062 + sysv4.3*)
3063 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3064 + hardcode_shlibpath_var=no
3065 + export_dynamic_flag_spec='-Bexport'
3066 + ;;
3067 +
3068 + sysv5*)
3069 + no_undefined_flag=' -z text'
3070 + # $CC -shared without GNU ld will not create a library from C++
3071 + # object files and a static libstdc++, better avoid it by now
3072 + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3073 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3074 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3075 + hardcode_libdir_flag_spec=
3076 + hardcode_shlibpath_var=no
3077 + runpath_var='LD_RUN_PATH'
3078 + ;;
3079 +
3080 + uts4*)
3081 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3082 + hardcode_libdir_flag_spec='-L$libdir'
3083 + hardcode_shlibpath_var=no
3084 + ;;
3085 +
3086 + dgux*)
3087 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3088 + hardcode_libdir_flag_spec='-L$libdir'
3089 + hardcode_shlibpath_var=no
3090 + ;;
3091 +
3092 + sysv4*MP*)
3093 + if test -d /usr/nec; then
3094 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3095 + hardcode_shlibpath_var=no
3096 + runpath_var=LD_RUN_PATH
3097 + hardcode_runpath_var=yes
3098 + ld_shlibs=yes
3099 + fi
3100 + ;;
3101 +
3102 + sysv4.2uw2*)
3103 + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3104 + hardcode_direct=yes
3105 + hardcode_minus_L=no
3106 + hardcode_shlibpath_var=no
3107 + hardcode_runpath_var=yes
3108 + runpath_var=LD_RUN_PATH
3109 + ;;
3110 +
3111 + sysv5uw7* | unixware7*)
3112 + no_undefined_flag='${wl}-z ${wl}text'
3113 + if test "$GCC" = yes; then
3114 + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3115 + else
3116 + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3117 + fi
3118 + runpath_var='LD_RUN_PATH'
3119 + hardcode_shlibpath_var=no
3120 + ;;
3121 +
3122 + *)
3123 + ld_shlibs=no
3124 + ;;
3125 + esac
3126 +fi
3127 +AC_MSG_RESULT([$ld_shlibs])
3128 +test "$ld_shlibs" = no && can_build_shared=no
3129 +
3130 +# Check hardcoding attributes.
3131 +AC_MSG_CHECKING([how to hardcode library paths into programs])
3132 +hardcode_action=
3133 +if test -n "$hardcode_libdir_flag_spec" || \
3134 + test -n "$runpath_var"; then
3135 +
3136 + # We can hardcode non-existant directories.
3137 + if test "$hardcode_direct" != no &&
3138 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
3139 + # have to relink, otherwise we might link with an installed library
3140 + # when we should be linking with a yet-to-be-installed one
3141 + ## test "$hardcode_shlibpath_var" != no &&
3142 + test "$hardcode_minus_L" != no; then
3143 + # Linking always hardcodes the temporary library directory.
3144 + hardcode_action=relink
3145 + else
3146 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
3147 + hardcode_action=immediate
3148 + fi
3149 +else
3150 + # We cannot hardcode anything, or else we can only hardcode existing
3151 + # directories.
3152 + hardcode_action=unsupported
3153 +fi
3154 +AC_MSG_RESULT([$hardcode_action])
3155 +
3156 +striplib=
3157 +old_striplib=
3158 +AC_MSG_CHECKING([whether stripping libraries is possible])
3159 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3160 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3161 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3162 + AC_MSG_RESULT([yes])
3163 +else
3164 + AC_MSG_RESULT([no])
3165 +fi
3166 +
3167 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
3168 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
3169 +
3170 +# PORTME Fill in your ld.so characteristics
3171 +AC_MSG_CHECKING([dynamic linker characteristics])
3172 +library_names_spec=
3173 +libname_spec='lib$name'
3174 +soname_spec=
3175 +postinstall_cmds=
3176 +postuninstall_cmds=
3177 +finish_cmds=
3178 +finish_eval=
3179 +shlibpath_var=
3180 +shlibpath_overrides_runpath=unknown
3181 +version_type=none
3182 +dynamic_linker="$host_os ld.so"
3183 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
3184 +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3185 +
3186 +case $host_os in
3187 +aix3*)
3188 + version_type=linux
3189 + library_names_spec='${libname}${release}.so$versuffix $libname.a'
3190 + shlibpath_var=LIBPATH
3191 +
3192 + # AIX has no versioning support, so we append a major version to the name.
3193 + soname_spec='${libname}${release}.so$major'
3194 + ;;
3195 +
3196 +aix4* | aix5*)
3197 + version_type=linux
3198 + need_lib_prefix=no
3199 + need_version=no
3200 + hardcode_into_libs=yes
3201 + if test "$host_cpu" = ia64; then
3202 + # AIX 5 supports IA64
3203 + library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
3204 + shlibpath_var=LD_LIBRARY_PATH
3205 + else
3206 + # With GCC up to 2.95.x, collect2 would create an import file
3207 + # for dependence libraries. The import file would start with
3208 + # the line `#! .'. This would cause the generated library to
3209 + # depend on `.', always an invalid library. This was fixed in
3210 + # development snapshots of GCC prior to 3.0.
3211 + case $host_os in
3212 + aix4 | aix4.[[01]] | aix4.[[01]].*)
3213 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3214 + echo ' yes '
3215 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3216 + :
3217 + else
3218 + can_build_shared=no
3219 + fi
3220 + ;;
3221 + esac
3222 + # AIX (on Power*) has no versioning support, so currently we can
3223 + # not hardcode correct soname into executable. Probably we can
3224 + # add versioning support to collect2, so additional links can
3225 + # be useful in future.
3226 + if test "$aix_use_runtimelinking" = yes; then
3227 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3228 + # instead of lib<name>.a to let people know that these are not
3229 + # typical AIX shared libraries.
3230 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3231 + else
3232 + # We preserve .a as extension for shared libraries through AIX4.2
3233 + # and later when we are not doing run time linking.
3234 + library_names_spec='${libname}${release}.a $libname.a'
3235 + soname_spec='${libname}${release}.so$major'
3236 + fi
3237 + shlibpath_var=LIBPATH
3238 + fi
3239 + hardcode_into_libs=yes
3240 + ;;
3241 +
3242 +amigaos*)
3243 + library_names_spec='$libname.ixlibrary $libname.a'
3244 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
3245 + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
3246 + ;;
3247 +
3248 +beos*)
3249 + library_names_spec='${libname}.so'
3250 + dynamic_linker="$host_os ld.so"
3251 + shlibpath_var=LIBRARY_PATH
3252 + ;;
3253 +
3254 +bsdi4*)
3255 + version_type=linux
3256 + need_version=no
3257 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3258 + soname_spec='${libname}${release}.so$major'
3259 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3260 + shlibpath_var=LD_LIBRARY_PATH
3261 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3262 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3263 + export_dynamic_flag_spec=-rdynamic
3264 + # the default ld.so.conf also contains /usr/contrib/lib and
3265 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3266 + # libtool to hard-code these into programs
3267 + ;;
3268 +
3269 +cygwin* | mingw* | pw32*)
3270 + version_type=windows
3271 + need_version=no
3272 + need_lib_prefix=no
3273 + case $GCC,$host_os in
3274 + yes,cygwin*)
3275 + library_names_spec='$libname.dll.a'
3276 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
3277 + postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
3278 + dldir=$destdir/`dirname \$dlpath`~
3279 + test -d \$dldir || mkdir -p \$dldir~
3280 + $install_prog .libs/$dlname \$dldir/$dlname'
3281 + postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
3282 + dlpath=$dir/\$dldll~
3283 + $rm \$dlpath'
3284 + ;;
3285 + yes,mingw*)
3286 + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
3287 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
3288 + ;;
3289 + yes,pw32*)
3290 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3291 + ;;
3292 + *)
3293 + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib'
3294 + ;;
3295 + esac
3296 + dynamic_linker='Win32 ld.exe'
3297 + # FIXME: first we should search . and the directory the executable is in
3298 + shlibpath_var=PATH
3299 + ;;
3300 +
3301 +darwin* | rhapsody*)
3302 + dynamic_linker="$host_os dyld"
3303 + version_type=darwin
3304 + need_lib_prefix=no
3305 + need_version=no
3306 + # FIXME: Relying on posixy $() will cause problems for
3307 + # cross-compilation, but unfortunately the echo tests do not
3308 + # yet detect zsh echo's removal of \ escapes.
3309 + library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
3310 + soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
3311 + shlibpath_overrides_runpath=yes
3312 + shlibpath_var=DYLD_LIBRARY_PATH
3313 + ;;
3314 +
3315 +freebsd1*)
3316 + dynamic_linker=no
3317 + ;;
3318 +
3319 +kfreebsd*-gnu*)
3320 + version_type=linux
3321 + need_lib_prefix=no
3322 + need_version=no
3323 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3324 + soname_spec='${libname}${release}.so$major'
3325 + shlibpath_var=LD_LIBRARY_PATH
3326 + shlibpath_overrides_runpath=no
3327 + hardcode_into_libs=yes
3328 + dynamic_linker='GNU/FreeBSD ld.so'
3329 + ;;
3330 +
3331 +freebsd*)
3332 + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
3333 + version_type=freebsd-$objformat
3334 + case $version_type in
3335 + freebsd-elf*)
3336 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
3337 + need_version=no
3338 + need_lib_prefix=no
3339 + ;;
3340 + freebsd-*)
3341 + library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
3342 + need_version=yes
3343 + ;;
3344 + esac
3345 + shlibpath_var=LD_LIBRARY_PATH
3346 + case $host_os in
3347 + freebsd2*)
3348 + shlibpath_overrides_runpath=yes
3349 + ;;
3350 + *)
3351 + shlibpath_overrides_runpath=no
3352 + hardcode_into_libs=yes
3353 + ;;
3354 + esac
3355 + ;;
3356 +
3357 +gnu*)
3358 + version_type=linux
3359 + need_lib_prefix=no
3360 + need_version=no
3361 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
3362 + soname_spec='${libname}${release}.so$major'
3363 + shlibpath_var=LD_LIBRARY_PATH
3364 + hardcode_into_libs=yes
3365 + ;;
3366 +
3367 +hpux9* | hpux10* | hpux11*)
3368 + # Give a soname corresponding to the major version so that dld.sl refuses to
3369 + # link against other versions.
3370 + dynamic_linker="$host_os dld.sl"
3371 + version_type=sunos
3372 + need_lib_prefix=no
3373 + need_version=no
3374 + shlibpath_var=SHLIB_PATH
3375 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3376 + library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
3377 + soname_spec='${libname}${release}.sl$major'
3378 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
3379 + postinstall_cmds='chmod 555 $lib'
3380 + ;;
3381 +
3382 +irix5* | irix6* | nonstopux*)
3383 + case $host_os in
3384 + nonstopux*) version_type=nonstopux ;;
3385 + *) version_type=irix ;;
3386 + esac
3387 + need_lib_prefix=no
3388 + need_version=no
3389 + soname_spec='${libname}${release}.so$major'
3390 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
3391 + case $host_os in
3392 + irix5* | nonstopux*)
3393 + libsuff= shlibsuff=
3394 + ;;
3395 + *)
3396 + case $LD in # libtool.m4 will add one of these switches to LD
3397 + *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
3398 + *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
3399 + *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
3400 + *) libsuff= shlibsuff= libmagic=never-match;;
3401 + esac
3402 + ;;
3403 + esac
3404 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3405 + shlibpath_overrides_runpath=no
3406 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3407 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3408 + ;;
3409 +
3410 +# No shared lib support for Linux oldld, aout, or coff.
3411 +linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
3412 + dynamic_linker=no
3413 + ;;
3414 +
3415 +# This must be Linux ELF.
3416 +linux-gnu*)
3417 + version_type=linux
3418 + need_lib_prefix=no
3419 + need_version=no
3420 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3421 + soname_spec='${libname}${release}.so$major'
3422 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3423 + shlibpath_var=LD_LIBRARY_PATH
3424 + shlibpath_overrides_runpath=no
3425 + # This implies no fast_install, which is unacceptable.
3426 + # Some rework will be needed to allow for fast_install
3427 + # before this can be enabled.
3428 + hardcode_into_libs=yes
3429 +
3430 + # We used to test for /lib/ld.so.1 and disable shared libraries on
3431 + # powerpc, because MkLinux only supported shared libraries with the
3432 + # GNU dynamic linker. Since this was broken with cross compilers,
3433 + # most powerpc-linux boxes support dynamic linking these days and
3434 + # people can always --disable-shared, the test was removed, and we
3435 + # assume the GNU/Linux dynamic linker is in use.
3436 + dynamic_linker='GNU/Linux ld.so'
3437 + ;;
3438 +
3439 +netbsd*)
3440 + version_type=sunos
3441 + need_lib_prefix=no
3442 + need_version=no
3443 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3444 + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
3445 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3446 + dynamic_linker='NetBSD (a.out) ld.so'
3447 + else
3448 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
3449 + soname_spec='${libname}${release}.so$major'
3450 + dynamic_linker='NetBSD ld.elf_so'
3451 + fi
3452 + shlibpath_var=LD_LIBRARY_PATH
3453 + shlibpath_overrides_runpath=yes
3454 + hardcode_into_libs=yes
3455 + ;;
3456 +
3457 +newsos6)
3458 + version_type=linux
3459 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3460 + shlibpath_var=LD_LIBRARY_PATH
3461 + shlibpath_overrides_runpath=yes
3462 + ;;
3463 +
3464 +openbsd*)
3465 + version_type=sunos
3466 + need_lib_prefix=no
3467 + need_version=no
3468 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3469 + case "$host_os" in
3470 + openbsd2.[[89]] | openbsd2.[[89]].*)
3471 + shlibpath_overrides_runpath=no
3472 + ;;
3473 + *)
3474 + shlibpath_overrides_runpath=yes
3475 + ;;
3476 + esac
3477 + else
3478 + shlibpath_overrides_runpath=yes
3479 + fi
3480 + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
3481 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3482 + shlibpath_var=LD_LIBRARY_PATH
3483 + ;;
3484 +
3485 +os2*)
3486 + libname_spec='$name'
3487 + need_lib_prefix=no
3488 + library_names_spec='$libname.dll $libname.a'
3489 + dynamic_linker='OS/2 ld.exe'
3490 + shlibpath_var=LIBPATH
3491 + ;;
3492 +
3493 +osf3* | osf4* | osf5*)
3494 + version_type=osf
3495 + need_version=no
3496 + need_lib_prefix=no
3497 + soname_spec='${libname}${release}.so$major'
3498 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3499 + shlibpath_var=LD_LIBRARY_PATH
3500 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3501 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3502 + hardcode_into_libs=yes
3503 + ;;
3504 +
3505 +sco3.2v5*)
3506 + version_type=osf
3507 + soname_spec='${libname}${release}.so$major'
3508 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3509 + shlibpath_var=LD_LIBRARY_PATH
3510 + ;;
3511 +
3512 +solaris*)
3513 + version_type=linux
3514 + need_lib_prefix=no
3515 + need_version=no
3516 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3517 + soname_spec='${libname}${release}.so$major'
3518 + shlibpath_var=LD_LIBRARY_PATH
3519 + shlibpath_overrides_runpath=yes
3520 + hardcode_into_libs=yes
3521 + # ldd complains unless libraries are executable
3522 + postinstall_cmds='chmod +x $lib'
3523 + ;;
3524 +
3525 +sunos4*)
3526 + version_type=sunos
3527 + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
3528 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3529 + shlibpath_var=LD_LIBRARY_PATH
3530 + shlibpath_overrides_runpath=yes
3531 + if test "$with_gnu_ld" = yes; then
3532 + need_lib_prefix=no
3533 + fi
3534 + need_version=yes
3535 + ;;
3536 +
3537 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3538 + version_type=linux
3539 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3540 + soname_spec='${libname}${release}.so$major'
3541 + shlibpath_var=LD_LIBRARY_PATH
3542 + case $host_vendor in
3543 + sni)
3544 + shlibpath_overrides_runpath=no
3545 + need_lib_prefix=no
3546 + export_dynamic_flag_spec='${wl}-Blargedynsym'
3547 + runpath_var=LD_RUN_PATH
3548 + ;;
3549 + siemens)
3550 + need_lib_prefix=no
3551 + ;;
3552 + motorola)
3553 + need_lib_prefix=no
3554 + need_version=no
3555 + shlibpath_overrides_runpath=no
3556 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3557 + ;;
3558 + esac
3559 + ;;
3560 +
3561 +uts4*)
3562 + version_type=linux
3563 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3564 + soname_spec='${libname}${release}.so$major'
3565 + shlibpath_var=LD_LIBRARY_PATH
3566 + ;;
3567 +
3568 +dgux*)
3569 + version_type=linux
3570 + need_lib_prefix=no
3571 + need_version=no
3572 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3573 + soname_spec='${libname}${release}.so$major'
3574 + shlibpath_var=LD_LIBRARY_PATH
3575 + ;;
3576 +
3577 +sysv4*MP*)
3578 + if test -d /usr/nec ;then
3579 + version_type=linux
3580 + library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
3581 + soname_spec='$libname.so.$major'
3582 + shlibpath_var=LD_LIBRARY_PATH
3583 + fi
3584 + ;;
3585 +
3586 +*)
3587 + dynamic_linker=no
3588 + ;;
3589 +esac
3590 +AC_MSG_RESULT([$dynamic_linker])
3591 +test "$dynamic_linker" = no && can_build_shared=no
3592 +
3593 +# Report the final consequences.
3594 +AC_MSG_CHECKING([if libtool supports shared libraries])
3595 +AC_MSG_RESULT([$can_build_shared])
3596 +
3597 +AC_MSG_CHECKING([whether to build shared libraries])
3598 +test "$can_build_shared" = "no" && enable_shared=no
3599 +
3600 +# On AIX, shared libraries and static libraries use the same namespace, and
3601 +# are all built from PIC.
3602 +case "$host_os" in
3603 +aix3*)
3604 + test "$enable_shared" = yes && enable_static=no
3605 + if test -n "$RANLIB"; then
3606 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
3607 + postinstall_cmds='$RANLIB $lib'
3608 + fi
3609 + ;;
3610 +
3611 +aix4*)
3612 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3613 + test "$enable_shared" = yes && enable_static=no
3614 + fi
3615 + ;;
3616 +esac
3617 +AC_MSG_RESULT([$enable_shared])
3618 +
3619 +AC_MSG_CHECKING([whether to build static libraries])
3620 +# Make sure either enable_shared or enable_static is yes.
3621 +test "$enable_shared" = yes || enable_static=yes
3622 +AC_MSG_RESULT([$enable_static])
3623 +
3624 +if test "$hardcode_action" = relink; then
3625 + # Fast installation is not supported
3626 + enable_fast_install=no
3627 +elif test "$shlibpath_overrides_runpath" = yes ||
3628 + test "$enable_shared" = no; then
3629 + # Fast installation is not necessary
3630 + enable_fast_install=needless
3631 +fi
3632 +
3633 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3634 +if test "$GCC" = yes; then
3635 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3636 +fi
3637 +
3638 +AC_LIBTOOL_DLOPEN_SELF
3639 +
3640 +if test "$enable_shared" = yes && test "$GCC" = yes; then
3641 + case $archive_cmds in
3642 + *'~'*)
3643 + # FIXME: we may have to deal with multi-command sequences.
3644 + ;;
3645 + '$CC '*)
3646 + # Test whether the compiler implicitly links with -lc since on some
3647 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
3648 + # to ld, don't add -lc before -lgcc.
3649 + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
3650 + AC_CACHE_VAL([lt_cv_archive_cmds_need_lc],
3651 + [$rm conftest*
3652 + echo 'static int dummy;' > conftest.$ac_ext
3653 +
3654 + if AC_TRY_EVAL(ac_compile); then
3655 + soname=conftest
3656 + lib=conftest
3657 + libobjs=conftest.$ac_objext
3658 + deplibs=
3659 + wl=$lt_cv_prog_cc_wl
3660 + compiler_flags=-v
3661 + linker_flags=-v
3662 + verstring=
3663 + output_objdir=.
3664 + libname=conftest
3665 + save_allow_undefined_flag=$allow_undefined_flag
3666 + allow_undefined_flag=
3667 + if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
3668 + then
3669 + lt_cv_archive_cmds_need_lc=no
3670 + else
3671 + lt_cv_archive_cmds_need_lc=yes
3672 + fi
3673 + allow_undefined_flag=$save_allow_undefined_flag
3674 + else
3675 + cat conftest.err 1>&5
3676 + fi])
3677 + AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc])
3678 + ;;
3679 + esac
3680 +fi
3681 +need_lc=${lt_cv_archive_cmds_need_lc-yes}
3682 +
3683 +# The second clause should only fire when bootstrapping the
3684 +# libtool distribution, otherwise you forgot to ship ltmain.sh
3685 +# with your package, and you will get complaints that there are
3686 +# no rules to generate ltmain.sh.
3687 +if test -f "$ltmain"; then
3688 + :
3689 +else
3690 + # If there is no Makefile yet, we rely on a make rule to execute
3691 + # `config.status --recheck' to rerun these tests and create the
3692 + # libtool script then.
3693 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
3694 + if test -f "$ltmain_in"; then
3695 + test -f Makefile && make "$ltmain"
3696 + fi
3697 +fi
3698 +
3699 +if test -f "$ltmain"; then
3700 + trap "$rm \"${ofile}T\"; exit 1" 1 2 15
3701 + $rm -f "${ofile}T"
3702 +
3703 + echo creating $ofile
3704 +
3705 + # Now quote all the things that may contain metacharacters while being
3706 + # careful not to overquote the AC_SUBSTed values. We take copies of the
3707 + # variables and quote the copies for generation of the libtool script.
3708 + for var in echo old_CC old_CFLAGS SED \
3709 + AR AR_FLAGS CC LD LN_S NM SHELL STRIP \
3710 + reload_flag reload_cmds wl \
3711 + pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
3712 + thread_safe_flag_spec whole_archive_flag_spec libname_spec \
3713 + library_names_spec soname_spec \
3714 + RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
3715 + old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
3716 + postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
3717 + old_striplib striplib file_magic_cmd export_symbols_cmds \
3718 + deplibs_check_method allow_undefined_flag no_undefined_flag \
3719 + finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
3720 + global_symbol_to_c_name_address \
3721 + hardcode_libdir_flag_spec hardcode_libdir_separator \
3722 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
3723 + compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
3724 +
3725 + case $var in
3726 + reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
3727 + old_postinstall_cmds | old_postuninstall_cmds | \
3728 + export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
3729 + extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
3730 + postinstall_cmds | postuninstall_cmds | \
3731 + finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
3732 + # Double-quote double-evaled strings.
3733 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
3734 + ;;
3735 + *)
3736 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
3737 + ;;
3738 + esac
3739 + done
3740 +
3741 + cat <<__EOF__ > "${ofile}T"
3742 +#! $SHELL
3743 +
3744 +# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
3745 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
3746 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
3747 +#
3748 +# Copyright (C) 1996-2000 Free Software Foundation, Inc.
3749 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
3750 +#
3751 +# This program is free software; you can redistribute it and/or modify
3752 +# it under the terms of the GNU General Public License as published by
3753 +# the Free Software Foundation; either version 2 of the License, or
3754 +# (at your option) any later version.
3755 +#
3756 +# This program is distributed in the hope that it will be useful, but
3757 +# WITHOUT ANY WARRANTY; without even the implied warranty of
3758 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3759 +# General Public License for more details.
3760 +#
3761 +# You should have received a copy of the GNU General Public License
3762 +# along with this program; if not, write to the Free Software
3763 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3764 +#
3765 +# As a special exception to the GNU General Public License, if you
3766 +# distribute this file as part of a program that contains a
3767 +# configuration script generated by Autoconf, you may include it under
3768 +# the same distribution terms that you use for the rest of that program.
3769 +
3770 +# A sed that does not truncate output.
3771 +SED=$lt_SED
3772 +
3773 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
3774 +Xsed="${SED} -e s/^X//"
3775 +
3776 +# The HP-UX ksh and POSIX shell print the target directory to stdout
3777 +# if CDPATH is set.
3778 +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
3779 +
3780 +# ### BEGIN LIBTOOL CONFIG
3781 +
3782 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3783 +
3784 +# Shell to use when invoking shell scripts.
3785 +SHELL=$lt_SHELL
3786 +
3787 +# Whether or not to build shared libraries.
3788 +build_libtool_libs=$enable_shared
3789 +
3790 +# Whether or not to build static libraries.
3791 +build_old_libs=$enable_static
3792 +
3793 +# Whether or not to add -lc for building shared libraries.
3794 +build_libtool_need_lc=$need_lc
3795 +
3796 +# Whether or not to optimize for fast installation.
3797 +fast_install=$enable_fast_install
3798 +
3799 +# The host system.
3800 +host_alias=$host_alias
3801 +host=$host
3802 +
3803 +# An echo program that does not interpret backslashes.
3804 +echo=$lt_echo
3805 +
3806 +# The archiver.
3807 +AR=$lt_AR
3808 +AR_FLAGS=$lt_AR_FLAGS
3809 +
3810 +# The default C compiler.
3811 +CC=$lt_CC
3812 +
3813 +# Is the compiler the GNU C compiler?
3814 +with_gcc=$GCC
3815 +
3816 +# The linker used to build libraries.
3817 +LD=$lt_LD
3818 +
3819 +# Whether we need hard or soft links.
3820 +LN_S=$lt_LN_S
3821 +
3822 +# A BSD-compatible nm program.
3823 +NM=$lt_NM
3824 +
3825 +# A symbol stripping program
3826 +STRIP=$lt_STRIP
3827 +
3828 +# Used to examine libraries when file_magic_cmd begins "file"
3829 +MAGIC_CMD=$MAGIC_CMD
3830 +
3831 +# Used on cygwin: DLL creation program.
3832 +DLLTOOL="$DLLTOOL"
3833 +
3834 +# Used on cygwin: object dumper.
3835 +OBJDUMP="$OBJDUMP"
3836 +
3837 +# Used on cygwin: assembler.
3838 +AS="$AS"
3839 +
3840 +# The name of the directory that contains temporary libtool files.
3841 +objdir=$objdir
3842 +
3843 +# How to create reloadable object files.
3844 +reload_flag=$lt_reload_flag
3845 +reload_cmds=$lt_reload_cmds
3846 +
3847 +# How to pass a linker flag through the compiler.
3848 +wl=$lt_wl
3849 +
3850 +# Object file suffix (normally "o").
3851 +objext="$ac_objext"
3852 +
3853 +# Old archive suffix (normally "a").
3854 +libext="$libext"
3855 +
3856 +# Executable file suffix (normally "").
3857 +exeext="$exeext"
3858 +
3859 +# Additional compiler flags for building library objects.
3860 +pic_flag=$lt_pic_flag
3861 +pic_mode=$pic_mode
3862 +
3863 +# Does compiler simultaneously support -c and -o options?
3864 +compiler_c_o=$lt_compiler_c_o
3865 +
3866 +# Can we write directly to a .lo ?
3867 +compiler_o_lo=$lt_compiler_o_lo
3868 +
3869 +# Must we lock files when doing compilation ?
3870 +need_locks=$lt_need_locks
3871 +
3872 +# Do we need the lib prefix for modules?
3873 +need_lib_prefix=$need_lib_prefix
3874 +
3875 +# Do we need a version for libraries?
3876 +need_version=$need_version
3877 +
3878 +# Whether dlopen is supported.
3879 +dlopen_support=$enable_dlopen
3880 +
3881 +# Whether dlopen of programs is supported.
3882 +dlopen_self=$enable_dlopen_self
3883 +
3884 +# Whether dlopen of statically linked programs is supported.
3885 +dlopen_self_static=$enable_dlopen_self_static
3886 +
3887 +# Compiler flag to prevent dynamic linking.
3888 +link_static_flag=$lt_link_static_flag
3889 +
3890 +# Compiler flag to turn off builtin functions.
3891 +no_builtin_flag=$lt_no_builtin_flag
3892 +
3893 +# Compiler flag to allow reflexive dlopens.
3894 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
3895 +
3896 +# Compiler flag to generate shared objects directly from archives.
3897 +whole_archive_flag_spec=$lt_whole_archive_flag_spec
3898 +
3899 +# Compiler flag to generate thread-safe objects.
3900 +thread_safe_flag_spec=$lt_thread_safe_flag_spec
3901 +
3902 +# Library versioning type.
3903 +version_type=$version_type
3904 +
3905 +# Format of library name prefix.
3906 +libname_spec=$lt_libname_spec
3907 +
3908 +# List of archive names. First name is the real one, the rest are links.
3909 +# The last name is the one that the linker finds with -lNAME.
3910 +library_names_spec=$lt_library_names_spec
3911 +
3912 +# The coded name of the library, if different from the real name.
3913 +soname_spec=$lt_soname_spec
3914 +
3915 +# Commands used to build and install an old-style archive.
3916 +RANLIB=$lt_RANLIB
3917 +old_archive_cmds=$lt_old_archive_cmds
3918 +old_postinstall_cmds=$lt_old_postinstall_cmds
3919 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
3920 +
3921 +# Create an old-style archive from a shared archive.
3922 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
3923 +
3924 +# Create a temporary old-style archive to link instead of a shared archive.
3925 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
3926 +
3927 +# Commands used to build and install a shared archive.
3928 +archive_cmds=$lt_archive_cmds
3929 +archive_expsym_cmds=$lt_archive_expsym_cmds
3930 +postinstall_cmds=$lt_postinstall_cmds
3931 +postuninstall_cmds=$lt_postuninstall_cmds
3932 +
3933 +# Commands to strip libraries.
3934 +old_striplib=$lt_old_striplib
3935 +striplib=$lt_striplib
3936 +
3937 +# Method to check whether dependent libraries are shared objects.
3938 +deplibs_check_method=$lt_deplibs_check_method
3939 +
3940 +# Command to use when deplibs_check_method == file_magic.
3941 +file_magic_cmd=$lt_file_magic_cmd
3942 +
3943 +# Flag that allows shared libraries with undefined symbols to be built.
3944 +allow_undefined_flag=$lt_allow_undefined_flag
3945 +
3946 +# Flag that forces no undefined symbols.
3947 +no_undefined_flag=$lt_no_undefined_flag
3948 +
3949 +# Commands used to finish a libtool library installation in a directory.
3950 +finish_cmds=$lt_finish_cmds
3951 +
3952 +# Same as above, but a single script fragment to be evaled but not shown.
3953 +finish_eval=$lt_finish_eval
3954 +
3955 +# Take the output of nm and produce a listing of raw symbols and C names.
3956 +global_symbol_pipe=$lt_global_symbol_pipe
3957 +
3958 +# Transform the output of nm in a proper C declaration
3959 +global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
3960 +
3961 +# Transform the output of nm in a C name address pair
3962 +global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
3963 +
3964 +# This is the shared library runtime path variable.
3965 +runpath_var=$runpath_var
3966 +
3967 +# This is the shared library path variable.
3968 +shlibpath_var=$shlibpath_var
3969 +
3970 +# Is shlibpath searched before the hard-coded library search path?
3971 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
3972 +
3973 +# How to hardcode a shared library path into an executable.
3974 +hardcode_action=$hardcode_action
3975 +
3976 +# Whether we should hardcode library paths into libraries.
3977 +hardcode_into_libs=$hardcode_into_libs
3978 +
3979 +# Flag to hardcode \$libdir into a binary during linking.
3980 +# This must work even if \$libdir does not exist.
3981 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
3982 +
3983 +# Whether we need a single -rpath flag with a separated argument.
3984 +hardcode_libdir_separator=$lt_hardcode_libdir_separator
3985 +
3986 +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
3987 +# resulting binary.
3988 +hardcode_direct=$hardcode_direct
3989 +
3990 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
3991 +# resulting binary.
3992 +hardcode_minus_L=$hardcode_minus_L
3993 +
3994 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
3995 +# the resulting binary.
3996 +hardcode_shlibpath_var=$hardcode_shlibpath_var
3997 +
3998 +# Variables whose values should be saved in libtool wrapper scripts and
3999 +# restored at relink time.
4000 +variables_saved_for_relink="$variables_saved_for_relink"
4001 +
4002 +# Whether libtool must link a program against all its dependency libraries.
4003 +link_all_deplibs=$link_all_deplibs
4004 +
4005 +# Compile-time system search path for libraries
4006 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4007 +
4008 +# Run-time system search path for libraries
4009 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4010 +
4011 +# Fix the shell variable \$srcfile for the compiler.
4012 +fix_srcfile_path="$fix_srcfile_path"
4013 +
4014 +# Set to yes if exported symbols are required.
4015 +always_export_symbols=$always_export_symbols
4016 +
4017 +# The commands to list exported symbols.
4018 +export_symbols_cmds=$lt_export_symbols_cmds
4019 +
4020 +# The commands to extract the exported symbol list from a shared archive.
4021 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
4022 +
4023 +# Symbols that should not be listed in the preloaded symbols.
4024 +exclude_expsyms=$lt_exclude_expsyms
4025 +
4026 +# Symbols that must always be exported.
4027 +include_expsyms=$lt_include_expsyms
4028 +
4029 +# ### END LIBTOOL CONFIG
4030 +
4031 +__EOF__
4032 +
4033 + case $host_os in
4034 + aix3*)
4035 + cat <<\EOF >> "${ofile}T"
4036 +
4037 +# AIX sometimes has problems with the GCC collect2 program. For some
4038 +# reason, if we set the COLLECT_NAMES environment variable, the problems
4039 +# vanish in a puff of smoke.
4040 +if test "X${COLLECT_NAMES+set}" != Xset; then
4041 + COLLECT_NAMES=
4042 + export COLLECT_NAMES
4043 +fi
4044 +EOF
4045 + ;;
4046 + esac
4047 +
4048 + case $host_os in
4049 + cygwin* | mingw* | pw32* | os2*)
4050 + cat <<'EOF' >> "${ofile}T"
4051 + # This is a source program that is used to create dlls on Windows
4052 + # Don't remove nor modify the starting and closing comments
4053 +# /* ltdll.c starts here */
4054 +# #define WIN32_LEAN_AND_MEAN
4055 +# #include <windows.h>
4056 +# #undef WIN32_LEAN_AND_MEAN
4057 +# #include <stdio.h>
4058 +#
4059 +# #ifndef __CYGWIN__
4060 +# # ifdef __CYGWIN32__
4061 +# # define __CYGWIN__ __CYGWIN32__
4062 +# # endif
4063 +# #endif
4064 +#
4065 +# #ifdef __cplusplus
4066 +# extern "C" {
4067 +# #endif
4068 +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
4069 +# #ifdef __cplusplus
4070 +# }
4071 +# #endif
4072 +#
4073 +# #ifdef __CYGWIN__
4074 +# #include <cygwin/cygwin_dll.h>
4075 +# DECLARE_CYGWIN_DLL( DllMain );
4076 +# #endif
4077 +# HINSTANCE __hDllInstance_base;
4078 +#
4079 +# BOOL APIENTRY
4080 +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
4081 +# {
4082 +# __hDllInstance_base = hInst;
4083 +# return TRUE;
4084 +# }
4085 +# /* ltdll.c ends here */
4086 + # This is a source program that is used to create import libraries
4087 + # on Windows for dlls which lack them. Don't remove nor modify the
4088 + # starting and closing comments
4089 +# /* impgen.c starts here */
4090 +# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
4091 +#
4092 +# This file is part of GNU libtool.
4093 +#
4094 +# This program is free software; you can redistribute it and/or modify
4095 +# it under the terms of the GNU General Public License as published by
4096 +# the Free Software Foundation; either version 2 of the License, or
4097 +# (at your option) any later version.
4098 +#
4099 +# This program is distributed in the hope that it will be useful,
4100 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
4101 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4102 +# GNU General Public License for more details.
4103 +#
4104 +# You should have received a copy of the GNU General Public License
4105 +# along with this program; if not, write to the Free Software
4106 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4107 +# */
4108 +#
4109 +# #include <stdio.h> /* for printf() */
4110 +# #include <unistd.h> /* for open(), lseek(), read() */
4111 +# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
4112 +# #include <string.h> /* for strdup() */
4113 +#
4114 +# /* O_BINARY isn't required (or even defined sometimes) under Unix */
4115 +# #ifndef O_BINARY
4116 +# #define O_BINARY 0
4117 +# #endif
4118 +#
4119 +# static unsigned int
4120 +# pe_get16 (fd, offset)
4121 +# int fd;
4122 +# int offset;
4123 +# {
4124 +# unsigned char b[2];
4125 +# lseek (fd, offset, SEEK_SET);
4126 +# read (fd, b, 2);
4127 +# return b[0] + (b[1]<<8);
4128 +# }
4129 +#
4130 +# static unsigned int
4131 +# pe_get32 (fd, offset)
4132 +# int fd;
4133 +# int offset;
4134 +# {
4135 +# unsigned char b[4];
4136 +# lseek (fd, offset, SEEK_SET);
4137 +# read (fd, b, 4);
4138 +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
4139 +# }
4140 +#
4141 +# static unsigned int
4142 +# pe_as32 (ptr)
4143 +# void *ptr;
4144 +# {
4145 +# unsigned char *b = ptr;
4146 +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
4147 +# }
4148 +#
4149 +# int
4150 +# main (argc, argv)
4151 +# int argc;
4152 +# char *argv[];
4153 +# {
4154 +# int dll;
4155 +# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
4156 +# unsigned long export_rva, export_size, nsections, secptr, expptr;
4157 +# unsigned long name_rvas, nexp;
4158 +# unsigned char *expdata, *erva;
4159 +# char *filename, *dll_name;
4160 +#
4161 +# filename = argv[1];
4162 +#
4163 +# dll = open(filename, O_RDONLY|O_BINARY);
4164 +# if (dll < 1)
4165 +# return 1;
4166 +#
4167 +# dll_name = filename;
4168 +#
4169 +# for (i=0; filename[i]; i++)
4170 +# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
4171 +# dll_name = filename + i +1;
4172 +#
4173 +# pe_header_offset = pe_get32 (dll, 0x3c);
4174 +# opthdr_ofs = pe_header_offset + 4 + 20;
4175 +# num_entries = pe_get32 (dll, opthdr_ofs + 92);
4176 +#
4177 +# if (num_entries < 1) /* no exports */
4178 +# return 1;
4179 +#
4180 +# export_rva = pe_get32 (dll, opthdr_ofs + 96);
4181 +# export_size = pe_get32 (dll, opthdr_ofs + 100);
4182 +# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
4183 +# secptr = (pe_header_offset + 4 + 20 +
4184 +# pe_get16 (dll, pe_header_offset + 4 + 16));
4185 +#
4186 +# expptr = 0;
4187 +# for (i = 0; i < nsections; i++)
4188 +# {
4189 +# char sname[8];
4190 +# unsigned long secptr1 = secptr + 40 * i;
4191 +# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
4192 +# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
4193 +# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
4194 +# lseek(dll, secptr1, SEEK_SET);
4195 +# read(dll, sname, 8);
4196 +# if (vaddr <= export_rva && vaddr+vsize > export_rva)
4197 +# {
4198 +# expptr = fptr + (export_rva - vaddr);
4199 +# if (export_rva + export_size > vaddr + vsize)
4200 +# export_size = vsize - (export_rva - vaddr);
4201 +# break;
4202 +# }
4203 +# }
4204 +#
4205 +# expdata = (unsigned char*)malloc(export_size);
4206 +# lseek (dll, expptr, SEEK_SET);
4207 +# read (dll, expdata, export_size);
4208 +# erva = expdata - export_rva;
4209 +#
4210 +# nexp = pe_as32 (expdata+24);
4211 +# name_rvas = pe_as32 (expdata+32);
4212 +#
4213 +# printf ("EXPORTS\n");
4214 +# for (i = 0; i<nexp; i++)
4215 +# {
4216 +# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
4217 +# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
4218 +# }
4219 +#
4220 +# return 0;
4221 +# }
4222 +# /* impgen.c ends here */
4223 +
4224 +EOF
4225 + ;;
4226 + esac
4227 +
4228 + # We use sed instead of cat because bash on DJGPP gets confused if
4229 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
4230 + # text mode, it properly converts lines to CR/LF. This bash problem
4231 + # is reportedly fixed, but why not run on old versions too?
4232 + sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
4233 +
4234 + mv -f "${ofile}T" "$ofile" || \
4235 + (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
4236 + chmod +x "$ofile"
4237 +fi
4238 +
4239 +])# _LT_AC_LTCONFIG_HACK
4240 +
4241 +# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
4242 +AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
4243 +
4244 +# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
4245 +AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
4246 +
4247 +# AC_ENABLE_SHARED - implement the --enable-shared flag
4248 +# Usage: AC_ENABLE_SHARED[(DEFAULT)]
4249 +# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
4250 +# `yes'.
4251 +AC_DEFUN([AC_ENABLE_SHARED],
4252 +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
4253 +AC_ARG_ENABLE(shared,
4254 +changequote(<<, >>)dnl
4255 +<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
4256 +changequote([, ])dnl
4257 +[p=${PACKAGE-default}
4258 +case $enableval in
4259 +yes) enable_shared=yes ;;
4260 +no) enable_shared=no ;;
4261 +*)
4262 + enable_shared=no
4263 + # Look at the argument we got. We use all the common list separators.
4264 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4265 + for pkg in $enableval; do
4266 + if test "X$pkg" = "X$p"; then
4267 + enable_shared=yes
4268 + fi
4269 + done
4270 + IFS="$ac_save_ifs"
4271 + ;;
4272 +esac],
4273 +enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
4274 +])
4275 +
4276 +# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
4277 +AC_DEFUN([AC_DISABLE_SHARED],
4278 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4279 +AC_ENABLE_SHARED(no)])
4280 +
4281 +# AC_ENABLE_STATIC - implement the --enable-static flag
4282 +# Usage: AC_ENABLE_STATIC[(DEFAULT)]
4283 +# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
4284 +# `yes'.
4285 +AC_DEFUN([AC_ENABLE_STATIC],
4286 +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
4287 +AC_ARG_ENABLE(static,
4288 +changequote(<<, >>)dnl
4289 +<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
4290 +changequote([, ])dnl
4291 +[p=${PACKAGE-default}
4292 +case $enableval in
4293 +yes) enable_static=yes ;;
4294 +no) enable_static=no ;;
4295 +*)
4296 + enable_static=no
4297 + # Look at the argument we got. We use all the common list separators.
4298 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4299 + for pkg in $enableval; do
4300 + if test "X$pkg" = "X$p"; then
4301 + enable_static=yes
4302 + fi
4303 + done
4304 + IFS="$ac_save_ifs"
4305 + ;;
4306 +esac],
4307 +enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
4308 +])
4309 +
4310 +# AC_DISABLE_STATIC - set the default static flag to --disable-static
4311 +AC_DEFUN([AC_DISABLE_STATIC],
4312 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4313 +AC_ENABLE_STATIC(no)])
4314 +
4315 +
4316 +# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
4317 +# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
4318 +# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
4319 +# `yes'.
4320 +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
4321 +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
4322 +AC_ARG_ENABLE(fast-install,
4323 +changequote(<<, >>)dnl
4324 +<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
4325 +changequote([, ])dnl
4326 +[p=${PACKAGE-default}
4327 +case $enableval in
4328 +yes) enable_fast_install=yes ;;
4329 +no) enable_fast_install=no ;;
4330 +*)
4331 + enable_fast_install=no
4332 + # Look at the argument we got. We use all the common list separators.
4333 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4334 + for pkg in $enableval; do
4335 + if test "X$pkg" = "X$p"; then
4336 + enable_fast_install=yes
4337 + fi
4338 + done
4339 + IFS="$ac_save_ifs"
4340 + ;;
4341 +esac],
4342 +enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
4343 +])
4344 +
4345 +# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
4346 +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
4347 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4348 +AC_ENABLE_FAST_INSTALL(no)])
4349 +
4350 +# AC_LIBTOOL_PICMODE - implement the --with-pic flag
4351 +# Usage: AC_LIBTOOL_PICMODE[(MODE)]
4352 +# Where MODE is either `yes' or `no'. If omitted, it defaults to
4353 +# `both'.
4354 +AC_DEFUN([AC_LIBTOOL_PICMODE],
4355 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4356 +pic_mode=ifelse($#,1,$1,default)])
4357 +
4358 +
4359 +# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
4360 +AC_DEFUN([AC_PATH_TOOL_PREFIX],
4361 +[AC_MSG_CHECKING([for $1])
4362 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
4363 +[case $MAGIC_CMD in
4364 + /*)
4365 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4366 + ;;
4367 + ?:/*)
4368 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4369 + ;;
4370 + *)
4371 + ac_save_MAGIC_CMD="$MAGIC_CMD"
4372 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4373 +dnl $ac_dummy forces splitting on constant user-supplied paths.
4374 +dnl POSIX.2 word splitting is done only on the output of word expansions,
4375 +dnl not every word. This closes a longstanding sh security hole.
4376 + ac_dummy="ifelse([$2], , $PATH, [$2])"
4377 + for ac_dir in $ac_dummy; do
4378 + test -z "$ac_dir" && ac_dir=.
4379 + if test -f $ac_dir/$1; then
4380 + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
4381 + if test -n "$file_magic_test_file"; then
4382 + case $deplibs_check_method in
4383 + "file_magic "*)
4384 + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4385 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4386 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4387 + egrep "$file_magic_regex" > /dev/null; then
4388 + :
4389 + else
4390 + cat <<EOF 1>&2
4391 +
4392 +*** Warning: the command libtool uses to detect shared libraries,
4393 +*** $file_magic_cmd, produces output that libtool cannot recognize.
4394 +*** The result is that libtool may fail to recognize shared libraries
4395 +*** as such. This will affect the creation of libtool libraries that
4396 +*** depend on shared libraries, but programs linked with such libtool
4397 +*** libraries will work regardless of this problem. Nevertheless, you
4398 +*** may want to report the problem to your system manager and/or to
4399 +*** bug-libtool@gnu.org
4400 +
4401 +EOF
4402 + fi ;;
4403 + esac
4404 + fi
4405 + break
4406 + fi
4407 + done
4408 + IFS="$ac_save_ifs"
4409 + MAGIC_CMD="$ac_save_MAGIC_CMD"
4410 + ;;
4411 +esac])
4412 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4413 +if test -n "$MAGIC_CMD"; then
4414 + AC_MSG_RESULT($MAGIC_CMD)
4415 +else
4416 + AC_MSG_RESULT(no)
4417 +fi
4418 +])
4419 +
4420 +
4421 +# AC_PATH_MAGIC - find a file program which can recognise a shared library
4422 +AC_DEFUN([AC_PATH_MAGIC],
4423 +[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
4424 +AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
4425 +if test -z "$lt_cv_path_MAGIC_CMD"; then
4426 + if test -n "$ac_tool_prefix"; then
4427 + AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH)
4428 + else
4429 + MAGIC_CMD=:
4430 + fi
4431 +fi
4432 +])
4433 +
4434 +
4435 +# AC_PROG_LD - find the path to the GNU or non-GNU linker
4436 +AC_DEFUN([AC_PROG_LD],
4437 +[AC_ARG_WITH(gnu-ld,
4438 +[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
4439 +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
4440 +AC_REQUIRE([AC_PROG_CC])dnl
4441 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
4442 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
4443 +AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
4444 +ac_prog=ld
4445 +if test "$GCC" = yes; then
4446 + # Check if gcc -print-prog-name=ld gives a path.
4447 + AC_MSG_CHECKING([for ld used by GCC])
4448 + case $host in
4449 + *-*-mingw*)
4450 + # gcc leaves a trailing carriage return which upsets mingw
4451 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4452 + *)
4453 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4454 + esac
4455 + case $ac_prog in
4456 + # Accept absolute paths.
4457 + [[\\/]]* | [[A-Za-z]]:[[\\/]]*)
4458 + re_direlt='/[[^/]][[^/]]*/\.\./'
4459 + # Canonicalize the path of ld
4460 + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4461 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4462 + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4463 + done
4464 + test -z "$LD" && LD="$ac_prog"
4465 + ;;
4466 + "")
4467 + # If it fails, then pretend we aren't using GCC.
4468 + ac_prog=ld
4469 + ;;
4470 + *)
4471 + # If it is relative, then search for the first ld in PATH.
4472 + with_gnu_ld=unknown
4473 + ;;
4474 + esac
4475 +elif test "$with_gnu_ld" = yes; then
4476 + AC_MSG_CHECKING([for GNU ld])
4477 +else
4478 + AC_MSG_CHECKING([for non-GNU ld])
4479 +fi
4480 +AC_CACHE_VAL(lt_cv_path_LD,
4481 +[if test -z "$LD"; then
4482 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4483 + for ac_dir in $PATH; do
4484 + test -z "$ac_dir" && ac_dir=.
4485 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4486 + lt_cv_path_LD="$ac_dir/$ac_prog"
4487 + # Check to see if the program is GNU ld. I'd rather use --version,
4488 + # but apparently some GNU ld's only accept -v.
4489 + # Break only if it was the GNU/non-GNU ld that we prefer.
4490 + if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4491 + test "$with_gnu_ld" != no && break
4492 + else
4493 + test "$with_gnu_ld" != yes && break
4494 + fi
4495 + fi
4496 + done
4497 + IFS="$ac_save_ifs"
4498 +else
4499 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
4500 +fi])
4501 +LD="$lt_cv_path_LD"
4502 +if test -n "$LD"; then
4503 + AC_MSG_RESULT($LD)
4504 +else
4505 + AC_MSG_RESULT(no)
4506 +fi
4507 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
4508 +AC_PROG_LD_GNU
4509 +])
4510 +
4511 +# AC_PROG_LD_GNU -
4512 +AC_DEFUN([AC_PROG_LD_GNU],
4513 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
4514 +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
4515 +if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4516 + lt_cv_prog_gnu_ld=yes
4517 +else
4518 + lt_cv_prog_gnu_ld=no
4519 +fi])
4520 +with_gnu_ld=$lt_cv_prog_gnu_ld
4521 +])
4522 +
4523 +# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
4524 +# -- PORTME Some linkers may need a different reload flag.
4525 +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
4526 +[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
4527 +[lt_cv_ld_reload_flag='-r'])
4528 +reload_flag=$lt_cv_ld_reload_flag
4529 +test -n "$reload_flag" && reload_flag=" $reload_flag"
4530 +])
4531 +
4532 +# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
4533 +# -- PORTME fill in with the dynamic library characteristics
4534 +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
4535 +[AC_CACHE_CHECK([how to recognise dependent libraries],
4536 +lt_cv_deplibs_check_method,
4537 +[lt_cv_file_magic_cmd='$MAGIC_CMD'
4538 +lt_cv_file_magic_test_file=
4539 +lt_cv_deplibs_check_method='unknown'
4540 +# Need to set the preceding variable on all platforms that support
4541 +# interlibrary dependencies.
4542 +# 'none' -- dependencies not supported.
4543 +# `unknown' -- same as none, but documents that we really don't know.
4544 +# 'pass_all' -- all dependencies passed with no checks.
4545 +# 'test_compile' -- check by making test program.
4546 +# 'file_magic [[regex]]' -- check by looking for files in library path
4547 +# which responds to the $file_magic_cmd with a given egrep regex.
4548 +# If you have `file' or equivalent on your system and you're not sure
4549 +# whether `pass_all' will *always* work, you probably want this one.
4550 +
4551 +case $host_os in
4552 +aix4* | aix5*)
4553 + lt_cv_deplibs_check_method=pass_all
4554 + ;;
4555 +
4556 +beos*)
4557 + lt_cv_deplibs_check_method=pass_all
4558 + ;;
4559 +
4560 +bsdi4*)
4561 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
4562 + lt_cv_file_magic_cmd='/usr/bin/file -L'
4563 + lt_cv_file_magic_test_file=/shlib/libc.so
4564 + ;;
4565 +
4566 +cygwin* | mingw* | pw32*)
4567 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4568 + lt_cv_file_magic_cmd='$OBJDUMP -f'
4569 + ;;
4570 +
4571 +darwin* | rhapsody*)
4572 + lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4573 + lt_cv_file_magic_cmd='/usr/bin/file -L'
4574 + case "$host_os" in
4575 + rhapsody* | darwin1.[[012]])
4576 + lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4577 + ;;
4578 + *) # Darwin 1.3 on
4579 + lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4580 + ;;
4581 + esac
4582 + ;;
4583 +
4584 +freebsd*)
4585 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4586 + case $host_cpu in
4587 + i*86 )
4588 + # Not sure whether the presence of OpenBSD here was a mistake.
4589 + # Let's accept both of them until this is cleared up.
4590 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
4591 + lt_cv_file_magic_cmd=/usr/bin/file
4592 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4593 + ;;
4594 + esac
4595 + else
4596 + lt_cv_deplibs_check_method=pass_all
4597 + fi
4598 + ;;
4599 +
4600 +gnu*)
4601 + lt_cv_deplibs_check_method=pass_all
4602 + ;;
4603 +
4604 +hpux10.20*|hpux11*)
4605 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
4606 + lt_cv_file_magic_cmd=/usr/bin/file
4607 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
4608 + ;;
4609 +
4610 +irix5* | irix6* | nonstopux*)
4611 + case $LD in
4612 + *-32|*"-32 ") libmagic=32-bit;;
4613 + *-n32|*"-n32 ") libmagic=N32;;
4614 + *-64|*"-64 ") libmagic=64-bit;;
4615 + *) libmagic=never-match;;
4616 + esac
4617 + lt_cv_deplibs_check_method=pass_all
4618 + ;;
4619 +
4620 +# This must be Linux ELF.
4621 +linux-gnu*)
4622 + lt_cv_deplibs_check_method=pass_all
4623 + ;;
4624 +
4625 +netbsd*)
4626 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4627 + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
4628 + else
4629 + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
4630 + fi
4631 + ;;
4632 +
4633 +newos6*)
4634 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
4635 + lt_cv_file_magic_cmd=/usr/bin/file
4636 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
4637 + ;;
4638 +
4639 +openbsd*)
4640 + lt_cv_file_magic_cmd=/usr/bin/file
4641 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4642 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4643 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
4644 + else
4645 + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4646 + fi
4647 + ;;
4648 +
4649 +osf3* | osf4* | osf5*)
4650 + lt_cv_deplibs_check_method=pass_all
4651 + ;;
4652 +
4653 +sco3.2v5*)
4654 + lt_cv_deplibs_check_method=pass_all
4655 + ;;
4656 +
4657 +solaris*)
4658 + lt_cv_deplibs_check_method=pass_all
4659 + ;;
4660 +
4661 +sysv5uw[[78]]* | sysv4*uw2*)
4662 + lt_cv_deplibs_check_method=pass_all
4663 + ;;
4664 +
4665 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4666 + case $host_vendor in
4667 + motorola)
4668 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
4669 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4670 + ;;
4671 + ncr)
4672 + lt_cv_deplibs_check_method=pass_all
4673 + ;;
4674 + sequent)
4675 + lt_cv_file_magic_cmd='/bin/file'
4676 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
4677 + ;;
4678 + sni)
4679 + lt_cv_file_magic_cmd='/bin/file'
4680 + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
4681 + lt_cv_file_magic_test_file=/lib/libc.so
4682 + ;;
4683 + siemens)
4684 + lt_cv_deplibs_check_method=pass_all
4685 + ;;
4686 + esac
4687 + ;;
4688 +esac
4689 +])
4690 +file_magic_cmd=$lt_cv_file_magic_cmd
4691 +deplibs_check_method=$lt_cv_deplibs_check_method
4692 +])
4693 +
4694 +
4695 +# AC_PROG_NM - find the path to a BSD-compatible name lister
4696 +AC_DEFUN([AC_PROG_NM],
4697 +[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
4698 +AC_MSG_CHECKING([for BSD-compatible nm])
4699 +AC_CACHE_VAL(lt_cv_path_NM,
4700 +[if test -n "$NM"; then
4701 + # Let the user override the test.
4702 + lt_cv_path_NM="$NM"
4703 +else
4704 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4705 + for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4706 + test -z "$ac_dir" && ac_dir=.
4707 + tmp_nm=$ac_dir/${ac_tool_prefix}nm
4708 + if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4709 + # Check to see if the nm accepts a BSD-compat flag.
4710 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4711 + # nm: unknown option "B" ignored
4712 + # Tru64's nm complains that /dev/null is an invalid object file
4713 + if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4714 + lt_cv_path_NM="$tmp_nm -B"
4715 + break
4716 + elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4717 + lt_cv_path_NM="$tmp_nm -p"
4718 + break
4719 + else
4720 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4721 + continue # so that we can try to find one that supports BSD flags
4722 + fi
4723 + fi
4724 + done
4725 + IFS="$ac_save_ifs"
4726 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4727 +fi])
4728 +NM="$lt_cv_path_NM"
4729 +AC_MSG_RESULT([$NM])
4730 +])
4731 +
4732 +# AC_CHECK_LIBM - check for math library
4733 +AC_DEFUN([AC_CHECK_LIBM],
4734 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4735 +LIBM=
4736 +case $host in
4737 +*-*-beos* | *-*-cygwin* | *-*-pw32*)
4738 + # These system don't have libm
4739 + ;;
4740 +*-ncr-sysv4.3*)
4741 + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
4742 + AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
4743 + ;;
4744 +*)
4745 + AC_CHECK_LIB(m, main, LIBM="-lm")
4746 + ;;
4747 +esac
4748 +])
4749 +
4750 +# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
4751 +# the libltdl convenience library and LTDLINCL to the include flags for
4752 +# the libltdl header and adds --enable-ltdl-convenience to the
4753 +# configure arguments. Note that LIBLTDL and LTDLINCL are not
4754 +# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
4755 +# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
4756 +# with '${top_builddir}/' and LTDLINCL will be prefixed with
4757 +# '${top_srcdir}/' (note the single quotes!). If your package is not
4758 +# flat and you're not using automake, define top_builddir and
4759 +# top_srcdir appropriately in the Makefiles.
4760 +AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
4761 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4762 + case $enable_ltdl_convenience in
4763 + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
4764 + "") enable_ltdl_convenience=yes
4765 + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4766 + esac
4767 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
4768 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4769 + # For backwards non-gettext consistent compatibility...
4770 + INCLTDL="$LTDLINCL"
4771 +])
4772 +
4773 +# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
4774 +# the libltdl installable library and LTDLINCL to the include flags for
4775 +# the libltdl header and adds --enable-ltdl-install to the configure
4776 +# arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is
4777 +# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
4778 +# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
4779 +# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed
4780 +# with '${top_srcdir}/' (note the single quotes!). If your package is
4781 +# not flat and you're not using automake, define top_builddir and
4782 +# top_srcdir appropriately in the Makefiles.
4783 +# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
4784 +AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
4785 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4786 + AC_CHECK_LIB(ltdl, main,
4787 + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
4788 + [if test x"$enable_ltdl_install" = xno; then
4789 + AC_MSG_WARN([libltdl not installed, but installation disabled])
4790 + else
4791 + enable_ltdl_install=yes
4792 + fi
4793 + ])
4794 + if test x"$enable_ltdl_install" = x"yes"; then
4795 + ac_configure_args="$ac_configure_args --enable-ltdl-install"
4796 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
4797 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4798 + else
4799 + ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4800 + LIBLTDL="-lltdl"
4801 + LTDLINCL=
4802 + fi
4803 + # For backwards non-gettext consistent compatibility...
4804 + INCLTDL="$LTDLINCL"
4805 +])
4806 +
4807 +# old names
4808 +AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
4809 +AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
4810 +AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
4811 +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
4812 +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
4813 +AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
4814 +AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
4815 +
4816 +# This is just to silence aclocal about the macro not being used
4817 +ifelse([AC_DISABLE_FAST_INSTALL])
4818 +
4819 +# NOTE: This macro has been submitted for inclusion into #
4820 +# GNU Autoconf as AC_PROG_SED. When it is available in #
4821 +# a released version of Autoconf we should remove this #
4822 +# macro and use it instead. #
4823 +# LT_AC_PROG_SED
4824 +# --------------
4825 +# Check for a fully-functional sed program, that truncates
4826 +# as few characters as possible. Prefer GNU sed if found.
4827 +AC_DEFUN([LT_AC_PROG_SED],
4828 +[AC_MSG_CHECKING([for a sed that does not truncate output])
4829 +AC_CACHE_VAL(lt_cv_path_SED,
4830 +[# Loop through the user's path and test for sed and gsed.
4831 +# Then use that list of sed's as ones to test for truncation.
4832 +as_executable_p="test -f"
4833 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 +for as_dir in $PATH
4835 +do
4836 + IFS=$as_save_IFS
4837 + test -z "$as_dir" && as_dir=.
4838 + for ac_prog in sed gsed; do
4839 + for ac_exec_ext in '' $ac_executable_extensions; do
4840 + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4841 + _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
4842 + fi
4843 + done
4844 + done
4845 +done
4846 +
4847 + # Create a temporary directory, and hook for its removal unless debugging.
4848 +$debug ||
4849 +{
4850 + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4851 + trap '{ (exit 1); exit 1; }' 1 2 13 15
4852 +}
4853 +
4854 +# Create a (secure) tmp directory for tmp files.
4855 +: ${TMPDIR=/tmp}
4856 +{
4857 + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
4858 + test -n "$tmp" && test -d "$tmp"
4859 +} ||
4860 +{
4861 + tmp=$TMPDIR/sed$$-$RANDOM
4862 + (umask 077 && mkdir $tmp)
4863 +} ||
4864 +{
4865 + echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4866 + { (exit 1); exit 1; }
4867 +}
4868 + _max=0
4869 + _count=0
4870 + # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4871 + # along with /bin/sed that truncates output.
4872 + for _sed in $_sed_list /usr/xpg4/bin/sed; do
4873 + test ! -f ${_sed} && break
4874 + cat /dev/null > "$tmp/sed.in"
4875 + _count=0
4876 + echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
4877 + # Check for GNU sed and select it if it is found.
4878 + if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
4879 + lt_cv_path_SED=${_sed}
4880 + break
4881 + fi
4882 + while true; do
4883 + cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
4884 + mv "$tmp/sed.tmp" "$tmp/sed.in"
4885 + cp "$tmp/sed.in" "$tmp/sed.nl"
4886 + echo >>"$tmp/sed.nl"
4887 + ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
4888 + cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
4889 + # 40000 chars as input seems more than enough
4890 + test $_count -gt 10 && break
4891 + _count=`expr $_count + 1`
4892 + if test $_count -gt $_max; then
4893 + _max=$_count
4894 + lt_cv_path_SED=$_sed
4895 + fi
4896 + done
4897 + done
4898 + rm -rf "$tmp"
4899 +])
4900 +if test "X$SED" != "X"; then
4901 + lt_cv_path_SED=$SED
4902 +else
4903 + SED=$lt_cv_path_SED
4904 +fi
4905 +AC_MSG_RESULT([$SED])
4906 +])
4907 +
4908 +# -*- Autoconf -*-
4909 +# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
4910 +# Generated from amversion.in; do not edit by hand.
4911 +
4912 +# This program is free software; you can redistribute it and/or modify
4913 +# it under the terms of the GNU General Public License as published by
4914 +# the Free Software Foundation; either version 2, or (at your option)
4915 +# any later version.
4916 +
4917 +# This program is distributed in the hope that it will be useful,
4918 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
4919 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4920 +# GNU General Public License for more details.
4921 +
4922 +# You should have received a copy of the GNU General Public License
4923 +# along with this program; if not, write to the Free Software
4924 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4925 +
4926 +# AM_AUTOMAKE_VERSION(VERSION)
4927 +# ----------------------------
4928 +# Automake X.Y traces this macro to ensure aclocal.m4 has been
4929 +# generated from the m4 files accompanying Automake X.Y.
4930 +AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
4931 +
4932 +# AM_SET_CURRENT_AUTOMAKE_VERSION
4933 +# -------------------------------
4934 +# Call AM_AUTOMAKE_VERSION so it can be traced.
4935 +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
4936 +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
4937 + [AM_AUTOMAKE_VERSION([1.8.5])])
4938 +
4939 +# AM_AUX_DIR_EXPAND
4940 +
4941 +# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
4942 +
4943 +# This program is free software; you can redistribute it and/or modify
4944 +# it under the terms of the GNU General Public License as published by
4945 +# the Free Software Foundation; either version 2, or (at your option)
4946 +# any later version.
4947 +
4948 +# This program is distributed in the hope that it will be useful,
4949 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
4950 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4951 +# GNU General Public License for more details.
4952 +
4953 +# You should have received a copy of the GNU General Public License
4954 +# along with this program; if not, write to the Free Software
4955 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
4956 +# 02111-1307, USA.
4957 +
4958 +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
4959 +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
4960 +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
4961 +#
4962 +# Of course, Automake must honor this variable whenever it calls a
4963 +# tool from the auxiliary directory. The problem is that $srcdir (and
4964 +# therefore $ac_aux_dir as well) can be either absolute or relative,
4965 +# depending on how configure is run. This is pretty annoying, since
4966 +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
4967 +# source directory, any form will work fine, but in subdirectories a
4968 +# relative path needs to be adjusted first.
4969 +#
4970 +# $ac_aux_dir/missing
4971 +# fails when called from a subdirectory if $ac_aux_dir is relative
4972 +# $top_srcdir/$ac_aux_dir/missing
4973 +# fails if $ac_aux_dir is absolute,
4974 +# fails when called from a subdirectory in a VPATH build with
4975 +# a relative $ac_aux_dir
4976 +#
4977 +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
4978 +# are both prefixed by $srcdir. In an in-source build this is usually
4979 +# harmless because $srcdir is `.', but things will broke when you
4980 +# start a VPATH build or use an absolute $srcdir.
4981 +#
4982 +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
4983 +# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
4984 +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
4985 +# and then we would define $MISSING as
4986 +# MISSING="\${SHELL} $am_aux_dir/missing"
4987 +# This will work as long as MISSING is not called from configure, because
4988 +# unfortunately $(top_srcdir) has no meaning in configure.
4989 +# However there are other variables, like CC, which are often used in
4990 +# configure, and could therefore not use this "fixed" $ac_aux_dir.
4991 +#
4992 +# Another solution, used here, is to always expand $ac_aux_dir to an
4993 +# absolute PATH. The drawback is that using absolute paths prevent a
4994 +# configured tree to be moved without reconfiguration.
4995 +
4996 +AC_DEFUN([AM_AUX_DIR_EXPAND],
4997 +[dnl Rely on autoconf to set up CDPATH properly.
4998 +AC_PREREQ([2.50])dnl
4999 +# expand $ac_aux_dir to an absolute path
5000 +am_aux_dir=`cd $ac_aux_dir && pwd`
5001 +])
5002 +
5003 +# AM_CONDITIONAL -*- Autoconf -*-
5004 +
5005 +# Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
5006 +
5007 +# This program is free software; you can redistribute it and/or modify
5008 +# it under the terms of the GNU General Public License as published by
5009 +# the Free Software Foundation; either version 2, or (at your option)
5010 +# any later version.
5011 +
5012 +# This program is distributed in the hope that it will be useful,
5013 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
5014 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5015 +# GNU General Public License for more details.
5016 +
5017 +# You should have received a copy of the GNU General Public License
5018 +# along with this program; if not, write to the Free Software
5019 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
5020 +# 02111-1307, USA.
5021 +
5022 +# serial 6
5023 +
5024 +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
5025 +# -------------------------------------
5026 +# Define a conditional.
5027 +AC_DEFUN([AM_CONDITIONAL],
5028 +[AC_PREREQ(2.52)dnl
5029 + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
5030 + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
5031 +AC_SUBST([$1_TRUE])
5032 +AC_SUBST([$1_FALSE])
5033 +if $2; then
5034 + $1_TRUE=
5035 + $1_FALSE='#'
5036 +else
5037 + $1_TRUE='#'
5038 + $1_FALSE=
5039 +fi
5040 +AC_CONFIG_COMMANDS_PRE(
5041 +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
5042 + AC_MSG_ERROR([conditional "$1" was never defined.
5043 +Usually this means the macro was only invoked conditionally.])
5044 +fi])])
5045 +
5046 +# serial 7 -*- Autoconf -*-
5047 +
5048 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
5049 +# Free Software Foundation, Inc.
5050 +
5051 +# This program is free software; you can redistribute it and/or modify
5052 +# it under the terms of the GNU General Public License as published by
5053 +# the Free Software Foundation; either version 2, or (at your option)
5054 +# any later version.
5055 +
5056 +# This program is distributed in the hope that it will be useful,
5057 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
5058 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5059 +# GNU General Public License for more details.
5060 +
5061 +# You should have received a copy of the GNU General Public License
5062 +# along with this program; if not, write to the Free Software
5063 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
5064 +# 02111-1307, USA.
5065 +
5066 +
5067 +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
5068 +# written in clear, in which case automake, when reading aclocal.m4,
5069 +# will think it sees a *use*, and therefore will trigger all it's
5070 +# C support machinery. Also note that it means that autoscan, seeing
5071 +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
5072 +
5073 +
5074 +
5075 +# _AM_DEPENDENCIES(NAME)
5076 +# ----------------------
5077 +# See how the compiler implements dependency checking.
5078 +# NAME is "CC", "CXX", "GCJ", or "OBJC".
5079 +# We try a few techniques and use that to set a single cache variable.
5080 +#
5081 +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
5082 +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
5083 +# dependency, and given that the user is not expected to run this macro,
5084 +# just rely on AC_PROG_CC.
5085 +AC_DEFUN([_AM_DEPENDENCIES],
5086 +[AC_REQUIRE([AM_SET_DEPDIR])dnl
5087 +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
5088 +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
5089 +AC_REQUIRE([AM_DEP_TRACK])dnl
5090 +
5091 +ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
5092 + [$1], CXX, [depcc="$CXX" am_compiler_list=],
5093 + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
5094 + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
5095 + [depcc="$$1" am_compiler_list=])
5096 +
5097 +AC_CACHE_CHECK([dependency style of $depcc],
5098 + [am_cv_$1_dependencies_compiler_type],
5099 +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5100 + # We make a subdir and do the tests there. Otherwise we can end up
5101 + # making bogus files that we don't know about and never remove. For
5102 + # instance it was reported that on HP-UX the gcc test will end up
5103 + # making a dummy file named `D' -- because `-MD' means `put the output
5104 + # in D'.
5105 + mkdir conftest.dir
5106 + # Copy depcomp to subdir because otherwise we won't find it if we're
5107 + # using a relative directory.
5108 + cp "$am_depcomp" conftest.dir
5109 + cd conftest.dir
5110 + # We will build objects and dependencies in a subdirectory because
5111 + # it helps to detect inapplicable dependency modes. For instance
5112 + # both Tru64's cc and ICC support -MD to output dependencies as a
5113 + # side effect of compilation, but ICC will put the dependencies in
5114 + # the current directory while Tru64 will put them in the object
5115 + # directory.
5116 + mkdir sub
5117 +
5118 + am_cv_$1_dependencies_compiler_type=none
5119 + if test "$am_compiler_list" = ""; then
5120 + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
5121 + fi
5122 + for depmode in $am_compiler_list; do
5123 + # Setup a source with many dependencies, because some compilers
5124 + # like to wrap large dependency lists on column 80 (with \), and
5125 + # we should not choose a depcomp mode which is confused by this.
5126 + #
5127 + # We need to recreate these files for each test, as the compiler may
5128 + # overwrite some of them when testing with obscure command lines.
5129 + # This happens at least with the AIX C compiler.
5130 + : > sub/conftest.c
5131 + for i in 1 2 3 4 5 6; do
5132 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
5133 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5134 + # Solaris 8's {/usr,}/bin/sh.
5135 + touch sub/conftst$i.h
5136 + done
5137 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5138 +
5139 + case $depmode in
5140 + nosideeffect)
5141 + # after this tag, mechanisms are not by side-effect, so they'll
5142 + # only be used when explicitly requested
5143 + if test "x$enable_dependency_tracking" = xyes; then
5144 + continue
5145 + else
5146 + break
5147 + fi
5148 + ;;
5149 + none) break ;;
5150 + esac
5151 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
5152 + # mode. It turns out that the SunPro C++ compiler does not properly
5153 + # handle `-M -o', and we need to detect this.
5154 + if depmode=$depmode \
5155 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5156 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5157 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5158 + >/dev/null 2>conftest.err &&
5159 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5160 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5161 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5162 + # icc doesn't choke on unknown options, it will just issue warnings
5163 + # or remarks (even with -Werror). So we grep stderr for any message
5164 + # that says an option was ignored or not supported.
5165 + # When given -MP, icc 7.0 and 7.1 complain thusly:
5166 + # icc: Command line warning: ignoring option '-M'; no argument required
5167 + # The diagnosis changed in icc 8.0:
5168 + # icc: Command line remark: option '-MP' not supported
5169 + if (grep 'ignoring option' conftest.err ||
5170 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5171 + am_cv_$1_dependencies_compiler_type=$depmode
5172 + break
5173 + fi
5174 + fi
5175 + done
5176 +
5177 + cd ..
5178 + rm -rf conftest.dir
5179 +else
5180 + am_cv_$1_dependencies_compiler_type=none
5181 +fi
5182 +])
5183 +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
5184 +AM_CONDITIONAL([am__fastdep$1], [
5185 + test "x$enable_dependency_tracking" != xno \
5186 + && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
5187 +])
5188 +
5189 +
5190 +# AM_SET_DEPDIR
5191 +# -------------
5192 +# Choose a directory name for dependency files.
5193 +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
5194 +AC_DEFUN([AM_SET_DEPDIR],
5195 +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
5196 +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
5197 +])
5198 +
5199 +
5200 +# AM_DEP_TRACK
5201 +# ------------
5202 +AC_DEFUN([AM_DEP_TRACK],
5203 +[AC_ARG_ENABLE(dependency-tracking,
5204 +[ --disable-dependency-tracking speeds up one-time build
5205 + --enable-dependency-tracking do not reject slow dependency extractors])
5206 +if test "x$enable_dependency_tracking" != xno; then
5207 + am_depcomp="$ac_aux_dir/depcomp"
5208 + AMDEPBACKSLASH='\'
5209 +fi
5210 +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
5211 +AC_SUBST([AMDEPBACKSLASH])
5212 +])
5213 +
5214 +# Generate code to set up dependency tracking. -*- Autoconf -*-
5215 +
5216 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
5217 +
5218 +# This program is free software; you can redistribute it and/or modify
5219 +# it under the terms of the GNU General Public License as published by
5220 +# the Free Software Foundation; either version 2, or (at your option)
5221 +# any later version.
5222 +
5223 +# This program is distributed in the hope that it will be useful,
5224 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
5225 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5226 +# GNU General Public License for more details.
5227 +
5228 +# You should have received a copy of the GNU General Public License
5229 +# along with this program; if not, write to the Free Software
5230 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
5231 +# 02111-1307, USA.
5232 +
5233 +#serial 2
5234 +
5235 +# _AM_OUTPUT_DEPENDENCY_COMMANDS
5236 +# ------------------------------
5237 +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
5238 +[for mf in $CONFIG_FILES; do
5239 + # Strip MF so we end up with the name of the file.
5240 + mf=`echo "$mf" | sed -e 's/:.*$//'`
5241 + # Check whether this is an Automake generated Makefile or not.
5242 + # We used to match only the files named `Makefile.in', but
5243 + # some people rename them; so instead we look at the file content.
5244 + # Grep'ing the first line is not enough: some people post-process
5245 + # each Makefile.in and add a new line on top of each file to say so.
5246 + # So let's grep whole file.
5247 + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
5248 + dirpart=`AS_DIRNAME("$mf")`
5249 + else
5250 + continue
5251 + fi
5252 + grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
5253 + # Extract the definition of DEP_FILES from the Makefile without
5254 + # running `make'.
5255 + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
5256 + test -z "$DEPDIR" && continue
5257 + # When using ansi2knr, U may be empty or an underscore; expand it
5258 + U=`sed -n 's/^U = //p' < "$mf"`
5259 + test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5260 + # We invoke sed twice because it is the simplest approach to
5261 + # changing $(DEPDIR) to its actual value in the expansion.
5262 + for file in `sed -n '
5263 + /^DEP_FILES = .*\\\\$/ {
5264 + s/^DEP_FILES = //
5265 + :loop
5266 + s/\\\\$//
5267 + p
5268 + n
5269 + /\\\\$/ b loop
5270 + p
5271 + }
5272 + /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5273 + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5274 + # Make sure the directory exists.
5275 + test -f "$dirpart/$file" && continue
5276 + fdir=`AS_DIRNAME(["$file"])`
5277 + AS_MKDIR_P([$dirpart/$fdir])
5278 + # echo "creating $dirpart/$file"
5279 + echo '# dummy' > "$dirpart/$file"
5280 + done
5281 +done
5282 +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
5283 +
5284 +
5285 +# AM_OUTPUT_DEPENDENCY_COMMANDS
5286 +# -----------------------------
5287 +# This macro should only be invoked once -- use via AC_REQUIRE.
5288 +#
5289 +# This code is only required when automatic dependency tracking
5290 +# is enabled. FIXME. This creates each `.P' file that we will
5291 +# need in order to bootstrap the dependency handling code.
5292 +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
5293 +[AC_CONFIG_COMMANDS([depfiles],
5294 + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
5295 + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
5296 +])
5297 +
5298 +# Do all the work for Automake. -*- Autoconf -*-
5299 +
5300 +# This macro actually does too much some checks are only needed if
5301 +# your package does certain things. But this isn't really a big deal.
5302 +
5303 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
5304 +# Free Software Foundation, Inc.
5305 +
5306 +# This program is free software; you can redistribute it and/or modify
5307 +# it under the terms of the GNU General Public License as published by
5308 +# the Free Software Foundation; either version 2, or (at your option)
5309 +# any later version.
5310 +
5311 +# This program is distributed in the hope that it will be useful,
5312 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
5313 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5314 +# GNU General Public License for more details.
5315 +
5316 +# You should have received a copy of the GNU General Public License
5317 +# along with this program; if not, write to the Free Software
5318 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
5319 +# 02111-1307, USA.
5320 +
5321 +# serial 11
5322 +
5323 +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
5324 +# AM_INIT_AUTOMAKE([OPTIONS])
5325 +# -----------------------------------------------
5326 +# The call with PACKAGE and VERSION arguments is the old style
5327 +# call (pre autoconf-2.50), which is being phased out. PACKAGE
5328 +# and VERSION should now be passed to AC_INIT and removed from
5329 +# the call to AM_INIT_AUTOMAKE.
5330 +# We support both call styles for the transition. After
5331 +# the next Automake release, Autoconf can make the AC_INIT
5332 +# arguments mandatory, and then we can depend on a new Autoconf
5333 +# release and drop the old call support.
5334 +AC_DEFUN([AM_INIT_AUTOMAKE],
5335 +[AC_PREREQ([2.58])dnl
5336 +dnl Autoconf wants to disallow AM_ names. We explicitly allow
5337 +dnl the ones we care about.
5338 +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
5339 +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
5340 +AC_REQUIRE([AC_PROG_INSTALL])dnl
5341 +# test to see if srcdir already configured
5342 +if test "`cd $srcdir && pwd`" != "`pwd`" &&
5343 + test -f $srcdir/config.status; then
5344 + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
5345 +fi
5346 +
5347 +# test whether we have cygpath
5348 +if test -z "$CYGPATH_W"; then
5349 + if (cygpath --version) >/dev/null 2>/dev/null; then
5350 + CYGPATH_W='cygpath -w'
5351 + else
5352 + CYGPATH_W=echo
5353 + fi
5354 +fi
5355 +AC_SUBST([CYGPATH_W])
5356 +
5357 +# Define the identity of the package.
5358 +dnl Distinguish between old-style and new-style calls.
5359 +m4_ifval([$2],
5360 +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
5361 + AC_SUBST([PACKAGE], [$1])dnl
5362 + AC_SUBST([VERSION], [$2])],
5363 +[_AM_SET_OPTIONS([$1])dnl
5364 + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
5365 + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
5366 +
5367 +_AM_IF_OPTION([no-define],,
5368 +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
5369 + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
5370 +
5371 +# Some tools Automake needs.
5372 +AC_REQUIRE([AM_SANITY_CHECK])dnl
5373 +AC_REQUIRE([AC_ARG_PROGRAM])dnl
5374 +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
5375 +AM_MISSING_PROG(AUTOCONF, autoconf)
5376 +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
5377 +AM_MISSING_PROG(AUTOHEADER, autoheader)
5378 +AM_MISSING_PROG(MAKEINFO, makeinfo)
5379 +AM_MISSING_PROG(AMTAR, tar)
5380 +AM_PROG_INSTALL_SH
5381 +AM_PROG_INSTALL_STRIP
5382 +AC_REQUIRE([AM_PROG_MKDIR_P])dnl
5383 +# We need awk for the "check" target. The system "awk" is bad on
5384 +# some platforms.
5385 +AC_REQUIRE([AC_PROG_AWK])dnl
5386 +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
5387 +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
5388 +
5389 +_AM_IF_OPTION([no-dependencies],,
5390 +[AC_PROVIDE_IFELSE([AC_PROG_CC],
5391 + [_AM_DEPENDENCIES(CC)],
5392 + [define([AC_PROG_CC],
5393 + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
5394 +AC_PROVIDE_IFELSE([AC_PROG_CXX],
5395 + [_AM_DEPENDENCIES(CXX)],
5396 + [define([AC_PROG_CXX],
5397 + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
5398 +])
5399 +])
5400 +
5401 +
5402 +# When config.status generates a header, we must update the stamp-h file.
5403 +# This file resides in the same directory as the config header
5404 +# that is generated. The stamp files are numbered to have different names.
5405 +
5406 +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
5407 +# loop where config.status creates the headers, so we can generate
5408 +# our stamp files there.
5409 +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
5410 +[# Compute $1's index in $config_headers.
5411 +_am_stamp_count=1
5412 +for _am_header in $config_headers :; do
5413 + case $_am_header in
5414 + $1 | $1:* )
5415 + break ;;
5416 + * )
5417 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
5418 + esac
5419 +done
5420 +echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
5421 +
5422 +# AM_PROG_INSTALL_SH
5423 +# ------------------
5424 +# Define $install_sh.
5425 +
5426 +# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
5427 +
5428 +# This program is free software; you can redistribute it and/or modify
5429 +# it under the terms of the GNU General Public License as published by
5430 +# the Free Software Foundation; either version 2, or (at your option)
5431 +# any later version.
5432 +
5433 +# This program is distributed in the hope that it will be useful,
5434 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
5435 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5436 +# GNU General Public License for more details.
5437 +
5438 +# You should have received a copy of the GNU General Public License
5439 +# along with this program; if not, write to the Free Software
5440 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
5441 +# 02111-1307, USA.
5442 +
5443 +AC_DEFUN([AM_PROG_INSTALL_SH],
5444 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
5445 +install_sh=${install_sh-"$am_aux_dir/install-sh"}
5446 +AC_SUBST(install_sh)])
5447 +
5448 +# -*- Autoconf -*-
5449 +# Copyright (C) 2003 Free Software Foundation, Inc.
5450 +
5451 +# This program is free software; you can redistribute it and/or modify
5452 +# it under the terms of the GNU General Public License as published by
5453 +# the Free Software Foundation; either version 2, or (at your option)
5454 +# any later version.
5455 +
5456 +# This program is distributed in the hope that it will be useful,
5457 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
5458 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5459 +# GNU General Public License for more details.
5460 +
5461 +# You should have received a copy of the GNU General Public License
5462 +# along with this program; if not, write to the Free Software
5463 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
5464 +# 02111-1307, USA.
5465 +
5466 +# serial 1
5467 +
5468 +# Check whether the underlying file-system supports filenames
5469 +# with a leading dot. For instance MS-DOS doesn't.
5470 +AC_DEFUN([AM_SET_LEADING_DOT],
5471 +[rm -rf .tst 2>/dev/null
5472 +mkdir .tst 2>/dev/null
5473 +if test -d .tst; then
5474 + am__leading_dot=.
5475 +else
5476 + am__leading_dot=_
5477 +fi
5478 +rmdir .tst 2>/dev/null
5479 +AC_SUBST([am__leading_dot])])
5480 +
5481 +# Check to see how 'make' treats includes. -*- Autoconf -*-
5482 +
5483 +# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
5484 +
5485 +# This program is free software; you can redistribute it and/or modify
5486 +# it under the terms of the GNU General Public License as published by
5487 +# the Free Software Foundation; either version 2, or (at your option)
5488 +# any later version.
5489 +
5490 +# This program is distributed in the hope that it will be useful,
5491 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
5492 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5493 +# GNU General Public License for more details.
5494 +
5495 +# You should have received a copy of the GNU General Public License
5496 +# along with this program; if not, write to the Free Software
5497 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
5498 +# 02111-1307, USA.
5499 +
5500 +# serial 2
5501 +
5502 +# AM_MAKE_INCLUDE()
5503 +# -----------------
5504 +# Check to see how make treats includes.
5505 +AC_DEFUN([AM_MAKE_INCLUDE],
5506 +[am_make=${MAKE-make}
5507 +cat > confinc << 'END'
5508 +am__doit:
5509 + @echo done
5510 +.PHONY: am__doit
5511 +END
5512 +# If we don't find an include directive, just comment out the code.
5513 +AC_MSG_CHECKING([for style of include used by $am_make])
5514 +am__include="#"
5515 +am__quote=
5516 +_am_result=none
5517 +# First try GNU make style include.
5518 +echo "include confinc" > confmf
5519 +# We grep out `Entering directory' and `Leaving directory'
5520 +# messages which can occur if `w' ends up in MAKEFLAGS.
5521 +# In particular we don't look at `^make:' because GNU make might
5522 +# be invoked under some other name (usually "gmake"), in which
5523 +# case it prints its new name instead of `make'.
5524 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5525 + am__include=include
5526 + am__quote=
5527 + _am_result=GNU
5528 +fi
5529 +# Now try BSD make style include.
5530 +if test "$am__include" = "#"; then
5531 + echo '.include "confinc"' > confmf
5532 + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5533 + am__include=.include
5534 + am__quote="\""
5535 + _am_result=BSD
5536 + fi
5537 +fi
5538 +AC_SUBST([am__include])
5539 +AC_SUBST([am__quote])
5540 +AC_MSG_RESULT([$_am_result])
5541 +rm -f confinc confmf
5542 +])
5543 +
5544 +# -*- Autoconf -*-
5545 +
5546 +
5547 +# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
5548 +
5549 +# This program is free software; you can redistribute it and/or modify
5550 +# it under the terms of the GNU General Public License as published by
5551 +# the Free Software Foundation; either version 2, or (at your option)
5552 +# any later version.
5553 +
5554 +# This program is distributed in the hope that it will be useful,
5555 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
5556 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5557 +# GNU General Public License for more details.
5558 +
5559 +# You should have received a copy of the GNU General Public License
5560 +# along with this program; if not, write to the Free Software
5561 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
5562 +# 02111-1307, USA.
5563 +
5564 +# serial 3
5565 +
5566 +# AM_MISSING_PROG(NAME, PROGRAM)
5567 +# ------------------------------
5568 +AC_DEFUN([AM_MISSING_PROG],
5569 +[AC_REQUIRE([AM_MISSING_HAS_RUN])
5570 +$1=${$1-"${am_missing_run}$2"}
5571 +AC_SUBST($1)])
5572 +
5573 +
5574 +# AM_MISSING_HAS_RUN
5575 +# ------------------
5576 +# Define MISSING if not defined so far and test if it supports --run.
5577 +# If it does, set am_missing_run to use it, otherwise, to nothing.
5578 +AC_DEFUN([AM_MISSING_HAS_RUN],
5579 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
5580 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5581 +# Use eval to expand $SHELL
5582 +if eval "$MISSING --run true"; then
5583 + am_missing_run="$MISSING --run "
5584 +else
5585 + am_missing_run=
5586 + AC_MSG_WARN([`missing' script is too old or missing])
5587 +fi
5588 +])
5589 +
5590 +# AM_PROG_MKDIR_P
5591 +# ---------------
5592 +# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
5593 +
5594 +# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
5595 +
5596 +# This program is free software; you can redistribute it and/or modify
5597 +# it under the terms of the GNU General Public License as published by
5598 +# the Free Software Foundation; either version 2, or (at your option)
5599 +# any later version.
5600 +
5601 +# This program is distributed in the hope that it will be useful,
5602 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
5603 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5604 +# GNU General Public License for more details.
5605 +
5606 +# You should have received a copy of the GNU General Public License
5607 +# along with this program; if not, write to the Free Software
5608 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
5609 +# 02111-1307, USA.
5610 +
5611 +# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
5612 +# created by `make install' are always world readable, even if the
5613 +# installer happens to have an overly restrictive umask (e.g. 077).
5614 +# This was a mistake. There are at least two reasons why we must not
5615 +# use `-m 0755':
5616 +# - it causes special bits like SGID to be ignored,
5617 +# - it may be too restrictive (some setups expect 775 directories).
5618 +#
5619 +# Do not use -m 0755 and let people choose whatever they expect by
5620 +# setting umask.
5621 +#
5622 +# We cannot accept any implementation of `mkdir' that recognizes `-p'.
5623 +# Some implementations (such as Solaris 8's) are not thread-safe: if a
5624 +# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
5625 +# concurrently, both version can detect that a/ is missing, but only
5626 +# one can create it and the other will error out. Consequently we
5627 +# restrict ourselves to GNU make (using the --version option ensures
5628 +# this.)
5629 +AC_DEFUN([AM_PROG_MKDIR_P],
5630 +[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5631 + # Keeping the `.' argument allows $(mkdir_p) to be used without
5632 + # argument. Indeed, we sometimes output rules like
5633 + # $(mkdir_p) $(somedir)
5634 + # where $(somedir) is conditionally defined.
5635 + # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
5636 + # expensive solution, as it forces Make to start a sub-shell.)
5637 + mkdir_p='mkdir -p -- .'
5638 +else
5639 + # On NextStep and OpenStep, the `mkdir' command does not
5640 + # recognize any option. It will interpret all options as
5641 + # directories to create, and then abort because `.' already
5642 + # exists.
5643 + for d in ./-p ./--version;
5644 + do
5645 + test -d $d && rmdir $d
5646 + done
5647 + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5648 + if test -f "$ac_aux_dir/mkinstalldirs"; then
5649 + mkdir_p='$(mkinstalldirs)'
5650 + else
5651 + mkdir_p='$(install_sh) -d'
5652 + fi
5653 +fi
5654 +AC_SUBST([mkdir_p])])
5655 +
5656 +# Helper functions for option handling. -*- Autoconf -*-
5657 +
5658 +# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
5659 +
5660 +# This program is free software; you can redistribute it and/or modify
5661 +# it under the terms of the GNU General Public License as published by
5662 +# the Free Software Foundation; either version 2, or (at your option)
5663 +# any later version.
5664 +
5665 +# This program is distributed in the hope that it will be useful,
5666 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
5667 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5668 +# GNU General Public License for more details.
5669 +
5670 +# You should have received a copy of the GNU General Public License
5671 +# along with this program; if not, write to the Free Software
5672 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
5673 +# 02111-1307, USA.
5674 +
5675 +# serial 2
5676 +
5677 +# _AM_MANGLE_OPTION(NAME)
5678 +# -----------------------
5679 +AC_DEFUN([_AM_MANGLE_OPTION],
5680 +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
5681 +
5682 +# _AM_SET_OPTION(NAME)
5683 +# ------------------------------
5684 +# Set option NAME. Presently that only means defining a flag for this option.
5685 +AC_DEFUN([_AM_SET_OPTION],
5686 +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
5687 +
5688 +# _AM_SET_OPTIONS(OPTIONS)
5689 +# ----------------------------------
5690 +# OPTIONS is a space-separated list of Automake options.
5691 +AC_DEFUN([_AM_SET_OPTIONS],
5692 +[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
5693 +
5694 +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
5695 +# -------------------------------------------
5696 +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
5697 +AC_DEFUN([_AM_IF_OPTION],
5698 +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
5699 +
5700 +#
5701 +# Check to make sure that the build environment is sane.
5702 +#
5703 +
5704 +# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
5705 +
5706 +# This program is free software; you can redistribute it and/or modify
5707 +# it under the terms of the GNU General Public License as published by
5708 +# the Free Software Foundation; either version 2, or (at your option)
5709 +# any later version.
5710 +
5711 +# This program is distributed in the hope that it will be useful,
5712 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
5713 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5714 +# GNU General Public License for more details.
5715 +
5716 +# You should have received a copy of the GNU General Public License
5717 +# along with this program; if not, write to the Free Software
5718 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
5719 +# 02111-1307, USA.
5720 +
5721 +# serial 3
5722 +
5723 +# AM_SANITY_CHECK
5724 +# ---------------
5725 +AC_DEFUN([AM_SANITY_CHECK],
5726 +[AC_MSG_CHECKING([whether build environment is sane])
5727 +# Just in case
5728 +sleep 1
5729 +echo timestamp > conftest.file
5730 +# Do `set' in a subshell so we don't clobber the current shell's
5731 +# arguments. Must try -L first in case configure is actually a
5732 +# symlink; some systems play weird games with the mod time of symlinks
5733 +# (eg FreeBSD returns the mod time of the symlink's containing
5734 +# directory).
5735 +if (
5736 + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5737 + if test "$[*]" = "X"; then
5738 + # -L didn't work.
5739 + set X `ls -t $srcdir/configure conftest.file`
5740 + fi
5741 + rm -f conftest.file
5742 + if test "$[*]" != "X $srcdir/configure conftest.file" \
5743 + && test "$[*]" != "X conftest.file $srcdir/configure"; then
5744 +
5745 + # If neither matched, then we have a broken ls. This can happen
5746 + # if, for instance, CONFIG_SHELL is bash and it inherits a
5747 + # broken ls alias from the environment. This has actually
5748 + # happened. Such a system could not be considered "sane".
5749 + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
5750 +alias in your environment])
5751 + fi
5752 +
5753 + test "$[2]" = conftest.file
5754 + )
5755 +then
5756 + # Ok.
5757 + :
5758 +else
5759 + AC_MSG_ERROR([newly created file is older than distributed files!
5760 +Check your system clock])
5761 +fi
5762 +AC_MSG_RESULT(yes)])
5763 +
5764 +# AM_PROG_INSTALL_STRIP
5765 +
5766 +# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
5767 +
5768 +# This program is free software; you can redistribute it and/or modify
5769 +# it under the terms of the GNU General Public License as published by
5770 +# the Free Software Foundation; either version 2, or (at your option)
5771 +# any later version.
5772 +
5773 +# This program is distributed in the hope that it will be useful,
5774 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
5775 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5776 +# GNU General Public License for more details.
5777 +
5778 +# You should have received a copy of the GNU General Public License
5779 +# along with this program; if not, write to the Free Software
5780 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
5781 +# 02111-1307, USA.
5782 +
5783 +# One issue with vendor `install' (even GNU) is that you can't
5784 +# specify the program used to strip binaries. This is especially
5785 +# annoying in cross-compiling environments, where the build's strip
5786 +# is unlikely to handle the host's binaries.
5787 +# Fortunately install-sh will honor a STRIPPROG variable, so we
5788 +# always use install-sh in `make install-strip', and initialize
5789 +# STRIPPROG with the value of the STRIP variable (set by the user).
5790 +AC_DEFUN([AM_PROG_INSTALL_STRIP],
5791 +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
5792 +# Installed binaries are usually stripped using `strip' when the user
5793 +# run `make install-strip'. However `strip' might not be the right
5794 +# tool to use in cross-compilation environments, therefore Automake
5795 +# will honor the `STRIP' environment variable to overrule this program.
5796 +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
5797 +if test "$cross_compiling" != no; then
5798 + AC_CHECK_TOOL([STRIP], [strip], :)
5799 +fi
5800 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5801 +AC_SUBST([INSTALL_STRIP_PROGRAM])])
5802
5803 +m4_include([acinclude.m4])
5804 diff -ruN libnet-1.0.2a-orig/config.guess libnet-1.0.2a-7/config.guess
5805 --- libnet-1.0.2a-orig/config.guess 2000-05-25 02:28:49.000000000 +0200
5806 +++ libnet-1.0.2a-7/config.guess 2005-03-08 03:53:26.000000000 +0100
5807 @@ -1,7 +1,10 @@
5808 #! /bin/sh
5809 # Attempt to guess a canonical system name.
5810 -# Copyright (C) 1992, 93, 94, 95, 1996 Free Software Foundation, Inc.
5811 -#
5812 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
5813 +# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
5814 +
5815 +timestamp='2004-07-19'
5816 +
5817 # This file is free software; you can redistribute it and/or modify it
5818 # under the terms of the GNU General Public License as published by
5819 # the Free Software Foundation; either version 2 of the License, or
5820 @@ -21,59 +24,320 @@
5821 # configuration script generated by Autoconf, you may include it under
5822 # the same distribution terms that you use for the rest of that program.
5823
5824 -# Written by Per Bothner <bothner@cygnus.com>.
5825 -# The master version of this file is at the FSF in /home/gd/gnu/lib.
5826 +# Originally written by Per Bothner <per@bothner.com>.
5827 +# Please send patches to <config-patches@gnu.org>. Submit a context
5828 +# diff and a properly formatted ChangeLog entry.
5829 #
5830 # This script attempts to guess a canonical system name similar to
5831 # config.sub. If it succeeds, it prints the system name on stdout, and
5832 # exits with 0. Otherwise, it exits with 1.
5833 #
5834 # The plan is that this can be called by configure scripts if you
5835 -# don't specify an explicit system type (host/target name).
5836 -#
5837 -# Only a few systems have been added to this list; please add others
5838 -# (but try to keep the structure clean).
5839 -#
5840 +# don't specify an explicit build system type.
5841 +
5842 +me=`echo "$0" | sed -e 's,.*/,,'`
5843 +
5844 +usage="\
5845 +Usage: $0 [OPTION]
5846 +
5847 +Output the configuration name of the system \`$me' is run on.
5848 +
5849 +Operation modes:
5850 + -h, --help print this help, then exit
5851 + -t, --time-stamp print date of last modification, then exit
5852 + -v, --version print version number, then exit
5853 +
5854 +Report bugs and patches to <config-patches@gnu.org>."
5855 +
5856 +version="\
5857 +GNU config.guess ($timestamp)
5858 +
5859 +Originally written by Per Bothner.
5860 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
5861 +Free Software Foundation, Inc.
5862 +
5863 +This is free software; see the source for copying conditions. There is NO
5864 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
5865 +
5866 +help="
5867 +Try \`$me --help' for more information."
5868 +
5869 +# Parse command line
5870 +while test $# -gt 0 ; do
5871 + case $1 in
5872 + --time-stamp | --time* | -t )
5873 + echo "$timestamp" ; exit 0 ;;
5874 + --version | -v )
5875 + echo "$version" ; exit 0 ;;
5876 + --help | --h* | -h )
5877 + echo "$usage"; exit 0 ;;
5878 + -- ) # Stop option processing
5879 + shift; break ;;
5880 + - ) # Use stdin as input.
5881 + break ;;
5882 + -* )
5883 + echo "$me: invalid option $1$help" >&2
5884 + exit 1 ;;
5885 + * )
5886 + break ;;
5887 + esac
5888 +done
5889 +
5890 +if test $# != 0; then
5891 + echo "$me: too many arguments$help" >&2
5892 + exit 1
5893 +fi
5894 +
5895 +trap 'exit 1' 1 2 15
5896 +
5897 +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
5898 +# compiler to aid in system detection is discouraged as it requires
5899 +# temporary files to be created and, as you can see below, it is a
5900 +# headache to deal with in a portable fashion.
5901 +
5902 +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
5903 +# use `HOST_CC' if defined, but it is deprecated.
5904 +
5905 +# Portable tmp directory creation inspired by the Autoconf team.
5906 +
5907 +set_cc_for_build='
5908 +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
5909 +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
5910 +: ${TMPDIR=/tmp} ;
5911 + { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
5912 + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
5913 + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
5914 + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
5915 +dummy=$tmp/dummy ;
5916 +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
5917 +case $CC_FOR_BUILD,$HOST_CC,$CC in
5918 + ,,) echo "int x;" > $dummy.c ;
5919 + for c in cc gcc c89 c99 ; do
5920 + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
5921 + CC_FOR_BUILD="$c"; break ;
5922 + fi ;
5923 + done ;
5924 + if test x"$CC_FOR_BUILD" = x ; then
5925 + CC_FOR_BUILD=no_compiler_found ;
5926 + fi
5927 + ;;
5928 + ,,*) CC_FOR_BUILD=$CC ;;
5929 + ,*,*) CC_FOR_BUILD=$HOST_CC ;;
5930 +esac ;'
5931
5932 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
5933 -# (ghazi@noc.rutgers.edu 8/24/94.)
5934 +# (ghazi@noc.rutgers.edu 1994-08-24)
5935 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
5936 PATH=$PATH:/.attbin ; export PATH
5937 fi
5938
5939 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
5940 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
5941 -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
5942 +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
5943 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
5944
5945 -trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15
5946 -
5947 # Note: order is significant - the case branches are not exclusive.
5948
5949 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
5950 + *:NetBSD:*:*)
5951 + # NetBSD (nbsd) targets should (where applicable) match one or
5952 + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
5953 + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
5954 + # switched to ELF, *-*-netbsd* would select the old
5955 + # object file format. This provides both forward
5956 + # compatibility and a consistent mechanism for selecting the
5957 + # object file format.
5958 + #
5959 + # Note: NetBSD doesn't particularly care about the vendor
5960 + # portion of the name. We always set it to "unknown".
5961 + sysctl="sysctl -n hw.machine_arch"
5962 + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
5963 + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
5964 + case "${UNAME_MACHINE_ARCH}" in
5965 + armeb) machine=armeb-unknown ;;
5966 + arm*) machine=arm-unknown ;;
5967 + sh3el) machine=shl-unknown ;;
5968 + sh3eb) machine=sh-unknown ;;
5969 + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
5970 + esac
5971 + # The Operating System including object format, if it has switched
5972 + # to ELF recently, or will in the future.
5973 + case "${UNAME_MACHINE_ARCH}" in
5974 + arm*|i386|m68k|ns32k|sh3*|sparc|vax)
5975 + eval $set_cc_for_build
5976 + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
5977 + | grep __ELF__ >/dev/null
5978 + then
5979 + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
5980 + # Return netbsd for either. FIX?
5981 + os=netbsd
5982 + else
5983 + os=netbsdelf
5984 + fi
5985 + ;;
5986 + *)
5987 + os=netbsd
5988 + ;;
5989 + esac
5990 + # The OS release
5991 + # Debian GNU/NetBSD machines have a different userland, and
5992 + # thus, need a distinct triplet. However, they do not need
5993 + # kernel version information, so it can be replaced with a
5994 + # suitable tag, in the style of linux-gnu.
5995 + case "${UNAME_VERSION}" in
5996 + Debian*)
5997 + release='-gnu'
5998 + ;;
5999 + *)
6000 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
6001 + ;;
6002 + esac
6003 + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
6004 + # contains redundant information, the shorter form:
6005 + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
6006 + echo "${machine}-${os}${release}"
6007 + exit 0 ;;
6008 + amd64:OpenBSD:*:*)
6009 + echo x86_64-unknown-openbsd${UNAME_RELEASE}
6010 + exit 0 ;;
6011 + amiga:OpenBSD:*:*)
6012 + echo m68k-unknown-openbsd${UNAME_RELEASE}
6013 + exit 0 ;;
6014 + arc:OpenBSD:*:*)
6015 + echo mipsel-unknown-openbsd${UNAME_RELEASE}
6016 + exit 0 ;;
6017 + cats:OpenBSD:*:*)
6018 + echo arm-unknown-openbsd${UNAME_RELEASE}
6019 + exit 0 ;;
6020 + hp300:OpenBSD:*:*)
6021 + echo m68k-unknown-openbsd${UNAME_RELEASE}
6022 + exit 0 ;;
6023 + luna88k:OpenBSD:*:*)
6024 + echo m88k-unknown-openbsd${UNAME_RELEASE}
6025 + exit 0 ;;
6026 + mac68k:OpenBSD:*:*)
6027 + echo m68k-unknown-openbsd${UNAME_RELEASE}
6028 + exit 0 ;;
6029 + macppc:OpenBSD:*:*)
6030 + echo powerpc-unknown-openbsd${UNAME_RELEASE}
6031 + exit 0 ;;
6032 + mvme68k:OpenBSD:*:*)
6033 + echo m68k-unknown-openbsd${UNAME_RELEASE}
6034 + exit 0 ;;
6035 + mvme88k:OpenBSD:*:*)
6036 + echo m88k-unknown-openbsd${UNAME_RELEASE}
6037 + exit 0 ;;
6038 + mvmeppc:OpenBSD:*:*)
6039 + echo powerpc-unknown-openbsd${UNAME_RELEASE}
6040 + exit 0 ;;
6041 + pmax:OpenBSD:*:*)
6042 + echo mipsel-unknown-openbsd${UNAME_RELEASE}
6043 + exit 0 ;;
6044 + sgi:OpenBSD:*:*)
6045 + echo mipseb-unknown-openbsd${UNAME_RELEASE}
6046 + exit 0 ;;
6047 + sun3:OpenBSD:*:*)
6048 + echo m68k-unknown-openbsd${UNAME_RELEASE}
6049 + exit 0 ;;
6050 + wgrisc:OpenBSD:*:*)
6051 + echo mipsel-unknown-openbsd${UNAME_RELEASE}
6052 + exit 0 ;;
6053 + *:OpenBSD:*:*)
6054 + echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
6055 + exit 0 ;;
6056 + *:ekkoBSD:*:*)
6057 + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
6058 + exit 0 ;;
6059 + macppc:MirBSD:*:*)
6060 + echo powerppc-unknown-mirbsd${UNAME_RELEASE}
6061 + exit 0 ;;
6062 + *:MirBSD:*:*)
6063 + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
6064 + exit 0 ;;
6065 alpha:OSF1:*:*)
6066 + case $UNAME_RELEASE in
6067 + *4.0)
6068 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
6069 + ;;
6070 + *5.*)
6071 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
6072 + ;;
6073 + esac
6074 + # According to Compaq, /usr/sbin/psrinfo has been available on
6075 + # OSF/1 and Tru64 systems produced since 1995. I hope that
6076 + # covers most systems running today. This code pipes the CPU
6077 + # types through head -n 1, so we only detect the type of CPU 0.
6078 + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
6079 + case "$ALPHA_CPU_TYPE" in
6080 + "EV4 (21064)")
6081 + UNAME_MACHINE="alpha" ;;
6082 + "EV4.5 (21064)")
6083 + UNAME_MACHINE="alpha" ;;
6084 + "LCA4 (21066/21068)")
6085 + UNAME_MACHINE="alpha" ;;
6086 + "EV5 (21164)")
6087 + UNAME_MACHINE="alphaev5" ;;
6088 + "EV5.6 (21164A)")
6089 + UNAME_MACHINE="alphaev56" ;;
6090 + "EV5.6 (21164PC)")
6091 + UNAME_MACHINE="alphapca56" ;;
6092 + "EV5.7 (21164PC)")
6093 + UNAME_MACHINE="alphapca57" ;;
6094 + "EV6 (21264)")
6095 + UNAME_MACHINE="alphaev6" ;;
6096 + "EV6.7 (21264A)")
6097 + UNAME_MACHINE="alphaev67" ;;
6098 + "EV6.8CB (21264C)")
6099 + UNAME_MACHINE="alphaev68" ;;
6100 + "EV6.8AL (21264B)")
6101 + UNAME_MACHINE="alphaev68" ;;
6102 + "EV6.8CX (21264D)")
6103 + UNAME_MACHINE="alphaev68" ;;
6104 + "EV6.9A (21264/EV69A)")
6105 + UNAME_MACHINE="alphaev69" ;;
6106 + "EV7 (21364)")
6107 + UNAME_MACHINE="alphaev7" ;;
6108 + "EV7.9 (21364A)")
6109 + UNAME_MACHINE="alphaev79" ;;
6110 + esac
6111 + # A Pn.n version is a patched version.
6112 # A Vn.n version is a released version.
6113 # A Tn.n version is a released field test version.
6114 # A Xn.n version is an unreleased experimental baselevel.
6115 # 1.2 uses "1.2" for uname -r.
6116 - echo alpha-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//'`
6117 + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
6118 + exit 0 ;;
6119 + Alpha\ *:Windows_NT*:*)
6120 + # How do we know it's Interix rather than the generic POSIX subsystem?
6121 + # Should we change UNAME_MACHINE based on the output of uname instead
6122 + # of the specific Alpha model?
6123 + echo alpha-pc-interix
6124 exit 0 ;;
6125 21064:Windows_NT:50:3)
6126 echo alpha-dec-winnt3.5
6127 exit 0 ;;
6128 Amiga*:UNIX_System_V:4.0:*)
6129 - echo m68k-cbm-sysv4
6130 + echo m68k-unknown-sysv4
6131 exit 0;;
6132 - amiga:NetBSD:*:*)
6133 - echo m68k-cbm-netbsd${UNAME_RELEASE}
6134 - exit 0 ;;
6135 - amiga:OpenBSD:*:*)
6136 - echo m68k-cbm-openbsd${UNAME_RELEASE}
6137 - exit 0 ;;
6138 + *:[Aa]miga[Oo][Ss]:*:*)
6139 + echo ${UNAME_MACHINE}-unknown-amigaos
6140 + exit 0 ;;
6141 + *:[Mm]orph[Oo][Ss]:*:*)
6142 + echo ${UNAME_MACHINE}-unknown-morphos
6143 + exit 0 ;;
6144 + *:OS/390:*:*)
6145 + echo i370-ibm-openedition
6146 + exit 0 ;;
6147 + *:OS400:*:*)
6148 + echo powerpc-ibm-os400
6149 + exit 0 ;;
6150 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
6151 echo arm-acorn-riscix${UNAME_RELEASE}
6152 exit 0;;
6153 - Pyramid*:OSx*:*:*|MIS*:OSx*:*:*)
6154 + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
6155 + echo hppa1.1-hitachi-hiuxmpp
6156 + exit 0;;
6157 + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
6158 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
6159 if test "`(/bin/universe) 2>/dev/null`" = att ; then
6160 echo pyramid-pyramid-sysv3
6161 @@ -81,9 +345,19 @@
6162 echo pyramid-pyramid-bsd
6163 fi
6164 exit 0 ;;
6165 - NILE:*:*:dcosx)
6166 + NILE*:*:*:dcosx)
6167 echo pyramid-pyramid-svr4
6168 exit 0 ;;
6169 + DRS?6000:unix:4.0:6*)
6170 + echo sparc-icl-nx6
6171 + exit 0 ;;
6172 + DRS?6000:UNIX_SV:4.2*:7*)
6173 + case `/usr/bin/uname -p` in
6174 + sparc) echo sparc-icl-nx7 && exit 0 ;;
6175 + esac ;;
6176 + sun4H:SunOS:5.*:*)
6177 + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
6178 + exit 0 ;;
6179 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
6180 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
6181 exit 0 ;;
6182 @@ -108,26 +382,49 @@
6183 sun3*:SunOS:*:*)
6184 echo m68k-sun-sunos${UNAME_RELEASE}
6185 exit 0 ;;
6186 + sun*:*:4.2BSD:*)
6187 + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
6188 + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
6189 + case "`/bin/arch`" in
6190 + sun3)
6191 + echo m68k-sun-sunos${UNAME_RELEASE}
6192 + ;;
6193 + sun4)
6194 + echo sparc-sun-sunos${UNAME_RELEASE}
6195 + ;;
6196 + esac
6197 + exit 0 ;;
6198 aushp:SunOS:*:*)
6199 echo sparc-auspex-sunos${UNAME_RELEASE}
6200 exit 0 ;;
6201 - atari*:NetBSD:*:*)
6202 - echo m68k-atari-netbsd${UNAME_RELEASE}
6203 - exit 0 ;;
6204 - atari*:OpenBSD:*:*)
6205 - echo m68k-atari-openbsd${UNAME_RELEASE}
6206 - exit 0 ;;
6207 - sun3*:NetBSD:*:*)
6208 - echo m68k-sun-netbsd${UNAME_RELEASE}
6209 - exit 0 ;;
6210 - sun3*:OpenBSD:*:*)
6211 - echo m68k-sun-openbsd${UNAME_RELEASE}
6212 + # The situation for MiNT is a little confusing. The machine name
6213 + # can be virtually everything (everything which is not
6214 + # "atarist" or "atariste" at least should have a processor
6215 + # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
6216 + # to the lowercase version "mint" (or "freemint"). Finally
6217 + # the system name "TOS" denotes a system which is actually not
6218 + # MiNT. But MiNT is downward compatible to TOS, so this should
6219 + # be no problem.
6220 + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
6221 + echo m68k-atari-mint${UNAME_RELEASE}
6222 exit 0 ;;
6223 - mac68k:NetBSD:*:*)
6224 - echo m68k-apple-netbsd${UNAME_RELEASE}
6225 + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
6226 + echo m68k-atari-mint${UNAME_RELEASE}
6227 + exit 0 ;;
6228 + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
6229 + echo m68k-atari-mint${UNAME_RELEASE}
6230 exit 0 ;;
6231 - mac68k:OpenBSD:*:*)
6232 - echo m68k-apple-openbsd${UNAME_RELEASE}
6233 + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
6234 + echo m68k-milan-mint${UNAME_RELEASE}
6235 + exit 0 ;;
6236 + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
6237 + echo m68k-hades-mint${UNAME_RELEASE}
6238 + exit 0 ;;
6239 + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
6240 + echo m68k-unknown-mint${UNAME_RELEASE}
6241 + exit 0 ;;
6242 + m68k:machten:*:*)
6243 + echo m68k-apple-machten${UNAME_RELEASE}
6244 exit 0 ;;
6245 powerpc:machten:*:*)
6246 echo powerpc-apple-machten${UNAME_RELEASE}
6247 @@ -141,9 +438,18 @@
6248 VAX*:ULTRIX*:*:*)
6249 echo vax-dec-ultrix${UNAME_RELEASE}
6250 exit 0 ;;
6251 + 2020:CLIX:*:* | 2430:CLIX:*:*)
6252 + echo clipper-intergraph-clix${UNAME_RELEASE}
6253 + exit 0 ;;
6254 mips:*:*:UMIPS | mips:*:*:RISCos)
6255 - sed 's/^ //' << EOF >dummy.c
6256 - int main (argc, argv) int argc; char **argv; {
6257 + eval $set_cc_for_build
6258 + sed 's/^ //' << EOF >$dummy.c
6259 +#ifdef __cplusplus
6260 +#include <stdio.h> /* for printf() prototype */
6261 + int main (int argc, char *argv[]) {
6262 +#else
6263 + int main (argc, argv) int argc; char *argv[]; {
6264 +#endif
6265 #if defined (host_mips) && defined (MIPSEB)
6266 #if defined (SYSTYPE_SYSV)
6267 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
6268 @@ -158,12 +464,20 @@
6269 exit (-1);
6270 }
6271 EOF
6272 - ${CC-cc} dummy.c -o dummy \
6273 - && ./dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
6274 - && rm dummy.c dummy && exit 0
6275 - rm -f dummy.c dummy
6276 + $CC_FOR_BUILD -o $dummy $dummy.c \
6277 + && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
6278 + && exit 0
6279 echo mips-mips-riscos${UNAME_RELEASE}
6280 exit 0 ;;
6281 + Motorola:PowerMAX_OS:*:*)
6282 + echo powerpc-motorola-powermax
6283 + exit 0 ;;
6284 + Motorola:*:4.3:PL8-*)
6285 + echo powerpc-harris-powermax
6286 + exit 0 ;;
6287 + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
6288 + echo powerpc-harris-powermax
6289 + exit 0 ;;
6290 Night_Hawk:Power_UNIX:*:*)
6291 echo powerpc-harris-powerunix
6292 exit 0 ;;
6293 @@ -179,15 +493,18 @@
6294 AViiON:dgux:*:*)
6295 # DG/UX returns AViiON for all architectures
6296 UNAME_PROCESSOR=`/usr/bin/uname -p`
6297 - if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then
6298 - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \
6299 - -o ${TARGET_BINARY_INTERFACE}x = x ] ; then
6300 + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
6301 + then
6302 + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
6303 + [ ${TARGET_BINARY_INTERFACE}x = x ]
6304 + then
6305 echo m88k-dg-dgux${UNAME_RELEASE}
6306 - else
6307 + else
6308 echo m88k-dg-dguxbcs${UNAME_RELEASE}
6309 + fi
6310 + else
6311 + echo i586-dg-dgux${UNAME_RELEASE}
6312 fi
6313 - else echo i586-dg-dgux${UNAME_RELEASE}
6314 - fi
6315 exit 0 ;;
6316 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
6317 echo m88k-dolphin-sysv3
6318 @@ -208,12 +525,21 @@
6319 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
6320 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
6321 exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
6322 - i?86:AIX:*:*)
6323 + i*86:AIX:*:*)
6324 echo i386-ibm-aix
6325 exit 0 ;;
6326 + ia64:AIX:*:*)
6327 + if [ -x /usr/bin/oslevel ] ; then
6328 + IBM_REV=`/usr/bin/oslevel`
6329 + else
6330 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
6331 + fi
6332 + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
6333 + exit 0 ;;
6334 *:AIX:2:3)
6335 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
6336 - sed 's/^ //' << EOF >dummy.c
6337 + eval $set_cc_for_build
6338 + sed 's/^ //' << EOF >$dummy.c
6339 #include <sys/systemcfg.h>
6340
6341 main()
6342 @@ -224,8 +550,7 @@
6343 exit(0);
6344 }
6345 EOF
6346 - ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
6347 - rm -f dummy.c dummy
6348 + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
6349 echo rs6000-ibm-aix3.2.5
6350 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
6351 echo rs6000-ibm-aix3.2.4
6352 @@ -233,8 +558,9 @@
6353 echo rs6000-ibm-aix3.2
6354 fi
6355 exit 0 ;;
6356 - *:AIX:*:4)
6357 - if /usr/sbin/lsattr -EHl proc0 | grep POWER >/dev/null 2>&1; then
6358 + *:AIX:*:[45])
6359 + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
6360 + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
6361 IBM_ARCH=rs6000
6362 else
6363 IBM_ARCH=powerpc
6364 @@ -242,7 +568,7 @@
6365 if [ -x /usr/bin/oslevel ] ; then
6366 IBM_REV=`/usr/bin/oslevel`
6367 else
6368 - IBM_REV=4.${UNAME_RELEASE}
6369 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
6370 fi
6371 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
6372 exit 0 ;;
6373 @@ -252,7 +578,7 @@
6374 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
6375 echo romp-ibm-bsd4.4
6376 exit 0 ;;
6377 - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and
6378 + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
6379 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
6380 exit 0 ;; # report: romp-ibm BSD 4.3
6381 *:BOSX:*:*)
6382 @@ -267,18 +593,85 @@
6383 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
6384 echo m68k-hp-bsd4.4
6385 exit 0 ;;
6386 - 9000/[3478]??:HP-UX:*:*)
6387 + 9000/[34678]??:HP-UX:*:*)
6388 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
6389 case "${UNAME_MACHINE}" in
6390 9000/31? ) HP_ARCH=m68000 ;;
6391 9000/[34]?? ) HP_ARCH=m68k ;;
6392 - 9000/7?? | 9000/8?[1679] ) HP_ARCH=hppa1.1 ;;
6393 - 9000/8?? ) HP_ARCH=hppa1.0 ;;
6394 + 9000/[678][0-9][0-9])
6395 + if [ -x /usr/bin/getconf ]; then
6396 + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
6397 + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
6398 + case "${sc_cpu_version}" in
6399 + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
6400 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
6401 + 532) # CPU_PA_RISC2_0
6402 + case "${sc_kernel_bits}" in
6403 + 32) HP_ARCH="hppa2.0n" ;;
6404 + 64) HP_ARCH="hppa2.0w" ;;
6405 + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
6406 + esac ;;
6407 + esac
6408 + fi
6409 + if [ "${HP_ARCH}" = "" ]; then
6410 + eval $set_cc_for_build
6411 + sed 's/^ //' << EOF >$dummy.c
6412 +
6413 + #define _HPUX_SOURCE
6414 + #include <stdlib.h>
6415 + #include <unistd.h>
6416 +
6417 + int main ()
6418 + {
6419 + #if defined(_SC_KERNEL_BITS)
6420 + long bits = sysconf(_SC_KERNEL_BITS);
6421 + #endif
6422 + long cpu = sysconf (_SC_CPU_VERSION);
6423 +
6424 + switch (cpu)
6425 + {
6426 + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
6427 + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
6428 + case CPU_PA_RISC2_0:
6429 + #if defined(_SC_KERNEL_BITS)
6430 + switch (bits)
6431 + {
6432 + case 64: puts ("hppa2.0w"); break;
6433 + case 32: puts ("hppa2.0n"); break;
6434 + default: puts ("hppa2.0"); break;
6435 + } break;
6436 + #else /* !defined(_SC_KERNEL_BITS) */
6437 + puts ("hppa2.0"); break;
6438 + #endif
6439 + default: puts ("hppa1.0"); break;
6440 + }
6441 + exit (0);
6442 + }
6443 +EOF
6444 + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
6445 + test -z "$HP_ARCH" && HP_ARCH=hppa
6446 + fi ;;
6447 esac
6448 - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
6449 + if [ ${HP_ARCH} = "hppa2.0w" ]
6450 + then
6451 + # avoid double evaluation of $set_cc_for_build
6452 + test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
6453 + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
6454 + then
6455 + HP_ARCH="hppa2.0w"
6456 + else
6457 + HP_ARCH="hppa64"
6458 + fi
6459 + fi
6460 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
6461 exit 0 ;;
6462 + ia64:HP-UX:*:*)
6463 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
6464 + echo ia64-hp-hpux${HPUX_REV}
6465 + exit 0 ;;
6466 3050*:HI-UX:*:*)
6467 - sed 's/^ //' << EOF >dummy.c
6468 + eval $set_cc_for_build
6469 + sed 's/^ //' << EOF >$dummy.c
6470 #include <unistd.h>
6471 int
6472 main ()
6473 @@ -303,8 +696,7 @@
6474 exit (0);
6475 }
6476 EOF
6477 - ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
6478 - rm -f dummy.c dummy
6479 + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
6480 echo unknown-hitachi-hiuxwe2
6481 exit 0 ;;
6482 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
6483 @@ -313,13 +705,16 @@
6484 9000/8??:4.3bsd:*:*)
6485 echo hppa1.0-hp-bsd
6486 exit 0 ;;
6487 + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
6488 + echo hppa1.0-hp-mpeix
6489 + exit 0 ;;
6490 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
6491 echo hppa1.1-hp-osf
6492 exit 0 ;;
6493 hp8??:OSF1:*:*)
6494 echo hppa1.0-hp-osf
6495 exit 0 ;;
6496 - i?86:OSF1:*:*)
6497 + i*86:OSF1:*:*)
6498 if [ -x /usr/sbin/sysversion ] ; then
6499 echo ${UNAME_MACHINE}-unknown-osf1mk
6500 else
6501 @@ -347,129 +742,320 @@
6502 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
6503 echo c4-convex-bsd
6504 exit 0 ;;
6505 - CRAY*X-MP:*:*:*)
6506 - echo xmp-cray-unicos
6507 - exit 0 ;;
6508 CRAY*Y-MP:*:*:*)
6509 - echo ymp-cray-unicos${UNAME_RELEASE}
6510 + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
6511 exit 0 ;;
6512 CRAY*[A-Z]90:*:*:*)
6513 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
6514 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
6515 - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
6516 + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
6517 + -e 's/\.[^.]*$/.X/'
6518 exit 0 ;;
6519 CRAY*TS:*:*:*)
6520 - echo t90-cray-unicos${UNAME_RELEASE}
6521 + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
6522 exit 0 ;;
6523 - CRAY-2:*:*:*)
6524 - echo cray2-cray-unicos
6525 - exit 0 ;;
6526 - F300:UNIX_System_V:*:*)
6527 - FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'`
6528 + CRAY*T3E:*:*:*)
6529 + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
6530 + exit 0 ;;
6531 + CRAY*SV1:*:*:*)
6532 + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
6533 + exit 0 ;;
6534 + *:UNICOS/mp:*:*)
6535 + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
6536 + exit 0 ;;
6537 + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
6538 + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
6539 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
6540 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
6541 - echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
6542 + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
6543 exit 0 ;;
6544 - F301:UNIX_System_V:*:*)
6545 - echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
6546 - exit 0 ;;
6547 - hp3[0-9][05]:NetBSD:*:*)
6548 - echo m68k-hp-netbsd${UNAME_RELEASE}
6549 - exit 0 ;;
6550 - hp3[0-9][05]:OpenBSD:*:*)
6551 - echo m68k-hp-openbsd${UNAME_RELEASE}
6552 + 5000:UNIX_System_V:4.*:*)
6553 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
6554 + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
6555 + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
6556 exit 0 ;;
6557 - i?86:BSD/386:*:* | *:BSD/OS:*:*)
6558 + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
6559 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
6560 exit 0 ;;
6561 + sparc*:BSD/OS:*:*)
6562 + echo sparc-unknown-bsdi${UNAME_RELEASE}
6563 + exit 0 ;;
6564 + *:BSD/OS:*:*)
6565 + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
6566 + exit 0 ;;
6567 *:FreeBSD:*:*)
6568 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
6569 exit 0 ;;
6570 - *:NetBSD:*:*)
6571 - echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
6572 + i*:CYGWIN*:*)
6573 + echo ${UNAME_MACHINE}-pc-cygwin
6574 exit 0 ;;
6575 - *:OpenBSD:*:*)
6576 - echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
6577 + i*:MINGW*:*)
6578 + echo ${UNAME_MACHINE}-pc-mingw32
6579 exit 0 ;;
6580 - i*:CYGWIN*:*)
6581 - echo i386-pc-cygwin32
6582 + i*:PW*:*)
6583 + echo ${UNAME_MACHINE}-pc-pw32
6584 + exit 0 ;;
6585 + x86:Interix*:[34]*)
6586 + echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
6587 + exit 0 ;;
6588 + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
6589 + echo i${UNAME_MACHINE}-pc-mks
6590 + exit 0 ;;
6591 + i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
6592 + # How do we know it's Interix rather than the generic POSIX subsystem?
6593 + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
6594 + # UNAME_MACHINE based on the output of uname instead of i386?
6595 + echo i586-pc-interix
6596 + exit 0 ;;
6597 + i*:UWIN*:*)
6598 + echo ${UNAME_MACHINE}-pc-uwin
6599 exit 0 ;;
6600 p*:CYGWIN*:*)
6601 - echo powerpcle-unknown-cygwin32
6602 + echo powerpcle-unknown-cygwin
6603 exit 0 ;;
6604 prep*:SunOS:5.*:*)
6605 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
6606 exit 0 ;;
6607 *:GNU:*:*)
6608 - echo `echo ${UNAME_MACHINE}|sed -e 's,/.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
6609 + # the GNU system
6610 + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
6611 + exit 0 ;;
6612 + *:GNU/*:*:*)
6613 + # other systems with GNU libc and userland
6614 + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
6615 + exit 0 ;;
6616 + i*86:Minix:*:*)
6617 + echo ${UNAME_MACHINE}-pc-minix
6618 + exit 0 ;;
6619 + arm*:Linux:*:*)
6620 + echo ${UNAME_MACHINE}-unknown-linux-gnu
6621 + exit 0 ;;
6622 + cris:Linux:*:*)
6623 + echo cris-axis-linux-gnu
6624 + exit 0 ;;
6625 + ia64:Linux:*:*)
6626 + echo ${UNAME_MACHINE}-unknown-linux-gnu
6627 + exit 0 ;;
6628 + m32r*:Linux:*:*)
6629 + echo ${UNAME_MACHINE}-unknown-linux-gnu
6630 + exit 0 ;;
6631 + m68*:Linux:*:*)
6632 + echo ${UNAME_MACHINE}-unknown-linux-gnu
6633 + exit 0 ;;
6634 + mips:Linux:*:*)
6635 + eval $set_cc_for_build
6636 + sed 's/^ //' << EOF >$dummy.c
6637 + #undef CPU
6638 + #undef mips
6639 + #undef mipsel
6640 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
6641 + CPU=mipsel
6642 + #else
6643 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
6644 + CPU=mips
6645 + #else
6646 + CPU=
6647 + #endif
6648 + #endif
6649 +EOF
6650 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
6651 + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
6652 + ;;
6653 + mips64:Linux:*:*)
6654 + eval $set_cc_for_build
6655 + sed 's/^ //' << EOF >$dummy.c
6656 + #undef CPU
6657 + #undef mips64
6658 + #undef mips64el
6659 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
6660 + CPU=mips64el
6661 + #else
6662 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
6663 + CPU=mips64
6664 + #else
6665 + CPU=
6666 + #endif
6667 + #endif
6668 +EOF
6669 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
6670 + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
6671 + ;;
6672 + ppc:Linux:*:*)
6673 + echo powerpc-unknown-linux-gnu
6674 + exit 0 ;;
6675 + ppc64:Linux:*:*)
6676 + echo powerpc64-unknown-linux-gnu
6677 + exit 0 ;;
6678 + alpha:Linux:*:*)
6679 + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
6680 + EV5) UNAME_MACHINE=alphaev5 ;;
6681 + EV56) UNAME_MACHINE=alphaev56 ;;
6682 + PCA56) UNAME_MACHINE=alphapca56 ;;
6683 + PCA57) UNAME_MACHINE=alphapca56 ;;
6684 + EV6) UNAME_MACHINE=alphaev6 ;;
6685 + EV67) UNAME_MACHINE=alphaev67 ;;
6686 + EV68*) UNAME_MACHINE=alphaev68 ;;
6687 + esac
6688 + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
6689 + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
6690 + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
6691 + exit 0 ;;
6692 + parisc:Linux:*:* | hppa:Linux:*:*)
6693 + # Look for CPU level
6694 + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
6695 + PA7*) echo hppa1.1-unknown-linux-gnu ;;
6696 + PA8*) echo hppa2.0-unknown-linux-gnu ;;
6697 + *) echo hppa-unknown-linux-gnu ;;
6698 + esac
6699 + exit 0 ;;
6700 + parisc64:Linux:*:* | hppa64:Linux:*:*)
6701 + echo hppa64-unknown-linux-gnu
6702 + exit 0 ;;
6703 + s390:Linux:*:* | s390x:Linux:*:*)
6704 + echo ${UNAME_MACHINE}-ibm-linux
6705 + exit 0 ;;
6706 + sh64*:Linux:*:*)
6707 + echo ${UNAME_MACHINE}-unknown-linux-gnu
6708 exit 0 ;;
6709 - *:Linux:*:*)
6710 + sh*:Linux:*:*)
6711 + echo ${UNAME_MACHINE}-unknown-linux-gnu
6712 + exit 0 ;;
6713 + sparc:Linux:*:* | sparc64:Linux:*:*)
6714 + echo ${UNAME_MACHINE}-unknown-linux-gnu
6715 + exit 0 ;;
6716 + x86_64:Linux:*:*)
6717 + echo x86_64-unknown-linux-gnu
6718 + exit 0 ;;
6719 + i*86:Linux:*:*)
6720 # The BFD linker knows what the default object file format is, so
6721 - # first see if it will tell us.
6722 - ld_help_string=`ld --help 2>&1`
6723 - if echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf_i.86"; then
6724 - echo "${UNAME_MACHINE}-pc-linux-gnu" ; exit 0
6725 - elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i.86linux"; then
6726 - echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0
6727 - elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i.86coff"; then
6728 - echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0
6729 - elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68kelf"; then
6730 - echo "${UNAME_MACHINE}-unknown-linux-gnu" ; exit 0
6731 - elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68klinux"; then
6732 - echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0
6733 - elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf32ppc"; then
6734 - echo "powerpc-unknown-linux-gnu" ; exit 0
6735 - elif test "${UNAME_MACHINE}" = "alpha" ; then
6736 - echo alpha-unknown-linux-gnu ; exit 0
6737 - elif test "${UNAME_MACHINE}" = "sparc" ; then
6738 - echo sparc-unknown-linux-gnu ; exit 0
6739 - else
6740 - # Either a pre-BFD a.out linker (linux-gnuoldld) or one that does not give us
6741 - # useful --help. Gcc wants to distinguish between linux-gnuoldld and linux-gnuaout.
6742 - test ! -d /usr/lib/ldscripts/. \
6743 - && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
6744 - # Determine whether the default compiler is a.out or elf
6745 - cat >dummy.c <<EOF
6746 -main(argc, argv)
6747 -int argc;
6748 -char *argv[];
6749 -{
6750 -#ifdef __ELF__
6751 - printf ("%s-pc-linux-gnu\n", argv[1]);
6752 -#else
6753 - printf ("%s-pc-linux-gnuaout\n", argv[1]);
6754 -#endif
6755 - return 0;
6756 -}
6757 + # first see if it will tell us. cd to the root directory to prevent
6758 + # problems with other programs or directories called `ld' in the path.
6759 + # Set LC_ALL=C to ensure ld outputs messages in English.
6760 + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
6761 + | sed -ne '/supported targets:/!d
6762 + s/[ ][ ]*/ /g
6763 + s/.*supported targets: *//
6764 + s/ .*//
6765 + p'`
6766 + case "$ld_supported_targets" in
6767 + elf32-i386)
6768 + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
6769 + ;;
6770 + a.out-i386-linux)
6771 + echo "${UNAME_MACHINE}-pc-linux-gnuaout"
6772 + exit 0 ;;
6773 + coff-i386)
6774 + echo "${UNAME_MACHINE}-pc-linux-gnucoff"
6775 + exit 0 ;;
6776 + "")
6777 + # Either a pre-BFD a.out linker (linux-gnuoldld) or
6778 + # one that does not give us useful --help.
6779 + echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
6780 + exit 0 ;;
6781 + esac
6782 + # Determine whether the default compiler is a.out or elf
6783 + eval $set_cc_for_build
6784 + sed 's/^ //' << EOF >$dummy.c
6785 + #include <features.h>
6786 + #ifdef __ELF__
6787 + # ifdef __GLIBC__
6788 + # if __GLIBC__ >= 2
6789 + LIBC=gnu
6790 + # else
6791 + LIBC=gnulibc1
6792 + # endif
6793 + # else
6794 + LIBC=gnulibc1
6795 + # endif
6796 + #else
6797 + #ifdef __INTEL_COMPILER
6798 + LIBC=gnu
6799 + #else
6800 + LIBC=gnuaout
6801 + #endif
6802 + #endif
6803 + #ifdef __dietlibc__
6804 + LIBC=dietlibc
6805 + #endif
6806 EOF
6807 - ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
6808 - rm -f dummy.c dummy
6809 - fi ;;
6810 -# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
6811 -# are messed up and put the nodename in both sysname and nodename.
6812 - i?86:DYNIX/ptx:4*:*)
6813 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
6814 + test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
6815 + test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
6816 + ;;
6817 + i*86:DYNIX/ptx:4*:*)
6818 + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
6819 + # earlier versions are messed up and put the nodename in both
6820 + # sysname and nodename.
6821 echo i386-sequent-sysv4
6822 exit 0 ;;
6823 - i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*)
6824 + i*86:UNIX_SV:4.2MP:2.*)
6825 + # Unixware is an offshoot of SVR4, but it has its own version
6826 + # number series starting with 2...
6827 + # I am not positive that other SVR4 systems won't match this,
6828 + # I just have to hope. -- rms.
6829 + # Use sysv4.2uw... so that sysv4* matches it.
6830 + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
6831 + exit 0 ;;
6832 + i*86:OS/2:*:*)
6833 + # If we were able to find `uname', then EMX Unix compatibility
6834 + # is probably installed.
6835 + echo ${UNAME_MACHINE}-pc-os2-emx
6836 + exit 0 ;;
6837 + i*86:XTS-300:*:STOP)
6838 + echo ${UNAME_MACHINE}-unknown-stop
6839 + exit 0 ;;
6840 + i*86:atheos:*:*)
6841 + echo ${UNAME_MACHINE}-unknown-atheos
6842 + exit 0 ;;
6843 + i*86:syllable:*:*)
6844 + echo ${UNAME_MACHINE}-pc-syllable
6845 + exit 0 ;;
6846 + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
6847 + echo i386-unknown-lynxos${UNAME_RELEASE}
6848 + exit 0 ;;
6849 + i*86:*DOS:*:*)
6850 + echo ${UNAME_MACHINE}-pc-msdosdjgpp
6851 + exit 0 ;;
6852 + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
6853 + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
6854 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
6855 - echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE}
6856 + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
6857 else
6858 - echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
6859 + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
6860 fi
6861 exit 0 ;;
6862 - i?86:*:3.2:*)
6863 + i*86:*:5:[78]*)
6864 + case `/bin/uname -X | grep "^Machine"` in
6865 + *486*) UNAME_MACHINE=i486 ;;
6866 + *Pentium) UNAME_MACHINE=i586 ;;
6867 + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
6868 + esac
6869 + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
6870 + exit 0 ;;
6871 + i*86:*:3.2:*)
6872 if test -f /usr/options/cb.name; then
6873 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
6874 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
6875 elif /bin/uname -X 2>/dev/null >/dev/null ; then
6876 - UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
6877 - (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
6878 - (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
6879 + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
6880 + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
6881 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
6882 && UNAME_MACHINE=i586
6883 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
6884 + && UNAME_MACHINE=i686
6885 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
6886 + && UNAME_MACHINE=i686
6887 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
6888 else
6889 echo ${UNAME_MACHINE}-pc-sysv32
6890 fi
6891 exit 0 ;;
6892 + pc:*:*:*)
6893 + # Left here for compatibility:
6894 + # uname -m prints for DJGPP always 'pc', but it prints nothing about
6895 + # the processor, so we play safe by assuming i386.
6896 + echo i386-pc-msdosdjgpp
6897 + exit 0 ;;
6898 Intel:Mach:3*:*)
6899 echo i386-pc-mach3
6900 exit 0 ;;
6901 @@ -487,9 +1073,15 @@
6902 # "miniframe"
6903 echo m68010-convergent-sysv
6904 exit 0 ;;
6905 - M68*:*:R3V[567]*:*)
6906 + mc68k:UNIX:SYSTEM5:3.51m)
6907 + echo m68k-convergent-sysv
6908 + exit 0 ;;
6909 + M680?0:D-NIX:5.3:*)
6910 + echo m68k-diab-dnix
6911 + exit 0 ;;
6912 + M68*:*:R3V[5678]*:*)
6913 test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
6914 - 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
6915 + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
6916 OS_REL=''
6917 test -r /etc/.relid \
6918 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
6919 @@ -500,24 +1092,27 @@
6920 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
6921 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
6922 && echo i486-ncr-sysv4 && exit 0 ;;
6923 - m68*:LynxOS:2.*:*)
6924 + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
6925 echo m68k-unknown-lynxos${UNAME_RELEASE}
6926 exit 0 ;;
6927 mc68030:UNIX_System_V:4.*:*)
6928 echo m68k-atari-sysv4
6929 exit 0 ;;
6930 - i?86:LynxOS:2.*:*)
6931 - echo i386-unknown-lynxos${UNAME_RELEASE}
6932 - exit 0 ;;
6933 TSUNAMI:LynxOS:2.*:*)
6934 echo sparc-unknown-lynxos${UNAME_RELEASE}
6935 exit 0 ;;
6936 - rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*)
6937 + rs6000:LynxOS:2.*:*)
6938 echo rs6000-unknown-lynxos${UNAME_RELEASE}
6939 exit 0 ;;
6940 + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
6941 + echo powerpc-unknown-lynxos${UNAME_RELEASE}
6942 + exit 0 ;;
6943 SM[BE]S:UNIX_SV:*:*)
6944 echo mips-dde-sysv${UNAME_RELEASE}
6945 exit 0 ;;
6946 + RM*:ReliantUNIX-*:*:*)
6947 + echo mips-sni-sysv4
6948 + exit 0 ;;
6949 RM*:SINIX-*:*:*)
6950 echo mips-sni-sysv4
6951 exit 0 ;;
6952 @@ -529,6 +1124,10 @@
6953 echo ns32k-sni-sysv
6954 fi
6955 exit 0 ;;
6956 + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
6957 + # says <Richard.M.Bartel@ccMail.Census.GOV>
6958 + echo i586-unisys-sysv4
6959 + exit 0 ;;
6960 *:UNIX_System_V:4*:FTX*)
6961 # From Gerald Hewes <hewes@openmarket.com>.
6962 # How about differentiating between stratus architectures? -djm
6963 @@ -538,26 +1137,126 @@
6964 # From seanf@swdc.stratus.com.
6965 echo i860-stratus-sysv4
6966 exit 0 ;;
6967 + *:VOS:*:*)
6968 + # From Paul.Green@stratus.com.
6969 + echo hppa1.1-stratus-vos
6970 + exit 0 ;;
6971 mc68*:A/UX:*:*)
6972 echo m68k-apple-aux${UNAME_RELEASE}
6973 exit 0 ;;
6974 - R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:*)
6975 + news*:NEWS-OS:6*:*)
6976 + echo mips-sony-newsos6
6977 + exit 0 ;;
6978 + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
6979 if [ -d /usr/nec ]; then
6980 echo mips-nec-sysv${UNAME_RELEASE}
6981 else
6982 echo mips-unknown-sysv${UNAME_RELEASE}
6983 fi
6984 exit 0 ;;
6985 - PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
6986 - # says <Richard.M.Bartel@ccMail.Census.GOV>
6987 - echo i586-unisys-sysv4
6988 - exit 0 ;;
6989 + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
6990 + echo powerpc-be-beos
6991 + exit 0 ;;
6992 + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
6993 + echo powerpc-apple-beos
6994 + exit 0 ;;
6995 + BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
6996 + echo i586-pc-beos
6997 + exit 0 ;;
6998 + SX-4:SUPER-UX:*:*)
6999 + echo sx4-nec-superux${UNAME_RELEASE}
7000 + exit 0 ;;
7001 + SX-5:SUPER-UX:*:*)
7002 + echo sx5-nec-superux${UNAME_RELEASE}
7003 + exit 0 ;;
7004 + SX-6:SUPER-UX:*:*)
7005 + echo sx6-nec-superux${UNAME_RELEASE}
7006 + exit 0 ;;
7007 + Power*:Rhapsody:*:*)
7008 + echo powerpc-apple-rhapsody${UNAME_RELEASE}
7009 + exit 0 ;;
7010 + *:Rhapsody:*:*)
7011 + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
7012 + exit 0 ;;
7013 + *:Darwin:*:*)
7014 + case `uname -p` in
7015 + *86) UNAME_PROCESSOR=i686 ;;
7016 + powerpc) UNAME_PROCESSOR=powerpc ;;
7017 + esac
7018 + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
7019 + exit 0 ;;
7020 + *:procnto*:*:* | *:QNX:[0123456789]*:*)
7021 + UNAME_PROCESSOR=`uname -p`
7022 + if test "$UNAME_PROCESSOR" = "x86"; then
7023 + UNAME_PROCESSOR=i386
7024 + UNAME_MACHINE=pc
7025 + fi
7026 + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
7027 + exit 0 ;;
7028 + *:QNX:*:4*)
7029 + echo i386-pc-qnx
7030 + exit 0 ;;
7031 + NSR-?:NONSTOP_KERNEL:*:*)
7032 + echo nsr-tandem-nsk${UNAME_RELEASE}
7033 + exit 0 ;;
7034 + *:NonStop-UX:*:*)
7035 + echo mips-compaq-nonstopux
7036 + exit 0 ;;
7037 + BS2000:POSIX*:*:*)
7038 + echo bs2000-siemens-sysv
7039 + exit 0 ;;
7040 + DS/*:UNIX_System_V:*:*)
7041 + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
7042 + exit 0 ;;
7043 + *:Plan9:*:*)
7044 + # "uname -m" is not consistent, so use $cputype instead. 386
7045 + # is converted to i386 for consistency with other x86
7046 + # operating systems.
7047 + if test "$cputype" = "386"; then
7048 + UNAME_MACHINE=i386
7049 + else
7050 + UNAME_MACHINE="$cputype"
7051 + fi
7052 + echo ${UNAME_MACHINE}-unknown-plan9
7053 + exit 0 ;;
7054 + *:TOPS-10:*:*)
7055 + echo pdp10-unknown-tops10
7056 + exit 0 ;;
7057 + *:TENEX:*:*)
7058 + echo pdp10-unknown-tenex
7059 + exit 0 ;;
7060 + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
7061 + echo pdp10-dec-tops20
7062 + exit 0 ;;
7063 + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
7064 + echo pdp10-xkl-tops20
7065 + exit 0 ;;
7066 + *:TOPS-20:*:*)
7067 + echo pdp10-unknown-tops20
7068 + exit 0 ;;
7069 + *:ITS:*:*)
7070 + echo pdp10-unknown-its
7071 + exit 0 ;;
7072 + SEI:*:*:SEIUX)
7073 + echo mips-sei-seiux${UNAME_RELEASE}
7074 + exit 0 ;;
7075 + *:DragonFly:*:*)
7076 + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
7077 + exit 0 ;;
7078 + *:*VMS:*:*)
7079 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
7080 + case "${UNAME_MACHINE}" in
7081 + A*) echo alpha-dec-vms && exit 0 ;;
7082 + I*) echo ia64-dec-vms && exit 0 ;;
7083 + V*) echo vax-dec-vms && exit 0 ;;
7084 + esac
7085 esac
7086
7087 #echo '(No uname command or uname output not recognized.)' 1>&2
7088 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
7089
7090 -cat >dummy.c <<EOF
7091 +eval $set_cc_for_build
7092 +cat >$dummy.c <<EOF
7093 #ifdef _SEQUENT_
7094 # include <sys/types.h>
7095 # include <sys/utsname.h>
7096 @@ -595,7 +1294,10 @@
7097 #endif
7098 int version;
7099 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
7100 - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
7101 + if (version < 4)
7102 + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
7103 + else
7104 + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
7105 exit (0);
7106 #endif
7107
7108 @@ -640,11 +1342,24 @@
7109 #endif
7110
7111 #if defined (vax)
7112 -#if !defined (ultrix)
7113 - printf ("vax-dec-bsd\n"); exit (0);
7114 -#else
7115 - printf ("vax-dec-ultrix\n"); exit (0);
7116 -#endif
7117 +# if !defined (ultrix)
7118 +# include <sys/param.h>
7119 +# if defined (BSD)
7120 +# if BSD == 43
7121 + printf ("vax-dec-bsd4.3\n"); exit (0);
7122 +# else
7123 +# if BSD == 199006
7124 + printf ("vax-dec-bsd4.3reno\n"); exit (0);
7125 +# else
7126 + printf ("vax-dec-bsd\n"); exit (0);
7127 +# endif
7128 +# endif
7129 +# else
7130 + printf ("vax-dec-bsd\n"); exit (0);
7131 +# endif
7132 +# else
7133 + printf ("vax-dec-ultrix\n"); exit (0);
7134 +# endif
7135 #endif
7136
7137 #if defined (alliant) && defined (i860)
7138 @@ -655,8 +1370,7 @@
7139 }
7140 EOF
7141
7142 -${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0
7143 -rm -f dummy.c dummy
7144 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
7145
7146 # Apollos put the system type in the environment.
7147
7148 @@ -688,6 +1402,48 @@
7149 esac
7150 fi
7151
7152 -#echo '(Unable to guess system type)' 1>&2
7153 +cat >&2 <<EOF
7154 +$0: unable to guess system type
7155 +
7156 +This script, last modified $timestamp, has failed to recognize
7157 +the operating system you are using. It is advised that you
7158 +download the most up to date version of the config scripts from
7159 +
7160 + ftp://ftp.gnu.org/pub/gnu/config/
7161 +
7162 +If the version you run ($0) is already up to date, please
7163 +send the following data and any information you think might be
7164 +pertinent to <config-patches@gnu.org> in order to provide the needed
7165 +information to handle your system.
7166 +
7167 +config.guess timestamp = $timestamp
7168 +
7169 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
7170 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
7171 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
7172 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
7173 +
7174 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
7175 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
7176 +
7177 +hostinfo = `(hostinfo) 2>/dev/null`
7178 +/bin/universe = `(/bin/universe) 2>/dev/null`
7179 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
7180 +/bin/arch = `(/bin/arch) 2>/dev/null`
7181 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
7182 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
7183 +
7184 +UNAME_MACHINE = ${UNAME_MACHINE}
7185 +UNAME_RELEASE = ${UNAME_RELEASE}
7186 +UNAME_SYSTEM = ${UNAME_SYSTEM}
7187 +UNAME_VERSION = ${UNAME_VERSION}
7188 +EOF
7189
7190 exit 1
7191 +
7192 +# Local variables:
7193 +# eval: (add-hook 'write-file-hooks 'time-stamp)
7194 +# time-stamp-start: "timestamp='"
7195 +# time-stamp-format: "%:y-%02m-%02d"
7196 +# time-stamp-end: "'"
7197 +# End:
7198 diff -ruN libnet-1.0.2a-orig/config.sub libnet-1.0.2a-7/config.sub
7199 --- libnet-1.0.2a-orig/config.sub 2001-02-07 00:14:20.000000000 +0100
7200 +++ libnet-1.0.2a-7/config.sub 2005-03-08 03:53:26.000000000 +0100
7201 @@ -1,6 +1,10 @@
7202 #! /bin/sh
7203 -# Configuration validation subroutine script, version 1.1.
7204 -# Copyright (C) 1991, 92, 93, 94, 95, 1996 Free Software Foundation, Inc.
7205 +# Configuration validation subroutine script.
7206 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
7207 +# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
7208 +
7209 +timestamp='2004-06-24'
7210 +
7211 # This file is (in principle) common to ALL GNU software.
7212 # The presence of a machine in this file suggests that SOME GNU software
7213 # can handle that machine. It does not imply ALL GNU software can.
7214 @@ -25,6 +29,9 @@
7215 # configuration script generated by Autoconf, you may include it under
7216 # the same distribution terms that you use for the rest of that program.
7217
7218 +# Please send patches to <config-patches@gnu.org>. Submit a context
7219 +# diff and a properly formatted ChangeLog entry.
7220 +#
7221 # Configuration subroutine to validate and canonicalize a configuration type.
7222 # Supply the specified configuration type as an argument.
7223 # If it is invalid, we print an error message on stderr and exit with code 1.
7224 @@ -45,30 +52,74 @@
7225 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
7226 # It is wrong to echo any other type of specification.
7227
7228 -if [ x$1 = x ]
7229 -then
7230 - echo Configuration name missing. 1>&2
7231 - echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
7232 - echo "or $0 ALIAS" 1>&2
7233 - echo where ALIAS is a recognized configuration type. 1>&2
7234 - exit 1
7235 -fi
7236 +me=`echo "$0" | sed -e 's,.*/,,'`
7237
7238 -# First pass through any local machine types.
7239 -case $1 in
7240 - *local*)
7241 - echo $1
7242 - exit 0
7243 - ;;
7244 - *)
7245 - ;;
7246 +usage="\
7247 +Usage: $0 [OPTION] CPU-MFR-OPSYS
7248 + $0 [OPTION] ALIAS
7249 +
7250 +Canonicalize a configuration name.
7251 +
7252 +Operation modes:
7253 + -h, --help print this help, then exit
7254 + -t, --time-stamp print date of last modification, then exit
7255 + -v, --version print version number, then exit
7256 +
7257 +Report bugs and patches to <config-patches@gnu.org>."
7258 +
7259 +version="\
7260 +GNU config.sub ($timestamp)
7261 +
7262 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
7263 +Free Software Foundation, Inc.
7264 +
7265 +This is free software; see the source for copying conditions. There is NO
7266 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
7267 +
7268 +help="
7269 +Try \`$me --help' for more information."
7270 +
7271 +# Parse command line
7272 +while test $# -gt 0 ; do
7273 + case $1 in
7274 + --time-stamp | --time* | -t )
7275 + echo "$timestamp" ; exit 0 ;;
7276 + --version | -v )
7277 + echo "$version" ; exit 0 ;;
7278 + --help | --h* | -h )
7279 + echo "$usage"; exit 0 ;;
7280 + -- ) # Stop option processing
7281 + shift; break ;;
7282 + - ) # Use stdin as input.
7283 + break ;;
7284 + -* )
7285 + echo "$me: invalid option $1$help"
7286 + exit 1 ;;
7287 +
7288 + *local*)
7289 + # First pass through any local machine types.
7290 + echo $1
7291 + exit 0;;
7292 +
7293 + * )
7294 + break ;;
7295 + esac
7296 +done
7297 +
7298 +case $# in
7299 + 0) echo "$me: missing argument$help" >&2
7300 + exit 1;;
7301 + 1) ;;
7302 + *) echo "$me: too many arguments$help" >&2
7303 + exit 1;;
7304 esac
7305
7306 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
7307 # Here we must recognize all the valid KERNEL-OS combinations.
7308 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
7309 case $maybe_os in
7310 - linux-gnu*)
7311 + nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
7312 + kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
7313 os=-$maybe_os
7314 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
7315 ;;
7316 @@ -94,15 +145,33 @@
7317 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
7318 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
7319 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
7320 - -apple)
7321 + -apple | -axis | -knuth | -cray)
7322 os=
7323 basic_machine=$1
7324 ;;
7325 + -sim | -cisco | -oki | -wec | -winbond)
7326 + os=
7327 + basic_machine=$1
7328 + ;;
7329 + -scout)
7330 + ;;
7331 + -wrs)
7332 + os=-vxworks
7333 + basic_machine=$1
7334 + ;;
7335 + -chorusos*)
7336 + os=-chorusos
7337 + basic_machine=$1
7338 + ;;
7339 + -chorusrdb)
7340 + os=-chorusrdb
7341 + basic_machine=$1
7342 + ;;
7343 -hiux*)
7344 os=-hiuxwe2
7345 ;;
7346 -sco5)
7347 - os=sco3.2v5
7348 + os=-sco3.2v5
7349 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
7350 ;;
7351 -sco4)
7352 @@ -121,6 +190,9 @@
7353 os=-sco3.2v2
7354 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
7355 ;;
7356 + -udk*)
7357 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
7358 + ;;
7359 -isc)
7360 os=-isc2.2
7361 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
7362 @@ -143,25 +215,74 @@
7363 -psos*)
7364 os=-psos
7365 ;;
7366 + -mint | -mint[0-9]*)
7367 + basic_machine=m68k-atari
7368 + os=-mint
7369 + ;;
7370 esac
7371
7372 # Decode aliases for certain CPU-COMPANY combinations.
7373 case $basic_machine in
7374 # Recognize the basic CPU types without company name.
7375 # Some are omitted here because they have special meanings below.
7376 - tahoe | i860 | m68k | m68000 | m88k | ns32k | arm \
7377 - | arme[lb] | pyramid \
7378 - | tron | a29k | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 \
7379 - | alpha | we32k | ns16k | clipper | i370 | sh \
7380 - | powerpc | powerpcle | 1750a | dsp16xx | mips64 | mipsel \
7381 - | pdp11 | mips64el | mips64orion | mips64orionel \
7382 - | sparc | sparclet | sparclite | sparc64)
7383 + 1750a | 580 \
7384 + | a29k \
7385 + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
7386 + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
7387 + | am33_2.0 \
7388 + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
7389 + | c4x | clipper \
7390 + | d10v | d30v | dlx | dsp16xx \
7391 + | fr30 | frv \
7392 + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
7393 + | i370 | i860 | i960 | ia64 \
7394 + | ip2k | iq2000 \
7395 + | m32r | m32rle | m68000 | m68k | m88k | mcore \
7396 + | mips | mipsbe | mipseb | mipsel | mipsle \
7397 + | mips16 \
7398 + | mips64 | mips64el \
7399 + | mips64vr | mips64vrel \
7400 + | mips64orion | mips64orionel \
7401 + | mips64vr4100 | mips64vr4100el \
7402 + | mips64vr4300 | mips64vr4300el \
7403 + | mips64vr5000 | mips64vr5000el \
7404 + | mipsisa32 | mipsisa32el \
7405 + | mipsisa32r2 | mipsisa32r2el \
7406 + | mipsisa64 | mipsisa64el \
7407 + | mipsisa64r2 | mipsisa64r2el \
7408 + | mipsisa64sb1 | mipsisa64sb1el \
7409 + | mipsisa64sr71k | mipsisa64sr71kel \
7410 + | mipstx39 | mipstx39el \
7411 + | mn10200 | mn10300 \
7412 + | msp430 \
7413 + | ns16k | ns32k \
7414 + | openrisc | or32 \
7415 + | pdp10 | pdp11 | pj | pjl \
7416 + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
7417 + | pyramid \
7418 + | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
7419 + | sh64 | sh64le \
7420 + | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
7421 + | strongarm \
7422 + | tahoe | thumb | tic4x | tic80 | tron \
7423 + | v850 | v850e \
7424 + | we32k \
7425 + | x86 | xscale | xstormy16 | xtensa \
7426 + | z8k)
7427 basic_machine=$basic_machine-unknown
7428 ;;
7429 + m6811 | m68hc11 | m6812 | m68hc12)
7430 + # Motorola 68HC11/12.
7431 + basic_machine=$basic_machine-unknown
7432 + os=-none
7433 + ;;
7434 + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
7435 + ;;
7436 +
7437 # We use `pc' rather than `unknown'
7438 # because (1) that's what they normally are, and
7439 # (2) the word "unknown" tends to confuse beginning users.
7440 - i[3456]86)
7441 + i*86 | x86_64)
7442 basic_machine=$basic_machine-pc
7443 ;;
7444 # Object if more than one company name word.
7445 @@ -170,23 +291,86 @@
7446 exit 1
7447 ;;
7448 # Recognize the basic CPU types with company name.
7449 - vax-* | tahoe-* | i[3456]86-* | i860-* | m68k-* | m68000-* | m88k-* \
7450 - | sparc-* | ns32k-* | fx80-* | arm* | c[123]* \
7451 - | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* | power-* \
7452 - | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \
7453 - | hppa-* | hppa1.0-* | hppa1.1-* | alpha-* | we32k-* | cydra-* | ns16k-* \
7454 - | pn-* | np1-* | xps100-* | clipper-* | orion-* | sparclite-* \
7455 - | pdp11-* | sh-* | powerpc-* | powerpcle-* | sparc64-* | mips64-* | mipsel-* \
7456 - | mips64el-* | mips64orion-* | mips64orionel-* | f301-*)
7457 + 580-* \
7458 + | a29k-* \
7459 + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
7460 + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
7461 + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
7462 + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
7463 + | avr-* \
7464 + | bs2000-* \
7465 + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
7466 + | clipper-* | craynv-* | cydra-* \
7467 + | d10v-* | d30v-* | dlx-* \
7468 + | elxsi-* \
7469 + | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
7470 + | h8300-* | h8500-* \
7471 + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
7472 + | i*86-* | i860-* | i960-* | ia64-* \
7473 + | ip2k-* | iq2000-* \
7474 + | m32r-* | m32rle-* \
7475 + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
7476 + | m88110-* | m88k-* | mcore-* \
7477 + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
7478 + | mips16-* \
7479 + | mips64-* | mips64el-* \
7480 + | mips64vr-* | mips64vrel-* \
7481 + | mips64orion-* | mips64orionel-* \
7482 + | mips64vr4100-* | mips64vr4100el-* \
7483 + | mips64vr4300-* | mips64vr4300el-* \
7484 + | mips64vr5000-* | mips64vr5000el-* \
7485 + | mipsisa32-* | mipsisa32el-* \
7486 + | mipsisa32r2-* | mipsisa32r2el-* \
7487 + | mipsisa64-* | mipsisa64el-* \
7488 + | mipsisa64r2-* | mipsisa64r2el-* \
7489 + | mipsisa64sb1-* | mipsisa64sb1el-* \
7490 + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
7491 + | mipstx39-* | mipstx39el-* \
7492 + | mmix-* \
7493 + | msp430-* \
7494 + | none-* | np1-* | ns16k-* | ns32k-* \
7495 + | orion-* \
7496 + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
7497 + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
7498 + | pyramid-* \
7499 + | romp-* | rs6000-* \
7500 + | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
7501 + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
7502 + | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
7503 + | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
7504 + | tahoe-* | thumb-* \
7505 + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
7506 + | tron-* \
7507 + | v850-* | v850e-* | vax-* \
7508 + | we32k-* \
7509 + | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
7510 + | xtensa-* \
7511 + | ymp-* \
7512 + | z8k-*)
7513 ;;
7514 # Recognize the various machine names and aliases which stand
7515 # for a CPU type and a company and sometimes even an OS.
7516 + 386bsd)
7517 + basic_machine=i386-unknown
7518 + os=-bsd
7519 + ;;
7520 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
7521 basic_machine=m68000-att
7522 ;;
7523 3b*)
7524 basic_machine=we32k-att
7525 ;;
7526 + a29khif)
7527 + basic_machine=a29k-amd
7528 + os=-udi
7529 + ;;
7530 + abacus)
7531 + basic_machine=abacus-unknown
7532 + ;;
7533 + adobe68k)
7534 + basic_machine=m68010-adobe
7535 + os=-scout
7536 + ;;
7537 alliant | fx80)
7538 basic_machine=fx80-alliant
7539 ;;
7540 @@ -197,25 +381,35 @@
7541 basic_machine=a29k-none
7542 os=-bsd
7543 ;;
7544 + amd64)
7545 + basic_machine=x86_64-pc
7546 + ;;
7547 + amd64-*)
7548 + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
7549 + ;;
7550 amdahl)
7551 basic_machine=580-amdahl
7552 os=-sysv
7553 ;;
7554 amiga | amiga-*)
7555 - basic_machine=m68k-cbm
7556 + basic_machine=m68k-unknown
7557 ;;
7558 - amigados)
7559 - basic_machine=m68k-cbm
7560 - os=-amigados
7561 + amigaos | amigados)
7562 + basic_machine=m68k-unknown
7563 + os=-amigaos
7564 ;;
7565 amigaunix | amix)
7566 - basic_machine=m68k-cbm
7567 + basic_machine=m68k-unknown
7568 os=-sysv4
7569 ;;
7570 apollo68)
7571 basic_machine=m68k-apollo
7572 os=-sysv
7573 ;;
7574 + apollo68bsd)
7575 + basic_machine=m68k-apollo
7576 + os=-bsd
7577 + ;;
7578 aux)
7579 basic_machine=m68k-apple
7580 os=-aux
7581 @@ -224,6 +418,10 @@
7582 basic_machine=ns32k-sequent
7583 os=-dynix
7584 ;;
7585 + c90)
7586 + basic_machine=c90-cray
7587 + os=-unicos
7588 + ;;
7589 convex-c1)
7590 basic_machine=c1-convex
7591 os=-bsd
7592 @@ -244,27 +442,42 @@
7593 basic_machine=c38-convex
7594 os=-bsd
7595 ;;
7596 - cray | ymp)
7597 - basic_machine=ymp-cray
7598 - os=-unicos
7599 - ;;
7600 - cray2)
7601 - basic_machine=cray2-cray
7602 + cray | j90)
7603 + basic_machine=j90-cray
7604 os=-unicos
7605 ;;
7606 - [ctj]90-cray)
7607 - basic_machine=c90-cray
7608 - os=-unicos
7609 + craynv)
7610 + basic_machine=craynv-cray
7611 + os=-unicosmp
7612 + ;;
7613 + cr16c)
7614 + basic_machine=cr16c-unknown
7615 + os=-elf
7616 ;;
7617 crds | unos)
7618 basic_machine=m68k-crds
7619 ;;
7620 + cris | cris-* | etrax*)
7621 + basic_machine=cris-axis
7622 + ;;
7623 + crx)
7624 + basic_machine=crx-unknown
7625 + os=-elf
7626 + ;;
7627 da30 | da30-*)
7628 basic_machine=m68k-da30
7629 ;;
7630 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
7631 basic_machine=mips-dec
7632 ;;
7633 + decsystem10* | dec10*)
7634 + basic_machine=pdp10-dec
7635 + os=-tops10
7636 + ;;
7637 + decsystem20* | dec20*)
7638 + basic_machine=pdp10-dec
7639 + os=-tops20
7640 + ;;
7641 delta | 3300 | motorola-3300 | motorola-delta \
7642 | 3300-motorola | delta-motorola)
7643 basic_machine=m68k-motorola
7644 @@ -292,6 +505,10 @@
7645 encore | umax | mmax)
7646 basic_machine=ns32k-encore
7647 ;;
7648 + es1800 | OSE68k | ose68k | ose | OSE)
7649 + basic_machine=m68k-ericsson
7650 + os=-ose
7651 + ;;
7652 fx2800)
7653 basic_machine=i860-alliant
7654 ;;
7655 @@ -302,6 +519,10 @@
7656 basic_machine=tron-gmicro
7657 os=-sysv
7658 ;;
7659 + go32)
7660 + basic_machine=i386-pc
7661 + os=-go32
7662 + ;;
7663 h3050r* | hiux*)
7664 basic_machine=hppa1.1-hitachi
7665 os=-hiuxwe2
7666 @@ -310,6 +531,14 @@
7667 basic_machine=h8300-hitachi
7668 os=-hms
7669 ;;
7670 + h8300xray)
7671 + basic_machine=h8300-hitachi
7672 + os=-xray
7673 + ;;
7674 + h8500hms)
7675 + basic_machine=h8500-hitachi
7676 + os=-hms
7677 + ;;
7678 harris)
7679 basic_machine=m88k-harris
7680 os=-sysv3
7681 @@ -325,13 +554,30 @@
7682 basic_machine=m68k-hp
7683 os=-hpux
7684 ;;
7685 + hp3k9[0-9][0-9] | hp9[0-9][0-9])
7686 + basic_machine=hppa1.0-hp
7687 + ;;
7688 hp9k2[0-9][0-9] | hp9k31[0-9])
7689 basic_machine=m68000-hp
7690 ;;
7691 hp9k3[2-9][0-9])
7692 basic_machine=m68k-hp
7693 ;;
7694 - hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
7695 + hp9k6[0-9][0-9] | hp6[0-9][0-9])
7696 + basic_machine=hppa1.0-hp
7697 + ;;
7698 + hp9k7[0-79][0-9] | hp7[0-79][0-9])
7699 + basic_machine=hppa1.1-hp
7700 + ;;
7701 + hp9k78[0-9] | hp78[0-9])
7702 + # FIXME: really hppa2.0-hp
7703 + basic_machine=hppa1.1-hp
7704 + ;;
7705 + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
7706 + # FIXME: really hppa2.0-hp
7707 + basic_machine=hppa1.1-hp
7708 + ;;
7709 + hp9k8[0-9][13679] | hp8[0-9][13679])
7710 basic_machine=hppa1.1-hp
7711 ;;
7712 hp9k8[0-9][0-9] | hp8[0-9][0-9])
7713 @@ -340,27 +586,42 @@
7714 hppa-next)
7715 os=-nextstep3
7716 ;;
7717 + hppaosf)
7718 + basic_machine=hppa1.1-hp
7719 + os=-osf
7720 + ;;
7721 + hppro)
7722 + basic_machine=hppa1.1-hp
7723 + os=-proelf
7724 + ;;
7725 i370-ibm* | ibm*)
7726 basic_machine=i370-ibm
7727 - os=-mvs
7728 ;;
7729 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
7730 - i[3456]86v32)
7731 + i*86v32)
7732 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
7733 os=-sysv32
7734 ;;
7735 - i[3456]86v4*)
7736 + i*86v4*)
7737 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
7738 os=-sysv4
7739 ;;
7740 - i[3456]86v)
7741 + i*86v)
7742 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
7743 os=-sysv
7744 ;;
7745 - i[3456]86sol2)
7746 + i*86sol2)
7747 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
7748 os=-solaris2
7749 ;;
7750 + i386mach)
7751 + basic_machine=i386-mach
7752 + os=-mach
7753 + ;;
7754 + i386-vsta | vsta)
7755 + basic_machine=i386-unknown
7756 + os=-vsta
7757 + ;;
7758 iris | iris4d)
7759 basic_machine=mips-sgi
7760 case $os in
7761 @@ -386,19 +647,51 @@
7762 basic_machine=ns32k-utek
7763 os=-sysv
7764 ;;
7765 + mingw32)
7766 + basic_machine=i386-pc
7767 + os=-mingw32
7768 + ;;
7769 miniframe)
7770 basic_machine=m68000-convergent
7771 ;;
7772 + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
7773 + basic_machine=m68k-atari
7774 + os=-mint
7775 + ;;
7776 mips3*-*)
7777 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
7778 ;;
7779 mips3*)
7780 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
7781 ;;
7782 + monitor)
7783 + basic_machine=m68k-rom68k
7784 + os=-coff
7785 + ;;
7786 + morphos)
7787 + basic_machine=powerpc-unknown
7788 + os=-morphos
7789 + ;;
7790 + msdos)
7791 + basic_machine=i386-pc
7792 + os=-msdos
7793 + ;;
7794 + mvs)
7795 + basic_machine=i370-ibm
7796 + os=-mvs
7797 + ;;
7798 ncr3000)
7799 basic_machine=i486-ncr
7800 os=-sysv4
7801 ;;
7802 + netbsd386)
7803 + basic_machine=i386-unknown
7804 + os=-netbsd
7805 + ;;
7806 + netwinder)
7807 + basic_machine=armv4l-rebel
7808 + os=-linux
7809 + ;;
7810 news | news700 | news800 | news900)
7811 basic_machine=m68k-sony
7812 os=-newsos
7813 @@ -411,6 +704,10 @@
7814 basic_machine=mips-sony
7815 os=-newsos
7816 ;;
7817 + necv70)
7818 + basic_machine=v70-nec
7819 + os=-sysv
7820 + ;;
7821 next | m*-next )
7822 basic_machine=m68k-next
7823 case $os in
7824 @@ -436,9 +733,40 @@
7825 basic_machine=i960-intel
7826 os=-nindy
7827 ;;
7828 + mon960)
7829 + basic_machine=i960-intel
7830 + os=-mon960
7831 + ;;
7832 + nonstopux)
7833 + basic_machine=mips-compaq
7834 + os=-nonstopux
7835 + ;;
7836 np1)
7837 basic_machine=np1-gould
7838 ;;
7839 + nsr-tandem)
7840 + basic_machine=nsr-tandem
7841 + ;;
7842 + op50n-* | op60c-*)
7843 + basic_machine=hppa1.1-oki
7844 + os=-proelf
7845 + ;;
7846 + or32 | or32-*)
7847 + basic_machine=or32-unknown
7848 + os=-coff
7849 + ;;
7850 + os400)
7851 + basic_machine=powerpc-ibm
7852 + os=-os400
7853 + ;;
7854 + OSE68000 | ose68000)
7855 + basic_machine=m68000-ericsson
7856 + os=-ose
7857 + ;;
7858 + os68k)
7859 + basic_machine=m68k-none
7860 + os=-os68k
7861 + ;;
7862 pa-hitachi)
7863 basic_machine=hppa1.1-hitachi
7864 os=-hiuxwe2
7865 @@ -453,53 +781,95 @@
7866 pbb)
7867 basic_machine=m68k-tti
7868 ;;
7869 - pc532 | pc532-*)
7870 + pc532 | pc532-*)
7871 basic_machine=ns32k-pc532
7872 ;;
7873 - pentium | p5)
7874 - basic_machine=i586-intel
7875 + pentium | p5 | k5 | k6 | nexgen | viac3)
7876 + basic_machine=i586-pc
7877 + ;;
7878 + pentiumpro | p6 | 6x86 | athlon | athlon_*)
7879 + basic_machine=i686-pc
7880 + ;;
7881 + pentiumii | pentium2 | pentiumiii | pentium3)
7882 + basic_machine=i686-pc
7883 ;;
7884 - pentiumpro | p6)
7885 - basic_machine=i686-intel
7886 + pentium4)
7887 + basic_machine=i786-pc
7888 ;;
7889 - pentium-* | p5-*)
7890 + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
7891 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
7892 ;;
7893 - pentiumpro-* | p6-*)
7894 + pentiumpro-* | p6-* | 6x86-* | athlon-*)
7895 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
7896 ;;
7897 - k5)
7898 - # We don't have specific support for AMD's K5 yet, so just call it a Pentium
7899 - basic_machine=i586-amd
7900 - ;;
7901 - nexen)
7902 - # We don't have specific support for Nexgen yet, so just call it a Pentium
7903 - basic_machine=i586-nexgen
7904 + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
7905 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
7906 + ;;
7907 + pentium4-*)
7908 + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
7909 ;;
7910 pn)
7911 basic_machine=pn-gould
7912 ;;
7913 - power) basic_machine=rs6000-ibm
7914 + power) basic_machine=power-ibm
7915 ;;
7916 ppc) basic_machine=powerpc-unknown
7917 - ;;
7918 + ;;
7919 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
7920 ;;
7921 ppcle | powerpclittle | ppc-le | powerpc-little)
7922 basic_machine=powerpcle-unknown
7923 - ;;
7924 + ;;
7925 ppcle-* | powerpclittle-*)
7926 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
7927 ;;
7928 + ppc64) basic_machine=powerpc64-unknown
7929 + ;;
7930 + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
7931 + ;;
7932 + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
7933 + basic_machine=powerpc64le-unknown
7934 + ;;
7935 + ppc64le-* | powerpc64little-*)
7936 + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
7937 + ;;
7938 ps2)
7939 basic_machine=i386-ibm
7940 ;;
7941 + pw32)
7942 + basic_machine=i586-unknown
7943 + os=-pw32
7944 + ;;
7945 + rom68k)
7946 + basic_machine=m68k-rom68k
7947 + os=-coff
7948 + ;;
7949 rm[46]00)
7950 basic_machine=mips-siemens
7951 ;;
7952 rtpc | rtpc-*)
7953 basic_machine=romp-ibm
7954 ;;
7955 + s390 | s390-*)
7956 + basic_machine=s390-ibm
7957 + ;;
7958 + s390x | s390x-*)
7959 + basic_machine=s390x-ibm
7960 + ;;
7961 + sa29200)
7962 + basic_machine=a29k-amd
7963 + os=-udi
7964 + ;;
7965 + sb1)
7966 + basic_machine=mipsisa64sb1-unknown
7967 + ;;
7968 + sb1el)
7969 + basic_machine=mipsisa64sb1el-unknown
7970 + ;;
7971 + sei)
7972 + basic_machine=mips-sei
7973 + os=-seiux
7974 + ;;
7975 sequent)
7976 basic_machine=i386-sequent
7977 ;;
7978 @@ -507,6 +877,13 @@
7979 basic_machine=sh-hitachi
7980 os=-hms
7981 ;;
7982 + sh64)
7983 + basic_machine=sh64-unknown
7984 + ;;
7985 + sparclite-wrs | simso-wrs)
7986 + basic_machine=sparclite-wrs
7987 + os=-vxworks
7988 + ;;
7989 sps7)
7990 basic_machine=m68k-bull
7991 os=-sysv2
7992 @@ -514,6 +891,13 @@
7993 spur)
7994 basic_machine=spur-unknown
7995 ;;
7996 + st2000)
7997 + basic_machine=m68k-tandem
7998 + ;;
7999 + stratus)
8000 + basic_machine=i860-stratus
8001 + os=-sysv4
8002 + ;;
8003 sun2)
8004 basic_machine=m68000-sun
8005 ;;
8006 @@ -554,13 +938,51 @@
8007 sun386 | sun386i | roadrunner)
8008 basic_machine=i386-sun
8009 ;;
8010 + sv1)
8011 + basic_machine=sv1-cray
8012 + os=-unicos
8013 + ;;
8014 symmetry)
8015 basic_machine=i386-sequent
8016 os=-dynix
8017 ;;
8018 + t3e)
8019 + basic_machine=alphaev5-cray
8020 + os=-unicos
8021 + ;;
8022 + t90)
8023 + basic_machine=t90-cray
8024 + os=-unicos
8025 + ;;
8026 + tic54x | c54x*)
8027 + basic_machine=tic54x-unknown
8028 + os=-coff
8029 + ;;
8030 + tic55x | c55x*)
8031 + basic_machine=tic55x-unknown
8032 + os=-coff
8033 + ;;
8034 + tic6x | c6x*)
8035 + basic_machine=tic6x-unknown
8036 + os=-coff
8037 + ;;
8038 + tx39)
8039 + basic_machine=mipstx39-unknown
8040 + ;;
8041 + tx39el)
8042 + basic_machine=mipstx39el-unknown
8043 + ;;
8044 + toad1)
8045 + basic_machine=pdp10-xkl
8046 + os=-tops20
8047 + ;;
8048 tower | tower-32)
8049 basic_machine=m68k-ncr
8050 ;;
8051 + tpf)
8052 + basic_machine=s390x-ibm
8053 + os=-tpf
8054 + ;;
8055 udi29k)
8056 basic_machine=a29k-amd
8057 os=-udi
8058 @@ -569,6 +991,10 @@
8059 basic_machine=a29k-nyu
8060 os=-sym1
8061 ;;
8062 + v810 | necv810)
8063 + basic_machine=v810-nec
8064 + os=-none
8065 + ;;
8066 vaxv)
8067 basic_machine=vax-dec
8068 os=-sysv
8069 @@ -577,9 +1003,9 @@
8070 basic_machine=vax-dec
8071 os=-vms
8072 ;;
8073 - vpp*|vx|vx-*)
8074 - basic_machine=f301-fujitsu
8075 - ;;
8076 + vpp*|vx|vx-*)
8077 + basic_machine=f301-fujitsu
8078 + ;;
8079 vxworks960)
8080 basic_machine=i960-wrs
8081 os=-vxworks
8082 @@ -592,13 +1018,25 @@
8083 basic_machine=a29k-wrs
8084 os=-vxworks
8085 ;;
8086 - xmp)
8087 - basic_machine=xmp-cray
8088 - os=-unicos
8089 + w65*)
8090 + basic_machine=w65-wdc
8091 + os=-none
8092 ;;
8093 - xps | xps100)
8094 + w89k-*)
8095 + basic_machine=hppa1.1-winbond
8096 + os=-proelf
8097 + ;;
8098 + xps | xps100)
8099 basic_machine=xps100-honeywell
8100 ;;
8101 + ymp)
8102 + basic_machine=ymp-cray
8103 + os=-unicos
8104 + ;;
8105 + z8k-*-coff)
8106 + basic_machine=z8k-unknown
8107 + os=-sim
8108 + ;;
8109 none)
8110 basic_machine=none-none
8111 os=-none
8112 @@ -606,28 +1044,47 @@
8113
8114 # Here we handle the default manufacturer of certain CPU types. It is in
8115 # some cases the only manufacturer, in others, it is the most popular.
8116 - mips)
8117 - basic_machine=mips-mips
8118 + w89k)
8119 + basic_machine=hppa1.1-winbond
8120 + ;;
8121 + op50n)
8122 + basic_machine=hppa1.1-oki
8123 + ;;
8124 + op60c)
8125 + basic_machine=hppa1.1-oki
8126 ;;
8127 romp)
8128 basic_machine=romp-ibm
8129 ;;
8130 + mmix)
8131 + basic_machine=mmix-knuth
8132 + ;;
8133 rs6000)
8134 basic_machine=rs6000-ibm
8135 ;;
8136 vax)
8137 basic_machine=vax-dec
8138 ;;
8139 + pdp10)
8140 + # there are many clones, so DEC is not a safe bet
8141 + basic_machine=pdp10-unknown
8142 + ;;
8143 pdp11)
8144 basic_machine=pdp11-dec
8145 ;;
8146 we32k)
8147 basic_machine=we32k-att
8148 ;;
8149 - sparc)
8150 + sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
8151 + basic_machine=sh-unknown
8152 + ;;
8153 + sh64)
8154 + basic_machine=sh64-unknown
8155 + ;;
8156 + sparc | sparcv8 | sparcv9 | sparcv9b)
8157 basic_machine=sparc-sun
8158 ;;
8159 - cydra)
8160 + cydra)
8161 basic_machine=cydra-cydrome
8162 ;;
8163 orion)
8164 @@ -636,6 +1093,15 @@
8165 orion105)
8166 basic_machine=clipper-highlevel
8167 ;;
8168 + mac | mpw | mac-mpw)
8169 + basic_machine=m68k-apple
8170 + ;;
8171 + pmac | pmac-mpw)
8172 + basic_machine=powerpc-apple
8173 + ;;
8174 + *-unknown)
8175 + # Make sure to match an already-canonicalized machine name.
8176 + ;;
8177 *)
8178 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
8179 exit 1
8180 @@ -668,9 +1134,12 @@
8181 -solaris)
8182 os=-solaris2
8183 ;;
8184 - -unixware* | svr4*)
8185 + -svr4*)
8186 os=-sysv4
8187 ;;
8188 + -unixware*)
8189 + os=-sysv4.2uw
8190 + ;;
8191 -gnu/linux*)
8192 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
8193 ;;
8194 @@ -681,17 +1150,50 @@
8195 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
8196 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
8197 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
8198 - | -amigados* | -msdos* | -newsos* | -unicos* | -aof* | -aos* \
8199 + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
8200 + | -aos* \
8201 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
8202 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
8203 - | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
8204 - | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
8205 + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
8206 + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
8207 + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
8208 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
8209 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
8210 - | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
8211 - | -linux-gnu* | -uxpv*)
8212 + | -chorusos* | -chorusrdb* \
8213 + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
8214 + | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
8215 + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
8216 + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
8217 + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
8218 + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
8219 + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
8220 + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
8221 # Remember, each alternative MUST END IN *, to match a version number.
8222 ;;
8223 + -qnx*)
8224 + case $basic_machine in
8225 + x86-* | i*86-*)
8226 + ;;
8227 + *)
8228 + os=-nto$os
8229 + ;;
8230 + esac
8231 + ;;
8232 + -nto-qnx*)
8233 + ;;
8234 + -nto*)
8235 + os=`echo $os | sed -e 's|nto|nto-qnx|'`
8236 + ;;
8237 + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
8238 + | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
8239 + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
8240 + ;;
8241 + -mac*)
8242 + os=`echo $os | sed -e 's|mac|macos|'`
8243 + ;;
8244 + -linux-dietlibc)
8245 + os=-linux-dietlibc
8246 + ;;
8247 -linux*)
8248 os=`echo $os | sed -e 's|linux|linux-gnu|'`
8249 ;;
8250 @@ -701,6 +1203,15 @@
8251 -sunos6*)
8252 os=`echo $os | sed -e 's|sunos6|solaris3|'`
8253 ;;
8254 + -opened*)
8255 + os=-openedition
8256 + ;;
8257 + -os400*)
8258 + os=-os400
8259 + ;;
8260 + -wince*)
8261 + os=-wince
8262 + ;;
8263 -osfrose*)
8264 os=-osfrose
8265 ;;
8266 @@ -716,11 +1227,26 @@
8267 -acis*)
8268 os=-aos
8269 ;;
8270 + -atheos*)
8271 + os=-atheos
8272 + ;;
8273 + -syllable*)
8274 + os=-syllable
8275 + ;;
8276 + -386bsd)
8277 + os=-bsd
8278 + ;;
8279 -ctix* | -uts*)
8280 os=-sysv
8281 ;;
8282 + -nova*)
8283 + os=-rtmk-nova
8284 + ;;
8285 -ns2 )
8286 - os=-nextstep2
8287 + os=-nextstep2
8288 + ;;
8289 + -nsk*)
8290 + os=-nsk
8291 ;;
8292 # Preserve the version number of sinix5.
8293 -sinix5.*)
8294 @@ -729,6 +1255,9 @@
8295 -sinix*)
8296 os=-sysv4
8297 ;;
8298 + -tpf*)
8299 + os=-tpf
8300 + ;;
8301 -triton*)
8302 os=-sysv3
8303 ;;
8304 @@ -747,9 +1276,24 @@
8305 # This must come after -sysvr4.
8306 -sysv*)
8307 ;;
8308 + -ose*)
8309 + os=-ose
8310 + ;;
8311 + -es1800*)
8312 + os=-ose
8313 + ;;
8314 -xenix)
8315 os=-xenix
8316 ;;
8317 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
8318 + os=-mint
8319 + ;;
8320 + -aros*)
8321 + os=-aros
8322 + ;;
8323 + -kaos*)
8324 + os=-kaos
8325 + ;;
8326 -none)
8327 ;;
8328 *)
8329 @@ -775,10 +1319,20 @@
8330 *-acorn)
8331 os=-riscix1.2
8332 ;;
8333 + arm*-rebel)
8334 + os=-linux
8335 + ;;
8336 arm*-semi)
8337 os=-aout
8338 ;;
8339 - pdp11-*)
8340 + c4x-* | tic4x-*)
8341 + os=-coff
8342 + ;;
8343 + # This must come before the *-dec entry.
8344 + pdp10-*)
8345 + os=-tops20
8346 + ;;
8347 + pdp11-*)
8348 os=-none
8349 ;;
8350 *-dec | vax-*)
8351 @@ -796,15 +1350,42 @@
8352 # default.
8353 # os=-sunos4
8354 ;;
8355 + m68*-cisco)
8356 + os=-aout
8357 + ;;
8358 + mips*-cisco)
8359 + os=-elf
8360 + ;;
8361 + mips*-*)
8362 + os=-elf
8363 + ;;
8364 + or32-*)
8365 + os=-coff
8366 + ;;
8367 *-tti) # must be before sparc entry or we get the wrong os.
8368 os=-sysv3
8369 ;;
8370 sparc-* | *-sun)
8371 os=-sunos4.1.1
8372 ;;
8373 + *-be)
8374 + os=-beos
8375 + ;;
8376 *-ibm)
8377 os=-aix
8378 ;;
8379 + *-knuth)
8380 + os=-mmixware
8381 + ;;
8382 + *-wec)
8383 + os=-proelf
8384 + ;;
8385 + *-winbond)
8386 + os=-proelf
8387 + ;;
8388 + *-oki)
8389 + os=-proelf
8390 + ;;
8391 *-hp)
8392 os=-hpux
8393 ;;
8394 @@ -815,7 +1396,7 @@
8395 os=-sysv
8396 ;;
8397 *-cbm)
8398 - os=-amigados
8399 + os=-amigaos
8400 ;;
8401 *-dg)
8402 os=-dgux
8403 @@ -847,27 +1428,39 @@
8404 *-next)
8405 os=-nextstep3
8406 ;;
8407 - *-gould)
8408 + *-gould)
8409 os=-sysv
8410 ;;
8411 - *-highlevel)
8412 + *-highlevel)
8413 os=-bsd
8414 ;;
8415 *-encore)
8416 os=-bsd
8417 ;;
8418 - *-sgi)
8419 + *-sgi)
8420 os=-irix
8421 ;;
8422 - *-siemens)
8423 + *-siemens)
8424 os=-sysv4
8425 ;;
8426 *-masscomp)
8427 os=-rtu
8428 ;;
8429 - f301-fujitsu)
8430 + f30[01]-fujitsu | f700-fujitsu)
8431 os=-uxpv
8432 ;;
8433 + *-rom68k)
8434 + os=-coff
8435 + ;;
8436 + *-*bug)
8437 + os=-coff
8438 + ;;
8439 + *-apple)
8440 + os=-macos
8441 + ;;
8442 + *-atari*)
8443 + os=-mint
8444 + ;;
8445 *)
8446 os=-none
8447 ;;
8448 @@ -889,9 +1482,15 @@
8449 -aix*)
8450 vendor=ibm
8451 ;;
8452 + -beos*)
8453 + vendor=be
8454 + ;;
8455 -hpux*)
8456 vendor=hp
8457 ;;
8458 + -mpeix*)
8459 + vendor=hp
8460 + ;;
8461 -hiux*)
8462 vendor=hitachi
8463 ;;
8464 @@ -907,21 +1506,47 @@
8465 -genix*)
8466 vendor=ns
8467 ;;
8468 - -mvs*)
8469 + -mvs* | -opened*)
8470 + vendor=ibm
8471 + ;;
8472 + -os400*)
8473 vendor=ibm
8474 ;;
8475 -ptx*)
8476 vendor=sequent
8477 ;;
8478 - -vxsim* | -vxworks*)
8479 + -tpf*)
8480 + vendor=ibm
8481 + ;;
8482 + -vxsim* | -vxworks* | -windiss*)
8483 vendor=wrs
8484 ;;
8485 -aux*)
8486 vendor=apple
8487 ;;
8488 + -hms*)
8489 + vendor=hitachi
8490 + ;;
8491 + -mpw* | -macos*)
8492 + vendor=apple
8493 + ;;
8494 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
8495 + vendor=atari
8496 + ;;
8497 + -vos*)
8498 + vendor=stratus
8499 + ;;
8500 esac
8501 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
8502 ;;
8503 esac
8504
8505 echo $basic_machine$os
8506 +exit 0
8507 +
8508 +# Local variables:
8509 +# eval: (add-hook 'write-file-hooks 'time-stamp)
8510 +# time-stamp-start: "timestamp='"
8511 +# time-stamp-format: "%:y-%02m-%02d"
8512 +# time-stamp-end: "'"
8513 +# End:
8514 diff -ruN libnet-1.0.2a-orig/configure libnet-1.0.2a-7/configure
8515 --- libnet-1.0.2a-orig/configure 2001-01-17 21:59:33.000000000 +0100
8516 +++ libnet-1.0.2a-7/configure 2005-03-08 03:53:26.000000000 +0100
8517 @@ -1,31 +1,485 @@
8518 #! /bin/sh
8519 -
8520 # Guess values for system-dependent variables and create Makefiles.
8521 -# Generated automatically using autoconf version 2.13
8522 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8523 +# Generated by GNU Autoconf 2.59.
8524 #
8525 +# Copyright (C) 2003 Free Software Foundation, Inc.
8526 # This configure script is free software; the Free Software Foundation
8527 # gives unlimited permission to copy, distribute and modify it.
8528 +## --------------------- ##
8529 +## M4sh Initialization. ##
8530 +## --------------------- ##
8531 +
8532 +# Be Bourne compatible
8533 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8534 + emulate sh
8535 + NULLCMD=:
8536 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8537 + # is contrary to our usage. Disable this feature.
8538 + alias -g '${1+"$@"}'='"$@"'
8539 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8540 + set -o posix
8541 +fi
8542 +DUALCASE=1; export DUALCASE # for MKS sh
8543 +
8544 +# Support unset when possible.
8545 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8546 + as_unset=unset
8547 +else
8548 + as_unset=false
8549 +fi
8550 +
8551 +
8552 +# Work around bugs in pre-3.0 UWIN ksh.
8553 +$as_unset ENV MAIL MAILPATH
8554 +PS1='$ '
8555 +PS2='> '
8556 +PS4='+ '
8557 +
8558 +# NLS nuisances.
8559 +for as_var in \
8560 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8561 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8562 + LC_TELEPHONE LC_TIME
8563 +do
8564 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8565 + eval $as_var=C; export $as_var
8566 + else
8567 + $as_unset $as_var
8568 + fi
8569 +done
8570 +
8571 +# Required to use basename.
8572 +if expr a : '\(a\)' >/dev/null 2>&1; then
8573 + as_expr=expr
8574 +else
8575 + as_expr=false
8576 +fi
8577 +
8578 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8579 + as_basename=basename
8580 +else
8581 + as_basename=false
8582 +fi
8583 +
8584 +
8585 +# Name of the executable.
8586 +as_me=`$as_basename "$0" ||
8587 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8588 + X"$0" : 'X\(//\)$' \| \
8589 + X"$0" : 'X\(/\)$' \| \
8590 + . : '\(.\)' 2>/dev/null ||
8591 +echo X/"$0" |
8592 + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8593 + /^X\/\(\/\/\)$/{ s//\1/; q; }
8594 + /^X\/\(\/\).*/{ s//\1/; q; }
8595 + s/.*/./; q'`
8596 +
8597 +
8598 +# PATH needs CR, and LINENO needs CR and PATH.
8599 +# Avoid depending upon Character Ranges.
8600 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8601 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8602 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8603 +as_cr_digits='0123456789'
8604 +as_cr_alnum=$as_cr_Letters$as_cr_digits
8605 +
8606 +# The user is always right.
8607 +if test "${PATH_SEPARATOR+set}" != set; then
8608 + echo "#! /bin/sh" >conf$$.sh
8609 + echo "exit 0" >>conf$$.sh
8610 + chmod +x conf$$.sh
8611 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8612 + PATH_SEPARATOR=';'
8613 + else
8614 + PATH_SEPARATOR=:
8615 + fi
8616 + rm -f conf$$.sh
8617 +fi
8618 +
8619 +
8620 + as_lineno_1=$LINENO
8621 + as_lineno_2=$LINENO
8622 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8623 + test "x$as_lineno_1" != "x$as_lineno_2" &&
8624 + test "x$as_lineno_3" = "x$as_lineno_2" || {
8625 + # Find who we are. Look in the path if we contain no path at all
8626 + # relative or not.
8627 + case $0 in
8628 + *[\\/]* ) as_myself=$0 ;;
8629 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8630 +for as_dir in $PATH
8631 +do
8632 + IFS=$as_save_IFS
8633 + test -z "$as_dir" && as_dir=.
8634 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8635 +done
8636 +
8637 + ;;
8638 + esac
8639 + # We did not find ourselves, most probably we were run as `sh COMMAND'
8640 + # in which case we are not to be found in the path.
8641 + if test "x$as_myself" = x; then
8642 + as_myself=$0
8643 + fi
8644 + if test ! -f "$as_myself"; then
8645 + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
8646 + { (exit 1); exit 1; }; }
8647 + fi
8648 + case $CONFIG_SHELL in
8649 + '')
8650 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8651 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8652 +do
8653 + IFS=$as_save_IFS
8654 + test -z "$as_dir" && as_dir=.
8655 + for as_base in sh bash ksh sh5; do
8656 + case $as_dir in
8657 + /*)
8658 + if ("$as_dir/$as_base" -c '
8659 + as_lineno_1=$LINENO
8660 + as_lineno_2=$LINENO
8661 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8662 + test "x$as_lineno_1" != "x$as_lineno_2" &&
8663 + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8664 + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8665 + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8666 + CONFIG_SHELL=$as_dir/$as_base
8667 + export CONFIG_SHELL
8668 + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8669 + fi;;
8670 + esac
8671 + done
8672 +done
8673 +;;
8674 + esac
8675 +
8676 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8677 + # uniformly replaced by the line number. The first 'sed' inserts a
8678 + # line-number line before each line; the second 'sed' does the real
8679 + # work. The second script uses 'N' to pair each line-number line
8680 + # with the numbered line, and appends trailing '-' during
8681 + # substitution so that $LINENO is not a special case at line end.
8682 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8683 + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8684 + sed '=' <$as_myself |
8685 + sed '
8686 + N
8687 + s,$,-,
8688 + : loop
8689 + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8690 + t loop
8691 + s,-$,,
8692 + s,^['$as_cr_digits']*\n,,
8693 + ' >$as_me.lineno &&
8694 + chmod +x $as_me.lineno ||
8695 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8696 + { (exit 1); exit 1; }; }
8697 +
8698 + # Don't try to exec as it changes $[0], causing all sort of problems
8699 + # (the dirname of $[0] is not the place where we might find the
8700 + # original and so on. Autoconf is especially sensible to this).
8701 + . ./$as_me.lineno
8702 + # Exit status is that of the last command.
8703 + exit
8704 +}
8705 +
8706 +
8707 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8708 + *c*,-n*) ECHO_N= ECHO_C='
8709 +' ECHO_T=' ' ;;
8710 + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8711 + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8712 +esac
8713 +
8714 +if expr a : '\(a\)' >/dev/null 2>&1; then
8715 + as_expr=expr
8716 +else
8717 + as_expr=false
8718 +fi
8719 +
8720 +rm -f conf$$ conf$$.exe conf$$.file
8721 +echo >conf$$.file
8722 +if ln -s conf$$.file conf$$ 2>/dev/null; then
8723 + # We could just check for DJGPP; but this test a) works b) is more generic
8724 + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8725 + if test -f conf$$.exe; then
8726 + # Don't use ln at all; we don't have any links
8727 + as_ln_s='cp -p'
8728 + else
8729 + as_ln_s='ln -s'
8730 + fi
8731 +elif ln conf$$.file conf$$ 2>/dev/null; then
8732 + as_ln_s=ln
8733 +else
8734 + as_ln_s='cp -p'
8735 +fi
8736 +rm -f conf$$ conf$$.exe conf$$.file
8737 +
8738 +if mkdir -p . 2>/dev/null; then
8739 + as_mkdir_p=:
8740 +else
8741 + test -d ./-p && rmdir ./-p
8742 + as_mkdir_p=false
8743 +fi
8744 +
8745 +as_executable_p="test -f"
8746 +
8747 +# Sed expression to map a string onto a valid CPP name.
8748 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8749 +
8750 +# Sed expression to map a string onto a valid variable name.
8751 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8752 +
8753 +
8754 +# IFS
8755 +# We need space, tab and new line, in precisely that order.
8756 +as_nl='
8757 +'
8758 +IFS=" $as_nl"
8759 +
8760 +# CDPATH.
8761 +$as_unset CDPATH
8762 +
8763 +
8764 +# Find the correct PATH separator. Usually this is `:', but
8765 +# DJGPP uses `;' like DOS.
8766 +if test "X${PATH_SEPARATOR+set}" != Xset; then
8767 + UNAME=${UNAME-`uname 2>/dev/null`}
8768 + case X$UNAME in
8769 + *-DOS) lt_cv_sys_path_separator=';' ;;
8770 + *) lt_cv_sys_path_separator=':' ;;
8771 + esac
8772 + PATH_SEPARATOR=$lt_cv_sys_path_separator
8773 +fi
8774 +
8775 +
8776 +# Check that we are running under the correct shell.
8777 +SHELL=${CONFIG_SHELL-/bin/sh}
8778 +
8779 +case X$ECHO in
8780 +X*--fallback-echo)
8781 + # Remove one level of quotation (which was required for Make).
8782 + ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
8783 + ;;
8784 +esac
8785 +
8786 +echo=${ECHO-echo}
8787 +if test "X$1" = X--no-reexec; then
8788 + # Discard the --no-reexec flag, and continue.
8789 + shift
8790 +elif test "X$1" = X--fallback-echo; then
8791 + # Avoid inline document here, it may be left over
8792 + :
8793 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
8794 + # Yippee, $echo works!
8795 + :
8796 +else
8797 + # Restart under the correct shell.
8798 + exec $SHELL "$0" --no-reexec ${1+"$@"}
8799 +fi
8800 +
8801 +if test "X$1" = X--fallback-echo; then
8802 + # used as fallback echo
8803 + shift
8804 + cat <<EOF
8805 +
8806 +EOF
8807 + exit 0
8808 +fi
8809 +
8810 +# The HP-UX ksh and POSIX shell print the target directory to stdout
8811 +# if CDPATH is set.
8812 +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8813 +
8814 +if test -z "$ECHO"; then
8815 +if test "X${echo_test_string+set}" != Xset; then
8816 +# find a string as large as possible, as long as the shell can cope with it
8817 + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
8818 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
8819 + if (echo_test_string="`eval $cmd`") 2>/dev/null &&
8820 + echo_test_string="`eval $cmd`" &&
8821 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
8822 + then
8823 + break
8824 + fi
8825 + done
8826 +fi
8827 +
8828 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
8829 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
8830 + test "X$echo_testing_string" = "X$echo_test_string"; then
8831 + :
8832 +else
8833 + # The Solaris, AIX, and Digital Unix default echo programs unquote
8834 + # backslashes. This makes it impossible to quote backslashes using
8835 + # echo "$something" | sed 's/\\/\\\\/g'
8836 + #
8837 + # So, first we look for a working echo in the user's PATH.
8838 +
8839 + IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8840 + for dir in $PATH /usr/ucb; do
8841 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
8842 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
8843 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
8844 + test "X$echo_testing_string" = "X$echo_test_string"; then
8845 + echo="$dir/echo"
8846 + break
8847 + fi
8848 + done
8849 + IFS="$save_ifs"
8850 +
8851 + if test "X$echo" = Xecho; then
8852 + # We didn't find a better echo, so look for alternatives.
8853 + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
8854 + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
8855 + test "X$echo_testing_string" = "X$echo_test_string"; then
8856 + # This shell has a builtin print -r that does the trick.
8857 + echo='print -r'
8858 + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
8859 + test "X$CONFIG_SHELL" != X/bin/ksh; then
8860 + # If we have ksh, try running configure again with it.
8861 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
8862 + export ORIGINAL_CONFIG_SHELL
8863 + CONFIG_SHELL=/bin/ksh
8864 + export CONFIG_SHELL
8865 + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
8866 + else
8867 + # Try using printf.
8868 + echo='printf %s\n'
8869 + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
8870 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
8871 + test "X$echo_testing_string" = "X$echo_test_string"; then
8872 + # Cool, printf works
8873 + :
8874 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
8875 + test "X$echo_testing_string" = 'X\t' &&
8876 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
8877 + test "X$echo_testing_string" = "X$echo_test_string"; then
8878 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
8879 + export CONFIG_SHELL
8880 + SHELL="$CONFIG_SHELL"
8881 + export SHELL
8882 + echo="$CONFIG_SHELL $0 --fallback-echo"
8883 + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
8884 + test "X$echo_testing_string" = 'X\t' &&
8885 + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
8886 + test "X$echo_testing_string" = "X$echo_test_string"; then
8887 + echo="$CONFIG_SHELL $0 --fallback-echo"
8888 + else
8889 + # maybe with a smaller string...
8890 + prev=:
8891 +
8892 + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
8893 + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
8894 + then
8895 + break
8896 + fi
8897 + prev="$cmd"
8898 + done
8899 +
8900 + if test "$prev" != 'sed 50q "$0"'; then
8901 + echo_test_string=`eval $prev`
8902 + export echo_test_string
8903 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
8904 + else
8905 + # Oops. We lost completely, so just stick with echo.
8906 + echo=echo
8907 + fi
8908 + fi
8909 + fi
8910 + fi
8911 +fi
8912 +fi
8913 +
8914 +# Copy echo and quote the copy suitably for passing to libtool from
8915 +# the Makefile, instead of quoting the original, which is used later.
8916 +ECHO=$echo
8917 +if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
8918 + ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
8919 +fi
8920 +
8921 +
8922
8923 -# Defaults:
8924 -ac_help=
8925 +# Name of the host.
8926 +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
8927 +# so uname gets run too.
8928 +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
8929 +
8930 +exec 6>&1
8931 +
8932 +#
8933 +# Initializations.
8934 +#
8935 ac_default_prefix=/usr/local
8936 -# Any additions from configure.in:
8937 +ac_config_libobj_dir=.
8938 +cross_compiling=no
8939 +subdirs=
8940 +MFLAGS=
8941 +MAKEFLAGS=
8942 +SHELL=${CONFIG_SHELL-/bin/sh}
8943 +
8944 +# Maximum number of lines to put in a shell here document.
8945 +# This variable seems obsolete. It should probably be removed, and
8946 +# only ac_max_sed_lines should be used.
8947 +: ${ac_max_here_lines=38}
8948 +
8949 +# Identity of this package.
8950 +PACKAGE_NAME=
8951 +PACKAGE_TARNAME=
8952 +PACKAGE_VERSION=
8953 +PACKAGE_STRING=
8954 +PACKAGE_BUGREPORT=
8955 +
8956 +ac_unique_file="src/libnet_build_ip.c"
8957 ac_default_prefix=/usr
8958 -ac_help="$ac_help
8959 - --with-pf_packet=[yes,no] override defaults"
8960 -ac_help="$ac_help
8961 - --with-fast_x86_check=[yes,no] override defaults"
8962 +# Factoring default headers for most tests.
8963 +ac_includes_default="\
8964 +#include <stdio.h>
8965 +#if HAVE_SYS_TYPES_H
8966 +# include <sys/types.h>
8967 +#endif
8968 +#if HAVE_SYS_STAT_H
8969 +# include <sys/stat.h>
8970 +#endif
8971 +#if STDC_HEADERS
8972 +# include <stdlib.h>
8973 +# include <stddef.h>
8974 +#else
8975 +# if HAVE_STDLIB_H
8976 +# include <stdlib.h>
8977 +# endif
8978 +#endif
8979 +#if HAVE_STRING_H
8980 +# if !STDC_HEADERS && HAVE_MEMORY_H
8981 +# include <memory.h>
8982 +# endif
8983 +# include <string.h>
8984 +#endif
8985 +#if HAVE_STRINGS_H
8986 +# include <strings.h>
8987 +#endif
8988 +#if HAVE_INTTYPES_H
8989 +# include <inttypes.h>
8990 +#else
8991 +# if HAVE_STDINT_H
8992 +# include <stdint.h>
8993 +# endif
8994 +#endif
8995 +#if HAVE_UNISTD_H
8996 +# include <unistd.h>
8997 +#endif"
8998 +
8999 +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot LL_INT_TYPE_UC LL_INT_TYPE LIB_PREFIX INC_PREFIX MAN_PREFIX BIN_PREFIX RANLIB AR LN ADDITIONAL_LIBS LIBNET_CONFIG_DEFINES LIBNET_CONFIG_LIBS LIBNET_CONFIG_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S ECHO ac_ct_RANLIB CPP EGREP LIBTOOL LIBOBJS LTLIBOBJS'
9000 +ac_subst_files=''
9001
9002 # Initialize some variables set by options.
9003 +ac_init_help=
9004 +ac_init_version=false
9005 # The variables have the same names as the options, with
9006 # dashes changed to underlines.
9007 -build=NONE
9008 -cache_file=./config.cache
9009 +cache_file=/dev/null
9010 exec_prefix=NONE
9011 -host=NONE
9012 no_create=
9013 -nonopt=NONE
9014 no_recursion=
9015 prefix=NONE
9016 program_prefix=NONE
9017 @@ -34,10 +488,15 @@
9018 silent=
9019 site=
9020 srcdir=
9021 -target=NONE
9022 verbose=
9023 x_includes=NONE
9024 x_libraries=NONE
9025 +
9026 +# Installation directory options.
9027 +# These are left unexpanded so users can "make install exec_prefix=/foo"
9028 +# and all the variables that are supposed to be based on exec_prefix
9029 +# by default will actually change.
9030 +# Use braces instead of parens because sh, perl, etc. also accept them.
9031 bindir='${exec_prefix}/bin'
9032 sbindir='${exec_prefix}/sbin'
9033 libexecdir='${exec_prefix}/libexec'
9034 @@ -51,17 +510,9 @@
9035 infodir='${prefix}/info'
9036 mandir='${prefix}/man'
9037
9038 -# Initialize some other variables.
9039 -subdirs=
9040 -MFLAGS= MAKEFLAGS=
9041 -SHELL=${CONFIG_SHELL-/bin/sh}
9042 -# Maximum number of lines to put in a shell here document.
9043 -ac_max_here_lines=12
9044 -
9045 ac_prev=
9046 for ac_option
9047 do
9048 -
9049 # If the previous option needs an argument, assign it.
9050 if test -n "$ac_prev"; then
9051 eval "$ac_prev=\$ac_option"
9052 @@ -69,59 +520,59 @@
9053 continue
9054 fi
9055
9056 - case "$ac_option" in
9057 - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
9058 - *) ac_optarg= ;;
9059 - esac
9060 + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
9061
9062 # Accept the important Cygnus configure options, so we can diagnose typos.
9063
9064 - case "$ac_option" in
9065 + case $ac_option in
9066
9067 -bindir | --bindir | --bindi | --bind | --bin | --bi)
9068 ac_prev=bindir ;;
9069 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
9070 - bindir="$ac_optarg" ;;
9071 + bindir=$ac_optarg ;;
9072
9073 -build | --build | --buil | --bui | --bu)
9074 - ac_prev=build ;;
9075 + ac_prev=build_alias ;;
9076 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
9077 - build="$ac_optarg" ;;
9078 + build_alias=$ac_optarg ;;
9079
9080 -cache-file | --cache-file | --cache-fil | --cache-fi \
9081 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9082 ac_prev=cache_file ;;
9083 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9084 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9085 - cache_file="$ac_optarg" ;;
9086 + cache_file=$ac_optarg ;;
9087 +
9088 + --config-cache | -C)
9089 + cache_file=config.cache ;;
9090
9091 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
9092 ac_prev=datadir ;;
9093 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
9094 | --da=*)
9095 - datadir="$ac_optarg" ;;
9096 + datadir=$ac_optarg ;;
9097
9098 -disable-* | --disable-*)
9099 - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
9100 + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
9101 # Reject names that are not valid shell variable names.
9102 - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
9103 - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
9104 - fi
9105 - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
9106 - eval "enable_${ac_feature}=no" ;;
9107 + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
9108 + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
9109 + { (exit 1); exit 1; }; }
9110 + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
9111 + eval "enable_$ac_feature=no" ;;
9112
9113 -enable-* | --enable-*)
9114 - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
9115 + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
9116 # Reject names that are not valid shell variable names.
9117 - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
9118 - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
9119 - fi
9120 - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
9121 - case "$ac_option" in
9122 - *=*) ;;
9123 + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
9124 + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
9125 + { (exit 1); exit 1; }; }
9126 + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
9127 + case $ac_option in
9128 + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
9129 *) ac_optarg=yes ;;
9130 esac
9131 - eval "enable_${ac_feature}='$ac_optarg'" ;;
9132 + eval "enable_$ac_feature='$ac_optarg'" ;;
9133
9134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
9135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
9136 @@ -130,95 +581,47 @@
9137 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
9138 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
9139 | --exec=* | --exe=* | --ex=*)
9140 - exec_prefix="$ac_optarg" ;;
9141 + exec_prefix=$ac_optarg ;;
9142
9143 -gas | --gas | --ga | --g)
9144 # Obsolete; use --with-gas.
9145 with_gas=yes ;;
9146
9147 - -help | --help | --hel | --he)
9148 - # Omit some internal or obsolete options to make the list less imposing.
9149 - # This message is too long to be a string in the A/UX 3.1 sh.
9150 - cat << EOF
9151 -Usage: configure [options] [host]
9152 -Options: [defaults in brackets after descriptions]
9153 -Configuration:
9154 - --cache-file=FILE cache test results in FILE
9155 - --help print this message
9156 - --no-create do not create output files
9157 - --quiet, --silent do not print \`checking...' messages
9158 - --version print the version of autoconf that created configure
9159 -Directory and file names:
9160 - --prefix=PREFIX install architecture-independent files in PREFIX
9161 - [$ac_default_prefix]
9162 - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
9163 - [same as prefix]
9164 - --bindir=DIR user executables in DIR [EPREFIX/bin]
9165 - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
9166 - --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
9167 - --datadir=DIR read-only architecture-independent data in DIR
9168 - [PREFIX/share]
9169 - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
9170 - --sharedstatedir=DIR modifiable architecture-independent data in DIR
9171 - [PREFIX/com]
9172 - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
9173 - --libdir=DIR object code libraries in DIR [EPREFIX/lib]
9174 - --includedir=DIR C header files in DIR [PREFIX/include]
9175 - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
9176 - --infodir=DIR info documentation in DIR [PREFIX/info]
9177 - --mandir=DIR man documentation in DIR [PREFIX/man]
9178 - --srcdir=DIR find the sources in DIR [configure dir or ..]
9179 - --program-prefix=PREFIX prepend PREFIX to installed program names
9180 - --program-suffix=SUFFIX append SUFFIX to installed program names
9181 - --program-transform-name=PROGRAM
9182 - run sed PROGRAM on installed program names
9183 -EOF
9184 - cat << EOF
9185 -Host type:
9186 - --build=BUILD configure for building on BUILD [BUILD=HOST]
9187 - --host=HOST configure for HOST [guessed]
9188 - --target=TARGET configure for TARGET [TARGET=HOST]
9189 -Features and packages:
9190 - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
9191 - --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
9192 - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
9193 - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
9194 - --x-includes=DIR X include files are in DIR
9195 - --x-libraries=DIR X library files are in DIR
9196 -EOF
9197 - if test -n "$ac_help"; then
9198 - echo "--enable and --with options recognized:$ac_help"
9199 - fi
9200 - exit 0 ;;
9201 + -help | --help | --hel | --he | -h)
9202 + ac_init_help=long ;;
9203 + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9204 + ac_init_help=recursive ;;
9205 + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9206 + ac_init_help=short ;;
9207
9208 -host | --host | --hos | --ho)
9209 - ac_prev=host ;;
9210 + ac_prev=host_alias ;;
9211 -host=* | --host=* | --hos=* | --ho=*)
9212 - host="$ac_optarg" ;;
9213 + host_alias=$ac_optarg ;;
9214
9215 -includedir | --includedir | --includedi | --included | --include \
9216 | --includ | --inclu | --incl | --inc)
9217 ac_prev=includedir ;;
9218 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9219 | --includ=* | --inclu=* | --incl=* | --inc=*)
9220 - includedir="$ac_optarg" ;;
9221 + includedir=$ac_optarg ;;
9222
9223 -infodir | --infodir | --infodi | --infod | --info | --inf)
9224 ac_prev=infodir ;;
9225 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9226 - infodir="$ac_optarg" ;;
9227 + infodir=$ac_optarg ;;
9228
9229 -libdir | --libdir | --libdi | --libd)
9230 ac_prev=libdir ;;
9231 -libdir=* | --libdir=* | --libdi=* | --libd=*)
9232 - libdir="$ac_optarg" ;;
9233 + libdir=$ac_optarg ;;
9234
9235 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
9236 | --libexe | --libex | --libe)
9237 ac_prev=libexecdir ;;
9238 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
9239 | --libexe=* | --libex=* | --libe=*)
9240 - libexecdir="$ac_optarg" ;;
9241 + libexecdir=$ac_optarg ;;
9242
9243 -localstatedir | --localstatedir | --localstatedi | --localstated \
9244 | --localstate | --localstat | --localsta | --localst \
9245 @@ -227,19 +630,19 @@
9246 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
9247 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
9248 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
9249 - localstatedir="$ac_optarg" ;;
9250 + localstatedir=$ac_optarg ;;
9251
9252 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
9253 ac_prev=mandir ;;
9254 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
9255 - mandir="$ac_optarg" ;;
9256 + mandir=$ac_optarg ;;
9257
9258 -nfp | --nfp | --nf)
9259 # Obsolete; use --without-fp.
9260 with_fp=no ;;
9261
9262 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
9263 - | --no-cr | --no-c)
9264 + | --no-cr | --no-c | -n)
9265 no_create=yes ;;
9266
9267 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
9268 @@ -253,26 +656,26 @@
9269 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
9270 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
9271 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
9272 - oldincludedir="$ac_optarg" ;;
9273 + oldincludedir=$ac_optarg ;;
9274
9275 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9276 ac_prev=prefix ;;
9277 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9278 - prefix="$ac_optarg" ;;
9279 + prefix=$ac_optarg ;;
9280
9281 -program-prefix | --program-prefix | --program-prefi | --program-pref \
9282 | --program-pre | --program-pr | --program-p)
9283 ac_prev=program_prefix ;;
9284 -program-prefix=* | --program-prefix=* | --program-prefi=* \
9285 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
9286 - program_prefix="$ac_optarg" ;;
9287 + program_prefix=$ac_optarg ;;
9288
9289 -program-suffix | --program-suffix | --program-suffi | --program-suff \
9290 | --program-suf | --program-su | --program-s)
9291 ac_prev=program_suffix ;;
9292 -program-suffix=* | --program-suffix=* | --program-suffi=* \
9293 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
9294 - program_suffix="$ac_optarg" ;;
9295 + program_suffix=$ac_optarg ;;
9296
9297 -program-transform-name | --program-transform-name \
9298 | --program-transform-nam | --program-transform-na \
9299 @@ -289,7 +692,7 @@
9300 | --program-transfo=* | --program-transf=* \
9301 | --program-trans=* | --program-tran=* \
9302 | --progr-tra=* | --program-tr=* | --program-t=*)
9303 - program_transform_name="$ac_optarg" ;;
9304 + program_transform_name=$ac_optarg ;;
9305
9306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9307 | -silent | --silent | --silen | --sile | --sil)
9308 @@ -299,7 +702,7 @@
9309 ac_prev=sbindir ;;
9310 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
9311 | --sbi=* | --sb=*)
9312 - sbindir="$ac_optarg" ;;
9313 + sbindir=$ac_optarg ;;
9314
9315 -sharedstatedir | --sharedstatedir | --sharedstatedi \
9316 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
9317 @@ -310,58 +713,57 @@
9318 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
9319 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
9320 | --sha=* | --sh=*)
9321 - sharedstatedir="$ac_optarg" ;;
9322 + sharedstatedir=$ac_optarg ;;
9323
9324 -site | --site | --sit)
9325 ac_prev=site ;;
9326 -site=* | --site=* | --sit=*)
9327 - site="$ac_optarg" ;;
9328 + site=$ac_optarg ;;
9329
9330 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9331 ac_prev=srcdir ;;
9332 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9333 - srcdir="$ac_optarg" ;;
9334 + srcdir=$ac_optarg ;;
9335
9336 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
9337 | --syscon | --sysco | --sysc | --sys | --sy)
9338 ac_prev=sysconfdir ;;
9339 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
9340 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
9341 - sysconfdir="$ac_optarg" ;;
9342 + sysconfdir=$ac_optarg ;;
9343
9344 -target | --target | --targe | --targ | --tar | --ta | --t)
9345 - ac_prev=target ;;
9346 + ac_prev=target_alias ;;
9347 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
9348 - target="$ac_optarg" ;;
9349 + target_alias=$ac_optarg ;;
9350
9351 -v | -verbose | --verbose | --verbos | --verbo | --verb)
9352 verbose=yes ;;
9353
9354 - -version | --version | --versio | --versi | --vers)
9355 - echo "configure generated by autoconf version 2.13"
9356 - exit 0 ;;
9357 + -version | --version | --versio | --versi | --vers | -V)
9358 + ac_init_version=: ;;
9359
9360 -with-* | --with-*)
9361 - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
9362 + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
9363 # Reject names that are not valid shell variable names.
9364 - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
9365 - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
9366 - fi
9367 + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
9368 + { echo "$as_me: error: invalid package name: $ac_package" >&2
9369 + { (exit 1); exit 1; }; }
9370 ac_package=`echo $ac_package| sed 's/-/_/g'`
9371 - case "$ac_option" in
9372 - *=*) ;;
9373 + case $ac_option in
9374 + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
9375 *) ac_optarg=yes ;;
9376 esac
9377 - eval "with_${ac_package}='$ac_optarg'" ;;
9378 + eval "with_$ac_package='$ac_optarg'" ;;
9379
9380 -without-* | --without-*)
9381 - ac_package=`echo $ac_option|sed -e 's/-*without-//'`
9382 + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
9383 # Reject names that are not valid shell variable names.
9384 - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
9385 - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
9386 - fi
9387 - ac_package=`echo $ac_package| sed 's/-/_/g'`
9388 - eval "with_${ac_package}=no" ;;
9389 + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
9390 + { echo "$as_me: error: invalid package name: $ac_package" >&2
9391 + { (exit 1); exit 1; }; }
9392 + ac_package=`echo $ac_package | sed 's/-/_/g'`
9393 + eval "with_$ac_package=no" ;;
9394
9395 --x)
9396 # Obsolete; use --with-x.
9397 @@ -372,99 +774,110 @@
9398 ac_prev=x_includes ;;
9399 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
9400 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
9401 - x_includes="$ac_optarg" ;;
9402 + x_includes=$ac_optarg ;;
9403
9404 -x-libraries | --x-libraries | --x-librarie | --x-librari \
9405 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
9406 ac_prev=x_libraries ;;
9407 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
9408 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
9409 - x_libraries="$ac_optarg" ;;
9410 + x_libraries=$ac_optarg ;;
9411
9412 - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
9413 + -*) { echo "$as_me: error: unrecognized option: $ac_option
9414 +Try \`$0 --help' for more information." >&2
9415 + { (exit 1); exit 1; }; }
9416 ;;
9417
9418 + *=*)
9419 + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
9420 + # Reject names that are not valid shell variable names.
9421 + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
9422 + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
9423 + { (exit 1); exit 1; }; }
9424 + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
9425 + eval "$ac_envvar='$ac_optarg'"
9426 + export $ac_envvar ;;
9427 +
9428 *)
9429 - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
9430 - echo "configure: warning: $ac_option: invalid host type" 1>&2
9431 - fi
9432 - if test "x$nonopt" != xNONE; then
9433 - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
9434 - fi
9435 - nonopt="$ac_option"
9436 + # FIXME: should be removed in autoconf 3.0.
9437 + echo "$as_me: WARNING: you should use --build, --host, --target" >&2
9438 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
9439 + echo "$as_me: WARNING: invalid host type: $ac_option" >&2
9440 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
9441 ;;
9442
9443 esac
9444 done
9445
9446 if test -n "$ac_prev"; then
9447 - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
9448 -fi
9449 -
9450 -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9451 -
9452 -# File descriptor usage:
9453 -# 0 standard input
9454 -# 1 file creation
9455 -# 2 errors and warnings
9456 -# 3 some systems may open it to /dev/tty
9457 -# 4 used on the Kubota Titan
9458 -# 6 checking for... messages and results
9459 -# 5 compiler messages saved in config.log
9460 -if test "$silent" = yes; then
9461 - exec 6>/dev/null
9462 -else
9463 - exec 6>&1
9464 + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
9465 + { echo "$as_me: error: missing argument to $ac_option" >&2
9466 + { (exit 1); exit 1; }; }
9467 fi
9468 -exec 5>./config.log
9469
9470 -echo "\
9471 -This file contains any messages produced by compilers while
9472 -running configure, to aid debugging if configure makes a mistake.
9473 -" 1>&5
9474 +# Be sure to have absolute paths.
9475 +for ac_var in exec_prefix prefix
9476 +do
9477 + eval ac_val=$`echo $ac_var`
9478 + case $ac_val in
9479 + [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
9480 + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
9481 + { (exit 1); exit 1; }; };;
9482 + esac
9483 +done
9484
9485 -# Strip out --no-create and --no-recursion so they do not pile up.
9486 -# Also quote any args containing shell metacharacters.
9487 -ac_configure_args=
9488 -for ac_arg
9489 +# Be sure to have absolute paths.
9490 +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
9491 + localstatedir libdir includedir oldincludedir infodir mandir
9492 do
9493 - case "$ac_arg" in
9494 - -no-create | --no-create | --no-creat | --no-crea | --no-cre \
9495 - | --no-cr | --no-c) ;;
9496 - -no-recursion | --no-recursion | --no-recursio | --no-recursi \
9497 - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
9498 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
9499 - ac_configure_args="$ac_configure_args '$ac_arg'" ;;
9500 - *) ac_configure_args="$ac_configure_args $ac_arg" ;;
9501 + eval ac_val=$`echo $ac_var`
9502 + case $ac_val in
9503 + [\\/$]* | ?:[\\/]* ) ;;
9504 + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
9505 + { (exit 1); exit 1; }; };;
9506 esac
9507 done
9508
9509 -# NLS nuisances.
9510 -# Only set these to C if already set. These must not be set unconditionally
9511 -# because not all systems understand e.g. LANG=C (notably SCO).
9512 -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
9513 -# Non-C LC_CTYPE values break the ctype check.
9514 -if test "${LANG+set}" = set; then LANG=C; export LANG; fi
9515 -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
9516 -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
9517 -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
9518 +# There might be people who depend on the old broken behavior: `$host'
9519 +# used to hold the argument of --host etc.
9520 +# FIXME: To remove some day.
9521 +build=$build_alias
9522 +host=$host_alias
9523 +target=$target_alias
9524 +
9525 +# FIXME: To remove some day.
9526 +if test "x$host_alias" != x; then
9527 + if test "x$build_alias" = x; then
9528 + cross_compiling=maybe
9529 + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
9530 + If a cross compiler is detected then cross compile mode will be used." >&2
9531 + elif test "x$build_alias" != "x$host_alias"; then
9532 + cross_compiling=yes
9533 + fi
9534 +fi
9535
9536 -# confdefs.h avoids OS command line length limits that DEFS can exceed.
9537 -rm -rf conftest* confdefs.h
9538 -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
9539 -echo > confdefs.h
9540 +ac_tool_prefix=
9541 +test -n "$host_alias" && ac_tool_prefix=$host_alias-
9542 +
9543 +test "$silent" = yes && exec 6>/dev/null
9544
9545 -# A filename unique to this package, relative to the directory that
9546 -# configure is in, which we can look for to find out if srcdir is correct.
9547 -ac_unique_file=src/libnet_build_ip.c
9548
9549 # Find the source files, if location was not specified.
9550 if test -z "$srcdir"; then
9551 ac_srcdir_defaulted=yes
9552 # Try the directory containing this script, then its parent.
9553 - ac_prog=$0
9554 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
9555 - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
9556 + ac_confdir=`(dirname "$0") 2>/dev/null ||
9557 +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9558 + X"$0" : 'X\(//\)[^/]' \| \
9559 + X"$0" : 'X\(//\)$' \| \
9560 + X"$0" : 'X\(/\)' \| \
9561 + . : '\(.\)' 2>/dev/null ||
9562 +echo X"$0" |
9563 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9564 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9565 + /^X\(\/\/\)$/{ s//\1/; q; }
9566 + /^X\(\/\).*/{ s//\1/; q; }
9567 + s/.*/./; q'`
9568 srcdir=$ac_confdir
9569 if test ! -r $srcdir/$ac_unique_file; then
9570 srcdir=..
9571 @@ -474,516 +887,702 @@
9572 fi
9573 if test ! -r $srcdir/$ac_unique_file; then
9574 if test "$ac_srcdir_defaulted" = yes; then
9575 - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
9576 - else
9577 - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
9578 - fi
9579 -fi
9580 -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
9581 -
9582 -# Prefer explicitly selected file to automatically selected ones.
9583 -if test -z "$CONFIG_SITE"; then
9584 - if test "x$prefix" != xNONE; then
9585 - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
9586 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
9587 + { (exit 1); exit 1; }; }
9588 else
9589 - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
9590 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
9591 + { (exit 1); exit 1; }; }
9592 fi
9593 fi
9594 -for ac_site_file in $CONFIG_SITE; do
9595 - if test -r "$ac_site_file"; then
9596 - echo "loading site script $ac_site_file"
9597 - . "$ac_site_file"
9598 - fi
9599 -done
9600 +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
9601 + { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
9602 + { (exit 1); exit 1; }; }
9603 +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
9604 +ac_env_build_alias_set=${build_alias+set}
9605 +ac_env_build_alias_value=$build_alias
9606 +ac_cv_env_build_alias_set=${build_alias+set}
9607 +ac_cv_env_build_alias_value=$build_alias
9608 +ac_env_host_alias_set=${host_alias+set}
9609 +ac_env_host_alias_value=$host_alias
9610 +ac_cv_env_host_alias_set=${host_alias+set}
9611 +ac_cv_env_host_alias_value=$host_alias
9612 +ac_env_target_alias_set=${target_alias+set}
9613 +ac_env_target_alias_value=$target_alias
9614 +ac_cv_env_target_alias_set=${target_alias+set}
9615 +ac_cv_env_target_alias_value=$target_alias
9616 +ac_env_CC_set=${CC+set}
9617 +ac_env_CC_value=$CC
9618 +ac_cv_env_CC_set=${CC+set}
9619 +ac_cv_env_CC_value=$CC
9620 +ac_env_CFLAGS_set=${CFLAGS+set}
9621 +ac_env_CFLAGS_value=$CFLAGS
9622 +ac_cv_env_CFLAGS_set=${CFLAGS+set}
9623 +ac_cv_env_CFLAGS_value=$CFLAGS
9624 +ac_env_LDFLAGS_set=${LDFLAGS+set}
9625 +ac_env_LDFLAGS_value=$LDFLAGS
9626 +ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
9627 +ac_cv_env_LDFLAGS_value=$LDFLAGS
9628 +ac_env_CPPFLAGS_set=${CPPFLAGS+set}
9629 +ac_env_CPPFLAGS_value=$CPPFLAGS
9630 +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
9631 +ac_cv_env_CPPFLAGS_value=$CPPFLAGS
9632 +ac_env_CPP_set=${CPP+set}
9633 +ac_env_CPP_value=$CPP
9634 +ac_cv_env_CPP_set=${CPP+set}
9635 +ac_cv_env_CPP_value=$CPP
9636
9637 -if test -r "$cache_file"; then
9638 - echo "loading cache $cache_file"
9639 - . $cache_file
9640 -else
9641 - echo "creating cache $cache_file"
9642 - > $cache_file
9643 -fi
9644 +#
9645 +# Report the --help message.
9646 +#
9647 +if test "$ac_init_help" = "long"; then
9648 + # Omit some internal or obsolete options to make the list less imposing.
9649 + # This message is too long to be a string in the A/UX 3.1 sh.
9650 + cat <<_ACEOF
9651 +\`configure' configures this package to adapt to many kinds of systems.
9652
9653 -ac_ext=c
9654 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9655 -ac_cpp='$CPP $CPPFLAGS'
9656 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9657 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9658 -cross_compiling=$ac_cv_prog_cc_cross
9659 -
9660 -ac_exeext=
9661 -ac_objext=o
9662 -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
9663 - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
9664 - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
9665 - ac_n= ac_c='
9666 -' ac_t=' '
9667 - else
9668 - ac_n=-n ac_c= ac_t=
9669 - fi
9670 -else
9671 - ac_n= ac_c='\c' ac_t=
9672 -fi
9673 +Usage: $0 [OPTION]... [VAR=VALUE]...
9674
9675 +To assign environment variables (e.g., CC, CFLAGS...), specify them as
9676 +VAR=VALUE. See below for descriptions of some of the useful variables.
9677
9678 +Defaults for the options are specified in brackets.
9679
9680 -VER=`cat VERSION`
9681 -echo "$ac_t""Beginning autoconfiguration process for libnet-$VER..." 1>&6
9682 +Configuration:
9683 + -h, --help display this help and exit
9684 + --help=short display options specific to this package
9685 + --help=recursive display the short help of all the included packages
9686 + -V, --version display version information and exit
9687 + -q, --quiet, --silent do not print \`checking...' messages
9688 + --cache-file=FILE cache test results in FILE [disabled]
9689 + -C, --config-cache alias for \`--cache-file=config.cache'
9690 + -n, --no-create do not create output files
9691 + --srcdir=DIR find the sources in DIR [configure dir or \`..']
9692
9693 +_ACEOF
9694
9695 + cat <<_ACEOF
9696 +Installation directories:
9697 + --prefix=PREFIX install architecture-independent files in PREFIX
9698 + [$ac_default_prefix]
9699 + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
9700 + [PREFIX]
9701
9702 +By default, \`make install' will install all the files in
9703 +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
9704 +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
9705 +for instance \`--prefix=\$HOME'.
9706 +
9707 +For better control, use the options below.
9708 +
9709 +Fine tuning of the installation directories:
9710 + --bindir=DIR user executables [EPREFIX/bin]
9711 + --sbindir=DIR system admin executables [EPREFIX/sbin]
9712 + --libexecdir=DIR program executables [EPREFIX/libexec]
9713 + --datadir=DIR read-only architecture-independent data [PREFIX/share]
9714 + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
9715 + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
9716 + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
9717 + --libdir=DIR object code libraries [EPREFIX/lib]
9718 + --includedir=DIR C header files [PREFIX/include]
9719 + --oldincludedir=DIR C header files for non-gcc [/usr/include]
9720 + --infodir=DIR info documentation [PREFIX/info]
9721 + --mandir=DIR man documentation [PREFIX/man]
9722 +_ACEOF
9723 +
9724 + cat <<\_ACEOF
9725 +
9726 +Program names:
9727 + --program-prefix=PREFIX prepend PREFIX to installed program names
9728 + --program-suffix=SUFFIX append SUFFIX to installed program names
9729 + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
9730 +
9731 +System types:
9732 + --build=BUILD configure for building on BUILD [guessed]
9733 + --host=HOST cross-compile to build programs to run on HOST [BUILD]
9734 + --target=TARGET configure for building compilers for TARGET [HOST]
9735 +_ACEOF
9736 +fi
9737
9738 +if test -n "$ac_init_help"; then
9739
9740 + cat <<\_ACEOF
9741
9742 +Optional Features:
9743 + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
9744 + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
9745 + --disable-dependency-tracking speeds up one-time build
9746 + --enable-dependency-tracking do not reject slow dependency extractors
9747 + --enable-shared=PKGS build shared libraries default=yes
9748 + --enable-static=PKGS build static libraries default=yes
9749 + --enable-fast-install=PKGS optimize for fast installation default=yes
9750 + --disable-libtool-lock avoid locking (might break parallel builds)
9751
9752 +Optional Packages:
9753 + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
9754 + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
9755 + --with-pf_packet=yes,no override defaults
9756 + --with-fast_x86_check=yes,no override defaults
9757 + --with-gnu-ld assume the C compiler uses GNU ld default=no
9758 + --with-pic try to use only PIC/non-PIC objects default=use both
9759 +
9760 +Some influential environment variables:
9761 + CC C compiler command
9762 + CFLAGS C compiler flags
9763 + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
9764 + nonstandard directory <lib dir>
9765 + CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
9766 + headers in a nonstandard directory <include dir>
9767 + CPP C preprocessor
9768 +
9769 +Use these variables to override the choices made by `configure' or to help
9770 +it to find libraries and programs with nonstandard names/locations.
9771 +
9772 +_ACEOF
9773 +fi
9774 +
9775 +if test "$ac_init_help" = "recursive"; then
9776 + # If there are subdirs, report their specific --help.
9777 + ac_popdir=`pwd`
9778 + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
9779 + test -d $ac_dir || continue
9780 + ac_builddir=.
9781 +
9782 +if test "$ac_dir" != .; then
9783 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9784 + # A "../" for each directory in $ac_dir_suffix.
9785 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9786 +else
9787 + ac_dir_suffix= ac_top_builddir=
9788 +fi
9789 +
9790 +case $srcdir in
9791 + .) # No --srcdir option. We are building in place.
9792 + ac_srcdir=.
9793 + if test -z "$ac_top_builddir"; then
9794 + ac_top_srcdir=.
9795 + else
9796 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9797 + fi ;;
9798 + [\\/]* | ?:[\\/]* ) # Absolute path.
9799 + ac_srcdir=$srcdir$ac_dir_suffix;
9800 + ac_top_srcdir=$srcdir ;;
9801 + *) # Relative path.
9802 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9803 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
9804 +esac
9805
9806 +# Do not use `cd foo && pwd` to compute absolute paths, because
9807 +# the directories may not exist.
9808 +case `pwd` in
9809 +.) ac_abs_builddir="$ac_dir";;
9810 +*)
9811 + case "$ac_dir" in
9812 + .) ac_abs_builddir=`pwd`;;
9813 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9814 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
9815 + esac;;
9816 +esac
9817 +case $ac_abs_builddir in
9818 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
9819 +*)
9820 + case ${ac_top_builddir}. in
9821 + .) ac_abs_top_builddir=$ac_abs_builddir;;
9822 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9823 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9824 + esac;;
9825 +esac
9826 +case $ac_abs_builddir in
9827 +.) ac_abs_srcdir=$ac_srcdir;;
9828 +*)
9829 + case $ac_srcdir in
9830 + .) ac_abs_srcdir=$ac_abs_builddir;;
9831 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9832 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9833 + esac;;
9834 +esac
9835 +case $ac_abs_builddir in
9836 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
9837 +*)
9838 + case $ac_top_srcdir in
9839 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
9840 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9841 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9842 + esac;;
9843 +esac
9844
9845 + cd $ac_dir
9846 + # Check for guested configure; otherwise get Cygnus style configure.
9847 + if test -f $ac_srcdir/configure.gnu; then
9848 + echo
9849 + $SHELL $ac_srcdir/configure.gnu --help=recursive
9850 + elif test -f $ac_srcdir/configure; then
9851 + echo
9852 + $SHELL $ac_srcdir/configure --help=recursive
9853 + elif test -f $ac_srcdir/configure.ac ||
9854 + test -f $ac_srcdir/configure.in; then
9855 + echo
9856 + $ac_configure --help
9857 + else
9858 + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
9859 + fi
9860 + cd "$ac_popdir"
9861 + done
9862 +fi
9863
9864 +test -n "$ac_init_help" && exit 0
9865 +if $ac_init_version; then
9866 + cat <<\_ACEOF
9867 +
9868 +Copyright (C) 2003 Free Software Foundation, Inc.
9869 +This configure script is free software; the Free Software Foundation
9870 +gives unlimited permission to copy, distribute and modify it.
9871 +_ACEOF
9872 + exit 0
9873 +fi
9874 +exec 5>config.log
9875 +cat >&5 <<_ACEOF
9876 +This file contains any messages produced by compilers while
9877 +running configure, to aid debugging if configure makes a mistake.
9878
9879 +It was created by $as_me, which was
9880 +generated by GNU Autoconf 2.59. Invocation command line was
9881
9882 + $ $0 $@
9883
9884 +_ACEOF
9885 +{
9886 +cat <<_ASUNAME
9887 +## --------- ##
9888 +## Platform. ##
9889 +## --------- ##
9890 +
9891 +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
9892 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
9893 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
9894 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
9895 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
9896 +
9897 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
9898 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
9899 +
9900 +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
9901 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
9902 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
9903 +hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
9904 +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
9905 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
9906 +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
9907
9908 +_ASUNAME
9909
9910 -ac_aux_dir=
9911 -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
9912 - if test -f $ac_dir/install-sh; then
9913 - ac_aux_dir=$ac_dir
9914 - ac_install_sh="$ac_aux_dir/install-sh -c"
9915 - break
9916 - elif test -f $ac_dir/install.sh; then
9917 - ac_aux_dir=$ac_dir
9918 - ac_install_sh="$ac_aux_dir/install.sh -c"
9919 - break
9920 - fi
9921 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9922 +for as_dir in $PATH
9923 +do
9924 + IFS=$as_save_IFS
9925 + test -z "$as_dir" && as_dir=.
9926 + echo "PATH: $as_dir"
9927 done
9928 -if test -z "$ac_aux_dir"; then
9929 - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
9930 -fi
9931 -ac_config_guess=$ac_aux_dir/config.guess
9932 -ac_config_sub=$ac_aux_dir/config.sub
9933 -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
9934 -
9935 -
9936 -# Do some error checking and defaulting for the host and target type.
9937 -# The inputs are:
9938 -# configure --host=HOST --target=TARGET --build=BUILD NONOPT
9939 -#
9940 -# The rules are:
9941 -# 1. You are not allowed to specify --host, --target, and nonopt at the
9942 -# same time.
9943 -# 2. Host defaults to nonopt.
9944 -# 3. If nonopt is not specified, then host defaults to the current host,
9945 -# as determined by config.guess.
9946 -# 4. Target and build default to nonopt.
9947 -# 5. If nonopt is not specified, then target and build default to host.
9948
9949 -# The aliases save the names the user supplied, while $host etc.
9950 -# will get canonicalized.
9951 -case $host---$target---$nonopt in
9952 -NONE---*---* | *---NONE---* | *---*---NONE) ;;
9953 -*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
9954 -esac
9955 +} >&5
9956
9957 +cat >&5 <<_ACEOF
9958
9959 -# Make sure we can run config.sub.
9960 -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
9961 -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
9962 -fi
9963
9964 -echo $ac_n "checking host system type""... $ac_c" 1>&6
9965 -echo "configure:595: checking host system type" >&5
9966 +## ----------- ##
9967 +## Core tests. ##
9968 +## ----------- ##
9969
9970 -host_alias=$host
9971 -case "$host_alias" in
9972 -NONE)
9973 - case $nonopt in
9974 - NONE)
9975 - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
9976 - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
9977 - fi ;;
9978 - *) host_alias=$nonopt ;;
9979 - esac ;;
9980 -esac
9981 +_ACEOF
9982
9983 -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
9984 -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
9985 -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
9986 -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
9987 -echo "$ac_t""$host" 1>&6
9988 -
9989 -echo $ac_n "checking target system type""... $ac_c" 1>&6
9990 -echo "configure:616: checking target system type" >&5
9991 -
9992 -target_alias=$target
9993 -case "$target_alias" in
9994 -NONE)
9995 - case $nonopt in
9996 - NONE) target_alias=$host_alias ;;
9997 - *) target_alias=$nonopt ;;
9998 - esac ;;
9999 -esac
10000 -
10001 -target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
10002 -target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
10003 -target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
10004 -target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
10005 -echo "$ac_t""$target" 1>&6
10006 -
10007 -echo $ac_n "checking build system type""... $ac_c" 1>&6
10008 -echo "configure:634: checking build system type" >&5
10009 -
10010 -build_alias=$build
10011 -case "$build_alias" in
10012 -NONE)
10013 - case $nonopt in
10014 - NONE) build_alias=$host_alias ;;
10015 - *) build_alias=$nonopt ;;
10016 - esac ;;
10017 -esac
10018 -
10019 -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
10020 -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
10021 -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
10022 -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
10023 -echo "$ac_t""$build" 1>&6
10024
10025 -test "$host_alias" != "$target_alias" &&
10026 - test "$program_prefix$program_suffix$program_transform_name" = \
10027 - NONENONEs,x,x, &&
10028 - program_prefix=${target_alias}-
10029 +# Keep a trace of the command line.
10030 +# Strip out --no-create and --no-recursion so they do not pile up.
10031 +# Strip out --silent because we don't want to record it for future runs.
10032 +# Also quote any args containing shell meta-characters.
10033 +# Make two passes to allow for proper duplicate-argument suppression.
10034 +ac_configure_args=
10035 +ac_configure_args0=
10036 +ac_configure_args1=
10037 +ac_sep=
10038 +ac_must_keep_next=false
10039 +for ac_pass in 1 2
10040 +do
10041 + for ac_arg
10042 + do
10043 + case $ac_arg in
10044 + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
10045 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10046 + | -silent | --silent | --silen | --sile | --sil)
10047 + continue ;;
10048 + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
10049 + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10050 + esac
10051 + case $ac_pass in
10052 + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
10053 + 2)
10054 + ac_configure_args1="$ac_configure_args1 '$ac_arg'"
10055 + if test $ac_must_keep_next = true; then
10056 + ac_must_keep_next=false # Got value, back to normal.
10057 + else
10058 + case $ac_arg in
10059 + *=* | --config-cache | -C | -disable-* | --disable-* \
10060 + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
10061 + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
10062 + | -with-* | --with-* | -without-* | --without-* | --x)
10063 + case "$ac_configure_args0 " in
10064 + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
10065 + esac
10066 + ;;
10067 + -* ) ac_must_keep_next=true ;;
10068 + esac
10069 + fi
10070 + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
10071 + # Get rid of the leading space.
10072 + ac_sep=" "
10073 + ;;
10074 + esac
10075 + done
10076 +done
10077 +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
10078 +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
10079
10080 +# When interrupted or exit'd, cleanup temporary files, and complete
10081 +# config.log. We remove comments because anyway the quotes in there
10082 +# would cause problems or look ugly.
10083 +# WARNING: Be sure not to use single quotes in there, as some shells,
10084 +# such as our DU 5.0 friend, will then `close' the trap.
10085 +trap 'exit_status=$?
10086 + # Save into config.log some information that might help in debugging.
10087 + {
10088 + echo
10089 +
10090 + cat <<\_ASBOX
10091 +## ---------------- ##
10092 +## Cache variables. ##
10093 +## ---------------- ##
10094 +_ASBOX
10095 + echo
10096 + # The following way of writing the cache mishandles newlines in values,
10097 +{
10098 + (set) 2>&1 |
10099 + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
10100 + *ac_space=\ *)
10101 + sed -n \
10102 + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
10103 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
10104 + ;;
10105 + *)
10106 + sed -n \
10107 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10108 + ;;
10109 + esac;
10110 +}
10111 + echo
10112
10113 + cat <<\_ASBOX
10114 +## ----------------- ##
10115 +## Output variables. ##
10116 +## ----------------- ##
10117 +_ASBOX
10118 + echo
10119 + for ac_var in $ac_subst_vars
10120 + do
10121 + eval ac_val=$`echo $ac_var`
10122 + echo "$ac_var='"'"'$ac_val'"'"'"
10123 + done | sort
10124 + echo
10125 +
10126 + if test -n "$ac_subst_files"; then
10127 + cat <<\_ASBOX
10128 +## ------------- ##
10129 +## Output files. ##
10130 +## ------------- ##
10131 +_ASBOX
10132 + echo
10133 + for ac_var in $ac_subst_files
10134 + do
10135 + eval ac_val=$`echo $ac_var`
10136 + echo "$ac_var='"'"'$ac_val'"'"'"
10137 + done | sort
10138 + echo
10139 + fi
10140
10141 -if test "$prefix" = "NONE"; then
10142 - prefix="/usr"
10143 -fi
10144 -
10145 -# Extract the first word of "gcc", so it can be a program name with args.
10146 -set dummy gcc; ac_word=$2
10147 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10148 -echo "configure:665: checking for $ac_word" >&5
10149 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
10150 - echo $ac_n "(cached) $ac_c" 1>&6
10151 -else
10152 - if test -n "$CC"; then
10153 - ac_cv_prog_CC="$CC" # Let the user override the test.
10154 -else
10155 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10156 - ac_dummy="$PATH"
10157 - for ac_dir in $ac_dummy; do
10158 - test -z "$ac_dir" && ac_dir=.
10159 - if test -f $ac_dir/$ac_word; then
10160 - ac_cv_prog_CC="gcc"
10161 - break
10162 + if test -s confdefs.h; then
10163 + cat <<\_ASBOX
10164 +## ----------- ##
10165 +## confdefs.h. ##
10166 +## ----------- ##
10167 +_ASBOX
10168 + echo
10169 + sed "/^$/d" confdefs.h | sort
10170 + echo
10171 fi
10172 - done
10173 - IFS="$ac_save_ifs"
10174 -fi
10175 -fi
10176 -CC="$ac_cv_prog_CC"
10177 -if test -n "$CC"; then
10178 - echo "$ac_t""$CC" 1>&6
10179 -else
10180 - echo "$ac_t""no" 1>&6
10181 -fi
10182 + test "$ac_signal" != 0 &&
10183 + echo "$as_me: caught signal $ac_signal"
10184 + echo "$as_me: exit $exit_status"
10185 + } >&5
10186 + rm -f core *.core &&
10187 + rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
10188 + exit $exit_status
10189 + ' 0
10190 +for ac_signal in 1 2 13 15; do
10191 + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
10192 +done
10193 +ac_signal=0
10194
10195 -if test -z "$CC"; then
10196 - # Extract the first word of "cc", so it can be a program name with args.
10197 -set dummy cc; ac_word=$2
10198 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10199 -echo "configure:695: checking for $ac_word" >&5
10200 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
10201 - echo $ac_n "(cached) $ac_c" 1>&6
10202 -else
10203 - if test -n "$CC"; then
10204 - ac_cv_prog_CC="$CC" # Let the user override the test.
10205 -else
10206 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10207 - ac_prog_rejected=no
10208 - ac_dummy="$PATH"
10209 - for ac_dir in $ac_dummy; do
10210 - test -z "$ac_dir" && ac_dir=.
10211 - if test -f $ac_dir/$ac_word; then
10212 - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
10213 - ac_prog_rejected=yes
10214 - continue
10215 - fi
10216 - ac_cv_prog_CC="cc"
10217 - break
10218 - fi
10219 - done
10220 - IFS="$ac_save_ifs"
10221 -if test $ac_prog_rejected = yes; then
10222 - # We found a bogon in the path, so make sure we never use it.
10223 - set dummy $ac_cv_prog_CC
10224 - shift
10225 - if test $# -gt 0; then
10226 - # We chose a different compiler from the bogus one.
10227 - # However, it has the same basename, so the bogon will be chosen
10228 - # first if we set CC to just the basename; use the full file name.
10229 - shift
10230 - set dummy "$ac_dir/$ac_word" "$@"
10231 - shift
10232 - ac_cv_prog_CC="$@"
10233 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
10234 +rm -rf conftest* confdefs.h
10235 +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
10236 +echo >confdefs.h
10237 +
10238 +# Predefined preprocessor variables.
10239 +
10240 +cat >>confdefs.h <<_ACEOF
10241 +#define PACKAGE_NAME "$PACKAGE_NAME"
10242 +_ACEOF
10243 +
10244 +
10245 +cat >>confdefs.h <<_ACEOF
10246 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
10247 +_ACEOF
10248 +
10249 +
10250 +cat >>confdefs.h <<_ACEOF
10251 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
10252 +_ACEOF
10253 +
10254 +
10255 +cat >>confdefs.h <<_ACEOF
10256 +#define PACKAGE_STRING "$PACKAGE_STRING"
10257 +_ACEOF
10258 +
10259 +
10260 +cat >>confdefs.h <<_ACEOF
10261 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
10262 +_ACEOF
10263 +
10264 +
10265 +# Let the site file select an alternate cache file if it wants to.
10266 +# Prefer explicitly selected file to automatically selected ones.
10267 +if test -z "$CONFIG_SITE"; then
10268 + if test "x$prefix" != xNONE; then
10269 + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
10270 + else
10271 + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
10272 fi
10273 fi
10274 -fi
10275 -fi
10276 -CC="$ac_cv_prog_CC"
10277 -if test -n "$CC"; then
10278 - echo "$ac_t""$CC" 1>&6
10279 -else
10280 - echo "$ac_t""no" 1>&6
10281 -fi
10282 +for ac_site_file in $CONFIG_SITE; do
10283 + if test -r "$ac_site_file"; then
10284 + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
10285 +echo "$as_me: loading site script $ac_site_file" >&6;}
10286 + sed 's/^/| /' "$ac_site_file" >&5
10287 + . "$ac_site_file"
10288 + fi
10289 +done
10290
10291 - if test -z "$CC"; then
10292 - case "`uname -s`" in
10293 - *win32* | *WIN32*)
10294 - # Extract the first word of "cl", so it can be a program name with args.
10295 -set dummy cl; ac_word=$2
10296 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10297 -echo "configure:746: checking for $ac_word" >&5
10298 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
10299 - echo $ac_n "(cached) $ac_c" 1>&6
10300 -else
10301 - if test -n "$CC"; then
10302 - ac_cv_prog_CC="$CC" # Let the user override the test.
10303 -else
10304 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10305 - ac_dummy="$PATH"
10306 - for ac_dir in $ac_dummy; do
10307 - test -z "$ac_dir" && ac_dir=.
10308 - if test -f $ac_dir/$ac_word; then
10309 - ac_cv_prog_CC="cl"
10310 - break
10311 - fi
10312 - done
10313 - IFS="$ac_save_ifs"
10314 -fi
10315 -fi
10316 -CC="$ac_cv_prog_CC"
10317 -if test -n "$CC"; then
10318 - echo "$ac_t""$CC" 1>&6
10319 +if test -r "$cache_file"; then
10320 + # Some versions of bash will fail to source /dev/null (special
10321 + # files actually), so we avoid doing that.
10322 + if test -f "$cache_file"; then
10323 + { echo "$as_me:$LINENO: loading cache $cache_file" >&5
10324 +echo "$as_me: loading cache $cache_file" >&6;}
10325 + case $cache_file in
10326 + [\\/]* | ?:[\\/]* ) . $cache_file;;
10327 + *) . ./$cache_file;;
10328 + esac
10329 + fi
10330 else
10331 - echo "$ac_t""no" 1>&6
10332 -fi
10333 - ;;
10334 + { echo "$as_me:$LINENO: creating cache $cache_file" >&5
10335 +echo "$as_me: creating cache $cache_file" >&6;}
10336 + >$cache_file
10337 +fi
10338 +
10339 +# Check that the precious variables saved in the cache have kept the same
10340 +# value.
10341 +ac_cache_corrupted=false
10342 +for ac_var in `(set) 2>&1 |
10343 + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
10344 + eval ac_old_set=\$ac_cv_env_${ac_var}_set
10345 + eval ac_new_set=\$ac_env_${ac_var}_set
10346 + eval ac_old_val="\$ac_cv_env_${ac_var}_value"
10347 + eval ac_new_val="\$ac_env_${ac_var}_value"
10348 + case $ac_old_set,$ac_new_set in
10349 + set,)
10350 + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
10351 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
10352 + ac_cache_corrupted=: ;;
10353 + ,set)
10354 + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
10355 +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
10356 + ac_cache_corrupted=: ;;
10357 + ,);;
10358 + *)
10359 + if test "x$ac_old_val" != "x$ac_new_val"; then
10360 + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
10361 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
10362 + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
10363 +echo "$as_me: former value: $ac_old_val" >&2;}
10364 + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
10365 +echo "$as_me: current value: $ac_new_val" >&2;}
10366 + ac_cache_corrupted=:
10367 + fi;;
10368 + esac
10369 + # Pass precious variables to config.status.
10370 + if test "$ac_new_set" = set; then
10371 + case $ac_new_val in
10372 + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
10373 + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
10374 + *) ac_arg=$ac_var=$ac_new_val ;;
10375 + esac
10376 + case " $ac_configure_args " in
10377 + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
10378 + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
10379 esac
10380 fi
10381 - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
10382 +done
10383 +if $ac_cache_corrupted; then
10384 + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
10385 +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
10386 + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
10387 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
10388 + { (exit 1); exit 1; }; }
10389 fi
10390
10391 -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
10392 -echo "configure:778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10393 -
10394 ac_ext=c
10395 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10396 ac_cpp='$CPP $CPPFLAGS'
10397 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10398 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10399 -cross_compiling=$ac_cv_prog_cc_cross
10400 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10401 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10402 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
10403
10404 -cat > conftest.$ac_ext << EOF
10405
10406 -#line 789 "configure"
10407 -#include "confdefs.h"
10408
10409 -main(){return(0);}
10410 -EOF
10411 -if { (eval echo configure:794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10412 - ac_cv_prog_cc_works=yes
10413 - # If we can't run a trivial program, we are probably using a cross compiler.
10414 - if (./conftest; exit) 2>/dev/null; then
10415 - ac_cv_prog_cc_cross=no
10416 - else
10417 - ac_cv_prog_cc_cross=yes
10418 - fi
10419 -else
10420 - echo "configure: failed program was:" >&5
10421 - cat conftest.$ac_ext >&5
10422 - ac_cv_prog_cc_works=no
10423 -fi
10424 -rm -fr conftest*
10425 -ac_ext=c
10426 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10427 -ac_cpp='$CPP $CPPFLAGS'
10428 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10429 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10430 -cross_compiling=$ac_cv_prog_cc_cross
10431 -
10432 -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
10433 -if test $ac_cv_prog_cc_works = no; then
10434 - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
10435 -fi
10436 -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
10437 -echo "configure:820: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10438 -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
10439 -cross_compiling=$ac_cv_prog_cc_cross
10440 -
10441 -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
10442 -echo "configure:825: checking whether we are using GNU C" >&5
10443 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
10444 - echo $ac_n "(cached) $ac_c" 1>&6
10445 -else
10446 - cat > conftest.c <<EOF
10447 -#ifdef __GNUC__
10448 - yes;
10449 -#endif
10450 -EOF
10451 -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10452 - ac_cv_prog_gcc=yes
10453 -else
10454 - ac_cv_prog_gcc=no
10455 -fi
10456 -fi
10457
10458 -echo "$ac_t""$ac_cv_prog_gcc" 1>&6
10459
10460 -if test $ac_cv_prog_gcc = yes; then
10461 - GCC=yes
10462 -else
10463 - GCC=
10464 -fi
10465
10466 -ac_test_CFLAGS="${CFLAGS+set}"
10467 -ac_save_CFLAGS="$CFLAGS"
10468 -CFLAGS=
10469 -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
10470 -echo "configure:853: checking whether ${CC-cc} accepts -g" >&5
10471 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
10472 - echo $ac_n "(cached) $ac_c" 1>&6
10473 -else
10474 - echo 'void f(){}' > conftest.c
10475 -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10476 - ac_cv_prog_cc_g=yes
10477 -else
10478 - ac_cv_prog_cc_g=no
10479 -fi
10480 -rm -f conftest*
10481
10482 -fi
10483
10484 -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10485 -if test "$ac_test_CFLAGS" = set; then
10486 - CFLAGS="$ac_save_CFLAGS"
10487 -elif test $ac_cv_prog_cc_g = yes; then
10488 - if test "$GCC" = yes; then
10489 - CFLAGS="-g -O2"
10490 - else
10491 - CFLAGS="-g"
10492 - fi
10493 -else
10494 - if test "$GCC" = yes; then
10495 - CFLAGS="-O2"
10496 - else
10497 - CFLAGS=
10498 - fi
10499 -fi
10500
10501
10502 -echo $ac_n "checking for working const""... $ac_c" 1>&6
10503 -echo "configure:886: checking for working const" >&5
10504 -if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10505 - echo $ac_n "(cached) $ac_c" 1>&6
10506 -else
10507 - cat > conftest.$ac_ext <<EOF
10508 -#line 891 "configure"
10509 -#include "confdefs.h"
10510
10511 -int main() {
10512
10513 -/* Ultrix mips cc rejects this. */
10514 -typedef int charset[2]; const charset x;
10515 -/* SunOS 4.1.1 cc rejects this. */
10516 -char const *const *ccp;
10517 -char **p;
10518 -/* NEC SVR4.0.2 mips cc rejects this. */
10519 -struct point {int x, y;};
10520 -static struct point const zero = {0,0};
10521 -/* AIX XL C 1.02.0.0 rejects this.
10522 - It does not let you subtract one const X* pointer from another in an arm
10523 - of an if-expression whose if-part is not a constant expression */
10524 -const char *g = "string";
10525 -ccp = &g + (g ? g-g : 0);
10526 -/* HPUX 7.0 cc rejects these. */
10527 -++ccp;
10528 -p = (char**) ccp;
10529 -ccp = (char const *const *) p;
10530 -{ /* SCO 3.2v4 cc rejects this. */
10531 - char *t;
10532 - char const *s = 0 ? (char *) 0 : (char const *) 0;
10533 -
10534 - *t++ = 0;
10535 -}
10536 -{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10537 - int x[] = {25, 17};
10538 - const int *foo = &x[0];
10539 - ++foo;
10540 -}
10541 -{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10542 - typedef const int *iptr;
10543 - iptr p = 0;
10544 - ++p;
10545 -}
10546 -{ /* AIX XL C 1.02.0.0 rejects this saying
10547 - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10548 - struct s { int j; const int *ap[3]; };
10549 - struct s *b; b->j = 5;
10550 -}
10551 -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10552 - const int foo = 10;
10553 -}
10554
10555 -; return 0; }
10556 -EOF
10557 -if { (eval echo configure:940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10558 - rm -rf conftest*
10559 - ac_cv_c_const=yes
10560 -else
10561 - echo "configure: failed program was:" >&5
10562 - cat conftest.$ac_ext >&5
10563 - rm -rf conftest*
10564 - ac_cv_c_const=no
10565 -fi
10566 -rm -f conftest*
10567 -fi
10568
10569 -echo "$ac_t""$ac_cv_c_const" 1>&6
10570 -if test $ac_cv_c_const = no; then
10571 - cat >> confdefs.h <<\EOF
10572 -#define const
10573 -EOF
10574
10575 -fi
10576
10577
10578
10579 -if test $ac_cv_prog_gcc = yes; then
10580 - CCOPTS='-O2 -funroll-loops -fomit-frame-pointer -Wall'
10581 - CFLAGS="$CCOPTS"
10582 -fi
10583
10584 -# Check whether --with-pf_packet or --without-pf_packet was given.
10585 -if test "${with_pf_packet+set}" = set; then
10586 - withval="$with_pf_packet"
10587 - \
10588 - with_pf_packet=yes
10589 -else
10590 - with_pf_packet=no
10591 -fi
10592
10593 +ac_aux_dir=
10594 +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
10595 + if test -f $ac_dir/install-sh; then
10596 + ac_aux_dir=$ac_dir
10597 + ac_install_sh="$ac_aux_dir/install-sh -c"
10598 + break
10599 + elif test -f $ac_dir/install.sh; then
10600 + ac_aux_dir=$ac_dir
10601 + ac_install_sh="$ac_aux_dir/install.sh -c"
10602 + break
10603 + elif test -f $ac_dir/shtool; then
10604 + ac_aux_dir=$ac_dir
10605 + ac_install_sh="$ac_aux_dir/shtool install -c"
10606 + break
10607 + fi
10608 +done
10609 +if test -z "$ac_aux_dir"; then
10610 + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
10611 +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
10612 + { (exit 1); exit 1; }; }
10613 +fi
10614 +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
10615 +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
10616 +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
10617
10618 -# Check whether --with-fast_x86_check or --without-fast_x86_check was given.
10619 -if test "${with_fast_x86_check+set}" = set; then
10620 - withval="$with_fast_x86_check"
10621 - \
10622 - cat >> confdefs.h <<\EOF
10623 -#define LIBNET_FAST_X86_CHECK 1
10624 -EOF
10625 +# Make sure we can run config.sub.
10626 +$ac_config_sub sun4 >/dev/null 2>&1 ||
10627 + { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
10628 +echo "$as_me: error: cannot run $ac_config_sub" >&2;}
10629 + { (exit 1); exit 1; }; }
10630 +
10631 +echo "$as_me:$LINENO: checking build system type" >&5
10632 +echo $ECHO_N "checking build system type... $ECHO_C" >&6
10633 +if test "${ac_cv_build+set}" = set; then
10634 + echo $ECHO_N "(cached) $ECHO_C" >&6
10635 +else
10636 + ac_cv_build_alias=$build_alias
10637 +test -z "$ac_cv_build_alias" &&
10638 + ac_cv_build_alias=`$ac_config_guess`
10639 +test -z "$ac_cv_build_alias" &&
10640 + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
10641 +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
10642 + { (exit 1); exit 1; }; }
10643 +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
10644 + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
10645 +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
10646 + { (exit 1); exit 1; }; }
10647 +
10648 +fi
10649 +echo "$as_me:$LINENO: result: $ac_cv_build" >&5
10650 +echo "${ECHO_T}$ac_cv_build" >&6
10651 +build=$ac_cv_build
10652 +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
10653 +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
10654 +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
10655 +
10656 +
10657 +echo "$as_me:$LINENO: checking host system type" >&5
10658 +echo $ECHO_N "checking host system type... $ECHO_C" >&6
10659 +if test "${ac_cv_host+set}" = set; then
10660 + echo $ECHO_N "(cached) $ECHO_C" >&6
10661 +else
10662 + ac_cv_host_alias=$host_alias
10663 +test -z "$ac_cv_host_alias" &&
10664 + ac_cv_host_alias=$ac_cv_build_alias
10665 +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
10666 + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
10667 +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
10668 + { (exit 1); exit 1; }; }
10669 +
10670 +fi
10671 +echo "$as_me:$LINENO: result: $ac_cv_host" >&5
10672 +echo "${ECHO_T}$ac_cv_host" >&6
10673 +host=$ac_cv_host
10674 +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
10675 +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
10676 +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
10677 +
10678 +
10679 +echo "$as_me:$LINENO: checking target system type" >&5
10680 +echo $ECHO_N "checking target system type... $ECHO_C" >&6
10681 +if test "${ac_cv_target+set}" = set; then
10682 + echo $ECHO_N "(cached) $ECHO_C" >&6
10683 +else
10684 + ac_cv_target_alias=$target_alias
10685 +test "x$ac_cv_target_alias" = "x" &&
10686 + ac_cv_target_alias=$ac_cv_host_alias
10687 +ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
10688 + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
10689 +echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
10690 + { (exit 1); exit 1; }; }
10691 +
10692 +fi
10693 +echo "$as_me:$LINENO: result: $ac_cv_target" >&5
10694 +echo "${ECHO_T}$ac_cv_target" >&6
10695 +target=$ac_cv_target
10696 +target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
10697 +target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
10698 +target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
10699
10700 -fi
10701 +
10702 +# The aliases save the names the user supplied, while $host etc.
10703 +# will get canonicalized.
10704 +test -n "$target_alias" &&
10705 + test "$program_prefix$program_suffix$program_transform_name" = \
10706 + NONENONEs,x,x, &&
10707 + program_prefix=${target_alias}-
10708
10709
10710 +am__api_version="1.8"
10711 # Find a good install program. We prefer a C program (faster),
10712 # so one script is as good as another. But avoid the broken or
10713 # incompatible versions:
10714 @@ -991,330 +1590,7067 @@
10715 # SunOS /usr/etc/install
10716 # IRIX /sbin/install
10717 # AIX /bin/install
10718 +# AmigaOS /C/install, which installs bootblocks on floppy discs
10719 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10720 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10721 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10722 +# OS/2's system install, which has a completely different semantic
10723 # ./install, which can be erroneously created by make from ./install.sh.
10724 -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
10725 -echo "configure:1000: checking for a BSD compatible install" >&5
10726 +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10727 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10728 if test -z "$INSTALL"; then
10729 -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
10730 - echo $ac_n "(cached) $ac_c" 1>&6
10731 +if test "${ac_cv_path_install+set}" = set; then
10732 + echo $ECHO_N "(cached) $ECHO_C" >&6
10733 else
10734 - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10735 - for ac_dir in $PATH; do
10736 - # Account for people who put trailing slashes in PATH elements.
10737 - case "$ac_dir/" in
10738 - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10739 - *)
10740 - # OSF1 and SCO ODT 3.0 have their own names for install.
10741 - # Don't use installbsd from OSF since it installs stuff as root
10742 - # by default.
10743 - for ac_prog in ginstall scoinst install; do
10744 - if test -f $ac_dir/$ac_prog; then
10745 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10746 +for as_dir in $PATH
10747 +do
10748 + IFS=$as_save_IFS
10749 + test -z "$as_dir" && as_dir=.
10750 + # Account for people who put trailing slashes in PATH elements.
10751 +case $as_dir/ in
10752 + ./ | .// | /cC/* | \
10753 + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10754 + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10755 + /usr/ucb/* ) ;;
10756 + *)
10757 + # OSF1 and SCO ODT 3.0 have their own names for install.
10758 + # Don't use installbsd from OSF since it installs stuff as root
10759 + # by default.
10760 + for ac_prog in ginstall scoinst install; do
10761 + for ac_exec_ext in '' $ac_executable_extensions; do
10762 + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10763 if test $ac_prog = install &&
10764 - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10765 + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10766 # AIX install. It has an incompatible calling convention.
10767 :
10768 + elif test $ac_prog = install &&
10769 + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10770 + # program-specific install script used by HP pwplus--don't use.
10771 + :
10772 else
10773 - ac_cv_path_install="$ac_dir/$ac_prog -c"
10774 - break 2
10775 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10776 + break 3
10777 fi
10778 fi
10779 done
10780 - ;;
10781 - esac
10782 - done
10783 - IFS="$ac_save_IFS"
10784 + done
10785 + ;;
10786 +esac
10787 +done
10788 +
10789
10790 fi
10791 if test "${ac_cv_path_install+set}" = set; then
10792 - INSTALL="$ac_cv_path_install"
10793 + INSTALL=$ac_cv_path_install
10794 else
10795 # As a last resort, use the slow shell script. We don't cache a
10796 # path for INSTALL within a source directory, because that will
10797 # break other packages using the cache if that directory is
10798 # removed, or if the path is relative.
10799 - INSTALL="$ac_install_sh"
10800 + INSTALL=$ac_install_sh
10801 fi
10802 fi
10803 -echo "$ac_t""$INSTALL" 1>&6
10804 +echo "$as_me:$LINENO: result: $INSTALL" >&5
10805 +echo "${ECHO_T}$INSTALL" >&6
10806
10807 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10808 # It thinks the first close brace ends the variable substitution.
10809 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10810
10811 -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10812 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10813
10814 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10815
10816 -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
10817 -echo "configure:1053: checking whether ${MAKE-make} sets \${MAKE}" >&5
10818 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
10819 -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
10820 - echo $ac_n "(cached) $ac_c" 1>&6
10821 -else
10822 - cat > conftestmake <<\EOF
10823 -all:
10824 - @echo 'ac_maketemp="${MAKE}"'
10825 -EOF
10826 -# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10827 -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10828 -if test -n "$ac_maketemp"; then
10829 - eval ac_cv_prog_make_${ac_make}_set=yes
10830 -else
10831 - eval ac_cv_prog_make_${ac_make}_set=no
10832 -fi
10833 -rm -f conftestmake
10834 -fi
10835 -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
10836 - echo "$ac_t""yes" 1>&6
10837 - SET_MAKE=
10838 -else
10839 - echo "$ac_t""no" 1>&6
10840 - SET_MAKE="MAKE=${MAKE-make}"
10841 +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
10842 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
10843 +# Just in case
10844 +sleep 1
10845 +echo timestamp > conftest.file
10846 +# Do `set' in a subshell so we don't clobber the current shell's
10847 +# arguments. Must try -L first in case configure is actually a
10848 +# symlink; some systems play weird games with the mod time of symlinks
10849 +# (eg FreeBSD returns the mod time of the symlink's containing
10850 +# directory).
10851 +if (
10852 + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
10853 + if test "$*" = "X"; then
10854 + # -L didn't work.
10855 + set X `ls -t $srcdir/configure conftest.file`
10856 + fi
10857 + rm -f conftest.file
10858 + if test "$*" != "X $srcdir/configure conftest.file" \
10859 + && test "$*" != "X conftest.file $srcdir/configure"; then
10860 +
10861 + # If neither matched, then we have a broken ls. This can happen
10862 + # if, for instance, CONFIG_SHELL is bash and it inherits a
10863 + # broken ls alias from the environment. This has actually
10864 + # happened. Such a system could not be considered "sane".
10865 + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
10866 +alias in your environment" >&5
10867 +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
10868 +alias in your environment" >&2;}
10869 + { (exit 1); exit 1; }; }
10870 + fi
10871 +
10872 + test "$2" = conftest.file
10873 + )
10874 +then
10875 + # Ok.
10876 + :
10877 +else
10878 + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
10879 +Check your system clock" >&5
10880 +echo "$as_me: error: newly created file is older than distributed files!
10881 +Check your system clock" >&2;}
10882 + { (exit 1); exit 1; }; }
10883 +fi
10884 +echo "$as_me:$LINENO: result: yes" >&5
10885 +echo "${ECHO_T}yes" >&6
10886 +test "$program_prefix" != NONE &&
10887 + program_transform_name="s,^,$program_prefix,;$program_transform_name"
10888 +# Use a double $ so make ignores it.
10889 +test "$program_suffix" != NONE &&
10890 + program_transform_name="s,\$,$program_suffix,;$program_transform_name"
10891 +# Double any \ or $. echo might interpret backslashes.
10892 +# By default was `s,x,x', remove it if useless.
10893 +cat <<\_ACEOF >conftest.sed
10894 +s/[\\$]/&&/g;s/;s,x,x,$//
10895 +_ACEOF
10896 +program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
10897 +rm conftest.sed
10898 +
10899 +# expand $ac_aux_dir to an absolute path
10900 +am_aux_dir=`cd $ac_aux_dir && pwd`
10901 +
10902 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
10903 +# Use eval to expand $SHELL
10904 +if eval "$MISSING --run true"; then
10905 + am_missing_run="$MISSING --run "
10906 +else
10907 + am_missing_run=
10908 + { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
10909 +echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10910 +fi
10911 +
10912 +if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
10913 + # Keeping the `.' argument allows $(mkdir_p) to be used without
10914 + # argument. Indeed, we sometimes output rules like
10915 + # $(mkdir_p) $(somedir)
10916 + # where $(somedir) is conditionally defined.
10917 + # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
10918 + # expensive solution, as it forces Make to start a sub-shell.)
10919 + mkdir_p='mkdir -p -- .'
10920 +else
10921 + # On NextStep and OpenStep, the `mkdir' command does not
10922 + # recognize any option. It will interpret all options as
10923 + # directories to create, and then abort because `.' already
10924 + # exists.
10925 + for d in ./-p ./--version;
10926 + do
10927 + test -d $d && rmdir $d
10928 + done
10929 + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
10930 + if test -f "$ac_aux_dir/mkinstalldirs"; then
10931 + mkdir_p='$(mkinstalldirs)'
10932 + else
10933 + mkdir_p='$(install_sh) -d'
10934 + fi
10935 fi
10936
10937 -for ac_prog in ranlib
10938 +for ac_prog in gawk mawk nawk awk
10939 do
10940 -# Extract the first word of "$ac_prog", so it can be a program name with args.
10941 + # Extract the first word of "$ac_prog", so it can be a program name with args.
10942 set dummy $ac_prog; ac_word=$2
10943 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10944 -echo "configure:1084: checking for $ac_word" >&5
10945 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
10946 - echo $ac_n "(cached) $ac_c" 1>&6
10947 +echo "$as_me:$LINENO: checking for $ac_word" >&5
10948 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10949 +if test "${ac_cv_prog_AWK+set}" = set; then
10950 + echo $ECHO_N "(cached) $ECHO_C" >&6
10951 else
10952 - if test -n "$RANLIB"; then
10953 - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10954 + if test -n "$AWK"; then
10955 + ac_cv_prog_AWK="$AWK" # Let the user override the test.
10956 else
10957 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10958 - ac_dummy="$PATH"
10959 - for ac_dir in $ac_dummy; do
10960 - test -z "$ac_dir" && ac_dir=.
10961 - if test -f $ac_dir/$ac_word; then
10962 - ac_cv_prog_RANLIB="$ac_prog"
10963 - break
10964 - fi
10965 - done
10966 - IFS="$ac_save_ifs"
10967 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10968 +for as_dir in $PATH
10969 +do
10970 + IFS=$as_save_IFS
10971 + test -z "$as_dir" && as_dir=.
10972 + for ac_exec_ext in '' $ac_executable_extensions; do
10973 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10974 + ac_cv_prog_AWK="$ac_prog"
10975 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10976 + break 2
10977 + fi
10978 +done
10979 +done
10980 +
10981 fi
10982 fi
10983 -RANLIB="$ac_cv_prog_RANLIB"
10984 -if test -n "$RANLIB"; then
10985 - echo "$ac_t""$RANLIB" 1>&6
10986 +AWK=$ac_cv_prog_AWK
10987 +if test -n "$AWK"; then
10988 + echo "$as_me:$LINENO: result: $AWK" >&5
10989 +echo "${ECHO_T}$AWK" >&6
10990 else
10991 - echo "$ac_t""no" 1>&6
10992 + echo "$as_me:$LINENO: result: no" >&5
10993 +echo "${ECHO_T}no" >&6
10994 fi
10995
10996 -test -n "$RANLIB" && break
10997 + test -n "$AWK" && break
10998 done
10999 -test -n "$RANLIB" || RANLIB="@true"
11000
11001 -for ac_prog in ar
11002 -do
11003 -# Extract the first word of "$ac_prog", so it can be a program name with args.
11004 -set dummy $ac_prog; ac_word=$2
11005 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11006 -echo "configure:1119: checking for $ac_word" >&5
11007 -if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
11008 - echo $ac_n "(cached) $ac_c" 1>&6
11009 +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11010 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
11011 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
11012 +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
11013 + echo $ECHO_N "(cached) $ECHO_C" >&6
11014 else
11015 - if test -n "$AR"; then
11016 - ac_cv_prog_AR="$AR" # Let the user override the test.
11017 + cat >conftest.make <<\_ACEOF
11018 +all:
11019 + @echo 'ac_maketemp="$(MAKE)"'
11020 +_ACEOF
11021 +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11022 +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
11023 +if test -n "$ac_maketemp"; then
11024 + eval ac_cv_prog_make_${ac_make}_set=yes
11025 else
11026 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11027 - ac_dummy="$PATH"
11028 - for ac_dir in $ac_dummy; do
11029 - test -z "$ac_dir" && ac_dir=.
11030 - if test -f $ac_dir/$ac_word; then
11031 - ac_cv_prog_AR="$ac_prog"
11032 - break
11033 - fi
11034 - done
11035 - IFS="$ac_save_ifs"
11036 + eval ac_cv_prog_make_${ac_make}_set=no
11037 fi
11038 +rm -f conftest.make
11039 fi
11040 -AR="$ac_cv_prog_AR"
11041 -if test -n "$AR"; then
11042 - echo "$ac_t""$AR" 1>&6
11043 +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
11044 + echo "$as_me:$LINENO: result: yes" >&5
11045 +echo "${ECHO_T}yes" >&6
11046 + SET_MAKE=
11047 else
11048 - echo "$ac_t""no" 1>&6
11049 + echo "$as_me:$LINENO: result: no" >&5
11050 +echo "${ECHO_T}no" >&6
11051 + SET_MAKE="MAKE=${MAKE-make}"
11052 fi
11053
11054 -test -n "$AR" && break
11055 -done
11056 -test -n "$AR" || AR="@true"
11057 +rm -rf .tst 2>/dev/null
11058 +mkdir .tst 2>/dev/null
11059 +if test -d .tst; then
11060 + am__leading_dot=.
11061 +else
11062 + am__leading_dot=_
11063 +fi
11064 +rmdir .tst 2>/dev/null
11065 +
11066 +# test to see if srcdir already configured
11067 +if test "`cd $srcdir && pwd`" != "`pwd`" &&
11068 + test -f $srcdir/config.status; then
11069 + { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
11070 +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
11071 + { (exit 1); exit 1; }; }
11072 +fi
11073 +
11074 +# test whether we have cygpath
11075 +if test -z "$CYGPATH_W"; then
11076 + if (cygpath --version) >/dev/null 2>/dev/null; then
11077 + CYGPATH_W='cygpath -w'
11078 + else
11079 + CYGPATH_W=echo
11080 + fi
11081 +fi
11082 +
11083 +
11084 +# Define the identity of the package.
11085 + PACKAGE=libnet
11086 + VERSION=1.0.2a
11087 +
11088 +
11089 +cat >>confdefs.h <<_ACEOF
11090 +#define PACKAGE "$PACKAGE"
11091 +_ACEOF
11092 +
11093 +
11094 +cat >>confdefs.h <<_ACEOF
11095 +#define VERSION "$VERSION"
11096 +_ACEOF
11097 +
11098 +# Some tools Automake needs.
11099 +
11100 +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11101 +
11102 +
11103 +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11104 +
11105 +
11106 +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11107 +
11108 +
11109 +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11110 +
11111 +
11112 +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11113 +
11114 +
11115 +AMTAR=${AMTAR-"${am_missing_run}tar"}
11116 +
11117 +install_sh=${install_sh-"$am_aux_dir/install-sh"}
11118 +
11119 +# Installed binaries are usually stripped using `strip' when the user
11120 +# run `make install-strip'. However `strip' might not be the right
11121 +# tool to use in cross-compilation environments, therefore Automake
11122 +# will honor the `STRIP' environment variable to overrule this program.
11123 +if test "$cross_compiling" != no; then
11124 + if test -n "$ac_tool_prefix"; then
11125 + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11126 +set dummy ${ac_tool_prefix}strip; ac_word=$2
11127 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11128 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11129 +if test "${ac_cv_prog_STRIP+set}" = set; then
11130 + echo $ECHO_N "(cached) $ECHO_C" >&6
11131 +else
11132 + if test -n "$STRIP"; then
11133 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11134 +else
11135 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11136 +for as_dir in $PATH
11137 +do
11138 + IFS=$as_save_IFS
11139 + test -z "$as_dir" && as_dir=.
11140 + for ac_exec_ext in '' $ac_executable_extensions; do
11141 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11142 + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11143 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11144 + break 2
11145 + fi
11146 +done
11147 +done
11148 +
11149 +fi
11150 +fi
11151 +STRIP=$ac_cv_prog_STRIP
11152 +if test -n "$STRIP"; then
11153 + echo "$as_me:$LINENO: result: $STRIP" >&5
11154 +echo "${ECHO_T}$STRIP" >&6
11155 +else
11156 + echo "$as_me:$LINENO: result: no" >&5
11157 +echo "${ECHO_T}no" >&6
11158 +fi
11159 +
11160 +fi
11161 +if test -z "$ac_cv_prog_STRIP"; then
11162 + ac_ct_STRIP=$STRIP
11163 + # Extract the first word of "strip", so it can be a program name with args.
11164 +set dummy strip; ac_word=$2
11165 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11166 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11167 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11168 + echo $ECHO_N "(cached) $ECHO_C" >&6
11169 +else
11170 + if test -n "$ac_ct_STRIP"; then
11171 + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11172 +else
11173 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11174 +for as_dir in $PATH
11175 +do
11176 + IFS=$as_save_IFS
11177 + test -z "$as_dir" && as_dir=.
11178 + for ac_exec_ext in '' $ac_executable_extensions; do
11179 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11180 + ac_cv_prog_ac_ct_STRIP="strip"
11181 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11182 + break 2
11183 + fi
11184 +done
11185 +done
11186 +
11187 + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11188 +fi
11189 +fi
11190 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11191 +if test -n "$ac_ct_STRIP"; then
11192 + echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11193 +echo "${ECHO_T}$ac_ct_STRIP" >&6
11194 +else
11195 + echo "$as_me:$LINENO: result: no" >&5
11196 +echo "${ECHO_T}no" >&6
11197 +fi
11198 +
11199 + STRIP=$ac_ct_STRIP
11200 +else
11201 + STRIP="$ac_cv_prog_STRIP"
11202 +fi
11203 +
11204 +fi
11205 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
11206 +
11207 +# We need awk for the "check" target. The system "awk" is bad on
11208 +# some platforms.
11209 +
11210 +
11211 +
11212 +
11213 +VER=`cat VERSION`
11214 +echo "$as_me:$LINENO: result: Beginning autoconfiguration process for libnet-$VER..." >&5
11215 +echo "${ECHO_T}Beginning autoconfiguration process for libnet-$VER..." >&6
11216 +
11217 +
11218 +
11219 +
11220 +
11221 +
11222 +
11223 +
11224 +
11225 +
11226 +
11227 +
11228 +
11229 +
11230 +
11231 +if test "$prefix" = "NONE"; then
11232 + prefix="/usr"
11233 +fi
11234 +
11235 +if test "$mandir" = "NONE"; then
11236 + mandir="$prefix/man"
11237 +fi
11238 +
11239 +ac_ext=c
11240 +ac_cpp='$CPP $CPPFLAGS'
11241 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11242 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11243 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
11244 +if test -n "$ac_tool_prefix"; then
11245 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11246 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
11247 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11248 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11249 +if test "${ac_cv_prog_CC+set}" = set; then
11250 + echo $ECHO_N "(cached) $ECHO_C" >&6
11251 +else
11252 + if test -n "$CC"; then
11253 + ac_cv_prog_CC="$CC" # Let the user override the test.
11254 +else
11255 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256 +for as_dir in $PATH
11257 +do
11258 + IFS=$as_save_IFS
11259 + test -z "$as_dir" && as_dir=.
11260 + for ac_exec_ext in '' $ac_executable_extensions; do
11261 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11262 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
11263 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11264 + break 2
11265 + fi
11266 +done
11267 +done
11268 +
11269 +fi
11270 +fi
11271 +CC=$ac_cv_prog_CC
11272 +if test -n "$CC"; then
11273 + echo "$as_me:$LINENO: result: $CC" >&5
11274 +echo "${ECHO_T}$CC" >&6
11275 +else
11276 + echo "$as_me:$LINENO: result: no" >&5
11277 +echo "${ECHO_T}no" >&6
11278 +fi
11279 +
11280 +fi
11281 +if test -z "$ac_cv_prog_CC"; then
11282 + ac_ct_CC=$CC
11283 + # Extract the first word of "gcc", so it can be a program name with args.
11284 +set dummy gcc; ac_word=$2
11285 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11286 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11287 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11288 + echo $ECHO_N "(cached) $ECHO_C" >&6
11289 +else
11290 + if test -n "$ac_ct_CC"; then
11291 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11292 +else
11293 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11294 +for as_dir in $PATH
11295 +do
11296 + IFS=$as_save_IFS
11297 + test -z "$as_dir" && as_dir=.
11298 + for ac_exec_ext in '' $ac_executable_extensions; do
11299 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11300 + ac_cv_prog_ac_ct_CC="gcc"
11301 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11302 + break 2
11303 + fi
11304 +done
11305 +done
11306 +
11307 +fi
11308 +fi
11309 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
11310 +if test -n "$ac_ct_CC"; then
11311 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11312 +echo "${ECHO_T}$ac_ct_CC" >&6
11313 +else
11314 + echo "$as_me:$LINENO: result: no" >&5
11315 +echo "${ECHO_T}no" >&6
11316 +fi
11317 +
11318 + CC=$ac_ct_CC
11319 +else
11320 + CC="$ac_cv_prog_CC"
11321 +fi
11322 +
11323 +if test -z "$CC"; then
11324 + if test -n "$ac_tool_prefix"; then
11325 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11326 +set dummy ${ac_tool_prefix}cc; ac_word=$2
11327 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11328 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11329 +if test "${ac_cv_prog_CC+set}" = set; then
11330 + echo $ECHO_N "(cached) $ECHO_C" >&6
11331 +else
11332 + if test -n "$CC"; then
11333 + ac_cv_prog_CC="$CC" # Let the user override the test.
11334 +else
11335 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11336 +for as_dir in $PATH
11337 +do
11338 + IFS=$as_save_IFS
11339 + test -z "$as_dir" && as_dir=.
11340 + for ac_exec_ext in '' $ac_executable_extensions; do
11341 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11342 + ac_cv_prog_CC="${ac_tool_prefix}cc"
11343 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11344 + break 2
11345 + fi
11346 +done
11347 +done
11348 +
11349 +fi
11350 +fi
11351 +CC=$ac_cv_prog_CC
11352 +if test -n "$CC"; then
11353 + echo "$as_me:$LINENO: result: $CC" >&5
11354 +echo "${ECHO_T}$CC" >&6
11355 +else
11356 + echo "$as_me:$LINENO: result: no" >&5
11357 +echo "${ECHO_T}no" >&6
11358 +fi
11359 +
11360 +fi
11361 +if test -z "$ac_cv_prog_CC"; then
11362 + ac_ct_CC=$CC
11363 + # Extract the first word of "cc", so it can be a program name with args.
11364 +set dummy cc; ac_word=$2
11365 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11366 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11367 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11368 + echo $ECHO_N "(cached) $ECHO_C" >&6
11369 +else
11370 + if test -n "$ac_ct_CC"; then
11371 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11372 +else
11373 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374 +for as_dir in $PATH
11375 +do
11376 + IFS=$as_save_IFS
11377 + test -z "$as_dir" && as_dir=.
11378 + for ac_exec_ext in '' $ac_executable_extensions; do
11379 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11380 + ac_cv_prog_ac_ct_CC="cc"
11381 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11382 + break 2
11383 + fi
11384 +done
11385 +done
11386 +
11387 +fi
11388 +fi
11389 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
11390 +if test -n "$ac_ct_CC"; then
11391 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11392 +echo "${ECHO_T}$ac_ct_CC" >&6
11393 +else
11394 + echo "$as_me:$LINENO: result: no" >&5
11395 +echo "${ECHO_T}no" >&6
11396 +fi
11397 +
11398 + CC=$ac_ct_CC
11399 +else
11400 + CC="$ac_cv_prog_CC"
11401 +fi
11402 +
11403 +fi
11404 +if test -z "$CC"; then
11405 + # Extract the first word of "cc", so it can be a program name with args.
11406 +set dummy cc; ac_word=$2
11407 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11408 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11409 +if test "${ac_cv_prog_CC+set}" = set; then
11410 + echo $ECHO_N "(cached) $ECHO_C" >&6
11411 +else
11412 + if test -n "$CC"; then
11413 + ac_cv_prog_CC="$CC" # Let the user override the test.
11414 +else
11415 + ac_prog_rejected=no
11416 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11417 +for as_dir in $PATH
11418 +do
11419 + IFS=$as_save_IFS
11420 + test -z "$as_dir" && as_dir=.
11421 + for ac_exec_ext in '' $ac_executable_extensions; do
11422 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11423 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11424 + ac_prog_rejected=yes
11425 + continue
11426 + fi
11427 + ac_cv_prog_CC="cc"
11428 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11429 + break 2
11430 + fi
11431 +done
11432 +done
11433 +
11434 +if test $ac_prog_rejected = yes; then
11435 + # We found a bogon in the path, so make sure we never use it.
11436 + set dummy $ac_cv_prog_CC
11437 + shift
11438 + if test $# != 0; then
11439 + # We chose a different compiler from the bogus one.
11440 + # However, it has the same basename, so the bogon will be chosen
11441 + # first if we set CC to just the basename; use the full file name.
11442 + shift
11443 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11444 + fi
11445 +fi
11446 +fi
11447 +fi
11448 +CC=$ac_cv_prog_CC
11449 +if test -n "$CC"; then
11450 + echo "$as_me:$LINENO: result: $CC" >&5
11451 +echo "${ECHO_T}$CC" >&6
11452 +else
11453 + echo "$as_me:$LINENO: result: no" >&5
11454 +echo "${ECHO_T}no" >&6
11455 +fi
11456 +
11457 +fi
11458 +if test -z "$CC"; then
11459 + if test -n "$ac_tool_prefix"; then
11460 + for ac_prog in cl
11461 + do
11462 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11463 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11464 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11465 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11466 +if test "${ac_cv_prog_CC+set}" = set; then
11467 + echo $ECHO_N "(cached) $ECHO_C" >&6
11468 +else
11469 + if test -n "$CC"; then
11470 + ac_cv_prog_CC="$CC" # Let the user override the test.
11471 +else
11472 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11473 +for as_dir in $PATH
11474 +do
11475 + IFS=$as_save_IFS
11476 + test -z "$as_dir" && as_dir=.
11477 + for ac_exec_ext in '' $ac_executable_extensions; do
11478 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11479 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11480 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11481 + break 2
11482 + fi
11483 +done
11484 +done
11485 +
11486 +fi
11487 +fi
11488 +CC=$ac_cv_prog_CC
11489 +if test -n "$CC"; then
11490 + echo "$as_me:$LINENO: result: $CC" >&5
11491 +echo "${ECHO_T}$CC" >&6
11492 +else
11493 + echo "$as_me:$LINENO: result: no" >&5
11494 +echo "${ECHO_T}no" >&6
11495 +fi
11496 +
11497 + test -n "$CC" && break
11498 + done
11499 +fi
11500 +if test -z "$CC"; then
11501 + ac_ct_CC=$CC
11502 + for ac_prog in cl
11503 +do
11504 + # Extract the first word of "$ac_prog", so it can be a program name with args.
11505 +set dummy $ac_prog; ac_word=$2
11506 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11507 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11508 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11509 + echo $ECHO_N "(cached) $ECHO_C" >&6
11510 +else
11511 + if test -n "$ac_ct_CC"; then
11512 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11513 +else
11514 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515 +for as_dir in $PATH
11516 +do
11517 + IFS=$as_save_IFS
11518 + test -z "$as_dir" && as_dir=.
11519 + for ac_exec_ext in '' $ac_executable_extensions; do
11520 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11521 + ac_cv_prog_ac_ct_CC="$ac_prog"
11522 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11523 + break 2
11524 + fi
11525 +done
11526 +done
11527 +
11528 +fi
11529 +fi
11530 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
11531 +if test -n "$ac_ct_CC"; then
11532 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11533 +echo "${ECHO_T}$ac_ct_CC" >&6
11534 +else
11535 + echo "$as_me:$LINENO: result: no" >&5
11536 +echo "${ECHO_T}no" >&6
11537 +fi
11538 +
11539 + test -n "$ac_ct_CC" && break
11540 +done
11541 +
11542 + CC=$ac_ct_CC
11543 +fi
11544 +
11545 +fi
11546 +
11547 +
11548 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11549 +See \`config.log' for more details." >&5
11550 +echo "$as_me: error: no acceptable C compiler found in \$PATH
11551 +See \`config.log' for more details." >&2;}
11552 + { (exit 1); exit 1; }; }
11553 +
11554 +# Provide some information about the compiler.
11555 +echo "$as_me:$LINENO:" \
11556 + "checking for C compiler version" >&5
11557 +ac_compiler=`set X $ac_compile; echo $2`
11558 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11559 + (eval $ac_compiler --version </dev/null >&5) 2>&5
11560 + ac_status=$?
11561 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 + (exit $ac_status); }
11563 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11564 + (eval $ac_compiler -v </dev/null >&5) 2>&5
11565 + ac_status=$?
11566 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 + (exit $ac_status); }
11568 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11569 + (eval $ac_compiler -V </dev/null >&5) 2>&5
11570 + ac_status=$?
11571 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 + (exit $ac_status); }
11573 +
11574 +cat >conftest.$ac_ext <<_ACEOF
11575 +/* confdefs.h. */
11576 +_ACEOF
11577 +cat confdefs.h >>conftest.$ac_ext
11578 +cat >>conftest.$ac_ext <<_ACEOF
11579 +/* end confdefs.h. */
11580 +
11581 +int
11582 +main ()
11583 +{
11584 +
11585 + ;
11586 + return 0;
11587 +}
11588 +_ACEOF
11589 +ac_clean_files_save=$ac_clean_files
11590 +ac_clean_files="$ac_clean_files a.out a.exe b.out"
11591 +# Try to create an executable without -o first, disregard a.out.
11592 +# It will help us diagnose broken compilers, and finding out an intuition
11593 +# of exeext.
11594 +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11595 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
11596 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11597 +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11598 + (eval $ac_link_default) 2>&5
11599 + ac_status=$?
11600 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 + (exit $ac_status); }; then
11602 + # Find the output, starting from the most likely. This scheme is
11603 +# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11604 +# resort.
11605 +
11606 +# Be careful to initialize this variable, since it used to be cached.
11607 +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11608 +ac_cv_exeext=
11609 +# b.out is created by i960 compilers.
11610 +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11611 +do
11612 + test -f "$ac_file" || continue
11613 + case $ac_file in
11614 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
11615 + ;;
11616 + conftest.$ac_ext )
11617 + # This is the source file.
11618 + ;;
11619 + [ab].out )
11620 + # We found the default executable, but exeext='' is most
11621 + # certainly right.
11622 + break;;
11623 + *.* )
11624 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11625 + # FIXME: I believe we export ac_cv_exeext for Libtool,
11626 + # but it would be cool to find out if it's true. Does anybody
11627 + # maintain Libtool? --akim.
11628 + export ac_cv_exeext
11629 + break;;
11630 + * )
11631 + break;;
11632 + esac
11633 +done
11634 +else
11635 + echo "$as_me: failed program was:" >&5
11636 +sed 's/^/| /' conftest.$ac_ext >&5
11637 +
11638 +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11639 +See \`config.log' for more details." >&5
11640 +echo "$as_me: error: C compiler cannot create executables
11641 +See \`config.log' for more details." >&2;}
11642 + { (exit 77); exit 77; }; }
11643 +fi
11644 +
11645 +ac_exeext=$ac_cv_exeext
11646 +echo "$as_me:$LINENO: result: $ac_file" >&5
11647 +echo "${ECHO_T}$ac_file" >&6
11648 +
11649 +# Check the compiler produces executables we can run. If not, either
11650 +# the compiler is broken, or we cross compile.
11651 +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11652 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11653 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11654 +# If not cross compiling, check that we can run a simple program.
11655 +if test "$cross_compiling" != yes; then
11656 + if { ac_try='./$ac_file'
11657 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 + (eval $ac_try) 2>&5
11659 + ac_status=$?
11660 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 + (exit $ac_status); }; }; then
11662 + cross_compiling=no
11663 + else
11664 + if test "$cross_compiling" = maybe; then
11665 + cross_compiling=yes
11666 + else
11667 + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11668 +If you meant to cross compile, use \`--host'.
11669 +See \`config.log' for more details." >&5
11670 +echo "$as_me: error: cannot run C compiled programs.
11671 +If you meant to cross compile, use \`--host'.
11672 +See \`config.log' for more details." >&2;}
11673 + { (exit 1); exit 1; }; }
11674 + fi
11675 + fi
11676 +fi
11677 +echo "$as_me:$LINENO: result: yes" >&5
11678 +echo "${ECHO_T}yes" >&6
11679 +
11680 +rm -f a.out a.exe conftest$ac_cv_exeext b.out
11681 +ac_clean_files=$ac_clean_files_save
11682 +# Check the compiler produces executables we can run. If not, either
11683 +# the compiler is broken, or we cross compile.
11684 +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11685 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11686 +echo "$as_me:$LINENO: result: $cross_compiling" >&5
11687 +echo "${ECHO_T}$cross_compiling" >&6
11688 +
11689 +echo "$as_me:$LINENO: checking for suffix of executables" >&5
11690 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11691 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11692 + (eval $ac_link) 2>&5
11693 + ac_status=$?
11694 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 + (exit $ac_status); }; then
11696 + # If both `conftest.exe' and `conftest' are `present' (well, observable)
11697 +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11698 +# work properly (i.e., refer to `conftest.exe'), while it won't with
11699 +# `rm'.
11700 +for ac_file in conftest.exe conftest conftest.*; do
11701 + test -f "$ac_file" || continue
11702 + case $ac_file in
11703 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11704 + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11705 + export ac_cv_exeext
11706 + break;;
11707 + * ) break;;
11708 + esac
11709 +done
11710 +else
11711 + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11712 +See \`config.log' for more details." >&5
11713 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11714 +See \`config.log' for more details." >&2;}
11715 + { (exit 1); exit 1; }; }
11716 +fi
11717 +
11718 +rm -f conftest$ac_cv_exeext
11719 +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11720 +echo "${ECHO_T}$ac_cv_exeext" >&6
11721 +
11722 +rm -f conftest.$ac_ext
11723 +EXEEXT=$ac_cv_exeext
11724 +ac_exeext=$EXEEXT
11725 +echo "$as_me:$LINENO: checking for suffix of object files" >&5
11726 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11727 +if test "${ac_cv_objext+set}" = set; then
11728 + echo $ECHO_N "(cached) $ECHO_C" >&6
11729 +else
11730 + cat >conftest.$ac_ext <<_ACEOF
11731 +/* confdefs.h. */
11732 +_ACEOF
11733 +cat confdefs.h >>conftest.$ac_ext
11734 +cat >>conftest.$ac_ext <<_ACEOF
11735 +/* end confdefs.h. */
11736 +
11737 +int
11738 +main ()
11739 +{
11740 +
11741 + ;
11742 + return 0;
11743 +}
11744 +_ACEOF
11745 +rm -f conftest.o conftest.obj
11746 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11747 + (eval $ac_compile) 2>&5
11748 + ac_status=$?
11749 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 + (exit $ac_status); }; then
11751 + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11752 + case $ac_file in
11753 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11754 + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11755 + break;;
11756 + esac
11757 +done
11758 +else
11759 + echo "$as_me: failed program was:" >&5
11760 +sed 's/^/| /' conftest.$ac_ext >&5
11761 +
11762 +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11763 +See \`config.log' for more details." >&5
11764 +echo "$as_me: error: cannot compute suffix of object files: cannot compile
11765 +See \`config.log' for more details." >&2;}
11766 + { (exit 1); exit 1; }; }
11767 +fi
11768 +
11769 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
11770 +fi
11771 +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11772 +echo "${ECHO_T}$ac_cv_objext" >&6
11773 +OBJEXT=$ac_cv_objext
11774 +ac_objext=$OBJEXT
11775 +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11776 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11777 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
11778 + echo $ECHO_N "(cached) $ECHO_C" >&6
11779 +else
11780 + cat >conftest.$ac_ext <<_ACEOF
11781 +/* confdefs.h. */
11782 +_ACEOF
11783 +cat confdefs.h >>conftest.$ac_ext
11784 +cat >>conftest.$ac_ext <<_ACEOF
11785 +/* end confdefs.h. */
11786 +
11787 +int
11788 +main ()
11789 +{
11790 +#ifndef __GNUC__
11791 + choke me
11792 +#endif
11793 +
11794 + ;
11795 + return 0;
11796 +}
11797 +_ACEOF
11798 +rm -f conftest.$ac_objext
11799 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11800 + (eval $ac_compile) 2>conftest.er1
11801 + ac_status=$?
11802 + grep -v '^ *+' conftest.er1 >conftest.err
11803 + rm -f conftest.er1
11804 + cat conftest.err >&5
11805 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 + (exit $ac_status); } &&
11807 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11808 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809 + (eval $ac_try) 2>&5
11810 + ac_status=$?
11811 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 + (exit $ac_status); }; } &&
11813 + { ac_try='test -s conftest.$ac_objext'
11814 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 + (eval $ac_try) 2>&5
11816 + ac_status=$?
11817 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 + (exit $ac_status); }; }; then
11819 + ac_compiler_gnu=yes
11820 +else
11821 + echo "$as_me: failed program was:" >&5
11822 +sed 's/^/| /' conftest.$ac_ext >&5
11823 +
11824 +ac_compiler_gnu=no
11825 +fi
11826 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11827 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
11828 +
11829 +fi
11830 +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11831 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11832 +GCC=`test $ac_compiler_gnu = yes && echo yes`
11833 +ac_test_CFLAGS=${CFLAGS+set}
11834 +ac_save_CFLAGS=$CFLAGS
11835 +CFLAGS="-g"
11836 +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11837 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11838 +if test "${ac_cv_prog_cc_g+set}" = set; then
11839 + echo $ECHO_N "(cached) $ECHO_C" >&6
11840 +else
11841 + cat >conftest.$ac_ext <<_ACEOF
11842 +/* confdefs.h. */
11843 +_ACEOF
11844 +cat confdefs.h >>conftest.$ac_ext
11845 +cat >>conftest.$ac_ext <<_ACEOF
11846 +/* end confdefs.h. */
11847 +
11848 +int
11849 +main ()
11850 +{
11851 +
11852 + ;
11853 + return 0;
11854 +}
11855 +_ACEOF
11856 +rm -f conftest.$ac_objext
11857 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11858 + (eval $ac_compile) 2>conftest.er1
11859 + ac_status=$?
11860 + grep -v '^ *+' conftest.er1 >conftest.err
11861 + rm -f conftest.er1
11862 + cat conftest.err >&5
11863 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 + (exit $ac_status); } &&
11865 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11866 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11867 + (eval $ac_try) 2>&5
11868 + ac_status=$?
11869 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 + (exit $ac_status); }; } &&
11871 + { ac_try='test -s conftest.$ac_objext'
11872 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873 + (eval $ac_try) 2>&5
11874 + ac_status=$?
11875 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 + (exit $ac_status); }; }; then
11877 + ac_cv_prog_cc_g=yes
11878 +else
11879 + echo "$as_me: failed program was:" >&5
11880 +sed 's/^/| /' conftest.$ac_ext >&5
11881 +
11882 +ac_cv_prog_cc_g=no
11883 +fi
11884 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11885 +fi
11886 +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11887 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11888 +if test "$ac_test_CFLAGS" = set; then
11889 + CFLAGS=$ac_save_CFLAGS
11890 +elif test $ac_cv_prog_cc_g = yes; then
11891 + if test "$GCC" = yes; then
11892 + CFLAGS="-g -O2"
11893 + else
11894 + CFLAGS="-g"
11895 + fi
11896 +else
11897 + if test "$GCC" = yes; then
11898 + CFLAGS="-O2"
11899 + else
11900 + CFLAGS=
11901 + fi
11902 +fi
11903 +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11904 +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11905 +if test "${ac_cv_prog_cc_stdc+set}" = set; then
11906 + echo $ECHO_N "(cached) $ECHO_C" >&6
11907 +else
11908 + ac_cv_prog_cc_stdc=no
11909 +ac_save_CC=$CC
11910 +cat >conftest.$ac_ext <<_ACEOF
11911 +/* confdefs.h. */
11912 +_ACEOF
11913 +cat confdefs.h >>conftest.$ac_ext
11914 +cat >>conftest.$ac_ext <<_ACEOF
11915 +/* end confdefs.h. */
11916 +#include <stdarg.h>
11917 +#include <stdio.h>
11918 +#include <sys/types.h>
11919 +#include <sys/stat.h>
11920 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11921 +struct buf { int x; };
11922 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
11923 +static char *e (p, i)
11924 + char **p;
11925 + int i;
11926 +{
11927 + return p[i];
11928 +}
11929 +static char *f (char * (*g) (char **, int), char **p, ...)
11930 +{
11931 + char *s;
11932 + va_list v;
11933 + va_start (v,p);
11934 + s = g (p, va_arg (v,int));
11935 + va_end (v);
11936 + return s;
11937 +}
11938 +
11939 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11940 + function prototypes and stuff, but not '\xHH' hex character constants.
11941 + These don't provoke an error unfortunately, instead are silently treated
11942 + as 'x'. The following induces an error, until -std1 is added to get
11943 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11944 + array size at least. It's necessary to write '\x00'==0 to get something
11945 + that's true only with -std1. */
11946 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11947 +
11948 +int test (int i, double x);
11949 +struct s1 {int (*f) (int a);};
11950 +struct s2 {int (*f) (double a);};
11951 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11952 +int argc;
11953 +char **argv;
11954 +int
11955 +main ()
11956 +{
11957 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11958 + ;
11959 + return 0;
11960 +}
11961 +_ACEOF
11962 +# Don't try gcc -ansi; that turns off useful extensions and
11963 +# breaks some systems' header files.
11964 +# AIX -qlanglvl=ansi
11965 +# Ultrix and OSF/1 -std1
11966 +# HP-UX 10.20 and later -Ae
11967 +# HP-UX older versions -Aa -D_HPUX_SOURCE
11968 +# SVR4 -Xc -D__EXTENSIONS__
11969 +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11970 +do
11971 + CC="$ac_save_CC $ac_arg"
11972 + rm -f conftest.$ac_objext
11973 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11974 + (eval $ac_compile) 2>conftest.er1
11975 + ac_status=$?
11976 + grep -v '^ *+' conftest.er1 >conftest.err
11977 + rm -f conftest.er1
11978 + cat conftest.err >&5
11979 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 + (exit $ac_status); } &&
11981 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11982 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983 + (eval $ac_try) 2>&5
11984 + ac_status=$?
11985 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 + (exit $ac_status); }; } &&
11987 + { ac_try='test -s conftest.$ac_objext'
11988 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989 + (eval $ac_try) 2>&5
11990 + ac_status=$?
11991 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 + (exit $ac_status); }; }; then
11993 + ac_cv_prog_cc_stdc=$ac_arg
11994 +break
11995 +else
11996 + echo "$as_me: failed program was:" >&5
11997 +sed 's/^/| /' conftest.$ac_ext >&5
11998 +
11999 +fi
12000 +rm -f conftest.err conftest.$ac_objext
12001 +done
12002 +rm -f conftest.$ac_ext conftest.$ac_objext
12003 +CC=$ac_save_CC
12004 +
12005 +fi
12006 +
12007 +case "x$ac_cv_prog_cc_stdc" in
12008 + x|xno)
12009 + echo "$as_me:$LINENO: result: none needed" >&5
12010 +echo "${ECHO_T}none needed" >&6 ;;
12011 + *)
12012 + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12013 +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12014 + CC="$CC $ac_cv_prog_cc_stdc" ;;
12015 +esac
12016 +
12017 +# Some people use a C++ compiler to compile C. Since we use `exit',
12018 +# in C++ we need to declare it. In case someone uses the same compiler
12019 +# for both compiling C and C++ we need to have the C++ compiler decide
12020 +# the declaration of exit, since it's the most demanding environment.
12021 +cat >conftest.$ac_ext <<_ACEOF
12022 +#ifndef __cplusplus
12023 + choke me
12024 +#endif
12025 +_ACEOF
12026 +rm -f conftest.$ac_objext
12027 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12028 + (eval $ac_compile) 2>conftest.er1
12029 + ac_status=$?
12030 + grep -v '^ *+' conftest.er1 >conftest.err
12031 + rm -f conftest.er1
12032 + cat conftest.err >&5
12033 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 + (exit $ac_status); } &&
12035 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12036 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037 + (eval $ac_try) 2>&5
12038 + ac_status=$?
12039 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 + (exit $ac_status); }; } &&
12041 + { ac_try='test -s conftest.$ac_objext'
12042 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 + (eval $ac_try) 2>&5
12044 + ac_status=$?
12045 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 + (exit $ac_status); }; }; then
12047 + for ac_declaration in \
12048 + '' \
12049 + 'extern "C" void std::exit (int) throw (); using std::exit;' \
12050 + 'extern "C" void std::exit (int); using std::exit;' \
12051 + 'extern "C" void exit (int) throw ();' \
12052 + 'extern "C" void exit (int);' \
12053 + 'void exit (int);'
12054 +do
12055 + cat >conftest.$ac_ext <<_ACEOF
12056 +/* confdefs.h. */
12057 +_ACEOF
12058 +cat confdefs.h >>conftest.$ac_ext
12059 +cat >>conftest.$ac_ext <<_ACEOF
12060 +/* end confdefs.h. */
12061 +$ac_declaration
12062 +#include <stdlib.h>
12063 +int
12064 +main ()
12065 +{
12066 +exit (42);
12067 + ;
12068 + return 0;
12069 +}
12070 +_ACEOF
12071 +rm -f conftest.$ac_objext
12072 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12073 + (eval $ac_compile) 2>conftest.er1
12074 + ac_status=$?
12075 + grep -v '^ *+' conftest.er1 >conftest.err
12076 + rm -f conftest.er1
12077 + cat conftest.err >&5
12078 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 + (exit $ac_status); } &&
12080 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12081 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082 + (eval $ac_try) 2>&5
12083 + ac_status=$?
12084 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 + (exit $ac_status); }; } &&
12086 + { ac_try='test -s conftest.$ac_objext'
12087 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088 + (eval $ac_try) 2>&5
12089 + ac_status=$?
12090 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 + (exit $ac_status); }; }; then
12092 + :
12093 +else
12094 + echo "$as_me: failed program was:" >&5
12095 +sed 's/^/| /' conftest.$ac_ext >&5
12096 +
12097 +continue
12098 +fi
12099 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12100 + cat >conftest.$ac_ext <<_ACEOF
12101 +/* confdefs.h. */
12102 +_ACEOF
12103 +cat confdefs.h >>conftest.$ac_ext
12104 +cat >>conftest.$ac_ext <<_ACEOF
12105 +/* end confdefs.h. */
12106 +$ac_declaration
12107 +int
12108 +main ()
12109 +{
12110 +exit (42);
12111 + ;
12112 + return 0;
12113 +}
12114 +_ACEOF
12115 +rm -f conftest.$ac_objext
12116 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12117 + (eval $ac_compile) 2>conftest.er1
12118 + ac_status=$?
12119 + grep -v '^ *+' conftest.er1 >conftest.err
12120 + rm -f conftest.er1
12121 + cat conftest.err >&5
12122 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 + (exit $ac_status); } &&
12124 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12125 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126 + (eval $ac_try) 2>&5
12127 + ac_status=$?
12128 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 + (exit $ac_status); }; } &&
12130 + { ac_try='test -s conftest.$ac_objext'
12131 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12132 + (eval $ac_try) 2>&5
12133 + ac_status=$?
12134 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 + (exit $ac_status); }; }; then
12136 + break
12137 +else
12138 + echo "$as_me: failed program was:" >&5
12139 +sed 's/^/| /' conftest.$ac_ext >&5
12140 +
12141 +fi
12142 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12143 +done
12144 +rm -f conftest*
12145 +if test -n "$ac_declaration"; then
12146 + echo '#ifdef __cplusplus' >>confdefs.h
12147 + echo $ac_declaration >>confdefs.h
12148 + echo '#endif' >>confdefs.h
12149 +fi
12150 +
12151 +else
12152 + echo "$as_me: failed program was:" >&5
12153 +sed 's/^/| /' conftest.$ac_ext >&5
12154 +
12155 +fi
12156 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12157 +ac_ext=c
12158 +ac_cpp='$CPP $CPPFLAGS'
12159 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12160 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12161 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
12162 +DEPDIR="${am__leading_dot}deps"
12163 +
12164 + ac_config_commands="$ac_config_commands depfiles"
12165 +
12166 +
12167 +am_make=${MAKE-make}
12168 +cat > confinc << 'END'
12169 +am__doit:
12170 + @echo done
12171 +.PHONY: am__doit
12172 +END
12173 +# If we don't find an include directive, just comment out the code.
12174 +echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
12175 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
12176 +am__include="#"
12177 +am__quote=
12178 +_am_result=none
12179 +# First try GNU make style include.
12180 +echo "include confinc" > confmf
12181 +# We grep out `Entering directory' and `Leaving directory'
12182 +# messages which can occur if `w' ends up in MAKEFLAGS.
12183 +# In particular we don't look at `^make:' because GNU make might
12184 +# be invoked under some other name (usually "gmake"), in which
12185 +# case it prints its new name instead of `make'.
12186 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
12187 + am__include=include
12188 + am__quote=
12189 + _am_result=GNU
12190 +fi
12191 +# Now try BSD make style include.
12192 +if test "$am__include" = "#"; then
12193 + echo '.include "confinc"' > confmf
12194 + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
12195 + am__include=.include
12196 + am__quote="\""
12197 + _am_result=BSD
12198 + fi
12199 +fi
12200 +
12201 +
12202 +echo "$as_me:$LINENO: result: $_am_result" >&5
12203 +echo "${ECHO_T}$_am_result" >&6
12204 +rm -f confinc confmf
12205 +
12206 +# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
12207 +if test "${enable_dependency_tracking+set}" = set; then
12208 + enableval="$enable_dependency_tracking"
12209 +
12210 +fi;
12211 +if test "x$enable_dependency_tracking" != xno; then
12212 + am_depcomp="$ac_aux_dir/depcomp"
12213 + AMDEPBACKSLASH='\'
12214 +fi
12215 +
12216 +
12217 +if test "x$enable_dependency_tracking" != xno; then
12218 + AMDEP_TRUE=
12219 + AMDEP_FALSE='#'
12220 +else
12221 + AMDEP_TRUE='#'
12222 + AMDEP_FALSE=
12223 +fi
12224 +
12225 +
12226 +
12227 +
12228 +depcc="$CC" am_compiler_list=
12229 +
12230 +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12231 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12232 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12233 + echo $ECHO_N "(cached) $ECHO_C" >&6
12234 +else
12235 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12236 + # We make a subdir and do the tests there. Otherwise we can end up
12237 + # making bogus files that we don't know about and never remove. For
12238 + # instance it was reported that on HP-UX the gcc test will end up
12239 + # making a dummy file named `D' -- because `-MD' means `put the output
12240 + # in D'.
12241 + mkdir conftest.dir
12242 + # Copy depcomp to subdir because otherwise we won't find it if we're
12243 + # using a relative directory.
12244 + cp "$am_depcomp" conftest.dir
12245 + cd conftest.dir
12246 + # We will build objects and dependencies in a subdirectory because
12247 + # it helps to detect inapplicable dependency modes. For instance
12248 + # both Tru64's cc and ICC support -MD to output dependencies as a
12249 + # side effect of compilation, but ICC will put the dependencies in
12250 + # the current directory while Tru64 will put them in the object
12251 + # directory.
12252 + mkdir sub
12253 +
12254 + am_cv_CC_dependencies_compiler_type=none
12255 + if test "$am_compiler_list" = ""; then
12256 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12257 + fi
12258 + for depmode in $am_compiler_list; do
12259 + # Setup a source with many dependencies, because some compilers
12260 + # like to wrap large dependency lists on column 80 (with \), and
12261 + # we should not choose a depcomp mode which is confused by this.
12262 + #
12263 + # We need to recreate these files for each test, as the compiler may
12264 + # overwrite some of them when testing with obscure command lines.
12265 + # This happens at least with the AIX C compiler.
12266 + : > sub/conftest.c
12267 + for i in 1 2 3 4 5 6; do
12268 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
12269 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12270 + # Solaris 8's {/usr,}/bin/sh.
12271 + touch sub/conftst$i.h
12272 + done
12273 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12274 +
12275 + case $depmode in
12276 + nosideeffect)
12277 + # after this tag, mechanisms are not by side-effect, so they'll
12278 + # only be used when explicitly requested
12279 + if test "x$enable_dependency_tracking" = xyes; then
12280 + continue
12281 + else
12282 + break
12283 + fi
12284 + ;;
12285 + none) break ;;
12286 + esac
12287 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
12288 + # mode. It turns out that the SunPro C++ compiler does not properly
12289 + # handle `-M -o', and we need to detect this.
12290 + if depmode=$depmode \
12291 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12292 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12293 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12294 + >/dev/null 2>conftest.err &&
12295 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12296 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12297 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12298 + # icc doesn't choke on unknown options, it will just issue warnings
12299 + # or remarks (even with -Werror). So we grep stderr for any message
12300 + # that says an option was ignored or not supported.
12301 + # When given -MP, icc 7.0 and 7.1 complain thusly:
12302 + # icc: Command line warning: ignoring option '-M'; no argument required
12303 + # The diagnosis changed in icc 8.0:
12304 + # icc: Command line remark: option '-MP' not supported
12305 + if (grep 'ignoring option' conftest.err ||
12306 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12307 + am_cv_CC_dependencies_compiler_type=$depmode
12308 + break
12309 + fi
12310 + fi
12311 + done
12312 +
12313 + cd ..
12314 + rm -rf conftest.dir
12315 +else
12316 + am_cv_CC_dependencies_compiler_type=none
12317 +fi
12318 +
12319 +fi
12320 +echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12321 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12322 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12323 +
12324 +
12325 +
12326 +if
12327 + test "x$enable_dependency_tracking" != xno \
12328 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12329 + am__fastdepCC_TRUE=
12330 + am__fastdepCC_FALSE='#'
12331 +else
12332 + am__fastdepCC_TRUE='#'
12333 + am__fastdepCC_FALSE=
12334 +fi
12335 +
12336 +
12337 +
12338 +
12339 +echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12340 +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12341 +if test "${ac_cv_c_const+set}" = set; then
12342 + echo $ECHO_N "(cached) $ECHO_C" >&6
12343 +else
12344 + cat >conftest.$ac_ext <<_ACEOF
12345 +/* confdefs.h. */
12346 +_ACEOF
12347 +cat confdefs.h >>conftest.$ac_ext
12348 +cat >>conftest.$ac_ext <<_ACEOF
12349 +/* end confdefs.h. */
12350 +
12351 +int
12352 +main ()
12353 +{
12354 +/* FIXME: Include the comments suggested by Paul. */
12355 +#ifndef __cplusplus
12356 + /* Ultrix mips cc rejects this. */
12357 + typedef int charset[2];
12358 + const charset x;
12359 + /* SunOS 4.1.1 cc rejects this. */
12360 + char const *const *ccp;
12361 + char **p;
12362 + /* NEC SVR4.0.2 mips cc rejects this. */
12363 + struct point {int x, y;};
12364 + static struct point const zero = {0,0};
12365 + /* AIX XL C 1.02.0.0 rejects this.
12366 + It does not let you subtract one const X* pointer from another in
12367 + an arm of an if-expression whose if-part is not a constant
12368 + expression */
12369 + const char *g = "string";
12370 + ccp = &g + (g ? g-g : 0);
12371 + /* HPUX 7.0 cc rejects these. */
12372 + ++ccp;
12373 + p = (char**) ccp;
12374 + ccp = (char const *const *) p;
12375 + { /* SCO 3.2v4 cc rejects this. */
12376 + char *t;
12377 + char const *s = 0 ? (char *) 0 : (char const *) 0;
12378 +
12379 + *t++ = 0;
12380 + }
12381 + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12382 + int x[] = {25, 17};
12383 + const int *foo = &x[0];
12384 + ++foo;
12385 + }
12386 + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12387 + typedef const int *iptr;
12388 + iptr p = 0;
12389 + ++p;
12390 + }
12391 + { /* AIX XL C 1.02.0.0 rejects this saying
12392 + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12393 + struct s { int j; const int *ap[3]; };
12394 + struct s *b; b->j = 5;
12395 + }
12396 + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12397 + const int foo = 10;
12398 + }
12399 +#endif
12400 +
12401 + ;
12402 + return 0;
12403 +}
12404 +_ACEOF
12405 +rm -f conftest.$ac_objext
12406 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12407 + (eval $ac_compile) 2>conftest.er1
12408 + ac_status=$?
12409 + grep -v '^ *+' conftest.er1 >conftest.err
12410 + rm -f conftest.er1
12411 + cat conftest.err >&5
12412 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 + (exit $ac_status); } &&
12414 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12415 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 + (eval $ac_try) 2>&5
12417 + ac_status=$?
12418 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 + (exit $ac_status); }; } &&
12420 + { ac_try='test -s conftest.$ac_objext'
12421 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422 + (eval $ac_try) 2>&5
12423 + ac_status=$?
12424 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 + (exit $ac_status); }; }; then
12426 + ac_cv_c_const=yes
12427 +else
12428 + echo "$as_me: failed program was:" >&5
12429 +sed 's/^/| /' conftest.$ac_ext >&5
12430 +
12431 +ac_cv_c_const=no
12432 +fi
12433 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12434 +fi
12435 +echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12436 +echo "${ECHO_T}$ac_cv_c_const" >&6
12437 +if test $ac_cv_c_const = no; then
12438 +
12439 +cat >>confdefs.h <<\_ACEOF
12440 +#define const
12441 +_ACEOF
12442 +
12443 +fi
12444 +
12445 +
12446 +
12447 +if test $ac_cv_c_compiler_gnu = yes; then
12448 + CCOPTS='-O2 -funroll-loops -fomit-frame-pointer -Wall'
12449 + CFLAGS="$CCOPTS"
12450 +fi
12451 +
12452 +
12453 +# Check whether --with-pf_packet or --without-pf_packet was given.
12454 +if test "${with_pf_packet+set}" = set; then
12455 + withval="$with_pf_packet"
12456 + \
12457 + with_pf_packet=yes
12458 +else
12459 + with_pf_packet=no
12460 +fi;
12461 +
12462 +
12463 +# Check whether --with-fast_x86_check or --without-fast_x86_check was given.
12464 +if test "${with_fast_x86_check+set}" = set; then
12465 + withval="$with_fast_x86_check"
12466 + \
12467 + cat >>confdefs.h <<\_ACEOF
12468 +#define LIBNET_FAST_X86_CHECK 1
12469 +_ACEOF
12470 +
12471 +fi;
12472 +
12473 +# Find a good install program. We prefer a C program (faster),
12474 +# so one script is as good as another. But avoid the broken or
12475 +# incompatible versions:
12476 +# SysV /etc/install, /usr/sbin/install
12477 +# SunOS /usr/etc/install
12478 +# IRIX /sbin/install
12479 +# AIX /bin/install
12480 +# AmigaOS /C/install, which installs bootblocks on floppy discs
12481 +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12482 +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12483 +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12484 +# OS/2's system install, which has a completely different semantic
12485 +# ./install, which can be erroneously created by make from ./install.sh.
12486 +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12487 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12488 +if test -z "$INSTALL"; then
12489 +if test "${ac_cv_path_install+set}" = set; then
12490 + echo $ECHO_N "(cached) $ECHO_C" >&6
12491 +else
12492 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493 +for as_dir in $PATH
12494 +do
12495 + IFS=$as_save_IFS
12496 + test -z "$as_dir" && as_dir=.
12497 + # Account for people who put trailing slashes in PATH elements.
12498 +case $as_dir/ in
12499 + ./ | .// | /cC/* | \
12500 + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12501 + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12502 + /usr/ucb/* ) ;;
12503 + *)
12504 + # OSF1 and SCO ODT 3.0 have their own names for install.
12505 + # Don't use installbsd from OSF since it installs stuff as root
12506 + # by default.
12507 + for ac_prog in ginstall scoinst install; do
12508 + for ac_exec_ext in '' $ac_executable_extensions; do
12509 + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12510 + if test $ac_prog = install &&
12511 + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12512 + # AIX install. It has an incompatible calling convention.
12513 + :
12514 + elif test $ac_prog = install &&
12515 + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12516 + # program-specific install script used by HP pwplus--don't use.
12517 + :
12518 + else
12519 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12520 + break 3
12521 + fi
12522 + fi
12523 + done
12524 + done
12525 + ;;
12526 +esac
12527 +done
12528 +
12529 +
12530 +fi
12531 + if test "${ac_cv_path_install+set}" = set; then
12532 + INSTALL=$ac_cv_path_install
12533 + else
12534 + # As a last resort, use the slow shell script. We don't cache a
12535 + # path for INSTALL within a source directory, because that will
12536 + # break other packages using the cache if that directory is
12537 + # removed, or if the path is relative.
12538 + INSTALL=$ac_install_sh
12539 + fi
12540 +fi
12541 +echo "$as_me:$LINENO: result: $INSTALL" >&5
12542 +echo "${ECHO_T}$INSTALL" >&6
12543 +
12544 +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12545 +# It thinks the first close brace ends the variable substitution.
12546 +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12547 +
12548 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12549 +
12550 +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12551 +
12552 +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12553 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
12554 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
12555 +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
12556 + echo $ECHO_N "(cached) $ECHO_C" >&6
12557 +else
12558 + cat >conftest.make <<\_ACEOF
12559 +all:
12560 + @echo 'ac_maketemp="$(MAKE)"'
12561 +_ACEOF
12562 +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12563 +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
12564 +if test -n "$ac_maketemp"; then
12565 + eval ac_cv_prog_make_${ac_make}_set=yes
12566 +else
12567 + eval ac_cv_prog_make_${ac_make}_set=no
12568 +fi
12569 +rm -f conftest.make
12570 +fi
12571 +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
12572 + echo "$as_me:$LINENO: result: yes" >&5
12573 +echo "${ECHO_T}yes" >&6
12574 + SET_MAKE=
12575 +else
12576 + echo "$as_me:$LINENO: result: no" >&5
12577 +echo "${ECHO_T}no" >&6
12578 + SET_MAKE="MAKE=${MAKE-make}"
12579 +fi
12580 +
12581 +for ac_prog in ranlib
12582 +do
12583 + # Extract the first word of "$ac_prog", so it can be a program name with args.
12584 +set dummy $ac_prog; ac_word=$2
12585 +echo "$as_me:$LINENO: checking for $ac_word" >&5
12586 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12587 +if test "${ac_cv_prog_RANLIB+set}" = set; then
12588 + echo $ECHO_N "(cached) $ECHO_C" >&6
12589 +else
12590 + if test -n "$RANLIB"; then
12591 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12592 +else
12593 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594 +for as_dir in $PATH
12595 +do
12596 + IFS=$as_save_IFS
12597 + test -z "$as_dir" && as_dir=.
12598 + for ac_exec_ext in '' $ac_executable_extensions; do
12599 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12600 + ac_cv_prog_RANLIB="$ac_prog"
12601 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12602 + break 2
12603 + fi
12604 +done
12605 +done
12606 +
12607 +fi
12608 +fi
12609 +RANLIB=$ac_cv_prog_RANLIB
12610 +if test -n "$RANLIB"; then
12611 + echo "$as_me:$LINENO: result: $RANLIB" >&5
12612 +echo "${ECHO_T}$RANLIB" >&6
12613 +else
12614 + echo "$as_me:$LINENO: result: no" >&5
12615 +echo "${ECHO_T}no" >&6
12616 +fi
12617 +
12618 + test -n "$RANLIB" && break
12619 +done
12620 +test -n "$RANLIB" || RANLIB="@true"
12621 +
12622 +for ac_prog in ar
12623 +do
12624 + # Extract the first word of "$ac_prog", so it can be a program name with args.
12625 +set dummy $ac_prog; ac_word=$2
12626 +echo "$as_me:$LINENO: checking for $ac_word" >&5
12627 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12628 +if test "${ac_cv_prog_AR+set}" = set; then
12629 + echo $ECHO_N "(cached) $ECHO_C" >&6
12630 +else
12631 + if test -n "$AR"; then
12632 + ac_cv_prog_AR="$AR" # Let the user override the test.
12633 +else
12634 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12635 +for as_dir in $PATH
12636 +do
12637 + IFS=$as_save_IFS
12638 + test -z "$as_dir" && as_dir=.
12639 + for ac_exec_ext in '' $ac_executable_extensions; do
12640 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12641 + ac_cv_prog_AR="$ac_prog"
12642 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12643 + break 2
12644 + fi
12645 +done
12646 +done
12647 +
12648 +fi
12649 +fi
12650 +AR=$ac_cv_prog_AR
12651 +if test -n "$AR"; then
12652 + echo "$as_me:$LINENO: result: $AR" >&5
12653 +echo "${ECHO_T}$AR" >&6
12654 +else
12655 + echo "$as_me:$LINENO: result: no" >&5
12656 +echo "${ECHO_T}no" >&6
12657 +fi
12658 +
12659 + test -n "$AR" && break
12660 +done
12661 +test -n "$AR" || AR="@true"
12662 +
12663 +for ac_prog in ln
12664 +do
12665 + # Extract the first word of "$ac_prog", so it can be a program name with args.
12666 +set dummy $ac_prog; ac_word=$2
12667 +echo "$as_me:$LINENO: checking for $ac_word" >&5
12668 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12669 +if test "${ac_cv_prog_LN+set}" = set; then
12670 + echo $ECHO_N "(cached) $ECHO_C" >&6
12671 +else
12672 + if test -n "$LN"; then
12673 + ac_cv_prog_LN="$LN" # Let the user override the test.
12674 +else
12675 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12676 +for as_dir in $PATH
12677 +do
12678 + IFS=$as_save_IFS
12679 + test -z "$as_dir" && as_dir=.
12680 + for ac_exec_ext in '' $ac_executable_extensions; do
12681 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12682 + ac_cv_prog_LN="$ac_prog"
12683 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12684 + break 2
12685 + fi
12686 +done
12687 +done
12688 +
12689 +fi
12690 +fi
12691 +LN=$ac_cv_prog_LN
12692 +if test -n "$LN"; then
12693 + echo "$as_me:$LINENO: result: $LN" >&5
12694 +echo "${ECHO_T}$LN" >&6
12695 +else
12696 + echo "$as_me:$LINENO: result: no" >&5
12697 +echo "${ECHO_T}no" >&6
12698 +fi
12699 +
12700 + test -n "$LN" && break
12701 +done
12702 +test -n "$LN" || LN="@true"
12703 +
12704 +
12705 +# Check whether --enable-shared or --disable-shared was given.
12706 +if test "${enable_shared+set}" = set; then
12707 + enableval="$enable_shared"
12708 + p=${PACKAGE-default}
12709 +case $enableval in
12710 +yes) enable_shared=yes ;;
12711 +no) enable_shared=no ;;
12712 +*)
12713 + enable_shared=no
12714 + # Look at the argument we got. We use all the common list separators.
12715 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
12716 + for pkg in $enableval; do
12717 + if test "X$pkg" = "X$p"; then
12718 + enable_shared=yes
12719 + fi
12720 + done
12721 + IFS="$ac_save_ifs"
12722 + ;;
12723 +esac
12724 +else
12725 + enable_shared=yes
12726 +fi;
12727 +# Check whether --enable-static or --disable-static was given.
12728 +if test "${enable_static+set}" = set; then
12729 + enableval="$enable_static"
12730 + p=${PACKAGE-default}
12731 +case $enableval in
12732 +yes) enable_static=yes ;;
12733 +no) enable_static=no ;;
12734 +*)
12735 + enable_static=no
12736 + # Look at the argument we got. We use all the common list separators.
12737 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
12738 + for pkg in $enableval; do
12739 + if test "X$pkg" = "X$p"; then
12740 + enable_static=yes
12741 + fi
12742 + done
12743 + IFS="$ac_save_ifs"
12744 + ;;
12745 +esac
12746 +else
12747 + enable_static=yes
12748 +fi;
12749 +# Check whether --enable-fast-install or --disable-fast-install was given.
12750 +if test "${enable_fast_install+set}" = set; then
12751 + enableval="$enable_fast_install"
12752 + p=${PACKAGE-default}
12753 +case $enableval in
12754 +yes) enable_fast_install=yes ;;
12755 +no) enable_fast_install=no ;;
12756 +*)
12757 + enable_fast_install=no
12758 + # Look at the argument we got. We use all the common list separators.
12759 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
12760 + for pkg in $enableval; do
12761 + if test "X$pkg" = "X$p"; then
12762 + enable_fast_install=yes
12763 + fi
12764 + done
12765 + IFS="$ac_save_ifs"
12766 + ;;
12767 +esac
12768 +else
12769 + enable_fast_install=yes
12770 +fi;
12771 +# Find the correct PATH separator. Usually this is `:', but
12772 +# DJGPP uses `;' like DOS.
12773 +if test "X${PATH_SEPARATOR+set}" != Xset; then
12774 + UNAME=${UNAME-`uname 2>/dev/null`}
12775 + case X$UNAME in
12776 + *-DOS) lt_cv_sys_path_separator=';' ;;
12777 + *) lt_cv_sys_path_separator=':' ;;
12778 + esac
12779 + PATH_SEPARATOR=$lt_cv_sys_path_separator
12780 +fi
12781 +
12782 +
12783 +# Check whether --with-gnu-ld or --without-gnu-ld was given.
12784 +if test "${with_gnu_ld+set}" = set; then
12785 + withval="$with_gnu_ld"
12786 + test "$withval" = no || with_gnu_ld=yes
12787 +else
12788 + with_gnu_ld=no
12789 +fi;
12790 +ac_prog=ld
12791 +if test "$GCC" = yes; then
12792 + # Check if gcc -print-prog-name=ld gives a path.
12793 + echo "$as_me:$LINENO: checking for ld used by GCC" >&5
12794 +echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
12795 + case $host in
12796 + *-*-mingw*)
12797 + # gcc leaves a trailing carriage return which upsets mingw
12798 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12799 + *)
12800 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12801 + esac
12802 + case $ac_prog in
12803 + # Accept absolute paths.
12804 + [\\/]* | [A-Za-z]:[\\/]*)
12805 + re_direlt='/[^/][^/]*/\.\./'
12806 + # Canonicalize the path of ld
12807 + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12808 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12809 + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12810 + done
12811 + test -z "$LD" && LD="$ac_prog"
12812 + ;;
12813 + "")
12814 + # If it fails, then pretend we aren't using GCC.
12815 + ac_prog=ld
12816 + ;;
12817 + *)
12818 + # If it is relative, then search for the first ld in PATH.
12819 + with_gnu_ld=unknown
12820 + ;;
12821 + esac
12822 +elif test "$with_gnu_ld" = yes; then
12823 + echo "$as_me:$LINENO: checking for GNU ld" >&5
12824 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12825 +else
12826 + echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12827 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12828 +fi
12829 +if test "${lt_cv_path_LD+set}" = set; then
12830 + echo $ECHO_N "(cached) $ECHO_C" >&6
12831 +else
12832 + if test -z "$LD"; then
12833 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12834 + for ac_dir in $PATH; do
12835 + test -z "$ac_dir" && ac_dir=.
12836 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12837 + lt_cv_path_LD="$ac_dir/$ac_prog"
12838 + # Check to see if the program is GNU ld. I'd rather use --version,
12839 + # but apparently some GNU ld's only accept -v.
12840 + # Break only if it was the GNU/non-GNU ld that we prefer.
12841 + if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12842 + test "$with_gnu_ld" != no && break
12843 + else
12844 + test "$with_gnu_ld" != yes && break
12845 + fi
12846 + fi
12847 + done
12848 + IFS="$ac_save_ifs"
12849 +else
12850 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
12851 +fi
12852 +fi
12853 +
12854 +LD="$lt_cv_path_LD"
12855 +if test -n "$LD"; then
12856 + echo "$as_me:$LINENO: result: $LD" >&5
12857 +echo "${ECHO_T}$LD" >&6
12858 +else
12859 + echo "$as_me:$LINENO: result: no" >&5
12860 +echo "${ECHO_T}no" >&6
12861 +fi
12862 +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12863 +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12864 + { (exit 1); exit 1; }; }
12865 +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12866 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12867 +if test "${lt_cv_prog_gnu_ld+set}" = set; then
12868 + echo $ECHO_N "(cached) $ECHO_C" >&6
12869 +else
12870 + # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12871 +if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12872 + lt_cv_prog_gnu_ld=yes
12873 +else
12874 + lt_cv_prog_gnu_ld=no
12875 +fi
12876 +fi
12877 +echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12878 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12879 +with_gnu_ld=$lt_cv_prog_gnu_ld
12880 +
12881 +
12882 +echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12883 +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
12884 +if test "${lt_cv_ld_reload_flag+set}" = set; then
12885 + echo $ECHO_N "(cached) $ECHO_C" >&6
12886 +else
12887 + lt_cv_ld_reload_flag='-r'
12888 +fi
12889 +echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12890 +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
12891 +reload_flag=$lt_cv_ld_reload_flag
12892 +test -n "$reload_flag" && reload_flag=" $reload_flag"
12893 +
12894 +echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
12895 +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
12896 +if test "${lt_cv_path_NM+set}" = set; then
12897 + echo $ECHO_N "(cached) $ECHO_C" >&6
12898 +else
12899 + if test -n "$NM"; then
12900 + # Let the user override the test.
12901 + lt_cv_path_NM="$NM"
12902 +else
12903 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12904 + for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
12905 + test -z "$ac_dir" && ac_dir=.
12906 + tmp_nm=$ac_dir/${ac_tool_prefix}nm
12907 + if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
12908 + # Check to see if the nm accepts a BSD-compat flag.
12909 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12910 + # nm: unknown option "B" ignored
12911 + # Tru64's nm complains that /dev/null is an invalid object file
12912 + if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
12913 + lt_cv_path_NM="$tmp_nm -B"
12914 + break
12915 + elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
12916 + lt_cv_path_NM="$tmp_nm -p"
12917 + break
12918 + else
12919 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12920 + continue # so that we can try to find one that supports BSD flags
12921 + fi
12922 + fi
12923 + done
12924 + IFS="$ac_save_ifs"
12925 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
12926 +fi
12927 +fi
12928 +
12929 +NM="$lt_cv_path_NM"
12930 +echo "$as_me:$LINENO: result: $NM" >&5
12931 +echo "${ECHO_T}$NM" >&6
12932 +
12933 +echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12934 +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
12935 +if test "${lt_cv_path_SED+set}" = set; then
12936 + echo $ECHO_N "(cached) $ECHO_C" >&6
12937 +else
12938 + # Loop through the user's path and test for sed and gsed.
12939 +# Then use that list of sed's as ones to test for truncation.
12940 +as_executable_p="test -f"
12941 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12942 +for as_dir in $PATH
12943 +do
12944 + IFS=$as_save_IFS
12945 + test -z "$as_dir" && as_dir=.
12946 + for ac_prog in sed gsed; do
12947 + for ac_exec_ext in '' $ac_executable_extensions; do
12948 + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12949 + _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
12950 + fi
12951 + done
12952 + done
12953 +done
12954 +
12955 + # Create a temporary directory, and hook for its removal unless debugging.
12956 +$debug ||
12957 +{
12958 + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12959 + trap '{ (exit 1); exit 1; }' 1 2 13 15
12960 +}
12961 +
12962 +# Create a (secure) tmp directory for tmp files.
12963 +: ${TMPDIR=/tmp}
12964 +{
12965 + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
12966 + test -n "$tmp" && test -d "$tmp"
12967 +} ||
12968 +{
12969 + tmp=$TMPDIR/sed$$-$RANDOM
12970 + (umask 077 && mkdir $tmp)
12971 +} ||
12972 +{
12973 + echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12974 + { (exit 1); exit 1; }
12975 +}
12976 + _max=0
12977 + _count=0
12978 + # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12979 + # along with /bin/sed that truncates output.
12980 + for _sed in $_sed_list /usr/xpg4/bin/sed; do
12981 + test ! -f ${_sed} && break
12982 + cat /dev/null > "$tmp/sed.in"
12983 + _count=0
12984 + echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
12985 + # Check for GNU sed and select it if it is found.
12986 + if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
12987 + lt_cv_path_SED=${_sed}
12988 + break
12989 + fi
12990 + while true; do
12991 + cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
12992 + mv "$tmp/sed.tmp" "$tmp/sed.in"
12993 + cp "$tmp/sed.in" "$tmp/sed.nl"
12994 + echo >>"$tmp/sed.nl"
12995 + ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
12996 + cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
12997 + # 40000 chars as input seems more than enough
12998 + test $_count -gt 10 && break
12999 + _count=`expr $_count + 1`
13000 + if test $_count -gt $_max; then
13001 + _max=$_count
13002 + lt_cv_path_SED=$_sed
13003 + fi
13004 + done
13005 + done
13006 + rm -rf "$tmp"
13007 +
13008 +fi
13009 +
13010 +if test "X$SED" != "X"; then
13011 + lt_cv_path_SED=$SED
13012 +else
13013 + SED=$lt_cv_path_SED
13014 +fi
13015 +echo "$as_me:$LINENO: result: $SED" >&5
13016 +echo "${ECHO_T}$SED" >&6
13017 +
13018 +echo "$as_me:$LINENO: checking whether ln -s works" >&5
13019 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13020 +LN_S=$as_ln_s
13021 +if test "$LN_S" = "ln -s"; then
13022 + echo "$as_me:$LINENO: result: yes" >&5
13023 +echo "${ECHO_T}yes" >&6
13024 +else
13025 + echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13026 +echo "${ECHO_T}no, using $LN_S" >&6
13027 +fi
13028 +
13029 +echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
13030 +echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
13031 +if test "${lt_cv_deplibs_check_method+set}" = set; then
13032 + echo $ECHO_N "(cached) $ECHO_C" >&6
13033 +else
13034 + lt_cv_file_magic_cmd='$MAGIC_CMD'
13035 +lt_cv_file_magic_test_file=
13036 +lt_cv_deplibs_check_method='unknown'
13037 +# Need to set the preceding variable on all platforms that support
13038 +# interlibrary dependencies.
13039 +# 'none' -- dependencies not supported.
13040 +# `unknown' -- same as none, but documents that we really don't know.
13041 +# 'pass_all' -- all dependencies passed with no checks.
13042 +# 'test_compile' -- check by making test program.
13043 +# 'file_magic [[regex]]' -- check by looking for files in library path
13044 +# which responds to the $file_magic_cmd with a given egrep regex.
13045 +# If you have `file' or equivalent on your system and you're not sure
13046 +# whether `pass_all' will *always* work, you probably want this one.
13047 +
13048 +case $host_os in
13049 +aix4* | aix5*)
13050 + lt_cv_deplibs_check_method=pass_all
13051 + ;;
13052 +
13053 +beos*)
13054 + lt_cv_deplibs_check_method=pass_all
13055 + ;;
13056 +
13057 +bsdi4*)
13058 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13059 + lt_cv_file_magic_cmd='/usr/bin/file -L'
13060 + lt_cv_file_magic_test_file=/shlib/libc.so
13061 + ;;
13062 +
13063 +cygwin* | mingw* | pw32*)
13064 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13065 + lt_cv_file_magic_cmd='$OBJDUMP -f'
13066 + ;;
13067 +
13068 +darwin* | rhapsody*)
13069 + lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
13070 + lt_cv_file_magic_cmd='/usr/bin/file -L'
13071 + case "$host_os" in
13072 + rhapsody* | darwin1.[012])
13073 + lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
13074 + ;;
13075 + *) # Darwin 1.3 on
13076 + lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
13077 + ;;
13078 + esac
13079 + ;;
13080 +
13081 +freebsd*)
13082 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13083 + case $host_cpu in
13084 + i*86 )
13085 + # Not sure whether the presence of OpenBSD here was a mistake.
13086 + # Let's accept both of them until this is cleared up.
13087 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
13088 + lt_cv_file_magic_cmd=/usr/bin/file
13089 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13090 + ;;
13091 + esac
13092 + else
13093 + lt_cv_deplibs_check_method=pass_all
13094 + fi
13095 + ;;
13096 +
13097 +gnu*)
13098 + lt_cv_deplibs_check_method=pass_all
13099 + ;;
13100 +
13101 +hpux10.20*|hpux11*)
13102 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13103 + lt_cv_file_magic_cmd=/usr/bin/file
13104 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
13105 + ;;
13106 +
13107 +irix5* | irix6* | nonstopux*)
13108 + case $LD in
13109 + *-32|*"-32 ") libmagic=32-bit;;
13110 + *-n32|*"-n32 ") libmagic=N32;;
13111 + *-64|*"-64 ") libmagic=64-bit;;
13112 + *) libmagic=never-match;;
13113 + esac
13114 + lt_cv_deplibs_check_method=pass_all
13115 + ;;
13116 +
13117 +# This must be Linux ELF.
13118 +linux-gnu*)
13119 + lt_cv_deplibs_check_method=pass_all
13120 + ;;
13121 +
13122 +netbsd*)
13123 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13124 + lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
13125 + else
13126 + lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
13127 + fi
13128 + ;;
13129 +
13130 +newos6*)
13131 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13132 + lt_cv_file_magic_cmd=/usr/bin/file
13133 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
13134 + ;;
13135 +
13136 +openbsd*)
13137 + lt_cv_file_magic_cmd=/usr/bin/file
13138 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13139 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13140 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
13141 + else
13142 + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
13143 + fi
13144 + ;;
13145 +
13146 +osf3* | osf4* | osf5*)
13147 + lt_cv_deplibs_check_method=pass_all
13148 + ;;
13149 +
13150 +sco3.2v5*)
13151 + lt_cv_deplibs_check_method=pass_all
13152 + ;;
13153 +
13154 +solaris*)
13155 + lt_cv_deplibs_check_method=pass_all
13156 + ;;
13157 +
13158 +sysv5uw[78]* | sysv4*uw2*)
13159 + lt_cv_deplibs_check_method=pass_all
13160 + ;;
13161 +
13162 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13163 + case $host_vendor in
13164 + motorola)
13165 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
13166 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13167 + ;;
13168 + ncr)
13169 + lt_cv_deplibs_check_method=pass_all
13170 + ;;
13171 + sequent)
13172 + lt_cv_file_magic_cmd='/bin/file'
13173 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13174 + ;;
13175 + sni)
13176 + lt_cv_file_magic_cmd='/bin/file'
13177 + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13178 + lt_cv_file_magic_test_file=/lib/libc.so
13179 + ;;
13180 + siemens)
13181 + lt_cv_deplibs_check_method=pass_all
13182 + ;;
13183 + esac
13184 + ;;
13185 +esac
13186 +
13187 +fi
13188 +echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13189 +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
13190 +file_magic_cmd=$lt_cv_file_magic_cmd
13191 +deplibs_check_method=$lt_cv_deplibs_check_method
13192 +
13193 +
13194 +
13195 +
13196 +
13197 +
13198 +
13199 +# Check for command to grab the raw symbol name followed by C symbol from nm.
13200 +echo "$as_me:$LINENO: checking command to parse $NM output" >&5
13201 +echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
13202 +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13203 + echo $ECHO_N "(cached) $ECHO_C" >&6
13204 +else
13205 +
13206 +# These are sane defaults that work on at least a few old systems.
13207 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13208 +
13209 +# Character class describing NM global symbol codes.
13210 +symcode='[BCDEGRST]'
13211 +
13212 +# Regexp to match symbols that can be accessed directly from C.
13213 +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13214 +
13215 +# Transform the above into a raw symbol and a C symbol.
13216 +symxfrm='\1 \2\3 \3'
13217 +
13218 +# Transform an extracted symbol line into a proper C declaration
13219 +lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
13220 +
13221 +# Transform an extracted symbol line into symbol name and symbol address
13222 +lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
13223 +
13224 +# Define system-specific variables.
13225 +case $host_os in
13226 +aix*)
13227 + symcode='[BCDT]'
13228 + ;;
13229 +cygwin* | mingw* | pw32*)
13230 + symcode='[ABCDGISTW]'
13231 + ;;
13232 +hpux*) # Its linker distinguishes data from code symbols
13233 + lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13234 + lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
13235 + ;;
13236 +irix* | nonstopux*)
13237 + symcode='[BCDEGRST]'
13238 + ;;
13239 +osf*)
13240 + symcode='[BCDEGQRST]'
13241 + ;;
13242 +solaris* | sysv5*)
13243 + symcode='[BDT]'
13244 + ;;
13245 +sysv4)
13246 + symcode='[DFNSTU]'
13247 + ;;
13248 +esac
13249 +
13250 +# Handle CRLF in mingw tool chain
13251 +opt_cr=
13252 +case $host_os in
13253 +mingw*)
13254 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13255 + ;;
13256 +esac
13257 +
13258 +# If we're using GNU nm, then use its standard symbol codes.
13259 +if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
13260 + symcode='[ABCDGISTW]'
13261 +fi
13262 +
13263 +# Try without a prefix undercore, then with it.
13264 +for ac_symprfx in "" "_"; do
13265 +
13266 + # Write the raw and C identifiers.
13267 +lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
13268 +
13269 + # Check to see that the pipe works correctly.
13270 + pipe_works=no
13271 + rm -f conftest*
13272 + cat > conftest.$ac_ext <<EOF
13273 +#ifdef __cplusplus
13274 +extern "C" {
13275 +#endif
13276 +char nm_test_var;
13277 +void nm_test_func(){}
13278 +#ifdef __cplusplus
13279 +}
13280 +#endif
13281 +int main(){nm_test_var='a';nm_test_func();return(0);}
13282 +EOF
13283 +
13284 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13285 + (eval $ac_compile) 2>&5
13286 + ac_status=$?
13287 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 + (exit $ac_status); }; then
13289 + # Now try to grab the symbols.
13290 + nlist=conftest.nm
13291 + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13292 + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13293 + ac_status=$?
13294 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 + (exit $ac_status); } && test -s "$nlist"; then
13296 + # Try sorting and uniquifying the output.
13297 + if sort "$nlist" | uniq > "$nlist"T; then
13298 + mv -f "$nlist"T "$nlist"
13299 + else
13300 + rm -f "$nlist"T
13301 + fi
13302 +
13303 + # Make sure that we snagged all the symbols we need.
13304 + if egrep ' nm_test_var$' "$nlist" >/dev/null; then
13305 + if egrep ' nm_test_func$' "$nlist" >/dev/null; then
13306 + cat <<EOF > conftest.$ac_ext
13307 +#ifdef __cplusplus
13308 +extern "C" {
13309 +#endif
13310 +
13311 +EOF
13312 + # Now generate the symbol file.
13313 + eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
13314 +
13315 + cat <<EOF >> conftest.$ac_ext
13316 +#if defined (__STDC__) && __STDC__
13317 +# define lt_ptr void *
13318 +#else
13319 +# define lt_ptr char *
13320 +# define const
13321 +#endif
13322 +
13323 +/* The mapping between symbol names and symbols. */
13324 +const struct {
13325 + const char *name;
13326 + lt_ptr address;
13327 +}
13328 +lt_preloaded_symbols[] =
13329 +{
13330 +EOF
13331 + sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
13332 + cat <<\EOF >> conftest.$ac_ext
13333 + {0, (lt_ptr) 0}
13334 +};
13335 +
13336 +#ifdef __cplusplus
13337 +}
13338 +#endif
13339 +EOF
13340 + # Now try linking the two files.
13341 + mv conftest.$ac_objext conftstm.$ac_objext
13342 + save_LIBS="$LIBS"
13343 + save_CFLAGS="$CFLAGS"
13344 + LIBS="conftstm.$ac_objext"
13345 + CFLAGS="$CFLAGS$no_builtin_flag"
13346 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13347 + (eval $ac_link) 2>&5
13348 + ac_status=$?
13349 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 + (exit $ac_status); } && test -s conftest$ac_exeext; then
13351 + pipe_works=yes
13352 + fi
13353 + LIBS="$save_LIBS"
13354 + CFLAGS="$save_CFLAGS"
13355 + else
13356 + echo "cannot find nm_test_func in $nlist" >&5
13357 + fi
13358 + else
13359 + echo "cannot find nm_test_var in $nlist" >&5
13360 + fi
13361 + else
13362 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13363 + fi
13364 + else
13365 + echo "$progname: failed program was:" >&5
13366 + cat conftest.$ac_ext >&5
13367 + fi
13368 + rm -f conftest* conftst*
13369 +
13370 + # Do not use the global_symbol_pipe unless it works.
13371 + if test "$pipe_works" = yes; then
13372 + break
13373 + else
13374 + lt_cv_sys_global_symbol_pipe=
13375 + fi
13376 +done
13377 +
13378 +fi
13379 +
13380 +global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
13381 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
13382 + global_symbol_to_cdecl=
13383 + global_symbol_to_c_name_address=
13384 +else
13385 + global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
13386 + global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
13387 +fi
13388 +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
13389 +then
13390 + echo "$as_me:$LINENO: result: failed" >&5
13391 +echo "${ECHO_T}failed" >&6
13392 +else
13393 + echo "$as_me:$LINENO: result: ok" >&5
13394 +echo "${ECHO_T}ok" >&6
13395 +fi
13396 +
13397 +ac_ext=c
13398 +ac_cpp='$CPP $CPPFLAGS'
13399 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13400 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13401 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
13402 +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13403 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13404 +# On Suns, sometimes $CPP names a directory.
13405 +if test -n "$CPP" && test -d "$CPP"; then
13406 + CPP=
13407 +fi
13408 +if test -z "$CPP"; then
13409 + if test "${ac_cv_prog_CPP+set}" = set; then
13410 + echo $ECHO_N "(cached) $ECHO_C" >&6
13411 +else
13412 + # Double quotes because CPP needs to be expanded
13413 + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13414 + do
13415 + ac_preproc_ok=false
13416 +for ac_c_preproc_warn_flag in '' yes
13417 +do
13418 + # Use a header file that comes with gcc, so configuring glibc
13419 + # with a fresh cross-compiler works.
13420 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13421 + # <limits.h> exists even on freestanding compilers.
13422 + # On the NeXT, cc -E runs the code through the compiler's parser,
13423 + # not just through cpp. "Syntax error" is here to catch this case.
13424 + cat >conftest.$ac_ext <<_ACEOF
13425 +/* confdefs.h. */
13426 +_ACEOF
13427 +cat confdefs.h >>conftest.$ac_ext
13428 +cat >>conftest.$ac_ext <<_ACEOF
13429 +/* end confdefs.h. */
13430 +#ifdef __STDC__
13431 +# include <limits.h>
13432 +#else
13433 +# include <assert.h>
13434 +#endif
13435 + Syntax error
13436 +_ACEOF
13437 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13438 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13439 + ac_status=$?
13440 + grep -v '^ *+' conftest.er1 >conftest.err
13441 + rm -f conftest.er1
13442 + cat conftest.err >&5
13443 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 + (exit $ac_status); } >/dev/null; then
13445 + if test -s conftest.err; then
13446 + ac_cpp_err=$ac_c_preproc_warn_flag
13447 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13448 + else
13449 + ac_cpp_err=
13450 + fi
13451 +else
13452 + ac_cpp_err=yes
13453 +fi
13454 +if test -z "$ac_cpp_err"; then
13455 + :
13456 +else
13457 + echo "$as_me: failed program was:" >&5
13458 +sed 's/^/| /' conftest.$ac_ext >&5
13459 +
13460 + # Broken: fails on valid input.
13461 +continue
13462 +fi
13463 +rm -f conftest.err conftest.$ac_ext
13464 +
13465 + # OK, works on sane cases. Now check whether non-existent headers
13466 + # can be detected and how.
13467 + cat >conftest.$ac_ext <<_ACEOF
13468 +/* confdefs.h. */
13469 +_ACEOF
13470 +cat confdefs.h >>conftest.$ac_ext
13471 +cat >>conftest.$ac_ext <<_ACEOF
13472 +/* end confdefs.h. */
13473 +#include <ac_nonexistent.h>
13474 +_ACEOF
13475 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13476 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13477 + ac_status=$?
13478 + grep -v '^ *+' conftest.er1 >conftest.err
13479 + rm -f conftest.er1
13480 + cat conftest.err >&5
13481 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 + (exit $ac_status); } >/dev/null; then
13483 + if test -s conftest.err; then
13484 + ac_cpp_err=$ac_c_preproc_warn_flag
13485 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13486 + else
13487 + ac_cpp_err=
13488 + fi
13489 +else
13490 + ac_cpp_err=yes
13491 +fi
13492 +if test -z "$ac_cpp_err"; then
13493 + # Broken: success on invalid input.
13494 +continue
13495 +else
13496 + echo "$as_me: failed program was:" >&5
13497 +sed 's/^/| /' conftest.$ac_ext >&5
13498 +
13499 + # Passes both tests.
13500 +ac_preproc_ok=:
13501 +break
13502 +fi
13503 +rm -f conftest.err conftest.$ac_ext
13504 +
13505 +done
13506 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13507 +rm -f conftest.err conftest.$ac_ext
13508 +if $ac_preproc_ok; then
13509 + break
13510 +fi
13511 +
13512 + done
13513 + ac_cv_prog_CPP=$CPP
13514 +
13515 +fi
13516 + CPP=$ac_cv_prog_CPP
13517 +else
13518 + ac_cv_prog_CPP=$CPP
13519 +fi
13520 +echo "$as_me:$LINENO: result: $CPP" >&5
13521 +echo "${ECHO_T}$CPP" >&6
13522 +ac_preproc_ok=false
13523 +for ac_c_preproc_warn_flag in '' yes
13524 +do
13525 + # Use a header file that comes with gcc, so configuring glibc
13526 + # with a fresh cross-compiler works.
13527 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13528 + # <limits.h> exists even on freestanding compilers.
13529 + # On the NeXT, cc -E runs the code through the compiler's parser,
13530 + # not just through cpp. "Syntax error" is here to catch this case.
13531 + cat >conftest.$ac_ext <<_ACEOF
13532 +/* confdefs.h. */
13533 +_ACEOF
13534 +cat confdefs.h >>conftest.$ac_ext
13535 +cat >>conftest.$ac_ext <<_ACEOF
13536 +/* end confdefs.h. */
13537 +#ifdef __STDC__
13538 +# include <limits.h>
13539 +#else
13540 +# include <assert.h>
13541 +#endif
13542 + Syntax error
13543 +_ACEOF
13544 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13545 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13546 + ac_status=$?
13547 + grep -v '^ *+' conftest.er1 >conftest.err
13548 + rm -f conftest.er1
13549 + cat conftest.err >&5
13550 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 + (exit $ac_status); } >/dev/null; then
13552 + if test -s conftest.err; then
13553 + ac_cpp_err=$ac_c_preproc_warn_flag
13554 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13555 + else
13556 + ac_cpp_err=
13557 + fi
13558 +else
13559 + ac_cpp_err=yes
13560 +fi
13561 +if test -z "$ac_cpp_err"; then
13562 + :
13563 +else
13564 + echo "$as_me: failed program was:" >&5
13565 +sed 's/^/| /' conftest.$ac_ext >&5
13566 +
13567 + # Broken: fails on valid input.
13568 +continue
13569 +fi
13570 +rm -f conftest.err conftest.$ac_ext
13571 +
13572 + # OK, works on sane cases. Now check whether non-existent headers
13573 + # can be detected and how.
13574 + cat >conftest.$ac_ext <<_ACEOF
13575 +/* confdefs.h. */
13576 +_ACEOF
13577 +cat confdefs.h >>conftest.$ac_ext
13578 +cat >>conftest.$ac_ext <<_ACEOF
13579 +/* end confdefs.h. */
13580 +#include <ac_nonexistent.h>
13581 +_ACEOF
13582 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13583 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13584 + ac_status=$?
13585 + grep -v '^ *+' conftest.er1 >conftest.err
13586 + rm -f conftest.er1
13587 + cat conftest.err >&5
13588 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 + (exit $ac_status); } >/dev/null; then
13590 + if test -s conftest.err; then
13591 + ac_cpp_err=$ac_c_preproc_warn_flag
13592 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13593 + else
13594 + ac_cpp_err=
13595 + fi
13596 +else
13597 + ac_cpp_err=yes
13598 +fi
13599 +if test -z "$ac_cpp_err"; then
13600 + # Broken: success on invalid input.
13601 +continue
13602 +else
13603 + echo "$as_me: failed program was:" >&5
13604 +sed 's/^/| /' conftest.$ac_ext >&5
13605 +
13606 + # Passes both tests.
13607 +ac_preproc_ok=:
13608 +break
13609 +fi
13610 +rm -f conftest.err conftest.$ac_ext
13611 +
13612 +done
13613 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13614 +rm -f conftest.err conftest.$ac_ext
13615 +if $ac_preproc_ok; then
13616 + :
13617 +else
13618 + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13619 +See \`config.log' for more details." >&5
13620 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13621 +See \`config.log' for more details." >&2;}
13622 + { (exit 1); exit 1; }; }
13623 +fi
13624 +
13625 +ac_ext=c
13626 +ac_cpp='$CPP $CPPFLAGS'
13627 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13628 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13629 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
13630 +
13631 +
13632 +echo "$as_me:$LINENO: checking for egrep" >&5
13633 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13634 +if test "${ac_cv_prog_egrep+set}" = set; then
13635 + echo $ECHO_N "(cached) $ECHO_C" >&6
13636 +else
13637 + if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13638 + then ac_cv_prog_egrep='grep -E'
13639 + else ac_cv_prog_egrep='egrep'
13640 + fi
13641 +fi
13642 +echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13643 +echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13644 + EGREP=$ac_cv_prog_egrep
13645 +
13646 +
13647 +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13648 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13649 +if test "${ac_cv_header_stdc+set}" = set; then
13650 + echo $ECHO_N "(cached) $ECHO_C" >&6
13651 +else
13652 + cat >conftest.$ac_ext <<_ACEOF
13653 +/* confdefs.h. */
13654 +_ACEOF
13655 +cat confdefs.h >>conftest.$ac_ext
13656 +cat >>conftest.$ac_ext <<_ACEOF
13657 +/* end confdefs.h. */
13658 +#include <stdlib.h>
13659 +#include <stdarg.h>
13660 +#include <string.h>
13661 +#include <float.h>
13662 +
13663 +int
13664 +main ()
13665 +{
13666 +
13667 + ;
13668 + return 0;
13669 +}
13670 +_ACEOF
13671 +rm -f conftest.$ac_objext
13672 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13673 + (eval $ac_compile) 2>conftest.er1
13674 + ac_status=$?
13675 + grep -v '^ *+' conftest.er1 >conftest.err
13676 + rm -f conftest.er1
13677 + cat conftest.err >&5
13678 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 + (exit $ac_status); } &&
13680 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13681 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682 + (eval $ac_try) 2>&5
13683 + ac_status=$?
13684 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 + (exit $ac_status); }; } &&
13686 + { ac_try='test -s conftest.$ac_objext'
13687 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13688 + (eval $ac_try) 2>&5
13689 + ac_status=$?
13690 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 + (exit $ac_status); }; }; then
13692 + ac_cv_header_stdc=yes
13693 +else
13694 + echo "$as_me: failed program was:" >&5
13695 +sed 's/^/| /' conftest.$ac_ext >&5
13696 +
13697 +ac_cv_header_stdc=no
13698 +fi
13699 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13700 +
13701 +if test $ac_cv_header_stdc = yes; then
13702 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13703 + cat >conftest.$ac_ext <<_ACEOF
13704 +/* confdefs.h. */
13705 +_ACEOF
13706 +cat confdefs.h >>conftest.$ac_ext
13707 +cat >>conftest.$ac_ext <<_ACEOF
13708 +/* end confdefs.h. */
13709 +#include <string.h>
13710 +
13711 +_ACEOF
13712 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13713 + $EGREP "memchr" >/dev/null 2>&1; then
13714 + :
13715 +else
13716 + ac_cv_header_stdc=no
13717 +fi
13718 +rm -f conftest*
13719 +
13720 +fi
13721 +
13722 +if test $ac_cv_header_stdc = yes; then
13723 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13724 + cat >conftest.$ac_ext <<_ACEOF
13725 +/* confdefs.h. */
13726 +_ACEOF
13727 +cat confdefs.h >>conftest.$ac_ext
13728 +cat >>conftest.$ac_ext <<_ACEOF
13729 +/* end confdefs.h. */
13730 +#include <stdlib.h>
13731 +
13732 +_ACEOF
13733 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13734 + $EGREP "free" >/dev/null 2>&1; then
13735 + :
13736 +else
13737 + ac_cv_header_stdc=no
13738 +fi
13739 +rm -f conftest*
13740 +
13741 +fi
13742 +
13743 +if test $ac_cv_header_stdc = yes; then
13744 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13745 + if test "$cross_compiling" = yes; then
13746 + :
13747 +else
13748 + cat >conftest.$ac_ext <<_ACEOF
13749 +/* confdefs.h. */
13750 +_ACEOF
13751 +cat confdefs.h >>conftest.$ac_ext
13752 +cat >>conftest.$ac_ext <<_ACEOF
13753 +/* end confdefs.h. */
13754 +#include <ctype.h>
13755 +#if ((' ' & 0x0FF) == 0x020)
13756 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13757 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13758 +#else
13759 +# define ISLOWER(c) \
13760 + (('a' <= (c) && (c) <= 'i') \
13761 + || ('j' <= (c) && (c) <= 'r') \
13762 + || ('s' <= (c) && (c) <= 'z'))
13763 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13764 +#endif
13765 +
13766 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13767 +int
13768 +main ()
13769 +{
13770 + int i;
13771 + for (i = 0; i < 256; i++)
13772 + if (XOR (islower (i), ISLOWER (i))
13773 + || toupper (i) != TOUPPER (i))
13774 + exit(2);
13775 + exit (0);
13776 +}
13777 +_ACEOF
13778 +rm -f conftest$ac_exeext
13779 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13780 + (eval $ac_link) 2>&5
13781 + ac_status=$?
13782 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13784 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785 + (eval $ac_try) 2>&5
13786 + ac_status=$?
13787 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 + (exit $ac_status); }; }; then
13789 + :
13790 +else
13791 + echo "$as_me: program exited with status $ac_status" >&5
13792 +echo "$as_me: failed program was:" >&5
13793 +sed 's/^/| /' conftest.$ac_ext >&5
13794 +
13795 +( exit $ac_status )
13796 +ac_cv_header_stdc=no
13797 +fi
13798 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13799 +fi
13800 +fi
13801 +fi
13802 +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13803 +echo "${ECHO_T}$ac_cv_header_stdc" >&6
13804 +if test $ac_cv_header_stdc = yes; then
13805 +
13806 +cat >>confdefs.h <<\_ACEOF
13807 +#define STDC_HEADERS 1
13808 +_ACEOF
13809 +
13810 +fi
13811 +
13812 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13813 +
13814 +
13815 +
13816 +
13817 +
13818 +
13819 +
13820 +
13821 +
13822 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
13823 + inttypes.h stdint.h unistd.h
13824 +do
13825 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13826 +echo "$as_me:$LINENO: checking for $ac_header" >&5
13827 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13828 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
13829 + echo $ECHO_N "(cached) $ECHO_C" >&6
13830 +else
13831 + cat >conftest.$ac_ext <<_ACEOF
13832 +/* confdefs.h. */
13833 +_ACEOF
13834 +cat confdefs.h >>conftest.$ac_ext
13835 +cat >>conftest.$ac_ext <<_ACEOF
13836 +/* end confdefs.h. */
13837 +$ac_includes_default
13838 +
13839 +#include <$ac_header>
13840 +_ACEOF
13841 +rm -f conftest.$ac_objext
13842 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13843 + (eval $ac_compile) 2>conftest.er1
13844 + ac_status=$?
13845 + grep -v '^ *+' conftest.er1 >conftest.err
13846 + rm -f conftest.er1
13847 + cat conftest.err >&5
13848 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 + (exit $ac_status); } &&
13850 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13851 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 + (eval $ac_try) 2>&5
13853 + ac_status=$?
13854 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 + (exit $ac_status); }; } &&
13856 + { ac_try='test -s conftest.$ac_objext'
13857 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858 + (eval $ac_try) 2>&5
13859 + ac_status=$?
13860 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 + (exit $ac_status); }; }; then
13862 + eval "$as_ac_Header=yes"
13863 +else
13864 + echo "$as_me: failed program was:" >&5
13865 +sed 's/^/| /' conftest.$ac_ext >&5
13866 +
13867 +eval "$as_ac_Header=no"
13868 +fi
13869 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13870 +fi
13871 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13872 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13873 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
13874 + cat >>confdefs.h <<_ACEOF
13875 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13876 +_ACEOF
13877 +
13878 +fi
13879 +
13880 +done
13881 +
13882 +
13883 +
13884 +for ac_header in dlfcn.h
13885 +do
13886 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13887 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
13888 + echo "$as_me:$LINENO: checking for $ac_header" >&5
13889 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13890 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
13891 + echo $ECHO_N "(cached) $ECHO_C" >&6
13892 +fi
13893 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13894 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13895 +else
13896 + # Is the header compilable?
13897 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
13898 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13899 +cat >conftest.$ac_ext <<_ACEOF
13900 +/* confdefs.h. */
13901 +_ACEOF
13902 +cat confdefs.h >>conftest.$ac_ext
13903 +cat >>conftest.$ac_ext <<_ACEOF
13904 +/* end confdefs.h. */
13905 +$ac_includes_default
13906 +#include <$ac_header>
13907 +_ACEOF
13908 +rm -f conftest.$ac_objext
13909 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13910 + (eval $ac_compile) 2>conftest.er1
13911 + ac_status=$?
13912 + grep -v '^ *+' conftest.er1 >conftest.err
13913 + rm -f conftest.er1
13914 + cat conftest.err >&5
13915 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 + (exit $ac_status); } &&
13917 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13918 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13919 + (eval $ac_try) 2>&5
13920 + ac_status=$?
13921 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 + (exit $ac_status); }; } &&
13923 + { ac_try='test -s conftest.$ac_objext'
13924 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925 + (eval $ac_try) 2>&5
13926 + ac_status=$?
13927 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 + (exit $ac_status); }; }; then
13929 + ac_header_compiler=yes
13930 +else
13931 + echo "$as_me: failed program was:" >&5
13932 +sed 's/^/| /' conftest.$ac_ext >&5
13933 +
13934 +ac_header_compiler=no
13935 +fi
13936 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13937 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13938 +echo "${ECHO_T}$ac_header_compiler" >&6
13939 +
13940 +# Is the header present?
13941 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
13942 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13943 +cat >conftest.$ac_ext <<_ACEOF
13944 +/* confdefs.h. */
13945 +_ACEOF
13946 +cat confdefs.h >>conftest.$ac_ext
13947 +cat >>conftest.$ac_ext <<_ACEOF
13948 +/* end confdefs.h. */
13949 +#include <$ac_header>
13950 +_ACEOF
13951 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13952 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13953 + ac_status=$?
13954 + grep -v '^ *+' conftest.er1 >conftest.err
13955 + rm -f conftest.er1
13956 + cat conftest.err >&5
13957 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 + (exit $ac_status); } >/dev/null; then
13959 + if test -s conftest.err; then
13960 + ac_cpp_err=$ac_c_preproc_warn_flag
13961 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13962 + else
13963 + ac_cpp_err=
13964 + fi
13965 +else
13966 + ac_cpp_err=yes
13967 +fi
13968 +if test -z "$ac_cpp_err"; then
13969 + ac_header_preproc=yes
13970 +else
13971 + echo "$as_me: failed program was:" >&5
13972 +sed 's/^/| /' conftest.$ac_ext >&5
13973 +
13974 + ac_header_preproc=no
13975 +fi
13976 +rm -f conftest.err conftest.$ac_ext
13977 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13978 +echo "${ECHO_T}$ac_header_preproc" >&6
13979 +
13980 +# So? What about this header?
13981 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13982 + yes:no: )
13983 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13984 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13985 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13986 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13987 + ac_header_preproc=yes
13988 + ;;
13989 + no:yes:* )
13990 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13991 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13992 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13993 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13994 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13995 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13996 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13997 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13998 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13999 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14000 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14001 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14002 + (
14003 + cat <<\_ASBOX
14004 +## ------------------------------------------ ##
14005 +## Report this to the AC_PACKAGE_NAME lists. ##
14006 +## ------------------------------------------ ##
14007 +_ASBOX
14008 + ) |
14009 + sed "s/^/$as_me: WARNING: /" >&2
14010 + ;;
14011 +esac
14012 +echo "$as_me:$LINENO: checking for $ac_header" >&5
14013 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14014 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
14015 + echo $ECHO_N "(cached) $ECHO_C" >&6
14016 +else
14017 + eval "$as_ac_Header=\$ac_header_preproc"
14018 +fi
14019 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14020 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14021 +
14022 +fi
14023 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
14024 + cat >>confdefs.h <<_ACEOF
14025 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14026 +_ACEOF
14027 +
14028 +fi
14029 +
14030 +done
14031 +
14032 +
14033 +
14034 +
14035 +
14036 +
14037 +# Only perform the check for file, if the check method requires it
14038 +case $deplibs_check_method in
14039 +file_magic*)
14040 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14041 + echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14042 +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
14043 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14044 + echo $ECHO_N "(cached) $ECHO_C" >&6
14045 +else
14046 + case $MAGIC_CMD in
14047 + /*)
14048 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14049 + ;;
14050 + ?:/*)
14051 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
14052 + ;;
14053 + *)
14054 + ac_save_MAGIC_CMD="$MAGIC_CMD"
14055 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14056 + ac_dummy="/usr/bin:$PATH"
14057 + for ac_dir in $ac_dummy; do
14058 + test -z "$ac_dir" && ac_dir=.
14059 + if test -f $ac_dir/${ac_tool_prefix}file; then
14060 + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14061 + if test -n "$file_magic_test_file"; then
14062 + case $deplibs_check_method in
14063 + "file_magic "*)
14064 + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
14065 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14066 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14067 + egrep "$file_magic_regex" > /dev/null; then
14068 + :
14069 + else
14070 + cat <<EOF 1>&2
14071 +
14072 +*** Warning: the command libtool uses to detect shared libraries,
14073 +*** $file_magic_cmd, produces output that libtool cannot recognize.
14074 +*** The result is that libtool may fail to recognize shared libraries
14075 +*** as such. This will affect the creation of libtool libraries that
14076 +*** depend on shared libraries, but programs linked with such libtool
14077 +*** libraries will work regardless of this problem. Nevertheless, you
14078 +*** may want to report the problem to your system manager and/or to
14079 +*** bug-libtool@gnu.org
14080 +
14081 +EOF
14082 + fi ;;
14083 + esac
14084 + fi
14085 + break
14086 + fi
14087 + done
14088 + IFS="$ac_save_ifs"
14089 + MAGIC_CMD="$ac_save_MAGIC_CMD"
14090 + ;;
14091 +esac
14092 +fi
14093 +
14094 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14095 +if test -n "$MAGIC_CMD"; then
14096 + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14097 +echo "${ECHO_T}$MAGIC_CMD" >&6
14098 +else
14099 + echo "$as_me:$LINENO: result: no" >&5
14100 +echo "${ECHO_T}no" >&6
14101 +fi
14102 +
14103 +if test -z "$lt_cv_path_MAGIC_CMD"; then
14104 + if test -n "$ac_tool_prefix"; then
14105 + echo "$as_me:$LINENO: checking for file" >&5
14106 +echo $ECHO_N "checking for file... $ECHO_C" >&6
14107 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14108 + echo $ECHO_N "(cached) $ECHO_C" >&6
14109 +else
14110 + case $MAGIC_CMD in
14111 + /*)
14112 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14113 + ;;
14114 + ?:/*)
14115 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
14116 + ;;
14117 + *)
14118 + ac_save_MAGIC_CMD="$MAGIC_CMD"
14119 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14120 + ac_dummy="/usr/bin:$PATH"
14121 + for ac_dir in $ac_dummy; do
14122 + test -z "$ac_dir" && ac_dir=.
14123 + if test -f $ac_dir/file; then
14124 + lt_cv_path_MAGIC_CMD="$ac_dir/file"
14125 + if test -n "$file_magic_test_file"; then
14126 + case $deplibs_check_method in
14127 + "file_magic "*)
14128 + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
14129 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14130 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14131 + egrep "$file_magic_regex" > /dev/null; then
14132 + :
14133 + else
14134 + cat <<EOF 1>&2
14135 +
14136 +*** Warning: the command libtool uses to detect shared libraries,
14137 +*** $file_magic_cmd, produces output that libtool cannot recognize.
14138 +*** The result is that libtool may fail to recognize shared libraries
14139 +*** as such. This will affect the creation of libtool libraries that
14140 +*** depend on shared libraries, but programs linked with such libtool
14141 +*** libraries will work regardless of this problem. Nevertheless, you
14142 +*** may want to report the problem to your system manager and/or to
14143 +*** bug-libtool@gnu.org
14144 +
14145 +EOF
14146 + fi ;;
14147 + esac
14148 + fi
14149 + break
14150 + fi
14151 + done
14152 + IFS="$ac_save_ifs"
14153 + MAGIC_CMD="$ac_save_MAGIC_CMD"
14154 + ;;
14155 +esac
14156 +fi
14157 +
14158 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14159 +if test -n "$MAGIC_CMD"; then
14160 + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14161 +echo "${ECHO_T}$MAGIC_CMD" >&6
14162 +else
14163 + echo "$as_me:$LINENO: result: no" >&5
14164 +echo "${ECHO_T}no" >&6
14165 +fi
14166 +
14167 + else
14168 + MAGIC_CMD=:
14169 + fi
14170 +fi
14171 +
14172 + fi
14173 + ;;
14174 +esac
14175 +
14176 +if test -n "$ac_tool_prefix"; then
14177 + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14178 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14179 +echo "$as_me:$LINENO: checking for $ac_word" >&5
14180 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14181 +if test "${ac_cv_prog_RANLIB+set}" = set; then
14182 + echo $ECHO_N "(cached) $ECHO_C" >&6
14183 +else
14184 + if test -n "$RANLIB"; then
14185 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14186 +else
14187 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14188 +for as_dir in $PATH
14189 +do
14190 + IFS=$as_save_IFS
14191 + test -z "$as_dir" && as_dir=.
14192 + for ac_exec_ext in '' $ac_executable_extensions; do
14193 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14194 + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14195 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14196 + break 2
14197 + fi
14198 +done
14199 +done
14200 +
14201 +fi
14202 +fi
14203 +RANLIB=$ac_cv_prog_RANLIB
14204 +if test -n "$RANLIB"; then
14205 + echo "$as_me:$LINENO: result: $RANLIB" >&5
14206 +echo "${ECHO_T}$RANLIB" >&6
14207 +else
14208 + echo "$as_me:$LINENO: result: no" >&5
14209 +echo "${ECHO_T}no" >&6
14210 +fi
14211 +
14212 +fi
14213 +if test -z "$ac_cv_prog_RANLIB"; then
14214 + ac_ct_RANLIB=$RANLIB
14215 + # Extract the first word of "ranlib", so it can be a program name with args.
14216 +set dummy ranlib; ac_word=$2
14217 +echo "$as_me:$LINENO: checking for $ac_word" >&5
14218 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14219 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14220 + echo $ECHO_N "(cached) $ECHO_C" >&6
14221 +else
14222 + if test -n "$ac_ct_RANLIB"; then
14223 + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14224 +else
14225 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14226 +for as_dir in $PATH
14227 +do
14228 + IFS=$as_save_IFS
14229 + test -z "$as_dir" && as_dir=.
14230 + for ac_exec_ext in '' $ac_executable_extensions; do
14231 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14232 + ac_cv_prog_ac_ct_RANLIB="ranlib"
14233 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14234 + break 2
14235 + fi
14236 +done
14237 +done
14238 +
14239 + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14240 +fi
14241 +fi
14242 +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14243 +if test -n "$ac_ct_RANLIB"; then
14244 + echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14245 +echo "${ECHO_T}$ac_ct_RANLIB" >&6
14246 +else
14247 + echo "$as_me:$LINENO: result: no" >&5
14248 +echo "${ECHO_T}no" >&6
14249 +fi
14250 +
14251 + RANLIB=$ac_ct_RANLIB
14252 +else
14253 + RANLIB="$ac_cv_prog_RANLIB"
14254 +fi
14255 +
14256 +if test -n "$ac_tool_prefix"; then
14257 + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14258 +set dummy ${ac_tool_prefix}strip; ac_word=$2
14259 +echo "$as_me:$LINENO: checking for $ac_word" >&5
14260 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14261 +if test "${ac_cv_prog_STRIP+set}" = set; then
14262 + echo $ECHO_N "(cached) $ECHO_C" >&6
14263 +else
14264 + if test -n "$STRIP"; then
14265 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14266 +else
14267 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14268 +for as_dir in $PATH
14269 +do
14270 + IFS=$as_save_IFS
14271 + test -z "$as_dir" && as_dir=.
14272 + for ac_exec_ext in '' $ac_executable_extensions; do
14273 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14274 + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14275 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14276 + break 2
14277 + fi
14278 +done
14279 +done
14280 +
14281 +fi
14282 +fi
14283 +STRIP=$ac_cv_prog_STRIP
14284 +if test -n "$STRIP"; then
14285 + echo "$as_me:$LINENO: result: $STRIP" >&5
14286 +echo "${ECHO_T}$STRIP" >&6
14287 +else
14288 + echo "$as_me:$LINENO: result: no" >&5
14289 +echo "${ECHO_T}no" >&6
14290 +fi
14291 +
14292 +fi
14293 +if test -z "$ac_cv_prog_STRIP"; then
14294 + ac_ct_STRIP=$STRIP
14295 + # Extract the first word of "strip", so it can be a program name with args.
14296 +set dummy strip; ac_word=$2
14297 +echo "$as_me:$LINENO: checking for $ac_word" >&5
14298 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14299 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14300 + echo $ECHO_N "(cached) $ECHO_C" >&6
14301 +else
14302 + if test -n "$ac_ct_STRIP"; then
14303 + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14304 +else
14305 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14306 +for as_dir in $PATH
14307 +do
14308 + IFS=$as_save_IFS
14309 + test -z "$as_dir" && as_dir=.
14310 + for ac_exec_ext in '' $ac_executable_extensions; do
14311 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14312 + ac_cv_prog_ac_ct_STRIP="strip"
14313 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14314 + break 2
14315 + fi
14316 +done
14317 +done
14318 +
14319 + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
14320 +fi
14321 +fi
14322 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14323 +if test -n "$ac_ct_STRIP"; then
14324 + echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14325 +echo "${ECHO_T}$ac_ct_STRIP" >&6
14326 +else
14327 + echo "$as_me:$LINENO: result: no" >&5
14328 +echo "${ECHO_T}no" >&6
14329 +fi
14330 +
14331 + STRIP=$ac_ct_STRIP
14332 +else
14333 + STRIP="$ac_cv_prog_STRIP"
14334 +fi
14335 +
14336 +
14337 +enable_dlopen=no
14338 +enable_win32_dll=no
14339 +
14340 +# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
14341 +if test "${enable_libtool_lock+set}" = set; then
14342 + enableval="$enable_libtool_lock"
14343 +
14344 +fi;
14345 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14346 +
14347 +# Some flags need to be propagated to the compiler or linker for good
14348 +# libtool support.
14349 +case $host in
14350 +*-*-irix6*)
14351 + # Find out which ABI we are using.
14352 + echo '#line 5125 "configure"' > conftest.$ac_ext
14353 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14354 + (eval $ac_compile) 2>&5
14355 + ac_status=$?
14356 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 + (exit $ac_status); }; then
14358 + case `/usr/bin/file conftest.$ac_objext` in
14359 + *32-bit*)
14360 + LD="${LD-ld} -32"
14361 + ;;
14362 + *N32*)
14363 + LD="${LD-ld} -n32"
14364 + ;;
14365 + *64-bit*)
14366 + LD="${LD-ld} -64"
14367 + ;;
14368 + esac
14369 + fi
14370 + rm -rf conftest*
14371 + ;;
14372 +
14373 +*-*-sco3.2v5*)
14374 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14375 + SAVE_CFLAGS="$CFLAGS"
14376 + CFLAGS="$CFLAGS -belf"
14377 + echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
14378 +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
14379 +if test "${lt_cv_cc_needs_belf+set}" = set; then
14380 + echo $ECHO_N "(cached) $ECHO_C" >&6
14381 +else
14382 +
14383 +
14384 + ac_ext=c
14385 +ac_cpp='$CPP $CPPFLAGS'
14386 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14387 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14388 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
14389 +
14390 + cat >conftest.$ac_ext <<_ACEOF
14391 +/* confdefs.h. */
14392 +_ACEOF
14393 +cat confdefs.h >>conftest.$ac_ext
14394 +cat >>conftest.$ac_ext <<_ACEOF
14395 +/* end confdefs.h. */
14396 +
14397 +int
14398 +main ()
14399 +{
14400 +
14401 + ;
14402 + return 0;
14403 +}
14404 +_ACEOF
14405 +rm -f conftest.$ac_objext conftest$ac_exeext
14406 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14407 + (eval $ac_link) 2>conftest.er1
14408 + ac_status=$?
14409 + grep -v '^ *+' conftest.er1 >conftest.err
14410 + rm -f conftest.er1
14411 + cat conftest.err >&5
14412 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 + (exit $ac_status); } &&
14414 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14415 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416 + (eval $ac_try) 2>&5
14417 + ac_status=$?
14418 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 + (exit $ac_status); }; } &&
14420 + { ac_try='test -s conftest$ac_exeext'
14421 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 + (eval $ac_try) 2>&5
14423 + ac_status=$?
14424 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 + (exit $ac_status); }; }; then
14426 + lt_cv_cc_needs_belf=yes
14427 +else
14428 + echo "$as_me: failed program was:" >&5
14429 +sed 's/^/| /' conftest.$ac_ext >&5
14430 +
14431 +lt_cv_cc_needs_belf=no
14432 +fi
14433 +rm -f conftest.err conftest.$ac_objext \
14434 + conftest$ac_exeext conftest.$ac_ext
14435 + ac_ext=c
14436 +ac_cpp='$CPP $CPPFLAGS'
14437 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14438 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14439 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
14440 +
14441 +fi
14442 +echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
14443 +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
14444 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14445 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14446 + CFLAGS="$SAVE_CFLAGS"
14447 + fi
14448 + ;;
14449 +
14450 +
14451 +esac
14452 +
14453 +# Sed substitution that helps us do robust quoting. It backslashifies
14454 +# metacharacters that are still active within double-quoted strings.
14455 +Xsed='sed -e s/^X//'
14456 +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14457 +
14458 +# Same as above, but do not quote variable references.
14459 +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14460 +
14461 +# Sed substitution to delay expansion of an escaped shell variable in a
14462 +# double_quote_subst'ed string.
14463 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14464 +
14465 +# Constants:
14466 +rm="rm -f"
14467 +
14468 +# Global variables:
14469 +default_ofile=libtool
14470 +can_build_shared=yes
14471 +
14472 +# All known linkers require a `.a' archive for static linking (except M$VC,
14473 +# which needs '.lib').
14474 +libext=a
14475 +ltmain="$ac_aux_dir/ltmain.sh"
14476 +ofile="$default_ofile"
14477 +with_gnu_ld="$lt_cv_prog_gnu_ld"
14478 +need_locks="$enable_libtool_lock"
14479 +
14480 +old_CC="$CC"
14481 +old_CFLAGS="$CFLAGS"
14482 +
14483 +# Set sane defaults for various variables
14484 +test -z "$AR" && AR=ar
14485 +test -z "$AR_FLAGS" && AR_FLAGS=cru
14486 +test -z "$AS" && AS=as
14487 +test -z "$CC" && CC=cc
14488 +test -z "$DLLTOOL" && DLLTOOL=dlltool
14489 +test -z "$LD" && LD=ld
14490 +test -z "$LN_S" && LN_S="ln -s"
14491 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
14492 +test -z "$NM" && NM=nm
14493 +test -z "$OBJDUMP" && OBJDUMP=objdump
14494 +test -z "$RANLIB" && RANLIB=:
14495 +test -z "$STRIP" && STRIP=:
14496 +test -z "$ac_objext" && ac_objext=o
14497 +
14498 +if test x"$host" != x"$build"; then
14499 + ac_tool_prefix=${host_alias}-
14500 +else
14501 + ac_tool_prefix=
14502 +fi
14503 +
14504 +# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
14505 +case $host_os in
14506 +linux-gnu*) ;;
14507 +linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14508 +esac
14509 +
14510 +case $host_os in
14511 +aix3*)
14512 + # AIX sometimes has problems with the GCC collect2 program. For some
14513 + # reason, if we set the COLLECT_NAMES environment variable, the problems
14514 + # vanish in a puff of smoke.
14515 + if test "X${COLLECT_NAMES+set}" != Xset; then
14516 + COLLECT_NAMES=
14517 + export COLLECT_NAMES
14518 + fi
14519 + ;;
14520 +esac
14521 +
14522 +# Determine commands to create old-style static archives.
14523 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14524 +old_postinstall_cmds='chmod 644 $oldlib'
14525 +old_postuninstall_cmds=
14526 +
14527 +if test -n "$RANLIB"; then
14528 + case $host_os in
14529 + openbsd*)
14530 + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
14531 + ;;
14532 + *)
14533 + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
14534 + ;;
14535 + esac
14536 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14537 +fi
14538 +
14539 +# Allow CC to be a program name with arguments.
14540 +set dummy $CC
14541 +compiler="$2"
14542 +
14543 +echo "$as_me:$LINENO: checking for objdir" >&5
14544 +echo $ECHO_N "checking for objdir... $ECHO_C" >&6
14545 +rm -f .libs 2>/dev/null
14546 +mkdir .libs 2>/dev/null
14547 +if test -d .libs; then
14548 + objdir=.libs
14549 +else
14550 + # MS-DOS does not allow filenames that begin with a dot.
14551 + objdir=_libs
14552 +fi
14553 +rmdir .libs 2>/dev/null
14554 +echo "$as_me:$LINENO: result: $objdir" >&5
14555 +echo "${ECHO_T}$objdir" >&6
14556 +
14557 +
14558 +
14559 +# Check whether --with-pic or --without-pic was given.
14560 +if test "${with_pic+set}" = set; then
14561 + withval="$with_pic"
14562 + pic_mode="$withval"
14563 +else
14564 + pic_mode=default
14565 +fi;
14566 +test -z "$pic_mode" && pic_mode=default
14567 +
14568 +# We assume here that the value for lt_cv_prog_cc_pic will not be cached
14569 +# in isolation, and that seeing it set (from the cache) indicates that
14570 +# the associated values are set (in the cache) correctly too.
14571 +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14572 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14573 +if test "${lt_cv_prog_cc_pic+set}" = set; then
14574 + echo $ECHO_N "(cached) $ECHO_C" >&6
14575 +else
14576 + lt_cv_prog_cc_pic=
14577 + lt_cv_prog_cc_shlib=
14578 + lt_cv_prog_cc_wl=
14579 + lt_cv_prog_cc_static=
14580 + lt_cv_prog_cc_no_builtin=
14581 + lt_cv_prog_cc_can_build_shared=$can_build_shared
14582 +
14583 + if test "$GCC" = yes; then
14584 + lt_cv_prog_cc_wl='-Wl,'
14585 + lt_cv_prog_cc_static='-static'
14586 +
14587 + case $host_os in
14588 + aix*)
14589 + # Below there is a dirty hack to force normal static linking with -ldl
14590 + # The problem is because libdl dynamically linked with both libc and
14591 + # libC (AIX C++ library), which obviously doesn't included in libraries
14592 + # list by gcc. This cause undefined symbols with -static flags.
14593 + # This hack allows C programs to be linked with "-static -ldl", but
14594 + # not sure about C++ programs.
14595 + lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
14596 + ;;
14597 + amigaos*)
14598 + # FIXME: we need at least 68020 code to build shared libraries, but
14599 + # adding the `-m68020' flag to GCC prevents building anything better,
14600 + # like `-m68040'.
14601 + lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
14602 + ;;
14603 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14604 + # PIC is the default for these OSes.
14605 + ;;
14606 + darwin* | rhapsody*)
14607 + # PIC is the default on this platform
14608 + # Common symbols not allowed in MH_DYLIB files
14609 + lt_cv_prog_cc_pic='-fno-common'
14610 + ;;
14611 + cygwin* | mingw* | pw32* | os2*)
14612 + # This hack is so that the source file can tell whether it is being
14613 + # built for inclusion in a dll (and should export symbols for example).
14614 + lt_cv_prog_cc_pic='-DDLL_EXPORT'
14615 + ;;
14616 + sysv4*MP*)
14617 + if test -d /usr/nec; then
14618 + lt_cv_prog_cc_pic=-Kconform_pic
14619 + fi
14620 + ;;
14621 + *)
14622 + lt_cv_prog_cc_pic='-fPIC'
14623 + ;;
14624 + esac
14625 + else
14626 + # PORTME Check for PIC flags for the system compiler.
14627 + case $host_os in
14628 + aix3* | aix4* | aix5*)
14629 + lt_cv_prog_cc_wl='-Wl,'
14630 + # All AIX code is PIC.
14631 + if test "$host_cpu" = ia64; then
14632 + # AIX 5 now supports IA64 processor
14633 + lt_cv_prog_cc_static='-Bstatic'
14634 + else
14635 + lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
14636 + fi
14637 + ;;
14638 +
14639 + hpux9* | hpux10* | hpux11*)
14640 + # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
14641 + lt_cv_prog_cc_wl='-Wl,'
14642 + lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
14643 + lt_cv_prog_cc_pic='+Z'
14644 + ;;
14645 +
14646 + irix5* | irix6* | nonstopux*)
14647 + lt_cv_prog_cc_wl='-Wl,'
14648 + lt_cv_prog_cc_static='-non_shared'
14649 + # PIC (with -KPIC) is the default.
14650 + ;;
14651 +
14652 + cygwin* | mingw* | pw32* | os2*)
14653 + # This hack is so that the source file can tell whether it is being
14654 + # built for inclusion in a dll (and should export symbols for example).
14655 + lt_cv_prog_cc_pic='-DDLL_EXPORT'
14656 + ;;
14657 +
14658 + newsos6)
14659 + lt_cv_prog_cc_pic='-KPIC'
14660 + lt_cv_prog_cc_static='-Bstatic'
14661 + ;;
14662 +
14663 + osf3* | osf4* | osf5*)
14664 + # All OSF/1 code is PIC.
14665 + lt_cv_prog_cc_wl='-Wl,'
14666 + lt_cv_prog_cc_static='-non_shared'
14667 + ;;
14668 +
14669 + sco3.2v5*)
14670 + lt_cv_prog_cc_pic='-Kpic'
14671 + lt_cv_prog_cc_static='-dn'
14672 + lt_cv_prog_cc_shlib='-belf'
14673 + ;;
14674 +
14675 + solaris*)
14676 + lt_cv_prog_cc_pic='-KPIC'
14677 + lt_cv_prog_cc_static='-Bstatic'
14678 + lt_cv_prog_cc_wl='-Wl,'
14679 + ;;
14680 +
14681 + sunos4*)
14682 + lt_cv_prog_cc_pic='-PIC'
14683 + lt_cv_prog_cc_static='-Bstatic'
14684 + lt_cv_prog_cc_wl='-Qoption ld '
14685 + ;;
14686 +
14687 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14688 + lt_cv_prog_cc_pic='-KPIC'
14689 + lt_cv_prog_cc_static='-Bstatic'
14690 + lt_cv_prog_cc_wl='-Wl,'
14691 + ;;
14692 +
14693 + uts4*)
14694 + lt_cv_prog_cc_pic='-pic'
14695 + lt_cv_prog_cc_static='-Bstatic'
14696 + ;;
14697 +
14698 + sysv4*MP*)
14699 + if test -d /usr/nec ;then
14700 + lt_cv_prog_cc_pic='-Kconform_pic'
14701 + lt_cv_prog_cc_static='-Bstatic'
14702 + fi
14703 + ;;
14704 +
14705 + *)
14706 + lt_cv_prog_cc_can_build_shared=no
14707 + ;;
14708 + esac
14709 + fi
14710 +
14711 +fi
14712 +
14713 +if test -z "$lt_cv_prog_cc_pic"; then
14714 + echo "$as_me:$LINENO: result: none" >&5
14715 +echo "${ECHO_T}none" >&6
14716 +else
14717 + echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
14718 +echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
14719 +
14720 + # Check to make sure the pic_flag actually works.
14721 + echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
14722 +echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
14723 + if test "${lt_cv_prog_cc_pic_works+set}" = set; then
14724 + echo $ECHO_N "(cached) $ECHO_C" >&6
14725 +else
14726 + save_CFLAGS="$CFLAGS"
14727 + CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
14728 + cat >conftest.$ac_ext <<_ACEOF
14729 +/* confdefs.h. */
14730 +_ACEOF
14731 +cat confdefs.h >>conftest.$ac_ext
14732 +cat >>conftest.$ac_ext <<_ACEOF
14733 +/* end confdefs.h. */
14734 +
14735 +int
14736 +main ()
14737 +{
14738 +
14739 + ;
14740 + return 0;
14741 +}
14742 +_ACEOF
14743 +rm -f conftest.$ac_objext
14744 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14745 + (eval $ac_compile) 2>conftest.er1
14746 + ac_status=$?
14747 + grep -v '^ *+' conftest.er1 >conftest.err
14748 + rm -f conftest.er1
14749 + cat conftest.err >&5
14750 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 + (exit $ac_status); } &&
14752 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14753 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 + (eval $ac_try) 2>&5
14755 + ac_status=$?
14756 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 + (exit $ac_status); }; } &&
14758 + { ac_try='test -s conftest.$ac_objext'
14759 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 + (eval $ac_try) 2>&5
14761 + ac_status=$?
14762 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 + (exit $ac_status); }; }; then
14764 + case $host_os in
14765 + hpux9* | hpux10* | hpux11*)
14766 + # On HP-UX, both CC and GCC only warn that PIC is supported... then
14767 + # they create non-PIC objects. So, if there were any warnings, we
14768 + # assume that PIC is not supported.
14769 + if test -s conftest.err; then
14770 + lt_cv_prog_cc_pic_works=no
14771 + else
14772 + lt_cv_prog_cc_pic_works=yes
14773 + fi
14774 + ;;
14775 + *)
14776 + lt_cv_prog_cc_pic_works=yes
14777 + ;;
14778 + esac
14779 +
14780 +else
14781 + echo "$as_me: failed program was:" >&5
14782 +sed 's/^/| /' conftest.$ac_ext >&5
14783 +
14784 + lt_cv_prog_cc_pic_works=no
14785 +
14786 +fi
14787 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14788 + CFLAGS="$save_CFLAGS"
14789 +
14790 +fi
14791 +
14792 +
14793 + if test "X$lt_cv_prog_cc_pic_works" = Xno; then
14794 + lt_cv_prog_cc_pic=
14795 + lt_cv_prog_cc_can_build_shared=no
14796 + else
14797 + lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
14798 + fi
14799 +
14800 + echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
14801 +echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
14802 +fi
14803 +
14804 +# Check for any special shared library compilation flags.
14805 +if test -n "$lt_cv_prog_cc_shlib"; then
14806 + { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
14807 +echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
14808 + if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
14809 + else
14810 + { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
14811 +echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
14812 + lt_cv_prog_cc_can_build_shared=no
14813 + fi
14814 +fi
14815 +
14816 +echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
14817 +echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
14818 +if test "${lt_cv_prog_cc_static_works+set}" = set; then
14819 + echo $ECHO_N "(cached) $ECHO_C" >&6
14820 +else
14821 + lt_cv_prog_cc_static_works=no
14822 + save_LDFLAGS="$LDFLAGS"
14823 + LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
14824 + cat >conftest.$ac_ext <<_ACEOF
14825 +/* confdefs.h. */
14826 +_ACEOF
14827 +cat confdefs.h >>conftest.$ac_ext
14828 +cat >>conftest.$ac_ext <<_ACEOF
14829 +/* end confdefs.h. */
14830 +
14831 +int
14832 +main ()
14833 +{
14834 +
14835 + ;
14836 + return 0;
14837 +}
14838 +_ACEOF
14839 +rm -f conftest.$ac_objext conftest$ac_exeext
14840 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14841 + (eval $ac_link) 2>conftest.er1
14842 + ac_status=$?
14843 + grep -v '^ *+' conftest.er1 >conftest.err
14844 + rm -f conftest.er1
14845 + cat conftest.err >&5
14846 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 + (exit $ac_status); } &&
14848 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14849 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850 + (eval $ac_try) 2>&5
14851 + ac_status=$?
14852 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 + (exit $ac_status); }; } &&
14854 + { ac_try='test -s conftest$ac_exeext'
14855 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856 + (eval $ac_try) 2>&5
14857 + ac_status=$?
14858 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 + (exit $ac_status); }; }; then
14860 + lt_cv_prog_cc_static_works=yes
14861 +else
14862 + echo "$as_me: failed program was:" >&5
14863 +sed 's/^/| /' conftest.$ac_ext >&5
14864 +
14865 +fi
14866 +rm -f conftest.err conftest.$ac_objext \
14867 + conftest$ac_exeext conftest.$ac_ext
14868 + LDFLAGS="$save_LDFLAGS"
14869 +
14870 +fi
14871 +
14872 +
14873 +# Belt *and* braces to stop my trousers falling down:
14874 +test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
14875 +echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
14876 +echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
14877 +
14878 +pic_flag="$lt_cv_prog_cc_pic"
14879 +special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
14880 +wl="$lt_cv_prog_cc_wl"
14881 +link_static_flag="$lt_cv_prog_cc_static"
14882 +no_builtin_flag="$lt_cv_prog_cc_no_builtin"
14883 +can_build_shared="$lt_cv_prog_cc_can_build_shared"
14884 +
14885 +
14886 +# Check to see if options -o and -c are simultaneously supported by compiler
14887 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14888 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14889 +if test "${lt_cv_compiler_c_o+set}" = set; then
14890 + echo $ECHO_N "(cached) $ECHO_C" >&6
14891 +else
14892 +
14893 +$rm -r conftest 2>/dev/null
14894 +mkdir conftest
14895 +cd conftest
14896 +echo "int some_variable = 0;" > conftest.$ac_ext
14897 +mkdir out
14898 +# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14899 +# that will create temporary files in the current directory regardless of
14900 +# the output directory. Thus, making CWD read-only will cause this test
14901 +# to fail, enabling locking or at least warning the user not to do parallel
14902 +# builds.
14903 +chmod -w .
14904 +save_CFLAGS="$CFLAGS"
14905 +CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
14906 +compiler_c_o=no
14907 +if { (eval echo configure:5680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
14908 + # The compiler can only warn and ignore the option if not recognized
14909 + # So say no if there are warnings
14910 + if test -s out/conftest.err; then
14911 + lt_cv_compiler_c_o=no
14912 + else
14913 + lt_cv_compiler_c_o=yes
14914 + fi
14915 +else
14916 + # Append any errors to the config.log.
14917 + cat out/conftest.err 1>&5
14918 + lt_cv_compiler_c_o=no
14919 +fi
14920 +CFLAGS="$save_CFLAGS"
14921 +chmod u+w .
14922 +$rm conftest* out/*
14923 +rmdir out
14924 +cd ..
14925 +rmdir conftest
14926 +$rm -r conftest 2>/dev/null
14927 +
14928 +fi
14929 +
14930 +compiler_c_o=$lt_cv_compiler_c_o
14931 +echo "$as_me:$LINENO: result: $compiler_c_o" >&5
14932 +echo "${ECHO_T}$compiler_c_o" >&6
14933 +
14934 +if test x"$compiler_c_o" = x"yes"; then
14935 + # Check to see if we can write to a .lo
14936 + echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
14937 +echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
14938 + if test "${lt_cv_compiler_o_lo+set}" = set; then
14939 + echo $ECHO_N "(cached) $ECHO_C" >&6
14940 +else
14941 +
14942 + lt_cv_compiler_o_lo=no
14943 + save_CFLAGS="$CFLAGS"
14944 + CFLAGS="$CFLAGS -c -o conftest.lo"
14945 + save_objext="$ac_objext"
14946 + ac_objext=lo
14947 + cat >conftest.$ac_ext <<_ACEOF
14948 +/* confdefs.h. */
14949 +_ACEOF
14950 +cat confdefs.h >>conftest.$ac_ext
14951 +cat >>conftest.$ac_ext <<_ACEOF
14952 +/* end confdefs.h. */
14953 +
14954 +int
14955 +main ()
14956 +{
14957 +int some_variable = 0;
14958 + ;
14959 + return 0;
14960 +}
14961 +_ACEOF
14962 +rm -f conftest.$ac_objext
14963 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14964 + (eval $ac_compile) 2>conftest.er1
14965 + ac_status=$?
14966 + grep -v '^ *+' conftest.er1 >conftest.err
14967 + rm -f conftest.er1
14968 + cat conftest.err >&5
14969 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 + (exit $ac_status); } &&
14971 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14972 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973 + (eval $ac_try) 2>&5
14974 + ac_status=$?
14975 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 + (exit $ac_status); }; } &&
14977 + { ac_try='test -s conftest.$ac_objext'
14978 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979 + (eval $ac_try) 2>&5
14980 + ac_status=$?
14981 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 + (exit $ac_status); }; }; then
14983 + # The compiler can only warn and ignore the option if not recognized
14984 + # So say no if there are warnings
14985 + if test -s conftest.err; then
14986 + lt_cv_compiler_o_lo=no
14987 + else
14988 + lt_cv_compiler_o_lo=yes
14989 + fi
14990 +
14991 +else
14992 + echo "$as_me: failed program was:" >&5
14993 +sed 's/^/| /' conftest.$ac_ext >&5
14994 +
14995 +fi
14996 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14997 + ac_objext="$save_objext"
14998 + CFLAGS="$save_CFLAGS"
14999 +
15000 +fi
15001 +
15002 + compiler_o_lo=$lt_cv_compiler_o_lo
15003 + echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
15004 +echo "${ECHO_T}$compiler_o_lo" >&6
15005 +else
15006 + compiler_o_lo=no
15007 +fi
15008 +
15009 +# Check to see if we can do hard links to lock some files if needed
15010 +hard_links="nottested"
15011 +if test "$compiler_c_o" = no && test "$need_locks" != no; then
15012 + # do not overwrite the value of need_locks provided by the user
15013 + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15014 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15015 + hard_links=yes
15016 + $rm conftest*
15017 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
15018 + touch conftest.a
15019 + ln conftest.a conftest.b 2>&5 || hard_links=no
15020 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
15021 + echo "$as_me:$LINENO: result: $hard_links" >&5
15022 +echo "${ECHO_T}$hard_links" >&6
15023 + if test "$hard_links" = no; then
15024 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15025 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15026 + need_locks=warn
15027 + fi
15028 +else
15029 + need_locks=no
15030 +fi
15031 +
15032 +if test "$GCC" = yes; then
15033 + # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
15034 + echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15035 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15036 + echo "int some_variable = 0;" > conftest.$ac_ext
15037 + save_CFLAGS="$CFLAGS"
15038 + CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
15039 + compiler_rtti_exceptions=no
15040 + cat >conftest.$ac_ext <<_ACEOF
15041 +/* confdefs.h. */
15042 +_ACEOF
15043 +cat confdefs.h >>conftest.$ac_ext
15044 +cat >>conftest.$ac_ext <<_ACEOF
15045 +/* end confdefs.h. */
15046 +
15047 +int
15048 +main ()
15049 +{
15050 +int some_variable = 0;
15051 + ;
15052 + return 0;
15053 +}
15054 +_ACEOF
15055 +rm -f conftest.$ac_objext
15056 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15057 + (eval $ac_compile) 2>conftest.er1
15058 + ac_status=$?
15059 + grep -v '^ *+' conftest.er1 >conftest.err
15060 + rm -f conftest.er1
15061 + cat conftest.err >&5
15062 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 + (exit $ac_status); } &&
15064 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15065 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 + (eval $ac_try) 2>&5
15067 + ac_status=$?
15068 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 + (exit $ac_status); }; } &&
15070 + { ac_try='test -s conftest.$ac_objext'
15071 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15072 + (eval $ac_try) 2>&5
15073 + ac_status=$?
15074 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 + (exit $ac_status); }; }; then
15076 + # The compiler can only warn and ignore the option if not recognized
15077 + # So say no if there are warnings
15078 + if test -s conftest.err; then
15079 + compiler_rtti_exceptions=no
15080 + else
15081 + compiler_rtti_exceptions=yes
15082 + fi
15083 +
15084 +else
15085 + echo "$as_me: failed program was:" >&5
15086 +sed 's/^/| /' conftest.$ac_ext >&5
15087 +
15088 +fi
15089 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15090 + CFLAGS="$save_CFLAGS"
15091 + echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
15092 +echo "${ECHO_T}$compiler_rtti_exceptions" >&6
15093 +
15094 + if test "$compiler_rtti_exceptions" = "yes"; then
15095 + no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
15096 + else
15097 + no_builtin_flag=' -fno-builtin'
15098 + fi
15099 +fi
15100 +
15101 +# See if the linker supports building shared libraries.
15102 +echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
15103 +echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
15104 +
15105 +allow_undefined_flag=
15106 +no_undefined_flag=
15107 +need_lib_prefix=unknown
15108 +need_version=unknown
15109 +# when you set need_version to no, make sure it does not cause -set_version
15110 +# flags to be left without arguments
15111 +archive_cmds=
15112 +archive_expsym_cmds=
15113 +old_archive_from_new_cmds=
15114 +old_archive_from_expsyms_cmds=
15115 +export_dynamic_flag_spec=
15116 +whole_archive_flag_spec=
15117 +thread_safe_flag_spec=
15118 +hardcode_into_libs=no
15119 +hardcode_libdir_flag_spec=
15120 +hardcode_libdir_separator=
15121 +hardcode_direct=no
15122 +hardcode_minus_L=no
15123 +hardcode_shlibpath_var=unsupported
15124 +runpath_var=
15125 +link_all_deplibs=unknown
15126 +always_export_symbols=no
15127 +export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
15128 +# include_expsyms should be a list of space-separated symbols to be *always*
15129 +# included in the symbol list
15130 +include_expsyms=
15131 +# exclude_expsyms can be an egrep regular expression of symbols to exclude
15132 +# it will be wrapped by ` (' and `)$', so one must not match beginning or
15133 +# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15134 +# as well as any symbol that contains `d'.
15135 +exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15136 +# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15137 +# platforms (ab)use it in PIC code, but their linkers get confused if
15138 +# the symbol is explicitly referenced. Since portable code cannot
15139 +# rely on this symbol name, it's probably fine to never include it in
15140 +# preloaded symbol tables.
15141 +extract_expsyms_cmds=
15142 +
15143 +case $host_os in
15144 +cygwin* | mingw* | pw32*)
15145 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
15146 + # When not using gcc, we currently assume that we are using
15147 + # Microsoft Visual C++.
15148 + if test "$GCC" != yes; then
15149 + with_gnu_ld=no
15150 + fi
15151 + ;;
15152 +openbsd*)
15153 + with_gnu_ld=no
15154 + ;;
15155 +esac
15156 +
15157 +ld_shlibs=yes
15158 +if test "$with_gnu_ld" = yes; then
15159 + # If archive_cmds runs LD, not CC, wlarc should be empty
15160 + wlarc='${wl}'
15161 +
15162 + # See if GNU ld supports shared libraries.
15163 + case $host_os in
15164 + aix3* | aix4* | aix5*)
15165 + # On AIX, the GNU linker is very broken
15166 + # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
15167 + ld_shlibs=no
15168 + cat <<EOF 1>&2
15169 +
15170 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15171 +*** to be unable to reliably create shared libraries on AIX.
15172 +*** Therefore, libtool is disabling shared libraries support. If you
15173 +*** really care for shared libraries, you may want to modify your PATH
15174 +*** so that a non-GNU linker is found, and then restart.
15175 +
15176 +EOF
15177 + ;;
15178 +
15179 + amigaos*)
15180 + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15181 + hardcode_libdir_flag_spec='-L$libdir'
15182 + hardcode_minus_L=yes
15183 +
15184 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15185 + # that the semantics of dynamic libraries on AmigaOS, at least up
15186 + # to version 4, is to share data among multiple programs linked
15187 + # with the same dynamic library. Since this doesn't match the
15188 + # behavior of shared libraries on other platforms, we can use
15189 + # them.
15190 + ld_shlibs=no
15191 + ;;
15192 +
15193 + beos*)
15194 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15195 + allow_undefined_flag=unsupported
15196 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15197 + # support --undefined. This deserves some investigation. FIXME
15198 + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15199 + else
15200 + ld_shlibs=no
15201 + fi
15202 + ;;
15203 +
15204 + cygwin* | mingw* | pw32*)
15205 + # hardcode_libdir_flag_spec is actually meaningless, as there is
15206 + # no search path for DLLs.
15207 + hardcode_libdir_flag_spec='-L$libdir'
15208 + allow_undefined_flag=unsupported
15209 + always_export_symbols=yes
15210 +
15211 + extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
15212 + sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
15213 + test -f $output_objdir/impgen.exe || (cd $output_objdir && \
15214 + if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
15215 + else $CC -o impgen impgen.c ; fi)~
15216 + $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
15217 +
15218 + old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
15219 +
15220 + # cygwin and mingw dlls have different entry points and sets of symbols
15221 + # to exclude.
15222 + # FIXME: what about values for MSVC?
15223 + dll_entry=__cygwin_dll_entry@12
15224 + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
15225 + case $host_os in
15226 + mingw*)
15227 + # mingw values
15228 + dll_entry=_DllMainCRTStartup@12
15229 + dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
15230 + ;;
15231 + esac
15232 +
15233 + # mingw and cygwin differ, and it's simplest to just exclude the union
15234 + # of the two symbol sets.
15235 + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
15236 +
15237 + # recent cygwin and mingw systems supply a stub DllMain which the user
15238 + # can override, but on older systems we have to supply one (in ltdll.c)
15239 + if test "x$lt_cv_need_dllmain" = "xyes"; then
15240 + ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
15241 + ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
15242 + test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
15243 + else
15244 + ltdll_obj=
15245 + ltdll_cmds=
15246 + fi
15247 +
15248 + # Extract the symbol export list from an `--export-all' def file,
15249 + # then regenerate the def file from the symbol export list, so that
15250 + # the compiled dll only exports the symbol export list.
15251 + # Be careful not to strip the DATA tag left be newer dlltools.
15252 + export_symbols_cmds="$ltdll_cmds"'
15253 + $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
15254 + sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
15255 +
15256 + # If the export-symbols file already is a .def file (1st line
15257 + # is EXPORTS), use it as is.
15258 + # If DATA tags from a recent dlltool are present, honour them!
15259 + archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
15260 + cp $export_symbols $output_objdir/$soname-def;
15261 + else
15262 + echo EXPORTS > $output_objdir/$soname-def;
15263 + _lt_hint=1;
15264 + cat $export_symbols | while read symbol; do
15265 + set dummy \$symbol;
15266 + case \$# in
15267 + 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
15268 + 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
15269 + *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
15270 + esac;
15271 + _lt_hint=`expr 1 + \$_lt_hint`;
15272 + done;
15273 + fi~
15274 + '"$ltdll_cmds"'
15275 + $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
15276 + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
15277 + $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
15278 + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
15279 + $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
15280 + ;;
15281 +
15282 + netbsd*)
15283 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15284 + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15285 + wlarc=
15286 + else
15287 + archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15288 + archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15289 + fi
15290 + ;;
15291 +
15292 + solaris* | sysv5*)
15293 + if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
15294 + ld_shlibs=no
15295 + cat <<EOF 1>&2
15296 +
15297 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15298 +*** create shared libraries on Solaris systems. Therefore, libtool
15299 +*** is disabling shared libraries support. We urge you to upgrade GNU
15300 +*** binutils to release 2.9.1 or newer. Another option is to modify
15301 +*** your PATH or compiler configuration so that the native linker is
15302 +*** used, and then restart.
15303 +
15304 +EOF
15305 + elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15306 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15307 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15308 + else
15309 + ld_shlibs=no
15310 + fi
15311 + ;;
15312 +
15313 + sunos4*)
15314 + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15315 + wlarc=
15316 + hardcode_direct=yes
15317 + hardcode_shlibpath_var=no
15318 + ;;
15319 +
15320 + *)
15321 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15322 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15323 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15324 + else
15325 + ld_shlibs=no
15326 + fi
15327 + ;;
15328 + esac
15329 +
15330 + if test "$ld_shlibs" = yes; then
15331 + runpath_var=LD_RUN_PATH
15332 + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15333 + export_dynamic_flag_spec='${wl}--export-dynamic'
15334 + case $host_os in
15335 + cygwin* | mingw* | pw32*)
15336 + # dlltool doesn't understand --whole-archive et. al.
15337 + whole_archive_flag_spec=
15338 + ;;
15339 + *)
15340 + # ancient GNU ld didn't support --whole-archive et. al.
15341 + if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
15342 + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15343 + else
15344 + whole_archive_flag_spec=
15345 + fi
15346 + ;;
15347 + esac
15348 + fi
15349 +else
15350 + # PORTME fill in a description of your system's linker (not GNU ld)
15351 + case $host_os in
15352 + aix3*)
15353 + allow_undefined_flag=unsupported
15354 + always_export_symbols=yes
15355 + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15356 + # Note: this linker hardcodes the directories in LIBPATH if there
15357 + # are no directories specified by -L.
15358 + hardcode_minus_L=yes
15359 + if test "$GCC" = yes && test -z "$link_static_flag"; then
15360 + # Neither direct hardcoding nor static linking is supported with a
15361 + # broken collect2.
15362 + hardcode_direct=unsupported
15363 + fi
15364 + ;;
15365 +
15366 + aix4* | aix5*)
15367 + if test "$host_cpu" = ia64; then
15368 + # On IA64, the linker does run time linking by default, so we don't
15369 + # have to do anything special.
15370 + aix_use_runtimelinking=no
15371 + exp_sym_flag='-Bexport'
15372 + no_entry_flag=""
15373 + else
15374 + aix_use_runtimelinking=no
15375 +
15376 + # Test if we are trying to use run time linking or normal
15377 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15378 + # need to do runtime linking.
15379 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15380 + for ld_flag in $LDFLAGS; do
15381 + case $ld_flag in
15382 + *-brtl*)
15383 + aix_use_runtimelinking=yes
15384 + break
15385 + ;;
15386 + esac
15387 + done
15388 + esac
15389 +
15390 + exp_sym_flag='-bexport'
15391 + no_entry_flag='-bnoentry'
15392 + fi
15393 +
15394 + # When large executables or shared objects are built, AIX ld can
15395 + # have problems creating the table of contents. If linking a library
15396 + # or program results in "error TOC overflow" add -mminimal-toc to
15397 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15398 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15399 +
15400 + hardcode_direct=yes
15401 + archive_cmds=''
15402 + hardcode_libdir_separator=':'
15403 + if test "$GCC" = yes; then
15404 + case $host_os in aix4.[012]|aix4.[012].*)
15405 + collect2name=`${CC} -print-prog-name=collect2`
15406 + if test -f "$collect2name" && \
15407 + strings "$collect2name" | grep resolve_lib_name >/dev/null
15408 + then
15409 + # We have reworked collect2
15410 + hardcode_direct=yes
15411 + else
15412 + # We have old collect2
15413 + hardcode_direct=unsupported
15414 + # It fails to find uninstalled libraries when the uninstalled
15415 + # path is not listed in the libpath. Setting hardcode_minus_L
15416 + # to unsupported forces relinking
15417 + hardcode_minus_L=yes
15418 + hardcode_libdir_flag_spec='-L$libdir'
15419 + hardcode_libdir_separator=
15420 + fi
15421 + esac
15422 +
15423 + shared_flag='-shared'
15424 + else
15425 + # not using gcc
15426 + if test "$host_cpu" = ia64; then
15427 + shared_flag='${wl}-G'
15428 + else
15429 + if test "$aix_use_runtimelinking" = yes; then
15430 + shared_flag='${wl}-G'
15431 + else
15432 + shared_flag='${wl}-bM:SRE'
15433 + fi
15434 + fi
15435 + fi
15436 +
15437 + # It seems that -bexpall can do strange things, so it is better to
15438 + # generate a list of symbols to export.
15439 + always_export_symbols=yes
15440 + if test "$aix_use_runtimelinking" = yes; then
15441 + # Warning - without using the other runtime loading flags (-brtl),
15442 + # -berok will link without error, but may produce a broken library.
15443 + allow_undefined_flag='-berok'
15444 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
15445 + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15446 + else
15447 + if test "$host_cpu" = ia64; then
15448 + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15449 + allow_undefined_flag="-z nodefs"
15450 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15451 + else
15452 + hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
15453 + # Warning - without using the other run time loading flags,
15454 + # -berok will link without error, but may produce a broken library.
15455 + allow_undefined_flag='${wl}-berok'
15456 + # This is a bit strange, but is similar to how AIX traditionally builds
15457 + # it's shared libraries.
15458 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname'
15459 + fi
15460 + fi
15461 + ;;
15462 +
15463 + amigaos*)
15464 + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15465 + hardcode_libdir_flag_spec='-L$libdir'
15466 + hardcode_minus_L=yes
15467 + # see comment about different semantics on the GNU ld section
15468 + ld_shlibs=no
15469 + ;;
15470 +
15471 + cygwin* | mingw* | pw32*)
15472 + # When not using gcc, we currently assume that we are using
15473 + # Microsoft Visual C++.
15474 + # hardcode_libdir_flag_spec is actually meaningless, as there is
15475 + # no search path for DLLs.
15476 + hardcode_libdir_flag_spec=' '
15477 + allow_undefined_flag=unsupported
15478 + # Tell ltmain to make .lib files, not .a files.
15479 + libext=lib
15480 + # FIXME: Setting linknames here is a bad hack.
15481 + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
15482 + # The linker will automatically build a .lib file if we build a DLL.
15483 + old_archive_from_new_cmds='true'
15484 + # FIXME: Should let the user specify the lib program.
15485 + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15486 + fix_srcfile_path='`cygpath -w "$srcfile"`'
15487 + ;;
15488 +
15489 + darwin* | rhapsody*)
15490 + case "$host_os" in
15491 + rhapsody* | darwin1.[012])
15492 + allow_undefined_flag='-undefined suppress'
15493 + ;;
15494 + *) # Darwin 1.3 on
15495 + allow_undefined_flag='-flat_namespace -undefined suppress'
15496 + ;;
15497 + esac
15498 + # FIXME: Relying on posixy $() will cause problems for
15499 + # cross-compilation, but unfortunately the echo tests do not
15500 + # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15501 + # `"' quotes if we put them in here... so don't!
15502 + archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
15503 + # We need to add '_' to the symbols in $export_symbols first
15504 + #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
15505 + hardcode_direct=yes
15506 + hardcode_shlibpath_var=no
15507 + whole_archive_flag_spec='-all_load $convenience'
15508 + ;;
15509 +
15510 + freebsd1*)
15511 + ld_shlibs=no
15512 + ;;
15513 +
15514 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15515 + # support. Future versions do this automatically, but an explicit c++rt0.o
15516 + # does not break anything, and helps significantly (at the cost of a little
15517 + # extra space).
15518 + freebsd2.2*)
15519 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15520 + hardcode_libdir_flag_spec='-R$libdir'
15521 + hardcode_direct=yes
15522 + hardcode_shlibpath_var=no
15523 + ;;
15524 +
15525 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15526 + freebsd2*)
15527 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15528 + hardcode_direct=yes
15529 + hardcode_minus_L=yes
15530 + hardcode_shlibpath_var=no
15531 + ;;
15532 +
15533 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15534 + freebsd*)
15535 + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15536 + hardcode_libdir_flag_spec='-R$libdir'
15537 + hardcode_direct=yes
15538 + hardcode_shlibpath_var=no
15539 + ;;
15540 +
15541 + hpux9* | hpux10* | hpux11*)
15542 + case $host_os in
15543 + hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
15544 + *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
15545 + esac
15546 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15547 + hardcode_libdir_separator=:
15548 + hardcode_direct=yes
15549 + hardcode_minus_L=yes # Not in the search PATH, but as the default
15550 + # location of the library.
15551 + export_dynamic_flag_spec='${wl}-E'
15552 + ;;
15553 +
15554 + irix5* | irix6* | nonstopux*)
15555 + if test "$GCC" = yes; then
15556 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15557 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15558 + else
15559 + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15560 + hardcode_libdir_flag_spec='-rpath $libdir'
15561 + fi
15562 + hardcode_libdir_separator=:
15563 + link_all_deplibs=yes
15564 + ;;
15565 +
15566 + netbsd*)
15567 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15568 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15569 + else
15570 + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15571 + fi
15572 + hardcode_libdir_flag_spec='-R$libdir'
15573 + hardcode_direct=yes
15574 + hardcode_shlibpath_var=no
15575 + ;;
15576 +
15577 + newsos6)
15578 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15579 + hardcode_direct=yes
15580 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15581 + hardcode_libdir_separator=:
15582 + hardcode_shlibpath_var=no
15583 + ;;
15584 +
15585 + openbsd*)
15586 + hardcode_direct=yes
15587 + hardcode_shlibpath_var=no
15588 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15589 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15590 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15591 + export_dynamic_flag_spec='${wl}-E'
15592 + else
15593 + case "$host_os" in
15594 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15595 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15596 + hardcode_libdir_flag_spec='-R$libdir'
15597 + ;;
15598 + *)
15599 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15600 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15601 + ;;
15602 + esac
15603 + fi
15604 + ;;
15605 +
15606 + os2*)
15607 + hardcode_libdir_flag_spec='-L$libdir'
15608 + hardcode_minus_L=yes
15609 + allow_undefined_flag=unsupported
15610 + archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15611 + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15612 + ;;
15613 +
15614 + osf3*)
15615 + if test "$GCC" = yes; then
15616 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15617 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15618 + else
15619 + allow_undefined_flag=' -expect_unresolved \*'
15620 + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15621 + fi
15622 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15623 + hardcode_libdir_separator=:
15624 + ;;
15625 +
15626 + osf4* | osf5*) # as osf3* with the addition of -msym flag
15627 + if test "$GCC" = yes; then
15628 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15629 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15630 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15631 + else
15632 + allow_undefined_flag=' -expect_unresolved \*'
15633 + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15634 + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15635 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15636 +
15637 + #Both c and cxx compiler support -rpath directly
15638 + hardcode_libdir_flag_spec='-rpath $libdir'
15639 + fi
15640 + hardcode_libdir_separator=:
15641 + ;;
15642 +
15643 + sco3.2v5*)
15644 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15645 + hardcode_shlibpath_var=no
15646 + runpath_var=LD_RUN_PATH
15647 + hardcode_runpath_var=yes
15648 + export_dynamic_flag_spec='${wl}-Bexport'
15649 + ;;
15650 +
15651 + solaris*)
15652 + # gcc --version < 3.0 without binutils cannot create self contained
15653 + # shared libraries reliably, requiring libgcc.a to resolve some of
15654 + # the object symbols generated in some cases. Libraries that use
15655 + # assert need libgcc.a to resolve __eprintf, for example. Linking
15656 + # a copy of libgcc.a into every shared library to guarantee resolving
15657 + # such symbols causes other problems: According to Tim Van Holder
15658 + # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
15659 + # (to the application) exception stack for one thing.
15660 + no_undefined_flag=' -z defs'
15661 + if test "$GCC" = yes; then
15662 + case `$CC --version 2>/dev/null` in
15663 + [12].*)
15664 + cat <<EOF 1>&2
15665 +
15666 +*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
15667 +*** create self contained shared libraries on Solaris systems, without
15668 +*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
15669 +*** -no-undefined support, which will at least allow you to build shared
15670 +*** libraries. However, you may find that when you link such libraries
15671 +*** into an application without using GCC, you have to manually add
15672 +*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
15673 +*** upgrade to a newer version of GCC. Another option is to rebuild your
15674 +*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
15675 +
15676 +EOF
15677 + no_undefined_flag=
15678 + ;;
15679 + esac
15680 + fi
15681 + # $CC -shared without GNU ld will not create a library from C++
15682 + # object files and a static libstdc++, better avoid it by now
15683 + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15684 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15685 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15686 + hardcode_libdir_flag_spec='-R$libdir'
15687 + hardcode_shlibpath_var=no
15688 + case $host_os in
15689 + solaris2.[0-5] | solaris2.[0-5].*) ;;
15690 + *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15691 + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15692 + esac
15693 + link_all_deplibs=yes
15694 + ;;
15695 +
15696 + sunos4*)
15697 + if test "x$host_vendor" = xsequent; then
15698 + # Use $CC to link under sequent, because it throws in some extra .o
15699 + # files that make .init and .fini sections work.
15700 + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15701 + else
15702 + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15703 + fi
15704 + hardcode_libdir_flag_spec='-L$libdir'
15705 + hardcode_direct=yes
15706 + hardcode_minus_L=yes
15707 + hardcode_shlibpath_var=no
15708 + ;;
15709 +
15710 + sysv4)
15711 + case $host_vendor in
15712 + sni)
15713 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15714 + hardcode_direct=yes # is this really true???
15715 + ;;
15716 + siemens)
15717 + ## LD is ld it makes a PLAMLIB
15718 + ## CC just makes a GrossModule.
15719 + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15720 + reload_cmds='$CC -r -o $output$reload_objs'
15721 + hardcode_direct=no
15722 + ;;
15723 + motorola)
15724 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15725 + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15726 + ;;
15727 + esac
15728 + runpath_var='LD_RUN_PATH'
15729 + hardcode_shlibpath_var=no
15730 + ;;
15731 +
15732 + sysv4.3*)
15733 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15734 + hardcode_shlibpath_var=no
15735 + export_dynamic_flag_spec='-Bexport'
15736 + ;;
15737 +
15738 + sysv5*)
15739 + no_undefined_flag=' -z text'
15740 + # $CC -shared without GNU ld will not create a library from C++
15741 + # object files and a static libstdc++, better avoid it by now
15742 + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15743 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15744 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15745 + hardcode_libdir_flag_spec=
15746 + hardcode_shlibpath_var=no
15747 + runpath_var='LD_RUN_PATH'
15748 + ;;
15749 +
15750 + uts4*)
15751 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15752 + hardcode_libdir_flag_spec='-L$libdir'
15753 + hardcode_shlibpath_var=no
15754 + ;;
15755 +
15756 + dgux*)
15757 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15758 + hardcode_libdir_flag_spec='-L$libdir'
15759 + hardcode_shlibpath_var=no
15760 + ;;
15761 +
15762 + sysv4*MP*)
15763 + if test -d /usr/nec; then
15764 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15765 + hardcode_shlibpath_var=no
15766 + runpath_var=LD_RUN_PATH
15767 + hardcode_runpath_var=yes
15768 + ld_shlibs=yes
15769 + fi
15770 + ;;
15771 +
15772 + sysv4.2uw2*)
15773 + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15774 + hardcode_direct=yes
15775 + hardcode_minus_L=no
15776 + hardcode_shlibpath_var=no
15777 + hardcode_runpath_var=yes
15778 + runpath_var=LD_RUN_PATH
15779 + ;;
15780 +
15781 + sysv5uw7* | unixware7*)
15782 + no_undefined_flag='${wl}-z ${wl}text'
15783 + if test "$GCC" = yes; then
15784 + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15785 + else
15786 + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15787 + fi
15788 + runpath_var='LD_RUN_PATH'
15789 + hardcode_shlibpath_var=no
15790 + ;;
15791 +
15792 + *)
15793 + ld_shlibs=no
15794 + ;;
15795 + esac
15796 +fi
15797 +echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15798 +echo "${ECHO_T}$ld_shlibs" >&6
15799 +test "$ld_shlibs" = no && can_build_shared=no
15800 +
15801 +# Check hardcoding attributes.
15802 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15803 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15804 +hardcode_action=
15805 +if test -n "$hardcode_libdir_flag_spec" || \
15806 + test -n "$runpath_var"; then
15807 +
15808 + # We can hardcode non-existant directories.
15809 + if test "$hardcode_direct" != no &&
15810 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
15811 + # have to relink, otherwise we might link with an installed library
15812 + # when we should be linking with a yet-to-be-installed one
15813 + ## test "$hardcode_shlibpath_var" != no &&
15814 + test "$hardcode_minus_L" != no; then
15815 + # Linking always hardcodes the temporary library directory.
15816 + hardcode_action=relink
15817 + else
15818 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
15819 + hardcode_action=immediate
15820 + fi
15821 +else
15822 + # We cannot hardcode anything, or else we can only hardcode existing
15823 + # directories.
15824 + hardcode_action=unsupported
15825 +fi
15826 +echo "$as_me:$LINENO: result: $hardcode_action" >&5
15827 +echo "${ECHO_T}$hardcode_action" >&6
15828 +
15829 +striplib=
15830 +old_striplib=
15831 +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15832 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15833 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15834 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15835 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15836 + echo "$as_me:$LINENO: result: yes" >&5
15837 +echo "${ECHO_T}yes" >&6
15838 +else
15839 + echo "$as_me:$LINENO: result: no" >&5
15840 +echo "${ECHO_T}no" >&6
15841 +fi
15842 +
15843 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
15844 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
15845 +
15846 +# PORTME Fill in your ld.so characteristics
15847 +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15848 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15849 +library_names_spec=
15850 +libname_spec='lib$name'
15851 +soname_spec=
15852 +postinstall_cmds=
15853 +postuninstall_cmds=
15854 +finish_cmds=
15855 +finish_eval=
15856 +shlibpath_var=
15857 +shlibpath_overrides_runpath=unknown
15858 +version_type=none
15859 +dynamic_linker="$host_os ld.so"
15860 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
15861 +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15862 +
15863 +case $host_os in
15864 +aix3*)
15865 + version_type=linux
15866 + library_names_spec='${libname}${release}.so$versuffix $libname.a'
15867 + shlibpath_var=LIBPATH
15868 +
15869 + # AIX has no versioning support, so we append a major version to the name.
15870 + soname_spec='${libname}${release}.so$major'
15871 + ;;
15872 +
15873 +aix4* | aix5*)
15874 + version_type=linux
15875 + need_lib_prefix=no
15876 + need_version=no
15877 + hardcode_into_libs=yes
15878 + if test "$host_cpu" = ia64; then
15879 + # AIX 5 supports IA64
15880 + library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
15881 + shlibpath_var=LD_LIBRARY_PATH
15882 + else
15883 + # With GCC up to 2.95.x, collect2 would create an import file
15884 + # for dependence libraries. The import file would start with
15885 + # the line `#! .'. This would cause the generated library to
15886 + # depend on `.', always an invalid library. This was fixed in
15887 + # development snapshots of GCC prior to 3.0.
15888 + case $host_os in
15889 + aix4 | aix4.[01] | aix4.[01].*)
15890 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15891 + echo ' yes '
15892 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15893 + :
15894 + else
15895 + can_build_shared=no
15896 + fi
15897 + ;;
15898 + esac
15899 + # AIX (on Power*) has no versioning support, so currently we can
15900 + # not hardcode correct soname into executable. Probably we can
15901 + # add versioning support to collect2, so additional links can
15902 + # be useful in future.
15903 + if test "$aix_use_runtimelinking" = yes; then
15904 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15905 + # instead of lib<name>.a to let people know that these are not
15906 + # typical AIX shared libraries.
15907 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15908 + else
15909 + # We preserve .a as extension for shared libraries through AIX4.2
15910 + # and later when we are not doing run time linking.
15911 + library_names_spec='${libname}${release}.a $libname.a'
15912 + soname_spec='${libname}${release}.so$major'
15913 + fi
15914 + shlibpath_var=LIBPATH
15915 + fi
15916 + hardcode_into_libs=yes
15917 + ;;
15918 +
15919 +amigaos*)
15920 + library_names_spec='$libname.ixlibrary $libname.a'
15921 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
15922 + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
15923 + ;;
15924 +
15925 +beos*)
15926 + library_names_spec='${libname}.so'
15927 + dynamic_linker="$host_os ld.so"
15928 + shlibpath_var=LIBRARY_PATH
15929 + ;;
15930 +
15931 +bsdi4*)
15932 + version_type=linux
15933 + need_version=no
15934 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
15935 + soname_spec='${libname}${release}.so$major'
15936 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15937 + shlibpath_var=LD_LIBRARY_PATH
15938 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15939 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15940 + export_dynamic_flag_spec=-rdynamic
15941 + # the default ld.so.conf also contains /usr/contrib/lib and
15942 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15943 + # libtool to hard-code these into programs
15944 + ;;
15945 +
15946 +cygwin* | mingw* | pw32*)
15947 + version_type=windows
15948 + need_version=no
15949 + need_lib_prefix=no
15950 + case $GCC,$host_os in
15951 + yes,cygwin*)
15952 + library_names_spec='$libname.dll.a'
15953 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
15954 + postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
15955 + dldir=$destdir/`dirname \$dlpath`~
15956 + test -d \$dldir || mkdir -p \$dldir~
15957 + $install_prog .libs/$dlname \$dldir/$dlname'
15958 + postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
15959 + dlpath=$dir/\$dldll~
15960 + $rm \$dlpath'
15961 + ;;
15962 + yes,mingw*)
15963 + library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
15964 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
15965 + ;;
15966 + yes,pw32*)
15967 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
15968 + ;;
15969 + *)
15970 + library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
15971 + ;;
15972 + esac
15973 + dynamic_linker='Win32 ld.exe'
15974 + # FIXME: first we should search . and the directory the executable is in
15975 + shlibpath_var=PATH
15976 + ;;
15977 +
15978 +darwin* | rhapsody*)
15979 + dynamic_linker="$host_os dyld"
15980 + version_type=darwin
15981 + need_lib_prefix=no
15982 + need_version=no
15983 + # FIXME: Relying on posixy $() will cause problems for
15984 + # cross-compilation, but unfortunately the echo tests do not
15985 + # yet detect zsh echo's removal of \ escapes.
15986 + library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
15987 + soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
15988 + shlibpath_overrides_runpath=yes
15989 + shlibpath_var=DYLD_LIBRARY_PATH
15990 + ;;
15991 +
15992 +freebsd1*)
15993 + dynamic_linker=no
15994 + ;;
15995 +
15996 +kfreebsd*-gnu*)
15997 + version_type=linux
15998 + need_lib_prefix=no
15999 + need_version=no
16000 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
16001 + soname_spec='${libname}${release}.so$major'
16002 + shlibpath_var=LD_LIBRARY_PATH
16003 + shlibpath_overrides_runpath=no
16004 + hardcode_into_libs=yes
16005 + dynamic_linker='GNU/FreeBSD ld.so'
16006 + ;;
16007 +
16008 +freebsd*)
16009 + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16010 + version_type=freebsd-$objformat
16011 + case $version_type in
16012 + freebsd-elf*)
16013 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
16014 + need_version=no
16015 + need_lib_prefix=no
16016 + ;;
16017 + freebsd-*)
16018 + library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
16019 + need_version=yes
16020 + ;;
16021 + esac
16022 + shlibpath_var=LD_LIBRARY_PATH
16023 + case $host_os in
16024 + freebsd2*)
16025 + shlibpath_overrides_runpath=yes
16026 + ;;
16027 + *)
16028 + shlibpath_overrides_runpath=no
16029 + hardcode_into_libs=yes
16030 + ;;
16031 + esac
16032 + ;;
16033 +
16034 +gnu*)
16035 + version_type=linux
16036 + need_lib_prefix=no
16037 + need_version=no
16038 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
16039 + soname_spec='${libname}${release}.so$major'
16040 + shlibpath_var=LD_LIBRARY_PATH
16041 + hardcode_into_libs=yes
16042 + ;;
16043 +
16044 +hpux9* | hpux10* | hpux11*)
16045 + # Give a soname corresponding to the major version so that dld.sl refuses to
16046 + # link against other versions.
16047 + dynamic_linker="$host_os dld.sl"
16048 + version_type=sunos
16049 + need_lib_prefix=no
16050 + need_version=no
16051 + shlibpath_var=SHLIB_PATH
16052 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16053 + library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
16054 + soname_spec='${libname}${release}.sl$major'
16055 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
16056 + postinstall_cmds='chmod 555 $lib'
16057 + ;;
16058 +
16059 +irix5* | irix6* | nonstopux*)
16060 + case $host_os in
16061 + nonstopux*) version_type=nonstopux ;;
16062 + *) version_type=irix ;;
16063 + esac
16064 + need_lib_prefix=no
16065 + need_version=no
16066 + soname_spec='${libname}${release}.so$major'
16067 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
16068 + case $host_os in
16069 + irix5* | nonstopux*)
16070 + libsuff= shlibsuff=
16071 + ;;
16072 + *)
16073 + case $LD in # libtool.m4 will add one of these switches to LD
16074 + *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
16075 + *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
16076 + *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
16077 + *) libsuff= shlibsuff= libmagic=never-match;;
16078 + esac
16079 + ;;
16080 + esac
16081 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16082 + shlibpath_overrides_runpath=no
16083 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16084 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16085 + ;;
16086 +
16087 +# No shared lib support for Linux oldld, aout, or coff.
16088 +linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
16089 + dynamic_linker=no
16090 + ;;
16091 +
16092 +# This must be Linux ELF.
16093 +linux-gnu*)
16094 + version_type=linux
16095 + need_lib_prefix=no
16096 + need_version=no
16097 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
16098 + soname_spec='${libname}${release}.so$major'
16099 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16100 + shlibpath_var=LD_LIBRARY_PATH
16101 + shlibpath_overrides_runpath=no
16102 + # This implies no fast_install, which is unacceptable.
16103 + # Some rework will be needed to allow for fast_install
16104 + # before this can be enabled.
16105 + hardcode_into_libs=yes
16106 +
16107 + # We used to test for /lib/ld.so.1 and disable shared libraries on
16108 + # powerpc, because MkLinux only supported shared libraries with the
16109 + # GNU dynamic linker. Since this was broken with cross compilers,
16110 + # most powerpc-linux boxes support dynamic linking these days and
16111 + # people can always --disable-shared, the test was removed, and we
16112 + # assume the GNU/Linux dynamic linker is in use.
16113 + dynamic_linker='GNU/Linux ld.so'
16114 + ;;
16115 +
16116 +netbsd*)
16117 + version_type=sunos
16118 + need_lib_prefix=no
16119 + need_version=no
16120 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16121 + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
16122 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16123 + dynamic_linker='NetBSD (a.out) ld.so'
16124 + else
16125 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
16126 + soname_spec='${libname}${release}.so$major'
16127 + dynamic_linker='NetBSD ld.elf_so'
16128 + fi
16129 + shlibpath_var=LD_LIBRARY_PATH
16130 + shlibpath_overrides_runpath=yes
16131 + hardcode_into_libs=yes
16132 + ;;
16133 +
16134 +newsos6)
16135 + version_type=linux
16136 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
16137 + shlibpath_var=LD_LIBRARY_PATH
16138 + shlibpath_overrides_runpath=yes
16139 + ;;
16140 +
16141 +openbsd*)
16142 + version_type=sunos
16143 + need_lib_prefix=no
16144 + need_version=no
16145 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16146 + case "$host_os" in
16147 + openbsd2.[89] | openbsd2.[89].*)
16148 + shlibpath_overrides_runpath=no
16149 + ;;
16150 + *)
16151 + shlibpath_overrides_runpath=yes
16152 + ;;
16153 + esac
16154 + else
16155 + shlibpath_overrides_runpath=yes
16156 + fi
16157 + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
16158 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16159 + shlibpath_var=LD_LIBRARY_PATH
16160 + ;;
16161 +
16162 +os2*)
16163 + libname_spec='$name'
16164 + need_lib_prefix=no
16165 + library_names_spec='$libname.dll $libname.a'
16166 + dynamic_linker='OS/2 ld.exe'
16167 + shlibpath_var=LIBPATH
16168 + ;;
16169 +
16170 +osf3* | osf4* | osf5*)
16171 + version_type=osf
16172 + need_version=no
16173 + need_lib_prefix=no
16174 + soname_spec='${libname}${release}.so$major'
16175 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
16176 + shlibpath_var=LD_LIBRARY_PATH
16177 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16178 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16179 + hardcode_into_libs=yes
16180 + ;;
16181 +
16182 +sco3.2v5*)
16183 + version_type=osf
16184 + soname_spec='${libname}${release}.so$major'
16185 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
16186 + shlibpath_var=LD_LIBRARY_PATH
16187 + ;;
16188 +
16189 +solaris*)
16190 + version_type=linux
16191 + need_lib_prefix=no
16192 + need_version=no
16193 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
16194 + soname_spec='${libname}${release}.so$major'
16195 + shlibpath_var=LD_LIBRARY_PATH
16196 + shlibpath_overrides_runpath=yes
16197 + hardcode_into_libs=yes
16198 + # ldd complains unless libraries are executable
16199 + postinstall_cmds='chmod +x $lib'
16200 + ;;
16201 +
16202 +sunos4*)
16203 + version_type=sunos
16204 + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
16205 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16206 + shlibpath_var=LD_LIBRARY_PATH
16207 + shlibpath_overrides_runpath=yes
16208 + if test "$with_gnu_ld" = yes; then
16209 + need_lib_prefix=no
16210 + fi
16211 + need_version=yes
16212 + ;;
16213 +
16214 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16215 + version_type=linux
16216 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
16217 + soname_spec='${libname}${release}.so$major'
16218 + shlibpath_var=LD_LIBRARY_PATH
16219 + case $host_vendor in
16220 + sni)
16221 + shlibpath_overrides_runpath=no
16222 + need_lib_prefix=no
16223 + export_dynamic_flag_spec='${wl}-Blargedynsym'
16224 + runpath_var=LD_RUN_PATH
16225 + ;;
16226 + siemens)
16227 + need_lib_prefix=no
16228 + ;;
16229 + motorola)
16230 + need_lib_prefix=no
16231 + need_version=no
16232 + shlibpath_overrides_runpath=no
16233 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16234 + ;;
16235 + esac
16236 + ;;
16237 +
16238 +uts4*)
16239 + version_type=linux
16240 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
16241 + soname_spec='${libname}${release}.so$major'
16242 + shlibpath_var=LD_LIBRARY_PATH
16243 + ;;
16244 +
16245 +dgux*)
16246 + version_type=linux
16247 + need_lib_prefix=no
16248 + need_version=no
16249 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
16250 + soname_spec='${libname}${release}.so$major'
16251 + shlibpath_var=LD_LIBRARY_PATH
16252 + ;;
16253 +
16254 +sysv4*MP*)
16255 + if test -d /usr/nec ;then
16256 + version_type=linux
16257 + library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
16258 + soname_spec='$libname.so.$major'
16259 + shlibpath_var=LD_LIBRARY_PATH
16260 + fi
16261 + ;;
16262 +
16263 +*)
16264 + dynamic_linker=no
16265 + ;;
16266 +esac
16267 +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16268 +echo "${ECHO_T}$dynamic_linker" >&6
16269 +test "$dynamic_linker" = no && can_build_shared=no
16270 +
16271 +# Report the final consequences.
16272 +echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16273 +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
16274 +echo "$as_me:$LINENO: result: $can_build_shared" >&5
16275 +echo "${ECHO_T}$can_build_shared" >&6
16276 +
16277 +echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16278 +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
16279 +test "$can_build_shared" = "no" && enable_shared=no
16280 +
16281 +# On AIX, shared libraries and static libraries use the same namespace, and
16282 +# are all built from PIC.
16283 +case "$host_os" in
16284 +aix3*)
16285 + test "$enable_shared" = yes && enable_static=no
16286 + if test -n "$RANLIB"; then
16287 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
16288 + postinstall_cmds='$RANLIB $lib'
16289 + fi
16290 + ;;
16291 +
16292 +aix4*)
16293 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16294 + test "$enable_shared" = yes && enable_static=no
16295 + fi
16296 + ;;
16297 +esac
16298 +echo "$as_me:$LINENO: result: $enable_shared" >&5
16299 +echo "${ECHO_T}$enable_shared" >&6
16300 +
16301 +echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16302 +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
16303 +# Make sure either enable_shared or enable_static is yes.
16304 +test "$enable_shared" = yes || enable_static=yes
16305 +echo "$as_me:$LINENO: result: $enable_static" >&5
16306 +echo "${ECHO_T}$enable_static" >&6
16307 +
16308 +if test "$hardcode_action" = relink; then
16309 + # Fast installation is not supported
16310 + enable_fast_install=no
16311 +elif test "$shlibpath_overrides_runpath" = yes ||
16312 + test "$enable_shared" = no; then
16313 + # Fast installation is not necessary
16314 + enable_fast_install=needless
16315 +fi
16316 +
16317 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16318 +if test "$GCC" = yes; then
16319 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16320 +fi
16321 +
16322 +if test "x$enable_dlopen" != xyes; then
16323 + enable_dlopen=unknown
16324 + enable_dlopen_self=unknown
16325 + enable_dlopen_self_static=unknown
16326 +else
16327 + lt_cv_dlopen=no
16328 + lt_cv_dlopen_libs=
16329 +
16330 + case $host_os in
16331 + beos*)
16332 + lt_cv_dlopen="load_add_on"
16333 + lt_cv_dlopen_libs=
16334 + lt_cv_dlopen_self=yes
16335 + ;;
16336 +
16337 + cygwin* | mingw* | pw32*)
16338 + lt_cv_dlopen="LoadLibrary"
16339 + lt_cv_dlopen_libs=
16340 + ;;
16341 +
16342 + *)
16343 + echo "$as_me:$LINENO: checking for shl_load" >&5
16344 +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16345 +if test "${ac_cv_func_shl_load+set}" = set; then
16346 + echo $ECHO_N "(cached) $ECHO_C" >&6
16347 +else
16348 + cat >conftest.$ac_ext <<_ACEOF
16349 +/* confdefs.h. */
16350 +_ACEOF
16351 +cat confdefs.h >>conftest.$ac_ext
16352 +cat >>conftest.$ac_ext <<_ACEOF
16353 +/* end confdefs.h. */
16354 +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16355 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
16356 +#define shl_load innocuous_shl_load
16357 +
16358 +/* System header to define __stub macros and hopefully few prototypes,
16359 + which can conflict with char shl_load (); below.
16360 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16361 + <limits.h> exists even on freestanding compilers. */
16362 +
16363 +#ifdef __STDC__
16364 +# include <limits.h>
16365 +#else
16366 +# include <assert.h>
16367 +#endif
16368 +
16369 +#undef shl_load
16370 +
16371 +/* Override any gcc2 internal prototype to avoid an error. */
16372 +#ifdef __cplusplus
16373 +extern "C"
16374 +{
16375 +#endif
16376 +/* We use char because int might match the return type of a gcc2
16377 + builtin and then its argument prototype would still apply. */
16378 +char shl_load ();
16379 +/* The GNU C library defines this for functions which it implements
16380 + to always fail with ENOSYS. Some functions are actually named
16381 + something starting with __ and the normal name is an alias. */
16382 +#if defined (__stub_shl_load) || defined (__stub___shl_load)
16383 +choke me
16384 +#else
16385 +char (*f) () = shl_load;
16386 +#endif
16387 +#ifdef __cplusplus
16388 +}
16389 +#endif
16390 +
16391 +int
16392 +main ()
16393 +{
16394 +return f != shl_load;
16395 + ;
16396 + return 0;
16397 +}
16398 +_ACEOF
16399 +rm -f conftest.$ac_objext conftest$ac_exeext
16400 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16401 + (eval $ac_link) 2>conftest.er1
16402 + ac_status=$?
16403 + grep -v '^ *+' conftest.er1 >conftest.err
16404 + rm -f conftest.er1
16405 + cat conftest.err >&5
16406 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 + (exit $ac_status); } &&
16408 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16409 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16410 + (eval $ac_try) 2>&5
16411 + ac_status=$?
16412 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 + (exit $ac_status); }; } &&
16414 + { ac_try='test -s conftest$ac_exeext'
16415 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16416 + (eval $ac_try) 2>&5
16417 + ac_status=$?
16418 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 + (exit $ac_status); }; }; then
16420 + ac_cv_func_shl_load=yes
16421 +else
16422 + echo "$as_me: failed program was:" >&5
16423 +sed 's/^/| /' conftest.$ac_ext >&5
16424 +
16425 +ac_cv_func_shl_load=no
16426 +fi
16427 +rm -f conftest.err conftest.$ac_objext \
16428 + conftest$ac_exeext conftest.$ac_ext
16429 +fi
16430 +echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16431 +echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16432 +if test $ac_cv_func_shl_load = yes; then
16433 + lt_cv_dlopen="shl_load"
16434 +else
16435 + echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16436 +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16437 +if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16438 + echo $ECHO_N "(cached) $ECHO_C" >&6
16439 +else
16440 + ac_check_lib_save_LIBS=$LIBS
16441 +LIBS="-ldld $LIBS"
16442 +cat >conftest.$ac_ext <<_ACEOF
16443 +/* confdefs.h. */
16444 +_ACEOF
16445 +cat confdefs.h >>conftest.$ac_ext
16446 +cat >>conftest.$ac_ext <<_ACEOF
16447 +/* end confdefs.h. */
16448 +
16449 +/* Override any gcc2 internal prototype to avoid an error. */
16450 +#ifdef __cplusplus
16451 +extern "C"
16452 +#endif
16453 +/* We use char because int might match the return type of a gcc2
16454 + builtin and then its argument prototype would still apply. */
16455 +char shl_load ();
16456 +int
16457 +main ()
16458 +{
16459 +shl_load ();
16460 + ;
16461 + return 0;
16462 +}
16463 +_ACEOF
16464 +rm -f conftest.$ac_objext conftest$ac_exeext
16465 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16466 + (eval $ac_link) 2>conftest.er1
16467 + ac_status=$?
16468 + grep -v '^ *+' conftest.er1 >conftest.err
16469 + rm -f conftest.er1
16470 + cat conftest.err >&5
16471 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 + (exit $ac_status); } &&
16473 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16474 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16475 + (eval $ac_try) 2>&5
16476 + ac_status=$?
16477 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 + (exit $ac_status); }; } &&
16479 + { ac_try='test -s conftest$ac_exeext'
16480 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16481 + (eval $ac_try) 2>&5
16482 + ac_status=$?
16483 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 + (exit $ac_status); }; }; then
16485 + ac_cv_lib_dld_shl_load=yes
16486 +else
16487 + echo "$as_me: failed program was:" >&5
16488 +sed 's/^/| /' conftest.$ac_ext >&5
16489 +
16490 +ac_cv_lib_dld_shl_load=no
16491 +fi
16492 +rm -f conftest.err conftest.$ac_objext \
16493 + conftest$ac_exeext conftest.$ac_ext
16494 +LIBS=$ac_check_lib_save_LIBS
16495 +fi
16496 +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16497 +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16498 +if test $ac_cv_lib_dld_shl_load = yes; then
16499 + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16500 +else
16501 + echo "$as_me:$LINENO: checking for dlopen" >&5
16502 +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16503 +if test "${ac_cv_func_dlopen+set}" = set; then
16504 + echo $ECHO_N "(cached) $ECHO_C" >&6
16505 +else
16506 + cat >conftest.$ac_ext <<_ACEOF
16507 +/* confdefs.h. */
16508 +_ACEOF
16509 +cat confdefs.h >>conftest.$ac_ext
16510 +cat >>conftest.$ac_ext <<_ACEOF
16511 +/* end confdefs.h. */
16512 +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16513 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
16514 +#define dlopen innocuous_dlopen
16515 +
16516 +/* System header to define __stub macros and hopefully few prototypes,
16517 + which can conflict with char dlopen (); below.
16518 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16519 + <limits.h> exists even on freestanding compilers. */
16520 +
16521 +#ifdef __STDC__
16522 +# include <limits.h>
16523 +#else
16524 +# include <assert.h>
16525 +#endif
16526 +
16527 +#undef dlopen
16528 +
16529 +/* Override any gcc2 internal prototype to avoid an error. */
16530 +#ifdef __cplusplus
16531 +extern "C"
16532 +{
16533 +#endif
16534 +/* We use char because int might match the return type of a gcc2
16535 + builtin and then its argument prototype would still apply. */
16536 +char dlopen ();
16537 +/* The GNU C library defines this for functions which it implements
16538 + to always fail with ENOSYS. Some functions are actually named
16539 + something starting with __ and the normal name is an alias. */
16540 +#if defined (__stub_dlopen) || defined (__stub___dlopen)
16541 +choke me
16542 +#else
16543 +char (*f) () = dlopen;
16544 +#endif
16545 +#ifdef __cplusplus
16546 +}
16547 +#endif
16548 +
16549 +int
16550 +main ()
16551 +{
16552 +return f != dlopen;
16553 + ;
16554 + return 0;
16555 +}
16556 +_ACEOF
16557 +rm -f conftest.$ac_objext conftest$ac_exeext
16558 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16559 + (eval $ac_link) 2>conftest.er1
16560 + ac_status=$?
16561 + grep -v '^ *+' conftest.er1 >conftest.err
16562 + rm -f conftest.er1
16563 + cat conftest.err >&5
16564 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 + (exit $ac_status); } &&
16566 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16567 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 + (eval $ac_try) 2>&5
16569 + ac_status=$?
16570 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 + (exit $ac_status); }; } &&
16572 + { ac_try='test -s conftest$ac_exeext'
16573 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574 + (eval $ac_try) 2>&5
16575 + ac_status=$?
16576 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 + (exit $ac_status); }; }; then
16578 + ac_cv_func_dlopen=yes
16579 +else
16580 + echo "$as_me: failed program was:" >&5
16581 +sed 's/^/| /' conftest.$ac_ext >&5
16582 +
16583 +ac_cv_func_dlopen=no
16584 +fi
16585 +rm -f conftest.err conftest.$ac_objext \
16586 + conftest$ac_exeext conftest.$ac_ext
16587 +fi
16588 +echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16589 +echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16590 +if test $ac_cv_func_dlopen = yes; then
16591 + lt_cv_dlopen="dlopen"
16592 +else
16593 + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16594 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16595 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16596 + echo $ECHO_N "(cached) $ECHO_C" >&6
16597 +else
16598 + ac_check_lib_save_LIBS=$LIBS
16599 +LIBS="-ldl $LIBS"
16600 +cat >conftest.$ac_ext <<_ACEOF
16601 +/* confdefs.h. */
16602 +_ACEOF
16603 +cat confdefs.h >>conftest.$ac_ext
16604 +cat >>conftest.$ac_ext <<_ACEOF
16605 +/* end confdefs.h. */
16606 +
16607 +/* Override any gcc2 internal prototype to avoid an error. */
16608 +#ifdef __cplusplus
16609 +extern "C"
16610 +#endif
16611 +/* We use char because int might match the return type of a gcc2
16612 + builtin and then its argument prototype would still apply. */
16613 +char dlopen ();
16614 +int
16615 +main ()
16616 +{
16617 +dlopen ();
16618 + ;
16619 + return 0;
16620 +}
16621 +_ACEOF
16622 +rm -f conftest.$ac_objext conftest$ac_exeext
16623 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16624 + (eval $ac_link) 2>conftest.er1
16625 + ac_status=$?
16626 + grep -v '^ *+' conftest.er1 >conftest.err
16627 + rm -f conftest.er1
16628 + cat conftest.err >&5
16629 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 + (exit $ac_status); } &&
16631 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16632 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16633 + (eval $ac_try) 2>&5
16634 + ac_status=$?
16635 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636 + (exit $ac_status); }; } &&
16637 + { ac_try='test -s conftest$ac_exeext'
16638 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16639 + (eval $ac_try) 2>&5
16640 + ac_status=$?
16641 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 + (exit $ac_status); }; }; then
16643 + ac_cv_lib_dl_dlopen=yes
16644 +else
16645 + echo "$as_me: failed program was:" >&5
16646 +sed 's/^/| /' conftest.$ac_ext >&5
16647 +
16648 +ac_cv_lib_dl_dlopen=no
16649 +fi
16650 +rm -f conftest.err conftest.$ac_objext \
16651 + conftest$ac_exeext conftest.$ac_ext
16652 +LIBS=$ac_check_lib_save_LIBS
16653 +fi
16654 +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16655 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16656 +if test $ac_cv_lib_dl_dlopen = yes; then
16657 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16658 +else
16659 + echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16660 +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16661 +if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16662 + echo $ECHO_N "(cached) $ECHO_C" >&6
16663 +else
16664 + ac_check_lib_save_LIBS=$LIBS
16665 +LIBS="-lsvld $LIBS"
16666 +cat >conftest.$ac_ext <<_ACEOF
16667 +/* confdefs.h. */
16668 +_ACEOF
16669 +cat confdefs.h >>conftest.$ac_ext
16670 +cat >>conftest.$ac_ext <<_ACEOF
16671 +/* end confdefs.h. */
16672 +
16673 +/* Override any gcc2 internal prototype to avoid an error. */
16674 +#ifdef __cplusplus
16675 +extern "C"
16676 +#endif
16677 +/* We use char because int might match the return type of a gcc2
16678 + builtin and then its argument prototype would still apply. */
16679 +char dlopen ();
16680 +int
16681 +main ()
16682 +{
16683 +dlopen ();
16684 + ;
16685 + return 0;
16686 +}
16687 +_ACEOF
16688 +rm -f conftest.$ac_objext conftest$ac_exeext
16689 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16690 + (eval $ac_link) 2>conftest.er1
16691 + ac_status=$?
16692 + grep -v '^ *+' conftest.er1 >conftest.err
16693 + rm -f conftest.er1
16694 + cat conftest.err >&5
16695 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 + (exit $ac_status); } &&
16697 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16698 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699 + (eval $ac_try) 2>&5
16700 + ac_status=$?
16701 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 + (exit $ac_status); }; } &&
16703 + { ac_try='test -s conftest$ac_exeext'
16704 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16705 + (eval $ac_try) 2>&5
16706 + ac_status=$?
16707 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 + (exit $ac_status); }; }; then
16709 + ac_cv_lib_svld_dlopen=yes
16710 +else
16711 + echo "$as_me: failed program was:" >&5
16712 +sed 's/^/| /' conftest.$ac_ext >&5
16713 +
16714 +ac_cv_lib_svld_dlopen=no
16715 +fi
16716 +rm -f conftest.err conftest.$ac_objext \
16717 + conftest$ac_exeext conftest.$ac_ext
16718 +LIBS=$ac_check_lib_save_LIBS
16719 +fi
16720 +echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16721 +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16722 +if test $ac_cv_lib_svld_dlopen = yes; then
16723 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16724 +else
16725 + echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16726 +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16727 +if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16728 + echo $ECHO_N "(cached) $ECHO_C" >&6
16729 +else
16730 + ac_check_lib_save_LIBS=$LIBS
16731 +LIBS="-ldld $LIBS"
16732 +cat >conftest.$ac_ext <<_ACEOF
16733 +/* confdefs.h. */
16734 +_ACEOF
16735 +cat confdefs.h >>conftest.$ac_ext
16736 +cat >>conftest.$ac_ext <<_ACEOF
16737 +/* end confdefs.h. */
16738 +
16739 +/* Override any gcc2 internal prototype to avoid an error. */
16740 +#ifdef __cplusplus
16741 +extern "C"
16742 +#endif
16743 +/* We use char because int might match the return type of a gcc2
16744 + builtin and then its argument prototype would still apply. */
16745 +char dld_link ();
16746 +int
16747 +main ()
16748 +{
16749 +dld_link ();
16750 + ;
16751 + return 0;
16752 +}
16753 +_ACEOF
16754 +rm -f conftest.$ac_objext conftest$ac_exeext
16755 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16756 + (eval $ac_link) 2>conftest.er1
16757 + ac_status=$?
16758 + grep -v '^ *+' conftest.er1 >conftest.err
16759 + rm -f conftest.er1
16760 + cat conftest.err >&5
16761 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 + (exit $ac_status); } &&
16763 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16764 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16765 + (eval $ac_try) 2>&5
16766 + ac_status=$?
16767 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 + (exit $ac_status); }; } &&
16769 + { ac_try='test -s conftest$ac_exeext'
16770 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16771 + (eval $ac_try) 2>&5
16772 + ac_status=$?
16773 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 + (exit $ac_status); }; }; then
16775 + ac_cv_lib_dld_dld_link=yes
16776 +else
16777 + echo "$as_me: failed program was:" >&5
16778 +sed 's/^/| /' conftest.$ac_ext >&5
16779 +
16780 +ac_cv_lib_dld_dld_link=no
16781 +fi
16782 +rm -f conftest.err conftest.$ac_objext \
16783 + conftest$ac_exeext conftest.$ac_ext
16784 +LIBS=$ac_check_lib_save_LIBS
16785 +fi
16786 +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16787 +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16788 +if test $ac_cv_lib_dld_dld_link = yes; then
16789 + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16790 +fi
16791 +
16792 +
16793 +fi
16794 +
16795 +
16796 +fi
16797 +
16798 +
16799 +fi
16800 +
16801 +
16802 +fi
16803 +
16804 +
16805 +fi
16806 +
16807 + ;;
16808 + esac
16809 +
16810 + if test "x$lt_cv_dlopen" != xno; then
16811 + enable_dlopen=yes
16812 + else
16813 + enable_dlopen=no
16814 + fi
16815 +
16816 + case $lt_cv_dlopen in
16817 + dlopen)
16818 + save_CPPFLAGS="$CPPFLAGS"
16819 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16820 +
16821 + save_LDFLAGS="$LDFLAGS"
16822 + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16823 +
16824 + save_LIBS="$LIBS"
16825 + LIBS="$lt_cv_dlopen_libs $LIBS"
16826 +
16827 + echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16828 +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16829 +if test "${lt_cv_dlopen_self+set}" = set; then
16830 + echo $ECHO_N "(cached) $ECHO_C" >&6
16831 +else
16832 + if test "$cross_compiling" = yes; then :
16833 + lt_cv_dlopen_self=cross
16834 +else
16835 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16836 + lt_status=$lt_dlunknown
16837 + cat > conftest.$ac_ext <<EOF
16838 +#line 7611 "configure"
16839 +#include "confdefs.h"
16840 +
16841 +#if HAVE_DLFCN_H
16842 +#include <dlfcn.h>
16843 +#endif
16844 +
16845 +#include <stdio.h>
16846 +
16847 +#ifdef RTLD_GLOBAL
16848 +# define LT_DLGLOBAL RTLD_GLOBAL
16849 +#else
16850 +# ifdef DL_GLOBAL
16851 +# define LT_DLGLOBAL DL_GLOBAL
16852 +# else
16853 +# define LT_DLGLOBAL 0
16854 +# endif
16855 +#endif
16856 +
16857 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16858 + find out it does not work in some platform. */
16859 +#ifndef LT_DLLAZY_OR_NOW
16860 +# ifdef RTLD_LAZY
16861 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
16862 +# else
16863 +# ifdef DL_LAZY
16864 +# define LT_DLLAZY_OR_NOW DL_LAZY
16865 +# else
16866 +# ifdef RTLD_NOW
16867 +# define LT_DLLAZY_OR_NOW RTLD_NOW
16868 +# else
16869 +# ifdef DL_NOW
16870 +# define LT_DLLAZY_OR_NOW DL_NOW
16871 +# else
16872 +# define LT_DLLAZY_OR_NOW 0
16873 +# endif
16874 +# endif
16875 +# endif
16876 +# endif
16877 +#endif
16878 +
16879 +#ifdef __cplusplus
16880 +extern "C" void exit (int);
16881 +#endif
16882 +
16883 +void fnord() { int i=42;}
16884 +int main ()
16885 +{
16886 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16887 + int status = $lt_dlunknown;
16888 +
16889 + if (self)
16890 + {
16891 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16892 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16893 + /* dlclose (self); */
16894 + }
16895 +
16896 + exit (status);
16897 +}
16898 +EOF
16899 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16900 + (eval $ac_link) 2>&5
16901 + ac_status=$?
16902 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16904 + (./conftest; exit; ) 2>/dev/null
16905 + lt_status=$?
16906 + case x$lt_status in
16907 + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16908 + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16909 + x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16910 + esac
16911 + else :
16912 + # compilation failed
16913 + lt_cv_dlopen_self=no
16914 + fi
16915 +fi
16916 +rm -fr conftest*
16917 +
16918 +
16919 +fi
16920 +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16921 +echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16922 +
16923 + if test "x$lt_cv_dlopen_self" = xyes; then
16924 + LDFLAGS="$LDFLAGS $link_static_flag"
16925 + echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16926 +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16927 +if test "${lt_cv_dlopen_self_static+set}" = set; then
16928 + echo $ECHO_N "(cached) $ECHO_C" >&6
16929 +else
16930 + if test "$cross_compiling" = yes; then :
16931 + lt_cv_dlopen_self_static=cross
16932 +else
16933 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16934 + lt_status=$lt_dlunknown
16935 + cat > conftest.$ac_ext <<EOF
16936 +#line 7709 "configure"
16937 +#include "confdefs.h"
16938 +
16939 +#if HAVE_DLFCN_H
16940 +#include <dlfcn.h>
16941 +#endif
16942 +
16943 +#include <stdio.h>
16944 +
16945 +#ifdef RTLD_GLOBAL
16946 +# define LT_DLGLOBAL RTLD_GLOBAL
16947 +#else
16948 +# ifdef DL_GLOBAL
16949 +# define LT_DLGLOBAL DL_GLOBAL
16950 +# else
16951 +# define LT_DLGLOBAL 0
16952 +# endif
16953 +#endif
16954 +
16955 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16956 + find out it does not work in some platform. */
16957 +#ifndef LT_DLLAZY_OR_NOW
16958 +# ifdef RTLD_LAZY
16959 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
16960 +# else
16961 +# ifdef DL_LAZY
16962 +# define LT_DLLAZY_OR_NOW DL_LAZY
16963 +# else
16964 +# ifdef RTLD_NOW
16965 +# define LT_DLLAZY_OR_NOW RTLD_NOW
16966 +# else
16967 +# ifdef DL_NOW
16968 +# define LT_DLLAZY_OR_NOW DL_NOW
16969 +# else
16970 +# define LT_DLLAZY_OR_NOW 0
16971 +# endif
16972 +# endif
16973 +# endif
16974 +# endif
16975 +#endif
16976 +
16977 +#ifdef __cplusplus
16978 +extern "C" void exit (int);
16979 +#endif
16980 +
16981 +void fnord() { int i=42;}
16982 +int main ()
16983 +{
16984 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16985 + int status = $lt_dlunknown;
16986 +
16987 + if (self)
16988 + {
16989 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16990 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16991 + /* dlclose (self); */
16992 + }
16993 +
16994 + exit (status);
16995 +}
16996 +EOF
16997 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16998 + (eval $ac_link) 2>&5
16999 + ac_status=$?
17000 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17002 + (./conftest; exit; ) 2>/dev/null
17003 + lt_status=$?
17004 + case x$lt_status in
17005 + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17006 + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17007 + x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17008 + esac
17009 + else :
17010 + # compilation failed
17011 + lt_cv_dlopen_self_static=no
17012 + fi
17013 +fi
17014 +rm -fr conftest*
17015 +
17016 +
17017 +fi
17018 +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17019 +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17020 + fi
17021 +
17022 + CPPFLAGS="$save_CPPFLAGS"
17023 + LDFLAGS="$save_LDFLAGS"
17024 + LIBS="$save_LIBS"
17025 + ;;
17026 + esac
17027 +
17028 + case $lt_cv_dlopen_self in
17029 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17030 + *) enable_dlopen_self=unknown ;;
17031 + esac
17032 +
17033 + case $lt_cv_dlopen_self_static in
17034 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17035 + *) enable_dlopen_self_static=unknown ;;
17036 + esac
17037 +fi
17038 +
17039 +
17040 +if test "$enable_shared" = yes && test "$GCC" = yes; then
17041 + case $archive_cmds in
17042 + *'~'*)
17043 + # FIXME: we may have to deal with multi-command sequences.
17044 + ;;
17045 + '$CC '*)
17046 + # Test whether the compiler implicitly links with -lc since on some
17047 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
17048 + # to ld, don't add -lc before -lgcc.
17049 + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17050 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17051 + if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
17052 + echo $ECHO_N "(cached) $ECHO_C" >&6
17053 +else
17054 + $rm conftest*
17055 + echo 'static int dummy;' > conftest.$ac_ext
17056 +
17057 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17058 + (eval $ac_compile) 2>&5
17059 + ac_status=$?
17060 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 + (exit $ac_status); }; then
17062 + soname=conftest
17063 + lib=conftest
17064 + libobjs=conftest.$ac_objext
17065 + deplibs=
17066 + wl=$lt_cv_prog_cc_wl
17067 + compiler_flags=-v
17068 + linker_flags=-v
17069 + verstring=
17070 + output_objdir=.
17071 + libname=conftest
17072 + save_allow_undefined_flag=$allow_undefined_flag
17073 + allow_undefined_flag=
17074 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17075 + (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17076 + ac_status=$?
17077 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 + (exit $ac_status); }
17079 + then
17080 + lt_cv_archive_cmds_need_lc=no
17081 + else
17082 + lt_cv_archive_cmds_need_lc=yes
17083 + fi
17084 + allow_undefined_flag=$save_allow_undefined_flag
17085 + else
17086 + cat conftest.err 1>&5
17087 + fi
17088 +fi
17089 +
17090 + echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
17091 +echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
17092 + ;;
17093 + esac
17094 +fi
17095 +need_lc=${lt_cv_archive_cmds_need_lc-yes}
17096 +
17097 +# The second clause should only fire when bootstrapping the
17098 +# libtool distribution, otherwise you forgot to ship ltmain.sh
17099 +# with your package, and you will get complaints that there are
17100 +# no rules to generate ltmain.sh.
17101 +if test -f "$ltmain"; then
17102 + :
17103 +else
17104 + # If there is no Makefile yet, we rely on a make rule to execute
17105 + # `config.status --recheck' to rerun these tests and create the
17106 + # libtool script then.
17107 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17108 + if test -f "$ltmain_in"; then
17109 + test -f Makefile && make "$ltmain"
17110 + fi
17111 +fi
17112 +
17113 +if test -f "$ltmain"; then
17114 + trap "$rm \"${ofile}T\"; exit 1" 1 2 15
17115 + $rm -f "${ofile}T"
17116 +
17117 + echo creating $ofile
17118 +
17119 + # Now quote all the things that may contain metacharacters while being
17120 + # careful not to overquote the AC_SUBSTed values. We take copies of the
17121 + # variables and quote the copies for generation of the libtool script.
17122 + for var in echo old_CC old_CFLAGS SED \
17123 + AR AR_FLAGS CC LD LN_S NM SHELL STRIP \
17124 + reload_flag reload_cmds wl \
17125 + pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
17126 + thread_safe_flag_spec whole_archive_flag_spec libname_spec \
17127 + library_names_spec soname_spec \
17128 + RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
17129 + old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
17130 + postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
17131 + old_striplib striplib file_magic_cmd export_symbols_cmds \
17132 + deplibs_check_method allow_undefined_flag no_undefined_flag \
17133 + finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
17134 + global_symbol_to_c_name_address \
17135 + hardcode_libdir_flag_spec hardcode_libdir_separator \
17136 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17137 + compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
17138 +
17139 + case $var in
17140 + reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
17141 + old_postinstall_cmds | old_postuninstall_cmds | \
17142 + export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
17143 + extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
17144 + postinstall_cmds | postuninstall_cmds | \
17145 + finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17146 + # Double-quote double-evaled strings.
17147 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17148 + ;;
17149 + *)
17150 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17151 + ;;
17152 + esac
17153 + done
17154 +
17155 + cat <<__EOF__ > "${ofile}T"
17156 +#! $SHELL
17157 +
17158 +# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17159 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17160 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17161 +#
17162 +# Copyright (C) 1996-2000 Free Software Foundation, Inc.
17163 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17164 +#
17165 +# This program is free software; you can redistribute it and/or modify
17166 +# it under the terms of the GNU General Public License as published by
17167 +# the Free Software Foundation; either version 2 of the License, or
17168 +# (at your option) any later version.
17169 +#
17170 +# This program is distributed in the hope that it will be useful, but
17171 +# WITHOUT ANY WARRANTY; without even the implied warranty of
17172 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17173 +# General Public License for more details.
17174 +#
17175 +# You should have received a copy of the GNU General Public License
17176 +# along with this program; if not, write to the Free Software
17177 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17178 +#
17179 +# As a special exception to the GNU General Public License, if you
17180 +# distribute this file as part of a program that contains a
17181 +# configuration script generated by Autoconf, you may include it under
17182 +# the same distribution terms that you use for the rest of that program.
17183 +
17184 +# A sed that does not truncate output.
17185 +SED=$lt_SED
17186 +
17187 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17188 +Xsed="${SED} -e s/^X//"
17189 +
17190 +# The HP-UX ksh and POSIX shell print the target directory to stdout
17191 +# if CDPATH is set.
17192 +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
17193 +
17194 +# ### BEGIN LIBTOOL CONFIG
17195 +
17196 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17197 +
17198 +# Shell to use when invoking shell scripts.
17199 +SHELL=$lt_SHELL
17200 +
17201 +# Whether or not to build shared libraries.
17202 +build_libtool_libs=$enable_shared
17203 +
17204 +# Whether or not to build static libraries.
17205 +build_old_libs=$enable_static
17206 +
17207 +# Whether or not to add -lc for building shared libraries.
17208 +build_libtool_need_lc=$need_lc
17209 +
17210 +# Whether or not to optimize for fast installation.
17211 +fast_install=$enable_fast_install
17212 +
17213 +# The host system.
17214 +host_alias=$host_alias
17215 +host=$host
17216 +
17217 +# An echo program that does not interpret backslashes.
17218 +echo=$lt_echo
17219 +
17220 +# The archiver.
17221 +AR=$lt_AR
17222 +AR_FLAGS=$lt_AR_FLAGS
17223 +
17224 +# The default C compiler.
17225 +CC=$lt_CC
17226 +
17227 +# Is the compiler the GNU C compiler?
17228 +with_gcc=$GCC
17229 +
17230 +# The linker used to build libraries.
17231 +LD=$lt_LD
17232 +
17233 +# Whether we need hard or soft links.
17234 +LN_S=$lt_LN_S
17235 +
17236 +# A BSD-compatible nm program.
17237 +NM=$lt_NM
17238 +
17239 +# A symbol stripping program
17240 +STRIP=$lt_STRIP
17241 +
17242 +# Used to examine libraries when file_magic_cmd begins "file"
17243 +MAGIC_CMD=$MAGIC_CMD
17244 +
17245 +# Used on cygwin: DLL creation program.
17246 +DLLTOOL="$DLLTOOL"
17247 +
17248 +# Used on cygwin: object dumper.
17249 +OBJDUMP="$OBJDUMP"
17250 +
17251 +# Used on cygwin: assembler.
17252 +AS="$AS"
17253 +
17254 +# The name of the directory that contains temporary libtool files.
17255 +objdir=$objdir
17256 +
17257 +# How to create reloadable object files.
17258 +reload_flag=$lt_reload_flag
17259 +reload_cmds=$lt_reload_cmds
17260 +
17261 +# How to pass a linker flag through the compiler.
17262 +wl=$lt_wl
17263 +
17264 +# Object file suffix (normally "o").
17265 +objext="$ac_objext"
17266 +
17267 +# Old archive suffix (normally "a").
17268 +libext="$libext"
17269 +
17270 +# Executable file suffix (normally "").
17271 +exeext="$exeext"
17272 +
17273 +# Additional compiler flags for building library objects.
17274 +pic_flag=$lt_pic_flag
17275 +pic_mode=$pic_mode
17276 +
17277 +# Does compiler simultaneously support -c and -o options?
17278 +compiler_c_o=$lt_compiler_c_o
17279 +
17280 +# Can we write directly to a .lo ?
17281 +compiler_o_lo=$lt_compiler_o_lo
17282 +
17283 +# Must we lock files when doing compilation ?
17284 +need_locks=$lt_need_locks
17285 +
17286 +# Do we need the lib prefix for modules?
17287 +need_lib_prefix=$need_lib_prefix
17288 +
17289 +# Do we need a version for libraries?
17290 +need_version=$need_version
17291 +
17292 +# Whether dlopen is supported.
17293 +dlopen_support=$enable_dlopen
17294 +
17295 +# Whether dlopen of programs is supported.
17296 +dlopen_self=$enable_dlopen_self
17297 +
17298 +# Whether dlopen of statically linked programs is supported.
17299 +dlopen_self_static=$enable_dlopen_self_static
17300 +
17301 +# Compiler flag to prevent dynamic linking.
17302 +link_static_flag=$lt_link_static_flag
17303 +
17304 +# Compiler flag to turn off builtin functions.
17305 +no_builtin_flag=$lt_no_builtin_flag
17306 +
17307 +# Compiler flag to allow reflexive dlopens.
17308 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17309 +
17310 +# Compiler flag to generate shared objects directly from archives.
17311 +whole_archive_flag_spec=$lt_whole_archive_flag_spec
17312 +
17313 +# Compiler flag to generate thread-safe objects.
17314 +thread_safe_flag_spec=$lt_thread_safe_flag_spec
17315 +
17316 +# Library versioning type.
17317 +version_type=$version_type
17318 +
17319 +# Format of library name prefix.
17320 +libname_spec=$lt_libname_spec
17321 +
17322 +# List of archive names. First name is the real one, the rest are links.
17323 +# The last name is the one that the linker finds with -lNAME.
17324 +library_names_spec=$lt_library_names_spec
17325 +
17326 +# The coded name of the library, if different from the real name.
17327 +soname_spec=$lt_soname_spec
17328 +
17329 +# Commands used to build and install an old-style archive.
17330 +RANLIB=$lt_RANLIB
17331 +old_archive_cmds=$lt_old_archive_cmds
17332 +old_postinstall_cmds=$lt_old_postinstall_cmds
17333 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
17334 +
17335 +# Create an old-style archive from a shared archive.
17336 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17337 +
17338 +# Create a temporary old-style archive to link instead of a shared archive.
17339 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17340 +
17341 +# Commands used to build and install a shared archive.
17342 +archive_cmds=$lt_archive_cmds
17343 +archive_expsym_cmds=$lt_archive_expsym_cmds
17344 +postinstall_cmds=$lt_postinstall_cmds
17345 +postuninstall_cmds=$lt_postuninstall_cmds
17346 +
17347 +# Commands to strip libraries.
17348 +old_striplib=$lt_old_striplib
17349 +striplib=$lt_striplib
17350 +
17351 +# Method to check whether dependent libraries are shared objects.
17352 +deplibs_check_method=$lt_deplibs_check_method
17353 +
17354 +# Command to use when deplibs_check_method == file_magic.
17355 +file_magic_cmd=$lt_file_magic_cmd
17356 +
17357 +# Flag that allows shared libraries with undefined symbols to be built.
17358 +allow_undefined_flag=$lt_allow_undefined_flag
17359 +
17360 +# Flag that forces no undefined symbols.
17361 +no_undefined_flag=$lt_no_undefined_flag
17362 +
17363 +# Commands used to finish a libtool library installation in a directory.
17364 +finish_cmds=$lt_finish_cmds
17365 +
17366 +# Same as above, but a single script fragment to be evaled but not shown.
17367 +finish_eval=$lt_finish_eval
17368 +
17369 +# Take the output of nm and produce a listing of raw symbols and C names.
17370 +global_symbol_pipe=$lt_global_symbol_pipe
17371 +
17372 +# Transform the output of nm in a proper C declaration
17373 +global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
17374 +
17375 +# Transform the output of nm in a C name address pair
17376 +global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
17377 +
17378 +# This is the shared library runtime path variable.
17379 +runpath_var=$runpath_var
17380 +
17381 +# This is the shared library path variable.
17382 +shlibpath_var=$shlibpath_var
17383 +
17384 +# Is shlibpath searched before the hard-coded library search path?
17385 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17386 +
17387 +# How to hardcode a shared library path into an executable.
17388 +hardcode_action=$hardcode_action
17389 +
17390 +# Whether we should hardcode library paths into libraries.
17391 +hardcode_into_libs=$hardcode_into_libs
17392 +
17393 +# Flag to hardcode \$libdir into a binary during linking.
17394 +# This must work even if \$libdir does not exist.
17395 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17396 +
17397 +# Whether we need a single -rpath flag with a separated argument.
17398 +hardcode_libdir_separator=$lt_hardcode_libdir_separator
17399 +
17400 +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
17401 +# resulting binary.
17402 +hardcode_direct=$hardcode_direct
17403 +
17404 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17405 +# resulting binary.
17406 +hardcode_minus_L=$hardcode_minus_L
17407 +
17408 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17409 +# the resulting binary.
17410 +hardcode_shlibpath_var=$hardcode_shlibpath_var
17411 +
17412 +# Variables whose values should be saved in libtool wrapper scripts and
17413 +# restored at relink time.
17414 +variables_saved_for_relink="$variables_saved_for_relink"
17415 +
17416 +# Whether libtool must link a program against all its dependency libraries.
17417 +link_all_deplibs=$link_all_deplibs
17418 +
17419 +# Compile-time system search path for libraries
17420 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17421 +
17422 +# Run-time system search path for libraries
17423 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17424 +
17425 +# Fix the shell variable \$srcfile for the compiler.
17426 +fix_srcfile_path="$fix_srcfile_path"
17427 +
17428 +# Set to yes if exported symbols are required.
17429 +always_export_symbols=$always_export_symbols
17430 +
17431 +# The commands to list exported symbols.
17432 +export_symbols_cmds=$lt_export_symbols_cmds
17433 +
17434 +# The commands to extract the exported symbol list from a shared archive.
17435 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
17436 +
17437 +# Symbols that should not be listed in the preloaded symbols.
17438 +exclude_expsyms=$lt_exclude_expsyms
17439 +
17440 +# Symbols that must always be exported.
17441 +include_expsyms=$lt_include_expsyms
17442 +
17443 +# ### END LIBTOOL CONFIG
17444 +
17445 +__EOF__
17446 +
17447 + case $host_os in
17448 + aix3*)
17449 + cat <<\EOF >> "${ofile}T"
17450 +
17451 +# AIX sometimes has problems with the GCC collect2 program. For some
17452 +# reason, if we set the COLLECT_NAMES environment variable, the problems
17453 +# vanish in a puff of smoke.
17454 +if test "X${COLLECT_NAMES+set}" != Xset; then
17455 + COLLECT_NAMES=
17456 + export COLLECT_NAMES
17457 +fi
17458 +EOF
17459 + ;;
17460 + esac
17461 +
17462 + case $host_os in
17463 + cygwin* | mingw* | pw32* | os2*)
17464 + cat <<'EOF' >> "${ofile}T"
17465 + # This is a source program that is used to create dlls on Windows
17466 + # Don't remove nor modify the starting and closing comments
17467 +# /* ltdll.c starts here */
17468 +# #define WIN32_LEAN_AND_MEAN
17469 +# #include <windows.h>
17470 +# #undef WIN32_LEAN_AND_MEAN
17471 +# #include <stdio.h>
17472 +#
17473 +# #ifndef __CYGWIN__
17474 +# # ifdef __CYGWIN32__
17475 +# # define __CYGWIN__ __CYGWIN32__
17476 +# # endif
17477 +# #endif
17478 +#
17479 +# #ifdef __cplusplus
17480 +# extern "C" {
17481 +# #endif
17482 +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
17483 +# #ifdef __cplusplus
17484 +# }
17485 +# #endif
17486 +#
17487 +# #ifdef __CYGWIN__
17488 +# #include <cygwin/cygwin_dll.h>
17489 +# DECLARE_CYGWIN_DLL( DllMain );
17490 +# #endif
17491 +# HINSTANCE __hDllInstance_base;
17492 +#
17493 +# BOOL APIENTRY
17494 +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
17495 +# {
17496 +# __hDllInstance_base = hInst;
17497 +# return TRUE;
17498 +# }
17499 +# /* ltdll.c ends here */
17500 + # This is a source program that is used to create import libraries
17501 + # on Windows for dlls which lack them. Don't remove nor modify the
17502 + # starting and closing comments
17503 +# /* impgen.c starts here */
17504 +# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
17505 +#
17506 +# This file is part of GNU libtool.
17507 +#
17508 +# This program is free software; you can redistribute it and/or modify
17509 +# it under the terms of the GNU General Public License as published by
17510 +# the Free Software Foundation; either version 2 of the License, or
17511 +# (at your option) any later version.
17512 +#
17513 +# This program is distributed in the hope that it will be useful,
17514 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
17515 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17516 +# GNU General Public License for more details.
17517 +#
17518 +# You should have received a copy of the GNU General Public License
17519 +# along with this program; if not, write to the Free Software
17520 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17521 +# */
17522 +#
17523 +# #include <stdio.h> /* for printf() */
17524 +# #include <unistd.h> /* for open(), lseek(), read() */
17525 +# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
17526 +# #include <string.h> /* for strdup() */
17527 +#
17528 +# /* O_BINARY isn't required (or even defined sometimes) under Unix */
17529 +# #ifndef O_BINARY
17530 +# #define O_BINARY 0
17531 +# #endif
17532 +#
17533 +# static unsigned int
17534 +# pe_get16 (fd, offset)
17535 +# int fd;
17536 +# int offset;
17537 +# {
17538 +# unsigned char b[2];
17539 +# lseek (fd, offset, SEEK_SET);
17540 +# read (fd, b, 2);
17541 +# return b[0] + (b[1]<<8);
17542 +# }
17543 +#
17544 +# static unsigned int
17545 +# pe_get32 (fd, offset)
17546 +# int fd;
17547 +# int offset;
17548 +# {
17549 +# unsigned char b[4];
17550 +# lseek (fd, offset, SEEK_SET);
17551 +# read (fd, b, 4);
17552 +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
17553 +# }
17554 +#
17555 +# static unsigned int
17556 +# pe_as32 (ptr)
17557 +# void *ptr;
17558 +# {
17559 +# unsigned char *b = ptr;
17560 +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
17561 +# }
17562 +#
17563 +# int
17564 +# main (argc, argv)
17565 +# int argc;
17566 +# char *argv[];
17567 +# {
17568 +# int dll;
17569 +# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
17570 +# unsigned long export_rva, export_size, nsections, secptr, expptr;
17571 +# unsigned long name_rvas, nexp;
17572 +# unsigned char *expdata, *erva;
17573 +# char *filename, *dll_name;
17574 +#
17575 +# filename = argv[1];
17576 +#
17577 +# dll = open(filename, O_RDONLY|O_BINARY);
17578 +# if (dll < 1)
17579 +# return 1;
17580 +#
17581 +# dll_name = filename;
17582 +#
17583 +# for (i=0; filename[i]; i++)
17584 +# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
17585 +# dll_name = filename + i +1;
17586 +#
17587 +# pe_header_offset = pe_get32 (dll, 0x3c);
17588 +# opthdr_ofs = pe_header_offset + 4 + 20;
17589 +# num_entries = pe_get32 (dll, opthdr_ofs + 92);
17590 +#
17591 +# if (num_entries < 1) /* no exports */
17592 +# return 1;
17593 +#
17594 +# export_rva = pe_get32 (dll, opthdr_ofs + 96);
17595 +# export_size = pe_get32 (dll, opthdr_ofs + 100);
17596 +# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
17597 +# secptr = (pe_header_offset + 4 + 20 +
17598 +# pe_get16 (dll, pe_header_offset + 4 + 16));
17599 +#
17600 +# expptr = 0;
17601 +# for (i = 0; i < nsections; i++)
17602 +# {
17603 +# char sname[8];
17604 +# unsigned long secptr1 = secptr + 40 * i;
17605 +# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
17606 +# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
17607 +# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
17608 +# lseek(dll, secptr1, SEEK_SET);
17609 +# read(dll, sname, 8);
17610 +# if (vaddr <= export_rva && vaddr+vsize > export_rva)
17611 +# {
17612 +# expptr = fptr + (export_rva - vaddr);
17613 +# if (export_rva + export_size > vaddr + vsize)
17614 +# export_size = vsize - (export_rva - vaddr);
17615 +# break;
17616 +# }
17617 +# }
17618 +#
17619 +# expdata = (unsigned char*)malloc(export_size);
17620 +# lseek (dll, expptr, SEEK_SET);
17621 +# read (dll, expdata, export_size);
17622 +# erva = expdata - export_rva;
17623 +#
17624 +# nexp = pe_as32 (expdata+24);
17625 +# name_rvas = pe_as32 (expdata+32);
17626 +#
17627 +# printf ("EXPORTS\n");
17628 +# for (i = 0; i<nexp; i++)
17629 +# {
17630 +# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
17631 +# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
17632 +# }
17633 +#
17634 +# return 0;
17635 +# }
17636 +# /* impgen.c ends here */
17637 +
17638 +EOF
17639 + ;;
17640 + esac
17641
17642 -for ac_prog in ln
17643 -do
17644 -# Extract the first word of "$ac_prog", so it can be a program name with args.
17645 -set dummy $ac_prog; ac_word=$2
17646 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
17647 -echo "configure:1154: checking for $ac_word" >&5
17648 -if eval "test \"`echo '$''{'ac_cv_prog_LN'+set}'`\" = set"; then
17649 - echo $ac_n "(cached) $ac_c" 1>&6
17650 -else
17651 - if test -n "$LN"; then
17652 - ac_cv_prog_LN="$LN" # Let the user override the test.
17653 -else
17654 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
17655 - ac_dummy="$PATH"
17656 - for ac_dir in $ac_dummy; do
17657 - test -z "$ac_dir" && ac_dir=.
17658 - if test -f $ac_dir/$ac_word; then
17659 - ac_cv_prog_LN="$ac_prog"
17660 - break
17661 - fi
17662 - done
17663 - IFS="$ac_save_ifs"
17664 -fi
17665 -fi
17666 -LN="$ac_cv_prog_LN"
17667 -if test -n "$LN"; then
17668 - echo "$ac_t""$LN" 1>&6
17669 -else
17670 - echo "$ac_t""no" 1>&6
17671 + # We use sed instead of cat because bash on DJGPP gets confused if
17672 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
17673 + # text mode, it properly converts lines to CR/LF. This bash problem
17674 + # is reportedly fixed, but why not run on old versions too?
17675 + sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
17676 +
17677 + mv -f "${ofile}T" "$ofile" || \
17678 + (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
17679 + chmod +x "$ofile"
17680 fi
17681
17682 -test -n "$LN" && break
17683 -done
17684 -test -n "$LN" || LN="@true"
17685 +
17686 +
17687 +
17688 +
17689 +# This can be used to rebuild libtool when needed
17690 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
17691 +
17692 +# Always use our own libtool.
17693 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
17694 +
17695 +# Prevent multiple expansion
17696 +
17697 +
17698
17699
17700 for ac_func in strerror
17701 do
17702 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17703 -echo "configure:1188: checking for $ac_func" >&5
17704 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17705 - echo $ac_n "(cached) $ac_c" 1>&6
17706 -else
17707 - cat > conftest.$ac_ext <<EOF
17708 -#line 1193 "configure"
17709 -#include "confdefs.h"
17710 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17711 +echo "$as_me:$LINENO: checking for $ac_func" >&5
17712 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17713 +if eval "test \"\${$as_ac_var+set}\" = set"; then
17714 + echo $ECHO_N "(cached) $ECHO_C" >&6
17715 +else
17716 + cat >conftest.$ac_ext <<_ACEOF
17717 +/* confdefs.h. */
17718 +_ACEOF
17719 +cat confdefs.h >>conftest.$ac_ext
17720 +cat >>conftest.$ac_ext <<_ACEOF
17721 +/* end confdefs.h. */
17722 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17723 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
17724 +#define $ac_func innocuous_$ac_func
17725 +
17726 /* System header to define __stub macros and hopefully few prototypes,
17727 - which can conflict with char $ac_func(); below. */
17728 -#include <assert.h>
17729 -/* Override any gcc2 internal prototype to avoid an error. */
17730 -/* We use char because int might match the return type of a gcc2
17731 - builtin and then its argument prototype would still apply. */
17732 -char $ac_func();
17733 + which can conflict with char $ac_func (); below.
17734 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17735 + <limits.h> exists even on freestanding compilers. */
17736 +
17737 +#ifdef __STDC__
17738 +# include <limits.h>
17739 +#else
17740 +# include <assert.h>
17741 +#endif
17742
17743 -int main() {
17744 +#undef $ac_func
17745
17746 +/* Override any gcc2 internal prototype to avoid an error. */
17747 +#ifdef __cplusplus
17748 +extern "C"
17749 +{
17750 +#endif
17751 +/* We use char because int might match the return type of a gcc2
17752 + builtin and then its argument prototype would still apply. */
17753 +char $ac_func ();
17754 /* The GNU C library defines this for functions which it implements
17755 to always fail with ENOSYS. Some functions are actually named
17756 something starting with __ and the normal name is an alias. */
17757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17758 choke me
17759 #else
17760 -$ac_func();
17761 +char (*f) () = $ac_func;
17762 +#endif
17763 +#ifdef __cplusplus
17764 +}
17765 #endif
17766
17767 -; return 0; }
17768 -EOF
17769 -if { (eval echo configure:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17770 - rm -rf conftest*
17771 - eval "ac_cv_func_$ac_func=yes"
17772 -else
17773 - echo "configure: failed program was:" >&5
17774 - cat conftest.$ac_ext >&5
17775 - rm -rf conftest*
17776 - eval "ac_cv_func_$ac_func=no"
17777 -fi
17778 -rm -f conftest*
17779 -fi
17780 +int
17781 +main ()
17782 +{
17783 +return f != $ac_func;
17784 + ;
17785 + return 0;
17786 +}
17787 +_ACEOF
17788 +rm -f conftest.$ac_objext conftest$ac_exeext
17789 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17790 + (eval $ac_link) 2>conftest.er1
17791 + ac_status=$?
17792 + grep -v '^ *+' conftest.er1 >conftest.err
17793 + rm -f conftest.er1
17794 + cat conftest.err >&5
17795 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 + (exit $ac_status); } &&
17797 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17798 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17799 + (eval $ac_try) 2>&5
17800 + ac_status=$?
17801 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 + (exit $ac_status); }; } &&
17803 + { ac_try='test -s conftest$ac_exeext'
17804 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17805 + (eval $ac_try) 2>&5
17806 + ac_status=$?
17807 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 + (exit $ac_status); }; }; then
17809 + eval "$as_ac_var=yes"
17810 +else
17811 + echo "$as_me: failed program was:" >&5
17812 +sed 's/^/| /' conftest.$ac_ext >&5
17813 +
17814 +eval "$as_ac_var=no"
17815 +fi
17816 +rm -f conftest.err conftest.$ac_objext \
17817 + conftest$ac_exeext conftest.$ac_ext
17818 +fi
17819 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17820 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17821 +if test `eval echo '${'$as_ac_var'}'` = yes; then
17822 + cat >>confdefs.h <<_ACEOF
17823 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17824 +_ACEOF
17825
17826 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17827 - echo "$ac_t""yes" 1>&6
17828 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17829 - cat >> confdefs.h <<EOF
17830 -#define $ac_tr_func 1
17831 -EOF
17832 -
17833 -else
17834 - echo "$ac_t""no" 1>&6
17835 fi
17836 done
17837
17838
17839 -echo $ac_n "checking for pcap_open_live in -lpcap""... $ac_c" 1>&6
17840 -echo "configure:1242: checking for pcap_open_live in -lpcap" >&5
17841 -ac_lib_var=`echo pcap'_'pcap_open_live | sed 'y%./+-%__p_%'`
17842 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17843 - echo $ac_n "(cached) $ac_c" 1>&6
17844 +echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
17845 +echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6
17846 +if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
17847 + echo $ECHO_N "(cached) $ECHO_C" >&6
17848 else
17849 - ac_save_LIBS="$LIBS"
17850 + ac_check_lib_save_LIBS=$LIBS
17851 LIBS="-lpcap $LIBS"
17852 -cat > conftest.$ac_ext <<EOF
17853 -#line 1250 "configure"
17854 -#include "confdefs.h"
17855 +cat >conftest.$ac_ext <<_ACEOF
17856 +/* confdefs.h. */
17857 +_ACEOF
17858 +cat confdefs.h >>conftest.$ac_ext
17859 +cat >>conftest.$ac_ext <<_ACEOF
17860 +/* end confdefs.h. */
17861 +
17862 /* Override any gcc2 internal prototype to avoid an error. */
17863 +#ifdef __cplusplus
17864 +extern "C"
17865 +#endif
17866 /* We use char because int might match the return type of a gcc2
17867 - builtin and then its argument prototype would still apply. */
17868 -char pcap_open_live();
17869 -
17870 -int main() {
17871 -pcap_open_live()
17872 -; return 0; }
17873 -EOF
17874 -if { (eval echo configure:1261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17875 - rm -rf conftest*
17876 - eval "ac_cv_lib_$ac_lib_var=yes"
17877 -else
17878 - echo "configure: failed program was:" >&5
17879 - cat conftest.$ac_ext >&5
17880 - rm -rf conftest*
17881 - eval "ac_cv_lib_$ac_lib_var=no"
17882 -fi
17883 -rm -f conftest*
17884 -LIBS="$ac_save_LIBS"
17885 -
17886 -fi
17887 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17888 - echo "$ac_t""yes" 1>&6
17889 - cat >> confdefs.h <<\EOF
17890 + builtin and then its argument prototype would still apply. */
17891 +char pcap_open_live ();
17892 +int
17893 +main ()
17894 +{
17895 +pcap_open_live ();
17896 + ;
17897 + return 0;
17898 +}
17899 +_ACEOF
17900 +rm -f conftest.$ac_objext conftest$ac_exeext
17901 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17902 + (eval $ac_link) 2>conftest.er1
17903 + ac_status=$?
17904 + grep -v '^ *+' conftest.er1 >conftest.err
17905 + rm -f conftest.er1
17906 + cat conftest.err >&5
17907 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 + (exit $ac_status); } &&
17909 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17910 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17911 + (eval $ac_try) 2>&5
17912 + ac_status=$?
17913 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 + (exit $ac_status); }; } &&
17915 + { ac_try='test -s conftest$ac_exeext'
17916 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17917 + (eval $ac_try) 2>&5
17918 + ac_status=$?
17919 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 + (exit $ac_status); }; }; then
17921 + ac_cv_lib_pcap_pcap_open_live=yes
17922 +else
17923 + echo "$as_me: failed program was:" >&5
17924 +sed 's/^/| /' conftest.$ac_ext >&5
17925 +
17926 +ac_cv_lib_pcap_pcap_open_live=no
17927 +fi
17928 +rm -f conftest.err conftest.$ac_objext \
17929 + conftest$ac_exeext conftest.$ac_ext
17930 +LIBS=$ac_check_lib_save_LIBS
17931 +fi
17932 +echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
17933 +echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6
17934 +if test $ac_cv_lib_pcap_pcap_open_live = yes; then
17935 + cat >>confdefs.h <<\_ACEOF
17936 #define HAVE_LIB_PCAP 1
17937 -EOF
17938 +_ACEOF
17939
17940 -else
17941 - echo "$ac_t""no" 1>&6
17942 fi
17943
17944
17945 -echo $ac_n "checking low-level packet interface type""... $ac_c" 1>&6
17946 -echo "configure:1286: checking low-level packet interface type" >&5
17947 +echo "$as_me:$LINENO: checking low-level packet interface type" >&5
17948 +echo $ECHO_N "checking low-level packet interface type... $ECHO_C" >&6
17949
17950 if test -r /dev/bpf0 ; then
17951 LL_INT_TYPE=bpf
17952 - echo "$ac_t""found bpf" 1>&6
17953 + echo "$as_me:$LINENO: result: found bpf" >&5
17954 +echo "${ECHO_T}found bpf" >&6
17955 elif test -r /usr/include/net/pfilt.h ; then
17956 LL_INT_TYPE=pf
17957 - echo "$ac_t""found pf" 1>&6
17958 + echo "$as_me:$LINENO: result: found pf" >&5
17959 +echo "${ECHO_T}found pf" >&6
17960 elif test -r /dev/nit ; then
17961 LL_INT_TYPE=snit
17962 - echo "$ac_t""found snit" 1>&6
17963 + echo "$as_me:$LINENO: result: found snit" >&5
17964 +echo "${ECHO_T}found snit" >&6
17965 elif test -r /usr/include/sys/net/nit.h ; then
17966 LL_INT_TYPE=nit
17967 - echo "$ac_t""found nit" 1>&6
17968 + echo "$as_me:$LINENO: result: found nit" >&5
17969 +echo "${ECHO_T}found nit" >&6
17970 elif test -r /usr/include/net/raw.h ; then
17971 LL_INT_TYPE=snoop
17972 - echo "$ac_t""found snoop" 1>&6
17973 + echo "$as_me:$LINENO: result: found snoop" >&5
17974 +echo "${ECHO_T}found snoop" >&6
17975 elif test -r /usr/include/sys/dlpi.h ; then
17976 LL_INT_TYPE=dlpi
17977 - echo "$ac_t""found dlpi" 1>&6
17978 - cat >> confdefs.h <<\EOF
17979 + echo "$as_me:$LINENO: result: found dlpi" >&5
17980 +echo "${ECHO_T}found dlpi" >&6
17981 + cat >>confdefs.h <<\_ACEOF
17982 #define HAVE_DLPI 1
17983 -EOF
17984 +_ACEOF
17985
17986 elif test -r /usr/include/linux/socket.h ; then
17987 LL_INT_TYPE=sockpacket
17988 - echo "$ac_t""found SOCK_PACKET" 1>&6
17989 + echo "$as_me:$LINENO: result: found linux primitives" >&5
17990 +echo "${ECHO_T}found linux primitives" >&6
17991 if test $with_pf_packet = yes; then
17992 -
17993 - echo $ac_n "checking for PF_PACKET""... $ac_c" 1>&6
17994 -echo "configure:1316: checking for PF_PACKET" >&5
17995 - if eval "test \"`echo '$''{'ac_libnet_have_pf_packet'+set}'`\" = set"; then
17996 - echo $ac_n "(cached) $ac_c" 1>&6
17997 +
17998 + echo "$as_me:$LINENO: checking for PF_PACKET" >&5
17999 +echo $ECHO_N "checking for PF_PACKET... $ECHO_C" >&6
18000 + if test "${ac_libnet_have_pf_packet+set}" = set; then
18001 + echo $ECHO_N "(cached) $ECHO_C" >&6
18002 else
18003 case "$target_os" in
18004
18005 @@ -1324,66 +8660,43 @@
18006 *)
18007
18008 cat > pf_packet-test.c << EOF
18009 -#include <net/if.h>
18010 -#if (__GLIBC__)
18011 -#include <netinet/if_ether.h>
18012 -#include <net/if_arp.h>
18013 +#include <stdio.h>
18014 +#include <errno.h>
18015 +#include <stdlib.h>
18016 +#include <netinet/in.h>
18017 +#include <sys/socket.h>
18018 +#include <features.h> /* for the glibc version number */
18019 +#if __GLIBC__ >= 2 && __GLIBC_MINOR >= 1
18020 +#include <netpacket/packet.h>
18021 +#include <net/ethernet.h> /* the L2 protocols */
18022 #else
18023 -#include <linux/if_arp.h>
18024 -#include <linux/if_ether.h>
18025 +#include <asm/types.h>
18026 +#include <linux/if_packet.h>
18027 +#include <linux/if_ether.h> /* The L2 protocols */
18028 #endif
18029 -#if (PF_PACKET)
18030 +
18031 #ifndef SOL_PACKET
18032 #define SOL_PACKET 263
18033 #endif /* SOL_PACKET */
18034 -#include <linux/if_packet.h>
18035 -#endif
18036 -#include <stdlib.h>
18037 -#include <linux/sockios.h>
18038
18039 int
18040 main()
18041 {
18042 -#if (PF_PACKET)
18043 int fd;
18044 - struct sockaddr_ll sa;
18045 - struct ifreq ifr;
18046 - struct packet_mreq mr;
18047 - char *device ="lo";
18048
18049 fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
18050 if (fd == -1)
18051 {
18052 - printf("choked");
18053 - exit (EXIT_FAILURE);
18054 - }
18055 -
18056 - memset(&sa, 0, sizeof(sa));
18057 - strcpy(ifr.ifr_name, device);
18058 - if (ioctl(fd, SIOCGIFINDEX, &ifr) < 0)
18059 - {
18060 - printf("choked");
18061 - exit (EXIT_FAILURE);
18062 - }
18063 - sa.sll_family = AF_PACKET;
18064 - sa.sll_ifindex = ifr.ifr_ifindex;
18065 - sa.sll_protocol = htons(ETH_P_ALL);
18066 -
18067 - memset(&mr, 0, sizeof (mr));
18068 - mr.mr_ifindex = sa.sll_ifindex;
18069 - mr.mr_type = PACKET_MR_ALLMULTI;
18070 -
18071 - if (setsockopt(fd, SOL_PACKET, PACKET_ADD_MEMBERSHIP, (char *)&mr,
18072 - sizeof (mr)) < 0)
18073 - {
18074 - printf("choked\n");
18075 + if (errno == EPERM)
18076 + {
18077 + /* user's UID != 0 */
18078 + printf("probably");
18079 + exit (EXIT_FAILURE);
18080 + }
18081 + printf("no");
18082 exit (EXIT_FAILURE);
18083 }
18084 - /* yay. we made it and it workz! */
18085 printf("yes");
18086 -#else /* PF_PACKET */
18087 - printf("no");
18088 -#endif
18089 exit (EXIT_SUCCESS);
18090 }
18091 EOF
18092 @@ -1397,38 +8710,52 @@
18093 fi
18094
18095 if test $ac_libnet_have_pf_packet = choked; then
18096 - echo "$ac_t""test program choked... assuming no" 1>&6
18097 + echo "$as_me:$LINENO: result: test program choked... assuming no" >&5
18098 +echo "${ECHO_T}test program choked... assuming no" >&6
18099 elif test $ac_libnet_have_pf_packet = yes; then
18100 - cat >> confdefs.h <<\EOF
18101 -#define HAVE_PF_PACKET 1
18102 -EOF
18103 -
18104 + echo "$as_me:$LINENO: result: yes" >&5
18105 +echo "${ECHO_T}yes" >&6
18106 LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_PF_PACKET"
18107 + elif test $ac_libnet_have_pf_packet = probably; then
18108 + echo "$as_me:$LINENO: result: test program got EPERM... assuming yes" >&5
18109 +echo "${ECHO_T}test program got EPERM... assuming yes" >&6
18110 + elif test $ac_libnet_have_pf_packet = no; then
18111 + echo "$as_me:$LINENO: result: no" >&5
18112 +echo "${ECHO_T}no" >&6
18113 fi
18114
18115 - if test $ac_libnet_have_pf_packet != choked; then
18116 - echo "$ac_t""$ac_libnet_have_pf_packet" 1>&6
18117 - fi
18118 rm -f pf_packet-test* core core.pf_packet-test
18119 ;;
18120 esac
18121 fi
18122
18123
18124 + if test $ac_libnet_have_pf_packet = yes -o $ac_libnet_have_pf_packet = probably; then
18125 + cat >>confdefs.h <<\_ACEOF
18126 +#define HAVE_PF_PACKET 1
18127 +_ACEOF
18128 +
18129 + fi
18130 +
18131 fi
18132 elif test -c /dev/bpf0 ; then # check again in case not readable
18133 LL_INT_TYPE=bpf
18134 - echo "$ac_t""found bpf" 1>&6
18135 + echo "$as_me:$LINENO: result: found bpf" >&5
18136 +echo "${ECHO_T}found bpf" >&6
18137 elif test -c /dev/enet ; then # check again in case not readable
18138 LL_INT_TYPE=enet
18139 - echo "$ac_t""found enet" 1>&6
18140 + echo "$as_me:$LINENO: result: found enet" >&5
18141 +echo "${ECHO_T}found enet" >&6
18142 elif test -c /dev/nit ; then # check again in case not readable
18143 LL_INT_TYPE=snit
18144 - echo "$ac_t""found snit" 1>&6
18145 + echo "$as_me:$LINENO: result: found snit" >&5
18146 +echo "${ECHO_T}found snit" >&6
18147 else
18148 LL_INT_TYPE=null
18149 - echo "configure: warning: could not find a low level packet interface" 1>&2
18150 - echo "configure: warning: low level packet creation API will not be added to the library" 1>&2
18151 + { echo "$as_me:$LINENO: WARNING: could not find a low level packet interface" >&5
18152 +echo "$as_me: WARNING: could not find a low level packet interface" >&2;}
18153 + { echo "$as_me:$LINENO: WARNING: low level packet creation API will not be added to the library" >&5
18154 +echo "$as_me: WARNING: low level packet creation API will not be added to the library" >&2;}
18155 fi
18156
18157 LL_INT_TYPE_UC=`echo $LL_INT_TYPE | tr a-z A-Z`
18158 @@ -1437,158 +8764,187 @@
18159 case "$target_os" in
18160
18161 *linux*)
18162 - cat >> confdefs.h <<\EOF
18163 + cat >>confdefs.h <<\_ACEOF
18164 #define _BSD_SOURCE 1
18165 -EOF
18166 +_ACEOF
18167
18168 - cat >> confdefs.h <<\EOF
18169 + cat >>confdefs.h <<\_ACEOF
18170 #define __BSD_SOURCE 1
18171 -EOF
18172 +_ACEOF
18173
18174 - cat >> confdefs.h <<\EOF
18175 + cat >>confdefs.h <<\_ACEOF
18176 #define __FAVOR_BSD 1
18177 -EOF
18178 +_ACEOF
18179
18180 LIBNET_CONFIG_DEFINES="-D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD"
18181 - echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
18182 -echo "configure:1455: checking how to run the C preprocessor" >&5
18183 -# On Suns, sometimes $CPP names a directory.
18184 -if test -n "$CPP" && test -d "$CPP"; then
18185 - CPP=
18186 -fi
18187 -if test -z "$CPP"; then
18188 -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
18189 - echo $ac_n "(cached) $ac_c" 1>&6
18190 -else
18191 - # This must be in double quotes, not single quotes, because CPP may get
18192 - # substituted into the Makefile and "${CC-cc}" will confuse make.
18193 - CPP="${CC-cc} -E"
18194 - # On the NeXT, cc -E runs the code through the compiler's parser,
18195 - # not just through cpp.
18196 - cat > conftest.$ac_ext <<EOF
18197 -#line 1470 "configure"
18198 -#include "confdefs.h"
18199 -#include <assert.h>
18200 -Syntax Error
18201 -EOF
18202 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18203 -{ (eval echo configure:1476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18204 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18205 -if test -z "$ac_err"; then
18206 - :
18207 -else
18208 - echo "$ac_err" >&5
18209 - echo "configure: failed program was:" >&5
18210 - cat conftest.$ac_ext >&5
18211 - rm -rf conftest*
18212 - CPP="${CC-cc} -E -traditional-cpp"
18213 - cat > conftest.$ac_ext <<EOF
18214 -#line 1487 "configure"
18215 -#include "confdefs.h"
18216 -#include <assert.h>
18217 -Syntax Error
18218 -EOF
18219 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18220 -{ (eval echo configure:1493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18221 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18222 -if test -z "$ac_err"; then
18223 - :
18224 -else
18225 - echo "$ac_err" >&5
18226 - echo "configure: failed program was:" >&5
18227 - cat conftest.$ac_ext >&5
18228 - rm -rf conftest*
18229 - CPP="${CC-cc} -nologo -E"
18230 - cat > conftest.$ac_ext <<EOF
18231 -#line 1504 "configure"
18232 -#include "confdefs.h"
18233 -#include <assert.h>
18234 -Syntax Error
18235 -EOF
18236 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18237 -{ (eval echo configure:1510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18238 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18239 -if test -z "$ac_err"; then
18240 - :
18241 +
18242 +for ac_header in net/ethernet.h
18243 +do
18244 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18245 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
18246 + echo "$as_me:$LINENO: checking for $ac_header" >&5
18247 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18248 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
18249 + echo $ECHO_N "(cached) $ECHO_C" >&6
18250 +fi
18251 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18252 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18253 +else
18254 + # Is the header compilable?
18255 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
18256 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18257 +cat >conftest.$ac_ext <<_ACEOF
18258 +/* confdefs.h. */
18259 +_ACEOF
18260 +cat confdefs.h >>conftest.$ac_ext
18261 +cat >>conftest.$ac_ext <<_ACEOF
18262 +/* end confdefs.h. */
18263 +$ac_includes_default
18264 +#include <$ac_header>
18265 +_ACEOF
18266 +rm -f conftest.$ac_objext
18267 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18268 + (eval $ac_compile) 2>conftest.er1
18269 + ac_status=$?
18270 + grep -v '^ *+' conftest.er1 >conftest.err
18271 + rm -f conftest.er1
18272 + cat conftest.err >&5
18273 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 + (exit $ac_status); } &&
18275 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18276 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277 + (eval $ac_try) 2>&5
18278 + ac_status=$?
18279 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 + (exit $ac_status); }; } &&
18281 + { ac_try='test -s conftest.$ac_objext'
18282 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18283 + (eval $ac_try) 2>&5
18284 + ac_status=$?
18285 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 + (exit $ac_status); }; }; then
18287 + ac_header_compiler=yes
18288 +else
18289 + echo "$as_me: failed program was:" >&5
18290 +sed 's/^/| /' conftest.$ac_ext >&5
18291 +
18292 +ac_header_compiler=no
18293 +fi
18294 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18295 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18296 +echo "${ECHO_T}$ac_header_compiler" >&6
18297 +
18298 +# Is the header present?
18299 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
18300 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18301 +cat >conftest.$ac_ext <<_ACEOF
18302 +/* confdefs.h. */
18303 +_ACEOF
18304 +cat confdefs.h >>conftest.$ac_ext
18305 +cat >>conftest.$ac_ext <<_ACEOF
18306 +/* end confdefs.h. */
18307 +#include <$ac_header>
18308 +_ACEOF
18309 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18310 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18311 + ac_status=$?
18312 + grep -v '^ *+' conftest.er1 >conftest.err
18313 + rm -f conftest.er1
18314 + cat conftest.err >&5
18315 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 + (exit $ac_status); } >/dev/null; then
18317 + if test -s conftest.err; then
18318 + ac_cpp_err=$ac_c_preproc_warn_flag
18319 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18320 + else
18321 + ac_cpp_err=
18322 + fi
18323 else
18324 - echo "$ac_err" >&5
18325 - echo "configure: failed program was:" >&5
18326 - cat conftest.$ac_ext >&5
18327 - rm -rf conftest*
18328 - CPP=/lib/cpp
18329 -fi
18330 -rm -f conftest*
18331 -fi
18332 -rm -f conftest*
18333 -fi
18334 -rm -f conftest*
18335 - ac_cv_prog_CPP="$CPP"
18336 + ac_cpp_err=yes
18337 fi
18338 - CPP="$ac_cv_prog_CPP"
18339 +if test -z "$ac_cpp_err"; then
18340 + ac_header_preproc=yes
18341 else
18342 - ac_cv_prog_CPP="$CPP"
18343 -fi
18344 -echo "$ac_t""$CPP" 1>&6
18345 + echo "$as_me: failed program was:" >&5
18346 +sed 's/^/| /' conftest.$ac_ext >&5
18347
18348 -for ac_hdr in net/ethernet.h
18349 -do
18350 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18351 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18352 -echo "configure:1538: checking for $ac_hdr" >&5
18353 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18354 - echo $ac_n "(cached) $ac_c" 1>&6
18355 -else
18356 - cat > conftest.$ac_ext <<EOF
18357 -#line 1543 "configure"
18358 -#include "confdefs.h"
18359 -#include <$ac_hdr>
18360 -EOF
18361 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18362 -{ (eval echo configure:1548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18363 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18364 -if test -z "$ac_err"; then
18365 - rm -rf conftest*
18366 - eval "ac_cv_header_$ac_safe=yes"
18367 + ac_header_preproc=no
18368 +fi
18369 +rm -f conftest.err conftest.$ac_ext
18370 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18371 +echo "${ECHO_T}$ac_header_preproc" >&6
18372 +
18373 +# So? What about this header?
18374 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18375 + yes:no: )
18376 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18377 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18378 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18379 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18380 + ac_header_preproc=yes
18381 + ;;
18382 + no:yes:* )
18383 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18384 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18385 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18386 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18387 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18388 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18389 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18390 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18391 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18392 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18393 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18394 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18395 + (
18396 + cat <<\_ASBOX
18397 +## ------------------------------------------ ##
18398 +## Report this to the AC_PACKAGE_NAME lists. ##
18399 +## ------------------------------------------ ##
18400 +_ASBOX
18401 + ) |
18402 + sed "s/^/$as_me: WARNING: /" >&2
18403 + ;;
18404 +esac
18405 +echo "$as_me:$LINENO: checking for $ac_header" >&5
18406 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18407 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
18408 + echo $ECHO_N "(cached) $ECHO_C" >&6
18409 else
18410 - echo "$ac_err" >&5
18411 - echo "configure: failed program was:" >&5
18412 - cat conftest.$ac_ext >&5
18413 - rm -rf conftest*
18414 - eval "ac_cv_header_$ac_safe=no"
18415 + eval "$as_ac_Header=\$ac_header_preproc"
18416 fi
18417 -rm -f conftest*
18418 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18419 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18420 +
18421 fi
18422 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18423 - echo "$ac_t""yes" 1>&6
18424 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18425 - cat >> confdefs.h <<EOF
18426 -#define $ac_tr_hdr 1
18427 -EOF
18428 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
18429 + cat >>confdefs.h <<_ACEOF
18430 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18431 +_ACEOF
18432 \
18433 LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_NET_ETHERNET_H"
18434 -else
18435 - echo "$ac_t""no" 1>&6
18436 fi
18437 +
18438 done
18439
18440 - MAN_PREFIX="$prefix/man/man3/"
18441 + MAN_PREFIX="$mandir/man3/"
18442 LIB_PREFIX="$prefix/lib/"
18443 INC_PREFIX="$prefix/include/"
18444 BIN_PREFIX="$prefix/bin/"
18445 ;;
18446
18447 *freebsd*)
18448 - cat >> confdefs.h <<\EOF
18449 + cat >>confdefs.h <<\_ACEOF
18450 #define LIBNET_BSDISH_OS 1
18451 -EOF
18452 +_ACEOF
18453
18454 - cat >> confdefs.h <<\EOF
18455 + cat >>confdefs.h <<\_ACEOF
18456 #define LIBNET_BSD_BYTE_SWAP 1
18457 -EOF
18458 +_ACEOF
18459
18460 - cat >> confdefs.h <<\EOF
18461 + cat >>confdefs.h <<\_ACEOF
18462 #define HAVE_SOCKADDR_SA_LEN 1
18463 -EOF
18464 +_ACEOF
18465
18466 LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP \
18467 -DHAVE_SOCKADDR_SA_LEN"
18468 @@ -1596,19 +8952,21 @@
18469 LIB_PREFIX="$prefix/lib/aout"
18470 INC_PREFIX="$prefix/include/"
18471 BIN_PREFIX="$prefix/bin/"
18472 - echo "$ac_t""Note: support/bpf-lkm/etherspoof contains the lkm source \
18473 -required to spoof ethernet frames" 1>&6
18474 + echo "$as_me:$LINENO: result: Note: support/bpf-lkm/etherspoof contains the lkm source \
18475 +required to spoof ethernet frames" >&5
18476 +echo "${ECHO_T}Note: support/bpf-lkm/etherspoof contains the lkm source \
18477 +required to spoof ethernet frames" >&6
18478 ln -sf FreeBSD support/bpf-lkm/etherspoof
18479 ;;
18480
18481 *netbsd*)
18482 - cat >> confdefs.h <<\EOF
18483 + cat >>confdefs.h <<\_ACEOF
18484 #define LIBNET_BSDISH_OS 1
18485 -EOF
18486 +_ACEOF
18487
18488 - cat >> confdefs.h <<\EOF
18489 + cat >>confdefs.h <<\_ACEOF
18490 #define LIBNET_BSD_BYTE_SWAP 1
18491 -EOF
18492 +_ACEOF
18493
18494 LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP"
18495 MAN_PREFIX="$prefix/man/man3/"
18496 @@ -1618,32 +8976,34 @@
18497 ;;
18498
18499 *openbsd*)
18500 - cat >> confdefs.h <<\EOF
18501 + cat >>confdefs.h <<\_ACEOF
18502 #define LIBNET_BSDISH_OS 1
18503 -EOF
18504 +_ACEOF
18505
18506 - cat >> confdefs.h <<\EOF
18507 + cat >>confdefs.h <<\_ACEOF
18508 #define HAVE_SOCKADDR_SA_LEN 1
18509 -EOF
18510 +_ACEOF
18511
18512 LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS"
18513 MAN_PREFIX="$prefix/man/man3/"
18514 LIB_PREFIX="$prefix/lib/"
18515 INC_PREFIX="$prefix/include/"
18516 BIN_PREFIX="$prefix/bin/"
18517 - echo "$ac_t""Note: support/bpf-lkm/etherspoof contains the lkm required \
18518 -to spoof ethernet frames" 1>&6
18519 + echo "$as_me:$LINENO: result: Note: support/bpf-lkm/etherspoof contains the lkm required \
18520 +to spoof ethernet frames" >&5
18521 +echo "${ECHO_T}Note: support/bpf-lkm/etherspoof contains the lkm required \
18522 +to spoof ethernet frames" >&6
18523 ln -sf OpenBSD support/bpf-lkm/etherspoof
18524 ;;
18525
18526 *bsdi*)
18527 - cat >> confdefs.h <<\EOF
18528 + cat >>confdefs.h <<\_ACEOF
18529 #define LIBNET_BSDISH_OS 1
18530 -EOF
18531 +_ACEOF
18532
18533 - cat >> confdefs.h <<\EOF
18534 + cat >>confdefs.h <<\_ACEOF
18535 #define LIBNET_BSD_BYTE_SWAP 1
18536 -EOF
18537 +_ACEOF
18538
18539 LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP"
18540 MAN_PREFIX="$prefix/man/man3/"
18541 @@ -1653,181 +9013,353 @@
18542 ;;
18543
18544 *solaris*)
18545 - cat >> confdefs.h <<\EOF
18546 + cat >>confdefs.h <<\_ACEOF
18547 #define HAVE_SOLARIS 1
18548 -EOF
18549 +_ACEOF
18550
18551 - for ac_hdr in sys/bufmod.h sys/dlpi_ext.h
18552 +
18553 +
18554 +for ac_header in sys/bufmod.h sys/dlpi_ext.h
18555 do
18556 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18557 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18558 -echo "configure:1665: checking for $ac_hdr" >&5
18559 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18560 - echo $ac_n "(cached) $ac_c" 1>&6
18561 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18562 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
18563 + echo "$as_me:$LINENO: checking for $ac_header" >&5
18564 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18565 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
18566 + echo $ECHO_N "(cached) $ECHO_C" >&6
18567 +fi
18568 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18569 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18570 +else
18571 + # Is the header compilable?
18572 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
18573 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18574 +cat >conftest.$ac_ext <<_ACEOF
18575 +/* confdefs.h. */
18576 +_ACEOF
18577 +cat confdefs.h >>conftest.$ac_ext
18578 +cat >>conftest.$ac_ext <<_ACEOF
18579 +/* end confdefs.h. */
18580 +$ac_includes_default
18581 +#include <$ac_header>
18582 +_ACEOF
18583 +rm -f conftest.$ac_objext
18584 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18585 + (eval $ac_compile) 2>conftest.er1
18586 + ac_status=$?
18587 + grep -v '^ *+' conftest.er1 >conftest.err
18588 + rm -f conftest.er1
18589 + cat conftest.err >&5
18590 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 + (exit $ac_status); } &&
18592 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18593 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18594 + (eval $ac_try) 2>&5
18595 + ac_status=$?
18596 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 + (exit $ac_status); }; } &&
18598 + { ac_try='test -s conftest.$ac_objext'
18599 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18600 + (eval $ac_try) 2>&5
18601 + ac_status=$?
18602 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 + (exit $ac_status); }; }; then
18604 + ac_header_compiler=yes
18605 +else
18606 + echo "$as_me: failed program was:" >&5
18607 +sed 's/^/| /' conftest.$ac_ext >&5
18608 +
18609 +ac_header_compiler=no
18610 +fi
18611 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18612 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18613 +echo "${ECHO_T}$ac_header_compiler" >&6
18614 +
18615 +# Is the header present?
18616 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
18617 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18618 +cat >conftest.$ac_ext <<_ACEOF
18619 +/* confdefs.h. */
18620 +_ACEOF
18621 +cat confdefs.h >>conftest.$ac_ext
18622 +cat >>conftest.$ac_ext <<_ACEOF
18623 +/* end confdefs.h. */
18624 +#include <$ac_header>
18625 +_ACEOF
18626 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18627 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18628 + ac_status=$?
18629 + grep -v '^ *+' conftest.er1 >conftest.err
18630 + rm -f conftest.er1
18631 + cat conftest.err >&5
18632 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 + (exit $ac_status); } >/dev/null; then
18634 + if test -s conftest.err; then
18635 + ac_cpp_err=$ac_c_preproc_warn_flag
18636 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18637 + else
18638 + ac_cpp_err=
18639 + fi
18640 else
18641 - cat > conftest.$ac_ext <<EOF
18642 -#line 1670 "configure"
18643 -#include "confdefs.h"
18644 -#include <$ac_hdr>
18645 -EOF
18646 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18647 -{ (eval echo configure:1675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18648 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18649 -if test -z "$ac_err"; then
18650 - rm -rf conftest*
18651 - eval "ac_cv_header_$ac_safe=yes"
18652 + ac_cpp_err=yes
18653 +fi
18654 +if test -z "$ac_cpp_err"; then
18655 + ac_header_preproc=yes
18656 else
18657 - echo "$ac_err" >&5
18658 - echo "configure: failed program was:" >&5
18659 - cat conftest.$ac_ext >&5
18660 - rm -rf conftest*
18661 - eval "ac_cv_header_$ac_safe=no"
18662 + echo "$as_me: failed program was:" >&5
18663 +sed 's/^/| /' conftest.$ac_ext >&5
18664 +
18665 + ac_header_preproc=no
18666 +fi
18667 +rm -f conftest.err conftest.$ac_ext
18668 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18669 +echo "${ECHO_T}$ac_header_preproc" >&6
18670 +
18671 +# So? What about this header?
18672 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18673 + yes:no: )
18674 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18675 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18676 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18677 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18678 + ac_header_preproc=yes
18679 + ;;
18680 + no:yes:* )
18681 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18682 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18683 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18684 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18685 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18686 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18687 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18688 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18689 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18690 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18691 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18692 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18693 + (
18694 + cat <<\_ASBOX
18695 +## ------------------------------------------ ##
18696 +## Report this to the AC_PACKAGE_NAME lists. ##
18697 +## ------------------------------------------ ##
18698 +_ASBOX
18699 + ) |
18700 + sed "s/^/$as_me: WARNING: /" >&2
18701 + ;;
18702 +esac
18703 +echo "$as_me:$LINENO: checking for $ac_header" >&5
18704 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18705 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
18706 + echo $ECHO_N "(cached) $ECHO_C" >&6
18707 +else
18708 + eval "$as_ac_Header=\$ac_header_preproc"
18709 fi
18710 -rm -f conftest*
18711 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18712 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18713 +
18714 fi
18715 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18716 - echo "$ac_t""yes" 1>&6
18717 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18718 - cat >> confdefs.h <<EOF
18719 -#define $ac_tr_hdr 1
18720 -EOF
18721 -
18722 -else
18723 - echo "$ac_t""no" 1>&6
18724 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
18725 + cat >>confdefs.h <<_ACEOF
18726 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18727 +_ACEOF
18728 +
18729 fi
18730 +
18731 done
18732
18733 - echo $ac_n "checking for /dev/dlpi device""... $ac_c" 1>&6
18734 -echo "configure:1702: checking for /dev/dlpi device" >&5
18735 + echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
18736 +echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6
18737 if test -c /dev/dlpi; then
18738 - echo "$ac_t""yes" 1>&6
18739 - cat >> confdefs.h <<\EOF
18740 + echo "$as_me:$LINENO: result: yes" >&5
18741 +echo "${ECHO_T}yes" >&6
18742 + cat >>confdefs.h <<\_ACEOF
18743 #define HAVE_DEV_DLPI 1
18744 -EOF
18745 +_ACEOF
18746
18747 else
18748 - echo "$ac_t""no" 1>&6
18749 + echo "$as_me:$LINENO: result: no" >&5
18750 +echo "${ECHO_T}no" >&6
18751 dir="/dev/dlpi"
18752 - echo $ac_n "checking for $dir directory""... $ac_c" 1>&6
18753 -echo "configure:1713: checking for $dir directory" >&5
18754 + echo "$as_me:$LINENO: checking for $dir directory" >&5
18755 +echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6
18756 if test -d $dir ; then
18757 - echo "$ac_t""yes" 1>&6
18758 - cat >> confdefs.h <<EOF
18759 + echo "$as_me:$LINENO: result: yes" >&5
18760 +echo "${ECHO_T}yes" >&6
18761 + cat >>confdefs.h <<_ACEOF
18762 #define DLPI_DEV_PREFIX "$dir"
18763 -EOF
18764 +_ACEOF
18765
18766 else
18767 - echo "$ac_t""no" 1>&6
18768 + echo "$as_me:$LINENO: result: no" >&5
18769 +echo "${ECHO_T}no" >&6
18770 fi
18771 fi
18772 - echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
18773 -echo "configure:1725: checking for socket in -lsocket" >&5
18774 -ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
18775 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18776 - echo $ac_n "(cached) $ac_c" 1>&6
18777 +
18778 +echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18779 +echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
18780 +if test "${ac_cv_lib_socket_socket+set}" = set; then
18781 + echo $ECHO_N "(cached) $ECHO_C" >&6
18782 else
18783 - ac_save_LIBS="$LIBS"
18784 + ac_check_lib_save_LIBS=$LIBS
18785 LIBS="-lsocket $LIBS"
18786 -cat > conftest.$ac_ext <<EOF
18787 -#line 1733 "configure"
18788 -#include "confdefs.h"
18789 +cat >conftest.$ac_ext <<_ACEOF
18790 +/* confdefs.h. */
18791 +_ACEOF
18792 +cat confdefs.h >>conftest.$ac_ext
18793 +cat >>conftest.$ac_ext <<_ACEOF
18794 +/* end confdefs.h. */
18795 +
18796 /* Override any gcc2 internal prototype to avoid an error. */
18797 +#ifdef __cplusplus
18798 +extern "C"
18799 +#endif
18800 /* We use char because int might match the return type of a gcc2
18801 - builtin and then its argument prototype would still apply. */
18802 -char socket();
18803 -
18804 -int main() {
18805 -socket()
18806 -; return 0; }
18807 -EOF
18808 -if { (eval echo configure:1744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18809 - rm -rf conftest*
18810 - eval "ac_cv_lib_$ac_lib_var=yes"
18811 -else
18812 - echo "configure: failed program was:" >&5
18813 - cat conftest.$ac_ext >&5
18814 - rm -rf conftest*
18815 - eval "ac_cv_lib_$ac_lib_var=no"
18816 -fi
18817 -rm -f conftest*
18818 -LIBS="$ac_save_LIBS"
18819 -
18820 -fi
18821 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18822 - echo "$ac_t""yes" 1>&6
18823 - ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
18824 - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
18825 - cat >> confdefs.h <<EOF
18826 -#define $ac_tr_lib 1
18827 -EOF
18828 + builtin and then its argument prototype would still apply. */
18829 +char socket ();
18830 +int
18831 +main ()
18832 +{
18833 +socket ();
18834 + ;
18835 + return 0;
18836 +}
18837 +_ACEOF
18838 +rm -f conftest.$ac_objext conftest$ac_exeext
18839 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18840 + (eval $ac_link) 2>conftest.er1
18841 + ac_status=$?
18842 + grep -v '^ *+' conftest.er1 >conftest.err
18843 + rm -f conftest.er1
18844 + cat conftest.err >&5
18845 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 + (exit $ac_status); } &&
18847 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18848 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18849 + (eval $ac_try) 2>&5
18850 + ac_status=$?
18851 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 + (exit $ac_status); }; } &&
18853 + { ac_try='test -s conftest$ac_exeext'
18854 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18855 + (eval $ac_try) 2>&5
18856 + ac_status=$?
18857 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 + (exit $ac_status); }; }; then
18859 + ac_cv_lib_socket_socket=yes
18860 +else
18861 + echo "$as_me: failed program was:" >&5
18862 +sed 's/^/| /' conftest.$ac_ext >&5
18863 +
18864 +ac_cv_lib_socket_socket=no
18865 +fi
18866 +rm -f conftest.err conftest.$ac_objext \
18867 + conftest$ac_exeext conftest.$ac_ext
18868 +LIBS=$ac_check_lib_save_LIBS
18869 +fi
18870 +echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
18871 +echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
18872 +if test $ac_cv_lib_socket_socket = yes; then
18873 + cat >>confdefs.h <<_ACEOF
18874 +#define HAVE_LIBSOCKET 1
18875 +_ACEOF
18876
18877 LIBS="-lsocket $LIBS"
18878
18879 else
18880 - echo "$ac_t""no" 1>&6
18881 -{ echo "configure: error: libsocket not found." 1>&2; exit 1; }
18882 + { { echo "$as_me:$LINENO: error: libsocket not found." >&5
18883 +echo "$as_me: error: libsocket not found." >&2;}
18884 + { (exit 1); exit 1; }; }
18885 fi
18886
18887 - echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
18888 -echo "configure:1773: checking for gethostbyname in -lnsl" >&5
18889 -ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
18890 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18891 - echo $ac_n "(cached) $ac_c" 1>&6
18892 +
18893 +echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18894 +echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18895 +if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18896 + echo $ECHO_N "(cached) $ECHO_C" >&6
18897 else
18898 - ac_save_LIBS="$LIBS"
18899 + ac_check_lib_save_LIBS=$LIBS
18900 LIBS="-lnsl $LIBS"
18901 -cat > conftest.$ac_ext <<EOF
18902 -#line 1781 "configure"
18903 -#include "confdefs.h"
18904 +cat >conftest.$ac_ext <<_ACEOF
18905 +/* confdefs.h. */
18906 +_ACEOF
18907 +cat confdefs.h >>conftest.$ac_ext
18908 +cat >>conftest.$ac_ext <<_ACEOF
18909 +/* end confdefs.h. */
18910 +
18911 /* Override any gcc2 internal prototype to avoid an error. */
18912 +#ifdef __cplusplus
18913 +extern "C"
18914 +#endif
18915 /* We use char because int might match the return type of a gcc2
18916 - builtin and then its argument prototype would still apply. */
18917 -char gethostbyname();
18918 -
18919 -int main() {
18920 -gethostbyname()
18921 -; return 0; }
18922 -EOF
18923 -if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18924 - rm -rf conftest*
18925 - eval "ac_cv_lib_$ac_lib_var=yes"
18926 -else
18927 - echo "configure: failed program was:" >&5
18928 - cat conftest.$ac_ext >&5
18929 - rm -rf conftest*
18930 - eval "ac_cv_lib_$ac_lib_var=no"
18931 -fi
18932 -rm -f conftest*
18933 -LIBS="$ac_save_LIBS"
18934 -
18935 -fi
18936 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18937 - echo "$ac_t""yes" 1>&6
18938 - ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
18939 - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
18940 - cat >> confdefs.h <<EOF
18941 -#define $ac_tr_lib 1
18942 -EOF
18943 + builtin and then its argument prototype would still apply. */
18944 +char gethostbyname ();
18945 +int
18946 +main ()
18947 +{
18948 +gethostbyname ();
18949 + ;
18950 + return 0;
18951 +}
18952 +_ACEOF
18953 +rm -f conftest.$ac_objext conftest$ac_exeext
18954 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18955 + (eval $ac_link) 2>conftest.er1
18956 + ac_status=$?
18957 + grep -v '^ *+' conftest.er1 >conftest.err
18958 + rm -f conftest.er1
18959 + cat conftest.err >&5
18960 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 + (exit $ac_status); } &&
18962 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18963 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18964 + (eval $ac_try) 2>&5
18965 + ac_status=$?
18966 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 + (exit $ac_status); }; } &&
18968 + { ac_try='test -s conftest$ac_exeext'
18969 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18970 + (eval $ac_try) 2>&5
18971 + ac_status=$?
18972 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 + (exit $ac_status); }; }; then
18974 + ac_cv_lib_nsl_gethostbyname=yes
18975 +else
18976 + echo "$as_me: failed program was:" >&5
18977 +sed 's/^/| /' conftest.$ac_ext >&5
18978 +
18979 +ac_cv_lib_nsl_gethostbyname=no
18980 +fi
18981 +rm -f conftest.err conftest.$ac_objext \
18982 + conftest$ac_exeext conftest.$ac_ext
18983 +LIBS=$ac_check_lib_save_LIBS
18984 +fi
18985 +echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18986 +echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18987 +if test $ac_cv_lib_nsl_gethostbyname = yes; then
18988 + cat >>confdefs.h <<_ACEOF
18989 +#define HAVE_LIBNSL 1
18990 +_ACEOF
18991
18992 LIBS="-lnsl $LIBS"
18993
18994 else
18995 - echo "$ac_t""no" 1>&6
18996 -{ echo "configure: error: libnsl not found." 1>&2; exit 1; }
18997 + { { echo "$as_me:$LINENO: error: libnsl not found." >&5
18998 +echo "$as_me: error: libnsl not found." >&2;}
18999 + { (exit 1); exit 1; }; }
19000 fi
19001
19002
19003 case "`uname -r`" in
19004 5.4)
19005 - cat >> confdefs.h <<\EOF
19006 + cat >>confdefs.h <<\_ACEOF
19007 #define STUPID_SOLARIS_CHECKSUM_BUG 1
19008 -EOF
19009 +_ACEOF
19010
19011 ;;
19012 5.5*)
19013 - cat >> confdefs.h <<\EOF
19014 + cat >>confdefs.h <<\_ACEOF
19015 #define STUPID_SOLARIS_CHECKSUM_BUG 1
19016 -EOF
19017 +_ACEOF
19018
19019 ;;
19020
19021 @@ -1842,73 +9374,112 @@
19022 ;;
19023
19024 *)
19025 - echo "configure: warning: apparently your OS is not officially supported yet" 1>&2
19026 - echo "configure: warning: this may not work" 1>&2
19027 - echo "$ac_t""you'll have to edit the makefile by hand" 1>&6
19028 - echo "$ac_t""please send diffs to mike@infonexus.com" 1>&6
19029 + { echo "$as_me:$LINENO: WARNING: apparently your OS is not officially supported yet" >&5
19030 +echo "$as_me: WARNING: apparently your OS is not officially supported yet" >&2;}
19031 + { echo "$as_me:$LINENO: WARNING: this may not work" >&5
19032 +echo "$as_me: WARNING: this may not work" >&2;}
19033 + echo "$as_me:$LINENO: result: you'll have to edit the makefile by hand" >&5
19034 +echo "${ECHO_T}you'll have to edit the makefile by hand" >&6
19035 + echo "$as_me:$LINENO: result: please send diffs to mike@infonexus.com" >&5
19036 +echo "${ECHO_T}please send diffs to mike@infonexus.com" >&6
19037 ;;
19038
19039 esac
19040
19041
19042 - echo $ac_n "checking for libnet_build_ip in -lnet""... $ac_c" 1>&6
19043 -echo "configure:1856: checking for libnet_build_ip in -lnet" >&5
19044 -ac_lib_var=`echo net'_'libnet_build_ip | sed 'y%./+-%__p_%'`
19045 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19046 - echo $ac_n "(cached) $ac_c" 1>&6
19047 + echo "$as_me:$LINENO: checking for libnet_build_ip in -lnet" >&5
19048 +echo $ECHO_N "checking for libnet_build_ip in -lnet... $ECHO_C" >&6
19049 +if test "${ac_cv_lib_net_libnet_build_ip+set}" = set; then
19050 + echo $ECHO_N "(cached) $ECHO_C" >&6
19051 else
19052 - ac_save_LIBS="$LIBS"
19053 + ac_check_lib_save_LIBS=$LIBS
19054 LIBS="-lnet $LIBS"
19055 -cat > conftest.$ac_ext <<EOF
19056 -#line 1864 "configure"
19057 -#include "confdefs.h"
19058 +cat >conftest.$ac_ext <<_ACEOF
19059 +/* confdefs.h. */
19060 +_ACEOF
19061 +cat confdefs.h >>conftest.$ac_ext
19062 +cat >>conftest.$ac_ext <<_ACEOF
19063 +/* end confdefs.h. */
19064 +
19065 /* Override any gcc2 internal prototype to avoid an error. */
19066 +#ifdef __cplusplus
19067 +extern "C"
19068 +#endif
19069 /* We use char because int might match the return type of a gcc2
19070 - builtin and then its argument prototype would still apply. */
19071 -char libnet_build_ip();
19072 -
19073 -int main() {
19074 -libnet_build_ip()
19075 -; return 0; }
19076 -EOF
19077 -if { (eval echo configure:1875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19078 - rm -rf conftest*
19079 - eval "ac_cv_lib_$ac_lib_var=yes"
19080 -else
19081 - echo "configure: failed program was:" >&5
19082 - cat conftest.$ac_ext >&5
19083 - rm -rf conftest*
19084 - eval "ac_cv_lib_$ac_lib_var=no"
19085 -fi
19086 -rm -f conftest*
19087 -LIBS="$ac_save_LIBS"
19088 -
19089 -fi
19090 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19091 - echo "$ac_t""yes" 1>&6
19092 - echo $ac_n "checking version""... $ac_c" 1>&6
19093 -echo "configure:1891: checking version" >&5 \
19094 + builtin and then its argument prototype would still apply. */
19095 +char libnet_build_ip ();
19096 +int
19097 +main ()
19098 +{
19099 +libnet_build_ip ();
19100 + ;
19101 + return 0;
19102 +}
19103 +_ACEOF
19104 +rm -f conftest.$ac_objext conftest$ac_exeext
19105 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19106 + (eval $ac_link) 2>conftest.er1
19107 + ac_status=$?
19108 + grep -v '^ *+' conftest.er1 >conftest.err
19109 + rm -f conftest.er1
19110 + cat conftest.err >&5
19111 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 + (exit $ac_status); } &&
19113 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19114 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115 + (eval $ac_try) 2>&5
19116 + ac_status=$?
19117 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 + (exit $ac_status); }; } &&
19119 + { ac_try='test -s conftest$ac_exeext'
19120 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19121 + (eval $ac_try) 2>&5
19122 + ac_status=$?
19123 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 + (exit $ac_status); }; }; then
19125 + ac_cv_lib_net_libnet_build_ip=yes
19126 +else
19127 + echo "$as_me: failed program was:" >&5
19128 +sed 's/^/| /' conftest.$ac_ext >&5
19129 +
19130 +ac_cv_lib_net_libnet_build_ip=no
19131 +fi
19132 +rm -f conftest.err conftest.$ac_objext \
19133 + conftest$ac_exeext conftest.$ac_ext
19134 +LIBS=$ac_check_lib_save_LIBS
19135 +fi
19136 +echo "$as_me:$LINENO: result: $ac_cv_lib_net_libnet_build_ip" >&5
19137 +echo "${ECHO_T}$ac_cv_lib_net_libnet_build_ip" >&6
19138 +if test $ac_cv_lib_net_libnet_build_ip = yes; then
19139 + echo "$as_me:$LINENO: checking version" >&5
19140 +echo $ECHO_N "checking version... $ECHO_C" >&6 \
19141
19142 if [ ! -f $LIB_PREFIX/libnet.a ] ; then
19143 - echo "$ac_t""$LIB_PREFIX/libnet.a doesn't exist" 1>&6
19144 - echo "$ac_t""previous libnet install lives elsewhere" 1>&6
19145 + echo "$as_me:$LINENO: result: $LIB_PREFIX/libnet.a doesn't exist" >&5
19146 +echo "${ECHO_T}$LIB_PREFIX/libnet.a doesn't exist" >&6
19147 + echo "$as_me:$LINENO: result: previous libnet install lives elsewhere" >&5
19148 +echo "${ECHO_T}previous libnet install lives elsewhere" >&6
19149 else
19150 __LIBNET_VERSION=`strings $LIB_PREFIX/libnet.a | grep "libnet version"\
19151 | cut -f3 -d" "`;\
19152 if test -z "$__LIBNET_VERSION"; then
19153 - echo "$ac_t""<0.8" 1>&6
19154 + echo "$as_me:$LINENO: result: <0.8" >&5
19155 +echo "${ECHO_T}<0.8" >&6
19156 else
19157 - echo "$ac_t""$__LIBNET_VERSION" 1>&6
19158 + echo "$as_me:$LINENO: result: $__LIBNET_VERSION" >&5
19159 +echo "${ECHO_T}$__LIBNET_VERSION" >&6
19160 fi
19161 fi\
19162 -
19163 -else
19164 - echo "$ac_t""no" 1>&6
19165 +
19166 fi
19167
19168
19169 -echo $ac_n "checking machine endianess""... $ac_c" 1>&6
19170 -echo "configure:1912: checking machine endianess" >&5
19171 +echo "$as_me:$LINENO: checking machine endianess" >&5
19172 +echo $ECHO_N "checking machine endianess... $ECHO_C" >&6
19173 + if test "${ac_cv_libnet_endianess+set}" = set; then
19174 + echo $ECHO_N "(cached) $ECHO_C" >&6
19175 +else
19176 +
19177
19178 cat > conftest.c << EOF
19179 # include <stdio.h>
19180 @@ -1957,30 +9528,34 @@
19181 ac_cv_libnet_endianess=lil
19182 else
19183 ac_cv_libnet_endianess=unknown
19184 - fi
19185 + fi
19186 fi
19187 rm -f conftest* core core.conftest
19188
19189 - echo "$ac_t""$ac_cv_libnet_endianess" 1>&6
19190 +
19191 +fi
19192 +
19193 + echo "$as_me:$LINENO: result: $ac_cv_libnet_endianess" >&5
19194 +echo "${ECHO_T}$ac_cv_libnet_endianess" >&6
19195
19196 if test $ac_cv_libnet_endianess = big ; then
19197 - cat >> confdefs.h <<\EOF
19198 + cat >>confdefs.h <<\_ACEOF
19199 #define LIBNET_BIG_ENDIAN 1
19200 -EOF
19201 +_ACEOF
19202
19203 LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_BIG_ENDIAN"
19204 elif test $ac_cv_libnet_endianess = lil ; then
19205 - cat >> confdefs.h <<\EOF
19206 + cat >>confdefs.h <<\_ACEOF
19207 #define LIBNET_LIL_ENDIAN 1
19208 -EOF
19209 +_ACEOF
19210
19211 LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_LIL_ENDIAN"
19212 fi
19213 -
19214 -echo $ac_n "checking if unaligned accesses fail""... $ac_c" 1>&6
19215 -echo "configure:1982: checking if unaligned accesses fail" >&5
19216 - if eval "test \"`echo '$''{'ac_cv_lbl_unaligned_fail'+set}'`\" = set"; then
19217 - echo $ac_n "(cached) $ac_c" 1>&6
19218 +
19219 +echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
19220 +echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
19221 + if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
19222 + echo $ECHO_N "(cached) $ECHO_C" >&6
19223 else
19224 case "$target_cpu" in
19225
19226 @@ -2039,446 +9614,1598 @@
19227 esac
19228 fi
19229
19230 - echo "$ac_t""$ac_cv_lbl_unaligned_fail" 1>&6
19231 + echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
19232 +echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
19233 if test $ac_cv_lbl_unaligned_fail = yes ; then
19234 - cat >> confdefs.h <<\EOF
19235 + cat >>confdefs.h <<\_ACEOF
19236 #define LBL_ALIGN 1
19237 -EOF
19238 +_ACEOF
19239
19240 fi
19241
19242
19243 -for ac_hdr in sys/sockio.h
19244 +
19245 +for ac_header in sys/sockio.h
19246 do
19247 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19248 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19249 -echo "configure:2056: checking for $ac_hdr" >&5
19250 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19251 - echo $ac_n "(cached) $ac_c" 1>&6
19252 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19253 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
19254 + echo "$as_me:$LINENO: checking for $ac_header" >&5
19255 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19256 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
19257 + echo $ECHO_N "(cached) $ECHO_C" >&6
19258 +fi
19259 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19260 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19261 +else
19262 + # Is the header compilable?
19263 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
19264 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19265 +cat >conftest.$ac_ext <<_ACEOF
19266 +/* confdefs.h. */
19267 +_ACEOF
19268 +cat confdefs.h >>conftest.$ac_ext
19269 +cat >>conftest.$ac_ext <<_ACEOF
19270 +/* end confdefs.h. */
19271 +$ac_includes_default
19272 +#include <$ac_header>
19273 +_ACEOF
19274 +rm -f conftest.$ac_objext
19275 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19276 + (eval $ac_compile) 2>conftest.er1
19277 + ac_status=$?
19278 + grep -v '^ *+' conftest.er1 >conftest.err
19279 + rm -f conftest.er1
19280 + cat conftest.err >&5
19281 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 + (exit $ac_status); } &&
19283 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19284 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 + (eval $ac_try) 2>&5
19286 + ac_status=$?
19287 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 + (exit $ac_status); }; } &&
19289 + { ac_try='test -s conftest.$ac_objext'
19290 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291 + (eval $ac_try) 2>&5
19292 + ac_status=$?
19293 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 + (exit $ac_status); }; }; then
19295 + ac_header_compiler=yes
19296 +else
19297 + echo "$as_me: failed program was:" >&5
19298 +sed 's/^/| /' conftest.$ac_ext >&5
19299 +
19300 +ac_header_compiler=no
19301 +fi
19302 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19303 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19304 +echo "${ECHO_T}$ac_header_compiler" >&6
19305 +
19306 +# Is the header present?
19307 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
19308 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19309 +cat >conftest.$ac_ext <<_ACEOF
19310 +/* confdefs.h. */
19311 +_ACEOF
19312 +cat confdefs.h >>conftest.$ac_ext
19313 +cat >>conftest.$ac_ext <<_ACEOF
19314 +/* end confdefs.h. */
19315 +#include <$ac_header>
19316 +_ACEOF
19317 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19318 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19319 + ac_status=$?
19320 + grep -v '^ *+' conftest.er1 >conftest.err
19321 + rm -f conftest.er1
19322 + cat conftest.err >&5
19323 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 + (exit $ac_status); } >/dev/null; then
19325 + if test -s conftest.err; then
19326 + ac_cpp_err=$ac_c_preproc_warn_flag
19327 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19328 + else
19329 + ac_cpp_err=
19330 + fi
19331 else
19332 - cat > conftest.$ac_ext <<EOF
19333 -#line 2061 "configure"
19334 -#include "confdefs.h"
19335 -#include <$ac_hdr>
19336 -EOF
19337 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19338 -{ (eval echo configure:2066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19339 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19340 -if test -z "$ac_err"; then
19341 - rm -rf conftest*
19342 - eval "ac_cv_header_$ac_safe=yes"
19343 + ac_cpp_err=yes
19344 +fi
19345 +if test -z "$ac_cpp_err"; then
19346 + ac_header_preproc=yes
19347 else
19348 - echo "$ac_err" >&5
19349 - echo "configure: failed program was:" >&5
19350 - cat conftest.$ac_ext >&5
19351 - rm -rf conftest*
19352 - eval "ac_cv_header_$ac_safe=no"
19353 + echo "$as_me: failed program was:" >&5
19354 +sed 's/^/| /' conftest.$ac_ext >&5
19355 +
19356 + ac_header_preproc=no
19357 +fi
19358 +rm -f conftest.err conftest.$ac_ext
19359 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19360 +echo "${ECHO_T}$ac_header_preproc" >&6
19361 +
19362 +# So? What about this header?
19363 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19364 + yes:no: )
19365 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19366 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19367 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19368 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19369 + ac_header_preproc=yes
19370 + ;;
19371 + no:yes:* )
19372 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19373 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19374 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19375 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19376 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19377 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19378 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19379 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19380 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19381 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19382 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19383 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19384 + (
19385 + cat <<\_ASBOX
19386 +## ------------------------------------------ ##
19387 +## Report this to the AC_PACKAGE_NAME lists. ##
19388 +## ------------------------------------------ ##
19389 +_ASBOX
19390 + ) |
19391 + sed "s/^/$as_me: WARNING: /" >&2
19392 + ;;
19393 +esac
19394 +echo "$as_me:$LINENO: checking for $ac_header" >&5
19395 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19396 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
19397 + echo $ECHO_N "(cached) $ECHO_C" >&6
19398 +else
19399 + eval "$as_ac_Header=\$ac_header_preproc"
19400 fi
19401 -rm -f conftest*
19402 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19403 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19404 +
19405 fi
19406 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19407 - echo "$ac_t""yes" 1>&6
19408 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19409 - cat >> confdefs.h <<EOF
19410 -#define $ac_tr_hdr 1
19411 -EOF
19412 -
19413 -else
19414 - echo "$ac_t""no" 1>&6
19415 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
19416 + cat >>confdefs.h <<_ACEOF
19417 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19418 +_ACEOF
19419 +
19420 fi
19421 +
19422 done
19423
19424 + ac_config_headers="$ac_config_headers include/config.h"
19425
19426 -trap '' 1 2 15
19427 -cat > confcache <<\EOF
19428 + ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile include/libnet/Makefile libnet-config"
19429 +cat >confcache <<\_ACEOF
19430 # This file is a shell script that caches the results of configure
19431 # tests run on this system so they can be shared between configure
19432 -# scripts and configure runs. It is not useful on other systems.
19433 -# If it contains results you don't want to keep, you may remove or edit it.
19434 +# scripts and configure runs, see configure's option --config-cache.
19435 +# It is not useful on other systems. If it contains results you don't
19436 +# want to keep, you may remove or edit it.
19437 #
19438 -# By default, configure uses ./config.cache as the cache file,
19439 -# creating it if it does not exist already. You can give configure
19440 -# the --cache-file=FILE option to use a different cache file; that is
19441 -# what configure does when it calls configure scripts in
19442 -# subdirectories, so they share the cache.
19443 -# Giving --cache-file=/dev/null disables caching, for debugging configure.
19444 -# config.status only pays attention to the cache file if you give it the
19445 -# --recheck option to rerun configure.
19446 +# config.status only pays attention to the cache file if you give it
19447 +# the --recheck option to rerun configure.
19448 #
19449 -EOF
19450 +# `ac_cv_env_foo' variables (set or unset) will be overridden when
19451 +# loading this file, other *unset* `ac_cv_foo' will be assigned the
19452 +# following values.
19453 +
19454 +_ACEOF
19455 +
19456 # The following way of writing the cache mishandles newlines in values,
19457 # but we know of no workaround that is simple, portable, and efficient.
19458 # So, don't put newlines in cache variables' values.
19459 # Ultrix sh set writes to stderr and can't be redirected directly,
19460 # and sets the high bit in the cache file unless we assign to the vars.
19461 -(set) 2>&1 |
19462 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
19463 - *ac_space=\ *)
19464 - # `set' does not quote correctly, so add quotes (double-quote substitution
19465 - # turns \\\\ into \\, and sed turns \\ into \).
19466 - sed -n \
19467 - -e "s/'/'\\\\''/g" \
19468 - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19469 - ;;
19470 - *)
19471 - # `set' quotes correctly as required by POSIX, so do not add quotes.
19472 - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19473 - ;;
19474 - esac >> confcache
19475 -if cmp -s $cache_file confcache; then
19476 - :
19477 -else
19478 +{
19479 + (set) 2>&1 |
19480 + case `(ac_space=' '; set | grep ac_space) 2>&1` in
19481 + *ac_space=\ *)
19482 + # `set' does not quote correctly, so add quotes (double-quote
19483 + # substitution turns \\\\ into \\, and sed turns \\ into \).
19484 + sed -n \
19485 + "s/'/'\\\\''/g;
19486 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19487 + ;;
19488 + *)
19489 + # `set' quotes correctly as required by POSIX, so do not add quotes.
19490 + sed -n \
19491 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19492 + ;;
19493 + esac;
19494 +} |
19495 + sed '
19496 + t clear
19497 + : clear
19498 + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19499 + t end
19500 + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19501 + : end' >>confcache
19502 +if diff $cache_file confcache >/dev/null 2>&1; then :; else
19503 if test -w $cache_file; then
19504 - echo "updating cache $cache_file"
19505 - cat confcache > $cache_file
19506 + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19507 + cat confcache >$cache_file
19508 else
19509 echo "not updating unwritable cache $cache_file"
19510 fi
19511 fi
19512 rm -f confcache
19513
19514 -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
19515 -
19516 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19517 # Let make expand exec_prefix.
19518 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19519
19520 -# Any assignment to VPATH causes Sun make to only execute
19521 -# the first set of double-colon rules, so remove it if not needed.
19522 -# If there is a colon in the path, we need to keep it.
19523 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
19524 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19525 +# trailing colons and then remove the whole line if VPATH becomes empty
19526 +# (actually we leave an empty line to preserve line numbers).
19527 if test "x$srcdir" = x.; then
19528 - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
19529 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
19530 +s/:*\$(srcdir):*/:/;
19531 +s/:*\${srcdir}:*/:/;
19532 +s/:*@srcdir@:*/:/;
19533 +s/^\([^=]*=[ ]*\):*/\1/;
19534 +s/:*$//;
19535 +s/^[^=]*=[ ]*$//;
19536 +}'
19537 fi
19538
19539 -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
19540 -
19541 DEFS=-DHAVE_CONFIG_H
19542
19543 -# Without the "./", some shells look in PATH for config.status.
19544 -: ${CONFIG_STATUS=./config.status}
19545 +ac_libobjs=
19546 +ac_ltlibobjs=
19547 +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19548 + # 1. Remove the extension, and $U if already installed.
19549 + ac_i=`echo "$ac_i" |
19550 + sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19551 + # 2. Add them.
19552 + ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19553 + ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19554 +done
19555 +LIBOBJS=$ac_libobjs
19556
19557 -echo creating $CONFIG_STATUS
19558 -rm -f $CONFIG_STATUS
19559 -cat > $CONFIG_STATUS <<EOF
19560 -#! /bin/sh
19561 -# Generated automatically by configure.
19562 +LTLIBOBJS=$ac_ltlibobjs
19563 +
19564 +
19565 +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19566 + { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19567 +Usually this means the macro was only invoked conditionally." >&5
19568 +echo "$as_me: error: conditional \"AMDEP\" was never defined.
19569 +Usually this means the macro was only invoked conditionally." >&2;}
19570 + { (exit 1); exit 1; }; }
19571 +fi
19572 +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19573 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19574 +Usually this means the macro was only invoked conditionally." >&5
19575 +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19576 +Usually this means the macro was only invoked conditionally." >&2;}
19577 + { (exit 1); exit 1; }; }
19578 +fi
19579 +
19580 +: ${CONFIG_STATUS=./config.status}
19581 +ac_clean_files_save=$ac_clean_files
19582 +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19583 +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19584 +echo "$as_me: creating $CONFIG_STATUS" >&6;}
19585 +cat >$CONFIG_STATUS <<_ACEOF
19586 +#! $SHELL
19587 +# Generated by $as_me.
19588 # Run this file to recreate the current configuration.
19589 -# This directory was configured as follows,
19590 -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19591 -#
19592 -# $0 $ac_configure_args
19593 -#
19594 # Compiler output produced by configure, useful for debugging
19595 -# configure, is in ./config.log if it exists.
19596 +# configure, is in config.log if it exists.
19597
19598 -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
19599 -for ac_option
19600 +debug=false
19601 +ac_cs_recheck=false
19602 +ac_cs_silent=false
19603 +SHELL=\${CONFIG_SHELL-$SHELL}
19604 +_ACEOF
19605 +
19606 +cat >>$CONFIG_STATUS <<\_ACEOF
19607 +## --------------------- ##
19608 +## M4sh Initialization. ##
19609 +## --------------------- ##
19610 +
19611 +# Be Bourne compatible
19612 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19613 + emulate sh
19614 + NULLCMD=:
19615 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19616 + # is contrary to our usage. Disable this feature.
19617 + alias -g '${1+"$@"}'='"$@"'
19618 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19619 + set -o posix
19620 +fi
19621 +DUALCASE=1; export DUALCASE # for MKS sh
19622 +
19623 +# Support unset when possible.
19624 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19625 + as_unset=unset
19626 +else
19627 + as_unset=false
19628 +fi
19629 +
19630 +
19631 +# Work around bugs in pre-3.0 UWIN ksh.
19632 +$as_unset ENV MAIL MAILPATH
19633 +PS1='$ '
19634 +PS2='> '
19635 +PS4='+ '
19636 +
19637 +# NLS nuisances.
19638 +for as_var in \
19639 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19640 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19641 + LC_TELEPHONE LC_TIME
19642 do
19643 - case "\$ac_option" in
19644 - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19645 - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
19646 - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
19647 - -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
19648 - echo "$CONFIG_STATUS generated by autoconf version 2.13"
19649 - exit 0 ;;
19650 - -help | --help | --hel | --he | --h)
19651 - echo "\$ac_cs_usage"; exit 0 ;;
19652 - *) echo "\$ac_cs_usage"; exit 1 ;;
19653 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19654 + eval $as_var=C; export $as_var
19655 + else
19656 + $as_unset $as_var
19657 + fi
19658 +done
19659 +
19660 +# Required to use basename.
19661 +if expr a : '\(a\)' >/dev/null 2>&1; then
19662 + as_expr=expr
19663 +else
19664 + as_expr=false
19665 +fi
19666 +
19667 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19668 + as_basename=basename
19669 +else
19670 + as_basename=false
19671 +fi
19672 +
19673 +
19674 +# Name of the executable.
19675 +as_me=`$as_basename "$0" ||
19676 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19677 + X"$0" : 'X\(//\)$' \| \
19678 + X"$0" : 'X\(/\)$' \| \
19679 + . : '\(.\)' 2>/dev/null ||
19680 +echo X/"$0" |
19681 + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19682 + /^X\/\(\/\/\)$/{ s//\1/; q; }
19683 + /^X\/\(\/\).*/{ s//\1/; q; }
19684 + s/.*/./; q'`
19685 +
19686 +
19687 +# PATH needs CR, and LINENO needs CR and PATH.
19688 +# Avoid depending upon Character Ranges.
19689 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19690 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19691 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19692 +as_cr_digits='0123456789'
19693 +as_cr_alnum=$as_cr_Letters$as_cr_digits
19694 +
19695 +# The user is always right.
19696 +if test "${PATH_SEPARATOR+set}" != set; then
19697 + echo "#! /bin/sh" >conf$$.sh
19698 + echo "exit 0" >>conf$$.sh
19699 + chmod +x conf$$.sh
19700 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19701 + PATH_SEPARATOR=';'
19702 + else
19703 + PATH_SEPARATOR=:
19704 + fi
19705 + rm -f conf$$.sh
19706 +fi
19707 +
19708 +
19709 + as_lineno_1=$LINENO
19710 + as_lineno_2=$LINENO
19711 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19712 + test "x$as_lineno_1" != "x$as_lineno_2" &&
19713 + test "x$as_lineno_3" = "x$as_lineno_2" || {
19714 + # Find who we are. Look in the path if we contain no path at all
19715 + # relative or not.
19716 + case $0 in
19717 + *[\\/]* ) as_myself=$0 ;;
19718 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19719 +for as_dir in $PATH
19720 +do
19721 + IFS=$as_save_IFS
19722 + test -z "$as_dir" && as_dir=.
19723 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19724 +done
19725 +
19726 + ;;
19727 esac
19728 + # We did not find ourselves, most probably we were run as `sh COMMAND'
19729 + # in which case we are not to be found in the path.
19730 + if test "x$as_myself" = x; then
19731 + as_myself=$0
19732 + fi
19733 + if test ! -f "$as_myself"; then
19734 + { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19735 +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19736 + { (exit 1); exit 1; }; }
19737 + fi
19738 + case $CONFIG_SHELL in
19739 + '')
19740 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19741 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19742 +do
19743 + IFS=$as_save_IFS
19744 + test -z "$as_dir" && as_dir=.
19745 + for as_base in sh bash ksh sh5; do
19746 + case $as_dir in
19747 + /*)
19748 + if ("$as_dir/$as_base" -c '
19749 + as_lineno_1=$LINENO
19750 + as_lineno_2=$LINENO
19751 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19752 + test "x$as_lineno_1" != "x$as_lineno_2" &&
19753 + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19754 + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19755 + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19756 + CONFIG_SHELL=$as_dir/$as_base
19757 + export CONFIG_SHELL
19758 + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19759 + fi;;
19760 + esac
19761 + done
19762 done
19763 +;;
19764 + esac
19765
19766 -ac_given_srcdir=$srcdir
19767 -ac_given_INSTALL="$INSTALL"
19768 -
19769 -trap 'rm -fr `echo "Makefile test/Makefile test/TCP/Makefile test/Ethernet/Makefile \
19770 - test/UDP/Makefile test/ICMP/Makefile test/Random/Makefile \
19771 - test/OSPF/Makefile util/Makefile util/Get-mac/Makefile example/Makefile \
19772 - libnet-config include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
19773 -EOF
19774 -cat >> $CONFIG_STATUS <<EOF
19775 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19776 + # uniformly replaced by the line number. The first 'sed' inserts a
19777 + # line-number line before each line; the second 'sed' does the real
19778 + # work. The second script uses 'N' to pair each line-number line
19779 + # with the numbered line, and appends trailing '-' during
19780 + # substitution so that $LINENO is not a special case at line end.
19781 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19782 + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19783 + sed '=' <$as_myself |
19784 + sed '
19785 + N
19786 + s,$,-,
19787 + : loop
19788 + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19789 + t loop
19790 + s,-$,,
19791 + s,^['$as_cr_digits']*\n,,
19792 + ' >$as_me.lineno &&
19793 + chmod +x $as_me.lineno ||
19794 + { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19795 +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19796 + { (exit 1); exit 1; }; }
19797 +
19798 + # Don't try to exec as it changes $[0], causing all sort of problems
19799 + # (the dirname of $[0] is not the place where we might find the
19800 + # original and so on. Autoconf is especially sensible to this).
19801 + . ./$as_me.lineno
19802 + # Exit status is that of the last command.
19803 + exit
19804 +}
19805
19806 -# Protect against being on the right side of a sed subst in config.status.
19807 -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
19808 - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
19809 -$ac_vpsub
19810 -$extrasub
19811 -s%@SHELL@%$SHELL%g
19812 -s%@CFLAGS@%$CFLAGS%g
19813 -s%@CPPFLAGS@%$CPPFLAGS%g
19814 -s%@CXXFLAGS@%$CXXFLAGS%g
19815 -s%@FFLAGS@%$FFLAGS%g
19816 -s%@DEFS@%$DEFS%g
19817 -s%@LDFLAGS@%$LDFLAGS%g
19818 -s%@LIBS@%$LIBS%g
19819 -s%@exec_prefix@%$exec_prefix%g
19820 -s%@prefix@%$prefix%g
19821 -s%@program_transform_name@%$program_transform_name%g
19822 -s%@bindir@%$bindir%g
19823 -s%@sbindir@%$sbindir%g
19824 -s%@libexecdir@%$libexecdir%g
19825 -s%@datadir@%$datadir%g
19826 -s%@sysconfdir@%$sysconfdir%g
19827 -s%@sharedstatedir@%$sharedstatedir%g
19828 -s%@localstatedir@%$localstatedir%g
19829 -s%@libdir@%$libdir%g
19830 -s%@includedir@%$includedir%g
19831 -s%@oldincludedir@%$oldincludedir%g
19832 -s%@infodir@%$infodir%g
19833 -s%@mandir@%$mandir%g
19834 -s%@LL_INT_TYPE_UC@%$LL_INT_TYPE_UC%g
19835 -s%@LL_INT_TYPE@%$LL_INT_TYPE%g
19836 -s%@LIB_PREFIX@%$LIB_PREFIX%g
19837 -s%@INC_PREFIX@%$INC_PREFIX%g
19838 -s%@MAN_PREFIX@%$MAN_PREFIX%g
19839 -s%@BIN_PREFIX@%$BIN_PREFIX%g
19840 -s%@RANLIB@%$RANLIB%g
19841 -s%@AR@%$AR%g
19842 -s%@LN@%$LN%g
19843 -s%@ADDITIONAL_LIBS@%$ADDITIONAL_LIBS%g
19844 -s%@LIBNET_CONFIG_DEFINES@%$LIBNET_CONFIG_DEFINES%g
19845 -s%@LIBNET_CONFIG_LIBS@%$LIBNET_CONFIG_LIBS%g
19846 -s%@LIBNET_CONFIG_CFLAGS@%$LIBNET_CONFIG_CFLAGS%g
19847 -s%@host@%$host%g
19848 -s%@host_alias@%$host_alias%g
19849 -s%@host_cpu@%$host_cpu%g
19850 -s%@host_vendor@%$host_vendor%g
19851 -s%@host_os@%$host_os%g
19852 -s%@target@%$target%g
19853 -s%@target_alias@%$target_alias%g
19854 -s%@target_cpu@%$target_cpu%g
19855 -s%@target_vendor@%$target_vendor%g
19856 -s%@target_os@%$target_os%g
19857 -s%@build@%$build%g
19858 -s%@build_alias@%$build_alias%g
19859 -s%@build_cpu@%$build_cpu%g
19860 -s%@build_vendor@%$build_vendor%g
19861 -s%@build_os@%$build_os%g
19862 -s%@CC@%$CC%g
19863 -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
19864 -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
19865 -s%@INSTALL_DATA@%$INSTALL_DATA%g
19866 -s%@SET_MAKE@%$SET_MAKE%g
19867 -s%@CPP@%$CPP%g
19868
19869 -CEOF
19870 -EOF
19871 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19872 + *c*,-n*) ECHO_N= ECHO_C='
19873 +' ECHO_T=' ' ;;
19874 + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19875 + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19876 +esac
19877
19878 -cat >> $CONFIG_STATUS <<\EOF
19879 +if expr a : '\(a\)' >/dev/null 2>&1; then
19880 + as_expr=expr
19881 +else
19882 + as_expr=false
19883 +fi
19884
19885 -# Split the substitutions into bite-sized pieces for seds with
19886 -# small command number limits, like on Digital OSF/1 and HP-UX.
19887 -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
19888 -ac_file=1 # Number of current file.
19889 -ac_beg=1 # First line for current file.
19890 -ac_end=$ac_max_sed_cmds # Line after last line for current file.
19891 -ac_more_lines=:
19892 -ac_sed_cmds=""
19893 -while $ac_more_lines; do
19894 - if test $ac_beg -gt 1; then
19895 - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
19896 - else
19897 - sed "${ac_end}q" conftest.subs > conftest.s$ac_file
19898 - fi
19899 - if test ! -s conftest.s$ac_file; then
19900 - ac_more_lines=false
19901 - rm -f conftest.s$ac_file
19902 - else
19903 - if test -z "$ac_sed_cmds"; then
19904 - ac_sed_cmds="sed -f conftest.s$ac_file"
19905 - else
19906 - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
19907 - fi
19908 - ac_file=`expr $ac_file + 1`
19909 - ac_beg=$ac_end
19910 - ac_end=`expr $ac_end + $ac_max_sed_cmds`
19911 +rm -f conf$$ conf$$.exe conf$$.file
19912 +echo >conf$$.file
19913 +if ln -s conf$$.file conf$$ 2>/dev/null; then
19914 + # We could just check for DJGPP; but this test a) works b) is more generic
19915 + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19916 + if test -f conf$$.exe; then
19917 + # Don't use ln at all; we don't have any links
19918 + as_ln_s='cp -p'
19919 + else
19920 + as_ln_s='ln -s'
19921 fi
19922 +elif ln conf$$.file conf$$ 2>/dev/null; then
19923 + as_ln_s=ln
19924 +else
19925 + as_ln_s='cp -p'
19926 +fi
19927 +rm -f conf$$ conf$$.exe conf$$.file
19928 +
19929 +if mkdir -p . 2>/dev/null; then
19930 + as_mkdir_p=:
19931 +else
19932 + test -d ./-p && rmdir ./-p
19933 + as_mkdir_p=false
19934 +fi
19935 +
19936 +as_executable_p="test -f"
19937 +
19938 +# Sed expression to map a string onto a valid CPP name.
19939 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19940 +
19941 +# Sed expression to map a string onto a valid variable name.
19942 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19943 +
19944 +
19945 +# IFS
19946 +# We need space, tab and new line, in precisely that order.
19947 +as_nl='
19948 +'
19949 +IFS=" $as_nl"
19950 +
19951 +# CDPATH.
19952 +$as_unset CDPATH
19953 +
19954 +exec 6>&1
19955 +
19956 +# Open the log real soon, to keep \$[0] and so on meaningful, and to
19957 +# report actual input values of CONFIG_FILES etc. instead of their
19958 +# values after options handling. Logging --version etc. is OK.
19959 +exec 5>>config.log
19960 +{
19961 + echo
19962 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19963 +## Running $as_me. ##
19964 +_ASBOX
19965 +} >&5
19966 +cat >&5 <<_CSEOF
19967 +
19968 +This file was extended by $as_me, which was
19969 +generated by GNU Autoconf 2.59. Invocation command line was
19970 +
19971 + CONFIG_FILES = $CONFIG_FILES
19972 + CONFIG_HEADERS = $CONFIG_HEADERS
19973 + CONFIG_LINKS = $CONFIG_LINKS
19974 + CONFIG_COMMANDS = $CONFIG_COMMANDS
19975 + $ $0 $@
19976 +
19977 +_CSEOF
19978 +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19979 +echo >&5
19980 +_ACEOF
19981 +
19982 +# Files that config.status was made for.
19983 +if test -n "$ac_config_files"; then
19984 + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19985 +fi
19986 +
19987 +if test -n "$ac_config_headers"; then
19988 + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19989 +fi
19990 +
19991 +if test -n "$ac_config_links"; then
19992 + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19993 +fi
19994 +
19995 +if test -n "$ac_config_commands"; then
19996 + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19997 +fi
19998 +
19999 +cat >>$CONFIG_STATUS <<\_ACEOF
20000 +
20001 +ac_cs_usage="\
20002 +\`$as_me' instantiates files from templates according to the
20003 +current configuration.
20004 +
20005 +Usage: $0 [OPTIONS] [FILE]...
20006 +
20007 + -h, --help print this help, then exit
20008 + -V, --version print version number, then exit
20009 + -q, --quiet do not print progress messages
20010 + -d, --debug don't remove temporary files
20011 + --recheck update $as_me by reconfiguring in the same conditions
20012 + --file=FILE[:TEMPLATE]
20013 + instantiate the configuration file FILE
20014 + --header=FILE[:TEMPLATE]
20015 + instantiate the configuration header FILE
20016 +
20017 +Configuration files:
20018 +$config_files
20019 +
20020 +Configuration headers:
20021 +$config_headers
20022 +
20023 +Configuration commands:
20024 +$config_commands
20025 +
20026 +Report bugs to <bug-autoconf@gnu.org>."
20027 +_ACEOF
20028 +
20029 +cat >>$CONFIG_STATUS <<_ACEOF
20030 +ac_cs_version="\\
20031 +config.status
20032 +configured by $0, generated by GNU Autoconf 2.59,
20033 + with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20034 +
20035 +Copyright (C) 2003 Free Software Foundation, Inc.
20036 +This config.status script is free software; the Free Software Foundation
20037 +gives unlimited permission to copy, distribute and modify it."
20038 +srcdir=$srcdir
20039 +INSTALL="$INSTALL"
20040 +_ACEOF
20041 +
20042 +cat >>$CONFIG_STATUS <<\_ACEOF
20043 +# If no file are specified by the user, then we need to provide default
20044 +# value. By we need to know if files were specified by the user.
20045 +ac_need_defaults=:
20046 +while test $# != 0
20047 +do
20048 + case $1 in
20049 + --*=*)
20050 + ac_option=`expr "x$1" : 'x\([^=]*\)='`
20051 + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20052 + ac_shift=:
20053 + ;;
20054 + -*)
20055 + ac_option=$1
20056 + ac_optarg=$2
20057 + ac_shift=shift
20058 + ;;
20059 + *) # This is not an option, so the user has probably given explicit
20060 + # arguments.
20061 + ac_option=$1
20062 + ac_need_defaults=false;;
20063 + esac
20064 +
20065 + case $ac_option in
20066 + # Handling of the options.
20067 +_ACEOF
20068 +cat >>$CONFIG_STATUS <<\_ACEOF
20069 + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20070 + ac_cs_recheck=: ;;
20071 + --version | --vers* | -V )
20072 + echo "$ac_cs_version"; exit 0 ;;
20073 + --he | --h)
20074 + # Conflict between --help and --header
20075 + { { echo "$as_me:$LINENO: error: ambiguous option: $1
20076 +Try \`$0 --help' for more information." >&5
20077 +echo "$as_me: error: ambiguous option: $1
20078 +Try \`$0 --help' for more information." >&2;}
20079 + { (exit 1); exit 1; }; };;
20080 + --help | --hel | -h )
20081 + echo "$ac_cs_usage"; exit 0 ;;
20082 + --debug | --d* | -d )
20083 + debug=: ;;
20084 + --file | --fil | --fi | --f )
20085 + $ac_shift
20086 + CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20087 + ac_need_defaults=false;;
20088 + --header | --heade | --head | --hea )
20089 + $ac_shift
20090 + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20091 + ac_need_defaults=false;;
20092 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20093 + | -silent | --silent | --silen | --sile | --sil | --si | --s)
20094 + ac_cs_silent=: ;;
20095 +
20096 + # This is an error.
20097 + -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20098 +Try \`$0 --help' for more information." >&5
20099 +echo "$as_me: error: unrecognized option: $1
20100 +Try \`$0 --help' for more information." >&2;}
20101 + { (exit 1); exit 1; }; } ;;
20102 +
20103 + *) ac_config_targets="$ac_config_targets $1" ;;
20104 +
20105 + esac
20106 + shift
20107 done
20108 -if test -z "$ac_sed_cmds"; then
20109 - ac_sed_cmds=cat
20110 +
20111 +ac_configure_extra_args=
20112 +
20113 +if $ac_cs_silent; then
20114 + exec 6>/dev/null
20115 + ac_configure_extra_args="$ac_configure_extra_args --silent"
20116 fi
20117 -EOF
20118
20119 -cat >> $CONFIG_STATUS <<EOF
20120 +_ACEOF
20121 +cat >>$CONFIG_STATUS <<_ACEOF
20122 +if \$ac_cs_recheck; then
20123 + echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20124 + exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20125 +fi
20126
20127 -CONFIG_FILES=\${CONFIG_FILES-"Makefile test/Makefile test/TCP/Makefile test/Ethernet/Makefile \
20128 - test/UDP/Makefile test/ICMP/Makefile test/Random/Makefile \
20129 - test/OSPF/Makefile util/Makefile util/Get-mac/Makefile example/Makefile \
20130 - libnet-config"}
20131 -EOF
20132 -cat >> $CONFIG_STATUS <<\EOF
20133 -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
20134 +_ACEOF
20135 +
20136 +cat >>$CONFIG_STATUS <<_ACEOF
20137 +#
20138 +# INIT-COMMANDS section.
20139 +#
20140 +
20141 +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20142 +
20143 +_ACEOF
20144 +
20145 +
20146 +
20147 +cat >>$CONFIG_STATUS <<\_ACEOF
20148 +for ac_config_target in $ac_config_targets
20149 +do
20150 + case "$ac_config_target" in
20151 + # Handling of arguments.
20152 + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20153 + "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20154 + "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20155 + "include/libnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/libnet/Makefile" ;;
20156 + "libnet-config" ) CONFIG_FILES="$CONFIG_FILES libnet-config" ;;
20157 + "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20158 + "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20159 + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20160 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20161 + { (exit 1); exit 1; }; };;
20162 + esac
20163 +done
20164 +
20165 +# If the user did not use the arguments to specify the items to instantiate,
20166 +# then the envvar interface is used. Set only those that are not.
20167 +# We use the long form for the default assignment because of an extremely
20168 +# bizarre bug on SunOS 4.1.3.
20169 +if $ac_need_defaults; then
20170 + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20171 + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20172 + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20173 +fi
20174 +
20175 +# Have a temporary directory for convenience. Make it in the build tree
20176 +# simply because there is no reason to put it here, and in addition,
20177 +# creating and moving files from /tmp can sometimes cause problems.
20178 +# Create a temporary directory, and hook for its removal unless debugging.
20179 +$debug ||
20180 +{
20181 + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20182 + trap '{ (exit 1); exit 1; }' 1 2 13 15
20183 +}
20184 +
20185 +# Create a (secure) tmp directory for tmp files.
20186 +
20187 +{
20188 + tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20189 + test -n "$tmp" && test -d "$tmp"
20190 +} ||
20191 +{
20192 + tmp=./confstat$$-$RANDOM
20193 + (umask 077 && mkdir $tmp)
20194 +} ||
20195 +{
20196 + echo "$me: cannot create a temporary directory in ." >&2
20197 + { (exit 1); exit 1; }
20198 +}
20199 +
20200 +_ACEOF
20201 +
20202 +cat >>$CONFIG_STATUS <<_ACEOF
20203 +
20204 +#
20205 +# CONFIG_FILES section.
20206 +#
20207 +
20208 +# No need to generate the scripts if there are no CONFIG_FILES.
20209 +# This happens for instance when ./config.status config.h
20210 +if test -n "\$CONFIG_FILES"; then
20211 + # Protect against being on the right side of a sed subst in config.status.
20212 + sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20213 + s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20214 +s,@SHELL@,$SHELL,;t t
20215 +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20216 +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20217 +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20218 +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20219 +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20220 +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20221 +s,@exec_prefix@,$exec_prefix,;t t
20222 +s,@prefix@,$prefix,;t t
20223 +s,@program_transform_name@,$program_transform_name,;t t
20224 +s,@bindir@,$bindir,;t t
20225 +s,@sbindir@,$sbindir,;t t
20226 +s,@libexecdir@,$libexecdir,;t t
20227 +s,@datadir@,$datadir,;t t
20228 +s,@sysconfdir@,$sysconfdir,;t t
20229 +s,@sharedstatedir@,$sharedstatedir,;t t
20230 +s,@localstatedir@,$localstatedir,;t t
20231 +s,@libdir@,$libdir,;t t
20232 +s,@includedir@,$includedir,;t t
20233 +s,@oldincludedir@,$oldincludedir,;t t
20234 +s,@infodir@,$infodir,;t t
20235 +s,@mandir@,$mandir,;t t
20236 +s,@build_alias@,$build_alias,;t t
20237 +s,@host_alias@,$host_alias,;t t
20238 +s,@target_alias@,$target_alias,;t t
20239 +s,@DEFS@,$DEFS,;t t
20240 +s,@ECHO_C@,$ECHO_C,;t t
20241 +s,@ECHO_N@,$ECHO_N,;t t
20242 +s,@ECHO_T@,$ECHO_T,;t t
20243 +s,@LIBS@,$LIBS,;t t
20244 +s,@build@,$build,;t t
20245 +s,@build_cpu@,$build_cpu,;t t
20246 +s,@build_vendor@,$build_vendor,;t t
20247 +s,@build_os@,$build_os,;t t
20248 +s,@host@,$host,;t t
20249 +s,@host_cpu@,$host_cpu,;t t
20250 +s,@host_vendor@,$host_vendor,;t t
20251 +s,@host_os@,$host_os,;t t
20252 +s,@target@,$target,;t t
20253 +s,@target_cpu@,$target_cpu,;t t
20254 +s,@target_vendor@,$target_vendor,;t t
20255 +s,@target_os@,$target_os,;t t
20256 +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20257 +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20258 +s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20259 +s,@CYGPATH_W@,$CYGPATH_W,;t t
20260 +s,@PACKAGE@,$PACKAGE,;t t
20261 +s,@VERSION@,$VERSION,;t t
20262 +s,@ACLOCAL@,$ACLOCAL,;t t
20263 +s,@AUTOCONF@,$AUTOCONF,;t t
20264 +s,@AUTOMAKE@,$AUTOMAKE,;t t
20265 +s,@AUTOHEADER@,$AUTOHEADER,;t t
20266 +s,@MAKEINFO@,$MAKEINFO,;t t
20267 +s,@AMTAR@,$AMTAR,;t t
20268 +s,@install_sh@,$install_sh,;t t
20269 +s,@STRIP@,$STRIP,;t t
20270 +s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20271 +s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20272 +s,@mkdir_p@,$mkdir_p,;t t
20273 +s,@AWK@,$AWK,;t t
20274 +s,@SET_MAKE@,$SET_MAKE,;t t
20275 +s,@am__leading_dot@,$am__leading_dot,;t t
20276 +s,@LL_INT_TYPE_UC@,$LL_INT_TYPE_UC,;t t
20277 +s,@LL_INT_TYPE@,$LL_INT_TYPE,;t t
20278 +s,@LIB_PREFIX@,$LIB_PREFIX,;t t
20279 +s,@INC_PREFIX@,$INC_PREFIX,;t t
20280 +s,@MAN_PREFIX@,$MAN_PREFIX,;t t
20281 +s,@BIN_PREFIX@,$BIN_PREFIX,;t t
20282 +s,@RANLIB@,$RANLIB,;t t
20283 +s,@AR@,$AR,;t t
20284 +s,@LN@,$LN,;t t
20285 +s,@ADDITIONAL_LIBS@,$ADDITIONAL_LIBS,;t t
20286 +s,@LIBNET_CONFIG_DEFINES@,$LIBNET_CONFIG_DEFINES,;t t
20287 +s,@LIBNET_CONFIG_LIBS@,$LIBNET_CONFIG_LIBS,;t t
20288 +s,@LIBNET_CONFIG_CFLAGS@,$LIBNET_CONFIG_CFLAGS,;t t
20289 +s,@CC@,$CC,;t t
20290 +s,@CFLAGS@,$CFLAGS,;t t
20291 +s,@LDFLAGS@,$LDFLAGS,;t t
20292 +s,@CPPFLAGS@,$CPPFLAGS,;t t
20293 +s,@ac_ct_CC@,$ac_ct_CC,;t t
20294 +s,@EXEEXT@,$EXEEXT,;t t
20295 +s,@OBJEXT@,$OBJEXT,;t t
20296 +s,@DEPDIR@,$DEPDIR,;t t
20297 +s,@am__include@,$am__include,;t t
20298 +s,@am__quote@,$am__quote,;t t
20299 +s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20300 +s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20301 +s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20302 +s,@CCDEPMODE@,$CCDEPMODE,;t t
20303 +s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20304 +s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20305 +s,@LN_S@,$LN_S,;t t
20306 +s,@ECHO@,$ECHO,;t t
20307 +s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20308 +s,@CPP@,$CPP,;t t
20309 +s,@EGREP@,$EGREP,;t t
20310 +s,@LIBTOOL@,$LIBTOOL,;t t
20311 +s,@LIBOBJS@,$LIBOBJS,;t t
20312 +s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20313 +CEOF
20314 +
20315 +_ACEOF
20316 +
20317 + cat >>$CONFIG_STATUS <<\_ACEOF
20318 + # Split the substitutions into bite-sized pieces for seds with
20319 + # small command number limits, like on Digital OSF/1 and HP-UX.
20320 + ac_max_sed_lines=48
20321 + ac_sed_frag=1 # Number of current file.
20322 + ac_beg=1 # First line for current file.
20323 + ac_end=$ac_max_sed_lines # Line after last line for current file.
20324 + ac_more_lines=:
20325 + ac_sed_cmds=
20326 + while $ac_more_lines; do
20327 + if test $ac_beg -gt 1; then
20328 + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20329 + else
20330 + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20331 + fi
20332 + if test ! -s $tmp/subs.frag; then
20333 + ac_more_lines=false
20334 + else
20335 + # The purpose of the label and of the branching condition is to
20336 + # speed up the sed processing (if there are no `@' at all, there
20337 + # is no need to browse any of the substitutions).
20338 + # These are the two extra sed commands mentioned above.
20339 + (echo ':t
20340 + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20341 + if test -z "$ac_sed_cmds"; then
20342 + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20343 + else
20344 + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20345 + fi
20346 + ac_sed_frag=`expr $ac_sed_frag + 1`
20347 + ac_beg=$ac_end
20348 + ac_end=`expr $ac_end + $ac_max_sed_lines`
20349 + fi
20350 + done
20351 + if test -z "$ac_sed_cmds"; then
20352 + ac_sed_cmds=cat
20353 + fi
20354 +fi # test -n "$CONFIG_FILES"
20355 +
20356 +_ACEOF
20357 +cat >>$CONFIG_STATUS <<\_ACEOF
20358 +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20359 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20360 - case "$ac_file" in
20361 - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20362 - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20363 - *) ac_file_in="${ac_file}.in" ;;
20364 - esac
20365 -
20366 - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
20367 -
20368 - # Remove last slash and all that follows it. Not all systems have dirname.
20369 - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20370 - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20371 - # The file is in a subdirectory.
20372 - test ! -d "$ac_dir" && mkdir "$ac_dir"
20373 - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
20374 - # A "../" for each directory in $ac_dir_suffix.
20375 - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
20376 - else
20377 - ac_dir_suffix= ac_dots=
20378 - fi
20379 -
20380 - case "$ac_given_srcdir" in
20381 - .) srcdir=.
20382 - if test -z "$ac_dots"; then top_srcdir=.
20383 - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
20384 - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
20385 + case $ac_file in
20386 + - | *:- | *:-:* ) # input from stdin
20387 + cat >$tmp/stdin
20388 + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20389 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20390 + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20391 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20392 + * ) ac_file_in=$ac_file.in ;;
20393 + esac
20394 +
20395 + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20396 + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20397 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20398 + X"$ac_file" : 'X\(//\)[^/]' \| \
20399 + X"$ac_file" : 'X\(//\)$' \| \
20400 + X"$ac_file" : 'X\(/\)' \| \
20401 + . : '\(.\)' 2>/dev/null ||
20402 +echo X"$ac_file" |
20403 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20404 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20405 + /^X\(\/\/\)$/{ s//\1/; q; }
20406 + /^X\(\/\).*/{ s//\1/; q; }
20407 + s/.*/./; q'`
20408 + { if $as_mkdir_p; then
20409 + mkdir -p "$ac_dir"
20410 + else
20411 + as_dir="$ac_dir"
20412 + as_dirs=
20413 + while test ! -d "$as_dir"; do
20414 + as_dirs="$as_dir $as_dirs"
20415 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
20416 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20417 + X"$as_dir" : 'X\(//\)[^/]' \| \
20418 + X"$as_dir" : 'X\(//\)$' \| \
20419 + X"$as_dir" : 'X\(/\)' \| \
20420 + . : '\(.\)' 2>/dev/null ||
20421 +echo X"$as_dir" |
20422 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20423 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20424 + /^X\(\/\/\)$/{ s//\1/; q; }
20425 + /^X\(\/\).*/{ s//\1/; q; }
20426 + s/.*/./; q'`
20427 + done
20428 + test ! -n "$as_dirs" || mkdir $as_dirs
20429 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20430 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20431 + { (exit 1); exit 1; }; }; }
20432 +
20433 + ac_builddir=.
20434 +
20435 +if test "$ac_dir" != .; then
20436 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20437 + # A "../" for each directory in $ac_dir_suffix.
20438 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20439 +else
20440 + ac_dir_suffix= ac_top_builddir=
20441 +fi
20442 +
20443 +case $srcdir in
20444 + .) # No --srcdir option. We are building in place.
20445 + ac_srcdir=.
20446 + if test -z "$ac_top_builddir"; then
20447 + ac_top_srcdir=.
20448 + else
20449 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20450 + fi ;;
20451 + [\\/]* | ?:[\\/]* ) # Absolute path.
20452 + ac_srcdir=$srcdir$ac_dir_suffix;
20453 + ac_top_srcdir=$srcdir ;;
20454 *) # Relative path.
20455 - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
20456 - top_srcdir="$ac_dots$ac_given_srcdir" ;;
20457 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20458 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
20459 +esac
20460 +
20461 +# Do not use `cd foo && pwd` to compute absolute paths, because
20462 +# the directories may not exist.
20463 +case `pwd` in
20464 +.) ac_abs_builddir="$ac_dir";;
20465 +*)
20466 + case "$ac_dir" in
20467 + .) ac_abs_builddir=`pwd`;;
20468 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20469 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
20470 + esac;;
20471 +esac
20472 +case $ac_abs_builddir in
20473 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
20474 +*)
20475 + case ${ac_top_builddir}. in
20476 + .) ac_abs_top_builddir=$ac_abs_builddir;;
20477 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20478 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20479 + esac;;
20480 +esac
20481 +case $ac_abs_builddir in
20482 +.) ac_abs_srcdir=$ac_srcdir;;
20483 +*)
20484 + case $ac_srcdir in
20485 + .) ac_abs_srcdir=$ac_abs_builddir;;
20486 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20487 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20488 + esac;;
20489 +esac
20490 +case $ac_abs_builddir in
20491 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
20492 +*)
20493 + case $ac_top_srcdir in
20494 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
20495 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20496 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20497 + esac;;
20498 +esac
20499 +
20500 +
20501 + case $INSTALL in
20502 + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20503 + *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20504 esac
20505
20506 - case "$ac_given_INSTALL" in
20507 - [/$]*) INSTALL="$ac_given_INSTALL" ;;
20508 - *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
20509 - esac
20510 -
20511 - echo creating "$ac_file"
20512 - rm -f "$ac_file"
20513 - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
20514 - case "$ac_file" in
20515 - *Makefile*) ac_comsub="1i\\
20516 -# $configure_input" ;;
20517 - *) ac_comsub= ;;
20518 - esac
20519 -
20520 - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20521 - sed -e "$ac_comsub
20522 -s%@configure_input@%$configure_input%g
20523 -s%@srcdir@%$srcdir%g
20524 -s%@top_srcdir@%$top_srcdir%g
20525 -s%@INSTALL@%$INSTALL%g
20526 -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
20527 -fi; done
20528 -rm -f conftest.s*
20529 + # Let's still pretend it is `configure' which instantiates (i.e., don't
20530 + # use $as_me), people would be surprised to read:
20531 + # /* config.h. Generated by config.status. */
20532 + if test x"$ac_file" = x-; then
20533 + configure_input=
20534 + else
20535 + configure_input="$ac_file. "
20536 + fi
20537 + configure_input=$configure_input"Generated from `echo $ac_file_in |
20538 + sed 's,.*/,,'` by configure."
20539 +
20540 + # First look for the input files in the build tree, otherwise in the
20541 + # src tree.
20542 + ac_file_inputs=`IFS=:
20543 + for f in $ac_file_in; do
20544 + case $f in
20545 + -) echo $tmp/stdin ;;
20546 + [\\/$]*)
20547 + # Absolute (can't be DOS-style, as IFS=:)
20548 + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20549 +echo "$as_me: error: cannot find input file: $f" >&2;}
20550 + { (exit 1); exit 1; }; }
20551 + echo "$f";;
20552 + *) # Relative
20553 + if test -f "$f"; then
20554 + # Build tree
20555 + echo "$f"
20556 + elif test -f "$srcdir/$f"; then
20557 + # Source tree
20558 + echo "$srcdir/$f"
20559 + else
20560 + # /dev/null tree
20561 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20562 +echo "$as_me: error: cannot find input file: $f" >&2;}
20563 + { (exit 1); exit 1; }; }
20564 + fi;;
20565 + esac
20566 + done` || { (exit 1); exit 1; }
20567 +
20568 + if test x"$ac_file" != x-; then
20569 + { echo "$as_me:$LINENO: creating $ac_file" >&5
20570 +echo "$as_me: creating $ac_file" >&6;}
20571 + rm -f "$ac_file"
20572 + fi
20573 +_ACEOF
20574 +cat >>$CONFIG_STATUS <<_ACEOF
20575 + sed "$ac_vpsub
20576 +$extrasub
20577 +_ACEOF
20578 +cat >>$CONFIG_STATUS <<\_ACEOF
20579 +:t
20580 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20581 +s,@configure_input@,$configure_input,;t t
20582 +s,@srcdir@,$ac_srcdir,;t t
20583 +s,@abs_srcdir@,$ac_abs_srcdir,;t t
20584 +s,@top_srcdir@,$ac_top_srcdir,;t t
20585 +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20586 +s,@builddir@,$ac_builddir,;t t
20587 +s,@abs_builddir@,$ac_abs_builddir,;t t
20588 +s,@top_builddir@,$ac_top_builddir,;t t
20589 +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20590 +s,@INSTALL@,$ac_INSTALL,;t t
20591 +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20592 + rm -f $tmp/stdin
20593 + if test x"$ac_file" != x-; then
20594 + mv $tmp/out $ac_file
20595 + else
20596 + cat $tmp/out
20597 + rm -f $tmp/out
20598 + fi
20599 +
20600 +done
20601 +_ACEOF
20602 +cat >>$CONFIG_STATUS <<\_ACEOF
20603 +
20604 +#
20605 +# CONFIG_HEADER section.
20606 +#
20607
20608 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20609 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20610 #
20611 # ac_d sets the value in "#define NAME VALUE" lines.
20612 -ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20613 -ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
20614 -ac_dC='\3'
20615 -ac_dD='%g'
20616 -# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20617 -ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20618 -ac_uB='\([ ]\)%\1#\2define\3'
20619 +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20620 +ac_dB='[ ].*$,\1#\2'
20621 +ac_dC=' '
20622 +ac_dD=',;t'
20623 +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20624 +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20625 +ac_uB='$,\1#\2define\3'
20626 ac_uC=' '
20627 -ac_uD='\4%g'
20628 -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20629 -ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20630 -ac_eB='$%\1#\2define\3'
20631 -ac_eC=' '
20632 -ac_eD='%g'
20633 +ac_uD=',;t'
20634
20635 -if test "${CONFIG_HEADERS+set}" != set; then
20636 -EOF
20637 -cat >> $CONFIG_STATUS <<EOF
20638 - CONFIG_HEADERS="include/config.h"
20639 -EOF
20640 -cat >> $CONFIG_STATUS <<\EOF
20641 -fi
20642 -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
20643 +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20644 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20645 - case "$ac_file" in
20646 - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20647 - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20648 - *) ac_file_in="${ac_file}.in" ;;
20649 + case $ac_file in
20650 + - | *:- | *:-:* ) # input from stdin
20651 + cat >$tmp/stdin
20652 + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20653 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20654 + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20655 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20656 + * ) ac_file_in=$ac_file.in ;;
20657 esac
20658
20659 - echo creating $ac_file
20660 -
20661 - rm -f conftest.frag conftest.in conftest.out
20662 - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20663 - cat $ac_file_inputs > conftest.in
20664 -
20665 -EOF
20666 + test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20667 +echo "$as_me: creating $ac_file" >&6;}
20668
20669 -# Transform confdefs.h into a sed script conftest.vals that substitutes
20670 -# the proper values into config.h.in to produce config.h. And first:
20671 -# Protect against being on the right side of a sed subst in config.status.
20672 -# Protect against being in an unquoted here document in config.status.
20673 -rm -f conftest.vals
20674 -cat > conftest.hdr <<\EOF
20675 -s/[\\&%]/\\&/g
20676 -s%[\\$`]%\\&%g
20677 -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
20678 -s%ac_d%ac_u%gp
20679 -s%ac_u%ac_e%gp
20680 -EOF
20681 -sed -n -f conftest.hdr confdefs.h > conftest.vals
20682 -rm -f conftest.hdr
20683 + # First look for the input files in the build tree, otherwise in the
20684 + # src tree.
20685 + ac_file_inputs=`IFS=:
20686 + for f in $ac_file_in; do
20687 + case $f in
20688 + -) echo $tmp/stdin ;;
20689 + [\\/$]*)
20690 + # Absolute (can't be DOS-style, as IFS=:)
20691 + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20692 +echo "$as_me: error: cannot find input file: $f" >&2;}
20693 + { (exit 1); exit 1; }; }
20694 + # Do quote $f, to prevent DOS paths from being IFS'd.
20695 + echo "$f";;
20696 + *) # Relative
20697 + if test -f "$f"; then
20698 + # Build tree
20699 + echo "$f"
20700 + elif test -f "$srcdir/$f"; then
20701 + # Source tree
20702 + echo "$srcdir/$f"
20703 + else
20704 + # /dev/null tree
20705 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20706 +echo "$as_me: error: cannot find input file: $f" >&2;}
20707 + { (exit 1); exit 1; }; }
20708 + fi;;
20709 + esac
20710 + done` || { (exit 1); exit 1; }
20711 + # Remove the trailing spaces.
20712 + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20713 +
20714 +_ACEOF
20715 +
20716 +# Transform confdefs.h into two sed scripts, `conftest.defines' and
20717 +# `conftest.undefs', that substitutes the proper values into
20718 +# config.h.in to produce config.h. The first handles `#define'
20719 +# templates, and the second `#undef' templates.
20720 +# And first: Protect against being on the right side of a sed subst in
20721 +# config.status. Protect against being in an unquoted here document
20722 +# in config.status.
20723 +rm -f conftest.defines conftest.undefs
20724 +# Using a here document instead of a string reduces the quoting nightmare.
20725 +# Putting comments in sed scripts is not portable.
20726 +#
20727 +# `end' is used to avoid that the second main sed command (meant for
20728 +# 0-ary CPP macros) applies to n-ary macro definitions.
20729 +# See the Autoconf documentation for `clear'.
20730 +cat >confdef2sed.sed <<\_ACEOF
20731 +s/[\\&,]/\\&/g
20732 +s,[\\$`],\\&,g
20733 +t clear
20734 +: clear
20735 +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20736 +t end
20737 +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20738 +: end
20739 +_ACEOF
20740 +# If some macros were called several times there might be several times
20741 +# the same #defines, which is useless. Nevertheless, we may not want to
20742 +# sort them, since we want the *last* AC-DEFINE to be honored.
20743 +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20744 +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20745 +rm -f confdef2sed.sed
20746
20747 # This sed command replaces #undef with comments. This is necessary, for
20748 # example, in the case of _POSIX_SOURCE, which is predefined and required
20749 # on some systems where configure will not decide to define it.
20750 -cat >> conftest.vals <<\EOF
20751 -s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
20752 -EOF
20753 -
20754 -# Break up conftest.vals because some shells have a limit on
20755 -# the size of here documents, and old seds have small limits too.
20756 -
20757 +cat >>conftest.undefs <<\_ACEOF
20758 +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20759 +_ACEOF
20760 +
20761 +# Break up conftest.defines because some shells have a limit on the size
20762 +# of here documents, and old seds have small limits too (100 cmds).
20763 +echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20764 +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20765 +echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20766 +echo ' :' >>$CONFIG_STATUS
20767 +rm -f conftest.tail
20768 +while grep . conftest.defines >/dev/null
20769 +do
20770 + # Write a limited-size here document to $tmp/defines.sed.
20771 + echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20772 + # Speed up: don't consider the non `#define' lines.
20773 + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20774 + # Work around the forget-to-reset-the-flag bug.
20775 + echo 't clr' >>$CONFIG_STATUS
20776 + echo ': clr' >>$CONFIG_STATUS
20777 + sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20778 + echo 'CEOF
20779 + sed -f $tmp/defines.sed $tmp/in >$tmp/out
20780 + rm -f $tmp/in
20781 + mv $tmp/out $tmp/in
20782 +' >>$CONFIG_STATUS
20783 + sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20784 + rm -f conftest.defines
20785 + mv conftest.tail conftest.defines
20786 +done
20787 +rm -f conftest.defines
20788 +echo ' fi # grep' >>$CONFIG_STATUS
20789 +echo >>$CONFIG_STATUS
20790 +
20791 +# Break up conftest.undefs because some shells have a limit on the size
20792 +# of here documents, and old seds have small limits too (100 cmds).
20793 +echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20794 rm -f conftest.tail
20795 -while :
20796 +while grep . conftest.undefs >/dev/null
20797 do
20798 - ac_lines=`grep -c . conftest.vals`
20799 - # grep -c gives empty output for an empty file on some AIX systems.
20800 - if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
20801 - # Write a limited-size here document to conftest.frag.
20802 - echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
20803 - sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
20804 + # Write a limited-size here document to $tmp/undefs.sed.
20805 + echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20806 + # Speed up: don't consider the non `#undef'
20807 + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20808 + # Work around the forget-to-reset-the-flag bug.
20809 + echo 't clr' >>$CONFIG_STATUS
20810 + echo ': clr' >>$CONFIG_STATUS
20811 + sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20812 echo 'CEOF
20813 - sed -f conftest.frag conftest.in > conftest.out
20814 - rm -f conftest.in
20815 - mv conftest.out conftest.in
20816 -' >> $CONFIG_STATUS
20817 - sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
20818 - rm -f conftest.vals
20819 - mv conftest.tail conftest.vals
20820 -done
20821 -rm -f conftest.vals
20822 -
20823 -cat >> $CONFIG_STATUS <<\EOF
20824 - rm -f conftest.frag conftest.h
20825 - echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
20826 - cat conftest.in >> conftest.h
20827 - rm -f conftest.in
20828 - if cmp -s $ac_file conftest.h 2>/dev/null; then
20829 - echo "$ac_file is unchanged"
20830 - rm -f conftest.h
20831 - else
20832 - # Remove last slash and all that follows it. Not all systems have dirname.
20833 - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20834 - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20835 - # The file is in a subdirectory.
20836 - test ! -d "$ac_dir" && mkdir "$ac_dir"
20837 + sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20838 + rm -f $tmp/in
20839 + mv $tmp/out $tmp/in
20840 +' >>$CONFIG_STATUS
20841 + sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20842 + rm -f conftest.undefs
20843 + mv conftest.tail conftest.undefs
20844 +done
20845 +rm -f conftest.undefs
20846 +
20847 +cat >>$CONFIG_STATUS <<\_ACEOF
20848 + # Let's still pretend it is `configure' which instantiates (i.e., don't
20849 + # use $as_me), people would be surprised to read:
20850 + # /* config.h. Generated by config.status. */
20851 + if test x"$ac_file" = x-; then
20852 + echo "/* Generated by configure. */" >$tmp/config.h
20853 + else
20854 + echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20855 + fi
20856 + cat $tmp/in >>$tmp/config.h
20857 + rm -f $tmp/in
20858 + if test x"$ac_file" != x-; then
20859 + if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20860 + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20861 +echo "$as_me: $ac_file is unchanged" >&6;}
20862 + else
20863 + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20864 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20865 + X"$ac_file" : 'X\(//\)[^/]' \| \
20866 + X"$ac_file" : 'X\(//\)$' \| \
20867 + X"$ac_file" : 'X\(/\)' \| \
20868 + . : '\(.\)' 2>/dev/null ||
20869 +echo X"$ac_file" |
20870 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20871 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20872 + /^X\(\/\/\)$/{ s//\1/; q; }
20873 + /^X\(\/\).*/{ s//\1/; q; }
20874 + s/.*/./; q'`
20875 + { if $as_mkdir_p; then
20876 + mkdir -p "$ac_dir"
20877 + else
20878 + as_dir="$ac_dir"
20879 + as_dirs=
20880 + while test ! -d "$as_dir"; do
20881 + as_dirs="$as_dir $as_dirs"
20882 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
20883 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20884 + X"$as_dir" : 'X\(//\)[^/]' \| \
20885 + X"$as_dir" : 'X\(//\)$' \| \
20886 + X"$as_dir" : 'X\(/\)' \| \
20887 + . : '\(.\)' 2>/dev/null ||
20888 +echo X"$as_dir" |
20889 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20890 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20891 + /^X\(\/\/\)$/{ s//\1/; q; }
20892 + /^X\(\/\).*/{ s//\1/; q; }
20893 + s/.*/./; q'`
20894 + done
20895 + test ! -n "$as_dirs" || mkdir $as_dirs
20896 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20897 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20898 + { (exit 1); exit 1; }; }; }
20899 +
20900 + rm -f $ac_file
20901 + mv $tmp/config.h $ac_file
20902 fi
20903 - rm -f $ac_file
20904 - mv conftest.h $ac_file
20905 + else
20906 + cat $tmp/config.h
20907 + rm -f $tmp/config.h
20908 fi
20909 -fi; done
20910 +# Compute $ac_file's index in $config_headers.
20911 +_am_stamp_count=1
20912 +for _am_header in $config_headers :; do
20913 + case $_am_header in
20914 + $ac_file | $ac_file:* )
20915 + break ;;
20916 + * )
20917 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20918 + esac
20919 +done
20920 +echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20921 +$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20922 + X$ac_file : 'X\(//\)[^/]' \| \
20923 + X$ac_file : 'X\(//\)$' \| \
20924 + X$ac_file : 'X\(/\)' \| \
20925 + . : '\(.\)' 2>/dev/null ||
20926 +echo X$ac_file |
20927 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20928 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20929 + /^X\(\/\/\)$/{ s//\1/; q; }
20930 + /^X\(\/\).*/{ s//\1/; q; }
20931 + s/.*/./; q'`/stamp-h$_am_stamp_count
20932 +done
20933 +_ACEOF
20934 +cat >>$CONFIG_STATUS <<\_ACEOF
20935
20936 -EOF
20937 -cat >> $CONFIG_STATUS <<EOF
20938 +#
20939 +# CONFIG_COMMANDS section.
20940 +#
20941 +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20942 + ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20943 + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20944 + ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20945 +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20946 + X"$ac_dest" : 'X\(//\)[^/]' \| \
20947 + X"$ac_dest" : 'X\(//\)$' \| \
20948 + X"$ac_dest" : 'X\(/\)' \| \
20949 + . : '\(.\)' 2>/dev/null ||
20950 +echo X"$ac_dest" |
20951 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20952 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20953 + /^X\(\/\/\)$/{ s//\1/; q; }
20954 + /^X\(\/\).*/{ s//\1/; q; }
20955 + s/.*/./; q'`
20956 + { if $as_mkdir_p; then
20957 + mkdir -p "$ac_dir"
20958 + else
20959 + as_dir="$ac_dir"
20960 + as_dirs=
20961 + while test ! -d "$as_dir"; do
20962 + as_dirs="$as_dir $as_dirs"
20963 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
20964 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20965 + X"$as_dir" : 'X\(//\)[^/]' \| \
20966 + X"$as_dir" : 'X\(//\)$' \| \
20967 + X"$as_dir" : 'X\(/\)' \| \
20968 + . : '\(.\)' 2>/dev/null ||
20969 +echo X"$as_dir" |
20970 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20971 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20972 + /^X\(\/\/\)$/{ s//\1/; q; }
20973 + /^X\(\/\).*/{ s//\1/; q; }
20974 + s/.*/./; q'`
20975 + done
20976 + test ! -n "$as_dirs" || mkdir $as_dirs
20977 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20978 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20979 + { (exit 1); exit 1; }; }; }
20980 +
20981 + ac_builddir=.
20982 +
20983 +if test "$ac_dir" != .; then
20984 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20985 + # A "../" for each directory in $ac_dir_suffix.
20986 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20987 +else
20988 + ac_dir_suffix= ac_top_builddir=
20989 +fi
20990 +
20991 +case $srcdir in
20992 + .) # No --srcdir option. We are building in place.
20993 + ac_srcdir=.
20994 + if test -z "$ac_top_builddir"; then
20995 + ac_top_srcdir=.
20996 + else
20997 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20998 + fi ;;
20999 + [\\/]* | ?:[\\/]* ) # Absolute path.
21000 + ac_srcdir=$srcdir$ac_dir_suffix;
21001 + ac_top_srcdir=$srcdir ;;
21002 + *) # Relative path.
21003 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21004 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
21005 +esac
21006
21007 -EOF
21008 -cat >> $CONFIG_STATUS <<\EOF
21009 -chmod +x libnet-config
21010 -exit 0
21011 -EOF
21012 +# Do not use `cd foo && pwd` to compute absolute paths, because
21013 +# the directories may not exist.
21014 +case `pwd` in
21015 +.) ac_abs_builddir="$ac_dir";;
21016 +*)
21017 + case "$ac_dir" in
21018 + .) ac_abs_builddir=`pwd`;;
21019 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21020 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
21021 + esac;;
21022 +esac
21023 +case $ac_abs_builddir in
21024 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
21025 +*)
21026 + case ${ac_top_builddir}. in
21027 + .) ac_abs_top_builddir=$ac_abs_builddir;;
21028 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21029 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21030 + esac;;
21031 +esac
21032 +case $ac_abs_builddir in
21033 +.) ac_abs_srcdir=$ac_srcdir;;
21034 +*)
21035 + case $ac_srcdir in
21036 + .) ac_abs_srcdir=$ac_abs_builddir;;
21037 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21038 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21039 + esac;;
21040 +esac
21041 +case $ac_abs_builddir in
21042 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
21043 +*)
21044 + case $ac_top_srcdir in
21045 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
21046 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21047 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21048 + esac;;
21049 +esac
21050 +
21051 +
21052 + { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21053 +echo "$as_me: executing $ac_dest commands" >&6;}
21054 + case $ac_dest in
21055 + depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21056 + # Strip MF so we end up with the name of the file.
21057 + mf=`echo "$mf" | sed -e 's/:.*$//'`
21058 + # Check whether this is an Automake generated Makefile or not.
21059 + # We used to match only the files named `Makefile.in', but
21060 + # some people rename them; so instead we look at the file content.
21061 + # Grep'ing the first line is not enough: some people post-process
21062 + # each Makefile.in and add a new line on top of each file to say so.
21063 + # So let's grep whole file.
21064 + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21065 + dirpart=`(dirname "$mf") 2>/dev/null ||
21066 +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21067 + X"$mf" : 'X\(//\)[^/]' \| \
21068 + X"$mf" : 'X\(//\)$' \| \
21069 + X"$mf" : 'X\(/\)' \| \
21070 + . : '\(.\)' 2>/dev/null ||
21071 +echo X"$mf" |
21072 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21073 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21074 + /^X\(\/\/\)$/{ s//\1/; q; }
21075 + /^X\(\/\).*/{ s//\1/; q; }
21076 + s/.*/./; q'`
21077 + else
21078 + continue
21079 + fi
21080 + grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21081 + # Extract the definition of DEP_FILES from the Makefile without
21082 + # running `make'.
21083 + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21084 + test -z "$DEPDIR" && continue
21085 + # When using ansi2knr, U may be empty or an underscore; expand it
21086 + U=`sed -n 's/^U = //p' < "$mf"`
21087 + test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21088 + # We invoke sed twice because it is the simplest approach to
21089 + # changing $(DEPDIR) to its actual value in the expansion.
21090 + for file in `sed -n '
21091 + /^DEP_FILES = .*\\\\$/ {
21092 + s/^DEP_FILES = //
21093 + :loop
21094 + s/\\\\$//
21095 + p
21096 + n
21097 + /\\\\$/ b loop
21098 + p
21099 + }
21100 + /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21101 + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21102 + # Make sure the directory exists.
21103 + test -f "$dirpart/$file" && continue
21104 + fdir=`(dirname "$file") 2>/dev/null ||
21105 +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21106 + X"$file" : 'X\(//\)[^/]' \| \
21107 + X"$file" : 'X\(//\)$' \| \
21108 + X"$file" : 'X\(/\)' \| \
21109 + . : '\(.\)' 2>/dev/null ||
21110 +echo X"$file" |
21111 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21112 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21113 + /^X\(\/\/\)$/{ s//\1/; q; }
21114 + /^X\(\/\).*/{ s//\1/; q; }
21115 + s/.*/./; q'`
21116 + { if $as_mkdir_p; then
21117 + mkdir -p $dirpart/$fdir
21118 + else
21119 + as_dir=$dirpart/$fdir
21120 + as_dirs=
21121 + while test ! -d "$as_dir"; do
21122 + as_dirs="$as_dir $as_dirs"
21123 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
21124 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21125 + X"$as_dir" : 'X\(//\)[^/]' \| \
21126 + X"$as_dir" : 'X\(//\)$' \| \
21127 + X"$as_dir" : 'X\(/\)' \| \
21128 + . : '\(.\)' 2>/dev/null ||
21129 +echo X"$as_dir" |
21130 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21131 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21132 + /^X\(\/\/\)$/{ s//\1/; q; }
21133 + /^X\(\/\).*/{ s//\1/; q; }
21134 + s/.*/./; q'`
21135 + done
21136 + test ! -n "$as_dirs" || mkdir $as_dirs
21137 + fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21138 +echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21139 + { (exit 1); exit 1; }; }; }
21140 +
21141 + # echo "creating $dirpart/$file"
21142 + echo '# dummy' > "$dirpart/$file"
21143 + done
21144 +done
21145 + ;;
21146 + esac
21147 +done
21148 +_ACEOF
21149 +
21150 +cat >>$CONFIG_STATUS <<\_ACEOF
21151 +
21152 +{ (exit 0); exit 0; }
21153 +_ACEOF
21154 chmod +x $CONFIG_STATUS
21155 -rm -fr confdefs* $ac_clean_files
21156 -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
21157 +ac_clean_files=$ac_clean_files_save
21158 +
21159 +
21160 +# configure is writing to config.log, and then calls config.status.
21161 +# config.status does its own redirection, appending to config.log.
21162 +# Unfortunately, on DOS this fails, as config.log is still kept open
21163 +# by configure, so config.status won't be able to write to it; its
21164 +# output is simply discarded. So we exec the FD to /dev/null,
21165 +# effectively closing config.log, so it can be properly (re)opened and
21166 +# appended to by config.status. When coming back to configure, we
21167 +# need to make the FD available again.
21168 +if test "$no_create" != yes; then
21169 + ac_cs_success=:
21170 + ac_config_status_args=
21171 + test "$silent" = yes &&
21172 + ac_config_status_args="$ac_config_status_args --quiet"
21173 + exec 5>/dev/null
21174 + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21175 + exec 5>>config.log
21176 + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21177 + # would make configure fail if this is the last instruction.
21178 + $ac_cs_success || { (exit 1); exit 1; }
21179 +fi
21180
21181
21182 diff -ruN libnet-1.0.2a-orig/configure.in libnet-1.0.2a-7/configure.in
21183 --- libnet-1.0.2a-orig/configure.in 2001-01-17 21:59:30.000000000 +0100
21184 +++ libnet-1.0.2a-7/configure.in 2005-03-08 03:53:26.000000000 +0100
21185 @@ -8,6 +8,14 @@
21186
21187 AC_INIT(src/libnet_build_ip.c)
21188
21189 +dnl
21190 +dnl Determine hosttype and set the root install directory.
21191 +dnl
21192 +AC_CANONICAL_SYSTEM
21193 +AC_PREFIX_DEFAULT(/usr)
21194 +
21195 +AM_INIT_AUTOMAKE(libnet, 1.0.2a)
21196 +
21197 VER=`cat VERSION`
21198 AC_MSG_RESULT(Beginning autoconfiguration process for libnet-$VER...)
21199
21200 @@ -25,16 +33,14 @@
21201 AC_SUBST(LIBNET_CONFIG_LIBS)
21202 AC_SUBST(LIBNET_CONFIG_CFLAGS)
21203
21204 -dnl
21205 -dnl Determine hosttype and set the root install directory.
21206 -dnl
21207 -AC_CANONICAL_SYSTEM
21208 -AC_PREFIX_DEFAULT(/usr)
21209 -
21210 if test "$prefix" = "NONE"; then
21211 prefix="/usr"
21212 fi
21213
21214 +if test "$mandir" = "NONE"; then
21215 + mandir="$prefix/man"
21216 +fi
21217 +
21218 dnl
21219 dnl Check compiler type.
21220 dnl
21221 @@ -74,6 +80,8 @@
21222 AC_CHECK_PROGS(AR, ar, @true)
21223 AC_CHECK_PROGS(LN, ln, @true)
21224
21225 +AC_PROG_LIBTOOL
21226 +
21227 dnl
21228 dnl Check for library functions.
21229 dnl
21230 @@ -110,7 +118,7 @@
21231 AC_DEFINE(HAVE_DLPI)
21232 elif test -r /usr/include/linux/socket.h ; then
21233 LL_INT_TYPE=sockpacket
21234 - AC_MSG_RESULT(found SOCK_PACKET)
21235 + AC_MSG_RESULT(found linux primitives)
21236 if test $with_pf_packet = yes; then
21237 AC_LIBNET_CHECK_PF_PACKET
21238 fi
21239 @@ -147,7 +155,7 @@
21240 LIBNET_CONFIG_DEFINES="-D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD"
21241 AC_CHECK_HEADERS(net/ethernet.h, \
21242 LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_NET_ETHERNET_H")
21243 - MAN_PREFIX="$prefix/man/man3/"
21244 + MAN_PREFIX="$mandir/man3/"
21245 LIB_PREFIX="$prefix/lib/"
21246 INC_PREFIX="$prefix/include/"
21247 BIN_PREFIX="$prefix/bin/"
21248 @@ -258,9 +266,11 @@
21249
21250 AC_CHECK_HEADERS(sys/sockio.h)
21251 AC_CONFIG_HEADER(include/config.h)
21252 -AC_OUTPUT(Makefile test/Makefile test/TCP/Makefile test/Ethernet/Makefile \
21253 - test/UDP/Makefile test/ICMP/Makefile test/Random/Makefile \
21254 - test/OSPF/Makefile util/Makefile util/Get-mac/Makefile example/Makefile \
21255 - libnet-config, chmod +x libnet-config)
21256 +AC_OUTPUT( \
21257 + Makefile \
21258 + src/Makefile \
21259 + include/Makefile \
21260 + include/libnet/Makefile \
21261 + libnet-config)
21262
21263 dnl EOF
21264 diff -ruN libnet-1.0.2a-orig/include/Makefile.am libnet-1.0.2a-7/include/Makefile.am
21265 --- libnet-1.0.2a-orig/include/Makefile.am 1970-01-01 01:00:00.000000000 +0100
21266 +++ libnet-1.0.2a-7/include/Makefile.am 2005-03-08 03:53:26.000000000 +0100
21267 @@ -0,0 +1,5 @@
21268 +include $(top_srcdir)/Makefile.am.common
21269 +
21270 +SUBDIRS = libnet
21271 +
21272 +include_HEADERS = libnet.h
21273 diff -ruN libnet-1.0.2a-orig/include/Makefile.in libnet-1.0.2a-7/include/Makefile.in
21274 --- libnet-1.0.2a-orig/include/Makefile.in 1970-01-01 01:00:00.000000000 +0100
21275 +++ libnet-1.0.2a-7/include/Makefile.in 2005-03-08 03:53:26.000000000 +0100
21276 @@ -0,0 +1,509 @@
21277 +# Makefile.in generated by automake 1.8.5 from Makefile.am.
21278 +# @configure_input@
21279 +
21280 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
21281 +# 2003, 2004 Free Software Foundation, Inc.
21282 +# This Makefile.in is free software; the Free Software Foundation
21283 +# gives unlimited permission to copy and/or distribute it,
21284 +# with or without modifications, as long as this notice is preserved.
21285 +
21286 +# This program is distributed in the hope that it will be useful,
21287 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
21288 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
21289 +# PARTICULAR PURPOSE.
21290 +
21291 +@SET_MAKE@
21292 +
21293 +srcdir = @srcdir@
21294 +top_srcdir = @top_srcdir@
21295 +VPATH = @srcdir@
21296 +pkgdatadir = $(datadir)/@PACKAGE@
21297 +pkglibdir = $(libdir)/@PACKAGE@
21298 +pkgincludedir = $(includedir)/@PACKAGE@
21299 +top_builddir = ..
21300 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
21301 +INSTALL = @INSTALL@
21302 +install_sh_DATA = $(install_sh) -c -m 644
21303 +install_sh_PROGRAM = $(install_sh) -c
21304 +install_sh_SCRIPT = $(install_sh) -c
21305 +INSTALL_HEADER = $(INSTALL_DATA)
21306 +transform = $(program_transform_name)
21307 +NORMAL_INSTALL = :
21308 +PRE_INSTALL = :
21309 +POST_INSTALL = :
21310 +NORMAL_UNINSTALL = :
21311 +PRE_UNINSTALL = :
21312 +POST_UNINSTALL = :
21313 +build_triplet = @build@
21314 +host_triplet = @host@
21315 +target_triplet = @target@
21316 +DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \
21317 + $(srcdir)/Makefile.in $(srcdir)/config.h.in \
21318 + $(top_srcdir)/Makefile.am.common
21319 +subdir = include
21320 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
21321 +am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
21322 + $(top_srcdir)/configure.in
21323 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
21324 + $(ACLOCAL_M4)
21325 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
21326 +CONFIG_HEADER = config.h
21327 +CONFIG_CLEAN_FILES =
21328 +depcomp =
21329 +am__depfiles_maybe =
21330 +SOURCES =
21331 +DIST_SOURCES =
21332 +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
21333 + html-recursive info-recursive install-data-recursive \
21334 + install-exec-recursive install-info-recursive \
21335 + install-recursive installcheck-recursive installdirs-recursive \
21336 + pdf-recursive ps-recursive uninstall-info-recursive \
21337 + uninstall-recursive
21338 +am__installdirs = "$(DESTDIR)$(includedir)"
21339 +includeHEADERS_INSTALL = $(INSTALL_HEADER)
21340 +HEADERS = $(include_HEADERS)
21341 +ETAGS = etags
21342 +CTAGS = ctags
21343 +DIST_SUBDIRS = $(SUBDIRS)
21344 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
21345 +ACLOCAL = @ACLOCAL@
21346 +ADDITIONAL_LIBS = @ADDITIONAL_LIBS@
21347 +AMDEP_FALSE = @AMDEP_FALSE@
21348 +AMDEP_TRUE = @AMDEP_TRUE@
21349 +AMTAR = @AMTAR@
21350 +AR = @AR@
21351 +AUTOCONF = @AUTOCONF@
21352 +AUTOHEADER = @AUTOHEADER@
21353 +AUTOMAKE = @AUTOMAKE@
21354 +AWK = @AWK@
21355 +BIN_PREFIX = @BIN_PREFIX@
21356 +CC = @CC@
21357 +CCDEPMODE = @CCDEPMODE@
21358 +CFLAGS = @CFLAGS@
21359 +CPP = @CPP@
21360 +CPPFLAGS = @CPPFLAGS@
21361 +CYGPATH_W = @CYGPATH_W@
21362 +DEFS = @DEFS@
21363 +DEPDIR = @DEPDIR@
21364 +ECHO = @ECHO@
21365 +ECHO_C = @ECHO_C@
21366 +ECHO_N = @ECHO_N@
21367 +ECHO_T = @ECHO_T@
21368 +EGREP = @EGREP@
21369 +EXEEXT = @EXEEXT@
21370 +INC_PREFIX = @INC_PREFIX@
21371 +INSTALL_DATA = @INSTALL_DATA@
21372 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
21373 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
21374 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
21375 +LDFLAGS = @LDFLAGS@
21376 +LIBNET_CONFIG_CFLAGS = @LIBNET_CONFIG_CFLAGS@
21377 +LIBNET_CONFIG_DEFINES = @LIBNET_CONFIG_DEFINES@
21378 +LIBNET_CONFIG_LIBS = @LIBNET_CONFIG_LIBS@
21379 +LIBOBJS = @LIBOBJS@
21380 +LIBS = @LIBS@
21381 +LIBTOOL = @LIBTOOL@
21382 +LIB_PREFIX = @LIB_PREFIX@
21383 +LL_INT_TYPE = @LL_INT_TYPE@
21384 +LL_INT_TYPE_UC = @LL_INT_TYPE_UC@
21385 +LN = @LN@
21386 +LN_S = @LN_S@
21387 +LTLIBOBJS = @LTLIBOBJS@
21388 +MAKEINFO = @MAKEINFO@
21389 +MAN_PREFIX = @MAN_PREFIX@
21390 +OBJEXT = @OBJEXT@
21391 +PACKAGE = @PACKAGE@
21392 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
21393 +PACKAGE_NAME = @PACKAGE_NAME@
21394 +PACKAGE_STRING = @PACKAGE_STRING@
21395 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
21396 +PACKAGE_VERSION = @PACKAGE_VERSION@
21397 +PATH_SEPARATOR = @PATH_SEPARATOR@
21398 +RANLIB = @RANLIB@
21399 +SET_MAKE = @SET_MAKE@
21400 +SHELL = @SHELL@
21401 +STRIP = @STRIP@
21402 +VERSION = @VERSION@
21403 +ac_ct_CC = @ac_ct_CC@
21404 +ac_ct_RANLIB = @ac_ct_RANLIB@
21405 +ac_ct_STRIP = @ac_ct_STRIP@
21406 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
21407 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
21408 +am__include = @am__include@
21409 +am__leading_dot = @am__leading_dot@
21410 +am__quote = @am__quote@
21411 +bindir = @bindir@
21412 +build = @build@
21413 +build_alias = @build_alias@
21414 +build_cpu = @build_cpu@
21415 +build_os = @build_os@
21416 +build_vendor = @build_vendor@
21417 +datadir = @datadir@
21418 +exec_prefix = @exec_prefix@
21419 +host = @host@
21420 +host_alias = @host_alias@
21421 +host_cpu = @host_cpu@
21422 +host_os = @host_os@
21423 +host_vendor = @host_vendor@
21424 +includedir = @includedir@
21425 +infodir = @infodir@
21426 +install_sh = @install_sh@
21427 +libdir = @libdir@
21428 +libexecdir = @libexecdir@
21429 +localstatedir = @localstatedir@
21430 +mandir = @mandir@
21431 +mkdir_p = @mkdir_p@
21432 +oldincludedir = @oldincludedir@
21433 +prefix = @prefix@
21434 +program_transform_name = @program_transform_name@
21435 +sbindir = @sbindir@
21436 +sharedstatedir = @sharedstatedir@
21437 +sysconfdir = @sysconfdir@
21438 +target = @target@
21439 +target_alias = @target_alias@
21440 +target_cpu = @target_cpu@
21441 +target_os = @target_os@
21442 +target_vendor = @target_vendor@
21443 +AUTOMAKE_OPTIONS = foreign no-dependencies
21444 +DISTCLEANFILES = *~
21445 +SUBDIRS = libnet
21446 +include_HEADERS = libnet.h
21447 +all: config.h
21448 + $(MAKE) $(AM_MAKEFLAGS) all-recursive
21449 +
21450 +.SUFFIXES:
21451 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/Makefile.am.common $(am__configure_deps)
21452 + @for dep in $?; do \
21453 + case '$(am__configure_deps)' in \
21454 + *$$dep*) \
21455 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
21456 + && exit 0; \
21457 + exit 1;; \
21458 + esac; \
21459 + done; \
21460 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign include/Makefile'; \
21461 + cd $(top_srcdir) && \
21462 + $(AUTOMAKE) --foreign include/Makefile
21463 +.PRECIOUS: Makefile
21464 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
21465 + @case '$?' in \
21466 + *config.status*) \
21467 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
21468 + *) \
21469 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
21470 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
21471 + esac;
21472 +
21473 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
21474 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
21475 +
21476 +$(top_srcdir)/configure: $(am__configure_deps)
21477 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
21478 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
21479 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
21480 +
21481 +config.h: stamp-h1
21482 + @if test ! -f $@; then \
21483 + rm -f stamp-h1; \
21484 + $(MAKE) stamp-h1; \
21485 + else :; fi
21486 +
21487 +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
21488 + @rm -f stamp-h1
21489 + cd $(top_builddir) && $(SHELL) ./config.status include/config.h
21490 +$(srcdir)/config.h.in: $(am__configure_deps) $(top_srcdir)/acconfig.h
21491 + cd $(top_srcdir) && $(AUTOHEADER)
21492 + rm -f stamp-h1
21493 + touch $@
21494 +
21495 +distclean-hdr:
21496 + -rm -f config.h stamp-h1
21497 +
21498 +mostlyclean-libtool:
21499 + -rm -f *.lo
21500 +
21501 +clean-libtool:
21502 + -rm -rf .libs _libs
21503 +
21504 +distclean-libtool:
21505 + -rm -f libtool
21506 +uninstall-info-am:
21507 +install-includeHEADERS: $(include_HEADERS)
21508 + @$(NORMAL_INSTALL)
21509 + test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
21510 + @list='$(include_HEADERS)'; for p in $$list; do \
21511 + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
21512 + f="`echo $$p | sed -e 's|^.*/||'`"; \
21513 + echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
21514 + $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
21515 + done
21516 +
21517 +uninstall-includeHEADERS:
21518 + @$(NORMAL_UNINSTALL)
21519 + @list='$(include_HEADERS)'; for p in $$list; do \
21520 + f="`echo $$p | sed -e 's|^.*/||'`"; \
21521 + echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
21522 + rm -f "$(DESTDIR)$(includedir)/$$f"; \
21523 + done
21524 +
21525 +# This directory's subdirectories are mostly independent; you can cd
21526 +# into them and run `make' without going through this Makefile.
21527 +# To change the values of `make' variables: instead of editing Makefiles,
21528 +# (1) if the variable is set in `config.status', edit `config.status'
21529 +# (which will cause the Makefiles to be regenerated when you run `make');
21530 +# (2) otherwise, pass the desired values on the `make' command line.
21531 +$(RECURSIVE_TARGETS):
21532 + @set fnord $$MAKEFLAGS; amf=$$2; \
21533 + dot_seen=no; \
21534 + target=`echo $@ | sed s/-recursive//`; \
21535 + list='$(SUBDIRS)'; for subdir in $$list; do \
21536 + echo "Making $$target in $$subdir"; \
21537 + if test "$$subdir" = "."; then \
21538 + dot_seen=yes; \
21539 + local_target="$$target-am"; \
21540 + else \
21541 + local_target="$$target"; \
21542 + fi; \
21543 + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
21544 + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
21545 + done; \
21546 + if test "$$dot_seen" = "no"; then \
21547 + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
21548 + fi; test -z "$$fail"
21549 +
21550 +mostlyclean-recursive clean-recursive distclean-recursive \
21551 +maintainer-clean-recursive:
21552 + @set fnord $$MAKEFLAGS; amf=$$2; \
21553 + dot_seen=no; \
21554 + case "$@" in \
21555 + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
21556 + *) list='$(SUBDIRS)' ;; \
21557 + esac; \
21558 + rev=''; for subdir in $$list; do \
21559 + if test "$$subdir" = "."; then :; else \
21560 + rev="$$subdir $$rev"; \
21561 + fi; \
21562 + done; \
21563 + rev="$$rev ."; \
21564 + target=`echo $@ | sed s/-recursive//`; \
21565 + for subdir in $$rev; do \
21566 + echo "Making $$target in $$subdir"; \
21567 + if test "$$subdir" = "."; then \
21568 + local_target="$$target-am"; \
21569 + else \
21570 + local_target="$$target"; \
21571 + fi; \
21572 + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
21573 + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
21574 + done && test -z "$$fail"
21575 +tags-recursive:
21576 + list='$(SUBDIRS)'; for subdir in $$list; do \
21577 + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
21578 + done
21579 +ctags-recursive:
21580 + list='$(SUBDIRS)'; for subdir in $$list; do \
21581 + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
21582 + done
21583 +
21584 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
21585 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
21586 + unique=`for i in $$list; do \
21587 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
21588 + done | \
21589 + $(AWK) ' { files[$$0] = 1; } \
21590 + END { for (i in files) print i; }'`; \
21591 + mkid -fID $$unique
21592 +tags: TAGS
21593 +
21594 +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
21595 + $(TAGS_FILES) $(LISP)
21596 + tags=; \
21597 + here=`pwd`; \
21598 + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
21599 + include_option=--etags-include; \
21600 + empty_fix=.; \
21601 + else \
21602 + include_option=--include; \
21603 + empty_fix=; \
21604 + fi; \
21605 + list='$(SUBDIRS)'; for subdir in $$list; do \
21606 + if test "$$subdir" = .; then :; else \
21607 + test ! -f $$subdir/TAGS || \
21608 + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
21609 + fi; \
21610 + done; \
21611 + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
21612 + unique=`for i in $$list; do \
21613 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
21614 + done | \
21615 + $(AWK) ' { files[$$0] = 1; } \
21616 + END { for (i in files) print i; }'`; \
21617 + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
21618 + test -n "$$unique" || unique=$$empty_fix; \
21619 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
21620 + $$tags $$unique; \
21621 + fi
21622 +ctags: CTAGS
21623 +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
21624 + $(TAGS_FILES) $(LISP)
21625 + tags=; \
21626 + here=`pwd`; \
21627 + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
21628 + unique=`for i in $$list; do \
21629 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
21630 + done | \
21631 + $(AWK) ' { files[$$0] = 1; } \
21632 + END { for (i in files) print i; }'`; \
21633 + test -z "$(CTAGS_ARGS)$$tags$$unique" \
21634 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
21635 + $$tags $$unique
21636 +
21637 +GTAGS:
21638 + here=`$(am__cd) $(top_builddir) && pwd` \
21639 + && cd $(top_srcdir) \
21640 + && gtags -i $(GTAGS_ARGS) $$here
21641 +
21642 +distclean-tags:
21643 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
21644 +
21645 +distdir: $(DISTFILES)
21646 + $(mkdir_p) $(distdir)/..
21647 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
21648 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
21649 + list='$(DISTFILES)'; for file in $$list; do \
21650 + case $$file in \
21651 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
21652 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
21653 + esac; \
21654 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
21655 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
21656 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
21657 + dir="/$$dir"; \
21658 + $(mkdir_p) "$(distdir)$$dir"; \
21659 + else \
21660 + dir=''; \
21661 + fi; \
21662 + if test -d $$d/$$file; then \
21663 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
21664 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
21665 + fi; \
21666 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
21667 + else \
21668 + test -f $(distdir)/$$file \
21669 + || cp -p $$d/$$file $(distdir)/$$file \
21670 + || exit 1; \
21671 + fi; \
21672 + done
21673 + list='$(SUBDIRS)'; for subdir in $$list; do \
21674 + if test "$$subdir" = .; then :; else \
21675 + test -d "$(distdir)/$$subdir" \
21676 + || mkdir "$(distdir)/$$subdir" \
21677 + || exit 1; \
21678 + (cd $$subdir && \
21679 + $(MAKE) $(AM_MAKEFLAGS) \
21680 + top_distdir="../$(top_distdir)" \
21681 + distdir="../$(distdir)/$$subdir" \
21682 + distdir) \
21683 + || exit 1; \
21684 + fi; \
21685 + done
21686 +check-am: all-am
21687 +check: check-recursive
21688 +all-am: Makefile $(HEADERS) config.h
21689 +installdirs: installdirs-recursive
21690 +installdirs-am:
21691 + for dir in "$(DESTDIR)$(includedir)"; do \
21692 + test -z "$$dir" || $(mkdir_p) "$$dir"; \
21693 + done
21694 +install: install-recursive
21695 +install-exec: install-exec-recursive
21696 +install-data: install-data-recursive
21697 +uninstall: uninstall-recursive
21698 +
21699 +install-am: all-am
21700 + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
21701 +
21702 +installcheck: installcheck-recursive
21703 +install-strip:
21704 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
21705 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
21706 + `test -z '$(STRIP)' || \
21707 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
21708 +mostlyclean-generic:
21709 +
21710 +clean-generic:
21711 +
21712 +distclean-generic:
21713 + -rm -f $(CONFIG_CLEAN_FILES)
21714 + -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
21715 +
21716 +maintainer-clean-generic:
21717 + @echo "This command is intended for maintainers to use"
21718 + @echo "it deletes files that may require special tools to rebuild."
21719 +clean: clean-recursive
21720 +
21721 +clean-am: clean-generic clean-libtool mostlyclean-am
21722 +
21723 +distclean: distclean-recursive
21724 + -rm -f Makefile
21725 +distclean-am: clean-am distclean-generic distclean-hdr \
21726 + distclean-libtool distclean-tags
21727 +
21728 +dvi: dvi-recursive
21729 +
21730 +dvi-am:
21731 +
21732 +html: html-recursive
21733 +
21734 +info: info-recursive
21735 +
21736 +info-am:
21737 +
21738 +install-data-am: install-includeHEADERS
21739 +
21740 +install-exec-am:
21741 +
21742 +install-info: install-info-recursive
21743 +
21744 +install-man:
21745 +
21746 +installcheck-am:
21747 +
21748 +maintainer-clean: maintainer-clean-recursive
21749 + -rm -f Makefile
21750 +maintainer-clean-am: distclean-am maintainer-clean-generic
21751 +
21752 +mostlyclean: mostlyclean-recursive
21753 +
21754 +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
21755 +
21756 +pdf: pdf-recursive
21757 +
21758 +pdf-am:
21759 +
21760 +ps: ps-recursive
21761 +
21762 +ps-am:
21763 +
21764 +uninstall-am: uninstall-includeHEADERS uninstall-info-am
21765 +
21766 +uninstall-info: uninstall-info-recursive
21767 +
21768 +.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
21769 + clean clean-generic clean-libtool clean-recursive ctags \
21770 + ctags-recursive distclean distclean-generic distclean-hdr \
21771 + distclean-libtool distclean-recursive distclean-tags distdir \
21772 + dvi dvi-am html html-am info info-am install install-am \
21773 + install-data install-data-am install-exec install-exec-am \
21774 + install-includeHEADERS install-info install-info-am \
21775 + install-man install-strip installcheck installcheck-am \
21776 + installdirs installdirs-am maintainer-clean \
21777 + maintainer-clean-generic maintainer-clean-recursive \
21778 + mostlyclean mostlyclean-generic mostlyclean-libtool \
21779 + mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
21780 + uninstall uninstall-am uninstall-includeHEADERS \
21781 + uninstall-info-am
21782 +
21783 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
21784 +# Otherwise a system limit (for SysV at least) may be exceeded.
21785 +.NOEXPORT:
21786 diff -ruN libnet-1.0.2a-orig/include/config.h.in libnet-1.0.2a-7/include/config.h.in
21787 --- libnet-1.0.2a-orig/include/config.h.in 2000-05-25 02:28:49.000000000 +0200
21788 +++ libnet-1.0.2a-7/include/config.h.in 2005-03-08 03:53:26.000000000 +0100
21789 @@ -1,14 +1,20 @@
21790 -/* include/config.h.in. Generated automatically from configure.in by autoheader. */
21791 -
21792 -/* Define to empty if the keyword does not work. */
21793 -#undef const
21794 +/* include/config.h.in. Generated from configure.in by autoheader. */
21795 +/* $Id$
21796 + *
21797 + * Libnet autoconfiguration acconfig.h file
21798 + * Copyright (c) 1998 - 2001 Mike D. Schiffman <mike@infonexus.com>
21799 + * All rights reserved.
21800 + *
21801 + * Process this file with autoheader to produce a config.h file.
21802 + */
21803
21804 #undef LIBNET_BSDISH_OS
21805 #undef LIBNET_BSD_BYTE_SWAP
21806 #undef DLPI_DEV_PREFIX
21807 +#undef LIBNET_FAST_X86_CHECK
21808 +#undef HAVE_SOLARIS
21809 #undef HAVE_DEV_DLPI
21810 #undef HAVE_SOCKADDR_SA_LEN
21811 -#undef HAVE_SOLARIS
21812 #undef HAVE_DLPI
21813 #undef HAVE_PF_PACKET
21814 #undef HAVE_STRUCT_IP_CSUM
21815 @@ -21,23 +27,80 @@
21816 #undef LIBNET_BIG_ENDIAN
21817 #undef LIBNET_LIL_ENDIAN
21818
21819 -/* Define if you have the strerror function. */
21820 -#undef HAVE_STRERROR
21821 +/* Define to 1 if you have the <dlfcn.h> header file. */
21822 +#undef HAVE_DLFCN_H
21823 +
21824 +/* Define to 1 if you have the <inttypes.h> header file. */
21825 +#undef HAVE_INTTYPES_H
21826 +
21827 +/* Define to 1 if you have the `nsl' library (-lnsl). */
21828 +#undef HAVE_LIBNSL
21829
21830 -/* Define if you have the <net/ethernet.h> header file. */
21831 +/* Define to 1 if you have the `socket' library (-lsocket). */
21832 +#undef HAVE_LIBSOCKET
21833 +
21834 +/* Define to 1 if you have the <memory.h> header file. */
21835 +#undef HAVE_MEMORY_H
21836 +
21837 +/* Define to 1 if you have the <net/ethernet.h> header file. */
21838 #undef HAVE_NET_ETHERNET_H
21839
21840 -/* Define if you have the <sys/bufmod.h> header file. */
21841 +/* Define to 1 if you have the <stdint.h> header file. */
21842 +#undef HAVE_STDINT_H
21843 +
21844 +/* Define to 1 if you have the <stdlib.h> header file. */
21845 +#undef HAVE_STDLIB_H
21846 +
21847 +/* Define to 1 if you have the `strerror' function. */
21848 +#undef HAVE_STRERROR
21849 +
21850 +/* Define to 1 if you have the <strings.h> header file. */
21851 +#undef HAVE_STRINGS_H
21852 +
21853 +/* Define to 1 if you have the <string.h> header file. */
21854 +#undef HAVE_STRING_H
21855 +
21856 +/* Define to 1 if you have the <sys/bufmod.h> header file. */
21857 #undef HAVE_SYS_BUFMOD_H
21858
21859 -/* Define if you have the <sys/dlpi_ext.h> header file. */
21860 +/* Define to 1 if you have the <sys/dlpi_ext.h> header file. */
21861 #undef HAVE_SYS_DLPI_EXT_H
21862
21863 -/* Define if you have the <sys/sockio.h> header file. */
21864 +/* Define to 1 if you have the <sys/sockio.h> header file. */
21865 #undef HAVE_SYS_SOCKIO_H
21866
21867 -/* Define if you have the nsl library (-lnsl). */
21868 -#undef HAVE_LIBNSL
21869 +/* Define to 1 if you have the <sys/stat.h> header file. */
21870 +#undef HAVE_SYS_STAT_H
21871
21872 -/* Define if you have the socket library (-lsocket). */
21873 -#undef HAVE_LIBSOCKET
21874 +/* Define to 1 if you have the <sys/types.h> header file. */
21875 +#undef HAVE_SYS_TYPES_H
21876 +
21877 +/* Define to 1 if you have the <unistd.h> header file. */
21878 +#undef HAVE_UNISTD_H
21879 +
21880 +/* Name of package */
21881 +#undef PACKAGE
21882 +
21883 +/* Define to the address where bug reports for this package should be sent. */
21884 +#undef PACKAGE_BUGREPORT
21885 +
21886 +/* Define to the full name of this package. */
21887 +#undef PACKAGE_NAME
21888 +
21889 +/* Define to the full name and version of this package. */
21890 +#undef PACKAGE_STRING
21891 +
21892 +/* Define to the one symbol short name of this package. */
21893 +#undef PACKAGE_TARNAME
21894 +
21895 +/* Define to the version of this package. */
21896 +#undef PACKAGE_VERSION
21897 +
21898 +/* Define to 1 if you have the ANSI C header files. */
21899 +#undef STDC_HEADERS
21900 +
21901 +/* Version number of package */
21902 +#undef VERSION
21903 +
21904 +/* Define to empty if `const' does not conform to ANSI C. */
21905 +#undef const
21906 diff -ruN libnet-1.0.2a-orig/include/libnet/Makefile.am libnet-1.0.2a-7/include/libnet/Makefile.am
21907 --- libnet-1.0.2a-orig/include/libnet/Makefile.am 1970-01-01 01:00:00.000000000 +0100
21908 +++ libnet-1.0.2a-7/include/libnet/Makefile.am 2005-03-08 03:53:26.000000000 +0100
21909 @@ -0,0 +1,9 @@
21910 +include $(top_srcdir)/Makefile.am.common
21911 +
21912 +pkginclude_HEADERS = \
21913 + libnet-asn1.h \
21914 + libnet-functions.h \
21915 + libnet-headers.h \
21916 + libnet-macros.h \
21917 + libnet-ospf.h \
21918 + libnet-structures.h
21919 diff -ruN libnet-1.0.2a-orig/include/libnet/Makefile.in libnet-1.0.2a-7/include/libnet/Makefile.in
21920 --- libnet-1.0.2a-orig/include/libnet/Makefile.in 1970-01-01 01:00:00.000000000 +0100
21921 +++ libnet-1.0.2a-7/include/libnet/Makefile.in 2005-03-08 03:53:26.000000000 +0100
21922 @@ -0,0 +1,398 @@
21923 +# Makefile.in generated by automake 1.8.5 from Makefile.am.
21924 +# @configure_input@
21925 +
21926 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
21927 +# 2003, 2004 Free Software Foundation, Inc.
21928 +# This Makefile.in is free software; the Free Software Foundation
21929 +# gives unlimited permission to copy and/or distribute it,
21930 +# with or without modifications, as long as this notice is preserved.
21931 +
21932 +# This program is distributed in the hope that it will be useful,
21933 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
21934 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
21935 +# PARTICULAR PURPOSE.
21936 +
21937 +@SET_MAKE@
21938 +
21939 +srcdir = @srcdir@
21940 +top_srcdir = @top_srcdir@
21941 +VPATH = @srcdir@
21942 +pkgdatadir = $(datadir)/@PACKAGE@
21943 +pkglibdir = $(libdir)/@PACKAGE@
21944 +pkgincludedir = $(includedir)/@PACKAGE@
21945 +top_builddir = ../..
21946 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
21947 +INSTALL = @INSTALL@
21948 +install_sh_DATA = $(install_sh) -c -m 644
21949 +install_sh_PROGRAM = $(install_sh) -c
21950 +install_sh_SCRIPT = $(install_sh) -c
21951 +INSTALL_HEADER = $(INSTALL_DATA)
21952 +transform = $(program_transform_name)
21953 +NORMAL_INSTALL = :
21954 +PRE_INSTALL = :
21955 +POST_INSTALL = :
21956 +NORMAL_UNINSTALL = :
21957 +PRE_UNINSTALL = :
21958 +POST_UNINSTALL = :
21959 +build_triplet = @build@
21960 +host_triplet = @host@
21961 +target_triplet = @target@
21962 +DIST_COMMON = $(pkginclude_HEADERS) $(srcdir)/Makefile.am \
21963 + $(srcdir)/Makefile.in $(top_srcdir)/Makefile.am.common
21964 +subdir = include/libnet
21965 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
21966 +am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
21967 + $(top_srcdir)/configure.in
21968 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
21969 + $(ACLOCAL_M4)
21970 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
21971 +CONFIG_HEADER = $(top_builddir)/include/config.h
21972 +CONFIG_CLEAN_FILES =
21973 +depcomp =
21974 +am__depfiles_maybe =
21975 +SOURCES =
21976 +DIST_SOURCES =
21977 +am__installdirs = "$(DESTDIR)$(pkgincludedir)"
21978 +pkgincludeHEADERS_INSTALL = $(INSTALL_HEADER)
21979 +HEADERS = $(pkginclude_HEADERS)
21980 +ETAGS = etags
21981 +CTAGS = ctags
21982 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
21983 +ACLOCAL = @ACLOCAL@
21984 +ADDITIONAL_LIBS = @ADDITIONAL_LIBS@
21985 +AMDEP_FALSE = @AMDEP_FALSE@
21986 +AMDEP_TRUE = @AMDEP_TRUE@
21987 +AMTAR = @AMTAR@
21988 +AR = @AR@
21989 +AUTOCONF = @AUTOCONF@
21990 +AUTOHEADER = @AUTOHEADER@
21991 +AUTOMAKE = @AUTOMAKE@
21992 +AWK = @AWK@
21993 +BIN_PREFIX = @BIN_PREFIX@
21994 +CC = @CC@
21995 +CCDEPMODE = @CCDEPMODE@
21996 +CFLAGS = @CFLAGS@
21997 +CPP = @CPP@
21998 +CPPFLAGS = @CPPFLAGS@
21999 +CYGPATH_W = @CYGPATH_W@
22000 +DEFS = @DEFS@
22001 +DEPDIR = @DEPDIR@
22002 +ECHO = @ECHO@
22003 +ECHO_C = @ECHO_C@
22004 +ECHO_N = @ECHO_N@
22005 +ECHO_T = @ECHO_T@
22006 +EGREP = @EGREP@
22007 +EXEEXT = @EXEEXT@
22008 +INC_PREFIX = @INC_PREFIX@
22009 +INSTALL_DATA = @INSTALL_DATA@
22010 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
22011 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
22012 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
22013 +LDFLAGS = @LDFLAGS@
22014 +LIBNET_CONFIG_CFLAGS = @LIBNET_CONFIG_CFLAGS@
22015 +LIBNET_CONFIG_DEFINES = @LIBNET_CONFIG_DEFINES@
22016 +LIBNET_CONFIG_LIBS = @LIBNET_CONFIG_LIBS@
22017 +LIBOBJS = @LIBOBJS@
22018 +LIBS = @LIBS@
22019 +LIBTOOL = @LIBTOOL@
22020 +LIB_PREFIX = @LIB_PREFIX@
22021 +LL_INT_TYPE = @LL_INT_TYPE@
22022 +LL_INT_TYPE_UC = @LL_INT_TYPE_UC@
22023 +LN = @LN@
22024 +LN_S = @LN_S@
22025 +LTLIBOBJS = @LTLIBOBJS@
22026 +MAKEINFO = @MAKEINFO@
22027 +MAN_PREFIX = @MAN_PREFIX@
22028 +OBJEXT = @OBJEXT@
22029 +PACKAGE = @PACKAGE@
22030 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
22031 +PACKAGE_NAME = @PACKAGE_NAME@
22032 +PACKAGE_STRING = @PACKAGE_STRING@
22033 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
22034 +PACKAGE_VERSION = @PACKAGE_VERSION@
22035 +PATH_SEPARATOR = @PATH_SEPARATOR@
22036 +RANLIB = @RANLIB@
22037 +SET_MAKE = @SET_MAKE@
22038 +SHELL = @SHELL@
22039 +STRIP = @STRIP@
22040 +VERSION = @VERSION@
22041 +ac_ct_CC = @ac_ct_CC@
22042 +ac_ct_RANLIB = @ac_ct_RANLIB@
22043 +ac_ct_STRIP = @ac_ct_STRIP@
22044 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
22045 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
22046 +am__include = @am__include@
22047 +am__leading_dot = @am__leading_dot@
22048 +am__quote = @am__quote@
22049 +bindir = @bindir@
22050 +build = @build@
22051 +build_alias = @build_alias@
22052 +build_cpu = @build_cpu@
22053 +build_os = @build_os@
22054 +build_vendor = @build_vendor@
22055 +datadir = @datadir@
22056 +exec_prefix = @exec_prefix@
22057 +host = @host@
22058 +host_alias = @host_alias@
22059 +host_cpu = @host_cpu@
22060 +host_os = @host_os@
22061 +host_vendor = @host_vendor@
22062 +includedir = @includedir@
22063 +infodir = @infodir@
22064 +install_sh = @install_sh@
22065 +libdir = @libdir@
22066 +libexecdir = @libexecdir@
22067 +localstatedir = @localstatedir@
22068 +mandir = @mandir@
22069 +mkdir_p = @mkdir_p@
22070 +oldincludedir = @oldincludedir@
22071 +prefix = @prefix@
22072 +program_transform_name = @program_transform_name@
22073 +sbindir = @sbindir@
22074 +sharedstatedir = @sharedstatedir@
22075 +sysconfdir = @sysconfdir@
22076 +target = @target@
22077 +target_alias = @target_alias@
22078 +target_cpu = @target_cpu@
22079 +target_os = @target_os@
22080 +target_vendor = @target_vendor@
22081 +AUTOMAKE_OPTIONS = foreign no-dependencies
22082 +DISTCLEANFILES = *~
22083 +pkginclude_HEADERS = \
22084 + libnet-asn1.h \
22085 + libnet-functions.h \
22086 + libnet-headers.h \
22087 + libnet-macros.h \
22088 + libnet-ospf.h \
22089 + libnet-structures.h
22090 +
22091 +all: all-am
22092 +
22093 +.SUFFIXES:
22094 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/Makefile.am.common $(am__configure_deps)
22095 + @for dep in $?; do \
22096 + case '$(am__configure_deps)' in \
22097 + *$$dep*) \
22098 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
22099 + && exit 0; \
22100 + exit 1;; \
22101 + esac; \
22102 + done; \
22103 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign include/libnet/Makefile'; \
22104 + cd $(top_srcdir) && \
22105 + $(AUTOMAKE) --foreign include/libnet/Makefile
22106 +.PRECIOUS: Makefile
22107 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
22108 + @case '$?' in \
22109 + *config.status*) \
22110 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
22111 + *) \
22112 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
22113 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
22114 + esac;
22115 +
22116 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
22117 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
22118 +
22119 +$(top_srcdir)/configure: $(am__configure_deps)
22120 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
22121 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
22122 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
22123 +
22124 +mostlyclean-libtool:
22125 + -rm -f *.lo
22126 +
22127 +clean-libtool:
22128 + -rm -rf .libs _libs
22129 +
22130 +distclean-libtool:
22131 + -rm -f libtool
22132 +uninstall-info-am:
22133 +install-pkgincludeHEADERS: $(pkginclude_HEADERS)
22134 + @$(NORMAL_INSTALL)
22135 + test -z "$(pkgincludedir)" || $(mkdir_p) "$(DESTDIR)$(pkgincludedir)"
22136 + @list='$(pkginclude_HEADERS)'; for p in $$list; do \
22137 + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
22138 + f="`echo $$p | sed -e 's|^.*/||'`"; \
22139 + echo " $(pkgincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgincludedir)/$$f'"; \
22140 + $(pkgincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgincludedir)/$$f"; \
22141 + done
22142 +
22143 +uninstall-pkgincludeHEADERS:
22144 + @$(NORMAL_UNINSTALL)
22145 + @list='$(pkginclude_HEADERS)'; for p in $$list; do \
22146 + f="`echo $$p | sed -e 's|^.*/||'`"; \
22147 + echo " rm -f '$(DESTDIR)$(pkgincludedir)/$$f'"; \
22148 + rm -f "$(DESTDIR)$(pkgincludedir)/$$f"; \
22149 + done
22150 +
22151 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
22152 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
22153 + unique=`for i in $$list; do \
22154 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
22155 + done | \
22156 + $(AWK) ' { files[$$0] = 1; } \
22157 + END { for (i in files) print i; }'`; \
22158 + mkid -fID $$unique
22159 +tags: TAGS
22160 +
22161 +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
22162 + $(TAGS_FILES) $(LISP)
22163 + tags=; \
22164 + here=`pwd`; \
22165 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
22166 + unique=`for i in $$list; do \
22167 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
22168 + done | \
22169 + $(AWK) ' { files[$$0] = 1; } \
22170 + END { for (i in files) print i; }'`; \
22171 + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
22172 + test -n "$$unique" || unique=$$empty_fix; \
22173 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
22174 + $$tags $$unique; \
22175 + fi
22176 +ctags: CTAGS
22177 +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
22178 + $(TAGS_FILES) $(LISP)
22179 + tags=; \
22180 + here=`pwd`; \
22181 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
22182 + unique=`for i in $$list; do \
22183 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
22184 + done | \
22185 + $(AWK) ' { files[$$0] = 1; } \
22186 + END { for (i in files) print i; }'`; \
22187 + test -z "$(CTAGS_ARGS)$$tags$$unique" \
22188 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
22189 + $$tags $$unique
22190 +
22191 +GTAGS:
22192 + here=`$(am__cd) $(top_builddir) && pwd` \
22193 + && cd $(top_srcdir) \
22194 + && gtags -i $(GTAGS_ARGS) $$here
22195 +
22196 +distclean-tags:
22197 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
22198 +
22199 +distdir: $(DISTFILES)
22200 + $(mkdir_p) $(distdir)/../..
22201 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
22202 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
22203 + list='$(DISTFILES)'; for file in $$list; do \
22204 + case $$file in \
22205 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
22206 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
22207 + esac; \
22208 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
22209 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
22210 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
22211 + dir="/$$dir"; \
22212 + $(mkdir_p) "$(distdir)$$dir"; \
22213 + else \
22214 + dir=''; \
22215 + fi; \
22216 + if test -d $$d/$$file; then \
22217 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
22218 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
22219 + fi; \
22220 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
22221 + else \
22222 + test -f $(distdir)/$$file \
22223 + || cp -p $$d/$$file $(distdir)/$$file \
22224 + || exit 1; \
22225 + fi; \
22226 + done
22227 +check-am: all-am
22228 +check: check-am
22229 +all-am: Makefile $(HEADERS)
22230 +installdirs:
22231 + for dir in "$(DESTDIR)$(pkgincludedir)"; do \
22232 + test -z "$$dir" || $(mkdir_p) "$$dir"; \
22233 + done
22234 +install: install-am
22235 +install-exec: install-exec-am
22236 +install-data: install-data-am
22237 +uninstall: uninstall-am
22238 +
22239 +install-am: all-am
22240 + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
22241 +
22242 +installcheck: installcheck-am
22243 +install-strip:
22244 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
22245 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
22246 + `test -z '$(STRIP)' || \
22247 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
22248 +mostlyclean-generic:
22249 +
22250 +clean-generic:
22251 +
22252 +distclean-generic:
22253 + -rm -f $(CONFIG_CLEAN_FILES)
22254 + -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
22255 +
22256 +maintainer-clean-generic:
22257 + @echo "This command is intended for maintainers to use"
22258 + @echo "it deletes files that may require special tools to rebuild."
22259 +clean: clean-am
22260 +
22261 +clean-am: clean-generic clean-libtool mostlyclean-am
22262 +
22263 +distclean: distclean-am
22264 + -rm -f Makefile
22265 +distclean-am: clean-am distclean-generic distclean-libtool \
22266 + distclean-tags
22267 +
22268 +dvi: dvi-am
22269 +
22270 +dvi-am:
22271 +
22272 +html: html-am
22273 +
22274 +info: info-am
22275 +
22276 +info-am:
22277 +
22278 +install-data-am: install-pkgincludeHEADERS
22279 +
22280 +install-exec-am:
22281 +
22282 +install-info: install-info-am
22283 +
22284 +install-man:
22285 +
22286 +installcheck-am:
22287 +
22288 +maintainer-clean: maintainer-clean-am
22289 + -rm -f Makefile
22290 +maintainer-clean-am: distclean-am maintainer-clean-generic
22291 +
22292 +mostlyclean: mostlyclean-am
22293 +
22294 +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
22295 +
22296 +pdf: pdf-am
22297 +
22298 +pdf-am:
22299 +
22300 +ps: ps-am
22301 +
22302 +ps-am:
22303 +
22304 +uninstall-am: uninstall-info-am uninstall-pkgincludeHEADERS
22305 +
22306 +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
22307 + clean-libtool ctags distclean distclean-generic \
22308 + distclean-libtool distclean-tags distdir dvi dvi-am html \
22309 + html-am info info-am install install-am install-data \
22310 + install-data-am install-exec install-exec-am install-info \
22311 + install-info-am install-man install-pkgincludeHEADERS \
22312 + install-strip installcheck installcheck-am installdirs \
22313 + maintainer-clean maintainer-clean-generic mostlyclean \
22314 + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
22315 + tags uninstall uninstall-am uninstall-info-am \
22316 + uninstall-pkgincludeHEADERS
22317 +
22318 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
22319 +# Otherwise a system limit (for SysV at least) may be exceeded.
22320 +.NOEXPORT:
22321 diff -ruN libnet-1.0.2a-orig/include/libnet.h libnet-1.0.2a-7/include/libnet.h
22322 --- libnet-1.0.2a-orig/include/libnet.h 2001-02-07 00:19:25.000000000 +0100
22323 +++ libnet-1.0.2a-7/include/libnet.h 2005-03-08 03:53:26.000000000 +0100
22324 @@ -84,9 +84,9 @@
22325 #define LIBNET_VERSION "1.0.2a"
22326
22327 #if (!LIBNET_LIL_ENDIAN && !LIBNET_BIG_ENDIAN)
22328 -#error "byte order has not been specified, you'll
22329 -need to #define either LIBNET_LIL_ENDIAN or LIBNET_BIG_ENDIAN. See the
22330 -documentation regarding the libnet-config script."
22331 +#error "byte order has not been specified, you'll"
22332 +"need to #define either LIBNET_LIL_ENDIAN or LIBNET_BIG_ENDIAN. See the"
22333 +"documentation regarding the libnet-config script."
22334 #endif
22335
22336 #endif /* __LIBNET_H */
22337 diff -ruN libnet-1.0.2a-orig/install-sh libnet-1.0.2a-7/install-sh
22338 --- libnet-1.0.2a-orig/install-sh 2001-02-05 18:51:48.000000000 +0100
22339 +++ libnet-1.0.2a-7/install-sh 2005-03-08 03:53:26.000000000 +0100
22340 @@ -44,7 +44,7 @@
22341 transformbasename=""
22342 transform_arg=""
22343 instcmd="$cpprog"
22344 -chmodcmd="$chmodprog 0755"
22345 +chmodcmd=""
22346 chowncmd=""
22347 chgrpcmd=""
22348 stripcmd=""
22349 diff -ruN libnet-1.0.2a-orig/ipkg/libnet/CONTROL/control libnet-1.0.2a-7/ipkg/libnet/CONTROL/control
22350 diff -ruN libnet-1.0.2a-orig/ipkg/libnet-dev/CONTROL/control libnet-1.0.2a-7/ipkg/libnet-dev/CONTROL/control
22351 diff -ruN libnet-1.0.2a-orig/ipkg/rules libnet-1.0.2a-7/ipkg/rules
22352 diff -ruN libnet-1.0.2a-orig/ipkg/version libnet-1.0.2a-7/ipkg/version
22353 diff -ruN libnet-1.0.2a-orig/ltmain.sh libnet-1.0.2a-7/ltmain.sh
22354 --- libnet-1.0.2a-orig/ltmain.sh 1970-01-01 01:00:00.000000000 +0100
22355 +++ libnet-1.0.2a-7/ltmain.sh 2005-03-08 03:53:26.000000000 +0100
22356 @@ -0,0 +1,5124 @@
22357 +# ltmain.sh - Provide generalized library-building support services.
22358 +# NOTE: Changing this file will not affect anything until you rerun configure.
22359 +#
22360 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
22361 +# Free Software Foundation, Inc.
22362 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
22363 +#
22364 +# This program is free software; you can redistribute it and/or modify
22365 +# it under the terms of the GNU General Public License as published by
22366 +# the Free Software Foundation; either version 2 of the License, or
22367 +# (at your option) any later version.
22368 +#
22369 +# This program is distributed in the hope that it will be useful, but
22370 +# WITHOUT ANY WARRANTY; without even the implied warranty of
22371 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22372 +# General Public License for more details.
22373 +#
22374 +# You should have received a copy of the GNU General Public License
22375 +# along with this program; if not, write to the Free Software
22376 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22377 +#
22378 +# As a special exception to the GNU General Public License, if you
22379 +# distribute this file as part of a program that contains a
22380 +# configuration script generated by Autoconf, you may include it under
22381 +# the same distribution terms that you use for the rest of that program.
22382 +
22383 +# Check that we have a working $echo.
22384 +if test "X$1" = X--no-reexec; then
22385 + # Discard the --no-reexec flag, and continue.
22386 + shift
22387 +elif test "X$1" = X--fallback-echo; then
22388 + # Avoid inline document here, it may be left over
22389 + :
22390 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
22391 + # Yippee, $echo works!
22392 + :
22393 +else
22394 + # Restart under the correct shell, and then maybe $echo will work.
22395 + exec $SHELL "$0" --no-reexec ${1+"$@"}
22396 +fi
22397 +
22398 +if test "X$1" = X--fallback-echo; then
22399 + # used as fallback echo
22400 + shift
22401 + cat <<EOF
22402 +$*
22403 +EOF
22404 + exit 0
22405 +fi
22406 +
22407 +# The name of this program.
22408 +progname=`$echo "$0" | ${SED} 's%^.*/%%'`
22409 +modename="$progname"
22410 +
22411 +# Constants.
22412 +PROGRAM=ltmain.sh
22413 +PACKAGE=libtool
22414 +VERSION=1.4.3
22415 +TIMESTAMP=" (1.922.2.111 2002/10/23 02:54:36) Debian$Rev: 145 $"
22416 +
22417 +default_mode=
22418 +help="Try \`$progname --help' for more information."
22419 +magic="%%%MAGIC variable%%%"
22420 +mkdir="mkdir"
22421 +mv="mv -f"
22422 +rm="rm -f"
22423 +
22424 +# Sed substitution that helps us do robust quoting. It backslashifies
22425 +# metacharacters that are still active within double-quoted strings.
22426 +Xsed="${SED}"' -e 1s/^X//'
22427 +sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
22428 +# test EBCDIC or ASCII
22429 +case `echo A|od -x` in
22430 + *[Cc]1*) # EBCDIC based system
22431 + SP2NL="tr '\100' '\n'"
22432 + NL2SP="tr '\r\n' '\100\100'"
22433 + ;;
22434 + *) # Assume ASCII based system
22435 + SP2NL="tr '\040' '\012'"
22436 + NL2SP="tr '\015\012' '\040\040'"
22437 + ;;
22438 +esac
22439 +
22440 +# NLS nuisances.
22441 +# Only set LANG and LC_ALL to C if already set.
22442 +# These must not be set unconditionally because not all systems understand
22443 +# e.g. LANG=C (notably SCO).
22444 +# We save the old values to restore during execute mode.
22445 +if test "${LC_ALL+set}" = set; then
22446 + save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
22447 +fi
22448 +if test "${LANG+set}" = set; then
22449 + save_LANG="$LANG"; LANG=C; export LANG
22450 +fi
22451 +
22452 +# Make sure IFS has a sensible default
22453 +: ${IFS="
22454 +"}
22455 +
22456 +if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
22457 + echo "$modename: not configured to build any kind of library" 1>&2
22458 + echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
22459 + exit 1
22460 +fi
22461 +
22462 +# Global variables.
22463 +mode=$default_mode
22464 +nonopt=
22465 +prev=
22466 +prevopt=
22467 +run=
22468 +show="$echo"
22469 +show_help=
22470 +execute_dlfiles=
22471 +lo2o="s/\\.lo\$/.${objext}/"
22472 +o2lo="s/\\.${objext}\$/.lo/"
22473 +
22474 +# Parse our command line options once, thoroughly.
22475 +while test $# -gt 0
22476 +do
22477 + arg="$1"
22478 + shift
22479 +
22480 + case $arg in
22481 + -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
22482 + *) optarg= ;;
22483 + esac
22484 +
22485 + # If the previous option needs an argument, assign it.
22486 + if test -n "$prev"; then
22487 + case $prev in
22488 + execute_dlfiles)
22489 + execute_dlfiles="$execute_dlfiles $arg"
22490 + ;;
22491 + *)
22492 + eval "$prev=\$arg"
22493 + ;;
22494 + esac
22495 +
22496 + prev=
22497 + prevopt=
22498 + continue
22499 + fi
22500 +
22501 + # Have we seen a non-optional argument yet?
22502 + case $arg in
22503 + --help)
22504 + show_help=yes
22505 + ;;
22506 +
22507 + --version)
22508 + echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
22509 + exit 0
22510 + ;;
22511 +
22512 + --config)
22513 + ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0
22514 + exit 0
22515 + ;;
22516 +
22517 + --debug)
22518 + echo "$progname: enabling shell trace mode"
22519 + set -x
22520 + ;;
22521 +
22522 + --dry-run | -n)
22523 + run=:
22524 + ;;
22525 +
22526 + --features)
22527 + echo "host: $host"
22528 + if test "$build_libtool_libs" = yes; then
22529 + echo "enable shared libraries"
22530 + else
22531 + echo "disable shared libraries"
22532 + fi
22533 + if test "$build_old_libs" = yes; then
22534 + echo "enable static libraries"
22535 + else
22536 + echo "disable static libraries"
22537 + fi
22538 + exit 0
22539 + ;;
22540 +
22541 + --finish) mode="finish" ;;
22542 +
22543 + --mode) prevopt="--mode" prev=mode ;;
22544 + --mode=*) mode="$optarg" ;;
22545 +
22546 + --preserve-dup-deps) duplicate_deps="yes" ;;
22547 +
22548 + --quiet | --silent)
22549 + show=:
22550 + ;;
22551 +
22552 + -dlopen)
22553 + prevopt="-dlopen"
22554 + prev=execute_dlfiles
22555 + ;;
22556 +
22557 + -*)
22558 + $echo "$modename: unrecognized option \`$arg'" 1>&2
22559 + $echo "$help" 1>&2
22560 + exit 1
22561 + ;;
22562 +
22563 + *)
22564 + nonopt="$arg"
22565 + break
22566 + ;;
22567 + esac
22568 +done
22569 +
22570 +if test -n "$prevopt"; then
22571 + $echo "$modename: option \`$prevopt' requires an argument" 1>&2
22572 + $echo "$help" 1>&2
22573 + exit 1
22574 +fi
22575 +
22576 +# If this variable is set in any of the actions, the command in it
22577 +# will be execed at the end. This prevents here-documents from being
22578 +# left over by shells.
22579 +exec_cmd=
22580 +
22581 +if test -z "$show_help"; then
22582 +
22583 + # Infer the operation mode.
22584 + if test -z "$mode"; then
22585 + case $nonopt in
22586 + *cc | *++ | gcc* | *-gcc* | g++* | xlc*)
22587 + mode=link
22588 + for arg
22589 + do
22590 + case $arg in
22591 + -c)
22592 + mode=compile
22593 + break
22594 + ;;
22595 + esac
22596 + done
22597 + ;;
22598 + *db | *dbx | *strace | *truss)
22599 + mode=execute
22600 + ;;
22601 + *install*|cp|mv)
22602 + mode=install
22603 + ;;
22604 + *rm)
22605 + mode=uninstall
22606 + ;;
22607 + *)
22608 + # If we have no mode, but dlfiles were specified, then do execute mode.
22609 + test -n "$execute_dlfiles" && mode=execute
22610 +
22611 + # Just use the default operation mode.
22612 + if test -z "$mode"; then
22613 + if test -n "$nonopt"; then
22614 + $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
22615 + else
22616 + $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
22617 + fi
22618 + fi
22619 + ;;
22620 + esac
22621 + fi
22622 +
22623 + # Only execute mode is allowed to have -dlopen flags.
22624 + if test -n "$execute_dlfiles" && test "$mode" != execute; then
22625 + $echo "$modename: unrecognized option \`-dlopen'" 1>&2
22626 + $echo "$help" 1>&2
22627 + exit 1
22628 + fi
22629 +
22630 + # Change the help message to a mode-specific one.
22631 + generic_help="$help"
22632 + help="Try \`$modename --help --mode=$mode' for more information."
22633 +
22634 + # These modes are in order of execution frequency so that they run quickly.
22635 + case $mode in
22636 + # libtool compile mode
22637 + compile)
22638 + modename="$modename: compile"
22639 + # Get the compilation command and the source file.
22640 + base_compile=
22641 + prev=
22642 + lastarg=
22643 + srcfile="$nonopt"
22644 + suppress_output=
22645 +
22646 + user_target=no
22647 + for arg
22648 + do
22649 + case $prev in
22650 + "") ;;
22651 + xcompiler)
22652 + # Aesthetically quote the previous argument.
22653 + prev=
22654 + lastarg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
22655 +
22656 + case $arg in
22657 + # Double-quote args containing other shell metacharacters.
22658 + # Many Bourne shells cannot handle close brackets correctly
22659 + # in scan sets, so we specify it separately.
22660 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
22661 + arg="\"$arg\""
22662 + ;;
22663 + esac
22664 +
22665 + # Add the previous argument to base_compile.
22666 + if test -z "$base_compile"; then
22667 + base_compile="$lastarg"
22668 + else
22669 + base_compile="$base_compile $lastarg"
22670 + fi
22671 + continue
22672 + ;;
22673 + esac
22674 +
22675 + # Accept any command-line options.
22676 + case $arg in
22677 + -o)
22678 + if test "$user_target" != "no"; then
22679 + $echo "$modename: you cannot specify \`-o' more than once" 1>&2
22680 + exit 1
22681 + fi
22682 + user_target=next
22683 + ;;
22684 +
22685 + -static)
22686 + build_old_libs=yes
22687 + continue
22688 + ;;
22689 +
22690 + -prefer-pic)
22691 + pic_mode=yes
22692 + continue
22693 + ;;
22694 +
22695 + -prefer-non-pic)
22696 + pic_mode=no
22697 + continue
22698 + ;;
22699 +
22700 + -Xcompiler)
22701 + prev=xcompiler
22702 + continue
22703 + ;;
22704 +
22705 + -Wc,*)
22706 + args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
22707 + lastarg=
22708 + save_ifs="$IFS"; IFS=','
22709 + for arg in $args; do
22710 + IFS="$save_ifs"
22711 +
22712 + # Double-quote args containing other shell metacharacters.
22713 + # Many Bourne shells cannot handle close brackets correctly
22714 + # in scan sets, so we specify it separately.
22715 + case $arg in
22716 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
22717 + arg="\"$arg\""
22718 + ;;
22719 + esac
22720 + lastarg="$lastarg $arg"
22721 + done
22722 + IFS="$save_ifs"
22723 + lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
22724 +
22725 + # Add the arguments to base_compile.
22726 + if test -z "$base_compile"; then
22727 + base_compile="$lastarg"
22728 + else
22729 + base_compile="$base_compile $lastarg"
22730 + fi
22731 + continue
22732 + ;;
22733 + esac
22734 +
22735 + case $user_target in
22736 + next)
22737 + # The next one is the -o target name
22738 + user_target=yes
22739 + continue
22740 + ;;
22741 + yes)
22742 + # We got the output file
22743 + user_target=set
22744 + libobj="$arg"
22745 + continue
22746 + ;;
22747 + esac
22748 +
22749 + # Accept the current argument as the source file.
22750 + lastarg="$srcfile"
22751 + srcfile="$arg"
22752 +
22753 + # Aesthetically quote the previous argument.
22754 +
22755 + # Backslashify any backslashes, double quotes, and dollar signs.
22756 + # These are the only characters that are still specially
22757 + # interpreted inside of double-quoted scrings.
22758 + lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
22759 +
22760 + # Double-quote args containing other shell metacharacters.
22761 + # Many Bourne shells cannot handle close brackets correctly
22762 + # in scan sets, so we specify it separately.
22763 + case $lastarg in
22764 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
22765 + lastarg="\"$lastarg\""
22766 + ;;
22767 + esac
22768 +
22769 + # Add the previous argument to base_compile.
22770 + if test -z "$base_compile"; then
22771 + base_compile="$lastarg"
22772 + else
22773 + base_compile="$base_compile $lastarg"
22774 + fi
22775 + done
22776 +
22777 + case $user_target in
22778 + set)
22779 + ;;
22780 + no)
22781 + # Get the name of the library object.
22782 + libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
22783 + ;;
22784 + *)
22785 + $echo "$modename: you must specify a target with \`-o'" 1>&2
22786 + exit 1
22787 + ;;
22788 + esac
22789 +
22790 + # Recognize several different file suffixes.
22791 + # If the user specifies -o file.o, it is replaced with file.lo
22792 + xform='[cCFSfmso]'
22793 + case $libobj in
22794 + *.ada) xform=ada ;;
22795 + *.adb) xform=adb ;;
22796 + *.ads) xform=ads ;;
22797 + *.asm) xform=asm ;;
22798 + *.c++) xform=c++ ;;
22799 + *.cc) xform=cc ;;
22800 + *.cpp) xform=cpp ;;
22801 + *.cxx) xform=cxx ;;
22802 + *.f90) xform=f90 ;;
22803 + *.for) xform=for ;;
22804 + esac
22805 +
22806 + libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
22807 +
22808 + case $libobj in
22809 + *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
22810 + *)
22811 + $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
22812 + exit 1
22813 + ;;
22814 + esac
22815 +
22816 + if test -z "$base_compile"; then
22817 + $echo "$modename: you must specify a compilation command" 1>&2
22818 + $echo "$help" 1>&2
22819 + exit 1
22820 + fi
22821 +
22822 + # Delete any leftover library objects.
22823 + if test "$build_old_libs" = yes; then
22824 + removelist="$obj $libobj"
22825 + else
22826 + removelist="$libobj"
22827 + fi
22828 +
22829 + $run $rm $removelist
22830 + trap "$run $rm $removelist; exit 1" 1 2 15
22831 +
22832 + # On Cygwin there's no "real" PIC flag so we must build both object types
22833 + case $host_os in
22834 + cygwin* | mingw* | pw32* | os2*)
22835 + pic_mode=default
22836 + ;;
22837 + esac
22838 + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
22839 + # non-PIC code in shared libraries is not supported
22840 + pic_mode=default
22841 + fi
22842 +
22843 + # Calculate the filename of the output object if compiler does
22844 + # not support -o with -c
22845 + if test "$compiler_c_o" = no; then
22846 + output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
22847 + lockfile="$output_obj.lock"
22848 + removelist="$removelist $output_obj $lockfile"
22849 + trap "$run $rm $removelist; exit 1" 1 2 15
22850 + else
22851 + need_locks=no
22852 + lockfile=
22853 + fi
22854 +
22855 + # Lock this critical section if it is needed
22856 + # We use this script file to make the link, it avoids creating a new file
22857 + if test "$need_locks" = yes; then
22858 + until $run ln "$0" "$lockfile" 2>/dev/null; do
22859 + $show "Waiting for $lockfile to be removed"
22860 + sleep 2
22861 + done
22862 + elif test "$need_locks" = warn; then
22863 + if test -f "$lockfile"; then
22864 + echo "\
22865 +*** ERROR, $lockfile exists and contains:
22866 +`cat $lockfile 2>/dev/null`
22867 +
22868 +This indicates that another process is trying to use the same
22869 +temporary object file, and libtool could not work around it because
22870 +your compiler does not support \`-c' and \`-o' together. If you
22871 +repeat this compilation, it may succeed, by chance, but you had better
22872 +avoid parallel builds (make -j) in this platform, or get a better
22873 +compiler."
22874 +
22875 + $run $rm $removelist
22876 + exit 1
22877 + fi
22878 + echo $srcfile > "$lockfile"
22879 + fi
22880 +
22881 + if test -n "$fix_srcfile_path"; then
22882 + eval srcfile=\"$fix_srcfile_path\"
22883 + fi
22884 +
22885 + # Only build a PIC object if we are building libtool libraries.
22886 + if test "$build_libtool_libs" = yes; then
22887 + # Without this assignment, base_compile gets emptied.
22888 + fbsd_hideous_sh_bug=$base_compile
22889 +
22890 + if test "$pic_mode" != no; then
22891 + # All platforms use -DPIC, to notify preprocessed assembler code.
22892 + command="$base_compile $srcfile $pic_flag -DPIC"
22893 + else
22894 + # Don't build PIC code
22895 + command="$base_compile $srcfile"
22896 + fi
22897 + if test "$build_old_libs" = yes; then
22898 + lo_libobj="$libobj"
22899 + dir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
22900 + if test "X$dir" = "X$libobj"; then
22901 + dir="$objdir"
22902 + else
22903 + dir="$dir/$objdir"
22904 + fi
22905 + libobj="$dir/"`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
22906 +
22907 + if test -d "$dir"; then
22908 + $show "$rm $libobj"
22909 + $run $rm $libobj
22910 + else
22911 + $show "$mkdir $dir"
22912 + $run $mkdir $dir
22913 + status=$?
22914 + if test $status -ne 0 && test ! -d $dir; then
22915 + exit $status
22916 + fi
22917 + fi
22918 + fi
22919 + if test "$compiler_o_lo" = yes; then
22920 + output_obj="$libobj"
22921 + command="$command -o $output_obj"
22922 + elif test "$compiler_c_o" = yes; then
22923 + output_obj="$obj"
22924 + command="$command -o $output_obj"
22925 + fi
22926 +
22927 + $run $rm "$output_obj"
22928 + $show "$command"
22929 + if $run eval "$command"; then :
22930 + else
22931 + test -n "$output_obj" && $run $rm $removelist
22932 + exit 1
22933 + fi
22934 +
22935 + if test "$need_locks" = warn &&
22936 + test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
22937 + echo "\
22938 +*** ERROR, $lockfile contains:
22939 +`cat $lockfile 2>/dev/null`
22940 +
22941 +but it should contain:
22942 +$srcfile
22943 +
22944 +This indicates that another process is trying to use the same
22945 +temporary object file, and libtool could not work around it because
22946 +your compiler does not support \`-c' and \`-o' together. If you
22947 +repeat this compilation, it may succeed, by chance, but you had better
22948 +avoid parallel builds (make -j) in this platform, or get a better
22949 +compiler."
22950 +
22951 + $run $rm $removelist
22952 + exit 1
22953 + fi
22954 +
22955 + # Just move the object if needed, then go on to compile the next one
22956 + if test x"$output_obj" != x"$libobj"; then
22957 + $show "$mv $output_obj $libobj"
22958 + if $run $mv $output_obj $libobj; then :
22959 + else
22960 + error=$?
22961 + $run $rm $removelist
22962 + exit $error
22963 + fi
22964 + fi
22965 +
22966 + # If we have no pic_flag, then copy the object into place and finish.
22967 + if (test -z "$pic_flag" || test "$pic_mode" != default) &&
22968 + test "$build_old_libs" = yes; then
22969 + # Rename the .lo from within objdir to obj
22970 + if test -f $obj; then
22971 + $show $rm $obj
22972 + $run $rm $obj
22973 + fi
22974 +
22975 + $show "$mv $libobj $obj"
22976 + if $run $mv $libobj $obj; then :
22977 + else
22978 + error=$?
22979 + $run $rm $removelist
22980 + exit $error
22981 + fi
22982 +
22983 + xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
22984 + if test "X$xdir" = "X$obj"; then
22985 + xdir="."
22986 + else
22987 + xdir="$xdir"
22988 + fi
22989 + baseobj=`$echo "X$obj" | $Xsed -e "s%.*/%%"`
22990 + libobj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
22991 + # Now arrange that obj and lo_libobj become the same file
22992 + $show "(cd $xdir && $LN_S $baseobj $libobj)"
22993 + if $run eval '(cd $xdir && $LN_S $baseobj $libobj)'; then
22994 + # Unlock the critical section if it was locked
22995 + if test "$need_locks" != no; then
22996 + $run $rm "$lockfile"
22997 + fi
22998 + exit 0
22999 + else
23000 + error=$?
23001 + $run $rm $removelist
23002 + exit $error
23003 + fi
23004 + fi
23005 +
23006 + # Allow error messages only from the first compilation.
23007 + suppress_output=' >/dev/null 2>&1'
23008 + fi
23009 +
23010 + # Only build a position-dependent object if we build old libraries.
23011 + if test "$build_old_libs" = yes; then
23012 + if test "$pic_mode" != yes; then
23013 + # Don't build PIC code
23014 + command="$base_compile $srcfile"
23015 + else
23016 + # All platforms use -DPIC, to notify preprocessed assembler code.
23017 + command="$base_compile $srcfile $pic_flag -DPIC"
23018 + fi
23019 + if test "$compiler_c_o" = yes; then
23020 + command="$command -o $obj"
23021 + output_obj="$obj"
23022 + fi
23023 +
23024 + # Suppress compiler output if we already did a PIC compilation.
23025 + command="$command$suppress_output"
23026 + $run $rm "$output_obj"
23027 + $show "$command"
23028 + if $run eval "$command"; then :
23029 + else
23030 + $run $rm $removelist
23031 + exit 1
23032 + fi
23033 +
23034 + if test "$need_locks" = warn &&
23035 + test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
23036 + echo "\
23037 +*** ERROR, $lockfile contains:
23038 +`cat $lockfile 2>/dev/null`
23039 +
23040 +but it should contain:
23041 +$srcfile
23042 +
23043 +This indicates that another process is trying to use the same
23044 +temporary object file, and libtool could not work around it because
23045 +your compiler does not support \`-c' and \`-o' together. If you
23046 +repeat this compilation, it may succeed, by chance, but you had better
23047 +avoid parallel builds (make -j) in this platform, or get a better
23048 +compiler."
23049 +
23050 + $run $rm $removelist
23051 + exit 1
23052 + fi
23053 +
23054 + # Just move the object if needed
23055 + if test x"$output_obj" != x"$obj"; then
23056 + $show "$mv $output_obj $obj"
23057 + if $run $mv $output_obj $obj; then :
23058 + else
23059 + error=$?
23060 + $run $rm $removelist
23061 + exit $error
23062 + fi
23063 + fi
23064 +
23065 + # Create an invalid libtool object if no PIC, so that we do not
23066 + # accidentally link it into a program.
23067 + if test "$build_libtool_libs" != yes; then
23068 + $show "echo timestamp > $libobj"
23069 + $run eval "echo timestamp > \$libobj" || exit $?
23070 + else
23071 + # Move the .lo from within objdir
23072 + $show "$mv $libobj $lo_libobj"
23073 + if $run $mv $libobj $lo_libobj; then :
23074 + else
23075 + error=$?
23076 + $run $rm $removelist
23077 + exit $error
23078 + fi
23079 + fi
23080 + fi
23081 +
23082 + # Unlock the critical section if it was locked
23083 + if test "$need_locks" != no; then
23084 + $run $rm "$lockfile"
23085 + fi
23086 +
23087 + exit 0
23088 + ;;
23089 +
23090 + # libtool link mode
23091 + link | relink)
23092 + modename="$modename: link"
23093 + case $host in
23094 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
23095 + # It is impossible to link a dll without this setting, and
23096 + # we shouldn't force the makefile maintainer to figure out
23097 + # which system we are compiling for in order to pass an extra
23098 + # flag for every libtool invokation.
23099 + # allow_undefined=no
23100 +
23101 + # FIXME: Unfortunately, there are problems with the above when trying
23102 + # to make a dll which has undefined symbols, in which case not
23103 + # even a static library is built. For now, we need to specify
23104 + # -no-undefined on the libtool link line when we can be certain
23105 + # that all symbols are satisfied, otherwise we get a static library.
23106 + allow_undefined=yes
23107 + ;;
23108 + *)
23109 + allow_undefined=yes
23110 + ;;
23111 + esac
23112 + libtool_args="$nonopt"
23113 + compile_command="$nonopt"
23114 + finalize_command="$nonopt"
23115 +
23116 + compile_rpath=
23117 + finalize_rpath=
23118 + compile_shlibpath=
23119 + finalize_shlibpath=
23120 + convenience=
23121 + old_convenience=
23122 + deplibs=
23123 + old_deplibs=
23124 + compiler_flags=
23125 + linker_flags=
23126 + dllsearchpath=
23127 + lib_search_path=`pwd`
23128 + inst_prefix_dir=
23129 +
23130 + avoid_version=no
23131 + dlfiles=
23132 + dlprefiles=
23133 + dlself=no
23134 + export_dynamic=no
23135 + export_symbols=
23136 + export_symbols_regex=
23137 + generated=
23138 + libobjs=
23139 + ltlibs=
23140 + module=no
23141 + no_install=no
23142 + objs=
23143 + prefer_static_libs=no
23144 + preload=no
23145 + prev=
23146 + prevarg=
23147 + release=
23148 + rpath=
23149 + xrpath=
23150 + perm_rpath=
23151 + temp_rpath=
23152 + thread_safe=no
23153 + vinfo=
23154 +
23155 + # We need to know -static, to get the right output filenames.
23156 + for arg
23157 + do
23158 + case $arg in
23159 + -all-static | -static)
23160 + if test "X$arg" = "X-all-static"; then
23161 + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
23162 + $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
23163 + fi
23164 + if test -n "$link_static_flag"; then
23165 + dlopen_self=$dlopen_self_static
23166 + fi
23167 + else
23168 + if test -z "$pic_flag" && test -n "$link_static_flag"; then
23169 + dlopen_self=$dlopen_self_static
23170 + fi
23171 + fi
23172 + build_libtool_libs=no
23173 + build_old_libs=yes
23174 + prefer_static_libs=yes
23175 + break
23176 + ;;
23177 + esac
23178 + done
23179 +
23180 + # See if our shared archives depend on static archives.
23181 + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
23182 +
23183 + # Go through the arguments, transforming them on the way.
23184 + while test $# -gt 0; do
23185 + arg="$1"
23186 + shift
23187 + case $arg in
23188 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
23189 + qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
23190 + ;;
23191 + *) qarg=$arg ;;
23192 + esac
23193 + libtool_args="$libtool_args $qarg"
23194 +
23195 + # If the previous option needs an argument, assign it.
23196 + if test -n "$prev"; then
23197 + case $prev in
23198 + output)
23199 + compile_command="$compile_command @OUTPUT@"
23200 + finalize_command="$finalize_command @OUTPUT@"
23201 + ;;
23202 + esac
23203 +
23204 + case $prev in
23205 + dlfiles|dlprefiles)
23206 + if test "$preload" = no; then
23207 + # Add the symbol object into the linking commands.
23208 + compile_command="$compile_command @SYMFILE@"
23209 + finalize_command="$finalize_command @SYMFILE@"
23210 + preload=yes
23211 + fi
23212 + case $arg in
23213 + *.la | *.lo) ;; # We handle these cases below.
23214 + force)
23215 + if test "$dlself" = no; then
23216 + dlself=needless
23217 + export_dynamic=yes
23218 + fi
23219 + prev=
23220 + continue
23221 + ;;
23222 + self)
23223 + if test "$prev" = dlprefiles; then
23224 + dlself=yes
23225 + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
23226 + dlself=yes
23227 + else
23228 + dlself=needless
23229 + export_dynamic=yes
23230 + fi
23231 + prev=
23232 + continue
23233 + ;;
23234 + *)
23235 + if test "$prev" = dlfiles; then
23236 + dlfiles="$dlfiles $arg"
23237 + else
23238 + dlprefiles="$dlprefiles $arg"
23239 + fi
23240 + prev=
23241 + continue
23242 + ;;
23243 + esac
23244 + ;;
23245 + expsyms)
23246 + export_symbols="$arg"
23247 + if test ! -f "$arg"; then
23248 + $echo "$modename: symbol file \`$arg' does not exist"
23249 + exit 1
23250 + fi
23251 + prev=
23252 + continue
23253 + ;;
23254 + expsyms_regex)
23255 + export_symbols_regex="$arg"
23256 + prev=
23257 + continue
23258 + ;;
23259 + inst_prefix)
23260 + inst_prefix_dir="$arg"
23261 + prev=
23262 + continue
23263 + ;;
23264 + release)
23265 + release="-$arg"
23266 + prev=
23267 + continue
23268 + ;;
23269 + rpath | xrpath)
23270 + # We need an absolute path.
23271 + case $arg in
23272 + [\\/]* | [A-Za-z]:[\\/]*) ;;
23273 + *)
23274 + $echo "$modename: only absolute run-paths are allowed" 1>&2
23275 + exit 1
23276 + ;;
23277 + esac
23278 + if test "$prev" = rpath; then
23279 + case "$rpath " in
23280 + *" $arg "*) ;;
23281 + *) rpath="$rpath $arg" ;;
23282 + esac
23283 + else
23284 + case "$xrpath " in
23285 + *" $arg "*) ;;
23286 + *) xrpath="$xrpath $arg" ;;
23287 + esac
23288 + fi
23289 + prev=
23290 + continue
23291 + ;;
23292 + xcompiler)
23293 + compiler_flags="$compiler_flags $qarg"
23294 + prev=
23295 + compile_command="$compile_command $qarg"
23296 + finalize_command="$finalize_command $qarg"
23297 + continue
23298 + ;;
23299 + xlinker)
23300 + linker_flags="$linker_flags $qarg"
23301 + compiler_flags="$compiler_flags $wl$qarg"
23302 + prev=
23303 + compile_command="$compile_command $wl$qarg"
23304 + finalize_command="$finalize_command $wl$qarg"
23305 + continue
23306 + ;;
23307 + *)
23308 + eval "$prev=\"\$arg\""
23309 + prev=
23310 + continue
23311 + ;;
23312 + esac
23313 + fi # test -n $prev
23314 +
23315 + prevarg="$arg"
23316 +
23317 + case $arg in
23318 + -all-static)
23319 + if test -n "$link_static_flag"; then
23320 + compile_command="$compile_command $link_static_flag"
23321 + finalize_command="$finalize_command $link_static_flag"
23322 + fi
23323 + continue
23324 + ;;
23325 +
23326 + -allow-undefined)
23327 + # FIXME: remove this flag sometime in the future.
23328 + $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
23329 + continue
23330 + ;;
23331 +
23332 + -avoid-version)
23333 + avoid_version=yes
23334 + continue
23335 + ;;
23336 +
23337 + -dlopen)
23338 + prev=dlfiles
23339 + continue
23340 + ;;
23341 +
23342 + -dlpreopen)
23343 + prev=dlprefiles
23344 + continue
23345 + ;;
23346 +
23347 + -export-dynamic)
23348 + export_dynamic=yes
23349 + continue
23350 + ;;
23351 +
23352 + -export-symbols | -export-symbols-regex)
23353 + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
23354 + $echo "$modename: more than one -exported-symbols argument is not allowed"
23355 + exit 1
23356 + fi
23357 + if test "X$arg" = "X-export-symbols"; then
23358 + prev=expsyms
23359 + else
23360 + prev=expsyms_regex
23361 + fi
23362 + continue
23363 + ;;
23364 +
23365 + -inst-prefix-dir)
23366 + prev=inst_prefix
23367 + continue
23368 + ;;
23369 +
23370 + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
23371 + # so, if we see these flags be careful not to treat them like -L
23372 + -L[A-Z][A-Z]*:*)
23373 + if test -z "$with_gcc"; then
23374 + case $host in
23375 + *-*-irix* | *-*-nonstopux*)
23376 + compile_command="$compile_command $arg"
23377 + finalize_command="$finalize_command $arg"
23378 + ;;
23379 + esac
23380 + fi
23381 + continue
23382 + ;;
23383 +
23384 + -L*)
23385 + dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
23386 + # We need an absolute path.
23387 + case $dir in
23388 + [\\/]* | [A-Za-z]:[\\/]*) ;;
23389 + *)
23390 + absdir=`cd "$dir" && pwd`
23391 + if test -z "$absdir"; then
23392 + $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
23393 + exit 1
23394 + fi
23395 + dir="$absdir"
23396 + ;;
23397 + esac
23398 + case "$deplibs " in
23399 + *" -L$dir "*) ;;
23400 + *)
23401 + deplibs="$deplibs -L$dir"
23402 + lib_search_path="$lib_search_path $dir"
23403 + ;;
23404 + esac
23405 + case $host in
23406 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
23407 + case :$dllsearchpath: in
23408 + *":$dir:"*) ;;
23409 + *) dllsearchpath="$dllsearchpath:$dir";;
23410 + esac
23411 + ;;
23412 + esac
23413 + continue
23414 + ;;
23415 +
23416 + -l*)
23417 + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
23418 + case $host in
23419 + *-*-cygwin* | *-*-pw32* | *-*-beos*)
23420 + # These systems don't actually have a C or math library (as such)
23421 + continue
23422 + ;;
23423 + *-*-mingw* | *-*-os2*)
23424 + # These systems don't actually have a C library (as such)
23425 + test "X$arg" = "X-lc" && continue
23426 + ;;
23427 + *-*-openbsd* | *-*-freebsd*)
23428 + # Do not include libc due to us having libc/libc_r.
23429 + test "X$arg" = "X-lc" && continue
23430 + ;;
23431 + esac
23432 + elif test "X$arg" = "X-lc_r"; then
23433 + case $host in
23434 + *-*-openbsd* | *-*-freebsd*)
23435 + # Do not include libc_r directly, use -pthread flag.
23436 + continue
23437 + ;;
23438 + esac
23439 + fi
23440 + deplibs="$deplibs $arg"
23441 + continue
23442 + ;;
23443 +
23444 + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads)
23445 + deplibs="$deplibs $arg"
23446 + continue
23447 + ;;
23448 +
23449 + -module)
23450 + module=yes
23451 + continue
23452 + ;;
23453 +
23454 + -no-fast-install)
23455 + fast_install=no
23456 + continue
23457 + ;;
23458 +
23459 + -no-install)
23460 + case $host in
23461 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
23462 + # The PATH hackery in wrapper scripts is required on Windows
23463 + # in order for the loader to find any dlls it needs.
23464 + $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
23465 + $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
23466 + fast_install=no
23467 + ;;
23468 + *) no_install=yes ;;
23469 + esac
23470 + continue
23471 + ;;
23472 +
23473 + -no-undefined)
23474 + allow_undefined=no
23475 + continue
23476 + ;;
23477 +
23478 + -o) prev=output ;;
23479 +
23480 + -release)
23481 + prev=release
23482 + continue
23483 + ;;
23484 +
23485 + -rpath)
23486 + prev=rpath
23487 + continue
23488 + ;;
23489 +
23490 + -R)
23491 + prev=xrpath
23492 + continue
23493 + ;;
23494 +
23495 + -R*)
23496 + dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
23497 + # We need an absolute path.
23498 + case $dir in
23499 + [\\/]* | [A-Za-z]:[\\/]*) ;;
23500 + *)
23501 + $echo "$modename: only absolute run-paths are allowed" 1>&2
23502 + exit 1
23503 + ;;
23504 + esac
23505 + case "$xrpath " in
23506 + *" $dir "*) ;;
23507 + *) xrpath="$xrpath $dir" ;;
23508 + esac
23509 + continue
23510 + ;;
23511 +
23512 + -static)
23513 + # The effects of -static are defined in a previous loop.
23514 + # We used to do the same as -all-static on platforms that
23515 + # didn't have a PIC flag, but the assumption that the effects
23516 + # would be equivalent was wrong. It would break on at least
23517 + # Digital Unix and AIX.
23518 + continue
23519 + ;;
23520 +
23521 + -thread-safe)
23522 + thread_safe=yes
23523 + continue
23524 + ;;
23525 +
23526 + -version-info)
23527 + prev=vinfo
23528 + continue
23529 + ;;
23530 +
23531 + -Wc,*)
23532 + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
23533 + arg=
23534 + save_ifs="$IFS"; IFS=','
23535 + for flag in $args; do
23536 + IFS="$save_ifs"
23537 + case $flag in
23538 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
23539 + flag="\"$flag\""
23540 + ;;
23541 + esac
23542 + arg="$arg $wl$flag"
23543 + compiler_flags="$compiler_flags $flag"
23544 + done
23545 + IFS="$save_ifs"
23546 + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
23547 + ;;
23548 +
23549 + -Wl,*)
23550 + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
23551 + arg=
23552 + save_ifs="$IFS"; IFS=','
23553 + for flag in $args; do
23554 + IFS="$save_ifs"
23555 + case $flag in
23556 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
23557 + flag="\"$flag\""
23558 + ;;
23559 + esac
23560 + arg="$arg $wl$flag"
23561 + compiler_flags="$compiler_flags $wl$flag"
23562 + linker_flags="$linker_flags $flag"
23563 + done
23564 + IFS="$save_ifs"
23565 + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
23566 + ;;
23567 +
23568 + -Xcompiler)
23569 + prev=xcompiler
23570 + continue
23571 + ;;
23572 +
23573 + -Xlinker)
23574 + prev=xlinker
23575 + continue
23576 + ;;
23577 +
23578 + # Some other compiler flag.
23579 + -* | +*)
23580 + # Unknown arguments in both finalize_command and compile_command need
23581 + # to be aesthetically quoted because they are evaled later.
23582 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
23583 + case $arg in
23584 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
23585 + arg="\"$arg\""
23586 + ;;
23587 + esac
23588 + ;;
23589 +
23590 + *.lo | *.$objext)
23591 + # A library or standard object.
23592 + if test "$prev" = dlfiles; then
23593 + # This file was specified with -dlopen.
23594 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
23595 + dlfiles="$dlfiles $arg"
23596 + prev=
23597 + continue
23598 + else
23599 + # If libtool objects are unsupported, then we need to preload.
23600 + prev=dlprefiles
23601 + fi
23602 + fi
23603 +
23604 + if test "$prev" = dlprefiles; then
23605 + # Preload the old-style object.
23606 + dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"`
23607 + prev=
23608 + else
23609 + case $arg in
23610 + *.lo) libobjs="$libobjs $arg" ;;
23611 + *) objs="$objs $arg" ;;
23612 + esac
23613 + fi
23614 + ;;
23615 +
23616 + *.$libext)
23617 + # An archive.
23618 + deplibs="$deplibs $arg"
23619 + old_deplibs="$old_deplibs $arg"
23620 + continue
23621 + ;;
23622 +
23623 + *.la)
23624 + # A libtool-controlled library.
23625 +
23626 + if test "$prev" = dlfiles; then
23627 + # This library was specified with -dlopen.
23628 + dlfiles="$dlfiles $arg"
23629 + prev=
23630 + elif test "$prev" = dlprefiles; then
23631 + # The library was specified with -dlpreopen.
23632 + dlprefiles="$dlprefiles $arg"
23633 + prev=
23634 + else
23635 + deplibs="$deplibs $arg"
23636 + fi
23637 + continue
23638 + ;;
23639 +
23640 + # Some other compiler argument.
23641 + *)
23642 + # Unknown arguments in both finalize_command and compile_command need
23643 + # to be aesthetically quoted because they are evaled later.
23644 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
23645 + case $arg in
23646 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
23647 + arg="\"$arg\""
23648 + ;;
23649 + esac
23650 + ;;
23651 + esac # arg
23652 +
23653 + # Now actually substitute the argument into the commands.
23654 + if test -n "$arg"; then
23655 + compile_command="$compile_command $arg"
23656 + finalize_command="$finalize_command $arg"
23657 + fi
23658 + done # argument parsing loop
23659 +
23660 + if test -n "$prev"; then
23661 + $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
23662 + $echo "$help" 1>&2
23663 + exit 1
23664 + fi
23665 +
23666 + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
23667 + eval arg=\"$export_dynamic_flag_spec\"
23668 + compile_command="$compile_command $arg"
23669 + finalize_command="$finalize_command $arg"
23670 + fi
23671 +
23672 + # calculate the name of the file, without its directory
23673 + outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
23674 + libobjs_save="$libobjs"
23675 +
23676 + if test -n "$shlibpath_var"; then
23677 + # get the directories listed in $shlibpath_var
23678 + eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
23679 + else
23680 + shlib_search_path=
23681 + fi
23682 + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
23683 + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
23684 +
23685 + output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
23686 + if test "X$output_objdir" = "X$output"; then
23687 + output_objdir="$objdir"
23688 + else
23689 + output_objdir="$output_objdir/$objdir"
23690 + fi
23691 + # Create the object directory.
23692 + if test ! -d $output_objdir; then
23693 + $show "$mkdir $output_objdir"
23694 + $run $mkdir $output_objdir
23695 + status=$?
23696 + if test $status -ne 0 && test ! -d $output_objdir; then
23697 + exit $status
23698 + fi
23699 + fi
23700 +
23701 + # Determine the type of output
23702 + case $output in
23703 + "")
23704 + $echo "$modename: you must specify an output file" 1>&2
23705 + $echo "$help" 1>&2
23706 + exit 1
23707 + ;;
23708 + *.$libext) linkmode=oldlib ;;
23709 + *.lo | *.$objext) linkmode=obj ;;
23710 + *.la) linkmode=lib ;;
23711 + *) linkmode=prog ;; # Anything else should be a program.
23712 + esac
23713 +
23714 + specialdeplibs=
23715 + libs=
23716 + # Find all interdependent deplibs by searching for libraries
23717 + # that are linked more than once (e.g. -la -lb -la)
23718 + for deplib in $deplibs; do
23719 + if test "X$duplicate_deps" = "Xyes" ; then
23720 + case "$libs " in
23721 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
23722 + esac
23723 + fi
23724 + libs="$libs $deplib"
23725 + done
23726 + deplibs=
23727 + newdependency_libs=
23728 + newlib_search_path=
23729 + need_relink=no # whether we're linking any uninstalled libtool libraries
23730 + notinst_deplibs= # not-installed libtool libraries
23731 + notinst_path= # paths that contain not-installed libtool libraries
23732 + case $linkmode in
23733 + lib)
23734 + passes="conv link"
23735 + for file in $dlfiles $dlprefiles; do
23736 + case $file in
23737 + *.la) ;;
23738 + *)
23739 + $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
23740 + exit 1
23741 + ;;
23742 + esac
23743 + done
23744 + ;;
23745 + prog)
23746 + compile_deplibs=
23747 + finalize_deplibs=
23748 + alldeplibs=no
23749 + newdlfiles=
23750 + newdlprefiles=
23751 + passes="conv scan dlopen dlpreopen link"
23752 + ;;
23753 + *) passes="conv"
23754 + ;;
23755 + esac
23756 + for pass in $passes; do
23757 + if test $linkmode = prog; then
23758 + # Determine which files to process
23759 + case $pass in
23760 + dlopen)
23761 + libs="$dlfiles"
23762 + save_deplibs="$deplibs" # Collect dlpreopened libraries
23763 + deplibs=
23764 + ;;
23765 + dlpreopen) libs="$dlprefiles" ;;
23766 + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
23767 + esac
23768 + fi
23769 + for deplib in $libs; do
23770 + lib=
23771 + found=no
23772 + case $deplib in
23773 + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads)
23774 + if test "$linkmode,$pass" = "prog,link"; then
23775 + compile_deplibs="$deplib $compile_deplibs"
23776 + finalize_deplibs="$deplib $finalize_deplibs"
23777 + else
23778 + deplibs="$deplib $deplibs"
23779 + fi
23780 + continue
23781 + ;;
23782 + -l*)
23783 + if test $linkmode = oldlib && test $linkmode = obj; then
23784 + $echo "$modename: warning: \`-l' is ignored for archives/objects: $deplib" 1>&2
23785 + continue
23786 + fi
23787 + if test $pass = conv; then
23788 + deplibs="$deplib $deplibs"
23789 + continue
23790 + fi
23791 + name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
23792 + for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
23793 + # Search the libtool library
23794 + lib="$searchdir/lib${name}.la"
23795 + if test -f "$lib"; then
23796 + found=yes
23797 + break
23798 + fi
23799 + done
23800 + if test "$found" != yes; then
23801 + # deplib doesn't seem to be a libtool library
23802 + if test "$linkmode,$pass" = "prog,link"; then
23803 + compile_deplibs="$deplib $compile_deplibs"
23804 + finalize_deplibs="$deplib $finalize_deplibs"
23805 + else
23806 + deplibs="$deplib $deplibs"
23807 + test $linkmode = lib && newdependency_libs="$deplib $newdependency_libs"
23808 + fi
23809 + continue
23810 + fi
23811 + ;; # -l
23812 + -L*)
23813 + case $linkmode in
23814 + lib)
23815 + deplibs="$deplib $deplibs"
23816 + test $pass = conv && continue
23817 + newdependency_libs="$deplib $newdependency_libs"
23818 + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
23819 + ;;
23820 + prog)
23821 + if test $pass = conv; then
23822 + deplibs="$deplib $deplibs"
23823 + continue
23824 + fi
23825 + if test $pass = scan; then
23826 + deplibs="$deplib $deplibs"
23827 + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
23828 + else
23829 + compile_deplibs="$deplib $compile_deplibs"
23830 + finalize_deplibs="$deplib $finalize_deplibs"
23831 + fi
23832 + ;;
23833 + *)
23834 + $echo "$modename: warning: \`-L' is ignored for archives/objects: $deplib" 1>&2
23835 + ;;
23836 + esac # linkmode
23837 + continue
23838 + ;; # -L
23839 + -R*)
23840 + if test $pass = link; then
23841 + dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
23842 + # Make sure the xrpath contains only unique directories.
23843 + case "$xrpath " in
23844 + *" $dir "*) ;;
23845 + *) xrpath="$xrpath $dir" ;;
23846 + esac
23847 + fi
23848 + deplibs="$deplib $deplibs"
23849 + continue
23850 + ;;
23851 + *.la) lib="$deplib" ;;
23852 + *.$libext)
23853 + if test $pass = conv; then
23854 + deplibs="$deplib $deplibs"
23855 + continue
23856 + fi
23857 + case $linkmode in
23858 + lib)
23859 + if test "$deplibs_check_method" != pass_all; then
23860 + echo
23861 + echo "*** Warning: Trying to link with static lib archive $deplib."
23862 + echo "*** I have the capability to make that library automatically link in when"
23863 + echo "*** you link to this library. But I can only do this if you have a"
23864 + echo "*** shared version of the library, which you do not appear to have"
23865 + echo "*** because the file extensions .$libext of this argument makes me believe"
23866 + echo "*** that it is just a static archive that I should not used here."
23867 + else
23868 + echo
23869 + echo "*** Warning: Linking the shared library $output against the"
23870 + echo "*** static library $deplib is not portable!"
23871 + deplibs="$deplib $deplibs"
23872 + fi
23873 + continue
23874 + ;;
23875 + prog)
23876 + if test $pass != link; then
23877 + deplibs="$deplib $deplibs"
23878 + else
23879 + compile_deplibs="$deplib $compile_deplibs"
23880 + finalize_deplibs="$deplib $finalize_deplibs"
23881 + fi
23882 + continue
23883 + ;;
23884 + esac # linkmode
23885 + ;; # *.$libext
23886 + *.lo | *.$objext)
23887 + if test $pass = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
23888 + # If there is no dlopen support or we're linking statically,
23889 + # we need to preload.
23890 + newdlprefiles="$newdlprefiles $deplib"
23891 + compile_deplibs="$deplib $compile_deplibs"
23892 + finalize_deplibs="$deplib $finalize_deplibs"
23893 + else
23894 + newdlfiles="$newdlfiles $deplib"
23895 + fi
23896 + continue
23897 + ;;
23898 + %DEPLIBS%)
23899 + alldeplibs=yes
23900 + continue
23901 + ;;
23902 + esac # case $deplib
23903 + if test $found = yes || test -f "$lib"; then :
23904 + else
23905 + $echo "$modename: cannot find the library \`$lib'" 1>&2
23906 + exit 1
23907 + fi
23908 +
23909 + # Check to see that this really is a libtool archive.
23910 + if (${SED} -e '2q' $lib | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
23911 + else
23912 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
23913 + exit 1
23914 + fi
23915 +
23916 + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
23917 + test "X$ladir" = "X$lib" && ladir="."
23918 +
23919 + dlname=
23920 + dlopen=
23921 + dlpreopen=
23922 + libdir=
23923 + library_names=
23924 + old_library=
23925 + # If the library was installed with an old release of libtool,
23926 + # it will not redefine variable installed.
23927 + installed=yes
23928 +
23929 + # Read the .la file
23930 + case $lib in
23931 + */* | *\\*) . $lib ;;
23932 + *) . ./$lib ;;
23933 + esac
23934 +
23935 + if test "$linkmode,$pass" = "lib,link" ||
23936 + test "$linkmode,$pass" = "prog,scan" ||
23937 + { test $linkmode = oldlib && test $linkmode = obj; }; then
23938 + # Add dl[pre]opened files of deplib
23939 + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
23940 + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
23941 + fi
23942 +
23943 + if test $pass = conv; then
23944 + # Only check for convenience libraries
23945 + deplibs="$lib $deplibs"
23946 + if test -z "$libdir"; then
23947 + if test -z "$old_library"; then
23948 + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
23949 + exit 1
23950 + fi
23951 + # It is a libtool convenience library, so add in its objects.
23952 + convenience="$convenience $ladir/$objdir/$old_library"
23953 + old_convenience="$old_convenience $ladir/$objdir/$old_library"
23954 + tmp_libs=
23955 + for deplib in $dependency_libs; do
23956 + deplibs="$deplib $deplibs"
23957 + if test "X$duplicate_deps" = "Xyes" ; then
23958 + case "$tmp_libs " in
23959 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
23960 + esac
23961 + fi
23962 + tmp_libs="$tmp_libs $deplib"
23963 + done
23964 + elif test $linkmode != prog && test $linkmode != lib; then
23965 + $echo "$modename: \`$lib' is not a convenience library" 1>&2
23966 + exit 1
23967 + fi
23968 + continue
23969 + fi # $pass = conv
23970 +
23971 + # Get the name of the library we link against.
23972 + linklib=
23973 + for l in $old_library $library_names; do
23974 + linklib="$l"
23975 + done
23976 + if test -z "$linklib"; then
23977 + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
23978 + exit 1
23979 + fi
23980 +
23981 + # This library was specified with -dlopen.
23982 + if test $pass = dlopen; then
23983 + if test -z "$libdir"; then
23984 + $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
23985 + exit 1
23986 + fi
23987 + if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
23988 + # If there is no dlname, no dlopen support or we're linking
23989 + # statically, we need to preload.
23990 + dlprefiles="$dlprefiles $lib"
23991 + else
23992 + newdlfiles="$newdlfiles $lib"
23993 + fi
23994 + continue
23995 + fi # $pass = dlopen
23996 +
23997 + # We need an absolute path.
23998 + case $ladir in
23999 + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
24000 + *)
24001 + abs_ladir=`cd "$ladir" && pwd`
24002 + if test -z "$abs_ladir"; then
24003 + $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
24004 + $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
24005 + abs_ladir="$ladir"
24006 + fi
24007 + ;;
24008 + esac
24009 + laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
24010 +
24011 + # Find the relevant object directory and library name.
24012 + if test "X$installed" = Xyes; then
24013 + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
24014 + $echo "$modename: warning: library \`$lib' was moved." 1>&2
24015 + dir="$ladir"
24016 + absdir="$abs_ladir"
24017 + libdir="$abs_ladir"
24018 + else
24019 + dir="$libdir"
24020 + absdir="$libdir"
24021 + fi
24022 + else
24023 + dir="$ladir/$objdir"
24024 + absdir="$abs_ladir/$objdir"
24025 + # Remove this search path later
24026 + notinst_path="$notinst_path $abs_ladir"
24027 + fi # $installed = yes
24028 + name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
24029 +
24030 + # This library was specified with -dlpreopen.
24031 + if test $pass = dlpreopen; then
24032 + if test -z "$libdir"; then
24033 + $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
24034 + exit 1
24035 + fi
24036 + # Prefer using a static library (so that no silly _DYNAMIC symbols
24037 + # are required to link).
24038 + if test -n "$old_library"; then
24039 + newdlprefiles="$newdlprefiles $dir/$old_library"
24040 + # Otherwise, use the dlname, so that lt_dlopen finds it.
24041 + elif test -n "$dlname"; then
24042 + newdlprefiles="$newdlprefiles $dir/$dlname"
24043 + else
24044 + newdlprefiles="$newdlprefiles $dir/$linklib"
24045 + fi
24046 + fi # $pass = dlpreopen
24047 +
24048 + if test -z "$libdir"; then
24049 + # Link the convenience library
24050 + if test $linkmode = lib; then
24051 + deplibs="$dir/$old_library $deplibs"
24052 + elif test "$linkmode,$pass" = "prog,link"; then
24053 + compile_deplibs="$dir/$old_library $compile_deplibs"
24054 + finalize_deplibs="$dir/$old_library $finalize_deplibs"
24055 + else
24056 + deplibs="$lib $deplibs"
24057 + fi
24058 + continue
24059 + fi
24060 +
24061 + if test $linkmode = prog && test $pass != link; then
24062 + newlib_search_path="$newlib_search_path $ladir"
24063 + deplibs="$lib $deplibs"
24064 +
24065 + linkalldeplibs=no
24066 + if test "$link_all_deplibs" != no || test -z "$library_names" ||
24067 + test "$build_libtool_libs" = no; then
24068 + linkalldeplibs=yes
24069 + fi
24070 +
24071 + tmp_libs=
24072 + for deplib in $dependency_libs; do
24073 + case $deplib in
24074 + -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
24075 + esac
24076 + # Need to link against all dependency_libs?
24077 + if test $linkalldeplibs = yes; then
24078 + deplibs="$deplib $deplibs"
24079 + else
24080 + # Need to hardcode shared library paths
24081 + # or/and link against static libraries
24082 + newdependency_libs="$deplib $newdependency_libs"
24083 + fi
24084 + if test "X$duplicate_deps" = "Xyes" ; then
24085 + case "$tmp_libs " in
24086 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
24087 + esac
24088 + fi
24089 + tmp_libs="$tmp_libs $deplib"
24090 + done # for deplib
24091 + continue
24092 + fi # $linkmode = prog...
24093 +
24094 + link_static=no # Whether the deplib will be linked statically
24095 + if test -n "$library_names" &&
24096 + { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
24097 + # Link against this shared library
24098 +
24099 + if test "$linkmode,$pass" = "prog,link" ||
24100 + { test $linkmode = lib && test $hardcode_into_libs = yes; }; then
24101 + # Hardcode the library path.
24102 + # Skip directories that are in the system default run-time
24103 + # search path.
24104 + case " $sys_lib_dlsearch_path " in
24105 + *" $absdir "*) ;;
24106 + *)
24107 + case "$compile_rpath " in
24108 + *" $absdir "*) ;;
24109 + *) compile_rpath="$compile_rpath $absdir"
24110 + esac
24111 + ;;
24112 + esac
24113 + case " $sys_lib_dlsearch_path " in
24114 + *" $libdir "*) ;;
24115 + *)
24116 + case "$finalize_rpath " in
24117 + *" $libdir "*) ;;
24118 + *) finalize_rpath="$finalize_rpath $libdir"
24119 + esac
24120 + ;;
24121 + esac
24122 + if test $linkmode = prog; then
24123 + # We need to hardcode the library path
24124 + if test -n "$shlibpath_var"; then
24125 + # Make sure the rpath contains only unique directories.
24126 + case "$temp_rpath " in
24127 + *" $dir "*) ;;
24128 + *" $absdir "*) ;;
24129 + *) temp_rpath="$temp_rpath $dir" ;;
24130 + esac
24131 + fi
24132 + fi
24133 + fi # $linkmode,$pass = prog,link...
24134 +
24135 + if test "$alldeplibs" = yes &&
24136 + { test "$deplibs_check_method" = pass_all ||
24137 + { test "$build_libtool_libs" = yes &&
24138 + test -n "$library_names"; }; }; then
24139 + # We only need to search for static libraries
24140 + continue
24141 + fi
24142 +
24143 + if test "$installed" = no; then
24144 + notinst_deplibs="$notinst_deplibs $lib"
24145 + need_relink=yes
24146 + fi
24147 +
24148 + if test -n "$old_archive_from_expsyms_cmds"; then
24149 + # figure out the soname
24150 + set dummy $library_names
24151 + realname="$2"
24152 + shift; shift
24153 + libname=`eval \\$echo \"$libname_spec\"`
24154 + # use dlname if we got it. it's perfectly good, no?
24155 + if test -n "$dlname"; then
24156 + soname="$dlname"
24157 + elif test -n "$soname_spec"; then
24158 + # bleh windows
24159 + case $host in
24160 + *cygwin*)
24161 + major=`expr $current - $age`
24162 + versuffix="-$major"
24163 + ;;
24164 + esac
24165 + eval soname=\"$soname_spec\"
24166 + else
24167 + soname="$realname"
24168 + fi
24169 +
24170 + # Make a new name for the extract_expsyms_cmds to use
24171 + soroot="$soname"
24172 + soname=`echo $soroot | ${SED} -e 's/^.*\///'`
24173 + newlib="libimp-`echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
24174 +
24175 + # If the library has no export list, then create one now
24176 + if test -f "$output_objdir/$soname-def"; then :
24177 + else
24178 + $show "extracting exported symbol list from \`$soname'"
24179 + save_ifs="$IFS"; IFS='~'
24180 + eval cmds=\"$extract_expsyms_cmds\"
24181 + for cmd in $cmds; do
24182 + IFS="$save_ifs"
24183 + $show "$cmd"
24184 + $run eval "$cmd" || exit $?
24185 + done
24186 + IFS="$save_ifs"
24187 + fi
24188 +
24189 + # Create $newlib
24190 + if test -f "$output_objdir/$newlib"; then :; else
24191 + $show "generating import library for \`$soname'"
24192 + save_ifs="$IFS"; IFS='~'
24193 + eval cmds=\"$old_archive_from_expsyms_cmds\"
24194 + for cmd in $cmds; do
24195 + IFS="$save_ifs"
24196 + $show "$cmd"
24197 + $run eval "$cmd" || exit $?
24198 + done
24199 + IFS="$save_ifs"
24200 + fi
24201 + # make sure the library variables are pointing to the new library
24202 + dir=$output_objdir
24203 + linklib=$newlib
24204 + fi # test -n $old_archive_from_expsyms_cmds
24205 +
24206 + if test $linkmode = prog || test "$mode" != relink; then
24207 + add_shlibpath=
24208 + add_dir=
24209 + add=
24210 + lib_linked=yes
24211 + case $hardcode_action in
24212 + immediate | unsupported)
24213 + if test "$hardcode_direct" = no; then
24214 + add="$dir/$linklib"
24215 + elif test "$hardcode_minus_L" = no; then
24216 + case $host in
24217 + *-*-sunos*) add_shlibpath="$dir" ;;
24218 + esac
24219 + add_dir="-L$dir"
24220 + add="-l$name"
24221 + elif test "$hardcode_shlibpath_var" = no; then
24222 + add_shlibpath="$dir"
24223 + add="-l$name"
24224 + else
24225 + lib_linked=no
24226 + fi
24227 + ;;
24228 + relink)
24229 + if test "$hardcode_direct" = yes; then
24230 + add="$dir/$linklib"
24231 + elif test "$hardcode_minus_L" = yes; then
24232 + add_dir="-L$dir"
24233 + # Try looking first in the location we're being installed to.
24234 + if test -n "$inst_prefix_dir"; then
24235 + case "$libdir" in
24236 + [\/]*)
24237 + add_dir="$add_dir -L$inst_prefix_dir$libdir"
24238 + ;;
24239 + esac
24240 + fi
24241 + add="-l$name"
24242 + elif test "$hardcode_shlibpath_var" = yes; then
24243 + add_shlibpath="$dir"
24244 + add="-l$name"
24245 + else
24246 + lib_linked=no
24247 + fi
24248 + ;;
24249 + *) lib_linked=no ;;
24250 + esac
24251 +
24252 + if test "$lib_linked" != yes; then
24253 + $echo "$modename: configuration error: unsupported hardcode properties"
24254 + exit 1
24255 + fi
24256 +
24257 + if test -n "$add_shlibpath"; then
24258 + case :$compile_shlibpath: in
24259 + *":$add_shlibpath:"*) ;;
24260 + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
24261 + esac
24262 + fi
24263 + if test $linkmode = prog; then
24264 + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
24265 + test -n "$add" && compile_deplibs="$add $compile_deplibs"
24266 + else
24267 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
24268 + test -n "$add" && deplibs="$add $deplibs"
24269 + if test "$hardcode_direct" != yes && \
24270 + test "$hardcode_minus_L" != yes && \
24271 + test "$hardcode_shlibpath_var" = yes; then
24272 + case :$finalize_shlibpath: in
24273 + *":$libdir:"*) ;;
24274 + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
24275 + esac
24276 + fi
24277 + fi
24278 + fi
24279 +
24280 + if test $linkmode = prog || test "$mode" = relink; then
24281 + add_shlibpath=
24282 + add_dir=
24283 + add=
24284 + # Finalize command for both is simple: just hardcode it.
24285 + if test "$hardcode_direct" = yes; then
24286 + add="$libdir/$linklib"
24287 + elif test "$hardcode_minus_L" = yes; then
24288 + add_dir="-L$libdir"
24289 + add="-l$name"
24290 + elif test "$hardcode_shlibpath_var" = yes; then
24291 + case :$finalize_shlibpath: in
24292 + *":$libdir:"*) ;;
24293 + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
24294 + esac
24295 + add="-l$name"
24296 + else
24297 + # We cannot seem to hardcode it, guess we'll fake it.
24298 + add_dir="-L$libdir"
24299 + # Try looking first in the location we're being installed to.
24300 + if test -n "$inst_prefix_dir"; then
24301 + case "$libdir" in
24302 + [\/]*)
24303 + add_dir="$add_dir -L$inst_prefix_dir$libdir"
24304 + ;;
24305 + esac
24306 + fi
24307 + add="-l$name"
24308 + fi
24309 +
24310 + if test $linkmode = prog; then
24311 + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
24312 + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
24313 + else
24314 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
24315 + test -n "$add" && deplibs="$add $deplibs"
24316 + fi
24317 + fi
24318 + elif test $linkmode = prog; then
24319 + if test "$alldeplibs" = yes &&
24320 + { test "$deplibs_check_method" = pass_all ||
24321 + { test "$build_libtool_libs" = yes &&
24322 + test -n "$library_names"; }; }; then
24323 + # We only need to search for static libraries
24324 + continue
24325 + fi
24326 +
24327 + # Try to link the static library
24328 + # Here we assume that one of hardcode_direct or hardcode_minus_L
24329 + # is not unsupported. This is valid on all known static and
24330 + # shared platforms.
24331 + if test "$hardcode_direct" != unsupported; then
24332 + test -n "$old_library" && linklib="$old_library"
24333 + compile_deplibs="$dir/$linklib $compile_deplibs"
24334 + finalize_deplibs="$dir/$linklib $finalize_deplibs"
24335 + else
24336 + compile_deplibs="-l$name -L$dir $compile_deplibs"
24337 + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
24338 + fi
24339 + elif test "$build_libtool_libs" = yes; then
24340 + # Not a shared library
24341 + if test "$deplibs_check_method" != pass_all; then
24342 + # We're trying link a shared library against a static one
24343 + # but the system doesn't support it.
24344 +
24345 + # Just print a warning and add the library to dependency_libs so
24346 + # that the program can be linked against the static library.
24347 + echo
24348 + echo "*** Warning: This system can not link to static lib archive $lib."
24349 + echo "*** I have the capability to make that library automatically link in when"
24350 + echo "*** you link to this library. But I can only do this if you have a"
24351 + echo "*** shared version of the library, which you do not appear to have."
24352 + if test "$module" = yes; then
24353 + echo "*** But as you try to build a module library, libtool will still create "
24354 + echo "*** a static module, that should work as long as the dlopening application"
24355 + echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
24356 + if test -z "$global_symbol_pipe"; then
24357 + echo
24358 + echo "*** However, this would only work if libtool was able to extract symbol"
24359 + echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
24360 + echo "*** not find such a program. So, this module is probably useless."
24361 + echo "*** \`nm' from GNU binutils and a full rebuild may help."
24362 + fi
24363 + if test "$build_old_libs" = no; then
24364 + build_libtool_libs=module
24365 + build_old_libs=yes
24366 + else
24367 + build_libtool_libs=no
24368 + fi
24369 + fi
24370 + else
24371 + convenience="$convenience $dir/$old_library"
24372 + old_convenience="$old_convenience $dir/$old_library"
24373 + deplibs="$dir/$old_library $deplibs"
24374 + link_static=yes
24375 + fi
24376 + fi # link shared/static library?
24377 +
24378 + if test $linkmode = lib; then
24379 + if test -n "$dependency_libs" &&
24380 + { test $hardcode_into_libs != yes || test $build_old_libs = yes ||
24381 + test $link_static = yes; }; then
24382 + # Extract -R from dependency_libs
24383 + temp_deplibs=
24384 + for libdir in $dependency_libs; do
24385 + case $libdir in
24386 + -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
24387 + case " $xrpath " in
24388 + *" $temp_xrpath "*) ;;
24389 + *) xrpath="$xrpath $temp_xrpath";;
24390 + esac;;
24391 + *) temp_deplibs="$temp_deplibs $libdir";;
24392 + esac
24393 + done
24394 + dependency_libs="$temp_deplibs"
24395 + fi
24396 +
24397 + newlib_search_path="$newlib_search_path $absdir"
24398 + # Link against this library
24399 + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
24400 + # ... and its dependency_libs
24401 + tmp_libs=
24402 + for deplib in $dependency_libs; do
24403 + newdependency_libs="$deplib $newdependency_libs"
24404 + if test "X$duplicate_deps" = "Xyes" ; then
24405 + case "$tmp_libs " in
24406 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
24407 + esac
24408 + fi
24409 + tmp_libs="$tmp_libs $deplib"
24410 + done
24411 +
24412 + if test $link_all_deplibs != no; then
24413 + # Add the search paths of all dependency libraries
24414 + for deplib in $dependency_libs; do
24415 + case $deplib in
24416 + -L*) path="$deplib" ;;
24417 + *.la)
24418 + dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
24419 + test "X$dir" = "X$deplib" && dir="."
24420 + # We need an absolute path.
24421 + case $dir in
24422 + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
24423 + *)
24424 + absdir=`cd "$dir" && pwd`
24425 + if test -z "$absdir"; then
24426 + $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
24427 + absdir="$dir"
24428 + fi
24429 + ;;
24430 + esac
24431 + if grep "^installed=no" $deplib > /dev/null; then
24432 + path="-L$absdir/$objdir"
24433 + else
24434 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
24435 + if test -z "$libdir"; then
24436 + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
24437 + exit 1
24438 + fi
24439 + if test "$absdir" != "$libdir"; then
24440 + $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
24441 + fi
24442 + path="-L$absdir"
24443 + fi
24444 + ;;
24445 + *) continue ;;
24446 + esac
24447 + case " $deplibs " in
24448 + *" $path "*) ;;
24449 + *) deplibs="$deplibs $path" ;;
24450 + esac
24451 + done
24452 + fi # link_all_deplibs != no
24453 + fi # linkmode = lib
24454 + done # for deplib in $libs
24455 + if test $pass = dlpreopen; then
24456 + # Link the dlpreopened libraries before other libraries
24457 + for deplib in $save_deplibs; do
24458 + deplibs="$deplib $deplibs"
24459 + done
24460 + fi
24461 + if test $pass != dlopen; then
24462 + test $pass != scan && dependency_libs="$newdependency_libs"
24463 + if test $pass != conv; then
24464 + # Make sure lib_search_path contains only unique directories.
24465 + lib_search_path=
24466 + for dir in $newlib_search_path; do
24467 + case "$lib_search_path " in
24468 + *" $dir "*) ;;
24469 + *) lib_search_path="$lib_search_path $dir" ;;
24470 + esac
24471 + done
24472 + newlib_search_path=
24473 + fi
24474 +
24475 + if test "$linkmode,$pass" != "prog,link"; then
24476 + vars="deplibs"
24477 + else
24478 + vars="compile_deplibs finalize_deplibs"
24479 + fi
24480 + for var in $vars dependency_libs; do
24481 + # Add libraries to $var in reverse order
24482 + eval tmp_libs=\"\$$var\"
24483 + new_libs=
24484 + for deplib in $tmp_libs; do
24485 + case $deplib in
24486 + -L*) new_libs="$deplib $new_libs" ;;
24487 + *)
24488 + case " $specialdeplibs " in
24489 + *" $deplib "*) new_libs="$deplib $new_libs" ;;
24490 + *)
24491 + case " $new_libs " in
24492 + *" $deplib "*) ;;
24493 + *) new_libs="$deplib $new_libs" ;;
24494 + esac
24495 + ;;
24496 + esac
24497 + ;;
24498 + esac
24499 + done
24500 + tmp_libs=
24501 + for deplib in $new_libs; do
24502 + case $deplib in
24503 + -L*)
24504 + case " $tmp_libs " in
24505 + *" $deplib "*) ;;
24506 + *) tmp_libs="$tmp_libs $deplib" ;;
24507 + esac
24508 + ;;
24509 + *) tmp_libs="$tmp_libs $deplib" ;;
24510 + esac
24511 + done
24512 + eval $var=\"$tmp_libs\"
24513 + done # for var
24514 + fi
24515 + if test "$pass" = "conv" &&
24516 + { test "$linkmode" = "lib" || test "$linkmode" = "prog"; }; then
24517 + libs="$deplibs" # reset libs
24518 + deplibs=
24519 + fi
24520 + done # for pass
24521 + if test $linkmode = prog; then
24522 + dlfiles="$newdlfiles"
24523 + dlprefiles="$newdlprefiles"
24524 + fi
24525 +
24526 + case $linkmode in
24527 + oldlib)
24528 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
24529 + $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
24530 + fi
24531 +
24532 + if test -n "$rpath"; then
24533 + $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
24534 + fi
24535 +
24536 + if test -n "$xrpath"; then
24537 + $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
24538 + fi
24539 +
24540 + if test -n "$vinfo"; then
24541 + $echo "$modename: warning: \`-version-info' is ignored for archives" 1>&2
24542 + fi
24543 +
24544 + if test -n "$release"; then
24545 + $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
24546 + fi
24547 +
24548 + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
24549 + $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
24550 + fi
24551 +
24552 + # Now set the variables for building old libraries.
24553 + build_libtool_libs=no
24554 + oldlibs="$output"
24555 + objs="$objs$old_deplibs"
24556 + ;;
24557 +
24558 + lib)
24559 + # Make sure we only generate libraries of the form `libNAME.la'.
24560 + case $outputname in
24561 + lib*)
24562 + name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
24563 + eval libname=\"$libname_spec\"
24564 + ;;
24565 + *)
24566 + if test "$module" = no; then
24567 + $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
24568 + $echo "$help" 1>&2
24569 + exit 1
24570 + fi
24571 + if test "$need_lib_prefix" != no; then
24572 + # Add the "lib" prefix for modules if required
24573 + name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
24574 + eval libname=\"$libname_spec\"
24575 + else
24576 + libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
24577 + fi
24578 + ;;
24579 + esac
24580 +
24581 + if test -n "$objs"; then
24582 + if test "$deplibs_check_method" != pass_all; then
24583 + $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
24584 + exit 1
24585 + else
24586 + echo
24587 + echo "*** Warning: Linking the shared library $output against the non-libtool"
24588 + echo "*** objects $objs is not portable!"
24589 + libobjs="$libobjs $objs"
24590 + fi
24591 + fi
24592 +
24593 + if test "$dlself" != no; then
24594 + $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
24595 + fi
24596 +
24597 + set dummy $rpath
24598 + if test $# -gt 2; then
24599 + $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
24600 + fi
24601 + install_libdir="$2"
24602 +
24603 + oldlibs=
24604 + if test -z "$rpath"; then
24605 + if test "$build_libtool_libs" = yes; then
24606 + # Building a libtool convenience library.
24607 + libext=al
24608 + oldlibs="$output_objdir/$libname.$libext $oldlibs"
24609 + build_libtool_libs=convenience
24610 + build_old_libs=yes
24611 + fi
24612 +
24613 + if test -n "$vinfo"; then
24614 + $echo "$modename: warning: \`-version-info' is ignored for convenience libraries" 1>&2
24615 + fi
24616 +
24617 + if test -n "$release"; then
24618 + $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
24619 + fi
24620 + else
24621 +
24622 + # Parse the version information argument.
24623 + save_ifs="$IFS"; IFS=':'
24624 + set dummy $vinfo 0 0 0
24625 + IFS="$save_ifs"
24626 +
24627 + if test -n "$8"; then
24628 + $echo "$modename: too many parameters to \`-version-info'" 1>&2
24629 + $echo "$help" 1>&2
24630 + exit 1
24631 + fi
24632 +
24633 + current="$2"
24634 + revision="$3"
24635 + age="$4"
24636 +
24637 + # Check that each of the things are valid numbers.
24638 + case $current in
24639 + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
24640 + *)
24641 + $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
24642 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
24643 + exit 1
24644 + ;;
24645 + esac
24646 +
24647 + case $revision in
24648 + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
24649 + *)
24650 + $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
24651 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
24652 + exit 1
24653 + ;;
24654 + esac
24655 +
24656 + case $age in
24657 + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
24658 + *)
24659 + $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
24660 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
24661 + exit 1
24662 + ;;
24663 + esac
24664 +
24665 + if test $age -gt $current; then
24666 + $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
24667 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
24668 + exit 1
24669 + fi
24670 +
24671 + # Calculate the version variables.
24672 + major=
24673 + versuffix=
24674 + verstring=
24675 + case $version_type in
24676 + none) ;;
24677 +
24678 + darwin)
24679 + # Like Linux, but with the current version available in
24680 + # verstring for coding it into the library header
24681 + major=.`expr $current - $age`
24682 + versuffix="$major.$age.$revision"
24683 + # Darwin ld doesn't like 0 for these options...
24684 + minor_current=`expr $current + 1`
24685 + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
24686 + ;;
24687 +
24688 + freebsd-aout)
24689 + major=".$current"
24690 + versuffix=".$current.$revision";
24691 + ;;
24692 +
24693 + freebsd-elf)
24694 + major=".$current"
24695 + versuffix=".$current";
24696 + ;;
24697 +
24698 + irix | nonstopux)
24699 + major=`expr $current - $age + 1`
24700 +
24701 + case $version_type in
24702 + nonstopux) verstring_prefix=nonstopux ;;
24703 + *) verstring_prefix=sgi ;;
24704 + esac
24705 + verstring="$verstring_prefix$major.$revision"
24706 +
24707 + # Add in all the interfaces that we are compatible with.
24708 + loop=$revision
24709 + while test $loop != 0; do
24710 + iface=`expr $revision - $loop`
24711 + loop=`expr $loop - 1`
24712 + verstring="$verstring_prefix$major.$iface:$verstring"
24713 + done
24714 +
24715 + # Before this point, $major must not contain `.'.
24716 + major=.$major
24717 + versuffix="$major.$revision"
24718 + ;;
24719 +
24720 + linux)
24721 + major=.`expr $current - $age`
24722 + versuffix="$major.$age.$revision"
24723 + ;;
24724 +
24725 + osf)
24726 + major=.`expr $current - $age`
24727 + versuffix=".$current.$age.$revision"
24728 + verstring="$current.$age.$revision"
24729 +
24730 + # Add in all the interfaces that we are compatible with.
24731 + loop=$age
24732 + while test $loop != 0; do
24733 + iface=`expr $current - $loop`
24734 + loop=`expr $loop - 1`
24735 + verstring="$verstring:${iface}.0"
24736 + done
24737 +
24738 + # Make executables depend on our current version.
24739 + verstring="$verstring:${current}.0"
24740 + ;;
24741 +
24742 + sunos)
24743 + major=".$current"
24744 + versuffix=".$current.$revision"
24745 + ;;
24746 +
24747 + windows)
24748 + # Use '-' rather than '.', since we only want one
24749 + # extension on DOS 8.3 filesystems.
24750 + major=`expr $current - $age`
24751 + versuffix="-$major"
24752 + ;;
24753 +
24754 + *)
24755 + $echo "$modename: unknown library version type \`$version_type'" 1>&2
24756 + echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
24757 + exit 1
24758 + ;;
24759 + esac
24760 +
24761 + # Clear the version info if we defaulted, and they specified a release.
24762 + if test -z "$vinfo" && test -n "$release"; then
24763 + major=
24764 + verstring="0.0"
24765 + case $version_type in
24766 + darwin)
24767 + # we can't check for "0.0" in archive_cmds due to quoting
24768 + # problems, so we reset it completely
24769 + verstring=""
24770 + ;;
24771 + *)
24772 + verstring="0.0"
24773 + ;;
24774 + esac
24775 + if test "$need_version" = no; then
24776 + versuffix=
24777 + else
24778 + versuffix=".0.0"
24779 + fi
24780 + fi
24781 +
24782 + # Remove version info from name if versioning should be avoided
24783 + if test "$avoid_version" = yes && test "$need_version" = no; then
24784 + major=
24785 + versuffix=
24786 + verstring=""
24787 + fi
24788 +
24789 + # Check to see if the archive will have undefined symbols.
24790 + if test "$allow_undefined" = yes; then
24791 + if test "$allow_undefined_flag" = unsupported; then
24792 + $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
24793 + build_libtool_libs=no
24794 + build_old_libs=yes
24795 + fi
24796 + else
24797 + # Don't allow undefined symbols.
24798 + allow_undefined_flag="$no_undefined_flag"
24799 + fi
24800 + fi
24801 +
24802 + if test "$mode" != relink; then
24803 + # Remove our outputs.
24804 + $show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*"
24805 + $run ${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*
24806 + fi
24807 +
24808 + # Now set the variables for building old libraries.
24809 + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
24810 + oldlibs="$oldlibs $output_objdir/$libname.$libext"
24811 +
24812 + # Transform .lo files to .o files.
24813 + oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
24814 + fi
24815 +
24816 + # Eliminate all temporary directories.
24817 + for path in $notinst_path; do
24818 + lib_search_path=`echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
24819 + deplibs=`echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
24820 + dependency_libs=`echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
24821 + done
24822 +
24823 + if test -n "$xrpath"; then
24824 + # If the user specified any rpath flags, then add them.
24825 + temp_xrpath=
24826 + for libdir in $xrpath; do
24827 + temp_xrpath="$temp_xrpath -R$libdir"
24828 + case "$finalize_rpath " in
24829 + *" $libdir "*) ;;
24830 + *) finalize_rpath="$finalize_rpath $libdir" ;;
24831 + esac
24832 + done
24833 + if test $hardcode_into_libs != yes || test $build_old_libs = yes; then
24834 + dependency_libs="$temp_xrpath $dependency_libs"
24835 + fi
24836 + fi
24837 +
24838 + # Make sure dlfiles contains only unique files that won't be dlpreopened
24839 + old_dlfiles="$dlfiles"
24840 + dlfiles=
24841 + for lib in $old_dlfiles; do
24842 + case " $dlprefiles $dlfiles " in
24843 + *" $lib "*) ;;
24844 + *) dlfiles="$dlfiles $lib" ;;
24845 + esac
24846 + done
24847 +
24848 + # Make sure dlprefiles contains only unique files
24849 + old_dlprefiles="$dlprefiles"
24850 + dlprefiles=
24851 + for lib in $old_dlprefiles; do
24852 + case "$dlprefiles " in
24853 + *" $lib "*) ;;
24854 + *) dlprefiles="$dlprefiles $lib" ;;
24855 + esac
24856 + done
24857 +
24858 + if test "$build_libtool_libs" = yes; then
24859 + if test -n "$rpath"; then
24860 + case $host in
24861 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
24862 + # these systems don't actually have a c library (as such)!
24863 + ;;
24864 + *-*-rhapsody* | *-*-darwin1.[012])
24865 + # Rhapsody C library is in the System framework
24866 + deplibs="$deplibs -framework System"
24867 + ;;
24868 + *-*-netbsd*)
24869 + # Don't link with libc until the a.out ld.so is fixed.
24870 + ;;
24871 + *-*-openbsd* | *-*-freebsd*)
24872 + # Do not include libc due to us having libc/libc_r.
24873 + ;;
24874 + *)
24875 + # Add libc to deplibs on all other systems if necessary.
24876 + if test $build_libtool_need_lc = "yes"; then
24877 + deplibs="$deplibs -lc"
24878 + fi
24879 + ;;
24880 + esac
24881 + fi
24882 +
24883 + # Transform deplibs into only deplibs that can be linked in shared.
24884 + name_save=$name
24885 + libname_save=$libname
24886 + release_save=$release
24887 + versuffix_save=$versuffix
24888 + major_save=$major
24889 + # I'm not sure if I'm treating the release correctly. I think
24890 + # release should show up in the -l (ie -lgmp5) so we don't want to
24891 + # add it in twice. Is that correct?
24892 + release=""
24893 + versuffix=""
24894 + major=""
24895 + newdeplibs=
24896 + droppeddeps=no
24897 + case $deplibs_check_method in
24898 + pass_all)
24899 + # Don't check for shared/static. Everything works.
24900 + # This might be a little naive. We might want to check
24901 + # whether the library exists or not. But this is on
24902 + # osf3 & osf4 and I'm not really sure... Just
24903 + # implementing what was already the behaviour.
24904 + newdeplibs=$deplibs
24905 + ;;
24906 + test_compile)
24907 + # This code stresses the "libraries are programs" paradigm to its
24908 + # limits. Maybe even breaks it. We compile a program, linking it
24909 + # against the deplibs as a proxy for the library. Then we can check
24910 + # whether they linked in statically or dynamically with ldd.
24911 + $rm conftest.c
24912 + cat > conftest.c <<EOF
24913 + int main() { return 0; }
24914 +EOF
24915 + $rm conftest
24916 + $CC -o conftest conftest.c $deplibs
24917 + if test $? -eq 0 ; then
24918 + ldd_output=`ldd conftest`
24919 + for i in $deplibs; do
24920 + name="`expr $i : '-l\(.*\)'`"
24921 + # If $name is empty we are operating on a -L argument.
24922 + if test -n "$name" && test "$name" != "0"; then
24923 + libname=`eval \\$echo \"$libname_spec\"`
24924 + deplib_matches=`eval \\$echo \"$library_names_spec\"`
24925 + set dummy $deplib_matches
24926 + deplib_match=$2
24927 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
24928 + newdeplibs="$newdeplibs $i"
24929 + else
24930 + droppeddeps=yes
24931 + echo
24932 + echo "*** Warning: dynamic linker does not accept needed library $i."
24933 + echo "*** I have the capability to make that library automatically link in when"
24934 + echo "*** you link to this library. But I can only do this if you have a"
24935 + echo "*** shared version of the library, which I believe you do not have"
24936 + echo "*** because a test_compile did reveal that the linker did not use it for"
24937 + echo "*** its dynamic dependency list that programs get resolved with at runtime."
24938 + fi
24939 + else
24940 + newdeplibs="$newdeplibs $i"
24941 + fi
24942 + done
24943 + else
24944 + # Error occured in the first compile. Let's try to salvage
24945 + # the situation: Compile a separate program for each library.
24946 + for i in $deplibs; do
24947 + name="`expr $i : '-l\(.*\)'`"
24948 + # If $name is empty we are operating on a -L argument.
24949 + if test -n "$name" && test "$name" != "0"; then
24950 + $rm conftest
24951 + $CC -o conftest conftest.c $i
24952 + # Did it work?
24953 + if test $? -eq 0 ; then
24954 + ldd_output=`ldd conftest`
24955 + libname=`eval \\$echo \"$libname_spec\"`
24956 + deplib_matches=`eval \\$echo \"$library_names_spec\"`
24957 + set dummy $deplib_matches
24958 + deplib_match=$2
24959 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
24960 + newdeplibs="$newdeplibs $i"
24961 + else
24962 + droppeddeps=yes
24963 + echo
24964 + echo "*** Warning: dynamic linker does not accept needed library $i."
24965 + echo "*** I have the capability to make that library automatically link in when"
24966 + echo "*** you link to this library. But I can only do this if you have a"
24967 + echo "*** shared version of the library, which you do not appear to have"
24968 + echo "*** because a test_compile did reveal that the linker did not use this one"
24969 + echo "*** as a dynamic dependency that programs can get resolved with at runtime."
24970 + fi
24971 + else
24972 + droppeddeps=yes
24973 + echo
24974 + echo "*** Warning! Library $i is needed by this library but I was not able to"
24975 + echo "*** make it link in! You will probably need to install it or some"
24976 + echo "*** library that it depends on before this library will be fully"
24977 + echo "*** functional. Installing it before continuing would be even better."
24978 + fi
24979 + else
24980 + newdeplibs="$newdeplibs $i"
24981 + fi
24982 + done
24983 + fi
24984 + ;;
24985 + file_magic*)
24986 + set dummy $deplibs_check_method
24987 + file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
24988 + for a_deplib in $deplibs; do
24989 + name="`expr $a_deplib : '-l\(.*\)'`"
24990 + # If $name is empty we are operating on a -L argument.
24991 + if test -n "$name" && test "$name" != "0"; then
24992 + libname=`eval \\$echo \"$libname_spec\"`
24993 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
24994 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
24995 + for potent_lib in $potential_libs; do
24996 + # Follow soft links.
24997 + if ls -lLd "$potent_lib" 2>/dev/null \
24998 + | grep " -> " >/dev/null; then
24999 + continue
25000 + fi
25001 + # The statement above tries to avoid entering an
25002 + # endless loop below, in case of cyclic links.
25003 + # We might still enter an endless loop, since a link
25004 + # loop can be closed while we follow links,
25005 + # but so what?
25006 + potlib="$potent_lib"
25007 + while test -h "$potlib" 2>/dev/null; do
25008 + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
25009 + case $potliblink in
25010 + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
25011 + *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
25012 + esac
25013 + done
25014 + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
25015 + | ${SED} 10q \
25016 + | egrep "$file_magic_regex" > /dev/null; then
25017 + newdeplibs="$newdeplibs $a_deplib"
25018 + a_deplib=""
25019 + break 2
25020 + fi
25021 + done
25022 + done
25023 + if test -n "$a_deplib" ; then
25024 + droppeddeps=yes
25025 + echo
25026 + echo "*** Warning: linker path does not have real file for library $a_deplib."
25027 + echo "*** I have the capability to make that library automatically link in when"
25028 + echo "*** you link to this library. But I can only do this if you have a"
25029 + echo "*** shared version of the library, which you do not appear to have"
25030 + echo "*** because I did check the linker path looking for a file starting"
25031 + if test -z "$potlib" ; then
25032 + echo "*** with $libname but no candidates were found. (...for file magic test)"
25033 + else
25034 + echo "*** with $libname and none of the candidates passed a file format test"
25035 + echo "*** using a file magic. Last file checked: $potlib"
25036 + fi
25037 + fi
25038 + else
25039 + # Add a -L argument.
25040 + newdeplibs="$newdeplibs $a_deplib"
25041 + fi
25042 + done # Gone through all deplibs.
25043 + ;;
25044 + match_pattern*)
25045 + set dummy $deplibs_check_method
25046 + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
25047 + for a_deplib in $deplibs; do
25048 + name="`expr $a_deplib : '-l\(.*\)'`"
25049 + # If $name is empty we are operating on a -L argument.
25050 + if test -n "$name" && test "$name" != "0"; then
25051 + libname=`eval \\$echo \"$libname_spec\"`
25052 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
25053 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
25054 + for potent_lib in $potential_libs; do
25055 + potlib="$potent_lib" # see symlink-check below in file_magic test
25056 + if eval echo \"$potent_lib\" 2>/dev/null \
25057 + | ${SED} 10q \
25058 + | egrep "$match_pattern_regex" > /dev/null; then
25059 + newdeplibs="$newdeplibs $a_deplib"
25060 + a_deplib=""
25061 + break 2
25062 + fi
25063 + done
25064 + done
25065 + if test -n "$a_deplib" ; then
25066 + droppeddeps=yes
25067 + echo
25068 + echo "*** Warning: linker path does not have real file for library $a_deplib."
25069 + echo "*** I have the capability to make that library automatically link in when"
25070 + echo "*** you link to this library. But I can only do this if you have a"
25071 + echo "*** shared version of the library, which you do not appear to have"
25072 + echo "*** because I did check the linker path looking for a file starting"
25073 + if test -z "$potlib" ; then
25074 + echo "*** with $libname but no candidates were found. (...for regex pattern test)"
25075 + else
25076 + echo "*** with $libname and none of the candidates passed a file format test"
25077 + echo "*** using a regex pattern. Last file checked: $potlib"
25078 + fi
25079 + fi
25080 + else
25081 + # Add a -L argument.
25082 + newdeplibs="$newdeplibs $a_deplib"
25083 + fi
25084 + done # Gone through all deplibs.
25085 + ;;
25086 + none | unknown | *)
25087 + newdeplibs=""
25088 + if $echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
25089 + -e 's/ -[LR][^ ]*//g' -e 's/[ ]//g' |
25090 + grep . >/dev/null; then
25091 + echo
25092 + if test "X$deplibs_check_method" = "Xnone"; then
25093 + echo "*** Warning: inter-library dependencies are not supported in this platform."
25094 + else
25095 + echo "*** Warning: inter-library dependencies are not known to be supported."
25096 + fi
25097 + echo "*** All declared inter-library dependencies are being dropped."
25098 + droppeddeps=yes
25099 + fi
25100 + ;;
25101 + esac
25102 + versuffix=$versuffix_save
25103 + major=$major_save
25104 + release=$release_save
25105 + libname=$libname_save
25106 + name=$name_save
25107 +
25108 + case $host in
25109 + *-*-rhapsody* | *-*-darwin1.[012])
25110 + # On Rhapsody replace the C library is the System framework
25111 + newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
25112 + ;;
25113 + esac
25114 +
25115 + if test "$droppeddeps" = yes; then
25116 + if test "$module" = yes; then
25117 + echo
25118 + echo "*** Warning: libtool could not satisfy all declared inter-library"
25119 + echo "*** dependencies of module $libname. Therefore, libtool will create"
25120 + echo "*** a static module, that should work as long as the dlopening"
25121 + echo "*** application is linked with the -dlopen flag."
25122 + if test -z "$global_symbol_pipe"; then
25123 + echo
25124 + echo "*** However, this would only work if libtool was able to extract symbol"
25125 + echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
25126 + echo "*** not find such a program. So, this module is probably useless."
25127 + echo "*** \`nm' from GNU binutils and a full rebuild may help."
25128 + fi
25129 + if test "$build_old_libs" = no; then
25130 + oldlibs="$output_objdir/$libname.$libext"
25131 + build_libtool_libs=module
25132 + build_old_libs=yes
25133 + else
25134 + build_libtool_libs=no
25135 + fi
25136 + else
25137 + echo "*** The inter-library dependencies that have been dropped here will be"
25138 + echo "*** automatically added whenever a program is linked with this library"
25139 + echo "*** or is declared to -dlopen it."
25140 +
25141 + if test $allow_undefined = no; then
25142 + echo
25143 + echo "*** Since this library must not contain undefined symbols,"
25144 + echo "*** because either the platform does not support them or"
25145 + echo "*** it was explicitly requested with -no-undefined,"
25146 + echo "*** libtool will only create a static version of it."
25147 + if test "$build_old_libs" = no; then
25148 + oldlibs="$output_objdir/$libname.$libext"
25149 + build_libtool_libs=module
25150 + build_old_libs=yes
25151 + else
25152 + build_libtool_libs=no
25153 + fi
25154 + fi
25155 + fi
25156 + fi
25157 + # Done checking deplibs!
25158 + deplibs=$newdeplibs
25159 + fi
25160 +
25161 + # All the library-specific variables (install_libdir is set above).
25162 + library_names=
25163 + old_library=
25164 + dlname=
25165 +
25166 + # Test again, we may have decided not to build it any more
25167 + if test "$build_libtool_libs" = yes; then
25168 + if test $hardcode_into_libs = yes; then
25169 + # Hardcode the library paths
25170 + hardcode_libdirs=
25171 + dep_rpath=
25172 + rpath="$finalize_rpath"
25173 + test "$mode" != relink && rpath="$compile_rpath$rpath"
25174 + for libdir in $rpath; do
25175 + if test -n "$hardcode_libdir_flag_spec"; then
25176 + if test -n "$hardcode_libdir_separator"; then
25177 + if test -z "$hardcode_libdirs"; then
25178 + hardcode_libdirs="$libdir"
25179 + else
25180 + # Just accumulate the unique libdirs.
25181 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
25182 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
25183 + ;;
25184 + *)
25185 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
25186 + ;;
25187 + esac
25188 + fi
25189 + else
25190 + eval flag=\"$hardcode_libdir_flag_spec\"
25191 + dep_rpath="$dep_rpath $flag"
25192 + fi
25193 + elif test -n "$runpath_var"; then
25194 + case "$perm_rpath " in
25195 + *" $libdir "*) ;;
25196 + *) perm_rpath="$perm_rpath $libdir" ;;
25197 + esac
25198 + fi
25199 + done
25200 + # Substitute the hardcoded libdirs into the rpath.
25201 + if test -n "$hardcode_libdir_separator" &&
25202 + test -n "$hardcode_libdirs"; then
25203 + libdir="$hardcode_libdirs"
25204 + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
25205 + fi
25206 + if test -n "$runpath_var" && test -n "$perm_rpath"; then
25207 + # We should set the runpath_var.
25208 + rpath=
25209 + for dir in $perm_rpath; do
25210 + rpath="$rpath$dir:"
25211 + done
25212 + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
25213 + fi
25214 + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
25215 + fi
25216 +
25217 + shlibpath="$finalize_shlibpath"
25218 + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
25219 + if test -n "$shlibpath"; then
25220 + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
25221 + fi
25222 +
25223 + # Get the real and link names of the library.
25224 + eval library_names=\"$library_names_spec\"
25225 + set dummy $library_names
25226 + realname="$2"
25227 + shift; shift
25228 +
25229 + if test -n "$soname_spec"; then
25230 + eval soname=\"$soname_spec\"
25231 + else
25232 + soname="$realname"
25233 + fi
25234 + test -z "$dlname" && dlname=$soname
25235 +
25236 + lib="$output_objdir/$realname"
25237 + for link
25238 + do
25239 + linknames="$linknames $link"
25240 + done
25241 +
25242 + # Ensure that we have .o objects for linkers which dislike .lo
25243 + # (e.g. aix) in case we are running --disable-static
25244 + for obj in $libobjs; do
25245 + xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
25246 + if test "X$xdir" = "X$obj"; then
25247 + xdir="."
25248 + else
25249 + xdir="$xdir"
25250 + fi
25251 + baseobj=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
25252 + oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"`
25253 + if test ! -f $xdir/$oldobj; then
25254 + $show "(cd $xdir && ${LN_S} $baseobj $oldobj)"
25255 + $run eval '(cd $xdir && ${LN_S} $baseobj $oldobj)' || exit $?
25256 + fi
25257 + done
25258 +
25259 + # Use standard objects if they are pic
25260 + test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
25261 +
25262 + # Prepare the list of exported symbols
25263 + if test -z "$export_symbols"; then
25264 + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
25265 + $show "generating symbol list for \`$libname.la'"
25266 + export_symbols="$output_objdir/$libname.exp"
25267 + $run $rm $export_symbols
25268 + eval cmds=\"$export_symbols_cmds\"
25269 + save_ifs="$IFS"; IFS='~'
25270 + for cmd in $cmds; do
25271 + IFS="$save_ifs"
25272 + $show "$cmd"
25273 + $run eval "$cmd" || exit $?
25274 + done
25275 + IFS="$save_ifs"
25276 + if test -n "$export_symbols_regex"; then
25277 + $show "egrep -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
25278 + $run eval 'egrep -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
25279 + $show "$mv \"${export_symbols}T\" \"$export_symbols\""
25280 + $run eval '$mv "${export_symbols}T" "$export_symbols"'
25281 + fi
25282 + fi
25283 + fi
25284 +
25285 + if test -n "$export_symbols" && test -n "$include_expsyms"; then
25286 + $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
25287 + fi
25288 +
25289 + if test -n "$convenience"; then
25290 + if test -n "$whole_archive_flag_spec"; then
25291 + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
25292 + else
25293 + gentop="$output_objdir/${outputname}x"
25294 + $show "${rm}r $gentop"
25295 + $run ${rm}r "$gentop"
25296 + $show "mkdir $gentop"
25297 + $run mkdir "$gentop"
25298 + status=$?
25299 + if test $status -ne 0 && test ! -d "$gentop"; then
25300 + exit $status
25301 + fi
25302 + generated="$generated $gentop"
25303 +
25304 + for xlib in $convenience; do
25305 + # Extract the objects.
25306 + case $xlib in
25307 + [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
25308 + *) xabs=`pwd`"/$xlib" ;;
25309 + esac
25310 + xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
25311 + xdir="$gentop/$xlib"
25312 +
25313 + $show "${rm}r $xdir"
25314 + $run ${rm}r "$xdir"
25315 + $show "mkdir $xdir"
25316 + $run mkdir "$xdir"
25317 + status=$?
25318 + if test $status -ne 0 && test ! -d "$xdir"; then
25319 + exit $status
25320 + fi
25321 + $show "(cd $xdir && $AR x $xabs)"
25322 + $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
25323 +
25324 + libobjs="$libobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
25325 + done
25326 + fi
25327 + fi
25328 +
25329 + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
25330 + eval flag=\"$thread_safe_flag_spec\"
25331 + linker_flags="$linker_flags $flag"
25332 + fi
25333 +
25334 + # Make a backup of the uninstalled library when relinking
25335 + if test "$mode" = relink; then
25336 + $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
25337 + fi
25338 +
25339 + # Do each of the archive commands.
25340 + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
25341 + eval cmds=\"$archive_expsym_cmds\"
25342 + else
25343 + save_deplibs="$deplibs"
25344 + for conv in $convenience; do
25345 + tmp_deplibs=
25346 + for test_deplib in $deplibs; do
25347 + if test "$test_deplib" != "$conv"; then
25348 + tmp_deplibs="$tmp_deplibs $test_deplib"
25349 + fi
25350 + done
25351 + deplibs="$tmp_deplibs"
25352 + done
25353 + eval cmds=\"$archive_cmds\"
25354 + deplibs="$save_deplibs"
25355 + fi
25356 + save_ifs="$IFS"; IFS='~'
25357 + for cmd in $cmds; do
25358 + IFS="$save_ifs"
25359 + $show "$cmd"
25360 + $run eval "$cmd" || exit $?
25361 + done
25362 + IFS="$save_ifs"
25363 +
25364 + # Restore the uninstalled library and exit
25365 + if test "$mode" = relink; then
25366 + $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
25367 + exit 0
25368 + fi
25369 +
25370 + # Create links to the real library.
25371 + for linkname in $linknames; do
25372 + if test "$realname" != "$linkname"; then
25373 + $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
25374 + $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
25375 + fi
25376 + done
25377 +
25378 + # If -module or -export-dynamic was specified, set the dlname.
25379 + if test "$module" = yes || test "$export_dynamic" = yes; then
25380 + # On all known operating systems, these are identical.
25381 + dlname="$soname"
25382 + fi
25383 + fi
25384 + ;;
25385 +
25386 + obj)
25387 + if test -n "$deplibs"; then
25388 + $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
25389 + fi
25390 +
25391 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
25392 + $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
25393 + fi
25394 +
25395 + if test -n "$rpath"; then
25396 + $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
25397 + fi
25398 +
25399 + if test -n "$xrpath"; then
25400 + $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
25401 + fi
25402 +
25403 + if test -n "$vinfo"; then
25404 + $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
25405 + fi
25406 +
25407 + if test -n "$release"; then
25408 + $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
25409 + fi
25410 +
25411 + case $output in
25412 + *.lo)
25413 + if test -n "$objs$old_deplibs"; then
25414 + $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
25415 + exit 1
25416 + fi
25417 + libobj="$output"
25418 + obj=`$echo "X$output" | $Xsed -e "$lo2o"`
25419 + ;;
25420 + *)
25421 + libobj=
25422 + obj="$output"
25423 + ;;
25424 + esac
25425 +
25426 + # Delete the old objects.
25427 + $run $rm $obj $libobj
25428 +
25429 + # Objects from convenience libraries. This assumes
25430 + # single-version convenience libraries. Whenever we create
25431 + # different ones for PIC/non-PIC, this we'll have to duplicate
25432 + # the extraction.
25433 + reload_conv_objs=
25434 + gentop=
25435 + # reload_cmds runs $LD directly, so let us get rid of
25436 + # -Wl from whole_archive_flag_spec
25437 + wl=
25438 +
25439 + if test -n "$convenience"; then
25440 + if test -n "$whole_archive_flag_spec"; then
25441 + eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
25442 + else
25443 + gentop="$output_objdir/${obj}x"
25444 + $show "${rm}r $gentop"
25445 + $run ${rm}r "$gentop"
25446 + $show "mkdir $gentop"
25447 + $run mkdir "$gentop"
25448 + status=$?
25449 + if test $status -ne 0 && test ! -d "$gentop"; then
25450 + exit $status
25451 + fi
25452 + generated="$generated $gentop"
25453 +
25454 + for xlib in $convenience; do
25455 + # Extract the objects.
25456 + case $xlib in
25457 + [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
25458 + *) xabs=`pwd`"/$xlib" ;;
25459 + esac
25460 + xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
25461 + xdir="$gentop/$xlib"
25462 +
25463 + $show "${rm}r $xdir"
25464 + $run ${rm}r "$xdir"
25465 + $show "mkdir $xdir"
25466 + $run mkdir "$xdir"
25467 + status=$?
25468 + if test $status -ne 0 && test ! -d "$xdir"; then
25469 + exit $status
25470 + fi
25471 + $show "(cd $xdir && $AR x $xabs)"
25472 + $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
25473 +
25474 + reload_conv_objs="$reload_objs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
25475 + done
25476 + fi
25477 + fi
25478 +
25479 + # Create the old-style object.
25480 + reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
25481 +
25482 + output="$obj"
25483 + eval cmds=\"$reload_cmds\"
25484 + save_ifs="$IFS"; IFS='~'
25485 + for cmd in $cmds; do
25486 + IFS="$save_ifs"
25487 + $show "$cmd"
25488 + $run eval "$cmd" || exit $?
25489 + done
25490 + IFS="$save_ifs"
25491 +
25492 + # Exit if we aren't doing a library object file.
25493 + if test -z "$libobj"; then
25494 + if test -n "$gentop"; then
25495 + $show "${rm}r $gentop"
25496 + $run ${rm}r $gentop
25497 + fi
25498 +
25499 + exit 0
25500 + fi
25501 +
25502 + if test "$build_libtool_libs" != yes; then
25503 + if test -n "$gentop"; then
25504 + $show "${rm}r $gentop"
25505 + $run ${rm}r $gentop
25506 + fi
25507 +
25508 + # Create an invalid libtool object if no PIC, so that we don't
25509 + # accidentally link it into a program.
25510 + $show "echo timestamp > $libobj"
25511 + $run eval "echo timestamp > $libobj" || exit $?
25512 + exit 0
25513 + fi
25514 +
25515 + if test -n "$pic_flag" || test "$pic_mode" != default; then
25516 + # Only do commands if we really have different PIC objects.
25517 + reload_objs="$libobjs $reload_conv_objs"
25518 + output="$libobj"
25519 + eval cmds=\"$reload_cmds\"
25520 + save_ifs="$IFS"; IFS='~'
25521 + for cmd in $cmds; do
25522 + IFS="$save_ifs"
25523 + $show "$cmd"
25524 + $run eval "$cmd" || exit $?
25525 + done
25526 + IFS="$save_ifs"
25527 + else
25528 + # Just create a symlink.
25529 + $show $rm $libobj
25530 + $run $rm $libobj
25531 + xdir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
25532 + if test "X$xdir" = "X$libobj"; then
25533 + xdir="."
25534 + else
25535 + xdir="$xdir"
25536 + fi
25537 + baseobj=`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
25538 + oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"`
25539 + $show "(cd $xdir && $LN_S $oldobj $baseobj)"
25540 + $run eval '(cd $xdir && $LN_S $oldobj $baseobj)' || exit $?
25541 + fi
25542 +
25543 + if test -n "$gentop"; then
25544 + $show "${rm}r $gentop"
25545 + $run ${rm}r $gentop
25546 + fi
25547 +
25548 + exit 0
25549 + ;;
25550 +
25551 + prog)
25552 + case $host in
25553 + *cygwin*) output=`echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
25554 + esac
25555 + if test -n "$vinfo"; then
25556 + $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
25557 + fi
25558 +
25559 + if test -n "$release"; then
25560 + $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
25561 + fi
25562 +
25563 + if test "$preload" = yes; then
25564 + if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
25565 + test "$dlopen_self_static" = unknown; then
25566 + $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
25567 + fi
25568 + fi
25569 +
25570 + case $host in
25571 + *-*-rhapsody* | *-*-darwin1.[012])
25572 + # On Rhapsody replace the C library is the System framework
25573 + compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
25574 + finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
25575 + case $host in
25576 + *darwin*)
25577 + # Don't allow lazy linking, it breaks C++ global constructors
25578 + compile_command="$compile_command ${wl}-bind_at_load"
25579 + finalize_command="$finalize_command ${wl}-bind_at_load"
25580 + ;;
25581 + esac
25582 + ;;
25583 + esac
25584 +
25585 + compile_command="$compile_command $compile_deplibs"
25586 + finalize_command="$finalize_command $finalize_deplibs"
25587 +
25588 + if test -n "$rpath$xrpath"; then
25589 + # If the user specified any rpath flags, then add them.
25590 + for libdir in $rpath $xrpath; do
25591 + # This is the magic to use -rpath.
25592 + case "$finalize_rpath " in
25593 + *" $libdir "*) ;;
25594 + *) finalize_rpath="$finalize_rpath $libdir" ;;
25595 + esac
25596 + done
25597 + fi
25598 +
25599 + # Now hardcode the library paths
25600 + rpath=
25601 + hardcode_libdirs=
25602 + for libdir in $compile_rpath $finalize_rpath; do
25603 + if test -n "$hardcode_libdir_flag_spec"; then
25604 + if test -n "$hardcode_libdir_separator"; then
25605 + if test -z "$hardcode_libdirs"; then
25606 + hardcode_libdirs="$libdir"
25607 + else
25608 + # Just accumulate the unique libdirs.
25609 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
25610 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
25611 + ;;
25612 + *)
25613 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
25614 + ;;
25615 + esac
25616 + fi
25617 + else
25618 + eval flag=\"$hardcode_libdir_flag_spec\"
25619 + rpath="$rpath $flag"
25620 + fi
25621 + elif test -n "$runpath_var"; then
25622 + case "$perm_rpath " in
25623 + *" $libdir "*) ;;
25624 + *) perm_rpath="$perm_rpath $libdir" ;;
25625 + esac
25626 + fi
25627 + case $host in
25628 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
25629 + case :$dllsearchpath: in
25630 + *":$libdir:"*) ;;
25631 + *) dllsearchpath="$dllsearchpath:$libdir";;
25632 + esac
25633 + ;;
25634 + esac
25635 + done
25636 + # Substitute the hardcoded libdirs into the rpath.
25637 + if test -n "$hardcode_libdir_separator" &&
25638 + test -n "$hardcode_libdirs"; then
25639 + libdir="$hardcode_libdirs"
25640 + eval rpath=\" $hardcode_libdir_flag_spec\"
25641 + fi
25642 + compile_rpath="$rpath"
25643 +
25644 + rpath=
25645 + hardcode_libdirs=
25646 + for libdir in $finalize_rpath; do
25647 + if test -n "$hardcode_libdir_flag_spec"; then
25648 + if test -n "$hardcode_libdir_separator"; then
25649 + if test -z "$hardcode_libdirs"; then
25650 + hardcode_libdirs="$libdir"
25651 + else
25652 + # Just accumulate the unique libdirs.
25653 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
25654 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
25655 + ;;
25656 + *)
25657 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
25658 + ;;
25659 + esac
25660 + fi
25661 + else
25662 + eval flag=\"$hardcode_libdir_flag_spec\"
25663 + rpath="$rpath $flag"
25664 + fi
25665 + elif test -n "$runpath_var"; then
25666 + case "$finalize_perm_rpath " in
25667 + *" $libdir "*) ;;
25668 + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
25669 + esac
25670 + fi
25671 + done
25672 + # Substitute the hardcoded libdirs into the rpath.
25673 + if test -n "$hardcode_libdir_separator" &&
25674 + test -n "$hardcode_libdirs"; then
25675 + libdir="$hardcode_libdirs"
25676 + eval rpath=\" $hardcode_libdir_flag_spec\"
25677 + fi
25678 + finalize_rpath="$rpath"
25679 +
25680 + if test -n "$libobjs" && test "$build_old_libs" = yes; then
25681 + # Transform all the library objects into standard objects.
25682 + compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
25683 + finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
25684 + fi
25685 +
25686 + dlsyms=
25687 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
25688 + if test -n "$NM" && test -n "$global_symbol_pipe"; then
25689 + dlsyms="${outputname}S.c"
25690 + else
25691 + $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
25692 + fi
25693 + fi
25694 +
25695 + if test -n "$dlsyms"; then
25696 + case $dlsyms in
25697 + "") ;;
25698 + *.c)
25699 + # Discover the nlist of each of the dlfiles.
25700 + nlist="$output_objdir/${outputname}.nm"
25701 +
25702 + $show "$rm $nlist ${nlist}S ${nlist}T"
25703 + $run $rm "$nlist" "${nlist}S" "${nlist}T"
25704 +
25705 + # Parse the name list into a source file.
25706 + $show "creating $output_objdir/$dlsyms"
25707 +
25708 + test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
25709 +/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
25710 +/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
25711 +
25712 +#ifdef __cplusplus
25713 +extern \"C\" {
25714 +#endif
25715 +
25716 +/* Prevent the only kind of declaration conflicts we can make. */
25717 +#define lt_preloaded_symbols some_other_symbol
25718 +
25719 +/* External symbol declarations for the compiler. */\
25720 +"
25721 +
25722 + if test "$dlself" = yes; then
25723 + $show "generating symbol list for \`$output'"
25724 +
25725 + test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
25726 +
25727 + # Add our own program objects to the symbol list.
25728 + progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
25729 + for arg in $progfiles; do
25730 + $show "extracting global C symbols from \`$arg'"
25731 + $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
25732 + done
25733 +
25734 + if test -n "$exclude_expsyms"; then
25735 + $run eval 'egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
25736 + $run eval '$mv "$nlist"T "$nlist"'
25737 + fi
25738 +
25739 + if test -n "$export_symbols_regex"; then
25740 + $run eval 'egrep -e "$export_symbols_regex" "$nlist" > "$nlist"T'
25741 + $run eval '$mv "$nlist"T "$nlist"'
25742 + fi
25743 +
25744 + # Prepare the list of exported symbols
25745 + if test -z "$export_symbols"; then
25746 + export_symbols="$output_objdir/$output.exp"
25747 + $run $rm $export_symbols
25748 + $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
25749 + else
25750 + $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
25751 + $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
25752 + $run eval 'mv "$nlist"T "$nlist"'
25753 + fi
25754 + fi
25755 +
25756 + for arg in $dlprefiles; do
25757 + $show "extracting global C symbols from \`$arg'"
25758 + name=`echo "$arg" | ${SED} -e 's%^.*/%%'`
25759 + $run eval 'echo ": $name " >> "$nlist"'
25760 + $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
25761 + done
25762 +
25763 + if test -z "$run"; then
25764 + # Make sure we have at least an empty file.
25765 + test -f "$nlist" || : > "$nlist"
25766 +
25767 + if test -n "$exclude_expsyms"; then
25768 + egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
25769 + $mv "$nlist"T "$nlist"
25770 + fi
25771 +
25772 + # Try sorting and uniquifying the output.
25773 + if grep -v "^: " < "$nlist" |
25774 + if sort -k 3 </dev/null >/dev/null 2>&1; then
25775 + sort -k 3
25776 + else
25777 + sort +2
25778 + fi |
25779 + uniq > "$nlist"S; then
25780 + :
25781 + else
25782 + grep -v "^: " < "$nlist" > "$nlist"S
25783 + fi
25784 +
25785 + if test -f "$nlist"S; then
25786 + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
25787 + else
25788 + echo '/* NONE */' >> "$output_objdir/$dlsyms"
25789 + fi
25790 +
25791 + $echo >> "$output_objdir/$dlsyms" "\
25792 +
25793 +#undef lt_preloaded_symbols
25794 +
25795 +#if defined (__STDC__) && __STDC__
25796 +# define lt_ptr void *
25797 +#else
25798 +# define lt_ptr char *
25799 +# define const
25800 +#endif
25801 +
25802 +/* The mapping between symbol names and symbols. */
25803 +const struct {
25804 + const char *name;
25805 + lt_ptr address;
25806 +}
25807 +lt_preloaded_symbols[] =
25808 +{\
25809 +"
25810 +
25811 + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
25812 +
25813 + $echo >> "$output_objdir/$dlsyms" "\
25814 + {0, (lt_ptr) 0}
25815 +};
25816 +
25817 +/* This works around a problem in FreeBSD linker */
25818 +#ifdef FREEBSD_WORKAROUND
25819 +static const void *lt_preloaded_setup() {
25820 + return lt_preloaded_symbols;
25821 +}
25822 +#endif
25823 +
25824 +#ifdef __cplusplus
25825 +}
25826 +#endif\
25827 +"
25828 + fi
25829 +
25830 + pic_flag_for_symtable=
25831 + case $host in
25832 + # compiling the symbol table file with pic_flag works around
25833 + # a FreeBSD bug that causes programs to crash when -lm is
25834 + # linked before any other PIC object. But we must not use
25835 + # pic_flag when linking with -static. The problem exists in
25836 + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
25837 + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
25838 + case "$compile_command " in
25839 + *" -static "*) ;;
25840 + *) pic_flag_for_symtable=" $pic_flag -DPIC -DFREEBSD_WORKAROUND";;
25841 + esac;;
25842 + *-*-hpux*)
25843 + case "$compile_command " in
25844 + *" -static "*) ;;
25845 + *) pic_flag_for_symtable=" $pic_flag -DPIC";;
25846 + esac
25847 + esac
25848 +
25849 + # Now compile the dynamic symbol file.
25850 + $show "(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
25851 + $run eval '(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
25852 +
25853 + # Clean up the generated files.
25854 + $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
25855 + $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
25856 +
25857 + # Transform the symbol file into the correct name.
25858 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
25859 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
25860 + ;;
25861 + *)
25862 + $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
25863 + exit 1
25864 + ;;
25865 + esac
25866 + else
25867 + # We keep going just in case the user didn't refer to
25868 + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
25869 + # really was required.
25870 +
25871 + # Nullify the symbol file.
25872 + compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
25873 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
25874 + fi
25875 +
25876 + if test $need_relink = no || test "$build_libtool_libs" != yes; then
25877 + # Replace the output file specification.
25878 + compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
25879 + link_command="$compile_command$compile_rpath"
25880 +
25881 + # We have no uninstalled library dependencies, so finalize right now.
25882 + $show "$link_command"
25883 + $run eval "$link_command"
25884 + status=$?
25885 +
25886 + # Delete the generated files.
25887 + if test -n "$dlsyms"; then
25888 + $show "$rm $output_objdir/${outputname}S.${objext}"
25889 + $run $rm "$output_objdir/${outputname}S.${objext}"
25890 + fi
25891 +
25892 + exit $status
25893 + fi
25894 +
25895 + if test -n "$shlibpath_var"; then
25896 + # We should set the shlibpath_var
25897 + rpath=
25898 + for dir in $temp_rpath; do
25899 + case $dir in
25900 + [\\/]* | [A-Za-z]:[\\/]*)
25901 + # Absolute path.
25902 + rpath="$rpath$dir:"
25903 + ;;
25904 + *)
25905 + # Relative path: add a thisdir entry.
25906 + rpath="$rpath\$thisdir/$dir:"
25907 + ;;
25908 + esac
25909 + done
25910 + temp_rpath="$rpath"
25911 + fi
25912 +
25913 + if test -n "$compile_shlibpath$finalize_shlibpath"; then
25914 + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
25915 + fi
25916 + if test -n "$finalize_shlibpath"; then
25917 + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
25918 + fi
25919 +
25920 + compile_var=
25921 + finalize_var=
25922 + if test -n "$runpath_var"; then
25923 + if test -n "$perm_rpath"; then
25924 + # We should set the runpath_var.
25925 + rpath=
25926 + for dir in $perm_rpath; do
25927 + rpath="$rpath$dir:"
25928 + done
25929 + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
25930 + fi
25931 + if test -n "$finalize_perm_rpath"; then
25932 + # We should set the runpath_var.
25933 + rpath=
25934 + for dir in $finalize_perm_rpath; do
25935 + rpath="$rpath$dir:"
25936 + done
25937 + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
25938 + fi
25939 + fi
25940 +
25941 + if test "$no_install" = yes; then
25942 + # We don't need to create a wrapper script.
25943 + link_command="$compile_var$compile_command$compile_rpath"
25944 + # Replace the output file specification.
25945 + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
25946 + # Delete the old output file.
25947 + $run $rm $output
25948 + # Link the executable and exit
25949 + $show "$link_command"
25950 + $run eval "$link_command" || exit $?
25951 + exit 0
25952 + fi
25953 +
25954 + if test "$hardcode_action" = relink; then
25955 + # Fast installation is not supported
25956 + link_command="$compile_var$compile_command$compile_rpath"
25957 + relink_command="$finalize_var$finalize_command$finalize_rpath"
25958 +
25959 + $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
25960 + $echo "$modename: \`$output' will be relinked during installation" 1>&2
25961 + else
25962 + if test "$fast_install" != no; then
25963 + link_command="$finalize_var$compile_command$finalize_rpath"
25964 + if test "$fast_install" = yes; then
25965 + relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
25966 + else
25967 + # fast_install is set to needless
25968 + relink_command=
25969 + fi
25970 + else
25971 + link_command="$compile_var$compile_command$compile_rpath"
25972 + relink_command="$finalize_var$finalize_command$finalize_rpath"
25973 + fi
25974 + fi
25975 +
25976 + # Replace the output file specification.
25977 + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
25978 +
25979 + # Delete the old output files.
25980 + $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
25981 +
25982 + $show "$link_command"
25983 + $run eval "$link_command" || exit $?
25984 +
25985 + # Now create the wrapper script.
25986 + $show "creating $output"
25987 +
25988 + # Quote the relink command for shipping.
25989 + if test -n "$relink_command"; then
25990 + # Preserve any variables that may affect compiler behavior
25991 + for var in $variables_saved_for_relink; do
25992 + if eval test -z \"\${$var+set}\"; then
25993 + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
25994 + elif eval var_value=\$$var; test -z "$var_value"; then
25995 + relink_command="$var=; export $var; $relink_command"
25996 + else
25997 + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
25998 + relink_command="$var=\"$var_value\"; export $var; $relink_command"
25999 + fi
26000 + done
26001 + relink_command="(cd `pwd`; $relink_command)"
26002 + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
26003 + fi
26004 +
26005 + # Quote $echo for shipping.
26006 + if test "X$echo" = "X$SHELL $0 --fallback-echo"; then
26007 + case $0 in
26008 + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";;
26009 + *) qecho="$SHELL `pwd`/$0 --fallback-echo";;
26010 + esac
26011 + qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
26012 + else
26013 + qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
26014 + fi
26015 +
26016 + # Only actually do things if our run command is non-null.
26017 + if test -z "$run"; then
26018 + # win32 will think the script is a binary if it has
26019 + # a .exe suffix, so we strip it off here.
26020 + case $output in
26021 + *.exe) output=`echo $output|${SED} 's,.exe$,,'` ;;
26022 + esac
26023 + # test for cygwin because mv fails w/o .exe extensions
26024 + case $host in
26025 + *cygwin*) exeext=.exe ;;
26026 + *) exeext= ;;
26027 + esac
26028 + $rm $output
26029 + trap "$rm $output; exit 1" 1 2 15
26030 +
26031 + $echo > $output "\
26032 +#! $SHELL
26033 +
26034 +# $output - temporary wrapper script for $objdir/$outputname
26035 +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
26036 +#
26037 +# The $output program cannot be directly executed until all the libtool
26038 +# libraries that it depends on are installed.
26039 +#
26040 +# This wrapper script should never be moved out of the build directory.
26041 +# If it is, it will not operate correctly.
26042 +
26043 +# Sed substitution that helps us do robust quoting. It backslashifies
26044 +# metacharacters that are still active within double-quoted strings.
26045 +Xsed="${SED}"' -e 1s/^X//'
26046 +sed_quote_subst='$sed_quote_subst'
26047 +
26048 +# The HP-UX ksh and POSIX shell print the target directory to stdout
26049 +# if CDPATH is set.
26050 +if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
26051 +
26052 +relink_command=\"$relink_command\"
26053 +
26054 +# This environment variable determines our operation mode.
26055 +if test \"\$libtool_install_magic\" = \"$magic\"; then
26056 + # install mode needs the following variable:
26057 + notinst_deplibs='$notinst_deplibs'
26058 +else
26059 + # When we are sourced in execute mode, \$file and \$echo are already set.
26060 + if test \"\$libtool_execute_magic\" != \"$magic\"; then
26061 + echo=\"$qecho\"
26062 + file=\"\$0\"
26063 + # Make sure echo works.
26064 + if test \"X\$1\" = X--no-reexec; then
26065 + # Discard the --no-reexec flag, and continue.
26066 + shift
26067 + elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
26068 + # Yippee, \$echo works!
26069 + :
26070 + else
26071 + # Restart under the correct shell, and then maybe \$echo will work.
26072 + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
26073 + fi
26074 + fi\
26075 +"
26076 + $echo >> $output "\
26077 +
26078 + # Find the directory that this script lives in.
26079 + thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
26080 + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
26081 +
26082 + # Follow symbolic links until we get to the real thisdir.
26083 + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
26084 + while test -n \"\$file\"; do
26085 + destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
26086 +
26087 + # If there was a directory component, then change thisdir.
26088 + if test \"x\$destdir\" != \"x\$file\"; then
26089 + case \"\$destdir\" in
26090 + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
26091 + *) thisdir=\"\$thisdir/\$destdir\" ;;
26092 + esac
26093 + fi
26094 +
26095 + file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
26096 + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
26097 + done
26098 +
26099 + # Try to get the absolute directory name.
26100 + absdir=\`cd \"\$thisdir\" && pwd\`
26101 + test -n \"\$absdir\" && thisdir=\"\$absdir\"
26102 +"
26103 +
26104 + if test "$fast_install" = yes; then
26105 + echo >> $output "\
26106 + program=lt-'$outputname'$exeext
26107 + progdir=\"\$thisdir/$objdir\"
26108 +
26109 + if test ! -f \"\$progdir/\$program\" || \\
26110 + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
26111 + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
26112 +
26113 + file=\"\$\$-\$program\"
26114 +
26115 + if test ! -d \"\$progdir\"; then
26116 + $mkdir \"\$progdir\"
26117 + else
26118 + $rm \"\$progdir/\$file\"
26119 + fi"
26120 +
26121 + echo >> $output "\
26122 +
26123 + # relink executable if necessary
26124 + if test -n \"\$relink_command\"; then
26125 + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
26126 + else
26127 + $echo \"\$relink_command_output\" >&2
26128 + $rm \"\$progdir/\$file\"
26129 + exit 1
26130 + fi
26131 + fi
26132 +
26133 + $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
26134 + { $rm \"\$progdir/\$program\";
26135 + $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
26136 + $rm \"\$progdir/\$file\"
26137 + fi"
26138 + else
26139 + echo >> $output "\
26140 + program='$outputname'
26141 + progdir=\"\$thisdir/$objdir\"
26142 +"
26143 + fi
26144 +
26145 + echo >> $output "\
26146 +
26147 + if test -f \"\$progdir/\$program\"; then"
26148 +
26149 + # Export our shlibpath_var if we have one.
26150 + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
26151 + $echo >> $output "\
26152 + # Add our own library path to $shlibpath_var
26153 + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
26154 +
26155 + # Some systems cannot cope with colon-terminated $shlibpath_var
26156 + # The second colon is a workaround for a bug in BeOS R4 ${SED}
26157 + $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
26158 +
26159 + export $shlibpath_var
26160 +"
26161 + fi
26162 +
26163 + # fixup the dll searchpath if we need to.
26164 + if test -n "$dllsearchpath"; then
26165 + $echo >> $output "\
26166 + # Add the dll search path components to the executable PATH
26167 + PATH=$dllsearchpath:\$PATH
26168 +"
26169 + fi
26170 +
26171 + $echo >> $output "\
26172 + if test \"\$libtool_execute_magic\" != \"$magic\"; then
26173 + # Run the actual program with our arguments.
26174 +"
26175 + case $host in
26176 + # win32 systems need to use the prog path for dll
26177 + # lookup to work
26178 + *-*-cygwin* | *-*-pw32*)
26179 + $echo >> $output "\
26180 + exec \$progdir/\$program \${1+\"\$@\"}
26181 +"
26182 + ;;
26183 +
26184 + # Backslashes separate directories on plain windows
26185 + *-*-mingw | *-*-os2*)
26186 + $echo >> $output "\
26187 + exec \$progdir\\\\\$program \${1+\"\$@\"}
26188 +"
26189 + ;;
26190 +
26191 + *)
26192 + $echo >> $output "\
26193 + # Export the path to the program.
26194 + PATH=\"\$progdir:\$PATH\"
26195 + export PATH
26196 +
26197 + exec \$program \${1+\"\$@\"}
26198 +"
26199 + ;;
26200 + esac
26201 + $echo >> $output "\
26202 + \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
26203 + exit 1
26204 + fi
26205 + else
26206 + # The program doesn't exist.
26207 + \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
26208 + \$echo \"This script is just a wrapper for \$program.\" 1>&2
26209 + echo \"See the $PACKAGE documentation for more information.\" 1>&2
26210 + exit 1
26211 + fi
26212 +fi\
26213 +"
26214 + chmod +x $output
26215 + fi
26216 + exit 0
26217 + ;;
26218 + esac
26219 +
26220 + # See if we need to build an old-fashioned archive.
26221 + for oldlib in $oldlibs; do
26222 +
26223 + if test "$build_libtool_libs" = convenience; then
26224 + oldobjs="$libobjs_save"
26225 + addlibs="$convenience"
26226 + build_libtool_libs=no
26227 + else
26228 + if test "$build_libtool_libs" = module; then
26229 + oldobjs="$libobjs_save"
26230 + build_libtool_libs=no
26231 + else
26232 + oldobjs="$objs$old_deplibs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`
26233 + fi
26234 + addlibs="$old_convenience"
26235 + fi
26236 +
26237 + if test -n "$addlibs"; then
26238 + gentop="$output_objdir/${outputname}x"
26239 + $show "${rm}r $gentop"
26240 + $run ${rm}r "$gentop"
26241 + $show "mkdir $gentop"
26242 + $run mkdir "$gentop"
26243 + status=$?
26244 + if test $status -ne 0 && test ! -d "$gentop"; then
26245 + exit $status
26246 + fi
26247 + generated="$generated $gentop"
26248 +
26249 + # Add in members from convenience archives.
26250 + for xlib in $addlibs; do
26251 + # Extract the objects.
26252 + case $xlib in
26253 + [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
26254 + *) xabs=`pwd`"/$xlib" ;;
26255 + esac
26256 + xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
26257 + xdir="$gentop/$xlib"
26258 +
26259 + $show "${rm}r $xdir"
26260 + $run ${rm}r "$xdir"
26261 + $show "mkdir $xdir"
26262 + $run mkdir "$xdir"
26263 + status=$?
26264 + if test $status -ne 0 && test ! -d "$xdir"; then
26265 + exit $status
26266 + fi
26267 + $show "(cd $xdir && $AR x $xabs)"
26268 + $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
26269 +
26270 + oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
26271 + done
26272 + fi
26273 +
26274 + # Do each command in the archive commands.
26275 + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
26276 + eval cmds=\"$old_archive_from_new_cmds\"
26277 + else
26278 + # Ensure that we have .o objects in place in case we decided
26279 + # not to build a shared library, and have fallen back to building
26280 + # static libs even though --disable-static was passed!
26281 + for oldobj in $oldobjs; do
26282 + if test ! -f $oldobj; then
26283 + xdir=`$echo "X$oldobj" | $Xsed -e 's%/[^/]*$%%'`
26284 + if test "X$xdir" = "X$oldobj"; then
26285 + xdir="."
26286 + else
26287 + xdir="$xdir"
26288 + fi
26289 + baseobj=`$echo "X$oldobj" | $Xsed -e 's%^.*/%%'`
26290 + obj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
26291 + $show "(cd $xdir && ${LN_S} $obj $baseobj)"
26292 + $run eval '(cd $xdir && ${LN_S} $obj $baseobj)' || exit $?
26293 + fi
26294 + done
26295 +
26296 + eval cmds=\"$old_archive_cmds\"
26297 + fi
26298 + save_ifs="$IFS"; IFS='~'
26299 + for cmd in $cmds; do
26300 + IFS="$save_ifs"
26301 + $show "$cmd"
26302 + $run eval "$cmd" || exit $?
26303 + done
26304 + IFS="$save_ifs"
26305 + done
26306 +
26307 + if test -n "$generated"; then
26308 + $show "${rm}r$generated"
26309 + $run ${rm}r$generated
26310 + fi
26311 +
26312 + # Now create the libtool archive.
26313 + case $output in
26314 + *.la)
26315 + old_library=
26316 + test "$build_old_libs" = yes && old_library="$libname.$libext"
26317 + $show "creating $output"
26318 +
26319 + # Preserve any variables that may affect compiler behavior
26320 + for var in $variables_saved_for_relink; do
26321 + if eval test -z \"\${$var+set}\"; then
26322 + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
26323 + elif eval var_value=\$$var; test -z "$var_value"; then
26324 + relink_command="$var=; export $var; $relink_command"
26325 + else
26326 + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
26327 + relink_command="$var=\"$var_value\"; export $var; $relink_command"
26328 + fi
26329 + done
26330 + # Quote the link command for shipping.
26331 + relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@)"
26332 + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
26333 +
26334 + # Only create the output if not a dry run.
26335 + if test -z "$run"; then
26336 + for installed in no yes; do
26337 + if test "$installed" = yes; then
26338 + if test -z "$install_libdir"; then
26339 + break
26340 + fi
26341 + output="$output_objdir/$outputname"i
26342 + # Replace all uninstalled libtool libraries with the installed ones
26343 + newdependency_libs=
26344 + for deplib in $dependency_libs; do
26345 + case $deplib in
26346 + *.la)
26347 + name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
26348 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
26349 + if test -z "$libdir"; then
26350 + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
26351 + exit 1
26352 + fi
26353 + newdependency_libs="$newdependency_libs $libdir/$name"
26354 + ;;
26355 + *) newdependency_libs="$newdependency_libs $deplib" ;;
26356 + esac
26357 + done
26358 + dependency_libs="$newdependency_libs"
26359 + newdlfiles=
26360 + for lib in $dlfiles; do
26361 + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
26362 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
26363 + if test -z "$libdir"; then
26364 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
26365 + exit 1
26366 + fi
26367 + newdlfiles="$newdlfiles $libdir/$name"
26368 + done
26369 + dlfiles="$newdlfiles"
26370 + newdlprefiles=
26371 + for lib in $dlprefiles; do
26372 + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
26373 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
26374 + if test -z "$libdir"; then
26375 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
26376 + exit 1
26377 + fi
26378 + newdlprefiles="$newdlprefiles $libdir/$name"
26379 + done
26380 + dlprefiles="$newdlprefiles"
26381 + fi
26382 + $rm $output
26383 + # place dlname in correct position for cygwin
26384 + tdlname=$dlname
26385 + case $host,$output,$installed,$module,$dlname in
26386 + *cygwin*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
26387 + esac
26388 + $echo > $output "\
26389 +# $outputname - a libtool library file
26390 +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
26391 +#
26392 +# Please DO NOT delete this file!
26393 +# It is necessary for linking the library.
26394 +
26395 +# The name that we can dlopen(3).
26396 +dlname='$tdlname'
26397 +
26398 +# Names of this library.
26399 +library_names='$library_names'
26400 +
26401 +# The name of the static archive.
26402 +old_library='$old_library'
26403 +
26404 +# Libraries that this one depends upon.
26405 +dependency_libs='$dependency_libs'
26406 +
26407 +# Version information for $libname.
26408 +current=$current
26409 +age=$age
26410 +revision=$revision
26411 +
26412 +# Is this an already installed library?
26413 +installed=$installed
26414 +
26415 +# Files to dlopen/dlpreopen
26416 +dlopen='$dlfiles'
26417 +dlpreopen='$dlprefiles'
26418 +
26419 +# Directory that this library needs to be installed in:
26420 +libdir='$install_libdir'"
26421 + if test "$installed" = no && test $need_relink = yes; then
26422 + $echo >> $output "\
26423 +relink_command=\"$relink_command\""
26424 + fi
26425 + done
26426 + fi
26427 +
26428 + # Do a symbolic link so that the libtool archive can be found in
26429 + # LD_LIBRARY_PATH before the program is installed.
26430 + $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
26431 + $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
26432 + ;;
26433 + esac
26434 + exit 0
26435 + ;;
26436 +
26437 + # libtool install mode
26438 + install)
26439 + modename="$modename: install"
26440 +
26441 + # There may be an optional sh(1) argument at the beginning of
26442 + # install_prog (especially on Windows NT).
26443 + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
26444 + # Allow the use of GNU shtool's install command.
26445 + $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
26446 + # Aesthetically quote it.
26447 + arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
26448 + case $arg in
26449 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
26450 + arg="\"$arg\""
26451 + ;;
26452 + esac
26453 + install_prog="$arg "
26454 + arg="$1"
26455 + shift
26456 + else
26457 + install_prog=
26458 + arg="$nonopt"
26459 + fi
26460 +
26461 + # The real first argument should be the name of the installation program.
26462 + # Aesthetically quote it.
26463 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
26464 + case $arg in
26465 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
26466 + arg="\"$arg\""
26467 + ;;
26468 + esac
26469 + install_prog="$install_prog$arg"
26470 +
26471 + # We need to accept at least all the BSD install flags.
26472 + dest=
26473 + files=
26474 + opts=
26475 + prev=
26476 + install_type=
26477 + isdir=no
26478 + stripme=
26479 + for arg
26480 + do
26481 + if test -n "$dest"; then
26482 + files="$files $dest"
26483 + dest="$arg"
26484 + continue
26485 + fi
26486 +
26487 + case $arg in
26488 + -d) isdir=yes ;;
26489 + -f) prev="-f" ;;
26490 + -g) prev="-g" ;;
26491 + -m) prev="-m" ;;
26492 + -o) prev="-o" ;;
26493 + -s)
26494 + stripme=" -s"
26495 + continue
26496 + ;;
26497 + -*) ;;
26498 +
26499 + *)
26500 + # If the previous option needed an argument, then skip it.
26501 + if test -n "$prev"; then
26502 + prev=
26503 + else
26504 + dest="$arg"
26505 + continue
26506 + fi
26507 + ;;
26508 + esac
26509 +
26510 + # Aesthetically quote the argument.
26511 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
26512 + case $arg in
26513 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
26514 + arg="\"$arg\""
26515 + ;;
26516 + esac
26517 + install_prog="$install_prog $arg"
26518 + done
26519 +
26520 + if test -z "$install_prog"; then
26521 + $echo "$modename: you must specify an install program" 1>&2
26522 + $echo "$help" 1>&2
26523 + exit 1
26524 + fi
26525 +
26526 + if test -n "$prev"; then
26527 + $echo "$modename: the \`$prev' option requires an argument" 1>&2
26528 + $echo "$help" 1>&2
26529 + exit 1
26530 + fi
26531 +
26532 + if test -z "$files"; then
26533 + if test -z "$dest"; then
26534 + $echo "$modename: no file or destination specified" 1>&2
26535 + else
26536 + $echo "$modename: you must specify a destination" 1>&2
26537 + fi
26538 + $echo "$help" 1>&2
26539 + exit 1
26540 + fi
26541 +
26542 + # Strip any trailing slash from the destination.
26543 + dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
26544 +
26545 + # Check to see that the destination is a directory.
26546 + test -d "$dest" && isdir=yes
26547 + if test "$isdir" = yes; then
26548 + destdir="$dest"
26549 + destname=
26550 + else
26551 + destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
26552 + test "X$destdir" = "X$dest" && destdir=.
26553 + destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
26554 +
26555 + # Not a directory, so check to see that there is only one file specified.
26556 + set dummy $files
26557 + if test $# -gt 2; then
26558 + $echo "$modename: \`$dest' is not a directory" 1>&2
26559 + $echo "$help" 1>&2
26560 + exit 1
26561 + fi
26562 + fi
26563 + case $destdir in
26564 + [\\/]* | [A-Za-z]:[\\/]*) ;;
26565 + *)
26566 + for file in $files; do
26567 + case $file in
26568 + *.lo) ;;
26569 + *)
26570 + $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
26571 + $echo "$help" 1>&2
26572 + exit 1
26573 + ;;
26574 + esac
26575 + done
26576 + ;;
26577 + esac
26578 +
26579 + # This variable tells wrapper scripts just to set variables rather
26580 + # than running their programs.
26581 + libtool_install_magic="$magic"
26582 +
26583 + staticlibs=
26584 + future_libdirs=
26585 + current_libdirs=
26586 + for file in $files; do
26587 +
26588 + # Do each installation.
26589 + case $file in
26590 + *.$libext)
26591 + # Do the static libraries later.
26592 + staticlibs="$staticlibs $file"
26593 + ;;
26594 +
26595 + *.la)
26596 + # Check to see that this really is a libtool archive.
26597 + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
26598 + else
26599 + $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
26600 + $echo "$help" 1>&2
26601 + exit 1
26602 + fi
26603 +
26604 + library_names=
26605 + old_library=
26606 + relink_command=
26607 + # If there is no directory component, then add one.
26608 + case $file in
26609 + */* | *\\*) . $file ;;
26610 + *) . ./$file ;;
26611 + esac
26612 +
26613 + # Add the libdir to current_libdirs if it is the destination.
26614 + if test "X$destdir" = "X$libdir"; then
26615 + case "$current_libdirs " in
26616 + *" $libdir "*) ;;
26617 + *) current_libdirs="$current_libdirs $libdir" ;;
26618 + esac
26619 + else
26620 + # Note the libdir as a future libdir.
26621 + case "$future_libdirs " in
26622 + *" $libdir "*) ;;
26623 + *) future_libdirs="$future_libdirs $libdir" ;;
26624 + esac
26625 + fi
26626 +
26627 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
26628 + test "X$dir" = "X$file/" && dir=
26629 + dir="$dir$objdir"
26630 +
26631 + if test -n "$relink_command"; then
26632 + # Determine the prefix the user has applied to our future dir.
26633 + inst_prefix_dir=`$echo "$destdir" | sed "s%$libdir\$%%"`
26634 +
26635 + # Don't allow the user to place us outside of our expected
26636 + # location b/c this prevents finding dependent libraries that
26637 + # are installed to the same prefix.
26638 + if test "$inst_prefix_dir" = "$destdir"; then
26639 + $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
26640 + exit 1
26641 + fi
26642 +
26643 + if test -n "$inst_prefix_dir"; then
26644 + # Stick the inst_prefix_dir data into the link command.
26645 + relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
26646 + else
26647 + relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%%"`
26648 + fi
26649 +
26650 + $echo "$modename: warning: relinking \`$file'" 1>&2
26651 + $show "$relink_command"
26652 + if $run eval "$relink_command"; then :
26653 + else
26654 + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
26655 + exit 1
26656 + fi
26657 + fi
26658 +
26659 + # See the names of the shared library.
26660 + set dummy $library_names
26661 + if test -n "$2"; then
26662 + realname="$2"
26663 + shift
26664 + shift
26665 +
26666 + srcname="$realname"
26667 + test -n "$relink_command" && srcname="$realname"T
26668 +
26669 + # Install the shared library and build the symlinks.
26670 + $show "$install_prog $dir/$srcname $destdir/$realname"
26671 + $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
26672 + if test -n "$stripme" && test -n "$striplib"; then
26673 + $show "$striplib $destdir/$realname"
26674 + $run eval "$striplib $destdir/$realname" || exit $?
26675 + fi
26676 +
26677 + if test $# -gt 0; then
26678 + # Delete the old symlinks, and create new ones.
26679 + for linkname
26680 + do
26681 + if test "$linkname" != "$realname"; then
26682 + $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
26683 + $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
26684 + fi
26685 + done
26686 + fi
26687 +
26688 + # Do each command in the postinstall commands.
26689 + lib="$destdir/$realname"
26690 + eval cmds=\"$postinstall_cmds\"
26691 + save_ifs="$IFS"; IFS='~'
26692 + for cmd in $cmds; do
26693 + IFS="$save_ifs"
26694 + $show "$cmd"
26695 + $run eval "$cmd" || exit $?
26696 + done
26697 + IFS="$save_ifs"
26698 + fi
26699 +
26700 + # Install the pseudo-library for information purposes.
26701 + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
26702 + instname="$dir/$name"i
26703 + $show "$install_prog $instname $destdir/$name"
26704 + $run eval "$install_prog $instname $destdir/$name" || exit $?
26705 +
26706 + # Maybe install the static library, too.
26707 + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
26708 + ;;
26709 +
26710 + *.lo)
26711 + # Install (i.e. copy) a libtool object.
26712 +
26713 + # Figure out destination file name, if it wasn't already specified.
26714 + if test -n "$destname"; then
26715 + destfile="$destdir/$destname"
26716 + else
26717 + destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
26718 + destfile="$destdir/$destfile"
26719 + fi
26720 +
26721 + # Deduce the name of the destination old-style object file.
26722 + case $destfile in
26723 + *.lo)
26724 + staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
26725 + ;;
26726 + *.$objext)
26727 + staticdest="$destfile"
26728 + destfile=
26729 + ;;
26730 + *)
26731 + $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
26732 + $echo "$help" 1>&2
26733 + exit 1
26734 + ;;
26735 + esac
26736 +
26737 + # Install the libtool object if requested.
26738 + if test -n "$destfile"; then
26739 + $show "$install_prog $file $destfile"
26740 + $run eval "$install_prog $file $destfile" || exit $?
26741 + fi
26742 +
26743 + # Install the old object if enabled.
26744 + if test "$build_old_libs" = yes; then
26745 + # Deduce the name of the old-style object file.
26746 + staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
26747 +
26748 + $show "$install_prog $staticobj $staticdest"
26749 + $run eval "$install_prog \$staticobj \$staticdest" || exit $?
26750 + fi
26751 + exit 0
26752 + ;;
26753 +
26754 + *)
26755 + # Figure out destination file name, if it wasn't already specified.
26756 + if test -n "$destname"; then
26757 + destfile="$destdir/$destname"
26758 + else
26759 + destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
26760 + destfile="$destdir/$destfile"
26761 + fi
26762 +
26763 + # Do a test to see if this is really a libtool program.
26764 + case $host in
26765 + *cygwin*|*mingw*)
26766 + wrapper=`echo $file | ${SED} -e 's,.exe$,,'`
26767 + ;;
26768 + *)
26769 + wrapper=$file
26770 + ;;
26771 + esac
26772 + if (${SED} -e '4q' $wrapper | egrep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
26773 + notinst_deplibs=
26774 + relink_command=
26775 +
26776 + # If there is no directory component, then add one.
26777 + case $file in
26778 + */* | *\\*) . $wrapper ;;
26779 + *) . ./$wrapper ;;
26780 + esac
26781 +
26782 + # Check the variables that should have been set.
26783 + if test -z "$notinst_deplibs"; then
26784 + $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
26785 + exit 1
26786 + fi
26787 +
26788 + finalize=yes
26789 + for lib in $notinst_deplibs; do
26790 + # Check to see that each library is installed.
26791 + libdir=
26792 + if test -f "$lib"; then
26793 + # If there is no directory component, then add one.
26794 + case $lib in
26795 + */* | *\\*) . $lib ;;
26796 + *) . ./$lib ;;
26797 + esac
26798 + fi
26799 + libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
26800 + if test -n "$libdir" && test ! -f "$libfile"; then
26801 + $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
26802 + finalize=no
26803 + fi
26804 + done
26805 +
26806 + relink_command=
26807 + # If there is no directory component, then add one.
26808 + case $file in
26809 + */* | *\\*) . $wrapper ;;
26810 + *) . ./$wrapper ;;
26811 + esac
26812 +
26813 + outputname=
26814 + if test "$fast_install" = no && test -n "$relink_command"; then
26815 + if test "$finalize" = yes && test -z "$run"; then
26816 + tmpdir="/tmp"
26817 + test -n "$TMPDIR" && tmpdir="$TMPDIR"
26818 + tmpdir="$tmpdir/libtool-$$"
26819 + if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then :
26820 + else
26821 + $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
26822 + continue
26823 + fi
26824 + file=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
26825 + outputname="$tmpdir/$file"
26826 + # Replace the output file specification.
26827 + relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
26828 +
26829 + $show "$relink_command"
26830 + if $run eval "$relink_command"; then :
26831 + else
26832 + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
26833 + ${rm}r "$tmpdir"
26834 + continue
26835 + fi
26836 + file="$outputname"
26837 + else
26838 + $echo "$modename: warning: cannot relink \`$file'" 1>&2
26839 + fi
26840 + else
26841 + # Install the binary that we compiled earlier.
26842 + file=`$echo "X$file" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
26843 + fi
26844 + fi
26845 +
26846 + # remove .exe since cygwin /usr/bin/install will append another
26847 + # one anyways
26848 + case $install_prog,$host in
26849 + /usr/bin/install*,*cygwin*)
26850 + case $file:$destfile in
26851 + *.exe:*.exe)
26852 + # this is ok
26853 + ;;
26854 + *.exe:*)
26855 + destfile=$destfile.exe
26856 + ;;
26857 + *:*.exe)
26858 + destfile=`echo $destfile | ${SED} -e 's,.exe$,,'`
26859 + ;;
26860 + esac
26861 + ;;
26862 + esac
26863 + $show "$install_prog$stripme $file $destfile"
26864 + $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
26865 + test -n "$outputname" && ${rm}r "$tmpdir"
26866 + ;;
26867 + esac
26868 + done
26869 +
26870 + for file in $staticlibs; do
26871 + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
26872 +
26873 + # Set up the ranlib parameters.
26874 + oldlib="$destdir/$name"
26875 +
26876 + $show "$install_prog $file $oldlib"
26877 + $run eval "$install_prog \$file \$oldlib" || exit $?
26878 +
26879 + if test -n "$stripme" && test -n "$striplib"; then
26880 + $show "$old_striplib $oldlib"
26881 + $run eval "$old_striplib $oldlib" || exit $?
26882 + fi
26883 +
26884 + # Do each command in the postinstall commands.
26885 + eval cmds=\"$old_postinstall_cmds\"
26886 + save_ifs="$IFS"; IFS='~'
26887 + for cmd in $cmds; do
26888 + IFS="$save_ifs"
26889 + $show "$cmd"
26890 + $run eval "$cmd" || exit $?
26891 + done
26892 + IFS="$save_ifs"
26893 + done
26894 +
26895 + if test -n "$future_libdirs"; then
26896 + $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
26897 + fi
26898 +
26899 + if test -n "$current_libdirs"; then
26900 + # Maybe just do a dry run.
26901 + test -n "$run" && current_libdirs=" -n$current_libdirs"
26902 + exec_cmd='$SHELL $0 --finish$current_libdirs'
26903 + else
26904 + exit 0
26905 + fi
26906 + ;;
26907 +
26908 + # libtool finish mode
26909 + finish)
26910 + modename="$modename: finish"
26911 + libdirs="$nonopt"
26912 + admincmds=
26913 +
26914 + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
26915 + for dir
26916 + do
26917 + libdirs="$libdirs $dir"
26918 + done
26919 +
26920 + for libdir in $libdirs; do
26921 + if test -n "$finish_cmds"; then
26922 + # Do each command in the finish commands.
26923 + eval cmds=\"$finish_cmds\"
26924 + save_ifs="$IFS"; IFS='~'
26925 + for cmd in $cmds; do
26926 + IFS="$save_ifs"
26927 + $show "$cmd"
26928 + $run eval "$cmd" || admincmds="$admincmds
26929 + $cmd"
26930 + done
26931 + IFS="$save_ifs"
26932 + fi
26933 + if test -n "$finish_eval"; then
26934 + # Do the single finish_eval.
26935 + eval cmds=\"$finish_eval\"
26936 + $run eval "$cmds" || admincmds="$admincmds
26937 + $cmds"
26938 + fi
26939 + done
26940 + fi
26941 +
26942 + # Exit here if they wanted silent mode.
26943 + test "$show" = ":" && exit 0
26944 +
26945 + echo "----------------------------------------------------------------------"
26946 + echo "Libraries have been installed in:"
26947 + for libdir in $libdirs; do
26948 + echo " $libdir"
26949 + done
26950 + echo
26951 + echo "If you ever happen to want to link against installed libraries"
26952 + echo "in a given directory, LIBDIR, you must either use libtool, and"
26953 + echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
26954 + echo "flag during linking and do at least one of the following:"
26955 + if test -n "$shlibpath_var"; then
26956 + echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
26957 + echo " during execution"
26958 + fi
26959 + if test -n "$runpath_var"; then
26960 + echo " - add LIBDIR to the \`$runpath_var' environment variable"
26961 + echo " during linking"
26962 + fi
26963 + if test -n "$hardcode_libdir_flag_spec"; then
26964 + libdir=LIBDIR
26965 + eval flag=\"$hardcode_libdir_flag_spec\"
26966 +
26967 + echo " - use the \`$flag' linker flag"
26968 + fi
26969 + if test -n "$admincmds"; then
26970 + echo " - have your system administrator run these commands:$admincmds"
26971 + fi
26972 + if test -f /etc/ld.so.conf; then
26973 + echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
26974 + fi
26975 + echo
26976 + echo "See any operating system documentation about shared libraries for"
26977 + echo "more information, such as the ld(1) and ld.so(8) manual pages."
26978 + echo "----------------------------------------------------------------------"
26979 + exit 0
26980 + ;;
26981 +
26982 + # libtool execute mode
26983 + execute)
26984 + modename="$modename: execute"
26985 +
26986 + # The first argument is the command name.
26987 + cmd="$nonopt"
26988 + if test -z "$cmd"; then
26989 + $echo "$modename: you must specify a COMMAND" 1>&2
26990 + $echo "$help"
26991 + exit 1
26992 + fi
26993 +
26994 + # Handle -dlopen flags immediately.
26995 + for file in $execute_dlfiles; do
26996 + if test ! -f "$file"; then
26997 + $echo "$modename: \`$file' is not a file" 1>&2
26998 + $echo "$help" 1>&2
26999 + exit 1
27000 + fi
27001 +
27002 + dir=
27003 + case $file in
27004 + *.la)
27005 + # Check to see that this really is a libtool archive.
27006 + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
27007 + else
27008 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
27009 + $echo "$help" 1>&2
27010 + exit 1
27011 + fi
27012 +
27013 + # Read the libtool library.
27014 + dlname=
27015 + library_names=
27016 +
27017 + # If there is no directory component, then add one.
27018 + case $file in
27019 + */* | *\\*) . $file ;;
27020 + *) . ./$file ;;
27021 + esac
27022 +
27023 + # Skip this library if it cannot be dlopened.
27024 + if test -z "$dlname"; then
27025 + # Warn if it was a shared library.
27026 + test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
27027 + continue
27028 + fi
27029 +
27030 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
27031 + test "X$dir" = "X$file" && dir=.
27032 +
27033 + if test -f "$dir/$objdir/$dlname"; then
27034 + dir="$dir/$objdir"
27035 + else
27036 + $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
27037 + exit 1
27038 + fi
27039 + ;;
27040 +
27041 + *.lo)
27042 + # Just add the directory containing the .lo file.
27043 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
27044 + test "X$dir" = "X$file" && dir=.
27045 + ;;
27046 +
27047 + *)
27048 + $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
27049 + continue
27050 + ;;
27051 + esac
27052 +
27053 + # Get the absolute pathname.
27054 + absdir=`cd "$dir" && pwd`
27055 + test -n "$absdir" && dir="$absdir"
27056 +
27057 + # Now add the directory to shlibpath_var.
27058 + if eval "test -z \"\$$shlibpath_var\""; then
27059 + eval "$shlibpath_var=\"\$dir\""
27060 + else
27061 + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
27062 + fi
27063 + done
27064 +
27065 + # This variable tells wrapper scripts just to set shlibpath_var
27066 + # rather than running their programs.
27067 + libtool_execute_magic="$magic"
27068 +
27069 + # Check if any of the arguments is a wrapper script.
27070 + args=
27071 + for file
27072 + do
27073 + case $file in
27074 + -*) ;;
27075 + *)
27076 + # Do a test to see if this is really a libtool program.
27077 + if (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
27078 + # If there is no directory component, then add one.
27079 + case $file in
27080 + */* | *\\*) . $file ;;
27081 + *) . ./$file ;;
27082 + esac
27083 +
27084 + # Transform arg to wrapped name.
27085 + file="$progdir/$program"
27086 + fi
27087 + ;;
27088 + esac
27089 + # Quote arguments (to preserve shell metacharacters).
27090 + file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
27091 + args="$args \"$file\""
27092 + done
27093 +
27094 + if test -z "$run"; then
27095 + if test -n "$shlibpath_var"; then
27096 + # Export the shlibpath_var.
27097 + eval "export $shlibpath_var"
27098 + fi
27099 +
27100 + # Restore saved enviroment variables
27101 + if test "${save_LC_ALL+set}" = set; then
27102 + LC_ALL="$save_LC_ALL"; export LC_ALL
27103 + fi
27104 + if test "${save_LANG+set}" = set; then
27105 + LANG="$save_LANG"; export LANG
27106 + fi
27107 +
27108 + # Now prepare to actually exec the command.
27109 + exec_cmd="\$cmd$args"
27110 + else
27111 + # Display what would be done.
27112 + if test -n "$shlibpath_var"; then
27113 + eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
27114 + $echo "export $shlibpath_var"
27115 + fi
27116 + $echo "$cmd$args"
27117 + exit 0
27118 + fi
27119 + ;;
27120 +
27121 + # libtool clean and uninstall mode
27122 + clean | uninstall)
27123 + modename="$modename: $mode"
27124 + rm="$nonopt"
27125 + files=
27126 + rmforce=
27127 + exit_status=0
27128 +
27129 + # This variable tells wrapper scripts just to set variables rather
27130 + # than running their programs.
27131 + libtool_install_magic="$magic"
27132 +
27133 + for arg
27134 + do
27135 + case $arg in
27136 + -f) rm="$rm $arg"; rmforce=yes ;;
27137 + -*) rm="$rm $arg" ;;
27138 + *) files="$files $arg" ;;
27139 + esac
27140 + done
27141 +
27142 + if test -z "$rm"; then
27143 + $echo "$modename: you must specify an RM program" 1>&2
27144 + $echo "$help" 1>&2
27145 + exit 1
27146 + fi
27147 +
27148 + rmdirs=
27149 +
27150 + for file in $files; do
27151 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
27152 + if test "X$dir" = "X$file"; then
27153 + dir=.
27154 + objdir="$objdir"
27155 + else
27156 + objdir="$dir/$objdir"
27157 + fi
27158 + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
27159 + test $mode = uninstall && objdir="$dir"
27160 +
27161 + # Remember objdir for removal later, being careful to avoid duplicates
27162 + if test $mode = clean; then
27163 + case " $rmdirs " in
27164 + *" $objdir "*) ;;
27165 + *) rmdirs="$rmdirs $objdir" ;;
27166 + esac
27167 + fi
27168 +
27169 + # Don't error if the file doesn't exist and rm -f was used.
27170 + if (test -L "$file") >/dev/null 2>&1 \
27171 + || (test -h "$file") >/dev/null 2>&1 \
27172 + || test -f "$file"; then
27173 + :
27174 + elif test -d "$file"; then
27175 + exit_status=1
27176 + continue
27177 + elif test "$rmforce" = yes; then
27178 + continue
27179 + fi
27180 +
27181 + rmfiles="$file"
27182 +
27183 + case $name in
27184 + *.la)
27185 + # Possibly a libtool archive, so verify it.
27186 + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
27187 + . $dir/$name
27188 +
27189 + # Delete the libtool libraries and symlinks.
27190 + for n in $library_names; do
27191 + rmfiles="$rmfiles $objdir/$n"
27192 + done
27193 + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
27194 + test $mode = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
27195 +
27196 + if test $mode = uninstall; then
27197 + if test -n "$library_names"; then
27198 + # Do each command in the postuninstall commands.
27199 + eval cmds=\"$postuninstall_cmds\"
27200 + save_ifs="$IFS"; IFS='~'
27201 + for cmd in $cmds; do
27202 + IFS="$save_ifs"
27203 + $show "$cmd"
27204 + $run eval "$cmd"
27205 + if test $? != 0 && test "$rmforce" != yes; then
27206 + exit_status=1
27207 + fi
27208 + done
27209 + IFS="$save_ifs"
27210 + fi
27211 +
27212 + if test -n "$old_library"; then
27213 + # Do each command in the old_postuninstall commands.
27214 + eval cmds=\"$old_postuninstall_cmds\"
27215 + save_ifs="$IFS"; IFS='~'
27216 + for cmd in $cmds; do
27217 + IFS="$save_ifs"
27218 + $show "$cmd"
27219 + $run eval "$cmd"
27220 + if test $? != 0 && test "$rmforce" != yes; then
27221 + exit_status=1
27222 + fi
27223 + done
27224 + IFS="$save_ifs"
27225 + fi
27226 + # FIXME: should reinstall the best remaining shared library.
27227 + fi
27228 + fi
27229 + ;;
27230 +
27231 + *.lo)
27232 + if test "$build_old_libs" = yes; then
27233 + oldobj=`$echo "X$name" | $Xsed -e "$lo2o"`
27234 + rmfiles="$rmfiles $dir/$oldobj"
27235 + fi
27236 + ;;
27237 +
27238 + *)
27239 + # Do a test to see if this is a libtool program.
27240 + if test $mode = clean &&
27241 + (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
27242 + relink_command=
27243 + . $file
27244 +
27245 + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
27246 + if test "$fast_install" = yes && test -n "$relink_command"; then
27247 + rmfiles="$rmfiles $objdir/lt-$name"
27248 + fi
27249 + fi
27250 + ;;
27251 + esac
27252 + $show "$rm $rmfiles"
27253 + $run $rm $rmfiles || exit_status=1
27254 + done
27255 +
27256 + # Try to remove the ${objdir}s in the directories where we deleted files
27257 + for dir in $rmdirs; do
27258 + if test -d "$dir"; then
27259 + $show "rmdir $dir"
27260 + $run rmdir $dir >/dev/null 2>&1
27261 + fi
27262 + done
27263 +
27264 + exit $exit_status
27265 + ;;
27266 +
27267 + "")
27268 + $echo "$modename: you must specify a MODE" 1>&2
27269 + $echo "$generic_help" 1>&2
27270 + exit 1
27271 + ;;
27272 + esac
27273 +
27274 + if test -z "$exec_cmd"; then
27275 + $echo "$modename: invalid operation mode \`$mode'" 1>&2
27276 + $echo "$generic_help" 1>&2
27277 + exit 1
27278 + fi
27279 +fi # test -z "$show_help"
27280 +
27281 +if test -n "$exec_cmd"; then
27282 + eval exec $exec_cmd
27283 + exit 1
27284 +fi
27285 +
27286 +# We need to display help for each of the modes.
27287 +case $mode in
27288 +"") $echo \
27289 +"Usage: $modename [OPTION]... [MODE-ARG]...
27290 +
27291 +Provide generalized library-building support services.
27292 +
27293 + --config show all configuration variables
27294 + --debug enable verbose shell tracing
27295 +-n, --dry-run display commands without modifying any files
27296 + --features display basic configuration information and exit
27297 + --finish same as \`--mode=finish'
27298 + --help display this help message and exit
27299 + --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
27300 + --quiet same as \`--silent'
27301 + --silent don't print informational messages
27302 + --version print version information
27303 +
27304 +MODE must be one of the following:
27305 +
27306 + clean remove files from the build directory
27307 + compile compile a source file into a libtool object
27308 + execute automatically set library path, then run a program
27309 + finish complete the installation of libtool libraries
27310 + install install libraries or executables
27311 + link create a library or an executable
27312 + uninstall remove libraries from an installed directory
27313 +
27314 +MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
27315 +a more detailed description of MODE."
27316 + exit 0
27317 + ;;
27318 +
27319 +clean)
27320 + $echo \
27321 +"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
27322 +
27323 +Remove files from the build directory.
27324 +
27325 +RM is the name of the program to use to delete files associated with each FILE
27326 +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
27327 +to RM.
27328 +
27329 +If FILE is a libtool library, object or program, all the files associated
27330 +with it are deleted. Otherwise, only FILE itself is deleted using RM."
27331 + ;;
27332 +
27333 +compile)
27334 + $echo \
27335 +"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
27336 +
27337 +Compile a source file into a libtool library object.
27338 +
27339 +This mode accepts the following additional options:
27340 +
27341 + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
27342 + -prefer-pic try to building PIC objects only
27343 + -prefer-non-pic try to building non-PIC objects only
27344 + -static always build a \`.o' file suitable for static linking
27345 +
27346 +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
27347 +from the given SOURCEFILE.
27348 +
27349 +The output file name is determined by removing the directory component from
27350 +SOURCEFILE, then substituting the C source code suffix \`.c' with the
27351 +library object suffix, \`.lo'."
27352 + ;;
27353 +
27354 +execute)
27355 + $echo \
27356 +"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
27357 +
27358 +Automatically set library path, then run a program.
27359 +
27360 +This mode accepts the following additional options:
27361 +
27362 + -dlopen FILE add the directory containing FILE to the library path
27363 +
27364 +This mode sets the library path environment variable according to \`-dlopen'
27365 +flags.
27366 +
27367 +If any of the ARGS are libtool executable wrappers, then they are translated
27368 +into their corresponding uninstalled binary, and any of their required library
27369 +directories are added to the library path.
27370 +
27371 +Then, COMMAND is executed, with ARGS as arguments."
27372 + ;;
27373 +
27374 +finish)
27375 + $echo \
27376 +"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
27377 +
27378 +Complete the installation of libtool libraries.
27379 +
27380 +Each LIBDIR is a directory that contains libtool libraries.
27381 +
27382 +The commands that this mode executes may require superuser privileges. Use
27383 +the \`--dry-run' option if you just want to see what would be executed."
27384 + ;;
27385 +
27386 +install)
27387 + $echo \
27388 +"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
27389 +
27390 +Install executables or libraries.
27391 +
27392 +INSTALL-COMMAND is the installation command. The first component should be
27393 +either the \`install' or \`cp' program.
27394 +
27395 +The rest of the components are interpreted as arguments to that command (only
27396 +BSD-compatible install options are recognized)."
27397 + ;;
27398 +
27399 +link)
27400 + $echo \
27401 +"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
27402 +
27403 +Link object files or libraries together to form another library, or to
27404 +create an executable program.
27405 +
27406 +LINK-COMMAND is a command using the C compiler that you would use to create
27407 +a program from several object files.
27408 +
27409 +The following components of LINK-COMMAND are treated specially:
27410 +
27411 + -all-static do not do any dynamic linking at all
27412 + -avoid-version do not add a version suffix if possible
27413 + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
27414 + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
27415 + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
27416 + -export-symbols SYMFILE
27417 + try to export only the symbols listed in SYMFILE
27418 + -export-symbols-regex REGEX
27419 + try to export only the symbols matching REGEX
27420 + -LLIBDIR search LIBDIR for required installed libraries
27421 + -lNAME OUTPUT-FILE requires the installed library libNAME
27422 + -module build a library that can dlopened
27423 + -no-fast-install disable the fast-install mode
27424 + -no-install link a not-installable executable
27425 + -no-undefined declare that a library does not refer to external symbols
27426 + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
27427 + -release RELEASE specify package release information
27428 + -rpath LIBDIR the created library will eventually be installed in LIBDIR
27429 + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
27430 + -static do not do any dynamic linking of libtool libraries
27431 + -version-info CURRENT[:REVISION[:AGE]]
27432 + specify library version info [each variable defaults to 0]
27433 +
27434 +All other options (arguments beginning with \`-') are ignored.
27435 +
27436 +Every other argument is treated as a filename. Files ending in \`.la' are
27437 +treated as uninstalled libtool libraries, other files are standard or library
27438 +object files.
27439 +
27440 +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
27441 +only library objects (\`.lo' files) may be specified, and \`-rpath' is
27442 +required, except when creating a convenience library.
27443 +
27444 +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
27445 +using \`ar' and \`ranlib', or on Windows using \`lib'.
27446 +
27447 +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
27448 +is created, otherwise an executable program is created."
27449 + ;;
27450 +
27451 +uninstall)
27452 + $echo \
27453 +"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
27454 +
27455 +Remove libraries from an installation directory.
27456 +
27457 +RM is the name of the program to use to delete files associated with each FILE
27458 +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
27459 +to RM.
27460 +
27461 +If FILE is a libtool library, all the files associated with it are deleted.
27462 +Otherwise, only FILE itself is deleted using RM."
27463 + ;;
27464 +
27465 +*)
27466 + $echo "$modename: invalid operation mode \`$mode'" 1>&2
27467 + $echo "$help" 1>&2
27468 + exit 1
27469 + ;;
27470 +esac
27471 +
27472 +echo
27473 +$echo "Try \`$modename --help' for more information about other modes."
27474 +
27475 +exit 0
27476 +
27477 +# Local Variables:
27478 +# mode:shell-script
27479 +# sh-indentation:2
27480 +# End:
27481 diff -ruN libnet-1.0.2a-orig/missing libnet-1.0.2a-7/missing
27482 --- libnet-1.0.2a-orig/missing 1970-01-01 01:00:00.000000000 +0100
27483 +++ libnet-1.0.2a-7/missing 2005-03-08 03:53:26.000000000 +0100
27484 @@ -0,0 +1,336 @@
27485 +#! /bin/sh
27486 +# Common stub for a few missing GNU programs while installing.
27487 +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
27488 +# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
27489 +
27490 +# This program is free software; you can redistribute it and/or modify
27491 +# it under the terms of the GNU General Public License as published by
27492 +# the Free Software Foundation; either version 2, or (at your option)
27493 +# any later version.
27494 +
27495 +# This program is distributed in the hope that it will be useful,
27496 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
27497 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27498 +# GNU General Public License for more details.
27499 +
27500 +# You should have received a copy of the GNU General Public License
27501 +# along with this program; if not, write to the Free Software
27502 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27503 +# 02111-1307, USA.
27504 +
27505 +# As a special exception to the GNU General Public License, if you
27506 +# distribute this file as part of a program that contains a
27507 +# configuration script generated by Autoconf, you may include it under
27508 +# the same distribution terms that you use for the rest of that program.
27509 +
27510 +if test $# -eq 0; then
27511 + echo 1>&2 "Try \`$0 --help' for more information"
27512 + exit 1
27513 +fi
27514 +
27515 +run=:
27516 +
27517 +# In the cases where this matters, `missing' is being run in the
27518 +# srcdir already.
27519 +if test -f configure.ac; then
27520 + configure_ac=configure.ac
27521 +else
27522 + configure_ac=configure.in
27523 +fi
27524 +
27525 +case "$1" in
27526 +--run)
27527 + # Try to run requested program, and just exit if it succeeds.
27528 + run=
27529 + shift
27530 + "$@" && exit 0
27531 + ;;
27532 +esac
27533 +
27534 +# If it does not exist, or fails to run (possibly an outdated version),
27535 +# try to emulate it.
27536 +case "$1" in
27537 +
27538 + -h|--h|--he|--hel|--help)
27539 + echo "\
27540 +$0 [OPTION]... PROGRAM [ARGUMENT]...
27541 +
27542 +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
27543 +error status if there is no known handling for PROGRAM.
27544 +
27545 +Options:
27546 + -h, --help display this help and exit
27547 + -v, --version output version information and exit
27548 + --run try to run the given command, and emulate it if it fails
27549 +
27550 +Supported PROGRAM values:
27551 + aclocal touch file \`aclocal.m4'
27552 + autoconf touch file \`configure'
27553 + autoheader touch file \`config.h.in'
27554 + automake touch all \`Makefile.in' files
27555 + bison create \`y.tab.[ch]', if possible, from existing .[ch]
27556 + flex create \`lex.yy.c', if possible, from existing .c
27557 + help2man touch the output file
27558 + lex create \`lex.yy.c', if possible, from existing .c
27559 + makeinfo touch the output file
27560 + tar try tar, gnutar, gtar, then tar without non-portable flags
27561 + yacc create \`y.tab.[ch]', if possible, from existing .[ch]"
27562 + ;;
27563 +
27564 + -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
27565 + echo "missing 0.4 - GNU automake"
27566 + ;;
27567 +
27568 + -*)
27569 + echo 1>&2 "$0: Unknown \`$1' option"
27570 + echo 1>&2 "Try \`$0 --help' for more information"
27571 + exit 1
27572 + ;;
27573 +
27574 + aclocal*)
27575 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
27576 + # We have it, but it failed.
27577 + exit 1
27578 + fi
27579 +
27580 + echo 1>&2 "\
27581 +WARNING: \`$1' is missing on your system. You should only need it if
27582 + you modified \`acinclude.m4' or \`${configure_ac}'. You might want
27583 + to install the \`Automake' and \`Perl' packages. Grab them from
27584 + any GNU archive site."
27585 + touch aclocal.m4
27586 + ;;
27587 +
27588 + autoconf)
27589 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
27590 + # We have it, but it failed.
27591 + exit 1
27592 + fi
27593 +
27594 + echo 1>&2 "\
27595 +WARNING: \`$1' is missing on your system. You should only need it if
27596 + you modified \`${configure_ac}'. You might want to install the
27597 + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
27598 + archive site."
27599 + touch configure
27600 + ;;
27601 +
27602 + autoheader)
27603 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
27604 + # We have it, but it failed.
27605 + exit 1
27606 + fi
27607 +
27608 + echo 1>&2 "\
27609 +WARNING: \`$1' is missing on your system. You should only need it if
27610 + you modified \`acconfig.h' or \`${configure_ac}'. You might want
27611 + to install the \`Autoconf' and \`GNU m4' packages. Grab them
27612 + from any GNU archive site."
27613 + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
27614 + test -z "$files" && files="config.h"
27615 + touch_files=
27616 + for f in $files; do
27617 + case "$f" in
27618 + *:*) touch_files="$touch_files "`echo "$f" |
27619 + sed -e 's/^[^:]*://' -e 's/:.*//'`;;
27620 + *) touch_files="$touch_files $f.in";;
27621 + esac
27622 + done
27623 + touch $touch_files
27624 + ;;
27625 +
27626 + automake*)
27627 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
27628 + # We have it, but it failed.
27629 + exit 1
27630 + fi
27631 +
27632 + echo 1>&2 "\
27633 +WARNING: \`$1' is missing on your system. You should only need it if
27634 + you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
27635 + You might want to install the \`Automake' and \`Perl' packages.
27636 + Grab them from any GNU archive site."
27637 + find . -type f -name Makefile.am -print |
27638 + sed 's/\.am$/.in/' |
27639 + while read f; do touch "$f"; done
27640 + ;;
27641 +
27642 + autom4te)
27643 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
27644 + # We have it, but it failed.
27645 + exit 1
27646 + fi
27647 +
27648 + echo 1>&2 "\
27649 +WARNING: \`$1' is needed, and you do not seem to have it handy on your
27650 + system. You might have modified some files without having the
27651 + proper tools for further handling them.
27652 + You can get \`$1' as part of \`Autoconf' from any GNU
27653 + archive site."
27654 +
27655 + file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
27656 + test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
27657 + if test -f "$file"; then
27658 + touch $file
27659 + else
27660 + test -z "$file" || exec >$file
27661 + echo "#! /bin/sh"
27662 + echo "# Created by GNU Automake missing as a replacement of"
27663 + echo "# $ $@"
27664 + echo "exit 0"
27665 + chmod +x $file
27666 + exit 1
27667 + fi
27668 + ;;
27669 +
27670 + bison|yacc)
27671 + echo 1>&2 "\
27672 +WARNING: \`$1' is missing on your system. You should only need it if
27673 + you modified a \`.y' file. You may need the \`Bison' package
27674 + in order for those modifications to take effect. You can get
27675 + \`Bison' from any GNU archive site."
27676 + rm -f y.tab.c y.tab.h
27677 + if [ $# -ne 1 ]; then
27678 + eval LASTARG="\${$#}"
27679 + case "$LASTARG" in
27680 + *.y)
27681 + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
27682 + if [ -f "$SRCFILE" ]; then
27683 + cp "$SRCFILE" y.tab.c
27684 + fi
27685 + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
27686 + if [ -f "$SRCFILE" ]; then
27687 + cp "$SRCFILE" y.tab.h
27688 + fi
27689 + ;;
27690 + esac
27691 + fi
27692 + if [ ! -f y.tab.h ]; then
27693 + echo >y.tab.h
27694 + fi
27695 + if [ ! -f y.tab.c ]; then
27696 + echo 'main() { return 0; }' >y.tab.c
27697 + fi
27698 + ;;
27699 +
27700 + lex|flex)
27701 + echo 1>&2 "\
27702 +WARNING: \`$1' is missing on your system. You should only need it if
27703 + you modified a \`.l' file. You may need the \`Flex' package
27704 + in order for those modifications to take effect. You can get
27705 + \`Flex' from any GNU archive site."
27706 + rm -f lex.yy.c
27707 + if [ $# -ne 1 ]; then
27708 + eval LASTARG="\${$#}"
27709 + case "$LASTARG" in
27710 + *.l)
27711 + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
27712 + if [ -f "$SRCFILE" ]; then
27713 + cp "$SRCFILE" lex.yy.c
27714 + fi
27715 + ;;
27716 + esac
27717 + fi
27718 + if [ ! -f lex.yy.c ]; then
27719 + echo 'main() { return 0; }' >lex.yy.c
27720 + fi
27721 + ;;
27722 +
27723 + help2man)
27724 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
27725 + # We have it, but it failed.
27726 + exit 1
27727 + fi
27728 +
27729 + echo 1>&2 "\
27730 +WARNING: \`$1' is missing on your system. You should only need it if
27731 + you modified a dependency of a manual page. You may need the
27732 + \`Help2man' package in order for those modifications to take
27733 + effect. You can get \`Help2man' from any GNU archive site."
27734 +
27735 + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
27736 + if test -z "$file"; then
27737 + file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
27738 + fi
27739 + if [ -f "$file" ]; then
27740 + touch $file
27741 + else
27742 + test -z "$file" || exec >$file
27743 + echo ".ab help2man is required to generate this page"
27744 + exit 1
27745 + fi
27746 + ;;
27747 +
27748 + makeinfo)
27749 + if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
27750 + # We have makeinfo, but it failed.
27751 + exit 1
27752 + fi
27753 +
27754 + echo 1>&2 "\
27755 +WARNING: \`$1' is missing on your system. You should only need it if
27756 + you modified a \`.texi' or \`.texinfo' file, or any other file
27757 + indirectly affecting the aspect of the manual. The spurious
27758 + call might also be the consequence of using a buggy \`make' (AIX,
27759 + DU, IRIX). You might want to install the \`Texinfo' package or
27760 + the \`GNU make' package. Grab either from any GNU archive site."
27761 + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
27762 + if test -z "$file"; then
27763 + file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
27764 + file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
27765 + fi
27766 + touch $file
27767 + ;;
27768 +
27769 + tar)
27770 + shift
27771 + if test -n "$run"; then
27772 + echo 1>&2 "ERROR: \`tar' requires --run"
27773 + exit 1
27774 + fi
27775 +
27776 + # We have already tried tar in the generic part.
27777 + # Look for gnutar/gtar before invocation to avoid ugly error
27778 + # messages.
27779 + if (gnutar --version > /dev/null 2>&1); then
27780 + gnutar "$@" && exit 0
27781 + fi
27782 + if (gtar --version > /dev/null 2>&1); then
27783 + gtar "$@" && exit 0
27784 + fi
27785 + firstarg="$1"
27786 + if shift; then
27787 + case "$firstarg" in
27788 + *o*)
27789 + firstarg=`echo "$firstarg" | sed s/o//`
27790 + tar "$firstarg" "$@" && exit 0
27791 + ;;
27792 + esac
27793 + case "$firstarg" in
27794 + *h*)
27795 + firstarg=`echo "$firstarg" | sed s/h//`
27796 + tar "$firstarg" "$@" && exit 0
27797 + ;;
27798 + esac
27799 + fi
27800 +
27801 + echo 1>&2 "\
27802 +WARNING: I can't seem to be able to run \`tar' with the given arguments.
27803 + You may want to install GNU tar or Free paxutils, or check the
27804 + command line arguments."
27805 + exit 1
27806 + ;;
27807 +
27808 + *)
27809 + echo 1>&2 "\
27810 +WARNING: \`$1' is needed, and you do not seem to have it handy on your
27811 + system. You might have modified some files without having the
27812 + proper tools for further handling them. Check the \`README' file,
27813 + it often tells you about the needed prerequisites for installing
27814 + this package. You may also peek at any GNU archive site, in case
27815 + some other package would contain this missing \`$1' program."
27816 + exit 1
27817 + ;;
27818 +esac
27819 +
27820 +exit 0
27821 diff -ruN libnet-1.0.2a-orig/mkinstalldirs libnet-1.0.2a-7/mkinstalldirs
27822 --- libnet-1.0.2a-orig/mkinstalldirs 1970-01-01 01:00:00.000000000 +0100
27823 +++ libnet-1.0.2a-7/mkinstalldirs 2005-03-08 03:53:26.000000000 +0100
27824 @@ -0,0 +1,111 @@
27825 +#! /bin/sh
27826 +# mkinstalldirs --- make directory hierarchy
27827 +# Author: Noah Friedman <friedman@prep.ai.mit.edu>
27828 +# Created: 1993-05-16
27829 +# Public domain
27830 +
27831 +errstatus=0
27832 +dirmode=""
27833 +
27834 +usage="\
27835 +Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
27836 +
27837 +# process command line arguments
27838 +while test $# -gt 0 ; do
27839 + case $1 in
27840 + -h | --help | --h*) # -h for help
27841 + echo "$usage" 1>&2
27842 + exit 0
27843 + ;;
27844 + -m) # -m PERM arg
27845 + shift
27846 + test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
27847 + dirmode=$1
27848 + shift
27849 + ;;
27850 + --) # stop option processing
27851 + shift
27852 + break
27853 + ;;
27854 + -*) # unknown option
27855 + echo "$usage" 1>&2
27856 + exit 1
27857 + ;;
27858 + *) # first non-opt arg
27859 + break
27860 + ;;
27861 + esac
27862 +done
27863 +
27864 +for file
27865 +do
27866 + if test -d "$file"; then
27867 + shift
27868 + else
27869 + break
27870 + fi
27871 +done
27872 +
27873 +case $# in
27874 + 0) exit 0 ;;
27875 +esac
27876 +
27877 +case $dirmode in
27878 + '')
27879 + if mkdir -p -- . 2>/dev/null; then
27880 + echo "mkdir -p -- $*"
27881 + exec mkdir -p -- "$@"
27882 + fi
27883 + ;;
27884 + *)
27885 + if mkdir -m "$dirmode" -p -- . 2>/dev/null; then
27886 + echo "mkdir -m $dirmode -p -- $*"
27887 + exec mkdir -m "$dirmode" -p -- "$@"
27888 + fi
27889 + ;;
27890 +esac
27891 +
27892 +for file
27893 +do
27894 + set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
27895 + shift
27896 +
27897 + pathcomp=
27898 + for d
27899 + do
27900 + pathcomp="$pathcomp$d"
27901 + case $pathcomp in
27902 + -*) pathcomp=./$pathcomp ;;
27903 + esac
27904 +
27905 + if test ! -d "$pathcomp"; then
27906 + echo "mkdir $pathcomp"
27907 +
27908 + mkdir "$pathcomp" || lasterr=$?
27909 +
27910 + if test ! -d "$pathcomp"; then
27911 + errstatus=$lasterr
27912 + else
27913 + if test ! -z "$dirmode"; then
27914 + echo "chmod $dirmode $pathcomp"
27915 + lasterr=""
27916 + chmod "$dirmode" "$pathcomp" || lasterr=$?
27917 +
27918 + if test ! -z "$lasterr"; then
27919 + errstatus=$lasterr
27920 + fi
27921 + fi
27922 + fi
27923 + fi
27924 +
27925 + pathcomp="$pathcomp/"
27926 + done
27927 +done
27928 +
27929 +exit $errstatus
27930 +
27931 +# Local Variables:
27932 +# mode: shell-script
27933 +# sh-indentation: 2
27934 +# End:
27935 +# mkinstalldirs ends here
27936 diff -ruN libnet-1.0.2a-orig/src/Makefile.am libnet-1.0.2a-7/src/Makefile.am
27937 --- libnet-1.0.2a-orig/src/Makefile.am 1970-01-01 01:00:00.000000000 +0100
27938 +++ libnet-1.0.2a-7/src/Makefile.am 2005-03-08 03:53:26.000000000 +0100
27939 @@ -0,0 +1,56 @@
27940 +include $(top_srcdir)/Makefile.am.common
27941 +
27942 +lib_LTLIBRARIES = libnet.la
27943 +
27944 +libnet_la_SOURCES = \
27945 + libnet_resolve.c \
27946 + libnet_socket.c \
27947 + libnet_checksum.c \
27948 + libnet_prand.c \
27949 + libnet_version.c \
27950 + libnet_write_ip.c \
27951 + libnet_insert_ipo.c \
27952 + libnet_insert_tcpo.c \
27953 + libnet_error.c \
27954 + libnet_link_@LL_INT_TYPE@.c \
27955 + libnet_packet_mem.c \
27956 + libnet_build_ip.c \
27957 + libnet_build_tcp.c \
27958 + libnet_build_udp.c \
27959 + libnet_build_arp.c \
27960 + libnet_build_ethernet.c \
27961 + libnet_build_icmp.c \
27962 + libnet_build_igmp.c \
27963 + libnet_build_dns.c \
27964 + libnet_build_snmp.c \
27965 + libnet_build_rip.c \
27966 + libnet_build_ospf.c \
27967 + libnet_build_vrrp.c \
27968 + libnet_asn1.c \
27969 + libnet_hex_dump.c \
27970 + libnet_if_addr.c \
27971 + libnet_port_list.c
27972 +
27973 +libnet_la_LIBADD = @LTLIBOBJS@
27974 +
27975 +# Here are a set of rules to help you update your library version
27976 +# information:
27977 +#
27978 +# 1. If the library source code has changed at all since the last
27979 +# update, then increment REVISION (`C:R:A' becomes `C:r+1:A').
27980 +#
27981 +# 2. If any interfaces have been added, removed, or changed since the
27982 +# last update, increment CURRENT, and set REVISION to 0.
27983 +#
27984 +# 3. If any interfaces have been added since the last public release,
27985 +# then increment AGE.
27986 +#
27987 +# 4. If any interfaces have been removed since the last public release,
27988 +# then set AGE to 0.
27989 +libnet_la_LDFLAGS = -version-info 0:0:0 # CURRENT[:REVISION[:AGE]]
27990 +
27991 +install-data-hook:
27992 + ln -f -s libnet.a $(DESTDIR)$(libdir)/libwrite.a
27993 +
27994 +uninstall-hook:
27995 + rm -f $(DESTDIR)$(libdir)/libwrite.a
27996 diff -ruN libnet-1.0.2a-orig/src/Makefile.in libnet-1.0.2a-7/src/Makefile.in
27997 --- libnet-1.0.2a-orig/src/Makefile.in 1970-01-01 01:00:00.000000000 +0100
27998 +++ libnet-1.0.2a-7/src/Makefile.in 2005-03-08 03:53:26.000000000 +0100
27999 @@ -0,0 +1,502 @@
28000 +# Makefile.in generated by automake 1.8.5 from Makefile.am.
28001 +# @configure_input@
28002 +
28003 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
28004 +# 2003, 2004 Free Software Foundation, Inc.
28005 +# This Makefile.in is free software; the Free Software Foundation
28006 +# gives unlimited permission to copy and/or distribute it,
28007 +# with or without modifications, as long as this notice is preserved.
28008 +
28009 +# This program is distributed in the hope that it will be useful,
28010 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
28011 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
28012 +# PARTICULAR PURPOSE.
28013 +
28014 +@SET_MAKE@
28015 +
28016 +SOURCES = $(libnet_la_SOURCES)
28017 +
28018 +srcdir = @srcdir@
28019 +top_srcdir = @top_srcdir@
28020 +VPATH = @srcdir@
28021 +pkgdatadir = $(datadir)/@PACKAGE@
28022 +pkglibdir = $(libdir)/@PACKAGE@
28023 +pkgincludedir = $(includedir)/@PACKAGE@
28024 +top_builddir = ..
28025 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
28026 +INSTALL = @INSTALL@
28027 +install_sh_DATA = $(install_sh) -c -m 644
28028 +install_sh_PROGRAM = $(install_sh) -c
28029 +install_sh_SCRIPT = $(install_sh) -c
28030 +INSTALL_HEADER = $(INSTALL_DATA)
28031 +transform = $(program_transform_name)
28032 +NORMAL_INSTALL = :
28033 +PRE_INSTALL = :
28034 +POST_INSTALL = :
28035 +NORMAL_UNINSTALL = :
28036 +PRE_UNINSTALL = :
28037 +POST_UNINSTALL = :
28038 +build_triplet = @build@
28039 +host_triplet = @host@
28040 +target_triplet = @target@
28041 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
28042 + $(top_srcdir)/Makefile.am.common
28043 +subdir = src
28044 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
28045 +am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
28046 + $(top_srcdir)/configure.in
28047 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
28048 + $(ACLOCAL_M4)
28049 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
28050 +CONFIG_HEADER = $(top_builddir)/include/config.h
28051 +CONFIG_CLEAN_FILES =
28052 +am__installdirs = "$(DESTDIR)$(libdir)"
28053 +libLTLIBRARIES_INSTALL = $(INSTALL)
28054 +LTLIBRARIES = $(lib_LTLIBRARIES)
28055 +libnet_la_DEPENDENCIES = @LTLIBOBJS@
28056 +am_libnet_la_OBJECTS = libnet_resolve.lo libnet_socket.lo \
28057 + libnet_checksum.lo libnet_prand.lo libnet_version.lo \
28058 + libnet_write_ip.lo libnet_insert_ipo.lo libnet_insert_tcpo.lo \
28059 + libnet_error.lo libnet_link_@LL_INT_TYPE@.lo \
28060 + libnet_packet_mem.lo libnet_build_ip.lo libnet_build_tcp.lo \
28061 + libnet_build_udp.lo libnet_build_arp.lo \
28062 + libnet_build_ethernet.lo libnet_build_icmp.lo \
28063 + libnet_build_igmp.lo libnet_build_dns.lo libnet_build_snmp.lo \
28064 + libnet_build_rip.lo libnet_build_ospf.lo libnet_build_vrrp.lo \
28065 + libnet_asn1.lo libnet_hex_dump.lo libnet_if_addr.lo \
28066 + libnet_port_list.lo
28067 +libnet_la_OBJECTS = $(am_libnet_la_OBJECTS)
28068 +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include
28069 +depcomp =
28070 +am__depfiles_maybe =
28071 +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
28072 + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
28073 +LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
28074 + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
28075 + $(AM_CFLAGS) $(CFLAGS)
28076 +CCLD = $(CC)
28077 +LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
28078 + $(AM_LDFLAGS) $(LDFLAGS) -o $@
28079 +SOURCES = $(libnet_la_SOURCES)
28080 +DIST_SOURCES = $(libnet_la_SOURCES)
28081 +ETAGS = etags
28082 +CTAGS = ctags
28083 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
28084 +ACLOCAL = @ACLOCAL@
28085 +ADDITIONAL_LIBS = @ADDITIONAL_LIBS@
28086 +AMDEP_FALSE = @AMDEP_FALSE@
28087 +AMDEP_TRUE = @AMDEP_TRUE@
28088 +AMTAR = @AMTAR@
28089 +AR = @AR@
28090 +AUTOCONF = @AUTOCONF@
28091 +AUTOHEADER = @AUTOHEADER@
28092 +AUTOMAKE = @AUTOMAKE@
28093 +AWK = @AWK@
28094 +BIN_PREFIX = @BIN_PREFIX@
28095 +CC = @CC@
28096 +CCDEPMODE = @CCDEPMODE@
28097 +CFLAGS = @CFLAGS@
28098 +CPP = @CPP@
28099 +CPPFLAGS = @CPPFLAGS@
28100 +CYGPATH_W = @CYGPATH_W@
28101 +DEFS = @DEFS@
28102 +DEPDIR = @DEPDIR@
28103 +ECHO = @ECHO@
28104 +ECHO_C = @ECHO_C@
28105 +ECHO_N = @ECHO_N@
28106 +ECHO_T = @ECHO_T@
28107 +EGREP = @EGREP@
28108 +EXEEXT = @EXEEXT@
28109 +INC_PREFIX = @INC_PREFIX@
28110 +INSTALL_DATA = @INSTALL_DATA@
28111 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
28112 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
28113 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
28114 +LDFLAGS = @LDFLAGS@
28115 +LIBNET_CONFIG_CFLAGS = @LIBNET_CONFIG_CFLAGS@
28116 +LIBNET_CONFIG_DEFINES = @LIBNET_CONFIG_DEFINES@
28117 +LIBNET_CONFIG_LIBS = @LIBNET_CONFIG_LIBS@
28118 +LIBOBJS = @LIBOBJS@
28119 +LIBS = @LIBS@
28120 +LIBTOOL = @LIBTOOL@
28121 +LIB_PREFIX = @LIB_PREFIX@
28122 +LL_INT_TYPE = @LL_INT_TYPE@
28123 +LL_INT_TYPE_UC = @LL_INT_TYPE_UC@
28124 +LN = @LN@
28125 +LN_S = @LN_S@
28126 +LTLIBOBJS = @LTLIBOBJS@
28127 +MAKEINFO = @MAKEINFO@
28128 +MAN_PREFIX = @MAN_PREFIX@
28129 +OBJEXT = @OBJEXT@
28130 +PACKAGE = @PACKAGE@
28131 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
28132 +PACKAGE_NAME = @PACKAGE_NAME@
28133 +PACKAGE_STRING = @PACKAGE_STRING@
28134 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
28135 +PACKAGE_VERSION = @PACKAGE_VERSION@
28136 +PATH_SEPARATOR = @PATH_SEPARATOR@
28137 +RANLIB = @RANLIB@
28138 +SET_MAKE = @SET_MAKE@
28139 +SHELL = @SHELL@
28140 +STRIP = @STRIP@
28141 +VERSION = @VERSION@
28142 +ac_ct_CC = @ac_ct_CC@
28143 +ac_ct_RANLIB = @ac_ct_RANLIB@
28144 +ac_ct_STRIP = @ac_ct_STRIP@
28145 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
28146 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
28147 +am__include = @am__include@
28148 +am__leading_dot = @am__leading_dot@
28149 +am__quote = @am__quote@
28150 +bindir = @bindir@
28151 +build = @build@
28152 +build_alias = @build_alias@
28153 +build_cpu = @build_cpu@
28154 +build_os = @build_os@
28155 +build_vendor = @build_vendor@
28156 +datadir = @datadir@
28157 +exec_prefix = @exec_prefix@
28158 +host = @host@
28159 +host_alias = @host_alias@
28160 +host_cpu = @host_cpu@
28161 +host_os = @host_os@
28162 +host_vendor = @host_vendor@
28163 +includedir = @includedir@
28164 +infodir = @infodir@
28165 +install_sh = @install_sh@
28166 +libdir = @libdir@
28167 +libexecdir = @libexecdir@
28168 +localstatedir = @localstatedir@
28169 +mandir = @mandir@
28170 +mkdir_p = @mkdir_p@
28171 +oldincludedir = @oldincludedir@
28172 +prefix = @prefix@
28173 +program_transform_name = @program_transform_name@
28174 +sbindir = @sbindir@
28175 +sharedstatedir = @sharedstatedir@
28176 +sysconfdir = @sysconfdir@
28177 +target = @target@
28178 +target_alias = @target_alias@
28179 +target_cpu = @target_cpu@
28180 +target_os = @target_os@
28181 +target_vendor = @target_vendor@
28182 +AUTOMAKE_OPTIONS = foreign no-dependencies
28183 +DISTCLEANFILES = *~
28184 +lib_LTLIBRARIES = libnet.la
28185 +libnet_la_SOURCES = \
28186 + libnet_resolve.c \
28187 + libnet_socket.c \
28188 + libnet_checksum.c \
28189 + libnet_prand.c \
28190 + libnet_version.c \
28191 + libnet_write_ip.c \
28192 + libnet_insert_ipo.c \
28193 + libnet_insert_tcpo.c \
28194 + libnet_error.c \
28195 + libnet_link_@LL_INT_TYPE@.c \
28196 + libnet_packet_mem.c \
28197 + libnet_build_ip.c \
28198 + libnet_build_tcp.c \
28199 + libnet_build_udp.c \
28200 + libnet_build_arp.c \
28201 + libnet_build_ethernet.c \
28202 + libnet_build_icmp.c \
28203 + libnet_build_igmp.c \
28204 + libnet_build_dns.c \
28205 + libnet_build_snmp.c \
28206 + libnet_build_rip.c \
28207 + libnet_build_ospf.c \
28208 + libnet_build_vrrp.c \
28209 + libnet_asn1.c \
28210 + libnet_hex_dump.c \
28211 + libnet_if_addr.c \
28212 + libnet_port_list.c
28213 +
28214 +libnet_la_LIBADD = @LTLIBOBJS@
28215 +
28216 +# Here are a set of rules to help you update your library version
28217 +# information:
28218 +#
28219 +# 1. If the library source code has changed at all since the last
28220 +# update, then increment REVISION (`C:R:A' becomes `C:r+1:A').
28221 +#
28222 +# 2. If any interfaces have been added, removed, or changed since the
28223 +# last update, increment CURRENT, and set REVISION to 0.
28224 +#
28225 +# 3. If any interfaces have been added since the last public release,
28226 +# then increment AGE.
28227 +#
28228 +# 4. If any interfaces have been removed since the last public release,
28229 +# then set AGE to 0.
28230 +libnet_la_LDFLAGS = -version-info 0:0:0 # CURRENT[:REVISION[:AGE]]
28231 +all: all-am
28232 +
28233 +.SUFFIXES:
28234 +.SUFFIXES: .c .lo .o .obj
28235 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/Makefile.am.common $(am__configure_deps)
28236 + @for dep in $?; do \
28237 + case '$(am__configure_deps)' in \
28238 + *$$dep*) \
28239 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
28240 + && exit 0; \
28241 + exit 1;; \
28242 + esac; \
28243 + done; \
28244 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \
28245 + cd $(top_srcdir) && \
28246 + $(AUTOMAKE) --foreign src/Makefile
28247 +.PRECIOUS: Makefile
28248 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
28249 + @case '$?' in \
28250 + *config.status*) \
28251 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
28252 + *) \
28253 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
28254 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
28255 + esac;
28256 +
28257 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
28258 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
28259 +
28260 +$(top_srcdir)/configure: $(am__configure_deps)
28261 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
28262 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
28263 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
28264 +install-libLTLIBRARIES: $(lib_LTLIBRARIES)
28265 + @$(NORMAL_INSTALL)
28266 + test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
28267 + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
28268 + if test -f $$p; then \
28269 + f="`echo $$p | sed -e 's|^.*/||'`"; \
28270 + echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
28271 + $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
28272 + else :; fi; \
28273 + done
28274 +
28275 +uninstall-libLTLIBRARIES:
28276 + @$(NORMAL_UNINSTALL)
28277 + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
28278 + p="`echo $$p | sed -e 's|^.*/||'`"; \
28279 + echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
28280 + $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
28281 + done
28282 +
28283 +clean-libLTLIBRARIES:
28284 + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
28285 + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
28286 + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
28287 + test "$$dir" != "$$p" || dir=.; \
28288 + echo "rm -f \"$${dir}/so_locations\""; \
28289 + rm -f "$${dir}/so_locations"; \
28290 + done
28291 +libnet.la: $(libnet_la_OBJECTS) $(libnet_la_DEPENDENCIES)
28292 + $(LINK) -rpath $(libdir) $(libnet_la_LDFLAGS) $(libnet_la_OBJECTS) $(libnet_la_LIBADD) $(LIBS)
28293 +
28294 +mostlyclean-compile:
28295 + -rm -f *.$(OBJEXT)
28296 +
28297 +distclean-compile:
28298 + -rm -f *.tab.c
28299 +
28300 +.c.o:
28301 + $(COMPILE) -c $<
28302 +
28303 +.c.obj:
28304 + $(COMPILE) -c `$(CYGPATH_W) '$<'`
28305 +
28306 +.c.lo:
28307 + $(LTCOMPILE) -c -o $@ $<
28308 +
28309 +mostlyclean-libtool:
28310 + -rm -f *.lo
28311 +
28312 +clean-libtool:
28313 + -rm -rf .libs _libs
28314 +
28315 +distclean-libtool:
28316 + -rm -f libtool
28317 +uninstall-info-am:
28318 +
28319 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
28320 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
28321 + unique=`for i in $$list; do \
28322 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
28323 + done | \
28324 + $(AWK) ' { files[$$0] = 1; } \
28325 + END { for (i in files) print i; }'`; \
28326 + mkid -fID $$unique
28327 +tags: TAGS
28328 +
28329 +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
28330 + $(TAGS_FILES) $(LISP)
28331 + tags=; \
28332 + here=`pwd`; \
28333 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
28334 + unique=`for i in $$list; do \
28335 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
28336 + done | \
28337 + $(AWK) ' { files[$$0] = 1; } \
28338 + END { for (i in files) print i; }'`; \
28339 + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
28340 + test -n "$$unique" || unique=$$empty_fix; \
28341 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
28342 + $$tags $$unique; \
28343 + fi
28344 +ctags: CTAGS
28345 +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
28346 + $(TAGS_FILES) $(LISP)
28347 + tags=; \
28348 + here=`pwd`; \
28349 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
28350 + unique=`for i in $$list; do \
28351 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
28352 + done | \
28353 + $(AWK) ' { files[$$0] = 1; } \
28354 + END { for (i in files) print i; }'`; \
28355 + test -z "$(CTAGS_ARGS)$$tags$$unique" \
28356 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
28357 + $$tags $$unique
28358 +
28359 +GTAGS:
28360 + here=`$(am__cd) $(top_builddir) && pwd` \
28361 + && cd $(top_srcdir) \
28362 + && gtags -i $(GTAGS_ARGS) $$here
28363 +
28364 +distclean-tags:
28365 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
28366 +
28367 +distdir: $(DISTFILES)
28368 + $(mkdir_p) $(distdir)/..
28369 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
28370 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
28371 + list='$(DISTFILES)'; for file in $$list; do \
28372 + case $$file in \
28373 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
28374 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
28375 + esac; \
28376 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
28377 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
28378 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
28379 + dir="/$$dir"; \
28380 + $(mkdir_p) "$(distdir)$$dir"; \
28381 + else \
28382 + dir=''; \
28383 + fi; \
28384 + if test -d $$d/$$file; then \
28385 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
28386 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
28387 + fi; \
28388 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
28389 + else \
28390 + test -f $(distdir)/$$file \
28391 + || cp -p $$d/$$file $(distdir)/$$file \
28392 + || exit 1; \
28393 + fi; \
28394 + done
28395 +check-am: all-am
28396 +check: check-am
28397 +all-am: Makefile $(LTLIBRARIES)
28398 +installdirs:
28399 + for dir in "$(DESTDIR)$(libdir)"; do \
28400 + test -z "$$dir" || $(mkdir_p) "$$dir"; \
28401 + done
28402 +install: install-am
28403 +install-exec: install-exec-am
28404 +install-data: install-data-am
28405 +uninstall: uninstall-am
28406 +
28407 +install-am: all-am
28408 + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
28409 +
28410 +installcheck: installcheck-am
28411 +install-strip:
28412 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
28413 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
28414 + `test -z '$(STRIP)' || \
28415 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
28416 +mostlyclean-generic:
28417 +
28418 +clean-generic:
28419 +
28420 +distclean-generic:
28421 + -rm -f $(CONFIG_CLEAN_FILES)
28422 + -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
28423 +
28424 +maintainer-clean-generic:
28425 + @echo "This command is intended for maintainers to use"
28426 + @echo "it deletes files that may require special tools to rebuild."
28427 +clean: clean-am
28428 +
28429 +clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
28430 + mostlyclean-am
28431 +
28432 +distclean: distclean-am
28433 + -rm -f Makefile
28434 +distclean-am: clean-am distclean-compile distclean-generic \
28435 + distclean-libtool distclean-tags
28436 +
28437 +dvi: dvi-am
28438 +
28439 +dvi-am:
28440 +
28441 +html: html-am
28442 +
28443 +info: info-am
28444 +
28445 +info-am:
28446 +
28447 +install-data-am:
28448 + @$(NORMAL_INSTALL)
28449 + $(MAKE) $(AM_MAKEFLAGS) install-data-hook
28450 +
28451 +install-exec-am: install-libLTLIBRARIES
28452 +
28453 +install-info: install-info-am
28454 +
28455 +install-man:
28456 +
28457 +installcheck-am:
28458 +
28459 +maintainer-clean: maintainer-clean-am
28460 + -rm -f Makefile
28461 +maintainer-clean-am: distclean-am maintainer-clean-generic
28462 +
28463 +mostlyclean: mostlyclean-am
28464 +
28465 +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
28466 + mostlyclean-libtool
28467 +
28468 +pdf: pdf-am
28469 +
28470 +pdf-am:
28471 +
28472 +ps: ps-am
28473 +
28474 +ps-am:
28475 +
28476 +uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES
28477 + @$(NORMAL_INSTALL)
28478 + $(MAKE) $(AM_MAKEFLAGS) uninstall-hook
28479 +
28480 +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
28481 + clean-libLTLIBRARIES clean-libtool ctags distclean \
28482 + distclean-compile distclean-generic distclean-libtool \
28483 + distclean-tags distdir dvi dvi-am html html-am info info-am \
28484 + install install-am install-data install-data-am install-exec \
28485 + install-exec-am install-info install-info-am \
28486 + install-libLTLIBRARIES install-man install-strip installcheck \
28487 + installcheck-am installdirs maintainer-clean \
28488 + maintainer-clean-generic mostlyclean mostlyclean-compile \
28489 + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
28490 + tags uninstall uninstall-am uninstall-info-am \
28491 + uninstall-libLTLIBRARIES
28492 +
28493 +
28494 +install-data-hook:
28495 + ln -f -s libnet.a $(DESTDIR)$(libdir)/libwrite.a
28496 +
28497 +uninstall-hook:
28498 + rm -f $(DESTDIR)$(libdir)/libwrite.a
28499 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
28500 +# Otherwise a system limit (for SysV at least) may be exceeded.
28501 +.NOEXPORT:
28502 diff -ruN libnet-1.0.2a-orig/src/libnet_prand.c libnet-1.0.2a-7/src/libnet_prand.c
28503 --- libnet-1.0.2a-orig/src/libnet_prand.c 2001-02-05 20:22:26.000000000 +0100
28504 +++ libnet-1.0.2a-7/src/libnet_prand.c 2005-03-08 03:53:26.000000000 +0100
28505 @@ -30,6 +30,8 @@
28506 *
28507 */
28508
28509 +#include <stdlib.h>
28510 +
28511 #if (HAVE_CONFIG_H)
28512 #include "../include/config.h"
28513 #endif
28514 diff -ruN libnet-1.0.2a-orig/test/Ethernet/Makefile.am libnet-1.0.2a-7/test/Ethernet/Makefile.am
28515 --- libnet-1.0.2a-orig/test/Ethernet/Makefile.am 1970-01-01 01:00:00.000000000 +0100
28516 +++ libnet-1.0.2a-7/test/Ethernet/Makefile.am 2005-03-08 03:53:26.000000000 +0100
28517 @@ -0,0 +1,5 @@
28518 +include $(top_srcdir)/Makefile.am.common
28519 +
28520 +noinst_PROGRAMS = arp tcp icmp_mask get_address poink
28521 +
28522 +LDFLAGS = ../../src/libnet.la
28523 diff -ruN libnet-1.0.2a-orig/test/ICMP/Makefile.am libnet-1.0.2a-7/test/ICMP/Makefile.am
28524 --- libnet-1.0.2a-orig/test/ICMP/Makefile.am 1970-01-01 01:00:00.000000000 +0100
28525 +++ libnet-1.0.2a-7/test/ICMP/Makefile.am 2005-03-08 03:53:26.000000000 +0100
28526 @@ -0,0 +1,5 @@
28527 +include $(top_srcdir)/Makefile.am.common
28528 +
28529 +noinst_PROGRAMS = icmp_echo icmp_unreach icmp_timexceed icmp_timestamp silvertongue ping_of_death
28530 +
28531 +LDFLAGS = ../../src/libnet.la
28532 diff -ruN libnet-1.0.2a-orig/test/IP/Makefile.am libnet-1.0.2a-7/test/IP/Makefile.am
28533 --- libnet-1.0.2a-orig/test/IP/Makefile.am 1970-01-01 01:00:00.000000000 +0100
28534 +++ libnet-1.0.2a-7/test/IP/Makefile.am 2005-03-08 03:53:26.000000000 +0100
28535 @@ -0,0 +1 @@
28536 +include $(top_srcdir)/Makefile.am.common
28537 diff -ruN libnet-1.0.2a-orig/test/Makefile.am libnet-1.0.2a-7/test/Makefile.am
28538 --- libnet-1.0.2a-orig/test/Makefile.am 1970-01-01 01:00:00.000000000 +0100
28539 +++ libnet-1.0.2a-7/test/Makefile.am 2005-03-08 03:53:26.000000000 +0100
28540 @@ -0,0 +1,3 @@
28541 +include $(top_srcdir)/Makefile.am.common
28542 +
28543 +SUBDIRS = IP TCP UDP ICMP OSPF Ethernet Random
28544 diff -ruN libnet-1.0.2a-orig/test/OSPF/Makefile.am libnet-1.0.2a-7/test/OSPF/Makefile.am
28545 --- libnet-1.0.2a-orig/test/OSPF/Makefile.am 1970-01-01 01:00:00.000000000 +0100
28546 +++ libnet-1.0.2a-7/test/OSPF/Makefile.am 2005-03-08 03:53:26.000000000 +0100
28547 @@ -0,0 +1,5 @@
28548 +include $(top_srcdir)/Makefile.am.common
28549 +
28550 +noinst_PROGRAMS = ospf_hello ospf_lsa ospf_request
28551 +
28552 +LDFLAGS = ../../src/libnet.la
28553 diff -ruN libnet-1.0.2a-orig/test/Random/Makefile.am libnet-1.0.2a-7/test/Random/Makefile.am
28554 --- libnet-1.0.2a-orig/test/Random/Makefile.am 1970-01-01 01:00:00.000000000 +0100
28555 +++ libnet-1.0.2a-7/test/Random/Makefile.am 2005-03-08 03:53:26.000000000 +0100
28556 @@ -0,0 +1,5 @@
28557 +include $(top_srcdir)/Makefile.am.common
28558 +
28559 +noinst_PROGRAMS = prand_trials
28560 +
28561 +LDFLAGS = ../../src/libnet.la
28562 diff -ruN libnet-1.0.2a-orig/test/TCP/Makefile.am libnet-1.0.2a-7/test/TCP/Makefile.am
28563 --- libnet-1.0.2a-orig/test/TCP/Makefile.am 1970-01-01 01:00:00.000000000 +0100
28564 +++ libnet-1.0.2a-7/test/TCP/Makefile.am 2005-03-08 03:53:26.000000000 +0100
28565 @@ -0,0 +1,5 @@
28566 +include $(top_srcdir)/Makefile.am.common
28567 +
28568 +noinst_PROGRAMS = syn-flood tcp tcp+data tcp+data+ipopt
28569 +
28570 +LDFLAGS += ../../src/libnet.la
28571 diff -ruN libnet-1.0.2a-orig/test/UDP/Makefile.am libnet-1.0.2a-7/test/UDP/Makefile.am
28572 --- libnet-1.0.2a-orig/test/UDP/Makefile.am 1970-01-01 01:00:00.000000000 +0100
28573 +++ libnet-1.0.2a-7/test/UDP/Makefile.am 2005-03-08 03:53:26.000000000 +0100
28574 @@ -0,0 +1,5 @@
28575 +include $(top_srcdir)/Makefile.am.common
28576 +
28577 +noinst_PROGRAMS = udp udp+data
28578 +
28579 +LDFLAGS = ../../src/libnet.la
28580 diff -ruN libnet-1.0.2a-orig/version.h libnet-1.0.2a-7/version.h
28581 --- libnet-1.0.2a-orig/version.h 1970-01-01 01:00:00.000000000 +0100
28582 +++ libnet-1.0.2a-7/version.h 2005-03-08 03:53:26.000000000 +0100
28583 @@ -0,0 +1 @@
28584 +#define VERSION "1.0.2a"