fiddle perl
[buildroot.git] / package / libgtk12 / update-libtool.patch
blobf710e28cda096e1119752cacb37b775c2d6d9daa
1 diff -urN gtk+-1.2.10.orig/Makefile.in gtk+-1.2.10/Makefile.in
2 --- gtk+-1.2.10.orig/Makefile.in 2001-04-01 21:14:07.000000000 -0600
3 +++ gtk+-1.2.10/Makefile.in 2006-07-09 02:29:45.000000000 -0600
4 @@ -1,6 +1,6 @@
5 -# Makefile.in generated automatically by automake 1.4 from Makefile.am
6 +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
8 -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
9 +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
10 # This Makefile.in is free software; the Free Software Foundation
11 # gives unlimited permission to copy and/or distribute it,
12 # with or without modifications, as long as this notice is preserved.
13 @@ -59,13 +59,22 @@
14 POST_UNINSTALL = :
15 host_alias = @host_alias@
16 host_triplet = @host@
17 +AR = @AR@
18 AS = @AS@
19 AWK = @AWK@
20 CATALOGS = @CATALOGS@
21 CATOBJEXT = @CATOBJEXT@
22 CC = @CC@
23 +CXX = @CXX@
24 +CXXCPP = @CXXCPP@
25 DATADIRNAME = @DATADIRNAME@
26 DLLTOOL = @DLLTOOL@
27 +ECHO = @ECHO@
28 +EGREP = @EGREP@
29 +EXEEXT = @EXEEXT@
30 +F77 = @F77@
31 +GCJ = @GCJ@
32 +GCJFLAGS = @GCJFLAGS@
33 GDK_WLIBS = @GDK_WLIBS@
34 GENCAT = @GENCAT@
35 GLIB_CFLAGS = @GLIB_CFLAGS@
36 @@ -85,14 +94,17 @@
37 GTK_XIM_FLAGS = @GTK_XIM_FLAGS@
38 GT_NO = @GT_NO@
39 GT_YES = @GT_YES@
40 +HAVE_LIB = @HAVE_LIB@
41 INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@
42 INDENT = @INDENT@
43 INSTOBJEXT = @INSTOBJEXT@
44 INTLDEPS = @INTLDEPS@
45 INTLLIBS = @INTLLIBS@
46 INTLOBJS = @INTLOBJS@
47 +LIB = @LIB@
48 LIBTOOL = @LIBTOOL@
49 LN_S = @LN_S@
50 +LTLIB = @LTLIB@
51 LT_AGE = @LT_AGE@
52 LT_CURRENT = @LT_CURRENT@
53 LT_RELEASE = @LT_RELEASE@
54 @@ -101,12 +113,16 @@
55 MAKEINFO = @MAKEINFO@
56 MKINSTALLDIRS = @MKINSTALLDIRS@
57 OBJDUMP = @OBJDUMP@
58 +OBJEXT = @OBJEXT@
59 PACKAGE = @PACKAGE@
60 PERL = @PERL@
61 +PKG_CONFIG = @PKG_CONFIG@
62 POFILES = @POFILES@
63 POSUB = @POSUB@
64 RANLIB = @RANLIB@
65 +RC = @RC@
66 REBUILD = @REBUILD@
67 +STRIP = @STRIP@
68 STRIP_BEGIN = @STRIP_BEGIN@
69 STRIP_DUMMY = @STRIP_DUMMY@
70 STRIP_END = @STRIP_END@
71 @@ -158,14 +174,14 @@
73 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
75 -TAR = gtar
76 +TAR = tar
77 GZIP_ENV = --best
78 all: all-redirect
79 .SUFFIXES:
80 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
81 - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps Makefile
82 + cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile
84 -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
85 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
86 cd $(top_builddir) \
87 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
89 @@ -306,7 +322,7 @@
90 dot_seen=no; \
91 rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
92 rev="$$subdir $$rev"; \
93 - test "$$subdir" = "." && dot_seen=yes; \
94 + test "$$subdir" != "." || dot_seen=yes; \
95 done; \
96 test "$$dot_seen" = "no" && rev=". $$rev"; \
97 target=`echo $@ | sed s/-recursive//`; \
98 @@ -348,7 +364,7 @@
99 awk ' { files[$$0] = 1; } \
100 END { for (i in files) print i; }'`; \
101 test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
102 - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
103 + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP))
105 mostlyclean-tags:
107 @@ -397,6 +413,11 @@
108 -rm -rf $(distdir)
109 mkdir $(distdir)
110 -chmod 777 $(distdir)
111 + here=`cd $(top_builddir) && pwd`; \
112 + top_distdir=`cd $(distdir) && pwd`; \
113 + distdir=`cd $(distdir) && pwd`; \
114 + cd $(top_srcdir) \
115 + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Makefile
116 $(mkinstalldirs) $(distdir)/examples $(distdir)/examples/aspectframe \
117 $(distdir)/examples/base $(distdir)/examples/buttons \
118 $(distdir)/examples/calendar $(distdir)/examples/clist \
119 diff -urN gtk+-1.2.10.orig/acinclude.m4 gtk+-1.2.10/acinclude.m4
120 --- gtk+-1.2.10.orig/acinclude.m4 2006-07-09 02:29:43.000000000 -0600
121 +++ gtk+-1.2.10/acinclude.m4 2006-07-09 02:29:43.000000000 -0600
122 @@ -248,7 +248,7 @@
123 AC_DEFINE(HAVE_STPCPY)
126 - AM_LC_MESSAGES
128 AM_GTK_WITH_NLS
130 if test "x$CATOBJEXT" != "x"; then
131 diff -urN gtk+-1.2.10.orig/aclocal.m4 gtk+-1.2.10/aclocal.m4
132 --- gtk+-1.2.10.orig/aclocal.m4 2001-03-28 14:11:43.000000000 -0700
133 +++ gtk+-1.2.10/aclocal.m4 2006-07-09 02:29:45.000000000 -0600
134 @@ -1,6 +1,6 @@
135 -dnl aclocal.m4 generated automatically by aclocal 1.4
136 +dnl aclocal.m4 generated automatically by aclocal 1.4-p6
138 -dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
139 +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
140 dnl This file is free software; the Free Software Foundation
141 dnl gives unlimited permission to copy and/or distribute it,
142 dnl with or without modifications, as long as this notice is preserved.
143 @@ -11,428 +11,6 @@
144 dnl PARTICULAR PURPOSE.
147 -# serial 40 AC_PROG_LIBTOOL
148 -AC_DEFUN(AC_PROG_LIBTOOL,
149 -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
151 -# Save cache, so that ltconfig can load it
152 -AC_CACHE_SAVE
154 -# Actually configure libtool. ac_aux_dir is where install-sh is found.
155 -CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
156 -LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
157 -LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
158 -DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
159 -${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
160 -$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
161 -|| AC_MSG_ERROR([libtool configure failed])
163 -# Reload cache, that may have been modified by ltconfig
164 -AC_CACHE_LOAD
166 -# This can be used to rebuild libtool when needed
167 -LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
169 -# Always use our own libtool.
170 -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
171 -AC_SUBST(LIBTOOL)dnl
173 -# Redirect the config.log output again, so that the ltconfig log is not
174 -# clobbered by the next message.
175 -exec 5>>./config.log
178 -AC_DEFUN(AC_LIBTOOL_SETUP,
179 -[AC_PREREQ(2.13)dnl
180 -AC_REQUIRE([AC_ENABLE_SHARED])dnl
181 -AC_REQUIRE([AC_ENABLE_STATIC])dnl
182 -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
183 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
184 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
185 -AC_REQUIRE([AC_PROG_RANLIB])dnl
186 -AC_REQUIRE([AC_PROG_CC])dnl
187 -AC_REQUIRE([AC_PROG_LD])dnl
188 -AC_REQUIRE([AC_PROG_NM])dnl
189 -AC_REQUIRE([AC_PROG_LN_S])dnl
190 -dnl
192 -case "$target" in
193 -NONE) lt_target="$host" ;;
194 -*) lt_target="$target" ;;
195 -esac
197 -# Check for any special flags to pass to ltconfig.
198 -libtool_flags="--cache-file=$cache_file"
199 -test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
200 -test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
201 -test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
202 -test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
203 -test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
204 -ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
205 -[libtool_flags="$libtool_flags --enable-dlopen"])
206 -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
207 -[libtool_flags="$libtool_flags --enable-win32-dll"])
208 -AC_ARG_ENABLE(libtool-lock,
209 - [ --disable-libtool-lock avoid locking (might break parallel builds)])
210 -test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
211 -test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
213 -# Some flags need to be propagated to the compiler or linker for good
214 -# libtool support.
215 -case "$lt_target" in
216 -*-*-irix6*)
217 - # Find out which ABI we are using.
218 - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
219 - if AC_TRY_EVAL(ac_compile); then
220 - case "`/usr/bin/file conftest.o`" in
221 - *32-bit*)
222 - LD="${LD-ld} -32"
223 - ;;
224 - *N32*)
225 - LD="${LD-ld} -n32"
226 - ;;
227 - *64-bit*)
228 - LD="${LD-ld} -64"
229 - ;;
230 - esac
231 - fi
232 - rm -rf conftest*
233 - ;;
235 -*-*-sco3.2v5*)
236 - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
237 - SAVE_CFLAGS="$CFLAGS"
238 - CFLAGS="$CFLAGS -belf"
239 - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
240 - [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
241 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
242 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
243 - CFLAGS="$SAVE_CFLAGS"
244 - fi
245 - ;;
247 -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
248 -[*-*-cygwin* | *-*-mingw*)
249 - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
250 - AC_CHECK_TOOL(AS, as, false)
251 - AC_CHECK_TOOL(OBJDUMP, objdump, false)
252 - ;;
254 -esac
257 -# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
258 -AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
260 -# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
261 -AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
263 -# AC_ENABLE_SHARED - implement the --enable-shared flag
264 -# Usage: AC_ENABLE_SHARED[(DEFAULT)]
265 -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
266 -# `yes'.
267 -AC_DEFUN(AC_ENABLE_SHARED, [dnl
268 -define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
269 -AC_ARG_ENABLE(shared,
270 -changequote(<<, >>)dnl
271 -<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
272 -changequote([, ])dnl
273 -[p=${PACKAGE-default}
274 -case "$enableval" in
275 -yes) enable_shared=yes ;;
276 -no) enable_shared=no ;;
278 - enable_shared=no
279 - # Look at the argument we got. We use all the common list separators.
280 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
281 - for pkg in $enableval; do
282 - if test "X$pkg" = "X$p"; then
283 - enable_shared=yes
284 - fi
285 - done
286 - IFS="$ac_save_ifs"
287 - ;;
288 -esac],
289 -enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
292 -# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
293 -AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
294 -AC_ENABLE_SHARED(no)])
296 -# AC_ENABLE_STATIC - implement the --enable-static flag
297 -# Usage: AC_ENABLE_STATIC[(DEFAULT)]
298 -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
299 -# `yes'.
300 -AC_DEFUN(AC_ENABLE_STATIC, [dnl
301 -define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
302 -AC_ARG_ENABLE(static,
303 -changequote(<<, >>)dnl
304 -<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
305 -changequote([, ])dnl
306 -[p=${PACKAGE-default}
307 -case "$enableval" in
308 -yes) enable_static=yes ;;
309 -no) enable_static=no ;;
311 - enable_static=no
312 - # Look at the argument we got. We use all the common list separators.
313 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
314 - for pkg in $enableval; do
315 - if test "X$pkg" = "X$p"; then
316 - enable_static=yes
317 - fi
318 - done
319 - IFS="$ac_save_ifs"
320 - ;;
321 -esac],
322 -enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
325 -# AC_DISABLE_STATIC - set the default static flag to --disable-static
326 -AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
327 -AC_ENABLE_STATIC(no)])
330 -# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
331 -# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
332 -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
333 -# `yes'.
334 -AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
335 -define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
336 -AC_ARG_ENABLE(fast-install,
337 -changequote(<<, >>)dnl
338 -<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
339 -changequote([, ])dnl
340 -[p=${PACKAGE-default}
341 -case "$enableval" in
342 -yes) enable_fast_install=yes ;;
343 -no) enable_fast_install=no ;;
345 - enable_fast_install=no
346 - # Look at the argument we got. We use all the common list separators.
347 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
348 - for pkg in $enableval; do
349 - if test "X$pkg" = "X$p"; then
350 - enable_fast_install=yes
351 - fi
352 - done
353 - IFS="$ac_save_ifs"
354 - ;;
355 -esac],
356 -enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
359 -# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
360 -AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
361 -AC_ENABLE_FAST_INSTALL(no)])
363 -# AC_PROG_LD - find the path to the GNU or non-GNU linker
364 -AC_DEFUN(AC_PROG_LD,
365 -[AC_ARG_WITH(gnu-ld,
366 -[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
367 -test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
368 -AC_REQUIRE([AC_PROG_CC])dnl
369 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
370 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
371 -ac_prog=ld
372 -if test "$ac_cv_prog_gcc" = yes; then
373 - # Check if gcc -print-prog-name=ld gives a path.
374 - AC_MSG_CHECKING([for ld used by GCC])
375 - ac_prog=`($CC -print-prog-name=ld) 2>&5`
376 - case "$ac_prog" in
377 - # Accept absolute paths.
378 -changequote(,)dnl
379 - [\\/]* | [A-Za-z]:[\\/]*)
380 - re_direlt='/[^/][^/]*/\.\./'
381 -changequote([,])dnl
382 - # Canonicalize the path of ld
383 - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
384 - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
385 - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
386 - done
387 - test -z "$LD" && LD="$ac_prog"
388 - ;;
389 - "")
390 - # If it fails, then pretend we aren't using GCC.
391 - ac_prog=ld
392 - ;;
393 - *)
394 - # If it is relative, then search for the first ld in PATH.
395 - with_gnu_ld=unknown
396 - ;;
397 - esac
398 -elif test "$with_gnu_ld" = yes; then
399 - AC_MSG_CHECKING([for GNU ld])
400 -else
401 - AC_MSG_CHECKING([for non-GNU ld])
403 -AC_CACHE_VAL(ac_cv_path_LD,
404 -[if test -z "$LD"; then
405 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
406 - for ac_dir in $PATH; do
407 - test -z "$ac_dir" && ac_dir=.
408 - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
409 - ac_cv_path_LD="$ac_dir/$ac_prog"
410 - # Check to see if the program is GNU ld. I'd rather use --version,
411 - # but apparently some GNU ld's only accept -v.
412 - # Break only if it was the GNU/non-GNU ld that we prefer.
413 - if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
414 - test "$with_gnu_ld" != no && break
415 - else
416 - test "$with_gnu_ld" != yes && break
417 - fi
418 - fi
419 - done
420 - IFS="$ac_save_ifs"
421 -else
422 - ac_cv_path_LD="$LD" # Let the user override the test with a path.
423 -fi])
424 -LD="$ac_cv_path_LD"
425 -if test -n "$LD"; then
426 - AC_MSG_RESULT($LD)
427 -else
428 - AC_MSG_RESULT(no)
430 -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
431 -AC_PROG_LD_GNU
434 -AC_DEFUN(AC_PROG_LD_GNU,
435 -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
436 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
437 -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
438 - ac_cv_prog_gnu_ld=yes
439 -else
440 - ac_cv_prog_gnu_ld=no
441 -fi])
444 -# AC_PROG_NM - find the path to a BSD-compatible name lister
445 -AC_DEFUN(AC_PROG_NM,
446 -[AC_MSG_CHECKING([for BSD-compatible nm])
447 -AC_CACHE_VAL(ac_cv_path_NM,
448 -[if test -n "$NM"; then
449 - # Let the user override the test.
450 - ac_cv_path_NM="$NM"
451 -else
452 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
453 - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
454 - test -z "$ac_dir" && ac_dir=.
455 - if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
456 - # Check to see if the nm accepts a BSD-compat flag.
457 - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
458 - # nm: unknown option "B" ignored
459 - if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
460 - ac_cv_path_NM="$ac_dir/nm -B"
461 - break
462 - elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
463 - ac_cv_path_NM="$ac_dir/nm -p"
464 - break
465 - else
466 - ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
467 - continue # so that we can try to find one that supports BSD flags
468 - fi
469 - fi
470 - done
471 - IFS="$ac_save_ifs"
472 - test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
473 -fi])
474 -NM="$ac_cv_path_NM"
475 -AC_MSG_RESULT([$NM])
478 -# AC_CHECK_LIBM - check for math library
479 -AC_DEFUN(AC_CHECK_LIBM,
480 -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
481 -LIBM=
482 -case "$lt_target" in
483 -*-*-beos* | *-*-cygwin*)
484 - # These system don't have libm
485 - ;;
486 -*-ncr-sysv4.3*)
487 - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
488 - AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
489 - ;;
491 - AC_CHECK_LIB(m, main, LIBM="-lm")
492 - ;;
493 -esac
496 -# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
497 -# the libltdl convenience library, adds --enable-ltdl-convenience to
498 -# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
499 -# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
500 -# to be `${top_builddir}/libltdl'. Make sure you start DIR with
501 -# '${top_builddir}/' (note the single quotes!) if your package is not
502 -# flat, and, if you're not using automake, define top_builddir as
503 -# appropriate in the Makefiles.
504 -AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
505 - case "$enable_ltdl_convenience" in
506 - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
507 - "") enable_ltdl_convenience=yes
508 - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
509 - esac
510 - LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
511 - INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
514 -# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
515 -# the libltdl installable library, and adds --enable-ltdl-install to
516 -# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
517 -# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
518 -# to be `${top_builddir}/libltdl'. Make sure you start DIR with
519 -# '${top_builddir}/' (note the single quotes!) if your package is not
520 -# flat, and, if you're not using automake, define top_builddir as
521 -# appropriate in the Makefiles.
522 -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
523 -AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
524 - AC_CHECK_LIB(ltdl, main,
525 - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
526 - [if test x"$enable_ltdl_install" = xno; then
527 - AC_MSG_WARN([libltdl not installed, but installation disabled])
528 - else
529 - enable_ltdl_install=yes
530 - fi
531 - ])
532 - if test x"$enable_ltdl_install" = x"yes"; then
533 - ac_configure_args="$ac_configure_args --enable-ltdl-install"
534 - LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
535 - INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
536 - else
537 - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
538 - LIBLTDL="-lltdl"
539 - INCLTDL=
540 - fi
543 -dnl old names
544 -AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
545 -AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
546 -AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
547 -AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
548 -AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
549 -AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
550 -AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
552 -dnl This is just to silence aclocal about the macro not being used
553 -ifelse([AC_DISABLE_FAST_INSTALL])dnl
555 -# Macro to add for using GNU gettext.
556 -# Ulrich Drepper <drepper@cygnus.com>, 1995.
558 -# Modified to never use included libintl.
559 -# Owen Taylor <otaylor@redhat.com>, 12/15/1998
562 -# This file can be copied and used freely without restrictions. It can
563 -# be used in projects which are not available under the GNU Public License
564 -# but which still want to provide support for the GNU gettext functionality.
565 -# Please note that the actual code is *not* freely available.
567 -# serial 5
569 AC_DEFUN(AM_GTK_WITH_NLS,
570 [AC_MSG_CHECKING([whether NLS is requested])
571 dnl Default is enabled NLS
572 @@ -660,7 +238,7 @@
573 AC_DEFINE(HAVE_STPCPY)
576 - AM_LC_MESSAGES
578 AM_GTK_WITH_NLS
580 if test "x$CATOBJEXT" != "x"; then
581 @@ -723,229 +301,7533 @@
582 AC_SUBST(GT_NO)
583 AC_SUBST(GT_YES)
585 - dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
586 - dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
587 - dnl Try to locate is.
588 - MKINSTALLDIRS=
589 - if test -n "$ac_aux_dir"; then
590 - MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
591 - fi
592 - if test -z "$MKINSTALLDIRS"; then
593 - MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
594 - fi
595 - AC_SUBST(MKINSTALLDIRS)
596 + dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
597 + dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
598 + dnl Try to locate is.
599 + MKINSTALLDIRS=
600 + if test -n "$ac_aux_dir"; then
601 + MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
602 + fi
603 + if test -z "$MKINSTALLDIRS"; then
604 + MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
605 + fi
606 + AC_SUBST(MKINSTALLDIRS)
608 + dnl *** For now the libtool support in intl/Makefile is not for real.
609 + l=
610 + AC_SUBST(l)
612 + dnl Generate list of files to be processed by xgettext which will
613 + dnl be included in po/Makefile.
614 + test -d po || mkdir po
615 + if test "x$srcdir" != "x."; then
616 + if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
617 + posrcprefix="$srcdir/"
618 + else
619 + posrcprefix="../$srcdir/"
620 + fi
621 + else
622 + posrcprefix="../"
623 + fi
624 + rm -f po/POTFILES
625 + sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
626 + < $srcdir/po/POTFILES.in > po/POTFILES
627 + ])
630 +# lib-prefix.m4 serial 4 (gettext-0.14.2)
631 +dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
632 +dnl This file is free software; the Free Software Foundation
633 +dnl gives unlimited permission to copy and/or distribute it,
634 +dnl with or without modifications, as long as this notice is preserved.
636 +dnl From Bruno Haible.
638 +dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
639 +dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
640 +dnl require excessive bracketing.
641 +ifdef([AC_HELP_STRING],
642 +[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
643 +[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
645 +dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
646 +dnl to access previously installed libraries. The basic assumption is that
647 +dnl a user will want packages to use other packages he previously installed
648 +dnl with the same --prefix option.
649 +dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
650 +dnl libraries, but is otherwise very convenient.
651 +AC_DEFUN([AC_LIB_PREFIX],
653 + AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
654 + AC_REQUIRE([AC_PROG_CC])
655 + AC_REQUIRE([AC_CANONICAL_HOST])
656 + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
657 + dnl By default, look in $includedir and $libdir.
658 + use_additional=yes
659 + AC_LIB_WITH_FINAL_PREFIX([
660 + eval additional_includedir=\"$includedir\"
661 + eval additional_libdir=\"$libdir\"
662 + ])
663 + AC_LIB_ARG_WITH([lib-prefix],
664 +[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
665 + --without-lib-prefix don't search for libraries in includedir and libdir],
667 + if test "X$withval" = "Xno"; then
668 + use_additional=no
669 + else
670 + if test "X$withval" = "X"; then
671 + AC_LIB_WITH_FINAL_PREFIX([
672 + eval additional_includedir=\"$includedir\"
673 + eval additional_libdir=\"$libdir\"
674 + ])
675 + else
676 + additional_includedir="$withval/include"
677 + additional_libdir="$withval/lib"
678 + fi
679 + fi
681 + if test $use_additional = yes; then
682 + dnl Potentially add $additional_includedir to $CPPFLAGS.
683 + dnl But don't add it
684 + dnl 1. if it's the standard /usr/include,
685 + dnl 2. if it's already present in $CPPFLAGS,
686 + dnl 3. if it's /usr/local/include and we are using GCC on Linux,
687 + dnl 4. if it doesn't exist as a directory.
688 + if test "X$additional_includedir" != "X/usr/include"; then
689 + haveit=
690 + for x in $CPPFLAGS; do
691 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
692 + if test "X$x" = "X-I$additional_includedir"; then
693 + haveit=yes
694 + break
695 + fi
696 + done
697 + if test -z "$haveit"; then
698 + if test "X$additional_includedir" = "X/usr/local/include"; then
699 + if test -n "$GCC"; then
700 + case $host_os in
701 + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
702 + esac
703 + fi
704 + fi
705 + if test -z "$haveit"; then
706 + if test -d "$additional_includedir"; then
707 + dnl Really add $additional_includedir to $CPPFLAGS.
708 + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
709 + fi
710 + fi
711 + fi
712 + fi
713 + dnl Potentially add $additional_libdir to $LDFLAGS.
714 + dnl But don't add it
715 + dnl 1. if it's the standard /usr/lib,
716 + dnl 2. if it's already present in $LDFLAGS,
717 + dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
718 + dnl 4. if it doesn't exist as a directory.
719 + if test "X$additional_libdir" != "X/usr/lib"; then
720 + haveit=
721 + for x in $LDFLAGS; do
722 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
723 + if test "X$x" = "X-L$additional_libdir"; then
724 + haveit=yes
725 + break
726 + fi
727 + done
728 + if test -z "$haveit"; then
729 + if test "X$additional_libdir" = "X/usr/local/lib"; then
730 + if test -n "$GCC"; then
731 + case $host_os in
732 + linux*) haveit=yes;;
733 + esac
734 + fi
735 + fi
736 + if test -z "$haveit"; then
737 + if test -d "$additional_libdir"; then
738 + dnl Really add $additional_libdir to $LDFLAGS.
739 + LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
740 + fi
741 + fi
742 + fi
743 + fi
744 + fi
747 +dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
748 +dnl acl_final_exec_prefix, containing the values to which $prefix and
749 +dnl $exec_prefix will expand at the end of the configure script.
750 +AC_DEFUN([AC_LIB_PREPARE_PREFIX],
752 + dnl Unfortunately, prefix and exec_prefix get only finally determined
753 + dnl at the end of configure.
754 + if test "X$prefix" = "XNONE"; then
755 + acl_final_prefix="$ac_default_prefix"
756 + else
757 + acl_final_prefix="$prefix"
758 + fi
759 + if test "X$exec_prefix" = "XNONE"; then
760 + acl_final_exec_prefix='${prefix}'
761 + else
762 + acl_final_exec_prefix="$exec_prefix"
763 + fi
764 + acl_save_prefix="$prefix"
765 + prefix="$acl_final_prefix"
766 + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
767 + prefix="$acl_save_prefix"
770 +dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
771 +dnl variables prefix and exec_prefix bound to the values they will have
772 +dnl at the end of the configure script.
773 +AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
775 + acl_save_prefix="$prefix"
776 + prefix="$acl_final_prefix"
777 + acl_save_exec_prefix="$exec_prefix"
778 + exec_prefix="$acl_final_exec_prefix"
779 + $1
780 + exec_prefix="$acl_save_exec_prefix"
781 + prefix="$acl_save_prefix"
784 +# lib-link.m4 serial 6 (gettext-0.14.3)
785 +dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
786 +dnl This file is free software; the Free Software Foundation
787 +dnl gives unlimited permission to copy and/or distribute it,
788 +dnl with or without modifications, as long as this notice is preserved.
790 +dnl From Bruno Haible.
792 +AC_PREREQ(2.50)
794 +dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
795 +dnl the libraries corresponding to explicit and implicit dependencies.
796 +dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
797 +dnl augments the CPPFLAGS variable.
798 +AC_DEFUN([AC_LIB_LINKFLAGS],
800 + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
801 + AC_REQUIRE([AC_LIB_RPATH])
802 + define([Name],[translit([$1],[./-], [___])])
803 + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
804 + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
805 + AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
806 + AC_LIB_LINKFLAGS_BODY([$1], [$2])
807 + ac_cv_lib[]Name[]_libs="$LIB[]NAME"
808 + ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
809 + ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
810 + ])
811 + LIB[]NAME="$ac_cv_lib[]Name[]_libs"
812 + LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
813 + INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
814 + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
815 + AC_SUBST([LIB]NAME)
816 + AC_SUBST([LTLIB]NAME)
817 + dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
818 + dnl results of this search when this library appears as a dependency.
819 + HAVE_LIB[]NAME=yes
820 + undefine([Name])
821 + undefine([NAME])
824 +dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
825 +dnl searches for libname and the libraries corresponding to explicit and
826 +dnl implicit dependencies, together with the specified include files and
827 +dnl the ability to compile and link the specified testcode. If found, it
828 +dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
829 +dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
830 +dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
831 +dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
832 +AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
834 + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
835 + AC_REQUIRE([AC_LIB_RPATH])
836 + define([Name],[translit([$1],[./-], [___])])
837 + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
838 + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
840 + dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
841 + dnl accordingly.
842 + AC_LIB_LINKFLAGS_BODY([$1], [$2])
844 + dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
845 + dnl because if the user has installed lib[]Name and not disabled its use
846 + dnl via --without-lib[]Name-prefix, he wants to use it.
847 + ac_save_CPPFLAGS="$CPPFLAGS"
848 + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
850 + AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
851 + ac_save_LIBS="$LIBS"
852 + LIBS="$LIBS $LIB[]NAME"
853 + AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
854 + LIBS="$ac_save_LIBS"
855 + ])
856 + if test "$ac_cv_lib[]Name" = yes; then
857 + HAVE_LIB[]NAME=yes
858 + AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
859 + AC_MSG_CHECKING([how to link with lib[]$1])
860 + AC_MSG_RESULT([$LIB[]NAME])
861 + else
862 + HAVE_LIB[]NAME=no
863 + dnl If $LIB[]NAME didn't lead to a usable library, we don't need
864 + dnl $INC[]NAME either.
865 + CPPFLAGS="$ac_save_CPPFLAGS"
866 + LIB[]NAME=
867 + LTLIB[]NAME=
868 + fi
869 + AC_SUBST([HAVE_LIB]NAME)
870 + AC_SUBST([LIB]NAME)
871 + AC_SUBST([LTLIB]NAME)
872 + undefine([Name])
873 + undefine([NAME])
876 +dnl Determine the platform dependent parameters needed to use rpath:
877 +dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
878 +dnl hardcode_direct, hardcode_minus_L.
879 +AC_DEFUN([AC_LIB_RPATH],
881 + dnl Tell automake >= 1.10 to complain if config.rpath is missing.
882 + m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
883 + AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
884 + AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
885 + AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
886 + AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
887 + AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
888 + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
889 + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
890 + . ./conftest.sh
891 + rm -f ./conftest.sh
892 + acl_cv_rpath=done
893 + ])
894 + wl="$acl_cv_wl"
895 + libext="$acl_cv_libext"
896 + shlibext="$acl_cv_shlibext"
897 + hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
898 + hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
899 + hardcode_direct="$acl_cv_hardcode_direct"
900 + hardcode_minus_L="$acl_cv_hardcode_minus_L"
901 + dnl Determine whether the user wants rpath handling at all.
902 + AC_ARG_ENABLE(rpath,
903 + [ --disable-rpath do not hardcode runtime library paths],
904 + :, enable_rpath=yes)
907 +dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
908 +dnl the libraries corresponding to explicit and implicit dependencies.
909 +dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
910 +AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
912 + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
913 + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
914 + dnl By default, look in $includedir and $libdir.
915 + use_additional=yes
916 + AC_LIB_WITH_FINAL_PREFIX([
917 + eval additional_includedir=\"$includedir\"
918 + eval additional_libdir=\"$libdir\"
919 + ])
920 + AC_LIB_ARG_WITH([lib$1-prefix],
921 +[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
922 + --without-lib$1-prefix don't search for lib$1 in includedir and libdir],
924 + if test "X$withval" = "Xno"; then
925 + use_additional=no
926 + else
927 + if test "X$withval" = "X"; then
928 + AC_LIB_WITH_FINAL_PREFIX([
929 + eval additional_includedir=\"$includedir\"
930 + eval additional_libdir=\"$libdir\"
931 + ])
932 + else
933 + additional_includedir="$withval/include"
934 + additional_libdir="$withval/lib"
935 + fi
936 + fi
938 + dnl Search the library and its dependencies in $additional_libdir and
939 + dnl $LDFLAGS. Using breadth-first-seach.
940 + LIB[]NAME=
941 + LTLIB[]NAME=
942 + INC[]NAME=
943 + rpathdirs=
944 + ltrpathdirs=
945 + names_already_handled=
946 + names_next_round='$1 $2'
947 + while test -n "$names_next_round"; do
948 + names_this_round="$names_next_round"
949 + names_next_round=
950 + for name in $names_this_round; do
951 + already_handled=
952 + for n in $names_already_handled; do
953 + if test "$n" = "$name"; then
954 + already_handled=yes
955 + break
956 + fi
957 + done
958 + if test -z "$already_handled"; then
959 + names_already_handled="$names_already_handled $name"
960 + dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
961 + dnl or AC_LIB_HAVE_LINKFLAGS call.
962 + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
963 + eval value=\"\$HAVE_LIB$uppername\"
964 + if test -n "$value"; then
965 + if test "$value" = yes; then
966 + eval value=\"\$LIB$uppername\"
967 + test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
968 + eval value=\"\$LTLIB$uppername\"
969 + test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
970 + else
971 + dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
972 + dnl that this library doesn't exist. So just drop it.
974 + fi
975 + else
976 + dnl Search the library lib$name in $additional_libdir and $LDFLAGS
977 + dnl and the already constructed $LIBNAME/$LTLIBNAME.
978 + found_dir=
979 + found_la=
980 + found_so=
981 + found_a=
982 + if test $use_additional = yes; then
983 + if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
984 + found_dir="$additional_libdir"
985 + found_so="$additional_libdir/lib$name.$shlibext"
986 + if test -f "$additional_libdir/lib$name.la"; then
987 + found_la="$additional_libdir/lib$name.la"
988 + fi
989 + else
990 + if test -f "$additional_libdir/lib$name.$libext"; then
991 + found_dir="$additional_libdir"
992 + found_a="$additional_libdir/lib$name.$libext"
993 + if test -f "$additional_libdir/lib$name.la"; then
994 + found_la="$additional_libdir/lib$name.la"
995 + fi
996 + fi
997 + fi
998 + fi
999 + if test "X$found_dir" = "X"; then
1000 + for x in $LDFLAGS $LTLIB[]NAME; do
1001 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1002 + case "$x" in
1003 + -L*)
1004 + dir=`echo "X$x" | sed -e 's/^X-L//'`
1005 + if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
1006 + found_dir="$dir"
1007 + found_so="$dir/lib$name.$shlibext"
1008 + if test -f "$dir/lib$name.la"; then
1009 + found_la="$dir/lib$name.la"
1010 + fi
1011 + else
1012 + if test -f "$dir/lib$name.$libext"; then
1013 + found_dir="$dir"
1014 + found_a="$dir/lib$name.$libext"
1015 + if test -f "$dir/lib$name.la"; then
1016 + found_la="$dir/lib$name.la"
1017 + fi
1018 + fi
1019 + fi
1020 + ;;
1021 + esac
1022 + if test "X$found_dir" != "X"; then
1023 + break
1024 + fi
1025 + done
1026 + fi
1027 + if test "X$found_dir" != "X"; then
1028 + dnl Found the library.
1029 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
1030 + if test "X$found_so" != "X"; then
1031 + dnl Linking with a shared library. We attempt to hardcode its
1032 + dnl directory into the executable's runpath, unless it's the
1033 + dnl standard /usr/lib.
1034 + if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
1035 + dnl No hardcoding is needed.
1036 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1037 + else
1038 + dnl Use an explicit option to hardcode DIR into the resulting
1039 + dnl binary.
1040 + dnl Potentially add DIR to ltrpathdirs.
1041 + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
1042 + haveit=
1043 + for x in $ltrpathdirs; do
1044 + if test "X$x" = "X$found_dir"; then
1045 + haveit=yes
1046 + break
1047 + fi
1048 + done
1049 + if test -z "$haveit"; then
1050 + ltrpathdirs="$ltrpathdirs $found_dir"
1051 + fi
1052 + dnl The hardcoding into $LIBNAME is system dependent.
1053 + if test "$hardcode_direct" = yes; then
1054 + dnl Using DIR/libNAME.so during linking hardcodes DIR into the
1055 + dnl resulting binary.
1056 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1057 + else
1058 + if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
1059 + dnl Use an explicit option to hardcode DIR into the resulting
1060 + dnl binary.
1061 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1062 + dnl Potentially add DIR to rpathdirs.
1063 + dnl The rpathdirs will be appended to $LIBNAME at the end.
1064 + haveit=
1065 + for x in $rpathdirs; do
1066 + if test "X$x" = "X$found_dir"; then
1067 + haveit=yes
1068 + break
1069 + fi
1070 + done
1071 + if test -z "$haveit"; then
1072 + rpathdirs="$rpathdirs $found_dir"
1073 + fi
1074 + else
1075 + dnl Rely on "-L$found_dir".
1076 + dnl But don't add it if it's already contained in the LDFLAGS
1077 + dnl or the already constructed $LIBNAME
1078 + haveit=
1079 + for x in $LDFLAGS $LIB[]NAME; do
1080 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1081 + if test "X$x" = "X-L$found_dir"; then
1082 + haveit=yes
1083 + break
1084 + fi
1085 + done
1086 + if test -z "$haveit"; then
1087 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
1088 + fi
1089 + if test "$hardcode_minus_L" != no; then
1090 + dnl FIXME: Not sure whether we should use
1091 + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
1092 + dnl here.
1093 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
1094 + else
1095 + dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
1096 + dnl here, because this doesn't fit in flags passed to the
1097 + dnl compiler. So give up. No hardcoding. This affects only
1098 + dnl very old systems.
1099 + dnl FIXME: Not sure whether we should use
1100 + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
1101 + dnl here.
1102 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
1103 + fi
1104 + fi
1105 + fi
1106 + fi
1107 + else
1108 + if test "X$found_a" != "X"; then
1109 + dnl Linking with a static library.
1110 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
1111 + else
1112 + dnl We shouldn't come here, but anyway it's good to have a
1113 + dnl fallback.
1114 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
1115 + fi
1116 + fi
1117 + dnl Assume the include files are nearby.
1118 + additional_includedir=
1119 + case "$found_dir" in
1120 + */lib | */lib/)
1121 + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
1122 + additional_includedir="$basedir/include"
1123 + ;;
1124 + esac
1125 + if test "X$additional_includedir" != "X"; then
1126 + dnl Potentially add $additional_includedir to $INCNAME.
1127 + dnl But don't add it
1128 + dnl 1. if it's the standard /usr/include,
1129 + dnl 2. if it's /usr/local/include and we are using GCC on Linux,
1130 + dnl 3. if it's already present in $CPPFLAGS or the already
1131 + dnl constructed $INCNAME,
1132 + dnl 4. if it doesn't exist as a directory.
1133 + if test "X$additional_includedir" != "X/usr/include"; then
1134 + haveit=
1135 + if test "X$additional_includedir" = "X/usr/local/include"; then
1136 + if test -n "$GCC"; then
1137 + case $host_os in
1138 + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
1139 + esac
1140 + fi
1141 + fi
1142 + if test -z "$haveit"; then
1143 + for x in $CPPFLAGS $INC[]NAME; do
1144 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1145 + if test "X$x" = "X-I$additional_includedir"; then
1146 + haveit=yes
1147 + break
1148 + fi
1149 + done
1150 + if test -z "$haveit"; then
1151 + if test -d "$additional_includedir"; then
1152 + dnl Really add $additional_includedir to $INCNAME.
1153 + INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
1154 + fi
1155 + fi
1156 + fi
1157 + fi
1158 + fi
1159 + dnl Look for dependencies.
1160 + if test -n "$found_la"; then
1161 + dnl Read the .la file. It defines the variables
1162 + dnl dlname, library_names, old_library, dependency_libs, current,
1163 + dnl age, revision, installed, dlopen, dlpreopen, libdir.
1164 + save_libdir="$libdir"
1165 + case "$found_la" in
1166 + */* | *\\*) . "$found_la" ;;
1167 + *) . "./$found_la" ;;
1168 + esac
1169 + libdir="$save_libdir"
1170 + dnl We use only dependency_libs.
1171 + for dep in $dependency_libs; do
1172 + case "$dep" in
1173 + -L*)
1174 + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
1175 + dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
1176 + dnl But don't add it
1177 + dnl 1. if it's the standard /usr/lib,
1178 + dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
1179 + dnl 3. if it's already present in $LDFLAGS or the already
1180 + dnl constructed $LIBNAME,
1181 + dnl 4. if it doesn't exist as a directory.
1182 + if test "X$additional_libdir" != "X/usr/lib"; then
1183 + haveit=
1184 + if test "X$additional_libdir" = "X/usr/local/lib"; then
1185 + if test -n "$GCC"; then
1186 + case $host_os in
1187 + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
1188 + esac
1189 + fi
1190 + fi
1191 + if test -z "$haveit"; then
1192 + haveit=
1193 + for x in $LDFLAGS $LIB[]NAME; do
1194 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1195 + if test "X$x" = "X-L$additional_libdir"; then
1196 + haveit=yes
1197 + break
1198 + fi
1199 + done
1200 + if test -z "$haveit"; then
1201 + if test -d "$additional_libdir"; then
1202 + dnl Really add $additional_libdir to $LIBNAME.
1203 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
1204 + fi
1205 + fi
1206 + haveit=
1207 + for x in $LDFLAGS $LTLIB[]NAME; do
1208 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1209 + if test "X$x" = "X-L$additional_libdir"; then
1210 + haveit=yes
1211 + break
1212 + fi
1213 + done
1214 + if test -z "$haveit"; then
1215 + if test -d "$additional_libdir"; then
1216 + dnl Really add $additional_libdir to $LTLIBNAME.
1217 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
1218 + fi
1219 + fi
1220 + fi
1221 + fi
1222 + ;;
1223 + -R*)
1224 + dir=`echo "X$dep" | sed -e 's/^X-R//'`
1225 + if test "$enable_rpath" != no; then
1226 + dnl Potentially add DIR to rpathdirs.
1227 + dnl The rpathdirs will be appended to $LIBNAME at the end.
1228 + haveit=
1229 + for x in $rpathdirs; do
1230 + if test "X$x" = "X$dir"; then
1231 + haveit=yes
1232 + break
1233 + fi
1234 + done
1235 + if test -z "$haveit"; then
1236 + rpathdirs="$rpathdirs $dir"
1237 + fi
1238 + dnl Potentially add DIR to ltrpathdirs.
1239 + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
1240 + haveit=
1241 + for x in $ltrpathdirs; do
1242 + if test "X$x" = "X$dir"; then
1243 + haveit=yes
1244 + break
1245 + fi
1246 + done
1247 + if test -z "$haveit"; then
1248 + ltrpathdirs="$ltrpathdirs $dir"
1249 + fi
1250 + fi
1251 + ;;
1252 + -l*)
1253 + dnl Handle this in the next round.
1254 + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
1255 + ;;
1256 + *.la)
1257 + dnl Handle this in the next round. Throw away the .la's
1258 + dnl directory; it is already contained in a preceding -L
1259 + dnl option.
1260 + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
1261 + ;;
1262 + *)
1263 + dnl Most likely an immediate library name.
1264 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
1265 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
1266 + ;;
1267 + esac
1268 + done
1269 + fi
1270 + else
1271 + dnl Didn't find the library; assume it is in the system directories
1272 + dnl known to the linker and runtime loader. (All the system
1273 + dnl directories known to the linker should also be known to the
1274 + dnl runtime loader, otherwise the system is severely misconfigured.)
1275 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
1276 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
1277 + fi
1278 + fi
1279 + fi
1280 + done
1281 + done
1282 + if test "X$rpathdirs" != "X"; then
1283 + if test -n "$hardcode_libdir_separator"; then
1284 + dnl Weird platform: only the last -rpath option counts, the user must
1285 + dnl pass all path elements in one option. We can arrange that for a
1286 + dnl single library, but not when more than one $LIBNAMEs are used.
1287 + alldirs=
1288 + for found_dir in $rpathdirs; do
1289 + alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
1290 + done
1291 + dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
1292 + acl_save_libdir="$libdir"
1293 + libdir="$alldirs"
1294 + eval flag=\"$hardcode_libdir_flag_spec\"
1295 + libdir="$acl_save_libdir"
1296 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
1297 + else
1298 + dnl The -rpath options are cumulative.
1299 + for found_dir in $rpathdirs; do
1300 + acl_save_libdir="$libdir"
1301 + libdir="$found_dir"
1302 + eval flag=\"$hardcode_libdir_flag_spec\"
1303 + libdir="$acl_save_libdir"
1304 + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
1305 + done
1306 + fi
1307 + fi
1308 + if test "X$ltrpathdirs" != "X"; then
1309 + dnl When using libtool, the option that works for both libraries and
1310 + dnl executables is -R. The -R options are cumulative.
1311 + for found_dir in $ltrpathdirs; do
1312 + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
1313 + done
1314 + fi
1317 +dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
1318 +dnl unless already present in VAR.
1319 +dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
1320 +dnl contains two or three consecutive elements that belong together.
1321 +AC_DEFUN([AC_LIB_APPENDTOVAR],
1323 + for element in [$2]; do
1324 + haveit=
1325 + for x in $[$1]; do
1326 + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1327 + if test "X$x" = "X$element"; then
1328 + haveit=yes
1329 + break
1330 + fi
1331 + done
1332 + if test -z "$haveit"; then
1333 + [$1]="${[$1]}${[$1]:+ }$element"
1334 + fi
1335 + done
1338 +# lib-ld.m4 serial 3 (gettext-0.13)
1339 +dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
1340 +dnl This file is free software; the Free Software Foundation
1341 +dnl gives unlimited permission to copy and/or distribute it,
1342 +dnl with or without modifications, as long as this notice is preserved.
1344 +dnl Subroutines of libtool.m4,
1345 +dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
1346 +dnl with libtool.m4.
1348 +dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
1349 +AC_DEFUN([AC_LIB_PROG_LD_GNU],
1350 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
1351 +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
1352 +case `$LD -v 2>&1 </dev/null` in
1353 +*GNU* | *'with BFD'*)
1354 + acl_cv_prog_gnu_ld=yes ;;
1356 + acl_cv_prog_gnu_ld=no ;;
1357 +esac])
1358 +with_gnu_ld=$acl_cv_prog_gnu_ld
1361 +dnl From libtool-1.4. Sets the variable LD.
1362 +AC_DEFUN([AC_LIB_PROG_LD],
1363 +[AC_ARG_WITH(gnu-ld,
1364 +[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
1365 +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
1366 +AC_REQUIRE([AC_PROG_CC])dnl
1367 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
1368 +# Prepare PATH_SEPARATOR.
1369 +# The user is always right.
1370 +if test "${PATH_SEPARATOR+set}" != set; then
1371 + echo "#! /bin/sh" >conf$$.sh
1372 + echo "exit 0" >>conf$$.sh
1373 + chmod +x conf$$.sh
1374 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1375 + PATH_SEPARATOR=';'
1376 + else
1377 + PATH_SEPARATOR=:
1378 + fi
1379 + rm -f conf$$.sh
1381 +ac_prog=ld
1382 +if test "$GCC" = yes; then
1383 + # Check if gcc -print-prog-name=ld gives a path.
1384 + AC_MSG_CHECKING([for ld used by GCC])
1385 + case $host in
1386 + *-*-mingw*)
1387 + # gcc leaves a trailing carriage return which upsets mingw
1388 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1389 + *)
1390 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1391 + esac
1392 + case $ac_prog in
1393 + # Accept absolute paths.
1394 + [[\\/]* | [A-Za-z]:[\\/]*)]
1395 + [re_direlt='/[^/][^/]*/\.\./']
1396 + # Canonicalize the path of ld
1397 + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1398 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1399 + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1400 + done
1401 + test -z "$LD" && LD="$ac_prog"
1402 + ;;
1403 + "")
1404 + # If it fails, then pretend we aren't using GCC.
1405 + ac_prog=ld
1406 + ;;
1407 + *)
1408 + # If it is relative, then search for the first ld in PATH.
1409 + with_gnu_ld=unknown
1410 + ;;
1411 + esac
1412 +elif test "$with_gnu_ld" = yes; then
1413 + AC_MSG_CHECKING([for GNU ld])
1414 +else
1415 + AC_MSG_CHECKING([for non-GNU ld])
1417 +AC_CACHE_VAL(acl_cv_path_LD,
1418 +[if test -z "$LD"; then
1419 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1420 + for ac_dir in $PATH; do
1421 + test -z "$ac_dir" && ac_dir=.
1422 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1423 + acl_cv_path_LD="$ac_dir/$ac_prog"
1424 + # Check to see if the program is GNU ld. I'd rather use --version,
1425 + # but apparently some GNU ld's only accept -v.
1426 + # Break only if it was the GNU/non-GNU ld that we prefer.
1427 + case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
1428 + *GNU* | *'with BFD'*)
1429 + test "$with_gnu_ld" != no && break ;;
1430 + *)
1431 + test "$with_gnu_ld" != yes && break ;;
1432 + esac
1433 + fi
1434 + done
1435 + IFS="$ac_save_ifs"
1436 +else
1437 + acl_cv_path_LD="$LD" # Let the user override the test with a path.
1438 +fi])
1439 +LD="$acl_cv_path_LD"
1440 +if test -n "$LD"; then
1441 + AC_MSG_RESULT($LD)
1442 +else
1443 + AC_MSG_RESULT(no)
1445 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
1446 +AC_LIB_PROG_LD_GNU
1449 +# progtest.m4 serial 4 (gettext-0.14.2)
1450 +dnl Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc.
1451 +dnl This file is free software; the Free Software Foundation
1452 +dnl gives unlimited permission to copy and/or distribute it,
1453 +dnl with or without modifications, as long as this notice is preserved.
1454 +dnl
1455 +dnl This file can can be used in projects which are not available under
1456 +dnl the GNU General Public License or the GNU Library General Public
1457 +dnl License but which still want to provide support for the GNU gettext
1458 +dnl functionality.
1459 +dnl Please note that the actual code of the GNU gettext library is covered
1460 +dnl by the GNU Library General Public License, and the rest of the GNU
1461 +dnl gettext package package is covered by the GNU General Public License.
1462 +dnl They are *not* in the public domain.
1464 +dnl Authors:
1465 +dnl Ulrich Drepper <drepper@cygnus.com>, 1996.
1467 +AC_PREREQ(2.50)
1469 +# Search path for a program which passes the given test.
1471 +dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
1472 +dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
1473 +AC_DEFUN([AM_PATH_PROG_WITH_TEST],
1475 +# Prepare PATH_SEPARATOR.
1476 +# The user is always right.
1477 +if test "${PATH_SEPARATOR+set}" != set; then
1478 + echo "#! /bin/sh" >conf$$.sh
1479 + echo "exit 0" >>conf$$.sh
1480 + chmod +x conf$$.sh
1481 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1482 + PATH_SEPARATOR=';'
1483 + else
1484 + PATH_SEPARATOR=:
1485 + fi
1486 + rm -f conf$$.sh
1489 +# Find out how to test for executable files. Don't use a zero-byte file,
1490 +# as systems may use methods other than mode bits to determine executability.
1491 +cat >conf$$.file <<_ASEOF
1492 +#! /bin/sh
1493 +exit 0
1494 +_ASEOF
1495 +chmod +x conf$$.file
1496 +if test -x conf$$.file >/dev/null 2>&1; then
1497 + ac_executable_p="test -x"
1498 +else
1499 + ac_executable_p="test -f"
1501 +rm -f conf$$.file
1503 +# Extract the first word of "$2", so it can be a program name with args.
1504 +set dummy $2; ac_word=[$]2
1505 +AC_MSG_CHECKING([for $ac_word])
1506 +AC_CACHE_VAL(ac_cv_path_$1,
1507 +[case "[$]$1" in
1508 + [[\\/]]* | ?:[[\\/]]*)
1509 + ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
1510 + ;;
1511 + *)
1512 + ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
1513 + for ac_dir in ifelse([$5], , $PATH, [$5]); do
1514 + IFS="$ac_save_IFS"
1515 + test -z "$ac_dir" && ac_dir=.
1516 + for ac_exec_ext in '' $ac_executable_extensions; do
1517 + if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
1518 + echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD
1519 + if [$3]; then
1520 + ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"
1521 + break 2
1522 + fi
1523 + fi
1524 + done
1525 + done
1526 + IFS="$ac_save_IFS"
1527 +dnl If no 4th arg is given, leave the cache variable unset,
1528 +dnl so AC_PATH_PROGS will keep looking.
1529 +ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
1530 +])dnl
1531 + ;;
1532 +esac])dnl
1533 +$1="$ac_cv_path_$1"
1534 +if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
1535 + AC_MSG_RESULT([$]$1)
1536 +else
1537 + AC_MSG_RESULT(no)
1539 +AC_SUBST($1)dnl
1542 +# isc-posix.m4 serial 2 (gettext-0.11.2)
1543 +dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
1544 +dnl This file is free software; the Free Software Foundation
1545 +dnl gives unlimited permission to copy and/or distribute it,
1546 +dnl with or without modifications, as long as this notice is preserved.
1548 +# This file is not needed with autoconf-2.53 and newer. Remove it in 2005.
1550 +# This test replaces the one in autoconf.
1551 +# Currently this macro should have the same name as the autoconf macro
1552 +# because gettext's gettext.m4 (distributed in the automake package)
1553 +# still uses it. Otherwise, the use in gettext.m4 makes autoheader
1554 +# give these diagnostics:
1555 +# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
1556 +# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
1558 +undefine([AC_ISC_POSIX])
1560 +AC_DEFUN([AC_ISC_POSIX],
1562 + dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
1563 + AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
1567 +# Do all the work for Automake. This macro actually does too much --
1568 +# some checks are only needed if your package does certain things.
1569 +# But this isn't really a big deal.
1571 +# serial 1
1573 +dnl Usage:
1574 +dnl AM_INIT_AUTOMAKE(package,version, [no-define])
1576 +AC_DEFUN([AM_INIT_AUTOMAKE],
1577 +[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1578 +AC_REQUIRE([AC_PROG_INSTALL])
1579 +PACKAGE=[$1]
1580 +AC_SUBST(PACKAGE)
1581 +VERSION=[$2]
1582 +AC_SUBST(VERSION)
1583 +dnl test to see if srcdir already configured
1584 +if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1585 + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1587 +ifelse([$3],,
1588 +AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1589 +AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
1590 +AC_REQUIRE([AM_SANITY_CHECK])
1591 +AC_REQUIRE([AC_ARG_PROGRAM])
1592 +dnl FIXME This is truly gross.
1593 +missing_dir=`cd $ac_aux_dir && pwd`
1594 +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
1595 +AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
1596 +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
1597 +AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
1598 +AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
1599 +AC_REQUIRE([AC_PROG_MAKE_SET])])
1601 +# Copyright 2002 Free Software Foundation, Inc.
1603 +# This program is free software; you can redistribute it and/or modify
1604 +# it under the terms of the GNU General Public License as published by
1605 +# the Free Software Foundation; either version 2, or (at your option)
1606 +# any later version.
1608 +# This program is distributed in the hope that it will be useful,
1609 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1610 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1611 +# GNU General Public License for more details.
1613 +# You should have received a copy of the GNU General Public License
1614 +# along with this program; if not, write to the Free Software
1615 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1617 +# AM_AUTOMAKE_VERSION(VERSION)
1618 +# ----------------------------
1619 +# Automake X.Y traces this macro to ensure aclocal.m4 has been
1620 +# generated from the m4 files accompanying Automake X.Y.
1621 +AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
1623 +# AM_SET_CURRENT_AUTOMAKE_VERSION
1624 +# -------------------------------
1625 +# Call AM_AUTOMAKE_VERSION so it can be traced.
1626 +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
1627 +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
1628 + [AM_AUTOMAKE_VERSION([1.4-p6])])
1631 +# Check to make sure that the build environment is sane.
1634 +AC_DEFUN([AM_SANITY_CHECK],
1635 +[AC_MSG_CHECKING([whether build environment is sane])
1636 +# Just in case
1637 +sleep 1
1638 +echo timestamp > conftestfile
1639 +# Do `set' in a subshell so we don't clobber the current shell's
1640 +# arguments. Must try -L first in case configure is actually a
1641 +# symlink; some systems play weird games with the mod time of symlinks
1642 +# (eg FreeBSD returns the mod time of the symlink's containing
1643 +# directory).
1644 +if (
1645 + set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1646 + if test "[$]*" = "X"; then
1647 + # -L didn't work.
1648 + set X `ls -t $srcdir/configure conftestfile`
1649 + fi
1650 + if test "[$]*" != "X $srcdir/configure conftestfile" \
1651 + && test "[$]*" != "X conftestfile $srcdir/configure"; then
1653 + # If neither matched, then we have a broken ls. This can happen
1654 + # if, for instance, CONFIG_SHELL is bash and it inherits a
1655 + # broken ls alias from the environment. This has actually
1656 + # happened. Such a system could not be considered "sane".
1657 + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1658 +alias in your environment])
1659 + fi
1661 + test "[$]2" = conftestfile
1663 +then
1664 + # Ok.
1666 +else
1667 + AC_MSG_ERROR([newly created file is older than distributed files!
1668 +Check your system clock])
1670 +rm -f conftest*
1671 +AC_MSG_RESULT(yes)])
1673 +dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
1674 +dnl The program must properly implement --version.
1675 +AC_DEFUN([AM_MISSING_PROG],
1676 +[AC_MSG_CHECKING(for working $2)
1677 +# Run test in a subshell; some versions of sh will print an error if
1678 +# an executable is not found, even if stderr is redirected.
1679 +# Redirect stdin to placate older versions of autoconf. Sigh.
1680 +if ($2 --version) < /dev/null > /dev/null 2>&1; then
1681 + $1=$2
1682 + AC_MSG_RESULT(found)
1683 +else
1684 + $1="$3/missing $2"
1685 + AC_MSG_RESULT(missing)
1687 +AC_SUBST($1)])
1689 +# Like AC_CONFIG_HEADER, but automatically create stamp file.
1691 +AC_DEFUN([AM_CONFIG_HEADER],
1692 +[AC_PREREQ([2.12])
1693 +AC_CONFIG_HEADER([$1])
1694 +dnl When config.status generates a header, we must update the stamp-h file.
1695 +dnl This file resides in the same directory as the config header
1696 +dnl that is generated. We must strip everything past the first ":",
1697 +dnl and everything past the last "/".
1698 +AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
1699 +ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
1700 +<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
1701 +<<am_indx=1
1702 +for am_file in <<$1>>; do
1703 + case " <<$>>CONFIG_HEADERS " in
1704 + *" <<$>>am_file "*<<)>>
1705 + echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
1706 + ;;
1707 + esac
1708 + am_indx=`expr "<<$>>am_indx" + 1`
1709 +done<<>>dnl>>)
1710 +changequote([,]))])
1712 +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1714 +# serial 48 Debian 1.5.22-2 AC_PROG_LIBTOOL
1717 +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1718 +# -----------------------------------------------------------
1719 +# If this macro is not defined by Autoconf, define it here.
1720 +m4_ifdef([AC_PROVIDE_IFELSE],
1721 + [],
1722 + [m4_define([AC_PROVIDE_IFELSE],
1723 + [m4_ifdef([AC_PROVIDE_$1],
1724 + [$2], [$3])])])
1727 +# AC_PROG_LIBTOOL
1728 +# ---------------
1729 +AC_DEFUN([AC_PROG_LIBTOOL],
1730 +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
1731 +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
1732 +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
1733 + AC_PROVIDE_IFELSE([AC_PROG_CXX],
1734 + [AC_LIBTOOL_CXX],
1735 + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
1736 + ])])
1737 +dnl And a similar setup for Fortran 77 support
1738 + AC_PROVIDE_IFELSE([AC_PROG_F77],
1739 + [AC_LIBTOOL_F77],
1740 + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
1741 +])])
1743 +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
1744 +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
1745 +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
1746 + AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1747 + [AC_LIBTOOL_GCJ],
1748 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1749 + [AC_LIBTOOL_GCJ],
1750 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
1751 + [AC_LIBTOOL_GCJ],
1752 + [ifdef([AC_PROG_GCJ],
1753 + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1754 + ifdef([A][M_PROG_GCJ],
1755 + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1756 + ifdef([LT_AC_PROG_GCJ],
1757 + [define([LT_AC_PROG_GCJ],
1758 + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
1759 +])])# AC_PROG_LIBTOOL
1762 +# _AC_PROG_LIBTOOL
1763 +# ----------------
1764 +AC_DEFUN([_AC_PROG_LIBTOOL],
1765 +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
1766 +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
1767 +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
1768 +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
1770 +# This can be used to rebuild libtool when needed
1771 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1773 +# Always use our own libtool.
1774 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1775 +AC_SUBST(LIBTOOL)dnl
1777 +# Prevent multiple expansion
1778 +define([AC_PROG_LIBTOOL], [])
1779 +])# _AC_PROG_LIBTOOL
1782 +# AC_LIBTOOL_SETUP
1783 +# ----------------
1784 +AC_DEFUN([AC_LIBTOOL_SETUP],
1785 +[AC_PREREQ(2.50)dnl
1786 +AC_REQUIRE([AC_ENABLE_SHARED])dnl
1787 +AC_REQUIRE([AC_ENABLE_STATIC])dnl
1788 +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
1789 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
1790 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1791 +AC_REQUIRE([AC_PROG_CC])dnl
1792 +AC_REQUIRE([AC_PROG_LD])dnl
1793 +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
1794 +AC_REQUIRE([AC_PROG_NM])dnl
1796 +AC_REQUIRE([AC_PROG_LN_S])dnl
1797 +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
1798 +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1799 +AC_REQUIRE([AC_OBJEXT])dnl
1800 +AC_REQUIRE([AC_EXEEXT])dnl
1801 +dnl
1803 +AC_LIBTOOL_SYS_MAX_CMD_LEN
1804 +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1805 +AC_LIBTOOL_OBJDIR
1807 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1808 +_LT_AC_PROG_ECHO_BACKSLASH
1810 +case $host_os in
1811 +aix3*)
1812 + # AIX sometimes has problems with the GCC collect2 program. For some
1813 + # reason, if we set the COLLECT_NAMES environment variable, the problems
1814 + # vanish in a puff of smoke.
1815 + if test "X${COLLECT_NAMES+set}" != Xset; then
1816 + COLLECT_NAMES=
1817 + export COLLECT_NAMES
1818 + fi
1819 + ;;
1820 +esac
1822 +# Sed substitution that helps us do robust quoting. It backslashifies
1823 +# metacharacters that are still active within double-quoted strings.
1824 +Xsed='sed -e 1s/^X//'
1825 +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1827 +# Same as above, but do not quote variable references.
1828 +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
1830 +# Sed substitution to delay expansion of an escaped shell variable in a
1831 +# double_quote_subst'ed string.
1832 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1834 +# Sed substitution to avoid accidental globbing in evaled expressions
1835 +no_glob_subst='s/\*/\\\*/g'
1837 +# Constants:
1838 +rm="rm -f"
1840 +# Global variables:
1841 +default_ofile=libtool
1842 +can_build_shared=yes
1844 +# All known linkers require a `.a' archive for static linking (except MSVC,
1845 +# which needs '.lib').
1846 +libext=a
1847 +ltmain="$ac_aux_dir/ltmain.sh"
1848 +ofile="$default_ofile"
1849 +with_gnu_ld="$lt_cv_prog_gnu_ld"
1851 +AC_CHECK_TOOL(AR, ar, false)
1852 +AC_CHECK_TOOL(RANLIB, ranlib, :)
1853 +AC_CHECK_TOOL(STRIP, strip, :)
1855 +old_CC="$CC"
1856 +old_CFLAGS="$CFLAGS"
1858 +# Set sane defaults for various variables
1859 +test -z "$AR" && AR=ar
1860 +test -z "$AR_FLAGS" && AR_FLAGS=cru
1861 +test -z "$AS" && AS=as
1862 +test -z "$CC" && CC=cc
1863 +test -z "$LTCC" && LTCC=$CC
1864 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1865 +test -z "$DLLTOOL" && DLLTOOL=dlltool
1866 +test -z "$LD" && LD=ld
1867 +test -z "$LN_S" && LN_S="ln -s"
1868 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
1869 +test -z "$NM" && NM=nm
1870 +test -z "$SED" && SED=sed
1871 +test -z "$OBJDUMP" && OBJDUMP=objdump
1872 +test -z "$RANLIB" && RANLIB=:
1873 +test -z "$STRIP" && STRIP=:
1874 +test -z "$ac_objext" && ac_objext=o
1876 +# Determine commands to create old-style static archives.
1877 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1878 +old_postinstall_cmds='chmod 644 $oldlib'
1879 +old_postuninstall_cmds=
1881 +if test -n "$RANLIB"; then
1882 + case $host_os in
1883 + openbsd*)
1884 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1885 + ;;
1886 + *)
1887 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1888 + ;;
1889 + esac
1890 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1893 +_LT_CC_BASENAME([$compiler])
1895 +# Only perform the check for file, if the check method requires it
1896 +case $deplibs_check_method in
1897 +file_magic*)
1898 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1899 + AC_PATH_MAGIC
1900 + fi
1901 + ;;
1902 +esac
1904 +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1905 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1906 +enable_win32_dll=yes, enable_win32_dll=no)
1908 +AC_ARG_ENABLE([libtool-lock],
1909 + [AC_HELP_STRING([--disable-libtool-lock],
1910 + [avoid locking (might break parallel builds)])])
1911 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1913 +AC_ARG_WITH([pic],
1914 + [AC_HELP_STRING([--with-pic],
1915 + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1916 + [pic_mode="$withval"],
1917 + [pic_mode=default])
1918 +test -z "$pic_mode" && pic_mode=default
1920 +# Use C for the default configuration in the libtool script
1921 +tagname=
1922 +AC_LIBTOOL_LANG_C_CONFIG
1923 +_LT_AC_TAGCONFIG
1924 +])# AC_LIBTOOL_SETUP
1927 +# _LT_AC_SYS_COMPILER
1928 +# -------------------
1929 +AC_DEFUN([_LT_AC_SYS_COMPILER],
1930 +[AC_REQUIRE([AC_PROG_CC])dnl
1932 +# If no C compiler was specified, use CC.
1933 +LTCC=${LTCC-"$CC"}
1935 +# If no C compiler flags were specified, use CFLAGS.
1936 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1938 +# Allow CC to be a program name with arguments.
1939 +compiler=$CC
1940 +])# _LT_AC_SYS_COMPILER
1943 +# _LT_CC_BASENAME(CC)
1944 +# -------------------
1945 +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1946 +AC_DEFUN([_LT_CC_BASENAME],
1947 +[for cc_temp in $1""; do
1948 + case $cc_temp in
1949 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1950 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1951 + \-*) ;;
1952 + *) break;;
1953 + esac
1954 +done
1955 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1959 +# _LT_COMPILER_BOILERPLATE
1960 +# ------------------------
1961 +# Check for compiler boilerplate output or warnings with
1962 +# the simple compiler test code.
1963 +AC_DEFUN([_LT_COMPILER_BOILERPLATE],
1964 +[ac_outfile=conftest.$ac_objext
1965 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
1966 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1967 +_lt_compiler_boilerplate=`cat conftest.err`
1968 +$rm conftest*
1969 +])# _LT_COMPILER_BOILERPLATE
1972 +# _LT_LINKER_BOILERPLATE
1973 +# ----------------------
1974 +# Check for linker boilerplate output or warnings with
1975 +# the simple link test code.
1976 +AC_DEFUN([_LT_LINKER_BOILERPLATE],
1977 +[ac_outfile=conftest.$ac_objext
1978 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
1979 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1980 +_lt_linker_boilerplate=`cat conftest.err`
1981 +$rm conftest*
1982 +])# _LT_LINKER_BOILERPLATE
1985 +# _LT_AC_SYS_LIBPATH_AIX
1986 +# ----------------------
1987 +# Links a minimal program and checks the executable
1988 +# for the system default hardcoded library path. In most cases,
1989 +# this is /usr/lib:/lib, but when the MPI compilers are used
1990 +# the location of the communication and MPI libs are included too.
1991 +# If we don't find anything, use the default library path according
1992 +# to the aix ld manual.
1993 +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1994 +[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1995 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1996 +}'`
1997 +# Check for a 64-bit object if we didn't find anything.
1998 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1999 +}'`; fi],[])
2000 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
2001 +])# _LT_AC_SYS_LIBPATH_AIX
2004 +# _LT_AC_SHELL_INIT(ARG)
2005 +# ----------------------
2006 +AC_DEFUN([_LT_AC_SHELL_INIT],
2007 +[ifdef([AC_DIVERSION_NOTICE],
2008 + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
2009 + [AC_DIVERT_PUSH(NOTICE)])
2011 +AC_DIVERT_POP
2012 +])# _LT_AC_SHELL_INIT
2015 +# _LT_AC_PROG_ECHO_BACKSLASH
2016 +# --------------------------
2017 +# Add some code to the start of the generated configure script which
2018 +# will find an echo command which doesn't interpret backslashes.
2019 +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
2020 +[_LT_AC_SHELL_INIT([
2021 +# Check that we are running under the correct shell.
2022 +SHELL=${CONFIG_SHELL-/bin/sh}
2024 +case X$ECHO in
2025 +X*--fallback-echo)
2026 + # Remove one level of quotation (which was required for Make).
2027 + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
2028 + ;;
2029 +esac
2031 +echo=${ECHO-echo}
2032 +if test "X[$]1" = X--no-reexec; then
2033 + # Discard the --no-reexec flag, and continue.
2034 + shift
2035 +elif test "X[$]1" = X--fallback-echo; then
2036 + # Avoid inline document here, it may be left over
2038 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
2039 + # Yippee, $echo works!
2041 +else
2042 + # Restart under the correct shell.
2043 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
2046 +if test "X[$]1" = X--fallback-echo; then
2047 + # used as fallback echo
2048 + shift
2049 + cat <<EOF
2050 +[$]*
2051 +EOF
2052 + exit 0
2055 +# The HP-UX ksh and POSIX shell print the target directory to stdout
2056 +# if CDPATH is set.
2057 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2059 +if test -z "$ECHO"; then
2060 +if test "X${echo_test_string+set}" != Xset; then
2061 +# find a string as large as possible, as long as the shell can cope with it
2062 + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
2063 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
2064 + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
2065 + echo_test_string=`eval $cmd` &&
2066 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
2067 + then
2068 + break
2069 + fi
2070 + done
2073 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
2074 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
2075 + test "X$echo_testing_string" = "X$echo_test_string"; then
2077 +else
2078 + # The Solaris, AIX, and Digital Unix default echo programs unquote
2079 + # backslashes. This makes it impossible to quote backslashes using
2080 + # echo "$something" | sed 's/\\/\\\\/g'
2082 + # So, first we look for a working echo in the user's PATH.
2084 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2085 + for dir in $PATH /usr/ucb; do
2086 + IFS="$lt_save_ifs"
2087 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
2088 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
2089 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
2090 + test "X$echo_testing_string" = "X$echo_test_string"; then
2091 + echo="$dir/echo"
2092 + break
2093 + fi
2094 + done
2095 + IFS="$lt_save_ifs"
2097 + if test "X$echo" = Xecho; then
2098 + # We didn't find a better echo, so look for alternatives.
2099 + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
2100 + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
2101 + test "X$echo_testing_string" = "X$echo_test_string"; then
2102 + # This shell has a builtin print -r that does the trick.
2103 + echo='print -r'
2104 + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
2105 + test "X$CONFIG_SHELL" != X/bin/ksh; then
2106 + # If we have ksh, try running configure again with it.
2107 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2108 + export ORIGINAL_CONFIG_SHELL
2109 + CONFIG_SHELL=/bin/ksh
2110 + export CONFIG_SHELL
2111 + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
2112 + else
2113 + # Try using printf.
2114 + echo='printf %s\n'
2115 + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
2116 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
2117 + test "X$echo_testing_string" = "X$echo_test_string"; then
2118 + # Cool, printf works
2120 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2121 + test "X$echo_testing_string" = 'X\t' &&
2122 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2123 + test "X$echo_testing_string" = "X$echo_test_string"; then
2124 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
2125 + export CONFIG_SHELL
2126 + SHELL="$CONFIG_SHELL"
2127 + export SHELL
2128 + echo="$CONFIG_SHELL [$]0 --fallback-echo"
2129 + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2130 + test "X$echo_testing_string" = 'X\t' &&
2131 + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2132 + test "X$echo_testing_string" = "X$echo_test_string"; then
2133 + echo="$CONFIG_SHELL [$]0 --fallback-echo"
2134 + else
2135 + # maybe with a smaller string...
2136 + prev=:
2138 + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
2139 + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
2140 + then
2141 + break
2142 + fi
2143 + prev="$cmd"
2144 + done
2146 + if test "$prev" != 'sed 50q "[$]0"'; then
2147 + echo_test_string=`eval $prev`
2148 + export echo_test_string
2149 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
2150 + else
2151 + # Oops. We lost completely, so just stick with echo.
2152 + echo=echo
2153 + fi
2154 + fi
2155 + fi
2156 + fi
2160 +# Copy echo and quote the copy suitably for passing to libtool from
2161 +# the Makefile, instead of quoting the original, which is used later.
2162 +ECHO=$echo
2163 +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
2164 + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
2167 +AC_SUBST(ECHO)
2168 +])])# _LT_AC_PROG_ECHO_BACKSLASH
2171 +# _LT_AC_LOCK
2172 +# -----------
2173 +AC_DEFUN([_LT_AC_LOCK],
2174 +[AC_ARG_ENABLE([libtool-lock],
2175 + [AC_HELP_STRING([--disable-libtool-lock],
2176 + [avoid locking (might break parallel builds)])])
2177 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2179 +# Some flags need to be propagated to the compiler or linker for good
2180 +# libtool support.
2181 +case $host in
2182 +ia64-*-hpux*)
2183 + # Find out which ABI we are using.
2184 + echo 'int i;' > conftest.$ac_ext
2185 + if AC_TRY_EVAL(ac_compile); then
2186 + case `/usr/bin/file conftest.$ac_objext` in
2187 + *ELF-32*)
2188 + HPUX_IA64_MODE="32"
2189 + ;;
2190 + *ELF-64*)
2191 + HPUX_IA64_MODE="64"
2192 + ;;
2193 + esac
2194 + fi
2195 + rm -rf conftest*
2196 + ;;
2197 +*-*-irix6*)
2198 + # Find out which ABI we are using.
2199 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2200 + if AC_TRY_EVAL(ac_compile); then
2201 + if test "$lt_cv_prog_gnu_ld" = yes; then
2202 + case `/usr/bin/file conftest.$ac_objext` in
2203 + *32-bit*)
2204 + LD="${LD-ld} -melf32bsmip"
2205 + ;;
2206 + *N32*)
2207 + LD="${LD-ld} -melf32bmipn32"
2208 + ;;
2209 + *64-bit*)
2210 + LD="${LD-ld} -melf64bmip"
2211 + ;;
2212 + esac
2213 + else
2214 + case `/usr/bin/file conftest.$ac_objext` in
2215 + *32-bit*)
2216 + LD="${LD-ld} -32"
2217 + ;;
2218 + *N32*)
2219 + LD="${LD-ld} -n32"
2220 + ;;
2221 + *64-bit*)
2222 + LD="${LD-ld} -64"
2223 + ;;
2224 + esac
2225 + fi
2226 + fi
2227 + rm -rf conftest*
2228 + ;;
2230 +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2231 + # Find out which ABI we are using.
2232 + echo 'int i;' > conftest.$ac_ext
2233 + if AC_TRY_EVAL(ac_compile); then
2234 + case `/usr/bin/file conftest.o` in
2235 + *32-bit*)
2236 + case $host in
2237 + x86_64-*linux*)
2238 + LD="${LD-ld} -m elf_i386"
2239 + ;;
2240 + ppc64-*linux*|powerpc64-*linux*)
2241 + LD="${LD-ld} -m elf32ppclinux"
2242 + ;;
2243 + s390x-*linux*)
2244 + LD="${LD-ld} -m elf_s390"
2245 + ;;
2246 + sparc64-*linux*)
2247 + LD="${LD-ld} -m elf32_sparc"
2248 + ;;
2249 + esac
2250 + ;;
2251 + *64-bit*)
2252 + case $host in
2253 + x86_64-*linux*)
2254 + LD="${LD-ld} -m elf_x86_64"
2255 + ;;
2256 + ppc*-*linux*|powerpc*-*linux*)
2257 + LD="${LD-ld} -m elf64ppc"
2258 + ;;
2259 + s390*-*linux*)
2260 + LD="${LD-ld} -m elf64_s390"
2261 + ;;
2262 + sparc*-*linux*)
2263 + LD="${LD-ld} -m elf64_sparc"
2264 + ;;
2265 + esac
2266 + ;;
2267 + esac
2268 + fi
2269 + rm -rf conftest*
2270 + ;;
2272 +*-*-sco3.2v5*)
2273 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2274 + SAVE_CFLAGS="$CFLAGS"
2275 + CFLAGS="$CFLAGS -belf"
2276 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2277 + [AC_LANG_PUSH(C)
2278 + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2279 + AC_LANG_POP])
2280 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2281 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2282 + CFLAGS="$SAVE_CFLAGS"
2283 + fi
2284 + ;;
2285 +sparc*-*solaris*)
2286 + # Find out which ABI we are using.
2287 + echo 'int i;' > conftest.$ac_ext
2288 + if AC_TRY_EVAL(ac_compile); then
2289 + case `/usr/bin/file conftest.o` in
2290 + *64-bit*)
2291 + case $lt_cv_prog_gnu_ld in
2292 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
2293 + *) LD="${LD-ld} -64" ;;
2294 + esac
2295 + ;;
2296 + esac
2297 + fi
2298 + rm -rf conftest*
2299 + ;;
2301 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
2302 +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
2303 + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
2304 + AC_CHECK_TOOL(AS, as, false)
2305 + AC_CHECK_TOOL(OBJDUMP, objdump, false)
2306 + ;;
2307 + ])
2308 +esac
2310 +need_locks="$enable_libtool_lock"
2312 +])# _LT_AC_LOCK
2315 +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2316 +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2317 +# ----------------------------------------------------------------
2318 +# Check whether the given compiler option works
2319 +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
2320 +[AC_REQUIRE([LT_AC_PROG_SED])
2321 +AC_CACHE_CHECK([$1], [$2],
2322 + [$2=no
2323 + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2324 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2325 + lt_compiler_flag="$3"
2326 + # Insert the option either (1) after the last *FLAGS variable, or
2327 + # (2) before a word containing "conftest.", or (3) at the end.
2328 + # Note that $ac_compile itself does not contain backslashes and begins
2329 + # with a dollar sign (not a hyphen), so the echo should work correctly.
2330 + # The option is referenced via a variable to avoid confusing sed.
2331 + lt_compile=`echo "$ac_compile" | $SED \
2332 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2333 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2334 + -e 's:$: $lt_compiler_flag:'`
2335 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2336 + (eval "$lt_compile" 2>conftest.err)
2337 + ac_status=$?
2338 + cat conftest.err >&AS_MESSAGE_LOG_FD
2339 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2340 + if (exit $ac_status) && test -s "$ac_outfile"; then
2341 + # The compiler can only warn and ignore the option if not recognized
2342 + # So say no if there are warnings other than the usual output.
2343 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2344 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2345 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2346 + $2=yes
2347 + fi
2348 + fi
2349 + $rm conftest*
2352 +if test x"[$]$2" = xyes; then
2353 + ifelse([$5], , :, [$5])
2354 +else
2355 + ifelse([$6], , :, [$6])
2357 +])# AC_LIBTOOL_COMPILER_OPTION
2360 +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2361 +# [ACTION-SUCCESS], [ACTION-FAILURE])
2362 +# ------------------------------------------------------------
2363 +# Check whether the given compiler option works
2364 +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
2365 +[AC_CACHE_CHECK([$1], [$2],
2366 + [$2=no
2367 + save_LDFLAGS="$LDFLAGS"
2368 + LDFLAGS="$LDFLAGS $3"
2369 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
2370 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2371 + # The linker can only warn and ignore the option if not recognized
2372 + # So say no if there are warnings
2373 + if test -s conftest.err; then
2374 + # Append any errors to the config.log.
2375 + cat conftest.err 1>&AS_MESSAGE_LOG_FD
2376 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
2377 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2378 + if diff conftest.exp conftest.er2 >/dev/null; then
2379 + $2=yes
2380 + fi
2381 + else
2382 + $2=yes
2383 + fi
2384 + fi
2385 + $rm conftest*
2386 + LDFLAGS="$save_LDFLAGS"
2389 +if test x"[$]$2" = xyes; then
2390 + ifelse([$4], , :, [$4])
2391 +else
2392 + ifelse([$5], , :, [$5])
2394 +])# AC_LIBTOOL_LINKER_OPTION
2397 +# AC_LIBTOOL_SYS_MAX_CMD_LEN
2398 +# --------------------------
2399 +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
2400 +[# find the maximum length of command line arguments
2401 +AC_MSG_CHECKING([the maximum length of command line arguments])
2402 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2403 + i=0
2404 + teststring="ABCD"
2406 + case $build_os in
2407 + msdosdjgpp*)
2408 + # On DJGPP, this test can blow up pretty badly due to problems in libc
2409 + # (any single argument exceeding 2000 bytes causes a buffer overrun
2410 + # during glob expansion). Even if it were fixed, the result of this
2411 + # check would be larger than it should be.
2412 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
2413 + ;;
2415 + gnu*)
2416 + # Under GNU Hurd, this test is not required because there is
2417 + # no limit to the length of command line arguments.
2418 + # Libtool will interpret -1 as no limit whatsoever
2419 + lt_cv_sys_max_cmd_len=-1;
2420 + ;;
2422 + cygwin* | mingw*)
2423 + # On Win9x/ME, this test blows up -- it succeeds, but takes
2424 + # about 5 minutes as the teststring grows exponentially.
2425 + # Worse, since 9x/ME are not pre-emptively multitasking,
2426 + # you end up with a "frozen" computer, even though with patience
2427 + # the test eventually succeeds (with a max line length of 256k).
2428 + # Instead, let's just punt: use the minimum linelength reported by
2429 + # all of the supported platforms: 8192 (on NT/2K/XP).
2430 + lt_cv_sys_max_cmd_len=8192;
2431 + ;;
2433 + amigaos*)
2434 + # On AmigaOS with pdksh, this test takes hours, literally.
2435 + # So we just punt and use a minimum line length of 8192.
2436 + lt_cv_sys_max_cmd_len=8192;
2437 + ;;
2439 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2440 + # This has been around since 386BSD, at least. Likely further.
2441 + if test -x /sbin/sysctl; then
2442 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2443 + elif test -x /usr/sbin/sysctl; then
2444 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2445 + else
2446 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2447 + fi
2448 + # And add a safety zone
2449 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2450 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2451 + ;;
2453 + interix*)
2454 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
2455 + lt_cv_sys_max_cmd_len=196608
2456 + ;;
2458 + osf*)
2459 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2460 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2461 + # nice to cause kernel panics so lets avoid the loop below.
2462 + # First set a reasonable default.
2463 + lt_cv_sys_max_cmd_len=16384
2465 + if test -x /sbin/sysconfig; then
2466 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2467 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
2468 + esac
2469 + fi
2470 + ;;
2471 + sco3.2v5*)
2472 + lt_cv_sys_max_cmd_len=102400
2473 + ;;
2474 + sysv5* | sco5v6* | sysv4.2uw2*)
2475 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2476 + if test -n "$kargmax"; then
2477 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2478 + else
2479 + lt_cv_sys_max_cmd_len=32768
2480 + fi
2481 + ;;
2482 + *)
2483 + # If test is not a shell built-in, we'll probably end up computing a
2484 + # maximum length that is only half of the actual maximum length, but
2485 + # we can't tell.
2486 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2487 + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
2488 + = "XX$teststring") >/dev/null 2>&1 &&
2489 + new_result=`expr "X$teststring" : ".*" 2>&1` &&
2490 + lt_cv_sys_max_cmd_len=$new_result &&
2491 + test $i != 17 # 1/2 MB should be enough
2492 + do
2493 + i=`expr $i + 1`
2494 + teststring=$teststring$teststring
2495 + done
2496 + teststring=
2497 + # Add a significant safety factor because C++ compilers can tack on massive
2498 + # amounts of additional arguments before passing them to the linker.
2499 + # It appears as though 1/2 is a usable value.
2500 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2501 + ;;
2502 + esac
2504 +if test -n $lt_cv_sys_max_cmd_len ; then
2505 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2506 +else
2507 + AC_MSG_RESULT(none)
2509 +])# AC_LIBTOOL_SYS_MAX_CMD_LEN
2512 +# _LT_AC_CHECK_DLFCN
2513 +# ------------------
2514 +AC_DEFUN([_LT_AC_CHECK_DLFCN],
2515 +[AC_CHECK_HEADERS(dlfcn.h)dnl
2516 +])# _LT_AC_CHECK_DLFCN
2519 +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2520 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2521 +# ---------------------------------------------------------------------
2522 +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
2523 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
2524 +if test "$cross_compiling" = yes; then :
2525 + [$4]
2526 +else
2527 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2528 + lt_status=$lt_dlunknown
2529 + cat > conftest.$ac_ext <<EOF
2530 +[#line __oline__ "configure"
2531 +#include "confdefs.h"
2533 +#if HAVE_DLFCN_H
2534 +#include <dlfcn.h>
2535 +#endif
2537 +#include <stdio.h>
2539 +#ifdef RTLD_GLOBAL
2540 +# define LT_DLGLOBAL RTLD_GLOBAL
2541 +#else
2542 +# ifdef DL_GLOBAL
2543 +# define LT_DLGLOBAL DL_GLOBAL
2544 +# else
2545 +# define LT_DLGLOBAL 0
2546 +# endif
2547 +#endif
2549 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2550 + find out it does not work in some platform. */
2551 +#ifndef LT_DLLAZY_OR_NOW
2552 +# ifdef RTLD_LAZY
2553 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
2554 +# else
2555 +# ifdef DL_LAZY
2556 +# define LT_DLLAZY_OR_NOW DL_LAZY
2557 +# else
2558 +# ifdef RTLD_NOW
2559 +# define LT_DLLAZY_OR_NOW RTLD_NOW
2560 +# else
2561 +# ifdef DL_NOW
2562 +# define LT_DLLAZY_OR_NOW DL_NOW
2563 +# else
2564 +# define LT_DLLAZY_OR_NOW 0
2565 +# endif
2566 +# endif
2567 +# endif
2568 +# endif
2569 +#endif
2571 +#ifdef __cplusplus
2572 +extern "C" void exit (int);
2573 +#endif
2575 +void fnord() { int i=42;}
2576 +int main ()
2578 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2579 + int status = $lt_dlunknown;
2581 + if (self)
2583 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2584 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2585 + /* dlclose (self); */
2587 + else
2588 + puts (dlerror ());
2590 + exit (status);
2592 +EOF
2593 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2594 + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2595 + lt_status=$?
2596 + case x$lt_status in
2597 + x$lt_dlno_uscore) $1 ;;
2598 + x$lt_dlneed_uscore) $2 ;;
2599 + x$lt_dlunknown|x*) $3 ;;
2600 + esac
2601 + else :
2602 + # compilation failed
2603 + $3
2604 + fi
2606 +rm -fr conftest*
2607 +])# _LT_AC_TRY_DLOPEN_SELF
2610 +# AC_LIBTOOL_DLOPEN_SELF
2611 +# ----------------------
2612 +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
2613 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
2614 +if test "x$enable_dlopen" != xyes; then
2615 + enable_dlopen=unknown
2616 + enable_dlopen_self=unknown
2617 + enable_dlopen_self_static=unknown
2618 +else
2619 + lt_cv_dlopen=no
2620 + lt_cv_dlopen_libs=
2622 + case $host_os in
2623 + beos*)
2624 + lt_cv_dlopen="load_add_on"
2625 + lt_cv_dlopen_libs=
2626 + lt_cv_dlopen_self=yes
2627 + ;;
2629 + mingw* | pw32*)
2630 + lt_cv_dlopen="LoadLibrary"
2631 + lt_cv_dlopen_libs=
2632 + ;;
2634 + cygwin*)
2635 + lt_cv_dlopen="dlopen"
2636 + lt_cv_dlopen_libs=
2637 + ;;
2639 + darwin*)
2640 + # if libdl is installed we need to link against it
2641 + AC_CHECK_LIB([dl], [dlopen],
2642 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2643 + lt_cv_dlopen="dyld"
2644 + lt_cv_dlopen_libs=
2645 + lt_cv_dlopen_self=yes
2646 + ])
2647 + ;;
2649 + *)
2650 + AC_CHECK_FUNC([shl_load],
2651 + [lt_cv_dlopen="shl_load"],
2652 + [AC_CHECK_LIB([dld], [shl_load],
2653 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
2654 + [AC_CHECK_FUNC([dlopen],
2655 + [lt_cv_dlopen="dlopen"],
2656 + [AC_CHECK_LIB([dl], [dlopen],
2657 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2658 + [AC_CHECK_LIB([svld], [dlopen],
2659 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2660 + [AC_CHECK_LIB([dld], [dld_link],
2661 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
2662 + ])
2663 + ])
2664 + ])
2665 + ])
2666 + ])
2667 + ;;
2668 + esac
2670 + if test "x$lt_cv_dlopen" != xno; then
2671 + enable_dlopen=yes
2672 + else
2673 + enable_dlopen=no
2674 + fi
2676 + case $lt_cv_dlopen in
2677 + dlopen)
2678 + save_CPPFLAGS="$CPPFLAGS"
2679 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2681 + save_LDFLAGS="$LDFLAGS"
2682 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2684 + save_LIBS="$LIBS"
2685 + LIBS="$lt_cv_dlopen_libs $LIBS"
2687 + AC_CACHE_CHECK([whether a program can dlopen itself],
2688 + lt_cv_dlopen_self, [dnl
2689 + _LT_AC_TRY_DLOPEN_SELF(
2690 + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2691 + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2692 + ])
2694 + if test "x$lt_cv_dlopen_self" = xyes; then
2695 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2696 + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2697 + lt_cv_dlopen_self_static, [dnl
2698 + _LT_AC_TRY_DLOPEN_SELF(
2699 + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2700 + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2701 + ])
2702 + fi
2704 + CPPFLAGS="$save_CPPFLAGS"
2705 + LDFLAGS="$save_LDFLAGS"
2706 + LIBS="$save_LIBS"
2707 + ;;
2708 + esac
2710 + case $lt_cv_dlopen_self in
2711 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2712 + *) enable_dlopen_self=unknown ;;
2713 + esac
2715 + case $lt_cv_dlopen_self_static in
2716 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2717 + *) enable_dlopen_self_static=unknown ;;
2718 + esac
2720 +])# AC_LIBTOOL_DLOPEN_SELF
2723 +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
2724 +# ---------------------------------
2725 +# Check to see if options -c and -o are simultaneously supported by compiler
2726 +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
2727 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
2728 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2729 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2730 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2731 + $rm -r conftest 2>/dev/null
2732 + mkdir conftest
2733 + cd conftest
2734 + mkdir out
2735 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2737 + lt_compiler_flag="-o out/conftest2.$ac_objext"
2738 + # Insert the option either (1) after the last *FLAGS variable, or
2739 + # (2) before a word containing "conftest.", or (3) at the end.
2740 + # Note that $ac_compile itself does not contain backslashes and begins
2741 + # with a dollar sign (not a hyphen), so the echo should work correctly.
2742 + lt_compile=`echo "$ac_compile" | $SED \
2743 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2744 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2745 + -e 's:$: $lt_compiler_flag:'`
2746 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2747 + (eval "$lt_compile" 2>out/conftest.err)
2748 + ac_status=$?
2749 + cat out/conftest.err >&AS_MESSAGE_LOG_FD
2750 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2751 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
2752 + then
2753 + # The compiler can only warn and ignore the option if not recognized
2754 + # So say no if there are warnings
2755 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2756 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2757 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2758 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2759 + fi
2760 + fi
2761 + chmod u+w . 2>&AS_MESSAGE_LOG_FD
2762 + $rm conftest*
2763 + # SGI C++ compiler will create directory out/ii_files/ for
2764 + # template instantiation
2765 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
2766 + $rm out/* && rmdir out
2767 + cd ..
2768 + rmdir conftest
2769 + $rm conftest*
2771 +])# AC_LIBTOOL_PROG_CC_C_O
2774 +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
2775 +# -----------------------------------------
2776 +# Check to see if we can do hard links to lock some files if needed
2777 +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
2778 +[AC_REQUIRE([_LT_AC_LOCK])dnl
2780 +hard_links="nottested"
2781 +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2782 + # do not overwrite the value of need_locks provided by the user
2783 + AC_MSG_CHECKING([if we can lock with hard links])
2784 + hard_links=yes
2785 + $rm conftest*
2786 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
2787 + touch conftest.a
2788 + ln conftest.a conftest.b 2>&5 || hard_links=no
2789 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
2790 + AC_MSG_RESULT([$hard_links])
2791 + if test "$hard_links" = no; then
2792 + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2793 + need_locks=warn
2794 + fi
2795 +else
2796 + need_locks=no
2798 +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
2801 +# AC_LIBTOOL_OBJDIR
2802 +# -----------------
2803 +AC_DEFUN([AC_LIBTOOL_OBJDIR],
2804 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2805 +[rm -f .libs 2>/dev/null
2806 +mkdir .libs 2>/dev/null
2807 +if test -d .libs; then
2808 + lt_cv_objdir=.libs
2809 +else
2810 + # MS-DOS does not allow filenames that begin with a dot.
2811 + lt_cv_objdir=_libs
2813 +rmdir .libs 2>/dev/null])
2814 +objdir=$lt_cv_objdir
2815 +])# AC_LIBTOOL_OBJDIR
2818 +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2819 +# ----------------------------------------------
2820 +# Check hardcoding attributes.
2821 +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
2822 +[AC_MSG_CHECKING([how to hardcode library paths into programs])
2823 +_LT_AC_TAGVAR(hardcode_action, $1)=
2824 +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2825 + test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
2826 + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2828 + # We can hardcode non-existant directories.
2829 + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2830 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
2831 + # have to relink, otherwise we might link with an installed library
2832 + # when we should be linking with a yet-to-be-installed one
2833 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2834 + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2835 + # Linking always hardcodes the temporary library directory.
2836 + _LT_AC_TAGVAR(hardcode_action, $1)=relink
2837 + else
2838 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
2839 + _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2840 + fi
2841 +else
2842 + # We cannot hardcode anything, or else we can only hardcode existing
2843 + # directories.
2844 + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2846 +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2848 +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2849 + # Fast installation is not supported
2850 + enable_fast_install=no
2851 +elif test "$shlibpath_overrides_runpath" = yes ||
2852 + test "$enable_shared" = no; then
2853 + # Fast installation is not necessary
2854 + enable_fast_install=needless
2856 +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2859 +# AC_LIBTOOL_SYS_LIB_STRIP
2860 +# ------------------------
2861 +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2862 +[striplib=
2863 +old_striplib=
2864 +AC_MSG_CHECKING([whether stripping libraries is possible])
2865 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2866 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2867 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2868 + AC_MSG_RESULT([yes])
2869 +else
2870 +# FIXME - insert some real tests, host_os isn't really good enough
2871 + case $host_os in
2872 + darwin*)
2873 + if test -n "$STRIP" ; then
2874 + striplib="$STRIP -x"
2875 + AC_MSG_RESULT([yes])
2876 + else
2877 + AC_MSG_RESULT([no])
2879 + ;;
2880 + *)
2881 + AC_MSG_RESULT([no])
2882 + ;;
2883 + esac
2885 +])# AC_LIBTOOL_SYS_LIB_STRIP
2888 +# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2889 +# -----------------------------
2890 +# PORTME Fill in your ld.so characteristics
2891 +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2892 +[AC_MSG_CHECKING([dynamic linker characteristics])
2893 +library_names_spec=
2894 +libname_spec='lib$name'
2895 +soname_spec=
2896 +shrext_cmds=".so"
2897 +postinstall_cmds=
2898 +postuninstall_cmds=
2899 +finish_cmds=
2900 +finish_eval=
2901 +shlibpath_var=
2902 +shlibpath_overrides_runpath=unknown
2903 +version_type=none
2904 +dynamic_linker="$host_os ld.so"
2905 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
2906 +if test "$GCC" = yes; then
2907 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2908 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
2909 + # if the path contains ";" then we assume it to be the separator
2910 + # otherwise default to the standard path separator (i.e. ":") - it is
2911 + # assumed that no part of a normal pathname contains ";" but that should
2912 + # okay in the real world where ";" in dirpaths is itself problematic.
2913 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2914 + else
2915 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2916 + fi
2917 +else
2918 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2920 +need_lib_prefix=unknown
2921 +hardcode_into_libs=no
2923 +# when you set need_version to no, make sure it does not cause -set_version
2924 +# flags to be left without arguments
2925 +need_version=unknown
2927 +case $host_os in
2928 +aix3*)
2929 + version_type=linux
2930 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2931 + shlibpath_var=LIBPATH
2933 + # AIX 3 has no versioning support, so we append a major version to the name.
2934 + soname_spec='${libname}${release}${shared_ext}$major'
2935 + ;;
2937 +aix4* | aix5*)
2938 + version_type=linux
2939 + need_lib_prefix=no
2940 + need_version=no
2941 + hardcode_into_libs=yes
2942 + if test "$host_cpu" = ia64; then
2943 + # AIX 5 supports IA64
2944 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2945 + shlibpath_var=LD_LIBRARY_PATH
2946 + else
2947 + # With GCC up to 2.95.x, collect2 would create an import file
2948 + # for dependence libraries. The import file would start with
2949 + # the line `#! .'. This would cause the generated library to
2950 + # depend on `.', always an invalid library. This was fixed in
2951 + # development snapshots of GCC prior to 3.0.
2952 + case $host_os in
2953 + aix4 | aix4.[[01]] | aix4.[[01]].*)
2954 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2955 + echo ' yes '
2956 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2958 + else
2959 + can_build_shared=no
2960 + fi
2961 + ;;
2962 + esac
2963 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2964 + # soname into executable. Probably we can add versioning support to
2965 + # collect2, so additional links can be useful in future.
2966 + if test "$aix_use_runtimelinking" = yes; then
2967 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2968 + # instead of lib<name>.a to let people know that these are not
2969 + # typical AIX shared libraries.
2970 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2971 + else
2972 + # We preserve .a as extension for shared libraries through AIX4.2
2973 + # and later when we are not doing run time linking.
2974 + library_names_spec='${libname}${release}.a $libname.a'
2975 + soname_spec='${libname}${release}${shared_ext}$major'
2976 + fi
2977 + shlibpath_var=LIBPATH
2978 + fi
2979 + ;;
2981 +amigaos*)
2982 + library_names_spec='$libname.ixlibrary $libname.a'
2983 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
2984 + 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'
2985 + ;;
2987 +beos*)
2988 + library_names_spec='${libname}${shared_ext}'
2989 + dynamic_linker="$host_os ld.so"
2990 + shlibpath_var=LIBRARY_PATH
2991 + ;;
2993 +bsdi[[45]]*)
2994 + version_type=linux
2995 + need_version=no
2996 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2997 + soname_spec='${libname}${release}${shared_ext}$major'
2998 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2999 + shlibpath_var=LD_LIBRARY_PATH
3000 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3001 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3002 + # the default ld.so.conf also contains /usr/contrib/lib and
3003 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3004 + # libtool to hard-code these into programs
3005 + ;;
3007 +cygwin* | mingw* | pw32*)
3008 + version_type=windows
3009 + shrext_cmds=".dll"
3010 + need_version=no
3011 + need_lib_prefix=no
3013 + case $GCC,$host_os in
3014 + yes,cygwin* | yes,mingw* | yes,pw32*)
3015 + library_names_spec='$libname.dll.a'
3016 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
3017 + postinstall_cmds='base_file=`basename \${file}`~
3018 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
3019 + dldir=$destdir/`dirname \$dlpath`~
3020 + test -d \$dldir || mkdir -p \$dldir~
3021 + $install_prog $dir/$dlname \$dldir/$dlname~
3022 + chmod a+x \$dldir/$dlname'
3023 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3024 + dlpath=$dir/\$dldll~
3025 + $rm \$dlpath'
3026 + shlibpath_overrides_runpath=yes
3028 + case $host_os in
3029 + cygwin*)
3030 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
3031 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3032 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
3033 + ;;
3034 + mingw*)
3035 + # MinGW DLLs use traditional 'lib' prefix
3036 + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3037 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3038 + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
3039 + # It is most probably a Windows format PATH printed by
3040 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
3041 + # path with ; separators, and with drive letters. We can handle the
3042 + # drive letters (cygwin fileutils understands them), so leave them,
3043 + # especially as we might pass files found there to a mingw objdump,
3044 + # which wouldn't understand a cygwinified path. Ahh.
3045 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3046 + else
3047 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3048 + fi
3049 + ;;
3050 + pw32*)
3051 + # pw32 DLLs use 'pw' prefix rather than 'lib'
3052 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3053 + ;;
3054 + esac
3055 + ;;
3057 + *)
3058 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3059 + ;;
3060 + esac
3061 + dynamic_linker='Win32 ld.exe'
3062 + # FIXME: first we should search . and the directory the executable is in
3063 + shlibpath_var=PATH
3064 + ;;
3066 +darwin* | rhapsody*)
3067 + dynamic_linker="$host_os dyld"
3068 + version_type=darwin
3069 + need_lib_prefix=no
3070 + need_version=no
3071 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3072 + soname_spec='${libname}${release}${major}$shared_ext'
3073 + shlibpath_overrides_runpath=yes
3074 + shlibpath_var=DYLD_LIBRARY_PATH
3075 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
3076 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
3077 + if test "$GCC" = yes; then
3078 + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
3079 + else
3080 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
3081 + fi
3082 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3083 + ;;
3085 +dgux*)
3086 + version_type=linux
3087 + need_lib_prefix=no
3088 + need_version=no
3089 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3090 + soname_spec='${libname}${release}${shared_ext}$major'
3091 + shlibpath_var=LD_LIBRARY_PATH
3092 + ;;
3094 +freebsd1*)
3095 + dynamic_linker=no
3096 + ;;
3098 +kfreebsd*-gnu)
3099 + version_type=linux
3100 + need_lib_prefix=no
3101 + need_version=no
3102 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3103 + soname_spec='${libname}${release}${shared_ext}$major'
3104 + shlibpath_var=LD_LIBRARY_PATH
3105 + shlibpath_overrides_runpath=no
3106 + hardcode_into_libs=yes
3107 + dynamic_linker='GNU ld.so'
3108 + ;;
3110 +freebsd* | dragonfly*)
3111 + # DragonFly does not have aout. When/if they implement a new
3112 + # versioning mechanism, adjust this.
3113 + if test -x /usr/bin/objformat; then
3114 + objformat=`/usr/bin/objformat`
3115 + else
3116 + case $host_os in
3117 + freebsd[[123]]*) objformat=aout ;;
3118 + *) objformat=elf ;;
3119 + esac
3120 + fi
3121 + version_type=freebsd-$objformat
3122 + case $version_type in
3123 + freebsd-elf*)
3124 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3125 + need_version=no
3126 + need_lib_prefix=no
3127 + ;;
3128 + freebsd-*)
3129 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3130 + need_version=yes
3131 + ;;
3132 + esac
3133 + shlibpath_var=LD_LIBRARY_PATH
3134 + case $host_os in
3135 + freebsd2*)
3136 + shlibpath_overrides_runpath=yes
3137 + ;;
3138 + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3139 + shlibpath_overrides_runpath=yes
3140 + hardcode_into_libs=yes
3141 + ;;
3142 + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
3143 + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
3144 + shlibpath_overrides_runpath=no
3145 + hardcode_into_libs=yes
3146 + ;;
3147 + freebsd*) # from 4.6 on
3148 + shlibpath_overrides_runpath=yes
3149 + hardcode_into_libs=yes
3150 + ;;
3151 + esac
3152 + ;;
3154 +gnu*)
3155 + version_type=linux
3156 + need_lib_prefix=no
3157 + need_version=no
3158 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3159 + soname_spec='${libname}${release}${shared_ext}$major'
3160 + shlibpath_var=LD_LIBRARY_PATH
3161 + hardcode_into_libs=yes
3162 + ;;
3164 +hpux9* | hpux10* | hpux11*)
3165 + # Give a soname corresponding to the major version so that dld.sl refuses to
3166 + # link against other versions.
3167 + version_type=sunos
3168 + need_lib_prefix=no
3169 + need_version=no
3170 + case $host_cpu in
3171 + ia64*)
3172 + shrext_cmds='.so'
3173 + hardcode_into_libs=yes
3174 + dynamic_linker="$host_os dld.so"
3175 + shlibpath_var=LD_LIBRARY_PATH
3176 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3177 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3178 + soname_spec='${libname}${release}${shared_ext}$major'
3179 + if test "X$HPUX_IA64_MODE" = X32; then
3180 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3181 + else
3182 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3183 + fi
3184 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3185 + ;;
3186 + hppa*64*)
3187 + shrext_cmds='.sl'
3188 + hardcode_into_libs=yes
3189 + dynamic_linker="$host_os dld.sl"
3190 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3191 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3192 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3193 + soname_spec='${libname}${release}${shared_ext}$major'
3194 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3195 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3196 + ;;
3197 + *)
3198 + shrext_cmds='.sl'
3199 + dynamic_linker="$host_os dld.sl"
3200 + shlibpath_var=SHLIB_PATH
3201 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3202 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3203 + soname_spec='${libname}${release}${shared_ext}$major'
3204 + ;;
3205 + esac
3206 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
3207 + postinstall_cmds='chmod 555 $lib'
3208 + ;;
3210 +interix3*)
3211 + version_type=linux
3212 + need_lib_prefix=no
3213 + need_version=no
3214 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3215 + soname_spec='${libname}${release}${shared_ext}$major'
3216 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
3217 + shlibpath_var=LD_LIBRARY_PATH
3218 + shlibpath_overrides_runpath=no
3219 + hardcode_into_libs=yes
3220 + ;;
3222 +irix5* | irix6* | nonstopux*)
3223 + case $host_os in
3224 + nonstopux*) version_type=nonstopux ;;
3225 + *)
3226 + if test "$lt_cv_prog_gnu_ld" = yes; then
3227 + version_type=linux
3228 + else
3229 + version_type=irix
3230 + fi ;;
3231 + esac
3232 + need_lib_prefix=no
3233 + need_version=no
3234 + soname_spec='${libname}${release}${shared_ext}$major'
3235 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3236 + case $host_os in
3237 + irix5* | nonstopux*)
3238 + libsuff= shlibsuff=
3239 + ;;
3240 + *)
3241 + case $LD in # libtool.m4 will add one of these switches to LD
3242 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3243 + libsuff= shlibsuff= libmagic=32-bit;;
3244 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3245 + libsuff=32 shlibsuff=N32 libmagic=N32;;
3246 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3247 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
3248 + *) libsuff= shlibsuff= libmagic=never-match;;
3249 + esac
3250 + ;;
3251 + esac
3252 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3253 + shlibpath_overrides_runpath=no
3254 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3255 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3256 + hardcode_into_libs=yes
3257 + ;;
3259 +# No shared lib support for Linux oldld, aout, or coff.
3260 +linux*oldld* | linux*aout* | linux*coff*)
3261 + dynamic_linker=no
3262 + ;;
3264 +# This must be Linux ELF.
3265 +linux*)
3266 + version_type=linux
3267 + need_lib_prefix=no
3268 + need_version=no
3269 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3270 + soname_spec='${libname}${release}${shared_ext}$major'
3271 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3272 + shlibpath_var=LD_LIBRARY_PATH
3273 + shlibpath_overrides_runpath=no
3274 + # This implies no fast_install, which is unacceptable.
3275 + # Some rework will be needed to allow for fast_install
3276 + # before this can be enabled.
3277 + hardcode_into_libs=yes
3279 + # Append ld.so.conf contents to the search path
3280 + if test -f /etc/ld.so.conf; then
3281 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
3282 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3283 + fi
3285 + # We used to test for /lib/ld.so.1 and disable shared libraries on
3286 + # powerpc, because MkLinux only supported shared libraries with the
3287 + # GNU dynamic linker. Since this was broken with cross compilers,
3288 + # most powerpc-linux boxes support dynamic linking these days and
3289 + # people can always --disable-shared, the test was removed, and we
3290 + # assume the GNU/Linux dynamic linker is in use.
3291 + dynamic_linker='GNU/Linux ld.so'
3292 + ;;
3294 +netbsdelf*-gnu)
3295 + version_type=linux
3296 + need_lib_prefix=no
3297 + need_version=no
3298 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3299 + soname_spec='${libname}${release}${shared_ext}$major'
3300 + shlibpath_var=LD_LIBRARY_PATH
3301 + shlibpath_overrides_runpath=no
3302 + hardcode_into_libs=yes
3303 + dynamic_linker='NetBSD ld.elf_so'
3304 + ;;
3306 +knetbsd*-gnu)
3307 + version_type=linux
3308 + need_lib_prefix=no
3309 + need_version=no
3310 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3311 + soname_spec='${libname}${release}${shared_ext}$major'
3312 + shlibpath_var=LD_LIBRARY_PATH
3313 + shlibpath_overrides_runpath=no
3314 + hardcode_into_libs=yes
3315 + dynamic_linker='GNU ld.so'
3316 + ;;
3318 +netbsd*)
3319 + version_type=sunos
3320 + need_lib_prefix=no
3321 + need_version=no
3322 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3323 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3324 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3325 + dynamic_linker='NetBSD (a.out) ld.so'
3326 + else
3327 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3328 + soname_spec='${libname}${release}${shared_ext}$major'
3329 + dynamic_linker='NetBSD ld.elf_so'
3330 + fi
3331 + shlibpath_var=LD_LIBRARY_PATH
3332 + shlibpath_overrides_runpath=yes
3333 + hardcode_into_libs=yes
3334 + ;;
3336 +newsos6)
3337 + version_type=linux
3338 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3339 + shlibpath_var=LD_LIBRARY_PATH
3340 + shlibpath_overrides_runpath=yes
3341 + ;;
3343 +nto-qnx*)
3344 + version_type=linux
3345 + need_lib_prefix=no
3346 + need_version=no
3347 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3348 + soname_spec='${libname}${release}${shared_ext}$major'
3349 + shlibpath_var=LD_LIBRARY_PATH
3350 + shlibpath_overrides_runpath=yes
3351 + ;;
3353 +openbsd*)
3354 + version_type=sunos
3355 + sys_lib_dlsearch_path_spec="/usr/lib"
3356 + need_lib_prefix=no
3357 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3358 + case $host_os in
3359 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3360 + *) need_version=no ;;
3361 + esac
3362 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3363 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3364 + shlibpath_var=LD_LIBRARY_PATH
3365 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3366 + case $host_os in
3367 + openbsd2.[[89]] | openbsd2.[[89]].*)
3368 + shlibpath_overrides_runpath=no
3369 + ;;
3370 + *)
3371 + shlibpath_overrides_runpath=yes
3372 + ;;
3373 + esac
3374 + else
3375 + shlibpath_overrides_runpath=yes
3376 + fi
3377 + ;;
3379 +os2*)
3380 + libname_spec='$name'
3381 + shrext_cmds=".dll"
3382 + need_lib_prefix=no
3383 + library_names_spec='$libname${shared_ext} $libname.a'
3384 + dynamic_linker='OS/2 ld.exe'
3385 + shlibpath_var=LIBPATH
3386 + ;;
3388 +osf3* | osf4* | osf5*)
3389 + version_type=osf
3390 + need_lib_prefix=no
3391 + need_version=no
3392 + soname_spec='${libname}${release}${shared_ext}$major'
3393 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3394 + shlibpath_var=LD_LIBRARY_PATH
3395 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3396 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3397 + ;;
3399 +solaris*)
3400 + version_type=linux
3401 + need_lib_prefix=no
3402 + need_version=no
3403 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3404 + soname_spec='${libname}${release}${shared_ext}$major'
3405 + shlibpath_var=LD_LIBRARY_PATH
3406 + shlibpath_overrides_runpath=yes
3407 + hardcode_into_libs=yes
3408 + # ldd complains unless libraries are executable
3409 + postinstall_cmds='chmod +x $lib'
3410 + ;;
3412 +sunos4*)
3413 + version_type=sunos
3414 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3415 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3416 + shlibpath_var=LD_LIBRARY_PATH
3417 + shlibpath_overrides_runpath=yes
3418 + if test "$with_gnu_ld" = yes; then
3419 + need_lib_prefix=no
3420 + fi
3421 + need_version=yes
3422 + ;;
3424 +sysv4 | sysv4.3*)
3425 + version_type=linux
3426 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3427 + soname_spec='${libname}${release}${shared_ext}$major'
3428 + shlibpath_var=LD_LIBRARY_PATH
3429 + case $host_vendor in
3430 + sni)
3431 + shlibpath_overrides_runpath=no
3432 + need_lib_prefix=no
3433 + export_dynamic_flag_spec='${wl}-Blargedynsym'
3434 + runpath_var=LD_RUN_PATH
3435 + ;;
3436 + siemens)
3437 + need_lib_prefix=no
3438 + ;;
3439 + motorola)
3440 + need_lib_prefix=no
3441 + need_version=no
3442 + shlibpath_overrides_runpath=no
3443 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3444 + ;;
3445 + esac
3446 + ;;
3448 +sysv4*MP*)
3449 + if test -d /usr/nec ;then
3450 + version_type=linux
3451 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3452 + soname_spec='$libname${shared_ext}.$major'
3453 + shlibpath_var=LD_LIBRARY_PATH
3454 + fi
3455 + ;;
3457 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3458 + version_type=freebsd-elf
3459 + need_lib_prefix=no
3460 + need_version=no
3461 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3462 + soname_spec='${libname}${release}${shared_ext}$major'
3463 + shlibpath_var=LD_LIBRARY_PATH
3464 + hardcode_into_libs=yes
3465 + if test "$with_gnu_ld" = yes; then
3466 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3467 + shlibpath_overrides_runpath=no
3468 + else
3469 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3470 + shlibpath_overrides_runpath=yes
3471 + case $host_os in
3472 + sco3.2v5*)
3473 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3474 + ;;
3475 + esac
3476 + fi
3477 + sys_lib_dlsearch_path_spec='/usr/lib'
3478 + ;;
3480 +uts4*)
3481 + version_type=linux
3482 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3483 + soname_spec='${libname}${release}${shared_ext}$major'
3484 + shlibpath_var=LD_LIBRARY_PATH
3485 + ;;
3488 + dynamic_linker=no
3489 + ;;
3490 +esac
3491 +AC_MSG_RESULT([$dynamic_linker])
3492 +test "$dynamic_linker" = no && can_build_shared=no
3494 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3495 +if test "$GCC" = yes; then
3496 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3498 +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3501 +# _LT_AC_TAGCONFIG
3502 +# ----------------
3503 +AC_DEFUN([_LT_AC_TAGCONFIG],
3504 +[AC_ARG_WITH([tags],
3505 + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
3506 + [include additional configurations @<:@automatic@:>@])],
3507 + [tagnames="$withval"])
3509 +if test -f "$ltmain" && test -n "$tagnames"; then
3510 + if test ! -f "${ofile}"; then
3511 + AC_MSG_WARN([output file `$ofile' does not exist])
3512 + fi
3514 + if test -z "$LTCC"; then
3515 + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
3516 + if test -z "$LTCC"; then
3517 + AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
3518 + else
3519 + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
3520 + fi
3521 + fi
3522 + if test -z "$LTCFLAGS"; then
3523 + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
3524 + fi
3526 + # Extract list of available tagged configurations in $ofile.
3527 + # Note that this assumes the entire list is on one line.
3528 + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
3530 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3531 + for tagname in $tagnames; do
3532 + IFS="$lt_save_ifs"
3533 + # Check whether tagname contains only valid characters
3534 + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
3535 + "") ;;
3536 + *) AC_MSG_ERROR([invalid tag name: $tagname])
3537 + ;;
3538 + esac
3540 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3541 + then
3542 + AC_MSG_ERROR([tag name \"$tagname\" already exists])
3543 + fi
3545 + # Update the list of available tags.
3546 + if test -n "$tagname"; then
3547 + echo appending configuration tag \"$tagname\" to $ofile
3549 + case $tagname in
3550 + CXX)
3551 + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3552 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3553 + (test "X$CXX" != "Xg++"))) ; then
3554 + AC_LIBTOOL_LANG_CXX_CONFIG
3555 + else
3556 + tagname=""
3557 + fi
3558 + ;;
3560 + F77)
3561 + if test -n "$F77" && test "X$F77" != "Xno"; then
3562 + AC_LIBTOOL_LANG_F77_CONFIG
3563 + else
3564 + tagname=""
3565 + fi
3566 + ;;
3568 + GCJ)
3569 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3570 + AC_LIBTOOL_LANG_GCJ_CONFIG
3571 + else
3572 + tagname=""
3573 + fi
3574 + ;;
3576 + RC)
3577 + AC_LIBTOOL_LANG_RC_CONFIG
3578 + ;;
3580 + *)
3581 + AC_MSG_ERROR([Unsupported tag name: $tagname])
3582 + ;;
3583 + esac
3585 + # Append the new tag name to the list of available tags.
3586 + if test -n "$tagname" ; then
3587 + available_tags="$available_tags $tagname"
3588 + fi
3589 + fi
3590 + done
3591 + IFS="$lt_save_ifs"
3593 + # Now substitute the updated list of available tags.
3594 + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
3595 + mv "${ofile}T" "$ofile"
3596 + chmod +x "$ofile"
3597 + else
3598 + rm -f "${ofile}T"
3599 + AC_MSG_ERROR([unable to update list of available tagged configurations.])
3600 + fi
3602 +])# _LT_AC_TAGCONFIG
3605 +# AC_LIBTOOL_DLOPEN
3606 +# -----------------
3607 +# enable checks for dlopen support
3608 +AC_DEFUN([AC_LIBTOOL_DLOPEN],
3609 + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3610 +])# AC_LIBTOOL_DLOPEN
3613 +# AC_LIBTOOL_WIN32_DLL
3614 +# --------------------
3615 +# declare package support for building win32 DLLs
3616 +AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
3617 +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
3618 +])# AC_LIBTOOL_WIN32_DLL
3621 +# AC_ENABLE_SHARED([DEFAULT])
3622 +# ---------------------------
3623 +# implement the --enable-shared flag
3624 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3625 +AC_DEFUN([AC_ENABLE_SHARED],
3626 +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3627 +AC_ARG_ENABLE([shared],
3628 + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
3629 + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
3630 + [p=${PACKAGE-default}
3631 + case $enableval in
3632 + yes) enable_shared=yes ;;
3633 + no) enable_shared=no ;;
3634 + *)
3635 + enable_shared=no
3636 + # Look at the argument we got. We use all the common list separators.
3637 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3638 + for pkg in $enableval; do
3639 + IFS="$lt_save_ifs"
3640 + if test "X$pkg" = "X$p"; then
3641 + enable_shared=yes
3642 + fi
3643 + done
3644 + IFS="$lt_save_ifs"
3645 + ;;
3646 + esac],
3647 + [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
3648 +])# AC_ENABLE_SHARED
3651 +# AC_DISABLE_SHARED
3652 +# -----------------
3653 +# set the default shared flag to --disable-shared
3654 +AC_DEFUN([AC_DISABLE_SHARED],
3655 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3656 +AC_ENABLE_SHARED(no)
3657 +])# AC_DISABLE_SHARED
3660 +# AC_ENABLE_STATIC([DEFAULT])
3661 +# ---------------------------
3662 +# implement the --enable-static flag
3663 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3664 +AC_DEFUN([AC_ENABLE_STATIC],
3665 +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3666 +AC_ARG_ENABLE([static],
3667 + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
3668 + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
3669 + [p=${PACKAGE-default}
3670 + case $enableval in
3671 + yes) enable_static=yes ;;
3672 + no) enable_static=no ;;
3673 + *)
3674 + enable_static=no
3675 + # Look at the argument we got. We use all the common list separators.
3676 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3677 + for pkg in $enableval; do
3678 + IFS="$lt_save_ifs"
3679 + if test "X$pkg" = "X$p"; then
3680 + enable_static=yes
3681 + fi
3682 + done
3683 + IFS="$lt_save_ifs"
3684 + ;;
3685 + esac],
3686 + [enable_static=]AC_ENABLE_STATIC_DEFAULT)
3687 +])# AC_ENABLE_STATIC
3690 +# AC_DISABLE_STATIC
3691 +# -----------------
3692 +# set the default static flag to --disable-static
3693 +AC_DEFUN([AC_DISABLE_STATIC],
3694 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3695 +AC_ENABLE_STATIC(no)
3696 +])# AC_DISABLE_STATIC
3699 +# AC_ENABLE_FAST_INSTALL([DEFAULT])
3700 +# ---------------------------------
3701 +# implement the --enable-fast-install flag
3702 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3703 +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3704 +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3705 +AC_ARG_ENABLE([fast-install],
3706 + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
3707 + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
3708 + [p=${PACKAGE-default}
3709 + case $enableval in
3710 + yes) enable_fast_install=yes ;;
3711 + no) enable_fast_install=no ;;
3712 + *)
3713 + enable_fast_install=no
3714 + # Look at the argument we got. We use all the common list separators.
3715 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3716 + for pkg in $enableval; do
3717 + IFS="$lt_save_ifs"
3718 + if test "X$pkg" = "X$p"; then
3719 + enable_fast_install=yes
3720 + fi
3721 + done
3722 + IFS="$lt_save_ifs"
3723 + ;;
3724 + esac],
3725 + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
3726 +])# AC_ENABLE_FAST_INSTALL
3729 +# AC_DISABLE_FAST_INSTALL
3730 +# -----------------------
3731 +# set the default to --disable-fast-install
3732 +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3733 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3734 +AC_ENABLE_FAST_INSTALL(no)
3735 +])# AC_DISABLE_FAST_INSTALL
3738 +# AC_LIBTOOL_PICMODE([MODE])
3739 +# --------------------------
3740 +# implement the --with-pic flag
3741 +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3742 +AC_DEFUN([AC_LIBTOOL_PICMODE],
3743 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3744 +pic_mode=ifelse($#,1,$1,default)
3745 +])# AC_LIBTOOL_PICMODE
3748 +# AC_PROG_EGREP
3749 +# -------------
3750 +# This is predefined starting with Autoconf 2.54, so this conditional
3751 +# definition can be removed once we require Autoconf 2.54 or later.
3752 +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
3753 +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
3754 + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3755 + then ac_cv_prog_egrep='grep -E'
3756 + else ac_cv_prog_egrep='egrep'
3757 + fi])
3758 + EGREP=$ac_cv_prog_egrep
3759 + AC_SUBST([EGREP])
3760 +])])
3763 +# AC_PATH_TOOL_PREFIX
3764 +# -------------------
3765 +# find a file program which can recognise shared library
3766 +AC_DEFUN([AC_PATH_TOOL_PREFIX],
3767 +[AC_REQUIRE([AC_PROG_EGREP])dnl
3768 +AC_MSG_CHECKING([for $1])
3769 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3770 +[case $MAGIC_CMD in
3771 +[[\\/*] | ?:[\\/]*])
3772 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3773 + ;;
3775 + lt_save_MAGIC_CMD="$MAGIC_CMD"
3776 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3777 +dnl $ac_dummy forces splitting on constant user-supplied paths.
3778 +dnl POSIX.2 word splitting is done only on the output of word expansions,
3779 +dnl not every word. This closes a longstanding sh security hole.
3780 + ac_dummy="ifelse([$2], , $PATH, [$2])"
3781 + for ac_dir in $ac_dummy; do
3782 + IFS="$lt_save_ifs"
3783 + test -z "$ac_dir" && ac_dir=.
3784 + if test -f $ac_dir/$1; then
3785 + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3786 + if test -n "$file_magic_test_file"; then
3787 + case $deplibs_check_method in
3788 + "file_magic "*)
3789 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3790 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3791 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3792 + $EGREP "$file_magic_regex" > /dev/null; then
3794 + else
3795 + cat <<EOF 1>&2
3797 +*** Warning: the command libtool uses to detect shared libraries,
3798 +*** $file_magic_cmd, produces output that libtool cannot recognize.
3799 +*** The result is that libtool may fail to recognize shared libraries
3800 +*** as such. This will affect the creation of libtool libraries that
3801 +*** depend on shared libraries, but programs linked with such libtool
3802 +*** libraries will work regardless of this problem. Nevertheless, you
3803 +*** may want to report the problem to your system manager and/or to
3804 +*** bug-libtool@gnu.org
3806 +EOF
3807 + fi ;;
3808 + esac
3809 + fi
3810 + break
3811 + fi
3812 + done
3813 + IFS="$lt_save_ifs"
3814 + MAGIC_CMD="$lt_save_MAGIC_CMD"
3815 + ;;
3816 +esac])
3817 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3818 +if test -n "$MAGIC_CMD"; then
3819 + AC_MSG_RESULT($MAGIC_CMD)
3820 +else
3821 + AC_MSG_RESULT(no)
3823 +])# AC_PATH_TOOL_PREFIX
3826 +# AC_PATH_MAGIC
3827 +# -------------
3828 +# find a file program which can recognise a shared library
3829 +AC_DEFUN([AC_PATH_MAGIC],
3830 +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3831 +if test -z "$lt_cv_path_MAGIC_CMD"; then
3832 + if test -n "$ac_tool_prefix"; then
3833 + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3834 + else
3835 + MAGIC_CMD=:
3836 + fi
3838 +])# AC_PATH_MAGIC
3841 +# AC_PROG_LD
3842 +# ----------
3843 +# find the pathname to the GNU or non-GNU linker
3844 +AC_DEFUN([AC_PROG_LD],
3845 +[AC_ARG_WITH([gnu-ld],
3846 + [AC_HELP_STRING([--with-gnu-ld],
3847 + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3848 + [test "$withval" = no || with_gnu_ld=yes],
3849 + [with_gnu_ld=no])
3850 +AC_REQUIRE([LT_AC_PROG_SED])dnl
3851 +AC_REQUIRE([AC_PROG_CC])dnl
3852 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
3853 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3854 +ac_prog=ld
3855 +if test "$GCC" = yes; then
3856 + # Check if gcc -print-prog-name=ld gives a path.
3857 + AC_MSG_CHECKING([for ld used by $CC])
3858 + case $host in
3859 + *-*-mingw*)
3860 + # gcc leaves a trailing carriage return which upsets mingw
3861 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3862 + *)
3863 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3864 + esac
3865 + case $ac_prog in
3866 + # Accept absolute paths.
3867 + [[\\/]]* | ?:[[\\/]]*)
3868 + re_direlt='/[[^/]][[^/]]*/\.\./'
3869 + # Canonicalize the pathname of ld
3870 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3871 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3872 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3873 + done
3874 + test -z "$LD" && LD="$ac_prog"
3875 + ;;
3876 + "")
3877 + # If it fails, then pretend we aren't using GCC.
3878 + ac_prog=ld
3879 + ;;
3880 + *)
3881 + # If it is relative, then search for the first ld in PATH.
3882 + with_gnu_ld=unknown
3883 + ;;
3884 + esac
3885 +elif test "$with_gnu_ld" = yes; then
3886 + AC_MSG_CHECKING([for GNU ld])
3887 +else
3888 + AC_MSG_CHECKING([for non-GNU ld])
3890 +AC_CACHE_VAL(lt_cv_path_LD,
3891 +[if test -z "$LD"; then
3892 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3893 + for ac_dir in $PATH; do
3894 + IFS="$lt_save_ifs"
3895 + test -z "$ac_dir" && ac_dir=.
3896 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3897 + lt_cv_path_LD="$ac_dir/$ac_prog"
3898 + # Check to see if the program is GNU ld. I'd rather use --version,
3899 + # but apparently some variants of GNU ld only accept -v.
3900 + # Break only if it was the GNU/non-GNU ld that we prefer.
3901 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3902 + *GNU* | *'with BFD'*)
3903 + test "$with_gnu_ld" != no && break
3904 + ;;
3905 + *)
3906 + test "$with_gnu_ld" != yes && break
3907 + ;;
3908 + esac
3909 + fi
3910 + done
3911 + IFS="$lt_save_ifs"
3912 +else
3913 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
3914 +fi])
3915 +LD="$lt_cv_path_LD"
3916 +if test -n "$LD"; then
3917 + AC_MSG_RESULT($LD)
3918 +else
3919 + AC_MSG_RESULT(no)
3921 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3922 +AC_PROG_LD_GNU
3923 +])# AC_PROG_LD
3926 +# AC_PROG_LD_GNU
3927 +# --------------
3928 +AC_DEFUN([AC_PROG_LD_GNU],
3929 +[AC_REQUIRE([AC_PROG_EGREP])dnl
3930 +AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3931 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3932 +case `$LD -v 2>&1 </dev/null` in
3933 +*GNU* | *'with BFD'*)
3934 + lt_cv_prog_gnu_ld=yes
3935 + ;;
3937 + lt_cv_prog_gnu_ld=no
3938 + ;;
3939 +esac])
3940 +with_gnu_ld=$lt_cv_prog_gnu_ld
3941 +])# AC_PROG_LD_GNU
3944 +# AC_PROG_LD_RELOAD_FLAG
3945 +# ----------------------
3946 +# find reload flag for linker
3947 +# -- PORTME Some linkers may need a different reload flag.
3948 +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3949 +[AC_CACHE_CHECK([for $LD option to reload object files],
3950 + lt_cv_ld_reload_flag,
3951 + [lt_cv_ld_reload_flag='-r'])
3952 +reload_flag=$lt_cv_ld_reload_flag
3953 +case $reload_flag in
3954 +"" | " "*) ;;
3955 +*) reload_flag=" $reload_flag" ;;
3956 +esac
3957 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
3958 +case $host_os in
3959 + darwin*)
3960 + if test "$GCC" = yes; then
3961 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3962 + else
3963 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
3964 + fi
3965 + ;;
3966 +esac
3967 +])# AC_PROG_LD_RELOAD_FLAG
3970 +# AC_DEPLIBS_CHECK_METHOD
3971 +# -----------------------
3972 +# how to check for library dependencies
3973 +# -- PORTME fill in with the dynamic library characteristics
3974 +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3975 +[AC_CACHE_CHECK([how to recognise dependent libraries],
3976 +lt_cv_deplibs_check_method,
3977 +[lt_cv_file_magic_cmd='$MAGIC_CMD'
3978 +lt_cv_file_magic_test_file=
3979 +lt_cv_deplibs_check_method='unknown'
3980 +# Need to set the preceding variable on all platforms that support
3981 +# interlibrary dependencies.
3982 +# 'none' -- dependencies not supported.
3983 +# `unknown' -- same as none, but documents that we really don't know.
3984 +# 'pass_all' -- all dependencies passed with no checks.
3985 +# 'test_compile' -- check by making test program.
3986 +# 'file_magic [[regex]]' -- check by looking for files in library path
3987 +# which responds to the $file_magic_cmd with a given extended regex.
3988 +# If you have `file' or equivalent on your system and you're not sure
3989 +# whether `pass_all' will *always* work, you probably want this one.
3991 +case $host_os in
3992 +aix4* | aix5*)
3993 + lt_cv_deplibs_check_method=pass_all
3994 + ;;
3996 +beos*)
3997 + lt_cv_deplibs_check_method=pass_all
3998 + ;;
4000 +bsdi[[45]]*)
4001 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
4002 + lt_cv_file_magic_cmd='/usr/bin/file -L'
4003 + lt_cv_file_magic_test_file=/shlib/libc.so
4004 + ;;
4006 +cygwin*)
4007 + # func_win32_libid is a shell function defined in ltmain.sh
4008 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4009 + lt_cv_file_magic_cmd='func_win32_libid'
4010 + ;;
4012 +mingw* | pw32*)
4013 + # Base MSYS/MinGW do not provide the 'file' command needed by
4014 + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4015 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4016 + lt_cv_file_magic_cmd='$OBJDUMP -f'
4017 + ;;
4019 +darwin* | rhapsody*)
4020 + lt_cv_deplibs_check_method=pass_all
4021 + ;;
4023 +freebsd* | kfreebsd*-gnu | dragonfly*)
4024 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4025 + case $host_cpu in
4026 + i*86 )
4027 + # Not sure whether the presence of OpenBSD here was a mistake.
4028 + # Let's accept both of them until this is cleared up.
4029 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
4030 + lt_cv_file_magic_cmd=/usr/bin/file
4031 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4032 + ;;
4033 + esac
4034 + else
4035 + lt_cv_deplibs_check_method=pass_all
4036 + fi
4037 + ;;
4039 +gnu*)
4040 + lt_cv_deplibs_check_method=pass_all
4041 + ;;
4043 +hpux10.20* | hpux11*)
4044 + lt_cv_file_magic_cmd=/usr/bin/file
4045 + case $host_cpu in
4046 + ia64*)
4047 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
4048 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4049 + ;;
4050 + hppa*64*)
4051 + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
4052 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4053 + ;;
4054 + *)
4055 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
4056 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
4057 + ;;
4058 + esac
4059 + ;;
4061 +interix3*)
4062 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4063 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
4064 + ;;
4066 +irix5* | irix6* | nonstopux*)
4067 + case $LD in
4068 + *-32|*"-32 ") libmagic=32-bit;;
4069 + *-n32|*"-n32 ") libmagic=N32;;
4070 + *-64|*"-64 ") libmagic=64-bit;;
4071 + *) libmagic=never-match;;
4072 + esac
4073 + lt_cv_deplibs_check_method=pass_all
4074 + ;;
4076 +# This must be Linux ELF.
4077 +linux*)
4078 + lt_cv_deplibs_check_method=pass_all
4079 + ;;
4081 +netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4082 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4083 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4084 + else
4085 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
4086 + fi
4087 + ;;
4089 +newos6*)
4090 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
4091 + lt_cv_file_magic_cmd=/usr/bin/file
4092 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
4093 + ;;
4095 +nto-qnx*)
4096 + lt_cv_deplibs_check_method=unknown
4097 + ;;
4099 +openbsd*)
4100 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4101 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
4102 + else
4103 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4104 + fi
4105 + ;;
4107 +osf3* | osf4* | osf5*)
4108 + lt_cv_deplibs_check_method=pass_all
4109 + ;;
4111 +solaris*)
4112 + lt_cv_deplibs_check_method=pass_all
4113 + ;;
4115 +sysv4 | sysv4.3*)
4116 + case $host_vendor in
4117 + motorola)
4118 + 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]]'
4119 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4120 + ;;
4121 + ncr)
4122 + lt_cv_deplibs_check_method=pass_all
4123 + ;;
4124 + sequent)
4125 + lt_cv_file_magic_cmd='/bin/file'
4126 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
4127 + ;;
4128 + sni)
4129 + lt_cv_file_magic_cmd='/bin/file'
4130 + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
4131 + lt_cv_file_magic_test_file=/lib/libc.so
4132 + ;;
4133 + siemens)
4134 + lt_cv_deplibs_check_method=pass_all
4135 + ;;
4136 + pc)
4137 + lt_cv_deplibs_check_method=pass_all
4138 + ;;
4139 + esac
4140 + ;;
4142 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4143 + lt_cv_deplibs_check_method=pass_all
4144 + ;;
4145 +esac
4147 +file_magic_cmd=$lt_cv_file_magic_cmd
4148 +deplibs_check_method=$lt_cv_deplibs_check_method
4149 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
4150 +])# AC_DEPLIBS_CHECK_METHOD
4153 +# AC_PROG_NM
4154 +# ----------
4155 +# find the pathname to a BSD-compatible name lister
4156 +AC_DEFUN([AC_PROG_NM],
4157 +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
4158 +[if test -n "$NM"; then
4159 + # Let the user override the test.
4160 + lt_cv_path_NM="$NM"
4161 +else
4162 + lt_nm_to_check="${ac_tool_prefix}nm"
4163 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4164 + lt_nm_to_check="$lt_nm_to_check nm"
4165 + fi
4166 + for lt_tmp_nm in $lt_nm_to_check; do
4167 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4168 + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4169 + IFS="$lt_save_ifs"
4170 + test -z "$ac_dir" && ac_dir=.
4171 + tmp_nm="$ac_dir/$lt_tmp_nm"
4172 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4173 + # Check to see if the nm accepts a BSD-compat flag.
4174 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4175 + # nm: unknown option "B" ignored
4176 + # Tru64's nm complains that /dev/null is an invalid object file
4177 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4178 + */dev/null* | *'Invalid file or object type'*)
4179 + lt_cv_path_NM="$tmp_nm -B"
4180 + break
4181 + ;;
4182 + *)
4183 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4184 + */dev/null*)
4185 + lt_cv_path_NM="$tmp_nm -p"
4186 + break
4187 + ;;
4188 + *)
4189 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4190 + continue # so that we can try to find one that supports BSD flags
4191 + ;;
4192 + esac
4193 + ;;
4194 + esac
4195 + fi
4196 + done
4197 + IFS="$lt_save_ifs"
4198 + done
4199 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4200 +fi])
4201 +NM="$lt_cv_path_NM"
4202 +])# AC_PROG_NM
4205 +# AC_CHECK_LIBM
4206 +# -------------
4207 +# check for math library
4208 +AC_DEFUN([AC_CHECK_LIBM],
4209 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4210 +LIBM=
4211 +case $host in
4212 +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
4213 + # These system don't have libm, or don't need it
4214 + ;;
4215 +*-ncr-sysv4.3*)
4216 + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
4217 + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
4218 + ;;
4220 + AC_CHECK_LIB(m, cos, LIBM="-lm")
4221 + ;;
4222 +esac
4223 +])# AC_CHECK_LIBM
4226 +# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
4227 +# -----------------------------------
4228 +# sets LIBLTDL to the link flags for the libltdl convenience library and
4229 +# LTDLINCL to the include flags for the libltdl header and adds
4230 +# --enable-ltdl-convenience to the configure arguments. Note that
4231 +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
4232 +# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
4233 +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
4234 +# (note the single quotes!). If your package is not flat and you're not
4235 +# using automake, define top_builddir and top_srcdir appropriately in
4236 +# the Makefiles.
4237 +AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
4238 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4239 + case $enable_ltdl_convenience in
4240 + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
4241 + "") enable_ltdl_convenience=yes
4242 + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4243 + esac
4244 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
4245 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4246 + # For backwards non-gettext consistent compatibility...
4247 + INCLTDL="$LTDLINCL"
4248 +])# AC_LIBLTDL_CONVENIENCE
4251 +# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
4252 +# -----------------------------------
4253 +# sets LIBLTDL to the link flags for the libltdl installable library and
4254 +# LTDLINCL to the include flags for the libltdl header and adds
4255 +# --enable-ltdl-install to the configure arguments. Note that
4256 +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
4257 +# and an installed libltdl is not found, it is assumed to be `libltdl'.
4258 +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
4259 +# '${top_srcdir}/' (note the single quotes!). If your package is not
4260 +# flat and you're not using automake, define top_builddir and top_srcdir
4261 +# appropriately in the Makefiles.
4262 +# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
4263 +AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
4264 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4265 + AC_CHECK_LIB(ltdl, lt_dlinit,
4266 + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
4267 + [if test x"$enable_ltdl_install" = xno; then
4268 + AC_MSG_WARN([libltdl not installed, but installation disabled])
4269 + else
4270 + enable_ltdl_install=yes
4271 + fi
4272 + ])
4273 + if test x"$enable_ltdl_install" = x"yes"; then
4274 + ac_configure_args="$ac_configure_args --enable-ltdl-install"
4275 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
4276 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4277 + else
4278 + ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4279 + LIBLTDL="-lltdl"
4280 + LTDLINCL=
4281 + fi
4282 + # For backwards non-gettext consistent compatibility...
4283 + INCLTDL="$LTDLINCL"
4284 +])# AC_LIBLTDL_INSTALLABLE
4287 +# AC_LIBTOOL_CXX
4288 +# --------------
4289 +# enable support for C++ libraries
4290 +AC_DEFUN([AC_LIBTOOL_CXX],
4291 +[AC_REQUIRE([_LT_AC_LANG_CXX])
4292 +])# AC_LIBTOOL_CXX
4295 +# _LT_AC_LANG_CXX
4296 +# ---------------
4297 +AC_DEFUN([_LT_AC_LANG_CXX],
4298 +[AC_REQUIRE([AC_PROG_CXX])
4299 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
4300 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
4301 +])# _LT_AC_LANG_CXX
4303 +# _LT_AC_PROG_CXXCPP
4304 +# ------------------
4305 +AC_DEFUN([_LT_AC_PROG_CXXCPP],
4307 +AC_REQUIRE([AC_PROG_CXX])
4308 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4309 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4310 + (test "X$CXX" != "Xg++"))) ; then
4311 + AC_PROG_CXXCPP
4313 +])# _LT_AC_PROG_CXXCPP
4315 +# AC_LIBTOOL_F77
4316 +# --------------
4317 +# enable support for Fortran 77 libraries
4318 +AC_DEFUN([AC_LIBTOOL_F77],
4319 +[AC_REQUIRE([_LT_AC_LANG_F77])
4320 +])# AC_LIBTOOL_F77
4323 +# _LT_AC_LANG_F77
4324 +# ---------------
4325 +AC_DEFUN([_LT_AC_LANG_F77],
4326 +[AC_REQUIRE([AC_PROG_F77])
4327 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
4328 +])# _LT_AC_LANG_F77
4331 +# AC_LIBTOOL_GCJ
4332 +# --------------
4333 +# enable support for GCJ libraries
4334 +AC_DEFUN([AC_LIBTOOL_GCJ],
4335 +[AC_REQUIRE([_LT_AC_LANG_GCJ])
4336 +])# AC_LIBTOOL_GCJ
4339 +# _LT_AC_LANG_GCJ
4340 +# ---------------
4341 +AC_DEFUN([_LT_AC_LANG_GCJ],
4342 +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
4343 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
4344 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
4345 + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
4346 + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
4347 + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
4348 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
4349 +])# _LT_AC_LANG_GCJ
4352 +# AC_LIBTOOL_RC
4353 +# -------------
4354 +# enable support for Windows resource files
4355 +AC_DEFUN([AC_LIBTOOL_RC],
4356 +[AC_REQUIRE([LT_AC_PROG_RC])
4357 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
4358 +])# AC_LIBTOOL_RC
4361 +# AC_LIBTOOL_LANG_C_CONFIG
4362 +# ------------------------
4363 +# Ensure that the configuration vars for the C compiler are
4364 +# suitably defined. Those variables are subsequently used by
4365 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4366 +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
4367 +AC_DEFUN([_LT_AC_LANG_C_CONFIG],
4368 +[lt_save_CC="$CC"
4369 +AC_LANG_PUSH(C)
4371 +# Source file extension for C test sources.
4372 +ac_ext=c
4374 +# Object file extension for compiled C test sources.
4375 +objext=o
4376 +_LT_AC_TAGVAR(objext, $1)=$objext
4378 +# Code to be used in simple compile tests
4379 +lt_simple_compile_test_code="int some_variable = 0;\n"
4381 +# Code to be used in simple link tests
4382 +lt_simple_link_test_code='int main(){return(0);}\n'
4384 +_LT_AC_SYS_COMPILER
4386 +# save warnings/boilerplate of simple test code
4387 +_LT_COMPILER_BOILERPLATE
4388 +_LT_LINKER_BOILERPLATE
4390 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4391 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
4392 +AC_LIBTOOL_PROG_CC_C_O($1)
4393 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4394 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
4395 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4396 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4397 +AC_LIBTOOL_SYS_LIB_STRIP
4398 +AC_LIBTOOL_DLOPEN_SELF
4400 +# Report which library types will actually be built
4401 +AC_MSG_CHECKING([if libtool supports shared libraries])
4402 +AC_MSG_RESULT([$can_build_shared])
4404 +AC_MSG_CHECKING([whether to build shared libraries])
4405 +test "$can_build_shared" = "no" && enable_shared=no
4407 +# On AIX, shared libraries and static libraries use the same namespace, and
4408 +# are all built from PIC.
4409 +case $host_os in
4410 +aix3*)
4411 + test "$enable_shared" = yes && enable_static=no
4412 + if test -n "$RANLIB"; then
4413 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
4414 + postinstall_cmds='$RANLIB $lib'
4415 + fi
4416 + ;;
4418 +aix4* | aix5*)
4419 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4420 + test "$enable_shared" = yes && enable_static=no
4421 + fi
4422 + ;;
4423 +esac
4424 +AC_MSG_RESULT([$enable_shared])
4426 +AC_MSG_CHECKING([whether to build static libraries])
4427 +# Make sure either enable_shared or enable_static is yes.
4428 +test "$enable_shared" = yes || enable_static=yes
4429 +AC_MSG_RESULT([$enable_static])
4431 +AC_LIBTOOL_CONFIG($1)
4433 +AC_LANG_POP
4434 +CC="$lt_save_CC"
4435 +])# AC_LIBTOOL_LANG_C_CONFIG
4438 +# AC_LIBTOOL_LANG_CXX_CONFIG
4439 +# --------------------------
4440 +# Ensure that the configuration vars for the C compiler are
4441 +# suitably defined. Those variables are subsequently used by
4442 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4443 +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
4444 +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
4445 +[AC_LANG_PUSH(C++)
4446 +AC_REQUIRE([AC_PROG_CXX])
4447 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
4449 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4450 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4451 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
4452 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4453 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4454 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
4455 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4456 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4457 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4458 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4459 +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4460 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4461 +_LT_AC_TAGVAR(module_cmds, $1)=
4462 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4463 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4464 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4465 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
4466 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4467 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4469 +# Dependencies to place before and after the object being linked:
4470 +_LT_AC_TAGVAR(predep_objects, $1)=
4471 +_LT_AC_TAGVAR(postdep_objects, $1)=
4472 +_LT_AC_TAGVAR(predeps, $1)=
4473 +_LT_AC_TAGVAR(postdeps, $1)=
4474 +_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
4476 +# Source file extension for C++ test sources.
4477 +ac_ext=cpp
4479 +# Object file extension for compiled C++ test sources.
4480 +objext=o
4481 +_LT_AC_TAGVAR(objext, $1)=$objext
4483 +# Code to be used in simple compile tests
4484 +lt_simple_compile_test_code="int some_variable = 0;\n"
4486 +# Code to be used in simple link tests
4487 +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
4489 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4490 +_LT_AC_SYS_COMPILER
4492 +# save warnings/boilerplate of simple test code
4493 +_LT_COMPILER_BOILERPLATE
4494 +_LT_LINKER_BOILERPLATE
4496 +# Allow CC to be a program name with arguments.
4497 +lt_save_CC=$CC
4498 +lt_save_LD=$LD
4499 +lt_save_GCC=$GCC
4500 +GCC=$GXX
4501 +lt_save_with_gnu_ld=$with_gnu_ld
4502 +lt_save_path_LD=$lt_cv_path_LD
4503 +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
4504 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
4505 +else
4506 + $as_unset lt_cv_prog_gnu_ld
4508 +if test -n "${lt_cv_path_LDCXX+set}"; then
4509 + lt_cv_path_LD=$lt_cv_path_LDCXX
4510 +else
4511 + $as_unset lt_cv_path_LD
4513 +test -z "${LDCXX+set}" || LD=$LDCXX
4514 +CC=${CXX-"c++"}
4515 +compiler=$CC
4516 +_LT_AC_TAGVAR(compiler, $1)=$CC
4517 +_LT_CC_BASENAME([$compiler])
4519 +# We don't want -fno-exception wen compiling C++ code, so set the
4520 +# no_builtin_flag separately
4521 +if test "$GXX" = yes; then
4522 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4523 +else
4524 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4527 +if test "$GXX" = yes; then
4528 + # Set up default GNU C++ configuration
4530 + AC_PROG_LD
4532 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
4533 + # archiving commands below assume that GNU ld is being used.
4534 + if test "$with_gnu_ld" = yes; then
4535 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4536 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4538 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4539 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4541 + # If archive_cmds runs LD, not CC, wlarc should be empty
4542 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
4543 + # investigate it a little bit more. (MM)
4544 + wlarc='${wl}'
4546 + # ancient GNU ld didn't support --whole-archive et. al.
4547 + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
4548 + grep 'no-whole-archive' > /dev/null; then
4549 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4550 + else
4551 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4552 + fi
4553 + else
4554 + with_gnu_ld=no
4555 + wlarc=
4557 + # A generic and very simple default shared library creation
4558 + # command for GNU C++ for the case where it uses the native
4559 + # linker, instead of GNU ld. If possible, this setting should
4560 + # overridden to take advantage of the native linker features on
4561 + # the platform it is being used on.
4562 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4563 + fi
4565 + # Commands to make compiler produce verbose output that lists
4566 + # what "hidden" libraries, object files and flags are used when
4567 + # linking a shared library.
4568 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4570 +else
4571 + GXX=no
4572 + with_gnu_ld=no
4573 + wlarc=
4576 +# PORTME: fill in a description of your system's C++ link characteristics
4577 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4578 +_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4579 +case $host_os in
4580 + aix3*)
4581 + # FIXME: insert proper C++ library support
4582 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4583 + ;;
4584 + aix4* | aix5*)
4585 + if test "$host_cpu" = ia64; then
4586 + # On IA64, the linker does run time linking by default, so we don't
4587 + # have to do anything special.
4588 + aix_use_runtimelinking=no
4589 + exp_sym_flag='-Bexport'
4590 + no_entry_flag=""
4591 + else
4592 + aix_use_runtimelinking=no
4594 + # Test if we are trying to use run time linking or normal
4595 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4596 + # need to do runtime linking.
4597 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
4598 + for ld_flag in $LDFLAGS; do
4599 + case $ld_flag in
4600 + *-brtl*)
4601 + aix_use_runtimelinking=yes
4602 + break
4603 + ;;
4604 + esac
4605 + done
4606 + ;;
4607 + esac
4609 + exp_sym_flag='-bexport'
4610 + no_entry_flag='-bnoentry'
4611 + fi
4613 + # When large executables or shared objects are built, AIX ld can
4614 + # have problems creating the table of contents. If linking a library
4615 + # or program results in "error TOC overflow" add -mminimal-toc to
4616 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4617 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4619 + _LT_AC_TAGVAR(archive_cmds, $1)=''
4620 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4621 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4622 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4624 + if test "$GXX" = yes; then
4625 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
4626 + # We only want to do this on AIX 4.2 and lower, the check
4627 + # below for broken collect2 doesn't work under 4.3+
4628 + collect2name=`${CC} -print-prog-name=collect2`
4629 + if test -f "$collect2name" && \
4630 + strings "$collect2name" | grep resolve_lib_name >/dev/null
4631 + then
4632 + # We have reworked collect2
4633 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4634 + else
4635 + # We have old collect2
4636 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4637 + # It fails to find uninstalled libraries when the uninstalled
4638 + # path is not listed in the libpath. Setting hardcode_minus_L
4639 + # to unsupported forces relinking
4640 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4641 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4642 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4643 + fi
4644 + ;;
4645 + esac
4646 + shared_flag='-shared'
4647 + if test "$aix_use_runtimelinking" = yes; then
4648 + shared_flag="$shared_flag "'${wl}-G'
4649 + fi
4650 + else
4651 + # not using gcc
4652 + if test "$host_cpu" = ia64; then
4653 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4654 + # chokes on -Wl,-G. The following line is correct:
4655 + shared_flag='-G'
4656 + else
4657 + if test "$aix_use_runtimelinking" = yes; then
4658 + shared_flag='${wl}-G'
4659 + else
4660 + shared_flag='${wl}-bM:SRE'
4661 + fi
4662 + fi
4663 + fi
4665 + # It seems that -bexpall does not export symbols beginning with
4666 + # underscore (_), so it is better to generate a list of symbols to export.
4667 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4668 + if test "$aix_use_runtimelinking" = yes; then
4669 + # Warning - without using the other runtime loading flags (-brtl),
4670 + # -berok will link without error, but may produce a broken library.
4671 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
4672 + # Determine the default libpath from the value encoded in an empty executable.
4673 + _LT_AC_SYS_LIBPATH_AIX
4674 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4676 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4677 + else
4678 + if test "$host_cpu" = ia64; then
4679 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4680 + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4681 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
4682 + else
4683 + # Determine the default libpath from the value encoded in an empty executable.
4684 + _LT_AC_SYS_LIBPATH_AIX
4685 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4686 + # Warning - without using the other run time loading flags,
4687 + # -berok will link without error, but may produce a broken library.
4688 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4689 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4690 + # Exported symbols can be pulled into shared objects from archives
4691 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4692 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4693 + # This is similar to how AIX traditionally builds its shared libraries.
4694 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
4695 + fi
4696 + fi
4697 + ;;
4699 + beos*)
4700 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4701 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4702 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4703 + # support --undefined. This deserves some investigation. FIXME
4704 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4705 + else
4706 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4707 + fi
4708 + ;;
4710 + chorus*)
4711 + case $cc_basename in
4712 + *)
4713 + # FIXME: insert proper C++ library support
4714 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4715 + ;;
4716 + esac
4717 + ;;
4719 + cygwin* | mingw* | pw32*)
4720 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4721 + # as there is no search path for DLLs.
4722 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4723 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4724 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
4725 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4727 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
4728 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4729 + # If the export-symbols file already is a .def file (1st line
4730 + # is EXPORTS), use it as is; otherwise, prepend...
4731 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4732 + cp $export_symbols $output_objdir/$soname.def;
4733 + else
4734 + echo EXPORTS > $output_objdir/$soname.def;
4735 + cat $export_symbols >> $output_objdir/$soname.def;
4736 + fi~
4737 + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4738 + else
4739 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4740 + fi
4741 + ;;
4742 + darwin* | rhapsody*)
4743 + case $host_os in
4744 + rhapsody* | darwin1.[[012]])
4745 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
4746 + ;;
4747 + *) # Darwin 1.3 on
4748 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4749 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4750 + else
4751 + case ${MACOSX_DEPLOYMENT_TARGET} in
4752 + 10.[[012]])
4753 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4754 + ;;
4755 + 10.*)
4756 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
4757 + ;;
4758 + esac
4759 + fi
4760 + ;;
4761 + esac
4762 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4763 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
4764 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4765 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4766 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
4767 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4769 + if test "$GXX" = yes ; then
4770 + lt_int_apple_cc_single_mod=no
4771 + output_verbose_link_cmd='echo'
4772 + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
4773 + lt_int_apple_cc_single_mod=yes
4774 + fi
4775 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4776 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4777 + else
4778 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4779 + fi
4780 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4781 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4782 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4783 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4784 + else
4785 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4786 + fi
4787 + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4788 + else
4789 + case $cc_basename in
4790 + xlc*)
4791 + output_verbose_link_cmd='echo'
4792 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
4793 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4794 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4795 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4796 + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4797 + ;;
4798 + *)
4799 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4800 + ;;
4801 + esac
4802 + fi
4803 + ;;
4805 + dgux*)
4806 + case $cc_basename in
4807 + ec++*)
4808 + # FIXME: insert proper C++ library support
4809 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4810 + ;;
4811 + ghcx*)
4812 + # Green Hills C++ Compiler
4813 + # FIXME: insert proper C++ library support
4814 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4815 + ;;
4816 + *)
4817 + # FIXME: insert proper C++ library support
4818 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4819 + ;;
4820 + esac
4821 + ;;
4822 + freebsd[[12]]*)
4823 + # C++ shared libraries reported to be fairly broken before switch to ELF
4824 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4825 + ;;
4826 + freebsd-elf*)
4827 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4828 + ;;
4829 + freebsd* | kfreebsd*-gnu | dragonfly*)
4830 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4831 + # conventions
4832 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4833 + ;;
4834 + gnu*)
4835 + ;;
4836 + hpux9*)
4837 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4838 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4839 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4840 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4841 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4842 + # but as the default
4843 + # location of the library.
4845 + case $cc_basename in
4846 + CC*)
4847 + # FIXME: insert proper C++ library support
4848 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4849 + ;;
4850 + aCC*)
4851 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4852 + # Commands to make compiler produce verbose output that lists
4853 + # what "hidden" libraries, object files and flags are used when
4854 + # linking a shared library.
4856 + # There doesn't appear to be a way to prevent this compiler from
4857 + # explicitly linking system object files so we need to strip them
4858 + # from the output so that they don't get included in the library
4859 + # dependencies.
4860 + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4861 + ;;
4862 + *)
4863 + if test "$GXX" = yes; then
4864 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4865 + else
4866 + # FIXME: insert proper C++ library support
4867 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4868 + fi
4869 + ;;
4870 + esac
4871 + ;;
4872 + hpux10*|hpux11*)
4873 + if test $with_gnu_ld = no; then
4874 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4875 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4877 + case $host_cpu in
4878 + hppa*64*|ia64*)
4879 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4880 + ;;
4881 + *)
4882 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4883 + ;;
4884 + esac
4885 + fi
4886 + case $host_cpu in
4887 + hppa*64*|ia64*)
4888 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
4889 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4890 + ;;
4891 + *)
4892 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4893 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4894 + # but as the default
4895 + # location of the library.
4896 + ;;
4897 + esac
4899 + case $cc_basename in
4900 + CC*)
4901 + # FIXME: insert proper C++ library support
4902 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4903 + ;;
4904 + aCC*)
4905 + case $host_cpu in
4906 + hppa*64*)
4907 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4908 + ;;
4909 + ia64*)
4910 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4911 + ;;
4912 + *)
4913 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4914 + ;;
4915 + esac
4916 + # Commands to make compiler produce verbose output that lists
4917 + # what "hidden" libraries, object files and flags are used when
4918 + # linking a shared library.
4920 + # There doesn't appear to be a way to prevent this compiler from
4921 + # explicitly linking system object files so we need to strip them
4922 + # from the output so that they don't get included in the library
4923 + # dependencies.
4924 + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4925 + ;;
4926 + *)
4927 + if test "$GXX" = yes; then
4928 + if test $with_gnu_ld = no; then
4929 + case $host_cpu in
4930 + hppa*64*)
4931 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4932 + ;;
4933 + ia64*)
4934 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4935 + ;;
4936 + *)
4937 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4938 + ;;
4939 + esac
4940 + fi
4941 + else
4942 + # FIXME: insert proper C++ library support
4943 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4944 + fi
4945 + ;;
4946 + esac
4947 + ;;
4948 + interix3*)
4949 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
4950 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4951 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4952 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4953 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4954 + # Instead, shared libraries are loaded at an image base (0x10000000 by
4955 + # default) and relocated if they conflict, which is a slow very memory
4956 + # consuming and fragmenting process. To avoid this, we pick a random,
4957 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4958 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4959 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4960 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4961 + ;;
4962 + irix5* | irix6*)
4963 + case $cc_basename in
4964 + CC*)
4965 + # SGI C++
4966 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4968 + # Archives containing C++ object files must be created using
4969 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
4970 + # necessary to make sure instantiated templates are included
4971 + # in the archive.
4972 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4973 + ;;
4974 + *)
4975 + if test "$GXX" = yes; then
4976 + if test "$with_gnu_ld" = no; then
4977 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
4978 + else
4979 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
4980 + fi
4981 + fi
4982 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4983 + ;;
4984 + esac
4985 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4986 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4987 + ;;
4988 + linux*)
4989 + case $cc_basename in
4990 + KCC*)
4991 + # Kuck and Associates, Inc. (KAI) C++ Compiler
4993 + # KCC will only create a shared library if the output file
4994 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
4995 + # to its proper name (with version) after linking.
4996 + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4997 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
4998 + # Commands to make compiler produce verbose output that lists
4999 + # what "hidden" libraries, object files and flags are used when
5000 + # linking a shared library.
5002 + # There doesn't appear to be a way to prevent this compiler from
5003 + # explicitly linking system object files so we need to strip them
5004 + # from the output so that they don't get included in the library
5005 + # dependencies.
5006 + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5008 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
5009 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5011 + # Archives containing C++ object files must be created using
5012 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5013 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5014 + ;;
5015 + icpc*)
5016 + # Intel C++
5017 + with_gnu_ld=yes
5018 + # version 8.0 and above of icpc choke on multiply defined symbols
5019 + # if we add $predep_objects and $postdep_objects, however 7.1 and
5020 + # earlier do not add the objects themselves.
5021 + case `$CC -V 2>&1` in
5022 + *"Version 7."*)
5023 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5024 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5025 + ;;
5026 + *) # Version 8.0 or newer
5027 + tmp_idyn=
5028 + case $host_cpu in
5029 + ia64*) tmp_idyn=' -i_dynamic';;
5030 + esac
5031 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5032 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5033 + ;;
5034 + esac
5035 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5036 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5037 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5038 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5039 + ;;
5040 + pgCC*)
5041 + # Portland Group C++ compiler
5042 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5043 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5045 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5046 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5047 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5048 + ;;
5049 + cxx*)
5050 + # Compaq C++
5051 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5052 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
5054 + runpath_var=LD_RUN_PATH
5055 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5056 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5058 + # Commands to make compiler produce verbose output that lists
5059 + # what "hidden" libraries, object files and flags are used when
5060 + # linking a shared library.
5062 + # There doesn't appear to be a way to prevent this compiler from
5063 + # explicitly linking system object files so we need to strip them
5064 + # from the output so that they don't get included in the library
5065 + # dependencies.
5066 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5067 + ;;
5068 + esac
5069 + ;;
5070 + lynxos*)
5071 + # FIXME: insert proper C++ library support
5072 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5073 + ;;
5074 + m88k*)
5075 + # FIXME: insert proper C++ library support
5076 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5077 + ;;
5078 + mvs*)
5079 + case $cc_basename in
5080 + cxx*)
5081 + # FIXME: insert proper C++ library support
5082 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5083 + ;;
5084 + *)
5085 + # FIXME: insert proper C++ library support
5086 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5087 + ;;
5088 + esac
5089 + ;;
5090 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5091 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5092 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
5093 + wlarc=
5094 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5095 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5096 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5097 + fi
5098 + # Workaround some broken pre-1.5 toolchains
5099 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
5100 + ;;
5101 + openbsd2*)
5102 + # C++ shared libraries are fairly broken
5103 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5104 + ;;
5105 + openbsd*)
5106 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5107 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5108 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5109 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5110 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5111 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
5112 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5113 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5114 + fi
5115 + output_verbose_link_cmd='echo'
5116 + ;;
5117 + osf3*)
5118 + case $cc_basename in
5119 + KCC*)
5120 + # Kuck and Associates, Inc. (KAI) C++ Compiler
5122 + # KCC will only create a shared library if the output file
5123 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
5124 + # to its proper name (with version) after linking.
5125 + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5127 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5128 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5130 + # Archives containing C++ object files must be created using
5131 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5132 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5134 + ;;
5135 + RCC*)
5136 + # Rational C++ 2.4.1
5137 + # FIXME: insert proper C++ library support
5138 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5139 + ;;
5140 + cxx*)
5141 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5142 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5144 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5145 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5147 + # Commands to make compiler produce verbose output that lists
5148 + # what "hidden" libraries, object files and flags are used when
5149 + # linking a shared library.
5151 + # There doesn't appear to be a way to prevent this compiler from
5152 + # explicitly linking system object files so we need to strip them
5153 + # from the output so that they don't get included in the library
5154 + # dependencies.
5155 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5156 + ;;
5157 + *)
5158 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5159 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5160 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
5162 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5163 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5165 + # Commands to make compiler produce verbose output that lists
5166 + # what "hidden" libraries, object files and flags are used when
5167 + # linking a shared library.
5168 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5170 + else
5171 + # FIXME: insert proper C++ library support
5172 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5173 + fi
5174 + ;;
5175 + esac
5176 + ;;
5177 + osf4* | osf5*)
5178 + case $cc_basename in
5179 + KCC*)
5180 + # Kuck and Associates, Inc. (KAI) C++ Compiler
5182 + # KCC will only create a shared library if the output file
5183 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
5184 + # to its proper name (with version) after linking.
5185 + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5187 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5188 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5190 + # Archives containing C++ object files must be created using
5191 + # the KAI C++ compiler.
5192 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
5193 + ;;
5194 + RCC*)
5195 + # Rational C++ 2.4.1
5196 + # FIXME: insert proper C++ library support
5197 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5198 + ;;
5199 + cxx*)
5200 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5201 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5202 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
5203 + echo "-hidden">> $lib.exp~
5204 + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
5205 + $rm $lib.exp'
5207 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5208 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5210 + # Commands to make compiler produce verbose output that lists
5211 + # what "hidden" libraries, object files and flags are used when
5212 + # linking a shared library.
5214 + # There doesn't appear to be a way to prevent this compiler from
5215 + # explicitly linking system object files so we need to strip them
5216 + # from the output so that they don't get included in the library
5217 + # dependencies.
5218 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5219 + ;;
5220 + *)
5221 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5222 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5223 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
5225 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5226 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5228 + # Commands to make compiler produce verbose output that lists
5229 + # what "hidden" libraries, object files and flags are used when
5230 + # linking a shared library.
5231 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5233 + else
5234 + # FIXME: insert proper C++ library support
5235 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5236 + fi
5237 + ;;
5238 + esac
5239 + ;;
5240 + psos*)
5241 + # FIXME: insert proper C++ library support
5242 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5243 + ;;
5244 + sunos4*)
5245 + case $cc_basename in
5246 + CC*)
5247 + # Sun C++ 4.x
5248 + # FIXME: insert proper C++ library support
5249 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5250 + ;;
5251 + lcc*)
5252 + # Lucid
5253 + # FIXME: insert proper C++ library support
5254 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5255 + ;;
5256 + *)
5257 + # FIXME: insert proper C++ library support
5258 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5259 + ;;
5260 + esac
5261 + ;;
5262 + solaris*)
5263 + case $cc_basename in
5264 + CC*)
5265 + # Sun C++ 4.2, 5.x and Centerline C++
5266 + _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
5267 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5268 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5269 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5270 + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5272 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5273 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5274 + case $host_os in
5275 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5276 + *)
5277 + # The C++ compiler is used as linker so we must use $wl
5278 + # flag to pass the commands to the underlying system
5279 + # linker. We must also pass each convience library through
5280 + # to the system linker between allextract/defaultextract.
5281 + # The C++ compiler will combine linker options so we
5282 + # cannot just pass the convience library names through
5283 + # without $wl.
5284 + # Supported since Solaris 2.6 (maybe 2.5.1?)
5285 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
5286 + ;;
5287 + esac
5288 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5290 + output_verbose_link_cmd='echo'
5292 + # Archives containing C++ object files must be created using
5293 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
5294 + # necessary to make sure instantiated templates are included
5295 + # in the archive.
5296 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5297 + ;;
5298 + gcx*)
5299 + # Green Hills C++ Compiler
5300 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5302 + # The C++ compiler must be used to create the archive.
5303 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
5304 + ;;
5305 + *)
5306 + # GNU C++ compiler with Solaris linker
5307 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5308 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
5309 + if $CC --version | grep -v '^2\.7' > /dev/null; then
5310 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5311 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5312 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5314 + # Commands to make compiler produce verbose output that lists
5315 + # what "hidden" libraries, object files and flags are used when
5316 + # linking a shared library.
5317 + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5318 + else
5319 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
5320 + # platform.
5321 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5322 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5323 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5325 + # Commands to make compiler produce verbose output that lists
5326 + # what "hidden" libraries, object files and flags are used when
5327 + # linking a shared library.
5328 + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5329 + fi
5331 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
5332 + fi
5333 + ;;
5334 + esac
5335 + ;;
5336 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5337 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5338 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5339 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5340 + runpath_var='LD_RUN_PATH'
5342 + case $cc_basename in
5343 + CC*)
5344 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5345 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5346 + ;;
5347 + *)
5348 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5349 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5350 + ;;
5351 + esac
5352 + ;;
5353 + sysv5* | sco3.2v5* | sco5v6*)
5354 + # Note: We can NOT use -z defs as we might desire, because we do not
5355 + # link with -lc, and that would cause any symbols used from libc to
5356 + # always be unresolved, which means just about no library would
5357 + # ever link correctly. If we're not using GNU ld we use -z text
5358 + # though, which does catch some bad symbols but isn't as heavy-handed
5359 + # as -z defs.
5360 + # For security reasons, it is highly recommended that you always
5361 + # use absolute paths for naming shared libraries, and exclude the
5362 + # DT_RUNPATH tag from executables and libraries. But doing so
5363 + # requires that you compile everything twice, which is a pain.
5364 + # So that behaviour is only enabled if SCOABSPATH is set to a
5365 + # non-empty value in the environment. Most likely only useful for
5366 + # creating official distributions of packages.
5367 + # This is a hack until libtool officially supports absolute path
5368 + # names for shared libraries.
5369 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5370 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5371 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5372 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5373 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
5374 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5375 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5376 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5377 + runpath_var='LD_RUN_PATH'
5379 + case $cc_basename in
5380 + CC*)
5381 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5382 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5383 + ;;
5384 + *)
5385 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5386 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5387 + ;;
5388 + esac
5389 + ;;
5390 + tandem*)
5391 + case $cc_basename in
5392 + NCC*)
5393 + # NonStop-UX NCC 3.20
5394 + # FIXME: insert proper C++ library support
5395 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5396 + ;;
5397 + *)
5398 + # FIXME: insert proper C++ library support
5399 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5400 + ;;
5401 + esac
5402 + ;;
5403 + vxworks*)
5404 + # FIXME: insert proper C++ library support
5405 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5406 + ;;
5407 + *)
5408 + # FIXME: insert proper C++ library support
5409 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5410 + ;;
5411 +esac
5412 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5413 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5415 +_LT_AC_TAGVAR(GCC, $1)="$GXX"
5416 +_LT_AC_TAGVAR(LD, $1)="$LD"
5418 +AC_LIBTOOL_POSTDEP_PREDEP($1)
5419 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
5420 +AC_LIBTOOL_PROG_CC_C_O($1)
5421 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5422 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
5423 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5424 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5426 +AC_LIBTOOL_CONFIG($1)
5428 +AC_LANG_POP
5429 +CC=$lt_save_CC
5430 +LDCXX=$LD
5431 +LD=$lt_save_LD
5432 +GCC=$lt_save_GCC
5433 +with_gnu_ldcxx=$with_gnu_ld
5434 +with_gnu_ld=$lt_save_with_gnu_ld
5435 +lt_cv_path_LDCXX=$lt_cv_path_LD
5436 +lt_cv_path_LD=$lt_save_path_LD
5437 +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
5438 +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
5439 +])# AC_LIBTOOL_LANG_CXX_CONFIG
5441 +# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
5442 +# ------------------------------------
5443 +# Figure out "hidden" library dependencies from verbose
5444 +# compiler output when linking a shared library.
5445 +# Parse the compiler output and extract the necessary
5446 +# objects, libraries and library flags.
5447 +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
5448 +dnl we can't use the lt_simple_compile_test_code here,
5449 +dnl because it contains code intended for an executable,
5450 +dnl not a library. It's possible we should let each
5451 +dnl tag define a new lt_????_link_test_code variable,
5452 +dnl but it's only used here...
5453 +ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
5454 +int a;
5455 +void foo (void) { a = 0; }
5456 +EOF
5457 +],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
5458 +class Foo
5460 +public:
5461 + Foo (void) { a = 0; }
5462 +private:
5463 + int a;
5465 +EOF
5466 +],[$1],[F77],[cat > conftest.$ac_ext <<EOF
5467 + subroutine foo
5468 + implicit none
5469 + integer*4 a
5470 + a=0
5471 + return
5472 + end
5473 +EOF
5474 +],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
5475 +public class foo {
5476 + private int a;
5477 + public void bar (void) {
5478 + a = 0;
5481 +EOF
5483 +dnl Parse the compiler output and extract the necessary
5484 +dnl objects, libraries and library flags.
5485 +if AC_TRY_EVAL(ac_compile); then
5486 + # Parse the compiler output and extract the necessary
5487 + # objects, libraries and library flags.
5489 + # Sentinel used to keep track of whether or not we are before
5490 + # the conftest object file.
5491 + pre_test_object_deps_done=no
5493 + # The `*' in the case matches for architectures that use `case' in
5494 + # $output_verbose_cmd can trigger glob expansion during the loop
5495 + # eval without this substitution.
5496 + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
5498 + for p in `eval $output_verbose_link_cmd`; do
5499 + case $p in
5501 + -L* | -R* | -l*)
5502 + # Some compilers place space between "-{L,R}" and the path.
5503 + # Remove the space.
5504 + if test $p = "-L" \
5505 + || test $p = "-R"; then
5506 + prev=$p
5507 + continue
5508 + else
5509 + prev=
5510 + fi
5512 + if test "$pre_test_object_deps_done" = no; then
5513 + case $p in
5514 + -L* | -R*)
5515 + # Internal compiler library paths should come after those
5516 + # provided the user. The postdeps already come after the
5517 + # user supplied libs so there is no need to process them.
5518 + if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
5519 + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
5520 + else
5521 + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
5522 + fi
5523 + ;;
5524 + # The "-l" case would never come before the object being
5525 + # linked, so don't bother handling this case.
5526 + esac
5527 + else
5528 + if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
5529 + _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
5530 + else
5531 + _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
5532 + fi
5533 + fi
5534 + ;;
5536 + *.$objext)
5537 + # This assumes that the test object file only shows up
5538 + # once in the compiler output.
5539 + if test "$p" = "conftest.$objext"; then
5540 + pre_test_object_deps_done=yes
5541 + continue
5542 + fi
5544 + if test "$pre_test_object_deps_done" = no; then
5545 + if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
5546 + _LT_AC_TAGVAR(predep_objects, $1)="$p"
5547 + else
5548 + _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
5549 + fi
5550 + else
5551 + if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
5552 + _LT_AC_TAGVAR(postdep_objects, $1)="$p"
5553 + else
5554 + _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
5555 + fi
5556 + fi
5557 + ;;
5559 + *) ;; # Ignore the rest.
5561 + esac
5562 + done
5564 + # Clean up.
5565 + rm -f a.out a.exe
5566 +else
5567 + echo "libtool.m4: error: problem compiling $1 test program"
5570 +$rm -f confest.$objext
5572 +# PORTME: override above test on systems where it is broken
5573 +ifelse([$1],[CXX],
5574 +[case $host_os in
5575 +interix3*)
5576 + # Interix 3.5 installs completely hosed .la files for C++, so rather than
5577 + # hack all around it, let's just trust "g++" to DTRT.
5578 + _LT_AC_TAGVAR(predep_objects,$1)=
5579 + _LT_AC_TAGVAR(postdep_objects,$1)=
5580 + _LT_AC_TAGVAR(postdeps,$1)=
5581 + ;;
5583 +solaris*)
5584 + case $cc_basename in
5585 + CC*)
5586 + # Adding this requires a known-good setup of shared libraries for
5587 + # Sun compiler versions before 5.6, else PIC objects from an old
5588 + # archive will be linked into the output, leading to subtle bugs.
5589 + _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
5590 + ;;
5591 + esac
5592 + ;;
5593 +esac
5596 +case " $_LT_AC_TAGVAR(postdeps, $1) " in
5597 +*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5598 +esac
5599 +])# AC_LIBTOOL_POSTDEP_PREDEP
5601 +# AC_LIBTOOL_LANG_F77_CONFIG
5602 +# --------------------------
5603 +# Ensure that the configuration vars for the C compiler are
5604 +# suitably defined. Those variables are subsequently used by
5605 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5606 +AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
5607 +AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
5608 +[AC_REQUIRE([AC_PROG_F77])
5609 +AC_LANG_PUSH(Fortran 77)
5611 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5612 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5613 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
5614 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5615 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5616 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
5617 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5618 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5619 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5620 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5621 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5622 +_LT_AC_TAGVAR(module_cmds, $1)=
5623 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5624 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5625 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5626 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
5627 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5628 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5630 +# Source file extension for f77 test sources.
5631 +ac_ext=f
5633 +# Object file extension for compiled f77 test sources.
5634 +objext=o
5635 +_LT_AC_TAGVAR(objext, $1)=$objext
5637 +# Code to be used in simple compile tests
5638 +lt_simple_compile_test_code=" subroutine t\n return\n end\n"
5640 +# Code to be used in simple link tests
5641 +lt_simple_link_test_code=" program t\n end\n"
5643 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5644 +_LT_AC_SYS_COMPILER
5646 +# save warnings/boilerplate of simple test code
5647 +_LT_COMPILER_BOILERPLATE
5648 +_LT_LINKER_BOILERPLATE
5650 +# Allow CC to be a program name with arguments.
5651 +lt_save_CC="$CC"
5652 +CC=${F77-"f77"}
5653 +compiler=$CC
5654 +_LT_AC_TAGVAR(compiler, $1)=$CC
5655 +_LT_CC_BASENAME([$compiler])
5657 +AC_MSG_CHECKING([if libtool supports shared libraries])
5658 +AC_MSG_RESULT([$can_build_shared])
5660 +AC_MSG_CHECKING([whether to build shared libraries])
5661 +test "$can_build_shared" = "no" && enable_shared=no
5663 +# On AIX, shared libraries and static libraries use the same namespace, and
5664 +# are all built from PIC.
5665 +case $host_os in
5666 +aix3*)
5667 + test "$enable_shared" = yes && enable_static=no
5668 + if test -n "$RANLIB"; then
5669 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
5670 + postinstall_cmds='$RANLIB $lib'
5671 + fi
5672 + ;;
5673 +aix4* | aix5*)
5674 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5675 + test "$enable_shared" = yes && enable_static=no
5676 + fi
5677 + ;;
5678 +esac
5679 +AC_MSG_RESULT([$enable_shared])
5681 +AC_MSG_CHECKING([whether to build static libraries])
5682 +# Make sure either enable_shared or enable_static is yes.
5683 +test "$enable_shared" = yes || enable_static=yes
5684 +AC_MSG_RESULT([$enable_static])
5686 +_LT_AC_TAGVAR(GCC, $1)="$G77"
5687 +_LT_AC_TAGVAR(LD, $1)="$LD"
5689 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
5690 +AC_LIBTOOL_PROG_CC_C_O($1)
5691 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5692 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
5693 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5694 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5696 +AC_LIBTOOL_CONFIG($1)
5698 +AC_LANG_POP
5699 +CC="$lt_save_CC"
5700 +])# AC_LIBTOOL_LANG_F77_CONFIG
5703 +# AC_LIBTOOL_LANG_GCJ_CONFIG
5704 +# --------------------------
5705 +# Ensure that the configuration vars for the C compiler are
5706 +# suitably defined. Those variables are subsequently used by
5707 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5708 +AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
5709 +AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
5710 +[AC_LANG_SAVE
5712 +# Source file extension for Java test sources.
5713 +ac_ext=java
5715 +# Object file extension for compiled Java test sources.
5716 +objext=o
5717 +_LT_AC_TAGVAR(objext, $1)=$objext
5719 +# Code to be used in simple compile tests
5720 +lt_simple_compile_test_code="class foo {}\n"
5722 +# Code to be used in simple link tests
5723 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
5725 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5726 +_LT_AC_SYS_COMPILER
5728 +# save warnings/boilerplate of simple test code
5729 +_LT_COMPILER_BOILERPLATE
5730 +_LT_LINKER_BOILERPLATE
5732 +# Allow CC to be a program name with arguments.
5733 +lt_save_CC="$CC"
5734 +CC=${GCJ-"gcj"}
5735 +compiler=$CC
5736 +_LT_AC_TAGVAR(compiler, $1)=$CC
5737 +_LT_CC_BASENAME([$compiler])
5739 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
5740 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5742 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5744 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
5745 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
5746 +AC_LIBTOOL_PROG_CC_C_O($1)
5747 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5748 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
5749 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5750 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5752 +AC_LIBTOOL_CONFIG($1)
5754 +AC_LANG_RESTORE
5755 +CC="$lt_save_CC"
5756 +])# AC_LIBTOOL_LANG_GCJ_CONFIG
5759 +# AC_LIBTOOL_LANG_RC_CONFIG
5760 +# -------------------------
5761 +# Ensure that the configuration vars for the Windows resource compiler are
5762 +# suitably defined. Those variables are subsequently used by
5763 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5764 +AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
5765 +AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
5766 +[AC_LANG_SAVE
5768 +# Source file extension for RC test sources.
5769 +ac_ext=rc
5771 +# Object file extension for compiled RC test sources.
5772 +objext=o
5773 +_LT_AC_TAGVAR(objext, $1)=$objext
5775 +# Code to be used in simple compile tests
5776 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
5778 +# Code to be used in simple link tests
5779 +lt_simple_link_test_code="$lt_simple_compile_test_code"
5781 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5782 +_LT_AC_SYS_COMPILER
5784 +# save warnings/boilerplate of simple test code
5785 +_LT_COMPILER_BOILERPLATE
5786 +_LT_LINKER_BOILERPLATE
5788 +# Allow CC to be a program name with arguments.
5789 +lt_save_CC="$CC"
5790 +CC=${RC-"windres"}
5791 +compiler=$CC
5792 +_LT_AC_TAGVAR(compiler, $1)=$CC
5793 +_LT_CC_BASENAME([$compiler])
5794 +_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
5796 +AC_LIBTOOL_CONFIG($1)
5798 +AC_LANG_RESTORE
5799 +CC="$lt_save_CC"
5800 +])# AC_LIBTOOL_LANG_RC_CONFIG
5803 +# AC_LIBTOOL_CONFIG([TAGNAME])
5804 +# ----------------------------
5805 +# If TAGNAME is not passed, then create an initial libtool script
5806 +# with a default configuration from the untagged config vars. Otherwise
5807 +# add code to config.status for appending the configuration named by
5808 +# TAGNAME from the matching tagged config vars.
5809 +AC_DEFUN([AC_LIBTOOL_CONFIG],
5810 +[# The else clause should only fire when bootstrapping the
5811 +# libtool distribution, otherwise you forgot to ship ltmain.sh
5812 +# with your package, and you will get complaints that there are
5813 +# no rules to generate ltmain.sh.
5814 +if test -f "$ltmain"; then
5815 + # See if we are running on zsh, and set the options which allow our commands through
5816 + # without removal of \ escapes.
5817 + if test -n "${ZSH_VERSION+set}" ; then
5818 + setopt NO_GLOB_SUBST
5819 + fi
5820 + # Now quote all the things that may contain metacharacters while being
5821 + # careful not to overquote the AC_SUBSTed values. We take copies of the
5822 + # variables and quote the copies for generation of the libtool script.
5823 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
5824 + SED SHELL STRIP \
5825 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5826 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5827 + deplibs_check_method reload_flag reload_cmds need_locks \
5828 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5829 + lt_cv_sys_global_symbol_to_c_name_address \
5830 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5831 + old_postinstall_cmds old_postuninstall_cmds \
5832 + _LT_AC_TAGVAR(compiler, $1) \
5833 + _LT_AC_TAGVAR(CC, $1) \
5834 + _LT_AC_TAGVAR(LD, $1) \
5835 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
5836 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
5837 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
5838 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
5839 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
5840 + _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
5841 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
5842 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
5843 + _LT_AC_TAGVAR(old_archive_cmds, $1) \
5844 + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
5845 + _LT_AC_TAGVAR(predep_objects, $1) \
5846 + _LT_AC_TAGVAR(postdep_objects, $1) \
5847 + _LT_AC_TAGVAR(predeps, $1) \
5848 + _LT_AC_TAGVAR(postdeps, $1) \
5849 + _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
5850 + _LT_AC_TAGVAR(archive_cmds, $1) \
5851 + _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
5852 + _LT_AC_TAGVAR(postinstall_cmds, $1) \
5853 + _LT_AC_TAGVAR(postuninstall_cmds, $1) \
5854 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
5855 + _LT_AC_TAGVAR(allow_undefined_flag, $1) \
5856 + _LT_AC_TAGVAR(no_undefined_flag, $1) \
5857 + _LT_AC_TAGVAR(export_symbols_cmds, $1) \
5858 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
5859 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
5860 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
5861 + _LT_AC_TAGVAR(hardcode_automatic, $1) \
5862 + _LT_AC_TAGVAR(module_cmds, $1) \
5863 + _LT_AC_TAGVAR(module_expsym_cmds, $1) \
5864 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5865 + _LT_AC_TAGVAR(exclude_expsyms, $1) \
5866 + _LT_AC_TAGVAR(include_expsyms, $1); do
5868 + case $var in
5869 + _LT_AC_TAGVAR(old_archive_cmds, $1) | \
5870 + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
5871 + _LT_AC_TAGVAR(archive_cmds, $1) | \
5872 + _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5873 + _LT_AC_TAGVAR(module_cmds, $1) | \
5874 + _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5875 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5876 + _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5877 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
5878 + postinstall_cmds | postuninstall_cmds | \
5879 + old_postinstall_cmds | old_postuninstall_cmds | \
5880 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5881 + # Double-quote double-evaled strings.
5882 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5883 + ;;
5884 + *)
5885 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5886 + ;;
5887 + esac
5888 + done
5890 + case $lt_echo in
5891 + *'\[$]0 --fallback-echo"')
5892 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5893 + ;;
5894 + esac
5896 +ifelse([$1], [],
5897 + [cfgfile="${ofile}T"
5898 + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5899 + $rm -f "$cfgfile"
5900 + AC_MSG_NOTICE([creating $ofile])],
5901 + [cfgfile="$ofile"])
5903 + cat <<__EOF__ >> "$cfgfile"
5904 +ifelse([$1], [],
5905 +[#! $SHELL
5907 +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5908 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5909 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5911 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
5912 +# Free Software Foundation, Inc.
5914 +# This file is part of GNU Libtool:
5915 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5917 +# This program is free software; you can redistribute it and/or modify
5918 +# it under the terms of the GNU General Public License as published by
5919 +# the Free Software Foundation; either version 2 of the License, or
5920 +# (at your option) any later version.
5922 +# This program is distributed in the hope that it will be useful, but
5923 +# WITHOUT ANY WARRANTY; without even the implied warranty of
5924 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5925 +# General Public License for more details.
5927 +# You should have received a copy of the GNU General Public License
5928 +# along with this program; if not, write to the Free Software
5929 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5931 +# As a special exception to the GNU General Public License, if you
5932 +# distribute this file as part of a program that contains a
5933 +# configuration script generated by Autoconf, you may include it under
5934 +# the same distribution terms that you use for the rest of that program.
5936 +# A sed program that does not truncate output.
5937 +SED=$lt_SED
5939 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5940 +Xsed="$SED -e 1s/^X//"
5942 +# The HP-UX ksh and POSIX shell print the target directory to stdout
5943 +# if CDPATH is set.
5944 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5946 +# The names of the tagged configurations supported by this script.
5947 +available_tags=
5949 +# ### BEGIN LIBTOOL CONFIG],
5950 +[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5952 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5954 +# Shell to use when invoking shell scripts.
5955 +SHELL=$lt_SHELL
5957 +# Whether or not to build shared libraries.
5958 +build_libtool_libs=$enable_shared
5960 +# Whether or not to build static libraries.
5961 +build_old_libs=$enable_static
5963 +# Whether or not to add -lc for building shared libraries.
5964 +build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5966 +# Whether or not to disallow shared libs when runtime libs are static
5967 +allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5969 +# Whether or not to optimize for fast installation.
5970 +fast_install=$enable_fast_install
5972 +# The host system.
5973 +host_alias=$host_alias
5974 +host=$host
5975 +host_os=$host_os
5977 +# The build system.
5978 +build_alias=$build_alias
5979 +build=$build
5980 +build_os=$build_os
5982 +# An echo program that does not interpret backslashes.
5983 +echo=$lt_echo
5985 +# The archiver.
5986 +AR=$lt_AR
5987 +AR_FLAGS=$lt_AR_FLAGS
5989 +# A C compiler.
5990 +LTCC=$lt_LTCC
5992 +# LTCC compiler flags.
5993 +LTCFLAGS=$lt_LTCFLAGS
5995 +# A language-specific compiler.
5996 +CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5998 +# Is the compiler the GNU C compiler?
5999 +with_gcc=$_LT_AC_TAGVAR(GCC, $1)
6001 +# An ERE matcher.
6002 +EGREP=$lt_EGREP
6004 +# The linker used to build libraries.
6005 +LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
6007 +# Whether we need hard or soft links.
6008 +LN_S=$lt_LN_S
6010 +# A BSD-compatible nm program.
6011 +NM=$lt_NM
6013 +# A symbol stripping program
6014 +STRIP=$lt_STRIP
6016 +# Used to examine libraries when file_magic_cmd begins "file"
6017 +MAGIC_CMD=$MAGIC_CMD
6019 +# Used on cygwin: DLL creation program.
6020 +DLLTOOL="$DLLTOOL"
6022 +# Used on cygwin: object dumper.
6023 +OBJDUMP="$OBJDUMP"
6025 +# Used on cygwin: assembler.
6026 +AS="$AS"
6028 +# The name of the directory that contains temporary libtool files.
6029 +objdir=$objdir
6031 +# How to create reloadable object files.
6032 +reload_flag=$lt_reload_flag
6033 +reload_cmds=$lt_reload_cmds
6035 +# How to pass a linker flag through the compiler.
6036 +wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6038 +# Object file suffix (normally "o").
6039 +objext="$ac_objext"
6041 +# Old archive suffix (normally "a").
6042 +libext="$libext"
6044 +# Shared library suffix (normally ".so").
6045 +shrext_cmds='$shrext_cmds'
6047 +# Executable file suffix (normally "").
6048 +exeext="$exeext"
6050 +# Additional compiler flags for building library objects.
6051 +pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6052 +pic_mode=$pic_mode
6054 +# What is the maximum length of a command?
6055 +max_cmd_len=$lt_cv_sys_max_cmd_len
6057 +# Does compiler simultaneously support -c and -o options?
6058 +compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
6060 +# Must we lock files when doing compilation?
6061 +need_locks=$lt_need_locks
6063 +# Do we need the lib prefix for modules?
6064 +need_lib_prefix=$need_lib_prefix
6066 +# Do we need a version for libraries?
6067 +need_version=$need_version
6069 +# Whether dlopen is supported.
6070 +dlopen_support=$enable_dlopen
6072 +# Whether dlopen of programs is supported.
6073 +dlopen_self=$enable_dlopen_self
6075 +# Whether dlopen of statically linked programs is supported.
6076 +dlopen_self_static=$enable_dlopen_self_static
6078 +# Compiler flag to prevent dynamic linking.
6079 +link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
6081 +# Compiler flag to turn off builtin functions.
6082 +no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
6084 +# Compiler flag to allow reflexive dlopens.
6085 +export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
6087 +# Compiler flag to generate shared objects directly from archives.
6088 +whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
6090 +# Compiler flag to generate thread-safe objects.
6091 +thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
6093 +# Library versioning type.
6094 +version_type=$version_type
6096 +# Format of library name prefix.
6097 +libname_spec=$lt_libname_spec
6099 +# List of archive names. First name is the real one, the rest are links.
6100 +# The last name is the one that the linker finds with -lNAME.
6101 +library_names_spec=$lt_library_names_spec
6103 +# The coded name of the library, if different from the real name.
6104 +soname_spec=$lt_soname_spec
6106 +# Commands used to build and install an old-style archive.
6107 +RANLIB=$lt_RANLIB
6108 +old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
6109 +old_postinstall_cmds=$lt_old_postinstall_cmds
6110 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
6112 +# Create an old-style archive from a shared archive.
6113 +old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
6115 +# Create a temporary old-style archive to link instead of a shared archive.
6116 +old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
6118 +# Commands used to build and install a shared archive.
6119 +archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
6120 +archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
6121 +postinstall_cmds=$lt_postinstall_cmds
6122 +postuninstall_cmds=$lt_postuninstall_cmds
6124 +# Commands used to build a loadable module (assumed same as above if empty)
6125 +module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
6126 +module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
6128 +# Commands to strip libraries.
6129 +old_striplib=$lt_old_striplib
6130 +striplib=$lt_striplib
6132 +# Dependencies to place before the objects being linked to create a
6133 +# shared library.
6134 +predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
6136 +# Dependencies to place after the objects being linked to create a
6137 +# shared library.
6138 +postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
6140 +# Dependencies to place before the objects being linked to create a
6141 +# shared library.
6142 +predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
6144 +# Dependencies to place after the objects being linked to create a
6145 +# shared library.
6146 +postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
6148 +# The library search path used internally by the compiler when linking
6149 +# a shared library.
6150 +compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
6152 +# Method to check whether dependent libraries are shared objects.
6153 +deplibs_check_method=$lt_deplibs_check_method
6155 +# Command to use when deplibs_check_method == file_magic.
6156 +file_magic_cmd=$lt_file_magic_cmd
6158 +# Flag that allows shared libraries with undefined symbols to be built.
6159 +allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
6161 +# Flag that forces no undefined symbols.
6162 +no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
6164 +# Commands used to finish a libtool library installation in a directory.
6165 +finish_cmds=$lt_finish_cmds
6167 +# Same as above, but a single script fragment to be evaled but not shown.
6168 +finish_eval=$lt_finish_eval
6170 +# Take the output of nm and produce a listing of raw symbols and C names.
6171 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
6173 +# Transform the output of nm in a proper C declaration
6174 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
6176 +# Transform the output of nm in a C name address pair
6177 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
6179 +# This is the shared library runtime path variable.
6180 +runpath_var=$runpath_var
6182 +# This is the shared library path variable.
6183 +shlibpath_var=$shlibpath_var
6185 +# Is shlibpath searched before the hard-coded library search path?
6186 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6188 +# How to hardcode a shared library path into an executable.
6189 +hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
6191 +# Whether we should hardcode library paths into libraries.
6192 +hardcode_into_libs=$hardcode_into_libs
6194 +# Flag to hardcode \$libdir into a binary during linking.
6195 +# This must work even if \$libdir does not exist.
6196 +hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
6198 +# If ld is used when linking, flag to hardcode \$libdir into
6199 +# a binary during linking. This must work even if \$libdir does
6200 +# not exist.
6201 +hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
6203 +# Whether we need a single -rpath flag with a separated argument.
6204 +hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
6206 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
6207 +# resulting binary.
6208 +hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
6210 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6211 +# resulting binary.
6212 +hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
6214 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6215 +# the resulting binary.
6216 +hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
6218 +# Set to yes if building a shared library automatically hardcodes DIR into the library
6219 +# and all subsequent libraries and executables linked against it.
6220 +hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
6222 +# Variables whose values should be saved in libtool wrapper scripts and
6223 +# restored at relink time.
6224 +variables_saved_for_relink="$variables_saved_for_relink"
6226 +# Whether libtool must link a program against all its dependency libraries.
6227 +link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
6229 +# Compile-time system search path for libraries
6230 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6232 +# Run-time system search path for libraries
6233 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6235 +# Fix the shell variable \$srcfile for the compiler.
6236 +fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
6238 +# Set to yes if exported symbols are required.
6239 +always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
6241 +# The commands to list exported symbols.
6242 +export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
6244 +# The commands to extract the exported symbol list from a shared archive.
6245 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
6247 +# Symbols that should not be listed in the preloaded symbols.
6248 +exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
6250 +# Symbols that must always be exported.
6251 +include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
6253 +ifelse([$1],[],
6254 +[# ### END LIBTOOL CONFIG],
6255 +[# ### END LIBTOOL TAG CONFIG: $tagname])
6257 +__EOF__
6259 +ifelse([$1],[], [
6260 + case $host_os in
6261 + aix3*)
6262 + cat <<\EOF >> "$cfgfile"
6264 +# AIX sometimes has problems with the GCC collect2 program. For some
6265 +# reason, if we set the COLLECT_NAMES environment variable, the problems
6266 +# vanish in a puff of smoke.
6267 +if test "X${COLLECT_NAMES+set}" != Xset; then
6268 + COLLECT_NAMES=
6269 + export COLLECT_NAMES
6271 +EOF
6272 + ;;
6273 + esac
6275 + # We use sed instead of cat because bash on DJGPP gets confused if
6276 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
6277 + # text mode, it properly converts lines to CR/LF. This bash problem
6278 + # is reportedly fixed, but why not run on old versions too?
6279 + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
6281 + mv -f "$cfgfile" "$ofile" || \
6282 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
6283 + chmod +x "$ofile"
6285 +else
6286 + # If there is no Makefile yet, we rely on a make rule to execute
6287 + # `config.status --recheck' to rerun these tests and create the
6288 + # libtool script then.
6289 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
6290 + if test -f "$ltmain_in"; then
6291 + test -f Makefile && make "$ltmain"
6292 + fi
6294 +])# AC_LIBTOOL_CONFIG
6297 +# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
6298 +# -------------------------------------------
6299 +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
6300 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
6302 +_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6304 +if test "$GCC" = yes; then
6305 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6307 + AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
6308 + lt_cv_prog_compiler_rtti_exceptions,
6309 + [-fno-rtti -fno-exceptions], [],
6310 + [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
6312 +])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
6315 +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6316 +# ---------------------------------
6317 +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
6318 +[AC_REQUIRE([AC_CANONICAL_HOST])
6319 +AC_REQUIRE([AC_PROG_NM])
6320 +AC_REQUIRE([AC_OBJEXT])
6321 +# Check for command to grab the raw symbol name followed by C symbol from nm.
6322 +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
6323 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
6325 +# These are sane defaults that work on at least a few old systems.
6326 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6328 +# Character class describing NM global symbol codes.
6329 +symcode='[[BCDEGRST]]'
6331 +# Regexp to match symbols that can be accessed directly from C.
6332 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
6334 +# Transform an extracted symbol line into a proper C declaration
6335 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6337 +# Transform an extracted symbol line into symbol name and symbol address
6338 +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6340 +# Define system-specific variables.
6341 +case $host_os in
6342 +aix*)
6343 + symcode='[[BCDT]]'
6344 + ;;
6345 +cygwin* | mingw* | pw32*)
6346 + symcode='[[ABCDGISTW]]'
6347 + ;;
6348 +hpux*) # Its linker distinguishes data from code symbols
6349 + if test "$host_cpu" = ia64; then
6350 + symcode='[[ABCDEGRST]]'
6351 + fi
6352 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6353 + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6354 + ;;
6355 +linux*)
6356 + if test "$host_cpu" = ia64; then
6357 + symcode='[[ABCDGIRSTW]]'
6358 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6359 + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6360 + fi
6361 + ;;
6362 +irix* | nonstopux*)
6363 + symcode='[[BCDEGRST]]'
6364 + ;;
6365 +osf*)
6366 + symcode='[[BCDEGQRST]]'
6367 + ;;
6368 +solaris*)
6369 + symcode='[[BDRT]]'
6370 + ;;
6371 +sco3.2v5*)
6372 + symcode='[[DT]]'
6373 + ;;
6374 +sysv4.2uw2*)
6375 + symcode='[[DT]]'
6376 + ;;
6377 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
6378 + symcode='[[ABDT]]'
6379 + ;;
6380 +sysv4)
6381 + symcode='[[DFNSTU]]'
6382 + ;;
6383 +esac
6385 +# Handle CRLF in mingw tool chain
6386 +opt_cr=
6387 +case $build_os in
6388 +mingw*)
6389 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6390 + ;;
6391 +esac
6393 +# If we're using GNU nm, then use its standard symbol codes.
6394 +case `$NM -V 2>&1` in
6395 +*GNU* | *'with BFD'*)
6396 + symcode='[[ABCDGIRSTW]]' ;;
6397 +esac
6399 +# Try without a prefix undercore, then with it.
6400 +for ac_symprfx in "" "_"; do
6402 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6403 + symxfrm="\\1 $ac_symprfx\\2 \\2"
6405 + # Write the raw and C identifiers.
6406 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6408 + # Check to see that the pipe works correctly.
6409 + pipe_works=no
6411 + rm -f conftest*
6412 + cat > conftest.$ac_ext <<EOF
6413 +#ifdef __cplusplus
6414 +extern "C" {
6415 +#endif
6416 +char nm_test_var;
6417 +void nm_test_func(){}
6418 +#ifdef __cplusplus
6420 +#endif
6421 +int main(){nm_test_var='a';nm_test_func();return(0);}
6422 +EOF
6424 + if AC_TRY_EVAL(ac_compile); then
6425 + # Now try to grab the symbols.
6426 + nlist=conftest.nm
6427 + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
6428 + # Try sorting and uniquifying the output.
6429 + if sort "$nlist" | uniq > "$nlist"T; then
6430 + mv -f "$nlist"T "$nlist"
6431 + else
6432 + rm -f "$nlist"T
6433 + fi
6435 + # Make sure that we snagged all the symbols we need.
6436 + if grep ' nm_test_var$' "$nlist" >/dev/null; then
6437 + if grep ' nm_test_func$' "$nlist" >/dev/null; then
6438 + cat <<EOF > conftest.$ac_ext
6439 +#ifdef __cplusplus
6440 +extern "C" {
6441 +#endif
6443 +EOF
6444 + # Now generate the symbol file.
6445 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6447 + cat <<EOF >> conftest.$ac_ext
6448 +#if defined (__STDC__) && __STDC__
6449 +# define lt_ptr_t void *
6450 +#else
6451 +# define lt_ptr_t char *
6452 +# define const
6453 +#endif
6455 +/* The mapping between symbol names and symbols. */
6456 +const struct {
6457 + const char *name;
6458 + lt_ptr_t address;
6460 +lt_preloaded_symbols[[]] =
6462 +EOF
6463 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6464 + cat <<\EOF >> conftest.$ac_ext
6465 + {0, (lt_ptr_t) 0}
6468 +#ifdef __cplusplus
6470 +#endif
6471 +EOF
6472 + # Now try linking the two files.
6473 + mv conftest.$ac_objext conftstm.$ac_objext
6474 + lt_save_LIBS="$LIBS"
6475 + lt_save_CFLAGS="$CFLAGS"
6476 + LIBS="conftstm.$ac_objext"
6477 + CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
6478 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
6479 + pipe_works=yes
6480 + fi
6481 + LIBS="$lt_save_LIBS"
6482 + CFLAGS="$lt_save_CFLAGS"
6483 + else
6484 + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
6485 + fi
6486 + else
6487 + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
6488 + fi
6489 + else
6490 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
6491 + fi
6492 + else
6493 + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
6494 + cat conftest.$ac_ext >&5
6495 + fi
6496 + rm -f conftest* conftst*
6498 + # Do not use the global_symbol_pipe unless it works.
6499 + if test "$pipe_works" = yes; then
6500 + break
6501 + else
6502 + lt_cv_sys_global_symbol_pipe=
6503 + fi
6504 +done
6506 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
6507 + lt_cv_sys_global_symbol_to_cdecl=
6509 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6510 + AC_MSG_RESULT(failed)
6511 +else
6512 + AC_MSG_RESULT(ok)
6514 +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6517 +# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
6518 +# ---------------------------------------
6519 +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
6520 +[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
6521 +_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6522 +_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
6524 +AC_MSG_CHECKING([for $compiler option to produce PIC])
6525 + ifelse([$1],[CXX],[
6526 + # C++ specific cases for pic, static, wl, etc.
6527 + if test "$GXX" = yes; then
6528 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6529 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6531 + case $host_os in
6532 + aix*)
6533 + # All AIX code is PIC.
6534 + if test "$host_cpu" = ia64; then
6535 + # AIX 5 now supports IA64 processor
6536 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6537 + fi
6538 + ;;
6539 + amigaos*)
6540 + # FIXME: we need at least 68020 code to build shared libraries, but
6541 + # adding the `-m68020' flag to GCC prevents building anything better,
6542 + # like `-m68040'.
6543 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6544 + ;;
6545 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6546 + # PIC is the default for these OSes.
6547 + ;;
6548 + mingw* | os2* | pw32*)
6549 + # This hack is so that the source file can tell whether it is being
6550 + # built for inclusion in a dll (and should export symbols for example).
6551 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6552 + ;;
6553 + darwin* | rhapsody*)
6554 + # PIC is the default on this platform
6555 + # Common symbols not allowed in MH_DYLIB files
6556 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6557 + ;;
6558 + *djgpp*)
6559 + # DJGPP does not support shared libraries at all
6560 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6561 + ;;
6562 + interix3*)
6563 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6564 + # Instead, we relocate shared libraries at runtime.
6565 + ;;
6566 + sysv4*MP*)
6567 + if test -d /usr/nec; then
6568 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6569 + fi
6570 + ;;
6571 + hpux*)
6572 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6573 + # not for PA HP-UX.
6574 + case $host_cpu in
6575 + hppa*64*|ia64*)
6576 + ;;
6577 + *)
6578 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6579 + ;;
6580 + esac
6581 + ;;
6582 + *)
6583 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6584 + ;;
6585 + esac
6586 + else
6587 + case $host_os in
6588 + aix4* | aix5*)
6589 + # All AIX code is PIC.
6590 + if test "$host_cpu" = ia64; then
6591 + # AIX 5 now supports IA64 processor
6592 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6593 + else
6594 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6595 + fi
6596 + ;;
6597 + chorus*)
6598 + case $cc_basename in
6599 + cxch68*)
6600 + # Green Hills C++ Compiler
6601 + # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
6602 + ;;
6603 + esac
6604 + ;;
6605 + darwin*)
6606 + # PIC is the default on this platform
6607 + # Common symbols not allowed in MH_DYLIB files
6608 + case $cc_basename in
6609 + xlc*)
6610 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6611 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6612 + ;;
6613 + esac
6614 + ;;
6615 + dgux*)
6616 + case $cc_basename in
6617 + ec++*)
6618 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6619 + ;;
6620 + ghcx*)
6621 + # Green Hills C++ Compiler
6622 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6623 + ;;
6624 + *)
6625 + ;;
6626 + esac
6627 + ;;
6628 + freebsd* | kfreebsd*-gnu | dragonfly*)
6629 + # FreeBSD uses GNU C++
6630 + ;;
6631 + hpux9* | hpux10* | hpux11*)
6632 + case $cc_basename in
6633 + CC*)
6634 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6635 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6636 + if test "$host_cpu" != ia64; then
6637 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6638 + fi
6639 + ;;
6640 + aCC*)
6641 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6642 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6643 + case $host_cpu in
6644 + hppa*64*|ia64*)
6645 + # +Z the default
6646 + ;;
6647 + *)
6648 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6649 + ;;
6650 + esac
6651 + ;;
6652 + *)
6653 + ;;
6654 + esac
6655 + ;;
6656 + interix*)
6657 + # This is c89, which is MS Visual C++ (no shared libs)
6658 + # Anyone wants to do a port?
6659 + ;;
6660 + irix5* | irix6* | nonstopux*)
6661 + case $cc_basename in
6662 + CC*)
6663 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6664 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6665 + # CC pic flag -KPIC is the default.
6666 + ;;
6667 + *)
6668 + ;;
6669 + esac
6670 + ;;
6671 + linux*)
6672 + case $cc_basename in
6673 + KCC*)
6674 + # KAI C++ Compiler
6675 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6676 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6677 + ;;
6678 + icpc* | ecpc*)
6679 + # Intel C++
6680 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6681 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6682 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6683 + ;;
6684 + pgCC*)
6685 + # Portland Group C++ compiler.
6686 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6687 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6688 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6689 + ;;
6690 + cxx*)
6691 + # Compaq C++
6692 + # Make sure the PIC flag is empty. It appears that all Alpha
6693 + # Linux and Compaq Tru64 Unix objects are PIC.
6694 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6695 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6696 + ;;
6697 + *)
6698 + ;;
6699 + esac
6700 + ;;
6701 + lynxos*)
6702 + ;;
6703 + m88k*)
6704 + ;;
6705 + mvs*)
6706 + case $cc_basename in
6707 + cxx*)
6708 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
6709 + ;;
6710 + *)
6711 + ;;
6712 + esac
6713 + ;;
6714 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6715 + ;;
6716 + osf3* | osf4* | osf5*)
6717 + case $cc_basename in
6718 + KCC*)
6719 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6720 + ;;
6721 + RCC*)
6722 + # Rational C++ 2.4.1
6723 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6724 + ;;
6725 + cxx*)
6726 + # Digital/Compaq C++
6727 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6728 + # Make sure the PIC flag is empty. It appears that all Alpha
6729 + # Linux and Compaq Tru64 Unix objects are PIC.
6730 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6731 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6732 + ;;
6733 + *)
6734 + ;;
6735 + esac
6736 + ;;
6737 + psos*)
6738 + ;;
6739 + solaris*)
6740 + case $cc_basename in
6741 + CC*)
6742 + # Sun C++ 4.2, 5.x and Centerline C++
6743 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6744 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6745 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6746 + ;;
6747 + gcx*)
6748 + # Green Hills C++ Compiler
6749 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6750 + ;;
6751 + *)
6752 + ;;
6753 + esac
6754 + ;;
6755 + sunos4*)
6756 + case $cc_basename in
6757 + CC*)
6758 + # Sun C++ 4.x
6759 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6760 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6761 + ;;
6762 + lcc*)
6763 + # Lucid
6764 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6765 + ;;
6766 + *)
6767 + ;;
6768 + esac
6769 + ;;
6770 + tandem*)
6771 + case $cc_basename in
6772 + NCC*)
6773 + # NonStop-UX NCC 3.20
6774 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6775 + ;;
6776 + *)
6777 + ;;
6778 + esac
6779 + ;;
6780 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6781 + case $cc_basename in
6782 + CC*)
6783 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6784 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6785 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6786 + ;;
6787 + esac
6788 + ;;
6789 + vxworks*)
6790 + ;;
6791 + *)
6792 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6793 + ;;
6794 + esac
6795 + fi
6798 + if test "$GCC" = yes; then
6799 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6800 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6802 + case $host_os in
6803 + aix*)
6804 + # All AIX code is PIC.
6805 + if test "$host_cpu" = ia64; then
6806 + # AIX 5 now supports IA64 processor
6807 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6808 + fi
6809 + ;;
6811 + amigaos*)
6812 + # FIXME: we need at least 68020 code to build shared libraries, but
6813 + # adding the `-m68020' flag to GCC prevents building anything better,
6814 + # like `-m68040'.
6815 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6816 + ;;
6818 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6819 + # PIC is the default for these OSes.
6820 + ;;
6822 + mingw* | pw32* | os2*)
6823 + # This hack is so that the source file can tell whether it is being
6824 + # built for inclusion in a dll (and should export symbols for example).
6825 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6826 + ;;
6828 + darwin* | rhapsody*)
6829 + # PIC is the default on this platform
6830 + # Common symbols not allowed in MH_DYLIB files
6831 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6832 + ;;
6834 + interix3*)
6835 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6836 + # Instead, we relocate shared libraries at runtime.
6837 + ;;
6839 + msdosdjgpp*)
6840 + # Just because we use GCC doesn't mean we suddenly get shared libraries
6841 + # on systems that don't support them.
6842 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6843 + enable_shared=no
6844 + ;;
6846 + sysv4*MP*)
6847 + if test -d /usr/nec; then
6848 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6849 + fi
6850 + ;;
6852 + hpux*)
6853 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6854 + # not for PA HP-UX.
6855 + case $host_cpu in
6856 + hppa*64*|ia64*)
6857 + # +Z the default
6858 + ;;
6859 + *)
6860 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6861 + ;;
6862 + esac
6863 + ;;
6865 + *)
6866 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6867 + ;;
6868 + esac
6869 + else
6870 + # PORTME Check for flag to pass linker flags through the system compiler.
6871 + case $host_os in
6872 + aix*)
6873 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6874 + if test "$host_cpu" = ia64; then
6875 + # AIX 5 now supports IA64 processor
6876 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6877 + else
6878 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6879 + fi
6880 + ;;
6881 + darwin*)
6882 + # PIC is the default on this platform
6883 + # Common symbols not allowed in MH_DYLIB files
6884 + case $cc_basename in
6885 + xlc*)
6886 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6887 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6888 + ;;
6889 + esac
6890 + ;;
6892 + mingw* | pw32* | os2*)
6893 + # This hack is so that the source file can tell whether it is being
6894 + # built for inclusion in a dll (and should export symbols for example).
6895 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6896 + ;;
6898 + hpux9* | hpux10* | hpux11*)
6899 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6900 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6901 + # not for PA HP-UX.
6902 + case $host_cpu in
6903 + hppa*64*|ia64*)
6904 + # +Z the default
6905 + ;;
6906 + *)
6907 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6908 + ;;
6909 + esac
6910 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
6911 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6912 + ;;
6914 + irix5* | irix6* | nonstopux*)
6915 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6916 + # PIC (with -KPIC) is the default.
6917 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6918 + ;;
6920 + newsos6)
6921 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6922 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6923 + ;;
6925 + linux*)
6926 + case $cc_basename in
6927 + icc* | ecc*)
6928 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6929 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6930 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6931 + ;;
6932 + pgcc* | pgf77* | pgf90* | pgf95*)
6933 + # Portland Group compilers (*not* the Pentium gcc compiler,
6934 + # which looks to be a dead project)
6935 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6936 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6937 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6938 + ;;
6939 + ccc*)
6940 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6941 + # All Alpha code is PIC.
6942 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6943 + ;;
6944 + esac
6945 + ;;
6947 + osf3* | osf4* | osf5*)
6948 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6949 + # All OSF/1 code is PIC.
6950 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6951 + ;;
6953 + solaris*)
6954 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6955 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6956 + case $cc_basename in
6957 + f77* | f90* | f95*)
6958 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6959 + *)
6960 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6961 + esac
6962 + ;;
6964 + sunos4*)
6965 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6966 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6967 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6968 + ;;
6970 + sysv4 | sysv4.2uw2* | sysv4.3*)
6971 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6972 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6973 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6974 + ;;
6976 + sysv4*MP*)
6977 + if test -d /usr/nec ;then
6978 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6979 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6980 + fi
6981 + ;;
6983 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6984 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6985 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6986 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6987 + ;;
6989 + unicos*)
6990 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6991 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6992 + ;;
6994 + uts4*)
6995 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6996 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6997 + ;;
6999 + *)
7000 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7001 + ;;
7002 + esac
7003 + fi
7005 +AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
7008 +# Check to make sure the PIC flag actually works.
7010 +if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
7011 + AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
7012 + _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
7013 + [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
7014 + [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
7015 + "" | " "*) ;;
7016 + *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
7017 + esac],
7018 + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7019 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
7021 +case $host_os in
7022 + # For platforms which do not support PIC, -DPIC is meaningless:
7023 + *djgpp*)
7024 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7025 + ;;
7026 + *)
7027 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
7028 + ;;
7029 +esac
7032 +# Check to make sure the static flag actually works.
7034 +wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
7035 +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
7036 + _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
7037 + $lt_tmp_static_flag,
7038 + [],
7039 + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
7043 +# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
7044 +# ------------------------------------
7045 +# See if the linker supports building shared libraries.
7046 +AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
7047 +[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
7048 +ifelse([$1],[CXX],[
7049 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7050 + case $host_os in
7051 + aix4* | aix5*)
7052 + # If we're using GNU nm, then we don't want the "-C" option.
7053 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
7054 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7055 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
7056 + else
7057 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
7058 + fi
7059 + ;;
7060 + pw32*)
7061 + _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
7062 + ;;
7063 + cygwin* | mingw*)
7064 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
7065 + ;;
7066 + kfreebsd*-gnu)
7067 + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
7068 + ;;
7069 + linux*)
7070 + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
7071 + ;;
7072 + *)
7073 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7074 + ;;
7075 + esac
7076 +],[
7077 + runpath_var=
7078 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
7079 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7080 + _LT_AC_TAGVAR(archive_cmds, $1)=
7081 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
7082 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
7083 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
7084 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
7085 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7086 + _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
7087 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7088 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7089 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7090 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
7091 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
7092 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7093 + _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
7094 + _LT_AC_TAGVAR(hardcode_automatic, $1)=no
7095 + _LT_AC_TAGVAR(module_cmds, $1)=
7096 + _LT_AC_TAGVAR(module_expsym_cmds, $1)=
7097 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
7098 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7099 + # include_expsyms should be a list of space-separated symbols to be *always*
7100 + # included in the symbol list
7101 + _LT_AC_TAGVAR(include_expsyms, $1)=
7102 + # exclude_expsyms can be an extended regexp of symbols to exclude
7103 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
7104 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7105 + # as well as any symbol that contains `d'.
7106 + _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
7107 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7108 + # platforms (ab)use it in PIC code, but their linkers get confused if
7109 + # the symbol is explicitly referenced. Since portable code cannot
7110 + # rely on this symbol name, it's probably fine to never include it in
7111 + # preloaded symbol tables.
7112 + extract_expsyms_cmds=
7113 + # Just being paranoid about ensuring that cc_basename is set.
7114 + _LT_CC_BASENAME([$compiler])
7115 + case $host_os in
7116 + cygwin* | mingw* | pw32*)
7117 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
7118 + # When not using gcc, we currently assume that we are using
7119 + # Microsoft Visual C++.
7120 + if test "$GCC" != yes; then
7121 + with_gnu_ld=no
7122 + fi
7123 + ;;
7124 + interix*)
7125 + # we just hope/assume this is gcc and not c89 (= MSVC++)
7126 + with_gnu_ld=yes
7127 + ;;
7128 + openbsd*)
7129 + with_gnu_ld=no
7130 + ;;
7131 + esac
7133 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
7134 + if test "$with_gnu_ld" = yes; then
7135 + # If archive_cmds runs LD, not CC, wlarc should be empty
7136 + wlarc='${wl}'
7138 + # Set some defaults for GNU ld with shared library support. These
7139 + # are reset later if shared libraries are not supported. Putting them
7140 + # here allows them to be overridden if necessary.
7141 + runpath_var=LD_RUN_PATH
7142 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
7143 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7144 + # ancient GNU ld didn't support --whole-archive et. al.
7145 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7146 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7147 + else
7148 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7149 + fi
7150 + supports_anon_versioning=no
7151 + case `$LD -v 2>/dev/null` in
7152 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
7153 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7154 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7155 + *\ 2.11.*) ;; # other 2.11 versions
7156 + *) supports_anon_versioning=yes ;;
7157 + esac
7159 + # See if GNU ld supports shared libraries.
7160 + case $host_os in
7161 + aix3* | aix4* | aix5*)
7162 + # On AIX/PPC, the GNU linker is very broken
7163 + if test "$host_cpu" != ia64; then
7164 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7165 + cat <<EOF 1>&2
7167 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7168 +*** to be unable to reliably create shared libraries on AIX.
7169 +*** Therefore, libtool is disabling shared libraries support. If you
7170 +*** really care for shared libraries, you may want to modify your PATH
7171 +*** so that a non-GNU linker is found, and then restart.
7173 +EOF
7174 + fi
7175 + ;;
7177 + amigaos*)
7178 + _LT_AC_TAGVAR(archive_cmds, $1)='$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)'
7179 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7180 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7182 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7183 + # that the semantics of dynamic libraries on AmigaOS, at least up
7184 + # to version 4, is to share data among multiple programs linked
7185 + # with the same dynamic library. Since this doesn't match the
7186 + # behavior of shared libraries on other platforms, we can't use
7187 + # them.
7188 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7189 + ;;
7191 + beos*)
7192 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7193 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7194 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7195 + # support --undefined. This deserves some investigation. FIXME
7196 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7197 + else
7198 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7199 + fi
7200 + ;;
7202 + cygwin* | mingw* | pw32*)
7203 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7204 + # as there is no search path for DLLs.
7205 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7206 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7207 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
7208 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7209 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
7211 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7212 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7213 + # If the export-symbols file already is a .def file (1st line
7214 + # is EXPORTS), use it as is; otherwise, prepend...
7215 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7216 + cp $export_symbols $output_objdir/$soname.def;
7217 + else
7218 + echo EXPORTS > $output_objdir/$soname.def;
7219 + cat $export_symbols >> $output_objdir/$soname.def;
7220 + fi~
7221 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7222 + else
7223 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7224 + fi
7225 + ;;
7227 + interix3*)
7228 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
7229 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7230 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7231 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7232 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7233 + # Instead, shared libraries are loaded at an image base (0x10000000 by
7234 + # default) and relocated if they conflict, which is a slow very memory
7235 + # consuming and fragmenting process. To avoid this, we pick a random,
7236 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7237 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7238 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7239 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7240 + ;;
7242 + linux*)
7243 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7244 + tmp_addflag=
7245 + case $cc_basename,$host_cpu in
7246 + pgcc*) # Portland Group C compiler
7247 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7248 + tmp_addflag=' $pic_flag'
7249 + ;;
7250 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7251 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7252 + tmp_addflag=' $pic_flag -Mnomain' ;;
7253 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7254 + tmp_addflag=' -i_dynamic' ;;
7255 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7256 + tmp_addflag=' -i_dynamic -nofor_main' ;;
7257 + ifc* | ifort*) # Intel Fortran compiler
7258 + tmp_addflag=' -nofor_main' ;;
7259 + esac
7260 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7262 + if test $supports_anon_versioning = yes; then
7263 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
7264 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7265 + $echo "local: *; };" >> $output_objdir/$libname.ver~
7266 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7267 + fi
7268 + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
7269 + else
7270 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7271 + fi
7272 + ;;
7274 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7275 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7276 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7277 + wlarc=
7278 + else
7279 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7280 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7281 + fi
7282 + ;;
7284 + solaris*)
7285 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7286 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7287 + cat <<EOF 1>&2
7289 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7290 +*** create shared libraries on Solaris systems. Therefore, libtool
7291 +*** is disabling shared libraries support. We urge you to upgrade GNU
7292 +*** binutils to release 2.9.1 or newer. Another option is to modify
7293 +*** your PATH or compiler configuration so that the native linker is
7294 +*** used, and then restart.
7296 +EOF
7297 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7298 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7299 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7300 + else
7301 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7302 + fi
7303 + ;;
7305 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7306 + case `$LD -v 2>&1` in
7307 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
7308 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7309 + cat <<_LT_EOF 1>&2
7311 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7312 +*** reliably create shared libraries on SCO systems. Therefore, libtool
7313 +*** is disabling shared libraries support. We urge you to upgrade GNU
7314 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7315 +*** your PATH or compiler configuration so that the native linker is
7316 +*** used, and then restart.
7318 +_LT_EOF
7319 + ;;
7320 + *)
7321 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7322 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7323 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7324 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7325 + else
7326 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7327 + fi
7328 + ;;
7329 + esac
7330 + ;;
7332 + sunos4*)
7333 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7334 + wlarc=
7335 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7336 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7337 + ;;
7339 + *)
7340 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7341 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7342 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7343 + else
7344 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7345 + fi
7346 + ;;
7347 + esac
7349 + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
7350 + runpath_var=
7351 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7352 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
7353 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7354 + fi
7355 + else
7356 + # PORTME fill in a description of your system's linker (not GNU ld)
7357 + case $host_os in
7358 + aix3*)
7359 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7360 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
7361 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7362 + # Note: this linker hardcodes the directories in LIBPATH if there
7363 + # are no directories specified by -L.
7364 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7365 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7366 + # Neither direct hardcoding nor static linking is supported with a
7367 + # broken collect2.
7368 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
7369 + fi
7370 + ;;
7372 + aix4* | aix5*)
7373 + if test "$host_cpu" = ia64; then
7374 + # On IA64, the linker does run time linking by default, so we don't
7375 + # have to do anything special.
7376 + aix_use_runtimelinking=no
7377 + exp_sym_flag='-Bexport'
7378 + no_entry_flag=""
7379 + else
7380 + # If we're using GNU nm, then we don't want the "-C" option.
7381 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
7382 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7383 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
7384 + else
7385 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
7386 + fi
7387 + aix_use_runtimelinking=no
7389 + # Test if we are trying to use run time linking or normal
7390 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7391 + # need to do runtime linking.
7392 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
7393 + for ld_flag in $LDFLAGS; do
7394 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7395 + aix_use_runtimelinking=yes
7396 + break
7397 + fi
7398 + done
7399 + ;;
7400 + esac
7402 + exp_sym_flag='-bexport'
7403 + no_entry_flag='-bnoentry'
7404 + fi
7406 + # When large executables or shared objects are built, AIX ld can
7407 + # have problems creating the table of contents. If linking a library
7408 + # or program results in "error TOC overflow" add -mminimal-toc to
7409 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7410 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7412 + _LT_AC_TAGVAR(archive_cmds, $1)=''
7413 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7414 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7415 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7417 + if test "$GCC" = yes; then
7418 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
7419 + # We only want to do this on AIX 4.2 and lower, the check
7420 + # below for broken collect2 doesn't work under 4.3+
7421 + collect2name=`${CC} -print-prog-name=collect2`
7422 + if test -f "$collect2name" && \
7423 + strings "$collect2name" | grep resolve_lib_name >/dev/null
7424 + then
7425 + # We have reworked collect2
7426 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7427 + else
7428 + # We have old collect2
7429 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
7430 + # It fails to find uninstalled libraries when the uninstalled
7431 + # path is not listed in the libpath. Setting hardcode_minus_L
7432 + # to unsupported forces relinking
7433 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7434 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7435 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7436 + fi
7437 + ;;
7438 + esac
7439 + shared_flag='-shared'
7440 + if test "$aix_use_runtimelinking" = yes; then
7441 + shared_flag="$shared_flag "'${wl}-G'
7442 + fi
7443 + else
7444 + # not using gcc
7445 + if test "$host_cpu" = ia64; then
7446 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7447 + # chokes on -Wl,-G. The following line is correct:
7448 + shared_flag='-G'
7449 + else
7450 + if test "$aix_use_runtimelinking" = yes; then
7451 + shared_flag='${wl}-G'
7452 + else
7453 + shared_flag='${wl}-bM:SRE'
7454 + fi
7455 + fi
7456 + fi
7458 + # It seems that -bexpall does not export symbols beginning with
7459 + # underscore (_), so it is better to generate a list of symbols to export.
7460 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
7461 + if test "$aix_use_runtimelinking" = yes; then
7462 + # Warning - without using the other runtime loading flags (-brtl),
7463 + # -berok will link without error, but may produce a broken library.
7464 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
7465 + # Determine the default libpath from the value encoded in an empty executable.
7466 + _LT_AC_SYS_LIBPATH_AIX
7467 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7468 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7469 + else
7470 + if test "$host_cpu" = ia64; then
7471 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7472 + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
7473 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7474 + else
7475 + # Determine the default libpath from the value encoded in an empty executable.
7476 + _LT_AC_SYS_LIBPATH_AIX
7477 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7478 + # Warning - without using the other run time loading flags,
7479 + # -berok will link without error, but may produce a broken library.
7480 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
7481 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
7482 + # Exported symbols can be pulled into shared objects from archives
7483 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
7484 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7485 + # This is similar to how AIX traditionally builds its shared libraries.
7486 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7487 + fi
7488 + fi
7489 + ;;
7491 + amigaos*)
7492 + _LT_AC_TAGVAR(archive_cmds, $1)='$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)'
7493 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7494 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7495 + # see comment about different semantics on the GNU ld section
7496 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7497 + ;;
7499 + bsdi[[45]]*)
7500 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
7501 + ;;
7503 + cygwin* | mingw* | pw32*)
7504 + # When not using gcc, we currently assume that we are using
7505 + # Microsoft Visual C++.
7506 + # hardcode_libdir_flag_spec is actually meaningless, as there is
7507 + # no search path for DLLs.
7508 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
7509 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7510 + # Tell ltmain to make .lib files, not .a files.
7511 + libext=lib
7512 + # Tell ltmain to make .dll files, not .so files.
7513 + shrext_cmds=".dll"
7514 + # FIXME: Setting linknames here is a bad hack.
7515 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7516 + # The linker will automatically build a .lib file if we build a DLL.
7517 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
7518 + # FIXME: Should let the user specify the lib program.
7519 + _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
7520 + _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
7521 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7522 + ;;
7524 + darwin* | rhapsody*)
7525 + case $host_os in
7526 + rhapsody* | darwin1.[[012]])
7527 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
7528 + ;;
7529 + *) # Darwin 1.3 on
7530 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7531 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7532 + else
7533 + case ${MACOSX_DEPLOYMENT_TARGET} in
7534 + 10.[[012]])
7535 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7536 + ;;
7537 + 10.*)
7538 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
7539 + ;;
7540 + esac
7541 + fi
7542 + ;;
7543 + esac
7544 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7545 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
7546 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
7547 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7548 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
7549 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7550 + if test "$GCC" = yes ; then
7551 + output_verbose_link_cmd='echo'
7552 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7553 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7554 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7555 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7556 + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7557 + else
7558 + case $cc_basename in
7559 + xlc*)
7560 + output_verbose_link_cmd='echo'
7561 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7562 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7563 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7564 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7565 + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7566 + ;;
7567 + *)
7568 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7569 + ;;
7570 + esac
7571 + fi
7572 + ;;
7574 + dgux*)
7575 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7576 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7577 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7578 + ;;
7580 + freebsd1*)
7581 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7582 + ;;
7584 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7585 + # support. Future versions do this automatically, but an explicit c++rt0.o
7586 + # does not break anything, and helps significantly (at the cost of a little
7587 + # extra space).
7588 + freebsd2.2*)
7589 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7590 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7591 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7592 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7593 + ;;
7595 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7596 + freebsd2*)
7597 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7598 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7599 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7600 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7601 + ;;
7603 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7604 + freebsd* | dragonfly*)
7605 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7606 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7607 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7608 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7609 + ;;
7611 + # GNU/kFreeBSD uses gcc -shared to do shared libraries.
7612 + kfreebsd*-gnu)
7613 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7614 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7615 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7616 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7617 + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
7618 + ;;
7620 + hpux9*)
7621 + if test "$GCC" = yes; then
7622 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7623 + else
7624 + _LT_AC_TAGVAR(archive_cmds, $1)='$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'
7625 + fi
7626 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7627 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7628 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7630 + # hardcode_minus_L: Not really in the search PATH,
7631 + # but as the default location of the library.
7632 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7633 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7634 + ;;
7636 + hpux10*)
7637 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7638 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7639 + else
7640 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7641 + fi
7642 + if test "$with_gnu_ld" = no; then
7643 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7644 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7646 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7647 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7649 + # hardcode_minus_L: Not really in the search PATH,
7650 + # but as the default location of the library.
7651 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7652 + fi
7653 + ;;
7655 + hpux11*)
7656 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7657 + case $host_cpu in
7658 + hppa*64*)
7659 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7660 + ;;
7661 + ia64*)
7662 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7663 + ;;
7664 + *)
7665 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7666 + ;;
7667 + esac
7668 + else
7669 + case $host_cpu in
7670 + hppa*64*)
7671 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7672 + ;;
7673 + ia64*)
7674 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7675 + ;;
7676 + *)
7677 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7678 + ;;
7679 + esac
7680 + fi
7681 + if test "$with_gnu_ld" = no; then
7682 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7683 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7685 + case $host_cpu in
7686 + hppa*64*|ia64*)
7687 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
7688 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
7689 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7690 + ;;
7691 + *)
7692 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7693 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7695 + # hardcode_minus_L: Not really in the search PATH,
7696 + # but as the default location of the library.
7697 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7698 + ;;
7699 + esac
7700 + fi
7701 + ;;
7703 + irix5* | irix6* | nonstopux*)
7704 + if test "$GCC" = yes; then
7705 + _LT_AC_TAGVAR(archive_cmds, $1)='$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'
7706 + else
7707 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7708 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
7709 + fi
7710 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7711 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7712 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7713 + ;;
7715 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7716 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7717 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7718 + else
7719 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7720 + fi
7721 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7722 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7723 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7724 + ;;
7726 - dnl *** For now the libtool support in intl/Makefile is not for real.
7727 - l=
7728 - AC_SUBST(l)
7729 + newsos6)
7730 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7731 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7732 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7733 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7734 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7735 + ;;
7737 - dnl Generate list of files to be processed by xgettext which will
7738 - dnl be included in po/Makefile.
7739 - test -d po || mkdir po
7740 - if test "x$srcdir" != "x."; then
7741 - if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7742 - posrcprefix="$srcdir/"
7743 - else
7744 - posrcprefix="../$srcdir/"
7745 - fi
7746 - else
7747 - posrcprefix="../"
7748 - fi
7749 - rm -f po/POTFILES
7750 - sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7751 - < $srcdir/po/POTFILES.in > po/POTFILES
7752 - ])
7753 + openbsd*)
7754 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7755 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7756 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7757 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7758 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7759 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7760 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7761 + else
7762 + case $host_os in
7763 + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
7764 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7765 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7766 + ;;
7767 + *)
7768 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7769 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7770 + ;;
7771 + esac
7772 + fi
7773 + ;;
7775 + os2*)
7776 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7777 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7778 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7779 + _LT_AC_TAGVAR(archive_cmds, $1)='$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'
7780 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7781 + ;;
7783 -# Search path for a program which passes the given test.
7784 -# Ulrich Drepper <drepper@cygnus.com>, 1996.
7786 -# This file can be copied and used freely without restrictions. It can
7787 -# be used in projects which are not available under the GNU Public License
7788 -# but which still want to provide support for the GNU gettext functionality.
7789 -# Please note that the actual code is *not* freely available.
7790 + osf3*)
7791 + if test "$GCC" = yes; then
7792 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7793 + _LT_AC_TAGVAR(archive_cmds, $1)='$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'
7794 + else
7795 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7796 + _LT_AC_TAGVAR(archive_cmds, $1)='$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'
7797 + fi
7798 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7799 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7800 + ;;
7802 -# serial 1
7803 + osf4* | osf5*) # as osf3* with the addition of -msym flag
7804 + if test "$GCC" = yes; then
7805 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7806 + _LT_AC_TAGVAR(archive_cmds, $1)='$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'
7807 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7808 + else
7809 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7810 + _LT_AC_TAGVAR(archive_cmds, $1)='$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'
7811 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7812 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7814 -dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
7815 -dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
7816 -AC_DEFUN(AM_PATH_PROG_WITH_TEST,
7817 -[# Extract the first word of "$2", so it can be a program name with args.
7818 -set dummy $2; ac_word=[$]2
7819 -AC_MSG_CHECKING([for $ac_word])
7820 -AC_CACHE_VAL(ac_cv_path_$1,
7821 -[case "[$]$1" in
7822 - /*)
7823 - ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
7824 - ;;
7825 - *)
7826 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7827 - for ac_dir in ifelse([$5], , $PATH, [$5]); do
7828 - test -z "$ac_dir" && ac_dir=.
7829 - if test -f $ac_dir/$ac_word; then
7830 - if [$3]; then
7831 - ac_cv_path_$1="$ac_dir/$ac_word"
7832 - break
7833 + # Both c and cxx compiler support -rpath directly
7834 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7836 - fi
7837 - done
7838 - IFS="$ac_save_ifs"
7839 -dnl If no 4th arg is given, leave the cache variable unset,
7840 -dnl so AC_PATH_PROGS will keep looking.
7841 -ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
7842 -])dnl
7843 - ;;
7844 -esac])dnl
7845 -$1="$ac_cv_path_$1"
7846 -if test -n "[$]$1"; then
7847 - AC_MSG_RESULT([$]$1)
7848 -else
7849 - AC_MSG_RESULT(no)
7851 -AC_SUBST($1)dnl
7853 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7854 + ;;
7856 -# Check whether LC_MESSAGES is available in <locale.h>.
7857 -# Ulrich Drepper <drepper@cygnus.com>, 1995.
7859 -# This file can be copied and used freely without restrictions. It can
7860 -# be used in projects which are not available under the GNU Public License
7861 -# but which still want to provide support for the GNU gettext functionality.
7862 -# Please note that the actual code is *not* freely available.
7863 + solaris*)
7864 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
7865 + if test "$GCC" = yes; then
7866 + wlarc='${wl}'
7867 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7868 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7869 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7870 + else
7871 + wlarc=''
7872 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7873 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7874 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7875 + fi
7876 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7877 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7878 + case $host_os in
7879 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7880 + *)
7881 + # The compiler driver will combine linker options so we
7882 + # cannot just pass the convience library names through
7883 + # without $wl, iff we do not link with $LD.
7884 + # Luckily, gcc supports the same syntax we need for Sun Studio.
7885 + # Supported since Solaris 2.6 (maybe 2.5.1?)
7886 + case $wlarc in
7887 + '')
7888 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
7889 + *)
7890 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7891 + esac ;;
7892 + esac
7893 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7894 + ;;
7896 -# serial 1
7897 + sunos4*)
7898 + if test "x$host_vendor" = xsequent; then
7899 + # Use $CC to link under sequent, because it throws in some extra .o
7900 + # files that make .init and .fini sections work.
7901 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7902 + else
7903 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7904 + fi
7905 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7906 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7907 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7908 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7909 + ;;
7911 -AC_DEFUN(AM_LC_MESSAGES,
7912 - [if test $ac_cv_header_locale_h = yes; then
7913 - AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
7914 - [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
7915 - am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
7916 - if test $am_cv_val_LC_MESSAGES = yes; then
7917 - AC_DEFINE(HAVE_LC_MESSAGES)
7918 - fi
7919 - fi])
7920 + sysv4)
7921 + case $host_vendor in
7922 + sni)
7923 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7924 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7925 + ;;
7926 + siemens)
7927 + ## LD is ld it makes a PLAMLIB
7928 + ## CC just makes a GrossModule.
7929 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7930 + _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7931 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
7932 + ;;
7933 + motorola)
7934 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7935 + _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7936 + ;;
7937 + esac
7938 + runpath_var='LD_RUN_PATH'
7939 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7940 + ;;
7942 -# Do all the work for Automake. This macro actually does too much --
7943 -# some checks are only needed if your package does certain things.
7944 -# But this isn't really a big deal.
7945 + sysv4.3*)
7946 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7947 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7948 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7949 + ;;
7951 -# serial 1
7952 + sysv4*MP*)
7953 + if test -d /usr/nec; then
7954 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7955 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7956 + runpath_var=LD_RUN_PATH
7957 + hardcode_runpath_var=yes
7958 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
7959 + fi
7960 + ;;
7962 -dnl Usage:
7963 -dnl AM_INIT_AUTOMAKE(package,version, [no-define])
7964 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
7965 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7966 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7967 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7968 + runpath_var='LD_RUN_PATH'
7970 + if test "$GCC" = yes; then
7971 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7972 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7973 + else
7974 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7975 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7976 + fi
7977 + ;;
7979 -AC_DEFUN(AM_INIT_AUTOMAKE,
7980 -[AC_REQUIRE([AC_PROG_INSTALL])
7981 -PACKAGE=[$1]
7982 -AC_SUBST(PACKAGE)
7983 -VERSION=[$2]
7984 -AC_SUBST(VERSION)
7985 -dnl test to see if srcdir already configured
7986 -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
7987 - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7989 -ifelse([$3],,
7990 -AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
7991 -AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
7992 -AC_REQUIRE([AM_SANITY_CHECK])
7993 -AC_REQUIRE([AC_ARG_PROGRAM])
7994 -dnl FIXME This is truly gross.
7995 -missing_dir=`cd $ac_aux_dir && pwd`
7996 -AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
7997 -AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
7998 -AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
7999 -AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
8000 -AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
8001 -AC_REQUIRE([AC_PROG_MAKE_SET])])
8002 + sysv5* | sco3.2v5* | sco5v6*)
8003 + # Note: We can NOT use -z defs as we might desire, because we do not
8004 + # link with -lc, and that would cause any symbols used from libc to
8005 + # always be unresolved, which means just about no library would
8006 + # ever link correctly. If we're not using GNU ld we use -z text
8007 + # though, which does catch some bad symbols but isn't as heavy-handed
8008 + # as -z defs.
8009 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
8010 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
8011 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8012 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8013 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8014 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
8015 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8016 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
8017 + runpath_var='LD_RUN_PATH'
8019 + if test "$GCC" = yes; then
8020 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8021 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8022 + else
8023 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8024 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8025 + fi
8026 + ;;
8029 -# Check to make sure that the build environment is sane.
8031 + uts4*)
8032 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8033 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8034 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8035 + ;;
8037 -AC_DEFUN(AM_SANITY_CHECK,
8038 -[AC_MSG_CHECKING([whether build environment is sane])
8039 -# Just in case
8040 -sleep 1
8041 -echo timestamp > conftestfile
8042 -# Do `set' in a subshell so we don't clobber the current shell's
8043 -# arguments. Must try -L first in case configure is actually a
8044 -# symlink; some systems play weird games with the mod time of symlinks
8045 -# (eg FreeBSD returns the mod time of the symlink's containing
8046 -# directory).
8047 -if (
8048 - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
8049 - if test "[$]*" = "X"; then
8050 - # -L didn't work.
8051 - set X `ls -t $srcdir/configure conftestfile`
8052 - fi
8053 - if test "[$]*" != "X $srcdir/configure conftestfile" \
8054 - && test "[$]*" != "X conftestfile $srcdir/configure"; then
8055 + *)
8056 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
8057 + ;;
8058 + esac
8059 + fi
8061 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
8062 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
8064 - # If neither matched, then we have a broken ls. This can happen
8065 - # if, for instance, CONFIG_SHELL is bash and it inherits a
8066 - # broken ls alias from the environment. This has actually
8067 - # happened. Such a system could not be considered "sane".
8068 - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
8069 -alias in your environment])
8070 - fi
8072 +# Do we need to explicitly link libc?
8074 +case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
8075 +x|xyes)
8076 + # Assume -lc should be added
8077 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
8079 + if test "$enable_shared" = yes && test "$GCC" = yes; then
8080 + case $_LT_AC_TAGVAR(archive_cmds, $1) in
8081 + *'~'*)
8082 + # FIXME: we may have to deal with multi-command sequences.
8083 + ;;
8084 + '$CC '*)
8085 + # Test whether the compiler implicitly links with -lc since on some
8086 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
8087 + # to ld, don't add -lc before -lgcc.
8088 + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
8089 + $rm conftest*
8090 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8092 + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
8093 + soname=conftest
8094 + lib=conftest
8095 + libobjs=conftest.$ac_objext
8096 + deplibs=
8097 + wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
8098 + pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
8099 + compiler_flags=-v
8100 + linker_flags=-v
8101 + verstring=
8102 + output_objdir=.
8103 + libname=conftest
8104 + lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
8105 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
8106 + if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
8107 + then
8108 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8109 + else
8110 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
8111 + fi
8112 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
8113 + else
8114 + cat conftest.err 1>&5
8115 + fi
8116 + $rm conftest*
8117 + AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
8118 + ;;
8119 + esac
8120 + fi
8121 + ;;
8122 +esac
8123 +])# AC_LIBTOOL_PROG_LD_SHLIBS
8125 - test "[$]2" = conftestfile
8127 -then
8128 - # Ok.
8130 -else
8131 - AC_MSG_ERROR([newly created file is older than distributed files!
8132 -Check your system clock])
8134 -rm -f conftest*
8135 -AC_MSG_RESULT(yes)])
8137 -dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
8138 -dnl The program must properly implement --version.
8139 -AC_DEFUN(AM_MISSING_PROG,
8140 -[AC_MSG_CHECKING(for working $2)
8141 -# Run test in a subshell; some versions of sh will print an error if
8142 -# an executable is not found, even if stderr is redirected.
8143 -# Redirect stdin to placate older versions of autoconf. Sigh.
8144 -if ($2 --version) < /dev/null > /dev/null 2>&1; then
8145 - $1=$2
8146 - AC_MSG_RESULT(found)
8147 -else
8148 - $1="$3/missing $2"
8149 - AC_MSG_RESULT(missing)
8151 -AC_SUBST($1)])
8152 +# _LT_AC_FILE_LTDLL_C
8153 +# -------------------
8154 +# Be careful that the start marker always follows a newline.
8155 +AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
8156 +# /* ltdll.c starts here */
8157 +# #define WIN32_LEAN_AND_MEAN
8158 +# #include <windows.h>
8159 +# #undef WIN32_LEAN_AND_MEAN
8160 +# #include <stdio.h>
8162 +# #ifndef __CYGWIN__
8163 +# # ifdef __CYGWIN32__
8164 +# # define __CYGWIN__ __CYGWIN32__
8165 +# # endif
8166 +# #endif
8168 +# #ifdef __cplusplus
8169 +# extern "C" {
8170 +# #endif
8171 +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8172 +# #ifdef __cplusplus
8173 +# }
8174 +# #endif
8176 +# #ifdef __CYGWIN__
8177 +# #include <cygwin/cygwin_dll.h>
8178 +# DECLARE_CYGWIN_DLL( DllMain );
8179 +# #endif
8180 +# HINSTANCE __hDllInstance_base;
8182 +# BOOL APIENTRY
8183 +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8184 +# {
8185 +# __hDllInstance_base = hInst;
8186 +# return TRUE;
8187 +# }
8188 +# /* ltdll.c ends here */
8189 +])# _LT_AC_FILE_LTDLL_C
8192 +# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
8193 +# ---------------------------------
8194 +AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
8197 +# old names
8198 +AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
8199 +AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8200 +AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8201 +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8202 +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8203 +AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
8204 +AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
8206 +# This is just to silence aclocal about the macro not being used
8207 +ifelse([AC_DISABLE_FAST_INSTALL])
8209 +AC_DEFUN([LT_AC_PROG_GCJ],
8210 +[AC_CHECK_TOOL(GCJ, gcj, no)
8211 + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
8212 + AC_SUBST(GCJFLAGS)
8215 -# Like AC_CONFIG_HEADER, but automatically create stamp file.
8216 +AC_DEFUN([LT_AC_PROG_RC],
8217 +[AC_CHECK_TOOL(RC, windres, no)
8220 -AC_DEFUN(AM_CONFIG_HEADER,
8221 -[AC_PREREQ([2.12])
8222 -AC_CONFIG_HEADER([$1])
8223 -dnl When config.status generates a header, we must update the stamp-h file.
8224 -dnl This file resides in the same directory as the config header
8225 -dnl that is generated. We must strip everything past the first ":",
8226 -dnl and everything past the last "/".
8227 -AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
8228 -ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
8229 -<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
8230 -<<am_indx=1
8231 -for am_file in <<$1>>; do
8232 - case " <<$>>CONFIG_HEADERS " in
8233 - *" <<$>>am_file "*<<)>>
8234 - echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
8235 - ;;
8236 - esac
8237 - am_indx=`expr "<<$>>am_indx" + 1`
8238 -done<<>>dnl>>)
8239 -changequote([,]))])
8240 +# NOTE: This macro has been submitted for inclusion into #
8241 +# GNU Autoconf as AC_PROG_SED. When it is available in #
8242 +# a released version of Autoconf we should remove this #
8243 +# macro and use it instead. #
8244 +# LT_AC_PROG_SED
8245 +# --------------
8246 +# Check for a fully-functional sed program, that truncates
8247 +# as few characters as possible. Prefer GNU sed if found.
8248 +AC_DEFUN([LT_AC_PROG_SED],
8249 +[AC_MSG_CHECKING([for a sed that does not truncate output])
8250 +AC_CACHE_VAL(lt_cv_path_SED,
8251 +[# Loop through the user's path and test for sed and gsed.
8252 +# Then use that list of sed's as ones to test for truncation.
8253 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254 +for as_dir in $PATH
8256 + IFS=$as_save_IFS
8257 + test -z "$as_dir" && as_dir=.
8258 + for lt_ac_prog in sed gsed; do
8259 + for ac_exec_ext in '' $ac_executable_extensions; do
8260 + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8261 + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8262 + fi
8263 + done
8264 + done
8265 +done
8266 +lt_ac_max=0
8267 +lt_ac_count=0
8268 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
8269 +# along with /bin/sed that truncates output.
8270 +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8271 + test ! -f $lt_ac_sed && continue
8272 + cat /dev/null > conftest.in
8273 + lt_ac_count=0
8274 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8275 + # Check for GNU sed and select it if it is found.
8276 + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8277 + lt_cv_path_SED=$lt_ac_sed
8278 + break
8279 + fi
8280 + while true; do
8281 + cat conftest.in conftest.in >conftest.tmp
8282 + mv conftest.tmp conftest.in
8283 + cp conftest.in conftest.nl
8284 + echo >>conftest.nl
8285 + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8286 + cmp -s conftest.out conftest.nl || break
8287 + # 10000 chars as input seems more than enough
8288 + test $lt_ac_count -gt 10 && break
8289 + lt_ac_count=`expr $lt_ac_count + 1`
8290 + if test $lt_ac_count -gt $lt_ac_max; then
8291 + lt_ac_max=$lt_ac_count
8292 + lt_cv_path_SED=$lt_ac_sed
8293 + fi
8294 + done
8295 +done
8297 +SED=$lt_cv_path_SED
8298 +AC_MSG_RESULT([$SED])
8301 # Add --enable-maintainer-mode option to configure.
8302 # From Jim Meyering
8304 # serial 1
8306 -AC_DEFUN(AM_MAINTAINER_MODE,
8307 +AC_DEFUN([AM_MAINTAINER_MODE],
8308 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
8309 dnl maintainer-mode is disabled by default
8310 AC_ARG_ENABLE(maintainer-mode,
8311 @@ -962,7 +7844,7 @@
8313 # Define a conditional.
8315 -AC_DEFUN(AM_CONDITIONAL,
8316 +AC_DEFUN([AM_CONDITIONAL],
8317 [AC_SUBST($1_TRUE)
8318 AC_SUBST($1_FALSE)
8319 if $2; then
8320 @@ -991,7 +7873,7 @@
8321 # program @code{ansi2knr}, which comes with Ghostscript.
8322 # @end defmac
8324 -AC_DEFUN(AM_PROG_CC_STDC,
8325 +AC_DEFUN([AM_PROG_CC_STDC],
8326 [AC_REQUIRE([AC_PROG_CC])
8327 AC_BEFORE([$0], [AC_C_INLINE])
8328 AC_BEFORE([$0], [AC_C_CONST])
8329 @@ -1258,3 +8140,160 @@
8330 rm -f conf.glibtest
8333 +# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
8335 +# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
8337 +# This program is free software; you can redistribute it and/or modify
8338 +# it under the terms of the GNU General Public License as published by
8339 +# the Free Software Foundation; either version 2 of the License, or
8340 +# (at your option) any later version.
8342 +# This program is distributed in the hope that it will be useful, but
8343 +# WITHOUT ANY WARRANTY; without even the implied warranty of
8344 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8345 +# General Public License for more details.
8347 +# You should have received a copy of the GNU General Public License
8348 +# along with this program; if not, write to the Free Software
8349 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8351 +# As a special exception to the GNU General Public License, if you
8352 +# distribute this file as part of a program that contains a
8353 +# configuration script generated by Autoconf, you may include it under
8354 +# the same distribution terms that you use for the rest of that program.
8356 +# PKG_PROG_PKG_CONFIG([MIN-VERSION])
8357 +# ----------------------------------
8358 +AC_DEFUN([PKG_PROG_PKG_CONFIG],
8359 +[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
8360 +m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
8361 +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
8362 +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8363 + AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
8365 +if test -n "$PKG_CONFIG"; then
8366 + _pkg_min_version=m4_default([$1], [0.9.0])
8367 + AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
8368 + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8369 + AC_MSG_RESULT([yes])
8370 + else
8371 + AC_MSG_RESULT([no])
8372 + PKG_CONFIG=""
8373 + fi
8375 +fi[]dnl
8376 +])# PKG_PROG_PKG_CONFIG
8378 +# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
8380 +# Check to see whether a particular set of modules exists. Similar
8381 +# to PKG_CHECK_MODULES(), but does not set variables or print errors.
8384 +# Similar to PKG_CHECK_MODULES, make sure that the first instance of
8385 +# this or PKG_CHECK_MODULES is called, or make sure to call
8386 +# PKG_CHECK_EXISTS manually
8387 +# --------------------------------------------------------------
8388 +AC_DEFUN([PKG_CHECK_EXISTS],
8389 +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
8390 +if test -n "$PKG_CONFIG" && \
8391 + AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
8392 + m4_ifval([$2], [$2], [:])
8393 +m4_ifvaln([$3], [else
8394 + $3])dnl
8395 +fi])
8398 +# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
8399 +# ---------------------------------------------
8400 +m4_define([_PKG_CONFIG],
8401 +[if test -n "$PKG_CONFIG"; then
8402 + if test -n "$$1"; then
8403 + pkg_cv_[]$1="$$1"
8404 + else
8405 + PKG_CHECK_EXISTS([$3],
8406 + [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
8407 + [pkg_failed=yes])
8408 + fi
8409 +else
8410 + pkg_failed=untried
8411 +fi[]dnl
8412 +])# _PKG_CONFIG
8414 +# _PKG_SHORT_ERRORS_SUPPORTED
8415 +# -----------------------------
8416 +AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
8417 +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
8418 +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8419 + _pkg_short_errors_supported=yes
8420 +else
8421 + _pkg_short_errors_supported=no
8422 +fi[]dnl
8423 +])# _PKG_SHORT_ERRORS_SUPPORTED
8426 +# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
8427 +# [ACTION-IF-NOT-FOUND])
8430 +# Note that if there is a possibility the first call to
8431 +# PKG_CHECK_MODULES might not happen, you should be sure to include an
8432 +# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
8435 +# --------------------------------------------------------------
8436 +AC_DEFUN([PKG_CHECK_MODULES],
8437 +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
8438 +AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
8439 +AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
8441 +pkg_failed=no
8442 +AC_MSG_CHECKING([for $1])
8444 +_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
8445 +_PKG_CONFIG([$1][_LIBS], [libs], [$2])
8447 +m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
8448 +and $1[]_LIBS to avoid the need to call pkg-config.
8449 +See the pkg-config man page for more details.])
8451 +if test $pkg_failed = yes; then
8452 + _PKG_SHORT_ERRORS_SUPPORTED
8453 + if test $_pkg_short_errors_supported = yes; then
8454 + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
8455 + else
8456 + $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
8457 + fi
8458 + # Put the nasty error message in config.log where it belongs
8459 + echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
8461 + ifelse([$4], , [AC_MSG_ERROR(dnl
8462 +[Package requirements ($2) were not met:
8464 +$$1_PKG_ERRORS
8466 +Consider adjusting the PKG_CONFIG_PATH environment variable if you
8467 +installed software in a non-standard prefix.
8469 +_PKG_TEXT
8470 +])],
8471 + [$4])
8472 +elif test $pkg_failed = untried; then
8473 + ifelse([$4], , [AC_MSG_FAILURE(dnl
8474 +[The pkg-config script could not be found or is too old. Make sure it
8475 +is in your PATH or set the PKG_CONFIG environment variable to the full
8476 +path to pkg-config.
8478 +_PKG_TEXT
8480 +To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
8481 + [$4])
8482 +else
8483 + $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
8484 + $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
8485 + AC_MSG_RESULT([yes])
8486 + ifelse([$3], , :, [$3])
8487 +fi[]dnl
8488 +])# PKG_CHECK_MODULES
8490 diff -urN gtk+-1.2.10.orig/config.h.in gtk+-1.2.10/config.h.in
8491 --- gtk+-1.2.10.orig/config.h.in 2001-02-27 00:49:58.000000000 -0700
8492 +++ gtk+-1.2.10/config.h.in 2006-07-09 02:29:44.000000000 -0600
8493 @@ -1,59 +1,19 @@
8494 -/* config.h.in. Generated automatically from configure.in by autoheader. */
8495 +/* config.h.in. Generated from configure.in by autoheader. */
8496 +/* acconfig.h
8497 + This file is in the public domain.
8499 + Descriptive text for the C preprocessor macros that
8500 + the distributed Autoconf macros can define.
8501 + No software package will use all of them; autoheader copies the ones
8502 + your configure.in uses into your configuration header file templates.
8504 + The entries are in sort -df order: alphabetical, case insensitive,
8505 + ignoring punctuation (such as underscores). Although this order
8506 + can split up related entries, it makes it easier to check whether
8507 + a given entry is in the file.
8509 -/* Define if using alloca.c. */
8510 -#undef C_ALLOCA
8512 -/* Define to empty if the keyword does not work. */
8513 -#undef const
8515 -/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
8516 - This function is required for alloca.c support on those systems. */
8517 -#undef CRAY_STACKSEG_END
8519 -/* Define to `int' if <sys/types.h> doesn't define. */
8520 -#undef gid_t
8522 -/* Define if you have alloca, as a function or macro. */
8523 -#undef HAVE_ALLOCA
8525 -/* Define if you have <alloca.h> and it should be used (not on Ultrix). */
8526 -#undef HAVE_ALLOCA_H
8528 -/* Define if you have a working `mmap' system call. */
8529 -#undef HAVE_MMAP
8531 -/* Define as __inline if that's what the C compiler calls it. */
8532 -#undef inline
8534 -/* Define to `long' if <sys/types.h> doesn't define. */
8535 -#undef off_t
8537 -/* Define if you need to in order for stat and other things to work. */
8538 -#undef _POSIX_SOURCE
8540 -/* Define as the return type of signal handlers (int or void). */
8541 -#undef RETSIGTYPE
8543 -/* Define to `unsigned' if <sys/types.h> doesn't define. */
8544 -#undef size_t
8546 -/* If using the C implementation of alloca, define if you know the
8547 - direction of stack growth for your system; otherwise it will be
8548 - automatically deduced at run-time.
8549 - STACK_DIRECTION > 0 => grows toward higher addresses
8550 - STACK_DIRECTION < 0 => grows toward lower addresses
8551 - STACK_DIRECTION = 0 => direction of growth unknown
8552 - */
8553 -#undef STACK_DIRECTION
8555 -/* Define if you have the ANSI C header files. */
8556 -#undef STDC_HEADERS
8558 -/* Define to `int' if <sys/types.h> doesn't define. */
8559 -#undef uid_t
8561 -/* Define if the X Window System is missing or not being used. */
8562 -#undef X_DISPLAY_MISSING
8563 + Leave the following blank line there!! Autoheader needs it. */
8566 /* Other stuff */
8567 #undef ENABLE_NLS
8568 @@ -72,6 +32,8 @@
8570 #undef NO_FD_SET
8572 +#undef RESOURCE_BASE
8574 /* Define to use X11R6 additions to XIM */
8575 #undef USE_X11R6_XIM
8577 @@ -86,77 +48,122 @@
8578 /* Define as the return type of signal handlers (int or void). */
8579 #undef RETSIGTYPE
8581 -/* Define if you have the __argz_count function. */
8582 -#undef HAVE___ARGZ_COUNT
8583 +/* Most machines will be happy with int or void. IRIX requires '...' */
8584 +#undef SIGNAL_ARG_TYPE
8586 -/* Define if you have the __argz_next function. */
8587 -#undef HAVE___ARGZ_NEXT
8588 +/* #undef PACKAGE */
8589 +/* #undef VERSION */
8591 -/* Define if you have the __argz_stringify function. */
8592 -#undef HAVE___ARGZ_STRINGIFY
8594 +/* Leave that blank line there!! Autoheader needs it.
8595 + If you're adding to this file, keep in mind:
8596 + The entries are in sort -df order: alphabetical, case insensitive,
8597 + ignoring punctuation (such as underscores). */
8599 +/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
8600 + systems. This function is required for `alloca.c' support on those systems.
8601 + */
8602 +#undef CRAY_STACKSEG_END
8604 +/* Define to 1 if using `alloca.c'. */
8605 +#undef C_ALLOCA
8607 +/* Define to 1 if you have `alloca', as a function or macro. */
8608 +#undef HAVE_ALLOCA
8610 -/* Define if you have the dcgettext function. */
8611 +/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
8612 + */
8613 +#undef HAVE_ALLOCA_H
8615 +/* Define to 1 if you have the <argz.h> header file. */
8616 +#undef HAVE_ARGZ_H
8618 +/* Define if the wctype function is broken */
8619 +#undef HAVE_BROKEN_WCTYPE
8621 +/* Define to 1 if you have the `dcgettext' function. */
8622 #undef HAVE_DCGETTEXT
8624 -/* Define if you have the getcwd function. */
8625 +/* Define to 1 if you have the `getcwd' function. */
8626 #undef HAVE_GETCWD
8628 -/* Define if you have the getpagesize function. */
8629 +/* Define to 1 if you have the `getpagesize' function. */
8630 #undef HAVE_GETPAGESIZE
8632 -/* Define if you have the getresuid function. */
8633 +/* Define to 1 if you have the `getresuid' function. */
8634 #undef HAVE_GETRESUID
8636 -/* Define if you have the munmap function. */
8637 +/* Define to 1 if you have the <inttypes.h> header file. */
8638 +#undef HAVE_INTTYPES_H
8640 +/* Define to 1 if you have the `i' library (-li). */
8641 +#undef HAVE_LIBI
8643 +/* Define to 1 if you have the <limits.h> header file. */
8644 +#undef HAVE_LIMITS_H
8646 +/* Define to 1 if you have the <locale.h> header file. */
8647 +#undef HAVE_LOCALE_H
8649 +/* Define to 1 if you have the <malloc.h> header file. */
8650 +#undef HAVE_MALLOC_H
8652 +/* Define to 1 if you have the <memory.h> header file. */
8653 +#undef HAVE_MEMORY_H
8655 +/* Define to 1 if you have a working `mmap' system call. */
8656 +#undef HAVE_MMAP
8658 +/* Define to 1 if you have the `munmap' function. */
8659 #undef HAVE_MUNMAP
8661 -/* Define if you have the putenv function. */
8662 +/* Define to 1 if you have the <nl_types.h> header file. */
8663 +#undef HAVE_NL_TYPES_H
8665 +/* Define to 1 if you have the `putenv' function. */
8666 #undef HAVE_PUTENV
8668 -/* Define if you have the setenv function. */
8669 +/* Define to 1 if you have the `setenv' function. */
8670 #undef HAVE_SETENV
8672 -/* Define if you have the setlocale function. */
8673 +/* Define to 1 if you have the `setlocale' function. */
8674 #undef HAVE_SETLOCALE
8676 -/* Define if you have the stpcpy function. */
8677 +/* Define to 1 if you have the <stdint.h> header file. */
8678 +#undef HAVE_STDINT_H
8680 +/* Define to 1 if you have the <stdlib.h> header file. */
8681 +#undef HAVE_STDLIB_H
8683 +/* Define to 1 if you have the `stpcpy' function. */
8684 #undef HAVE_STPCPY
8686 -/* Define if you have the strcasecmp function. */
8687 +/* Define to 1 if you have the `strcasecmp' function. */
8688 #undef HAVE_STRCASECMP
8690 -/* Define if you have the strchr function. */
8691 +/* Define to 1 if you have the `strchr' function. */
8692 #undef HAVE_STRCHR
8694 -/* Define if you have the strdup function. */
8695 +/* Define to 1 if you have the `strdup' function. */
8696 #undef HAVE_STRDUP
8698 -/* Define if you have the <argz.h> header file. */
8699 -#undef HAVE_ARGZ_H
8701 -/* Define if you have the <limits.h> header file. */
8702 -#undef HAVE_LIMITS_H
8703 +/* Define to 1 if you have the <strings.h> header file. */
8704 +#undef HAVE_STRINGS_H
8706 -/* Define if you have the <locale.h> header file. */
8707 -#undef HAVE_LOCALE_H
8709 -/* Define if you have the <malloc.h> header file. */
8710 -#undef HAVE_MALLOC_H
8712 -/* Define if you have the <nl_types.h> header file. */
8713 -#undef HAVE_NL_TYPES_H
8715 -/* Define if you have the <string.h> header file. */
8716 +/* Define to 1 if you have the <string.h> header file. */
8717 #undef HAVE_STRING_H
8719 -/* Define if you have the <sys/param.h> header file. */
8720 +/* Define to 1 if you have the <sys/param.h> header file. */
8721 #undef HAVE_SYS_PARAM_H
8723 -/* Define if you have the <unistd.h> header file. */
8724 -#undef HAVE_UNISTD_H
8725 +/* Define to 1 if you have the <sys/stat.h> header file. */
8726 +#undef HAVE_SYS_STAT_H
8728 -/* Define if you have the i library (-li). */
8729 -#undef HAVE_LIBI
8730 +/* Define to 1 if you have the <sys/types.h> header file. */
8731 +#undef HAVE_SYS_TYPES_H
8733 +/* Define to 1 if you have the <unistd.h> header file. */
8734 +#undef HAVE_UNISTD_H
8736 /* Define if wchar.h exists */
8737 #undef HAVE_WCHAR_H
8738 @@ -164,6 +171,70 @@
8739 /* Define if wctype.h exists */
8740 #undef HAVE_WCTYPE_H
8742 -/* Define if the wctype function is broken */
8743 -#undef HAVE_BROKEN_WCTYPE
8744 +/* Define to 1 if you have the `__argz_count' function. */
8745 +#undef HAVE___ARGZ_COUNT
8747 +/* Define to 1 if you have the `__argz_next' function. */
8748 +#undef HAVE___ARGZ_NEXT
8750 +/* Define to 1 if you have the `__argz_stringify' function. */
8751 +#undef HAVE___ARGZ_STRINGIFY
8753 +/* Name of package */
8754 +#undef PACKAGE
8756 +/* Define to the address where bug reports for this package should be sent. */
8757 +#undef PACKAGE_BUGREPORT
8759 +/* Define to the full name of this package. */
8760 +#undef PACKAGE_NAME
8762 +/* Define to the full name and version of this package. */
8763 +#undef PACKAGE_STRING
8765 +/* Define to the one symbol short name of this package. */
8766 +#undef PACKAGE_TARNAME
8768 +/* Define to the version of this package. */
8769 +#undef PACKAGE_VERSION
8771 +/* Define as the return type of signal handlers (`int' or `void'). */
8772 +#undef RETSIGTYPE
8774 +/* If using the C implementation of alloca, define if you know the
8775 + direction of stack growth for your system; otherwise it will be
8776 + automatically deduced at run-time.
8777 + STACK_DIRECTION > 0 => grows toward higher addresses
8778 + STACK_DIRECTION < 0 => grows toward lower addresses
8779 + STACK_DIRECTION = 0 => direction of growth unknown */
8780 +#undef STACK_DIRECTION
8782 +/* Define to 1 if you have the ANSI C header files. */
8783 +#undef STDC_HEADERS
8785 +/* Version number of package */
8786 +#undef VERSION
8788 +/* Define to 1 if the X Window System is missing or not being used. */
8789 +#undef X_DISPLAY_MISSING
8791 +/* Define to empty if `const' does not conform to ANSI C. */
8792 +#undef const
8794 +/* Define to `int' if <sys/types.h> doesn't define. */
8795 +#undef gid_t
8797 +/* Define to `__inline__' or `__inline' if that's what the C compiler
8798 + calls it, or to nothing if 'inline' is not supported under any name. */
8799 +#ifndef __cplusplus
8800 +#undef inline
8801 +#endif
8803 +/* Define to `long' if <sys/types.h> does not define. */
8804 +#undef off_t
8806 +/* Define to `unsigned' if <sys/types.h> does not define. */
8807 +#undef size_t
8809 +/* Define to `int' if <sys/types.h> doesn't define. */
8810 +#undef uid_t
8811 diff -urN gtk+-1.2.10.orig/configure gtk+-1.2.10/configure
8812 --- gtk+-1.2.10.orig/configure 2001-03-28 14:11:45.000000000 -0700
8813 +++ gtk+-1.2.10/configure 2006-07-09 02:29:47.000000000 -0600
8814 @@ -1,16 +1,245 @@
8815 #! /bin/sh
8817 # Guess values for system-dependent variables and create Makefiles.
8818 -# Generated automatically using autoconf version 2.13
8819 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8820 +# Generated by GNU Autoconf 2.59.
8822 +# Copyright (C) 2003 Free Software Foundation, Inc.
8823 # This configure script is free software; the Free Software Foundation
8824 # gives unlimited permission to copy, distribute and modify it.
8825 +## --------------------- ##
8826 +## M4sh Initialization. ##
8827 +## --------------------- ##
8829 +# Be Bourne compatible
8830 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8831 + emulate sh
8832 + NULLCMD=:
8833 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8834 + # is contrary to our usage. Disable this feature.
8835 + alias -g '${1+"$@"}'='"$@"'
8836 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8837 + set -o posix
8839 +DUALCASE=1; export DUALCASE # for MKS sh
8841 +# Support unset when possible.
8842 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8843 + as_unset=unset
8844 +else
8845 + as_unset=false
8849 +# Work around bugs in pre-3.0 UWIN ksh.
8850 +$as_unset ENV MAIL MAILPATH
8851 +PS1='$ '
8852 +PS2='> '
8853 +PS4='+ '
8855 +# NLS nuisances.
8856 +for as_var in \
8857 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8858 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8859 + LC_TELEPHONE LC_TIME
8861 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8862 + eval $as_var=C; export $as_var
8863 + else
8864 + $as_unset $as_var
8865 + fi
8866 +done
8868 +# Required to use basename.
8869 +if expr a : '\(a\)' >/dev/null 2>&1; then
8870 + as_expr=expr
8871 +else
8872 + as_expr=false
8875 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8876 + as_basename=basename
8877 +else
8878 + as_basename=false
8882 +# Name of the executable.
8883 +as_me=`$as_basename "$0" ||
8884 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8885 + X"$0" : 'X\(//\)$' \| \
8886 + X"$0" : 'X\(/\)$' \| \
8887 + . : '\(.\)' 2>/dev/null ||
8888 +echo X/"$0" |
8889 + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8890 + /^X\/\(\/\/\)$/{ s//\1/; q; }
8891 + /^X\/\(\/\).*/{ s//\1/; q; }
8892 + s/.*/./; q'`
8895 +# PATH needs CR, and LINENO needs CR and PATH.
8896 +# Avoid depending upon Character Ranges.
8897 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8898 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8899 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8900 +as_cr_digits='0123456789'
8901 +as_cr_alnum=$as_cr_Letters$as_cr_digits
8903 +# The user is always right.
8904 +if test "${PATH_SEPARATOR+set}" != set; then
8905 + echo "#! /bin/sh" >conf$$.sh
8906 + echo "exit 0" >>conf$$.sh
8907 + chmod +x conf$$.sh
8908 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8909 + PATH_SEPARATOR=';'
8910 + else
8911 + PATH_SEPARATOR=:
8912 + fi
8913 + rm -f conf$$.sh
8917 + as_lineno_1=$LINENO
8918 + as_lineno_2=$LINENO
8919 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8920 + test "x$as_lineno_1" != "x$as_lineno_2" &&
8921 + test "x$as_lineno_3" = "x$as_lineno_2" || {
8922 + # Find who we are. Look in the path if we contain no path at all
8923 + # relative or not.
8924 + case $0 in
8925 + *[\\/]* ) as_myself=$0 ;;
8926 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927 +for as_dir in $PATH
8929 + IFS=$as_save_IFS
8930 + test -z "$as_dir" && as_dir=.
8931 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8932 +done
8934 + ;;
8935 + esac
8936 + # We did not find ourselves, most probably we were run as `sh COMMAND'
8937 + # in which case we are not to be found in the path.
8938 + if test "x$as_myself" = x; then
8939 + as_myself=$0
8940 + fi
8941 + if test ! -f "$as_myself"; then
8942 + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
8943 + { (exit 1); exit 1; }; }
8944 + fi
8945 + case $CONFIG_SHELL in
8946 + '')
8947 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8948 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8950 + IFS=$as_save_IFS
8951 + test -z "$as_dir" && as_dir=.
8952 + for as_base in sh bash ksh sh5; do
8953 + case $as_dir in
8954 + /*)
8955 + if ("$as_dir/$as_base" -c '
8956 + as_lineno_1=$LINENO
8957 + as_lineno_2=$LINENO
8958 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8959 + test "x$as_lineno_1" != "x$as_lineno_2" &&
8960 + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8961 + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8962 + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8963 + CONFIG_SHELL=$as_dir/$as_base
8964 + export CONFIG_SHELL
8965 + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8966 + fi;;
8967 + esac
8968 + done
8969 +done
8971 + esac
8973 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8974 + # uniformly replaced by the line number. The first 'sed' inserts a
8975 + # line-number line before each line; the second 'sed' does the real
8976 + # work. The second script uses 'N' to pair each line-number line
8977 + # with the numbered line, and appends trailing '-' during
8978 + # substitution so that $LINENO is not a special case at line end.
8979 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8980 + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8981 + sed '=' <$as_myself |
8982 + sed '
8984 + s,$,-,
8985 + : loop
8986 + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8987 + t loop
8988 + s,-$,,
8989 + s,^['$as_cr_digits']*\n,,
8990 + ' >$as_me.lineno &&
8991 + chmod +x $as_me.lineno ||
8992 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8993 + { (exit 1); exit 1; }; }
8995 + # Don't try to exec as it changes $[0], causing all sort of problems
8996 + # (the dirname of $[0] is not the place where we might find the
8997 + # original and so on. Autoconf is especially sensible to this).
8998 + . ./$as_me.lineno
8999 + # Exit status is that of the last command.
9000 + exit
9004 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9005 + *c*,-n*) ECHO_N= ECHO_C='
9006 +' ECHO_T=' ' ;;
9007 + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9008 + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9009 +esac
9011 +if expr a : '\(a\)' >/dev/null 2>&1; then
9012 + as_expr=expr
9013 +else
9014 + as_expr=false
9017 +rm -f conf$$ conf$$.exe conf$$.file
9018 +echo >conf$$.file
9019 +if ln -s conf$$.file conf$$ 2>/dev/null; then
9020 + # We could just check for DJGPP; but this test a) works b) is more generic
9021 + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9022 + if test -f conf$$.exe; then
9023 + # Don't use ln at all; we don't have any links
9024 + as_ln_s='cp -p'
9025 + else
9026 + as_ln_s='ln -s'
9027 + fi
9028 +elif ln conf$$.file conf$$ 2>/dev/null; then
9029 + as_ln_s=ln
9030 +else
9031 + as_ln_s='cp -p'
9033 +rm -f conf$$ conf$$.exe conf$$.file
9035 +if mkdir -p . 2>/dev/null; then
9036 + as_mkdir_p=:
9037 +else
9038 + test -d ./-p && rmdir ./-p
9039 + as_mkdir_p=false
9042 +as_executable_p="test -f"
9044 +# Sed expression to map a string onto a valid CPP name.
9045 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9047 +# Sed expression to map a string onto a valid variable name.
9048 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9051 +# IFS
9052 +# We need space, tab and new line, in precisely that order.
9053 +as_nl='
9055 +IFS=" $as_nl"
9057 +# CDPATH.
9058 +$as_unset CDPATH
9060 -# Defaults:
9061 -ac_help=
9062 -ac_default_prefix=/usr/local
9063 -# Any additions from configure.in:
9065 # Making releases:
9066 # GTK_MICRO_VERSION += 1;
9067 @@ -26,66 +255,246 @@
9068 GTK_INTERFACE_AGE=1
9069 GTK_BINARY_AGE=10
9070 GTK_VERSION=$GTK_MAJOR_VERSION.$GTK_MINOR_VERSION.$GTK_MICRO_VERSION
9071 -ac_help="$ac_help
9072 - --enable-shared[=PKGS] build shared libraries [default=yes]"
9073 -ac_help="$ac_help
9074 - --enable-static[=PKGS] build static libraries [default=yes]"
9075 -ac_help="$ac_help
9076 - --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
9077 -ac_help="$ac_help
9078 - --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
9079 -ac_help="$ac_help
9080 - --disable-libtool-lock avoid locking (might break parallel builds)"
9081 -ac_help="$ac_help
9082 - --enable-maintainer-mode enable make rules and dependencies not useful
9083 - (and sometimes confusing) to the casual installer"
9086 +# Check that we are running under the correct shell.
9087 +SHELL=${CONFIG_SHELL-/bin/sh}
9089 +case X$ECHO in
9090 +X*--fallback-echo)
9091 + # Remove one level of quotation (which was required for Make).
9092 + ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
9093 + ;;
9094 +esac
9096 +echo=${ECHO-echo}
9097 +if test "X$1" = X--no-reexec; then
9098 + # Discard the --no-reexec flag, and continue.
9099 + shift
9100 +elif test "X$1" = X--fallback-echo; then
9101 + # Avoid inline document here, it may be left over
9103 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
9104 + # Yippee, $echo works!
9106 +else
9107 + # Restart under the correct shell.
9108 + exec $SHELL "$0" --no-reexec ${1+"$@"}
9111 +if test "X$1" = X--fallback-echo; then
9112 + # used as fallback echo
9113 + shift
9114 + cat <<EOF
9116 +EOF
9117 + exit 0
9120 +# The HP-UX ksh and POSIX shell print the target directory to stdout
9121 +# if CDPATH is set.
9122 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9124 +if test -z "$ECHO"; then
9125 +if test "X${echo_test_string+set}" != Xset; then
9126 +# find a string as large as possible, as long as the shell can cope with it
9127 + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
9128 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
9129 + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
9130 + echo_test_string=`eval $cmd` &&
9131 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
9132 + then
9133 + break
9134 + fi
9135 + done
9138 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
9139 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
9140 + test "X$echo_testing_string" = "X$echo_test_string"; then
9142 +else
9143 + # The Solaris, AIX, and Digital Unix default echo programs unquote
9144 + # backslashes. This makes it impossible to quote backslashes using
9145 + # echo "$something" | sed 's/\\/\\\\/g'
9147 + # So, first we look for a working echo in the user's PATH.
9149 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9150 + for dir in $PATH /usr/ucb; do
9151 + IFS="$lt_save_ifs"
9152 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
9153 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
9154 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
9155 + test "X$echo_testing_string" = "X$echo_test_string"; then
9156 + echo="$dir/echo"
9157 + break
9158 + fi
9159 + done
9160 + IFS="$lt_save_ifs"
9162 + if test "X$echo" = Xecho; then
9163 + # We didn't find a better echo, so look for alternatives.
9164 + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
9165 + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
9166 + test "X$echo_testing_string" = "X$echo_test_string"; then
9167 + # This shell has a builtin print -r that does the trick.
9168 + echo='print -r'
9169 + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
9170 + test "X$CONFIG_SHELL" != X/bin/ksh; then
9171 + # If we have ksh, try running configure again with it.
9172 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9173 + export ORIGINAL_CONFIG_SHELL
9174 + CONFIG_SHELL=/bin/ksh
9175 + export CONFIG_SHELL
9176 + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
9177 + else
9178 + # Try using printf.
9179 + echo='printf %s\n'
9180 + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
9181 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
9182 + test "X$echo_testing_string" = "X$echo_test_string"; then
9183 + # Cool, printf works
9185 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
9186 + test "X$echo_testing_string" = 'X\t' &&
9187 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
9188 + test "X$echo_testing_string" = "X$echo_test_string"; then
9189 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
9190 + export CONFIG_SHELL
9191 + SHELL="$CONFIG_SHELL"
9192 + export SHELL
9193 + echo="$CONFIG_SHELL $0 --fallback-echo"
9194 + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
9195 + test "X$echo_testing_string" = 'X\t' &&
9196 + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
9197 + test "X$echo_testing_string" = "X$echo_test_string"; then
9198 + echo="$CONFIG_SHELL $0 --fallback-echo"
9199 + else
9200 + # maybe with a smaller string...
9201 + prev=:
9203 + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
9204 + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
9205 + then
9206 + break
9207 + fi
9208 + prev="$cmd"
9209 + done
9211 + if test "$prev" != 'sed 50q "$0"'; then
9212 + echo_test_string=`eval $prev`
9213 + export echo_test_string
9214 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
9215 + else
9216 + # Oops. We lost completely, so just stick with echo.
9217 + echo=echo
9218 + fi
9219 + fi
9220 + fi
9221 + fi
9225 +# Copy echo and quote the copy suitably for passing to libtool from
9226 +# the Makefile, instead of quoting the original, which is used later.
9227 +ECHO=$echo
9228 +if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
9229 + ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
9235 +tagnames=${tagnames+${tagnames},}CXX
9237 +tagnames=${tagnames+${tagnames},}F77
9239 if test `expr $GTK_MINOR_VERSION \% 2` = 1 ; then
9240 debug_default=yes
9241 else
9242 debug_default=minimum
9244 -ac_help="$ac_help
9245 - --enable-debug=[no/minimum/yes] turn on debugging [default=$debug_default]"
9246 -ac_help="$ac_help
9247 - --enable-shm support shared memory if available [default=yes]"
9248 -ac_help="$ac_help
9249 - --enable-ansi turn on strict ansi [default=no]"
9250 -ac_help="$ac_help
9251 - --with-glib=DIR Use uninstalled copy of glib"
9252 -ac_help="$ac_help
9253 - --enable-xim support XIM [default=yes]"
9254 -ac_help="$ac_help
9255 - --disable-xim-inst does not use xim instantiate callback"
9256 -ac_help="$ac_help
9257 - --disable-rebuilds disable all source autogeneration rules"
9258 -ac_help="$ac_help
9259 - --with-locale=LOCALE locale name you want to use "
9260 -ac_help="$ac_help
9261 - --with-xinput=[no/gxi/xfree] support XInput "
9262 -ac_help="$ac_help
9263 - --with-native-locale=[yes/no] Use native locale support [default=no]"
9264 -ac_help="$ac_help
9265 - --disable-nls do not use Native Language Support"
9266 -ac_help="$ac_help
9267 - --with-catgets use catgets functions if available"
9268 -ac_help="$ac_help
9269 - --with-glib-prefix=PFX Prefix where GLIB is installed (optional)"
9270 -ac_help="$ac_help
9271 - --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)"
9272 -ac_help="$ac_help
9273 - --disable-glibtest Do not try to compile and run a test GLIB program"
9274 -ac_help="$ac_help
9275 - --with-x use the X Window System"
9277 +# Name of the host.
9278 +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
9279 +# so uname gets run too.
9280 +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
9282 +exec 6>&1
9285 +# Initializations.
9287 +ac_default_prefix=/usr/local
9288 +ac_config_libobj_dir=.
9289 +cross_compiling=no
9290 +subdirs=
9291 +MFLAGS=
9292 +MAKEFLAGS=
9293 +SHELL=${CONFIG_SHELL-/bin/sh}
9295 +# Maximum number of lines to put in a shell here document.
9296 +# This variable seems obsolete. It should probably be removed, and
9297 +# only ac_max_sed_lines should be used.
9298 +: ${ac_max_here_lines=38}
9300 +# Identity of this package.
9301 +PACKAGE_NAME=
9302 +PACKAGE_TARNAME=
9303 +PACKAGE_VERSION=
9304 +PACKAGE_STRING=
9305 +PACKAGE_BUGREPORT=
9307 +ac_unique_file="gdk/gdktypes.h"
9308 +# Factoring default headers for most tests.
9309 +ac_includes_default="\
9310 +#include <stdio.h>
9311 +#if HAVE_SYS_TYPES_H
9312 +# include <sys/types.h>
9313 +#endif
9314 +#if HAVE_SYS_STAT_H
9315 +# include <sys/stat.h>
9316 +#endif
9317 +#if STDC_HEADERS
9318 +# include <stdlib.h>
9319 +# include <stddef.h>
9320 +#else
9321 +# if HAVE_STDLIB_H
9322 +# include <stdlib.h>
9323 +# endif
9324 +#endif
9325 +#if HAVE_STRING_H
9326 +# if !STDC_HEADERS && HAVE_MEMORY_H
9327 +# include <memory.h>
9328 +# endif
9329 +# include <string.h>
9330 +#endif
9331 +#if HAVE_STRINGS_H
9332 +# include <strings.h>
9333 +#endif
9334 +#if HAVE_INTTYPES_H
9335 +# include <inttypes.h>
9336 +#else
9337 +# if HAVE_STDINT_H
9338 +# include <stdint.h>
9339 +# endif
9340 +#endif
9341 +#if HAVE_UNISTD_H
9342 +# include <unistd.h>
9343 +#endif"
9345 +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 GTK_MAJOR_VERSION GTK_MINOR_VERSION GTK_MICRO_VERSION GTK_INTERFACE_AGE GTK_BINARY_AGE GTK_VERSION LT_RELEASE LT_CURRENT LT_REVISION LT_AGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT AWK PERL INDENT REBUILD STRIP_DUMMY STRIP_BEGIN STRIP_END ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT GENCAT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l gtklocaledir GLIB_CONFIG GLIB_CFLAGS GLIB_LIBS glib_cflags glib_libs glib_thread_cflags glib_thread_libs GLIB_DEPLIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PKG_CONFIG ac_pt_PKG_CONFIG x_cflags x_includes x_ldflags x_libs xinput_progs GDK_WLIBS GTK_DEBUG_FLAGS GTK_XIM_FLAGS GTK_LOCALE_FLAGS LIBOBJS LTLIBOBJS'
9346 +ac_subst_files=''
9348 # Initialize some variables set by options.
9349 +ac_init_help=
9350 +ac_init_version=false
9351 # The variables have the same names as the options, with
9352 # dashes changed to underlines.
9353 -build=NONE
9354 -cache_file=./config.cache
9355 +cache_file=/dev/null
9356 exec_prefix=NONE
9357 -host=NONE
9358 no_create=
9359 -nonopt=NONE
9360 no_recursion=
9361 prefix=NONE
9362 program_prefix=NONE
9363 @@ -94,10 +503,15 @@
9364 silent=
9365 site=
9366 srcdir=
9367 -target=NONE
9368 verbose=
9369 x_includes=NONE
9370 x_libraries=NONE
9372 +# Installation directory options.
9373 +# These are left unexpanded so users can "make install exec_prefix=/foo"
9374 +# and all the variables that are supposed to be based on exec_prefix
9375 +# by default will actually change.
9376 +# Use braces instead of parens because sh, perl, etc. also accept them.
9377 bindir='${exec_prefix}/bin'
9378 sbindir='${exec_prefix}/sbin'
9379 libexecdir='${exec_prefix}/libexec'
9380 @@ -111,17 +525,9 @@
9381 infodir='${prefix}/info'
9382 mandir='${prefix}/man'
9384 -# Initialize some other variables.
9385 -subdirs=
9386 -MFLAGS= MAKEFLAGS=
9387 -SHELL=${CONFIG_SHELL-/bin/sh}
9388 -# Maximum number of lines to put in a shell here document.
9389 -ac_max_here_lines=12
9391 ac_prev=
9392 for ac_option
9395 # If the previous option needs an argument, assign it.
9396 if test -n "$ac_prev"; then
9397 eval "$ac_prev=\$ac_option"
9398 @@ -129,59 +535,59 @@
9399 continue
9402 - case "$ac_option" in
9403 - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
9404 - *) ac_optarg= ;;
9405 - esac
9406 + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
9408 # Accept the important Cygnus configure options, so we can diagnose typos.
9410 - case "$ac_option" in
9411 + case $ac_option in
9413 -bindir | --bindir | --bindi | --bind | --bin | --bi)
9414 ac_prev=bindir ;;
9415 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
9416 - bindir="$ac_optarg" ;;
9417 + bindir=$ac_optarg ;;
9419 -build | --build | --buil | --bui | --bu)
9420 - ac_prev=build ;;
9421 + ac_prev=build_alias ;;
9422 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
9423 - build="$ac_optarg" ;;
9424 + build_alias=$ac_optarg ;;
9426 -cache-file | --cache-file | --cache-fil | --cache-fi \
9427 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9428 ac_prev=cache_file ;;
9429 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9430 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9431 - cache_file="$ac_optarg" ;;
9432 + cache_file=$ac_optarg ;;
9434 + --config-cache | -C)
9435 + cache_file=config.cache ;;
9437 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
9438 ac_prev=datadir ;;
9439 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
9440 | --da=*)
9441 - datadir="$ac_optarg" ;;
9442 + datadir=$ac_optarg ;;
9444 -disable-* | --disable-*)
9445 - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
9446 + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
9447 # Reject names that are not valid shell variable names.
9448 - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
9449 - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
9450 - fi
9451 - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
9452 - eval "enable_${ac_feature}=no" ;;
9453 + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
9454 + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
9455 + { (exit 1); exit 1; }; }
9456 + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
9457 + eval "enable_$ac_feature=no" ;;
9459 -enable-* | --enable-*)
9460 - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
9461 + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
9462 # Reject names that are not valid shell variable names.
9463 - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
9464 - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
9465 - fi
9466 - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
9467 - case "$ac_option" in
9468 - *=*) ;;
9469 + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
9470 + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
9471 + { (exit 1); exit 1; }; }
9472 + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
9473 + case $ac_option in
9474 + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
9475 *) ac_optarg=yes ;;
9476 esac
9477 - eval "enable_${ac_feature}='$ac_optarg'" ;;
9478 + eval "enable_$ac_feature='$ac_optarg'" ;;
9480 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
9481 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
9482 @@ -190,95 +596,47 @@
9483 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
9484 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
9485 | --exec=* | --exe=* | --ex=*)
9486 - exec_prefix="$ac_optarg" ;;
9487 + exec_prefix=$ac_optarg ;;
9489 -gas | --gas | --ga | --g)
9490 # Obsolete; use --with-gas.
9491 with_gas=yes ;;
9493 - -help | --help | --hel | --he)
9494 - # Omit some internal or obsolete options to make the list less imposing.
9495 - # This message is too long to be a string in the A/UX 3.1 sh.
9496 - cat << EOF
9497 -Usage: configure [options] [host]
9498 -Options: [defaults in brackets after descriptions]
9499 -Configuration:
9500 - --cache-file=FILE cache test results in FILE
9501 - --help print this message
9502 - --no-create do not create output files
9503 - --quiet, --silent do not print \`checking...' messages
9504 - --version print the version of autoconf that created configure
9505 -Directory and file names:
9506 - --prefix=PREFIX install architecture-independent files in PREFIX
9507 - [$ac_default_prefix]
9508 - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
9509 - [same as prefix]
9510 - --bindir=DIR user executables in DIR [EPREFIX/bin]
9511 - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
9512 - --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
9513 - --datadir=DIR read-only architecture-independent data in DIR
9514 - [PREFIX/share]
9515 - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
9516 - --sharedstatedir=DIR modifiable architecture-independent data in DIR
9517 - [PREFIX/com]
9518 - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
9519 - --libdir=DIR object code libraries in DIR [EPREFIX/lib]
9520 - --includedir=DIR C header files in DIR [PREFIX/include]
9521 - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
9522 - --infodir=DIR info documentation in DIR [PREFIX/info]
9523 - --mandir=DIR man documentation in DIR [PREFIX/man]
9524 - --srcdir=DIR find the sources in DIR [configure dir or ..]
9525 - --program-prefix=PREFIX prepend PREFIX to installed program names
9526 - --program-suffix=SUFFIX append SUFFIX to installed program names
9527 - --program-transform-name=PROGRAM
9528 - run sed PROGRAM on installed program names
9529 -EOF
9530 - cat << EOF
9531 -Host type:
9532 - --build=BUILD configure for building on BUILD [BUILD=HOST]
9533 - --host=HOST configure for HOST [guessed]
9534 - --target=TARGET configure for TARGET [TARGET=HOST]
9535 -Features and packages:
9536 - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
9537 - --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
9538 - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
9539 - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
9540 - --x-includes=DIR X include files are in DIR
9541 - --x-libraries=DIR X library files are in DIR
9542 -EOF
9543 - if test -n "$ac_help"; then
9544 - echo "--enable and --with options recognized:$ac_help"
9545 - fi
9546 - exit 0 ;;
9547 + -help | --help | --hel | --he | -h)
9548 + ac_init_help=long ;;
9549 + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9550 + ac_init_help=recursive ;;
9551 + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9552 + ac_init_help=short ;;
9554 -host | --host | --hos | --ho)
9555 - ac_prev=host ;;
9556 + ac_prev=host_alias ;;
9557 -host=* | --host=* | --hos=* | --ho=*)
9558 - host="$ac_optarg" ;;
9559 + host_alias=$ac_optarg ;;
9561 -includedir | --includedir | --includedi | --included | --include \
9562 | --includ | --inclu | --incl | --inc)
9563 ac_prev=includedir ;;
9564 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9565 | --includ=* | --inclu=* | --incl=* | --inc=*)
9566 - includedir="$ac_optarg" ;;
9567 + includedir=$ac_optarg ;;
9569 -infodir | --infodir | --infodi | --infod | --info | --inf)
9570 ac_prev=infodir ;;
9571 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9572 - infodir="$ac_optarg" ;;
9573 + infodir=$ac_optarg ;;
9575 -libdir | --libdir | --libdi | --libd)
9576 ac_prev=libdir ;;
9577 -libdir=* | --libdir=* | --libdi=* | --libd=*)
9578 - libdir="$ac_optarg" ;;
9579 + libdir=$ac_optarg ;;
9581 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
9582 | --libexe | --libex | --libe)
9583 ac_prev=libexecdir ;;
9584 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
9585 | --libexe=* | --libex=* | --libe=*)
9586 - libexecdir="$ac_optarg" ;;
9587 + libexecdir=$ac_optarg ;;
9589 -localstatedir | --localstatedir | --localstatedi | --localstated \
9590 | --localstate | --localstat | --localsta | --localst \
9591 @@ -287,19 +645,19 @@
9592 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
9593 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
9594 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
9595 - localstatedir="$ac_optarg" ;;
9596 + localstatedir=$ac_optarg ;;
9598 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
9599 ac_prev=mandir ;;
9600 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
9601 - mandir="$ac_optarg" ;;
9602 + mandir=$ac_optarg ;;
9604 -nfp | --nfp | --nf)
9605 # Obsolete; use --without-fp.
9606 with_fp=no ;;
9608 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
9609 - | --no-cr | --no-c)
9610 + | --no-cr | --no-c | -n)
9611 no_create=yes ;;
9613 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
9614 @@ -313,26 +671,26 @@
9615 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
9616 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
9617 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
9618 - oldincludedir="$ac_optarg" ;;
9619 + oldincludedir=$ac_optarg ;;
9621 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9622 ac_prev=prefix ;;
9623 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9624 - prefix="$ac_optarg" ;;
9625 + prefix=$ac_optarg ;;
9627 -program-prefix | --program-prefix | --program-prefi | --program-pref \
9628 | --program-pre | --program-pr | --program-p)
9629 ac_prev=program_prefix ;;
9630 -program-prefix=* | --program-prefix=* | --program-prefi=* \
9631 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
9632 - program_prefix="$ac_optarg" ;;
9633 + program_prefix=$ac_optarg ;;
9635 -program-suffix | --program-suffix | --program-suffi | --program-suff \
9636 | --program-suf | --program-su | --program-s)
9637 ac_prev=program_suffix ;;
9638 -program-suffix=* | --program-suffix=* | --program-suffi=* \
9639 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
9640 - program_suffix="$ac_optarg" ;;
9641 + program_suffix=$ac_optarg ;;
9643 -program-transform-name | --program-transform-name \
9644 | --program-transform-nam | --program-transform-na \
9645 @@ -349,7 +707,7 @@
9646 | --program-transfo=* | --program-transf=* \
9647 | --program-trans=* | --program-tran=* \
9648 | --progr-tra=* | --program-tr=* | --program-t=*)
9649 - program_transform_name="$ac_optarg" ;;
9650 + program_transform_name=$ac_optarg ;;
9652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9653 | -silent | --silent | --silen | --sile | --sil)
9654 @@ -359,7 +717,7 @@
9655 ac_prev=sbindir ;;
9656 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
9657 | --sbi=* | --sb=*)
9658 - sbindir="$ac_optarg" ;;
9659 + sbindir=$ac_optarg ;;
9661 -sharedstatedir | --sharedstatedir | --sharedstatedi \
9662 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
9663 @@ -370,58 +728,57 @@
9664 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
9665 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
9666 | --sha=* | --sh=*)
9667 - sharedstatedir="$ac_optarg" ;;
9668 + sharedstatedir=$ac_optarg ;;
9670 -site | --site | --sit)
9671 ac_prev=site ;;
9672 -site=* | --site=* | --sit=*)
9673 - site="$ac_optarg" ;;
9674 + site=$ac_optarg ;;
9676 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9677 ac_prev=srcdir ;;
9678 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9679 - srcdir="$ac_optarg" ;;
9680 + srcdir=$ac_optarg ;;
9682 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
9683 | --syscon | --sysco | --sysc | --sys | --sy)
9684 ac_prev=sysconfdir ;;
9685 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
9686 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
9687 - sysconfdir="$ac_optarg" ;;
9688 + sysconfdir=$ac_optarg ;;
9690 -target | --target | --targe | --targ | --tar | --ta | --t)
9691 - ac_prev=target ;;
9692 + ac_prev=target_alias ;;
9693 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
9694 - target="$ac_optarg" ;;
9695 + target_alias=$ac_optarg ;;
9697 -v | -verbose | --verbose | --verbos | --verbo | --verb)
9698 verbose=yes ;;
9700 - -version | --version | --versio | --versi | --vers)
9701 - echo "configure generated by autoconf version 2.13"
9702 - exit 0 ;;
9703 + -version | --version | --versio | --versi | --vers | -V)
9704 + ac_init_version=: ;;
9706 -with-* | --with-*)
9707 - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
9708 + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
9709 # Reject names that are not valid shell variable names.
9710 - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
9711 - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
9712 - fi
9713 + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
9714 + { echo "$as_me: error: invalid package name: $ac_package" >&2
9715 + { (exit 1); exit 1; }; }
9716 ac_package=`echo $ac_package| sed 's/-/_/g'`
9717 - case "$ac_option" in
9718 - *=*) ;;
9719 + case $ac_option in
9720 + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
9721 *) ac_optarg=yes ;;
9722 esac
9723 - eval "with_${ac_package}='$ac_optarg'" ;;
9724 + eval "with_$ac_package='$ac_optarg'" ;;
9726 -without-* | --without-*)
9727 - ac_package=`echo $ac_option|sed -e 's/-*without-//'`
9728 + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
9729 # Reject names that are not valid shell variable names.
9730 - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
9731 - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
9732 - fi
9733 - ac_package=`echo $ac_package| sed 's/-/_/g'`
9734 - eval "with_${ac_package}=no" ;;
9735 + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
9736 + { echo "$as_me: error: invalid package name: $ac_package" >&2
9737 + { (exit 1); exit 1; }; }
9738 + ac_package=`echo $ac_package | sed 's/-/_/g'`
9739 + eval "with_$ac_package=no" ;;
9741 --x)
9742 # Obsolete; use --with-x.
9743 @@ -432,99 +789,110 @@
9744 ac_prev=x_includes ;;
9745 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
9746 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
9747 - x_includes="$ac_optarg" ;;
9748 + x_includes=$ac_optarg ;;
9750 -x-libraries | --x-libraries | --x-librarie | --x-librari \
9751 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
9752 ac_prev=x_libraries ;;
9753 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
9754 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
9755 - x_libraries="$ac_optarg" ;;
9756 + x_libraries=$ac_optarg ;;
9758 - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
9759 + -*) { echo "$as_me: error: unrecognized option: $ac_option
9760 +Try \`$0 --help' for more information." >&2
9761 + { (exit 1); exit 1; }; }
9764 + *=*)
9765 + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
9766 + # Reject names that are not valid shell variable names.
9767 + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
9768 + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
9769 + { (exit 1); exit 1; }; }
9770 + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
9771 + eval "$ac_envvar='$ac_optarg'"
9772 + export $ac_envvar ;;
9775 - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
9776 - echo "configure: warning: $ac_option: invalid host type" 1>&2
9777 - fi
9778 - if test "x$nonopt" != xNONE; then
9779 - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
9780 - fi
9781 - nonopt="$ac_option"
9782 + # FIXME: should be removed in autoconf 3.0.
9783 + echo "$as_me: WARNING: you should use --build, --host, --target" >&2
9784 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
9785 + echo "$as_me: WARNING: invalid host type: $ac_option" >&2
9786 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
9789 esac
9790 done
9792 if test -n "$ac_prev"; then
9793 - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
9794 + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
9795 + { echo "$as_me: error: missing argument to $ac_option" >&2
9796 + { (exit 1); exit 1; }; }
9799 -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9801 -# File descriptor usage:
9802 -# 0 standard input
9803 -# 1 file creation
9804 -# 2 errors and warnings
9805 -# 3 some systems may open it to /dev/tty
9806 -# 4 used on the Kubota Titan
9807 -# 6 checking for... messages and results
9808 -# 5 compiler messages saved in config.log
9809 -if test "$silent" = yes; then
9810 - exec 6>/dev/null
9811 -else
9812 - exec 6>&1
9814 -exec 5>./config.log
9816 -echo "\
9817 -This file contains any messages produced by compilers while
9818 -running configure, to aid debugging if configure makes a mistake.
9819 -" 1>&5
9820 +# Be sure to have absolute paths.
9821 +for ac_var in exec_prefix prefix
9823 + eval ac_val=$`echo $ac_var`
9824 + case $ac_val in
9825 + [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
9826 + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
9827 + { (exit 1); exit 1; }; };;
9828 + esac
9829 +done
9831 -# Strip out --no-create and --no-recursion so they do not pile up.
9832 -# Also quote any args containing shell metacharacters.
9833 -ac_configure_args=
9834 -for ac_arg
9835 +# Be sure to have absolute paths.
9836 +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
9837 + localstatedir libdir includedir oldincludedir infodir mandir
9839 - case "$ac_arg" in
9840 - -no-create | --no-create | --no-creat | --no-crea | --no-cre \
9841 - | --no-cr | --no-c) ;;
9842 - -no-recursion | --no-recursion | --no-recursio | --no-recursi \
9843 - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
9844 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
9845 - ac_configure_args="$ac_configure_args '$ac_arg'" ;;
9846 - *) ac_configure_args="$ac_configure_args $ac_arg" ;;
9847 + eval ac_val=$`echo $ac_var`
9848 + case $ac_val in
9849 + [\\/$]* | ?:[\\/]* ) ;;
9850 + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
9851 + { (exit 1); exit 1; }; };;
9852 esac
9853 done
9855 -# NLS nuisances.
9856 -# Only set these to C if already set. These must not be set unconditionally
9857 -# because not all systems understand e.g. LANG=C (notably SCO).
9858 -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
9859 -# Non-C LC_CTYPE values break the ctype check.
9860 -if test "${LANG+set}" = set; then LANG=C; export LANG; fi
9861 -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
9862 -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
9863 -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
9864 +# There might be people who depend on the old broken behavior: `$host'
9865 +# used to hold the argument of --host etc.
9866 +# FIXME: To remove some day.
9867 +build=$build_alias
9868 +host=$host_alias
9869 +target=$target_alias
9871 +# FIXME: To remove some day.
9872 +if test "x$host_alias" != x; then
9873 + if test "x$build_alias" = x; then
9874 + cross_compiling=maybe
9875 + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
9876 + If a cross compiler is detected then cross compile mode will be used." >&2
9877 + elif test "x$build_alias" != "x$host_alias"; then
9878 + cross_compiling=yes
9879 + fi
9882 -# confdefs.h avoids OS command line length limits that DEFS can exceed.
9883 -rm -rf conftest* confdefs.h
9884 -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
9885 -echo > confdefs.h
9886 +ac_tool_prefix=
9887 +test -n "$host_alias" && ac_tool_prefix=$host_alias-
9889 +test "$silent" = yes && exec 6>/dev/null
9891 -# A filename unique to this package, relative to the directory that
9892 -# configure is in, which we can look for to find out if srcdir is correct.
9893 -ac_unique_file=gdk/gdktypes.h
9895 # Find the source files, if location was not specified.
9896 if test -z "$srcdir"; then
9897 ac_srcdir_defaulted=yes
9898 # Try the directory containing this script, then its parent.
9899 - ac_prog=$0
9900 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
9901 - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
9902 + ac_confdir=`(dirname "$0") 2>/dev/null ||
9903 +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9904 + X"$0" : 'X\(//\)[^/]' \| \
9905 + X"$0" : 'X\(//\)$' \| \
9906 + X"$0" : 'X\(/\)' \| \
9907 + . : '\(.\)' 2>/dev/null ||
9908 +echo X"$0" |
9909 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9910 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9911 + /^X\(\/\/\)$/{ s//\1/; q; }
9912 + /^X\(\/\).*/{ s//\1/; q; }
9913 + s/.*/./; q'`
9914 srcdir=$ac_confdir
9915 if test ! -r $srcdir/$ac_unique_file; then
9916 srcdir=..
9917 @@ -534,116 +902,719 @@
9919 if test ! -r $srcdir/$ac_unique_file; then
9920 if test "$ac_srcdir_defaulted" = yes; then
9921 - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
9922 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
9923 + { (exit 1); exit 1; }; }
9924 else
9925 - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
9926 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
9927 + { (exit 1); exit 1; }; }
9930 -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
9931 +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
9932 + { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
9933 + { (exit 1); exit 1; }; }
9934 +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
9935 +ac_env_build_alias_set=${build_alias+set}
9936 +ac_env_build_alias_value=$build_alias
9937 +ac_cv_env_build_alias_set=${build_alias+set}
9938 +ac_cv_env_build_alias_value=$build_alias
9939 +ac_env_host_alias_set=${host_alias+set}
9940 +ac_env_host_alias_value=$host_alias
9941 +ac_cv_env_host_alias_set=${host_alias+set}
9942 +ac_cv_env_host_alias_value=$host_alias
9943 +ac_env_target_alias_set=${target_alias+set}
9944 +ac_env_target_alias_value=$target_alias
9945 +ac_cv_env_target_alias_set=${target_alias+set}
9946 +ac_cv_env_target_alias_value=$target_alias
9947 +ac_env_CC_set=${CC+set}
9948 +ac_env_CC_value=$CC
9949 +ac_cv_env_CC_set=${CC+set}
9950 +ac_cv_env_CC_value=$CC
9951 +ac_env_CFLAGS_set=${CFLAGS+set}
9952 +ac_env_CFLAGS_value=$CFLAGS
9953 +ac_cv_env_CFLAGS_set=${CFLAGS+set}
9954 +ac_cv_env_CFLAGS_value=$CFLAGS
9955 +ac_env_LDFLAGS_set=${LDFLAGS+set}
9956 +ac_env_LDFLAGS_value=$LDFLAGS
9957 +ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
9958 +ac_cv_env_LDFLAGS_value=$LDFLAGS
9959 +ac_env_CPPFLAGS_set=${CPPFLAGS+set}
9960 +ac_env_CPPFLAGS_value=$CPPFLAGS
9961 +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
9962 +ac_cv_env_CPPFLAGS_value=$CPPFLAGS
9963 +ac_env_CPP_set=${CPP+set}
9964 +ac_env_CPP_value=$CPP
9965 +ac_cv_env_CPP_set=${CPP+set}
9966 +ac_cv_env_CPP_value=$CPP
9967 +ac_env_CXX_set=${CXX+set}
9968 +ac_env_CXX_value=$CXX
9969 +ac_cv_env_CXX_set=${CXX+set}
9970 +ac_cv_env_CXX_value=$CXX
9971 +ac_env_CXXFLAGS_set=${CXXFLAGS+set}
9972 +ac_env_CXXFLAGS_value=$CXXFLAGS
9973 +ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
9974 +ac_cv_env_CXXFLAGS_value=$CXXFLAGS
9975 +ac_env_CXXCPP_set=${CXXCPP+set}
9976 +ac_env_CXXCPP_value=$CXXCPP
9977 +ac_cv_env_CXXCPP_set=${CXXCPP+set}
9978 +ac_cv_env_CXXCPP_value=$CXXCPP
9979 +ac_env_F77_set=${F77+set}
9980 +ac_env_F77_value=$F77
9981 +ac_cv_env_F77_set=${F77+set}
9982 +ac_cv_env_F77_value=$F77
9983 +ac_env_FFLAGS_set=${FFLAGS+set}
9984 +ac_env_FFLAGS_value=$FFLAGS
9985 +ac_cv_env_FFLAGS_set=${FFLAGS+set}
9986 +ac_cv_env_FFLAGS_value=$FFLAGS
9987 +ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
9988 +ac_env_PKG_CONFIG_value=$PKG_CONFIG
9989 +ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
9990 +ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
9991 +ac_env_X_CFLAGS_set=${X_CFLAGS+set}
9992 +ac_env_X_CFLAGS_value=$X_CFLAGS
9993 +ac_cv_env_X_CFLAGS_set=${X_CFLAGS+set}
9994 +ac_cv_env_X_CFLAGS_value=$X_CFLAGS
9995 +ac_env_X_LIBS_set=${X_LIBS+set}
9996 +ac_env_X_LIBS_value=$X_LIBS
9997 +ac_cv_env_X_LIBS_set=${X_LIBS+set}
9998 +ac_cv_env_X_LIBS_value=$X_LIBS
10000 -# Prefer explicitly selected file to automatically selected ones.
10001 -if test -z "$CONFIG_SITE"; then
10002 - if test "x$prefix" != xNONE; then
10003 - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
10004 - else
10005 - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
10006 - fi
10008 -for ac_site_file in $CONFIG_SITE; do
10009 - if test -r "$ac_site_file"; then
10010 - echo "loading site script $ac_site_file"
10011 - . "$ac_site_file"
10012 - fi
10013 -done
10015 +# Report the --help message.
10017 +if test "$ac_init_help" = "long"; then
10018 + # Omit some internal or obsolete options to make the list less imposing.
10019 + # This message is too long to be a string in the A/UX 3.1 sh.
10020 + cat <<_ACEOF
10021 +\`configure' configures this package to adapt to many kinds of systems.
10023 -if test -r "$cache_file"; then
10024 - echo "loading cache $cache_file"
10025 - . $cache_file
10026 -else
10027 - echo "creating cache $cache_file"
10028 - > $cache_file
10030 +Usage: $0 [OPTION]... [VAR=VALUE]...
10032 -ac_ext=c
10033 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10034 -ac_cpp='$CPP $CPPFLAGS'
10035 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10036 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10037 -cross_compiling=$ac_cv_prog_cc_cross
10039 -ac_exeext=
10040 -ac_objext=o
10041 -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
10042 - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
10043 - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
10044 - ac_n= ac_c='
10045 -' ac_t=' '
10046 - else
10047 - ac_n=-n ac_c= ac_t=
10048 - fi
10049 -else
10050 - ac_n= ac_c='\c' ac_t=
10052 +To assign environment variables (e.g., CC, CFLAGS...), specify them as
10053 +VAR=VALUE. See below for descriptions of some of the useful variables.
10055 +Defaults for the options are specified in brackets.
10057 +Configuration:
10058 + -h, --help display this help and exit
10059 + --help=short display options specific to this package
10060 + --help=recursive display the short help of all the included packages
10061 + -V, --version display version information and exit
10062 + -q, --quiet, --silent do not print \`checking...' messages
10063 + --cache-file=FILE cache test results in FILE [disabled]
10064 + -C, --config-cache alias for \`--cache-file=config.cache'
10065 + -n, --no-create do not create output files
10066 + --srcdir=DIR find the sources in DIR [configure dir or \`..']
10068 -# In the following, there are a the following variants
10069 -# of GLib cflags and libs variables
10071 -# GLIB_CFLAGS: cflags for compiling libraries and example progs
10072 -# GLIB_LIBS: libraries for linking example programs
10073 -# GLIB_DEPLIBS: libraries for linking libraries against
10074 -# glib_cflags: cflags to store in gtk-config
10075 -# glib_libs: libs to store in gtk-config
10076 -# glib_thread_cflags: cflags to store in gtk-config for gtk-config gthread
10077 -# glib_thread_libs: libs to store in gtk-config for gtk-config gthread
10078 +_ACEOF
10080 -# Save this value here, since automake will set cflags later
10081 -cflags_set=${CFLAGS+set}
10082 + cat <<_ACEOF
10083 +Installation directories:
10084 + --prefix=PREFIX install architecture-independent files in PREFIX
10085 + [$ac_default_prefix]
10086 + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
10087 + [PREFIX]
10089 +By default, \`make install' will install all the files in
10090 +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
10091 +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
10092 +for instance \`--prefix=\$HOME'.
10094 +For better control, use the options below.
10096 +Fine tuning of the installation directories:
10097 + --bindir=DIR user executables [EPREFIX/bin]
10098 + --sbindir=DIR system admin executables [EPREFIX/sbin]
10099 + --libexecdir=DIR program executables [EPREFIX/libexec]
10100 + --datadir=DIR read-only architecture-independent data [PREFIX/share]
10101 + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
10102 + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
10103 + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
10104 + --libdir=DIR object code libraries [EPREFIX/lib]
10105 + --includedir=DIR C header files [PREFIX/include]
10106 + --oldincludedir=DIR C header files for non-gcc [/usr/include]
10107 + --infodir=DIR info documentation [PREFIX/info]
10108 + --mandir=DIR man documentation [PREFIX/man]
10109 +_ACEOF
10111 + cat <<\_ACEOF
10113 +Program names:
10114 + --program-prefix=PREFIX prepend PREFIX to installed program names
10115 + --program-suffix=SUFFIX append SUFFIX to installed program names
10116 + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
10118 +X features:
10119 + --x-includes=DIR X include files are in DIR
10120 + --x-libraries=DIR X library files are in DIR
10122 +System types:
10123 + --build=BUILD configure for building on BUILD [guessed]
10124 + --host=HOST cross-compile to build programs to run on HOST [BUILD]
10125 +_ACEOF
10128 +if test -n "$ac_init_help"; then
10130 + cat <<\_ACEOF
10132 +Optional Features:
10133 + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
10134 + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
10135 + --enable-shared[=PKGS]
10136 + build shared libraries [default=yes]
10137 + --enable-static[=PKGS]
10138 + build static libraries [default=yes]
10139 + --enable-fast-install[=PKGS]
10140 + optimize for fast installation [default=yes]
10141 + --disable-libtool-lock avoid locking (might break parallel builds)
10142 + --enable-maintainer-mode enable make rules and dependencies not useful
10143 + (and sometimes confusing) to the casual installer
10144 + --enable-debug=no/minimum/yes turn on debugging default=$debug_default
10145 + --enable-shm support shared memory if available default=yes
10146 + --enable-ansi turn on strict ansi default=no
10147 + --enable-xim support XIM default=yes
10148 + --disable-xim-inst does not use xim instantiate callback
10149 + --disable-rebuilds disable all source autogeneration rules
10150 + --disable-nls do not use Native Language Support
10151 + --disable-glibtest Do not try to compile and run a test GLIB program
10153 +Optional Packages:
10154 + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
10155 + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
10156 + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
10157 + --with-pic try to use only PIC/non-PIC objects [default=use
10158 + both]
10159 + --with-tags[=TAGS]
10160 + include additional configurations [automatic]
10161 + --with-glib=DIR Use uninstalled copy of glib
10162 + --with-locale=LOCALE locale name you want to use
10163 + --with-xinput=no/gxi/xfree support XInput
10164 + --with-native-locale=yes/no Use native locale support default=no
10165 + --with-catgets use catgets functions if available
10166 + --with-glib-prefix=PFX Prefix where GLIB is installed (optional)
10167 + --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)
10168 + --with-x use the X Window System
10170 +Some influential environment variables:
10171 + CC C compiler command
10172 + CFLAGS C compiler flags
10173 + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
10174 + nonstandard directory <lib dir>
10175 + CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
10176 + headers in a nonstandard directory <include dir>
10177 + CPP C preprocessor
10178 + CXX C++ compiler command
10179 + CXXFLAGS C++ compiler flags
10180 + CXXCPP C++ preprocessor
10181 + F77 Fortran 77 compiler command
10182 + FFLAGS Fortran 77 compiler flags
10183 + PKG_CONFIG path to pkg-config utility
10184 + X_CFLAGS C compiler flags for X, overriding pkg-config
10185 + X_LIBS linker flags for X, overriding pkg-config
10187 +Use these variables to override the choices made by `configure' or to help
10188 +it to find libraries and programs with nonstandard names/locations.
10190 +_ACEOF
10193 +if test "$ac_init_help" = "recursive"; then
10194 + # If there are subdirs, report their specific --help.
10195 + ac_popdir=`pwd`
10196 + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
10197 + test -d $ac_dir || continue
10198 + ac_builddir=.
10200 +if test "$ac_dir" != .; then
10201 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10202 + # A "../" for each directory in $ac_dir_suffix.
10203 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10204 +else
10205 + ac_dir_suffix= ac_top_builddir=
10208 +case $srcdir in
10209 + .) # No --srcdir option. We are building in place.
10210 + ac_srcdir=.
10211 + if test -z "$ac_top_builddir"; then
10212 + ac_top_srcdir=.
10213 + else
10214 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10215 + fi ;;
10216 + [\\/]* | ?:[\\/]* ) # Absolute path.
10217 + ac_srcdir=$srcdir$ac_dir_suffix;
10218 + ac_top_srcdir=$srcdir ;;
10219 + *) # Relative path.
10220 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10221 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
10222 +esac
10224 +# Do not use `cd foo && pwd` to compute absolute paths, because
10225 +# the directories may not exist.
10226 +case `pwd` in
10227 +.) ac_abs_builddir="$ac_dir";;
10229 + case "$ac_dir" in
10230 + .) ac_abs_builddir=`pwd`;;
10231 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10232 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
10233 + esac;;
10234 +esac
10235 +case $ac_abs_builddir in
10236 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
10238 + case ${ac_top_builddir}. in
10239 + .) ac_abs_top_builddir=$ac_abs_builddir;;
10240 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10241 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10242 + esac;;
10243 +esac
10244 +case $ac_abs_builddir in
10245 +.) ac_abs_srcdir=$ac_srcdir;;
10247 + case $ac_srcdir in
10248 + .) ac_abs_srcdir=$ac_abs_builddir;;
10249 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10250 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10251 + esac;;
10252 +esac
10253 +case $ac_abs_builddir in
10254 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
10256 + case $ac_top_srcdir in
10257 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
10258 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10259 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10260 + esac;;
10261 +esac
10263 + cd $ac_dir
10264 + # Check for guested configure; otherwise get Cygnus style configure.
10265 + if test -f $ac_srcdir/configure.gnu; then
10266 + echo
10267 + $SHELL $ac_srcdir/configure.gnu --help=recursive
10268 + elif test -f $ac_srcdir/configure; then
10269 + echo
10270 + $SHELL $ac_srcdir/configure --help=recursive
10271 + elif test -f $ac_srcdir/configure.ac ||
10272 + test -f $ac_srcdir/configure.in; then
10273 + echo
10274 + $ac_configure --help
10275 + else
10276 + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
10277 + fi
10278 + cd "$ac_popdir"
10279 + done
10282 +test -n "$ac_init_help" && exit 0
10283 +if $ac_init_version; then
10284 + cat <<\_ACEOF
10286 +Copyright (C) 2003 Free Software Foundation, Inc.
10287 +This configure script is free software; the Free Software Foundation
10288 +gives unlimited permission to copy, distribute and modify it.
10289 +_ACEOF
10290 + exit 0
10292 +exec 5>config.log
10293 +cat >&5 <<_ACEOF
10294 +This file contains any messages produced by compilers while
10295 +running configure, to aid debugging if configure makes a mistake.
10297 -# libtool versioning
10298 -LT_RELEASE=$GTK_MAJOR_VERSION.$GTK_MINOR_VERSION
10299 -LT_CURRENT=`expr $GTK_MICRO_VERSION - $GTK_INTERFACE_AGE`
10300 -LT_REVISION=$GTK_INTERFACE_AGE
10301 -LT_AGE=`expr $GTK_BINARY_AGE - $GTK_INTERFACE_AGE`
10302 +It was created by $as_me, which was
10303 +generated by GNU Autoconf 2.59. Invocation command line was
10305 + $ $0 $@
10307 +_ACEOF
10309 +cat <<_ASUNAME
10310 +## --------- ##
10311 +## Platform. ##
10312 +## --------- ##
10314 +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
10315 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
10316 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
10317 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
10318 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
10320 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
10321 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
10323 +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
10324 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
10325 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
10326 +hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
10327 +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
10328 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
10329 +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
10331 +_ASUNAME
10333 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10334 +for as_dir in $PATH
10336 + IFS=$as_save_IFS
10337 + test -z "$as_dir" && as_dir=.
10338 + echo "PATH: $as_dir"
10339 +done
10341 -# For automake.
10342 -VERSION=$GTK_VERSION
10343 -PACKAGE=gtk+
10344 +} >&5
10346 -# Save this value here, since automake will set cflags later
10347 -cflags_set=${CFLAGS+set}
10348 +cat >&5 <<_ACEOF
10350 -ac_aux_dir=
10351 -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
10352 - if test -f $ac_dir/install-sh; then
10353 - ac_aux_dir=$ac_dir
10354 - ac_install_sh="$ac_aux_dir/install-sh -c"
10355 - break
10357 +## ----------- ##
10358 +## Core tests. ##
10359 +## ----------- ##
10361 +_ACEOF
10364 +# Keep a trace of the command line.
10365 +# Strip out --no-create and --no-recursion so they do not pile up.
10366 +# Strip out --silent because we don't want to record it for future runs.
10367 +# Also quote any args containing shell meta-characters.
10368 +# Make two passes to allow for proper duplicate-argument suppression.
10369 +ac_configure_args=
10370 +ac_configure_args0=
10371 +ac_configure_args1=
10372 +ac_sep=
10373 +ac_must_keep_next=false
10374 +for ac_pass in 1 2
10376 + for ac_arg
10377 + do
10378 + case $ac_arg in
10379 + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
10380 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10381 + | -silent | --silent | --silen | --sile | --sil)
10382 + continue ;;
10383 + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
10384 + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10385 + esac
10386 + case $ac_pass in
10387 + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
10388 + 2)
10389 + ac_configure_args1="$ac_configure_args1 '$ac_arg'"
10390 + if test $ac_must_keep_next = true; then
10391 + ac_must_keep_next=false # Got value, back to normal.
10392 + else
10393 + case $ac_arg in
10394 + *=* | --config-cache | -C | -disable-* | --disable-* \
10395 + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
10396 + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
10397 + | -with-* | --with-* | -without-* | --without-* | --x)
10398 + case "$ac_configure_args0 " in
10399 + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
10400 + esac
10401 + ;;
10402 + -* ) ac_must_keep_next=true ;;
10403 + esac
10404 + fi
10405 + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
10406 + # Get rid of the leading space.
10407 + ac_sep=" "
10408 + ;;
10409 + esac
10410 + done
10411 +done
10412 +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
10413 +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
10415 +# When interrupted or exit'd, cleanup temporary files, and complete
10416 +# config.log. We remove comments because anyway the quotes in there
10417 +# would cause problems or look ugly.
10418 +# WARNING: Be sure not to use single quotes in there, as some shells,
10419 +# such as our DU 5.0 friend, will then `close' the trap.
10420 +trap 'exit_status=$?
10421 + # Save into config.log some information that might help in debugging.
10423 + echo
10425 + cat <<\_ASBOX
10426 +## ---------------- ##
10427 +## Cache variables. ##
10428 +## ---------------- ##
10429 +_ASBOX
10430 + echo
10431 + # The following way of writing the cache mishandles newlines in values,
10433 + (set) 2>&1 |
10434 + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
10435 + *ac_space=\ *)
10436 + sed -n \
10437 + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
10438 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
10439 + ;;
10440 + *)
10441 + sed -n \
10442 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10443 + ;;
10444 + esac;
10446 + echo
10448 + cat <<\_ASBOX
10449 +## ----------------- ##
10450 +## Output variables. ##
10451 +## ----------------- ##
10452 +_ASBOX
10453 + echo
10454 + for ac_var in $ac_subst_vars
10455 + do
10456 + eval ac_val=$`echo $ac_var`
10457 + echo "$ac_var='"'"'$ac_val'"'"'"
10458 + done | sort
10459 + echo
10461 + if test -n "$ac_subst_files"; then
10462 + cat <<\_ASBOX
10463 +## ------------- ##
10464 +## Output files. ##
10465 +## ------------- ##
10466 +_ASBOX
10467 + echo
10468 + for ac_var in $ac_subst_files
10469 + do
10470 + eval ac_val=$`echo $ac_var`
10471 + echo "$ac_var='"'"'$ac_val'"'"'"
10472 + done | sort
10473 + echo
10474 + fi
10476 + if test -s confdefs.h; then
10477 + cat <<\_ASBOX
10478 +## ----------- ##
10479 +## confdefs.h. ##
10480 +## ----------- ##
10481 +_ASBOX
10482 + echo
10483 + sed "/^$/d" confdefs.h | sort
10484 + echo
10485 + fi
10486 + test "$ac_signal" != 0 &&
10487 + echo "$as_me: caught signal $ac_signal"
10488 + echo "$as_me: exit $exit_status"
10489 + } >&5
10490 + rm -f core *.core &&
10491 + rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
10492 + exit $exit_status
10493 + ' 0
10494 +for ac_signal in 1 2 13 15; do
10495 + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
10496 +done
10497 +ac_signal=0
10499 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
10500 +rm -rf conftest* confdefs.h
10501 +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
10502 +echo >confdefs.h
10504 +# Predefined preprocessor variables.
10506 +cat >>confdefs.h <<_ACEOF
10507 +#define PACKAGE_NAME "$PACKAGE_NAME"
10508 +_ACEOF
10511 +cat >>confdefs.h <<_ACEOF
10512 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
10513 +_ACEOF
10516 +cat >>confdefs.h <<_ACEOF
10517 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
10518 +_ACEOF
10521 +cat >>confdefs.h <<_ACEOF
10522 +#define PACKAGE_STRING "$PACKAGE_STRING"
10523 +_ACEOF
10526 +cat >>confdefs.h <<_ACEOF
10527 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
10528 +_ACEOF
10531 +# Let the site file select an alternate cache file if it wants to.
10532 +# Prefer explicitly selected file to automatically selected ones.
10533 +if test -z "$CONFIG_SITE"; then
10534 + if test "x$prefix" != xNONE; then
10535 + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
10536 + else
10537 + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
10538 + fi
10540 +for ac_site_file in $CONFIG_SITE; do
10541 + if test -r "$ac_site_file"; then
10542 + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
10543 +echo "$as_me: loading site script $ac_site_file" >&6;}
10544 + sed 's/^/| /' "$ac_site_file" >&5
10545 + . "$ac_site_file"
10546 + fi
10547 +done
10549 +if test -r "$cache_file"; then
10550 + # Some versions of bash will fail to source /dev/null (special
10551 + # files actually), so we avoid doing that.
10552 + if test -f "$cache_file"; then
10553 + { echo "$as_me:$LINENO: loading cache $cache_file" >&5
10554 +echo "$as_me: loading cache $cache_file" >&6;}
10555 + case $cache_file in
10556 + [\\/]* | ?:[\\/]* ) . $cache_file;;
10557 + *) . ./$cache_file;;
10558 + esac
10559 + fi
10560 +else
10561 + { echo "$as_me:$LINENO: creating cache $cache_file" >&5
10562 +echo "$as_me: creating cache $cache_file" >&6;}
10563 + >$cache_file
10566 +# Check that the precious variables saved in the cache have kept the same
10567 +# value.
10568 +ac_cache_corrupted=false
10569 +for ac_var in `(set) 2>&1 |
10570 + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
10571 + eval ac_old_set=\$ac_cv_env_${ac_var}_set
10572 + eval ac_new_set=\$ac_env_${ac_var}_set
10573 + eval ac_old_val="\$ac_cv_env_${ac_var}_value"
10574 + eval ac_new_val="\$ac_env_${ac_var}_value"
10575 + case $ac_old_set,$ac_new_set in
10576 + set,)
10577 + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
10578 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
10579 + ac_cache_corrupted=: ;;
10580 + ,set)
10581 + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
10582 +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
10583 + ac_cache_corrupted=: ;;
10584 + ,);;
10585 + *)
10586 + if test "x$ac_old_val" != "x$ac_new_val"; then
10587 + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
10588 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
10589 + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
10590 +echo "$as_me: former value: $ac_old_val" >&2;}
10591 + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
10592 +echo "$as_me: current value: $ac_new_val" >&2;}
10593 + ac_cache_corrupted=:
10594 + fi;;
10595 + esac
10596 + # Pass precious variables to config.status.
10597 + if test "$ac_new_set" = set; then
10598 + case $ac_new_val in
10599 + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
10600 + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
10601 + *) ac_arg=$ac_var=$ac_new_val ;;
10602 + esac
10603 + case " $ac_configure_args " in
10604 + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
10605 + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
10606 + esac
10607 + fi
10608 +done
10609 +if $ac_cache_corrupted; then
10610 + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
10611 +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
10612 + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
10613 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
10614 + { (exit 1); exit 1; }; }
10617 +ac_ext=c
10618 +ac_cpp='$CPP $CPPFLAGS'
10619 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10620 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10621 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
10642 +# In the following, there are a the following variants
10643 +# of GLib cflags and libs variables
10645 +# GLIB_CFLAGS: cflags for compiling libraries and example progs
10646 +# GLIB_LIBS: libraries for linking example programs
10647 +# GLIB_DEPLIBS: libraries for linking libraries against
10648 +# glib_cflags: cflags to store in gtk-config
10649 +# glib_libs: libs to store in gtk-config
10650 +# glib_thread_cflags: cflags to store in gtk-config for gtk-config gthread
10651 +# glib_thread_libs: libs to store in gtk-config for gtk-config gthread
10653 +# Save this value here, since automake will set cflags later
10654 +cflags_set=${CFLAGS+set}
10664 +# libtool versioning
10665 +LT_RELEASE=$GTK_MAJOR_VERSION.$GTK_MINOR_VERSION
10666 +LT_CURRENT=`expr $GTK_MICRO_VERSION - $GTK_INTERFACE_AGE`
10667 +LT_REVISION=$GTK_INTERFACE_AGE
10668 +LT_AGE=`expr $GTK_BINARY_AGE - $GTK_INTERFACE_AGE`
10674 +# For automake.
10675 +VERSION=$GTK_VERSION
10676 +PACKAGE=gtk+
10678 +# Save this value here, since automake will set cflags later
10679 +cflags_set=${CFLAGS+set}
10681 +am__api_version="1.4"
10682 +ac_aux_dir=
10683 +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
10684 + if test -f $ac_dir/install-sh; then
10685 + ac_aux_dir=$ac_dir
10686 + ac_install_sh="$ac_aux_dir/install-sh -c"
10687 + break
10688 elif test -f $ac_dir/install.sh; then
10689 ac_aux_dir=$ac_dir
10690 ac_install_sh="$ac_aux_dir/install.sh -c"
10691 break
10692 + elif test -f $ac_dir/shtool; then
10693 + ac_aux_dir=$ac_dir
10694 + ac_install_sh="$ac_aux_dir/shtool install -c"
10695 + break
10697 done
10698 if test -z "$ac_aux_dir"; then
10699 - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
10701 -ac_config_guess=$ac_aux_dir/config.guess
10702 -ac_config_sub=$ac_aux_dir/config.sub
10703 -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
10704 + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
10705 +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
10706 + { (exit 1); exit 1; }; }
10708 +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
10709 +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
10710 +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
10712 # Find a good install program. We prefer a C program (faster),
10713 # so one script is as good as another. But avoid the broken or
10714 @@ -652,65 +1623,80 @@
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:661: 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
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.
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.
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
10779 done
10780 - ;;
10781 - esac
10782 - done
10783 - IFS="$ac_save_IFS"
10784 + done
10785 + ;;
10786 +esac
10787 +done
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
10803 -echo "$ac_t""$INSTALL" 1>&6
10804 +echo "$as_me:$LINENO: result: $INSTALL" >&5
10805 +echo "${ECHO_T}$INSTALL" >&6
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}'
10811 -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10812 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10814 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10816 -echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
10817 -echo "configure:714: checking whether build environment is sane" >&5
10818 +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
10819 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
10820 # Just in case
10821 sleep 1
10822 echo timestamp > conftestfile
10823 @@ -732,8 +1718,11 @@
10824 # if, for instance, CONFIG_SHELL is bash and it inherits a
10825 # broken ls alias from the environment. This has actually
10826 # happened. Such a system could not be considered "sane".
10827 - { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
10828 -alias in your environment" 1>&2; exit 1; }
10829 + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
10830 +alias in your environment" >&5
10831 +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
10832 +alias in your environment" >&2;}
10833 + { (exit 1); exit 1; }; }
10836 test "$2" = conftestfile
10837 @@ -742,54 +1731,54 @@
10838 # Ok.
10840 else
10841 - { echo "configure: error: newly created file is older than distributed files!
10842 -Check your system clock" 1>&2; exit 1; }
10843 + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
10844 +Check your system clock" >&5
10845 +echo "$as_me: error: newly created file is older than distributed files!
10846 +Check your system clock" >&2;}
10847 + { (exit 1); exit 1; }; }
10849 rm -f conftest*
10850 -echo "$ac_t""yes" 1>&6
10851 -if test "$program_transform_name" = s,x,x,; then
10852 - program_transform_name=
10853 -else
10854 - # Double any \ or $. echo might interpret backslashes.
10855 - cat <<\EOF_SED > conftestsed
10856 -s,\\,\\\\,g; s,\$,$$,g
10857 -EOF_SED
10858 - program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
10859 - rm -f conftestsed
10861 +echo "$as_me:$LINENO: result: yes" >&5
10862 +echo "${ECHO_T}yes" >&6
10863 test "$program_prefix" != NONE &&
10864 - program_transform_name="s,^,${program_prefix},; $program_transform_name"
10865 + program_transform_name="s,^,$program_prefix,;$program_transform_name"
10866 # Use a double $ so make ignores it.
10867 test "$program_suffix" != NONE &&
10868 - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
10870 -# sed with no file args requires a program.
10871 -test "$program_transform_name" = "" && program_transform_name="s,x,x,"
10873 -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
10874 -echo "configure:771: checking whether ${MAKE-make} sets \${MAKE}" >&5
10875 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
10876 -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
10877 - echo $ac_n "(cached) $ac_c" 1>&6
10878 + program_transform_name="s,\$,$program_suffix,;$program_transform_name"
10879 +# Double any \ or $. echo might interpret backslashes.
10880 +# By default was `s,x,x', remove it if useless.
10881 +cat <<\_ACEOF >conftest.sed
10882 +s/[\\$]/&&/g;s/;s,x,x,$//
10883 +_ACEOF
10884 +program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
10885 +rm conftest.sed
10887 +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10888 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
10889 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
10890 +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
10891 + echo $ECHO_N "(cached) $ECHO_C" >&6
10892 else
10893 - cat > conftestmake <<\EOF
10894 + cat >conftest.make <<\_ACEOF
10895 all:
10896 - @echo 'ac_maketemp="${MAKE}"'
10897 -EOF
10898 + @echo 'ac_maketemp="$(MAKE)"'
10899 +_ACEOF
10900 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10901 -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10902 +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
10903 if test -n "$ac_maketemp"; then
10904 eval ac_cv_prog_make_${ac_make}_set=yes
10905 else
10906 eval ac_cv_prog_make_${ac_make}_set=no
10908 -rm -f conftestmake
10909 +rm -f conftest.make
10911 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
10912 - echo "$ac_t""yes" 1>&6
10913 + echo "$as_me:$LINENO: result: yes" >&5
10914 +echo "${ECHO_T}yes" >&6
10915 SET_MAKE=
10916 else
10917 - echo "$ac_t""no" 1>&6
10918 + echo "$as_me:$LINENO: result: no" >&5
10919 +echo "${ECHO_T}no" >&6
10920 SET_MAKE="MAKE=${MAKE-make}"
10923 @@ -799,436 +1788,875 @@
10924 VERSION=$VERSION
10926 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
10927 - { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
10928 + { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
10929 +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
10930 + { (exit 1); exit 1; }; }
10935 missing_dir=`cd $ac_aux_dir && pwd`
10936 -echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
10937 -echo "configure:810: checking for working aclocal" >&5
10938 +echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
10939 +echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
10940 # Run test in a subshell; some versions of sh will print an error if
10941 # an executable is not found, even if stderr is redirected.
10942 # Redirect stdin to placate older versions of autoconf. Sigh.
10943 -if (aclocal --version) < /dev/null > /dev/null 2>&1; then
10944 - ACLOCAL=aclocal
10945 - echo "$ac_t""found" 1>&6
10946 -else
10947 - ACLOCAL="$missing_dir/missing aclocal"
10948 - echo "$ac_t""missing" 1>&6
10949 +if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
10950 + ACLOCAL=aclocal-${am__api_version}
10951 + echo "$as_me:$LINENO: result: found" >&5
10952 +echo "${ECHO_T}found" >&6
10953 +else
10954 + ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
10955 + echo "$as_me:$LINENO: result: missing" >&5
10956 +echo "${ECHO_T}missing" >&6
10959 -echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
10960 -echo "configure:823: checking for working autoconf" >&5
10961 +echo "$as_me:$LINENO: checking for working autoconf" >&5
10962 +echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
10963 # Run test in a subshell; some versions of sh will print an error if
10964 # an executable is not found, even if stderr is redirected.
10965 # Redirect stdin to placate older versions of autoconf. Sigh.
10966 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
10967 AUTOCONF=autoconf
10968 - echo "$ac_t""found" 1>&6
10969 + echo "$as_me:$LINENO: result: found" >&5
10970 +echo "${ECHO_T}found" >&6
10971 else
10972 AUTOCONF="$missing_dir/missing autoconf"
10973 - echo "$ac_t""missing" 1>&6
10974 + echo "$as_me:$LINENO: result: missing" >&5
10975 +echo "${ECHO_T}missing" >&6
10978 -echo $ac_n "checking for working automake""... $ac_c" 1>&6
10979 -echo "configure:836: checking for working automake" >&5
10980 +echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
10981 +echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
10982 # Run test in a subshell; some versions of sh will print an error if
10983 # an executable is not found, even if stderr is redirected.
10984 # Redirect stdin to placate older versions of autoconf. Sigh.
10985 -if (automake --version) < /dev/null > /dev/null 2>&1; then
10986 - AUTOMAKE=automake
10987 - echo "$ac_t""found" 1>&6
10988 -else
10989 - AUTOMAKE="$missing_dir/missing automake"
10990 - echo "$ac_t""missing" 1>&6
10991 +if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
10992 + AUTOMAKE=automake-${am__api_version}
10993 + echo "$as_me:$LINENO: result: found" >&5
10994 +echo "${ECHO_T}found" >&6
10995 +else
10996 + AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
10997 + echo "$as_me:$LINENO: result: missing" >&5
10998 +echo "${ECHO_T}missing" >&6
11001 -echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
11002 -echo "configure:849: checking for working autoheader" >&5
11003 +echo "$as_me:$LINENO: checking for working autoheader" >&5
11004 +echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
11005 # Run test in a subshell; some versions of sh will print an error if
11006 # an executable is not found, even if stderr is redirected.
11007 # Redirect stdin to placate older versions of autoconf. Sigh.
11008 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
11009 AUTOHEADER=autoheader
11010 - echo "$ac_t""found" 1>&6
11011 + echo "$as_me:$LINENO: result: found" >&5
11012 +echo "${ECHO_T}found" >&6
11013 else
11014 AUTOHEADER="$missing_dir/missing autoheader"
11015 - echo "$ac_t""missing" 1>&6
11016 + echo "$as_me:$LINENO: result: missing" >&5
11017 +echo "${ECHO_T}missing" >&6
11020 -echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
11021 -echo "configure:862: checking for working makeinfo" >&5
11022 +echo "$as_me:$LINENO: checking for working makeinfo" >&5
11023 +echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
11024 # Run test in a subshell; some versions of sh will print an error if
11025 # an executable is not found, even if stderr is redirected.
11026 # Redirect stdin to placate older versions of autoconf. Sigh.
11027 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
11028 MAKEINFO=makeinfo
11029 - echo "$ac_t""found" 1>&6
11030 + echo "$as_me:$LINENO: result: found" >&5
11031 +echo "${ECHO_T}found" >&6
11032 else
11033 MAKEINFO="$missing_dir/missing makeinfo"
11034 - echo "$ac_t""missing" 1>&6
11035 + echo "$as_me:$LINENO: result: missing" >&5
11036 +echo "${ECHO_T}missing" >&6
11041 # Specify a configuration file
11043 + ac_config_headers="$ac_config_headers config.h"
11045 + ac_config_commands="$ac_config_commands default-1"
11048 # Check whether --enable-shared or --disable-shared was given.
11049 if test "${enable_shared+set}" = set; then
11050 enableval="$enable_shared"
11051 p=${PACKAGE-default}
11052 -case "$enableval" in
11053 -yes) enable_shared=yes ;;
11054 -no) enable_shared=no ;;
11056 - enable_shared=no
11057 - # Look at the argument we got. We use all the common list separators.
11058 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
11059 - for pkg in $enableval; do
11060 - if test "X$pkg" = "X$p"; then
11061 - enable_shared=yes
11062 - fi
11063 - done
11064 - IFS="$ac_save_ifs"
11065 - ;;
11066 -esac
11067 + case $enableval in
11068 + yes) enable_shared=yes ;;
11069 + no) enable_shared=no ;;
11070 + *)
11071 + enable_shared=no
11072 + # Look at the argument we got. We use all the common list separators.
11073 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11074 + for pkg in $enableval; do
11075 + IFS="$lt_save_ifs"
11076 + if test "X$pkg" = "X$p"; then
11077 + enable_shared=yes
11078 + fi
11079 + done
11080 + IFS="$lt_save_ifs"
11081 + ;;
11082 + esac
11083 else
11084 enable_shared=yes
11086 +fi;
11088 # Check whether --enable-static or --disable-static was given.
11089 if test "${enable_static+set}" = set; then
11090 enableval="$enable_static"
11091 p=${PACKAGE-default}
11092 -case "$enableval" in
11093 -yes) enable_static=yes ;;
11094 -no) enable_static=no ;;
11096 - enable_static=no
11097 - # Look at the argument we got. We use all the common list separators.
11098 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
11099 - for pkg in $enableval; do
11100 - if test "X$pkg" = "X$p"; then
11101 - enable_static=yes
11102 - fi
11103 - done
11104 - IFS="$ac_save_ifs"
11105 - ;;
11106 -esac
11107 + case $enableval in
11108 + yes) enable_static=yes ;;
11109 + no) enable_static=no ;;
11110 + *)
11111 + enable_static=no
11112 + # Look at the argument we got. We use all the common list separators.
11113 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11114 + for pkg in $enableval; do
11115 + IFS="$lt_save_ifs"
11116 + if test "X$pkg" = "X$p"; then
11117 + enable_static=yes
11118 + fi
11119 + done
11120 + IFS="$lt_save_ifs"
11121 + ;;
11122 + esac
11123 else
11124 enable_static=yes
11126 +fi;
11128 # Check whether --enable-fast-install or --disable-fast-install was given.
11129 if test "${enable_fast_install+set}" = set; then
11130 enableval="$enable_fast_install"
11131 p=${PACKAGE-default}
11132 -case "$enableval" in
11133 -yes) enable_fast_install=yes ;;
11134 -no) enable_fast_install=no ;;
11136 - enable_fast_install=no
11137 - # Look at the argument we got. We use all the common list separators.
11138 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
11139 - for pkg in $enableval; do
11140 - if test "X$pkg" = "X$p"; then
11141 - enable_fast_install=yes
11142 - fi
11143 - done
11144 - IFS="$ac_save_ifs"
11145 - ;;
11146 -esac
11147 + case $enableval in
11148 + yes) enable_fast_install=yes ;;
11149 + no) enable_fast_install=no ;;
11150 + *)
11151 + enable_fast_install=no
11152 + # Look at the argument we got. We use all the common list separators.
11153 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11154 + for pkg in $enableval; do
11155 + IFS="$lt_save_ifs"
11156 + if test "X$pkg" = "X$p"; then
11157 + enable_fast_install=yes
11158 + fi
11159 + done
11160 + IFS="$lt_save_ifs"
11161 + ;;
11162 + esac
11163 else
11164 enable_fast_install=yes
11167 +fi;
11169 # Make sure we can run config.sub.
11170 -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
11171 -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
11173 +$ac_config_sub sun4 >/dev/null 2>&1 ||
11174 + { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
11175 +echo "$as_me: error: cannot run $ac_config_sub" >&2;}
11176 + { (exit 1); exit 1; }; }
11178 +echo "$as_me:$LINENO: checking build system type" >&5
11179 +echo $ECHO_N "checking build system type... $ECHO_C" >&6
11180 +if test "${ac_cv_build+set}" = set; then
11181 + echo $ECHO_N "(cached) $ECHO_C" >&6
11182 +else
11183 + ac_cv_build_alias=$build_alias
11184 +test -z "$ac_cv_build_alias" &&
11185 + ac_cv_build_alias=`$ac_config_guess`
11186 +test -z "$ac_cv_build_alias" &&
11187 + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
11188 +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
11189 + { (exit 1); exit 1; }; }
11190 +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
11191 + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
11192 +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
11193 + { (exit 1); exit 1; }; }
11196 +echo "$as_me:$LINENO: result: $ac_cv_build" >&5
11197 +echo "${ECHO_T}$ac_cv_build" >&6
11198 +build=$ac_cv_build
11199 +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
11200 +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
11201 +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
11204 +echo "$as_me:$LINENO: checking host system type" >&5
11205 +echo $ECHO_N "checking host system type... $ECHO_C" >&6
11206 +if test "${ac_cv_host+set}" = set; then
11207 + echo $ECHO_N "(cached) $ECHO_C" >&6
11208 +else
11209 + ac_cv_host_alias=$host_alias
11210 +test -z "$ac_cv_host_alias" &&
11211 + ac_cv_host_alias=$ac_cv_build_alias
11212 +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
11213 + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
11214 +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
11215 + { (exit 1); exit 1; }; }
11218 +echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11219 +echo "${ECHO_T}$ac_cv_host" >&6
11220 +host=$ac_cv_host
11221 +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
11222 +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
11223 +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
11225 -echo $ac_n "checking host system type""... $ac_c" 1>&6
11226 -echo "configure:957: checking host system type" >&5
11228 -host_alias=$host
11229 -case "$host_alias" in
11230 -NONE)
11231 - case $nonopt in
11232 - NONE)
11233 - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
11234 - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
11235 - fi ;;
11236 - *) host_alias=$nonopt ;;
11237 - esac ;;
11238 -esac
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
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
11269 -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
11270 -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
11271 -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
11272 -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
11273 -echo "$ac_t""$host" 1>&6
11275 -echo $ac_n "checking build system type""... $ac_c" 1>&6
11276 -echo "configure:978: checking build system type" >&5
11278 -build_alias=$build
11279 -case "$build_alias" in
11280 -NONE)
11281 - case $nonopt in
11282 - NONE) build_alias=$host_alias ;;
11283 - *) build_alias=$nonopt ;;
11284 - esac ;;
11285 -esac
11287 -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
11288 -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
11289 -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
11290 -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
11291 -echo "$ac_t""$build" 1>&6
11294 +CC=$ac_cv_prog_CC
11295 +if test -n "$CC"; then
11296 + echo "$as_me:$LINENO: result: $CC" >&5
11297 +echo "${ECHO_T}$CC" >&6
11298 +else
11299 + echo "$as_me:$LINENO: result: no" >&5
11300 +echo "${ECHO_T}no" >&6
11303 -# Extract the first word of "ranlib", so it can be a program name with args.
11304 -set dummy ranlib; ac_word=$2
11305 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11306 -echo "configure:998: checking for $ac_word" >&5
11307 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
11308 - echo $ac_n "(cached) $ac_c" 1>&6
11310 +if test -z "$ac_cv_prog_CC"; then
11311 + ac_ct_CC=$CC
11312 + # Extract the first word of "gcc", so it can be a program name with args.
11313 +set dummy gcc; ac_word=$2
11314 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11315 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11316 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11317 + echo $ECHO_N "(cached) $ECHO_C" >&6
11318 else
11319 - if test -n "$RANLIB"; then
11320 - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11321 + if test -n "$ac_ct_CC"; then
11322 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11323 else
11324 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11325 - ac_dummy="$PATH"
11326 - for ac_dir in $ac_dummy; do
11327 - test -z "$ac_dir" && ac_dir=.
11328 - if test -f $ac_dir/$ac_word; then
11329 - ac_cv_prog_RANLIB="ranlib"
11330 - break
11331 - fi
11332 - done
11333 - IFS="$ac_save_ifs"
11334 - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
11335 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11336 +for as_dir in $PATH
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_ac_ct_CC="gcc"
11343 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11344 + break 2
11345 + fi
11346 +done
11347 +done
11351 -RANLIB="$ac_cv_prog_RANLIB"
11352 -if test -n "$RANLIB"; then
11353 - echo "$ac_t""$RANLIB" 1>&6
11354 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
11355 +if test -n "$ac_ct_CC"; then
11356 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11357 +echo "${ECHO_T}$ac_ct_CC" >&6
11358 else
11359 - echo "$ac_t""no" 1>&6
11360 + echo "$as_me:$LINENO: result: no" >&5
11361 +echo "${ECHO_T}no" >&6
11364 -# Extract the first word of "gcc", so it can be a program name with args.
11365 -set dummy gcc; ac_word=$2
11366 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11367 -echo "configure:1028: checking for $ac_word" >&5
11368 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
11369 - echo $ac_n "(cached) $ac_c" 1>&6
11370 + CC=$ac_ct_CC
11371 +else
11372 + CC="$ac_cv_prog_CC"
11375 +if test -z "$CC"; then
11376 + if test -n "$ac_tool_prefix"; then
11377 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11378 +set dummy ${ac_tool_prefix}cc; ac_word=$2
11379 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11380 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11381 +if test "${ac_cv_prog_CC+set}" = set; then
11382 + echo $ECHO_N "(cached) $ECHO_C" >&6
11383 else
11384 if test -n "$CC"; then
11385 ac_cv_prog_CC="$CC" # Let the user override the test.
11386 else
11387 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11388 - ac_dummy="$PATH"
11389 - for ac_dir in $ac_dummy; do
11390 - test -z "$ac_dir" && ac_dir=.
11391 - if test -f $ac_dir/$ac_word; then
11392 - ac_cv_prog_CC="gcc"
11393 - break
11394 - fi
11395 - done
11396 - IFS="$ac_save_ifs"
11397 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11398 +for as_dir in $PATH
11400 + IFS=$as_save_IFS
11401 + test -z "$as_dir" && as_dir=.
11402 + for ac_exec_ext in '' $ac_executable_extensions; do
11403 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11404 + ac_cv_prog_CC="${ac_tool_prefix}cc"
11405 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11406 + break 2
11407 + fi
11408 +done
11409 +done
11413 -CC="$ac_cv_prog_CC"
11414 +CC=$ac_cv_prog_CC
11415 if test -n "$CC"; then
11416 - echo "$ac_t""$CC" 1>&6
11417 + echo "$as_me:$LINENO: result: $CC" >&5
11418 +echo "${ECHO_T}$CC" >&6
11419 else
11420 - echo "$ac_t""no" 1>&6
11421 + echo "$as_me:$LINENO: result: no" >&5
11422 +echo "${ECHO_T}no" >&6
11425 -if test -z "$CC"; then
11427 +if test -z "$ac_cv_prog_CC"; then
11428 + ac_ct_CC=$CC
11429 # Extract the first word of "cc", so it can be a program name with args.
11430 set dummy cc; ac_word=$2
11431 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11432 -echo "configure:1058: checking for $ac_word" >&5
11433 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
11434 - echo $ac_n "(cached) $ac_c" 1>&6
11435 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11436 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11437 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11438 + echo $ECHO_N "(cached) $ECHO_C" >&6
11439 else
11440 - if test -n "$CC"; then
11441 - ac_cv_prog_CC="$CC" # Let the user override the test.
11442 + if test -n "$ac_ct_CC"; then
11443 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11444 else
11445 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11446 - ac_prog_rejected=no
11447 - ac_dummy="$PATH"
11448 - for ac_dir in $ac_dummy; do
11449 - test -z "$ac_dir" && ac_dir=.
11450 - if test -f $ac_dir/$ac_word; then
11451 - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
11452 - ac_prog_rejected=yes
11453 - continue
11454 - fi
11455 - ac_cv_prog_CC="cc"
11456 - break
11457 - fi
11458 - done
11459 - IFS="$ac_save_ifs"
11460 -if test $ac_prog_rejected = yes; then
11461 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462 +for as_dir in $PATH
11464 + IFS=$as_save_IFS
11465 + test -z "$as_dir" && as_dir=.
11466 + for ac_exec_ext in '' $ac_executable_extensions; do
11467 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11468 + ac_cv_prog_ac_ct_CC="cc"
11469 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11470 + break 2
11471 + fi
11472 +done
11473 +done
11477 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
11478 +if test -n "$ac_ct_CC"; then
11479 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11480 +echo "${ECHO_T}$ac_ct_CC" >&6
11481 +else
11482 + echo "$as_me:$LINENO: result: no" >&5
11483 +echo "${ECHO_T}no" >&6
11486 + CC=$ac_ct_CC
11487 +else
11488 + CC="$ac_cv_prog_CC"
11492 +if test -z "$CC"; then
11493 + # Extract the first word of "cc", so it can be a program name with args.
11494 +set dummy cc; ac_word=$2
11495 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11496 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11497 +if test "${ac_cv_prog_CC+set}" = set; then
11498 + echo $ECHO_N "(cached) $ECHO_C" >&6
11499 +else
11500 + if test -n "$CC"; then
11501 + ac_cv_prog_CC="$CC" # Let the user override the test.
11502 +else
11503 + ac_prog_rejected=no
11504 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11505 +for as_dir in $PATH
11507 + IFS=$as_save_IFS
11508 + test -z "$as_dir" && as_dir=.
11509 + for ac_exec_ext in '' $ac_executable_extensions; do
11510 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11511 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11512 + ac_prog_rejected=yes
11513 + continue
11514 + fi
11515 + ac_cv_prog_CC="cc"
11516 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11517 + break 2
11518 + fi
11519 +done
11520 +done
11522 +if test $ac_prog_rejected = yes; then
11523 # We found a bogon in the path, so make sure we never use it.
11524 set dummy $ac_cv_prog_CC
11525 shift
11526 - if test $# -gt 0; then
11527 + if test $# != 0; then
11528 # We chose a different compiler from the bogus one.
11529 # However, it has the same basename, so the bogon will be chosen
11530 # first if we set CC to just the basename; use the full file name.
11531 shift
11532 - set dummy "$ac_dir/$ac_word" "$@"
11533 - shift
11534 - ac_cv_prog_CC="$@"
11535 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11540 -CC="$ac_cv_prog_CC"
11541 +CC=$ac_cv_prog_CC
11542 if test -n "$CC"; then
11543 - echo "$ac_t""$CC" 1>&6
11544 + echo "$as_me:$LINENO: result: $CC" >&5
11545 +echo "${ECHO_T}$CC" >&6
11546 else
11547 - echo "$ac_t""no" 1>&6
11548 + echo "$as_me:$LINENO: result: no" >&5
11549 +echo "${ECHO_T}no" >&6
11552 - if test -z "$CC"; then
11553 - case "`uname -s`" in
11554 - *win32* | *WIN32*)
11555 - # Extract the first word of "cl", so it can be a program name with args.
11556 -set dummy cl; ac_word=$2
11557 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11558 -echo "configure:1109: checking for $ac_word" >&5
11559 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
11560 - echo $ac_n "(cached) $ac_c" 1>&6
11562 +if test -z "$CC"; then
11563 + if test -n "$ac_tool_prefix"; then
11564 + for ac_prog in cl
11565 + do
11566 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11567 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11568 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11569 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11570 +if test "${ac_cv_prog_CC+set}" = set; then
11571 + echo $ECHO_N "(cached) $ECHO_C" >&6
11572 else
11573 if test -n "$CC"; then
11574 ac_cv_prog_CC="$CC" # Let the user override the test.
11575 else
11576 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11577 - ac_dummy="$PATH"
11578 - for ac_dir in $ac_dummy; do
11579 - test -z "$ac_dir" && ac_dir=.
11580 - if test -f $ac_dir/$ac_word; then
11581 - ac_cv_prog_CC="cl"
11582 - break
11583 - fi
11584 - done
11585 - IFS="$ac_save_ifs"
11586 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11587 +for as_dir in $PATH
11589 + IFS=$as_save_IFS
11590 + test -z "$as_dir" && as_dir=.
11591 + for ac_exec_ext in '' $ac_executable_extensions; do
11592 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11593 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11594 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11595 + break 2
11596 + fi
11597 +done
11598 +done
11602 -CC="$ac_cv_prog_CC"
11603 +CC=$ac_cv_prog_CC
11604 if test -n "$CC"; then
11605 - echo "$ac_t""$CC" 1>&6
11606 + echo "$as_me:$LINENO: result: $CC" >&5
11607 +echo "${ECHO_T}$CC" >&6
11608 else
11609 - echo "$ac_t""no" 1>&6
11610 + echo "$as_me:$LINENO: result: no" >&5
11611 +echo "${ECHO_T}no" >&6
11613 - ;;
11614 - esac
11616 + test -n "$CC" && break
11617 + done
11619 +if test -z "$CC"; then
11620 + ac_ct_CC=$CC
11621 + for ac_prog in cl
11623 + # Extract the first word of "$ac_prog", so it can be a program name with args.
11624 +set dummy $ac_prog; ac_word=$2
11625 +echo "$as_me:$LINENO: checking for $ac_word" >&5
11626 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11627 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11628 + echo $ECHO_N "(cached) $ECHO_C" >&6
11629 +else
11630 + if test -n "$ac_ct_CC"; then
11631 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11632 +else
11633 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11634 +for as_dir in $PATH
11636 + IFS=$as_save_IFS
11637 + test -z "$as_dir" && as_dir=.
11638 + for ac_exec_ext in '' $ac_executable_extensions; do
11639 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11640 + ac_cv_prog_ac_ct_CC="$ac_prog"
11641 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11642 + break 2
11644 - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
11645 +done
11646 +done
11650 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
11651 +if test -n "$ac_ct_CC"; then
11652 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11653 +echo "${ECHO_T}$ac_ct_CC" >&6
11654 +else
11655 + echo "$as_me:$LINENO: result: no" >&5
11656 +echo "${ECHO_T}no" >&6
11659 + test -n "$ac_ct_CC" && break
11660 +done
11662 -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
11663 -echo "configure:1141: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
11664 + CC=$ac_ct_CC
11667 -ac_ext=c
11668 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11669 -ac_cpp='$CPP $CPPFLAGS'
11670 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11671 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11672 -cross_compiling=$ac_cv_prog_cc_cross
11675 -cat > conftest.$ac_ext << EOF
11677 -#line 1152 "configure"
11678 -#include "confdefs.h"
11679 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11680 +See \`config.log' for more details." >&5
11681 +echo "$as_me: error: no acceptable C compiler found in \$PATH
11682 +See \`config.log' for more details." >&2;}
11683 + { (exit 1); exit 1; }; }
11685 +# Provide some information about the compiler.
11686 +echo "$as_me:$LINENO:" \
11687 + "checking for C compiler version" >&5
11688 +ac_compiler=`set X $ac_compile; echo $2`
11689 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11690 + (eval $ac_compiler --version </dev/null >&5) 2>&5
11691 + ac_status=$?
11692 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 + (exit $ac_status); }
11694 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11695 + (eval $ac_compiler -v </dev/null >&5) 2>&5
11696 + ac_status=$?
11697 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 + (exit $ac_status); }
11699 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11700 + (eval $ac_compiler -V </dev/null >&5) 2>&5
11701 + ac_status=$?
11702 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 + (exit $ac_status); }
11705 +cat >conftest.$ac_ext <<_ACEOF
11706 +/* confdefs.h. */
11707 +_ACEOF
11708 +cat confdefs.h >>conftest.$ac_ext
11709 +cat >>conftest.$ac_ext <<_ACEOF
11710 +/* end confdefs.h. */
11712 -main(){return(0);}
11713 -EOF
11714 -if { (eval echo configure:1157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11715 - ac_cv_prog_cc_works=yes
11716 - # If we can't run a trivial program, we are probably using a cross compiler.
11717 - if (./conftest; exit) 2>/dev/null; then
11718 - ac_cv_prog_cc_cross=no
11719 - else
11720 - ac_cv_prog_cc_cross=yes
11721 - fi
11722 +int
11723 +main ()
11727 + return 0;
11729 +_ACEOF
11730 +ac_clean_files_save=$ac_clean_files
11731 +ac_clean_files="$ac_clean_files a.out a.exe b.out"
11732 +# Try to create an executable without -o first, disregard a.out.
11733 +# It will help us diagnose broken compilers, and finding out an intuition
11734 +# of exeext.
11735 +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11736 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
11737 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11738 +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11739 + (eval $ac_link_default) 2>&5
11740 + ac_status=$?
11741 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 + (exit $ac_status); }; then
11743 + # Find the output, starting from the most likely. This scheme is
11744 +# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11745 +# resort.
11747 +# Be careful to initialize this variable, since it used to be cached.
11748 +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11749 +ac_cv_exeext=
11750 +# b.out is created by i960 compilers.
11751 +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11753 + test -f "$ac_file" || continue
11754 + case $ac_file in
11755 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
11756 + ;;
11757 + conftest.$ac_ext )
11758 + # This is the source file.
11759 + ;;
11760 + [ab].out )
11761 + # We found the default executable, but exeext='' is most
11762 + # certainly right.
11763 + break;;
11764 + *.* )
11765 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11766 + # FIXME: I believe we export ac_cv_exeext for Libtool,
11767 + # but it would be cool to find out if it's true. Does anybody
11768 + # maintain Libtool? --akim.
11769 + export ac_cv_exeext
11770 + break;;
11771 + * )
11772 + break;;
11773 + esac
11774 +done
11775 else
11776 - echo "configure: failed program was:" >&5
11777 - cat conftest.$ac_ext >&5
11778 - ac_cv_prog_cc_works=no
11779 + echo "$as_me: failed program was:" >&5
11780 +sed 's/^/| /' conftest.$ac_ext >&5
11782 +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11783 +See \`config.log' for more details." >&5
11784 +echo "$as_me: error: C compiler cannot create executables
11785 +See \`config.log' for more details." >&2;}
11786 + { (exit 77); exit 77; }; }
11789 +ac_exeext=$ac_cv_exeext
11790 +echo "$as_me:$LINENO: result: $ac_file" >&5
11791 +echo "${ECHO_T}$ac_file" >&6
11793 +# Check the compiler produces executables we can run. If not, either
11794 +# the compiler is broken, or we cross compile.
11795 +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11796 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11797 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11798 +# If not cross compiling, check that we can run a simple program.
11799 +if test "$cross_compiling" != yes; then
11800 + if { ac_try='./$ac_file'
11801 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11802 + (eval $ac_try) 2>&5
11803 + ac_status=$?
11804 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 + (exit $ac_status); }; }; then
11806 + cross_compiling=no
11807 + else
11808 + if test "$cross_compiling" = maybe; then
11809 + cross_compiling=yes
11810 + else
11811 + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11812 +If you meant to cross compile, use \`--host'.
11813 +See \`config.log' for more details." >&5
11814 +echo "$as_me: error: cannot run C compiled programs.
11815 +If you meant to cross compile, use \`--host'.
11816 +See \`config.log' for more details." >&2;}
11817 + { (exit 1); exit 1; }; }
11818 + fi
11819 + fi
11821 -rm -fr conftest*
11822 -ac_ext=c
11823 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11824 -ac_cpp='$CPP $CPPFLAGS'
11825 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11826 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11827 -cross_compiling=$ac_cv_prog_cc_cross
11829 -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
11830 -if test $ac_cv_prog_cc_works = no; then
11831 - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
11833 -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
11834 -echo "configure:1183: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
11835 -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
11836 -cross_compiling=$ac_cv_prog_cc_cross
11838 -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
11839 -echo "configure:1188: checking whether we are using GNU C" >&5
11840 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
11841 - echo $ac_n "(cached) $ac_c" 1>&6
11842 -else
11843 - cat > conftest.c <<EOF
11844 -#ifdef __GNUC__
11845 - yes;
11846 -#endif
11847 -EOF
11848 -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
11849 - ac_cv_prog_gcc=yes
11850 +echo "$as_me:$LINENO: result: yes" >&5
11851 +echo "${ECHO_T}yes" >&6
11853 +rm -f a.out a.exe conftest$ac_cv_exeext b.out
11854 +ac_clean_files=$ac_clean_files_save
11855 +# Check the compiler produces executables we can run. If not, either
11856 +# the compiler is broken, or we cross compile.
11857 +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11858 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11859 +echo "$as_me:$LINENO: result: $cross_compiling" >&5
11860 +echo "${ECHO_T}$cross_compiling" >&6
11862 +echo "$as_me:$LINENO: checking for suffix of executables" >&5
11863 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11864 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11865 + (eval $ac_link) 2>&5
11866 + ac_status=$?
11867 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 + (exit $ac_status); }; then
11869 + # If both `conftest.exe' and `conftest' are `present' (well, observable)
11870 +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11871 +# work properly (i.e., refer to `conftest.exe'), while it won't with
11872 +# `rm'.
11873 +for ac_file in conftest.exe conftest conftest.*; do
11874 + test -f "$ac_file" || continue
11875 + case $ac_file in
11876 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11877 + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11878 + export ac_cv_exeext
11879 + break;;
11880 + * ) break;;
11881 + esac
11882 +done
11883 else
11884 - ac_cv_prog_gcc=no
11887 + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11888 +See \`config.log' for more details." >&5
11889 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11890 +See \`config.log' for more details." >&2;}
11891 + { (exit 1); exit 1; }; }
11894 +rm -f conftest$ac_cv_exeext
11895 +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11896 +echo "${ECHO_T}$ac_cv_exeext" >&6
11898 +rm -f conftest.$ac_ext
11899 +EXEEXT=$ac_cv_exeext
11900 +ac_exeext=$EXEEXT
11901 +echo "$as_me:$LINENO: checking for suffix of object files" >&5
11902 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11903 +if test "${ac_cv_objext+set}" = set; then
11904 + echo $ECHO_N "(cached) $ECHO_C" >&6
11905 +else
11906 + cat >conftest.$ac_ext <<_ACEOF
11907 +/* confdefs.h. */
11908 +_ACEOF
11909 +cat confdefs.h >>conftest.$ac_ext
11910 +cat >>conftest.$ac_ext <<_ACEOF
11911 +/* end confdefs.h. */
11913 -echo "$ac_t""$ac_cv_prog_gcc" 1>&6
11914 +int
11915 +main ()
11918 -if test $ac_cv_prog_gcc = yes; then
11919 - GCC=yes
11921 + return 0;
11923 +_ACEOF
11924 +rm -f conftest.o conftest.obj
11925 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11926 + (eval $ac_compile) 2>&5
11927 + ac_status=$?
11928 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 + (exit $ac_status); }; then
11930 + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11931 + case $ac_file in
11932 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11933 + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11934 + break;;
11935 + esac
11936 +done
11937 else
11938 - GCC=
11940 + echo "$as_me: failed program was:" >&5
11941 +sed 's/^/| /' conftest.$ac_ext >&5
11943 -ac_test_CFLAGS="${CFLAGS+set}"
11944 -ac_save_CFLAGS="$CFLAGS"
11945 -CFLAGS=
11946 -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
11947 -echo "configure:1216: checking whether ${CC-cc} accepts -g" >&5
11948 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
11949 - echo $ac_n "(cached) $ac_c" 1>&6
11950 -else
11951 - echo 'void f(){}' > conftest.c
11952 -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
11953 +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11954 +See \`config.log' for more details." >&5
11955 +echo "$as_me: error: cannot compute suffix of object files: cannot compile
11956 +See \`config.log' for more details." >&2;}
11957 + { (exit 1); exit 1; }; }
11960 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
11962 +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11963 +echo "${ECHO_T}$ac_cv_objext" >&6
11964 +OBJEXT=$ac_cv_objext
11965 +ac_objext=$OBJEXT
11966 +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11967 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11968 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
11969 + echo $ECHO_N "(cached) $ECHO_C" >&6
11970 +else
11971 + cat >conftest.$ac_ext <<_ACEOF
11972 +/* confdefs.h. */
11973 +_ACEOF
11974 +cat confdefs.h >>conftest.$ac_ext
11975 +cat >>conftest.$ac_ext <<_ACEOF
11976 +/* end confdefs.h. */
11978 +int
11979 +main ()
11981 +#ifndef __GNUC__
11982 + choke me
11983 +#endif
11986 + return 0;
11988 +_ACEOF
11989 +rm -f conftest.$ac_objext
11990 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11991 + (eval $ac_compile) 2>conftest.er1
11992 + ac_status=$?
11993 + grep -v '^ *+' conftest.er1 >conftest.err
11994 + rm -f conftest.er1
11995 + cat conftest.err >&5
11996 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 + (exit $ac_status); } &&
11998 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11999 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000 + (eval $ac_try) 2>&5
12001 + ac_status=$?
12002 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 + (exit $ac_status); }; } &&
12004 + { ac_try='test -s conftest.$ac_objext'
12005 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006 + (eval $ac_try) 2>&5
12007 + ac_status=$?
12008 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 + (exit $ac_status); }; }; then
12010 + ac_compiler_gnu=yes
12011 +else
12012 + echo "$as_me: failed program was:" >&5
12013 +sed 's/^/| /' conftest.$ac_ext >&5
12015 +ac_compiler_gnu=no
12017 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12018 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
12021 +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12022 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12023 +GCC=`test $ac_compiler_gnu = yes && echo yes`
12024 +ac_test_CFLAGS=${CFLAGS+set}
12025 +ac_save_CFLAGS=$CFLAGS
12026 +CFLAGS="-g"
12027 +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12028 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12029 +if test "${ac_cv_prog_cc_g+set}" = set; then
12030 + echo $ECHO_N "(cached) $ECHO_C" >&6
12031 +else
12032 + cat >conftest.$ac_ext <<_ACEOF
12033 +/* confdefs.h. */
12034 +_ACEOF
12035 +cat confdefs.h >>conftest.$ac_ext
12036 +cat >>conftest.$ac_ext <<_ACEOF
12037 +/* end confdefs.h. */
12039 +int
12040 +main ()
12044 + return 0;
12046 +_ACEOF
12047 +rm -f conftest.$ac_objext
12048 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12049 + (eval $ac_compile) 2>conftest.er1
12050 + ac_status=$?
12051 + grep -v '^ *+' conftest.er1 >conftest.err
12052 + rm -f conftest.er1
12053 + cat conftest.err >&5
12054 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 + (exit $ac_status); } &&
12056 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12057 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12058 + (eval $ac_try) 2>&5
12059 + ac_status=$?
12060 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 + (exit $ac_status); }; } &&
12062 + { ac_try='test -s conftest.$ac_objext'
12063 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064 + (eval $ac_try) 2>&5
12065 + ac_status=$?
12066 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 + (exit $ac_status); }; }; then
12068 ac_cv_prog_cc_g=yes
12069 else
12070 - ac_cv_prog_cc_g=no
12072 -rm -f conftest*
12073 + echo "$as_me: failed program was:" >&5
12074 +sed 's/^/| /' conftest.$ac_ext >&5
12076 +ac_cv_prog_cc_g=no
12079 -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
12080 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12082 +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12083 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12084 if test "$ac_test_CFLAGS" = set; then
12085 - CFLAGS="$ac_save_CFLAGS"
12086 + CFLAGS=$ac_save_CFLAGS
12087 elif test $ac_cv_prog_cc_g = yes; then
12088 if test "$GCC" = yes; then
12089 CFLAGS="-g -O2"
12090 @@ -1242,6 +2670,338 @@
12091 CFLAGS=
12094 +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12095 +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12096 +if test "${ac_cv_prog_cc_stdc+set}" = set; then
12097 + echo $ECHO_N "(cached) $ECHO_C" >&6
12098 +else
12099 + ac_cv_prog_cc_stdc=no
12100 +ac_save_CC=$CC
12101 +cat >conftest.$ac_ext <<_ACEOF
12102 +/* confdefs.h. */
12103 +_ACEOF
12104 +cat confdefs.h >>conftest.$ac_ext
12105 +cat >>conftest.$ac_ext <<_ACEOF
12106 +/* end confdefs.h. */
12107 +#include <stdarg.h>
12108 +#include <stdio.h>
12109 +#include <sys/types.h>
12110 +#include <sys/stat.h>
12111 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12112 +struct buf { int x; };
12113 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
12114 +static char *e (p, i)
12115 + char **p;
12116 + int i;
12118 + return p[i];
12120 +static char *f (char * (*g) (char **, int), char **p, ...)
12122 + char *s;
12123 + va_list v;
12124 + va_start (v,p);
12125 + s = g (p, va_arg (v,int));
12126 + va_end (v);
12127 + return s;
12130 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12131 + function prototypes and stuff, but not '\xHH' hex character constants.
12132 + These don't provoke an error unfortunately, instead are silently treated
12133 + as 'x'. The following induces an error, until -std1 is added to get
12134 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12135 + array size at least. It's necessary to write '\x00'==0 to get something
12136 + that's true only with -std1. */
12137 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12139 +int test (int i, double x);
12140 +struct s1 {int (*f) (int a);};
12141 +struct s2 {int (*f) (double a);};
12142 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12143 +int argc;
12144 +char **argv;
12145 +int
12146 +main ()
12148 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12150 + return 0;
12152 +_ACEOF
12153 +# Don't try gcc -ansi; that turns off useful extensions and
12154 +# breaks some systems' header files.
12155 +# AIX -qlanglvl=ansi
12156 +# Ultrix and OSF/1 -std1
12157 +# HP-UX 10.20 and later -Ae
12158 +# HP-UX older versions -Aa -D_HPUX_SOURCE
12159 +# SVR4 -Xc -D__EXTENSIONS__
12160 +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12162 + CC="$ac_save_CC $ac_arg"
12163 + rm -f conftest.$ac_objext
12164 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12165 + (eval $ac_compile) 2>conftest.er1
12166 + ac_status=$?
12167 + grep -v '^ *+' conftest.er1 >conftest.err
12168 + rm -f conftest.er1
12169 + cat conftest.err >&5
12170 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 + (exit $ac_status); } &&
12172 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12173 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 + (eval $ac_try) 2>&5
12175 + ac_status=$?
12176 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 + (exit $ac_status); }; } &&
12178 + { ac_try='test -s conftest.$ac_objext'
12179 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 + (eval $ac_try) 2>&5
12181 + ac_status=$?
12182 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 + (exit $ac_status); }; }; then
12184 + ac_cv_prog_cc_stdc=$ac_arg
12185 +break
12186 +else
12187 + echo "$as_me: failed program was:" >&5
12188 +sed 's/^/| /' conftest.$ac_ext >&5
12191 +rm -f conftest.err conftest.$ac_objext
12192 +done
12193 +rm -f conftest.$ac_ext conftest.$ac_objext
12194 +CC=$ac_save_CC
12198 +case "x$ac_cv_prog_cc_stdc" in
12199 + x|xno)
12200 + echo "$as_me:$LINENO: result: none needed" >&5
12201 +echo "${ECHO_T}none needed" >&6 ;;
12202 + *)
12203 + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12204 +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12205 + CC="$CC $ac_cv_prog_cc_stdc" ;;
12206 +esac
12208 +# Some people use a C++ compiler to compile C. Since we use `exit',
12209 +# in C++ we need to declare it. In case someone uses the same compiler
12210 +# for both compiling C and C++ we need to have the C++ compiler decide
12211 +# the declaration of exit, since it's the most demanding environment.
12212 +cat >conftest.$ac_ext <<_ACEOF
12213 +#ifndef __cplusplus
12214 + choke me
12215 +#endif
12216 +_ACEOF
12217 +rm -f conftest.$ac_objext
12218 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12219 + (eval $ac_compile) 2>conftest.er1
12220 + ac_status=$?
12221 + grep -v '^ *+' conftest.er1 >conftest.err
12222 + rm -f conftest.er1
12223 + cat conftest.err >&5
12224 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 + (exit $ac_status); } &&
12226 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12227 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 + (eval $ac_try) 2>&5
12229 + ac_status=$?
12230 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 + (exit $ac_status); }; } &&
12232 + { ac_try='test -s conftest.$ac_objext'
12233 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12234 + (eval $ac_try) 2>&5
12235 + ac_status=$?
12236 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 + (exit $ac_status); }; }; then
12238 + for ac_declaration in \
12239 + '' \
12240 + 'extern "C" void std::exit (int) throw (); using std::exit;' \
12241 + 'extern "C" void std::exit (int); using std::exit;' \
12242 + 'extern "C" void exit (int) throw ();' \
12243 + 'extern "C" void exit (int);' \
12244 + 'void exit (int);'
12246 + cat >conftest.$ac_ext <<_ACEOF
12247 +/* confdefs.h. */
12248 +_ACEOF
12249 +cat confdefs.h >>conftest.$ac_ext
12250 +cat >>conftest.$ac_ext <<_ACEOF
12251 +/* end confdefs.h. */
12252 +$ac_declaration
12253 +#include <stdlib.h>
12254 +int
12255 +main ()
12257 +exit (42);
12259 + return 0;
12261 +_ACEOF
12262 +rm -f conftest.$ac_objext
12263 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12264 + (eval $ac_compile) 2>conftest.er1
12265 + ac_status=$?
12266 + grep -v '^ *+' conftest.er1 >conftest.err
12267 + rm -f conftest.er1
12268 + cat conftest.err >&5
12269 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 + (exit $ac_status); } &&
12271 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12272 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273 + (eval $ac_try) 2>&5
12274 + ac_status=$?
12275 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 + (exit $ac_status); }; } &&
12277 + { ac_try='test -s conftest.$ac_objext'
12278 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279 + (eval $ac_try) 2>&5
12280 + ac_status=$?
12281 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 + (exit $ac_status); }; }; then
12284 +else
12285 + echo "$as_me: failed program was:" >&5
12286 +sed 's/^/| /' conftest.$ac_ext >&5
12288 +continue
12290 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12291 + cat >conftest.$ac_ext <<_ACEOF
12292 +/* confdefs.h. */
12293 +_ACEOF
12294 +cat confdefs.h >>conftest.$ac_ext
12295 +cat >>conftest.$ac_ext <<_ACEOF
12296 +/* end confdefs.h. */
12297 +$ac_declaration
12298 +int
12299 +main ()
12301 +exit (42);
12303 + return 0;
12305 +_ACEOF
12306 +rm -f conftest.$ac_objext
12307 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12308 + (eval $ac_compile) 2>conftest.er1
12309 + ac_status=$?
12310 + grep -v '^ *+' conftest.er1 >conftest.err
12311 + rm -f conftest.er1
12312 + cat conftest.err >&5
12313 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 + (exit $ac_status); } &&
12315 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12316 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12317 + (eval $ac_try) 2>&5
12318 + ac_status=$?
12319 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 + (exit $ac_status); }; } &&
12321 + { ac_try='test -s conftest.$ac_objext'
12322 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12323 + (eval $ac_try) 2>&5
12324 + ac_status=$?
12325 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 + (exit $ac_status); }; }; then
12327 + break
12328 +else
12329 + echo "$as_me: failed program was:" >&5
12330 +sed 's/^/| /' conftest.$ac_ext >&5
12333 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12334 +done
12335 +rm -f conftest*
12336 +if test -n "$ac_declaration"; then
12337 + echo '#ifdef __cplusplus' >>confdefs.h
12338 + echo $ac_declaration >>confdefs.h
12339 + echo '#endif' >>confdefs.h
12342 +else
12343 + echo "$as_me: failed program was:" >&5
12344 +sed 's/^/| /' conftest.$ac_ext >&5
12347 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12348 +ac_ext=c
12349 +ac_cpp='$CPP $CPPFLAGS'
12350 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12351 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12352 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
12354 +echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12355 +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
12356 +if test "${lt_cv_path_SED+set}" = set; then
12357 + echo $ECHO_N "(cached) $ECHO_C" >&6
12358 +else
12359 + # Loop through the user's path and test for sed and gsed.
12360 +# Then use that list of sed's as ones to test for truncation.
12361 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362 +for as_dir in $PATH
12364 + IFS=$as_save_IFS
12365 + test -z "$as_dir" && as_dir=.
12366 + for lt_ac_prog in sed gsed; do
12367 + for ac_exec_ext in '' $ac_executable_extensions; do
12368 + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12369 + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12370 + fi
12371 + done
12372 + done
12373 +done
12374 +lt_ac_max=0
12375 +lt_ac_count=0
12376 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12377 +# along with /bin/sed that truncates output.
12378 +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12379 + test ! -f $lt_ac_sed && continue
12380 + cat /dev/null > conftest.in
12381 + lt_ac_count=0
12382 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12383 + # Check for GNU sed and select it if it is found.
12384 + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12385 + lt_cv_path_SED=$lt_ac_sed
12386 + break
12387 + fi
12388 + while true; do
12389 + cat conftest.in conftest.in >conftest.tmp
12390 + mv conftest.tmp conftest.in
12391 + cp conftest.in conftest.nl
12392 + echo >>conftest.nl
12393 + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12394 + cmp -s conftest.out conftest.nl || break
12395 + # 10000 chars as input seems more than enough
12396 + test $lt_ac_count -gt 10 && break
12397 + lt_ac_count=`expr $lt_ac_count + 1`
12398 + if test $lt_ac_count -gt $lt_ac_max; then
12399 + lt_ac_max=$lt_ac_count
12400 + lt_cv_path_SED=$lt_ac_sed
12401 + fi
12402 + done
12403 +done
12407 +SED=$lt_cv_path_SED
12408 +echo "$as_me:$LINENO: result: $SED" >&5
12409 +echo "${ECHO_T}$SED" >&6
12411 +echo "$as_me:$LINENO: checking for egrep" >&5
12412 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12413 +if test "${ac_cv_prog_egrep+set}" = set; then
12414 + echo $ECHO_N "(cached) $ECHO_C" >&6
12415 +else
12416 + if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12417 + then ac_cv_prog_egrep='grep -E'
12418 + else ac_cv_prog_egrep='egrep'
12419 + fi
12421 +echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12422 +echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12423 + EGREP=$ac_cv_prog_egrep
12427 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12428 if test "${with_gnu_ld+set}" = set; then
12429 @@ -1249,22 +3009,27 @@
12430 test "$withval" = no || with_gnu_ld=yes
12431 else
12432 with_gnu_ld=no
12435 +fi;
12436 ac_prog=ld
12437 -if test "$ac_cv_prog_gcc" = yes; then
12438 +if test "$GCC" = yes; then
12439 # Check if gcc -print-prog-name=ld gives a path.
12440 - echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
12441 -echo "configure:1259: checking for ld used by GCC" >&5
12442 - ac_prog=`($CC -print-prog-name=ld) 2>&5`
12443 - case "$ac_prog" in
12444 + echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12445 +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12446 + case $host in
12447 + *-*-mingw*)
12448 + # gcc leaves a trailing carriage return which upsets mingw
12449 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12450 + *)
12451 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12452 + esac
12453 + case $ac_prog in
12454 # Accept absolute paths.
12455 - [\\/]* | [A-Za-z]:[\\/]*)
12456 + [\\/]* | ?:[\\/]*)
12457 re_direlt='/[^/][^/]*/\.\./'
12458 - # Canonicalize the path of ld
12459 - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12460 + # Canonicalize the pathname of ld
12461 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12462 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12463 - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12464 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12465 done
12466 test -z "$LD" && LD="$ac_prog"
12468 @@ -1278,294 +3043,15189 @@
12470 esac
12471 elif test "$with_gnu_ld" = yes; then
12472 - echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
12473 -echo "configure:1283: checking for GNU ld" >&5
12474 + echo "$as_me:$LINENO: checking for GNU ld" >&5
12475 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12476 else
12477 - echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
12478 -echo "configure:1286: checking for non-GNU ld" >&5
12479 + echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12480 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12482 -if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
12483 - echo $ac_n "(cached) $ac_c" 1>&6
12484 +if test "${lt_cv_path_LD+set}" = set; then
12485 + echo $ECHO_N "(cached) $ECHO_C" >&6
12486 else
12487 if test -z "$LD"; then
12488 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12489 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12490 for ac_dir in $PATH; do
12491 + IFS="$lt_save_ifs"
12492 test -z "$ac_dir" && ac_dir=.
12493 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12494 - ac_cv_path_LD="$ac_dir/$ac_prog"
12495 + lt_cv_path_LD="$ac_dir/$ac_prog"
12496 # Check to see if the program is GNU ld. I'd rather use --version,
12497 - # but apparently some GNU ld's only accept -v.
12498 + # but apparently some variants of GNU ld only accept -v.
12499 # Break only if it was the GNU/non-GNU ld that we prefer.
12500 - if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12501 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12502 + *GNU* | *'with BFD'*)
12503 test "$with_gnu_ld" != no && break
12504 - else
12505 + ;;
12506 + *)
12507 test "$with_gnu_ld" != yes && break
12508 - fi
12509 + ;;
12510 + esac
12512 done
12513 - IFS="$ac_save_ifs"
12514 + IFS="$lt_save_ifs"
12515 else
12516 - ac_cv_path_LD="$LD" # Let the user override the test with a path.
12517 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
12521 -LD="$ac_cv_path_LD"
12522 +LD="$lt_cv_path_LD"
12523 if test -n "$LD"; then
12524 - echo "$ac_t""$LD" 1>&6
12525 -else
12526 - echo "$ac_t""no" 1>&6
12528 -test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
12529 -echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
12530 -echo "configure:1321: checking if the linker ($LD) is GNU ld" >&5
12531 -if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
12532 - echo $ac_n "(cached) $ac_c" 1>&6
12533 + echo "$as_me:$LINENO: result: $LD" >&5
12534 +echo "${ECHO_T}$LD" >&6
12535 else
12536 - # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12537 -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12538 - ac_cv_prog_gnu_ld=yes
12539 -else
12540 - ac_cv_prog_gnu_ld=no
12541 + echo "$as_me:$LINENO: result: no" >&5
12542 +echo "${ECHO_T}no" >&6
12544 +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12545 +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12546 + { (exit 1); exit 1; }; }
12547 +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12548 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12549 +if test "${lt_cv_prog_gnu_ld+set}" = set; then
12550 + echo $ECHO_N "(cached) $ECHO_C" >&6
12551 +else
12552 + # I'd rather use --version here, but apparently some GNU lds only accept -v.
12553 +case `$LD -v 2>&1 </dev/null` in
12554 +*GNU* | *'with BFD'*)
12555 + lt_cv_prog_gnu_ld=yes
12556 + ;;
12558 + lt_cv_prog_gnu_ld=no
12559 + ;;
12560 +esac
12562 +echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12563 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12564 +with_gnu_ld=$lt_cv_prog_gnu_ld
12567 +echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12568 +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
12569 +if test "${lt_cv_ld_reload_flag+set}" = set; then
12570 + echo $ECHO_N "(cached) $ECHO_C" >&6
12571 +else
12572 + lt_cv_ld_reload_flag='-r'
12574 +echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12575 +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
12576 +reload_flag=$lt_cv_ld_reload_flag
12577 +case $reload_flag in
12578 +"" | " "*) ;;
12579 +*) reload_flag=" $reload_flag" ;;
12580 +esac
12581 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
12582 +case $host_os in
12583 + darwin*)
12584 + if test "$GCC" = yes; then
12585 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12586 + else
12587 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
12588 + fi
12589 + ;;
12590 +esac
12592 -echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
12595 -echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
12596 -echo "configure:1337: checking for BSD-compatible nm" >&5
12597 -if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
12598 - echo $ac_n "(cached) $ac_c" 1>&6
12599 +echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
12600 +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
12601 +if test "${lt_cv_path_NM+set}" = set; then
12602 + echo $ECHO_N "(cached) $ECHO_C" >&6
12603 else
12604 if test -n "$NM"; then
12605 # Let the user override the test.
12606 - ac_cv_path_NM="$NM"
12607 + lt_cv_path_NM="$NM"
12608 else
12609 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12610 - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
12611 - test -z "$ac_dir" && ac_dir=.
12612 - if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
12613 - # Check to see if the nm accepts a BSD-compat flag.
12614 - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12615 - # nm: unknown option "B" ignored
12616 - if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
12617 - ac_cv_path_NM="$ac_dir/nm -B"
12618 - break
12619 - elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
12620 - ac_cv_path_NM="$ac_dir/nm -p"
12621 - break
12622 - else
12623 - ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
12624 - continue # so that we can try to find one that supports BSD flags
12625 + lt_nm_to_check="${ac_tool_prefix}nm"
12626 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12627 + lt_nm_to_check="$lt_nm_to_check nm"
12628 + fi
12629 + for lt_tmp_nm in $lt_nm_to_check; do
12630 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12631 + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12632 + IFS="$lt_save_ifs"
12633 + test -z "$ac_dir" && ac_dir=.
12634 + tmp_nm="$ac_dir/$lt_tmp_nm"
12635 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12636 + # Check to see if the nm accepts a BSD-compat flag.
12637 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12638 + # nm: unknown option "B" ignored
12639 + # Tru64's nm complains that /dev/null is an invalid object file
12640 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12641 + */dev/null* | *'Invalid file or object type'*)
12642 + lt_cv_path_NM="$tmp_nm -B"
12643 + break
12644 + ;;
12645 + *)
12646 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12647 + */dev/null*)
12648 + lt_cv_path_NM="$tmp_nm -p"
12649 + break
12650 + ;;
12651 + *)
12652 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12653 + continue # so that we can try to find one that supports BSD flags
12654 + ;;
12655 + esac
12656 + ;;
12657 + esac
12659 - fi
12660 + done
12661 + IFS="$lt_save_ifs"
12662 done
12663 - IFS="$ac_save_ifs"
12664 - test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
12665 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
12668 +echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
12669 +echo "${ECHO_T}$lt_cv_path_NM" >&6
12670 +NM="$lt_cv_path_NM"
12672 +echo "$as_me:$LINENO: checking whether ln -s works" >&5
12673 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12674 +LN_S=$as_ln_s
12675 +if test "$LN_S" = "ln -s"; then
12676 + echo "$as_me:$LINENO: result: yes" >&5
12677 +echo "${ECHO_T}yes" >&6
12678 +else
12679 + echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12680 +echo "${ECHO_T}no, using $LN_S" >&6
12683 +echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12684 +echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
12685 +if test "${lt_cv_deplibs_check_method+set}" = set; then
12686 + echo $ECHO_N "(cached) $ECHO_C" >&6
12687 +else
12688 + lt_cv_file_magic_cmd='$MAGIC_CMD'
12689 +lt_cv_file_magic_test_file=
12690 +lt_cv_deplibs_check_method='unknown'
12691 +# Need to set the preceding variable on all platforms that support
12692 +# interlibrary dependencies.
12693 +# 'none' -- dependencies not supported.
12694 +# `unknown' -- same as none, but documents that we really don't know.
12695 +# 'pass_all' -- all dependencies passed with no checks.
12696 +# 'test_compile' -- check by making test program.
12697 +# 'file_magic [[regex]]' -- check by looking for files in library path
12698 +# which responds to the $file_magic_cmd with a given extended regex.
12699 +# If you have `file' or equivalent on your system and you're not sure
12700 +# whether `pass_all' will *always* work, you probably want this one.
12702 +case $host_os in
12703 +aix4* | aix5*)
12704 + lt_cv_deplibs_check_method=pass_all
12705 + ;;
12707 -NM="$ac_cv_path_NM"
12708 -echo "$ac_t""$NM" 1>&6
12709 +beos*)
12710 + lt_cv_deplibs_check_method=pass_all
12711 + ;;
12713 -echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
12714 -echo "configure:1373: checking whether ln -s works" >&5
12715 -if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
12716 - echo $ac_n "(cached) $ac_c" 1>&6
12717 -else
12718 - rm -f conftestdata
12719 -if ln -s X conftestdata 2>/dev/null
12720 -then
12721 - rm -f conftestdata
12722 - ac_cv_prog_LN_S="ln -s"
12723 -else
12724 - ac_cv_prog_LN_S=ln
12727 -LN_S="$ac_cv_prog_LN_S"
12728 -if test "$ac_cv_prog_LN_S" = "ln -s"; then
12729 - echo "$ac_t""yes" 1>&6
12730 -else
12731 - echo "$ac_t""no" 1>&6
12733 +bsdi[45]*)
12734 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12735 + lt_cv_file_magic_cmd='/usr/bin/file -L'
12736 + lt_cv_file_magic_test_file=/shlib/libc.so
12737 + ;;
12739 +cygwin*)
12740 + # func_win32_libid is a shell function defined in ltmain.sh
12741 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12742 + lt_cv_file_magic_cmd='func_win32_libid'
12743 + ;;
12745 -case "$target" in
12746 -NONE) lt_target="$host" ;;
12747 -*) lt_target="$target" ;;
12748 -esac
12749 +mingw* | pw32*)
12750 + # Base MSYS/MinGW do not provide the 'file' command needed by
12751 + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12752 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12753 + lt_cv_file_magic_cmd='$OBJDUMP -f'
12754 + ;;
12756 +darwin* | rhapsody*)
12757 + lt_cv_deplibs_check_method=pass_all
12758 + ;;
12760 +freebsd* | kfreebsd*-gnu | dragonfly*)
12761 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12762 + case $host_cpu in
12763 + i*86 )
12764 + # Not sure whether the presence of OpenBSD here was a mistake.
12765 + # Let's accept both of them until this is cleared up.
12766 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12767 + lt_cv_file_magic_cmd=/usr/bin/file
12768 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12769 + ;;
12770 + esac
12771 + else
12772 + lt_cv_deplibs_check_method=pass_all
12773 + fi
12774 + ;;
12776 +gnu*)
12777 + lt_cv_deplibs_check_method=pass_all
12778 + ;;
12780 +hpux10.20* | hpux11*)
12781 + lt_cv_file_magic_cmd=/usr/bin/file
12782 + case $host_cpu in
12783 + ia64*)
12784 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12785 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12786 + ;;
12787 + hppa*64*)
12788 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
12789 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12790 + ;;
12791 + *)
12792 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12793 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
12794 + ;;
12795 + esac
12796 + ;;
12798 +interix3*)
12799 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12800 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12801 + ;;
12803 +irix5* | irix6* | nonstopux*)
12804 + case $LD in
12805 + *-32|*"-32 ") libmagic=32-bit;;
12806 + *-n32|*"-n32 ") libmagic=N32;;
12807 + *-64|*"-64 ") libmagic=64-bit;;
12808 + *) libmagic=never-match;;
12809 + esac
12810 + lt_cv_deplibs_check_method=pass_all
12811 + ;;
12813 +# This must be Linux ELF.
12814 +linux*)
12815 + lt_cv_deplibs_check_method=pass_all
12816 + ;;
12818 +netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
12819 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12820 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12821 + else
12822 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12823 + fi
12824 + ;;
12826 +newos6*)
12827 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12828 + lt_cv_file_magic_cmd=/usr/bin/file
12829 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
12830 + ;;
12832 +nto-qnx*)
12833 + lt_cv_deplibs_check_method=unknown
12834 + ;;
12836 +openbsd*)
12837 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12838 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12839 + else
12840 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12841 + fi
12842 + ;;
12844 +osf3* | osf4* | osf5*)
12845 + lt_cv_deplibs_check_method=pass_all
12846 + ;;
12848 +solaris*)
12849 + lt_cv_deplibs_check_method=pass_all
12850 + ;;
12852 +sysv4 | sysv4.3*)
12853 + case $host_vendor in
12854 + motorola)
12855 + 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]'
12856 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12857 + ;;
12858 + ncr)
12859 + lt_cv_deplibs_check_method=pass_all
12860 + ;;
12861 + sequent)
12862 + lt_cv_file_magic_cmd='/bin/file'
12863 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12864 + ;;
12865 + sni)
12866 + lt_cv_file_magic_cmd='/bin/file'
12867 + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12868 + lt_cv_file_magic_test_file=/lib/libc.so
12869 + ;;
12870 + siemens)
12871 + lt_cv_deplibs_check_method=pass_all
12872 + ;;
12873 + pc)
12874 + lt_cv_deplibs_check_method=pass_all
12875 + ;;
12876 + esac
12877 + ;;
12879 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12880 + lt_cv_deplibs_check_method=pass_all
12881 + ;;
12882 +esac
12885 +echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12886 +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
12887 +file_magic_cmd=$lt_cv_file_magic_cmd
12888 +deplibs_check_method=$lt_cv_deplibs_check_method
12889 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
12894 +# If no C compiler was specified, use CC.
12895 +LTCC=${LTCC-"$CC"}
12897 +# If no C compiler flags were specified, use CFLAGS.
12898 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12900 +# Allow CC to be a program name with arguments.
12901 +compiler=$CC
12904 +# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
12905 +if test "${enable_libtool_lock+set}" = set; then
12906 + enableval="$enable_libtool_lock"
12908 +fi;
12909 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12911 +# Some flags need to be propagated to the compiler or linker for good
12912 +# libtool support.
12913 +case $host in
12914 +ia64-*-hpux*)
12915 + # Find out which ABI we are using.
12916 + echo 'int i;' > conftest.$ac_ext
12917 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12918 + (eval $ac_compile) 2>&5
12919 + ac_status=$?
12920 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 + (exit $ac_status); }; then
12922 + case `/usr/bin/file conftest.$ac_objext` in
12923 + *ELF-32*)
12924 + HPUX_IA64_MODE="32"
12925 + ;;
12926 + *ELF-64*)
12927 + HPUX_IA64_MODE="64"
12928 + ;;
12929 + esac
12930 + fi
12931 + rm -rf conftest*
12932 + ;;
12933 +*-*-irix6*)
12934 + # Find out which ABI we are using.
12935 + echo '#line 3427 "configure"' > conftest.$ac_ext
12936 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12937 + (eval $ac_compile) 2>&5
12938 + ac_status=$?
12939 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 + (exit $ac_status); }; then
12941 + if test "$lt_cv_prog_gnu_ld" = yes; then
12942 + case `/usr/bin/file conftest.$ac_objext` in
12943 + *32-bit*)
12944 + LD="${LD-ld} -melf32bsmip"
12945 + ;;
12946 + *N32*)
12947 + LD="${LD-ld} -melf32bmipn32"
12948 + ;;
12949 + *64-bit*)
12950 + LD="${LD-ld} -melf64bmip"
12951 + ;;
12952 + esac
12953 + else
12954 + case `/usr/bin/file conftest.$ac_objext` in
12955 + *32-bit*)
12956 + LD="${LD-ld} -32"
12957 + ;;
12958 + *N32*)
12959 + LD="${LD-ld} -n32"
12960 + ;;
12961 + *64-bit*)
12962 + LD="${LD-ld} -64"
12963 + ;;
12964 + esac
12965 + fi
12966 + fi
12967 + rm -rf conftest*
12968 + ;;
12970 +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12971 + # Find out which ABI we are using.
12972 + echo 'int i;' > conftest.$ac_ext
12973 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12974 + (eval $ac_compile) 2>&5
12975 + ac_status=$?
12976 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 + (exit $ac_status); }; then
12978 + case `/usr/bin/file conftest.o` in
12979 + *32-bit*)
12980 + case $host in
12981 + x86_64-*linux*)
12982 + LD="${LD-ld} -m elf_i386"
12983 + ;;
12984 + ppc64-*linux*|powerpc64-*linux*)
12985 + LD="${LD-ld} -m elf32ppclinux"
12986 + ;;
12987 + s390x-*linux*)
12988 + LD="${LD-ld} -m elf_s390"
12989 + ;;
12990 + sparc64-*linux*)
12991 + LD="${LD-ld} -m elf32_sparc"
12992 + ;;
12993 + esac
12994 + ;;
12995 + *64-bit*)
12996 + case $host in
12997 + x86_64-*linux*)
12998 + LD="${LD-ld} -m elf_x86_64"
12999 + ;;
13000 + ppc*-*linux*|powerpc*-*linux*)
13001 + LD="${LD-ld} -m elf64ppc"
13002 + ;;
13003 + s390*-*linux*)
13004 + LD="${LD-ld} -m elf64_s390"
13005 + ;;
13006 + sparc*-*linux*)
13007 + LD="${LD-ld} -m elf64_sparc"
13008 + ;;
13009 + esac
13010 + ;;
13011 + esac
13012 + fi
13013 + rm -rf conftest*
13014 + ;;
13016 +*-*-sco3.2v5*)
13017 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13018 + SAVE_CFLAGS="$CFLAGS"
13019 + CFLAGS="$CFLAGS -belf"
13020 + echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13021 +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
13022 +if test "${lt_cv_cc_needs_belf+set}" = set; then
13023 + echo $ECHO_N "(cached) $ECHO_C" >&6
13024 +else
13025 + ac_ext=c
13026 +ac_cpp='$CPP $CPPFLAGS'
13027 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13028 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13029 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
13031 + cat >conftest.$ac_ext <<_ACEOF
13032 +/* confdefs.h. */
13033 +_ACEOF
13034 +cat confdefs.h >>conftest.$ac_ext
13035 +cat >>conftest.$ac_ext <<_ACEOF
13036 +/* end confdefs.h. */
13038 +int
13039 +main ()
13043 + return 0;
13045 +_ACEOF
13046 +rm -f conftest.$ac_objext conftest$ac_exeext
13047 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13048 + (eval $ac_link) 2>conftest.er1
13049 + ac_status=$?
13050 + grep -v '^ *+' conftest.er1 >conftest.err
13051 + rm -f conftest.er1
13052 + cat conftest.err >&5
13053 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 + (exit $ac_status); } &&
13055 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13056 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057 + (eval $ac_try) 2>&5
13058 + ac_status=$?
13059 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 + (exit $ac_status); }; } &&
13061 + { ac_try='test -s conftest$ac_exeext'
13062 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063 + (eval $ac_try) 2>&5
13064 + ac_status=$?
13065 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 + (exit $ac_status); }; }; then
13067 + lt_cv_cc_needs_belf=yes
13068 +else
13069 + echo "$as_me: failed program was:" >&5
13070 +sed 's/^/| /' conftest.$ac_ext >&5
13072 +lt_cv_cc_needs_belf=no
13074 +rm -f conftest.err conftest.$ac_objext \
13075 + conftest$ac_exeext conftest.$ac_ext
13076 + ac_ext=c
13077 +ac_cpp='$CPP $CPPFLAGS'
13078 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13079 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13080 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
13083 +echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13084 +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
13085 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13086 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13087 + CFLAGS="$SAVE_CFLAGS"
13088 + fi
13089 + ;;
13090 +sparc*-*solaris*)
13091 + # Find out which ABI we are using.
13092 + echo 'int i;' > conftest.$ac_ext
13093 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13094 + (eval $ac_compile) 2>&5
13095 + ac_status=$?
13096 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 + (exit $ac_status); }; then
13098 + case `/usr/bin/file conftest.o` in
13099 + *64-bit*)
13100 + case $lt_cv_prog_gnu_ld in
13101 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
13102 + *) LD="${LD-ld} -64" ;;
13103 + esac
13104 + ;;
13105 + esac
13106 + fi
13107 + rm -rf conftest*
13108 + ;;
13111 +esac
13113 +need_locks="$enable_libtool_lock"
13116 +ac_ext=c
13117 +ac_cpp='$CPP $CPPFLAGS'
13118 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13119 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13120 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
13121 +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13122 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13123 +# On Suns, sometimes $CPP names a directory.
13124 +if test -n "$CPP" && test -d "$CPP"; then
13125 + CPP=
13127 +if test -z "$CPP"; then
13128 + if test "${ac_cv_prog_CPP+set}" = set; then
13129 + echo $ECHO_N "(cached) $ECHO_C" >&6
13130 +else
13131 + # Double quotes because CPP needs to be expanded
13132 + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13133 + do
13134 + ac_preproc_ok=false
13135 +for ac_c_preproc_warn_flag in '' yes
13137 + # Use a header file that comes with gcc, so configuring glibc
13138 + # with a fresh cross-compiler works.
13139 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13140 + # <limits.h> exists even on freestanding compilers.
13141 + # On the NeXT, cc -E runs the code through the compiler's parser,
13142 + # not just through cpp. "Syntax error" is here to catch this case.
13143 + cat >conftest.$ac_ext <<_ACEOF
13144 +/* confdefs.h. */
13145 +_ACEOF
13146 +cat confdefs.h >>conftest.$ac_ext
13147 +cat >>conftest.$ac_ext <<_ACEOF
13148 +/* end confdefs.h. */
13149 +#ifdef __STDC__
13150 +# include <limits.h>
13151 +#else
13152 +# include <assert.h>
13153 +#endif
13154 + Syntax error
13155 +_ACEOF
13156 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13157 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13158 + ac_status=$?
13159 + grep -v '^ *+' conftest.er1 >conftest.err
13160 + rm -f conftest.er1
13161 + cat conftest.err >&5
13162 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 + (exit $ac_status); } >/dev/null; then
13164 + if test -s conftest.err; then
13165 + ac_cpp_err=$ac_c_preproc_warn_flag
13166 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13167 + else
13168 + ac_cpp_err=
13169 + fi
13170 +else
13171 + ac_cpp_err=yes
13173 +if test -z "$ac_cpp_err"; then
13175 +else
13176 + echo "$as_me: failed program was:" >&5
13177 +sed 's/^/| /' conftest.$ac_ext >&5
13179 + # Broken: fails on valid input.
13180 +continue
13182 +rm -f conftest.err conftest.$ac_ext
13184 + # OK, works on sane cases. Now check whether non-existent headers
13185 + # can be detected and how.
13186 + cat >conftest.$ac_ext <<_ACEOF
13187 +/* confdefs.h. */
13188 +_ACEOF
13189 +cat confdefs.h >>conftest.$ac_ext
13190 +cat >>conftest.$ac_ext <<_ACEOF
13191 +/* end confdefs.h. */
13192 +#include <ac_nonexistent.h>
13193 +_ACEOF
13194 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13195 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13196 + ac_status=$?
13197 + grep -v '^ *+' conftest.er1 >conftest.err
13198 + rm -f conftest.er1
13199 + cat conftest.err >&5
13200 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 + (exit $ac_status); } >/dev/null; then
13202 + if test -s conftest.err; then
13203 + ac_cpp_err=$ac_c_preproc_warn_flag
13204 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13205 + else
13206 + ac_cpp_err=
13207 + fi
13208 +else
13209 + ac_cpp_err=yes
13211 +if test -z "$ac_cpp_err"; then
13212 + # Broken: success on invalid input.
13213 +continue
13214 +else
13215 + echo "$as_me: failed program was:" >&5
13216 +sed 's/^/| /' conftest.$ac_ext >&5
13218 + # Passes both tests.
13219 +ac_preproc_ok=:
13220 +break
13222 +rm -f conftest.err conftest.$ac_ext
13224 +done
13225 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13226 +rm -f conftest.err conftest.$ac_ext
13227 +if $ac_preproc_ok; then
13228 + break
13231 + done
13232 + ac_cv_prog_CPP=$CPP
13235 + CPP=$ac_cv_prog_CPP
13236 +else
13237 + ac_cv_prog_CPP=$CPP
13239 +echo "$as_me:$LINENO: result: $CPP" >&5
13240 +echo "${ECHO_T}$CPP" >&6
13241 +ac_preproc_ok=false
13242 +for ac_c_preproc_warn_flag in '' yes
13244 + # Use a header file that comes with gcc, so configuring glibc
13245 + # with a fresh cross-compiler works.
13246 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13247 + # <limits.h> exists even on freestanding compilers.
13248 + # On the NeXT, cc -E runs the code through the compiler's parser,
13249 + # not just through cpp. "Syntax error" is here to catch this case.
13250 + cat >conftest.$ac_ext <<_ACEOF
13251 +/* confdefs.h. */
13252 +_ACEOF
13253 +cat confdefs.h >>conftest.$ac_ext
13254 +cat >>conftest.$ac_ext <<_ACEOF
13255 +/* end confdefs.h. */
13256 +#ifdef __STDC__
13257 +# include <limits.h>
13258 +#else
13259 +# include <assert.h>
13260 +#endif
13261 + Syntax error
13262 +_ACEOF
13263 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13264 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13265 + ac_status=$?
13266 + grep -v '^ *+' conftest.er1 >conftest.err
13267 + rm -f conftest.er1
13268 + cat conftest.err >&5
13269 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 + (exit $ac_status); } >/dev/null; then
13271 + if test -s conftest.err; then
13272 + ac_cpp_err=$ac_c_preproc_warn_flag
13273 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13274 + else
13275 + ac_cpp_err=
13276 + fi
13277 +else
13278 + ac_cpp_err=yes
13280 +if test -z "$ac_cpp_err"; then
13282 +else
13283 + echo "$as_me: failed program was:" >&5
13284 +sed 's/^/| /' conftest.$ac_ext >&5
13286 + # Broken: fails on valid input.
13287 +continue
13289 +rm -f conftest.err conftest.$ac_ext
13291 + # OK, works on sane cases. Now check whether non-existent headers
13292 + # can be detected and how.
13293 + cat >conftest.$ac_ext <<_ACEOF
13294 +/* confdefs.h. */
13295 +_ACEOF
13296 +cat confdefs.h >>conftest.$ac_ext
13297 +cat >>conftest.$ac_ext <<_ACEOF
13298 +/* end confdefs.h. */
13299 +#include <ac_nonexistent.h>
13300 +_ACEOF
13301 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13302 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13303 + ac_status=$?
13304 + grep -v '^ *+' conftest.er1 >conftest.err
13305 + rm -f conftest.er1
13306 + cat conftest.err >&5
13307 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 + (exit $ac_status); } >/dev/null; then
13309 + if test -s conftest.err; then
13310 + ac_cpp_err=$ac_c_preproc_warn_flag
13311 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13312 + else
13313 + ac_cpp_err=
13314 + fi
13315 +else
13316 + ac_cpp_err=yes
13318 +if test -z "$ac_cpp_err"; then
13319 + # Broken: success on invalid input.
13320 +continue
13321 +else
13322 + echo "$as_me: failed program was:" >&5
13323 +sed 's/^/| /' conftest.$ac_ext >&5
13325 + # Passes both tests.
13326 +ac_preproc_ok=:
13327 +break
13329 +rm -f conftest.err conftest.$ac_ext
13331 +done
13332 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13333 +rm -f conftest.err conftest.$ac_ext
13334 +if $ac_preproc_ok; then
13336 +else
13337 + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13338 +See \`config.log' for more details." >&5
13339 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13340 +See \`config.log' for more details." >&2;}
13341 + { (exit 1); exit 1; }; }
13344 +ac_ext=c
13345 +ac_cpp='$CPP $CPPFLAGS'
13346 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13347 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13348 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
13351 +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13352 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13353 +if test "${ac_cv_header_stdc+set}" = set; then
13354 + echo $ECHO_N "(cached) $ECHO_C" >&6
13355 +else
13356 + cat >conftest.$ac_ext <<_ACEOF
13357 +/* confdefs.h. */
13358 +_ACEOF
13359 +cat confdefs.h >>conftest.$ac_ext
13360 +cat >>conftest.$ac_ext <<_ACEOF
13361 +/* end confdefs.h. */
13362 +#include <stdlib.h>
13363 +#include <stdarg.h>
13364 +#include <string.h>
13365 +#include <float.h>
13367 +int
13368 +main ()
13372 + return 0;
13374 +_ACEOF
13375 +rm -f conftest.$ac_objext
13376 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13377 + (eval $ac_compile) 2>conftest.er1
13378 + ac_status=$?
13379 + grep -v '^ *+' conftest.er1 >conftest.err
13380 + rm -f conftest.er1
13381 + cat conftest.err >&5
13382 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 + (exit $ac_status); } &&
13384 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13385 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386 + (eval $ac_try) 2>&5
13387 + ac_status=$?
13388 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 + (exit $ac_status); }; } &&
13390 + { ac_try='test -s conftest.$ac_objext'
13391 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 + (eval $ac_try) 2>&5
13393 + ac_status=$?
13394 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 + (exit $ac_status); }; }; then
13396 + ac_cv_header_stdc=yes
13397 +else
13398 + echo "$as_me: failed program was:" >&5
13399 +sed 's/^/| /' conftest.$ac_ext >&5
13401 +ac_cv_header_stdc=no
13403 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13405 +if test $ac_cv_header_stdc = yes; then
13406 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13407 + cat >conftest.$ac_ext <<_ACEOF
13408 +/* confdefs.h. */
13409 +_ACEOF
13410 +cat confdefs.h >>conftest.$ac_ext
13411 +cat >>conftest.$ac_ext <<_ACEOF
13412 +/* end confdefs.h. */
13413 +#include <string.h>
13415 +_ACEOF
13416 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13417 + $EGREP "memchr" >/dev/null 2>&1; then
13419 +else
13420 + ac_cv_header_stdc=no
13422 +rm -f conftest*
13426 +if test $ac_cv_header_stdc = yes; then
13427 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13428 + cat >conftest.$ac_ext <<_ACEOF
13429 +/* confdefs.h. */
13430 +_ACEOF
13431 +cat confdefs.h >>conftest.$ac_ext
13432 +cat >>conftest.$ac_ext <<_ACEOF
13433 +/* end confdefs.h. */
13434 +#include <stdlib.h>
13436 +_ACEOF
13437 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13438 + $EGREP "free" >/dev/null 2>&1; then
13440 +else
13441 + ac_cv_header_stdc=no
13443 +rm -f conftest*
13447 +if test $ac_cv_header_stdc = yes; then
13448 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13449 + if test "$cross_compiling" = yes; then
13451 +else
13452 + cat >conftest.$ac_ext <<_ACEOF
13453 +/* confdefs.h. */
13454 +_ACEOF
13455 +cat confdefs.h >>conftest.$ac_ext
13456 +cat >>conftest.$ac_ext <<_ACEOF
13457 +/* end confdefs.h. */
13458 +#include <ctype.h>
13459 +#if ((' ' & 0x0FF) == 0x020)
13460 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13461 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13462 +#else
13463 +# define ISLOWER(c) \
13464 + (('a' <= (c) && (c) <= 'i') \
13465 + || ('j' <= (c) && (c) <= 'r') \
13466 + || ('s' <= (c) && (c) <= 'z'))
13467 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13468 +#endif
13470 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13471 +int
13472 +main ()
13474 + int i;
13475 + for (i = 0; i < 256; i++)
13476 + if (XOR (islower (i), ISLOWER (i))
13477 + || toupper (i) != TOUPPER (i))
13478 + exit(2);
13479 + exit (0);
13481 +_ACEOF
13482 +rm -f conftest$ac_exeext
13483 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13484 + (eval $ac_link) 2>&5
13485 + ac_status=$?
13486 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13488 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 + (eval $ac_try) 2>&5
13490 + ac_status=$?
13491 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 + (exit $ac_status); }; }; then
13494 +else
13495 + echo "$as_me: program exited with status $ac_status" >&5
13496 +echo "$as_me: failed program was:" >&5
13497 +sed 's/^/| /' conftest.$ac_ext >&5
13499 +( exit $ac_status )
13500 +ac_cv_header_stdc=no
13502 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13506 +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13507 +echo "${ECHO_T}$ac_cv_header_stdc" >&6
13508 +if test $ac_cv_header_stdc = yes; then
13510 +cat >>confdefs.h <<\_ACEOF
13511 +#define STDC_HEADERS 1
13512 +_ACEOF
13516 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13526 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
13527 + inttypes.h stdint.h unistd.h
13529 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13530 +echo "$as_me:$LINENO: checking for $ac_header" >&5
13531 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13532 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
13533 + echo $ECHO_N "(cached) $ECHO_C" >&6
13534 +else
13535 + cat >conftest.$ac_ext <<_ACEOF
13536 +/* confdefs.h. */
13537 +_ACEOF
13538 +cat confdefs.h >>conftest.$ac_ext
13539 +cat >>conftest.$ac_ext <<_ACEOF
13540 +/* end confdefs.h. */
13541 +$ac_includes_default
13543 +#include <$ac_header>
13544 +_ACEOF
13545 +rm -f conftest.$ac_objext
13546 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13547 + (eval $ac_compile) 2>conftest.er1
13548 + ac_status=$?
13549 + grep -v '^ *+' conftest.er1 >conftest.err
13550 + rm -f conftest.er1
13551 + cat conftest.err >&5
13552 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 + (exit $ac_status); } &&
13554 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13555 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556 + (eval $ac_try) 2>&5
13557 + ac_status=$?
13558 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 + (exit $ac_status); }; } &&
13560 + { ac_try='test -s conftest.$ac_objext'
13561 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562 + (eval $ac_try) 2>&5
13563 + ac_status=$?
13564 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 + (exit $ac_status); }; }; then
13566 + eval "$as_ac_Header=yes"
13567 +else
13568 + echo "$as_me: failed program was:" >&5
13569 +sed 's/^/| /' conftest.$ac_ext >&5
13571 +eval "$as_ac_Header=no"
13573 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13575 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13576 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13577 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
13578 + cat >>confdefs.h <<_ACEOF
13579 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13580 +_ACEOF
13584 +done
13588 +for ac_header in dlfcn.h
13590 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13591 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
13592 + echo "$as_me:$LINENO: checking for $ac_header" >&5
13593 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13594 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
13595 + echo $ECHO_N "(cached) $ECHO_C" >&6
13597 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13598 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13599 +else
13600 + # Is the header compilable?
13601 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
13602 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13603 +cat >conftest.$ac_ext <<_ACEOF
13604 +/* confdefs.h. */
13605 +_ACEOF
13606 +cat confdefs.h >>conftest.$ac_ext
13607 +cat >>conftest.$ac_ext <<_ACEOF
13608 +/* end confdefs.h. */
13609 +$ac_includes_default
13610 +#include <$ac_header>
13611 +_ACEOF
13612 +rm -f conftest.$ac_objext
13613 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13614 + (eval $ac_compile) 2>conftest.er1
13615 + ac_status=$?
13616 + grep -v '^ *+' conftest.er1 >conftest.err
13617 + rm -f conftest.er1
13618 + cat conftest.err >&5
13619 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 + (exit $ac_status); } &&
13621 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13622 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623 + (eval $ac_try) 2>&5
13624 + ac_status=$?
13625 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 + (exit $ac_status); }; } &&
13627 + { ac_try='test -s conftest.$ac_objext'
13628 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 + (eval $ac_try) 2>&5
13630 + ac_status=$?
13631 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 + (exit $ac_status); }; }; then
13633 + ac_header_compiler=yes
13634 +else
13635 + echo "$as_me: failed program was:" >&5
13636 +sed 's/^/| /' conftest.$ac_ext >&5
13638 +ac_header_compiler=no
13640 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13641 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13642 +echo "${ECHO_T}$ac_header_compiler" >&6
13644 +# Is the header present?
13645 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
13646 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13647 +cat >conftest.$ac_ext <<_ACEOF
13648 +/* confdefs.h. */
13649 +_ACEOF
13650 +cat confdefs.h >>conftest.$ac_ext
13651 +cat >>conftest.$ac_ext <<_ACEOF
13652 +/* end confdefs.h. */
13653 +#include <$ac_header>
13654 +_ACEOF
13655 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13656 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13657 + ac_status=$?
13658 + grep -v '^ *+' conftest.er1 >conftest.err
13659 + rm -f conftest.er1
13660 + cat conftest.err >&5
13661 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 + (exit $ac_status); } >/dev/null; then
13663 + if test -s conftest.err; then
13664 + ac_cpp_err=$ac_c_preproc_warn_flag
13665 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13666 + else
13667 + ac_cpp_err=
13668 + fi
13669 +else
13670 + ac_cpp_err=yes
13672 +if test -z "$ac_cpp_err"; then
13673 + ac_header_preproc=yes
13674 +else
13675 + echo "$as_me: failed program was:" >&5
13676 +sed 's/^/| /' conftest.$ac_ext >&5
13678 + ac_header_preproc=no
13680 +rm -f conftest.err conftest.$ac_ext
13681 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13682 +echo "${ECHO_T}$ac_header_preproc" >&6
13684 +# So? What about this header?
13685 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13686 + yes:no: )
13687 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13688 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13689 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13690 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13691 + ac_header_preproc=yes
13692 + ;;
13693 + no:yes:* )
13694 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13695 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13696 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13697 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13698 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13699 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13700 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13701 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13702 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13703 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13704 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13705 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13707 + cat <<\_ASBOX
13708 +## ------------------------------------------ ##
13709 +## Report this to the AC_PACKAGE_NAME lists. ##
13710 +## ------------------------------------------ ##
13711 +_ASBOX
13712 + ) |
13713 + sed "s/^/$as_me: WARNING: /" >&2
13714 + ;;
13715 +esac
13716 +echo "$as_me:$LINENO: checking for $ac_header" >&5
13717 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13718 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
13719 + echo $ECHO_N "(cached) $ECHO_C" >&6
13720 +else
13721 + eval "$as_ac_Header=\$ac_header_preproc"
13723 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13724 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13727 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
13728 + cat >>confdefs.h <<_ACEOF
13729 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13730 +_ACEOF
13734 +done
13736 +ac_ext=cc
13737 +ac_cpp='$CXXCPP $CPPFLAGS'
13738 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13739 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13740 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13741 +if test -n "$ac_tool_prefix"; then
13742 + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13743 + do
13744 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13745 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13746 +echo "$as_me:$LINENO: checking for $ac_word" >&5
13747 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13748 +if test "${ac_cv_prog_CXX+set}" = set; then
13749 + echo $ECHO_N "(cached) $ECHO_C" >&6
13750 +else
13751 + if test -n "$CXX"; then
13752 + ac_cv_prog_CXX="$CXX" # Let the user override the test.
13753 +else
13754 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13755 +for as_dir in $PATH
13757 + IFS=$as_save_IFS
13758 + test -z "$as_dir" && as_dir=.
13759 + for ac_exec_ext in '' $ac_executable_extensions; do
13760 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13761 + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13762 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13763 + break 2
13764 + fi
13765 +done
13766 +done
13770 +CXX=$ac_cv_prog_CXX
13771 +if test -n "$CXX"; then
13772 + echo "$as_me:$LINENO: result: $CXX" >&5
13773 +echo "${ECHO_T}$CXX" >&6
13774 +else
13775 + echo "$as_me:$LINENO: result: no" >&5
13776 +echo "${ECHO_T}no" >&6
13779 + test -n "$CXX" && break
13780 + done
13782 +if test -z "$CXX"; then
13783 + ac_ct_CXX=$CXX
13784 + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13786 + # Extract the first word of "$ac_prog", so it can be a program name with args.
13787 +set dummy $ac_prog; ac_word=$2
13788 +echo "$as_me:$LINENO: checking for $ac_word" >&5
13789 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13790 +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13791 + echo $ECHO_N "(cached) $ECHO_C" >&6
13792 +else
13793 + if test -n "$ac_ct_CXX"; then
13794 + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13795 +else
13796 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13797 +for as_dir in $PATH
13799 + IFS=$as_save_IFS
13800 + test -z "$as_dir" && as_dir=.
13801 + for ac_exec_ext in '' $ac_executable_extensions; do
13802 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13803 + ac_cv_prog_ac_ct_CXX="$ac_prog"
13804 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13805 + break 2
13806 + fi
13807 +done
13808 +done
13812 +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13813 +if test -n "$ac_ct_CXX"; then
13814 + echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13815 +echo "${ECHO_T}$ac_ct_CXX" >&6
13816 +else
13817 + echo "$as_me:$LINENO: result: no" >&5
13818 +echo "${ECHO_T}no" >&6
13821 + test -n "$ac_ct_CXX" && break
13822 +done
13823 +test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13825 + CXX=$ac_ct_CXX
13829 +# Provide some information about the compiler.
13830 +echo "$as_me:$LINENO:" \
13831 + "checking for C++ compiler version" >&5
13832 +ac_compiler=`set X $ac_compile; echo $2`
13833 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13834 + (eval $ac_compiler --version </dev/null >&5) 2>&5
13835 + ac_status=$?
13836 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 + (exit $ac_status); }
13838 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13839 + (eval $ac_compiler -v </dev/null >&5) 2>&5
13840 + ac_status=$?
13841 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 + (exit $ac_status); }
13843 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13844 + (eval $ac_compiler -V </dev/null >&5) 2>&5
13845 + ac_status=$?
13846 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 + (exit $ac_status); }
13849 +echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13850 +echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13851 +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13852 + echo $ECHO_N "(cached) $ECHO_C" >&6
13853 +else
13854 + cat >conftest.$ac_ext <<_ACEOF
13855 +/* confdefs.h. */
13856 +_ACEOF
13857 +cat confdefs.h >>conftest.$ac_ext
13858 +cat >>conftest.$ac_ext <<_ACEOF
13859 +/* end confdefs.h. */
13861 +int
13862 +main ()
13864 +#ifndef __GNUC__
13865 + choke me
13866 +#endif
13869 + return 0;
13871 +_ACEOF
13872 +rm -f conftest.$ac_objext
13873 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13874 + (eval $ac_compile) 2>conftest.er1
13875 + ac_status=$?
13876 + grep -v '^ *+' conftest.er1 >conftest.err
13877 + rm -f conftest.er1
13878 + cat conftest.err >&5
13879 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 + (exit $ac_status); } &&
13881 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13882 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 + (eval $ac_try) 2>&5
13884 + ac_status=$?
13885 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 + (exit $ac_status); }; } &&
13887 + { ac_try='test -s conftest.$ac_objext'
13888 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889 + (eval $ac_try) 2>&5
13890 + ac_status=$?
13891 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 + (exit $ac_status); }; }; then
13893 + ac_compiler_gnu=yes
13894 +else
13895 + echo "$as_me: failed program was:" >&5
13896 +sed 's/^/| /' conftest.$ac_ext >&5
13898 +ac_compiler_gnu=no
13900 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13901 +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13904 +echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13905 +echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13906 +GXX=`test $ac_compiler_gnu = yes && echo yes`
13907 +ac_test_CXXFLAGS=${CXXFLAGS+set}
13908 +ac_save_CXXFLAGS=$CXXFLAGS
13909 +CXXFLAGS="-g"
13910 +echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13911 +echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13912 +if test "${ac_cv_prog_cxx_g+set}" = set; then
13913 + echo $ECHO_N "(cached) $ECHO_C" >&6
13914 +else
13915 + cat >conftest.$ac_ext <<_ACEOF
13916 +/* confdefs.h. */
13917 +_ACEOF
13918 +cat confdefs.h >>conftest.$ac_ext
13919 +cat >>conftest.$ac_ext <<_ACEOF
13920 +/* end confdefs.h. */
13922 +int
13923 +main ()
13927 + return 0;
13929 +_ACEOF
13930 +rm -f conftest.$ac_objext
13931 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13932 + (eval $ac_compile) 2>conftest.er1
13933 + ac_status=$?
13934 + grep -v '^ *+' conftest.er1 >conftest.err
13935 + rm -f conftest.er1
13936 + cat conftest.err >&5
13937 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 + (exit $ac_status); } &&
13939 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13940 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941 + (eval $ac_try) 2>&5
13942 + ac_status=$?
13943 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 + (exit $ac_status); }; } &&
13945 + { ac_try='test -s conftest.$ac_objext'
13946 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947 + (eval $ac_try) 2>&5
13948 + ac_status=$?
13949 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 + (exit $ac_status); }; }; then
13951 + ac_cv_prog_cxx_g=yes
13952 +else
13953 + echo "$as_me: failed program was:" >&5
13954 +sed 's/^/| /' conftest.$ac_ext >&5
13956 +ac_cv_prog_cxx_g=no
13958 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13960 +echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13961 +echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13962 +if test "$ac_test_CXXFLAGS" = set; then
13963 + CXXFLAGS=$ac_save_CXXFLAGS
13964 +elif test $ac_cv_prog_cxx_g = yes; then
13965 + if test "$GXX" = yes; then
13966 + CXXFLAGS="-g -O2"
13967 + else
13968 + CXXFLAGS="-g"
13969 + fi
13970 +else
13971 + if test "$GXX" = yes; then
13972 + CXXFLAGS="-O2"
13973 + else
13974 + CXXFLAGS=
13975 + fi
13977 +for ac_declaration in \
13978 + '' \
13979 + 'extern "C" void std::exit (int) throw (); using std::exit;' \
13980 + 'extern "C" void std::exit (int); using std::exit;' \
13981 + 'extern "C" void exit (int) throw ();' \
13982 + 'extern "C" void exit (int);' \
13983 + 'void exit (int);'
13985 + cat >conftest.$ac_ext <<_ACEOF
13986 +/* confdefs.h. */
13987 +_ACEOF
13988 +cat confdefs.h >>conftest.$ac_ext
13989 +cat >>conftest.$ac_ext <<_ACEOF
13990 +/* end confdefs.h. */
13991 +$ac_declaration
13992 +#include <stdlib.h>
13993 +int
13994 +main ()
13996 +exit (42);
13998 + return 0;
14000 +_ACEOF
14001 +rm -f conftest.$ac_objext
14002 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14003 + (eval $ac_compile) 2>conftest.er1
14004 + ac_status=$?
14005 + grep -v '^ *+' conftest.er1 >conftest.err
14006 + rm -f conftest.er1
14007 + cat conftest.err >&5
14008 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 + (exit $ac_status); } &&
14010 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14011 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012 + (eval $ac_try) 2>&5
14013 + ac_status=$?
14014 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 + (exit $ac_status); }; } &&
14016 + { ac_try='test -s conftest.$ac_objext'
14017 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14018 + (eval $ac_try) 2>&5
14019 + ac_status=$?
14020 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 + (exit $ac_status); }; }; then
14023 +else
14024 + echo "$as_me: failed program was:" >&5
14025 +sed 's/^/| /' conftest.$ac_ext >&5
14027 +continue
14029 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14030 + cat >conftest.$ac_ext <<_ACEOF
14031 +/* confdefs.h. */
14032 +_ACEOF
14033 +cat confdefs.h >>conftest.$ac_ext
14034 +cat >>conftest.$ac_ext <<_ACEOF
14035 +/* end confdefs.h. */
14036 +$ac_declaration
14037 +int
14038 +main ()
14040 +exit (42);
14042 + return 0;
14044 +_ACEOF
14045 +rm -f conftest.$ac_objext
14046 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14047 + (eval $ac_compile) 2>conftest.er1
14048 + ac_status=$?
14049 + grep -v '^ *+' conftest.er1 >conftest.err
14050 + rm -f conftest.er1
14051 + cat conftest.err >&5
14052 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 + (exit $ac_status); } &&
14054 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14055 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056 + (eval $ac_try) 2>&5
14057 + ac_status=$?
14058 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 + (exit $ac_status); }; } &&
14060 + { ac_try='test -s conftest.$ac_objext'
14061 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062 + (eval $ac_try) 2>&5
14063 + ac_status=$?
14064 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 + (exit $ac_status); }; }; then
14066 + break
14067 +else
14068 + echo "$as_me: failed program was:" >&5
14069 +sed 's/^/| /' conftest.$ac_ext >&5
14072 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14073 +done
14074 +rm -f conftest*
14075 +if test -n "$ac_declaration"; then
14076 + echo '#ifdef __cplusplus' >>confdefs.h
14077 + echo $ac_declaration >>confdefs.h
14078 + echo '#endif' >>confdefs.h
14081 +ac_ext=cc
14082 +ac_cpp='$CXXCPP $CPPFLAGS'
14083 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14084 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14085 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14089 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14090 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14091 + (test "X$CXX" != "Xg++"))) ; then
14092 + ac_ext=cc
14093 +ac_cpp='$CXXCPP $CPPFLAGS'
14094 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14095 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14096 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14097 +echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14098 +echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
14099 +if test -z "$CXXCPP"; then
14100 + if test "${ac_cv_prog_CXXCPP+set}" = set; then
14101 + echo $ECHO_N "(cached) $ECHO_C" >&6
14102 +else
14103 + # Double quotes because CXXCPP needs to be expanded
14104 + for CXXCPP in "$CXX -E" "/lib/cpp"
14105 + do
14106 + ac_preproc_ok=false
14107 +for ac_cxx_preproc_warn_flag in '' yes
14109 + # Use a header file that comes with gcc, so configuring glibc
14110 + # with a fresh cross-compiler works.
14111 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14112 + # <limits.h> exists even on freestanding compilers.
14113 + # On the NeXT, cc -E runs the code through the compiler's parser,
14114 + # not just through cpp. "Syntax error" is here to catch this case.
14115 + cat >conftest.$ac_ext <<_ACEOF
14116 +/* confdefs.h. */
14117 +_ACEOF
14118 +cat confdefs.h >>conftest.$ac_ext
14119 +cat >>conftest.$ac_ext <<_ACEOF
14120 +/* end confdefs.h. */
14121 +#ifdef __STDC__
14122 +# include <limits.h>
14123 +#else
14124 +# include <assert.h>
14125 +#endif
14126 + Syntax error
14127 +_ACEOF
14128 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14129 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14130 + ac_status=$?
14131 + grep -v '^ *+' conftest.er1 >conftest.err
14132 + rm -f conftest.er1
14133 + cat conftest.err >&5
14134 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 + (exit $ac_status); } >/dev/null; then
14136 + if test -s conftest.err; then
14137 + ac_cpp_err=$ac_cxx_preproc_warn_flag
14138 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14139 + else
14140 + ac_cpp_err=
14141 + fi
14142 +else
14143 + ac_cpp_err=yes
14145 +if test -z "$ac_cpp_err"; then
14147 +else
14148 + echo "$as_me: failed program was:" >&5
14149 +sed 's/^/| /' conftest.$ac_ext >&5
14151 + # Broken: fails on valid input.
14152 +continue
14154 +rm -f conftest.err conftest.$ac_ext
14156 + # OK, works on sane cases. Now check whether non-existent headers
14157 + # can be detected and how.
14158 + cat >conftest.$ac_ext <<_ACEOF
14159 +/* confdefs.h. */
14160 +_ACEOF
14161 +cat confdefs.h >>conftest.$ac_ext
14162 +cat >>conftest.$ac_ext <<_ACEOF
14163 +/* end confdefs.h. */
14164 +#include <ac_nonexistent.h>
14165 +_ACEOF
14166 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14167 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14168 + ac_status=$?
14169 + grep -v '^ *+' conftest.er1 >conftest.err
14170 + rm -f conftest.er1
14171 + cat conftest.err >&5
14172 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 + (exit $ac_status); } >/dev/null; then
14174 + if test -s conftest.err; then
14175 + ac_cpp_err=$ac_cxx_preproc_warn_flag
14176 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14177 + else
14178 + ac_cpp_err=
14179 + fi
14180 +else
14181 + ac_cpp_err=yes
14183 +if test -z "$ac_cpp_err"; then
14184 + # Broken: success on invalid input.
14185 +continue
14186 +else
14187 + echo "$as_me: failed program was:" >&5
14188 +sed 's/^/| /' conftest.$ac_ext >&5
14190 + # Passes both tests.
14191 +ac_preproc_ok=:
14192 +break
14194 +rm -f conftest.err conftest.$ac_ext
14196 +done
14197 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14198 +rm -f conftest.err conftest.$ac_ext
14199 +if $ac_preproc_ok; then
14200 + break
14203 + done
14204 + ac_cv_prog_CXXCPP=$CXXCPP
14207 + CXXCPP=$ac_cv_prog_CXXCPP
14208 +else
14209 + ac_cv_prog_CXXCPP=$CXXCPP
14211 +echo "$as_me:$LINENO: result: $CXXCPP" >&5
14212 +echo "${ECHO_T}$CXXCPP" >&6
14213 +ac_preproc_ok=false
14214 +for ac_cxx_preproc_warn_flag in '' yes
14216 + # Use a header file that comes with gcc, so configuring glibc
14217 + # with a fresh cross-compiler works.
14218 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14219 + # <limits.h> exists even on freestanding compilers.
14220 + # On the NeXT, cc -E runs the code through the compiler's parser,
14221 + # not just through cpp. "Syntax error" is here to catch this case.
14222 + cat >conftest.$ac_ext <<_ACEOF
14223 +/* confdefs.h. */
14224 +_ACEOF
14225 +cat confdefs.h >>conftest.$ac_ext
14226 +cat >>conftest.$ac_ext <<_ACEOF
14227 +/* end confdefs.h. */
14228 +#ifdef __STDC__
14229 +# include <limits.h>
14230 +#else
14231 +# include <assert.h>
14232 +#endif
14233 + Syntax error
14234 +_ACEOF
14235 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14236 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14237 + ac_status=$?
14238 + grep -v '^ *+' conftest.er1 >conftest.err
14239 + rm -f conftest.er1
14240 + cat conftest.err >&5
14241 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 + (exit $ac_status); } >/dev/null; then
14243 + if test -s conftest.err; then
14244 + ac_cpp_err=$ac_cxx_preproc_warn_flag
14245 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14246 + else
14247 + ac_cpp_err=
14248 + fi
14249 +else
14250 + ac_cpp_err=yes
14252 +if test -z "$ac_cpp_err"; then
14254 +else
14255 + echo "$as_me: failed program was:" >&5
14256 +sed 's/^/| /' conftest.$ac_ext >&5
14258 + # Broken: fails on valid input.
14259 +continue
14261 +rm -f conftest.err conftest.$ac_ext
14263 + # OK, works on sane cases. Now check whether non-existent headers
14264 + # can be detected and how.
14265 + cat >conftest.$ac_ext <<_ACEOF
14266 +/* confdefs.h. */
14267 +_ACEOF
14268 +cat confdefs.h >>conftest.$ac_ext
14269 +cat >>conftest.$ac_ext <<_ACEOF
14270 +/* end confdefs.h. */
14271 +#include <ac_nonexistent.h>
14272 +_ACEOF
14273 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14274 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14275 + ac_status=$?
14276 + grep -v '^ *+' conftest.er1 >conftest.err
14277 + rm -f conftest.er1
14278 + cat conftest.err >&5
14279 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 + (exit $ac_status); } >/dev/null; then
14281 + if test -s conftest.err; then
14282 + ac_cpp_err=$ac_cxx_preproc_warn_flag
14283 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14284 + else
14285 + ac_cpp_err=
14286 + fi
14287 +else
14288 + ac_cpp_err=yes
14290 +if test -z "$ac_cpp_err"; then
14291 + # Broken: success on invalid input.
14292 +continue
14293 +else
14294 + echo "$as_me: failed program was:" >&5
14295 +sed 's/^/| /' conftest.$ac_ext >&5
14297 + # Passes both tests.
14298 +ac_preproc_ok=:
14299 +break
14301 +rm -f conftest.err conftest.$ac_ext
14303 +done
14304 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14305 +rm -f conftest.err conftest.$ac_ext
14306 +if $ac_preproc_ok; then
14308 +else
14309 + { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14310 +See \`config.log' for more details." >&5
14311 +echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14312 +See \`config.log' for more details." >&2;}
14313 + { (exit 1); exit 1; }; }
14316 +ac_ext=cc
14317 +ac_cpp='$CXXCPP $CPPFLAGS'
14318 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14319 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14320 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14325 +ac_ext=f
14326 +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14327 +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14328 +ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14329 +if test -n "$ac_tool_prefix"; then
14330 + for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
14331 + do
14332 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14333 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14334 +echo "$as_me:$LINENO: checking for $ac_word" >&5
14335 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14336 +if test "${ac_cv_prog_F77+set}" = set; then
14337 + echo $ECHO_N "(cached) $ECHO_C" >&6
14338 +else
14339 + if test -n "$F77"; then
14340 + ac_cv_prog_F77="$F77" # Let the user override the test.
14341 +else
14342 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14343 +for as_dir in $PATH
14345 + IFS=$as_save_IFS
14346 + test -z "$as_dir" && as_dir=.
14347 + for ac_exec_ext in '' $ac_executable_extensions; do
14348 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14349 + ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
14350 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14351 + break 2
14352 + fi
14353 +done
14354 +done
14358 +F77=$ac_cv_prog_F77
14359 +if test -n "$F77"; then
14360 + echo "$as_me:$LINENO: result: $F77" >&5
14361 +echo "${ECHO_T}$F77" >&6
14362 +else
14363 + echo "$as_me:$LINENO: result: no" >&5
14364 +echo "${ECHO_T}no" >&6
14367 + test -n "$F77" && break
14368 + done
14370 +if test -z "$F77"; then
14371 + ac_ct_F77=$F77
14372 + for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
14374 + # Extract the first word of "$ac_prog", so it can be a program name with args.
14375 +set dummy $ac_prog; ac_word=$2
14376 +echo "$as_me:$LINENO: checking for $ac_word" >&5
14377 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14378 +if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
14379 + echo $ECHO_N "(cached) $ECHO_C" >&6
14380 +else
14381 + if test -n "$ac_ct_F77"; then
14382 + ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
14383 +else
14384 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14385 +for as_dir in $PATH
14387 + IFS=$as_save_IFS
14388 + test -z "$as_dir" && as_dir=.
14389 + for ac_exec_ext in '' $ac_executable_extensions; do
14390 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14391 + ac_cv_prog_ac_ct_F77="$ac_prog"
14392 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14393 + break 2
14394 + fi
14395 +done
14396 +done
14400 +ac_ct_F77=$ac_cv_prog_ac_ct_F77
14401 +if test -n "$ac_ct_F77"; then
14402 + echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
14403 +echo "${ECHO_T}$ac_ct_F77" >&6
14404 +else
14405 + echo "$as_me:$LINENO: result: no" >&5
14406 +echo "${ECHO_T}no" >&6
14409 + test -n "$ac_ct_F77" && break
14410 +done
14412 + F77=$ac_ct_F77
14416 +# Provide some information about the compiler.
14417 +echo "$as_me:4909:" \
14418 + "checking for Fortran 77 compiler version" >&5
14419 +ac_compiler=`set X $ac_compile; echo $2`
14420 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
14421 + (eval $ac_compiler --version </dev/null >&5) 2>&5
14422 + ac_status=$?
14423 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 + (exit $ac_status); }
14425 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
14426 + (eval $ac_compiler -v </dev/null >&5) 2>&5
14427 + ac_status=$?
14428 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 + (exit $ac_status); }
14430 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
14431 + (eval $ac_compiler -V </dev/null >&5) 2>&5
14432 + ac_status=$?
14433 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 + (exit $ac_status); }
14435 +rm -f a.out
14437 +# If we don't use `.F' as extension, the preprocessor is not run on the
14438 +# input file. (Note that this only needs to work for GNU compilers.)
14439 +ac_save_ext=$ac_ext
14440 +ac_ext=F
14441 +echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
14442 +echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
14443 +if test "${ac_cv_f77_compiler_gnu+set}" = set; then
14444 + echo $ECHO_N "(cached) $ECHO_C" >&6
14445 +else
14446 + cat >conftest.$ac_ext <<_ACEOF
14447 + program main
14448 +#ifndef __GNUC__
14449 + choke me
14450 +#endif
14452 + end
14453 +_ACEOF
14454 +rm -f conftest.$ac_objext
14455 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14456 + (eval $ac_compile) 2>conftest.er1
14457 + ac_status=$?
14458 + grep -v '^ *+' conftest.er1 >conftest.err
14459 + rm -f conftest.er1
14460 + cat conftest.err >&5
14461 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 + (exit $ac_status); } &&
14463 + { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14464 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14465 + (eval $ac_try) 2>&5
14466 + ac_status=$?
14467 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 + (exit $ac_status); }; } &&
14469 + { ac_try='test -s conftest.$ac_objext'
14470 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471 + (eval $ac_try) 2>&5
14472 + ac_status=$?
14473 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 + (exit $ac_status); }; }; then
14475 + ac_compiler_gnu=yes
14476 +else
14477 + echo "$as_me: failed program was:" >&5
14478 +sed 's/^/| /' conftest.$ac_ext >&5
14480 +ac_compiler_gnu=no
14482 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14483 +ac_cv_f77_compiler_gnu=$ac_compiler_gnu
14486 +echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
14487 +echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
14488 +ac_ext=$ac_save_ext
14489 +ac_test_FFLAGS=${FFLAGS+set}
14490 +ac_save_FFLAGS=$FFLAGS
14491 +FFLAGS=
14492 +echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
14493 +echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
14494 +if test "${ac_cv_prog_f77_g+set}" = set; then
14495 + echo $ECHO_N "(cached) $ECHO_C" >&6
14496 +else
14497 + FFLAGS=-g
14498 +cat >conftest.$ac_ext <<_ACEOF
14499 + program main
14501 + end
14502 +_ACEOF
14503 +rm -f conftest.$ac_objext
14504 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14505 + (eval $ac_compile) 2>conftest.er1
14506 + ac_status=$?
14507 + grep -v '^ *+' conftest.er1 >conftest.err
14508 + rm -f conftest.er1
14509 + cat conftest.err >&5
14510 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 + (exit $ac_status); } &&
14512 + { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14513 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514 + (eval $ac_try) 2>&5
14515 + ac_status=$?
14516 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 + (exit $ac_status); }; } &&
14518 + { ac_try='test -s conftest.$ac_objext'
14519 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 + (eval $ac_try) 2>&5
14521 + ac_status=$?
14522 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 + (exit $ac_status); }; }; then
14524 + ac_cv_prog_f77_g=yes
14525 +else
14526 + echo "$as_me: failed program was:" >&5
14527 +sed 's/^/| /' conftest.$ac_ext >&5
14529 +ac_cv_prog_f77_g=no
14531 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14534 +echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
14535 +echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
14536 +if test "$ac_test_FFLAGS" = set; then
14537 + FFLAGS=$ac_save_FFLAGS
14538 +elif test $ac_cv_prog_f77_g = yes; then
14539 + if test "x$ac_cv_f77_compiler_gnu" = xyes; then
14540 + FFLAGS="-g -O2"
14541 + else
14542 + FFLAGS="-g"
14543 + fi
14544 +else
14545 + if test "x$ac_cv_f77_compiler_gnu" = xyes; then
14546 + FFLAGS="-O2"
14547 + else
14548 + FFLAGS=
14549 + fi
14552 +G77=`test $ac_compiler_gnu = yes && echo yes`
14553 +ac_ext=c
14554 +ac_cpp='$CPP $CPPFLAGS'
14555 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14556 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14557 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
14561 +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
14563 +# find the maximum length of command line arguments
14564 +echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14565 +echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14566 +if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14567 + echo $ECHO_N "(cached) $ECHO_C" >&6
14568 +else
14569 + i=0
14570 + teststring="ABCD"
14572 + case $build_os in
14573 + msdosdjgpp*)
14574 + # On DJGPP, this test can blow up pretty badly due to problems in libc
14575 + # (any single argument exceeding 2000 bytes causes a buffer overrun
14576 + # during glob expansion). Even if it were fixed, the result of this
14577 + # check would be larger than it should be.
14578 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
14579 + ;;
14581 + gnu*)
14582 + # Under GNU Hurd, this test is not required because there is
14583 + # no limit to the length of command line arguments.
14584 + # Libtool will interpret -1 as no limit whatsoever
14585 + lt_cv_sys_max_cmd_len=-1;
14586 + ;;
14588 + cygwin* | mingw*)
14589 + # On Win9x/ME, this test blows up -- it succeeds, but takes
14590 + # about 5 minutes as the teststring grows exponentially.
14591 + # Worse, since 9x/ME are not pre-emptively multitasking,
14592 + # you end up with a "frozen" computer, even though with patience
14593 + # the test eventually succeeds (with a max line length of 256k).
14594 + # Instead, let's just punt: use the minimum linelength reported by
14595 + # all of the supported platforms: 8192 (on NT/2K/XP).
14596 + lt_cv_sys_max_cmd_len=8192;
14597 + ;;
14599 + amigaos*)
14600 + # On AmigaOS with pdksh, this test takes hours, literally.
14601 + # So we just punt and use a minimum line length of 8192.
14602 + lt_cv_sys_max_cmd_len=8192;
14603 + ;;
14605 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14606 + # This has been around since 386BSD, at least. Likely further.
14607 + if test -x /sbin/sysctl; then
14608 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14609 + elif test -x /usr/sbin/sysctl; then
14610 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14611 + else
14612 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14613 + fi
14614 + # And add a safety zone
14615 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14616 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14617 + ;;
14619 + interix*)
14620 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
14621 + lt_cv_sys_max_cmd_len=196608
14622 + ;;
14624 + osf*)
14625 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14626 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14627 + # nice to cause kernel panics so lets avoid the loop below.
14628 + # First set a reasonable default.
14629 + lt_cv_sys_max_cmd_len=16384
14631 + if test -x /sbin/sysconfig; then
14632 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14633 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
14634 + esac
14635 + fi
14636 + ;;
14637 + sco3.2v5*)
14638 + lt_cv_sys_max_cmd_len=102400
14639 + ;;
14640 + sysv5* | sco5v6* | sysv4.2uw2*)
14641 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14642 + if test -n "$kargmax"; then
14643 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14644 + else
14645 + lt_cv_sys_max_cmd_len=32768
14646 + fi
14647 + ;;
14648 + *)
14649 + # If test is not a shell built-in, we'll probably end up computing a
14650 + # maximum length that is only half of the actual maximum length, but
14651 + # we can't tell.
14652 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14653 + while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
14654 + = "XX$teststring") >/dev/null 2>&1 &&
14655 + new_result=`expr "X$teststring" : ".*" 2>&1` &&
14656 + lt_cv_sys_max_cmd_len=$new_result &&
14657 + test $i != 17 # 1/2 MB should be enough
14658 + do
14659 + i=`expr $i + 1`
14660 + teststring=$teststring$teststring
14661 + done
14662 + teststring=
14663 + # Add a significant safety factor because C++ compilers can tack on massive
14664 + # amounts of additional arguments before passing them to the linker.
14665 + # It appears as though 1/2 is a usable value.
14666 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14667 + ;;
14668 + esac
14672 +if test -n $lt_cv_sys_max_cmd_len ; then
14673 + echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14674 +echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14675 +else
14676 + echo "$as_me:$LINENO: result: none" >&5
14677 +echo "${ECHO_T}none" >&6
14683 +# Check for command to grab the raw symbol name followed by C symbol from nm.
14684 +echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14685 +echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
14686 +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14687 + echo $ECHO_N "(cached) $ECHO_C" >&6
14688 +else
14690 +# These are sane defaults that work on at least a few old systems.
14691 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
14693 +# Character class describing NM global symbol codes.
14694 +symcode='[BCDEGRST]'
14696 +# Regexp to match symbols that can be accessed directly from C.
14697 +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14699 +# Transform an extracted symbol line into a proper C declaration
14700 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14702 +# Transform an extracted symbol line into symbol name and symbol address
14703 +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
14705 +# Define system-specific variables.
14706 +case $host_os in
14707 +aix*)
14708 + symcode='[BCDT]'
14709 + ;;
14710 +cygwin* | mingw* | pw32*)
14711 + symcode='[ABCDGISTW]'
14712 + ;;
14713 +hpux*) # Its linker distinguishes data from code symbols
14714 + if test "$host_cpu" = ia64; then
14715 + symcode='[ABCDEGRST]'
14716 + fi
14717 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14718 + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
14719 + ;;
14720 +linux*)
14721 + if test "$host_cpu" = ia64; then
14722 + symcode='[ABCDGIRSTW]'
14723 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14724 + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
14725 + fi
14726 + ;;
14727 +irix* | nonstopux*)
14728 + symcode='[BCDEGRST]'
14729 + ;;
14730 +osf*)
14731 + symcode='[BCDEGQRST]'
14732 + ;;
14733 +solaris*)
14734 + symcode='[BDRT]'
14735 + ;;
14736 +sco3.2v5*)
14737 + symcode='[DT]'
14738 + ;;
14739 +sysv4.2uw2*)
14740 + symcode='[DT]'
14741 + ;;
14742 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
14743 + symcode='[ABDT]'
14744 + ;;
14745 +sysv4)
14746 + symcode='[DFNSTU]'
14747 + ;;
14748 +esac
14750 +# Handle CRLF in mingw tool chain
14751 +opt_cr=
14752 +case $build_os in
14753 +mingw*)
14754 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14755 + ;;
14756 +esac
14758 +# If we're using GNU nm, then use its standard symbol codes.
14759 +case `$NM -V 2>&1` in
14760 +*GNU* | *'with BFD'*)
14761 + symcode='[ABCDGIRSTW]' ;;
14762 +esac
14764 +# Try without a prefix undercore, then with it.
14765 +for ac_symprfx in "" "_"; do
14767 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14768 + symxfrm="\\1 $ac_symprfx\\2 \\2"
14770 + # Write the raw and C identifiers.
14771 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14773 + # Check to see that the pipe works correctly.
14774 + pipe_works=no
14776 + rm -f conftest*
14777 + cat > conftest.$ac_ext <<EOF
14778 +#ifdef __cplusplus
14779 +extern "C" {
14780 +#endif
14781 +char nm_test_var;
14782 +void nm_test_func(){}
14783 +#ifdef __cplusplus
14785 +#endif
14786 +int main(){nm_test_var='a';nm_test_func();return(0);}
14787 +EOF
14789 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14790 + (eval $ac_compile) 2>&5
14791 + ac_status=$?
14792 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 + (exit $ac_status); }; then
14794 + # Now try to grab the symbols.
14795 + nlist=conftest.nm
14796 + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14797 + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14798 + ac_status=$?
14799 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 + (exit $ac_status); } && test -s "$nlist"; then
14801 + # Try sorting and uniquifying the output.
14802 + if sort "$nlist" | uniq > "$nlist"T; then
14803 + mv -f "$nlist"T "$nlist"
14804 + else
14805 + rm -f "$nlist"T
14806 + fi
14808 + # Make sure that we snagged all the symbols we need.
14809 + if grep ' nm_test_var$' "$nlist" >/dev/null; then
14810 + if grep ' nm_test_func$' "$nlist" >/dev/null; then
14811 + cat <<EOF > conftest.$ac_ext
14812 +#ifdef __cplusplus
14813 +extern "C" {
14814 +#endif
14816 +EOF
14817 + # Now generate the symbol file.
14818 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14820 + cat <<EOF >> conftest.$ac_ext
14821 +#if defined (__STDC__) && __STDC__
14822 +# define lt_ptr_t void *
14823 +#else
14824 +# define lt_ptr_t char *
14825 +# define const
14826 +#endif
14828 +/* The mapping between symbol names and symbols. */
14829 +const struct {
14830 + const char *name;
14831 + lt_ptr_t address;
14833 +lt_preloaded_symbols[] =
14835 +EOF
14836 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14837 + cat <<\EOF >> conftest.$ac_ext
14838 + {0, (lt_ptr_t) 0}
14841 +#ifdef __cplusplus
14843 +#endif
14844 +EOF
14845 + # Now try linking the two files.
14846 + mv conftest.$ac_objext conftstm.$ac_objext
14847 + lt_save_LIBS="$LIBS"
14848 + lt_save_CFLAGS="$CFLAGS"
14849 + LIBS="conftstm.$ac_objext"
14850 + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14851 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14852 + (eval $ac_link) 2>&5
14853 + ac_status=$?
14854 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 + (exit $ac_status); } && test -s conftest${ac_exeext}; then
14856 + pipe_works=yes
14857 + fi
14858 + LIBS="$lt_save_LIBS"
14859 + CFLAGS="$lt_save_CFLAGS"
14860 + else
14861 + echo "cannot find nm_test_func in $nlist" >&5
14862 + fi
14863 + else
14864 + echo "cannot find nm_test_var in $nlist" >&5
14865 + fi
14866 + else
14867 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14868 + fi
14869 + else
14870 + echo "$progname: failed program was:" >&5
14871 + cat conftest.$ac_ext >&5
14872 + fi
14873 + rm -f conftest* conftst*
14875 + # Do not use the global_symbol_pipe unless it works.
14876 + if test "$pipe_works" = yes; then
14877 + break
14878 + else
14879 + lt_cv_sys_global_symbol_pipe=
14880 + fi
14881 +done
14885 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
14886 + lt_cv_sys_global_symbol_to_cdecl=
14888 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14889 + echo "$as_me:$LINENO: result: failed" >&5
14890 +echo "${ECHO_T}failed" >&6
14891 +else
14892 + echo "$as_me:$LINENO: result: ok" >&5
14893 +echo "${ECHO_T}ok" >&6
14896 +echo "$as_me:$LINENO: checking for objdir" >&5
14897 +echo $ECHO_N "checking for objdir... $ECHO_C" >&6
14898 +if test "${lt_cv_objdir+set}" = set; then
14899 + echo $ECHO_N "(cached) $ECHO_C" >&6
14900 +else
14901 + rm -f .libs 2>/dev/null
14902 +mkdir .libs 2>/dev/null
14903 +if test -d .libs; then
14904 + lt_cv_objdir=.libs
14905 +else
14906 + # MS-DOS does not allow filenames that begin with a dot.
14907 + lt_cv_objdir=_libs
14909 +rmdir .libs 2>/dev/null
14911 +echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14912 +echo "${ECHO_T}$lt_cv_objdir" >&6
14913 +objdir=$lt_cv_objdir
14919 +case $host_os in
14920 +aix3*)
14921 + # AIX sometimes has problems with the GCC collect2 program. For some
14922 + # reason, if we set the COLLECT_NAMES environment variable, the problems
14923 + # vanish in a puff of smoke.
14924 + if test "X${COLLECT_NAMES+set}" != Xset; then
14925 + COLLECT_NAMES=
14926 + export COLLECT_NAMES
14927 + fi
14928 + ;;
14929 +esac
14931 +# Sed substitution that helps us do robust quoting. It backslashifies
14932 +# metacharacters that are still active within double-quoted strings.
14933 +Xsed='sed -e 1s/^X//'
14934 +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14936 +# Same as above, but do not quote variable references.
14937 +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14939 +# Sed substitution to delay expansion of an escaped shell variable in a
14940 +# double_quote_subst'ed string.
14941 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14943 +# Sed substitution to avoid accidental globbing in evaled expressions
14944 +no_glob_subst='s/\*/\\\*/g'
14946 +# Constants:
14947 +rm="rm -f"
14949 +# Global variables:
14950 +default_ofile=libtool
14951 +can_build_shared=yes
14953 +# All known linkers require a `.a' archive for static linking (except MSVC,
14954 +# which needs '.lib').
14955 +libext=a
14956 +ltmain="$ac_aux_dir/ltmain.sh"
14957 +ofile="$default_ofile"
14958 +with_gnu_ld="$lt_cv_prog_gnu_ld"
14960 +if test -n "$ac_tool_prefix"; then
14961 + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14962 +set dummy ${ac_tool_prefix}ar; ac_word=$2
14963 +echo "$as_me:$LINENO: checking for $ac_word" >&5
14964 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14965 +if test "${ac_cv_prog_AR+set}" = set; then
14966 + echo $ECHO_N "(cached) $ECHO_C" >&6
14967 +else
14968 + if test -n "$AR"; then
14969 + ac_cv_prog_AR="$AR" # Let the user override the test.
14970 +else
14971 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14972 +for as_dir in $PATH
14974 + IFS=$as_save_IFS
14975 + test -z "$as_dir" && as_dir=.
14976 + for ac_exec_ext in '' $ac_executable_extensions; do
14977 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14978 + ac_cv_prog_AR="${ac_tool_prefix}ar"
14979 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14980 + break 2
14981 + fi
14982 +done
14983 +done
14987 +AR=$ac_cv_prog_AR
14988 +if test -n "$AR"; then
14989 + echo "$as_me:$LINENO: result: $AR" >&5
14990 +echo "${ECHO_T}$AR" >&6
14991 +else
14992 + echo "$as_me:$LINENO: result: no" >&5
14993 +echo "${ECHO_T}no" >&6
14997 +if test -z "$ac_cv_prog_AR"; then
14998 + ac_ct_AR=$AR
14999 + # Extract the first word of "ar", so it can be a program name with args.
15000 +set dummy ar; ac_word=$2
15001 +echo "$as_me:$LINENO: checking for $ac_word" >&5
15002 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15003 +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15004 + echo $ECHO_N "(cached) $ECHO_C" >&6
15005 +else
15006 + if test -n "$ac_ct_AR"; then
15007 + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15008 +else
15009 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15010 +for as_dir in $PATH
15012 + IFS=$as_save_IFS
15013 + test -z "$as_dir" && as_dir=.
15014 + for ac_exec_ext in '' $ac_executable_extensions; do
15015 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15016 + ac_cv_prog_ac_ct_AR="ar"
15017 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15018 + break 2
15019 + fi
15020 +done
15021 +done
15023 + test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
15026 +ac_ct_AR=$ac_cv_prog_ac_ct_AR
15027 +if test -n "$ac_ct_AR"; then
15028 + echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15029 +echo "${ECHO_T}$ac_ct_AR" >&6
15030 +else
15031 + echo "$as_me:$LINENO: result: no" >&5
15032 +echo "${ECHO_T}no" >&6
15035 + AR=$ac_ct_AR
15036 +else
15037 + AR="$ac_cv_prog_AR"
15040 +if test -n "$ac_tool_prefix"; then
15041 + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15042 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15043 +echo "$as_me:$LINENO: checking for $ac_word" >&5
15044 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15045 +if test "${ac_cv_prog_RANLIB+set}" = set; then
15046 + echo $ECHO_N "(cached) $ECHO_C" >&6
15047 +else
15048 + if test -n "$RANLIB"; then
15049 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15050 +else
15051 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15052 +for as_dir in $PATH
15054 + IFS=$as_save_IFS
15055 + test -z "$as_dir" && as_dir=.
15056 + for ac_exec_ext in '' $ac_executable_extensions; do
15057 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15058 + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15059 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15060 + break 2
15061 + fi
15062 +done
15063 +done
15067 +RANLIB=$ac_cv_prog_RANLIB
15068 +if test -n "$RANLIB"; then
15069 + echo "$as_me:$LINENO: result: $RANLIB" >&5
15070 +echo "${ECHO_T}$RANLIB" >&6
15071 +else
15072 + echo "$as_me:$LINENO: result: no" >&5
15073 +echo "${ECHO_T}no" >&6
15077 +if test -z "$ac_cv_prog_RANLIB"; then
15078 + ac_ct_RANLIB=$RANLIB
15079 + # Extract the first word of "ranlib", so it can be a program name with args.
15080 +set dummy ranlib; ac_word=$2
15081 +echo "$as_me:$LINENO: checking for $ac_word" >&5
15082 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15083 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15084 + echo $ECHO_N "(cached) $ECHO_C" >&6
15085 +else
15086 + if test -n "$ac_ct_RANLIB"; then
15087 + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15088 +else
15089 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15090 +for as_dir in $PATH
15092 + IFS=$as_save_IFS
15093 + test -z "$as_dir" && as_dir=.
15094 + for ac_exec_ext in '' $ac_executable_extensions; do
15095 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15096 + ac_cv_prog_ac_ct_RANLIB="ranlib"
15097 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15098 + break 2
15099 + fi
15100 +done
15101 +done
15103 + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15106 +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15107 +if test -n "$ac_ct_RANLIB"; then
15108 + echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15109 +echo "${ECHO_T}$ac_ct_RANLIB" >&6
15110 +else
15111 + echo "$as_me:$LINENO: result: no" >&5
15112 +echo "${ECHO_T}no" >&6
15115 + RANLIB=$ac_ct_RANLIB
15116 +else
15117 + RANLIB="$ac_cv_prog_RANLIB"
15120 +if test -n "$ac_tool_prefix"; then
15121 + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15122 +set dummy ${ac_tool_prefix}strip; ac_word=$2
15123 +echo "$as_me:$LINENO: checking for $ac_word" >&5
15124 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15125 +if test "${ac_cv_prog_STRIP+set}" = set; then
15126 + echo $ECHO_N "(cached) $ECHO_C" >&6
15127 +else
15128 + if test -n "$STRIP"; then
15129 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15130 +else
15131 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15132 +for as_dir in $PATH
15134 + IFS=$as_save_IFS
15135 + test -z "$as_dir" && as_dir=.
15136 + for ac_exec_ext in '' $ac_executable_extensions; do
15137 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15138 + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15139 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15140 + break 2
15141 + fi
15142 +done
15143 +done
15147 +STRIP=$ac_cv_prog_STRIP
15148 +if test -n "$STRIP"; then
15149 + echo "$as_me:$LINENO: result: $STRIP" >&5
15150 +echo "${ECHO_T}$STRIP" >&6
15151 +else
15152 + echo "$as_me:$LINENO: result: no" >&5
15153 +echo "${ECHO_T}no" >&6
15157 +if test -z "$ac_cv_prog_STRIP"; then
15158 + ac_ct_STRIP=$STRIP
15159 + # Extract the first word of "strip", so it can be a program name with args.
15160 +set dummy strip; ac_word=$2
15161 +echo "$as_me:$LINENO: checking for $ac_word" >&5
15162 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15163 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15164 + echo $ECHO_N "(cached) $ECHO_C" >&6
15165 +else
15166 + if test -n "$ac_ct_STRIP"; then
15167 + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15168 +else
15169 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15170 +for as_dir in $PATH
15172 + IFS=$as_save_IFS
15173 + test -z "$as_dir" && as_dir=.
15174 + for ac_exec_ext in '' $ac_executable_extensions; do
15175 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15176 + ac_cv_prog_ac_ct_STRIP="strip"
15177 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15178 + break 2
15179 + fi
15180 +done
15181 +done
15183 + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15186 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15187 +if test -n "$ac_ct_STRIP"; then
15188 + echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15189 +echo "${ECHO_T}$ac_ct_STRIP" >&6
15190 +else
15191 + echo "$as_me:$LINENO: result: no" >&5
15192 +echo "${ECHO_T}no" >&6
15195 + STRIP=$ac_ct_STRIP
15196 +else
15197 + STRIP="$ac_cv_prog_STRIP"
15201 +old_CC="$CC"
15202 +old_CFLAGS="$CFLAGS"
15204 +# Set sane defaults for various variables
15205 +test -z "$AR" && AR=ar
15206 +test -z "$AR_FLAGS" && AR_FLAGS=cru
15207 +test -z "$AS" && AS=as
15208 +test -z "$CC" && CC=cc
15209 +test -z "$LTCC" && LTCC=$CC
15210 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15211 +test -z "$DLLTOOL" && DLLTOOL=dlltool
15212 +test -z "$LD" && LD=ld
15213 +test -z "$LN_S" && LN_S="ln -s"
15214 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
15215 +test -z "$NM" && NM=nm
15216 +test -z "$SED" && SED=sed
15217 +test -z "$OBJDUMP" && OBJDUMP=objdump
15218 +test -z "$RANLIB" && RANLIB=:
15219 +test -z "$STRIP" && STRIP=:
15220 +test -z "$ac_objext" && ac_objext=o
15222 +# Determine commands to create old-style static archives.
15223 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
15224 +old_postinstall_cmds='chmod 644 $oldlib'
15225 +old_postuninstall_cmds=
15227 +if test -n "$RANLIB"; then
15228 + case $host_os in
15229 + openbsd*)
15230 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15231 + ;;
15232 + *)
15233 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15234 + ;;
15235 + esac
15236 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15239 +for cc_temp in $compiler""; do
15240 + case $cc_temp in
15241 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15242 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15243 + \-*) ;;
15244 + *) break;;
15245 + esac
15246 +done
15247 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15250 +# Only perform the check for file, if the check method requires it
15251 +case $deplibs_check_method in
15252 +file_magic*)
15253 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15254 + echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
15255 +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
15256 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
15257 + echo $ECHO_N "(cached) $ECHO_C" >&6
15258 +else
15259 + case $MAGIC_CMD in
15260 +[\\/*] | ?:[\\/]*)
15261 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15262 + ;;
15264 + lt_save_MAGIC_CMD="$MAGIC_CMD"
15265 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15266 + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15267 + for ac_dir in $ac_dummy; do
15268 + IFS="$lt_save_ifs"
15269 + test -z "$ac_dir" && ac_dir=.
15270 + if test -f $ac_dir/${ac_tool_prefix}file; then
15271 + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15272 + if test -n "$file_magic_test_file"; then
15273 + case $deplibs_check_method in
15274 + "file_magic "*)
15275 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15276 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15277 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15278 + $EGREP "$file_magic_regex" > /dev/null; then
15280 + else
15281 + cat <<EOF 1>&2
15283 +*** Warning: the command libtool uses to detect shared libraries,
15284 +*** $file_magic_cmd, produces output that libtool cannot recognize.
15285 +*** The result is that libtool may fail to recognize shared libraries
15286 +*** as such. This will affect the creation of libtool libraries that
15287 +*** depend on shared libraries, but programs linked with such libtool
15288 +*** libraries will work regardless of this problem. Nevertheless, you
15289 +*** may want to report the problem to your system manager and/or to
15290 +*** bug-libtool@gnu.org
15292 +EOF
15293 + fi ;;
15294 + esac
15295 + fi
15296 + break
15297 + fi
15298 + done
15299 + IFS="$lt_save_ifs"
15300 + MAGIC_CMD="$lt_save_MAGIC_CMD"
15301 + ;;
15302 +esac
15305 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15306 +if test -n "$MAGIC_CMD"; then
15307 + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
15308 +echo "${ECHO_T}$MAGIC_CMD" >&6
15309 +else
15310 + echo "$as_me:$LINENO: result: no" >&5
15311 +echo "${ECHO_T}no" >&6
15314 +if test -z "$lt_cv_path_MAGIC_CMD"; then
15315 + if test -n "$ac_tool_prefix"; then
15316 + echo "$as_me:$LINENO: checking for file" >&5
15317 +echo $ECHO_N "checking for file... $ECHO_C" >&6
15318 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
15319 + echo $ECHO_N "(cached) $ECHO_C" >&6
15320 +else
15321 + case $MAGIC_CMD in
15322 +[\\/*] | ?:[\\/]*)
15323 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15324 + ;;
15326 + lt_save_MAGIC_CMD="$MAGIC_CMD"
15327 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15328 + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15329 + for ac_dir in $ac_dummy; do
15330 + IFS="$lt_save_ifs"
15331 + test -z "$ac_dir" && ac_dir=.
15332 + if test -f $ac_dir/file; then
15333 + lt_cv_path_MAGIC_CMD="$ac_dir/file"
15334 + if test -n "$file_magic_test_file"; then
15335 + case $deplibs_check_method in
15336 + "file_magic "*)
15337 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15338 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15339 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15340 + $EGREP "$file_magic_regex" > /dev/null; then
15342 + else
15343 + cat <<EOF 1>&2
15345 +*** Warning: the command libtool uses to detect shared libraries,
15346 +*** $file_magic_cmd, produces output that libtool cannot recognize.
15347 +*** The result is that libtool may fail to recognize shared libraries
15348 +*** as such. This will affect the creation of libtool libraries that
15349 +*** depend on shared libraries, but programs linked with such libtool
15350 +*** libraries will work regardless of this problem. Nevertheless, you
15351 +*** may want to report the problem to your system manager and/or to
15352 +*** bug-libtool@gnu.org
15354 +EOF
15355 + fi ;;
15356 + esac
15357 + fi
15358 + break
15359 + fi
15360 + done
15361 + IFS="$lt_save_ifs"
15362 + MAGIC_CMD="$lt_save_MAGIC_CMD"
15363 + ;;
15364 +esac
15367 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15368 +if test -n "$MAGIC_CMD"; then
15369 + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
15370 +echo "${ECHO_T}$MAGIC_CMD" >&6
15371 +else
15372 + echo "$as_me:$LINENO: result: no" >&5
15373 +echo "${ECHO_T}no" >&6
15376 + else
15377 + MAGIC_CMD=:
15378 + fi
15381 + fi
15382 + ;;
15383 +esac
15385 +enable_dlopen=no
15386 +enable_win32_dll=no
15388 +# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15389 +if test "${enable_libtool_lock+set}" = set; then
15390 + enableval="$enable_libtool_lock"
15392 +fi;
15393 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15396 +# Check whether --with-pic or --without-pic was given.
15397 +if test "${with_pic+set}" = set; then
15398 + withval="$with_pic"
15399 + pic_mode="$withval"
15400 +else
15401 + pic_mode=default
15402 +fi;
15403 +test -z "$pic_mode" && pic_mode=default
15405 +# Use C for the default configuration in the libtool script
15406 +tagname=
15407 +lt_save_CC="$CC"
15408 +ac_ext=c
15409 +ac_cpp='$CPP $CPPFLAGS'
15410 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15411 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15412 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
15415 +# Source file extension for C test sources.
15416 +ac_ext=c
15418 +# Object file extension for compiled C test sources.
15419 +objext=o
15420 +objext=$objext
15422 +# Code to be used in simple compile tests
15423 +lt_simple_compile_test_code="int some_variable = 0;\n"
15425 +# Code to be used in simple link tests
15426 +lt_simple_link_test_code='int main(){return(0);}\n'
15429 +# If no C compiler was specified, use CC.
15430 +LTCC=${LTCC-"$CC"}
15432 +# If no C compiler flags were specified, use CFLAGS.
15433 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15435 +# Allow CC to be a program name with arguments.
15436 +compiler=$CC
15439 +# save warnings/boilerplate of simple test code
15440 +ac_outfile=conftest.$ac_objext
15441 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15442 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15443 +_lt_compiler_boilerplate=`cat conftest.err`
15444 +$rm conftest*
15446 +ac_outfile=conftest.$ac_objext
15447 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
15448 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15449 +_lt_linker_boilerplate=`cat conftest.err`
15450 +$rm conftest*
15454 +lt_prog_compiler_no_builtin_flag=
15456 +if test "$GCC" = yes; then
15457 + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
15460 +echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15461 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15462 +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15463 + echo $ECHO_N "(cached) $ECHO_C" >&6
15464 +else
15465 + lt_cv_prog_compiler_rtti_exceptions=no
15466 + ac_outfile=conftest.$ac_objext
15467 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15468 + lt_compiler_flag="-fno-rtti -fno-exceptions"
15469 + # Insert the option either (1) after the last *FLAGS variable, or
15470 + # (2) before a word containing "conftest.", or (3) at the end.
15471 + # Note that $ac_compile itself does not contain backslashes and begins
15472 + # with a dollar sign (not a hyphen), so the echo should work correctly.
15473 + # The option is referenced via a variable to avoid confusing sed.
15474 + lt_compile=`echo "$ac_compile" | $SED \
15475 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15476 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15477 + -e 's:$: $lt_compiler_flag:'`
15478 + (eval echo "\"\$as_me:5970: $lt_compile\"" >&5)
15479 + (eval "$lt_compile" 2>conftest.err)
15480 + ac_status=$?
15481 + cat conftest.err >&5
15482 + echo "$as_me:5974: \$? = $ac_status" >&5
15483 + if (exit $ac_status) && test -s "$ac_outfile"; then
15484 + # The compiler can only warn and ignore the option if not recognized
15485 + # So say no if there are warnings other than the usual output.
15486 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15487 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15488 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15489 + lt_cv_prog_compiler_rtti_exceptions=yes
15490 + fi
15491 + fi
15492 + $rm conftest*
15495 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15496 +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15498 +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15499 + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15500 +else
15506 +lt_prog_compiler_wl=
15507 +lt_prog_compiler_pic=
15508 +lt_prog_compiler_static=
15510 +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15511 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15513 + if test "$GCC" = yes; then
15514 + lt_prog_compiler_wl='-Wl,'
15515 + lt_prog_compiler_static='-static'
15517 + case $host_os in
15518 + aix*)
15519 + # All AIX code is PIC.
15520 + if test "$host_cpu" = ia64; then
15521 + # AIX 5 now supports IA64 processor
15522 + lt_prog_compiler_static='-Bstatic'
15523 + fi
15524 + ;;
15526 + amigaos*)
15527 + # FIXME: we need at least 68020 code to build shared libraries, but
15528 + # adding the `-m68020' flag to GCC prevents building anything better,
15529 + # like `-m68040'.
15530 + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15531 + ;;
15533 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15534 + # PIC is the default for these OSes.
15535 + ;;
15537 + mingw* | pw32* | os2*)
15538 + # This hack is so that the source file can tell whether it is being
15539 + # built for inclusion in a dll (and should export symbols for example).
15540 + lt_prog_compiler_pic='-DDLL_EXPORT'
15541 + ;;
15543 + darwin* | rhapsody*)
15544 + # PIC is the default on this platform
15545 + # Common symbols not allowed in MH_DYLIB files
15546 + lt_prog_compiler_pic='-fno-common'
15547 + ;;
15549 + interix3*)
15550 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15551 + # Instead, we relocate shared libraries at runtime.
15552 + ;;
15554 + msdosdjgpp*)
15555 + # Just because we use GCC doesn't mean we suddenly get shared libraries
15556 + # on systems that don't support them.
15557 + lt_prog_compiler_can_build_shared=no
15558 + enable_shared=no
15559 + ;;
15561 + sysv4*MP*)
15562 + if test -d /usr/nec; then
15563 + lt_prog_compiler_pic=-Kconform_pic
15564 + fi
15565 + ;;
15567 + hpux*)
15568 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15569 + # not for PA HP-UX.
15570 + case $host_cpu in
15571 + hppa*64*|ia64*)
15572 + # +Z the default
15573 + ;;
15574 + *)
15575 + lt_prog_compiler_pic='-fPIC'
15576 + ;;
15577 + esac
15578 + ;;
15580 + *)
15581 + lt_prog_compiler_pic='-fPIC'
15582 + ;;
15583 + esac
15584 + else
15585 + # PORTME Check for flag to pass linker flags through the system compiler.
15586 + case $host_os in
15587 + aix*)
15588 + lt_prog_compiler_wl='-Wl,'
15589 + if test "$host_cpu" = ia64; then
15590 + # AIX 5 now supports IA64 processor
15591 + lt_prog_compiler_static='-Bstatic'
15592 + else
15593 + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15594 + fi
15595 + ;;
15596 + darwin*)
15597 + # PIC is the default on this platform
15598 + # Common symbols not allowed in MH_DYLIB files
15599 + case $cc_basename in
15600 + xlc*)
15601 + lt_prog_compiler_pic='-qnocommon'
15602 + lt_prog_compiler_wl='-Wl,'
15603 + ;;
15604 + esac
15605 + ;;
15607 + mingw* | pw32* | os2*)
15608 + # This hack is so that the source file can tell whether it is being
15609 + # built for inclusion in a dll (and should export symbols for example).
15610 + lt_prog_compiler_pic='-DDLL_EXPORT'
15611 + ;;
15613 + hpux9* | hpux10* | hpux11*)
15614 + lt_prog_compiler_wl='-Wl,'
15615 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15616 + # not for PA HP-UX.
15617 + case $host_cpu in
15618 + hppa*64*|ia64*)
15619 + # +Z the default
15620 + ;;
15621 + *)
15622 + lt_prog_compiler_pic='+Z'
15623 + ;;
15624 + esac
15625 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
15626 + lt_prog_compiler_static='${wl}-a ${wl}archive'
15627 + ;;
15629 + irix5* | irix6* | nonstopux*)
15630 + lt_prog_compiler_wl='-Wl,'
15631 + # PIC (with -KPIC) is the default.
15632 + lt_prog_compiler_static='-non_shared'
15633 + ;;
15635 + newsos6)
15636 + lt_prog_compiler_pic='-KPIC'
15637 + lt_prog_compiler_static='-Bstatic'
15638 + ;;
15640 + linux*)
15641 + case $cc_basename in
15642 + icc* | ecc*)
15643 + lt_prog_compiler_wl='-Wl,'
15644 + lt_prog_compiler_pic='-KPIC'
15645 + lt_prog_compiler_static='-static'
15646 + ;;
15647 + pgcc* | pgf77* | pgf90* | pgf95*)
15648 + # Portland Group compilers (*not* the Pentium gcc compiler,
15649 + # which looks to be a dead project)
15650 + lt_prog_compiler_wl='-Wl,'
15651 + lt_prog_compiler_pic='-fpic'
15652 + lt_prog_compiler_static='-Bstatic'
15653 + ;;
15654 + ccc*)
15655 + lt_prog_compiler_wl='-Wl,'
15656 + # All Alpha code is PIC.
15657 + lt_prog_compiler_static='-non_shared'
15658 + ;;
15659 + esac
15660 + ;;
15662 + osf3* | osf4* | osf5*)
15663 + lt_prog_compiler_wl='-Wl,'
15664 + # All OSF/1 code is PIC.
15665 + lt_prog_compiler_static='-non_shared'
15666 + ;;
15668 + solaris*)
15669 + lt_prog_compiler_pic='-KPIC'
15670 + lt_prog_compiler_static='-Bstatic'
15671 + case $cc_basename in
15672 + f77* | f90* | f95*)
15673 + lt_prog_compiler_wl='-Qoption ld ';;
15674 + *)
15675 + lt_prog_compiler_wl='-Wl,';;
15676 + esac
15677 + ;;
15679 + sunos4*)
15680 + lt_prog_compiler_wl='-Qoption ld '
15681 + lt_prog_compiler_pic='-PIC'
15682 + lt_prog_compiler_static='-Bstatic'
15683 + ;;
15685 + sysv4 | sysv4.2uw2* | sysv4.3*)
15686 + lt_prog_compiler_wl='-Wl,'
15687 + lt_prog_compiler_pic='-KPIC'
15688 + lt_prog_compiler_static='-Bstatic'
15689 + ;;
15691 + sysv4*MP*)
15692 + if test -d /usr/nec ;then
15693 + lt_prog_compiler_pic='-Kconform_pic'
15694 + lt_prog_compiler_static='-Bstatic'
15695 + fi
15696 + ;;
15698 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15699 + lt_prog_compiler_wl='-Wl,'
15700 + lt_prog_compiler_pic='-KPIC'
15701 + lt_prog_compiler_static='-Bstatic'
15702 + ;;
15704 + unicos*)
15705 + lt_prog_compiler_wl='-Wl,'
15706 + lt_prog_compiler_can_build_shared=no
15707 + ;;
15709 + uts4*)
15710 + lt_prog_compiler_pic='-pic'
15711 + lt_prog_compiler_static='-Bstatic'
15712 + ;;
15714 + *)
15715 + lt_prog_compiler_can_build_shared=no
15716 + ;;
15717 + esac
15718 + fi
15720 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15721 +echo "${ECHO_T}$lt_prog_compiler_pic" >&6
15724 +# Check to make sure the PIC flag actually works.
15726 +if test -n "$lt_prog_compiler_pic"; then
15728 +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15729 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
15730 +if test "${lt_prog_compiler_pic_works+set}" = set; then
15731 + echo $ECHO_N "(cached) $ECHO_C" >&6
15732 +else
15733 + lt_prog_compiler_pic_works=no
15734 + ac_outfile=conftest.$ac_objext
15735 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15736 + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15737 + # Insert the option either (1) after the last *FLAGS variable, or
15738 + # (2) before a word containing "conftest.", or (3) at the end.
15739 + # Note that $ac_compile itself does not contain backslashes and begins
15740 + # with a dollar sign (not a hyphen), so the echo should work correctly.
15741 + # The option is referenced via a variable to avoid confusing sed.
15742 + lt_compile=`echo "$ac_compile" | $SED \
15743 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15744 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15745 + -e 's:$: $lt_compiler_flag:'`
15746 + (eval echo "\"\$as_me:6238: $lt_compile\"" >&5)
15747 + (eval "$lt_compile" 2>conftest.err)
15748 + ac_status=$?
15749 + cat conftest.err >&5
15750 + echo "$as_me:6242: \$? = $ac_status" >&5
15751 + if (exit $ac_status) && test -s "$ac_outfile"; then
15752 + # The compiler can only warn and ignore the option if not recognized
15753 + # So say no if there are warnings other than the usual output.
15754 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15755 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15756 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15757 + lt_prog_compiler_pic_works=yes
15758 + fi
15759 + fi
15760 + $rm conftest*
15763 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15764 +echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
15766 +if test x"$lt_prog_compiler_pic_works" = xyes; then
15767 + case $lt_prog_compiler_pic in
15768 + "" | " "*) ;;
15769 + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15770 + esac
15771 +else
15772 + lt_prog_compiler_pic=
15773 + lt_prog_compiler_can_build_shared=no
15777 +case $host_os in
15778 + # For platforms which do not support PIC, -DPIC is meaningless:
15779 + *djgpp*)
15780 + lt_prog_compiler_pic=
15781 + ;;
15782 + *)
15783 + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15784 + ;;
15785 +esac
15788 +# Check to make sure the static flag actually works.
15790 +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15791 +echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15792 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15793 +if test "${lt_prog_compiler_static_works+set}" = set; then
15794 + echo $ECHO_N "(cached) $ECHO_C" >&6
15795 +else
15796 + lt_prog_compiler_static_works=no
15797 + save_LDFLAGS="$LDFLAGS"
15798 + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15799 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
15800 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15801 + # The linker can only warn and ignore the option if not recognized
15802 + # So say no if there are warnings
15803 + if test -s conftest.err; then
15804 + # Append any errors to the config.log.
15805 + cat conftest.err 1>&5
15806 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15807 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15808 + if diff conftest.exp conftest.er2 >/dev/null; then
15809 + lt_prog_compiler_static_works=yes
15810 + fi
15811 + else
15812 + lt_prog_compiler_static_works=yes
15813 + fi
15814 + fi
15815 + $rm conftest*
15816 + LDFLAGS="$save_LDFLAGS"
15819 +echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15820 +echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
15822 +if test x"$lt_prog_compiler_static_works" = xyes; then
15824 +else
15825 + lt_prog_compiler_static=
15829 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15830 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15831 +if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15832 + echo $ECHO_N "(cached) $ECHO_C" >&6
15833 +else
15834 + lt_cv_prog_compiler_c_o=no
15835 + $rm -r conftest 2>/dev/null
15836 + mkdir conftest
15837 + cd conftest
15838 + mkdir out
15839 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15841 + lt_compiler_flag="-o out/conftest2.$ac_objext"
15842 + # Insert the option either (1) after the last *FLAGS variable, or
15843 + # (2) before a word containing "conftest.", or (3) at the end.
15844 + # Note that $ac_compile itself does not contain backslashes and begins
15845 + # with a dollar sign (not a hyphen), so the echo should work correctly.
15846 + lt_compile=`echo "$ac_compile" | $SED \
15847 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15848 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15849 + -e 's:$: $lt_compiler_flag:'`
15850 + (eval echo "\"\$as_me:6342: $lt_compile\"" >&5)
15851 + (eval "$lt_compile" 2>out/conftest.err)
15852 + ac_status=$?
15853 + cat out/conftest.err >&5
15854 + echo "$as_me:6346: \$? = $ac_status" >&5
15855 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
15856 + then
15857 + # The compiler can only warn and ignore the option if not recognized
15858 + # So say no if there are warnings
15859 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15860 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15861 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15862 + lt_cv_prog_compiler_c_o=yes
15863 + fi
15864 + fi
15865 + chmod u+w . 2>&5
15866 + $rm conftest*
15867 + # SGI C++ compiler will create directory out/ii_files/ for
15868 + # template instantiation
15869 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15870 + $rm out/* && rmdir out
15871 + cd ..
15872 + rmdir conftest
15873 + $rm conftest*
15876 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15877 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
15880 +hard_links="nottested"
15881 +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15882 + # do not overwrite the value of need_locks provided by the user
15883 + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15884 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15885 + hard_links=yes
15886 + $rm conftest*
15887 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
15888 + touch conftest.a
15889 + ln conftest.a conftest.b 2>&5 || hard_links=no
15890 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
15891 + echo "$as_me:$LINENO: result: $hard_links" >&5
15892 +echo "${ECHO_T}$hard_links" >&6
15893 + if test "$hard_links" = no; then
15894 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15895 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15896 + need_locks=warn
15897 + fi
15898 +else
15899 + need_locks=no
15902 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15903 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15905 + runpath_var=
15906 + allow_undefined_flag=
15907 + enable_shared_with_static_runtimes=no
15908 + archive_cmds=
15909 + archive_expsym_cmds=
15910 + old_archive_From_new_cmds=
15911 + old_archive_from_expsyms_cmds=
15912 + export_dynamic_flag_spec=
15913 + whole_archive_flag_spec=
15914 + thread_safe_flag_spec=
15915 + hardcode_libdir_flag_spec=
15916 + hardcode_libdir_flag_spec_ld=
15917 + hardcode_libdir_separator=
15918 + hardcode_direct=no
15919 + hardcode_minus_L=no
15920 + hardcode_shlibpath_var=unsupported
15921 + link_all_deplibs=unknown
15922 + hardcode_automatic=no
15923 + module_cmds=
15924 + module_expsym_cmds=
15925 + always_export_symbols=no
15926 + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15927 + # include_expsyms should be a list of space-separated symbols to be *always*
15928 + # included in the symbol list
15929 + include_expsyms=
15930 + # exclude_expsyms can be an extended regexp of symbols to exclude
15931 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
15932 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15933 + # as well as any symbol that contains `d'.
15934 + exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15935 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15936 + # platforms (ab)use it in PIC code, but their linkers get confused if
15937 + # the symbol is explicitly referenced. Since portable code cannot
15938 + # rely on this symbol name, it's probably fine to never include it in
15939 + # preloaded symbol tables.
15940 + extract_expsyms_cmds=
15941 + # Just being paranoid about ensuring that cc_basename is set.
15942 + for cc_temp in $compiler""; do
15943 + case $cc_temp in
15944 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15945 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15946 + \-*) ;;
15947 + *) break;;
15948 + esac
15949 +done
15950 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15952 + case $host_os in
15953 + cygwin* | mingw* | pw32*)
15954 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
15955 + # When not using gcc, we currently assume that we are using
15956 + # Microsoft Visual C++.
15957 + if test "$GCC" != yes; then
15958 + with_gnu_ld=no
15959 + fi
15960 + ;;
15961 + interix*)
15962 + # we just hope/assume this is gcc and not c89 (= MSVC++)
15963 + with_gnu_ld=yes
15964 + ;;
15965 + openbsd*)
15966 + with_gnu_ld=no
15967 + ;;
15968 + esac
15970 + ld_shlibs=yes
15971 + if test "$with_gnu_ld" = yes; then
15972 + # If archive_cmds runs LD, not CC, wlarc should be empty
15973 + wlarc='${wl}'
15975 + # Set some defaults for GNU ld with shared library support. These
15976 + # are reset later if shared libraries are not supported. Putting them
15977 + # here allows them to be overridden if necessary.
15978 + runpath_var=LD_RUN_PATH
15979 + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15980 + export_dynamic_flag_spec='${wl}--export-dynamic'
15981 + # ancient GNU ld didn't support --whole-archive et. al.
15982 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15983 + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15984 + else
15985 + whole_archive_flag_spec=
15986 + fi
15987 + supports_anon_versioning=no
15988 + case `$LD -v 2>/dev/null` in
15989 + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15990 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15991 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15992 + *\ 2.11.*) ;; # other 2.11 versions
15993 + *) supports_anon_versioning=yes ;;
15994 + esac
15996 + # See if GNU ld supports shared libraries.
15997 + case $host_os in
15998 + aix3* | aix4* | aix5*)
15999 + # On AIX/PPC, the GNU linker is very broken
16000 + if test "$host_cpu" != ia64; then
16001 + ld_shlibs=no
16002 + cat <<EOF 1>&2
16004 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16005 +*** to be unable to reliably create shared libraries on AIX.
16006 +*** Therefore, libtool is disabling shared libraries support. If you
16007 +*** really care for shared libraries, you may want to modify your PATH
16008 +*** so that a non-GNU linker is found, and then restart.
16010 +EOF
16011 + fi
16012 + ;;
16014 + amigaos*)
16015 + 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)'
16016 + hardcode_libdir_flag_spec='-L$libdir'
16017 + hardcode_minus_L=yes
16019 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16020 + # that the semantics of dynamic libraries on AmigaOS, at least up
16021 + # to version 4, is to share data among multiple programs linked
16022 + # with the same dynamic library. Since this doesn't match the
16023 + # behavior of shared libraries on other platforms, we can't use
16024 + # them.
16025 + ld_shlibs=no
16026 + ;;
16028 + beos*)
16029 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16030 + allow_undefined_flag=unsupported
16031 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16032 + # support --undefined. This deserves some investigation. FIXME
16033 + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16034 + else
16035 + ld_shlibs=no
16036 + fi
16037 + ;;
16039 + cygwin* | mingw* | pw32*)
16040 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16041 + # as there is no search path for DLLs.
16042 + hardcode_libdir_flag_spec='-L$libdir'
16043 + allow_undefined_flag=unsupported
16044 + always_export_symbols=no
16045 + enable_shared_with_static_runtimes=yes
16046 + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16048 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16049 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16050 + # If the export-symbols file already is a .def file (1st line
16051 + # is EXPORTS), use it as is; otherwise, prepend...
16052 + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16053 + cp $export_symbols $output_objdir/$soname.def;
16054 + else
16055 + echo EXPORTS > $output_objdir/$soname.def;
16056 + cat $export_symbols >> $output_objdir/$soname.def;
16057 + fi~
16058 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16059 + else
16060 + ld_shlibs=no
16061 + fi
16062 + ;;
16064 + interix3*)
16065 + hardcode_direct=no
16066 + hardcode_shlibpath_var=no
16067 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16068 + export_dynamic_flag_spec='${wl}-E'
16069 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16070 + # Instead, shared libraries are loaded at an image base (0x10000000 by
16071 + # default) and relocated if they conflict, which is a slow very memory
16072 + # consuming and fragmenting process. To avoid this, we pick a random,
16073 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16074 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16075 + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16076 + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16077 + ;;
16079 + linux*)
16080 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16081 + tmp_addflag=
16082 + case $cc_basename,$host_cpu in
16083 + pgcc*) # Portland Group C compiler
16084 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16085 + tmp_addflag=' $pic_flag'
16086 + ;;
16087 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16088 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16089 + tmp_addflag=' $pic_flag -Mnomain' ;;
16090 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16091 + tmp_addflag=' -i_dynamic' ;;
16092 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16093 + tmp_addflag=' -i_dynamic -nofor_main' ;;
16094 + ifc* | ifort*) # Intel Fortran compiler
16095 + tmp_addflag=' -nofor_main' ;;
16096 + esac
16097 + archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16099 + if test $supports_anon_versioning = yes; then
16100 + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
16101 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16102 + $echo "local: *; };" >> $output_objdir/$libname.ver~
16103 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16104 + fi
16105 + link_all_deplibs=no
16106 + else
16107 + ld_shlibs=no
16108 + fi
16109 + ;;
16111 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16112 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16113 + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16114 + wlarc=
16115 + else
16116 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16117 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16118 + fi
16119 + ;;
16121 + solaris*)
16122 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16123 + ld_shlibs=no
16124 + cat <<EOF 1>&2
16126 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16127 +*** create shared libraries on Solaris systems. Therefore, libtool
16128 +*** is disabling shared libraries support. We urge you to upgrade GNU
16129 +*** binutils to release 2.9.1 or newer. Another option is to modify
16130 +*** your PATH or compiler configuration so that the native linker is
16131 +*** used, and then restart.
16133 +EOF
16134 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16135 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16136 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16137 + else
16138 + ld_shlibs=no
16139 + fi
16140 + ;;
16142 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16143 + case `$LD -v 2>&1` in
16144 + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16145 + ld_shlibs=no
16146 + cat <<_LT_EOF 1>&2
16148 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16149 +*** reliably create shared libraries on SCO systems. Therefore, libtool
16150 +*** is disabling shared libraries support. We urge you to upgrade GNU
16151 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16152 +*** your PATH or compiler configuration so that the native linker is
16153 +*** used, and then restart.
16155 +_LT_EOF
16156 + ;;
16157 + *)
16158 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16159 + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16160 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16161 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16162 + else
16163 + ld_shlibs=no
16164 + fi
16165 + ;;
16166 + esac
16167 + ;;
16169 + sunos4*)
16170 + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16171 + wlarc=
16172 + hardcode_direct=yes
16173 + hardcode_shlibpath_var=no
16174 + ;;
16176 + *)
16177 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16178 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16179 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16180 + else
16181 + ld_shlibs=no
16182 + fi
16183 + ;;
16184 + esac
16186 + if test "$ld_shlibs" = no; then
16187 + runpath_var=
16188 + hardcode_libdir_flag_spec=
16189 + export_dynamic_flag_spec=
16190 + whole_archive_flag_spec=
16191 + fi
16192 + else
16193 + # PORTME fill in a description of your system's linker (not GNU ld)
16194 + case $host_os in
16195 + aix3*)
16196 + allow_undefined_flag=unsupported
16197 + always_export_symbols=yes
16198 + 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'
16199 + # Note: this linker hardcodes the directories in LIBPATH if there
16200 + # are no directories specified by -L.
16201 + hardcode_minus_L=yes
16202 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16203 + # Neither direct hardcoding nor static linking is supported with a
16204 + # broken collect2.
16205 + hardcode_direct=unsupported
16206 + fi
16207 + ;;
16209 + aix4* | aix5*)
16210 + if test "$host_cpu" = ia64; then
16211 + # On IA64, the linker does run time linking by default, so we don't
16212 + # have to do anything special.
16213 + aix_use_runtimelinking=no
16214 + exp_sym_flag='-Bexport'
16215 + no_entry_flag=""
16216 + else
16217 + # If we're using GNU nm, then we don't want the "-C" option.
16218 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
16219 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16220 + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16221 + else
16222 + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16223 + fi
16224 + aix_use_runtimelinking=no
16226 + # Test if we are trying to use run time linking or normal
16227 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16228 + # need to do runtime linking.
16229 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16230 + for ld_flag in $LDFLAGS; do
16231 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16232 + aix_use_runtimelinking=yes
16233 + break
16234 + fi
16235 + done
16236 + ;;
16237 + esac
16239 + exp_sym_flag='-bexport'
16240 + no_entry_flag='-bnoentry'
16241 + fi
16243 + # When large executables or shared objects are built, AIX ld can
16244 + # have problems creating the table of contents. If linking a library
16245 + # or program results in "error TOC overflow" add -mminimal-toc to
16246 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16247 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16249 + archive_cmds=''
16250 + hardcode_direct=yes
16251 + hardcode_libdir_separator=':'
16252 + link_all_deplibs=yes
16254 + if test "$GCC" = yes; then
16255 + case $host_os in aix4.[012]|aix4.[012].*)
16256 + # We only want to do this on AIX 4.2 and lower, the check
16257 + # below for broken collect2 doesn't work under 4.3+
16258 + collect2name=`${CC} -print-prog-name=collect2`
16259 + if test -f "$collect2name" && \
16260 + strings "$collect2name" | grep resolve_lib_name >/dev/null
16261 + then
16262 + # We have reworked collect2
16263 + hardcode_direct=yes
16264 + else
16265 + # We have old collect2
16266 + hardcode_direct=unsupported
16267 + # It fails to find uninstalled libraries when the uninstalled
16268 + # path is not listed in the libpath. Setting hardcode_minus_L
16269 + # to unsupported forces relinking
16270 + hardcode_minus_L=yes
16271 + hardcode_libdir_flag_spec='-L$libdir'
16272 + hardcode_libdir_separator=
16273 + fi
16274 + ;;
16275 + esac
16276 + shared_flag='-shared'
16277 + if test "$aix_use_runtimelinking" = yes; then
16278 + shared_flag="$shared_flag "'${wl}-G'
16279 + fi
16280 + else
16281 + # not using gcc
16282 + if test "$host_cpu" = ia64; then
16283 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16284 + # chokes on -Wl,-G. The following line is correct:
16285 + shared_flag='-G'
16286 + else
16287 + if test "$aix_use_runtimelinking" = yes; then
16288 + shared_flag='${wl}-G'
16289 + else
16290 + shared_flag='${wl}-bM:SRE'
16291 + fi
16292 + fi
16293 + fi
16295 + # It seems that -bexpall does not export symbols beginning with
16296 + # underscore (_), so it is better to generate a list of symbols to export.
16297 + always_export_symbols=yes
16298 + if test "$aix_use_runtimelinking" = yes; then
16299 + # Warning - without using the other runtime loading flags (-brtl),
16300 + # -berok will link without error, but may produce a broken library.
16301 + allow_undefined_flag='-berok'
16302 + # Determine the default libpath from the value encoded in an empty executable.
16303 + cat >conftest.$ac_ext <<_ACEOF
16304 +/* confdefs.h. */
16305 +_ACEOF
16306 +cat confdefs.h >>conftest.$ac_ext
16307 +cat >>conftest.$ac_ext <<_ACEOF
16308 +/* end confdefs.h. */
16310 +int
16311 +main ()
16315 + return 0;
16317 +_ACEOF
16318 +rm -f conftest.$ac_objext conftest$ac_exeext
16319 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16320 + (eval $ac_link) 2>conftest.er1
16321 + ac_status=$?
16322 + grep -v '^ *+' conftest.er1 >conftest.err
16323 + rm -f conftest.er1
16324 + cat conftest.err >&5
16325 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 + (exit $ac_status); } &&
16327 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16328 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16329 + (eval $ac_try) 2>&5
16330 + ac_status=$?
16331 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 + (exit $ac_status); }; } &&
16333 + { ac_try='test -s conftest$ac_exeext'
16334 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16335 + (eval $ac_try) 2>&5
16336 + ac_status=$?
16337 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 + (exit $ac_status); }; }; then
16340 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16341 +}'`
16342 +# Check for a 64-bit object if we didn't find anything.
16343 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16344 +}'`; fi
16345 +else
16346 + echo "$as_me: failed program was:" >&5
16347 +sed 's/^/| /' conftest.$ac_ext >&5
16350 +rm -f conftest.err conftest.$ac_objext \
16351 + conftest$ac_exeext conftest.$ac_ext
16352 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16354 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16355 + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16356 + else
16357 + if test "$host_cpu" = ia64; then
16358 + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16359 + allow_undefined_flag="-z nodefs"
16360 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16361 + else
16362 + # Determine the default libpath from the value encoded in an empty executable.
16363 + cat >conftest.$ac_ext <<_ACEOF
16364 +/* confdefs.h. */
16365 +_ACEOF
16366 +cat confdefs.h >>conftest.$ac_ext
16367 +cat >>conftest.$ac_ext <<_ACEOF
16368 +/* end confdefs.h. */
16370 +int
16371 +main ()
16375 + return 0;
16377 +_ACEOF
16378 +rm -f conftest.$ac_objext conftest$ac_exeext
16379 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16380 + (eval $ac_link) 2>conftest.er1
16381 + ac_status=$?
16382 + grep -v '^ *+' conftest.er1 >conftest.err
16383 + rm -f conftest.er1
16384 + cat conftest.err >&5
16385 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 + (exit $ac_status); } &&
16387 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16388 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16389 + (eval $ac_try) 2>&5
16390 + ac_status=$?
16391 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 + (exit $ac_status); }; } &&
16393 + { ac_try='test -s conftest$ac_exeext'
16394 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16395 + (eval $ac_try) 2>&5
16396 + ac_status=$?
16397 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 + (exit $ac_status); }; }; then
16400 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16401 +}'`
16402 +# Check for a 64-bit object if we didn't find anything.
16403 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16404 +}'`; fi
16405 +else
16406 + echo "$as_me: failed program was:" >&5
16407 +sed 's/^/| /' conftest.$ac_ext >&5
16410 +rm -f conftest.err conftest.$ac_objext \
16411 + conftest$ac_exeext conftest.$ac_ext
16412 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16414 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16415 + # Warning - without using the other run time loading flags,
16416 + # -berok will link without error, but may produce a broken library.
16417 + no_undefined_flag=' ${wl}-bernotok'
16418 + allow_undefined_flag=' ${wl}-berok'
16419 + # Exported symbols can be pulled into shared objects from archives
16420 + whole_archive_flag_spec='$convenience'
16421 + archive_cmds_need_lc=yes
16422 + # This is similar to how AIX traditionally builds its shared libraries.
16423 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16424 + fi
16425 + fi
16426 + ;;
16428 + amigaos*)
16429 + 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)'
16430 + hardcode_libdir_flag_spec='-L$libdir'
16431 + hardcode_minus_L=yes
16432 + # see comment about different semantics on the GNU ld section
16433 + ld_shlibs=no
16434 + ;;
16436 + bsdi[45]*)
16437 + export_dynamic_flag_spec=-rdynamic
16438 + ;;
16440 + cygwin* | mingw* | pw32*)
16441 + # When not using gcc, we currently assume that we are using
16442 + # Microsoft Visual C++.
16443 + # hardcode_libdir_flag_spec is actually meaningless, as there is
16444 + # no search path for DLLs.
16445 + hardcode_libdir_flag_spec=' '
16446 + allow_undefined_flag=unsupported
16447 + # Tell ltmain to make .lib files, not .a files.
16448 + libext=lib
16449 + # Tell ltmain to make .dll files, not .so files.
16450 + shrext_cmds=".dll"
16451 + # FIXME: Setting linknames here is a bad hack.
16452 + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16453 + # The linker will automatically build a .lib file if we build a DLL.
16454 + old_archive_From_new_cmds='true'
16455 + # FIXME: Should let the user specify the lib program.
16456 + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
16457 + fix_srcfile_path='`cygpath -w "$srcfile"`'
16458 + enable_shared_with_static_runtimes=yes
16459 + ;;
16461 + darwin* | rhapsody*)
16462 + case $host_os in
16463 + rhapsody* | darwin1.[012])
16464 + allow_undefined_flag='${wl}-undefined ${wl}suppress'
16465 + ;;
16466 + *) # Darwin 1.3 on
16467 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16468 + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16469 + else
16470 + case ${MACOSX_DEPLOYMENT_TARGET} in
16471 + 10.[012])
16472 + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16473 + ;;
16474 + 10.*)
16475 + allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
16476 + ;;
16477 + esac
16478 + fi
16479 + ;;
16480 + esac
16481 + archive_cmds_need_lc=no
16482 + hardcode_direct=no
16483 + hardcode_automatic=yes
16484 + hardcode_shlibpath_var=unsupported
16485 + whole_archive_flag_spec=''
16486 + link_all_deplibs=yes
16487 + if test "$GCC" = yes ; then
16488 + output_verbose_link_cmd='echo'
16489 + archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16490 + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16491 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16492 + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16493 + module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16494 + else
16495 + case $cc_basename in
16496 + xlc*)
16497 + output_verbose_link_cmd='echo'
16498 + archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16499 + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16500 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16501 + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16502 + module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16503 + ;;
16504 + *)
16505 + ld_shlibs=no
16506 + ;;
16507 + esac
16508 + fi
16509 + ;;
16511 + dgux*)
16512 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16513 + hardcode_libdir_flag_spec='-L$libdir'
16514 + hardcode_shlibpath_var=no
16515 + ;;
16517 + freebsd1*)
16518 + ld_shlibs=no
16519 + ;;
16521 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16522 + # support. Future versions do this automatically, but an explicit c++rt0.o
16523 + # does not break anything, and helps significantly (at the cost of a little
16524 + # extra space).
16525 + freebsd2.2*)
16526 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16527 + hardcode_libdir_flag_spec='-R$libdir'
16528 + hardcode_direct=yes
16529 + hardcode_shlibpath_var=no
16530 + ;;
16532 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16533 + freebsd2*)
16534 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16535 + hardcode_direct=yes
16536 + hardcode_minus_L=yes
16537 + hardcode_shlibpath_var=no
16538 + ;;
16540 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16541 + freebsd* | dragonfly*)
16542 + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16543 + hardcode_libdir_flag_spec='-R$libdir'
16544 + hardcode_direct=yes
16545 + hardcode_shlibpath_var=no
16546 + ;;
16548 + # GNU/kFreeBSD uses gcc -shared to do shared libraries.
16549 + kfreebsd*-gnu)
16550 + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16551 + hardcode_libdir_flag_spec='-R$libdir'
16552 + hardcode_direct=yes
16553 + hardcode_shlibpath_var=no
16554 + link_all_deplibs=no
16555 + ;;
16557 + hpux9*)
16558 + if test "$GCC" = yes; then
16559 + archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16560 + else
16561 + 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'
16562 + fi
16563 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16564 + hardcode_libdir_separator=:
16565 + hardcode_direct=yes
16567 + # hardcode_minus_L: Not really in the search PATH,
16568 + # but as the default location of the library.
16569 + hardcode_minus_L=yes
16570 + export_dynamic_flag_spec='${wl}-E'
16571 + ;;
16573 + hpux10*)
16574 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16575 + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16576 + else
16577 + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16578 + fi
16579 + if test "$with_gnu_ld" = no; then
16580 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16581 + hardcode_libdir_separator=:
16583 + hardcode_direct=yes
16584 + export_dynamic_flag_spec='${wl}-E'
16586 + # hardcode_minus_L: Not really in the search PATH,
16587 + # but as the default location of the library.
16588 + hardcode_minus_L=yes
16589 + fi
16590 + ;;
16592 + hpux11*)
16593 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16594 + case $host_cpu in
16595 + hppa*64*)
16596 + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16597 + ;;
16598 + ia64*)
16599 + archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16600 + ;;
16601 + *)
16602 + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16603 + ;;
16604 + esac
16605 + else
16606 + case $host_cpu in
16607 + hppa*64*)
16608 + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16609 + ;;
16610 + ia64*)
16611 + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16612 + ;;
16613 + *)
16614 + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16615 + ;;
16616 + esac
16617 + fi
16618 + if test "$with_gnu_ld" = no; then
16619 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16620 + hardcode_libdir_separator=:
16622 + case $host_cpu in
16623 + hppa*64*|ia64*)
16624 + hardcode_libdir_flag_spec_ld='+b $libdir'
16625 + hardcode_direct=no
16626 + hardcode_shlibpath_var=no
16627 + ;;
16628 + *)
16629 + hardcode_direct=yes
16630 + export_dynamic_flag_spec='${wl}-E'
16632 + # hardcode_minus_L: Not really in the search PATH,
16633 + # but as the default location of the library.
16634 + hardcode_minus_L=yes
16635 + ;;
16636 + esac
16637 + fi
16638 + ;;
16640 + irix5* | irix6* | nonstopux*)
16641 + if test "$GCC" = yes; then
16642 + 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'
16643 + else
16644 + 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'
16645 + hardcode_libdir_flag_spec_ld='-rpath $libdir'
16646 + fi
16647 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16648 + hardcode_libdir_separator=:
16649 + link_all_deplibs=yes
16650 + ;;
16652 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16653 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16654 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16655 + else
16656 + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16657 + fi
16658 + hardcode_libdir_flag_spec='-R$libdir'
16659 + hardcode_direct=yes
16660 + hardcode_shlibpath_var=no
16661 + ;;
16663 + newsos6)
16664 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16665 + hardcode_direct=yes
16666 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16667 + hardcode_libdir_separator=:
16668 + hardcode_shlibpath_var=no
16669 + ;;
16671 + openbsd*)
16672 + hardcode_direct=yes
16673 + hardcode_shlibpath_var=no
16674 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16675 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16676 + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16677 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16678 + export_dynamic_flag_spec='${wl}-E'
16679 + else
16680 + case $host_os in
16681 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16682 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16683 + hardcode_libdir_flag_spec='-R$libdir'
16684 + ;;
16685 + *)
16686 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16687 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16688 + ;;
16689 + esac
16690 + fi
16691 + ;;
16693 + os2*)
16694 + hardcode_libdir_flag_spec='-L$libdir'
16695 + hardcode_minus_L=yes
16696 + allow_undefined_flag=unsupported
16697 + 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'
16698 + old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16699 + ;;
16701 + osf3*)
16702 + if test "$GCC" = yes; then
16703 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16704 + 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'
16705 + else
16706 + allow_undefined_flag=' -expect_unresolved \*'
16707 + 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'
16708 + fi
16709 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16710 + hardcode_libdir_separator=:
16711 + ;;
16713 + osf4* | osf5*) # as osf3* with the addition of -msym flag
16714 + if test "$GCC" = yes; then
16715 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16716 + 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'
16717 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16718 + else
16719 + allow_undefined_flag=' -expect_unresolved \*'
16720 + 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'
16721 + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16722 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16724 + # Both c and cxx compiler support -rpath directly
16725 + hardcode_libdir_flag_spec='-rpath $libdir'
16726 + fi
16727 + hardcode_libdir_separator=:
16728 + ;;
16730 + solaris*)
16731 + no_undefined_flag=' -z text'
16732 + if test "$GCC" = yes; then
16733 + wlarc='${wl}'
16734 + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16735 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16736 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16737 + else
16738 + wlarc=''
16739 + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16740 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16741 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16742 + fi
16743 + hardcode_libdir_flag_spec='-R$libdir'
16744 + hardcode_shlibpath_var=no
16745 + case $host_os in
16746 + solaris2.[0-5] | solaris2.[0-5].*) ;;
16747 + *)
16748 + # The compiler driver will combine linker options so we
16749 + # cannot just pass the convience library names through
16750 + # without $wl, iff we do not link with $LD.
16751 + # Luckily, gcc supports the same syntax we need for Sun Studio.
16752 + # Supported since Solaris 2.6 (maybe 2.5.1?)
16753 + case $wlarc in
16754 + '')
16755 + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16756 + *)
16757 + whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16758 + esac ;;
16759 + esac
16760 + link_all_deplibs=yes
16761 + ;;
16763 + sunos4*)
16764 + if test "x$host_vendor" = xsequent; then
16765 + # Use $CC to link under sequent, because it throws in some extra .o
16766 + # files that make .init and .fini sections work.
16767 + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16768 + else
16769 + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16770 + fi
16771 + hardcode_libdir_flag_spec='-L$libdir'
16772 + hardcode_direct=yes
16773 + hardcode_minus_L=yes
16774 + hardcode_shlibpath_var=no
16775 + ;;
16777 + sysv4)
16778 + case $host_vendor in
16779 + sni)
16780 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16781 + hardcode_direct=yes # is this really true???
16782 + ;;
16783 + siemens)
16784 + ## LD is ld it makes a PLAMLIB
16785 + ## CC just makes a GrossModule.
16786 + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16787 + reload_cmds='$CC -r -o $output$reload_objs'
16788 + hardcode_direct=no
16789 + ;;
16790 + motorola)
16791 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16792 + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16793 + ;;
16794 + esac
16795 + runpath_var='LD_RUN_PATH'
16796 + hardcode_shlibpath_var=no
16797 + ;;
16799 + sysv4.3*)
16800 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16801 + hardcode_shlibpath_var=no
16802 + export_dynamic_flag_spec='-Bexport'
16803 + ;;
16805 + sysv4*MP*)
16806 + if test -d /usr/nec; then
16807 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16808 + hardcode_shlibpath_var=no
16809 + runpath_var=LD_RUN_PATH
16810 + hardcode_runpath_var=yes
16811 + ld_shlibs=yes
16812 + fi
16813 + ;;
16815 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16816 + no_undefined_flag='${wl}-z,text'
16817 + archive_cmds_need_lc=no
16818 + hardcode_shlibpath_var=no
16819 + runpath_var='LD_RUN_PATH'
16821 + if test "$GCC" = yes; then
16822 + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16823 + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16824 + else
16825 + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16826 + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16827 + fi
16828 + ;;
16830 + sysv5* | sco3.2v5* | sco5v6*)
16831 + # Note: We can NOT use -z defs as we might desire, because we do not
16832 + # link with -lc, and that would cause any symbols used from libc to
16833 + # always be unresolved, which means just about no library would
16834 + # ever link correctly. If we're not using GNU ld we use -z text
16835 + # though, which does catch some bad symbols but isn't as heavy-handed
16836 + # as -z defs.
16837 + no_undefined_flag='${wl}-z,text'
16838 + allow_undefined_flag='${wl}-z,nodefs'
16839 + archive_cmds_need_lc=no
16840 + hardcode_shlibpath_var=no
16841 + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16842 + hardcode_libdir_separator=':'
16843 + link_all_deplibs=yes
16844 + export_dynamic_flag_spec='${wl}-Bexport'
16845 + runpath_var='LD_RUN_PATH'
16847 + if test "$GCC" = yes; then
16848 + archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16849 + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16850 + else
16851 + archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16852 + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16853 + fi
16854 + ;;
16856 + uts4*)
16857 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16858 + hardcode_libdir_flag_spec='-L$libdir'
16859 + hardcode_shlibpath_var=no
16860 + ;;
16862 + *)
16863 + ld_shlibs=no
16864 + ;;
16865 + esac
16866 + fi
16868 +echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16869 +echo "${ECHO_T}$ld_shlibs" >&6
16870 +test "$ld_shlibs" = no && can_build_shared=no
16873 +# Do we need to explicitly link libc?
16875 +case "x$archive_cmds_need_lc" in
16876 +x|xyes)
16877 + # Assume -lc should be added
16878 + archive_cmds_need_lc=yes
16880 + if test "$enable_shared" = yes && test "$GCC" = yes; then
16881 + case $archive_cmds in
16882 + *'~'*)
16883 + # FIXME: we may have to deal with multi-command sequences.
16884 + ;;
16885 + '$CC '*)
16886 + # Test whether the compiler implicitly links with -lc since on some
16887 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
16888 + # to ld, don't add -lc before -lgcc.
16889 + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16890 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16891 + $rm conftest*
16892 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16894 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16895 + (eval $ac_compile) 2>&5
16896 + ac_status=$?
16897 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 + (exit $ac_status); } 2>conftest.err; then
16899 + soname=conftest
16900 + lib=conftest
16901 + libobjs=conftest.$ac_objext
16902 + deplibs=
16903 + wl=$lt_prog_compiler_wl
16904 + pic_flag=$lt_prog_compiler_pic
16905 + compiler_flags=-v
16906 + linker_flags=-v
16907 + verstring=
16908 + output_objdir=.
16909 + libname=conftest
16910 + lt_save_allow_undefined_flag=$allow_undefined_flag
16911 + allow_undefined_flag=
16912 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16913 + (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16914 + ac_status=$?
16915 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 + (exit $ac_status); }
16917 + then
16918 + archive_cmds_need_lc=no
16919 + else
16920 + archive_cmds_need_lc=yes
16921 + fi
16922 + allow_undefined_flag=$lt_save_allow_undefined_flag
16923 + else
16924 + cat conftest.err 1>&5
16925 + fi
16926 + $rm conftest*
16927 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16928 +echo "${ECHO_T}$archive_cmds_need_lc" >&6
16929 + ;;
16930 + esac
16931 + fi
16932 + ;;
16933 +esac
16935 +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16936 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16937 +library_names_spec=
16938 +libname_spec='lib$name'
16939 +soname_spec=
16940 +shrext_cmds=".so"
16941 +postinstall_cmds=
16942 +postuninstall_cmds=
16943 +finish_cmds=
16944 +finish_eval=
16945 +shlibpath_var=
16946 +shlibpath_overrides_runpath=unknown
16947 +version_type=none
16948 +dynamic_linker="$host_os ld.so"
16949 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
16950 +if test "$GCC" = yes; then
16951 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16952 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16953 + # if the path contains ";" then we assume it to be the separator
16954 + # otherwise default to the standard path separator (i.e. ":") - it is
16955 + # assumed that no part of a normal pathname contains ";" but that should
16956 + # okay in the real world where ";" in dirpaths is itself problematic.
16957 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16958 + else
16959 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16960 + fi
16961 +else
16962 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16964 +need_lib_prefix=unknown
16965 +hardcode_into_libs=no
16967 +# when you set need_version to no, make sure it does not cause -set_version
16968 +# flags to be left without arguments
16969 +need_version=unknown
16971 +case $host_os in
16972 +aix3*)
16973 + version_type=linux
16974 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16975 + shlibpath_var=LIBPATH
16977 + # AIX 3 has no versioning support, so we append a major version to the name.
16978 + soname_spec='${libname}${release}${shared_ext}$major'
16979 + ;;
16981 +aix4* | aix5*)
16982 + version_type=linux
16983 + need_lib_prefix=no
16984 + need_version=no
16985 + hardcode_into_libs=yes
16986 + if test "$host_cpu" = ia64; then
16987 + # AIX 5 supports IA64
16988 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16989 + shlibpath_var=LD_LIBRARY_PATH
16990 + else
16991 + # With GCC up to 2.95.x, collect2 would create an import file
16992 + # for dependence libraries. The import file would start with
16993 + # the line `#! .'. This would cause the generated library to
16994 + # depend on `.', always an invalid library. This was fixed in
16995 + # development snapshots of GCC prior to 3.0.
16996 + case $host_os in
16997 + aix4 | aix4.[01] | aix4.[01].*)
16998 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16999 + echo ' yes '
17000 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17002 + else
17003 + can_build_shared=no
17004 + fi
17005 + ;;
17006 + esac
17007 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17008 + # soname into executable. Probably we can add versioning support to
17009 + # collect2, so additional links can be useful in future.
17010 + if test "$aix_use_runtimelinking" = yes; then
17011 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17012 + # instead of lib<name>.a to let people know that these are not
17013 + # typical AIX shared libraries.
17014 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17015 + else
17016 + # We preserve .a as extension for shared libraries through AIX4.2
17017 + # and later when we are not doing run time linking.
17018 + library_names_spec='${libname}${release}.a $libname.a'
17019 + soname_spec='${libname}${release}${shared_ext}$major'
17020 + fi
17021 + shlibpath_var=LIBPATH
17022 + fi
17023 + ;;
17025 +amigaos*)
17026 + library_names_spec='$libname.ixlibrary $libname.a'
17027 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
17028 + 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'
17029 + ;;
17031 +beos*)
17032 + library_names_spec='${libname}${shared_ext}'
17033 + dynamic_linker="$host_os ld.so"
17034 + shlibpath_var=LIBRARY_PATH
17035 + ;;
17037 +bsdi[45]*)
17038 + version_type=linux
17039 + need_version=no
17040 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17041 + soname_spec='${libname}${release}${shared_ext}$major'
17042 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17043 + shlibpath_var=LD_LIBRARY_PATH
17044 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17045 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17046 + # the default ld.so.conf also contains /usr/contrib/lib and
17047 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17048 + # libtool to hard-code these into programs
17049 + ;;
17051 +cygwin* | mingw* | pw32*)
17052 + version_type=windows
17053 + shrext_cmds=".dll"
17054 + need_version=no
17055 + need_lib_prefix=no
17057 + case $GCC,$host_os in
17058 + yes,cygwin* | yes,mingw* | yes,pw32*)
17059 + library_names_spec='$libname.dll.a'
17060 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
17061 + postinstall_cmds='base_file=`basename \${file}`~
17062 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17063 + dldir=$destdir/`dirname \$dlpath`~
17064 + test -d \$dldir || mkdir -p \$dldir~
17065 + $install_prog $dir/$dlname \$dldir/$dlname~
17066 + chmod a+x \$dldir/$dlname'
17067 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17068 + dlpath=$dir/\$dldll~
17069 + $rm \$dlpath'
17070 + shlibpath_overrides_runpath=yes
17072 + case $host_os in
17073 + cygwin*)
17074 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17075 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17076 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17077 + ;;
17078 + mingw*)
17079 + # MinGW DLLs use traditional 'lib' prefix
17080 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17081 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17082 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17083 + # It is most probably a Windows format PATH printed by
17084 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
17085 + # path with ; separators, and with drive letters. We can handle the
17086 + # drive letters (cygwin fileutils understands them), so leave them,
17087 + # especially as we might pass files found there to a mingw objdump,
17088 + # which wouldn't understand a cygwinified path. Ahh.
17089 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17090 + else
17091 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17092 + fi
17093 + ;;
17094 + pw32*)
17095 + # pw32 DLLs use 'pw' prefix rather than 'lib'
17096 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17097 + ;;
17098 + esac
17099 + ;;
17101 + *)
17102 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17103 + ;;
17104 + esac
17105 + dynamic_linker='Win32 ld.exe'
17106 + # FIXME: first we should search . and the directory the executable is in
17107 + shlibpath_var=PATH
17108 + ;;
17110 +darwin* | rhapsody*)
17111 + dynamic_linker="$host_os dyld"
17112 + version_type=darwin
17113 + need_lib_prefix=no
17114 + need_version=no
17115 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17116 + soname_spec='${libname}${release}${major}$shared_ext'
17117 + shlibpath_overrides_runpath=yes
17118 + shlibpath_var=DYLD_LIBRARY_PATH
17119 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17120 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17121 + if test "$GCC" = yes; then
17122 + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17123 + else
17124 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17125 + fi
17126 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17127 + ;;
17129 +dgux*)
17130 + version_type=linux
17131 + need_lib_prefix=no
17132 + need_version=no
17133 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17134 + soname_spec='${libname}${release}${shared_ext}$major'
17135 + shlibpath_var=LD_LIBRARY_PATH
17136 + ;;
17138 +freebsd1*)
17139 + dynamic_linker=no
17140 + ;;
17142 +kfreebsd*-gnu)
17143 + version_type=linux
17144 + need_lib_prefix=no
17145 + need_version=no
17146 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17147 + soname_spec='${libname}${release}${shared_ext}$major'
17148 + shlibpath_var=LD_LIBRARY_PATH
17149 + shlibpath_overrides_runpath=no
17150 + hardcode_into_libs=yes
17151 + dynamic_linker='GNU ld.so'
17152 + ;;
17154 +freebsd* | dragonfly*)
17155 + # DragonFly does not have aout. When/if they implement a new
17156 + # versioning mechanism, adjust this.
17157 + if test -x /usr/bin/objformat; then
17158 + objformat=`/usr/bin/objformat`
17159 + else
17160 + case $host_os in
17161 + freebsd[123]*) objformat=aout ;;
17162 + *) objformat=elf ;;
17163 + esac
17164 + fi
17165 + version_type=freebsd-$objformat
17166 + case $version_type in
17167 + freebsd-elf*)
17168 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17169 + need_version=no
17170 + need_lib_prefix=no
17171 + ;;
17172 + freebsd-*)
17173 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17174 + need_version=yes
17175 + ;;
17176 + esac
17177 + shlibpath_var=LD_LIBRARY_PATH
17178 + case $host_os in
17179 + freebsd2*)
17180 + shlibpath_overrides_runpath=yes
17181 + ;;
17182 + freebsd3.[01]* | freebsdelf3.[01]*)
17183 + shlibpath_overrides_runpath=yes
17184 + hardcode_into_libs=yes
17185 + ;;
17186 + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17187 + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17188 + shlibpath_overrides_runpath=no
17189 + hardcode_into_libs=yes
17190 + ;;
17191 + freebsd*) # from 4.6 on
17192 + shlibpath_overrides_runpath=yes
17193 + hardcode_into_libs=yes
17194 + ;;
17195 + esac
17196 + ;;
17198 +gnu*)
17199 + version_type=linux
17200 + need_lib_prefix=no
17201 + need_version=no
17202 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17203 + soname_spec='${libname}${release}${shared_ext}$major'
17204 + shlibpath_var=LD_LIBRARY_PATH
17205 + hardcode_into_libs=yes
17206 + ;;
17208 +hpux9* | hpux10* | hpux11*)
17209 + # Give a soname corresponding to the major version so that dld.sl refuses to
17210 + # link against other versions.
17211 + version_type=sunos
17212 + need_lib_prefix=no
17213 + need_version=no
17214 + case $host_cpu in
17215 + ia64*)
17216 + shrext_cmds='.so'
17217 + hardcode_into_libs=yes
17218 + dynamic_linker="$host_os dld.so"
17219 + shlibpath_var=LD_LIBRARY_PATH
17220 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17221 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17222 + soname_spec='${libname}${release}${shared_ext}$major'
17223 + if test "X$HPUX_IA64_MODE" = X32; then
17224 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17225 + else
17226 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17227 + fi
17228 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17229 + ;;
17230 + hppa*64*)
17231 + shrext_cmds='.sl'
17232 + hardcode_into_libs=yes
17233 + dynamic_linker="$host_os dld.sl"
17234 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17235 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17236 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17237 + soname_spec='${libname}${release}${shared_ext}$major'
17238 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17239 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17240 + ;;
17241 + *)
17242 + shrext_cmds='.sl'
17243 + dynamic_linker="$host_os dld.sl"
17244 + shlibpath_var=SHLIB_PATH
17245 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17246 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17247 + soname_spec='${libname}${release}${shared_ext}$major'
17248 + ;;
17249 + esac
17250 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
17251 + postinstall_cmds='chmod 555 $lib'
17252 + ;;
17254 +interix3*)
17255 + version_type=linux
17256 + need_lib_prefix=no
17257 + need_version=no
17258 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17259 + soname_spec='${libname}${release}${shared_ext}$major'
17260 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17261 + shlibpath_var=LD_LIBRARY_PATH
17262 + shlibpath_overrides_runpath=no
17263 + hardcode_into_libs=yes
17264 + ;;
17266 +irix5* | irix6* | nonstopux*)
17267 + case $host_os in
17268 + nonstopux*) version_type=nonstopux ;;
17269 + *)
17270 + if test "$lt_cv_prog_gnu_ld" = yes; then
17271 + version_type=linux
17272 + else
17273 + version_type=irix
17274 + fi ;;
17275 + esac
17276 + need_lib_prefix=no
17277 + need_version=no
17278 + soname_spec='${libname}${release}${shared_ext}$major'
17279 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17280 + case $host_os in
17281 + irix5* | nonstopux*)
17282 + libsuff= shlibsuff=
17283 + ;;
17284 + *)
17285 + case $LD in # libtool.m4 will add one of these switches to LD
17286 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17287 + libsuff= shlibsuff= libmagic=32-bit;;
17288 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17289 + libsuff=32 shlibsuff=N32 libmagic=N32;;
17290 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17291 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
17292 + *) libsuff= shlibsuff= libmagic=never-match;;
17293 + esac
17294 + ;;
17295 + esac
17296 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17297 + shlibpath_overrides_runpath=no
17298 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17299 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17300 + hardcode_into_libs=yes
17301 + ;;
17303 +# No shared lib support for Linux oldld, aout, or coff.
17304 +linux*oldld* | linux*aout* | linux*coff*)
17305 + dynamic_linker=no
17306 + ;;
17308 +# This must be Linux ELF.
17309 +linux*)
17310 + version_type=linux
17311 + need_lib_prefix=no
17312 + need_version=no
17313 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17314 + soname_spec='${libname}${release}${shared_ext}$major'
17315 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17316 + shlibpath_var=LD_LIBRARY_PATH
17317 + shlibpath_overrides_runpath=no
17318 + # This implies no fast_install, which is unacceptable.
17319 + # Some rework will be needed to allow for fast_install
17320 + # before this can be enabled.
17321 + hardcode_into_libs=yes
17323 + # Append ld.so.conf contents to the search path
17324 + if test -f /etc/ld.so.conf; then
17325 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17326 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17327 + fi
17329 + # We used to test for /lib/ld.so.1 and disable shared libraries on
17330 + # powerpc, because MkLinux only supported shared libraries with the
17331 + # GNU dynamic linker. Since this was broken with cross compilers,
17332 + # most powerpc-linux boxes support dynamic linking these days and
17333 + # people can always --disable-shared, the test was removed, and we
17334 + # assume the GNU/Linux dynamic linker is in use.
17335 + dynamic_linker='GNU/Linux ld.so'
17336 + ;;
17338 +netbsdelf*-gnu)
17339 + version_type=linux
17340 + need_lib_prefix=no
17341 + need_version=no
17342 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17343 + soname_spec='${libname}${release}${shared_ext}$major'
17344 + shlibpath_var=LD_LIBRARY_PATH
17345 + shlibpath_overrides_runpath=no
17346 + hardcode_into_libs=yes
17347 + dynamic_linker='NetBSD ld.elf_so'
17348 + ;;
17350 +knetbsd*-gnu)
17351 + version_type=linux
17352 + need_lib_prefix=no
17353 + need_version=no
17354 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17355 + soname_spec='${libname}${release}${shared_ext}$major'
17356 + shlibpath_var=LD_LIBRARY_PATH
17357 + shlibpath_overrides_runpath=no
17358 + hardcode_into_libs=yes
17359 + dynamic_linker='GNU ld.so'
17360 + ;;
17362 +netbsd*)
17363 + version_type=sunos
17364 + need_lib_prefix=no
17365 + need_version=no
17366 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17367 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17368 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17369 + dynamic_linker='NetBSD (a.out) ld.so'
17370 + else
17371 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17372 + soname_spec='${libname}${release}${shared_ext}$major'
17373 + dynamic_linker='NetBSD ld.elf_so'
17374 + fi
17375 + shlibpath_var=LD_LIBRARY_PATH
17376 + shlibpath_overrides_runpath=yes
17377 + hardcode_into_libs=yes
17378 + ;;
17380 +newsos6)
17381 + version_type=linux
17382 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17383 + shlibpath_var=LD_LIBRARY_PATH
17384 + shlibpath_overrides_runpath=yes
17385 + ;;
17387 +nto-qnx*)
17388 + version_type=linux
17389 + need_lib_prefix=no
17390 + need_version=no
17391 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17392 + soname_spec='${libname}${release}${shared_ext}$major'
17393 + shlibpath_var=LD_LIBRARY_PATH
17394 + shlibpath_overrides_runpath=yes
17395 + ;;
17397 +openbsd*)
17398 + version_type=sunos
17399 + sys_lib_dlsearch_path_spec="/usr/lib"
17400 + need_lib_prefix=no
17401 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17402 + case $host_os in
17403 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17404 + *) need_version=no ;;
17405 + esac
17406 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17407 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17408 + shlibpath_var=LD_LIBRARY_PATH
17409 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17410 + case $host_os in
17411 + openbsd2.[89] | openbsd2.[89].*)
17412 + shlibpath_overrides_runpath=no
17413 + ;;
17414 + *)
17415 + shlibpath_overrides_runpath=yes
17416 + ;;
17417 + esac
17418 + else
17419 + shlibpath_overrides_runpath=yes
17420 + fi
17421 + ;;
17423 +os2*)
17424 + libname_spec='$name'
17425 + shrext_cmds=".dll"
17426 + need_lib_prefix=no
17427 + library_names_spec='$libname${shared_ext} $libname.a'
17428 + dynamic_linker='OS/2 ld.exe'
17429 + shlibpath_var=LIBPATH
17430 + ;;
17432 +osf3* | osf4* | osf5*)
17433 + version_type=osf
17434 + need_lib_prefix=no
17435 + need_version=no
17436 + soname_spec='${libname}${release}${shared_ext}$major'
17437 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17438 + shlibpath_var=LD_LIBRARY_PATH
17439 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17440 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17441 + ;;
17443 +solaris*)
17444 + version_type=linux
17445 + need_lib_prefix=no
17446 + need_version=no
17447 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17448 + soname_spec='${libname}${release}${shared_ext}$major'
17449 + shlibpath_var=LD_LIBRARY_PATH
17450 + shlibpath_overrides_runpath=yes
17451 + hardcode_into_libs=yes
17452 + # ldd complains unless libraries are executable
17453 + postinstall_cmds='chmod +x $lib'
17454 + ;;
17456 +sunos4*)
17457 + version_type=sunos
17458 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17459 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17460 + shlibpath_var=LD_LIBRARY_PATH
17461 + shlibpath_overrides_runpath=yes
17462 + if test "$with_gnu_ld" = yes; then
17463 + need_lib_prefix=no
17464 + fi
17465 + need_version=yes
17466 + ;;
17468 +sysv4 | sysv4.3*)
17469 + version_type=linux
17470 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17471 + soname_spec='${libname}${release}${shared_ext}$major'
17472 + shlibpath_var=LD_LIBRARY_PATH
17473 + case $host_vendor in
17474 + sni)
17475 + shlibpath_overrides_runpath=no
17476 + need_lib_prefix=no
17477 + export_dynamic_flag_spec='${wl}-Blargedynsym'
17478 + runpath_var=LD_RUN_PATH
17479 + ;;
17480 + siemens)
17481 + need_lib_prefix=no
17482 + ;;
17483 + motorola)
17484 + need_lib_prefix=no
17485 + need_version=no
17486 + shlibpath_overrides_runpath=no
17487 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17488 + ;;
17489 + esac
17490 + ;;
17492 +sysv4*MP*)
17493 + if test -d /usr/nec ;then
17494 + version_type=linux
17495 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17496 + soname_spec='$libname${shared_ext}.$major'
17497 + shlibpath_var=LD_LIBRARY_PATH
17498 + fi
17499 + ;;
17501 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17502 + version_type=freebsd-elf
17503 + need_lib_prefix=no
17504 + need_version=no
17505 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17506 + soname_spec='${libname}${release}${shared_ext}$major'
17507 + shlibpath_var=LD_LIBRARY_PATH
17508 + hardcode_into_libs=yes
17509 + if test "$with_gnu_ld" = yes; then
17510 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17511 + shlibpath_overrides_runpath=no
17512 + else
17513 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17514 + shlibpath_overrides_runpath=yes
17515 + case $host_os in
17516 + sco3.2v5*)
17517 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17518 + ;;
17519 + esac
17520 + fi
17521 + sys_lib_dlsearch_path_spec='/usr/lib'
17522 + ;;
17524 +uts4*)
17525 + version_type=linux
17526 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17527 + soname_spec='${libname}${release}${shared_ext}$major'
17528 + shlibpath_var=LD_LIBRARY_PATH
17529 + ;;
17532 + dynamic_linker=no
17533 + ;;
17534 +esac
17535 +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17536 +echo "${ECHO_T}$dynamic_linker" >&6
17537 +test "$dynamic_linker" = no && can_build_shared=no
17539 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17540 +if test "$GCC" = yes; then
17541 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17544 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17545 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17546 +hardcode_action=
17547 +if test -n "$hardcode_libdir_flag_spec" || \
17548 + test -n "$runpath_var" || \
17549 + test "X$hardcode_automatic" = "Xyes" ; then
17551 + # We can hardcode non-existant directories.
17552 + if test "$hardcode_direct" != no &&
17553 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
17554 + # have to relink, otherwise we might link with an installed library
17555 + # when we should be linking with a yet-to-be-installed one
17556 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
17557 + test "$hardcode_minus_L" != no; then
17558 + # Linking always hardcodes the temporary library directory.
17559 + hardcode_action=relink
17560 + else
17561 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
17562 + hardcode_action=immediate
17563 + fi
17564 +else
17565 + # We cannot hardcode anything, or else we can only hardcode existing
17566 + # directories.
17567 + hardcode_action=unsupported
17569 +echo "$as_me:$LINENO: result: $hardcode_action" >&5
17570 +echo "${ECHO_T}$hardcode_action" >&6
17572 +if test "$hardcode_action" = relink; then
17573 + # Fast installation is not supported
17574 + enable_fast_install=no
17575 +elif test "$shlibpath_overrides_runpath" = yes ||
17576 + test "$enable_shared" = no; then
17577 + # Fast installation is not necessary
17578 + enable_fast_install=needless
17581 +striplib=
17582 +old_striplib=
17583 +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17584 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17585 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17586 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17587 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17588 + echo "$as_me:$LINENO: result: yes" >&5
17589 +echo "${ECHO_T}yes" >&6
17590 +else
17591 +# FIXME - insert some real tests, host_os isn't really good enough
17592 + case $host_os in
17593 + darwin*)
17594 + if test -n "$STRIP" ; then
17595 + striplib="$STRIP -x"
17596 + echo "$as_me:$LINENO: result: yes" >&5
17597 +echo "${ECHO_T}yes" >&6
17598 + else
17599 + echo "$as_me:$LINENO: result: no" >&5
17600 +echo "${ECHO_T}no" >&6
17602 + ;;
17603 + *)
17604 + echo "$as_me:$LINENO: result: no" >&5
17605 +echo "${ECHO_T}no" >&6
17606 + ;;
17607 + esac
17610 +if test "x$enable_dlopen" != xyes; then
17611 + enable_dlopen=unknown
17612 + enable_dlopen_self=unknown
17613 + enable_dlopen_self_static=unknown
17614 +else
17615 + lt_cv_dlopen=no
17616 + lt_cv_dlopen_libs=
17618 + case $host_os in
17619 + beos*)
17620 + lt_cv_dlopen="load_add_on"
17621 + lt_cv_dlopen_libs=
17622 + lt_cv_dlopen_self=yes
17623 + ;;
17625 + mingw* | pw32*)
17626 + lt_cv_dlopen="LoadLibrary"
17627 + lt_cv_dlopen_libs=
17628 + ;;
17630 + cygwin*)
17631 + lt_cv_dlopen="dlopen"
17632 + lt_cv_dlopen_libs=
17633 + ;;
17635 + darwin*)
17636 + # if libdl is installed we need to link against it
17637 + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17638 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17639 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17640 + echo $ECHO_N "(cached) $ECHO_C" >&6
17641 +else
17642 + ac_check_lib_save_LIBS=$LIBS
17643 +LIBS="-ldl $LIBS"
17644 +cat >conftest.$ac_ext <<_ACEOF
17645 +/* confdefs.h. */
17646 +_ACEOF
17647 +cat confdefs.h >>conftest.$ac_ext
17648 +cat >>conftest.$ac_ext <<_ACEOF
17649 +/* end confdefs.h. */
17651 +/* Override any gcc2 internal prototype to avoid an error. */
17652 +#ifdef __cplusplus
17653 +extern "C"
17654 +#endif
17655 +/* We use char because int might match the return type of a gcc2
17656 + builtin and then its argument prototype would still apply. */
17657 +char dlopen ();
17658 +int
17659 +main ()
17661 +dlopen ();
17663 + return 0;
17665 +_ACEOF
17666 +rm -f conftest.$ac_objext conftest$ac_exeext
17667 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17668 + (eval $ac_link) 2>conftest.er1
17669 + ac_status=$?
17670 + grep -v '^ *+' conftest.er1 >conftest.err
17671 + rm -f conftest.er1
17672 + cat conftest.err >&5
17673 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 + (exit $ac_status); } &&
17675 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17676 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17677 + (eval $ac_try) 2>&5
17678 + ac_status=$?
17679 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 + (exit $ac_status); }; } &&
17681 + { ac_try='test -s conftest$ac_exeext'
17682 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17683 + (eval $ac_try) 2>&5
17684 + ac_status=$?
17685 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 + (exit $ac_status); }; }; then
17687 + ac_cv_lib_dl_dlopen=yes
17688 +else
17689 + echo "$as_me: failed program was:" >&5
17690 +sed 's/^/| /' conftest.$ac_ext >&5
17692 +ac_cv_lib_dl_dlopen=no
17694 +rm -f conftest.err conftest.$ac_objext \
17695 + conftest$ac_exeext conftest.$ac_ext
17696 +LIBS=$ac_check_lib_save_LIBS
17698 +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17699 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17700 +if test $ac_cv_lib_dl_dlopen = yes; then
17701 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17702 +else
17704 + lt_cv_dlopen="dyld"
17705 + lt_cv_dlopen_libs=
17706 + lt_cv_dlopen_self=yes
17710 + ;;
17712 + *)
17713 + echo "$as_me:$LINENO: checking for shl_load" >&5
17714 +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17715 +if test "${ac_cv_func_shl_load+set}" = set; then
17716 + echo $ECHO_N "(cached) $ECHO_C" >&6
17717 +else
17718 + cat >conftest.$ac_ext <<_ACEOF
17719 +/* confdefs.h. */
17720 +_ACEOF
17721 +cat confdefs.h >>conftest.$ac_ext
17722 +cat >>conftest.$ac_ext <<_ACEOF
17723 +/* end confdefs.h. */
17724 +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17725 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
17726 +#define shl_load innocuous_shl_load
17728 +/* System header to define __stub macros and hopefully few prototypes,
17729 + which can conflict with char shl_load (); below.
17730 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17731 + <limits.h> exists even on freestanding compilers. */
17733 +#ifdef __STDC__
17734 +# include <limits.h>
17735 +#else
17736 +# include <assert.h>
17737 +#endif
17739 +#undef shl_load
17741 +/* Override any gcc2 internal prototype to avoid an error. */
17742 +#ifdef __cplusplus
17743 +extern "C"
17745 +#endif
17746 +/* We use char because int might match the return type of a gcc2
17747 + builtin and then its argument prototype would still apply. */
17748 +char shl_load ();
17749 +/* The GNU C library defines this for functions which it implements
17750 + to always fail with ENOSYS. Some functions are actually named
17751 + something starting with __ and the normal name is an alias. */
17752 +#if defined (__stub_shl_load) || defined (__stub___shl_load)
17753 +choke me
17754 +#else
17755 +char (*f) () = shl_load;
17756 +#endif
17757 +#ifdef __cplusplus
17759 +#endif
17761 +int
17762 +main ()
17764 +return f != shl_load;
17766 + return 0;
17768 +_ACEOF
17769 +rm -f conftest.$ac_objext conftest$ac_exeext
17770 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17771 + (eval $ac_link) 2>conftest.er1
17772 + ac_status=$?
17773 + grep -v '^ *+' conftest.er1 >conftest.err
17774 + rm -f conftest.er1
17775 + cat conftest.err >&5
17776 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 + (exit $ac_status); } &&
17778 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17779 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780 + (eval $ac_try) 2>&5
17781 + ac_status=$?
17782 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 + (exit $ac_status); }; } &&
17784 + { ac_try='test -s conftest$ac_exeext'
17785 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17786 + (eval $ac_try) 2>&5
17787 + ac_status=$?
17788 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 + (exit $ac_status); }; }; then
17790 + ac_cv_func_shl_load=yes
17791 +else
17792 + echo "$as_me: failed program was:" >&5
17793 +sed 's/^/| /' conftest.$ac_ext >&5
17795 +ac_cv_func_shl_load=no
17797 +rm -f conftest.err conftest.$ac_objext \
17798 + conftest$ac_exeext conftest.$ac_ext
17800 +echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17801 +echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17802 +if test $ac_cv_func_shl_load = yes; then
17803 + lt_cv_dlopen="shl_load"
17804 +else
17805 + echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17806 +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17807 +if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17808 + echo $ECHO_N "(cached) $ECHO_C" >&6
17809 +else
17810 + ac_check_lib_save_LIBS=$LIBS
17811 +LIBS="-ldld $LIBS"
17812 +cat >conftest.$ac_ext <<_ACEOF
17813 +/* confdefs.h. */
17814 +_ACEOF
17815 +cat confdefs.h >>conftest.$ac_ext
17816 +cat >>conftest.$ac_ext <<_ACEOF
17817 +/* end confdefs.h. */
17819 +/* Override any gcc2 internal prototype to avoid an error. */
17820 +#ifdef __cplusplus
17821 +extern "C"
17822 +#endif
17823 +/* We use char because int might match the return type of a gcc2
17824 + builtin and then its argument prototype would still apply. */
17825 +char shl_load ();
17826 +int
17827 +main ()
17829 +shl_load ();
17831 + return 0;
17833 +_ACEOF
17834 +rm -f conftest.$ac_objext conftest$ac_exeext
17835 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17836 + (eval $ac_link) 2>conftest.er1
17837 + ac_status=$?
17838 + grep -v '^ *+' conftest.er1 >conftest.err
17839 + rm -f conftest.er1
17840 + cat conftest.err >&5
17841 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 + (exit $ac_status); } &&
17843 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17844 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845 + (eval $ac_try) 2>&5
17846 + ac_status=$?
17847 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 + (exit $ac_status); }; } &&
17849 + { ac_try='test -s conftest$ac_exeext'
17850 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851 + (eval $ac_try) 2>&5
17852 + ac_status=$?
17853 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 + (exit $ac_status); }; }; then
17855 + ac_cv_lib_dld_shl_load=yes
17856 +else
17857 + echo "$as_me: failed program was:" >&5
17858 +sed 's/^/| /' conftest.$ac_ext >&5
17860 +ac_cv_lib_dld_shl_load=no
17862 +rm -f conftest.err conftest.$ac_objext \
17863 + conftest$ac_exeext conftest.$ac_ext
17864 +LIBS=$ac_check_lib_save_LIBS
17866 +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17867 +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17868 +if test $ac_cv_lib_dld_shl_load = yes; then
17869 + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17870 +else
17871 + echo "$as_me:$LINENO: checking for dlopen" >&5
17872 +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17873 +if test "${ac_cv_func_dlopen+set}" = set; then
17874 + echo $ECHO_N "(cached) $ECHO_C" >&6
17875 +else
17876 + cat >conftest.$ac_ext <<_ACEOF
17877 +/* confdefs.h. */
17878 +_ACEOF
17879 +cat confdefs.h >>conftest.$ac_ext
17880 +cat >>conftest.$ac_ext <<_ACEOF
17881 +/* end confdefs.h. */
17882 +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17883 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
17884 +#define dlopen innocuous_dlopen
17886 +/* System header to define __stub macros and hopefully few prototypes,
17887 + which can conflict with char dlopen (); below.
17888 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17889 + <limits.h> exists even on freestanding compilers. */
17891 +#ifdef __STDC__
17892 +# include <limits.h>
17893 +#else
17894 +# include <assert.h>
17895 +#endif
17897 +#undef dlopen
17899 +/* Override any gcc2 internal prototype to avoid an error. */
17900 +#ifdef __cplusplus
17901 +extern "C"
17903 +#endif
17904 +/* We use char because int might match the return type of a gcc2
17905 + builtin and then its argument prototype would still apply. */
17906 +char dlopen ();
17907 +/* The GNU C library defines this for functions which it implements
17908 + to always fail with ENOSYS. Some functions are actually named
17909 + something starting with __ and the normal name is an alias. */
17910 +#if defined (__stub_dlopen) || defined (__stub___dlopen)
17911 +choke me
17912 +#else
17913 +char (*f) () = dlopen;
17914 +#endif
17915 +#ifdef __cplusplus
17917 +#endif
17919 +int
17920 +main ()
17922 +return f != dlopen;
17924 + return 0;
17926 +_ACEOF
17927 +rm -f conftest.$ac_objext conftest$ac_exeext
17928 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17929 + (eval $ac_link) 2>conftest.er1
17930 + ac_status=$?
17931 + grep -v '^ *+' conftest.er1 >conftest.err
17932 + rm -f conftest.er1
17933 + cat conftest.err >&5
17934 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 + (exit $ac_status); } &&
17936 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17937 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938 + (eval $ac_try) 2>&5
17939 + ac_status=$?
17940 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 + (exit $ac_status); }; } &&
17942 + { ac_try='test -s conftest$ac_exeext'
17943 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944 + (eval $ac_try) 2>&5
17945 + ac_status=$?
17946 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 + (exit $ac_status); }; }; then
17948 + ac_cv_func_dlopen=yes
17949 +else
17950 + echo "$as_me: failed program was:" >&5
17951 +sed 's/^/| /' conftest.$ac_ext >&5
17953 +ac_cv_func_dlopen=no
17955 +rm -f conftest.err conftest.$ac_objext \
17956 + conftest$ac_exeext conftest.$ac_ext
17958 +echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17959 +echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17960 +if test $ac_cv_func_dlopen = yes; then
17961 + lt_cv_dlopen="dlopen"
17962 +else
17963 + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17964 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17965 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17966 + echo $ECHO_N "(cached) $ECHO_C" >&6
17967 +else
17968 + ac_check_lib_save_LIBS=$LIBS
17969 +LIBS="-ldl $LIBS"
17970 +cat >conftest.$ac_ext <<_ACEOF
17971 +/* confdefs.h. */
17972 +_ACEOF
17973 +cat confdefs.h >>conftest.$ac_ext
17974 +cat >>conftest.$ac_ext <<_ACEOF
17975 +/* end confdefs.h. */
17977 +/* Override any gcc2 internal prototype to avoid an error. */
17978 +#ifdef __cplusplus
17979 +extern "C"
17980 +#endif
17981 +/* We use char because int might match the return type of a gcc2
17982 + builtin and then its argument prototype would still apply. */
17983 +char dlopen ();
17984 +int
17985 +main ()
17987 +dlopen ();
17989 + return 0;
17991 +_ACEOF
17992 +rm -f conftest.$ac_objext conftest$ac_exeext
17993 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17994 + (eval $ac_link) 2>conftest.er1
17995 + ac_status=$?
17996 + grep -v '^ *+' conftest.er1 >conftest.err
17997 + rm -f conftest.er1
17998 + cat conftest.err >&5
17999 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 + (exit $ac_status); } &&
18001 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18002 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003 + (eval $ac_try) 2>&5
18004 + ac_status=$?
18005 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 + (exit $ac_status); }; } &&
18007 + { ac_try='test -s conftest$ac_exeext'
18008 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18009 + (eval $ac_try) 2>&5
18010 + ac_status=$?
18011 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 + (exit $ac_status); }; }; then
18013 + ac_cv_lib_dl_dlopen=yes
18014 +else
18015 + echo "$as_me: failed program was:" >&5
18016 +sed 's/^/| /' conftest.$ac_ext >&5
18018 +ac_cv_lib_dl_dlopen=no
18020 +rm -f conftest.err conftest.$ac_objext \
18021 + conftest$ac_exeext conftest.$ac_ext
18022 +LIBS=$ac_check_lib_save_LIBS
18024 +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18025 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18026 +if test $ac_cv_lib_dl_dlopen = yes; then
18027 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18028 +else
18029 + echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18030 +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18031 +if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18032 + echo $ECHO_N "(cached) $ECHO_C" >&6
18033 +else
18034 + ac_check_lib_save_LIBS=$LIBS
18035 +LIBS="-lsvld $LIBS"
18036 +cat >conftest.$ac_ext <<_ACEOF
18037 +/* confdefs.h. */
18038 +_ACEOF
18039 +cat confdefs.h >>conftest.$ac_ext
18040 +cat >>conftest.$ac_ext <<_ACEOF
18041 +/* end confdefs.h. */
18043 +/* Override any gcc2 internal prototype to avoid an error. */
18044 +#ifdef __cplusplus
18045 +extern "C"
18046 +#endif
18047 +/* We use char because int might match the return type of a gcc2
18048 + builtin and then its argument prototype would still apply. */
18049 +char dlopen ();
18050 +int
18051 +main ()
18053 +dlopen ();
18055 + return 0;
18057 +_ACEOF
18058 +rm -f conftest.$ac_objext conftest$ac_exeext
18059 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18060 + (eval $ac_link) 2>conftest.er1
18061 + ac_status=$?
18062 + grep -v '^ *+' conftest.er1 >conftest.err
18063 + rm -f conftest.er1
18064 + cat conftest.err >&5
18065 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 + (exit $ac_status); } &&
18067 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18068 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069 + (eval $ac_try) 2>&5
18070 + ac_status=$?
18071 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 + (exit $ac_status); }; } &&
18073 + { ac_try='test -s conftest$ac_exeext'
18074 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18075 + (eval $ac_try) 2>&5
18076 + ac_status=$?
18077 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 + (exit $ac_status); }; }; then
18079 + ac_cv_lib_svld_dlopen=yes
18080 +else
18081 + echo "$as_me: failed program was:" >&5
18082 +sed 's/^/| /' conftest.$ac_ext >&5
18084 +ac_cv_lib_svld_dlopen=no
18086 +rm -f conftest.err conftest.$ac_objext \
18087 + conftest$ac_exeext conftest.$ac_ext
18088 +LIBS=$ac_check_lib_save_LIBS
18090 +echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18091 +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18092 +if test $ac_cv_lib_svld_dlopen = yes; then
18093 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18094 +else
18095 + echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18096 +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18097 +if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18098 + echo $ECHO_N "(cached) $ECHO_C" >&6
18099 +else
18100 + ac_check_lib_save_LIBS=$LIBS
18101 +LIBS="-ldld $LIBS"
18102 +cat >conftest.$ac_ext <<_ACEOF
18103 +/* confdefs.h. */
18104 +_ACEOF
18105 +cat confdefs.h >>conftest.$ac_ext
18106 +cat >>conftest.$ac_ext <<_ACEOF
18107 +/* end confdefs.h. */
18109 +/* Override any gcc2 internal prototype to avoid an error. */
18110 +#ifdef __cplusplus
18111 +extern "C"
18112 +#endif
18113 +/* We use char because int might match the return type of a gcc2
18114 + builtin and then its argument prototype would still apply. */
18115 +char dld_link ();
18116 +int
18117 +main ()
18119 +dld_link ();
18121 + return 0;
18123 +_ACEOF
18124 +rm -f conftest.$ac_objext conftest$ac_exeext
18125 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18126 + (eval $ac_link) 2>conftest.er1
18127 + ac_status=$?
18128 + grep -v '^ *+' conftest.er1 >conftest.err
18129 + rm -f conftest.er1
18130 + cat conftest.err >&5
18131 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 + (exit $ac_status); } &&
18133 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18134 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18135 + (eval $ac_try) 2>&5
18136 + ac_status=$?
18137 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 + (exit $ac_status); }; } &&
18139 + { ac_try='test -s conftest$ac_exeext'
18140 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141 + (eval $ac_try) 2>&5
18142 + ac_status=$?
18143 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 + (exit $ac_status); }; }; then
18145 + ac_cv_lib_dld_dld_link=yes
18146 +else
18147 + echo "$as_me: failed program was:" >&5
18148 +sed 's/^/| /' conftest.$ac_ext >&5
18150 +ac_cv_lib_dld_dld_link=no
18152 +rm -f conftest.err conftest.$ac_objext \
18153 + conftest$ac_exeext conftest.$ac_ext
18154 +LIBS=$ac_check_lib_save_LIBS
18156 +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18157 +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18158 +if test $ac_cv_lib_dld_dld_link = yes; then
18159 + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18177 + ;;
18178 + esac
18180 + if test "x$lt_cv_dlopen" != xno; then
18181 + enable_dlopen=yes
18182 + else
18183 + enable_dlopen=no
18184 + fi
18186 + case $lt_cv_dlopen in
18187 + dlopen)
18188 + save_CPPFLAGS="$CPPFLAGS"
18189 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18191 + save_LDFLAGS="$LDFLAGS"
18192 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18194 + save_LIBS="$LIBS"
18195 + LIBS="$lt_cv_dlopen_libs $LIBS"
18197 + echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18198 +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18199 +if test "${lt_cv_dlopen_self+set}" = set; then
18200 + echo $ECHO_N "(cached) $ECHO_C" >&6
18201 +else
18202 + if test "$cross_compiling" = yes; then :
18203 + lt_cv_dlopen_self=cross
18204 +else
18205 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18206 + lt_status=$lt_dlunknown
18207 + cat > conftest.$ac_ext <<EOF
18208 +#line 8700 "configure"
18209 +#include "confdefs.h"
18211 +#if HAVE_DLFCN_H
18212 +#include <dlfcn.h>
18213 +#endif
18215 +#include <stdio.h>
18217 +#ifdef RTLD_GLOBAL
18218 +# define LT_DLGLOBAL RTLD_GLOBAL
18219 +#else
18220 +# ifdef DL_GLOBAL
18221 +# define LT_DLGLOBAL DL_GLOBAL
18222 +# else
18223 +# define LT_DLGLOBAL 0
18224 +# endif
18225 +#endif
18227 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18228 + find out it does not work in some platform. */
18229 +#ifndef LT_DLLAZY_OR_NOW
18230 +# ifdef RTLD_LAZY
18231 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
18232 +# else
18233 +# ifdef DL_LAZY
18234 +# define LT_DLLAZY_OR_NOW DL_LAZY
18235 +# else
18236 +# ifdef RTLD_NOW
18237 +# define LT_DLLAZY_OR_NOW RTLD_NOW
18238 +# else
18239 +# ifdef DL_NOW
18240 +# define LT_DLLAZY_OR_NOW DL_NOW
18241 +# else
18242 +# define LT_DLLAZY_OR_NOW 0
18243 +# endif
18244 +# endif
18245 +# endif
18246 +# endif
18247 +#endif
18249 +#ifdef __cplusplus
18250 +extern "C" void exit (int);
18251 +#endif
18253 +void fnord() { int i=42;}
18254 +int main ()
18256 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18257 + int status = $lt_dlunknown;
18259 + if (self)
18261 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18262 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18263 + /* dlclose (self); */
18265 + else
18266 + puts (dlerror ());
18268 + exit (status);
18270 +EOF
18271 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18272 + (eval $ac_link) 2>&5
18273 + ac_status=$?
18274 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18276 + (./conftest; exit; ) >&5 2>/dev/null
18277 + lt_status=$?
18278 + case x$lt_status in
18279 + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18280 + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18281 + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18282 + esac
18283 + else :
18284 + # compilation failed
18285 + lt_cv_dlopen_self=no
18286 + fi
18288 +rm -fr conftest*
18292 +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18293 +echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18295 + if test "x$lt_cv_dlopen_self" = xyes; then
18296 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18297 + echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18298 +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18299 +if test "${lt_cv_dlopen_self_static+set}" = set; then
18300 + echo $ECHO_N "(cached) $ECHO_C" >&6
18301 +else
18302 + if test "$cross_compiling" = yes; then :
18303 + lt_cv_dlopen_self_static=cross
18304 +else
18305 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18306 + lt_status=$lt_dlunknown
18307 + cat > conftest.$ac_ext <<EOF
18308 +#line 8800 "configure"
18309 +#include "confdefs.h"
18311 +#if HAVE_DLFCN_H
18312 +#include <dlfcn.h>
18313 +#endif
18315 +#include <stdio.h>
18317 +#ifdef RTLD_GLOBAL
18318 +# define LT_DLGLOBAL RTLD_GLOBAL
18319 +#else
18320 +# ifdef DL_GLOBAL
18321 +# define LT_DLGLOBAL DL_GLOBAL
18322 +# else
18323 +# define LT_DLGLOBAL 0
18324 +# endif
18325 +#endif
18327 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18328 + find out it does not work in some platform. */
18329 +#ifndef LT_DLLAZY_OR_NOW
18330 +# ifdef RTLD_LAZY
18331 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
18332 +# else
18333 +# ifdef DL_LAZY
18334 +# define LT_DLLAZY_OR_NOW DL_LAZY
18335 +# else
18336 +# ifdef RTLD_NOW
18337 +# define LT_DLLAZY_OR_NOW RTLD_NOW
18338 +# else
18339 +# ifdef DL_NOW
18340 +# define LT_DLLAZY_OR_NOW DL_NOW
18341 +# else
18342 +# define LT_DLLAZY_OR_NOW 0
18343 +# endif
18344 +# endif
18345 +# endif
18346 +# endif
18347 +#endif
18349 +#ifdef __cplusplus
18350 +extern "C" void exit (int);
18351 +#endif
18353 +void fnord() { int i=42;}
18354 +int main ()
18356 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18357 + int status = $lt_dlunknown;
18359 + if (self)
18361 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18362 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18363 + /* dlclose (self); */
18365 + else
18366 + puts (dlerror ());
18368 + exit (status);
18370 +EOF
18371 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18372 + (eval $ac_link) 2>&5
18373 + ac_status=$?
18374 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18376 + (./conftest; exit; ) >&5 2>/dev/null
18377 + lt_status=$?
18378 + case x$lt_status in
18379 + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18380 + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18381 + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18382 + esac
18383 + else :
18384 + # compilation failed
18385 + lt_cv_dlopen_self_static=no
18386 + fi
18388 +rm -fr conftest*
18392 +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18393 +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18394 + fi
18396 + CPPFLAGS="$save_CPPFLAGS"
18397 + LDFLAGS="$save_LDFLAGS"
18398 + LIBS="$save_LIBS"
18399 + ;;
18400 + esac
18402 + case $lt_cv_dlopen_self in
18403 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18404 + *) enable_dlopen_self=unknown ;;
18405 + esac
18407 + case $lt_cv_dlopen_self_static in
18408 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18409 + *) enable_dlopen_self_static=unknown ;;
18410 + esac
18414 +# Report which library types will actually be built
18415 +echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18416 +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18417 +echo "$as_me:$LINENO: result: $can_build_shared" >&5
18418 +echo "${ECHO_T}$can_build_shared" >&6
18420 +echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18421 +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18422 +test "$can_build_shared" = "no" && enable_shared=no
18424 +# On AIX, shared libraries and static libraries use the same namespace, and
18425 +# are all built from PIC.
18426 +case $host_os in
18427 +aix3*)
18428 + test "$enable_shared" = yes && enable_static=no
18429 + if test -n "$RANLIB"; then
18430 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
18431 + postinstall_cmds='$RANLIB $lib'
18432 + fi
18433 + ;;
18435 +aix4* | aix5*)
18436 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18437 + test "$enable_shared" = yes && enable_static=no
18438 + fi
18439 + ;;
18440 +esac
18441 +echo "$as_me:$LINENO: result: $enable_shared" >&5
18442 +echo "${ECHO_T}$enable_shared" >&6
18444 +echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18445 +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18446 +# Make sure either enable_shared or enable_static is yes.
18447 +test "$enable_shared" = yes || enable_static=yes
18448 +echo "$as_me:$LINENO: result: $enable_static" >&5
18449 +echo "${ECHO_T}$enable_static" >&6
18451 +# The else clause should only fire when bootstrapping the
18452 +# libtool distribution, otherwise you forgot to ship ltmain.sh
18453 +# with your package, and you will get complaints that there are
18454 +# no rules to generate ltmain.sh.
18455 +if test -f "$ltmain"; then
18456 + # See if we are running on zsh, and set the options which allow our commands through
18457 + # without removal of \ escapes.
18458 + if test -n "${ZSH_VERSION+set}" ; then
18459 + setopt NO_GLOB_SUBST
18460 + fi
18461 + # Now quote all the things that may contain metacharacters while being
18462 + # careful not to overquote the AC_SUBSTed values. We take copies of the
18463 + # variables and quote the copies for generation of the libtool script.
18464 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18465 + SED SHELL STRIP \
18466 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18467 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18468 + deplibs_check_method reload_flag reload_cmds need_locks \
18469 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18470 + lt_cv_sys_global_symbol_to_c_name_address \
18471 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18472 + old_postinstall_cmds old_postuninstall_cmds \
18473 + compiler \
18474 + CC \
18475 + LD \
18476 + lt_prog_compiler_wl \
18477 + lt_prog_compiler_pic \
18478 + lt_prog_compiler_static \
18479 + lt_prog_compiler_no_builtin_flag \
18480 + export_dynamic_flag_spec \
18481 + thread_safe_flag_spec \
18482 + whole_archive_flag_spec \
18483 + enable_shared_with_static_runtimes \
18484 + old_archive_cmds \
18485 + old_archive_from_new_cmds \
18486 + predep_objects \
18487 + postdep_objects \
18488 + predeps \
18489 + postdeps \
18490 + compiler_lib_search_path \
18491 + archive_cmds \
18492 + archive_expsym_cmds \
18493 + postinstall_cmds \
18494 + postuninstall_cmds \
18495 + old_archive_from_expsyms_cmds \
18496 + allow_undefined_flag \
18497 + no_undefined_flag \
18498 + export_symbols_cmds \
18499 + hardcode_libdir_flag_spec \
18500 + hardcode_libdir_flag_spec_ld \
18501 + hardcode_libdir_separator \
18502 + hardcode_automatic \
18503 + module_cmds \
18504 + module_expsym_cmds \
18505 + lt_cv_prog_compiler_c_o \
18506 + exclude_expsyms \
18507 + include_expsyms; do
18509 + case $var in
18510 + old_archive_cmds | \
18511 + old_archive_from_new_cmds | \
18512 + archive_cmds | \
18513 + archive_expsym_cmds | \
18514 + module_cmds | \
18515 + module_expsym_cmds | \
18516 + old_archive_from_expsyms_cmds | \
18517 + export_symbols_cmds | \
18518 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
18519 + postinstall_cmds | postuninstall_cmds | \
18520 + old_postinstall_cmds | old_postuninstall_cmds | \
18521 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18522 + # Double-quote double-evaled strings.
18523 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18524 + ;;
18525 + *)
18526 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18527 + ;;
18528 + esac
18529 + done
18531 + case $lt_echo in
18532 + *'\$0 --fallback-echo"')
18533 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18534 + ;;
18535 + esac
18537 +cfgfile="${ofile}T"
18538 + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18539 + $rm -f "$cfgfile"
18540 + { echo "$as_me:$LINENO: creating $ofile" >&5
18541 +echo "$as_me: creating $ofile" >&6;}
18543 + cat <<__EOF__ >> "$cfgfile"
18544 +#! $SHELL
18546 +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18547 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18548 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18550 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18551 +# Free Software Foundation, Inc.
18553 +# This file is part of GNU Libtool:
18554 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18556 +# This program is free software; you can redistribute it and/or modify
18557 +# it under the terms of the GNU General Public License as published by
18558 +# the Free Software Foundation; either version 2 of the License, or
18559 +# (at your option) any later version.
18561 +# This program is distributed in the hope that it will be useful, but
18562 +# WITHOUT ANY WARRANTY; without even the implied warranty of
18563 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18564 +# General Public License for more details.
18566 +# You should have received a copy of the GNU General Public License
18567 +# along with this program; if not, write to the Free Software
18568 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18570 +# As a special exception to the GNU General Public License, if you
18571 +# distribute this file as part of a program that contains a
18572 +# configuration script generated by Autoconf, you may include it under
18573 +# the same distribution terms that you use for the rest of that program.
18575 +# A sed program that does not truncate output.
18576 +SED=$lt_SED
18578 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18579 +Xsed="$SED -e 1s/^X//"
18581 +# The HP-UX ksh and POSIX shell print the target directory to stdout
18582 +# if CDPATH is set.
18583 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18585 +# The names of the tagged configurations supported by this script.
18586 +available_tags=
18588 +# ### BEGIN LIBTOOL CONFIG
18590 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18592 +# Shell to use when invoking shell scripts.
18593 +SHELL=$lt_SHELL
18595 +# Whether or not to build shared libraries.
18596 +build_libtool_libs=$enable_shared
18598 +# Whether or not to build static libraries.
18599 +build_old_libs=$enable_static
18601 +# Whether or not to add -lc for building shared libraries.
18602 +build_libtool_need_lc=$archive_cmds_need_lc
18604 +# Whether or not to disallow shared libs when runtime libs are static
18605 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18607 +# Whether or not to optimize for fast installation.
18608 +fast_install=$enable_fast_install
18610 +# The host system.
18611 +host_alias=$host_alias
18612 +host=$host
18613 +host_os=$host_os
18615 +# The build system.
18616 +build_alias=$build_alias
18617 +build=$build
18618 +build_os=$build_os
18620 +# An echo program that does not interpret backslashes.
18621 +echo=$lt_echo
18623 +# The archiver.
18624 +AR=$lt_AR
18625 +AR_FLAGS=$lt_AR_FLAGS
18627 +# A C compiler.
18628 +LTCC=$lt_LTCC
18630 +# LTCC compiler flags.
18631 +LTCFLAGS=$lt_LTCFLAGS
18633 +# A language-specific compiler.
18634 +CC=$lt_compiler
18636 +# Is the compiler the GNU C compiler?
18637 +with_gcc=$GCC
18639 +# An ERE matcher.
18640 +EGREP=$lt_EGREP
18642 +# The linker used to build libraries.
18643 +LD=$lt_LD
18645 +# Whether we need hard or soft links.
18646 +LN_S=$lt_LN_S
18648 +# A BSD-compatible nm program.
18649 +NM=$lt_NM
18651 +# A symbol stripping program
18652 +STRIP=$lt_STRIP
18654 +# Used to examine libraries when file_magic_cmd begins "file"
18655 +MAGIC_CMD=$MAGIC_CMD
18657 +# Used on cygwin: DLL creation program.
18658 +DLLTOOL="$DLLTOOL"
18660 +# Used on cygwin: object dumper.
18661 +OBJDUMP="$OBJDUMP"
18663 +# Used on cygwin: assembler.
18664 +AS="$AS"
18666 +# The name of the directory that contains temporary libtool files.
18667 +objdir=$objdir
18669 +# How to create reloadable object files.
18670 +reload_flag=$lt_reload_flag
18671 +reload_cmds=$lt_reload_cmds
18673 +# How to pass a linker flag through the compiler.
18674 +wl=$lt_lt_prog_compiler_wl
18676 +# Object file suffix (normally "o").
18677 +objext="$ac_objext"
18679 +# Old archive suffix (normally "a").
18680 +libext="$libext"
18682 +# Shared library suffix (normally ".so").
18683 +shrext_cmds='$shrext_cmds'
18685 +# Executable file suffix (normally "").
18686 +exeext="$exeext"
18688 +# Additional compiler flags for building library objects.
18689 +pic_flag=$lt_lt_prog_compiler_pic
18690 +pic_mode=$pic_mode
18692 +# What is the maximum length of a command?
18693 +max_cmd_len=$lt_cv_sys_max_cmd_len
18695 +# Does compiler simultaneously support -c and -o options?
18696 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18698 +# Must we lock files when doing compilation?
18699 +need_locks=$lt_need_locks
18701 +# Do we need the lib prefix for modules?
18702 +need_lib_prefix=$need_lib_prefix
18704 +# Do we need a version for libraries?
18705 +need_version=$need_version
18707 +# Whether dlopen is supported.
18708 +dlopen_support=$enable_dlopen
18710 +# Whether dlopen of programs is supported.
18711 +dlopen_self=$enable_dlopen_self
18713 +# Whether dlopen of statically linked programs is supported.
18714 +dlopen_self_static=$enable_dlopen_self_static
18716 +# Compiler flag to prevent dynamic linking.
18717 +link_static_flag=$lt_lt_prog_compiler_static
18719 +# Compiler flag to turn off builtin functions.
18720 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18722 +# Compiler flag to allow reflexive dlopens.
18723 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18725 +# Compiler flag to generate shared objects directly from archives.
18726 +whole_archive_flag_spec=$lt_whole_archive_flag_spec
18728 +# Compiler flag to generate thread-safe objects.
18729 +thread_safe_flag_spec=$lt_thread_safe_flag_spec
18731 +# Library versioning type.
18732 +version_type=$version_type
18734 +# Format of library name prefix.
18735 +libname_spec=$lt_libname_spec
18737 +# List of archive names. First name is the real one, the rest are links.
18738 +# The last name is the one that the linker finds with -lNAME.
18739 +library_names_spec=$lt_library_names_spec
18741 +# The coded name of the library, if different from the real name.
18742 +soname_spec=$lt_soname_spec
18744 +# Commands used to build and install an old-style archive.
18745 +RANLIB=$lt_RANLIB
18746 +old_archive_cmds=$lt_old_archive_cmds
18747 +old_postinstall_cmds=$lt_old_postinstall_cmds
18748 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
18750 +# Create an old-style archive from a shared archive.
18751 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18753 +# Create a temporary old-style archive to link instead of a shared archive.
18754 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18756 +# Commands used to build and install a shared archive.
18757 +archive_cmds=$lt_archive_cmds
18758 +archive_expsym_cmds=$lt_archive_expsym_cmds
18759 +postinstall_cmds=$lt_postinstall_cmds
18760 +postuninstall_cmds=$lt_postuninstall_cmds
18762 +# Commands used to build a loadable module (assumed same as above if empty)
18763 +module_cmds=$lt_module_cmds
18764 +module_expsym_cmds=$lt_module_expsym_cmds
18766 +# Commands to strip libraries.
18767 +old_striplib=$lt_old_striplib
18768 +striplib=$lt_striplib
18770 +# Dependencies to place before the objects being linked to create a
18771 +# shared library.
18772 +predep_objects=$lt_predep_objects
18774 +# Dependencies to place after the objects being linked to create a
18775 +# shared library.
18776 +postdep_objects=$lt_postdep_objects
18778 +# Dependencies to place before the objects being linked to create a
18779 +# shared library.
18780 +predeps=$lt_predeps
18782 +# Dependencies to place after the objects being linked to create a
18783 +# shared library.
18784 +postdeps=$lt_postdeps
18786 +# The library search path used internally by the compiler when linking
18787 +# a shared library.
18788 +compiler_lib_search_path=$lt_compiler_lib_search_path
18790 +# Method to check whether dependent libraries are shared objects.
18791 +deplibs_check_method=$lt_deplibs_check_method
18793 +# Command to use when deplibs_check_method == file_magic.
18794 +file_magic_cmd=$lt_file_magic_cmd
18796 +# Flag that allows shared libraries with undefined symbols to be built.
18797 +allow_undefined_flag=$lt_allow_undefined_flag
18799 +# Flag that forces no undefined symbols.
18800 +no_undefined_flag=$lt_no_undefined_flag
18802 +# Commands used to finish a libtool library installation in a directory.
18803 +finish_cmds=$lt_finish_cmds
18805 +# Same as above, but a single script fragment to be evaled but not shown.
18806 +finish_eval=$lt_finish_eval
18808 +# Take the output of nm and produce a listing of raw symbols and C names.
18809 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18811 +# Transform the output of nm in a proper C declaration
18812 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18814 +# Transform the output of nm in a C name address pair
18815 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18817 +# This is the shared library runtime path variable.
18818 +runpath_var=$runpath_var
18820 +# This is the shared library path variable.
18821 +shlibpath_var=$shlibpath_var
18823 +# Is shlibpath searched before the hard-coded library search path?
18824 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18826 +# How to hardcode a shared library path into an executable.
18827 +hardcode_action=$hardcode_action
18829 +# Whether we should hardcode library paths into libraries.
18830 +hardcode_into_libs=$hardcode_into_libs
18832 +# Flag to hardcode \$libdir into a binary during linking.
18833 +# This must work even if \$libdir does not exist.
18834 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18836 +# If ld is used when linking, flag to hardcode \$libdir into
18837 +# a binary during linking. This must work even if \$libdir does
18838 +# not exist.
18839 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18841 +# Whether we need a single -rpath flag with a separated argument.
18842 +hardcode_libdir_separator=$lt_hardcode_libdir_separator
18844 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18845 +# resulting binary.
18846 +hardcode_direct=$hardcode_direct
18848 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18849 +# resulting binary.
18850 +hardcode_minus_L=$hardcode_minus_L
18852 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18853 +# the resulting binary.
18854 +hardcode_shlibpath_var=$hardcode_shlibpath_var
18856 +# Set to yes if building a shared library automatically hardcodes DIR into the library
18857 +# and all subsequent libraries and executables linked against it.
18858 +hardcode_automatic=$hardcode_automatic
18860 +# Variables whose values should be saved in libtool wrapper scripts and
18861 +# restored at relink time.
18862 +variables_saved_for_relink="$variables_saved_for_relink"
18864 +# Whether libtool must link a program against all its dependency libraries.
18865 +link_all_deplibs=$link_all_deplibs
18867 +# Compile-time system search path for libraries
18868 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18870 +# Run-time system search path for libraries
18871 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18873 +# Fix the shell variable \$srcfile for the compiler.
18874 +fix_srcfile_path="$fix_srcfile_path"
18876 +# Set to yes if exported symbols are required.
18877 +always_export_symbols=$always_export_symbols
18879 +# The commands to list exported symbols.
18880 +export_symbols_cmds=$lt_export_symbols_cmds
18882 +# The commands to extract the exported symbol list from a shared archive.
18883 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
18885 +# Symbols that should not be listed in the preloaded symbols.
18886 +exclude_expsyms=$lt_exclude_expsyms
18888 +# Symbols that must always be exported.
18889 +include_expsyms=$lt_include_expsyms
18891 +# ### END LIBTOOL CONFIG
18893 +__EOF__
18896 + case $host_os in
18897 + aix3*)
18898 + cat <<\EOF >> "$cfgfile"
18900 +# AIX sometimes has problems with the GCC collect2 program. For some
18901 +# reason, if we set the COLLECT_NAMES environment variable, the problems
18902 +# vanish in a puff of smoke.
18903 +if test "X${COLLECT_NAMES+set}" != Xset; then
18904 + COLLECT_NAMES=
18905 + export COLLECT_NAMES
18907 +EOF
18908 + ;;
18909 + esac
18911 + # We use sed instead of cat because bash on DJGPP gets confused if
18912 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
18913 + # text mode, it properly converts lines to CR/LF. This bash problem
18914 + # is reportedly fixed, but why not run on old versions too?
18915 + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18917 + mv -f "$cfgfile" "$ofile" || \
18918 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18919 + chmod +x "$ofile"
18921 +else
18922 + # If there is no Makefile yet, we rely on a make rule to execute
18923 + # `config.status --recheck' to rerun these tests and create the
18924 + # libtool script then.
18925 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18926 + if test -f "$ltmain_in"; then
18927 + test -f Makefile && make "$ltmain"
18928 + fi
18932 +ac_ext=c
18933 +ac_cpp='$CPP $CPPFLAGS'
18934 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18935 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18936 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
18938 +CC="$lt_save_CC"
18941 +# Check whether --with-tags or --without-tags was given.
18942 +if test "${with_tags+set}" = set; then
18943 + withval="$with_tags"
18944 + tagnames="$withval"
18945 +fi;
18947 +if test -f "$ltmain" && test -n "$tagnames"; then
18948 + if test ! -f "${ofile}"; then
18949 + { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18950 +echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18951 + fi
18953 + if test -z "$LTCC"; then
18954 + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18955 + if test -z "$LTCC"; then
18956 + { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18957 +echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18958 + else
18959 + { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18960 +echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18961 + fi
18962 + fi
18963 + if test -z "$LTCFLAGS"; then
18964 + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18965 + fi
18967 + # Extract list of available tagged configurations in $ofile.
18968 + # Note that this assumes the entire list is on one line.
18969 + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18971 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18972 + for tagname in $tagnames; do
18973 + IFS="$lt_save_ifs"
18974 + # Check whether tagname contains only valid characters
18975 + case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18976 + "") ;;
18977 + *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18978 +echo "$as_me: error: invalid tag name: $tagname" >&2;}
18979 + { (exit 1); exit 1; }; }
18980 + ;;
18981 + esac
18983 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18984 + then
18985 + { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18986 +echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18987 + { (exit 1); exit 1; }; }
18988 + fi
18990 + # Update the list of available tags.
18991 + if test -n "$tagname"; then
18992 + echo appending configuration tag \"$tagname\" to $ofile
18994 + case $tagname in
18995 + CXX)
18996 + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18997 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18998 + (test "X$CXX" != "Xg++"))) ; then
18999 + ac_ext=cc
19000 +ac_cpp='$CXXCPP $CPPFLAGS'
19001 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19002 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19003 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19008 +archive_cmds_need_lc_CXX=no
19009 +allow_undefined_flag_CXX=
19010 +always_export_symbols_CXX=no
19011 +archive_expsym_cmds_CXX=
19012 +export_dynamic_flag_spec_CXX=
19013 +hardcode_direct_CXX=no
19014 +hardcode_libdir_flag_spec_CXX=
19015 +hardcode_libdir_flag_spec_ld_CXX=
19016 +hardcode_libdir_separator_CXX=
19017 +hardcode_minus_L_CXX=no
19018 +hardcode_shlibpath_var_CXX=unsupported
19019 +hardcode_automatic_CXX=no
19020 +module_cmds_CXX=
19021 +module_expsym_cmds_CXX=
19022 +link_all_deplibs_CXX=unknown
19023 +old_archive_cmds_CXX=$old_archive_cmds
19024 +no_undefined_flag_CXX=
19025 +whole_archive_flag_spec_CXX=
19026 +enable_shared_with_static_runtimes_CXX=no
19028 +# Dependencies to place before and after the object being linked:
19029 +predep_objects_CXX=
19030 +postdep_objects_CXX=
19031 +predeps_CXX=
19032 +postdeps_CXX=
19033 +compiler_lib_search_path_CXX=
19035 +# Source file extension for C++ test sources.
19036 +ac_ext=cpp
19038 +# Object file extension for compiled C++ test sources.
19039 +objext=o
19040 +objext_CXX=$objext
19042 +# Code to be used in simple compile tests
19043 +lt_simple_compile_test_code="int some_variable = 0;\n"
19045 +# Code to be used in simple link tests
19046 +lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
19048 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19050 +# If no C compiler was specified, use CC.
19051 +LTCC=${LTCC-"$CC"}
19053 +# If no C compiler flags were specified, use CFLAGS.
19054 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19056 +# Allow CC to be a program name with arguments.
19057 +compiler=$CC
19060 +# save warnings/boilerplate of simple test code
19061 +ac_outfile=conftest.$ac_objext
19062 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19063 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19064 +_lt_compiler_boilerplate=`cat conftest.err`
19065 +$rm conftest*
19067 +ac_outfile=conftest.$ac_objext
19068 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
19069 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19070 +_lt_linker_boilerplate=`cat conftest.err`
19071 +$rm conftest*
19074 +# Allow CC to be a program name with arguments.
19075 +lt_save_CC=$CC
19076 +lt_save_LD=$LD
19077 +lt_save_GCC=$GCC
19078 +GCC=$GXX
19079 +lt_save_with_gnu_ld=$with_gnu_ld
19080 +lt_save_path_LD=$lt_cv_path_LD
19081 +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19082 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19083 +else
19084 + $as_unset lt_cv_prog_gnu_ld
19086 +if test -n "${lt_cv_path_LDCXX+set}"; then
19087 + lt_cv_path_LD=$lt_cv_path_LDCXX
19088 +else
19089 + $as_unset lt_cv_path_LD
19091 +test -z "${LDCXX+set}" || LD=$LDCXX
19092 +CC=${CXX-"c++"}
19093 +compiler=$CC
19094 +compiler_CXX=$CC
19095 +for cc_temp in $compiler""; do
19096 + case $cc_temp in
19097 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19098 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19099 + \-*) ;;
19100 + *) break;;
19101 + esac
19102 +done
19103 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19106 +# We don't want -fno-exception wen compiling C++ code, so set the
19107 +# no_builtin_flag separately
19108 +if test "$GXX" = yes; then
19109 + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19110 +else
19111 + lt_prog_compiler_no_builtin_flag_CXX=
19114 +if test "$GXX" = yes; then
19115 + # Set up default GNU C++ configuration
19118 +# Check whether --with-gnu-ld or --without-gnu-ld was given.
19119 +if test "${with_gnu_ld+set}" = set; then
19120 + withval="$with_gnu_ld"
19121 + test "$withval" = no || with_gnu_ld=yes
19122 +else
19123 + with_gnu_ld=no
19124 +fi;
19125 +ac_prog=ld
19126 +if test "$GCC" = yes; then
19127 + # Check if gcc -print-prog-name=ld gives a path.
19128 + echo "$as_me:$LINENO: checking for ld used by $CC" >&5
19129 +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
19130 + case $host in
19131 + *-*-mingw*)
19132 + # gcc leaves a trailing carriage return which upsets mingw
19133 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19134 + *)
19135 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19136 + esac
19137 + case $ac_prog in
19138 + # Accept absolute paths.
19139 + [\\/]* | ?:[\\/]*)
19140 + re_direlt='/[^/][^/]*/\.\./'
19141 + # Canonicalize the pathname of ld
19142 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
19143 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
19144 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
19145 + done
19146 + test -z "$LD" && LD="$ac_prog"
19147 + ;;
19148 + "")
19149 + # If it fails, then pretend we aren't using GCC.
19150 + ac_prog=ld
19151 + ;;
19152 + *)
19153 + # If it is relative, then search for the first ld in PATH.
19154 + with_gnu_ld=unknown
19155 + ;;
19156 + esac
19157 +elif test "$with_gnu_ld" = yes; then
19158 + echo "$as_me:$LINENO: checking for GNU ld" >&5
19159 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
19160 +else
19161 + echo "$as_me:$LINENO: checking for non-GNU ld" >&5
19162 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
19164 +if test "${lt_cv_path_LD+set}" = set; then
19165 + echo $ECHO_N "(cached) $ECHO_C" >&6
19166 +else
19167 + if test -z "$LD"; then
19168 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19169 + for ac_dir in $PATH; do
19170 + IFS="$lt_save_ifs"
19171 + test -z "$ac_dir" && ac_dir=.
19172 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19173 + lt_cv_path_LD="$ac_dir/$ac_prog"
19174 + # Check to see if the program is GNU ld. I'd rather use --version,
19175 + # but apparently some variants of GNU ld only accept -v.
19176 + # Break only if it was the GNU/non-GNU ld that we prefer.
19177 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19178 + *GNU* | *'with BFD'*)
19179 + test "$with_gnu_ld" != no && break
19180 + ;;
19181 + *)
19182 + test "$with_gnu_ld" != yes && break
19183 + ;;
19184 + esac
19185 + fi
19186 + done
19187 + IFS="$lt_save_ifs"
19188 +else
19189 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
19193 +LD="$lt_cv_path_LD"
19194 +if test -n "$LD"; then
19195 + echo "$as_me:$LINENO: result: $LD" >&5
19196 +echo "${ECHO_T}$LD" >&6
19197 +else
19198 + echo "$as_me:$LINENO: result: no" >&5
19199 +echo "${ECHO_T}no" >&6
19201 +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
19202 +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
19203 + { (exit 1); exit 1; }; }
19204 +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
19205 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
19206 +if test "${lt_cv_prog_gnu_ld+set}" = set; then
19207 + echo $ECHO_N "(cached) $ECHO_C" >&6
19208 +else
19209 + # I'd rather use --version here, but apparently some GNU lds only accept -v.
19210 +case `$LD -v 2>&1 </dev/null` in
19211 +*GNU* | *'with BFD'*)
19212 + lt_cv_prog_gnu_ld=yes
19213 + ;;
19215 + lt_cv_prog_gnu_ld=no
19216 + ;;
19217 +esac
19219 +echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
19220 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
19221 +with_gnu_ld=$lt_cv_prog_gnu_ld
19225 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
19226 + # archiving commands below assume that GNU ld is being used.
19227 + if test "$with_gnu_ld" = yes; then
19228 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19229 + archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19231 + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19232 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19234 + # If archive_cmds runs LD, not CC, wlarc should be empty
19235 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19236 + # investigate it a little bit more. (MM)
19237 + wlarc='${wl}'
19239 + # ancient GNU ld didn't support --whole-archive et. al.
19240 + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
19241 + grep 'no-whole-archive' > /dev/null; then
19242 + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19243 + else
19244 + whole_archive_flag_spec_CXX=
19245 + fi
19246 + else
19247 + with_gnu_ld=no
19248 + wlarc=
19250 + # A generic and very simple default shared library creation
19251 + # command for GNU C++ for the case where it uses the native
19252 + # linker, instead of GNU ld. If possible, this setting should
19253 + # overridden to take advantage of the native linker features on
19254 + # the platform it is being used on.
19255 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19256 + fi
19258 + # Commands to make compiler produce verbose output that lists
19259 + # what "hidden" libraries, object files and flags are used when
19260 + # linking a shared library.
19261 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19263 +else
19264 + GXX=no
19265 + with_gnu_ld=no
19266 + wlarc=
19269 +# PORTME: fill in a description of your system's C++ link characteristics
19270 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19271 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19272 +ld_shlibs_CXX=yes
19273 +case $host_os in
19274 + aix3*)
19275 + # FIXME: insert proper C++ library support
19276 + ld_shlibs_CXX=no
19277 + ;;
19278 + aix4* | aix5*)
19279 + if test "$host_cpu" = ia64; then
19280 + # On IA64, the linker does run time linking by default, so we don't
19281 + # have to do anything special.
19282 + aix_use_runtimelinking=no
19283 + exp_sym_flag='-Bexport'
19284 + no_entry_flag=""
19285 + else
19286 + aix_use_runtimelinking=no
19288 + # Test if we are trying to use run time linking or normal
19289 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19290 + # need to do runtime linking.
19291 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19292 + for ld_flag in $LDFLAGS; do
19293 + case $ld_flag in
19294 + *-brtl*)
19295 + aix_use_runtimelinking=yes
19296 + break
19297 + ;;
19298 + esac
19299 + done
19300 + ;;
19301 + esac
19303 + exp_sym_flag='-bexport'
19304 + no_entry_flag='-bnoentry'
19305 + fi
19307 + # When large executables or shared objects are built, AIX ld can
19308 + # have problems creating the table of contents. If linking a library
19309 + # or program results in "error TOC overflow" add -mminimal-toc to
19310 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19311 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19313 + archive_cmds_CXX=''
19314 + hardcode_direct_CXX=yes
19315 + hardcode_libdir_separator_CXX=':'
19316 + link_all_deplibs_CXX=yes
19318 + if test "$GXX" = yes; then
19319 + case $host_os in aix4.[012]|aix4.[012].*)
19320 + # We only want to do this on AIX 4.2 and lower, the check
19321 + # below for broken collect2 doesn't work under 4.3+
19322 + collect2name=`${CC} -print-prog-name=collect2`
19323 + if test -f "$collect2name" && \
19324 + strings "$collect2name" | grep resolve_lib_name >/dev/null
19325 + then
19326 + # We have reworked collect2
19327 + hardcode_direct_CXX=yes
19328 + else
19329 + # We have old collect2
19330 + hardcode_direct_CXX=unsupported
19331 + # It fails to find uninstalled libraries when the uninstalled
19332 + # path is not listed in the libpath. Setting hardcode_minus_L
19333 + # to unsupported forces relinking
19334 + hardcode_minus_L_CXX=yes
19335 + hardcode_libdir_flag_spec_CXX='-L$libdir'
19336 + hardcode_libdir_separator_CXX=
19337 + fi
19338 + ;;
19339 + esac
19340 + shared_flag='-shared'
19341 + if test "$aix_use_runtimelinking" = yes; then
19342 + shared_flag="$shared_flag "'${wl}-G'
19343 + fi
19344 + else
19345 + # not using gcc
19346 + if test "$host_cpu" = ia64; then
19347 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19348 + # chokes on -Wl,-G. The following line is correct:
19349 + shared_flag='-G'
19350 + else
19351 + if test "$aix_use_runtimelinking" = yes; then
19352 + shared_flag='${wl}-G'
19353 + else
19354 + shared_flag='${wl}-bM:SRE'
19355 + fi
19356 + fi
19357 + fi
19359 + # It seems that -bexpall does not export symbols beginning with
19360 + # underscore (_), so it is better to generate a list of symbols to export.
19361 + always_export_symbols_CXX=yes
19362 + if test "$aix_use_runtimelinking" = yes; then
19363 + # Warning - without using the other runtime loading flags (-brtl),
19364 + # -berok will link without error, but may produce a broken library.
19365 + allow_undefined_flag_CXX='-berok'
19366 + # Determine the default libpath from the value encoded in an empty executable.
19367 + cat >conftest.$ac_ext <<_ACEOF
19368 +/* confdefs.h. */
19369 +_ACEOF
19370 +cat confdefs.h >>conftest.$ac_ext
19371 +cat >>conftest.$ac_ext <<_ACEOF
19372 +/* end confdefs.h. */
19374 +int
19375 +main ()
19379 + return 0;
19381 +_ACEOF
19382 +rm -f conftest.$ac_objext conftest$ac_exeext
19383 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19384 + (eval $ac_link) 2>conftest.er1
19385 + ac_status=$?
19386 + grep -v '^ *+' conftest.er1 >conftest.err
19387 + rm -f conftest.er1
19388 + cat conftest.err >&5
19389 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 + (exit $ac_status); } &&
19391 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19392 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19393 + (eval $ac_try) 2>&5
19394 + ac_status=$?
19395 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 + (exit $ac_status); }; } &&
19397 + { ac_try='test -s conftest$ac_exeext'
19398 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19399 + (eval $ac_try) 2>&5
19400 + ac_status=$?
19401 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 + (exit $ac_status); }; }; then
19404 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19405 +}'`
19406 +# Check for a 64-bit object if we didn't find anything.
19407 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19408 +}'`; fi
19409 +else
19410 + echo "$as_me: failed program was:" >&5
19411 +sed 's/^/| /' conftest.$ac_ext >&5
19414 +rm -f conftest.err conftest.$ac_objext \
19415 + conftest$ac_exeext conftest.$ac_ext
19416 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19418 + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19420 + archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19421 + else
19422 + if test "$host_cpu" = ia64; then
19423 + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19424 + allow_undefined_flag_CXX="-z nodefs"
19425 + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
19426 + else
19427 + # Determine the default libpath from the value encoded in an empty executable.
19428 + cat >conftest.$ac_ext <<_ACEOF
19429 +/* confdefs.h. */
19430 +_ACEOF
19431 +cat confdefs.h >>conftest.$ac_ext
19432 +cat >>conftest.$ac_ext <<_ACEOF
19433 +/* end confdefs.h. */
19435 +int
19436 +main ()
19440 + return 0;
19442 +_ACEOF
19443 +rm -f conftest.$ac_objext conftest$ac_exeext
19444 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19445 + (eval $ac_link) 2>conftest.er1
19446 + ac_status=$?
19447 + grep -v '^ *+' conftest.er1 >conftest.err
19448 + rm -f conftest.er1
19449 + cat conftest.err >&5
19450 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 + (exit $ac_status); } &&
19452 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19453 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454 + (eval $ac_try) 2>&5
19455 + ac_status=$?
19456 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 + (exit $ac_status); }; } &&
19458 + { ac_try='test -s conftest$ac_exeext'
19459 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19460 + (eval $ac_try) 2>&5
19461 + ac_status=$?
19462 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 + (exit $ac_status); }; }; then
19465 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19466 +}'`
19467 +# Check for a 64-bit object if we didn't find anything.
19468 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19469 +}'`; fi
19470 +else
19471 + echo "$as_me: failed program was:" >&5
19472 +sed 's/^/| /' conftest.$ac_ext >&5
19475 +rm -f conftest.err conftest.$ac_objext \
19476 + conftest$ac_exeext conftest.$ac_ext
19477 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19479 + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19480 + # Warning - without using the other run time loading flags,
19481 + # -berok will link without error, but may produce a broken library.
19482 + no_undefined_flag_CXX=' ${wl}-bernotok'
19483 + allow_undefined_flag_CXX=' ${wl}-berok'
19484 + # Exported symbols can be pulled into shared objects from archives
19485 + whole_archive_flag_spec_CXX='$convenience'
19486 + archive_cmds_need_lc_CXX=yes
19487 + # This is similar to how AIX traditionally builds its shared libraries.
19488 + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19489 + fi
19490 + fi
19491 + ;;
19493 + beos*)
19494 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19495 + allow_undefined_flag_CXX=unsupported
19496 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19497 + # support --undefined. This deserves some investigation. FIXME
19498 + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19499 + else
19500 + ld_shlibs_CXX=no
19501 + fi
19502 + ;;
19504 + chorus*)
19505 + case $cc_basename in
19506 + *)
19507 + # FIXME: insert proper C++ library support
19508 + ld_shlibs_CXX=no
19509 + ;;
19510 + esac
19511 + ;;
19513 + cygwin* | mingw* | pw32*)
19514 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19515 + # as there is no search path for DLLs.
19516 + hardcode_libdir_flag_spec_CXX='-L$libdir'
19517 + allow_undefined_flag_CXX=unsupported
19518 + always_export_symbols_CXX=no
19519 + enable_shared_with_static_runtimes_CXX=yes
19521 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19522 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19523 + # If the export-symbols file already is a .def file (1st line
19524 + # is EXPORTS), use it as is; otherwise, prepend...
19525 + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19526 + cp $export_symbols $output_objdir/$soname.def;
19527 + else
19528 + echo EXPORTS > $output_objdir/$soname.def;
19529 + cat $export_symbols >> $output_objdir/$soname.def;
19530 + fi~
19531 + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19532 + else
19533 + ld_shlibs_CXX=no
19534 + fi
19535 + ;;
19536 + darwin* | rhapsody*)
19537 + case $host_os in
19538 + rhapsody* | darwin1.[012])
19539 + allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19540 + ;;
19541 + *) # Darwin 1.3 on
19542 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19543 + allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19544 + else
19545 + case ${MACOSX_DEPLOYMENT_TARGET} in
19546 + 10.[012])
19547 + allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19548 + ;;
19549 + 10.*)
19550 + allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19551 + ;;
19552 + esac
19553 + fi
19554 + ;;
19555 + esac
19556 + archive_cmds_need_lc_CXX=no
19557 + hardcode_direct_CXX=no
19558 + hardcode_automatic_CXX=yes
19559 + hardcode_shlibpath_var_CXX=unsupported
19560 + whole_archive_flag_spec_CXX=''
19561 + link_all_deplibs_CXX=yes
19563 + if test "$GXX" = yes ; then
19564 + lt_int_apple_cc_single_mod=no
19565 + output_verbose_link_cmd='echo'
19566 + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19567 + lt_int_apple_cc_single_mod=yes
19568 + fi
19569 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19570 + archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19571 + else
19572 + archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19573 + fi
19574 + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19575 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19576 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19577 + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19578 + else
19579 + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19580 + fi
19581 + module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19582 + else
19583 + case $cc_basename in
19584 + xlc*)
19585 + output_verbose_link_cmd='echo'
19586 + archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19587 + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19588 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19589 + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19590 + module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19591 + ;;
19592 + *)
19593 + ld_shlibs_CXX=no
19594 + ;;
19595 + esac
19596 + fi
19597 + ;;
19599 + dgux*)
19600 + case $cc_basename in
19601 + ec++*)
19602 + # FIXME: insert proper C++ library support
19603 + ld_shlibs_CXX=no
19604 + ;;
19605 + ghcx*)
19606 + # Green Hills C++ Compiler
19607 + # FIXME: insert proper C++ library support
19608 + ld_shlibs_CXX=no
19609 + ;;
19610 + *)
19611 + # FIXME: insert proper C++ library support
19612 + ld_shlibs_CXX=no
19613 + ;;
19614 + esac
19615 + ;;
19616 + freebsd[12]*)
19617 + # C++ shared libraries reported to be fairly broken before switch to ELF
19618 + ld_shlibs_CXX=no
19619 + ;;
19620 + freebsd-elf*)
19621 + archive_cmds_need_lc_CXX=no
19622 + ;;
19623 + freebsd* | kfreebsd*-gnu | dragonfly*)
19624 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19625 + # conventions
19626 + ld_shlibs_CXX=yes
19627 + ;;
19628 + gnu*)
19629 + ;;
19630 + hpux9*)
19631 + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19632 + hardcode_libdir_separator_CXX=:
19633 + export_dynamic_flag_spec_CXX='${wl}-E'
19634 + hardcode_direct_CXX=yes
19635 + hardcode_minus_L_CXX=yes # Not in the search PATH,
19636 + # but as the default
19637 + # location of the library.
19639 + case $cc_basename in
19640 + CC*)
19641 + # FIXME: insert proper C++ library support
19642 + ld_shlibs_CXX=no
19643 + ;;
19644 + aCC*)
19645 + archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19646 + # Commands to make compiler produce verbose output that lists
19647 + # what "hidden" libraries, object files and flags are used when
19648 + # linking a shared library.
19650 + # There doesn't appear to be a way to prevent this compiler from
19651 + # explicitly linking system object files so we need to strip them
19652 + # from the output so that they don't get included in the library
19653 + # dependencies.
19654 + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19655 + ;;
19656 + *)
19657 + if test "$GXX" = yes; then
19658 + archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19659 + else
19660 + # FIXME: insert proper C++ library support
19661 + ld_shlibs_CXX=no
19662 + fi
19663 + ;;
19664 + esac
19665 + ;;
19666 + hpux10*|hpux11*)
19667 + if test $with_gnu_ld = no; then
19668 + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19669 + hardcode_libdir_separator_CXX=:
19671 + case $host_cpu in
19672 + hppa*64*|ia64*)
19673 + hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19674 + ;;
19675 + *)
19676 + export_dynamic_flag_spec_CXX='${wl}-E'
19677 + ;;
19678 + esac
19679 + fi
19680 + case $host_cpu in
19681 + hppa*64*|ia64*)
19682 + hardcode_direct_CXX=no
19683 + hardcode_shlibpath_var_CXX=no
19684 + ;;
19685 + *)
19686 + hardcode_direct_CXX=yes
19687 + hardcode_minus_L_CXX=yes # Not in the search PATH,
19688 + # but as the default
19689 + # location of the library.
19690 + ;;
19691 + esac
19693 + case $cc_basename in
19694 + CC*)
19695 + # FIXME: insert proper C++ library support
19696 + ld_shlibs_CXX=no
19697 + ;;
19698 + aCC*)
19699 + case $host_cpu in
19700 + hppa*64*)
19701 + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19702 + ;;
19703 + ia64*)
19704 + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19705 + ;;
19706 + *)
19707 + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19708 + ;;
19709 + esac
19710 + # Commands to make compiler produce verbose output that lists
19711 + # what "hidden" libraries, object files and flags are used when
19712 + # linking a shared library.
19714 + # There doesn't appear to be a way to prevent this compiler from
19715 + # explicitly linking system object files so we need to strip them
19716 + # from the output so that they don't get included in the library
19717 + # dependencies.
19718 + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19719 + ;;
19720 + *)
19721 + if test "$GXX" = yes; then
19722 + if test $with_gnu_ld = no; then
19723 + case $host_cpu in
19724 + hppa*64*)
19725 + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19726 + ;;
19727 + ia64*)
19728 + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19729 + ;;
19730 + *)
19731 + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19732 + ;;
19733 + esac
19734 + fi
19735 + else
19736 + # FIXME: insert proper C++ library support
19737 + ld_shlibs_CXX=no
19738 + fi
19739 + ;;
19740 + esac
19741 + ;;
19742 + interix3*)
19743 + hardcode_direct_CXX=no
19744 + hardcode_shlibpath_var_CXX=no
19745 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19746 + export_dynamic_flag_spec_CXX='${wl}-E'
19747 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19748 + # Instead, shared libraries are loaded at an image base (0x10000000 by
19749 + # default) and relocated if they conflict, which is a slow very memory
19750 + # consuming and fragmenting process. To avoid this, we pick a random,
19751 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19752 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19753 + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19754 + archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19755 + ;;
19756 + irix5* | irix6*)
19757 + case $cc_basename in
19758 + CC*)
19759 + # SGI C++
19760 + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19762 + # Archives containing C++ object files must be created using
19763 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19764 + # necessary to make sure instantiated templates are included
19765 + # in the archive.
19766 + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19767 + ;;
19768 + *)
19769 + if test "$GXX" = yes; then
19770 + if test "$with_gnu_ld" = no; then
19771 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
19772 + else
19773 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
19774 + fi
19775 + fi
19776 + link_all_deplibs_CXX=yes
19777 + ;;
19778 + esac
19779 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19780 + hardcode_libdir_separator_CXX=:
19781 + ;;
19782 + linux*)
19783 + case $cc_basename in
19784 + KCC*)
19785 + # Kuck and Associates, Inc. (KAI) C++ Compiler
19787 + # KCC will only create a shared library if the output file
19788 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
19789 + # to its proper name (with version) after linking.
19790 + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19791 + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
19792 + # Commands to make compiler produce verbose output that lists
19793 + # what "hidden" libraries, object files and flags are used when
19794 + # linking a shared library.
19796 + # There doesn't appear to be a way to prevent this compiler from
19797 + # explicitly linking system object files so we need to strip them
19798 + # from the output so that they don't get included in the library
19799 + # dependencies.
19800 + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19802 + hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19803 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19805 + # Archives containing C++ object files must be created using
19806 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19807 + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19808 + ;;
19809 + icpc*)
19810 + # Intel C++
19811 + with_gnu_ld=yes
19812 + # version 8.0 and above of icpc choke on multiply defined symbols
19813 + # if we add $predep_objects and $postdep_objects, however 7.1 and
19814 + # earlier do not add the objects themselves.
19815 + case `$CC -V 2>&1` in
19816 + *"Version 7."*)
19817 + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19818 + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19819 + ;;
19820 + *) # Version 8.0 or newer
19821 + tmp_idyn=
19822 + case $host_cpu in
19823 + ia64*) tmp_idyn=' -i_dynamic';;
19824 + esac
19825 + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19826 + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19827 + ;;
19828 + esac
19829 + archive_cmds_need_lc_CXX=no
19830 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19831 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19832 + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19833 + ;;
19834 + pgCC*)
19835 + # Portland Group C++ compiler
19836 + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19837 + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19839 + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19840 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19841 + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19842 + ;;
19843 + cxx*)
19844 + # Compaq C++
19845 + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19846 + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
19848 + runpath_var=LD_RUN_PATH
19849 + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19850 + hardcode_libdir_separator_CXX=:
19852 + # Commands to make compiler produce verbose output that lists
19853 + # what "hidden" libraries, object files and flags are used when
19854 + # linking a shared library.
19856 + # There doesn't appear to be a way to prevent this compiler from
19857 + # explicitly linking system object files so we need to strip them
19858 + # from the output so that they don't get included in the library
19859 + # dependencies.
19860 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19861 + ;;
19862 + esac
19863 + ;;
19864 + lynxos*)
19865 + # FIXME: insert proper C++ library support
19866 + ld_shlibs_CXX=no
19867 + ;;
19868 + m88k*)
19869 + # FIXME: insert proper C++ library support
19870 + ld_shlibs_CXX=no
19871 + ;;
19872 + mvs*)
19873 + case $cc_basename in
19874 + cxx*)
19875 + # FIXME: insert proper C++ library support
19876 + ld_shlibs_CXX=no
19877 + ;;
19878 + *)
19879 + # FIXME: insert proper C++ library support
19880 + ld_shlibs_CXX=no
19881 + ;;
19882 + esac
19883 + ;;
19884 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
19885 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19886 + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19887 + wlarc=
19888 + hardcode_libdir_flag_spec_CXX='-R$libdir'
19889 + hardcode_direct_CXX=yes
19890 + hardcode_shlibpath_var_CXX=no
19891 + fi
19892 + # Workaround some broken pre-1.5 toolchains
19893 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19894 + ;;
19895 + openbsd2*)
19896 + # C++ shared libraries are fairly broken
19897 + ld_shlibs_CXX=no
19898 + ;;
19899 + openbsd*)
19900 + hardcode_direct_CXX=yes
19901 + hardcode_shlibpath_var_CXX=no
19902 + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19903 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19904 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19905 + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19906 + export_dynamic_flag_spec_CXX='${wl}-E'
19907 + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19908 + fi
19909 + output_verbose_link_cmd='echo'
19910 + ;;
19911 + osf3*)
19912 + case $cc_basename in
19913 + KCC*)
19914 + # Kuck and Associates, Inc. (KAI) C++ Compiler
19916 + # KCC will only create a shared library if the output file
19917 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
19918 + # to its proper name (with version) after linking.
19919 + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19921 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19922 + hardcode_libdir_separator_CXX=:
19924 + # Archives containing C++ object files must be created using
19925 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19926 + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19928 + ;;
19929 + RCC*)
19930 + # Rational C++ 2.4.1
19931 + # FIXME: insert proper C++ library support
19932 + ld_shlibs_CXX=no
19933 + ;;
19934 + cxx*)
19935 + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19936 + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19938 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19939 + hardcode_libdir_separator_CXX=:
19941 + # Commands to make compiler produce verbose output that lists
19942 + # what "hidden" libraries, object files and flags are used when
19943 + # linking a shared library.
19945 + # There doesn't appear to be a way to prevent this compiler from
19946 + # explicitly linking system object files so we need to strip them
19947 + # from the output so that they don't get included in the library
19948 + # dependencies.
19949 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19950 + ;;
19951 + *)
19952 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19953 + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19954 + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
19956 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19957 + hardcode_libdir_separator_CXX=:
19959 + # Commands to make compiler produce verbose output that lists
19960 + # what "hidden" libraries, object files and flags are used when
19961 + # linking a shared library.
19962 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19964 + else
19965 + # FIXME: insert proper C++ library support
19966 + ld_shlibs_CXX=no
19967 + fi
19968 + ;;
19969 + esac
19970 + ;;
19971 + osf4* | osf5*)
19972 + case $cc_basename in
19973 + KCC*)
19974 + # Kuck and Associates, Inc. (KAI) C++ Compiler
19976 + # KCC will only create a shared library if the output file
19977 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
19978 + # to its proper name (with version) after linking.
19979 + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19981 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19982 + hardcode_libdir_separator_CXX=:
19984 + # Archives containing C++ object files must be created using
19985 + # the KAI C++ compiler.
19986 + old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19987 + ;;
19988 + RCC*)
19989 + # Rational C++ 2.4.1
19990 + # FIXME: insert proper C++ library support
19991 + ld_shlibs_CXX=no
19992 + ;;
19993 + cxx*)
19994 + allow_undefined_flag_CXX=' -expect_unresolved \*'
19995 + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19996 + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19997 + echo "-hidden">> $lib.exp~
19998 + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
19999 + $rm $lib.exp'
20001 + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20002 + hardcode_libdir_separator_CXX=:
20004 + # Commands to make compiler produce verbose output that lists
20005 + # what "hidden" libraries, object files and flags are used when
20006 + # linking a shared library.
20008 + # There doesn't appear to be a way to prevent this compiler from
20009 + # explicitly linking system object files so we need to strip them
20010 + # from the output so that they don't get included in the library
20011 + # dependencies.
20012 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
20013 + ;;
20014 + *)
20015 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20016 + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20017 + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
20019 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20020 + hardcode_libdir_separator_CXX=:
20022 + # Commands to make compiler produce verbose output that lists
20023 + # what "hidden" libraries, object files and flags are used when
20024 + # linking a shared library.
20025 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
20027 + else
20028 + # FIXME: insert proper C++ library support
20029 + ld_shlibs_CXX=no
20030 + fi
20031 + ;;
20032 + esac
20033 + ;;
20034 + psos*)
20035 + # FIXME: insert proper C++ library support
20036 + ld_shlibs_CXX=no
20037 + ;;
20038 + sunos4*)
20039 + case $cc_basename in
20040 + CC*)
20041 + # Sun C++ 4.x
20042 + # FIXME: insert proper C++ library support
20043 + ld_shlibs_CXX=no
20044 + ;;
20045 + lcc*)
20046 + # Lucid
20047 + # FIXME: insert proper C++ library support
20048 + ld_shlibs_CXX=no
20049 + ;;
20050 + *)
20051 + # FIXME: insert proper C++ library support
20052 + ld_shlibs_CXX=no
20053 + ;;
20054 + esac
20055 + ;;
20056 + solaris*)
20057 + case $cc_basename in
20058 + CC*)
20059 + # Sun C++ 4.2, 5.x and Centerline C++
20060 + archive_cmds_need_lc_CXX=yes
20061 + no_undefined_flag_CXX=' -zdefs'
20062 + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20063 + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20064 + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
20066 + hardcode_libdir_flag_spec_CXX='-R$libdir'
20067 + hardcode_shlibpath_var_CXX=no
20068 + case $host_os in
20069 + solaris2.[0-5] | solaris2.[0-5].*) ;;
20070 + *)
20071 + # The C++ compiler is used as linker so we must use $wl
20072 + # flag to pass the commands to the underlying system
20073 + # linker. We must also pass each convience library through
20074 + # to the system linker between allextract/defaultextract.
20075 + # The C++ compiler will combine linker options so we
20076 + # cannot just pass the convience library names through
20077 + # without $wl.
20078 + # Supported since Solaris 2.6 (maybe 2.5.1?)
20079 + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
20080 + ;;
20081 + esac
20082 + link_all_deplibs_CXX=yes
20084 + output_verbose_link_cmd='echo'
20086 + # Archives containing C++ object files must be created using
20087 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
20088 + # necessary to make sure instantiated templates are included
20089 + # in the archive.
20090 + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20091 + ;;
20092 + gcx*)
20093 + # Green Hills C++ Compiler
20094 + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20096 + # The C++ compiler must be used to create the archive.
20097 + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20098 + ;;
20099 + *)
20100 + # GNU C++ compiler with Solaris linker
20101 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20102 + no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20103 + if $CC --version | grep -v '^2\.7' > /dev/null; then
20104 + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20105 + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20106 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
20108 + # Commands to make compiler produce verbose output that lists
20109 + # what "hidden" libraries, object files and flags are used when
20110 + # linking a shared library.
20111 + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
20112 + else
20113 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
20114 + # platform.
20115 + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20116 + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20117 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
20119 + # Commands to make compiler produce verbose output that lists
20120 + # what "hidden" libraries, object files and flags are used when
20121 + # linking a shared library.
20122 + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
20123 + fi
20125 + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20126 + fi
20127 + ;;
20128 + esac
20129 + ;;
20130 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20131 + no_undefined_flag_CXX='${wl}-z,text'
20132 + archive_cmds_need_lc_CXX=no
20133 + hardcode_shlibpath_var_CXX=no
20134 + runpath_var='LD_RUN_PATH'
20136 + case $cc_basename in
20137 + CC*)
20138 + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20139 + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20140 + ;;
20141 + *)
20142 + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20143 + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20144 + ;;
20145 + esac
20146 + ;;
20147 + sysv5* | sco3.2v5* | sco5v6*)
20148 + # Note: We can NOT use -z defs as we might desire, because we do not
20149 + # link with -lc, and that would cause any symbols used from libc to
20150 + # always be unresolved, which means just about no library would
20151 + # ever link correctly. If we're not using GNU ld we use -z text
20152 + # though, which does catch some bad symbols but isn't as heavy-handed
20153 + # as -z defs.
20154 + # For security reasons, it is highly recommended that you always
20155 + # use absolute paths for naming shared libraries, and exclude the
20156 + # DT_RUNPATH tag from executables and libraries. But doing so
20157 + # requires that you compile everything twice, which is a pain.
20158 + # So that behaviour is only enabled if SCOABSPATH is set to a
20159 + # non-empty value in the environment. Most likely only useful for
20160 + # creating official distributions of packages.
20161 + # This is a hack until libtool officially supports absolute path
20162 + # names for shared libraries.
20163 + no_undefined_flag_CXX='${wl}-z,text'
20164 + allow_undefined_flag_CXX='${wl}-z,nodefs'
20165 + archive_cmds_need_lc_CXX=no
20166 + hardcode_shlibpath_var_CXX=no
20167 + hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
20168 + hardcode_libdir_separator_CXX=':'
20169 + link_all_deplibs_CXX=yes
20170 + export_dynamic_flag_spec_CXX='${wl}-Bexport'
20171 + runpath_var='LD_RUN_PATH'
20173 + case $cc_basename in
20174 + CC*)
20175 + archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20176 + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20177 + ;;
20178 + *)
20179 + archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20180 + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20181 + ;;
20182 + esac
20183 + ;;
20184 + tandem*)
20185 + case $cc_basename in
20186 + NCC*)
20187 + # NonStop-UX NCC 3.20
20188 + # FIXME: insert proper C++ library support
20189 + ld_shlibs_CXX=no
20190 + ;;
20191 + *)
20192 + # FIXME: insert proper C++ library support
20193 + ld_shlibs_CXX=no
20194 + ;;
20195 + esac
20196 + ;;
20197 + vxworks*)
20198 + # FIXME: insert proper C++ library support
20199 + ld_shlibs_CXX=no
20200 + ;;
20201 + *)
20202 + # FIXME: insert proper C++ library support
20203 + ld_shlibs_CXX=no
20204 + ;;
20205 +esac
20206 +echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20207 +echo "${ECHO_T}$ld_shlibs_CXX" >&6
20208 +test "$ld_shlibs_CXX" = no && can_build_shared=no
20210 +GCC_CXX="$GXX"
20211 +LD_CXX="$LD"
20214 +cat > conftest.$ac_ext <<EOF
20215 +class Foo
20217 +public:
20218 + Foo (void) { a = 0; }
20219 +private:
20220 + int a;
20222 +EOF
20224 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20225 + (eval $ac_compile) 2>&5
20226 + ac_status=$?
20227 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 + (exit $ac_status); }; then
20229 + # Parse the compiler output and extract the necessary
20230 + # objects, libraries and library flags.
20232 + # Sentinel used to keep track of whether or not we are before
20233 + # the conftest object file.
20234 + pre_test_object_deps_done=no
20236 + # The `*' in the case matches for architectures that use `case' in
20237 + # $output_verbose_cmd can trigger glob expansion during the loop
20238 + # eval without this substitution.
20239 + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
20241 + for p in `eval $output_verbose_link_cmd`; do
20242 + case $p in
20244 + -L* | -R* | -l*)
20245 + # Some compilers place space between "-{L,R}" and the path.
20246 + # Remove the space.
20247 + if test $p = "-L" \
20248 + || test $p = "-R"; then
20249 + prev=$p
20250 + continue
20251 + else
20252 + prev=
20253 + fi
20255 + if test "$pre_test_object_deps_done" = no; then
20256 + case $p in
20257 + -L* | -R*)
20258 + # Internal compiler library paths should come after those
20259 + # provided the user. The postdeps already come after the
20260 + # user supplied libs so there is no need to process them.
20261 + if test -z "$compiler_lib_search_path_CXX"; then
20262 + compiler_lib_search_path_CXX="${prev}${p}"
20263 + else
20264 + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20265 + fi
20266 + ;;
20267 + # The "-l" case would never come before the object being
20268 + # linked, so don't bother handling this case.
20269 + esac
20270 + else
20271 + if test -z "$postdeps_CXX"; then
20272 + postdeps_CXX="${prev}${p}"
20273 + else
20274 + postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20275 + fi
20276 + fi
20277 + ;;
20279 + *.$objext)
20280 + # This assumes that the test object file only shows up
20281 + # once in the compiler output.
20282 + if test "$p" = "conftest.$objext"; then
20283 + pre_test_object_deps_done=yes
20284 + continue
20285 + fi
20287 + if test "$pre_test_object_deps_done" = no; then
20288 + if test -z "$predep_objects_CXX"; then
20289 + predep_objects_CXX="$p"
20290 + else
20291 + predep_objects_CXX="$predep_objects_CXX $p"
20292 + fi
20293 + else
20294 + if test -z "$postdep_objects_CXX"; then
20295 + postdep_objects_CXX="$p"
20296 + else
20297 + postdep_objects_CXX="$postdep_objects_CXX $p"
20298 + fi
20299 + fi
20300 + ;;
20302 + *) ;; # Ignore the rest.
20304 + esac
20305 + done
20307 + # Clean up.
20308 + rm -f a.out a.exe
20309 +else
20310 + echo "libtool.m4: error: problem compiling CXX test program"
20313 +$rm -f confest.$objext
20315 +# PORTME: override above test on systems where it is broken
20316 +case $host_os in
20317 +interix3*)
20318 + # Interix 3.5 installs completely hosed .la files for C++, so rather than
20319 + # hack all around it, let's just trust "g++" to DTRT.
20320 + predep_objects_CXX=
20321 + postdep_objects_CXX=
20322 + postdeps_CXX=
20323 + ;;
20325 +solaris*)
20326 + case $cc_basename in
20327 + CC*)
20328 + # Adding this requires a known-good setup of shared libraries for
20329 + # Sun compiler versions before 5.6, else PIC objects from an old
20330 + # archive will be linked into the output, leading to subtle bugs.
20331 + postdeps_CXX='-lCstd -lCrun'
20332 + ;;
20333 + esac
20334 + ;;
20335 +esac
20338 +case " $postdeps_CXX " in
20339 +*" -lc "*) archive_cmds_need_lc_CXX=no ;;
20340 +esac
20342 +lt_prog_compiler_wl_CXX=
20343 +lt_prog_compiler_pic_CXX=
20344 +lt_prog_compiler_static_CXX=
20346 +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20347 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20349 + # C++ specific cases for pic, static, wl, etc.
20350 + if test "$GXX" = yes; then
20351 + lt_prog_compiler_wl_CXX='-Wl,'
20352 + lt_prog_compiler_static_CXX='-static'
20354 + case $host_os in
20355 + aix*)
20356 + # All AIX code is PIC.
20357 + if test "$host_cpu" = ia64; then
20358 + # AIX 5 now supports IA64 processor
20359 + lt_prog_compiler_static_CXX='-Bstatic'
20360 + fi
20361 + ;;
20362 + amigaos*)
20363 + # FIXME: we need at least 68020 code to build shared libraries, but
20364 + # adding the `-m68020' flag to GCC prevents building anything better,
20365 + # like `-m68040'.
20366 + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20367 + ;;
20368 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20369 + # PIC is the default for these OSes.
20370 + ;;
20371 + mingw* | os2* | pw32*)
20372 + # This hack is so that the source file can tell whether it is being
20373 + # built for inclusion in a dll (and should export symbols for example).
20374 + lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20375 + ;;
20376 + darwin* | rhapsody*)
20377 + # PIC is the default on this platform
20378 + # Common symbols not allowed in MH_DYLIB files
20379 + lt_prog_compiler_pic_CXX='-fno-common'
20380 + ;;
20381 + *djgpp*)
20382 + # DJGPP does not support shared libraries at all
20383 + lt_prog_compiler_pic_CXX=
20384 + ;;
20385 + interix3*)
20386 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20387 + # Instead, we relocate shared libraries at runtime.
20388 + ;;
20389 + sysv4*MP*)
20390 + if test -d /usr/nec; then
20391 + lt_prog_compiler_pic_CXX=-Kconform_pic
20392 + fi
20393 + ;;
20394 + hpux*)
20395 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20396 + # not for PA HP-UX.
20397 + case $host_cpu in
20398 + hppa*64*|ia64*)
20399 + ;;
20400 + *)
20401 + lt_prog_compiler_pic_CXX='-fPIC'
20402 + ;;
20403 + esac
20404 + ;;
20405 + *)
20406 + lt_prog_compiler_pic_CXX='-fPIC'
20407 + ;;
20408 + esac
20409 + else
20410 + case $host_os in
20411 + aix4* | aix5*)
20412 + # All AIX code is PIC.
20413 + if test "$host_cpu" = ia64; then
20414 + # AIX 5 now supports IA64 processor
20415 + lt_prog_compiler_static_CXX='-Bstatic'
20416 + else
20417 + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20418 + fi
20419 + ;;
20420 + chorus*)
20421 + case $cc_basename in
20422 + cxch68*)
20423 + # Green Hills C++ Compiler
20424 + # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
20425 + ;;
20426 + esac
20427 + ;;
20428 + darwin*)
20429 + # PIC is the default on this platform
20430 + # Common symbols not allowed in MH_DYLIB files
20431 + case $cc_basename in
20432 + xlc*)
20433 + lt_prog_compiler_pic_CXX='-qnocommon'
20434 + lt_prog_compiler_wl_CXX='-Wl,'
20435 + ;;
20436 + esac
20437 + ;;
20438 + dgux*)
20439 + case $cc_basename in
20440 + ec++*)
20441 + lt_prog_compiler_pic_CXX='-KPIC'
20442 + ;;
20443 + ghcx*)
20444 + # Green Hills C++ Compiler
20445 + lt_prog_compiler_pic_CXX='-pic'
20446 + ;;
20447 + *)
20448 + ;;
20449 + esac
20450 + ;;
20451 + freebsd* | kfreebsd*-gnu | dragonfly*)
20452 + # FreeBSD uses GNU C++
20453 + ;;
20454 + hpux9* | hpux10* | hpux11*)
20455 + case $cc_basename in
20456 + CC*)
20457 + lt_prog_compiler_wl_CXX='-Wl,'
20458 + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20459 + if test "$host_cpu" != ia64; then
20460 + lt_prog_compiler_pic_CXX='+Z'
20461 + fi
20462 + ;;
20463 + aCC*)
20464 + lt_prog_compiler_wl_CXX='-Wl,'
20465 + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20466 + case $host_cpu in
20467 + hppa*64*|ia64*)
20468 + # +Z the default
20469 + ;;
20470 + *)
20471 + lt_prog_compiler_pic_CXX='+Z'
20472 + ;;
20473 + esac
20474 + ;;
20475 + *)
20476 + ;;
20477 + esac
20478 + ;;
20479 + interix*)
20480 + # This is c89, which is MS Visual C++ (no shared libs)
20481 + # Anyone wants to do a port?
20482 + ;;
20483 + irix5* | irix6* | nonstopux*)
20484 + case $cc_basename in
20485 + CC*)
20486 + lt_prog_compiler_wl_CXX='-Wl,'
20487 + lt_prog_compiler_static_CXX='-non_shared'
20488 + # CC pic flag -KPIC is the default.
20489 + ;;
20490 + *)
20491 + ;;
20492 + esac
20493 + ;;
20494 + linux*)
20495 + case $cc_basename in
20496 + KCC*)
20497 + # KAI C++ Compiler
20498 + lt_prog_compiler_wl_CXX='--backend -Wl,'
20499 + lt_prog_compiler_pic_CXX='-fPIC'
20500 + ;;
20501 + icpc* | ecpc*)
20502 + # Intel C++
20503 + lt_prog_compiler_wl_CXX='-Wl,'
20504 + lt_prog_compiler_pic_CXX='-KPIC'
20505 + lt_prog_compiler_static_CXX='-static'
20506 + ;;
20507 + pgCC*)
20508 + # Portland Group C++ compiler.
20509 + lt_prog_compiler_wl_CXX='-Wl,'
20510 + lt_prog_compiler_pic_CXX='-fpic'
20511 + lt_prog_compiler_static_CXX='-Bstatic'
20512 + ;;
20513 + cxx*)
20514 + # Compaq C++
20515 + # Make sure the PIC flag is empty. It appears that all Alpha
20516 + # Linux and Compaq Tru64 Unix objects are PIC.
20517 + lt_prog_compiler_pic_CXX=
20518 + lt_prog_compiler_static_CXX='-non_shared'
20519 + ;;
20520 + *)
20521 + ;;
20522 + esac
20523 + ;;
20524 + lynxos*)
20525 + ;;
20526 + m88k*)
20527 + ;;
20528 + mvs*)
20529 + case $cc_basename in
20530 + cxx*)
20531 + lt_prog_compiler_pic_CXX='-W c,exportall'
20532 + ;;
20533 + *)
20534 + ;;
20535 + esac
20536 + ;;
20537 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
20538 + ;;
20539 + osf3* | osf4* | osf5*)
20540 + case $cc_basename in
20541 + KCC*)
20542 + lt_prog_compiler_wl_CXX='--backend -Wl,'
20543 + ;;
20544 + RCC*)
20545 + # Rational C++ 2.4.1
20546 + lt_prog_compiler_pic_CXX='-pic'
20547 + ;;
20548 + cxx*)
20549 + # Digital/Compaq C++
20550 + lt_prog_compiler_wl_CXX='-Wl,'
20551 + # Make sure the PIC flag is empty. It appears that all Alpha
20552 + # Linux and Compaq Tru64 Unix objects are PIC.
20553 + lt_prog_compiler_pic_CXX=
20554 + lt_prog_compiler_static_CXX='-non_shared'
20555 + ;;
20556 + *)
20557 + ;;
20558 + esac
20559 + ;;
20560 + psos*)
20561 + ;;
20562 + solaris*)
20563 + case $cc_basename in
20564 + CC*)
20565 + # Sun C++ 4.2, 5.x and Centerline C++
20566 + lt_prog_compiler_pic_CXX='-KPIC'
20567 + lt_prog_compiler_static_CXX='-Bstatic'
20568 + lt_prog_compiler_wl_CXX='-Qoption ld '
20569 + ;;
20570 + gcx*)
20571 + # Green Hills C++ Compiler
20572 + lt_prog_compiler_pic_CXX='-PIC'
20573 + ;;
20574 + *)
20575 + ;;
20576 + esac
20577 + ;;
20578 + sunos4*)
20579 + case $cc_basename in
20580 + CC*)
20581 + # Sun C++ 4.x
20582 + lt_prog_compiler_pic_CXX='-pic'
20583 + lt_prog_compiler_static_CXX='-Bstatic'
20584 + ;;
20585 + lcc*)
20586 + # Lucid
20587 + lt_prog_compiler_pic_CXX='-pic'
20588 + ;;
20589 + *)
20590 + ;;
20591 + esac
20592 + ;;
20593 + tandem*)
20594 + case $cc_basename in
20595 + NCC*)
20596 + # NonStop-UX NCC 3.20
20597 + lt_prog_compiler_pic_CXX='-KPIC'
20598 + ;;
20599 + *)
20600 + ;;
20601 + esac
20602 + ;;
20603 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20604 + case $cc_basename in
20605 + CC*)
20606 + lt_prog_compiler_wl_CXX='-Wl,'
20607 + lt_prog_compiler_pic_CXX='-KPIC'
20608 + lt_prog_compiler_static_CXX='-Bstatic'
20609 + ;;
20610 + esac
20611 + ;;
20612 + vxworks*)
20613 + ;;
20614 + *)
20615 + lt_prog_compiler_can_build_shared_CXX=no
20616 + ;;
20617 + esac
20618 + fi
20620 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20621 +echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
20624 +# Check to make sure the PIC flag actually works.
20626 +if test -n "$lt_prog_compiler_pic_CXX"; then
20628 +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20629 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
20630 +if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20631 + echo $ECHO_N "(cached) $ECHO_C" >&6
20632 +else
20633 + lt_prog_compiler_pic_works_CXX=no
20634 + ac_outfile=conftest.$ac_objext
20635 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20636 + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20637 + # Insert the option either (1) after the last *FLAGS variable, or
20638 + # (2) before a word containing "conftest.", or (3) at the end.
20639 + # Note that $ac_compile itself does not contain backslashes and begins
20640 + # with a dollar sign (not a hyphen), so the echo should work correctly.
20641 + # The option is referenced via a variable to avoid confusing sed.
20642 + lt_compile=`echo "$ac_compile" | $SED \
20643 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20644 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20645 + -e 's:$: $lt_compiler_flag:'`
20646 + (eval echo "\"\$as_me:11138: $lt_compile\"" >&5)
20647 + (eval "$lt_compile" 2>conftest.err)
20648 + ac_status=$?
20649 + cat conftest.err >&5
20650 + echo "$as_me:11142: \$? = $ac_status" >&5
20651 + if (exit $ac_status) && test -s "$ac_outfile"; then
20652 + # The compiler can only warn and ignore the option if not recognized
20653 + # So say no if there are warnings other than the usual output.
20654 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20655 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20656 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20657 + lt_prog_compiler_pic_works_CXX=yes
20658 + fi
20659 + fi
20660 + $rm conftest*
20663 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20664 +echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
20666 +if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20667 + case $lt_prog_compiler_pic_CXX in
20668 + "" | " "*) ;;
20669 + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20670 + esac
20671 +else
20672 + lt_prog_compiler_pic_CXX=
20673 + lt_prog_compiler_can_build_shared_CXX=no
20677 +case $host_os in
20678 + # For platforms which do not support PIC, -DPIC is meaningless:
20679 + *djgpp*)
20680 + lt_prog_compiler_pic_CXX=
20681 + ;;
20682 + *)
20683 + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20684 + ;;
20685 +esac
20688 +# Check to make sure the static flag actually works.
20690 +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20691 +echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20692 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
20693 +if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20694 + echo $ECHO_N "(cached) $ECHO_C" >&6
20695 +else
20696 + lt_prog_compiler_static_works_CXX=no
20697 + save_LDFLAGS="$LDFLAGS"
20698 + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20699 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
20700 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20701 + # The linker can only warn and ignore the option if not recognized
20702 + # So say no if there are warnings
20703 + if test -s conftest.err; then
20704 + # Append any errors to the config.log.
20705 + cat conftest.err 1>&5
20706 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20707 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20708 + if diff conftest.exp conftest.er2 >/dev/null; then
20709 + lt_prog_compiler_static_works_CXX=yes
20710 + fi
20711 + else
20712 + lt_prog_compiler_static_works_CXX=yes
20713 + fi
20714 + fi
20715 + $rm conftest*
20716 + LDFLAGS="$save_LDFLAGS"
20719 +echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20720 +echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
20722 +if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20724 +else
20725 + lt_prog_compiler_static_CXX=
20729 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20730 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
20731 +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20732 + echo $ECHO_N "(cached) $ECHO_C" >&6
20733 +else
20734 + lt_cv_prog_compiler_c_o_CXX=no
20735 + $rm -r conftest 2>/dev/null
20736 + mkdir conftest
20737 + cd conftest
20738 + mkdir out
20739 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20741 + lt_compiler_flag="-o out/conftest2.$ac_objext"
20742 + # Insert the option either (1) after the last *FLAGS variable, or
20743 + # (2) before a word containing "conftest.", or (3) at the end.
20744 + # Note that $ac_compile itself does not contain backslashes and begins
20745 + # with a dollar sign (not a hyphen), so the echo should work correctly.
20746 + lt_compile=`echo "$ac_compile" | $SED \
20747 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20748 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20749 + -e 's:$: $lt_compiler_flag:'`
20750 + (eval echo "\"\$as_me:11242: $lt_compile\"" >&5)
20751 + (eval "$lt_compile" 2>out/conftest.err)
20752 + ac_status=$?
20753 + cat out/conftest.err >&5
20754 + echo "$as_me:11246: \$? = $ac_status" >&5
20755 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
20756 + then
20757 + # The compiler can only warn and ignore the option if not recognized
20758 + # So say no if there are warnings
20759 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20760 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20761 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20762 + lt_cv_prog_compiler_c_o_CXX=yes
20763 + fi
20764 + fi
20765 + chmod u+w . 2>&5
20766 + $rm conftest*
20767 + # SGI C++ compiler will create directory out/ii_files/ for
20768 + # template instantiation
20769 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20770 + $rm out/* && rmdir out
20771 + cd ..
20772 + rmdir conftest
20773 + $rm conftest*
20776 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20777 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
20780 +hard_links="nottested"
20781 +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20782 + # do not overwrite the value of need_locks provided by the user
20783 + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20784 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
20785 + hard_links=yes
20786 + $rm conftest*
20787 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
20788 + touch conftest.a
20789 + ln conftest.a conftest.b 2>&5 || hard_links=no
20790 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
20791 + echo "$as_me:$LINENO: result: $hard_links" >&5
20792 +echo "${ECHO_T}$hard_links" >&6
20793 + if test "$hard_links" = no; then
20794 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20795 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20796 + need_locks=warn
20797 + fi
20798 +else
20799 + need_locks=no
20802 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20803 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20805 + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20806 + case $host_os in
20807 + aix4* | aix5*)
20808 + # If we're using GNU nm, then we don't want the "-C" option.
20809 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
20810 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20811 + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20812 + else
20813 + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20814 + fi
20815 + ;;
20816 + pw32*)
20817 + export_symbols_cmds_CXX="$ltdll_cmds"
20818 + ;;
20819 + cygwin* | mingw*)
20820 + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20821 + ;;
20822 + kfreebsd*-gnu)
20823 + link_all_deplibs_CXX=no
20824 + ;;
20825 + linux*)
20826 + link_all_deplibs_CXX=no
20827 + ;;
20828 + *)
20829 + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20830 + ;;
20831 + esac
20833 +echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20834 +echo "${ECHO_T}$ld_shlibs_CXX" >&6
20835 +test "$ld_shlibs_CXX" = no && can_build_shared=no
20838 +# Do we need to explicitly link libc?
20840 +case "x$archive_cmds_need_lc_CXX" in
20841 +x|xyes)
20842 + # Assume -lc should be added
20843 + archive_cmds_need_lc_CXX=yes
20845 + if test "$enable_shared" = yes && test "$GCC" = yes; then
20846 + case $archive_cmds_CXX in
20847 + *'~'*)
20848 + # FIXME: we may have to deal with multi-command sequences.
20849 + ;;
20850 + '$CC '*)
20851 + # Test whether the compiler implicitly links with -lc since on some
20852 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
20853 + # to ld, don't add -lc before -lgcc.
20854 + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20855 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20856 + $rm conftest*
20857 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20859 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20860 + (eval $ac_compile) 2>&5
20861 + ac_status=$?
20862 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 + (exit $ac_status); } 2>conftest.err; then
20864 + soname=conftest
20865 + lib=conftest
20866 + libobjs=conftest.$ac_objext
20867 + deplibs=
20868 + wl=$lt_prog_compiler_wl_CXX
20869 + pic_flag=$lt_prog_compiler_pic_CXX
20870 + compiler_flags=-v
20871 + linker_flags=-v
20872 + verstring=
20873 + output_objdir=.
20874 + libname=conftest
20875 + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20876 + allow_undefined_flag_CXX=
20877 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20878 + (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20879 + ac_status=$?
20880 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 + (exit $ac_status); }
20882 + then
20883 + archive_cmds_need_lc_CXX=no
20884 + else
20885 + archive_cmds_need_lc_CXX=yes
20886 + fi
20887 + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20888 + else
20889 + cat conftest.err 1>&5
20890 + fi
20891 + $rm conftest*
20892 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20893 +echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
20894 + ;;
20895 + esac
20896 + fi
20897 + ;;
20898 +esac
20900 +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20901 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20902 +library_names_spec=
20903 +libname_spec='lib$name'
20904 +soname_spec=
20905 +shrext_cmds=".so"
20906 +postinstall_cmds=
20907 +postuninstall_cmds=
20908 +finish_cmds=
20909 +finish_eval=
20910 +shlibpath_var=
20911 +shlibpath_overrides_runpath=unknown
20912 +version_type=none
20913 +dynamic_linker="$host_os ld.so"
20914 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
20915 +if test "$GCC" = yes; then
20916 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20917 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20918 + # if the path contains ";" then we assume it to be the separator
20919 + # otherwise default to the standard path separator (i.e. ":") - it is
20920 + # assumed that no part of a normal pathname contains ";" but that should
20921 + # okay in the real world where ";" in dirpaths is itself problematic.
20922 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20923 + else
20924 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20925 + fi
20926 +else
20927 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20929 +need_lib_prefix=unknown
20930 +hardcode_into_libs=no
20932 +# when you set need_version to no, make sure it does not cause -set_version
20933 +# flags to be left without arguments
20934 +need_version=unknown
20936 +case $host_os in
20937 +aix3*)
20938 + version_type=linux
20939 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20940 + shlibpath_var=LIBPATH
20942 + # AIX 3 has no versioning support, so we append a major version to the name.
20943 + soname_spec='${libname}${release}${shared_ext}$major'
20944 + ;;
20946 +aix4* | aix5*)
20947 + version_type=linux
20948 + need_lib_prefix=no
20949 + need_version=no
20950 + hardcode_into_libs=yes
20951 + if test "$host_cpu" = ia64; then
20952 + # AIX 5 supports IA64
20953 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20954 + shlibpath_var=LD_LIBRARY_PATH
20955 + else
20956 + # With GCC up to 2.95.x, collect2 would create an import file
20957 + # for dependence libraries. The import file would start with
20958 + # the line `#! .'. This would cause the generated library to
20959 + # depend on `.', always an invalid library. This was fixed in
20960 + # development snapshots of GCC prior to 3.0.
20961 + case $host_os in
20962 + aix4 | aix4.[01] | aix4.[01].*)
20963 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20964 + echo ' yes '
20965 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20967 + else
20968 + can_build_shared=no
20969 + fi
20970 + ;;
20971 + esac
20972 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20973 + # soname into executable. Probably we can add versioning support to
20974 + # collect2, so additional links can be useful in future.
20975 + if test "$aix_use_runtimelinking" = yes; then
20976 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20977 + # instead of lib<name>.a to let people know that these are not
20978 + # typical AIX shared libraries.
20979 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20980 + else
20981 + # We preserve .a as extension for shared libraries through AIX4.2
20982 + # and later when we are not doing run time linking.
20983 + library_names_spec='${libname}${release}.a $libname.a'
20984 + soname_spec='${libname}${release}${shared_ext}$major'
20985 + fi
20986 + shlibpath_var=LIBPATH
20987 + fi
20988 + ;;
20990 +amigaos*)
20991 + library_names_spec='$libname.ixlibrary $libname.a'
20992 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
20993 + 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'
20994 + ;;
20996 +beos*)
20997 + library_names_spec='${libname}${shared_ext}'
20998 + dynamic_linker="$host_os ld.so"
20999 + shlibpath_var=LIBRARY_PATH
21000 + ;;
21002 +bsdi[45]*)
21003 + version_type=linux
21004 + need_version=no
21005 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21006 + soname_spec='${libname}${release}${shared_ext}$major'
21007 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21008 + shlibpath_var=LD_LIBRARY_PATH
21009 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21010 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21011 + # the default ld.so.conf also contains /usr/contrib/lib and
21012 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21013 + # libtool to hard-code these into programs
21014 + ;;
21016 +cygwin* | mingw* | pw32*)
21017 + version_type=windows
21018 + shrext_cmds=".dll"
21019 + need_version=no
21020 + need_lib_prefix=no
21022 + case $GCC,$host_os in
21023 + yes,cygwin* | yes,mingw* | yes,pw32*)
21024 + library_names_spec='$libname.dll.a'
21025 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
21026 + postinstall_cmds='base_file=`basename \${file}`~
21027 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21028 + dldir=$destdir/`dirname \$dlpath`~
21029 + test -d \$dldir || mkdir -p \$dldir~
21030 + $install_prog $dir/$dlname \$dldir/$dlname~
21031 + chmod a+x \$dldir/$dlname'
21032 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21033 + dlpath=$dir/\$dldll~
21034 + $rm \$dlpath'
21035 + shlibpath_overrides_runpath=yes
21037 + case $host_os in
21038 + cygwin*)
21039 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21040 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21041 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21042 + ;;
21043 + mingw*)
21044 + # MinGW DLLs use traditional 'lib' prefix
21045 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21046 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21047 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21048 + # It is most probably a Windows format PATH printed by
21049 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
21050 + # path with ; separators, and with drive letters. We can handle the
21051 + # drive letters (cygwin fileutils understands them), so leave them,
21052 + # especially as we might pass files found there to a mingw objdump,
21053 + # which wouldn't understand a cygwinified path. Ahh.
21054 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21055 + else
21056 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21057 + fi
21058 + ;;
21059 + pw32*)
21060 + # pw32 DLLs use 'pw' prefix rather than 'lib'
21061 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21062 + ;;
21063 + esac
21064 + ;;
21066 + *)
21067 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21068 + ;;
21069 + esac
21070 + dynamic_linker='Win32 ld.exe'
21071 + # FIXME: first we should search . and the directory the executable is in
21072 + shlibpath_var=PATH
21073 + ;;
21075 +darwin* | rhapsody*)
21076 + dynamic_linker="$host_os dyld"
21077 + version_type=darwin
21078 + need_lib_prefix=no
21079 + need_version=no
21080 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21081 + soname_spec='${libname}${release}${major}$shared_ext'
21082 + shlibpath_overrides_runpath=yes
21083 + shlibpath_var=DYLD_LIBRARY_PATH
21084 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21085 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21086 + if test "$GCC" = yes; then
21087 + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
21088 + else
21089 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21090 + fi
21091 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21092 + ;;
21094 +dgux*)
21095 + version_type=linux
21096 + need_lib_prefix=no
21097 + need_version=no
21098 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21099 + soname_spec='${libname}${release}${shared_ext}$major'
21100 + shlibpath_var=LD_LIBRARY_PATH
21101 + ;;
21103 +freebsd1*)
21104 + dynamic_linker=no
21105 + ;;
21107 +kfreebsd*-gnu)
21108 + version_type=linux
21109 + need_lib_prefix=no
21110 + need_version=no
21111 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21112 + soname_spec='${libname}${release}${shared_ext}$major'
21113 + shlibpath_var=LD_LIBRARY_PATH
21114 + shlibpath_overrides_runpath=no
21115 + hardcode_into_libs=yes
21116 + dynamic_linker='GNU ld.so'
21117 + ;;
21119 +freebsd* | dragonfly*)
21120 + # DragonFly does not have aout. When/if they implement a new
21121 + # versioning mechanism, adjust this.
21122 + if test -x /usr/bin/objformat; then
21123 + objformat=`/usr/bin/objformat`
21124 + else
21125 + case $host_os in
21126 + freebsd[123]*) objformat=aout ;;
21127 + *) objformat=elf ;;
21128 + esac
21129 + fi
21130 + version_type=freebsd-$objformat
21131 + case $version_type in
21132 + freebsd-elf*)
21133 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21134 + need_version=no
21135 + need_lib_prefix=no
21136 + ;;
21137 + freebsd-*)
21138 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21139 + need_version=yes
21140 + ;;
21141 + esac
21142 + shlibpath_var=LD_LIBRARY_PATH
21143 + case $host_os in
21144 + freebsd2*)
21145 + shlibpath_overrides_runpath=yes
21146 + ;;
21147 + freebsd3.[01]* | freebsdelf3.[01]*)
21148 + shlibpath_overrides_runpath=yes
21149 + hardcode_into_libs=yes
21150 + ;;
21151 + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21152 + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21153 + shlibpath_overrides_runpath=no
21154 + hardcode_into_libs=yes
21155 + ;;
21156 + freebsd*) # from 4.6 on
21157 + shlibpath_overrides_runpath=yes
21158 + hardcode_into_libs=yes
21159 + ;;
21160 + esac
21161 + ;;
21163 +gnu*)
21164 + version_type=linux
21165 + need_lib_prefix=no
21166 + need_version=no
21167 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21168 + soname_spec='${libname}${release}${shared_ext}$major'
21169 + shlibpath_var=LD_LIBRARY_PATH
21170 + hardcode_into_libs=yes
21171 + ;;
21173 +hpux9* | hpux10* | hpux11*)
21174 + # Give a soname corresponding to the major version so that dld.sl refuses to
21175 + # link against other versions.
21176 + version_type=sunos
21177 + need_lib_prefix=no
21178 + need_version=no
21179 + case $host_cpu in
21180 + ia64*)
21181 + shrext_cmds='.so'
21182 + hardcode_into_libs=yes
21183 + dynamic_linker="$host_os dld.so"
21184 + shlibpath_var=LD_LIBRARY_PATH
21185 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21186 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21187 + soname_spec='${libname}${release}${shared_ext}$major'
21188 + if test "X$HPUX_IA64_MODE" = X32; then
21189 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21190 + else
21191 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21192 + fi
21193 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21194 + ;;
21195 + hppa*64*)
21196 + shrext_cmds='.sl'
21197 + hardcode_into_libs=yes
21198 + dynamic_linker="$host_os dld.sl"
21199 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21200 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21201 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21202 + soname_spec='${libname}${release}${shared_ext}$major'
21203 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21204 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21205 + ;;
21206 + *)
21207 + shrext_cmds='.sl'
21208 + dynamic_linker="$host_os dld.sl"
21209 + shlibpath_var=SHLIB_PATH
21210 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21211 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21212 + soname_spec='${libname}${release}${shared_ext}$major'
21213 + ;;
21214 + esac
21215 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
21216 + postinstall_cmds='chmod 555 $lib'
21217 + ;;
21219 +interix3*)
21220 + version_type=linux
21221 + need_lib_prefix=no
21222 + need_version=no
21223 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21224 + soname_spec='${libname}${release}${shared_ext}$major'
21225 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21226 + shlibpath_var=LD_LIBRARY_PATH
21227 + shlibpath_overrides_runpath=no
21228 + hardcode_into_libs=yes
21229 + ;;
21231 +irix5* | irix6* | nonstopux*)
21232 + case $host_os in
21233 + nonstopux*) version_type=nonstopux ;;
21234 + *)
21235 + if test "$lt_cv_prog_gnu_ld" = yes; then
21236 + version_type=linux
21237 + else
21238 + version_type=irix
21239 + fi ;;
21240 + esac
21241 + need_lib_prefix=no
21242 + need_version=no
21243 + soname_spec='${libname}${release}${shared_ext}$major'
21244 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21245 + case $host_os in
21246 + irix5* | nonstopux*)
21247 + libsuff= shlibsuff=
21248 + ;;
21249 + *)
21250 + case $LD in # libtool.m4 will add one of these switches to LD
21251 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21252 + libsuff= shlibsuff= libmagic=32-bit;;
21253 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21254 + libsuff=32 shlibsuff=N32 libmagic=N32;;
21255 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21256 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
21257 + *) libsuff= shlibsuff= libmagic=never-match;;
21258 + esac
21259 + ;;
21260 + esac
21261 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21262 + shlibpath_overrides_runpath=no
21263 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21264 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21265 + hardcode_into_libs=yes
21266 + ;;
21268 +# No shared lib support for Linux oldld, aout, or coff.
21269 +linux*oldld* | linux*aout* | linux*coff*)
21270 + dynamic_linker=no
21271 + ;;
21273 +# This must be Linux ELF.
21274 +linux*)
21275 + version_type=linux
21276 + need_lib_prefix=no
21277 + need_version=no
21278 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21279 + soname_spec='${libname}${release}${shared_ext}$major'
21280 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21281 + shlibpath_var=LD_LIBRARY_PATH
21282 + shlibpath_overrides_runpath=no
21283 + # This implies no fast_install, which is unacceptable.
21284 + # Some rework will be needed to allow for fast_install
21285 + # before this can be enabled.
21286 + hardcode_into_libs=yes
21288 + # Append ld.so.conf contents to the search path
21289 + if test -f /etc/ld.so.conf; then
21290 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
21291 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21292 + fi
21294 + # We used to test for /lib/ld.so.1 and disable shared libraries on
21295 + # powerpc, because MkLinux only supported shared libraries with the
21296 + # GNU dynamic linker. Since this was broken with cross compilers,
21297 + # most powerpc-linux boxes support dynamic linking these days and
21298 + # people can always --disable-shared, the test was removed, and we
21299 + # assume the GNU/Linux dynamic linker is in use.
21300 + dynamic_linker='GNU/Linux ld.so'
21301 + ;;
21303 +netbsdelf*-gnu)
21304 + version_type=linux
21305 + need_lib_prefix=no
21306 + need_version=no
21307 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21308 + soname_spec='${libname}${release}${shared_ext}$major'
21309 + shlibpath_var=LD_LIBRARY_PATH
21310 + shlibpath_overrides_runpath=no
21311 + hardcode_into_libs=yes
21312 + dynamic_linker='NetBSD ld.elf_so'
21313 + ;;
21315 +knetbsd*-gnu)
21316 + version_type=linux
21317 + need_lib_prefix=no
21318 + need_version=no
21319 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21320 + soname_spec='${libname}${release}${shared_ext}$major'
21321 + shlibpath_var=LD_LIBRARY_PATH
21322 + shlibpath_overrides_runpath=no
21323 + hardcode_into_libs=yes
21324 + dynamic_linker='GNU ld.so'
21325 + ;;
21327 +netbsd*)
21328 + version_type=sunos
21329 + need_lib_prefix=no
21330 + need_version=no
21331 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21332 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21333 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21334 + dynamic_linker='NetBSD (a.out) ld.so'
21335 + else
21336 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21337 + soname_spec='${libname}${release}${shared_ext}$major'
21338 + dynamic_linker='NetBSD ld.elf_so'
21339 + fi
21340 + shlibpath_var=LD_LIBRARY_PATH
21341 + shlibpath_overrides_runpath=yes
21342 + hardcode_into_libs=yes
21343 + ;;
21345 +newsos6)
21346 + version_type=linux
21347 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21348 + shlibpath_var=LD_LIBRARY_PATH
21349 + shlibpath_overrides_runpath=yes
21350 + ;;
21352 +nto-qnx*)
21353 + version_type=linux
21354 + need_lib_prefix=no
21355 + need_version=no
21356 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21357 + soname_spec='${libname}${release}${shared_ext}$major'
21358 + shlibpath_var=LD_LIBRARY_PATH
21359 + shlibpath_overrides_runpath=yes
21360 + ;;
21362 +openbsd*)
21363 + version_type=sunos
21364 + sys_lib_dlsearch_path_spec="/usr/lib"
21365 + need_lib_prefix=no
21366 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21367 + case $host_os in
21368 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21369 + *) need_version=no ;;
21370 + esac
21371 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21372 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21373 + shlibpath_var=LD_LIBRARY_PATH
21374 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21375 + case $host_os in
21376 + openbsd2.[89] | openbsd2.[89].*)
21377 + shlibpath_overrides_runpath=no
21378 + ;;
21379 + *)
21380 + shlibpath_overrides_runpath=yes
21381 + ;;
21382 + esac
21383 + else
21384 + shlibpath_overrides_runpath=yes
21385 + fi
21386 + ;;
21388 +os2*)
21389 + libname_spec='$name'
21390 + shrext_cmds=".dll"
21391 + need_lib_prefix=no
21392 + library_names_spec='$libname${shared_ext} $libname.a'
21393 + dynamic_linker='OS/2 ld.exe'
21394 + shlibpath_var=LIBPATH
21395 + ;;
21397 +osf3* | osf4* | osf5*)
21398 + version_type=osf
21399 + need_lib_prefix=no
21400 + need_version=no
21401 + soname_spec='${libname}${release}${shared_ext}$major'
21402 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21403 + shlibpath_var=LD_LIBRARY_PATH
21404 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21405 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21406 + ;;
21408 +solaris*)
21409 + version_type=linux
21410 + need_lib_prefix=no
21411 + need_version=no
21412 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21413 + soname_spec='${libname}${release}${shared_ext}$major'
21414 + shlibpath_var=LD_LIBRARY_PATH
21415 + shlibpath_overrides_runpath=yes
21416 + hardcode_into_libs=yes
21417 + # ldd complains unless libraries are executable
21418 + postinstall_cmds='chmod +x $lib'
21419 + ;;
21421 +sunos4*)
21422 + version_type=sunos
21423 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21424 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21425 + shlibpath_var=LD_LIBRARY_PATH
21426 + shlibpath_overrides_runpath=yes
21427 + if test "$with_gnu_ld" = yes; then
21428 + need_lib_prefix=no
21429 + fi
21430 + need_version=yes
21431 + ;;
21433 +sysv4 | sysv4.3*)
21434 + version_type=linux
21435 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21436 + soname_spec='${libname}${release}${shared_ext}$major'
21437 + shlibpath_var=LD_LIBRARY_PATH
21438 + case $host_vendor in
21439 + sni)
21440 + shlibpath_overrides_runpath=no
21441 + need_lib_prefix=no
21442 + export_dynamic_flag_spec='${wl}-Blargedynsym'
21443 + runpath_var=LD_RUN_PATH
21444 + ;;
21445 + siemens)
21446 + need_lib_prefix=no
21447 + ;;
21448 + motorola)
21449 + need_lib_prefix=no
21450 + need_version=no
21451 + shlibpath_overrides_runpath=no
21452 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21453 + ;;
21454 + esac
21455 + ;;
21457 +sysv4*MP*)
21458 + if test -d /usr/nec ;then
21459 + version_type=linux
21460 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21461 + soname_spec='$libname${shared_ext}.$major'
21462 + shlibpath_var=LD_LIBRARY_PATH
21463 + fi
21464 + ;;
21466 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21467 + version_type=freebsd-elf
21468 + need_lib_prefix=no
21469 + need_version=no
21470 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21471 + soname_spec='${libname}${release}${shared_ext}$major'
21472 + shlibpath_var=LD_LIBRARY_PATH
21473 + hardcode_into_libs=yes
21474 + if test "$with_gnu_ld" = yes; then
21475 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21476 + shlibpath_overrides_runpath=no
21477 + else
21478 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21479 + shlibpath_overrides_runpath=yes
21480 + case $host_os in
21481 + sco3.2v5*)
21482 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21483 + ;;
21484 + esac
21485 + fi
21486 + sys_lib_dlsearch_path_spec='/usr/lib'
21487 + ;;
21489 +uts4*)
21490 + version_type=linux
21491 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21492 + soname_spec='${libname}${release}${shared_ext}$major'
21493 + shlibpath_var=LD_LIBRARY_PATH
21494 + ;;
21497 + dynamic_linker=no
21498 + ;;
21499 +esac
21500 +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21501 +echo "${ECHO_T}$dynamic_linker" >&6
21502 +test "$dynamic_linker" = no && can_build_shared=no
21504 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21505 +if test "$GCC" = yes; then
21506 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21509 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21510 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
21511 +hardcode_action_CXX=
21512 +if test -n "$hardcode_libdir_flag_spec_CXX" || \
21513 + test -n "$runpath_var_CXX" || \
21514 + test "X$hardcode_automatic_CXX" = "Xyes" ; then
21516 + # We can hardcode non-existant directories.
21517 + if test "$hardcode_direct_CXX" != no &&
21518 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
21519 + # have to relink, otherwise we might link with an installed library
21520 + # when we should be linking with a yet-to-be-installed one
21521 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21522 + test "$hardcode_minus_L_CXX" != no; then
21523 + # Linking always hardcodes the temporary library directory.
21524 + hardcode_action_CXX=relink
21525 + else
21526 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
21527 + hardcode_action_CXX=immediate
21528 + fi
21529 +else
21530 + # We cannot hardcode anything, or else we can only hardcode existing
21531 + # directories.
21532 + hardcode_action_CXX=unsupported
21534 +echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21535 +echo "${ECHO_T}$hardcode_action_CXX" >&6
21537 +if test "$hardcode_action_CXX" = relink; then
21538 + # Fast installation is not supported
21539 + enable_fast_install=no
21540 +elif test "$shlibpath_overrides_runpath" = yes ||
21541 + test "$enable_shared" = no; then
21542 + # Fast installation is not necessary
21543 + enable_fast_install=needless
21547 +# The else clause should only fire when bootstrapping the
21548 +# libtool distribution, otherwise you forgot to ship ltmain.sh
21549 +# with your package, and you will get complaints that there are
21550 +# no rules to generate ltmain.sh.
21551 +if test -f "$ltmain"; then
21552 + # See if we are running on zsh, and set the options which allow our commands through
21553 + # without removal of \ escapes.
21554 + if test -n "${ZSH_VERSION+set}" ; then
21555 + setopt NO_GLOB_SUBST
21556 + fi
21557 + # Now quote all the things that may contain metacharacters while being
21558 + # careful not to overquote the AC_SUBSTed values. We take copies of the
21559 + # variables and quote the copies for generation of the libtool script.
21560 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21561 + SED SHELL STRIP \
21562 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21563 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21564 + deplibs_check_method reload_flag reload_cmds need_locks \
21565 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21566 + lt_cv_sys_global_symbol_to_c_name_address \
21567 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21568 + old_postinstall_cmds old_postuninstall_cmds \
21569 + compiler_CXX \
21570 + CC_CXX \
21571 + LD_CXX \
21572 + lt_prog_compiler_wl_CXX \
21573 + lt_prog_compiler_pic_CXX \
21574 + lt_prog_compiler_static_CXX \
21575 + lt_prog_compiler_no_builtin_flag_CXX \
21576 + export_dynamic_flag_spec_CXX \
21577 + thread_safe_flag_spec_CXX \
21578 + whole_archive_flag_spec_CXX \
21579 + enable_shared_with_static_runtimes_CXX \
21580 + old_archive_cmds_CXX \
21581 + old_archive_from_new_cmds_CXX \
21582 + predep_objects_CXX \
21583 + postdep_objects_CXX \
21584 + predeps_CXX \
21585 + postdeps_CXX \
21586 + compiler_lib_search_path_CXX \
21587 + archive_cmds_CXX \
21588 + archive_expsym_cmds_CXX \
21589 + postinstall_cmds_CXX \
21590 + postuninstall_cmds_CXX \
21591 + old_archive_from_expsyms_cmds_CXX \
21592 + allow_undefined_flag_CXX \
21593 + no_undefined_flag_CXX \
21594 + export_symbols_cmds_CXX \
21595 + hardcode_libdir_flag_spec_CXX \
21596 + hardcode_libdir_flag_spec_ld_CXX \
21597 + hardcode_libdir_separator_CXX \
21598 + hardcode_automatic_CXX \
21599 + module_cmds_CXX \
21600 + module_expsym_cmds_CXX \
21601 + lt_cv_prog_compiler_c_o_CXX \
21602 + exclude_expsyms_CXX \
21603 + include_expsyms_CXX; do
21605 + case $var in
21606 + old_archive_cmds_CXX | \
21607 + old_archive_from_new_cmds_CXX | \
21608 + archive_cmds_CXX | \
21609 + archive_expsym_cmds_CXX | \
21610 + module_cmds_CXX | \
21611 + module_expsym_cmds_CXX | \
21612 + old_archive_from_expsyms_cmds_CXX | \
21613 + export_symbols_cmds_CXX | \
21614 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
21615 + postinstall_cmds | postuninstall_cmds | \
21616 + old_postinstall_cmds | old_postuninstall_cmds | \
21617 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21618 + # Double-quote double-evaled strings.
21619 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21620 + ;;
21621 + *)
21622 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21623 + ;;
21624 + esac
21625 + done
21627 + case $lt_echo in
21628 + *'\$0 --fallback-echo"')
21629 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21630 + ;;
21631 + esac
21633 +cfgfile="$ofile"
21635 + cat <<__EOF__ >> "$cfgfile"
21636 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21638 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21640 +# Shell to use when invoking shell scripts.
21641 +SHELL=$lt_SHELL
21643 +# Whether or not to build shared libraries.
21644 +build_libtool_libs=$enable_shared
21646 +# Whether or not to build static libraries.
21647 +build_old_libs=$enable_static
21649 +# Whether or not to add -lc for building shared libraries.
21650 +build_libtool_need_lc=$archive_cmds_need_lc_CXX
21652 +# Whether or not to disallow shared libs when runtime libs are static
21653 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21655 +# Whether or not to optimize for fast installation.
21656 +fast_install=$enable_fast_install
21658 +# The host system.
21659 +host_alias=$host_alias
21660 +host=$host
21661 +host_os=$host_os
21663 +# The build system.
21664 +build_alias=$build_alias
21665 +build=$build
21666 +build_os=$build_os
21668 +# An echo program that does not interpret backslashes.
21669 +echo=$lt_echo
21671 +# The archiver.
21672 +AR=$lt_AR
21673 +AR_FLAGS=$lt_AR_FLAGS
21675 +# A C compiler.
21676 +LTCC=$lt_LTCC
21678 +# LTCC compiler flags.
21679 +LTCFLAGS=$lt_LTCFLAGS
21681 +# A language-specific compiler.
21682 +CC=$lt_compiler_CXX
21684 +# Is the compiler the GNU C compiler?
21685 +with_gcc=$GCC_CXX
21687 +# An ERE matcher.
21688 +EGREP=$lt_EGREP
21690 +# The linker used to build libraries.
21691 +LD=$lt_LD_CXX
21693 +# Whether we need hard or soft links.
21694 +LN_S=$lt_LN_S
21696 +# A BSD-compatible nm program.
21697 +NM=$lt_NM
21699 +# A symbol stripping program
21700 +STRIP=$lt_STRIP
21702 +# Used to examine libraries when file_magic_cmd begins "file"
21703 +MAGIC_CMD=$MAGIC_CMD
21705 +# Used on cygwin: DLL creation program.
21706 +DLLTOOL="$DLLTOOL"
21708 +# Used on cygwin: object dumper.
21709 +OBJDUMP="$OBJDUMP"
21711 +# Used on cygwin: assembler.
21712 +AS="$AS"
21714 +# The name of the directory that contains temporary libtool files.
21715 +objdir=$objdir
21717 +# How to create reloadable object files.
21718 +reload_flag=$lt_reload_flag
21719 +reload_cmds=$lt_reload_cmds
21721 +# How to pass a linker flag through the compiler.
21722 +wl=$lt_lt_prog_compiler_wl_CXX
21724 +# Object file suffix (normally "o").
21725 +objext="$ac_objext"
21727 +# Old archive suffix (normally "a").
21728 +libext="$libext"
21730 +# Shared library suffix (normally ".so").
21731 +shrext_cmds='$shrext_cmds'
21733 +# Executable file suffix (normally "").
21734 +exeext="$exeext"
21736 +# Additional compiler flags for building library objects.
21737 +pic_flag=$lt_lt_prog_compiler_pic_CXX
21738 +pic_mode=$pic_mode
21740 +# What is the maximum length of a command?
21741 +max_cmd_len=$lt_cv_sys_max_cmd_len
21743 +# Does compiler simultaneously support -c and -o options?
21744 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21746 +# Must we lock files when doing compilation?
21747 +need_locks=$lt_need_locks
21749 +# Do we need the lib prefix for modules?
21750 +need_lib_prefix=$need_lib_prefix
21752 +# Do we need a version for libraries?
21753 +need_version=$need_version
21755 +# Whether dlopen is supported.
21756 +dlopen_support=$enable_dlopen
21758 +# Whether dlopen of programs is supported.
21759 +dlopen_self=$enable_dlopen_self
21761 +# Whether dlopen of statically linked programs is supported.
21762 +dlopen_self_static=$enable_dlopen_self_static
21764 +# Compiler flag to prevent dynamic linking.
21765 +link_static_flag=$lt_lt_prog_compiler_static_CXX
21767 +# Compiler flag to turn off builtin functions.
21768 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21770 +# Compiler flag to allow reflexive dlopens.
21771 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21773 +# Compiler flag to generate shared objects directly from archives.
21774 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21776 +# Compiler flag to generate thread-safe objects.
21777 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21779 +# Library versioning type.
21780 +version_type=$version_type
21782 +# Format of library name prefix.
21783 +libname_spec=$lt_libname_spec
21785 +# List of archive names. First name is the real one, the rest are links.
21786 +# The last name is the one that the linker finds with -lNAME.
21787 +library_names_spec=$lt_library_names_spec
21789 +# The coded name of the library, if different from the real name.
21790 +soname_spec=$lt_soname_spec
21792 +# Commands used to build and install an old-style archive.
21793 +RANLIB=$lt_RANLIB
21794 +old_archive_cmds=$lt_old_archive_cmds_CXX
21795 +old_postinstall_cmds=$lt_old_postinstall_cmds
21796 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
21798 +# Create an old-style archive from a shared archive.
21799 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21801 +# Create a temporary old-style archive to link instead of a shared archive.
21802 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21804 +# Commands used to build and install a shared archive.
21805 +archive_cmds=$lt_archive_cmds_CXX
21806 +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21807 +postinstall_cmds=$lt_postinstall_cmds
21808 +postuninstall_cmds=$lt_postuninstall_cmds
21810 +# Commands used to build a loadable module (assumed same as above if empty)
21811 +module_cmds=$lt_module_cmds_CXX
21812 +module_expsym_cmds=$lt_module_expsym_cmds_CXX
21814 +# Commands to strip libraries.
21815 +old_striplib=$lt_old_striplib
21816 +striplib=$lt_striplib
21818 +# Dependencies to place before the objects being linked to create a
21819 +# shared library.
21820 +predep_objects=$lt_predep_objects_CXX
21822 +# Dependencies to place after the objects being linked to create a
21823 +# shared library.
21824 +postdep_objects=$lt_postdep_objects_CXX
21826 +# Dependencies to place before the objects being linked to create a
21827 +# shared library.
21828 +predeps=$lt_predeps_CXX
21830 +# Dependencies to place after the objects being linked to create a
21831 +# shared library.
21832 +postdeps=$lt_postdeps_CXX
21834 +# The library search path used internally by the compiler when linking
21835 +# a shared library.
21836 +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21838 +# Method to check whether dependent libraries are shared objects.
21839 +deplibs_check_method=$lt_deplibs_check_method
21841 +# Command to use when deplibs_check_method == file_magic.
21842 +file_magic_cmd=$lt_file_magic_cmd
21844 +# Flag that allows shared libraries with undefined symbols to be built.
21845 +allow_undefined_flag=$lt_allow_undefined_flag_CXX
21847 +# Flag that forces no undefined symbols.
21848 +no_undefined_flag=$lt_no_undefined_flag_CXX
21850 +# Commands used to finish a libtool library installation in a directory.
21851 +finish_cmds=$lt_finish_cmds
21853 +# Same as above, but a single script fragment to be evaled but not shown.
21854 +finish_eval=$lt_finish_eval
21856 +# Take the output of nm and produce a listing of raw symbols and C names.
21857 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21859 +# Transform the output of nm in a proper C declaration
21860 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21862 +# Transform the output of nm in a C name address pair
21863 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21865 +# This is the shared library runtime path variable.
21866 +runpath_var=$runpath_var
21868 +# This is the shared library path variable.
21869 +shlibpath_var=$shlibpath_var
21871 +# Is shlibpath searched before the hard-coded library search path?
21872 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21874 +# How to hardcode a shared library path into an executable.
21875 +hardcode_action=$hardcode_action_CXX
21877 +# Whether we should hardcode library paths into libraries.
21878 +hardcode_into_libs=$hardcode_into_libs
21880 +# Flag to hardcode \$libdir into a binary during linking.
21881 +# This must work even if \$libdir does not exist.
21882 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21884 +# If ld is used when linking, flag to hardcode \$libdir into
21885 +# a binary during linking. This must work even if \$libdir does
21886 +# not exist.
21887 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21889 +# Whether we need a single -rpath flag with a separated argument.
21890 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21892 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21893 +# resulting binary.
21894 +hardcode_direct=$hardcode_direct_CXX
21896 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21897 +# resulting binary.
21898 +hardcode_minus_L=$hardcode_minus_L_CXX
21900 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21901 +# the resulting binary.
21902 +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21904 +# Set to yes if building a shared library automatically hardcodes DIR into the library
21905 +# and all subsequent libraries and executables linked against it.
21906 +hardcode_automatic=$hardcode_automatic_CXX
21908 +# Variables whose values should be saved in libtool wrapper scripts and
21909 +# restored at relink time.
21910 +variables_saved_for_relink="$variables_saved_for_relink"
21912 +# Whether libtool must link a program against all its dependency libraries.
21913 +link_all_deplibs=$link_all_deplibs_CXX
21915 +# Compile-time system search path for libraries
21916 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21918 +# Run-time system search path for libraries
21919 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21921 +# Fix the shell variable \$srcfile for the compiler.
21922 +fix_srcfile_path="$fix_srcfile_path_CXX"
21924 +# Set to yes if exported symbols are required.
21925 +always_export_symbols=$always_export_symbols_CXX
21927 +# The commands to list exported symbols.
21928 +export_symbols_cmds=$lt_export_symbols_cmds_CXX
21930 +# The commands to extract the exported symbol list from a shared archive.
21931 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
21933 +# Symbols that should not be listed in the preloaded symbols.
21934 +exclude_expsyms=$lt_exclude_expsyms_CXX
21936 +# Symbols that must always be exported.
21937 +include_expsyms=$lt_include_expsyms_CXX
21939 +# ### END LIBTOOL TAG CONFIG: $tagname
21941 +__EOF__
21944 +else
21945 + # If there is no Makefile yet, we rely on a make rule to execute
21946 + # `config.status --recheck' to rerun these tests and create the
21947 + # libtool script then.
21948 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21949 + if test -f "$ltmain_in"; then
21950 + test -f Makefile && make "$ltmain"
21951 + fi
21955 +ac_ext=c
21956 +ac_cpp='$CPP $CPPFLAGS'
21957 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21958 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21959 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
21961 +CC=$lt_save_CC
21962 +LDCXX=$LD
21963 +LD=$lt_save_LD
21964 +GCC=$lt_save_GCC
21965 +with_gnu_ldcxx=$with_gnu_ld
21966 +with_gnu_ld=$lt_save_with_gnu_ld
21967 +lt_cv_path_LDCXX=$lt_cv_path_LD
21968 +lt_cv_path_LD=$lt_save_path_LD
21969 +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21970 +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21972 + else
21973 + tagname=""
21974 + fi
21975 + ;;
21977 + F77)
21978 + if test -n "$F77" && test "X$F77" != "Xno"; then
21980 +ac_ext=f
21981 +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21982 +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21983 +ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21986 +archive_cmds_need_lc_F77=no
21987 +allow_undefined_flag_F77=
21988 +always_export_symbols_F77=no
21989 +archive_expsym_cmds_F77=
21990 +export_dynamic_flag_spec_F77=
21991 +hardcode_direct_F77=no
21992 +hardcode_libdir_flag_spec_F77=
21993 +hardcode_libdir_flag_spec_ld_F77=
21994 +hardcode_libdir_separator_F77=
21995 +hardcode_minus_L_F77=no
21996 +hardcode_automatic_F77=no
21997 +module_cmds_F77=
21998 +module_expsym_cmds_F77=
21999 +link_all_deplibs_F77=unknown
22000 +old_archive_cmds_F77=$old_archive_cmds
22001 +no_undefined_flag_F77=
22002 +whole_archive_flag_spec_F77=
22003 +enable_shared_with_static_runtimes_F77=no
22005 +# Source file extension for f77 test sources.
22006 +ac_ext=f
22008 +# Object file extension for compiled f77 test sources.
22009 +objext=o
22010 +objext_F77=$objext
22012 +# Code to be used in simple compile tests
22013 +lt_simple_compile_test_code=" subroutine t\n return\n end\n"
22015 +# Code to be used in simple link tests
22016 +lt_simple_link_test_code=" program t\n end\n"
22018 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
22020 +# If no C compiler was specified, use CC.
22021 +LTCC=${LTCC-"$CC"}
22023 +# If no C compiler flags were specified, use CFLAGS.
22024 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22026 +# Allow CC to be a program name with arguments.
22027 +compiler=$CC
22030 +# save warnings/boilerplate of simple test code
22031 +ac_outfile=conftest.$ac_objext
22032 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22033 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22034 +_lt_compiler_boilerplate=`cat conftest.err`
22035 +$rm conftest*
22037 +ac_outfile=conftest.$ac_objext
22038 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
22039 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22040 +_lt_linker_boilerplate=`cat conftest.err`
22041 +$rm conftest*
22044 +# Allow CC to be a program name with arguments.
22045 +lt_save_CC="$CC"
22046 +CC=${F77-"f77"}
22047 +compiler=$CC
22048 +compiler_F77=$CC
22049 +for cc_temp in $compiler""; do
22050 + case $cc_temp in
22051 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22052 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22053 + \-*) ;;
22054 + *) break;;
22055 + esac
22056 +done
22057 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22060 +echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
22061 +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
22062 +echo "$as_me:$LINENO: result: $can_build_shared" >&5
22063 +echo "${ECHO_T}$can_build_shared" >&6
22065 +echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
22066 +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
22067 +test "$can_build_shared" = "no" && enable_shared=no
22069 +# On AIX, shared libraries and static libraries use the same namespace, and
22070 +# are all built from PIC.
22071 +case $host_os in
22072 +aix3*)
22073 + test "$enable_shared" = yes && enable_static=no
22074 + if test -n "$RANLIB"; then
22075 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
22076 + postinstall_cmds='$RANLIB $lib'
22077 + fi
22078 + ;;
22079 +aix4* | aix5*)
22080 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
22081 + test "$enable_shared" = yes && enable_static=no
22082 + fi
22083 + ;;
22084 +esac
22085 +echo "$as_me:$LINENO: result: $enable_shared" >&5
22086 +echo "${ECHO_T}$enable_shared" >&6
22088 +echo "$as_me:$LINENO: checking whether to build static libraries" >&5
22089 +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
22090 +# Make sure either enable_shared or enable_static is yes.
22091 +test "$enable_shared" = yes || enable_static=yes
22092 +echo "$as_me:$LINENO: result: $enable_static" >&5
22093 +echo "${ECHO_T}$enable_static" >&6
22095 +GCC_F77="$G77"
22096 +LD_F77="$LD"
22098 +lt_prog_compiler_wl_F77=
22099 +lt_prog_compiler_pic_F77=
22100 +lt_prog_compiler_static_F77=
22102 +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22103 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
22105 + if test "$GCC" = yes; then
22106 + lt_prog_compiler_wl_F77='-Wl,'
22107 + lt_prog_compiler_static_F77='-static'
22109 + case $host_os in
22110 + aix*)
22111 + # All AIX code is PIC.
22112 + if test "$host_cpu" = ia64; then
22113 + # AIX 5 now supports IA64 processor
22114 + lt_prog_compiler_static_F77='-Bstatic'
22115 + fi
22116 + ;;
22118 + amigaos*)
22119 + # FIXME: we need at least 68020 code to build shared libraries, but
22120 + # adding the `-m68020' flag to GCC prevents building anything better,
22121 + # like `-m68040'.
22122 + lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
22123 + ;;
22125 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22126 + # PIC is the default for these OSes.
22127 + ;;
22129 + mingw* | pw32* | os2*)
22130 + # This hack is so that the source file can tell whether it is being
22131 + # built for inclusion in a dll (and should export symbols for example).
22132 + lt_prog_compiler_pic_F77='-DDLL_EXPORT'
22133 + ;;
22135 + darwin* | rhapsody*)
22136 + # PIC is the default on this platform
22137 + # Common symbols not allowed in MH_DYLIB files
22138 + lt_prog_compiler_pic_F77='-fno-common'
22139 + ;;
22141 + interix3*)
22142 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22143 + # Instead, we relocate shared libraries at runtime.
22144 + ;;
22146 + msdosdjgpp*)
22147 + # Just because we use GCC doesn't mean we suddenly get shared libraries
22148 + # on systems that don't support them.
22149 + lt_prog_compiler_can_build_shared_F77=no
22150 + enable_shared=no
22151 + ;;
22153 + sysv4*MP*)
22154 + if test -d /usr/nec; then
22155 + lt_prog_compiler_pic_F77=-Kconform_pic
22156 + fi
22157 + ;;
22159 + hpux*)
22160 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22161 + # not for PA HP-UX.
22162 + case $host_cpu in
22163 + hppa*64*|ia64*)
22164 + # +Z the default
22165 + ;;
22166 + *)
22167 + lt_prog_compiler_pic_F77='-fPIC'
22168 + ;;
22169 + esac
22170 + ;;
22172 + *)
22173 + lt_prog_compiler_pic_F77='-fPIC'
22174 + ;;
22175 + esac
22176 + else
22177 + # PORTME Check for flag to pass linker flags through the system compiler.
22178 + case $host_os in
22179 + aix*)
22180 + lt_prog_compiler_wl_F77='-Wl,'
22181 + if test "$host_cpu" = ia64; then
22182 + # AIX 5 now supports IA64 processor
22183 + lt_prog_compiler_static_F77='-Bstatic'
22184 + else
22185 + lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
22186 + fi
22187 + ;;
22188 + darwin*)
22189 + # PIC is the default on this platform
22190 + # Common symbols not allowed in MH_DYLIB files
22191 + case $cc_basename in
22192 + xlc*)
22193 + lt_prog_compiler_pic_F77='-qnocommon'
22194 + lt_prog_compiler_wl_F77='-Wl,'
22195 + ;;
22196 + esac
22197 + ;;
22199 + mingw* | pw32* | os2*)
22200 + # This hack is so that the source file can tell whether it is being
22201 + # built for inclusion in a dll (and should export symbols for example).
22202 + lt_prog_compiler_pic_F77='-DDLL_EXPORT'
22203 + ;;
22205 + hpux9* | hpux10* | hpux11*)
22206 + lt_prog_compiler_wl_F77='-Wl,'
22207 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22208 + # not for PA HP-UX.
22209 + case $host_cpu in
22210 + hppa*64*|ia64*)
22211 + # +Z the default
22212 + ;;
22213 + *)
22214 + lt_prog_compiler_pic_F77='+Z'
22215 + ;;
22216 + esac
22217 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
22218 + lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
22219 + ;;
22221 + irix5* | irix6* | nonstopux*)
22222 + lt_prog_compiler_wl_F77='-Wl,'
22223 + # PIC (with -KPIC) is the default.
22224 + lt_prog_compiler_static_F77='-non_shared'
22225 + ;;
22227 + newsos6)
22228 + lt_prog_compiler_pic_F77='-KPIC'
22229 + lt_prog_compiler_static_F77='-Bstatic'
22230 + ;;
22232 + linux*)
22233 + case $cc_basename in
22234 + icc* | ecc*)
22235 + lt_prog_compiler_wl_F77='-Wl,'
22236 + lt_prog_compiler_pic_F77='-KPIC'
22237 + lt_prog_compiler_static_F77='-static'
22238 + ;;
22239 + pgcc* | pgf77* | pgf90* | pgf95*)
22240 + # Portland Group compilers (*not* the Pentium gcc compiler,
22241 + # which looks to be a dead project)
22242 + lt_prog_compiler_wl_F77='-Wl,'
22243 + lt_prog_compiler_pic_F77='-fpic'
22244 + lt_prog_compiler_static_F77='-Bstatic'
22245 + ;;
22246 + ccc*)
22247 + lt_prog_compiler_wl_F77='-Wl,'
22248 + # All Alpha code is PIC.
22249 + lt_prog_compiler_static_F77='-non_shared'
22250 + ;;
22251 + esac
22252 + ;;
22254 + osf3* | osf4* | osf5*)
22255 + lt_prog_compiler_wl_F77='-Wl,'
22256 + # All OSF/1 code is PIC.
22257 + lt_prog_compiler_static_F77='-non_shared'
22258 + ;;
22260 + solaris*)
22261 + lt_prog_compiler_pic_F77='-KPIC'
22262 + lt_prog_compiler_static_F77='-Bstatic'
22263 + case $cc_basename in
22264 + f77* | f90* | f95*)
22265 + lt_prog_compiler_wl_F77='-Qoption ld ';;
22266 + *)
22267 + lt_prog_compiler_wl_F77='-Wl,';;
22268 + esac
22269 + ;;
22271 + sunos4*)
22272 + lt_prog_compiler_wl_F77='-Qoption ld '
22273 + lt_prog_compiler_pic_F77='-PIC'
22274 + lt_prog_compiler_static_F77='-Bstatic'
22275 + ;;
22277 + sysv4 | sysv4.2uw2* | sysv4.3*)
22278 + lt_prog_compiler_wl_F77='-Wl,'
22279 + lt_prog_compiler_pic_F77='-KPIC'
22280 + lt_prog_compiler_static_F77='-Bstatic'
22281 + ;;
22283 + sysv4*MP*)
22284 + if test -d /usr/nec ;then
22285 + lt_prog_compiler_pic_F77='-Kconform_pic'
22286 + lt_prog_compiler_static_F77='-Bstatic'
22287 + fi
22288 + ;;
22290 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22291 + lt_prog_compiler_wl_F77='-Wl,'
22292 + lt_prog_compiler_pic_F77='-KPIC'
22293 + lt_prog_compiler_static_F77='-Bstatic'
22294 + ;;
22296 + unicos*)
22297 + lt_prog_compiler_wl_F77='-Wl,'
22298 + lt_prog_compiler_can_build_shared_F77=no
22299 + ;;
22301 + uts4*)
22302 + lt_prog_compiler_pic_F77='-pic'
22303 + lt_prog_compiler_static_F77='-Bstatic'
22304 + ;;
22306 + *)
22307 + lt_prog_compiler_can_build_shared_F77=no
22308 + ;;
22309 + esac
22310 + fi
22312 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
22313 +echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
22316 +# Check to make sure the PIC flag actually works.
22318 +if test -n "$lt_prog_compiler_pic_F77"; then
22320 +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
22321 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
22322 +if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
22323 + echo $ECHO_N "(cached) $ECHO_C" >&6
22324 +else
22325 + lt_prog_compiler_pic_works_F77=no
22326 + ac_outfile=conftest.$ac_objext
22327 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22328 + lt_compiler_flag="$lt_prog_compiler_pic_F77"
22329 + # Insert the option either (1) after the last *FLAGS variable, or
22330 + # (2) before a word containing "conftest.", or (3) at the end.
22331 + # Note that $ac_compile itself does not contain backslashes and begins
22332 + # with a dollar sign (not a hyphen), so the echo should work correctly.
22333 + # The option is referenced via a variable to avoid confusing sed.
22334 + lt_compile=`echo "$ac_compile" | $SED \
22335 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22336 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22337 + -e 's:$: $lt_compiler_flag:'`
22338 + (eval echo "\"\$as_me:12830: $lt_compile\"" >&5)
22339 + (eval "$lt_compile" 2>conftest.err)
22340 + ac_status=$?
22341 + cat conftest.err >&5
22342 + echo "$as_me:12834: \$? = $ac_status" >&5
22343 + if (exit $ac_status) && test -s "$ac_outfile"; then
22344 + # The compiler can only warn and ignore the option if not recognized
22345 + # So say no if there are warnings other than the usual output.
22346 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22347 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22348 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22349 + lt_prog_compiler_pic_works_F77=yes
22350 + fi
22351 + fi
22352 + $rm conftest*
22355 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
22356 +echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
22358 +if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
22359 + case $lt_prog_compiler_pic_F77 in
22360 + "" | " "*) ;;
22361 + *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
22362 + esac
22363 +else
22364 + lt_prog_compiler_pic_F77=
22365 + lt_prog_compiler_can_build_shared_F77=no
22369 +case $host_os in
22370 + # For platforms which do not support PIC, -DPIC is meaningless:
22371 + *djgpp*)
22372 + lt_prog_compiler_pic_F77=
22373 + ;;
22374 + *)
22375 + lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
22376 + ;;
22377 +esac
22380 +# Check to make sure the static flag actually works.
22382 +wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
22383 +echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22384 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
22385 +if test "${lt_prog_compiler_static_works_F77+set}" = set; then
22386 + echo $ECHO_N "(cached) $ECHO_C" >&6
22387 +else
22388 + lt_prog_compiler_static_works_F77=no
22389 + save_LDFLAGS="$LDFLAGS"
22390 + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22391 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
22392 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22393 + # The linker can only warn and ignore the option if not recognized
22394 + # So say no if there are warnings
22395 + if test -s conftest.err; then
22396 + # Append any errors to the config.log.
22397 + cat conftest.err 1>&5
22398 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22399 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22400 + if diff conftest.exp conftest.er2 >/dev/null; then
22401 + lt_prog_compiler_static_works_F77=yes
22402 + fi
22403 + else
22404 + lt_prog_compiler_static_works_F77=yes
22405 + fi
22406 + fi
22407 + $rm conftest*
22408 + LDFLAGS="$save_LDFLAGS"
22411 +echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
22412 +echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
22414 +if test x"$lt_prog_compiler_static_works_F77" = xyes; then
22416 +else
22417 + lt_prog_compiler_static_F77=
22421 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22422 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
22423 +if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
22424 + echo $ECHO_N "(cached) $ECHO_C" >&6
22425 +else
22426 + lt_cv_prog_compiler_c_o_F77=no
22427 + $rm -r conftest 2>/dev/null
22428 + mkdir conftest
22429 + cd conftest
22430 + mkdir out
22431 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22433 + lt_compiler_flag="-o out/conftest2.$ac_objext"
22434 + # Insert the option either (1) after the last *FLAGS variable, or
22435 + # (2) before a word containing "conftest.", or (3) at the end.
22436 + # Note that $ac_compile itself does not contain backslashes and begins
22437 + # with a dollar sign (not a hyphen), so the echo should work correctly.
22438 + lt_compile=`echo "$ac_compile" | $SED \
22439 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22440 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22441 + -e 's:$: $lt_compiler_flag:'`
22442 + (eval echo "\"\$as_me:12934: $lt_compile\"" >&5)
22443 + (eval "$lt_compile" 2>out/conftest.err)
22444 + ac_status=$?
22445 + cat out/conftest.err >&5
22446 + echo "$as_me:12938: \$? = $ac_status" >&5
22447 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
22448 + then
22449 + # The compiler can only warn and ignore the option if not recognized
22450 + # So say no if there are warnings
22451 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22452 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22453 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22454 + lt_cv_prog_compiler_c_o_F77=yes
22455 + fi
22456 + fi
22457 + chmod u+w . 2>&5
22458 + $rm conftest*
22459 + # SGI C++ compiler will create directory out/ii_files/ for
22460 + # template instantiation
22461 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22462 + $rm out/* && rmdir out
22463 + cd ..
22464 + rmdir conftest
22465 + $rm conftest*
22468 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
22469 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
22472 +hard_links="nottested"
22473 +if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22474 + # do not overwrite the value of need_locks provided by the user
22475 + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22476 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
22477 + hard_links=yes
22478 + $rm conftest*
22479 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
22480 + touch conftest.a
22481 + ln conftest.a conftest.b 2>&5 || hard_links=no
22482 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
22483 + echo "$as_me:$LINENO: result: $hard_links" >&5
22484 +echo "${ECHO_T}$hard_links" >&6
22485 + if test "$hard_links" = no; then
22486 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22487 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22488 + need_locks=warn
22489 + fi
22490 +else
22491 + need_locks=no
22494 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22495 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
22497 + runpath_var=
22498 + allow_undefined_flag_F77=
22499 + enable_shared_with_static_runtimes_F77=no
22500 + archive_cmds_F77=
22501 + archive_expsym_cmds_F77=
22502 + old_archive_From_new_cmds_F77=
22503 + old_archive_from_expsyms_cmds_F77=
22504 + export_dynamic_flag_spec_F77=
22505 + whole_archive_flag_spec_F77=
22506 + thread_safe_flag_spec_F77=
22507 + hardcode_libdir_flag_spec_F77=
22508 + hardcode_libdir_flag_spec_ld_F77=
22509 + hardcode_libdir_separator_F77=
22510 + hardcode_direct_F77=no
22511 + hardcode_minus_L_F77=no
22512 + hardcode_shlibpath_var_F77=unsupported
22513 + link_all_deplibs_F77=unknown
22514 + hardcode_automatic_F77=no
22515 + module_cmds_F77=
22516 + module_expsym_cmds_F77=
22517 + always_export_symbols_F77=no
22518 + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22519 + # include_expsyms should be a list of space-separated symbols to be *always*
22520 + # included in the symbol list
22521 + include_expsyms_F77=
22522 + # exclude_expsyms can be an extended regexp of symbols to exclude
22523 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
22524 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22525 + # as well as any symbol that contains `d'.
22526 + exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22527 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22528 + # platforms (ab)use it in PIC code, but their linkers get confused if
22529 + # the symbol is explicitly referenced. Since portable code cannot
22530 + # rely on this symbol name, it's probably fine to never include it in
22531 + # preloaded symbol tables.
22532 + extract_expsyms_cmds=
22533 + # Just being paranoid about ensuring that cc_basename is set.
22534 + for cc_temp in $compiler""; do
22535 + case $cc_temp in
22536 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22537 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22538 + \-*) ;;
22539 + *) break;;
22540 + esac
22541 +done
22542 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22544 + case $host_os in
22545 + cygwin* | mingw* | pw32*)
22546 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
22547 + # When not using gcc, we currently assume that we are using
22548 + # Microsoft Visual C++.
22549 + if test "$GCC" != yes; then
22550 + with_gnu_ld=no
22551 + fi
22552 + ;;
22553 + interix*)
22554 + # we just hope/assume this is gcc and not c89 (= MSVC++)
22555 + with_gnu_ld=yes
22556 + ;;
22557 + openbsd*)
22558 + with_gnu_ld=no
22559 + ;;
22560 + esac
22562 + ld_shlibs_F77=yes
22563 + if test "$with_gnu_ld" = yes; then
22564 + # If archive_cmds runs LD, not CC, wlarc should be empty
22565 + wlarc='${wl}'
22567 + # Set some defaults for GNU ld with shared library support. These
22568 + # are reset later if shared libraries are not supported. Putting them
22569 + # here allows them to be overridden if necessary.
22570 + runpath_var=LD_RUN_PATH
22571 + hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22572 + export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22573 + # ancient GNU ld didn't support --whole-archive et. al.
22574 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22575 + whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22576 + else
22577 + whole_archive_flag_spec_F77=
22578 + fi
22579 + supports_anon_versioning=no
22580 + case `$LD -v 2>/dev/null` in
22581 + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22582 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22583 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22584 + *\ 2.11.*) ;; # other 2.11 versions
22585 + *) supports_anon_versioning=yes ;;
22586 + esac
22588 + # See if GNU ld supports shared libraries.
22589 + case $host_os in
22590 + aix3* | aix4* | aix5*)
22591 + # On AIX/PPC, the GNU linker is very broken
22592 + if test "$host_cpu" != ia64; then
22593 + ld_shlibs_F77=no
22594 + cat <<EOF 1>&2
22596 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
22597 +*** to be unable to reliably create shared libraries on AIX.
22598 +*** Therefore, libtool is disabling shared libraries support. If you
22599 +*** really care for shared libraries, you may want to modify your PATH
22600 +*** so that a non-GNU linker is found, and then restart.
22602 +EOF
22603 + fi
22604 + ;;
22606 + amigaos*)
22607 + archive_cmds_F77='$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)'
22608 + hardcode_libdir_flag_spec_F77='-L$libdir'
22609 + hardcode_minus_L_F77=yes
22611 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22612 + # that the semantics of dynamic libraries on AmigaOS, at least up
22613 + # to version 4, is to share data among multiple programs linked
22614 + # with the same dynamic library. Since this doesn't match the
22615 + # behavior of shared libraries on other platforms, we can't use
22616 + # them.
22617 + ld_shlibs_F77=no
22618 + ;;
22620 + beos*)
22621 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22622 + allow_undefined_flag_F77=unsupported
22623 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22624 + # support --undefined. This deserves some investigation. FIXME
22625 + archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22626 + else
22627 + ld_shlibs_F77=no
22628 + fi
22629 + ;;
22631 + cygwin* | mingw* | pw32*)
22632 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22633 + # as there is no search path for DLLs.
22634 + hardcode_libdir_flag_spec_F77='-L$libdir'
22635 + allow_undefined_flag_F77=unsupported
22636 + always_export_symbols_F77=no
22637 + enable_shared_with_static_runtimes_F77=yes
22638 + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22640 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22641 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22642 + # If the export-symbols file already is a .def file (1st line
22643 + # is EXPORTS), use it as is; otherwise, prepend...
22644 + archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22645 + cp $export_symbols $output_objdir/$soname.def;
22646 + else
22647 + echo EXPORTS > $output_objdir/$soname.def;
22648 + cat $export_symbols >> $output_objdir/$soname.def;
22649 + fi~
22650 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22651 + else
22652 + ld_shlibs_F77=no
22653 + fi
22654 + ;;
22656 + interix3*)
22657 + hardcode_direct_F77=no
22658 + hardcode_shlibpath_var_F77=no
22659 + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22660 + export_dynamic_flag_spec_F77='${wl}-E'
22661 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22662 + # Instead, shared libraries are loaded at an image base (0x10000000 by
22663 + # default) and relocated if they conflict, which is a slow very memory
22664 + # consuming and fragmenting process. To avoid this, we pick a random,
22665 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22666 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22667 + archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
22668 + archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
22669 + ;;
22671 + linux*)
22672 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22673 + tmp_addflag=
22674 + case $cc_basename,$host_cpu in
22675 + pgcc*) # Portland Group C compiler
22676 + whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
22677 + tmp_addflag=' $pic_flag'
22678 + ;;
22679 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22680 + whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
22681 + tmp_addflag=' $pic_flag -Mnomain' ;;
22682 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22683 + tmp_addflag=' -i_dynamic' ;;
22684 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22685 + tmp_addflag=' -i_dynamic -nofor_main' ;;
22686 + ifc* | ifort*) # Intel Fortran compiler
22687 + tmp_addflag=' -nofor_main' ;;
22688 + esac
22689 + archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22691 + if test $supports_anon_versioning = yes; then
22692 + archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22693 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22694 + $echo "local: *; };" >> $output_objdir/$libname.ver~
22695 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22696 + fi
22697 + link_all_deplibs_F77=no
22698 + else
22699 + ld_shlibs_F77=no
22700 + fi
22701 + ;;
22703 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
22704 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22705 + archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22706 + wlarc=
22707 + else
22708 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22709 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22710 + fi
22711 + ;;
22713 + solaris*)
22714 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22715 + ld_shlibs_F77=no
22716 + cat <<EOF 1>&2
22718 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22719 +*** create shared libraries on Solaris systems. Therefore, libtool
22720 +*** is disabling shared libraries support. We urge you to upgrade GNU
22721 +*** binutils to release 2.9.1 or newer. Another option is to modify
22722 +*** your PATH or compiler configuration so that the native linker is
22723 +*** used, and then restart.
22725 +EOF
22726 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22727 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22728 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22729 + else
22730 + ld_shlibs_F77=no
22731 + fi
22732 + ;;
22734 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22735 + case `$LD -v 2>&1` in
22736 + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22737 + ld_shlibs_F77=no
22738 + cat <<_LT_EOF 1>&2
22740 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22741 +*** reliably create shared libraries on SCO systems. Therefore, libtool
22742 +*** is disabling shared libraries support. We urge you to upgrade GNU
22743 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22744 +*** your PATH or compiler configuration so that the native linker is
22745 +*** used, and then restart.
22747 +_LT_EOF
22748 + ;;
22749 + *)
22750 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22751 + hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22752 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22753 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22754 + else
22755 + ld_shlibs_F77=no
22756 + fi
22757 + ;;
22758 + esac
22759 + ;;
22761 + sunos4*)
22762 + archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22763 + wlarc=
22764 + hardcode_direct_F77=yes
22765 + hardcode_shlibpath_var_F77=no
22766 + ;;
22768 + *)
22769 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22770 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22771 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22772 + else
22773 + ld_shlibs_F77=no
22774 + fi
22775 + ;;
22776 + esac
22778 + if test "$ld_shlibs_F77" = no; then
22779 + runpath_var=
22780 + hardcode_libdir_flag_spec_F77=
22781 + export_dynamic_flag_spec_F77=
22782 + whole_archive_flag_spec_F77=
22783 + fi
22784 + else
22785 + # PORTME fill in a description of your system's linker (not GNU ld)
22786 + case $host_os in
22787 + aix3*)
22788 + allow_undefined_flag_F77=unsupported
22789 + always_export_symbols_F77=yes
22790 + archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
22791 + # Note: this linker hardcodes the directories in LIBPATH if there
22792 + # are no directories specified by -L.
22793 + hardcode_minus_L_F77=yes
22794 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22795 + # Neither direct hardcoding nor static linking is supported with a
22796 + # broken collect2.
22797 + hardcode_direct_F77=unsupported
22798 + fi
22799 + ;;
22801 + aix4* | aix5*)
22802 + if test "$host_cpu" = ia64; then
22803 + # On IA64, the linker does run time linking by default, so we don't
22804 + # have to do anything special.
22805 + aix_use_runtimelinking=no
22806 + exp_sym_flag='-Bexport'
22807 + no_entry_flag=""
22808 + else
22809 + # If we're using GNU nm, then we don't want the "-C" option.
22810 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
22811 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22812 + export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22813 + else
22814 + export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22815 + fi
22816 + aix_use_runtimelinking=no
22818 + # Test if we are trying to use run time linking or normal
22819 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22820 + # need to do runtime linking.
22821 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22822 + for ld_flag in $LDFLAGS; do
22823 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22824 + aix_use_runtimelinking=yes
22825 + break
22826 + fi
22827 + done
22828 + ;;
22829 + esac
22831 + exp_sym_flag='-bexport'
22832 + no_entry_flag='-bnoentry'
22833 + fi
22835 + # When large executables or shared objects are built, AIX ld can
22836 + # have problems creating the table of contents. If linking a library
22837 + # or program results in "error TOC overflow" add -mminimal-toc to
22838 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22839 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22841 + archive_cmds_F77=''
22842 + hardcode_direct_F77=yes
22843 + hardcode_libdir_separator_F77=':'
22844 + link_all_deplibs_F77=yes
22846 + if test "$GCC" = yes; then
22847 + case $host_os in aix4.[012]|aix4.[012].*)
22848 + # We only want to do this on AIX 4.2 and lower, the check
22849 + # below for broken collect2 doesn't work under 4.3+
22850 + collect2name=`${CC} -print-prog-name=collect2`
22851 + if test -f "$collect2name" && \
22852 + strings "$collect2name" | grep resolve_lib_name >/dev/null
22853 + then
22854 + # We have reworked collect2
22855 + hardcode_direct_F77=yes
22856 + else
22857 + # We have old collect2
22858 + hardcode_direct_F77=unsupported
22859 + # It fails to find uninstalled libraries when the uninstalled
22860 + # path is not listed in the libpath. Setting hardcode_minus_L
22861 + # to unsupported forces relinking
22862 + hardcode_minus_L_F77=yes
22863 + hardcode_libdir_flag_spec_F77='-L$libdir'
22864 + hardcode_libdir_separator_F77=
22865 + fi
22866 + ;;
22867 + esac
22868 + shared_flag='-shared'
22869 + if test "$aix_use_runtimelinking" = yes; then
22870 + shared_flag="$shared_flag "'${wl}-G'
22871 + fi
22872 + else
22873 + # not using gcc
22874 + if test "$host_cpu" = ia64; then
22875 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22876 + # chokes on -Wl,-G. The following line is correct:
22877 + shared_flag='-G'
22878 + else
22879 + if test "$aix_use_runtimelinking" = yes; then
22880 + shared_flag='${wl}-G'
22881 + else
22882 + shared_flag='${wl}-bM:SRE'
22883 + fi
22884 + fi
22885 + fi
22887 + # It seems that -bexpall does not export symbols beginning with
22888 + # underscore (_), so it is better to generate a list of symbols to export.
22889 + always_export_symbols_F77=yes
22890 + if test "$aix_use_runtimelinking" = yes; then
22891 + # Warning - without using the other runtime loading flags (-brtl),
22892 + # -berok will link without error, but may produce a broken library.
22893 + allow_undefined_flag_F77='-berok'
22894 + # Determine the default libpath from the value encoded in an empty executable.
22895 + cat >conftest.$ac_ext <<_ACEOF
22896 + program main
22898 + end
22899 +_ACEOF
22900 +rm -f conftest.$ac_objext conftest$ac_exeext
22901 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22902 + (eval $ac_link) 2>conftest.er1
22903 + ac_status=$?
22904 + grep -v '^ *+' conftest.er1 >conftest.err
22905 + rm -f conftest.er1
22906 + cat conftest.err >&5
22907 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908 + (exit $ac_status); } &&
22909 + { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22910 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22911 + (eval $ac_try) 2>&5
22912 + ac_status=$?
22913 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914 + (exit $ac_status); }; } &&
22915 + { ac_try='test -s conftest$ac_exeext'
22916 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22917 + (eval $ac_try) 2>&5
22918 + ac_status=$?
22919 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920 + (exit $ac_status); }; }; then
22922 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22923 +}'`
22924 +# Check for a 64-bit object if we didn't find anything.
22925 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22926 +}'`; fi
22927 +else
22928 + echo "$as_me: failed program was:" >&5
22929 +sed 's/^/| /' conftest.$ac_ext >&5
22932 +rm -f conftest.err conftest.$ac_objext \
22933 + conftest$ac_exeext conftest.$ac_ext
22934 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22936 + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22937 + archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
22938 + else
22939 + if test "$host_cpu" = ia64; then
22940 + hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22941 + allow_undefined_flag_F77="-z nodefs"
22942 + archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
22943 + else
22944 + # Determine the default libpath from the value encoded in an empty executable.
22945 + cat >conftest.$ac_ext <<_ACEOF
22946 + program main
22948 + end
22949 +_ACEOF
22950 +rm -f conftest.$ac_objext conftest$ac_exeext
22951 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22952 + (eval $ac_link) 2>conftest.er1
22953 + ac_status=$?
22954 + grep -v '^ *+' conftest.er1 >conftest.err
22955 + rm -f conftest.er1
22956 + cat conftest.err >&5
22957 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958 + (exit $ac_status); } &&
22959 + { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22960 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22961 + (eval $ac_try) 2>&5
22962 + ac_status=$?
22963 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964 + (exit $ac_status); }; } &&
22965 + { ac_try='test -s conftest$ac_exeext'
22966 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22967 + (eval $ac_try) 2>&5
22968 + ac_status=$?
22969 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970 + (exit $ac_status); }; }; then
22972 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22973 +}'`
22974 +# Check for a 64-bit object if we didn't find anything.
22975 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22976 +}'`; fi
22977 +else
22978 + echo "$as_me: failed program was:" >&5
22979 +sed 's/^/| /' conftest.$ac_ext >&5
22982 +rm -f conftest.err conftest.$ac_objext \
22983 + conftest$ac_exeext conftest.$ac_ext
22984 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22986 + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22987 + # Warning - without using the other run time loading flags,
22988 + # -berok will link without error, but may produce a broken library.
22989 + no_undefined_flag_F77=' ${wl}-bernotok'
22990 + allow_undefined_flag_F77=' ${wl}-berok'
22991 + # Exported symbols can be pulled into shared objects from archives
22992 + whole_archive_flag_spec_F77='$convenience'
22993 + archive_cmds_need_lc_F77=yes
22994 + # This is similar to how AIX traditionally builds its shared libraries.
22995 + archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
22996 + fi
22997 + fi
22998 + ;;
23000 + amigaos*)
23001 + archive_cmds_F77='$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)'
23002 + hardcode_libdir_flag_spec_F77='-L$libdir'
23003 + hardcode_minus_L_F77=yes
23004 + # see comment about different semantics on the GNU ld section
23005 + ld_shlibs_F77=no
23006 + ;;
23008 + bsdi[45]*)
23009 + export_dynamic_flag_spec_F77=-rdynamic
23010 + ;;
23012 + cygwin* | mingw* | pw32*)
23013 + # When not using gcc, we currently assume that we are using
23014 + # Microsoft Visual C++.
23015 + # hardcode_libdir_flag_spec is actually meaningless, as there is
23016 + # no search path for DLLs.
23017 + hardcode_libdir_flag_spec_F77=' '
23018 + allow_undefined_flag_F77=unsupported
23019 + # Tell ltmain to make .lib files, not .a files.
23020 + libext=lib
23021 + # Tell ltmain to make .dll files, not .so files.
23022 + shrext_cmds=".dll"
23023 + # FIXME: Setting linknames here is a bad hack.
23024 + archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23025 + # The linker will automatically build a .lib file if we build a DLL.
23026 + old_archive_From_new_cmds_F77='true'
23027 + # FIXME: Should let the user specify the lib program.
23028 + old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
23029 + fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
23030 + enable_shared_with_static_runtimes_F77=yes
23031 + ;;
23033 + darwin* | rhapsody*)
23034 + case $host_os in
23035 + rhapsody* | darwin1.[012])
23036 + allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
23037 + ;;
23038 + *) # Darwin 1.3 on
23039 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23040 + allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23041 + else
23042 + case ${MACOSX_DEPLOYMENT_TARGET} in
23043 + 10.[012])
23044 + allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23045 + ;;
23046 + 10.*)
23047 + allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
23048 + ;;
23049 + esac
23050 + fi
23051 + ;;
23052 + esac
23053 + archive_cmds_need_lc_F77=no
23054 + hardcode_direct_F77=no
23055 + hardcode_automatic_F77=yes
23056 + hardcode_shlibpath_var_F77=unsupported
23057 + whole_archive_flag_spec_F77=''
23058 + link_all_deplibs_F77=yes
23059 + if test "$GCC" = yes ; then
23060 + output_verbose_link_cmd='echo'
23061 + archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23062 + module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23063 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23064 + archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
23065 + module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
23066 + else
23067 + case $cc_basename in
23068 + xlc*)
23069 + output_verbose_link_cmd='echo'
23070 + archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23071 + module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23072 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23073 + archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
23074 + module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
23075 + ;;
23076 + *)
23077 + ld_shlibs_F77=no
23078 + ;;
23079 + esac
23080 + fi
23081 + ;;
23083 + dgux*)
23084 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23085 + hardcode_libdir_flag_spec_F77='-L$libdir'
23086 + hardcode_shlibpath_var_F77=no
23087 + ;;
23089 + freebsd1*)
23090 + ld_shlibs_F77=no
23091 + ;;
23093 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23094 + # support. Future versions do this automatically, but an explicit c++rt0.o
23095 + # does not break anything, and helps significantly (at the cost of a little
23096 + # extra space).
23097 + freebsd2.2*)
23098 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23099 + hardcode_libdir_flag_spec_F77='-R$libdir'
23100 + hardcode_direct_F77=yes
23101 + hardcode_shlibpath_var_F77=no
23102 + ;;
23104 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23105 + freebsd2*)
23106 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23107 + hardcode_direct_F77=yes
23108 + hardcode_minus_L_F77=yes
23109 + hardcode_shlibpath_var_F77=no
23110 + ;;
23112 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23113 + freebsd* | dragonfly*)
23114 + archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23115 + hardcode_libdir_flag_spec_F77='-R$libdir'
23116 + hardcode_direct_F77=yes
23117 + hardcode_shlibpath_var_F77=no
23118 + ;;
23120 + # GNU/kFreeBSD uses gcc -shared to do shared libraries.
23121 + kfreebsd*-gnu)
23122 + archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23123 + hardcode_libdir_flag_spec_F77='-R$libdir'
23124 + hardcode_direct_F77=yes
23125 + hardcode_shlibpath_var_F77=no
23126 + link_all_deplibs_F77=no
23127 + ;;
23129 + hpux9*)
23130 + if test "$GCC" = yes; then
23131 + archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
23132 + else
23133 + archive_cmds_F77='$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'
23134 + fi
23135 + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23136 + hardcode_libdir_separator_F77=:
23137 + hardcode_direct_F77=yes
23139 + # hardcode_minus_L: Not really in the search PATH,
23140 + # but as the default location of the library.
23141 + hardcode_minus_L_F77=yes
23142 + export_dynamic_flag_spec_F77='${wl}-E'
23143 + ;;
23145 + hpux10*)
23146 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23147 + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23148 + else
23149 + archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23150 + fi
23151 + if test "$with_gnu_ld" = no; then
23152 + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23153 + hardcode_libdir_separator_F77=:
23155 + hardcode_direct_F77=yes
23156 + export_dynamic_flag_spec_F77='${wl}-E'
23158 + # hardcode_minus_L: Not really in the search PATH,
23159 + # but as the default location of the library.
23160 + hardcode_minus_L_F77=yes
23161 + fi
23162 + ;;
23164 + hpux11*)
23165 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23166 + case $host_cpu in
23167 + hppa*64*)
23168 + archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23169 + ;;
23170 + ia64*)
23171 + archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23172 + ;;
23173 + *)
23174 + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23175 + ;;
23176 + esac
23177 + else
23178 + case $host_cpu in
23179 + hppa*64*)
23180 + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23181 + ;;
23182 + ia64*)
23183 + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23184 + ;;
23185 + *)
23186 + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23187 + ;;
23188 + esac
23189 + fi
23190 + if test "$with_gnu_ld" = no; then
23191 + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23192 + hardcode_libdir_separator_F77=:
23194 + case $host_cpu in
23195 + hppa*64*|ia64*)
23196 + hardcode_libdir_flag_spec_ld_F77='+b $libdir'
23197 + hardcode_direct_F77=no
23198 + hardcode_shlibpath_var_F77=no
23199 + ;;
23200 + *)
23201 + hardcode_direct_F77=yes
23202 + export_dynamic_flag_spec_F77='${wl}-E'
23204 + # hardcode_minus_L: Not really in the search PATH,
23205 + # but as the default location of the library.
23206 + hardcode_minus_L_F77=yes
23207 + ;;
23208 + esac
23209 + fi
23210 + ;;
23212 + irix5* | irix6* | nonstopux*)
23213 + if test "$GCC" = yes; then
23214 + archive_cmds_F77='$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'
23215 + else
23216 + archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
23217 + hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
23218 + fi
23219 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23220 + hardcode_libdir_separator_F77=:
23221 + link_all_deplibs_F77=yes
23222 + ;;
23224 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
23225 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23226 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23227 + else
23228 + archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23229 + fi
23230 + hardcode_libdir_flag_spec_F77='-R$libdir'
23231 + hardcode_direct_F77=yes
23232 + hardcode_shlibpath_var_F77=no
23233 + ;;
23235 + newsos6)
23236 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23237 + hardcode_direct_F77=yes
23238 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23239 + hardcode_libdir_separator_F77=:
23240 + hardcode_shlibpath_var_F77=no
23241 + ;;
23243 + openbsd*)
23244 + hardcode_direct_F77=yes
23245 + hardcode_shlibpath_var_F77=no
23246 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23247 + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23248 + archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23249 + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23250 + export_dynamic_flag_spec_F77='${wl}-E'
23251 + else
23252 + case $host_os in
23253 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23254 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23255 + hardcode_libdir_flag_spec_F77='-R$libdir'
23256 + ;;
23257 + *)
23258 + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23259 + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23260 + ;;
23261 + esac
23262 + fi
23263 + ;;
23265 + os2*)
23266 + hardcode_libdir_flag_spec_F77='-L$libdir'
23267 + hardcode_minus_L_F77=yes
23268 + allow_undefined_flag_F77=unsupported
23269 + archive_cmds_F77='$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'
23270 + old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23271 + ;;
23273 + osf3*)
23274 + if test "$GCC" = yes; then
23275 + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
23276 + archive_cmds_F77='$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'
23277 + else
23278 + allow_undefined_flag_F77=' -expect_unresolved \*'
23279 + archive_cmds_F77='$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'
23280 + fi
23281 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23282 + hardcode_libdir_separator_F77=:
23283 + ;;
23285 + osf4* | osf5*) # as osf3* with the addition of -msym flag
23286 + if test "$GCC" = yes; then
23287 + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
23288 + archive_cmds_F77='$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'
23289 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23290 + else
23291 + allow_undefined_flag_F77=' -expect_unresolved \*'
23292 + archive_cmds_F77='$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'
23293 + archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
23294 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
23296 + # Both c and cxx compiler support -rpath directly
23297 + hardcode_libdir_flag_spec_F77='-rpath $libdir'
23298 + fi
23299 + hardcode_libdir_separator_F77=:
23300 + ;;
23302 + solaris*)
23303 + no_undefined_flag_F77=' -z text'
23304 + if test "$GCC" = yes; then
23305 + wlarc='${wl}'
23306 + archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23307 + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23308 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23309 + else
23310 + wlarc=''
23311 + archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23312 + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23313 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23314 + fi
23315 + hardcode_libdir_flag_spec_F77='-R$libdir'
23316 + hardcode_shlibpath_var_F77=no
23317 + case $host_os in
23318 + solaris2.[0-5] | solaris2.[0-5].*) ;;
23319 + *)
23320 + # The compiler driver will combine linker options so we
23321 + # cannot just pass the convience library names through
23322 + # without $wl, iff we do not link with $LD.
23323 + # Luckily, gcc supports the same syntax we need for Sun Studio.
23324 + # Supported since Solaris 2.6 (maybe 2.5.1?)
23325 + case $wlarc in
23326 + '')
23327 + whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
23328 + *)
23329 + whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
23330 + esac ;;
23331 + esac
23332 + link_all_deplibs_F77=yes
23333 + ;;
23335 + sunos4*)
23336 + if test "x$host_vendor" = xsequent; then
23337 + # Use $CC to link under sequent, because it throws in some extra .o
23338 + # files that make .init and .fini sections work.
23339 + archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23340 + else
23341 + archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23342 + fi
23343 + hardcode_libdir_flag_spec_F77='-L$libdir'
23344 + hardcode_direct_F77=yes
23345 + hardcode_minus_L_F77=yes
23346 + hardcode_shlibpath_var_F77=no
23347 + ;;
23349 + sysv4)
23350 + case $host_vendor in
23351 + sni)
23352 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23353 + hardcode_direct_F77=yes # is this really true???
23354 + ;;
23355 + siemens)
23356 + ## LD is ld it makes a PLAMLIB
23357 + ## CC just makes a GrossModule.
23358 + archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23359 + reload_cmds_F77='$CC -r -o $output$reload_objs'
23360 + hardcode_direct_F77=no
23361 + ;;
23362 + motorola)
23363 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23364 + hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
23365 + ;;
23366 + esac
23367 + runpath_var='LD_RUN_PATH'
23368 + hardcode_shlibpath_var_F77=no
23369 + ;;
23371 + sysv4.3*)
23372 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23373 + hardcode_shlibpath_var_F77=no
23374 + export_dynamic_flag_spec_F77='-Bexport'
23375 + ;;
23377 + sysv4*MP*)
23378 + if test -d /usr/nec; then
23379 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23380 + hardcode_shlibpath_var_F77=no
23381 + runpath_var=LD_RUN_PATH
23382 + hardcode_runpath_var=yes
23383 + ld_shlibs_F77=yes
23384 + fi
23385 + ;;
23387 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
23388 + no_undefined_flag_F77='${wl}-z,text'
23389 + archive_cmds_need_lc_F77=no
23390 + hardcode_shlibpath_var_F77=no
23391 + runpath_var='LD_RUN_PATH'
23393 + if test "$GCC" = yes; then
23394 + archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23395 + archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23396 + else
23397 + archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23398 + archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23399 + fi
23400 + ;;
23402 + sysv5* | sco3.2v5* | sco5v6*)
23403 + # Note: We can NOT use -z defs as we might desire, because we do not
23404 + # link with -lc, and that would cause any symbols used from libc to
23405 + # always be unresolved, which means just about no library would
23406 + # ever link correctly. If we're not using GNU ld we use -z text
23407 + # though, which does catch some bad symbols but isn't as heavy-handed
23408 + # as -z defs.
23409 + no_undefined_flag_F77='${wl}-z,text'
23410 + allow_undefined_flag_F77='${wl}-z,nodefs'
23411 + archive_cmds_need_lc_F77=no
23412 + hardcode_shlibpath_var_F77=no
23413 + hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23414 + hardcode_libdir_separator_F77=':'
23415 + link_all_deplibs_F77=yes
23416 + export_dynamic_flag_spec_F77='${wl}-Bexport'
23417 + runpath_var='LD_RUN_PATH'
23419 + if test "$GCC" = yes; then
23420 + archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23421 + archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23422 + else
23423 + archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23424 + archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23425 + fi
23426 + ;;
23428 + uts4*)
23429 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23430 + hardcode_libdir_flag_spec_F77='-L$libdir'
23431 + hardcode_shlibpath_var_F77=no
23432 + ;;
23434 + *)
23435 + ld_shlibs_F77=no
23436 + ;;
23437 + esac
23438 + fi
23440 +echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
23441 +echo "${ECHO_T}$ld_shlibs_F77" >&6
23442 +test "$ld_shlibs_F77" = no && can_build_shared=no
23445 +# Do we need to explicitly link libc?
23447 +case "x$archive_cmds_need_lc_F77" in
23448 +x|xyes)
23449 + # Assume -lc should be added
23450 + archive_cmds_need_lc_F77=yes
23452 + if test "$enable_shared" = yes && test "$GCC" = yes; then
23453 + case $archive_cmds_F77 in
23454 + *'~'*)
23455 + # FIXME: we may have to deal with multi-command sequences.
23456 + ;;
23457 + '$CC '*)
23458 + # Test whether the compiler implicitly links with -lc since on some
23459 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
23460 + # to ld, don't add -lc before -lgcc.
23461 + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23462 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
23463 + $rm conftest*
23464 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23466 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23467 + (eval $ac_compile) 2>&5
23468 + ac_status=$?
23469 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 + (exit $ac_status); } 2>conftest.err; then
23471 + soname=conftest
23472 + lib=conftest
23473 + libobjs=conftest.$ac_objext
23474 + deplibs=
23475 + wl=$lt_prog_compiler_wl_F77
23476 + pic_flag=$lt_prog_compiler_pic_F77
23477 + compiler_flags=-v
23478 + linker_flags=-v
23479 + verstring=
23480 + output_objdir=.
23481 + libname=conftest
23482 + lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23483 + allow_undefined_flag_F77=
23484 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23485 + (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23486 + ac_status=$?
23487 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488 + (exit $ac_status); }
23489 + then
23490 + archive_cmds_need_lc_F77=no
23491 + else
23492 + archive_cmds_need_lc_F77=yes
23493 + fi
23494 + allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23495 + else
23496 + cat conftest.err 1>&5
23497 + fi
23498 + $rm conftest*
23499 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23500 +echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
23501 + ;;
23502 + esac
23503 + fi
23504 + ;;
23505 +esac
23507 +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23508 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
23509 +library_names_spec=
23510 +libname_spec='lib$name'
23511 +soname_spec=
23512 +shrext_cmds=".so"
23513 +postinstall_cmds=
23514 +postuninstall_cmds=
23515 +finish_cmds=
23516 +finish_eval=
23517 +shlibpath_var=
23518 +shlibpath_overrides_runpath=unknown
23519 +version_type=none
23520 +dynamic_linker="$host_os ld.so"
23521 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
23522 +if test "$GCC" = yes; then
23523 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23524 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23525 + # if the path contains ";" then we assume it to be the separator
23526 + # otherwise default to the standard path separator (i.e. ":") - it is
23527 + # assumed that no part of a normal pathname contains ";" but that should
23528 + # okay in the real world where ";" in dirpaths is itself problematic.
23529 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23530 + else
23531 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23532 + fi
23533 +else
23534 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23536 +need_lib_prefix=unknown
23537 +hardcode_into_libs=no
23539 +# when you set need_version to no, make sure it does not cause -set_version
23540 +# flags to be left without arguments
23541 +need_version=unknown
23543 +case $host_os in
23544 +aix3*)
23545 + version_type=linux
23546 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23547 + shlibpath_var=LIBPATH
23549 + # AIX 3 has no versioning support, so we append a major version to the name.
23550 + soname_spec='${libname}${release}${shared_ext}$major'
23551 + ;;
23553 +aix4* | aix5*)
23554 + version_type=linux
23555 + need_lib_prefix=no
23556 + need_version=no
23557 + hardcode_into_libs=yes
23558 + if test "$host_cpu" = ia64; then
23559 + # AIX 5 supports IA64
23560 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23561 + shlibpath_var=LD_LIBRARY_PATH
23562 + else
23563 + # With GCC up to 2.95.x, collect2 would create an import file
23564 + # for dependence libraries. The import file would start with
23565 + # the line `#! .'. This would cause the generated library to
23566 + # depend on `.', always an invalid library. This was fixed in
23567 + # development snapshots of GCC prior to 3.0.
23568 + case $host_os in
23569 + aix4 | aix4.[01] | aix4.[01].*)
23570 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23571 + echo ' yes '
23572 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23574 + else
23575 + can_build_shared=no
23576 + fi
23577 + ;;
23578 + esac
23579 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23580 + # soname into executable. Probably we can add versioning support to
23581 + # collect2, so additional links can be useful in future.
23582 + if test "$aix_use_runtimelinking" = yes; then
23583 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23584 + # instead of lib<name>.a to let people know that these are not
23585 + # typical AIX shared libraries.
23586 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23587 + else
23588 + # We preserve .a as extension for shared libraries through AIX4.2
23589 + # and later when we are not doing run time linking.
23590 + library_names_spec='${libname}${release}.a $libname.a'
23591 + soname_spec='${libname}${release}${shared_ext}$major'
23592 + fi
23593 + shlibpath_var=LIBPATH
23594 + fi
23595 + ;;
23597 +amigaos*)
23598 + library_names_spec='$libname.ixlibrary $libname.a'
23599 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
23600 + 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'
23601 + ;;
23603 +beos*)
23604 + library_names_spec='${libname}${shared_ext}'
23605 + dynamic_linker="$host_os ld.so"
23606 + shlibpath_var=LIBRARY_PATH
23607 + ;;
23609 +bsdi[45]*)
23610 + version_type=linux
23611 + need_version=no
23612 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23613 + soname_spec='${libname}${release}${shared_ext}$major'
23614 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23615 + shlibpath_var=LD_LIBRARY_PATH
23616 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23617 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23618 + # the default ld.so.conf also contains /usr/contrib/lib and
23619 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23620 + # libtool to hard-code these into programs
23621 + ;;
23623 +cygwin* | mingw* | pw32*)
23624 + version_type=windows
23625 + shrext_cmds=".dll"
23626 + need_version=no
23627 + need_lib_prefix=no
23629 + case $GCC,$host_os in
23630 + yes,cygwin* | yes,mingw* | yes,pw32*)
23631 + library_names_spec='$libname.dll.a'
23632 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
23633 + postinstall_cmds='base_file=`basename \${file}`~
23634 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23635 + dldir=$destdir/`dirname \$dlpath`~
23636 + test -d \$dldir || mkdir -p \$dldir~
23637 + $install_prog $dir/$dlname \$dldir/$dlname~
23638 + chmod a+x \$dldir/$dlname'
23639 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23640 + dlpath=$dir/\$dldll~
23641 + $rm \$dlpath'
23642 + shlibpath_overrides_runpath=yes
23644 + case $host_os in
23645 + cygwin*)
23646 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23647 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23648 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23649 + ;;
23650 + mingw*)
23651 + # MinGW DLLs use traditional 'lib' prefix
23652 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23653 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23654 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23655 + # It is most probably a Windows format PATH printed by
23656 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
23657 + # path with ; separators, and with drive letters. We can handle the
23658 + # drive letters (cygwin fileutils understands them), so leave them,
23659 + # especially as we might pass files found there to a mingw objdump,
23660 + # which wouldn't understand a cygwinified path. Ahh.
23661 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23662 + else
23663 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23664 + fi
23665 + ;;
23666 + pw32*)
23667 + # pw32 DLLs use 'pw' prefix rather than 'lib'
23668 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23669 + ;;
23670 + esac
23671 + ;;
23673 + *)
23674 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23675 + ;;
23676 + esac
23677 + dynamic_linker='Win32 ld.exe'
23678 + # FIXME: first we should search . and the directory the executable is in
23679 + shlibpath_var=PATH
23680 + ;;
23682 +darwin* | rhapsody*)
23683 + dynamic_linker="$host_os dyld"
23684 + version_type=darwin
23685 + need_lib_prefix=no
23686 + need_version=no
23687 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23688 + soname_spec='${libname}${release}${major}$shared_ext'
23689 + shlibpath_overrides_runpath=yes
23690 + shlibpath_var=DYLD_LIBRARY_PATH
23691 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
23692 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23693 + if test "$GCC" = yes; then
23694 + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
23695 + else
23696 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23697 + fi
23698 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23699 + ;;
23701 +dgux*)
23702 + version_type=linux
23703 + need_lib_prefix=no
23704 + need_version=no
23705 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23706 + soname_spec='${libname}${release}${shared_ext}$major'
23707 + shlibpath_var=LD_LIBRARY_PATH
23708 + ;;
23710 +freebsd1*)
23711 + dynamic_linker=no
23712 + ;;
23714 +kfreebsd*-gnu)
23715 + version_type=linux
23716 + need_lib_prefix=no
23717 + need_version=no
23718 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23719 + soname_spec='${libname}${release}${shared_ext}$major'
23720 + shlibpath_var=LD_LIBRARY_PATH
23721 + shlibpath_overrides_runpath=no
23722 + hardcode_into_libs=yes
23723 + dynamic_linker='GNU ld.so'
23724 + ;;
23726 +freebsd* | dragonfly*)
23727 + # DragonFly does not have aout. When/if they implement a new
23728 + # versioning mechanism, adjust this.
23729 + if test -x /usr/bin/objformat; then
23730 + objformat=`/usr/bin/objformat`
23731 + else
23732 + case $host_os in
23733 + freebsd[123]*) objformat=aout ;;
23734 + *) objformat=elf ;;
23735 + esac
23736 + fi
23737 + version_type=freebsd-$objformat
23738 + case $version_type in
23739 + freebsd-elf*)
23740 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23741 + need_version=no
23742 + need_lib_prefix=no
23743 + ;;
23744 + freebsd-*)
23745 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23746 + need_version=yes
23747 + ;;
23748 + esac
23749 + shlibpath_var=LD_LIBRARY_PATH
23750 + case $host_os in
23751 + freebsd2*)
23752 + shlibpath_overrides_runpath=yes
23753 + ;;
23754 + freebsd3.[01]* | freebsdelf3.[01]*)
23755 + shlibpath_overrides_runpath=yes
23756 + hardcode_into_libs=yes
23757 + ;;
23758 + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23759 + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23760 + shlibpath_overrides_runpath=no
23761 + hardcode_into_libs=yes
23762 + ;;
23763 + freebsd*) # from 4.6 on
23764 + shlibpath_overrides_runpath=yes
23765 + hardcode_into_libs=yes
23766 + ;;
23767 + esac
23768 + ;;
23770 +gnu*)
23771 + version_type=linux
23772 + need_lib_prefix=no
23773 + need_version=no
23774 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23775 + soname_spec='${libname}${release}${shared_ext}$major'
23776 + shlibpath_var=LD_LIBRARY_PATH
23777 + hardcode_into_libs=yes
23778 + ;;
23780 +hpux9* | hpux10* | hpux11*)
23781 + # Give a soname corresponding to the major version so that dld.sl refuses to
23782 + # link against other versions.
23783 + version_type=sunos
23784 + need_lib_prefix=no
23785 + need_version=no
23786 + case $host_cpu in
23787 + ia64*)
23788 + shrext_cmds='.so'
23789 + hardcode_into_libs=yes
23790 + dynamic_linker="$host_os dld.so"
23791 + shlibpath_var=LD_LIBRARY_PATH
23792 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23793 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23794 + soname_spec='${libname}${release}${shared_ext}$major'
23795 + if test "X$HPUX_IA64_MODE" = X32; then
23796 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23797 + else
23798 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23799 + fi
23800 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23801 + ;;
23802 + hppa*64*)
23803 + shrext_cmds='.sl'
23804 + hardcode_into_libs=yes
23805 + dynamic_linker="$host_os dld.sl"
23806 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23807 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23808 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23809 + soname_spec='${libname}${release}${shared_ext}$major'
23810 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23811 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23812 + ;;
23813 + *)
23814 + shrext_cmds='.sl'
23815 + dynamic_linker="$host_os dld.sl"
23816 + shlibpath_var=SHLIB_PATH
23817 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23818 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23819 + soname_spec='${libname}${release}${shared_ext}$major'
23820 + ;;
23821 + esac
23822 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
23823 + postinstall_cmds='chmod 555 $lib'
23824 + ;;
23826 +interix3*)
23827 + version_type=linux
23828 + need_lib_prefix=no
23829 + need_version=no
23830 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23831 + soname_spec='${libname}${release}${shared_ext}$major'
23832 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23833 + shlibpath_var=LD_LIBRARY_PATH
23834 + shlibpath_overrides_runpath=no
23835 + hardcode_into_libs=yes
23836 + ;;
23838 +irix5* | irix6* | nonstopux*)
23839 + case $host_os in
23840 + nonstopux*) version_type=nonstopux ;;
23841 + *)
23842 + if test "$lt_cv_prog_gnu_ld" = yes; then
23843 + version_type=linux
23844 + else
23845 + version_type=irix
23846 + fi ;;
23847 + esac
23848 + need_lib_prefix=no
23849 + need_version=no
23850 + soname_spec='${libname}${release}${shared_ext}$major'
23851 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23852 + case $host_os in
23853 + irix5* | nonstopux*)
23854 + libsuff= shlibsuff=
23855 + ;;
23856 + *)
23857 + case $LD in # libtool.m4 will add one of these switches to LD
23858 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23859 + libsuff= shlibsuff= libmagic=32-bit;;
23860 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23861 + libsuff=32 shlibsuff=N32 libmagic=N32;;
23862 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23863 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
23864 + *) libsuff= shlibsuff= libmagic=never-match;;
23865 + esac
23866 + ;;
23867 + esac
23868 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23869 + shlibpath_overrides_runpath=no
23870 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23871 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23872 + hardcode_into_libs=yes
23873 + ;;
23875 +# No shared lib support for Linux oldld, aout, or coff.
23876 +linux*oldld* | linux*aout* | linux*coff*)
23877 + dynamic_linker=no
23878 + ;;
23880 +# This must be Linux ELF.
23881 +linux*)
23882 + version_type=linux
23883 + need_lib_prefix=no
23884 + need_version=no
23885 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23886 + soname_spec='${libname}${release}${shared_ext}$major'
23887 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23888 + shlibpath_var=LD_LIBRARY_PATH
23889 + shlibpath_overrides_runpath=no
23890 + # This implies no fast_install, which is unacceptable.
23891 + # Some rework will be needed to allow for fast_install
23892 + # before this can be enabled.
23893 + hardcode_into_libs=yes
23895 + # Append ld.so.conf contents to the search path
23896 + if test -f /etc/ld.so.conf; then
23897 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
23898 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23899 + fi
23901 + # We used to test for /lib/ld.so.1 and disable shared libraries on
23902 + # powerpc, because MkLinux only supported shared libraries with the
23903 + # GNU dynamic linker. Since this was broken with cross compilers,
23904 + # most powerpc-linux boxes support dynamic linking these days and
23905 + # people can always --disable-shared, the test was removed, and we
23906 + # assume the GNU/Linux dynamic linker is in use.
23907 + dynamic_linker='GNU/Linux ld.so'
23908 + ;;
23910 +netbsdelf*-gnu)
23911 + version_type=linux
23912 + need_lib_prefix=no
23913 + need_version=no
23914 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23915 + soname_spec='${libname}${release}${shared_ext}$major'
23916 + shlibpath_var=LD_LIBRARY_PATH
23917 + shlibpath_overrides_runpath=no
23918 + hardcode_into_libs=yes
23919 + dynamic_linker='NetBSD ld.elf_so'
23920 + ;;
23922 +knetbsd*-gnu)
23923 + version_type=linux
23924 + need_lib_prefix=no
23925 + need_version=no
23926 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23927 + soname_spec='${libname}${release}${shared_ext}$major'
23928 + shlibpath_var=LD_LIBRARY_PATH
23929 + shlibpath_overrides_runpath=no
23930 + hardcode_into_libs=yes
23931 + dynamic_linker='GNU ld.so'
23932 + ;;
23934 +netbsd*)
23935 + version_type=sunos
23936 + need_lib_prefix=no
23937 + need_version=no
23938 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23939 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23940 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23941 + dynamic_linker='NetBSD (a.out) ld.so'
23942 + else
23943 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23944 + soname_spec='${libname}${release}${shared_ext}$major'
23945 + dynamic_linker='NetBSD ld.elf_so'
23946 + fi
23947 + shlibpath_var=LD_LIBRARY_PATH
23948 + shlibpath_overrides_runpath=yes
23949 + hardcode_into_libs=yes
23950 + ;;
23952 +newsos6)
23953 + version_type=linux
23954 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23955 + shlibpath_var=LD_LIBRARY_PATH
23956 + shlibpath_overrides_runpath=yes
23957 + ;;
23959 +nto-qnx*)
23960 + version_type=linux
23961 + need_lib_prefix=no
23962 + need_version=no
23963 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23964 + soname_spec='${libname}${release}${shared_ext}$major'
23965 + shlibpath_var=LD_LIBRARY_PATH
23966 + shlibpath_overrides_runpath=yes
23967 + ;;
23969 +openbsd*)
23970 + version_type=sunos
23971 + sys_lib_dlsearch_path_spec="/usr/lib"
23972 + need_lib_prefix=no
23973 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23974 + case $host_os in
23975 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23976 + *) need_version=no ;;
23977 + esac
23978 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23979 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23980 + shlibpath_var=LD_LIBRARY_PATH
23981 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23982 + case $host_os in
23983 + openbsd2.[89] | openbsd2.[89].*)
23984 + shlibpath_overrides_runpath=no
23985 + ;;
23986 + *)
23987 + shlibpath_overrides_runpath=yes
23988 + ;;
23989 + esac
23990 + else
23991 + shlibpath_overrides_runpath=yes
23992 + fi
23993 + ;;
23995 +os2*)
23996 + libname_spec='$name'
23997 + shrext_cmds=".dll"
23998 + need_lib_prefix=no
23999 + library_names_spec='$libname${shared_ext} $libname.a'
24000 + dynamic_linker='OS/2 ld.exe'
24001 + shlibpath_var=LIBPATH
24002 + ;;
24004 +osf3* | osf4* | osf5*)
24005 + version_type=osf
24006 + need_lib_prefix=no
24007 + need_version=no
24008 + soname_spec='${libname}${release}${shared_ext}$major'
24009 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24010 + shlibpath_var=LD_LIBRARY_PATH
24011 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24012 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24013 + ;;
24015 +solaris*)
24016 + version_type=linux
24017 + need_lib_prefix=no
24018 + need_version=no
24019 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24020 + soname_spec='${libname}${release}${shared_ext}$major'
24021 + shlibpath_var=LD_LIBRARY_PATH
24022 + shlibpath_overrides_runpath=yes
24023 + hardcode_into_libs=yes
24024 + # ldd complains unless libraries are executable
24025 + postinstall_cmds='chmod +x $lib'
24026 + ;;
24028 +sunos4*)
24029 + version_type=sunos
24030 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24031 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24032 + shlibpath_var=LD_LIBRARY_PATH
24033 + shlibpath_overrides_runpath=yes
24034 + if test "$with_gnu_ld" = yes; then
24035 + need_lib_prefix=no
24036 + fi
24037 + need_version=yes
24038 + ;;
24040 +sysv4 | sysv4.3*)
24041 + version_type=linux
24042 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24043 + soname_spec='${libname}${release}${shared_ext}$major'
24044 + shlibpath_var=LD_LIBRARY_PATH
24045 + case $host_vendor in
24046 + sni)
24047 + shlibpath_overrides_runpath=no
24048 + need_lib_prefix=no
24049 + export_dynamic_flag_spec='${wl}-Blargedynsym'
24050 + runpath_var=LD_RUN_PATH
24051 + ;;
24052 + siemens)
24053 + need_lib_prefix=no
24054 + ;;
24055 + motorola)
24056 + need_lib_prefix=no
24057 + need_version=no
24058 + shlibpath_overrides_runpath=no
24059 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24060 + ;;
24061 + esac
24062 + ;;
24064 +sysv4*MP*)
24065 + if test -d /usr/nec ;then
24066 + version_type=linux
24067 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24068 + soname_spec='$libname${shared_ext}.$major'
24069 + shlibpath_var=LD_LIBRARY_PATH
24070 + fi
24071 + ;;
24073 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24074 + version_type=freebsd-elf
24075 + need_lib_prefix=no
24076 + need_version=no
24077 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24078 + soname_spec='${libname}${release}${shared_ext}$major'
24079 + shlibpath_var=LD_LIBRARY_PATH
24080 + hardcode_into_libs=yes
24081 + if test "$with_gnu_ld" = yes; then
24082 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24083 + shlibpath_overrides_runpath=no
24084 + else
24085 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24086 + shlibpath_overrides_runpath=yes
24087 + case $host_os in
24088 + sco3.2v5*)
24089 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24090 + ;;
24091 + esac
24092 + fi
24093 + sys_lib_dlsearch_path_spec='/usr/lib'
24094 + ;;
24096 +uts4*)
24097 + version_type=linux
24098 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24099 + soname_spec='${libname}${release}${shared_ext}$major'
24100 + shlibpath_var=LD_LIBRARY_PATH
24101 + ;;
24104 + dynamic_linker=no
24105 + ;;
24106 +esac
24107 +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24108 +echo "${ECHO_T}$dynamic_linker" >&6
24109 +test "$dynamic_linker" = no && can_build_shared=no
24111 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24112 +if test "$GCC" = yes; then
24113 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24116 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24117 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
24118 +hardcode_action_F77=
24119 +if test -n "$hardcode_libdir_flag_spec_F77" || \
24120 + test -n "$runpath_var_F77" || \
24121 + test "X$hardcode_automatic_F77" = "Xyes" ; then
24123 + # We can hardcode non-existant directories.
24124 + if test "$hardcode_direct_F77" != no &&
24125 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
24126 + # have to relink, otherwise we might link with an installed library
24127 + # when we should be linking with a yet-to-be-installed one
24128 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
24129 + test "$hardcode_minus_L_F77" != no; then
24130 + # Linking always hardcodes the temporary library directory.
24131 + hardcode_action_F77=relink
24132 + else
24133 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
24134 + hardcode_action_F77=immediate
24135 + fi
24136 +else
24137 + # We cannot hardcode anything, or else we can only hardcode existing
24138 + # directories.
24139 + hardcode_action_F77=unsupported
24141 +echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
24142 +echo "${ECHO_T}$hardcode_action_F77" >&6
24144 +if test "$hardcode_action_F77" = relink; then
24145 + # Fast installation is not supported
24146 + enable_fast_install=no
24147 +elif test "$shlibpath_overrides_runpath" = yes ||
24148 + test "$enable_shared" = no; then
24149 + # Fast installation is not necessary
24150 + enable_fast_install=needless
24154 +# The else clause should only fire when bootstrapping the
24155 +# libtool distribution, otherwise you forgot to ship ltmain.sh
24156 +# with your package, and you will get complaints that there are
24157 +# no rules to generate ltmain.sh.
24158 +if test -f "$ltmain"; then
24159 + # See if we are running on zsh, and set the options which allow our commands through
24160 + # without removal of \ escapes.
24161 + if test -n "${ZSH_VERSION+set}" ; then
24162 + setopt NO_GLOB_SUBST
24163 + fi
24164 + # Now quote all the things that may contain metacharacters while being
24165 + # careful not to overquote the AC_SUBSTed values. We take copies of the
24166 + # variables and quote the copies for generation of the libtool script.
24167 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
24168 + SED SHELL STRIP \
24169 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24170 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24171 + deplibs_check_method reload_flag reload_cmds need_locks \
24172 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24173 + lt_cv_sys_global_symbol_to_c_name_address \
24174 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24175 + old_postinstall_cmds old_postuninstall_cmds \
24176 + compiler_F77 \
24177 + CC_F77 \
24178 + LD_F77 \
24179 + lt_prog_compiler_wl_F77 \
24180 + lt_prog_compiler_pic_F77 \
24181 + lt_prog_compiler_static_F77 \
24182 + lt_prog_compiler_no_builtin_flag_F77 \
24183 + export_dynamic_flag_spec_F77 \
24184 + thread_safe_flag_spec_F77 \
24185 + whole_archive_flag_spec_F77 \
24186 + enable_shared_with_static_runtimes_F77 \
24187 + old_archive_cmds_F77 \
24188 + old_archive_from_new_cmds_F77 \
24189 + predep_objects_F77 \
24190 + postdep_objects_F77 \
24191 + predeps_F77 \
24192 + postdeps_F77 \
24193 + compiler_lib_search_path_F77 \
24194 + archive_cmds_F77 \
24195 + archive_expsym_cmds_F77 \
24196 + postinstall_cmds_F77 \
24197 + postuninstall_cmds_F77 \
24198 + old_archive_from_expsyms_cmds_F77 \
24199 + allow_undefined_flag_F77 \
24200 + no_undefined_flag_F77 \
24201 + export_symbols_cmds_F77 \
24202 + hardcode_libdir_flag_spec_F77 \
24203 + hardcode_libdir_flag_spec_ld_F77 \
24204 + hardcode_libdir_separator_F77 \
24205 + hardcode_automatic_F77 \
24206 + module_cmds_F77 \
24207 + module_expsym_cmds_F77 \
24208 + lt_cv_prog_compiler_c_o_F77 \
24209 + exclude_expsyms_F77 \
24210 + include_expsyms_F77; do
24212 + case $var in
24213 + old_archive_cmds_F77 | \
24214 + old_archive_from_new_cmds_F77 | \
24215 + archive_cmds_F77 | \
24216 + archive_expsym_cmds_F77 | \
24217 + module_cmds_F77 | \
24218 + module_expsym_cmds_F77 | \
24219 + old_archive_from_expsyms_cmds_F77 | \
24220 + export_symbols_cmds_F77 | \
24221 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
24222 + postinstall_cmds | postuninstall_cmds | \
24223 + old_postinstall_cmds | old_postuninstall_cmds | \
24224 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24225 + # Double-quote double-evaled strings.
24226 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24227 + ;;
24228 + *)
24229 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24230 + ;;
24231 + esac
24232 + done
24234 + case $lt_echo in
24235 + *'\$0 --fallback-echo"')
24236 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24237 + ;;
24238 + esac
24240 +cfgfile="$ofile"
24242 + cat <<__EOF__ >> "$cfgfile"
24243 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24245 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24247 +# Shell to use when invoking shell scripts.
24248 +SHELL=$lt_SHELL
24250 +# Whether or not to build shared libraries.
24251 +build_libtool_libs=$enable_shared
24253 +# Whether or not to build static libraries.
24254 +build_old_libs=$enable_static
24256 +# Whether or not to add -lc for building shared libraries.
24257 +build_libtool_need_lc=$archive_cmds_need_lc_F77
24259 +# Whether or not to disallow shared libs when runtime libs are static
24260 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
24262 +# Whether or not to optimize for fast installation.
24263 +fast_install=$enable_fast_install
24265 +# The host system.
24266 +host_alias=$host_alias
24267 +host=$host
24268 +host_os=$host_os
24270 +# The build system.
24271 +build_alias=$build_alias
24272 +build=$build
24273 +build_os=$build_os
24275 +# An echo program that does not interpret backslashes.
24276 +echo=$lt_echo
24278 +# The archiver.
24279 +AR=$lt_AR
24280 +AR_FLAGS=$lt_AR_FLAGS
24282 +# A C compiler.
24283 +LTCC=$lt_LTCC
24285 +# LTCC compiler flags.
24286 +LTCFLAGS=$lt_LTCFLAGS
24288 +# A language-specific compiler.
24289 +CC=$lt_compiler_F77
24291 +# Is the compiler the GNU C compiler?
24292 +with_gcc=$GCC_F77
24294 +# An ERE matcher.
24295 +EGREP=$lt_EGREP
24297 +# The linker used to build libraries.
24298 +LD=$lt_LD_F77
24300 +# Whether we need hard or soft links.
24301 +LN_S=$lt_LN_S
24303 +# A BSD-compatible nm program.
24304 +NM=$lt_NM
24306 +# A symbol stripping program
24307 +STRIP=$lt_STRIP
24309 +# Used to examine libraries when file_magic_cmd begins "file"
24310 +MAGIC_CMD=$MAGIC_CMD
24312 +# Used on cygwin: DLL creation program.
24313 +DLLTOOL="$DLLTOOL"
24315 +# Used on cygwin: object dumper.
24316 +OBJDUMP="$OBJDUMP"
24318 +# Used on cygwin: assembler.
24319 +AS="$AS"
24321 +# The name of the directory that contains temporary libtool files.
24322 +objdir=$objdir
24324 +# How to create reloadable object files.
24325 +reload_flag=$lt_reload_flag
24326 +reload_cmds=$lt_reload_cmds
24328 +# How to pass a linker flag through the compiler.
24329 +wl=$lt_lt_prog_compiler_wl_F77
24331 +# Object file suffix (normally "o").
24332 +objext="$ac_objext"
24334 +# Old archive suffix (normally "a").
24335 +libext="$libext"
24337 +# Shared library suffix (normally ".so").
24338 +shrext_cmds='$shrext_cmds'
24340 +# Executable file suffix (normally "").
24341 +exeext="$exeext"
24343 +# Additional compiler flags for building library objects.
24344 +pic_flag=$lt_lt_prog_compiler_pic_F77
24345 +pic_mode=$pic_mode
24347 +# What is the maximum length of a command?
24348 +max_cmd_len=$lt_cv_sys_max_cmd_len
24350 +# Does compiler simultaneously support -c and -o options?
24351 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
24353 +# Must we lock files when doing compilation?
24354 +need_locks=$lt_need_locks
24356 +# Do we need the lib prefix for modules?
24357 +need_lib_prefix=$need_lib_prefix
24359 +# Do we need a version for libraries?
24360 +need_version=$need_version
24362 +# Whether dlopen is supported.
24363 +dlopen_support=$enable_dlopen
24365 +# Whether dlopen of programs is supported.
24366 +dlopen_self=$enable_dlopen_self
24368 +# Whether dlopen of statically linked programs is supported.
24369 +dlopen_self_static=$enable_dlopen_self_static
24371 +# Compiler flag to prevent dynamic linking.
24372 +link_static_flag=$lt_lt_prog_compiler_static_F77
24374 +# Compiler flag to turn off builtin functions.
24375 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
24377 +# Compiler flag to allow reflexive dlopens.
24378 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
24380 +# Compiler flag to generate shared objects directly from archives.
24381 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
24383 +# Compiler flag to generate thread-safe objects.
24384 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
24386 +# Library versioning type.
24387 +version_type=$version_type
24389 +# Format of library name prefix.
24390 +libname_spec=$lt_libname_spec
24392 +# List of archive names. First name is the real one, the rest are links.
24393 +# The last name is the one that the linker finds with -lNAME.
24394 +library_names_spec=$lt_library_names_spec
24396 +# The coded name of the library, if different from the real name.
24397 +soname_spec=$lt_soname_spec
24399 +# Commands used to build and install an old-style archive.
24400 +RANLIB=$lt_RANLIB
24401 +old_archive_cmds=$lt_old_archive_cmds_F77
24402 +old_postinstall_cmds=$lt_old_postinstall_cmds
24403 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
24405 +# Create an old-style archive from a shared archive.
24406 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
24408 +# Create a temporary old-style archive to link instead of a shared archive.
24409 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
24411 +# Commands used to build and install a shared archive.
24412 +archive_cmds=$lt_archive_cmds_F77
24413 +archive_expsym_cmds=$lt_archive_expsym_cmds_F77
24414 +postinstall_cmds=$lt_postinstall_cmds
24415 +postuninstall_cmds=$lt_postuninstall_cmds
24417 +# Commands used to build a loadable module (assumed same as above if empty)
24418 +module_cmds=$lt_module_cmds_F77
24419 +module_expsym_cmds=$lt_module_expsym_cmds_F77
24421 +# Commands to strip libraries.
24422 +old_striplib=$lt_old_striplib
24423 +striplib=$lt_striplib
24425 +# Dependencies to place before the objects being linked to create a
24426 +# shared library.
24427 +predep_objects=$lt_predep_objects_F77
24429 +# Dependencies to place after the objects being linked to create a
24430 +# shared library.
24431 +postdep_objects=$lt_postdep_objects_F77
24433 +# Dependencies to place before the objects being linked to create a
24434 +# shared library.
24435 +predeps=$lt_predeps_F77
24437 +# Dependencies to place after the objects being linked to create a
24438 +# shared library.
24439 +postdeps=$lt_postdeps_F77
24441 +# The library search path used internally by the compiler when linking
24442 +# a shared library.
24443 +compiler_lib_search_path=$lt_compiler_lib_search_path_F77
24445 +# Method to check whether dependent libraries are shared objects.
24446 +deplibs_check_method=$lt_deplibs_check_method
24448 +# Command to use when deplibs_check_method == file_magic.
24449 +file_magic_cmd=$lt_file_magic_cmd
24451 +# Flag that allows shared libraries with undefined symbols to be built.
24452 +allow_undefined_flag=$lt_allow_undefined_flag_F77
24454 +# Flag that forces no undefined symbols.
24455 +no_undefined_flag=$lt_no_undefined_flag_F77
24457 +# Commands used to finish a libtool library installation in a directory.
24458 +finish_cmds=$lt_finish_cmds
24460 +# Same as above, but a single script fragment to be evaled but not shown.
24461 +finish_eval=$lt_finish_eval
24463 +# Take the output of nm and produce a listing of raw symbols and C names.
24464 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24466 +# Transform the output of nm in a proper C declaration
24467 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24469 +# Transform the output of nm in a C name address pair
24470 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24472 +# This is the shared library runtime path variable.
24473 +runpath_var=$runpath_var
24475 +# This is the shared library path variable.
24476 +shlibpath_var=$shlibpath_var
24478 +# Is shlibpath searched before the hard-coded library search path?
24479 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24481 +# How to hardcode a shared library path into an executable.
24482 +hardcode_action=$hardcode_action_F77
24484 +# Whether we should hardcode library paths into libraries.
24485 +hardcode_into_libs=$hardcode_into_libs
24487 +# Flag to hardcode \$libdir into a binary during linking.
24488 +# This must work even if \$libdir does not exist.
24489 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24491 +# If ld is used when linking, flag to hardcode \$libdir into
24492 +# a binary during linking. This must work even if \$libdir does
24493 +# not exist.
24494 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24496 +# Whether we need a single -rpath flag with a separated argument.
24497 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24499 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24500 +# resulting binary.
24501 +hardcode_direct=$hardcode_direct_F77
24503 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24504 +# resulting binary.
24505 +hardcode_minus_L=$hardcode_minus_L_F77
24507 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24508 +# the resulting binary.
24509 +hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24511 +# Set to yes if building a shared library automatically hardcodes DIR into the library
24512 +# and all subsequent libraries and executables linked against it.
24513 +hardcode_automatic=$hardcode_automatic_F77
24515 +# Variables whose values should be saved in libtool wrapper scripts and
24516 +# restored at relink time.
24517 +variables_saved_for_relink="$variables_saved_for_relink"
24519 +# Whether libtool must link a program against all its dependency libraries.
24520 +link_all_deplibs=$link_all_deplibs_F77
24522 +# Compile-time system search path for libraries
24523 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24525 +# Run-time system search path for libraries
24526 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24528 +# Fix the shell variable \$srcfile for the compiler.
24529 +fix_srcfile_path="$fix_srcfile_path_F77"
24531 +# Set to yes if exported symbols are required.
24532 +always_export_symbols=$always_export_symbols_F77
24534 +# The commands to list exported symbols.
24535 +export_symbols_cmds=$lt_export_symbols_cmds_F77
24537 +# The commands to extract the exported symbol list from a shared archive.
24538 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
24540 +# Symbols that should not be listed in the preloaded symbols.
24541 +exclude_expsyms=$lt_exclude_expsyms_F77
24543 +# Symbols that must always be exported.
24544 +include_expsyms=$lt_include_expsyms_F77
24546 +# ### END LIBTOOL TAG CONFIG: $tagname
24548 +__EOF__
24551 +else
24552 + # If there is no Makefile yet, we rely on a make rule to execute
24553 + # `config.status --recheck' to rerun these tests and create the
24554 + # libtool script then.
24555 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24556 + if test -f "$ltmain_in"; then
24557 + test -f Makefile && make "$ltmain"
24558 + fi
24562 +ac_ext=c
24563 +ac_cpp='$CPP $CPPFLAGS'
24564 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24565 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24566 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
24568 +CC="$lt_save_CC"
24570 + else
24571 + tagname=""
24572 + fi
24573 + ;;
24575 + GCJ)
24576 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24580 +# Source file extension for Java test sources.
24581 +ac_ext=java
24583 +# Object file extension for compiled Java test sources.
24584 +objext=o
24585 +objext_GCJ=$objext
24587 +# Code to be used in simple compile tests
24588 +lt_simple_compile_test_code="class foo {}\n"
24590 +# Code to be used in simple link tests
24591 +lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24593 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24595 +# If no C compiler was specified, use CC.
24596 +LTCC=${LTCC-"$CC"}
24598 +# If no C compiler flags were specified, use CFLAGS.
24599 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24601 +# Allow CC to be a program name with arguments.
24602 +compiler=$CC
24605 +# save warnings/boilerplate of simple test code
24606 +ac_outfile=conftest.$ac_objext
24607 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24608 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24609 +_lt_compiler_boilerplate=`cat conftest.err`
24610 +$rm conftest*
24612 +ac_outfile=conftest.$ac_objext
24613 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
24614 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24615 +_lt_linker_boilerplate=`cat conftest.err`
24616 +$rm conftest*
24619 +# Allow CC to be a program name with arguments.
24620 +lt_save_CC="$CC"
24621 +CC=${GCJ-"gcj"}
24622 +compiler=$CC
24623 +compiler_GCJ=$CC
24624 +for cc_temp in $compiler""; do
24625 + case $cc_temp in
24626 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24627 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24628 + \-*) ;;
24629 + *) break;;
24630 + esac
24631 +done
24632 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24635 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
24636 +archive_cmds_need_lc_GCJ=no
24638 +old_archive_cmds_GCJ=$old_archive_cmds
24641 +lt_prog_compiler_no_builtin_flag_GCJ=
24643 +if test "$GCC" = yes; then
24644 + lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24647 +echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24648 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
24649 +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24650 + echo $ECHO_N "(cached) $ECHO_C" >&6
24651 +else
24652 + lt_cv_prog_compiler_rtti_exceptions=no
24653 + ac_outfile=conftest.$ac_objext
24654 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24655 + lt_compiler_flag="-fno-rtti -fno-exceptions"
24656 + # Insert the option either (1) after the last *FLAGS variable, or
24657 + # (2) before a word containing "conftest.", or (3) at the end.
24658 + # Note that $ac_compile itself does not contain backslashes and begins
24659 + # with a dollar sign (not a hyphen), so the echo should work correctly.
24660 + # The option is referenced via a variable to avoid confusing sed.
24661 + lt_compile=`echo "$ac_compile" | $SED \
24662 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24663 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24664 + -e 's:$: $lt_compiler_flag:'`
24665 + (eval echo "\"\$as_me:15157: $lt_compile\"" >&5)
24666 + (eval "$lt_compile" 2>conftest.err)
24667 + ac_status=$?
24668 + cat conftest.err >&5
24669 + echo "$as_me:15161: \$? = $ac_status" >&5
24670 + if (exit $ac_status) && test -s "$ac_outfile"; then
24671 + # The compiler can only warn and ignore the option if not recognized
24672 + # So say no if there are warnings other than the usual output.
24673 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24674 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24675 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24676 + lt_cv_prog_compiler_rtti_exceptions=yes
24677 + fi
24678 + fi
24679 + $rm conftest*
24682 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24683 +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
24685 +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24686 + lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24687 +else
24693 +lt_prog_compiler_wl_GCJ=
24694 +lt_prog_compiler_pic_GCJ=
24695 +lt_prog_compiler_static_GCJ=
24697 +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24698 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
24700 + if test "$GCC" = yes; then
24701 + lt_prog_compiler_wl_GCJ='-Wl,'
24702 + lt_prog_compiler_static_GCJ='-static'
24704 + case $host_os in
24705 + aix*)
24706 + # All AIX code is PIC.
24707 + if test "$host_cpu" = ia64; then
24708 + # AIX 5 now supports IA64 processor
24709 + lt_prog_compiler_static_GCJ='-Bstatic'
24710 + fi
24711 + ;;
24713 + amigaos*)
24714 + # FIXME: we need at least 68020 code to build shared libraries, but
24715 + # adding the `-m68020' flag to GCC prevents building anything better,
24716 + # like `-m68040'.
24717 + lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24718 + ;;
24720 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24721 + # PIC is the default for these OSes.
24722 + ;;
24724 + mingw* | pw32* | os2*)
24725 + # This hack is so that the source file can tell whether it is being
24726 + # built for inclusion in a dll (and should export symbols for example).
24727 + lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24728 + ;;
24730 + darwin* | rhapsody*)
24731 + # PIC is the default on this platform
24732 + # Common symbols not allowed in MH_DYLIB files
24733 + lt_prog_compiler_pic_GCJ='-fno-common'
24734 + ;;
24736 + interix3*)
24737 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24738 + # Instead, we relocate shared libraries at runtime.
24739 + ;;
24741 + msdosdjgpp*)
24742 + # Just because we use GCC doesn't mean we suddenly get shared libraries
24743 + # on systems that don't support them.
24744 + lt_prog_compiler_can_build_shared_GCJ=no
24745 + enable_shared=no
24746 + ;;
24748 + sysv4*MP*)
24749 + if test -d /usr/nec; then
24750 + lt_prog_compiler_pic_GCJ=-Kconform_pic
24751 + fi
24752 + ;;
24754 + hpux*)
24755 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24756 + # not for PA HP-UX.
24757 + case $host_cpu in
24758 + hppa*64*|ia64*)
24759 + # +Z the default
24760 + ;;
24761 + *)
24762 + lt_prog_compiler_pic_GCJ='-fPIC'
24763 + ;;
24764 + esac
24765 + ;;
24767 + *)
24768 + lt_prog_compiler_pic_GCJ='-fPIC'
24769 + ;;
24770 + esac
24771 + else
24772 + # PORTME Check for flag to pass linker flags through the system compiler.
24773 + case $host_os in
24774 + aix*)
24775 + lt_prog_compiler_wl_GCJ='-Wl,'
24776 + if test "$host_cpu" = ia64; then
24777 + # AIX 5 now supports IA64 processor
24778 + lt_prog_compiler_static_GCJ='-Bstatic'
24779 + else
24780 + lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24781 + fi
24782 + ;;
24783 + darwin*)
24784 + # PIC is the default on this platform
24785 + # Common symbols not allowed in MH_DYLIB files
24786 + case $cc_basename in
24787 + xlc*)
24788 + lt_prog_compiler_pic_GCJ='-qnocommon'
24789 + lt_prog_compiler_wl_GCJ='-Wl,'
24790 + ;;
24791 + esac
24792 + ;;
24794 + mingw* | pw32* | os2*)
24795 + # This hack is so that the source file can tell whether it is being
24796 + # built for inclusion in a dll (and should export symbols for example).
24797 + lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24798 + ;;
24800 + hpux9* | hpux10* | hpux11*)
24801 + lt_prog_compiler_wl_GCJ='-Wl,'
24802 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24803 + # not for PA HP-UX.
24804 + case $host_cpu in
24805 + hppa*64*|ia64*)
24806 + # +Z the default
24807 + ;;
24808 + *)
24809 + lt_prog_compiler_pic_GCJ='+Z'
24810 + ;;
24811 + esac
24812 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
24813 + lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24814 + ;;
24816 + irix5* | irix6* | nonstopux*)
24817 + lt_prog_compiler_wl_GCJ='-Wl,'
24818 + # PIC (with -KPIC) is the default.
24819 + lt_prog_compiler_static_GCJ='-non_shared'
24820 + ;;
24822 + newsos6)
24823 + lt_prog_compiler_pic_GCJ='-KPIC'
24824 + lt_prog_compiler_static_GCJ='-Bstatic'
24825 + ;;
24827 + linux*)
24828 + case $cc_basename in
24829 + icc* | ecc*)
24830 + lt_prog_compiler_wl_GCJ='-Wl,'
24831 + lt_prog_compiler_pic_GCJ='-KPIC'
24832 + lt_prog_compiler_static_GCJ='-static'
24833 + ;;
24834 + pgcc* | pgf77* | pgf90* | pgf95*)
24835 + # Portland Group compilers (*not* the Pentium gcc compiler,
24836 + # which looks to be a dead project)
24837 + lt_prog_compiler_wl_GCJ='-Wl,'
24838 + lt_prog_compiler_pic_GCJ='-fpic'
24839 + lt_prog_compiler_static_GCJ='-Bstatic'
24840 + ;;
24841 + ccc*)
24842 + lt_prog_compiler_wl_GCJ='-Wl,'
24843 + # All Alpha code is PIC.
24844 + lt_prog_compiler_static_GCJ='-non_shared'
24845 + ;;
24846 + esac
24847 + ;;
24849 + osf3* | osf4* | osf5*)
24850 + lt_prog_compiler_wl_GCJ='-Wl,'
24851 + # All OSF/1 code is PIC.
24852 + lt_prog_compiler_static_GCJ='-non_shared'
24853 + ;;
24855 + solaris*)
24856 + lt_prog_compiler_pic_GCJ='-KPIC'
24857 + lt_prog_compiler_static_GCJ='-Bstatic'
24858 + case $cc_basename in
24859 + f77* | f90* | f95*)
24860 + lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24861 + *)
24862 + lt_prog_compiler_wl_GCJ='-Wl,';;
24863 + esac
24864 + ;;
24866 + sunos4*)
24867 + lt_prog_compiler_wl_GCJ='-Qoption ld '
24868 + lt_prog_compiler_pic_GCJ='-PIC'
24869 + lt_prog_compiler_static_GCJ='-Bstatic'
24870 + ;;
24872 + sysv4 | sysv4.2uw2* | sysv4.3*)
24873 + lt_prog_compiler_wl_GCJ='-Wl,'
24874 + lt_prog_compiler_pic_GCJ='-KPIC'
24875 + lt_prog_compiler_static_GCJ='-Bstatic'
24876 + ;;
24878 + sysv4*MP*)
24879 + if test -d /usr/nec ;then
24880 + lt_prog_compiler_pic_GCJ='-Kconform_pic'
24881 + lt_prog_compiler_static_GCJ='-Bstatic'
24882 + fi
24883 + ;;
24885 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24886 + lt_prog_compiler_wl_GCJ='-Wl,'
24887 + lt_prog_compiler_pic_GCJ='-KPIC'
24888 + lt_prog_compiler_static_GCJ='-Bstatic'
24889 + ;;
24891 + unicos*)
24892 + lt_prog_compiler_wl_GCJ='-Wl,'
24893 + lt_prog_compiler_can_build_shared_GCJ=no
24894 + ;;
24896 + uts4*)
24897 + lt_prog_compiler_pic_GCJ='-pic'
24898 + lt_prog_compiler_static_GCJ='-Bstatic'
24899 + ;;
24901 + *)
24902 + lt_prog_compiler_can_build_shared_GCJ=no
24903 + ;;
24904 + esac
24905 + fi
24907 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24908 +echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
24911 +# Check to make sure the PIC flag actually works.
24913 +if test -n "$lt_prog_compiler_pic_GCJ"; then
24915 +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24916 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
24917 +if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24918 + echo $ECHO_N "(cached) $ECHO_C" >&6
24919 +else
24920 + lt_prog_compiler_pic_works_GCJ=no
24921 + ac_outfile=conftest.$ac_objext
24922 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24923 + lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24924 + # Insert the option either (1) after the last *FLAGS variable, or
24925 + # (2) before a word containing "conftest.", or (3) at the end.
24926 + # Note that $ac_compile itself does not contain backslashes and begins
24927 + # with a dollar sign (not a hyphen), so the echo should work correctly.
24928 + # The option is referenced via a variable to avoid confusing sed.
24929 + lt_compile=`echo "$ac_compile" | $SED \
24930 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24931 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24932 + -e 's:$: $lt_compiler_flag:'`
24933 + (eval echo "\"\$as_me:15425: $lt_compile\"" >&5)
24934 + (eval "$lt_compile" 2>conftest.err)
24935 + ac_status=$?
24936 + cat conftest.err >&5
24937 + echo "$as_me:15429: \$? = $ac_status" >&5
24938 + if (exit $ac_status) && test -s "$ac_outfile"; then
24939 + # The compiler can only warn and ignore the option if not recognized
24940 + # So say no if there are warnings other than the usual output.
24941 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24942 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24943 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24944 + lt_prog_compiler_pic_works_GCJ=yes
24945 + fi
24946 + fi
24947 + $rm conftest*
24950 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24951 +echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
24953 +if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24954 + case $lt_prog_compiler_pic_GCJ in
24955 + "" | " "*) ;;
24956 + *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24957 + esac
24958 +else
24959 + lt_prog_compiler_pic_GCJ=
24960 + lt_prog_compiler_can_build_shared_GCJ=no
24964 +case $host_os in
24965 + # For platforms which do not support PIC, -DPIC is meaningless:
24966 + *djgpp*)
24967 + lt_prog_compiler_pic_GCJ=
24968 + ;;
24969 + *)
24970 + lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24971 + ;;
24972 +esac
24975 +# Check to make sure the static flag actually works.
24977 +wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24978 +echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24979 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
24980 +if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24981 + echo $ECHO_N "(cached) $ECHO_C" >&6
24982 +else
24983 + lt_prog_compiler_static_works_GCJ=no
24984 + save_LDFLAGS="$LDFLAGS"
24985 + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24986 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
24987 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24988 + # The linker can only warn and ignore the option if not recognized
24989 + # So say no if there are warnings
24990 + if test -s conftest.err; then
24991 + # Append any errors to the config.log.
24992 + cat conftest.err 1>&5
24993 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24994 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24995 + if diff conftest.exp conftest.er2 >/dev/null; then
24996 + lt_prog_compiler_static_works_GCJ=yes
24997 + fi
24998 + else
24999 + lt_prog_compiler_static_works_GCJ=yes
25000 + fi
25001 + fi
25002 + $rm conftest*
25003 + LDFLAGS="$save_LDFLAGS"
25006 +echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
25007 +echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
25009 +if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
25011 +else
25012 + lt_prog_compiler_static_GCJ=
25016 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
25017 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
25018 +if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
25019 + echo $ECHO_N "(cached) $ECHO_C" >&6
25020 +else
25021 + lt_cv_prog_compiler_c_o_GCJ=no
25022 + $rm -r conftest 2>/dev/null
25023 + mkdir conftest
25024 + cd conftest
25025 + mkdir out
25026 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25028 + lt_compiler_flag="-o out/conftest2.$ac_objext"
25029 + # Insert the option either (1) after the last *FLAGS variable, or
25030 + # (2) before a word containing "conftest.", or (3) at the end.
25031 + # Note that $ac_compile itself does not contain backslashes and begins
25032 + # with a dollar sign (not a hyphen), so the echo should work correctly.
25033 + lt_compile=`echo "$ac_compile" | $SED \
25034 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25035 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25036 + -e 's:$: $lt_compiler_flag:'`
25037 + (eval echo "\"\$as_me:15529: $lt_compile\"" >&5)
25038 + (eval "$lt_compile" 2>out/conftest.err)
25039 + ac_status=$?
25040 + cat out/conftest.err >&5
25041 + echo "$as_me:15533: \$? = $ac_status" >&5
25042 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
25043 + then
25044 + # The compiler can only warn and ignore the option if not recognized
25045 + # So say no if there are warnings
25046 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
25047 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
25048 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
25049 + lt_cv_prog_compiler_c_o_GCJ=yes
25050 + fi
25051 + fi
25052 + chmod u+w . 2>&5
25053 + $rm conftest*
25054 + # SGI C++ compiler will create directory out/ii_files/ for
25055 + # template instantiation
25056 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
25057 + $rm out/* && rmdir out
25058 + cd ..
25059 + rmdir conftest
25060 + $rm conftest*
25063 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
25064 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
25067 +hard_links="nottested"
25068 +if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
25069 + # do not overwrite the value of need_locks provided by the user
25070 + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
25071 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
25072 + hard_links=yes
25073 + $rm conftest*
25074 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
25075 + touch conftest.a
25076 + ln conftest.a conftest.b 2>&5 || hard_links=no
25077 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
25078 + echo "$as_me:$LINENO: result: $hard_links" >&5
25079 +echo "${ECHO_T}$hard_links" >&6
25080 + if test "$hard_links" = no; then
25081 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
25082 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
25083 + need_locks=warn
25084 + fi
25085 +else
25086 + need_locks=no
25089 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
25090 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
25092 + runpath_var=
25093 + allow_undefined_flag_GCJ=
25094 + enable_shared_with_static_runtimes_GCJ=no
25095 + archive_cmds_GCJ=
25096 + archive_expsym_cmds_GCJ=
25097 + old_archive_From_new_cmds_GCJ=
25098 + old_archive_from_expsyms_cmds_GCJ=
25099 + export_dynamic_flag_spec_GCJ=
25100 + whole_archive_flag_spec_GCJ=
25101 + thread_safe_flag_spec_GCJ=
25102 + hardcode_libdir_flag_spec_GCJ=
25103 + hardcode_libdir_flag_spec_ld_GCJ=
25104 + hardcode_libdir_separator_GCJ=
25105 + hardcode_direct_GCJ=no
25106 + hardcode_minus_L_GCJ=no
25107 + hardcode_shlibpath_var_GCJ=unsupported
25108 + link_all_deplibs_GCJ=unknown
25109 + hardcode_automatic_GCJ=no
25110 + module_cmds_GCJ=
25111 + module_expsym_cmds_GCJ=
25112 + always_export_symbols_GCJ=no
25113 + export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
25114 + # include_expsyms should be a list of space-separated symbols to be *always*
25115 + # included in the symbol list
25116 + include_expsyms_GCJ=
25117 + # exclude_expsyms can be an extended regexp of symbols to exclude
25118 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
25119 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
25120 + # as well as any symbol that contains `d'.
25121 + exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
25122 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
25123 + # platforms (ab)use it in PIC code, but their linkers get confused if
25124 + # the symbol is explicitly referenced. Since portable code cannot
25125 + # rely on this symbol name, it's probably fine to never include it in
25126 + # preloaded symbol tables.
25127 + extract_expsyms_cmds=
25128 + # Just being paranoid about ensuring that cc_basename is set.
25129 + for cc_temp in $compiler""; do
25130 + case $cc_temp in
25131 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25132 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25133 + \-*) ;;
25134 + *) break;;
25135 + esac
25136 +done
25137 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25139 + case $host_os in
25140 + cygwin* | mingw* | pw32*)
25141 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
25142 + # When not using gcc, we currently assume that we are using
25143 + # Microsoft Visual C++.
25144 + if test "$GCC" != yes; then
25145 + with_gnu_ld=no
25146 + fi
25147 + ;;
25148 + interix*)
25149 + # we just hope/assume this is gcc and not c89 (= MSVC++)
25150 + with_gnu_ld=yes
25151 + ;;
25152 + openbsd*)
25153 + with_gnu_ld=no
25154 + ;;
25155 + esac
25157 + ld_shlibs_GCJ=yes
25158 + if test "$with_gnu_ld" = yes; then
25159 + # If archive_cmds runs LD, not CC, wlarc should be empty
25160 + wlarc='${wl}'
25162 + # Set some defaults for GNU ld with shared library support. These
25163 + # are reset later if shared libraries are not supported. Putting them
25164 + # here allows them to be overridden if necessary.
25165 + runpath_var=LD_RUN_PATH
25166 + hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
25167 + export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
25168 + # ancient GNU ld didn't support --whole-archive et. al.
25169 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
25170 + whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
25171 + else
25172 + whole_archive_flag_spec_GCJ=
25173 + fi
25174 + supports_anon_versioning=no
25175 + case `$LD -v 2>/dev/null` in
25176 + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
25177 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
25178 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
25179 + *\ 2.11.*) ;; # other 2.11 versions
25180 + *) supports_anon_versioning=yes ;;
25181 + esac
25183 + # See if GNU ld supports shared libraries.
25184 + case $host_os in
25185 + aix3* | aix4* | aix5*)
25186 + # On AIX/PPC, the GNU linker is very broken
25187 + if test "$host_cpu" != ia64; then
25188 + ld_shlibs_GCJ=no
25189 + cat <<EOF 1>&2
25191 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
25192 +*** to be unable to reliably create shared libraries on AIX.
25193 +*** Therefore, libtool is disabling shared libraries support. If you
25194 +*** really care for shared libraries, you may want to modify your PATH
25195 +*** so that a non-GNU linker is found, and then restart.
25197 +EOF
25198 + fi
25199 + ;;
25201 + amigaos*)
25202 + archive_cmds_GCJ='$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)'
25203 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
25204 + hardcode_minus_L_GCJ=yes
25206 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
25207 + # that the semantics of dynamic libraries on AmigaOS, at least up
25208 + # to version 4, is to share data among multiple programs linked
25209 + # with the same dynamic library. Since this doesn't match the
25210 + # behavior of shared libraries on other platforms, we can't use
25211 + # them.
25212 + ld_shlibs_GCJ=no
25213 + ;;
25215 + beos*)
25216 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25217 + allow_undefined_flag_GCJ=unsupported
25218 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
25219 + # support --undefined. This deserves some investigation. FIXME
25220 + archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25221 + else
25222 + ld_shlibs_GCJ=no
25223 + fi
25224 + ;;
25226 + cygwin* | mingw* | pw32*)
25227 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
25228 + # as there is no search path for DLLs.
25229 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
25230 + allow_undefined_flag_GCJ=unsupported
25231 + always_export_symbols_GCJ=no
25232 + enable_shared_with_static_runtimes_GCJ=yes
25233 + export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
25235 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
25236 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25237 + # If the export-symbols file already is a .def file (1st line
25238 + # is EXPORTS), use it as is; otherwise, prepend...
25239 + archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
25240 + cp $export_symbols $output_objdir/$soname.def;
25241 + else
25242 + echo EXPORTS > $output_objdir/$soname.def;
25243 + cat $export_symbols >> $output_objdir/$soname.def;
25244 + fi~
25245 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
25246 + else
25247 + ld_shlibs_GCJ=no
25248 + fi
25249 + ;;
25251 + interix3*)
25252 + hardcode_direct_GCJ=no
25253 + hardcode_shlibpath_var_GCJ=no
25254 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25255 + export_dynamic_flag_spec_GCJ='${wl}-E'
25256 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
25257 + # Instead, shared libraries are loaded at an image base (0x10000000 by
25258 + # default) and relocated if they conflict, which is a slow very memory
25259 + # consuming and fragmenting process. To avoid this, we pick a random,
25260 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
25261 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
25262 + archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
25263 + archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
25264 + ;;
25266 + linux*)
25267 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25268 + tmp_addflag=
25269 + case $cc_basename,$host_cpu in
25270 + pgcc*) # Portland Group C compiler
25271 + whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
25272 + tmp_addflag=' $pic_flag'
25273 + ;;
25274 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
25275 + whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
25276 + tmp_addflag=' $pic_flag -Mnomain' ;;
25277 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
25278 + tmp_addflag=' -i_dynamic' ;;
25279 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
25280 + tmp_addflag=' -i_dynamic -nofor_main' ;;
25281 + ifc* | ifort*) # Intel Fortran compiler
25282 + tmp_addflag=' -nofor_main' ;;
25283 + esac
25284 + archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25286 + if test $supports_anon_versioning = yes; then
25287 + archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
25288 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25289 + $echo "local: *; };" >> $output_objdir/$libname.ver~
25290 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
25291 + fi
25292 + link_all_deplibs_GCJ=no
25293 + else
25294 + ld_shlibs_GCJ=no
25295 + fi
25296 + ;;
25298 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
25299 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25300 + archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
25301 + wlarc=
25302 + else
25303 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25304 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25305 + fi
25306 + ;;
25308 + solaris*)
25309 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
25310 + ld_shlibs_GCJ=no
25311 + cat <<EOF 1>&2
25313 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
25314 +*** create shared libraries on Solaris systems. Therefore, libtool
25315 +*** is disabling shared libraries support. We urge you to upgrade GNU
25316 +*** binutils to release 2.9.1 or newer. Another option is to modify
25317 +*** your PATH or compiler configuration so that the native linker is
25318 +*** used, and then restart.
25320 +EOF
25321 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25322 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25323 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25324 + else
25325 + ld_shlibs_GCJ=no
25326 + fi
25327 + ;;
25329 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
25330 + case `$LD -v 2>&1` in
25331 + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
25332 + ld_shlibs_GCJ=no
25333 + cat <<_LT_EOF 1>&2
25335 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
25336 +*** reliably create shared libraries on SCO systems. Therefore, libtool
25337 +*** is disabling shared libraries support. We urge you to upgrade GNU
25338 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
25339 +*** your PATH or compiler configuration so that the native linker is
25340 +*** used, and then restart.
25342 +_LT_EOF
25343 + ;;
25344 + *)
25345 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25346 + hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
25347 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
25348 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
25349 + else
25350 + ld_shlibs_GCJ=no
25351 + fi
25352 + ;;
25353 + esac
25354 + ;;
25356 + sunos4*)
25357 + archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25358 + wlarc=
25359 + hardcode_direct_GCJ=yes
25360 + hardcode_shlibpath_var_GCJ=no
25361 + ;;
25363 + *)
25364 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25365 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25366 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25367 + else
25368 + ld_shlibs_GCJ=no
25369 + fi
25370 + ;;
25371 + esac
25373 + if test "$ld_shlibs_GCJ" = no; then
25374 + runpath_var=
25375 + hardcode_libdir_flag_spec_GCJ=
25376 + export_dynamic_flag_spec_GCJ=
25377 + whole_archive_flag_spec_GCJ=
25378 + fi
25379 + else
25380 + # PORTME fill in a description of your system's linker (not GNU ld)
25381 + case $host_os in
25382 + aix3*)
25383 + allow_undefined_flag_GCJ=unsupported
25384 + always_export_symbols_GCJ=yes
25385 + archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
25386 + # Note: this linker hardcodes the directories in LIBPATH if there
25387 + # are no directories specified by -L.
25388 + hardcode_minus_L_GCJ=yes
25389 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
25390 + # Neither direct hardcoding nor static linking is supported with a
25391 + # broken collect2.
25392 + hardcode_direct_GCJ=unsupported
25393 + fi
25394 + ;;
25396 + aix4* | aix5*)
25397 + if test "$host_cpu" = ia64; then
25398 + # On IA64, the linker does run time linking by default, so we don't
25399 + # have to do anything special.
25400 + aix_use_runtimelinking=no
25401 + exp_sym_flag='-Bexport'
25402 + no_entry_flag=""
25403 + else
25404 + # If we're using GNU nm, then we don't want the "-C" option.
25405 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
25406 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
25407 + export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
25408 + else
25409 + export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
25410 + fi
25411 + aix_use_runtimelinking=no
25413 + # Test if we are trying to use run time linking or normal
25414 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
25415 + # need to do runtime linking.
25416 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
25417 + for ld_flag in $LDFLAGS; do
25418 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
25419 + aix_use_runtimelinking=yes
25420 + break
25421 + fi
25422 + done
25423 + ;;
25424 + esac
25426 + exp_sym_flag='-bexport'
25427 + no_entry_flag='-bnoentry'
25428 + fi
25430 + # When large executables or shared objects are built, AIX ld can
25431 + # have problems creating the table of contents. If linking a library
25432 + # or program results in "error TOC overflow" add -mminimal-toc to
25433 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
25434 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
25436 + archive_cmds_GCJ=''
25437 + hardcode_direct_GCJ=yes
25438 + hardcode_libdir_separator_GCJ=':'
25439 + link_all_deplibs_GCJ=yes
25441 + if test "$GCC" = yes; then
25442 + case $host_os in aix4.[012]|aix4.[012].*)
25443 + # We only want to do this on AIX 4.2 and lower, the check
25444 + # below for broken collect2 doesn't work under 4.3+
25445 + collect2name=`${CC} -print-prog-name=collect2`
25446 + if test -f "$collect2name" && \
25447 + strings "$collect2name" | grep resolve_lib_name >/dev/null
25448 + then
25449 + # We have reworked collect2
25450 + hardcode_direct_GCJ=yes
25451 + else
25452 + # We have old collect2
25453 + hardcode_direct_GCJ=unsupported
25454 + # It fails to find uninstalled libraries when the uninstalled
25455 + # path is not listed in the libpath. Setting hardcode_minus_L
25456 + # to unsupported forces relinking
25457 + hardcode_minus_L_GCJ=yes
25458 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
25459 + hardcode_libdir_separator_GCJ=
25460 + fi
25461 + ;;
25462 + esac
25463 + shared_flag='-shared'
25464 + if test "$aix_use_runtimelinking" = yes; then
25465 + shared_flag="$shared_flag "'${wl}-G'
25466 + fi
25467 + else
25468 + # not using gcc
25469 + if test "$host_cpu" = ia64; then
25470 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25471 + # chokes on -Wl,-G. The following line is correct:
25472 + shared_flag='-G'
25473 + else
25474 + if test "$aix_use_runtimelinking" = yes; then
25475 + shared_flag='${wl}-G'
25476 + else
25477 + shared_flag='${wl}-bM:SRE'
25478 + fi
25479 + fi
25480 + fi
25482 + # It seems that -bexpall does not export symbols beginning with
25483 + # underscore (_), so it is better to generate a list of symbols to export.
25484 + always_export_symbols_GCJ=yes
25485 + if test "$aix_use_runtimelinking" = yes; then
25486 + # Warning - without using the other runtime loading flags (-brtl),
25487 + # -berok will link without error, but may produce a broken library.
25488 + allow_undefined_flag_GCJ='-berok'
25489 + # Determine the default libpath from the value encoded in an empty executable.
25490 + cat >conftest.$ac_ext <<_ACEOF
25491 +/* confdefs.h. */
25492 +_ACEOF
25493 +cat confdefs.h >>conftest.$ac_ext
25494 +cat >>conftest.$ac_ext <<_ACEOF
25495 +/* end confdefs.h. */
25497 +int
25498 +main ()
25502 + return 0;
25504 +_ACEOF
25505 +rm -f conftest.$ac_objext conftest$ac_exeext
25506 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25507 + (eval $ac_link) 2>conftest.er1
25508 + ac_status=$?
25509 + grep -v '^ *+' conftest.er1 >conftest.err
25510 + rm -f conftest.er1
25511 + cat conftest.err >&5
25512 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513 + (exit $ac_status); } &&
25514 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25515 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25516 + (eval $ac_try) 2>&5
25517 + ac_status=$?
25518 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519 + (exit $ac_status); }; } &&
25520 + { ac_try='test -s conftest$ac_exeext'
25521 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25522 + (eval $ac_try) 2>&5
25523 + ac_status=$?
25524 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25525 + (exit $ac_status); }; }; then
25527 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25528 +}'`
25529 +# Check for a 64-bit object if we didn't find anything.
25530 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25531 +}'`; fi
25532 +else
25533 + echo "$as_me: failed program was:" >&5
25534 +sed 's/^/| /' conftest.$ac_ext >&5
25537 +rm -f conftest.err conftest.$ac_objext \
25538 + conftest$ac_exeext conftest.$ac_ext
25539 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25541 + hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25542 + archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
25543 + else
25544 + if test "$host_cpu" = ia64; then
25545 + hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25546 + allow_undefined_flag_GCJ="-z nodefs"
25547 + archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
25548 + else
25549 + # Determine the default libpath from the value encoded in an empty executable.
25550 + cat >conftest.$ac_ext <<_ACEOF
25551 +/* confdefs.h. */
25552 +_ACEOF
25553 +cat confdefs.h >>conftest.$ac_ext
25554 +cat >>conftest.$ac_ext <<_ACEOF
25555 +/* end confdefs.h. */
25557 +int
25558 +main ()
25562 + return 0;
25564 +_ACEOF
25565 +rm -f conftest.$ac_objext conftest$ac_exeext
25566 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25567 + (eval $ac_link) 2>conftest.er1
25568 + ac_status=$?
25569 + grep -v '^ *+' conftest.er1 >conftest.err
25570 + rm -f conftest.er1
25571 + cat conftest.err >&5
25572 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573 + (exit $ac_status); } &&
25574 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25575 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25576 + (eval $ac_try) 2>&5
25577 + ac_status=$?
25578 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 + (exit $ac_status); }; } &&
25580 + { ac_try='test -s conftest$ac_exeext'
25581 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25582 + (eval $ac_try) 2>&5
25583 + ac_status=$?
25584 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585 + (exit $ac_status); }; }; then
25587 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25588 +}'`
25589 +# Check for a 64-bit object if we didn't find anything.
25590 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25591 +}'`; fi
25592 +else
25593 + echo "$as_me: failed program was:" >&5
25594 +sed 's/^/| /' conftest.$ac_ext >&5
25597 +rm -f conftest.err conftest.$ac_objext \
25598 + conftest$ac_exeext conftest.$ac_ext
25599 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25601 + hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25602 + # Warning - without using the other run time loading flags,
25603 + # -berok will link without error, but may produce a broken library.
25604 + no_undefined_flag_GCJ=' ${wl}-bernotok'
25605 + allow_undefined_flag_GCJ=' ${wl}-berok'
25606 + # Exported symbols can be pulled into shared objects from archives
25607 + whole_archive_flag_spec_GCJ='$convenience'
25608 + archive_cmds_need_lc_GCJ=yes
25609 + # This is similar to how AIX traditionally builds its shared libraries.
25610 + archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
25611 + fi
25612 + fi
25613 + ;;
25615 + amigaos*)
25616 + archive_cmds_GCJ='$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)'
25617 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
25618 + hardcode_minus_L_GCJ=yes
25619 + # see comment about different semantics on the GNU ld section
25620 + ld_shlibs_GCJ=no
25621 + ;;
25623 + bsdi[45]*)
25624 + export_dynamic_flag_spec_GCJ=-rdynamic
25625 + ;;
25627 + cygwin* | mingw* | pw32*)
25628 + # When not using gcc, we currently assume that we are using
25629 + # Microsoft Visual C++.
25630 + # hardcode_libdir_flag_spec is actually meaningless, as there is
25631 + # no search path for DLLs.
25632 + hardcode_libdir_flag_spec_GCJ=' '
25633 + allow_undefined_flag_GCJ=unsupported
25634 + # Tell ltmain to make .lib files, not .a files.
25635 + libext=lib
25636 + # Tell ltmain to make .dll files, not .so files.
25637 + shrext_cmds=".dll"
25638 + # FIXME: Setting linknames here is a bad hack.
25639 + archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25640 + # The linker will automatically build a .lib file if we build a DLL.
25641 + old_archive_From_new_cmds_GCJ='true'
25642 + # FIXME: Should let the user specify the lib program.
25643 + old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25644 + fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25645 + enable_shared_with_static_runtimes_GCJ=yes
25646 + ;;
25648 + darwin* | rhapsody*)
25649 + case $host_os in
25650 + rhapsody* | darwin1.[012])
25651 + allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25652 + ;;
25653 + *) # Darwin 1.3 on
25654 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25655 + allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25656 + else
25657 + case ${MACOSX_DEPLOYMENT_TARGET} in
25658 + 10.[012])
25659 + allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25660 + ;;
25661 + 10.*)
25662 + allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25663 + ;;
25664 + esac
25665 + fi
25666 + ;;
25667 + esac
25668 + archive_cmds_need_lc_GCJ=no
25669 + hardcode_direct_GCJ=no
25670 + hardcode_automatic_GCJ=yes
25671 + hardcode_shlibpath_var_GCJ=unsupported
25672 + whole_archive_flag_spec_GCJ=''
25673 + link_all_deplibs_GCJ=yes
25674 + if test "$GCC" = yes ; then
25675 + output_verbose_link_cmd='echo'
25676 + archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25677 + module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25678 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25679 + archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25680 + module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25681 + else
25682 + case $cc_basename in
25683 + xlc*)
25684 + output_verbose_link_cmd='echo'
25685 + archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25686 + module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25687 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25688 + archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25689 + module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25690 + ;;
25691 + *)
25692 + ld_shlibs_GCJ=no
25693 + ;;
25694 + esac
25695 + fi
25696 + ;;
25698 + dgux*)
25699 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25700 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
25701 + hardcode_shlibpath_var_GCJ=no
25702 + ;;
25704 + freebsd1*)
25705 + ld_shlibs_GCJ=no
25706 + ;;
25708 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25709 + # support. Future versions do this automatically, but an explicit c++rt0.o
25710 + # does not break anything, and helps significantly (at the cost of a little
25711 + # extra space).
25712 + freebsd2.2*)
25713 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25714 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
25715 + hardcode_direct_GCJ=yes
25716 + hardcode_shlibpath_var_GCJ=no
25717 + ;;
25719 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25720 + freebsd2*)
25721 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25722 + hardcode_direct_GCJ=yes
25723 + hardcode_minus_L_GCJ=yes
25724 + hardcode_shlibpath_var_GCJ=no
25725 + ;;
25727 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25728 + freebsd* | dragonfly*)
25729 + archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25730 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
25731 + hardcode_direct_GCJ=yes
25732 + hardcode_shlibpath_var_GCJ=no
25733 + ;;
25735 + # GNU/kFreeBSD uses gcc -shared to do shared libraries.
25736 + kfreebsd*-gnu)
25737 + archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25738 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
25739 + hardcode_direct_GCJ=yes
25740 + hardcode_shlibpath_var_GCJ=no
25741 + link_all_deplibs_GCJ=no
25742 + ;;
25744 + hpux9*)
25745 + if test "$GCC" = yes; then
25746 + archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
25747 + else
25748 + archive_cmds_GCJ='$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'
25749 + fi
25750 + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25751 + hardcode_libdir_separator_GCJ=:
25752 + hardcode_direct_GCJ=yes
25754 + # hardcode_minus_L: Not really in the search PATH,
25755 + # but as the default location of the library.
25756 + hardcode_minus_L_GCJ=yes
25757 + export_dynamic_flag_spec_GCJ='${wl}-E'
25758 + ;;
25760 + hpux10*)
25761 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25762 + archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25763 + else
25764 + archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25765 + fi
25766 + if test "$with_gnu_ld" = no; then
25767 + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25768 + hardcode_libdir_separator_GCJ=:
25770 + hardcode_direct_GCJ=yes
25771 + export_dynamic_flag_spec_GCJ='${wl}-E'
25773 + # hardcode_minus_L: Not really in the search PATH,
25774 + # but as the default location of the library.
25775 + hardcode_minus_L_GCJ=yes
25776 + fi
25777 + ;;
25779 + hpux11*)
25780 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25781 + case $host_cpu in
25782 + hppa*64*)
25783 + archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25784 + ;;
25785 + ia64*)
25786 + archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25787 + ;;
25788 + *)
25789 + archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25790 + ;;
25791 + esac
25792 + else
25793 + case $host_cpu in
25794 + hppa*64*)
25795 + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25796 + ;;
25797 + ia64*)
25798 + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25799 + ;;
25800 + *)
25801 + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25802 + ;;
25803 + esac
25804 + fi
25805 + if test "$with_gnu_ld" = no; then
25806 + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25807 + hardcode_libdir_separator_GCJ=:
25809 + case $host_cpu in
25810 + hppa*64*|ia64*)
25811 + hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25812 + hardcode_direct_GCJ=no
25813 + hardcode_shlibpath_var_GCJ=no
25814 + ;;
25815 + *)
25816 + hardcode_direct_GCJ=yes
25817 + export_dynamic_flag_spec_GCJ='${wl}-E'
25819 + # hardcode_minus_L: Not really in the search PATH,
25820 + # but as the default location of the library.
25821 + hardcode_minus_L_GCJ=yes
25822 + ;;
25823 + esac
25824 + fi
25825 + ;;
25827 + irix5* | irix6* | nonstopux*)
25828 + if test "$GCC" = yes; then
25829 + archive_cmds_GCJ='$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'
25830 + else
25831 + archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
25832 + hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25833 + fi
25834 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25835 + hardcode_libdir_separator_GCJ=:
25836 + link_all_deplibs_GCJ=yes
25837 + ;;
25839 + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
25840 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25841 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25842 + else
25843 + archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25844 + fi
25845 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
25846 + hardcode_direct_GCJ=yes
25847 + hardcode_shlibpath_var_GCJ=no
25848 + ;;
25850 + newsos6)
25851 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25852 + hardcode_direct_GCJ=yes
25853 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25854 + hardcode_libdir_separator_GCJ=:
25855 + hardcode_shlibpath_var_GCJ=no
25856 + ;;
25858 + openbsd*)
25859 + hardcode_direct_GCJ=yes
25860 + hardcode_shlibpath_var_GCJ=no
25861 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25862 + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25863 + archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25864 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25865 + export_dynamic_flag_spec_GCJ='${wl}-E'
25866 + else
25867 + case $host_os in
25868 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25869 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25870 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
25871 + ;;
25872 + *)
25873 + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25874 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25875 + ;;
25876 + esac
25877 + fi
25878 + ;;
25880 + os2*)
25881 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
25882 + hardcode_minus_L_GCJ=yes
25883 + allow_undefined_flag_GCJ=unsupported
25884 + archive_cmds_GCJ='$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'
25885 + old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25886 + ;;
25888 + osf3*)
25889 + if test "$GCC" = yes; then
25890 + allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25891 + archive_cmds_GCJ='$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'
25892 + else
25893 + allow_undefined_flag_GCJ=' -expect_unresolved \*'
25894 + archive_cmds_GCJ='$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'
25895 + fi
25896 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25897 + hardcode_libdir_separator_GCJ=:
25898 + ;;
25900 + osf4* | osf5*) # as osf3* with the addition of -msym flag
25901 + if test "$GCC" = yes; then
25902 + allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25903 + archive_cmds_GCJ='$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'
25904 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25905 + else
25906 + allow_undefined_flag_GCJ=' -expect_unresolved \*'
25907 + archive_cmds_GCJ='$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'
25908 + archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
25909 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
25911 + # Both c and cxx compiler support -rpath directly
25912 + hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25913 + fi
25914 + hardcode_libdir_separator_GCJ=:
25915 + ;;
25917 + solaris*)
25918 + no_undefined_flag_GCJ=' -z text'
25919 + if test "$GCC" = yes; then
25920 + wlarc='${wl}'
25921 + archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25922 + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25923 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25924 + else
25925 + wlarc=''
25926 + archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25927 + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25928 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25929 + fi
25930 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
25931 + hardcode_shlibpath_var_GCJ=no
25932 + case $host_os in
25933 + solaris2.[0-5] | solaris2.[0-5].*) ;;
25934 + *)
25935 + # The compiler driver will combine linker options so we
25936 + # cannot just pass the convience library names through
25937 + # without $wl, iff we do not link with $LD.
25938 + # Luckily, gcc supports the same syntax we need for Sun Studio.
25939 + # Supported since Solaris 2.6 (maybe 2.5.1?)
25940 + case $wlarc in
25941 + '')
25942 + whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25943 + *)
25944 + whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
25945 + esac ;;
25946 + esac
25947 + link_all_deplibs_GCJ=yes
25948 + ;;
25950 + sunos4*)
25951 + if test "x$host_vendor" = xsequent; then
25952 + # Use $CC to link under sequent, because it throws in some extra .o
25953 + # files that make .init and .fini sections work.
25954 + archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25955 + else
25956 + archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25957 + fi
25958 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
25959 + hardcode_direct_GCJ=yes
25960 + hardcode_minus_L_GCJ=yes
25961 + hardcode_shlibpath_var_GCJ=no
25962 + ;;
25964 + sysv4)
25965 + case $host_vendor in
25966 + sni)
25967 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25968 + hardcode_direct_GCJ=yes # is this really true???
25969 + ;;
25970 + siemens)
25971 + ## LD is ld it makes a PLAMLIB
25972 + ## CC just makes a GrossModule.
25973 + archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25974 + reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25975 + hardcode_direct_GCJ=no
25976 + ;;
25977 + motorola)
25978 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25979 + hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25980 + ;;
25981 + esac
25982 + runpath_var='LD_RUN_PATH'
25983 + hardcode_shlibpath_var_GCJ=no
25984 + ;;
25986 + sysv4.3*)
25987 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25988 + hardcode_shlibpath_var_GCJ=no
25989 + export_dynamic_flag_spec_GCJ='-Bexport'
25990 + ;;
25992 + sysv4*MP*)
25993 + if test -d /usr/nec; then
25994 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25995 + hardcode_shlibpath_var_GCJ=no
25996 + runpath_var=LD_RUN_PATH
25997 + hardcode_runpath_var=yes
25998 + ld_shlibs_GCJ=yes
25999 + fi
26000 + ;;
26002 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
26003 + no_undefined_flag_GCJ='${wl}-z,text'
26004 + archive_cmds_need_lc_GCJ=no
26005 + hardcode_shlibpath_var_GCJ=no
26006 + runpath_var='LD_RUN_PATH'
26008 + if test "$GCC" = yes; then
26009 + archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26010 + archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26011 + else
26012 + archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26013 + archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
26014 + fi
26015 + ;;
26017 + sysv5* | sco3.2v5* | sco5v6*)
26018 + # Note: We can NOT use -z defs as we might desire, because we do not
26019 + # link with -lc, and that would cause any symbols used from libc to
26020 + # always be unresolved, which means just about no library would
26021 + # ever link correctly. If we're not using GNU ld we use -z text
26022 + # though, which does catch some bad symbols but isn't as heavy-handed
26023 + # as -z defs.
26024 + no_undefined_flag_GCJ='${wl}-z,text'
26025 + allow_undefined_flag_GCJ='${wl}-z,nodefs'
26026 + archive_cmds_need_lc_GCJ=no
26027 + hardcode_shlibpath_var_GCJ=no
26028 + hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
26029 + hardcode_libdir_separator_GCJ=':'
26030 + link_all_deplibs_GCJ=yes
26031 + export_dynamic_flag_spec_GCJ='${wl}-Bexport'
26032 + runpath_var='LD_RUN_PATH'
26034 + if test "$GCC" = yes; then
26035 + archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
26036 + archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
26037 + else
26038 + archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
26039 + archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
26040 + fi
26041 + ;;
26043 + uts4*)
26044 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26045 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
26046 + hardcode_shlibpath_var_GCJ=no
26047 + ;;
26049 + *)
26050 + ld_shlibs_GCJ=no
26051 + ;;
26052 + esac
26053 + fi
26055 +echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
26056 +echo "${ECHO_T}$ld_shlibs_GCJ" >&6
26057 +test "$ld_shlibs_GCJ" = no && can_build_shared=no
26060 +# Do we need to explicitly link libc?
26062 +case "x$archive_cmds_need_lc_GCJ" in
26063 +x|xyes)
26064 + # Assume -lc should be added
26065 + archive_cmds_need_lc_GCJ=yes
26067 + if test "$enable_shared" = yes && test "$GCC" = yes; then
26068 + case $archive_cmds_GCJ in
26069 + *'~'*)
26070 + # FIXME: we may have to deal with multi-command sequences.
26071 + ;;
26072 + '$CC '*)
26073 + # Test whether the compiler implicitly links with -lc since on some
26074 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
26075 + # to ld, don't add -lc before -lgcc.
26076 + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
26077 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
26078 + $rm conftest*
26079 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
26081 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26082 + (eval $ac_compile) 2>&5
26083 + ac_status=$?
26084 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085 + (exit $ac_status); } 2>conftest.err; then
26086 + soname=conftest
26087 + lib=conftest
26088 + libobjs=conftest.$ac_objext
26089 + deplibs=
26090 + wl=$lt_prog_compiler_wl_GCJ
26091 + pic_flag=$lt_prog_compiler_pic_GCJ
26092 + compiler_flags=-v
26093 + linker_flags=-v
26094 + verstring=
26095 + output_objdir=.
26096 + libname=conftest
26097 + lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
26098 + allow_undefined_flag_GCJ=
26099 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
26100 + (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
26101 + ac_status=$?
26102 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103 + (exit $ac_status); }
26104 + then
26105 + archive_cmds_need_lc_GCJ=no
26106 + else
26107 + archive_cmds_need_lc_GCJ=yes
26108 + fi
26109 + allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
26110 + else
26111 + cat conftest.err 1>&5
26112 + fi
26113 + $rm conftest*
26114 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
26115 +echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
26116 + ;;
26117 + esac
26118 + fi
26119 + ;;
26120 +esac
26122 +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
26123 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
26124 +library_names_spec=
26125 +libname_spec='lib$name'
26126 +soname_spec=
26127 +shrext_cmds=".so"
26128 +postinstall_cmds=
26129 +postuninstall_cmds=
26130 +finish_cmds=
26131 +finish_eval=
26132 +shlibpath_var=
26133 +shlibpath_overrides_runpath=unknown
26134 +version_type=none
26135 +dynamic_linker="$host_os ld.so"
26136 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
26137 +if test "$GCC" = yes; then
26138 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
26139 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
26140 + # if the path contains ";" then we assume it to be the separator
26141 + # otherwise default to the standard path separator (i.e. ":") - it is
26142 + # assumed that no part of a normal pathname contains ";" but that should
26143 + # okay in the real world where ";" in dirpaths is itself problematic.
26144 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
26145 + else
26146 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
26147 + fi
26148 +else
26149 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
26151 +need_lib_prefix=unknown
26152 +hardcode_into_libs=no
26154 +# when you set need_version to no, make sure it does not cause -set_version
26155 +# flags to be left without arguments
26156 +need_version=unknown
26158 +case $host_os in
26159 +aix3*)
26160 + version_type=linux
26161 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
26162 + shlibpath_var=LIBPATH
26164 + # AIX 3 has no versioning support, so we append a major version to the name.
26165 + soname_spec='${libname}${release}${shared_ext}$major'
26166 + ;;
26168 +aix4* | aix5*)
26169 + version_type=linux
26170 + need_lib_prefix=no
26171 + need_version=no
26172 + hardcode_into_libs=yes
26173 + if test "$host_cpu" = ia64; then
26174 + # AIX 5 supports IA64
26175 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
26176 + shlibpath_var=LD_LIBRARY_PATH
26177 + else
26178 + # With GCC up to 2.95.x, collect2 would create an import file
26179 + # for dependence libraries. The import file would start with
26180 + # the line `#! .'. This would cause the generated library to
26181 + # depend on `.', always an invalid library. This was fixed in
26182 + # development snapshots of GCC prior to 3.0.
26183 + case $host_os in
26184 + aix4 | aix4.[01] | aix4.[01].*)
26185 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
26186 + echo ' yes '
26187 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
26189 + else
26190 + can_build_shared=no
26191 + fi
26192 + ;;
26193 + esac
26194 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
26195 + # soname into executable. Probably we can add versioning support to
26196 + # collect2, so additional links can be useful in future.
26197 + if test "$aix_use_runtimelinking" = yes; then
26198 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
26199 + # instead of lib<name>.a to let people know that these are not
26200 + # typical AIX shared libraries.
26201 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26202 + else
26203 + # We preserve .a as extension for shared libraries through AIX4.2
26204 + # and later when we are not doing run time linking.
26205 + library_names_spec='${libname}${release}.a $libname.a'
26206 + soname_spec='${libname}${release}${shared_ext}$major'
26207 + fi
26208 + shlibpath_var=LIBPATH
26209 + fi
26210 + ;;
26212 +amigaos*)
26213 + library_names_spec='$libname.ixlibrary $libname.a'
26214 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
26215 + 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'
26216 + ;;
26218 +beos*)
26219 + library_names_spec='${libname}${shared_ext}'
26220 + dynamic_linker="$host_os ld.so"
26221 + shlibpath_var=LIBRARY_PATH
26222 + ;;
26224 +bsdi[45]*)
26225 + version_type=linux
26226 + need_version=no
26227 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26228 + soname_spec='${libname}${release}${shared_ext}$major'
26229 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
26230 + shlibpath_var=LD_LIBRARY_PATH
26231 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
26232 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
26233 + # the default ld.so.conf also contains /usr/contrib/lib and
26234 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
26235 + # libtool to hard-code these into programs
26236 + ;;
26238 +cygwin* | mingw* | pw32*)
26239 + version_type=windows
26240 + shrext_cmds=".dll"
26241 + need_version=no
26242 + need_lib_prefix=no
26244 + case $GCC,$host_os in
26245 + yes,cygwin* | yes,mingw* | yes,pw32*)
26246 + library_names_spec='$libname.dll.a'
26247 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
26248 + postinstall_cmds='base_file=`basename \${file}`~
26249 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
26250 + dldir=$destdir/`dirname \$dlpath`~
26251 + test -d \$dldir || mkdir -p \$dldir~
26252 + $install_prog $dir/$dlname \$dldir/$dlname~
26253 + chmod a+x \$dldir/$dlname'
26254 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
26255 + dlpath=$dir/\$dldll~
26256 + $rm \$dlpath'
26257 + shlibpath_overrides_runpath=yes
26259 + case $host_os in
26260 + cygwin*)
26261 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
26262 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26263 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
26264 + ;;
26265 + mingw*)
26266 + # MinGW DLLs use traditional 'lib' prefix
26267 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26268 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
26269 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
26270 + # It is most probably a Windows format PATH printed by
26271 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
26272 + # path with ; separators, and with drive letters. We can handle the
26273 + # drive letters (cygwin fileutils understands them), so leave them,
26274 + # especially as we might pass files found there to a mingw objdump,
26275 + # which wouldn't understand a cygwinified path. Ahh.
26276 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
26277 + else
26278 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
26279 + fi
26280 + ;;
26281 + pw32*)
26282 + # pw32 DLLs use 'pw' prefix rather than 'lib'
26283 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26284 + ;;
26285 + esac
26286 + ;;
26288 + *)
26289 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
26290 + ;;
26291 + esac
26292 + dynamic_linker='Win32 ld.exe'
26293 + # FIXME: first we should search . and the directory the executable is in
26294 + shlibpath_var=PATH
26295 + ;;
26297 +darwin* | rhapsody*)
26298 + dynamic_linker="$host_os dyld"
26299 + version_type=darwin
26300 + need_lib_prefix=no
26301 + need_version=no
26302 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
26303 + soname_spec='${libname}${release}${major}$shared_ext'
26304 + shlibpath_overrides_runpath=yes
26305 + shlibpath_var=DYLD_LIBRARY_PATH
26306 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
26307 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
26308 + if test "$GCC" = yes; then
26309 + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
26310 + else
26311 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
26312 + fi
26313 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
26314 + ;;
26316 +dgux*)
26317 + version_type=linux
26318 + need_lib_prefix=no
26319 + need_version=no
26320 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
26321 + soname_spec='${libname}${release}${shared_ext}$major'
26322 + shlibpath_var=LD_LIBRARY_PATH
26323 + ;;
26325 +freebsd1*)
26326 + dynamic_linker=no
26327 + ;;
26329 +kfreebsd*-gnu)
26330 + version_type=linux
26331 + need_lib_prefix=no
26332 + need_version=no
26333 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26334 + soname_spec='${libname}${release}${shared_ext}$major'
26335 + shlibpath_var=LD_LIBRARY_PATH
26336 + shlibpath_overrides_runpath=no
26337 + hardcode_into_libs=yes
26338 + dynamic_linker='GNU ld.so'
26339 + ;;
26341 +freebsd* | dragonfly*)
26342 + # DragonFly does not have aout. When/if they implement a new
26343 + # versioning mechanism, adjust this.
26344 + if test -x /usr/bin/objformat; then
26345 + objformat=`/usr/bin/objformat`
26346 + else
26347 + case $host_os in
26348 + freebsd[123]*) objformat=aout ;;
26349 + *) objformat=elf ;;
26350 + esac
26351 + fi
26352 + version_type=freebsd-$objformat
26353 + case $version_type in
26354 + freebsd-elf*)
26355 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26356 + need_version=no
26357 + need_lib_prefix=no
26358 + ;;
26359 + freebsd-*)
26360 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
26361 + need_version=yes
26362 + ;;
26363 + esac
26364 + shlibpath_var=LD_LIBRARY_PATH
26365 + case $host_os in
26366 + freebsd2*)
26367 + shlibpath_overrides_runpath=yes
26368 + ;;
26369 + freebsd3.[01]* | freebsdelf3.[01]*)
26370 + shlibpath_overrides_runpath=yes
26371 + hardcode_into_libs=yes
26372 + ;;
26373 + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
26374 + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
26375 + shlibpath_overrides_runpath=no
26376 + hardcode_into_libs=yes
26377 + ;;
26378 + freebsd*) # from 4.6 on
26379 + shlibpath_overrides_runpath=yes
26380 + hardcode_into_libs=yes
26381 + ;;
26382 + esac
26383 + ;;
26385 +gnu*)
26386 + version_type=linux
26387 + need_lib_prefix=no
26388 + need_version=no
26389 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
26390 + soname_spec='${libname}${release}${shared_ext}$major'
26391 + shlibpath_var=LD_LIBRARY_PATH
26392 + hardcode_into_libs=yes
26393 + ;;
26395 +hpux9* | hpux10* | hpux11*)
26396 + # Give a soname corresponding to the major version so that dld.sl refuses to
26397 + # link against other versions.
26398 + version_type=sunos
26399 + need_lib_prefix=no
26400 + need_version=no
26401 + case $host_cpu in
26402 + ia64*)
26403 + shrext_cmds='.so'
26404 + hardcode_into_libs=yes
26405 + dynamic_linker="$host_os dld.so"
26406 + shlibpath_var=LD_LIBRARY_PATH
26407 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26408 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26409 + soname_spec='${libname}${release}${shared_ext}$major'
26410 + if test "X$HPUX_IA64_MODE" = X32; then
26411 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
26412 + else
26413 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
26414 + fi
26415 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26416 + ;;
26417 + hppa*64*)
26418 + shrext_cmds='.sl'
26419 + hardcode_into_libs=yes
26420 + dynamic_linker="$host_os dld.sl"
26421 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
26422 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26423 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26424 + soname_spec='${libname}${release}${shared_ext}$major'
26425 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
26426 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26427 + ;;
26428 + *)
26429 + shrext_cmds='.sl'
26430 + dynamic_linker="$host_os dld.sl"
26431 + shlibpath_var=SHLIB_PATH
26432 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
26433 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26434 + soname_spec='${libname}${release}${shared_ext}$major'
26435 + ;;
26436 + esac
26437 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
26438 + postinstall_cmds='chmod 555 $lib'
26439 + ;;
26441 +interix3*)
26442 + version_type=linux
26443 + need_lib_prefix=no
26444 + need_version=no
26445 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26446 + soname_spec='${libname}${release}${shared_ext}$major'
26447 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26448 + shlibpath_var=LD_LIBRARY_PATH
26449 + shlibpath_overrides_runpath=no
26450 + hardcode_into_libs=yes
26451 + ;;
26453 +irix5* | irix6* | nonstopux*)
26454 + case $host_os in
26455 + nonstopux*) version_type=nonstopux ;;
26456 + *)
26457 + if test "$lt_cv_prog_gnu_ld" = yes; then
26458 + version_type=linux
26459 + else
26460 + version_type=irix
26461 + fi ;;
26462 + esac
26463 + need_lib_prefix=no
26464 + need_version=no
26465 + soname_spec='${libname}${release}${shared_ext}$major'
26466 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26467 + case $host_os in
26468 + irix5* | nonstopux*)
26469 + libsuff= shlibsuff=
26470 + ;;
26471 + *)
26472 + case $LD in # libtool.m4 will add one of these switches to LD
26473 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26474 + libsuff= shlibsuff= libmagic=32-bit;;
26475 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26476 + libsuff=32 shlibsuff=N32 libmagic=N32;;
26477 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26478 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
26479 + *) libsuff= shlibsuff= libmagic=never-match;;
26480 + esac
26481 + ;;
26482 + esac
26483 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26484 + shlibpath_overrides_runpath=no
26485 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26486 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26487 + hardcode_into_libs=yes
26488 + ;;
26490 +# No shared lib support for Linux oldld, aout, or coff.
26491 +linux*oldld* | linux*aout* | linux*coff*)
26492 + dynamic_linker=no
26493 + ;;
26495 +# This must be Linux ELF.
26496 +linux*)
26497 + version_type=linux
26498 + need_lib_prefix=no
26499 + need_version=no
26500 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26501 + soname_spec='${libname}${release}${shared_ext}$major'
26502 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26503 + shlibpath_var=LD_LIBRARY_PATH
26504 + shlibpath_overrides_runpath=no
26505 + # This implies no fast_install, which is unacceptable.
26506 + # Some rework will be needed to allow for fast_install
26507 + # before this can be enabled.
26508 + hardcode_into_libs=yes
26510 + # Append ld.so.conf contents to the search path
26511 + if test -f /etc/ld.so.conf; then
26512 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
26513 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26514 + fi
26516 + # We used to test for /lib/ld.so.1 and disable shared libraries on
26517 + # powerpc, because MkLinux only supported shared libraries with the
26518 + # GNU dynamic linker. Since this was broken with cross compilers,
26519 + # most powerpc-linux boxes support dynamic linking these days and
26520 + # people can always --disable-shared, the test was removed, and we
26521 + # assume the GNU/Linux dynamic linker is in use.
26522 + dynamic_linker='GNU/Linux ld.so'
26523 + ;;
26525 +netbsdelf*-gnu)
26526 + version_type=linux
26527 + need_lib_prefix=no
26528 + need_version=no
26529 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26530 + soname_spec='${libname}${release}${shared_ext}$major'
26531 + shlibpath_var=LD_LIBRARY_PATH
26532 + shlibpath_overrides_runpath=no
26533 + hardcode_into_libs=yes
26534 + dynamic_linker='NetBSD ld.elf_so'
26535 + ;;
26537 +knetbsd*-gnu)
26538 + version_type=linux
26539 + need_lib_prefix=no
26540 + need_version=no
26541 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26542 + soname_spec='${libname}${release}${shared_ext}$major'
26543 + shlibpath_var=LD_LIBRARY_PATH
26544 + shlibpath_overrides_runpath=no
26545 + hardcode_into_libs=yes
26546 + dynamic_linker='GNU ld.so'
26547 + ;;
26549 +netbsd*)
26550 + version_type=sunos
26551 + need_lib_prefix=no
26552 + need_version=no
26553 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26554 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26555 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26556 + dynamic_linker='NetBSD (a.out) ld.so'
26557 + else
26558 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26559 + soname_spec='${libname}${release}${shared_ext}$major'
26560 + dynamic_linker='NetBSD ld.elf_so'
26561 + fi
26562 + shlibpath_var=LD_LIBRARY_PATH
26563 + shlibpath_overrides_runpath=yes
26564 + hardcode_into_libs=yes
26565 + ;;
26567 +newsos6)
26568 + version_type=linux
26569 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26570 + shlibpath_var=LD_LIBRARY_PATH
26571 + shlibpath_overrides_runpath=yes
26572 + ;;
26574 +nto-qnx*)
26575 + version_type=linux
26576 + need_lib_prefix=no
26577 + need_version=no
26578 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26579 + soname_spec='${libname}${release}${shared_ext}$major'
26580 + shlibpath_var=LD_LIBRARY_PATH
26581 + shlibpath_overrides_runpath=yes
26582 + ;;
26584 +openbsd*)
26585 + version_type=sunos
26586 + sys_lib_dlsearch_path_spec="/usr/lib"
26587 + need_lib_prefix=no
26588 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26589 + case $host_os in
26590 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26591 + *) need_version=no ;;
26592 + esac
26593 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26594 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26595 + shlibpath_var=LD_LIBRARY_PATH
26596 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26597 + case $host_os in
26598 + openbsd2.[89] | openbsd2.[89].*)
26599 + shlibpath_overrides_runpath=no
26600 + ;;
26601 + *)
26602 + shlibpath_overrides_runpath=yes
26603 + ;;
26604 + esac
26605 + else
26606 + shlibpath_overrides_runpath=yes
26607 + fi
26608 + ;;
26610 +os2*)
26611 + libname_spec='$name'
26612 + shrext_cmds=".dll"
26613 + need_lib_prefix=no
26614 + library_names_spec='$libname${shared_ext} $libname.a'
26615 + dynamic_linker='OS/2 ld.exe'
26616 + shlibpath_var=LIBPATH
26617 + ;;
26619 +osf3* | osf4* | osf5*)
26620 + version_type=osf
26621 + need_lib_prefix=no
26622 + need_version=no
26623 + soname_spec='${libname}${release}${shared_ext}$major'
26624 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26625 + shlibpath_var=LD_LIBRARY_PATH
26626 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26627 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26628 + ;;
26630 +solaris*)
26631 + version_type=linux
26632 + need_lib_prefix=no
26633 + need_version=no
26634 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26635 + soname_spec='${libname}${release}${shared_ext}$major'
26636 + shlibpath_var=LD_LIBRARY_PATH
26637 + shlibpath_overrides_runpath=yes
26638 + hardcode_into_libs=yes
26639 + # ldd complains unless libraries are executable
26640 + postinstall_cmds='chmod +x $lib'
26641 + ;;
26643 +sunos4*)
26644 + version_type=sunos
26645 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26646 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26647 + shlibpath_var=LD_LIBRARY_PATH
26648 + shlibpath_overrides_runpath=yes
26649 + if test "$with_gnu_ld" = yes; then
26650 + need_lib_prefix=no
26651 + fi
26652 + need_version=yes
26653 + ;;
26655 +sysv4 | sysv4.3*)
26656 + version_type=linux
26657 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26658 + soname_spec='${libname}${release}${shared_ext}$major'
26659 + shlibpath_var=LD_LIBRARY_PATH
26660 + case $host_vendor in
26661 + sni)
26662 + shlibpath_overrides_runpath=no
26663 + need_lib_prefix=no
26664 + export_dynamic_flag_spec='${wl}-Blargedynsym'
26665 + runpath_var=LD_RUN_PATH
26666 + ;;
26667 + siemens)
26668 + need_lib_prefix=no
26669 + ;;
26670 + motorola)
26671 + need_lib_prefix=no
26672 + need_version=no
26673 + shlibpath_overrides_runpath=no
26674 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26675 + ;;
26676 + esac
26677 + ;;
26679 +sysv4*MP*)
26680 + if test -d /usr/nec ;then
26681 + version_type=linux
26682 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26683 + soname_spec='$libname${shared_ext}.$major'
26684 + shlibpath_var=LD_LIBRARY_PATH
26685 + fi
26686 + ;;
26688 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26689 + version_type=freebsd-elf
26690 + need_lib_prefix=no
26691 + need_version=no
26692 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26693 + soname_spec='${libname}${release}${shared_ext}$major'
26694 + shlibpath_var=LD_LIBRARY_PATH
26695 + hardcode_into_libs=yes
26696 + if test "$with_gnu_ld" = yes; then
26697 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26698 + shlibpath_overrides_runpath=no
26699 + else
26700 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26701 + shlibpath_overrides_runpath=yes
26702 + case $host_os in
26703 + sco3.2v5*)
26704 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26705 + ;;
26706 + esac
26707 + fi
26708 + sys_lib_dlsearch_path_spec='/usr/lib'
26709 + ;;
26711 +uts4*)
26712 + version_type=linux
26713 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26714 + soname_spec='${libname}${release}${shared_ext}$major'
26715 + shlibpath_var=LD_LIBRARY_PATH
26716 + ;;
26719 + dynamic_linker=no
26720 + ;;
26721 +esac
26722 +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26723 +echo "${ECHO_T}$dynamic_linker" >&6
26724 +test "$dynamic_linker" = no && can_build_shared=no
26726 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26727 +if test "$GCC" = yes; then
26728 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26731 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26732 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
26733 +hardcode_action_GCJ=
26734 +if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26735 + test -n "$runpath_var_GCJ" || \
26736 + test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26738 + # We can hardcode non-existant directories.
26739 + if test "$hardcode_direct_GCJ" != no &&
26740 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
26741 + # have to relink, otherwise we might link with an installed library
26742 + # when we should be linking with a yet-to-be-installed one
26743 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26744 + test "$hardcode_minus_L_GCJ" != no; then
26745 + # Linking always hardcodes the temporary library directory.
26746 + hardcode_action_GCJ=relink
26747 + else
26748 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
26749 + hardcode_action_GCJ=immediate
26750 + fi
26751 +else
26752 + # We cannot hardcode anything, or else we can only hardcode existing
26753 + # directories.
26754 + hardcode_action_GCJ=unsupported
26756 +echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26757 +echo "${ECHO_T}$hardcode_action_GCJ" >&6
26759 +if test "$hardcode_action_GCJ" = relink; then
26760 + # Fast installation is not supported
26761 + enable_fast_install=no
26762 +elif test "$shlibpath_overrides_runpath" = yes ||
26763 + test "$enable_shared" = no; then
26764 + # Fast installation is not necessary
26765 + enable_fast_install=needless
26769 +# The else clause should only fire when bootstrapping the
26770 +# libtool distribution, otherwise you forgot to ship ltmain.sh
26771 +# with your package, and you will get complaints that there are
26772 +# no rules to generate ltmain.sh.
26773 +if test -f "$ltmain"; then
26774 + # See if we are running on zsh, and set the options which allow our commands through
26775 + # without removal of \ escapes.
26776 + if test -n "${ZSH_VERSION+set}" ; then
26777 + setopt NO_GLOB_SUBST
26778 + fi
26779 + # Now quote all the things that may contain metacharacters while being
26780 + # careful not to overquote the AC_SUBSTed values. We take copies of the
26781 + # variables and quote the copies for generation of the libtool script.
26782 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26783 + SED SHELL STRIP \
26784 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26785 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26786 + deplibs_check_method reload_flag reload_cmds need_locks \
26787 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26788 + lt_cv_sys_global_symbol_to_c_name_address \
26789 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26790 + old_postinstall_cmds old_postuninstall_cmds \
26791 + compiler_GCJ \
26792 + CC_GCJ \
26793 + LD_GCJ \
26794 + lt_prog_compiler_wl_GCJ \
26795 + lt_prog_compiler_pic_GCJ \
26796 + lt_prog_compiler_static_GCJ \
26797 + lt_prog_compiler_no_builtin_flag_GCJ \
26798 + export_dynamic_flag_spec_GCJ \
26799 + thread_safe_flag_spec_GCJ \
26800 + whole_archive_flag_spec_GCJ \
26801 + enable_shared_with_static_runtimes_GCJ \
26802 + old_archive_cmds_GCJ \
26803 + old_archive_from_new_cmds_GCJ \
26804 + predep_objects_GCJ \
26805 + postdep_objects_GCJ \
26806 + predeps_GCJ \
26807 + postdeps_GCJ \
26808 + compiler_lib_search_path_GCJ \
26809 + archive_cmds_GCJ \
26810 + archive_expsym_cmds_GCJ \
26811 + postinstall_cmds_GCJ \
26812 + postuninstall_cmds_GCJ \
26813 + old_archive_from_expsyms_cmds_GCJ \
26814 + allow_undefined_flag_GCJ \
26815 + no_undefined_flag_GCJ \
26816 + export_symbols_cmds_GCJ \
26817 + hardcode_libdir_flag_spec_GCJ \
26818 + hardcode_libdir_flag_spec_ld_GCJ \
26819 + hardcode_libdir_separator_GCJ \
26820 + hardcode_automatic_GCJ \
26821 + module_cmds_GCJ \
26822 + module_expsym_cmds_GCJ \
26823 + lt_cv_prog_compiler_c_o_GCJ \
26824 + exclude_expsyms_GCJ \
26825 + include_expsyms_GCJ; do
26827 + case $var in
26828 + old_archive_cmds_GCJ | \
26829 + old_archive_from_new_cmds_GCJ | \
26830 + archive_cmds_GCJ | \
26831 + archive_expsym_cmds_GCJ | \
26832 + module_cmds_GCJ | \
26833 + module_expsym_cmds_GCJ | \
26834 + old_archive_from_expsyms_cmds_GCJ | \
26835 + export_symbols_cmds_GCJ | \
26836 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
26837 + postinstall_cmds | postuninstall_cmds | \
26838 + old_postinstall_cmds | old_postuninstall_cmds | \
26839 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26840 + # Double-quote double-evaled strings.
26841 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26842 + ;;
26843 + *)
26844 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26845 + ;;
26846 + esac
26847 + done
26849 + case $lt_echo in
26850 + *'\$0 --fallback-echo"')
26851 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26852 + ;;
26853 + esac
26855 +cfgfile="$ofile"
26857 + cat <<__EOF__ >> "$cfgfile"
26858 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26860 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26862 +# Shell to use when invoking shell scripts.
26863 +SHELL=$lt_SHELL
26865 +# Whether or not to build shared libraries.
26866 +build_libtool_libs=$enable_shared
26868 +# Whether or not to build static libraries.
26869 +build_old_libs=$enable_static
26871 +# Whether or not to add -lc for building shared libraries.
26872 +build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26874 +# Whether or not to disallow shared libs when runtime libs are static
26875 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26877 +# Whether or not to optimize for fast installation.
26878 +fast_install=$enable_fast_install
26880 +# The host system.
26881 +host_alias=$host_alias
26882 +host=$host
26883 +host_os=$host_os
26885 +# The build system.
26886 +build_alias=$build_alias
26887 +build=$build
26888 +build_os=$build_os
26890 +# An echo program that does not interpret backslashes.
26891 +echo=$lt_echo
26893 +# The archiver.
26894 +AR=$lt_AR
26895 +AR_FLAGS=$lt_AR_FLAGS
26897 +# A C compiler.
26898 +LTCC=$lt_LTCC
26900 +# LTCC compiler flags.
26901 +LTCFLAGS=$lt_LTCFLAGS
26903 +# A language-specific compiler.
26904 +CC=$lt_compiler_GCJ
26906 +# Is the compiler the GNU C compiler?
26907 +with_gcc=$GCC_GCJ
26909 +# An ERE matcher.
26910 +EGREP=$lt_EGREP
26912 +# The linker used to build libraries.
26913 +LD=$lt_LD_GCJ
26915 +# Whether we need hard or soft links.
26916 +LN_S=$lt_LN_S
26918 +# A BSD-compatible nm program.
26919 +NM=$lt_NM
26921 +# A symbol stripping program
26922 +STRIP=$lt_STRIP
26924 +# Used to examine libraries when file_magic_cmd begins "file"
26925 +MAGIC_CMD=$MAGIC_CMD
26927 +# Used on cygwin: DLL creation program.
26928 +DLLTOOL="$DLLTOOL"
26930 +# Used on cygwin: object dumper.
26931 +OBJDUMP="$OBJDUMP"
26933 +# Used on cygwin: assembler.
26934 +AS="$AS"
26936 +# The name of the directory that contains temporary libtool files.
26937 +objdir=$objdir
26939 +# How to create reloadable object files.
26940 +reload_flag=$lt_reload_flag
26941 +reload_cmds=$lt_reload_cmds
26943 +# How to pass a linker flag through the compiler.
26944 +wl=$lt_lt_prog_compiler_wl_GCJ
26946 +# Object file suffix (normally "o").
26947 +objext="$ac_objext"
26949 +# Old archive suffix (normally "a").
26950 +libext="$libext"
26952 +# Shared library suffix (normally ".so").
26953 +shrext_cmds='$shrext_cmds'
26955 +# Executable file suffix (normally "").
26956 +exeext="$exeext"
26958 +# Additional compiler flags for building library objects.
26959 +pic_flag=$lt_lt_prog_compiler_pic_GCJ
26960 +pic_mode=$pic_mode
26962 +# What is the maximum length of a command?
26963 +max_cmd_len=$lt_cv_sys_max_cmd_len
26965 +# Does compiler simultaneously support -c and -o options?
26966 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26968 +# Must we lock files when doing compilation?
26969 +need_locks=$lt_need_locks
26971 +# Do we need the lib prefix for modules?
26972 +need_lib_prefix=$need_lib_prefix
26974 +# Do we need a version for libraries?
26975 +need_version=$need_version
26977 +# Whether dlopen is supported.
26978 +dlopen_support=$enable_dlopen
26980 +# Whether dlopen of programs is supported.
26981 +dlopen_self=$enable_dlopen_self
26983 +# Whether dlopen of statically linked programs is supported.
26984 +dlopen_self_static=$enable_dlopen_self_static
26986 +# Compiler flag to prevent dynamic linking.
26987 +link_static_flag=$lt_lt_prog_compiler_static_GCJ
26989 +# Compiler flag to turn off builtin functions.
26990 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26992 +# Compiler flag to allow reflexive dlopens.
26993 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26995 +# Compiler flag to generate shared objects directly from archives.
26996 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26998 +# Compiler flag to generate thread-safe objects.
26999 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
27001 +# Library versioning type.
27002 +version_type=$version_type
27004 +# Format of library name prefix.
27005 +libname_spec=$lt_libname_spec
27007 +# List of archive names. First name is the real one, the rest are links.
27008 +# The last name is the one that the linker finds with -lNAME.
27009 +library_names_spec=$lt_library_names_spec
27011 +# The coded name of the library, if different from the real name.
27012 +soname_spec=$lt_soname_spec
27014 +# Commands used to build and install an old-style archive.
27015 +RANLIB=$lt_RANLIB
27016 +old_archive_cmds=$lt_old_archive_cmds_GCJ
27017 +old_postinstall_cmds=$lt_old_postinstall_cmds
27018 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
27020 +# Create an old-style archive from a shared archive.
27021 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27023 +# Create a temporary old-style archive to link instead of a shared archive.
27024 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27026 +# Commands used to build and install a shared archive.
27027 +archive_cmds=$lt_archive_cmds_GCJ
27028 +archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27029 +postinstall_cmds=$lt_postinstall_cmds
27030 +postuninstall_cmds=$lt_postuninstall_cmds
27032 +# Commands used to build a loadable module (assumed same as above if empty)
27033 +module_cmds=$lt_module_cmds_GCJ
27034 +module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27036 +# Commands to strip libraries.
27037 +old_striplib=$lt_old_striplib
27038 +striplib=$lt_striplib
27040 +# Dependencies to place before the objects being linked to create a
27041 +# shared library.
27042 +predep_objects=$lt_predep_objects_GCJ
27044 +# Dependencies to place after the objects being linked to create a
27045 +# shared library.
27046 +postdep_objects=$lt_postdep_objects_GCJ
27048 +# Dependencies to place before the objects being linked to create a
27049 +# shared library.
27050 +predeps=$lt_predeps_GCJ
27052 +# Dependencies to place after the objects being linked to create a
27053 +# shared library.
27054 +postdeps=$lt_postdeps_GCJ
27056 +# The library search path used internally by the compiler when linking
27057 +# a shared library.
27058 +compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27060 +# Method to check whether dependent libraries are shared objects.
27061 +deplibs_check_method=$lt_deplibs_check_method
27063 +# Command to use when deplibs_check_method == file_magic.
27064 +file_magic_cmd=$lt_file_magic_cmd
27066 +# Flag that allows shared libraries with undefined symbols to be built.
27067 +allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27069 +# Flag that forces no undefined symbols.
27070 +no_undefined_flag=$lt_no_undefined_flag_GCJ
27072 +# Commands used to finish a libtool library installation in a directory.
27073 +finish_cmds=$lt_finish_cmds
27075 +# Same as above, but a single script fragment to be evaled but not shown.
27076 +finish_eval=$lt_finish_eval
27078 +# Take the output of nm and produce a listing of raw symbols and C names.
27079 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27081 +# Transform the output of nm in a proper C declaration
27082 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27084 +# Transform the output of nm in a C name address pair
27085 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27087 +# This is the shared library runtime path variable.
27088 +runpath_var=$runpath_var
27090 +# This is the shared library path variable.
27091 +shlibpath_var=$shlibpath_var
27093 +# Is shlibpath searched before the hard-coded library search path?
27094 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27096 +# How to hardcode a shared library path into an executable.
27097 +hardcode_action=$hardcode_action_GCJ
27099 +# Whether we should hardcode library paths into libraries.
27100 +hardcode_into_libs=$hardcode_into_libs
27102 +# Flag to hardcode \$libdir into a binary during linking.
27103 +# This must work even if \$libdir does not exist.
27104 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27106 +# If ld is used when linking, flag to hardcode \$libdir into
27107 +# a binary during linking. This must work even if \$libdir does
27108 +# not exist.
27109 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27111 +# Whether we need a single -rpath flag with a separated argument.
27112 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27114 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27115 +# resulting binary.
27116 +hardcode_direct=$hardcode_direct_GCJ
27118 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27119 +# resulting binary.
27120 +hardcode_minus_L=$hardcode_minus_L_GCJ
27122 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27123 +# the resulting binary.
27124 +hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27126 +# Set to yes if building a shared library automatically hardcodes DIR into the library
27127 +# and all subsequent libraries and executables linked against it.
27128 +hardcode_automatic=$hardcode_automatic_GCJ
27130 +# Variables whose values should be saved in libtool wrapper scripts and
27131 +# restored at relink time.
27132 +variables_saved_for_relink="$variables_saved_for_relink"
27134 +# Whether libtool must link a program against all its dependency libraries.
27135 +link_all_deplibs=$link_all_deplibs_GCJ
27137 +# Compile-time system search path for libraries
27138 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27140 +# Run-time system search path for libraries
27141 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27143 +# Fix the shell variable \$srcfile for the compiler.
27144 +fix_srcfile_path="$fix_srcfile_path_GCJ"
27146 +# Set to yes if exported symbols are required.
27147 +always_export_symbols=$always_export_symbols_GCJ
27149 +# The commands to list exported symbols.
27150 +export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27152 +# The commands to extract the exported symbol list from a shared archive.
27153 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
27155 +# Symbols that should not be listed in the preloaded symbols.
27156 +exclude_expsyms=$lt_exclude_expsyms_GCJ
27158 +# Symbols that must always be exported.
27159 +include_expsyms=$lt_include_expsyms_GCJ
27161 +# ### END LIBTOOL TAG CONFIG: $tagname
27163 +__EOF__
27166 +else
27167 + # If there is no Makefile yet, we rely on a make rule to execute
27168 + # `config.status --recheck' to rerun these tests and create the
27169 + # libtool script then.
27170 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27171 + if test -f "$ltmain_in"; then
27172 + test -f Makefile && make "$ltmain"
27173 + fi
27177 +ac_ext=c
27178 +ac_cpp='$CPP $CPPFLAGS'
27179 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27180 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27181 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
27183 +CC="$lt_save_CC"
27185 + else
27186 + tagname=""
27187 + fi
27188 + ;;
27190 + RC)
27194 +# Source file extension for RC test sources.
27195 +ac_ext=rc
27197 +# Object file extension for compiled RC test sources.
27198 +objext=o
27199 +objext_RC=$objext
27201 +# Code to be used in simple compile tests
27202 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
27204 +# Code to be used in simple link tests
27205 +lt_simple_link_test_code="$lt_simple_compile_test_code"
27207 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
27209 +# If no C compiler was specified, use CC.
27210 +LTCC=${LTCC-"$CC"}
27212 +# If no C compiler flags were specified, use CFLAGS.
27213 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
27215 +# Allow CC to be a program name with arguments.
27216 +compiler=$CC
27219 +# save warnings/boilerplate of simple test code
27220 +ac_outfile=conftest.$ac_objext
27221 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
27222 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27223 +_lt_compiler_boilerplate=`cat conftest.err`
27224 +$rm conftest*
27226 +ac_outfile=conftest.$ac_objext
27227 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
27228 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27229 +_lt_linker_boilerplate=`cat conftest.err`
27230 +$rm conftest*
27233 +# Allow CC to be a program name with arguments.
27234 +lt_save_CC="$CC"
27235 +CC=${RC-"windres"}
27236 +compiler=$CC
27237 +compiler_RC=$CC
27238 +for cc_temp in $compiler""; do
27239 + case $cc_temp in
27240 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27241 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27242 + \-*) ;;
27243 + *) break;;
27244 + esac
27245 +done
27246 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
27248 +lt_cv_prog_compiler_c_o_RC=yes
27250 +# The else clause should only fire when bootstrapping the
27251 +# libtool distribution, otherwise you forgot to ship ltmain.sh
27252 +# with your package, and you will get complaints that there are
27253 +# no rules to generate ltmain.sh.
27254 +if test -f "$ltmain"; then
27255 + # See if we are running on zsh, and set the options which allow our commands through
27256 + # without removal of \ escapes.
27257 + if test -n "${ZSH_VERSION+set}" ; then
27258 + setopt NO_GLOB_SUBST
27259 + fi
27260 + # Now quote all the things that may contain metacharacters while being
27261 + # careful not to overquote the AC_SUBSTed values. We take copies of the
27262 + # variables and quote the copies for generation of the libtool script.
27263 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
27264 + SED SHELL STRIP \
27265 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
27266 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
27267 + deplibs_check_method reload_flag reload_cmds need_locks \
27268 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
27269 + lt_cv_sys_global_symbol_to_c_name_address \
27270 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
27271 + old_postinstall_cmds old_postuninstall_cmds \
27272 + compiler_RC \
27273 + CC_RC \
27274 + LD_RC \
27275 + lt_prog_compiler_wl_RC \
27276 + lt_prog_compiler_pic_RC \
27277 + lt_prog_compiler_static_RC \
27278 + lt_prog_compiler_no_builtin_flag_RC \
27279 + export_dynamic_flag_spec_RC \
27280 + thread_safe_flag_spec_RC \
27281 + whole_archive_flag_spec_RC \
27282 + enable_shared_with_static_runtimes_RC \
27283 + old_archive_cmds_RC \
27284 + old_archive_from_new_cmds_RC \
27285 + predep_objects_RC \
27286 + postdep_objects_RC \
27287 + predeps_RC \
27288 + postdeps_RC \
27289 + compiler_lib_search_path_RC \
27290 + archive_cmds_RC \
27291 + archive_expsym_cmds_RC \
27292 + postinstall_cmds_RC \
27293 + postuninstall_cmds_RC \
27294 + old_archive_from_expsyms_cmds_RC \
27295 + allow_undefined_flag_RC \
27296 + no_undefined_flag_RC \
27297 + export_symbols_cmds_RC \
27298 + hardcode_libdir_flag_spec_RC \
27299 + hardcode_libdir_flag_spec_ld_RC \
27300 + hardcode_libdir_separator_RC \
27301 + hardcode_automatic_RC \
27302 + module_cmds_RC \
27303 + module_expsym_cmds_RC \
27304 + lt_cv_prog_compiler_c_o_RC \
27305 + exclude_expsyms_RC \
27306 + include_expsyms_RC; do
27308 + case $var in
27309 + old_archive_cmds_RC | \
27310 + old_archive_from_new_cmds_RC | \
27311 + archive_cmds_RC | \
27312 + archive_expsym_cmds_RC | \
27313 + module_cmds_RC | \
27314 + module_expsym_cmds_RC | \
27315 + old_archive_from_expsyms_cmds_RC | \
27316 + export_symbols_cmds_RC | \
27317 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
27318 + postinstall_cmds | postuninstall_cmds | \
27319 + old_postinstall_cmds | old_postuninstall_cmds | \
27320 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
27321 + # Double-quote double-evaled strings.
27322 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
27323 + ;;
27324 + *)
27325 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
27326 + ;;
27327 + esac
27328 + done
27330 + case $lt_echo in
27331 + *'\$0 --fallback-echo"')
27332 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
27333 + ;;
27334 + esac
27336 +cfgfile="$ofile"
27338 + cat <<__EOF__ >> "$cfgfile"
27339 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
27341 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27343 +# Shell to use when invoking shell scripts.
27344 +SHELL=$lt_SHELL
27346 +# Whether or not to build shared libraries.
27347 +build_libtool_libs=$enable_shared
27349 +# Whether or not to build static libraries.
27350 +build_old_libs=$enable_static
27352 +# Whether or not to add -lc for building shared libraries.
27353 +build_libtool_need_lc=$archive_cmds_need_lc_RC
27355 +# Whether or not to disallow shared libs when runtime libs are static
27356 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
27358 +# Whether or not to optimize for fast installation.
27359 +fast_install=$enable_fast_install
27361 +# The host system.
27362 +host_alias=$host_alias
27363 +host=$host
27364 +host_os=$host_os
27366 +# The build system.
27367 +build_alias=$build_alias
27368 +build=$build
27369 +build_os=$build_os
27371 +# An echo program that does not interpret backslashes.
27372 +echo=$lt_echo
27374 +# The archiver.
27375 +AR=$lt_AR
27376 +AR_FLAGS=$lt_AR_FLAGS
27378 +# A C compiler.
27379 +LTCC=$lt_LTCC
27381 +# LTCC compiler flags.
27382 +LTCFLAGS=$lt_LTCFLAGS
27384 +# A language-specific compiler.
27385 +CC=$lt_compiler_RC
27387 +# Is the compiler the GNU C compiler?
27388 +with_gcc=$GCC_RC
27390 +# An ERE matcher.
27391 +EGREP=$lt_EGREP
27393 +# The linker used to build libraries.
27394 +LD=$lt_LD_RC
27396 +# Whether we need hard or soft links.
27397 +LN_S=$lt_LN_S
27399 +# A BSD-compatible nm program.
27400 +NM=$lt_NM
27402 +# A symbol stripping program
27403 +STRIP=$lt_STRIP
27405 +# Used to examine libraries when file_magic_cmd begins "file"
27406 +MAGIC_CMD=$MAGIC_CMD
27408 +# Used on cygwin: DLL creation program.
27409 +DLLTOOL="$DLLTOOL"
27411 +# Used on cygwin: object dumper.
27412 +OBJDUMP="$OBJDUMP"
27414 +# Used on cygwin: assembler.
27415 +AS="$AS"
27417 +# The name of the directory that contains temporary libtool files.
27418 +objdir=$objdir
27420 +# How to create reloadable object files.
27421 +reload_flag=$lt_reload_flag
27422 +reload_cmds=$lt_reload_cmds
27424 +# How to pass a linker flag through the compiler.
27425 +wl=$lt_lt_prog_compiler_wl_RC
27427 +# Object file suffix (normally "o").
27428 +objext="$ac_objext"
27430 +# Old archive suffix (normally "a").
27431 +libext="$libext"
27433 +# Shared library suffix (normally ".so").
27434 +shrext_cmds='$shrext_cmds'
27436 +# Executable file suffix (normally "").
27437 +exeext="$exeext"
27439 +# Additional compiler flags for building library objects.
27440 +pic_flag=$lt_lt_prog_compiler_pic_RC
27441 +pic_mode=$pic_mode
27443 +# What is the maximum length of a command?
27444 +max_cmd_len=$lt_cv_sys_max_cmd_len
27446 +# Does compiler simultaneously support -c and -o options?
27447 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27449 +# Must we lock files when doing compilation?
27450 +need_locks=$lt_need_locks
27452 +# Do we need the lib prefix for modules?
27453 +need_lib_prefix=$need_lib_prefix
27455 +# Do we need a version for libraries?
27456 +need_version=$need_version
27458 +# Whether dlopen is supported.
27459 +dlopen_support=$enable_dlopen
27461 +# Whether dlopen of programs is supported.
27462 +dlopen_self=$enable_dlopen_self
27464 +# Whether dlopen of statically linked programs is supported.
27465 +dlopen_self_static=$enable_dlopen_self_static
27467 +# Compiler flag to prevent dynamic linking.
27468 +link_static_flag=$lt_lt_prog_compiler_static_RC
27470 +# Compiler flag to turn off builtin functions.
27471 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
27473 +# Compiler flag to allow reflexive dlopens.
27474 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27476 +# Compiler flag to generate shared objects directly from archives.
27477 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27479 +# Compiler flag to generate thread-safe objects.
27480 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27482 +# Library versioning type.
27483 +version_type=$version_type
27485 +# Format of library name prefix.
27486 +libname_spec=$lt_libname_spec
27488 +# List of archive names. First name is the real one, the rest are links.
27489 +# The last name is the one that the linker finds with -lNAME.
27490 +library_names_spec=$lt_library_names_spec
27492 +# The coded name of the library, if different from the real name.
27493 +soname_spec=$lt_soname_spec
27495 +# Commands used to build and install an old-style archive.
27496 +RANLIB=$lt_RANLIB
27497 +old_archive_cmds=$lt_old_archive_cmds_RC
27498 +old_postinstall_cmds=$lt_old_postinstall_cmds
27499 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
27501 +# Create an old-style archive from a shared archive.
27502 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27504 +# Create a temporary old-style archive to link instead of a shared archive.
27505 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27507 +# Commands used to build and install a shared archive.
27508 +archive_cmds=$lt_archive_cmds_RC
27509 +archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27510 +postinstall_cmds=$lt_postinstall_cmds
27511 +postuninstall_cmds=$lt_postuninstall_cmds
27513 +# Commands used to build a loadable module (assumed same as above if empty)
27514 +module_cmds=$lt_module_cmds_RC
27515 +module_expsym_cmds=$lt_module_expsym_cmds_RC
27517 +# Commands to strip libraries.
27518 +old_striplib=$lt_old_striplib
27519 +striplib=$lt_striplib
27521 +# Dependencies to place before the objects being linked to create a
27522 +# shared library.
27523 +predep_objects=$lt_predep_objects_RC
27525 +# Dependencies to place after the objects being linked to create a
27526 +# shared library.
27527 +postdep_objects=$lt_postdep_objects_RC
27529 +# Dependencies to place before the objects being linked to create a
27530 +# shared library.
27531 +predeps=$lt_predeps_RC
27533 +# Dependencies to place after the objects being linked to create a
27534 +# shared library.
27535 +postdeps=$lt_postdeps_RC
27537 +# The library search path used internally by the compiler when linking
27538 +# a shared library.
27539 +compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27541 +# Method to check whether dependent libraries are shared objects.
27542 +deplibs_check_method=$lt_deplibs_check_method
27544 +# Command to use when deplibs_check_method == file_magic.
27545 +file_magic_cmd=$lt_file_magic_cmd
27547 +# Flag that allows shared libraries with undefined symbols to be built.
27548 +allow_undefined_flag=$lt_allow_undefined_flag_RC
27550 +# Flag that forces no undefined symbols.
27551 +no_undefined_flag=$lt_no_undefined_flag_RC
27553 +# Commands used to finish a libtool library installation in a directory.
27554 +finish_cmds=$lt_finish_cmds
27556 +# Same as above, but a single script fragment to be evaled but not shown.
27557 +finish_eval=$lt_finish_eval
27559 +# Take the output of nm and produce a listing of raw symbols and C names.
27560 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27562 +# Transform the output of nm in a proper C declaration
27563 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27565 +# Transform the output of nm in a C name address pair
27566 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27568 +# This is the shared library runtime path variable.
27569 +runpath_var=$runpath_var
27571 +# This is the shared library path variable.
27572 +shlibpath_var=$shlibpath_var
27574 -# Check for any special flags to pass to ltconfig.
27575 -libtool_flags="--cache-file=$cache_file"
27576 -test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
27577 -test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
27578 -test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
27579 -test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
27580 -test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
27581 +# Is shlibpath searched before the hard-coded library search path?
27582 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27584 +# How to hardcode a shared library path into an executable.
27585 +hardcode_action=$hardcode_action_RC
27587 -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
27588 -if test "${enable_libtool_lock+set}" = set; then
27589 - enableval="$enable_libtool_lock"
27592 +# Whether we should hardcode library paths into libraries.
27593 +hardcode_into_libs=$hardcode_into_libs
27595 -test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
27596 -test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
27597 +# Flag to hardcode \$libdir into a binary during linking.
27598 +# This must work even if \$libdir does not exist.
27599 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27601 -# Some flags need to be propagated to the compiler or linker for good
27602 -# libtool support.
27603 -case "$lt_target" in
27604 -*-*-irix6*)
27605 - # Find out which ABI we are using.
27606 - echo '#line 1422 "configure"' > conftest.$ac_ext
27607 - if { (eval echo configure:1423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
27608 - case "`/usr/bin/file conftest.o`" in
27609 - *32-bit*)
27610 - LD="${LD-ld} -32"
27611 - ;;
27612 - *N32*)
27613 - LD="${LD-ld} -n32"
27614 - ;;
27615 - *64-bit*)
27616 - LD="${LD-ld} -64"
27617 - ;;
27618 - esac
27619 - fi
27620 - rm -rf conftest*
27621 - ;;
27622 +# If ld is used when linking, flag to hardcode \$libdir into
27623 +# a binary during linking. This must work even if \$libdir does
27624 +# not exist.
27625 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27627 -*-*-sco3.2v5*)
27628 - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
27629 - SAVE_CFLAGS="$CFLAGS"
27630 - CFLAGS="$CFLAGS -belf"
27631 - echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
27632 -echo "configure:1444: checking whether the C compiler needs -belf" >&5
27633 -if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
27634 - echo $ac_n "(cached) $ac_c" 1>&6
27635 -else
27636 - cat > conftest.$ac_ext <<EOF
27637 -#line 1449 "configure"
27638 -#include "confdefs.h"
27639 +# Whether we need a single -rpath flag with a separated argument.
27640 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27642 -int main() {
27643 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27644 +# resulting binary.
27645 +hardcode_direct=$hardcode_direct_RC
27647 -; return 0; }
27648 -EOF
27649 -if { (eval echo configure:1456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
27650 - rm -rf conftest*
27651 - lt_cv_cc_needs_belf=yes
27652 -else
27653 - echo "configure: failed program was:" >&5
27654 - cat conftest.$ac_ext >&5
27655 - rm -rf conftest*
27656 - lt_cv_cc_needs_belf=no
27658 -rm -f conftest*
27660 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27661 +# resulting binary.
27662 +hardcode_minus_L=$hardcode_minus_L_RC
27664 -echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
27665 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
27666 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
27667 - CFLAGS="$SAVE_CFLAGS"
27668 - fi
27669 - ;;
27670 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27671 +# the resulting binary.
27672 +hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27674 +# Set to yes if building a shared library automatically hardcodes DIR into the library
27675 +# and all subsequent libraries and executables linked against it.
27676 +hardcode_automatic=$hardcode_automatic_RC
27678 -esac
27679 +# Variables whose values should be saved in libtool wrapper scripts and
27680 +# restored at relink time.
27681 +variables_saved_for_relink="$variables_saved_for_relink"
27683 +# Whether libtool must link a program against all its dependency libraries.
27684 +link_all_deplibs=$link_all_deplibs_RC
27686 +# Compile-time system search path for libraries
27687 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27689 +# Run-time system search path for libraries
27690 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27692 +# Fix the shell variable \$srcfile for the compiler.
27693 +fix_srcfile_path="$fix_srcfile_path_RC"
27695 +# Set to yes if exported symbols are required.
27696 +always_export_symbols=$always_export_symbols_RC
27698 +# The commands to list exported symbols.
27699 +export_symbols_cmds=$lt_export_symbols_cmds_RC
27701 +# The commands to extract the exported symbol list from a shared archive.
27702 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
27704 +# Symbols that should not be listed in the preloaded symbols.
27705 +exclude_expsyms=$lt_exclude_expsyms_RC
27707 +# Symbols that must always be exported.
27708 +include_expsyms=$lt_include_expsyms_RC
27710 +# ### END LIBTOOL TAG CONFIG: $tagname
27712 +__EOF__
27715 -# Save cache, so that ltconfig can load it
27716 -cat > confcache <<\EOF
27717 -# This file is a shell script that caches the results of configure
27718 -# tests run on this system so they can be shared between configure
27719 -# scripts and configure runs. It is not useful on other systems.
27720 -# If it contains results you don't want to keep, you may remove or edit it.
27722 -# By default, configure uses ./config.cache as the cache file,
27723 -# creating it if it does not exist already. You can give configure
27724 -# the --cache-file=FILE option to use a different cache file; that is
27725 -# what configure does when it calls configure scripts in
27726 -# subdirectories, so they share the cache.
27727 -# Giving --cache-file=/dev/null disables caching, for debugging configure.
27728 -# config.status only pays attention to the cache file if you give it the
27729 -# --recheck option to rerun configure.
27731 -EOF
27732 -# The following way of writing the cache mishandles newlines in values,
27733 -# but we know of no workaround that is simple, portable, and efficient.
27734 -# So, don't put newlines in cache variables' values.
27735 -# Ultrix sh set writes to stderr and can't be redirected directly,
27736 -# and sets the high bit in the cache file unless we assign to the vars.
27737 -(set) 2>&1 |
27738 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
27739 - *ac_space=\ *)
27740 - # `set' does not quote correctly, so add quotes (double-quote substitution
27741 - # turns \\\\ into \\, and sed turns \\ into \).
27742 - sed -n \
27743 - -e "s/'/'\\\\''/g" \
27744 - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
27745 - ;;
27746 - *)
27747 - # `set' quotes correctly as required by POSIX, so do not add quotes.
27748 - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
27749 - ;;
27750 - esac >> confcache
27751 -if cmp -s $cache_file confcache; then
27753 else
27754 - if test -w $cache_file; then
27755 - echo "updating cache $cache_file"
27756 - cat confcache > $cache_file
27757 - else
27758 - echo "not updating unwritable cache $cache_file"
27759 + # If there is no Makefile yet, we rely on a make rule to execute
27760 + # `config.status --recheck' to rerun these tests and create the
27761 + # libtool script then.
27762 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27763 + if test -f "$ltmain_in"; then
27764 + test -f Makefile && make "$ltmain"
27767 -rm -f confcache
27770 -# Actually configure libtool. ac_aux_dir is where install-sh is found.
27771 -CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
27772 -LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
27773 -LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
27774 -DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
27775 -${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
27776 -$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
27777 -|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
27778 +ac_ext=c
27779 +ac_cpp='$CPP $CPPFLAGS'
27780 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27781 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27782 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
27784 +CC="$lt_save_CC"
27786 + ;;
27788 + *)
27789 + { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27790 +echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27791 + { (exit 1); exit 1; }; }
27792 + ;;
27793 + esac
27795 -# Reload cache, that may have been modified by ltconfig
27796 -if test -r "$cache_file"; then
27797 - echo "loading cache $cache_file"
27798 - . $cache_file
27799 -else
27800 - echo "creating cache $cache_file"
27801 - > $cache_file
27802 + # Append the new tag name to the list of available tags.
27803 + if test -n "$tagname" ; then
27804 + available_tags="$available_tags $tagname"
27805 + fi
27806 + fi
27807 + done
27808 + IFS="$lt_save_ifs"
27810 + # Now substitute the updated list of available tags.
27811 + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27812 + mv "${ofile}T" "$ofile"
27813 + chmod +x "$ofile"
27814 + else
27815 + rm -f "${ofile}T"
27816 + { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27817 +echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27818 + { (exit 1); exit 1; }; }
27819 + fi
27824 # This can be used to rebuild libtool when needed
27825 -LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
27826 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27828 # Always use our own libtool.
27829 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
27831 -# Redirect the config.log output again, so that the ltconfig log is not
27832 -# clobbered by the next message.
27833 -exec 5>>./config.log
27834 +# Prevent multiple expansion
27849 -echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
27850 -echo "configure:1559: checking whether to enable maintainer-specific portions of Makefiles" >&5
27858 +echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
27859 +echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
27860 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
27861 if test "${enable_maintainer_mode+set}" = set; then
27862 enableval="$enable_maintainer_mode"
27863 USE_MAINTAINER_MODE=$enableval
27864 else
27865 USE_MAINTAINER_MODE=no
27867 +fi;
27868 + echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
27869 +echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
27871 - echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
27874 if test $USE_MAINTAINER_MODE = yes; then
27875 MAINTAINER_MODE_TRUE=
27876 @@ -1575,113 +18235,81 @@
27877 MAINTAINER_MODE_FALSE=
27879 MAINT=$MAINTAINER_MODE_TRUE
27884 -# Make sure we can run config.sub.
27885 -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
27886 -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
27889 -echo $ac_n "checking host system type""... $ac_c" 1>&6
27890 -echo "configure:1589: checking host system type" >&5
27892 -host_alias=$host
27893 -case "$host_alias" in
27894 -NONE)
27895 - case $nonopt in
27896 - NONE)
27897 - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
27898 - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
27899 - fi ;;
27900 - *) host_alias=$nonopt ;;
27901 - esac ;;
27902 -esac
27904 -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
27905 -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
27906 -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
27907 -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
27908 -echo "$ac_t""$host" 1>&6
27912 # Check whether --enable-debug or --disable-debug was given.
27913 if test "${enable_debug+set}" = set; then
27914 enableval="$enable_debug"
27917 else
27918 enable_debug=$debug_default
27921 +fi;
27922 # Check whether --enable-shm or --disable-shm was given.
27923 if test "${enable_shm+set}" = set; then
27924 enableval="$enable_shm"
27925 echo $enable_shm
27926 else
27927 enable_shm="yes"
27930 +fi;
27931 # Check whether --enable-ansi or --disable-ansi was given.
27932 if test "${enable_ansi+set}" = set; then
27933 enableval="$enable_ansi"
27936 else
27937 enable_ansi=no
27939 +fi;
27941 # Check whether --with-glib or --without-glib was given.
27942 if test "${with_glib+set}" = set; then
27943 withval="$with_glib"
27947 +fi;
27948 # Check whether --enable-xim or --disable-xim was given.
27949 if test "${enable_xim+set}" = set; then
27950 enableval="$enable_xim"
27953 else
27954 enable_xim="yes"
27957 +fi;
27958 # Check whether --enable-xim_inst or --disable-xim_inst was given.
27959 if test "${enable_xim_inst+set}" = set; then
27960 enableval="$enable_xim_inst"
27963 else
27964 enable_xim_inst="maybe"
27967 +fi;
27968 # Check whether --enable-rebuilds or --disable-rebuilds was given.
27969 if test "${enable_rebuilds+set}" = set; then
27970 enableval="$enable_rebuilds"
27973 else
27974 enable_rebuilds=yes
27976 +fi;
27978 # Check whether --with-locale or --without-locale was given.
27979 if test "${with_locale+set}" = set; then
27980 withval="$with_locale"
27984 +fi;
27987 # Check whether --with-xinput or --without-xinput was given.
27988 if test "${with_xinput+set}" = set; then
27989 withval="$with_xinput"
27993 +fi;
27995 # Check whether --with-native_locale or --without-native_locale was given.
27996 if test "${with_native_locale+set}" = set; then
27997 withval="$with_native_locale"
28000 else
28001 with_native_locale=no
28004 +fi;
28006 if test "x$enable_debug" = "xyes"; then
28007 test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
28008 @@ -1694,14 +18322,14 @@
28012 -cat >> confdefs.h <<EOF
28013 +cat >>confdefs.h <<_ACEOF
28014 #define GTK_COMPILED_WITH_DEBUGGING "${enable_debug}"
28015 -EOF
28016 +_ACEOF
28019 # Build time sanity check...
28020 -echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
28021 -echo "configure:1705: checking whether build environment is sane" >&5
28022 +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
28023 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
28024 # Just in case
28025 sleep 1
28026 echo timestamp > conftestfile
28027 @@ -1723,8 +18351,11 @@
28028 # if, for instance, CONFIG_SHELL is bash and it inherits a
28029 # broken ls alias from the environment. This has actually
28030 # happened. Such a system could not be considered "sane".
28031 - { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
28032 -alias in your environment" 1>&2; exit 1; }
28033 + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
28034 +alias in your environment" >&5
28035 +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
28036 +alias in your environment" >&2;}
28037 + { (exit 1); exit 1; }; }
28040 test "$2" = conftestfile
28041 @@ -1733,221 +18364,467 @@
28042 # Ok.
28044 else
28045 - { echo "configure: error: newly created file is older than distributed files!
28046 -Check your system clock" 1>&2; exit 1; }
28047 + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
28048 +Check your system clock" >&5
28049 +echo "$as_me: error: newly created file is older than distributed files!
28050 +Check your system clock" >&2;}
28051 + { (exit 1); exit 1; }; }
28053 rm -f conftest*
28054 -echo "$ac_t""yes" 1>&6
28055 +echo "$as_me:$LINENO: result: yes" >&5
28056 +echo "${ECHO_T}yes" >&6
28058 # Checks for programs.
28059 -# Extract the first word of "gcc", so it can be a program name with args.
28060 +ac_ext=c
28061 +ac_cpp='$CPP $CPPFLAGS'
28062 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28063 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28064 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
28065 +if test -n "$ac_tool_prefix"; then
28066 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
28067 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
28068 +echo "$as_me:$LINENO: checking for $ac_word" >&5
28069 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28070 +if test "${ac_cv_prog_CC+set}" = set; then
28071 + echo $ECHO_N "(cached) $ECHO_C" >&6
28072 +else
28073 + if test -n "$CC"; then
28074 + ac_cv_prog_CC="$CC" # Let the user override the test.
28075 +else
28076 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28077 +for as_dir in $PATH
28079 + IFS=$as_save_IFS
28080 + test -z "$as_dir" && as_dir=.
28081 + for ac_exec_ext in '' $ac_executable_extensions; do
28082 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28083 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
28084 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28085 + break 2
28086 + fi
28087 +done
28088 +done
28092 +CC=$ac_cv_prog_CC
28093 +if test -n "$CC"; then
28094 + echo "$as_me:$LINENO: result: $CC" >&5
28095 +echo "${ECHO_T}$CC" >&6
28096 +else
28097 + echo "$as_me:$LINENO: result: no" >&5
28098 +echo "${ECHO_T}no" >&6
28102 +if test -z "$ac_cv_prog_CC"; then
28103 + ac_ct_CC=$CC
28104 + # Extract the first word of "gcc", so it can be a program name with args.
28105 set dummy gcc; ac_word=$2
28106 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
28107 -echo "configure:1747: checking for $ac_word" >&5
28108 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
28109 - echo $ac_n "(cached) $ac_c" 1>&6
28110 +echo "$as_me:$LINENO: checking for $ac_word" >&5
28111 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28112 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
28113 + echo $ECHO_N "(cached) $ECHO_C" >&6
28114 +else
28115 + if test -n "$ac_ct_CC"; then
28116 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
28117 +else
28118 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28119 +for as_dir in $PATH
28121 + IFS=$as_save_IFS
28122 + test -z "$as_dir" && as_dir=.
28123 + for ac_exec_ext in '' $ac_executable_extensions; do
28124 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28125 + ac_cv_prog_ac_ct_CC="gcc"
28126 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28127 + break 2
28128 + fi
28129 +done
28130 +done
28134 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
28135 +if test -n "$ac_ct_CC"; then
28136 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
28137 +echo "${ECHO_T}$ac_ct_CC" >&6
28138 +else
28139 + echo "$as_me:$LINENO: result: no" >&5
28140 +echo "${ECHO_T}no" >&6
28143 + CC=$ac_ct_CC
28144 +else
28145 + CC="$ac_cv_prog_CC"
28148 +if test -z "$CC"; then
28149 + if test -n "$ac_tool_prefix"; then
28150 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
28151 +set dummy ${ac_tool_prefix}cc; ac_word=$2
28152 +echo "$as_me:$LINENO: checking for $ac_word" >&5
28153 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28154 +if test "${ac_cv_prog_CC+set}" = set; then
28155 + echo $ECHO_N "(cached) $ECHO_C" >&6
28156 else
28157 if test -n "$CC"; then
28158 ac_cv_prog_CC="$CC" # Let the user override the test.
28159 else
28160 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
28161 - ac_dummy="$PATH"
28162 - for ac_dir in $ac_dummy; do
28163 - test -z "$ac_dir" && ac_dir=.
28164 - if test -f $ac_dir/$ac_word; then
28165 - ac_cv_prog_CC="gcc"
28166 - break
28167 - fi
28168 - done
28169 - IFS="$ac_save_ifs"
28170 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28171 +for as_dir in $PATH
28173 + IFS=$as_save_IFS
28174 + test -z "$as_dir" && as_dir=.
28175 + for ac_exec_ext in '' $ac_executable_extensions; do
28176 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28177 + ac_cv_prog_CC="${ac_tool_prefix}cc"
28178 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28179 + break 2
28180 + fi
28181 +done
28182 +done
28186 -CC="$ac_cv_prog_CC"
28187 +CC=$ac_cv_prog_CC
28188 if test -n "$CC"; then
28189 - echo "$ac_t""$CC" 1>&6
28190 + echo "$as_me:$LINENO: result: $CC" >&5
28191 +echo "${ECHO_T}$CC" >&6
28192 +else
28193 + echo "$as_me:$LINENO: result: no" >&5
28194 +echo "${ECHO_T}no" >&6
28198 +if test -z "$ac_cv_prog_CC"; then
28199 + ac_ct_CC=$CC
28200 + # Extract the first word of "cc", so it can be a program name with args.
28201 +set dummy cc; ac_word=$2
28202 +echo "$as_me:$LINENO: checking for $ac_word" >&5
28203 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28204 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
28205 + echo $ECHO_N "(cached) $ECHO_C" >&6
28206 +else
28207 + if test -n "$ac_ct_CC"; then
28208 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
28209 +else
28210 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28211 +for as_dir in $PATH
28213 + IFS=$as_save_IFS
28214 + test -z "$as_dir" && as_dir=.
28215 + for ac_exec_ext in '' $ac_executable_extensions; do
28216 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28217 + ac_cv_prog_ac_ct_CC="cc"
28218 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28219 + break 2
28220 + fi
28221 +done
28222 +done
28226 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
28227 +if test -n "$ac_ct_CC"; then
28228 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
28229 +echo "${ECHO_T}$ac_ct_CC" >&6
28230 +else
28231 + echo "$as_me:$LINENO: result: no" >&5
28232 +echo "${ECHO_T}no" >&6
28235 + CC=$ac_ct_CC
28236 else
28237 - echo "$ac_t""no" 1>&6
28238 + CC="$ac_cv_prog_CC"
28242 if test -z "$CC"; then
28243 # Extract the first word of "cc", so it can be a program name with args.
28244 set dummy cc; ac_word=$2
28245 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
28246 -echo "configure:1777: checking for $ac_word" >&5
28247 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
28248 - echo $ac_n "(cached) $ac_c" 1>&6
28249 +echo "$as_me:$LINENO: checking for $ac_word" >&5
28250 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28251 +if test "${ac_cv_prog_CC+set}" = set; then
28252 + echo $ECHO_N "(cached) $ECHO_C" >&6
28253 else
28254 if test -n "$CC"; then
28255 ac_cv_prog_CC="$CC" # Let the user override the test.
28256 else
28257 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
28258 ac_prog_rejected=no
28259 - ac_dummy="$PATH"
28260 - for ac_dir in $ac_dummy; do
28261 - test -z "$ac_dir" && ac_dir=.
28262 - if test -f $ac_dir/$ac_word; then
28263 - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
28264 - ac_prog_rejected=yes
28265 - continue
28266 - fi
28267 - ac_cv_prog_CC="cc"
28268 - break
28269 - fi
28270 - done
28271 - IFS="$ac_save_ifs"
28272 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28273 +for as_dir in $PATH
28275 + IFS=$as_save_IFS
28276 + test -z "$as_dir" && as_dir=.
28277 + for ac_exec_ext in '' $ac_executable_extensions; do
28278 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28279 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
28280 + ac_prog_rejected=yes
28281 + continue
28282 + fi
28283 + ac_cv_prog_CC="cc"
28284 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28285 + break 2
28286 + fi
28287 +done
28288 +done
28290 if test $ac_prog_rejected = yes; then
28291 # We found a bogon in the path, so make sure we never use it.
28292 set dummy $ac_cv_prog_CC
28293 shift
28294 - if test $# -gt 0; then
28295 + if test $# != 0; then
28296 # We chose a different compiler from the bogus one.
28297 # However, it has the same basename, so the bogon will be chosen
28298 # first if we set CC to just the basename; use the full file name.
28299 shift
28300 - set dummy "$ac_dir/$ac_word" "$@"
28301 - shift
28302 - ac_cv_prog_CC="$@"
28303 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
28308 -CC="$ac_cv_prog_CC"
28309 +CC=$ac_cv_prog_CC
28310 if test -n "$CC"; then
28311 - echo "$ac_t""$CC" 1>&6
28312 + echo "$as_me:$LINENO: result: $CC" >&5
28313 +echo "${ECHO_T}$CC" >&6
28314 else
28315 - echo "$ac_t""no" 1>&6
28316 + echo "$as_me:$LINENO: result: no" >&5
28317 +echo "${ECHO_T}no" >&6
28320 - if test -z "$CC"; then
28321 - case "`uname -s`" in
28322 - *win32* | *WIN32*)
28323 - # Extract the first word of "cl", so it can be a program name with args.
28324 -set dummy cl; ac_word=$2
28325 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
28326 -echo "configure:1828: checking for $ac_word" >&5
28327 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
28328 - echo $ac_n "(cached) $ac_c" 1>&6
28330 +if test -z "$CC"; then
28331 + if test -n "$ac_tool_prefix"; then
28332 + for ac_prog in cl
28333 + do
28334 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
28335 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
28336 +echo "$as_me:$LINENO: checking for $ac_word" >&5
28337 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28338 +if test "${ac_cv_prog_CC+set}" = set; then
28339 + echo $ECHO_N "(cached) $ECHO_C" >&6
28340 else
28341 if test -n "$CC"; then
28342 ac_cv_prog_CC="$CC" # Let the user override the test.
28343 else
28344 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
28345 - ac_dummy="$PATH"
28346 - for ac_dir in $ac_dummy; do
28347 - test -z "$ac_dir" && ac_dir=.
28348 - if test -f $ac_dir/$ac_word; then
28349 - ac_cv_prog_CC="cl"
28350 - break
28351 - fi
28352 - done
28353 - IFS="$ac_save_ifs"
28354 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28355 +for as_dir in $PATH
28357 + IFS=$as_save_IFS
28358 + test -z "$as_dir" && as_dir=.
28359 + for ac_exec_ext in '' $ac_executable_extensions; do
28360 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28361 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
28362 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28363 + break 2
28364 + fi
28365 +done
28366 +done
28370 -CC="$ac_cv_prog_CC"
28371 +CC=$ac_cv_prog_CC
28372 if test -n "$CC"; then
28373 - echo "$ac_t""$CC" 1>&6
28374 + echo "$as_me:$LINENO: result: $CC" >&5
28375 +echo "${ECHO_T}$CC" >&6
28376 else
28377 - echo "$ac_t""no" 1>&6
28379 - ;;
28380 - esac
28381 - fi
28382 - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
28383 + echo "$as_me:$LINENO: result: no" >&5
28384 +echo "${ECHO_T}no" >&6
28387 -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
28388 -echo "configure:1860: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
28390 -ac_ext=c
28391 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
28392 -ac_cpp='$CPP $CPPFLAGS'
28393 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
28394 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
28395 -cross_compiling=$ac_cv_prog_cc_cross
28397 -cat > conftest.$ac_ext << EOF
28399 -#line 1871 "configure"
28400 -#include "confdefs.h"
28402 -main(){return(0);}
28403 -EOF
28404 -if { (eval echo configure:1876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
28405 - ac_cv_prog_cc_works=yes
28406 - # If we can't run a trivial program, we are probably using a cross compiler.
28407 - if (./conftest; exit) 2>/dev/null; then
28408 - ac_cv_prog_cc_cross=no
28409 - else
28410 - ac_cv_prog_cc_cross=yes
28411 - fi
28412 -else
28413 - echo "configure: failed program was:" >&5
28414 - cat conftest.$ac_ext >&5
28415 - ac_cv_prog_cc_works=no
28416 + test -n "$CC" && break
28417 + done
28419 -rm -fr conftest*
28420 -ac_ext=c
28421 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
28422 -ac_cpp='$CPP $CPPFLAGS'
28423 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
28424 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
28425 -cross_compiling=$ac_cv_prog_cc_cross
28427 -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
28428 -if test $ac_cv_prog_cc_works = no; then
28429 - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
28431 -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
28432 -echo "configure:1902: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
28433 -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
28434 -cross_compiling=$ac_cv_prog_cc_cross
28436 -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
28437 -echo "configure:1907: checking whether we are using GNU C" >&5
28438 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
28439 - echo $ac_n "(cached) $ac_c" 1>&6
28440 +if test -z "$CC"; then
28441 + ac_ct_CC=$CC
28442 + for ac_prog in cl
28444 + # Extract the first word of "$ac_prog", so it can be a program name with args.
28445 +set dummy $ac_prog; ac_word=$2
28446 +echo "$as_me:$LINENO: checking for $ac_word" >&5
28447 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28448 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
28449 + echo $ECHO_N "(cached) $ECHO_C" >&6
28450 else
28451 - cat > conftest.c <<EOF
28452 -#ifdef __GNUC__
28453 - yes;
28454 -#endif
28455 -EOF
28456 -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
28457 - ac_cv_prog_gcc=yes
28458 + if test -n "$ac_ct_CC"; then
28459 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
28460 else
28461 - ac_cv_prog_gcc=no
28462 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28463 +for as_dir in $PATH
28465 + IFS=$as_save_IFS
28466 + test -z "$as_dir" && as_dir=.
28467 + for ac_exec_ext in '' $ac_executable_extensions; do
28468 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28469 + ac_cv_prog_ac_ct_CC="$ac_prog"
28470 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28471 + break 2
28472 + fi
28473 +done
28474 +done
28478 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
28479 +if test -n "$ac_ct_CC"; then
28480 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
28481 +echo "${ECHO_T}$ac_ct_CC" >&6
28482 +else
28483 + echo "$as_me:$LINENO: result: no" >&5
28484 +echo "${ECHO_T}no" >&6
28487 -echo "$ac_t""$ac_cv_prog_gcc" 1>&6
28488 + test -n "$ac_ct_CC" && break
28489 +done
28491 + CC=$ac_ct_CC
28494 -if test $ac_cv_prog_gcc = yes; then
28495 - GCC=yes
28496 -else
28497 - GCC=
28500 -ac_test_CFLAGS="${CFLAGS+set}"
28501 -ac_save_CFLAGS="$CFLAGS"
28502 -CFLAGS=
28503 -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
28504 -echo "configure:1935: checking whether ${CC-cc} accepts -g" >&5
28505 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
28506 - echo $ac_n "(cached) $ac_c" 1>&6
28507 -else
28508 - echo 'void f(){}' > conftest.c
28509 -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
28511 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
28512 +See \`config.log' for more details." >&5
28513 +echo "$as_me: error: no acceptable C compiler found in \$PATH
28514 +See \`config.log' for more details." >&2;}
28515 + { (exit 1); exit 1; }; }
28517 +# Provide some information about the compiler.
28518 +echo "$as_me:$LINENO:" \
28519 + "checking for C compiler version" >&5
28520 +ac_compiler=`set X $ac_compile; echo $2`
28521 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
28522 + (eval $ac_compiler --version </dev/null >&5) 2>&5
28523 + ac_status=$?
28524 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525 + (exit $ac_status); }
28526 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
28527 + (eval $ac_compiler -v </dev/null >&5) 2>&5
28528 + ac_status=$?
28529 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530 + (exit $ac_status); }
28531 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
28532 + (eval $ac_compiler -V </dev/null >&5) 2>&5
28533 + ac_status=$?
28534 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28535 + (exit $ac_status); }
28537 +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
28538 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
28539 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
28540 + echo $ECHO_N "(cached) $ECHO_C" >&6
28541 +else
28542 + cat >conftest.$ac_ext <<_ACEOF
28543 +/* confdefs.h. */
28544 +_ACEOF
28545 +cat confdefs.h >>conftest.$ac_ext
28546 +cat >>conftest.$ac_ext <<_ACEOF
28547 +/* end confdefs.h. */
28549 +int
28550 +main ()
28552 +#ifndef __GNUC__
28553 + choke me
28554 +#endif
28557 + return 0;
28559 +_ACEOF
28560 +rm -f conftest.$ac_objext
28561 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28562 + (eval $ac_compile) 2>conftest.er1
28563 + ac_status=$?
28564 + grep -v '^ *+' conftest.er1 >conftest.err
28565 + rm -f conftest.er1
28566 + cat conftest.err >&5
28567 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568 + (exit $ac_status); } &&
28569 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28570 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28571 + (eval $ac_try) 2>&5
28572 + ac_status=$?
28573 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28574 + (exit $ac_status); }; } &&
28575 + { ac_try='test -s conftest.$ac_objext'
28576 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28577 + (eval $ac_try) 2>&5
28578 + ac_status=$?
28579 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28580 + (exit $ac_status); }; }; then
28581 + ac_compiler_gnu=yes
28582 +else
28583 + echo "$as_me: failed program was:" >&5
28584 +sed 's/^/| /' conftest.$ac_ext >&5
28586 +ac_compiler_gnu=no
28588 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28589 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
28592 +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
28593 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
28594 +GCC=`test $ac_compiler_gnu = yes && echo yes`
28595 +ac_test_CFLAGS=${CFLAGS+set}
28596 +ac_save_CFLAGS=$CFLAGS
28597 +CFLAGS="-g"
28598 +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
28599 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
28600 +if test "${ac_cv_prog_cc_g+set}" = set; then
28601 + echo $ECHO_N "(cached) $ECHO_C" >&6
28602 +else
28603 + cat >conftest.$ac_ext <<_ACEOF
28604 +/* confdefs.h. */
28605 +_ACEOF
28606 +cat confdefs.h >>conftest.$ac_ext
28607 +cat >>conftest.$ac_ext <<_ACEOF
28608 +/* end confdefs.h. */
28610 +int
28611 +main ()
28615 + return 0;
28617 +_ACEOF
28618 +rm -f conftest.$ac_objext
28619 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28620 + (eval $ac_compile) 2>conftest.er1
28621 + ac_status=$?
28622 + grep -v '^ *+' conftest.er1 >conftest.err
28623 + rm -f conftest.er1
28624 + cat conftest.err >&5
28625 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28626 + (exit $ac_status); } &&
28627 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28628 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28629 + (eval $ac_try) 2>&5
28630 + ac_status=$?
28631 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632 + (exit $ac_status); }; } &&
28633 + { ac_try='test -s conftest.$ac_objext'
28634 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28635 + (eval $ac_try) 2>&5
28636 + ac_status=$?
28637 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638 + (exit $ac_status); }; }; then
28639 ac_cv_prog_cc_g=yes
28640 else
28641 - ac_cv_prog_cc_g=no
28643 -rm -f conftest*
28644 + echo "$as_me: failed program was:" >&5
28645 +sed 's/^/| /' conftest.$ac_ext >&5
28647 +ac_cv_prog_cc_g=no
28650 -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
28651 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28653 +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
28654 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
28655 if test "$ac_test_CFLAGS" = set; then
28656 - CFLAGS="$ac_save_CFLAGS"
28657 + CFLAGS=$ac_save_CFLAGS
28658 elif test $ac_cv_prog_cc_g = yes; then
28659 if test "$GCC" = yes; then
28660 CFLAGS="-g -O2"
28661 @@ -1961,35 +18838,343 @@
28662 CFLAGS=
28665 +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
28666 +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
28667 +if test "${ac_cv_prog_cc_stdc+set}" = set; then
28668 + echo $ECHO_N "(cached) $ECHO_C" >&6
28669 +else
28670 + ac_cv_prog_cc_stdc=no
28671 +ac_save_CC=$CC
28672 +cat >conftest.$ac_ext <<_ACEOF
28673 +/* confdefs.h. */
28674 +_ACEOF
28675 +cat confdefs.h >>conftest.$ac_ext
28676 +cat >>conftest.$ac_ext <<_ACEOF
28677 +/* end confdefs.h. */
28678 +#include <stdarg.h>
28679 +#include <stdio.h>
28680 +#include <sys/types.h>
28681 +#include <sys/stat.h>
28682 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
28683 +struct buf { int x; };
28684 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
28685 +static char *e (p, i)
28686 + char **p;
28687 + int i;
28689 + return p[i];
28691 +static char *f (char * (*g) (char **, int), char **p, ...)
28693 + char *s;
28694 + va_list v;
28695 + va_start (v,p);
28696 + s = g (p, va_arg (v,int));
28697 + va_end (v);
28698 + return s;
28701 -echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
28702 -echo "configure:1967: checking for POSIXized ISC" >&5
28703 -if test -d /etc/conf/kconfig.d &&
28704 - grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
28705 -then
28706 - echo "$ac_t""yes" 1>&6
28707 - ISC=yes # If later tests want to check for ISC.
28708 - cat >> confdefs.h <<\EOF
28709 -#define _POSIX_SOURCE 1
28710 -EOF
28711 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
28712 + function prototypes and stuff, but not '\xHH' hex character constants.
28713 + These don't provoke an error unfortunately, instead are silently treated
28714 + as 'x'. The following induces an error, until -std1 is added to get
28715 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
28716 + array size at least. It's necessary to write '\x00'==0 to get something
28717 + that's true only with -std1. */
28718 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
28720 +int test (int i, double x);
28721 +struct s1 {int (*f) (int a);};
28722 +struct s2 {int (*f) (double a);};
28723 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
28724 +int argc;
28725 +char **argv;
28726 +int
28727 +main ()
28729 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
28731 + return 0;
28733 +_ACEOF
28734 +# Don't try gcc -ansi; that turns off useful extensions and
28735 +# breaks some systems' header files.
28736 +# AIX -qlanglvl=ansi
28737 +# Ultrix and OSF/1 -std1
28738 +# HP-UX 10.20 and later -Ae
28739 +# HP-UX older versions -Aa -D_HPUX_SOURCE
28740 +# SVR4 -Xc -D__EXTENSIONS__
28741 +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
28743 + CC="$ac_save_CC $ac_arg"
28744 + rm -f conftest.$ac_objext
28745 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28746 + (eval $ac_compile) 2>conftest.er1
28747 + ac_status=$?
28748 + grep -v '^ *+' conftest.er1 >conftest.err
28749 + rm -f conftest.er1
28750 + cat conftest.err >&5
28751 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28752 + (exit $ac_status); } &&
28753 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28754 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28755 + (eval $ac_try) 2>&5
28756 + ac_status=$?
28757 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28758 + (exit $ac_status); }; } &&
28759 + { ac_try='test -s conftest.$ac_objext'
28760 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28761 + (eval $ac_try) 2>&5
28762 + ac_status=$?
28763 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28764 + (exit $ac_status); }; }; then
28765 + ac_cv_prog_cc_stdc=$ac_arg
28766 +break
28767 +else
28768 + echo "$as_me: failed program was:" >&5
28769 +sed 's/^/| /' conftest.$ac_ext >&5
28772 +rm -f conftest.err conftest.$ac_objext
28773 +done
28774 +rm -f conftest.$ac_ext conftest.$ac_objext
28775 +CC=$ac_save_CC
28779 +case "x$ac_cv_prog_cc_stdc" in
28780 + x|xno)
28781 + echo "$as_me:$LINENO: result: none needed" >&5
28782 +echo "${ECHO_T}none needed" >&6 ;;
28783 + *)
28784 + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
28785 +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
28786 + CC="$CC $ac_cv_prog_cc_stdc" ;;
28787 +esac
28789 +# Some people use a C++ compiler to compile C. Since we use `exit',
28790 +# in C++ we need to declare it. In case someone uses the same compiler
28791 +# for both compiling C and C++ we need to have the C++ compiler decide
28792 +# the declaration of exit, since it's the most demanding environment.
28793 +cat >conftest.$ac_ext <<_ACEOF
28794 +#ifndef __cplusplus
28795 + choke me
28796 +#endif
28797 +_ACEOF
28798 +rm -f conftest.$ac_objext
28799 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28800 + (eval $ac_compile) 2>conftest.er1
28801 + ac_status=$?
28802 + grep -v '^ *+' conftest.er1 >conftest.err
28803 + rm -f conftest.er1
28804 + cat conftest.err >&5
28805 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806 + (exit $ac_status); } &&
28807 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28808 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28809 + (eval $ac_try) 2>&5
28810 + ac_status=$?
28811 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28812 + (exit $ac_status); }; } &&
28813 + { ac_try='test -s conftest.$ac_objext'
28814 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28815 + (eval $ac_try) 2>&5
28816 + ac_status=$?
28817 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818 + (exit $ac_status); }; }; then
28819 + for ac_declaration in \
28820 + '' \
28821 + 'extern "C" void std::exit (int) throw (); using std::exit;' \
28822 + 'extern "C" void std::exit (int); using std::exit;' \
28823 + 'extern "C" void exit (int) throw ();' \
28824 + 'extern "C" void exit (int);' \
28825 + 'void exit (int);'
28827 + cat >conftest.$ac_ext <<_ACEOF
28828 +/* confdefs.h. */
28829 +_ACEOF
28830 +cat confdefs.h >>conftest.$ac_ext
28831 +cat >>conftest.$ac_ext <<_ACEOF
28832 +/* end confdefs.h. */
28833 +$ac_declaration
28834 +#include <stdlib.h>
28835 +int
28836 +main ()
28838 +exit (42);
28840 + return 0;
28842 +_ACEOF
28843 +rm -f conftest.$ac_objext
28844 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28845 + (eval $ac_compile) 2>conftest.er1
28846 + ac_status=$?
28847 + grep -v '^ *+' conftest.er1 >conftest.err
28848 + rm -f conftest.er1
28849 + cat conftest.err >&5
28850 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28851 + (exit $ac_status); } &&
28852 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28853 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28854 + (eval $ac_try) 2>&5
28855 + ac_status=$?
28856 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857 + (exit $ac_status); }; } &&
28858 + { ac_try='test -s conftest.$ac_objext'
28859 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28860 + (eval $ac_try) 2>&5
28861 + ac_status=$?
28862 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863 + (exit $ac_status); }; }; then
28865 +else
28866 + echo "$as_me: failed program was:" >&5
28867 +sed 's/^/| /' conftest.$ac_ext >&5
28869 +continue
28871 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28872 + cat >conftest.$ac_ext <<_ACEOF
28873 +/* confdefs.h. */
28874 +_ACEOF
28875 +cat confdefs.h >>conftest.$ac_ext
28876 +cat >>conftest.$ac_ext <<_ACEOF
28877 +/* end confdefs.h. */
28878 +$ac_declaration
28879 +int
28880 +main ()
28882 +exit (42);
28884 + return 0;
28886 +_ACEOF
28887 +rm -f conftest.$ac_objext
28888 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28889 + (eval $ac_compile) 2>conftest.er1
28890 + ac_status=$?
28891 + grep -v '^ *+' conftest.er1 >conftest.err
28892 + rm -f conftest.er1
28893 + cat conftest.err >&5
28894 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895 + (exit $ac_status); } &&
28896 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28897 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28898 + (eval $ac_try) 2>&5
28899 + ac_status=$?
28900 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901 + (exit $ac_status); }; } &&
28902 + { ac_try='test -s conftest.$ac_objext'
28903 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28904 + (eval $ac_try) 2>&5
28905 + ac_status=$?
28906 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907 + (exit $ac_status); }; }; then
28908 + break
28909 +else
28910 + echo "$as_me: failed program was:" >&5
28911 +sed 's/^/| /' conftest.$ac_ext >&5
28914 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28915 +done
28916 +rm -f conftest*
28917 +if test -n "$ac_declaration"; then
28918 + echo '#ifdef __cplusplus' >>confdefs.h
28919 + echo $ac_declaration >>confdefs.h
28920 + echo '#endif' >>confdefs.h
28923 - if test "$GCC" = yes; then
28924 - CC="$CC -posix"
28925 - else
28926 - CC="$CC -Xp"
28927 - fi
28928 else
28929 - echo "$ac_t""no" 1>&6
28930 - ISC=
28931 + echo "$as_me: failed program was:" >&5
28932 +sed 's/^/| /' conftest.$ac_ext >&5
28935 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28936 +ac_ext=c
28937 +ac_cpp='$CPP $CPPFLAGS'
28938 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28939 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28940 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
28943 + echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
28944 +echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
28945 +if test "${ac_cv_lib_cposix_strerror+set}" = set; then
28946 + echo $ECHO_N "(cached) $ECHO_C" >&6
28947 +else
28948 + ac_check_lib_save_LIBS=$LIBS
28949 +LIBS="-lcposix $LIBS"
28950 +cat >conftest.$ac_ext <<_ACEOF
28951 +/* confdefs.h. */
28952 +_ACEOF
28953 +cat confdefs.h >>conftest.$ac_ext
28954 +cat >>conftest.$ac_ext <<_ACEOF
28955 +/* end confdefs.h. */
28957 +/* Override any gcc2 internal prototype to avoid an error. */
28958 +#ifdef __cplusplus
28959 +extern "C"
28960 +#endif
28961 +/* We use char because int might match the return type of a gcc2
28962 + builtin and then its argument prototype would still apply. */
28963 +char strerror ();
28964 +int
28965 +main ()
28967 +strerror ();
28969 + return 0;
28971 +_ACEOF
28972 +rm -f conftest.$ac_objext conftest$ac_exeext
28973 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28974 + (eval $ac_link) 2>conftest.er1
28975 + ac_status=$?
28976 + grep -v '^ *+' conftest.er1 >conftest.err
28977 + rm -f conftest.er1
28978 + cat conftest.err >&5
28979 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28980 + (exit $ac_status); } &&
28981 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28982 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28983 + (eval $ac_try) 2>&5
28984 + ac_status=$?
28985 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986 + (exit $ac_status); }; } &&
28987 + { ac_try='test -s conftest$ac_exeext'
28988 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28989 + (eval $ac_try) 2>&5
28990 + ac_status=$?
28991 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992 + (exit $ac_status); }; }; then
28993 + ac_cv_lib_cposix_strerror=yes
28994 +else
28995 + echo "$as_me: failed program was:" >&5
28996 +sed 's/^/| /' conftest.$ac_ext >&5
28998 +ac_cv_lib_cposix_strerror=no
29000 +rm -f conftest.err conftest.$ac_objext \
29001 + conftest$ac_exeext conftest.$ac_ext
29002 +LIBS=$ac_check_lib_save_LIBS
29004 +echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
29005 +echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
29006 +if test $ac_cv_lib_cposix_strerror = yes; then
29007 + LIBS="$LIBS -lcposix"
29013 -echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
29014 -echo "configure:1991: checking for ${CC-cc} option to accept ANSI C" >&5
29015 -if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
29016 - echo $ac_n "(cached) $ac_c" 1>&6
29019 +echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
29020 +echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
29021 +if test "${am_cv_prog_cc_stdc+set}" = set; then
29022 + echo $ECHO_N "(cached) $ECHO_C" >&6
29023 else
29024 am_cv_prog_cc_stdc=no
29025 ac_save_CC="$CC"
29026 @@ -2002,9 +19187,12 @@
29027 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
29029 CC="$ac_save_CC $ac_arg"
29030 - cat > conftest.$ac_ext <<EOF
29031 -#line 2007 "configure"
29032 -#include "confdefs.h"
29033 + cat >conftest.$ac_ext <<_ACEOF
29034 +/* confdefs.h. */
29035 +_ACEOF
29036 +cat confdefs.h >>conftest.$ac_ext
29037 +cat >>conftest.$ac_ext <<_ACEOF
29038 +/* end confdefs.h. */
29039 #include <stdarg.h>
29040 #include <stdio.h>
29041 #include <sys/types.h>
29042 @@ -2034,29 +19222,55 @@
29043 int argc;
29044 char **argv;
29046 -int main() {
29047 +int
29048 +main ()
29051 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
29053 -; return 0; }
29054 -EOF
29055 -if { (eval echo configure:2044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
29056 - rm -rf conftest*
29058 + return 0;
29060 +_ACEOF
29061 +rm -f conftest.$ac_objext
29062 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29063 + (eval $ac_compile) 2>conftest.er1
29064 + ac_status=$?
29065 + grep -v '^ *+' conftest.er1 >conftest.err
29066 + rm -f conftest.er1
29067 + cat conftest.err >&5
29068 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29069 + (exit $ac_status); } &&
29070 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29071 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29072 + (eval $ac_try) 2>&5
29073 + ac_status=$?
29074 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075 + (exit $ac_status); }; } &&
29076 + { ac_try='test -s conftest.$ac_objext'
29077 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29078 + (eval $ac_try) 2>&5
29079 + ac_status=$?
29080 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081 + (exit $ac_status); }; }; then
29082 am_cv_prog_cc_stdc="$ac_arg"; break
29083 else
29084 - echo "configure: failed program was:" >&5
29085 - cat conftest.$ac_ext >&5
29086 + echo "$as_me: failed program was:" >&5
29087 +sed 's/^/| /' conftest.$ac_ext >&5
29090 -rm -f conftest*
29091 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29092 done
29093 CC="$ac_save_CC"
29097 if test -z "$am_cv_prog_cc_stdc"; then
29098 - echo "$ac_t""none needed" 1>&6
29099 + echo "$as_me:$LINENO: result: none needed" >&5
29100 +echo "${ECHO_T}none needed" >&6
29101 else
29102 - echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
29103 + echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
29104 +echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
29106 case "x$am_cv_prog_cc_stdc" in
29107 x|xno) ;;
29108 @@ -2070,87 +19284,104 @@
29109 # SunOS /usr/etc/install
29110 # IRIX /sbin/install
29111 # AIX /bin/install
29112 +# AmigaOS /C/install, which installs bootblocks on floppy discs
29113 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
29114 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
29115 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
29116 +# OS/2's system install, which has a completely different semantic
29117 # ./install, which can be erroneously created by make from ./install.sh.
29118 -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
29119 -echo "configure:2079: checking for a BSD compatible install" >&5
29120 +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
29121 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
29122 if test -z "$INSTALL"; then
29123 -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
29124 - echo $ac_n "(cached) $ac_c" 1>&6
29125 +if test "${ac_cv_path_install+set}" = set; then
29126 + echo $ECHO_N "(cached) $ECHO_C" >&6
29127 else
29128 - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
29129 - for ac_dir in $PATH; do
29130 - # Account for people who put trailing slashes in PATH elements.
29131 - case "$ac_dir/" in
29132 - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
29133 - *)
29134 - # OSF1 and SCO ODT 3.0 have their own names for install.
29135 - # Don't use installbsd from OSF since it installs stuff as root
29136 - # by default.
29137 - for ac_prog in ginstall scoinst install; do
29138 - if test -f $ac_dir/$ac_prog; then
29139 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29140 +for as_dir in $PATH
29142 + IFS=$as_save_IFS
29143 + test -z "$as_dir" && as_dir=.
29144 + # Account for people who put trailing slashes in PATH elements.
29145 +case $as_dir/ in
29146 + ./ | .// | /cC/* | \
29147 + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
29148 + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
29149 + /usr/ucb/* ) ;;
29150 + *)
29151 + # OSF1 and SCO ODT 3.0 have their own names for install.
29152 + # Don't use installbsd from OSF since it installs stuff as root
29153 + # by default.
29154 + for ac_prog in ginstall scoinst install; do
29155 + for ac_exec_ext in '' $ac_executable_extensions; do
29156 + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
29157 if test $ac_prog = install &&
29158 - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
29159 + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
29160 # AIX install. It has an incompatible calling convention.
29162 + elif test $ac_prog = install &&
29163 + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
29164 + # program-specific install script used by HP pwplus--don't use.
29166 else
29167 - ac_cv_path_install="$ac_dir/$ac_prog -c"
29168 - break 2
29169 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
29170 + break 3
29173 done
29174 - ;;
29175 - esac
29176 - done
29177 - IFS="$ac_save_IFS"
29178 + done
29179 + ;;
29180 +esac
29181 +done
29185 if test "${ac_cv_path_install+set}" = set; then
29186 - INSTALL="$ac_cv_path_install"
29187 + INSTALL=$ac_cv_path_install
29188 else
29189 # As a last resort, use the slow shell script. We don't cache a
29190 # path for INSTALL within a source directory, because that will
29191 # break other packages using the cache if that directory is
29192 # removed, or if the path is relative.
29193 - INSTALL="$ac_install_sh"
29194 + INSTALL=$ac_install_sh
29197 -echo "$ac_t""$INSTALL" 1>&6
29198 +echo "$as_me:$LINENO: result: $INSTALL" >&5
29199 +echo "${ECHO_T}$INSTALL" >&6
29201 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
29202 # It thinks the first close brace ends the variable substitution.
29203 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
29205 -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
29206 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
29208 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
29210 -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
29211 -echo "configure:2132: checking whether ${MAKE-make} sets \${MAKE}" >&5
29212 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
29213 -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
29214 - echo $ac_n "(cached) $ac_c" 1>&6
29215 +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
29216 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
29217 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
29218 +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
29219 + echo $ECHO_N "(cached) $ECHO_C" >&6
29220 else
29221 - cat > conftestmake <<\EOF
29222 + cat >conftest.make <<\_ACEOF
29223 all:
29224 - @echo 'ac_maketemp="${MAKE}"'
29225 -EOF
29226 + @echo 'ac_maketemp="$(MAKE)"'
29227 +_ACEOF
29228 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29229 -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
29230 +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
29231 if test -n "$ac_maketemp"; then
29232 eval ac_cv_prog_make_${ac_make}_set=yes
29233 else
29234 eval ac_cv_prog_make_${ac_make}_set=no
29236 -rm -f conftestmake
29237 +rm -f conftest.make
29239 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
29240 - echo "$ac_t""yes" 1>&6
29241 + echo "$as_me:$LINENO: result: yes" >&5
29242 +echo "${ECHO_T}yes" >&6
29243 SET_MAKE=
29244 else
29245 - echo "$ac_t""no" 1>&6
29246 + echo "$as_me:$LINENO: result: no" >&5
29247 +echo "${ECHO_T}no" >&6
29248 SET_MAKE="MAKE=${MAKE-make}"
29251 @@ -2182,540 +19413,611 @@
29253 for ac_prog in gawk mawk nawk awk
29255 -# Extract the first word of "$ac_prog", so it can be a program name with args.
29256 + # Extract the first word of "$ac_prog", so it can be a program name with args.
29257 set dummy $ac_prog; ac_word=$2
29258 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
29259 -echo "configure:2189: checking for $ac_word" >&5
29260 -if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
29261 - echo $ac_n "(cached) $ac_c" 1>&6
29262 +echo "$as_me:$LINENO: checking for $ac_word" >&5
29263 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29264 +if test "${ac_cv_prog_AWK+set}" = set; then
29265 + echo $ECHO_N "(cached) $ECHO_C" >&6
29266 else
29267 if test -n "$AWK"; then
29268 ac_cv_prog_AWK="$AWK" # Let the user override the test.
29269 else
29270 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
29271 - ac_dummy="$PATH"
29272 - for ac_dir in $ac_dummy; do
29273 - test -z "$ac_dir" && ac_dir=.
29274 - if test -f $ac_dir/$ac_word; then
29275 - ac_cv_prog_AWK="$ac_prog"
29276 - break
29277 - fi
29278 - done
29279 - IFS="$ac_save_ifs"
29280 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29281 +for as_dir in $PATH
29283 + IFS=$as_save_IFS
29284 + test -z "$as_dir" && as_dir=.
29285 + for ac_exec_ext in '' $ac_executable_extensions; do
29286 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29287 + ac_cv_prog_AWK="$ac_prog"
29288 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29289 + break 2
29290 + fi
29291 +done
29292 +done
29296 -AWK="$ac_cv_prog_AWK"
29297 +AWK=$ac_cv_prog_AWK
29298 if test -n "$AWK"; then
29299 - echo "$ac_t""$AWK" 1>&6
29300 + echo "$as_me:$LINENO: result: $AWK" >&5
29301 +echo "${ECHO_T}$AWK" >&6
29302 else
29303 - echo "$ac_t""no" 1>&6
29304 + echo "$as_me:$LINENO: result: no" >&5
29305 +echo "${ECHO_T}no" >&6
29308 -test -n "$AWK" && break
29309 + test -n "$AWK" && break
29310 done
29312 for ac_prog in perl5 perl
29314 -# Extract the first word of "$ac_prog", so it can be a program name with args.
29315 + # Extract the first word of "$ac_prog", so it can be a program name with args.
29316 set dummy $ac_prog; ac_word=$2
29317 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
29318 -echo "configure:2223: checking for $ac_word" >&5
29319 -if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
29320 - echo $ac_n "(cached) $ac_c" 1>&6
29321 +echo "$as_me:$LINENO: checking for $ac_word" >&5
29322 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29323 +if test "${ac_cv_prog_PERL+set}" = set; then
29324 + echo $ECHO_N "(cached) $ECHO_C" >&6
29325 else
29326 if test -n "$PERL"; then
29327 ac_cv_prog_PERL="$PERL" # Let the user override the test.
29328 else
29329 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
29330 - ac_dummy="$PATH"
29331 - for ac_dir in $ac_dummy; do
29332 - test -z "$ac_dir" && ac_dir=.
29333 - if test -f $ac_dir/$ac_word; then
29334 - ac_cv_prog_PERL="$ac_prog"
29335 - break
29336 - fi
29337 - done
29338 - IFS="$ac_save_ifs"
29339 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29340 +for as_dir in $PATH
29342 + IFS=$as_save_IFS
29343 + test -z "$as_dir" && as_dir=.
29344 + for ac_exec_ext in '' $ac_executable_extensions; do
29345 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29346 + ac_cv_prog_PERL="$ac_prog"
29347 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29348 + break 2
29349 + fi
29350 +done
29351 +done
29355 -PERL="$ac_cv_prog_PERL"
29356 +PERL=$ac_cv_prog_PERL
29357 if test -n "$PERL"; then
29358 - echo "$ac_t""$PERL" 1>&6
29359 + echo "$as_me:$LINENO: result: $PERL" >&5
29360 +echo "${ECHO_T}$PERL" >&6
29361 else
29362 - echo "$ac_t""no" 1>&6
29363 + echo "$as_me:$LINENO: result: no" >&5
29364 +echo "${ECHO_T}no" >&6
29367 -test -n "$PERL" && break
29368 + test -n "$PERL" && break
29369 done
29372 # We would like indent, but don't require it.
29373 # Extract the first word of "indent", so it can be a program name with args.
29374 set dummy indent; ac_word=$2
29375 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
29376 -echo "configure:2257: checking for $ac_word" >&5
29377 -if eval "test \"`echo '$''{'ac_cv_prog_INDENT'+set}'`\" = set"; then
29378 - echo $ac_n "(cached) $ac_c" 1>&6
29379 +echo "$as_me:$LINENO: checking for $ac_word" >&5
29380 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29381 +if test "${ac_cv_prog_INDENT+set}" = set; then
29382 + echo $ECHO_N "(cached) $ECHO_C" >&6
29383 else
29384 if test -n "$INDENT"; then
29385 ac_cv_prog_INDENT="$INDENT" # Let the user override the test.
29386 else
29387 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
29388 - ac_dummy="$PATH"
29389 - for ac_dir in $ac_dummy; do
29390 - test -z "$ac_dir" && ac_dir=.
29391 - if test -f $ac_dir/$ac_word; then
29392 - ac_cv_prog_INDENT="indent"
29393 - break
29394 - fi
29395 - done
29396 - IFS="$ac_save_ifs"
29399 -INDENT="$ac_cv_prog_INDENT"
29400 -if test -n "$INDENT"; then
29401 - echo "$ac_t""$INDENT" 1>&6
29402 -else
29403 - echo "$ac_t""no" 1>&6
29407 -REBUILD=\#
29408 -if test "x$enable_rebuilds" = "xyes" && \
29409 - test -n "$PERL" && \
29410 - $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
29411 - test -n "$AWK" ; then
29412 - REBUILD=
29416 -echo $ac_n "checking whether make is GNU Make""... $ac_c" 1>&6
29417 -echo "configure:2294: checking whether make is GNU Make" >&5
29418 -STRIP_BEGIN=
29419 -STRIP_END=
29420 -if $ac_make --version 2>/dev/null | grep '^GNU Make ' >/dev/null ; then
29421 - STRIP_BEGIN='$(strip $(STRIP_DUMMY)'
29422 - STRIP_END=')'
29423 - echo "$ac_t""yes" 1>&6
29424 -else
29425 - echo "$ac_t""no" 1>&6
29427 -STRIP_DUMMY=
29432 -# i18n stuff
29433 -ALL_LINGUAS="az ca cs da de el es et eu fi fr ga gl hr hu it ja ko lt nl no nn pl pt pt_BR ro ru sk sl sp sr sv tr uk vi wa zh_CN.GB2312 zh_TW.Big5"
29434 -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
29435 -echo "configure:2312: checking how to run the C preprocessor" >&5
29436 -# On Suns, sometimes $CPP names a directory.
29437 -if test -n "$CPP" && test -d "$CPP"; then
29438 - CPP=
29440 -if test -z "$CPP"; then
29441 -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
29442 - echo $ac_n "(cached) $ac_c" 1>&6
29443 -else
29444 - # This must be in double quotes, not single quotes, because CPP may get
29445 - # substituted into the Makefile and "${CC-cc}" will confuse make.
29446 - CPP="${CC-cc} -E"
29447 - # On the NeXT, cc -E runs the code through the compiler's parser,
29448 - # not just through cpp.
29449 - cat > conftest.$ac_ext <<EOF
29450 -#line 2327 "configure"
29451 -#include "confdefs.h"
29452 -#include <assert.h>
29453 -Syntax Error
29454 -EOF
29455 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29456 -{ (eval echo configure:2333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29457 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
29458 -if test -z "$ac_err"; then
29460 -else
29461 - echo "$ac_err" >&5
29462 - echo "configure: failed program was:" >&5
29463 - cat conftest.$ac_ext >&5
29464 - rm -rf conftest*
29465 - CPP="${CC-cc} -E -traditional-cpp"
29466 - cat > conftest.$ac_ext <<EOF
29467 -#line 2344 "configure"
29468 -#include "confdefs.h"
29469 -#include <assert.h>
29470 -Syntax Error
29471 -EOF
29472 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29473 -{ (eval echo configure:2350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29474 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
29475 -if test -z "$ac_err"; then
29477 -else
29478 - echo "$ac_err" >&5
29479 - echo "configure: failed program was:" >&5
29480 - cat conftest.$ac_ext >&5
29481 - rm -rf conftest*
29482 - CPP="${CC-cc} -nologo -E"
29483 - cat > conftest.$ac_ext <<EOF
29484 -#line 2361 "configure"
29485 -#include "confdefs.h"
29486 -#include <assert.h>
29487 -Syntax Error
29488 -EOF
29489 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29490 -{ (eval echo configure:2367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29491 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
29492 -if test -z "$ac_err"; then
29494 -else
29495 - echo "$ac_err" >&5
29496 - echo "configure: failed program was:" >&5
29497 - cat conftest.$ac_ext >&5
29498 - rm -rf conftest*
29499 - CPP=/lib/cpp
29501 -rm -f conftest*
29503 -rm -f conftest*
29505 -rm -f conftest*
29506 - ac_cv_prog_CPP="$CPP"
29508 - CPP="$ac_cv_prog_CPP"
29509 -else
29510 - ac_cv_prog_CPP="$CPP"
29512 -echo "$ac_t""$CPP" 1>&6
29514 -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
29515 -echo "configure:2392: checking for ANSI C header files" >&5
29516 -if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
29517 - echo $ac_n "(cached) $ac_c" 1>&6
29518 -else
29519 - cat > conftest.$ac_ext <<EOF
29520 -#line 2397 "configure"
29521 -#include "confdefs.h"
29522 -#include <stdlib.h>
29523 -#include <stdarg.h>
29524 -#include <string.h>
29525 -#include <float.h>
29526 -EOF
29527 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
29528 -{ (eval echo configure:2405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29529 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
29530 -if test -z "$ac_err"; then
29531 - rm -rf conftest*
29532 - ac_cv_header_stdc=yes
29533 -else
29534 - echo "$ac_err" >&5
29535 - echo "configure: failed program was:" >&5
29536 - cat conftest.$ac_ext >&5
29537 - rm -rf conftest*
29538 - ac_cv_header_stdc=no
29540 -rm -f conftest*
29541 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29542 +for as_dir in $PATH
29544 + IFS=$as_save_IFS
29545 + test -z "$as_dir" && as_dir=.
29546 + for ac_exec_ext in '' $ac_executable_extensions; do
29547 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29548 + ac_cv_prog_INDENT="indent"
29549 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29550 + break 2
29551 + fi
29552 +done
29553 +done
29555 -if test $ac_cv_header_stdc = yes; then
29556 - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29557 -cat > conftest.$ac_ext <<EOF
29558 -#line 2422 "configure"
29559 -#include "confdefs.h"
29560 -#include <string.h>
29561 -EOF
29562 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29563 - egrep "memchr" >/dev/null 2>&1; then
29567 +INDENT=$ac_cv_prog_INDENT
29568 +if test -n "$INDENT"; then
29569 + echo "$as_me:$LINENO: result: $INDENT" >&5
29570 +echo "${ECHO_T}$INDENT" >&6
29571 else
29572 - rm -rf conftest*
29573 - ac_cv_header_stdc=no
29574 + echo "$as_me:$LINENO: result: no" >&5
29575 +echo "${ECHO_T}no" >&6
29577 -rm -f conftest*
29580 +REBUILD=\#
29581 +if test "x$enable_rebuilds" = "xyes" && \
29582 + test -n "$PERL" && \
29583 + $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
29584 + test -n "$AWK" ; then
29585 + REBUILD=
29588 -if test $ac_cv_header_stdc = yes; then
29589 - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29590 -cat > conftest.$ac_ext <<EOF
29591 -#line 2440 "configure"
29592 -#include "confdefs.h"
29593 -#include <stdlib.h>
29594 -EOF
29595 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29596 - egrep "free" >/dev/null 2>&1; then
29599 +echo "$as_me:$LINENO: checking whether make is GNU Make" >&5
29600 +echo $ECHO_N "checking whether make is GNU Make... $ECHO_C" >&6
29601 +STRIP_BEGIN=
29602 +STRIP_END=
29603 +if $ac_make --version 2>/dev/null | grep '^GNU Make ' >/dev/null ; then
29604 + STRIP_BEGIN='$(strip $(STRIP_DUMMY)'
29605 + STRIP_END=')'
29606 + echo "$as_me:$LINENO: result: yes" >&5
29607 +echo "${ECHO_T}yes" >&6
29608 else
29609 - rm -rf conftest*
29610 - ac_cv_header_stdc=no
29611 + echo "$as_me:$LINENO: result: no" >&5
29612 +echo "${ECHO_T}no" >&6
29614 -rm -f conftest*
29615 +STRIP_DUMMY=
29619 -if test $ac_cv_header_stdc = yes; then
29620 - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29621 -if test "$cross_compiling" = yes; then
29625 +# i18n stuff
29626 +ALL_LINGUAS="az ca cs da de el es et eu fi fr ga gl hr hu it ja ko lt nl no nn pl pt pt_BR ro ru sk sl sp sr sv tr uk vi wa zh_CN.GB2312 zh_TW.Big5"
29627 +if test -n "$ac_tool_prefix"; then
29628 + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
29629 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
29630 +echo "$as_me:$LINENO: checking for $ac_word" >&5
29631 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29632 +if test "${ac_cv_prog_RANLIB+set}" = set; then
29633 + echo $ECHO_N "(cached) $ECHO_C" >&6
29634 else
29635 - cat > conftest.$ac_ext <<EOF
29636 -#line 2461 "configure"
29637 -#include "confdefs.h"
29638 -#include <ctype.h>
29639 -#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29640 -#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29641 -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29642 -int main () { int i; for (i = 0; i < 256; i++)
29643 -if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
29644 -exit (0); }
29645 + if test -n "$RANLIB"; then
29646 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
29647 +else
29648 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29649 +for as_dir in $PATH
29651 + IFS=$as_save_IFS
29652 + test -z "$as_dir" && as_dir=.
29653 + for ac_exec_ext in '' $ac_executable_extensions; do
29654 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29655 + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
29656 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29657 + break 2
29658 + fi
29659 +done
29660 +done
29662 -EOF
29663 -if { (eval echo configure:2472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
29664 -then
29668 +RANLIB=$ac_cv_prog_RANLIB
29669 +if test -n "$RANLIB"; then
29670 + echo "$as_me:$LINENO: result: $RANLIB" >&5
29671 +echo "${ECHO_T}$RANLIB" >&6
29672 else
29673 - echo "configure: failed program was:" >&5
29674 - cat conftest.$ac_ext >&5
29675 - rm -fr conftest*
29676 - ac_cv_header_stdc=no
29677 + echo "$as_me:$LINENO: result: no" >&5
29678 +echo "${ECHO_T}no" >&6
29680 -rm -fr conftest*
29683 +if test -z "$ac_cv_prog_RANLIB"; then
29684 + ac_ct_RANLIB=$RANLIB
29685 + # Extract the first word of "ranlib", so it can be a program name with args.
29686 +set dummy ranlib; ac_word=$2
29687 +echo "$as_me:$LINENO: checking for $ac_word" >&5
29688 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29689 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
29690 + echo $ECHO_N "(cached) $ECHO_C" >&6
29691 +else
29692 + if test -n "$ac_ct_RANLIB"; then
29693 + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
29694 +else
29695 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29696 +for as_dir in $PATH
29698 + IFS=$as_save_IFS
29699 + test -z "$as_dir" && as_dir=.
29700 + for ac_exec_ext in '' $ac_executable_extensions; do
29701 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29702 + ac_cv_prog_ac_ct_RANLIB="ranlib"
29703 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29704 + break 2
29705 + fi
29706 +done
29707 +done
29709 + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
29712 +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
29713 +if test -n "$ac_ct_RANLIB"; then
29714 + echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
29715 +echo "${ECHO_T}$ac_ct_RANLIB" >&6
29716 +else
29717 + echo "$as_me:$LINENO: result: no" >&5
29718 +echo "${ECHO_T}no" >&6
29721 -echo "$ac_t""$ac_cv_header_stdc" 1>&6
29722 -if test $ac_cv_header_stdc = yes; then
29723 - cat >> confdefs.h <<\EOF
29724 -#define STDC_HEADERS 1
29725 -EOF
29727 + RANLIB=$ac_ct_RANLIB
29728 +else
29729 + RANLIB="$ac_cv_prog_RANLIB"
29732 -echo $ac_n "checking for working const""... $ac_c" 1>&6
29733 -echo "configure:2496: checking for working const" >&5
29734 -if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
29735 - echo $ac_n "(cached) $ac_c" 1>&6
29736 +echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
29737 +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
29738 +if test "${ac_cv_c_const+set}" = set; then
29739 + echo $ECHO_N "(cached) $ECHO_C" >&6
29740 else
29741 - cat > conftest.$ac_ext <<EOF
29742 -#line 2501 "configure"
29743 -#include "confdefs.h"
29744 + cat >conftest.$ac_ext <<_ACEOF
29745 +/* confdefs.h. */
29746 +_ACEOF
29747 +cat confdefs.h >>conftest.$ac_ext
29748 +cat >>conftest.$ac_ext <<_ACEOF
29749 +/* end confdefs.h. */
29751 -int main() {
29752 +int
29753 +main ()
29755 +/* FIXME: Include the comments suggested by Paul. */
29756 +#ifndef __cplusplus
29757 + /* Ultrix mips cc rejects this. */
29758 + typedef int charset[2];
29759 + const charset x;
29760 + /* SunOS 4.1.1 cc rejects this. */
29761 + char const *const *ccp;
29762 + char **p;
29763 + /* NEC SVR4.0.2 mips cc rejects this. */
29764 + struct point {int x, y;};
29765 + static struct point const zero = {0,0};
29766 + /* AIX XL C 1.02.0.0 rejects this.
29767 + It does not let you subtract one const X* pointer from another in
29768 + an arm of an if-expression whose if-part is not a constant
29769 + expression */
29770 + const char *g = "string";
29771 + ccp = &g + (g ? g-g : 0);
29772 + /* HPUX 7.0 cc rejects these. */
29773 + ++ccp;
29774 + p = (char**) ccp;
29775 + ccp = (char const *const *) p;
29776 + { /* SCO 3.2v4 cc rejects this. */
29777 + char *t;
29778 + char const *s = 0 ? (char *) 0 : (char const *) 0;
29780 -/* Ultrix mips cc rejects this. */
29781 -typedef int charset[2]; const charset x;
29782 -/* SunOS 4.1.1 cc rejects this. */
29783 -char const *const *ccp;
29784 -char **p;
29785 -/* NEC SVR4.0.2 mips cc rejects this. */
29786 -struct point {int x, y;};
29787 -static struct point const zero = {0,0};
29788 -/* AIX XL C 1.02.0.0 rejects this.
29789 - It does not let you subtract one const X* pointer from another in an arm
29790 - of an if-expression whose if-part is not a constant expression */
29791 -const char *g = "string";
29792 -ccp = &g + (g ? g-g : 0);
29793 -/* HPUX 7.0 cc rejects these. */
29794 -++ccp;
29795 -p = (char**) ccp;
29796 -ccp = (char const *const *) p;
29797 -{ /* SCO 3.2v4 cc rejects this. */
29798 - char *t;
29799 - char const *s = 0 ? (char *) 0 : (char const *) 0;
29801 - *t++ = 0;
29803 -{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
29804 - int x[] = {25, 17};
29805 - const int *foo = &x[0];
29806 - ++foo;
29808 -{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
29809 - typedef const int *iptr;
29810 - iptr p = 0;
29811 - ++p;
29813 -{ /* AIX XL C 1.02.0.0 rejects this saying
29814 - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
29815 - struct s { int j; const int *ap[3]; };
29816 - struct s *b; b->j = 5;
29818 -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
29819 - const int foo = 10;
29821 + *t++ = 0;
29823 + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
29824 + int x[] = {25, 17};
29825 + const int *foo = &x[0];
29826 + ++foo;
29828 + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
29829 + typedef const int *iptr;
29830 + iptr p = 0;
29831 + ++p;
29833 + { /* AIX XL C 1.02.0.0 rejects this saying
29834 + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
29835 + struct s { int j; const int *ap[3]; };
29836 + struct s *b; b->j = 5;
29838 + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
29839 + const int foo = 10;
29841 +#endif
29843 -; return 0; }
29844 -EOF
29845 -if { (eval echo configure:2550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
29846 - rm -rf conftest*
29848 + return 0;
29850 +_ACEOF
29851 +rm -f conftest.$ac_objext
29852 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29853 + (eval $ac_compile) 2>conftest.er1
29854 + ac_status=$?
29855 + grep -v '^ *+' conftest.er1 >conftest.err
29856 + rm -f conftest.er1
29857 + cat conftest.err >&5
29858 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859 + (exit $ac_status); } &&
29860 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29861 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29862 + (eval $ac_try) 2>&5
29863 + ac_status=$?
29864 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865 + (exit $ac_status); }; } &&
29866 + { ac_try='test -s conftest.$ac_objext'
29867 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29868 + (eval $ac_try) 2>&5
29869 + ac_status=$?
29870 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29871 + (exit $ac_status); }; }; then
29872 ac_cv_c_const=yes
29873 else
29874 - echo "configure: failed program was:" >&5
29875 - cat conftest.$ac_ext >&5
29876 - rm -rf conftest*
29877 - ac_cv_c_const=no
29878 + echo "$as_me: failed program was:" >&5
29879 +sed 's/^/| /' conftest.$ac_ext >&5
29881 +ac_cv_c_const=no
29883 -rm -f conftest*
29884 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29887 -echo "$ac_t""$ac_cv_c_const" 1>&6
29888 +echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
29889 +echo "${ECHO_T}$ac_cv_c_const" >&6
29890 if test $ac_cv_c_const = no; then
29891 - cat >> confdefs.h <<\EOF
29892 -#define const
29893 -EOF
29895 +cat >>confdefs.h <<\_ACEOF
29896 +#define const
29897 +_ACEOF
29901 -echo $ac_n "checking for inline""... $ac_c" 1>&6
29902 -echo "configure:2571: checking for inline" >&5
29903 -if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
29904 - echo $ac_n "(cached) $ac_c" 1>&6
29905 +echo "$as_me:$LINENO: checking for inline" >&5
29906 +echo $ECHO_N "checking for inline... $ECHO_C" >&6
29907 +if test "${ac_cv_c_inline+set}" = set; then
29908 + echo $ECHO_N "(cached) $ECHO_C" >&6
29909 else
29910 ac_cv_c_inline=no
29911 for ac_kw in inline __inline__ __inline; do
29912 - cat > conftest.$ac_ext <<EOF
29913 -#line 2578 "configure"
29914 -#include "confdefs.h"
29915 + cat >conftest.$ac_ext <<_ACEOF
29916 +/* confdefs.h. */
29917 +_ACEOF
29918 +cat confdefs.h >>conftest.$ac_ext
29919 +cat >>conftest.$ac_ext <<_ACEOF
29920 +/* end confdefs.h. */
29921 +#ifndef __cplusplus
29922 +typedef int foo_t;
29923 +static $ac_kw foo_t static_foo () {return 0; }
29924 +$ac_kw foo_t foo () {return 0; }
29925 +#endif
29927 -int main() {
29928 -} $ac_kw foo() {
29929 -; return 0; }
29930 -EOF
29931 -if { (eval echo configure:2585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
29932 - rm -rf conftest*
29933 +_ACEOF
29934 +rm -f conftest.$ac_objext
29935 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29936 + (eval $ac_compile) 2>conftest.er1
29937 + ac_status=$?
29938 + grep -v '^ *+' conftest.er1 >conftest.err
29939 + rm -f conftest.er1
29940 + cat conftest.err >&5
29941 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942 + (exit $ac_status); } &&
29943 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29944 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29945 + (eval $ac_try) 2>&5
29946 + ac_status=$?
29947 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29948 + (exit $ac_status); }; } &&
29949 + { ac_try='test -s conftest.$ac_objext'
29950 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29951 + (eval $ac_try) 2>&5
29952 + ac_status=$?
29953 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29954 + (exit $ac_status); }; }; then
29955 ac_cv_c_inline=$ac_kw; break
29956 else
29957 - echo "configure: failed program was:" >&5
29958 - cat conftest.$ac_ext >&5
29959 + echo "$as_me: failed program was:" >&5
29960 +sed 's/^/| /' conftest.$ac_ext >&5
29963 -rm -f conftest*
29964 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29965 done
29968 +echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
29969 +echo "${ECHO_T}$ac_cv_c_inline" >&6
29972 -echo "$ac_t""$ac_cv_c_inline" 1>&6
29973 -case "$ac_cv_c_inline" in
29974 +case $ac_cv_c_inline in
29975 inline | yes) ;;
29976 - no) cat >> confdefs.h <<\EOF
29977 -#define inline
29978 -EOF
29979 - ;;
29980 - *) cat >> confdefs.h <<EOF
29981 -#define inline $ac_cv_c_inline
29982 -EOF
29983 - ;;
29984 + *)
29985 + case $ac_cv_c_inline in
29986 + no) ac_val=;;
29987 + *) ac_val=$ac_cv_c_inline;;
29988 + esac
29989 + cat >>confdefs.h <<_ACEOF
29990 +#ifndef __cplusplus
29991 +#define inline $ac_val
29992 +#endif
29993 +_ACEOF
29994 + ;;
29995 esac
29997 -echo $ac_n "checking for off_t""... $ac_c" 1>&6
29998 -echo "configure:2611: checking for off_t" >&5
29999 -if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
30000 - echo $ac_n "(cached) $ac_c" 1>&6
30001 -else
30002 - cat > conftest.$ac_ext <<EOF
30003 -#line 2616 "configure"
30004 -#include "confdefs.h"
30005 -#include <sys/types.h>
30006 -#if STDC_HEADERS
30007 -#include <stdlib.h>
30008 -#include <stddef.h>
30009 -#endif
30010 -EOF
30011 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30012 - egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
30013 - rm -rf conftest*
30014 +echo "$as_me:$LINENO: checking for off_t" >&5
30015 +echo $ECHO_N "checking for off_t... $ECHO_C" >&6
30016 +if test "${ac_cv_type_off_t+set}" = set; then
30017 + echo $ECHO_N "(cached) $ECHO_C" >&6
30018 +else
30019 + cat >conftest.$ac_ext <<_ACEOF
30020 +/* confdefs.h. */
30021 +_ACEOF
30022 +cat confdefs.h >>conftest.$ac_ext
30023 +cat >>conftest.$ac_ext <<_ACEOF
30024 +/* end confdefs.h. */
30025 +$ac_includes_default
30026 +int
30027 +main ()
30029 +if ((off_t *) 0)
30030 + return 0;
30031 +if (sizeof (off_t))
30032 + return 0;
30034 + return 0;
30036 +_ACEOF
30037 +rm -f conftest.$ac_objext
30038 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30039 + (eval $ac_compile) 2>conftest.er1
30040 + ac_status=$?
30041 + grep -v '^ *+' conftest.er1 >conftest.err
30042 + rm -f conftest.er1
30043 + cat conftest.err >&5
30044 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045 + (exit $ac_status); } &&
30046 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30047 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30048 + (eval $ac_try) 2>&5
30049 + ac_status=$?
30050 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30051 + (exit $ac_status); }; } &&
30052 + { ac_try='test -s conftest.$ac_objext'
30053 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30054 + (eval $ac_try) 2>&5
30055 + ac_status=$?
30056 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30057 + (exit $ac_status); }; }; then
30058 ac_cv_type_off_t=yes
30059 else
30060 - rm -rf conftest*
30061 - ac_cv_type_off_t=no
30063 -rm -f conftest*
30064 + echo "$as_me: failed program was:" >&5
30065 +sed 's/^/| /' conftest.$ac_ext >&5
30067 +ac_cv_type_off_t=no
30069 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30071 -echo "$ac_t""$ac_cv_type_off_t" 1>&6
30072 -if test $ac_cv_type_off_t = no; then
30073 - cat >> confdefs.h <<\EOF
30074 +echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
30075 +echo "${ECHO_T}$ac_cv_type_off_t" >&6
30076 +if test $ac_cv_type_off_t = yes; then
30078 +else
30080 +cat >>confdefs.h <<_ACEOF
30081 #define off_t long
30082 -EOF
30083 +_ACEOF
30087 -echo $ac_n "checking for size_t""... $ac_c" 1>&6
30088 -echo "configure:2644: checking for size_t" >&5
30089 -if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
30090 - echo $ac_n "(cached) $ac_c" 1>&6
30091 -else
30092 - cat > conftest.$ac_ext <<EOF
30093 -#line 2649 "configure"
30094 -#include "confdefs.h"
30095 -#include <sys/types.h>
30096 -#if STDC_HEADERS
30097 -#include <stdlib.h>
30098 -#include <stddef.h>
30099 -#endif
30100 -EOF
30101 -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30102 - egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
30103 - rm -rf conftest*
30104 +echo "$as_me:$LINENO: checking for size_t" >&5
30105 +echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30106 +if test "${ac_cv_type_size_t+set}" = set; then
30107 + echo $ECHO_N "(cached) $ECHO_C" >&6
30108 +else
30109 + cat >conftest.$ac_ext <<_ACEOF
30110 +/* confdefs.h. */
30111 +_ACEOF
30112 +cat confdefs.h >>conftest.$ac_ext
30113 +cat >>conftest.$ac_ext <<_ACEOF
30114 +/* end confdefs.h. */
30115 +$ac_includes_default
30116 +int
30117 +main ()
30119 +if ((size_t *) 0)
30120 + return 0;
30121 +if (sizeof (size_t))
30122 + return 0;
30124 + return 0;
30126 +_ACEOF
30127 +rm -f conftest.$ac_objext
30128 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30129 + (eval $ac_compile) 2>conftest.er1
30130 + ac_status=$?
30131 + grep -v '^ *+' conftest.er1 >conftest.err
30132 + rm -f conftest.er1
30133 + cat conftest.err >&5
30134 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135 + (exit $ac_status); } &&
30136 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30137 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30138 + (eval $ac_try) 2>&5
30139 + ac_status=$?
30140 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141 + (exit $ac_status); }; } &&
30142 + { ac_try='test -s conftest.$ac_objext'
30143 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30144 + (eval $ac_try) 2>&5
30145 + ac_status=$?
30146 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147 + (exit $ac_status); }; }; then
30148 ac_cv_type_size_t=yes
30149 else
30150 - rm -rf conftest*
30151 - ac_cv_type_size_t=no
30153 -rm -f conftest*
30154 + echo "$as_me: failed program was:" >&5
30155 +sed 's/^/| /' conftest.$ac_ext >&5
30157 +ac_cv_type_size_t=no
30159 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30161 -echo "$ac_t""$ac_cv_type_size_t" 1>&6
30162 -if test $ac_cv_type_size_t = no; then
30163 - cat >> confdefs.h <<\EOF
30164 +echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30165 +echo "${ECHO_T}$ac_cv_type_size_t" >&6
30166 +if test $ac_cv_type_size_t = yes; then
30168 +else
30170 +cat >>confdefs.h <<_ACEOF
30171 #define size_t unsigned
30172 -EOF
30173 +_ACEOF
30177 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30178 # for constant arguments. Useless!
30179 -echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
30180 -echo "configure:2679: checking for working alloca.h" >&5
30181 -if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
30182 - echo $ac_n "(cached) $ac_c" 1>&6
30183 -else
30184 - cat > conftest.$ac_ext <<EOF
30185 -#line 2684 "configure"
30186 -#include "confdefs.h"
30187 +echo "$as_me:$LINENO: checking for working alloca.h" >&5
30188 +echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
30189 +if test "${ac_cv_working_alloca_h+set}" = set; then
30190 + echo $ECHO_N "(cached) $ECHO_C" >&6
30191 +else
30192 + cat >conftest.$ac_ext <<_ACEOF
30193 +/* confdefs.h. */
30194 +_ACEOF
30195 +cat confdefs.h >>conftest.$ac_ext
30196 +cat >>conftest.$ac_ext <<_ACEOF
30197 +/* end confdefs.h. */
30198 #include <alloca.h>
30199 -int main() {
30200 -char *p = alloca(2 * sizeof(int));
30201 -; return 0; }
30202 -EOF
30203 -if { (eval echo configure:2691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
30204 - rm -rf conftest*
30205 - ac_cv_header_alloca_h=yes
30206 -else
30207 - echo "configure: failed program was:" >&5
30208 - cat conftest.$ac_ext >&5
30209 - rm -rf conftest*
30210 - ac_cv_header_alloca_h=no
30212 -rm -f conftest*
30214 +int
30215 +main ()
30217 +char *p = (char *) alloca (2 * sizeof (int));
30219 + return 0;
30221 +_ACEOF
30222 +rm -f conftest.$ac_objext conftest$ac_exeext
30223 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30224 + (eval $ac_link) 2>conftest.er1
30225 + ac_status=$?
30226 + grep -v '^ *+' conftest.er1 >conftest.err
30227 + rm -f conftest.er1
30228 + cat conftest.err >&5
30229 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30230 + (exit $ac_status); } &&
30231 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30232 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30233 + (eval $ac_try) 2>&5
30234 + ac_status=$?
30235 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30236 + (exit $ac_status); }; } &&
30237 + { ac_try='test -s conftest$ac_exeext'
30238 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30239 + (eval $ac_try) 2>&5
30240 + ac_status=$?
30241 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30242 + (exit $ac_status); }; }; then
30243 + ac_cv_working_alloca_h=yes
30244 +else
30245 + echo "$as_me: failed program was:" >&5
30246 +sed 's/^/| /' conftest.$ac_ext >&5
30248 +ac_cv_working_alloca_h=no
30250 +rm -f conftest.err conftest.$ac_objext \
30251 + conftest$ac_exeext conftest.$ac_ext
30253 +echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30254 +echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
30255 +if test $ac_cv_working_alloca_h = yes; then
30257 -echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
30258 -if test $ac_cv_header_alloca_h = yes; then
30259 - cat >> confdefs.h <<\EOF
30260 +cat >>confdefs.h <<\_ACEOF
30261 #define HAVE_ALLOCA_H 1
30262 -EOF
30263 +_ACEOF
30267 -echo $ac_n "checking for alloca""... $ac_c" 1>&6
30268 -echo "configure:2712: checking for alloca" >&5
30269 -if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
30270 - echo $ac_n "(cached) $ac_c" 1>&6
30271 +echo "$as_me:$LINENO: checking for alloca" >&5
30272 +echo $ECHO_N "checking for alloca... $ECHO_C" >&6
30273 +if test "${ac_cv_func_alloca_works+set}" = set; then
30274 + echo $ECHO_N "(cached) $ECHO_C" >&6
30275 else
30276 - cat > conftest.$ac_ext <<EOF
30277 -#line 2717 "configure"
30278 -#include "confdefs.h"
30280 + cat >conftest.$ac_ext <<_ACEOF
30281 +/* confdefs.h. */
30282 +_ACEOF
30283 +cat confdefs.h >>conftest.$ac_ext
30284 +cat >>conftest.$ac_ext <<_ACEOF
30285 +/* end confdefs.h. */
30286 #ifdef __GNUC__
30287 # define alloca __builtin_alloca
30288 #else
30289 @@ -2737,137 +20039,215 @@
30290 # endif
30291 #endif
30293 -int main() {
30294 -char *p = (char *) alloca(1);
30295 -; return 0; }
30296 -EOF
30297 -if { (eval echo configure:2745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
30298 - rm -rf conftest*
30299 +int
30300 +main ()
30302 +char *p = (char *) alloca (1);
30304 + return 0;
30306 +_ACEOF
30307 +rm -f conftest.$ac_objext conftest$ac_exeext
30308 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30309 + (eval $ac_link) 2>conftest.er1
30310 + ac_status=$?
30311 + grep -v '^ *+' conftest.er1 >conftest.err
30312 + rm -f conftest.er1
30313 + cat conftest.err >&5
30314 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30315 + (exit $ac_status); } &&
30316 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30317 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30318 + (eval $ac_try) 2>&5
30319 + ac_status=$?
30320 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321 + (exit $ac_status); }; } &&
30322 + { ac_try='test -s conftest$ac_exeext'
30323 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30324 + (eval $ac_try) 2>&5
30325 + ac_status=$?
30326 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30327 + (exit $ac_status); }; }; then
30328 ac_cv_func_alloca_works=yes
30329 else
30330 - echo "configure: failed program was:" >&5
30331 - cat conftest.$ac_ext >&5
30332 - rm -rf conftest*
30333 - ac_cv_func_alloca_works=no
30334 + echo "$as_me: failed program was:" >&5
30335 +sed 's/^/| /' conftest.$ac_ext >&5
30337 +ac_cv_func_alloca_works=no
30339 -rm -f conftest*
30340 +rm -f conftest.err conftest.$ac_objext \
30341 + conftest$ac_exeext conftest.$ac_ext
30343 +echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30344 +echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
30346 -echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
30347 if test $ac_cv_func_alloca_works = yes; then
30348 - cat >> confdefs.h <<\EOF
30349 -#define HAVE_ALLOCA 1
30350 -EOF
30353 +cat >>confdefs.h <<\_ACEOF
30354 +#define HAVE_ALLOCA 1
30355 +_ACEOF
30357 -if test $ac_cv_func_alloca_works = no; then
30358 +else
30359 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30360 - # that cause trouble. Some versions do not even contain alloca or
30361 - # contain a buggy version. If you still want to use their alloca,
30362 - # use ar to extract alloca.o from them instead of compiling alloca.c.
30363 - ALLOCA=alloca.${ac_objext}
30364 - cat >> confdefs.h <<\EOF
30365 +# that cause trouble. Some versions do not even contain alloca or
30366 +# contain a buggy version. If you still want to use their alloca,
30367 +# use ar to extract alloca.o from them instead of compiling alloca.c.
30369 +ALLOCA=alloca.$ac_objext
30371 +cat >>confdefs.h <<\_ACEOF
30372 #define C_ALLOCA 1
30373 -EOF
30374 +_ACEOF
30377 -echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
30378 -echo "configure:2777: checking whether alloca needs Cray hooks" >&5
30379 -if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
30380 - echo $ac_n "(cached) $ac_c" 1>&6
30381 -else
30382 - cat > conftest.$ac_ext <<EOF
30383 -#line 2782 "configure"
30384 -#include "confdefs.h"
30385 +echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30386 +echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
30387 +if test "${ac_cv_os_cray+set}" = set; then
30388 + echo $ECHO_N "(cached) $ECHO_C" >&6
30389 +else
30390 + cat >conftest.$ac_ext <<_ACEOF
30391 +/* confdefs.h. */
30392 +_ACEOF
30393 +cat confdefs.h >>conftest.$ac_ext
30394 +cat >>conftest.$ac_ext <<_ACEOF
30395 +/* end confdefs.h. */
30396 #if defined(CRAY) && ! defined(CRAY2)
30397 webecray
30398 #else
30399 wenotbecray
30400 #endif
30402 -EOF
30403 +_ACEOF
30404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30405 - egrep "webecray" >/dev/null 2>&1; then
30406 - rm -rf conftest*
30407 + $EGREP "webecray" >/dev/null 2>&1; then
30408 ac_cv_os_cray=yes
30409 else
30410 - rm -rf conftest*
30411 ac_cv_os_cray=no
30413 rm -f conftest*
30417 -echo "$ac_t""$ac_cv_os_cray" 1>&6
30418 +echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30419 +echo "${ECHO_T}$ac_cv_os_cray" >&6
30420 if test $ac_cv_os_cray = yes; then
30421 -for ac_func in _getb67 GETB67 getb67; do
30422 - echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
30423 -echo "configure:2807: checking for $ac_func" >&5
30424 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
30425 - echo $ac_n "(cached) $ac_c" 1>&6
30426 -else
30427 - cat > conftest.$ac_ext <<EOF
30428 -#line 2812 "configure"
30429 -#include "confdefs.h"
30430 + for ac_func in _getb67 GETB67 getb67; do
30431 + as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30432 +echo "$as_me:$LINENO: checking for $ac_func" >&5
30433 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30434 +if eval "test \"\${$as_ac_var+set}\" = set"; then
30435 + echo $ECHO_N "(cached) $ECHO_C" >&6
30436 +else
30437 + cat >conftest.$ac_ext <<_ACEOF
30438 +/* confdefs.h. */
30439 +_ACEOF
30440 +cat confdefs.h >>conftest.$ac_ext
30441 +cat >>conftest.$ac_ext <<_ACEOF
30442 +/* end confdefs.h. */
30443 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30444 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
30445 +#define $ac_func innocuous_$ac_func
30447 /* System header to define __stub macros and hopefully few prototypes,
30448 - which can conflict with char $ac_func(); below. */
30449 -#include <assert.h>
30450 -/* Override any gcc2 internal prototype to avoid an error. */
30451 -/* We use char because int might match the return type of a gcc2
30452 - builtin and then its argument prototype would still apply. */
30453 -char $ac_func();
30454 + which can conflict with char $ac_func (); below.
30455 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30456 + <limits.h> exists even on freestanding compilers. */
30458 +#ifdef __STDC__
30459 +# include <limits.h>
30460 +#else
30461 +# include <assert.h>
30462 +#endif
30464 -int main() {
30465 +#undef $ac_func
30467 +/* Override any gcc2 internal prototype to avoid an error. */
30468 +#ifdef __cplusplus
30469 +extern "C"
30471 +#endif
30472 +/* We use char because int might match the return type of a gcc2
30473 + builtin and then its argument prototype would still apply. */
30474 +char $ac_func ();
30475 /* The GNU C library defines this for functions which it implements
30476 to always fail with ENOSYS. Some functions are actually named
30477 something starting with __ and the normal name is an alias. */
30478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30479 choke me
30480 #else
30481 -$ac_func();
30482 +char (*f) () = $ac_func;
30483 +#endif
30484 +#ifdef __cplusplus
30486 #endif
30488 -; return 0; }
30489 -EOF
30490 -if { (eval echo configure:2835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
30491 - rm -rf conftest*
30492 - eval "ac_cv_func_$ac_func=yes"
30493 -else
30494 - echo "configure: failed program was:" >&5
30495 - cat conftest.$ac_ext >&5
30496 - rm -rf conftest*
30497 - eval "ac_cv_func_$ac_func=no"
30499 -rm -f conftest*
30501 +int
30502 +main ()
30504 +return f != $ac_func;
30506 + return 0;
30508 +_ACEOF
30509 +rm -f conftest.$ac_objext conftest$ac_exeext
30510 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30511 + (eval $ac_link) 2>conftest.er1
30512 + ac_status=$?
30513 + grep -v '^ *+' conftest.er1 >conftest.err
30514 + rm -f conftest.er1
30515 + cat conftest.err >&5
30516 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30517 + (exit $ac_status); } &&
30518 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30519 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30520 + (eval $ac_try) 2>&5
30521 + ac_status=$?
30522 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30523 + (exit $ac_status); }; } &&
30524 + { ac_try='test -s conftest$ac_exeext'
30525 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30526 + (eval $ac_try) 2>&5
30527 + ac_status=$?
30528 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30529 + (exit $ac_status); }; }; then
30530 + eval "$as_ac_var=yes"
30531 +else
30532 + echo "$as_me: failed program was:" >&5
30533 +sed 's/^/| /' conftest.$ac_ext >&5
30535 +eval "$as_ac_var=no"
30537 +rm -f conftest.err conftest.$ac_objext \
30538 + conftest$ac_exeext conftest.$ac_ext
30540 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30541 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30542 +if test `eval echo '${'$as_ac_var'}'` = yes; then
30544 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
30545 - echo "$ac_t""yes" 1>&6
30546 - cat >> confdefs.h <<EOF
30547 +cat >>confdefs.h <<_ACEOF
30548 #define CRAY_STACKSEG_END $ac_func
30549 -EOF
30550 +_ACEOF
30552 - break
30553 -else
30554 - echo "$ac_t""no" 1>&6
30555 + break
30558 -done
30559 + done
30562 -echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
30563 -echo "configure:2862: checking stack direction for C alloca" >&5
30564 -if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
30565 - echo $ac_n "(cached) $ac_c" 1>&6
30566 +echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30567 +echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
30568 +if test "${ac_cv_c_stack_direction+set}" = set; then
30569 + echo $ECHO_N "(cached) $ECHO_C" >&6
30570 else
30571 if test "$cross_compiling" = yes; then
30572 ac_cv_c_stack_direction=0
30573 else
30574 - cat > conftest.$ac_ext <<EOF
30575 -#line 2870 "configure"
30576 -#include "confdefs.h"
30577 + cat >conftest.$ac_ext <<_ACEOF
30578 +/* confdefs.h. */
30579 +_ACEOF
30580 +cat confdefs.h >>conftest.$ac_ext
30581 +cat >>conftest.$ac_ext <<_ACEOF
30582 +/* end confdefs.h. */
30583 +int
30584 find_stack_direction ()
30586 static char *addr = 0;
30587 @@ -2880,138 +20260,314 @@
30588 else
30589 return (&dummy > addr) ? 1 : -1;
30592 +int
30593 main ()
30595 - exit (find_stack_direction() < 0);
30596 + exit (find_stack_direction () < 0);
30598 -EOF
30599 -if { (eval echo configure:2889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
30600 -then
30601 +_ACEOF
30602 +rm -f conftest$ac_exeext
30603 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30604 + (eval $ac_link) 2>&5
30605 + ac_status=$?
30606 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30607 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30608 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30609 + (eval $ac_try) 2>&5
30610 + ac_status=$?
30611 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30612 + (exit $ac_status); }; }; then
30613 ac_cv_c_stack_direction=1
30614 else
30615 - echo "configure: failed program was:" >&5
30616 - cat conftest.$ac_ext >&5
30617 - rm -fr conftest*
30618 - ac_cv_c_stack_direction=-1
30619 + echo "$as_me: program exited with status $ac_status" >&5
30620 +echo "$as_me: failed program was:" >&5
30621 +sed 's/^/| /' conftest.$ac_ext >&5
30623 +( exit $ac_status )
30624 +ac_cv_c_stack_direction=-1
30626 -rm -fr conftest*
30627 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30631 +echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30632 +echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
30634 -echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
30635 -cat >> confdefs.h <<EOF
30636 +cat >>confdefs.h <<_ACEOF
30637 #define STACK_DIRECTION $ac_cv_c_stack_direction
30638 -EOF
30639 +_ACEOF
30644 -for ac_hdr in unistd.h
30647 +for ac_header in stdlib.h unistd.h
30649 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
30650 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
30651 -echo "configure:2914: checking for $ac_hdr" >&5
30652 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
30653 - echo $ac_n "(cached) $ac_c" 1>&6
30654 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30655 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
30656 + echo "$as_me:$LINENO: checking for $ac_header" >&5
30657 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30658 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
30659 + echo $ECHO_N "(cached) $ECHO_C" >&6
30661 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30662 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30663 +else
30664 + # Is the header compilable?
30665 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
30666 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30667 +cat >conftest.$ac_ext <<_ACEOF
30668 +/* confdefs.h. */
30669 +_ACEOF
30670 +cat confdefs.h >>conftest.$ac_ext
30671 +cat >>conftest.$ac_ext <<_ACEOF
30672 +/* end confdefs.h. */
30673 +$ac_includes_default
30674 +#include <$ac_header>
30675 +_ACEOF
30676 +rm -f conftest.$ac_objext
30677 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30678 + (eval $ac_compile) 2>conftest.er1
30679 + ac_status=$?
30680 + grep -v '^ *+' conftest.er1 >conftest.err
30681 + rm -f conftest.er1
30682 + cat conftest.err >&5
30683 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30684 + (exit $ac_status); } &&
30685 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30686 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30687 + (eval $ac_try) 2>&5
30688 + ac_status=$?
30689 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30690 + (exit $ac_status); }; } &&
30691 + { ac_try='test -s conftest.$ac_objext'
30692 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30693 + (eval $ac_try) 2>&5
30694 + ac_status=$?
30695 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30696 + (exit $ac_status); }; }; then
30697 + ac_header_compiler=yes
30698 +else
30699 + echo "$as_me: failed program was:" >&5
30700 +sed 's/^/| /' conftest.$ac_ext >&5
30702 +ac_header_compiler=no
30704 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30705 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30706 +echo "${ECHO_T}$ac_header_compiler" >&6
30708 +# Is the header present?
30709 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
30710 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30711 +cat >conftest.$ac_ext <<_ACEOF
30712 +/* confdefs.h. */
30713 +_ACEOF
30714 +cat confdefs.h >>conftest.$ac_ext
30715 +cat >>conftest.$ac_ext <<_ACEOF
30716 +/* end confdefs.h. */
30717 +#include <$ac_header>
30718 +_ACEOF
30719 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30720 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30721 + ac_status=$?
30722 + grep -v '^ *+' conftest.er1 >conftest.err
30723 + rm -f conftest.er1
30724 + cat conftest.err >&5
30725 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30726 + (exit $ac_status); } >/dev/null; then
30727 + if test -s conftest.err; then
30728 + ac_cpp_err=$ac_c_preproc_warn_flag
30729 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30730 + else
30731 + ac_cpp_err=
30732 + fi
30733 +else
30734 + ac_cpp_err=yes
30736 +if test -z "$ac_cpp_err"; then
30737 + ac_header_preproc=yes
30738 else
30739 - cat > conftest.$ac_ext <<EOF
30740 -#line 2919 "configure"
30741 -#include "confdefs.h"
30742 -#include <$ac_hdr>
30743 -EOF
30744 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
30745 -{ (eval echo configure:2924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
30746 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
30747 -if test -z "$ac_err"; then
30748 - rm -rf conftest*
30749 - eval "ac_cv_header_$ac_safe=yes"
30750 + echo "$as_me: failed program was:" >&5
30751 +sed 's/^/| /' conftest.$ac_ext >&5
30753 + ac_header_preproc=no
30755 +rm -f conftest.err conftest.$ac_ext
30756 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30757 +echo "${ECHO_T}$ac_header_preproc" >&6
30759 +# So? What about this header?
30760 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30761 + yes:no: )
30762 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30763 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30764 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30765 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30766 + ac_header_preproc=yes
30767 + ;;
30768 + no:yes:* )
30769 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30770 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30771 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30772 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30773 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30774 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30775 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30776 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30777 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30778 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30779 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30780 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30782 + cat <<\_ASBOX
30783 +## ------------------------------------------ ##
30784 +## Report this to the AC_PACKAGE_NAME lists. ##
30785 +## ------------------------------------------ ##
30786 +_ASBOX
30787 + ) |
30788 + sed "s/^/$as_me: WARNING: /" >&2
30789 + ;;
30790 +esac
30791 +echo "$as_me:$LINENO: checking for $ac_header" >&5
30792 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30793 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
30794 + echo $ECHO_N "(cached) $ECHO_C" >&6
30795 else
30796 - echo "$ac_err" >&5
30797 - echo "configure: failed program was:" >&5
30798 - cat conftest.$ac_ext >&5
30799 - rm -rf conftest*
30800 - eval "ac_cv_header_$ac_safe=no"
30801 + eval "$as_ac_Header=\$ac_header_preproc"
30803 -rm -f conftest*
30804 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30805 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30808 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
30809 - echo "$ac_t""yes" 1>&6
30810 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
30811 - cat >> confdefs.h <<EOF
30812 -#define $ac_tr_hdr 1
30813 -EOF
30815 -else
30816 - echo "$ac_t""no" 1>&6
30817 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
30818 + cat >>confdefs.h <<_ACEOF
30819 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30820 +_ACEOF
30824 done
30827 for ac_func in getpagesize
30829 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
30830 -echo "configure:2953: checking for $ac_func" >&5
30831 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
30832 - echo $ac_n "(cached) $ac_c" 1>&6
30833 -else
30834 - cat > conftest.$ac_ext <<EOF
30835 -#line 2958 "configure"
30836 -#include "confdefs.h"
30837 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30838 +echo "$as_me:$LINENO: checking for $ac_func" >&5
30839 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30840 +if eval "test \"\${$as_ac_var+set}\" = set"; then
30841 + echo $ECHO_N "(cached) $ECHO_C" >&6
30842 +else
30843 + cat >conftest.$ac_ext <<_ACEOF
30844 +/* confdefs.h. */
30845 +_ACEOF
30846 +cat confdefs.h >>conftest.$ac_ext
30847 +cat >>conftest.$ac_ext <<_ACEOF
30848 +/* end confdefs.h. */
30849 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30850 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
30851 +#define $ac_func innocuous_$ac_func
30853 /* System header to define __stub macros and hopefully few prototypes,
30854 - which can conflict with char $ac_func(); below. */
30855 -#include <assert.h>
30856 -/* Override any gcc2 internal prototype to avoid an error. */
30857 -/* We use char because int might match the return type of a gcc2
30858 - builtin and then its argument prototype would still apply. */
30859 -char $ac_func();
30860 + which can conflict with char $ac_func (); below.
30861 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30862 + <limits.h> exists even on freestanding compilers. */
30864 +#ifdef __STDC__
30865 +# include <limits.h>
30866 +#else
30867 +# include <assert.h>
30868 +#endif
30870 -int main() {
30871 +#undef $ac_func
30873 +/* Override any gcc2 internal prototype to avoid an error. */
30874 +#ifdef __cplusplus
30875 +extern "C"
30877 +#endif
30878 +/* We use char because int might match the return type of a gcc2
30879 + builtin and then its argument prototype would still apply. */
30880 +char $ac_func ();
30881 /* The GNU C library defines this for functions which it implements
30882 to always fail with ENOSYS. Some functions are actually named
30883 something starting with __ and the normal name is an alias. */
30884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30885 choke me
30886 #else
30887 -$ac_func();
30888 +char (*f) () = $ac_func;
30889 +#endif
30890 +#ifdef __cplusplus
30892 #endif
30894 -; return 0; }
30895 -EOF
30896 -if { (eval echo configure:2981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
30897 - rm -rf conftest*
30898 - eval "ac_cv_func_$ac_func=yes"
30899 -else
30900 - echo "configure: failed program was:" >&5
30901 - cat conftest.$ac_ext >&5
30902 - rm -rf conftest*
30903 - eval "ac_cv_func_$ac_func=no"
30905 -rm -f conftest*
30907 +int
30908 +main ()
30910 +return f != $ac_func;
30912 + return 0;
30914 +_ACEOF
30915 +rm -f conftest.$ac_objext conftest$ac_exeext
30916 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30917 + (eval $ac_link) 2>conftest.er1
30918 + ac_status=$?
30919 + grep -v '^ *+' conftest.er1 >conftest.err
30920 + rm -f conftest.er1
30921 + cat conftest.err >&5
30922 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30923 + (exit $ac_status); } &&
30924 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30925 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30926 + (eval $ac_try) 2>&5
30927 + ac_status=$?
30928 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30929 + (exit $ac_status); }; } &&
30930 + { ac_try='test -s conftest$ac_exeext'
30931 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30932 + (eval $ac_try) 2>&5
30933 + ac_status=$?
30934 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30935 + (exit $ac_status); }; }; then
30936 + eval "$as_ac_var=yes"
30937 +else
30938 + echo "$as_me: failed program was:" >&5
30939 +sed 's/^/| /' conftest.$ac_ext >&5
30941 +eval "$as_ac_var=no"
30943 +rm -f conftest.err conftest.$ac_objext \
30944 + conftest$ac_exeext conftest.$ac_ext
30946 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30947 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30948 +if test `eval echo '${'$as_ac_var'}'` = yes; then
30949 + cat >>confdefs.h <<_ACEOF
30950 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30951 +_ACEOF
30953 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
30954 - echo "$ac_t""yes" 1>&6
30955 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
30956 - cat >> confdefs.h <<EOF
30957 -#define $ac_tr_func 1
30958 -EOF
30960 -else
30961 - echo "$ac_t""no" 1>&6
30963 done
30965 -echo $ac_n "checking for working mmap""... $ac_c" 1>&6
30966 -echo "configure:3006: checking for working mmap" >&5
30967 -if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
30968 - echo $ac_n "(cached) $ac_c" 1>&6
30969 +echo "$as_me:$LINENO: checking for working mmap" >&5
30970 +echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30971 +if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30972 + echo $ECHO_N "(cached) $ECHO_C" >&6
30973 else
30974 if test "$cross_compiling" = yes; then
30975 ac_cv_func_mmap_fixed_mapped=no
30976 else
30977 - cat > conftest.$ac_ext <<EOF
30978 -#line 3014 "configure"
30979 -#include "confdefs.h"
30980 + cat >conftest.$ac_ext <<_ACEOF
30981 +/* confdefs.h. */
30982 +_ACEOF
30983 +cat confdefs.h >>conftest.$ac_ext
30984 +cat >>conftest.$ac_ext <<_ACEOF
30985 +/* end confdefs.h. */
30986 +$ac_includes_default
30987 +/* malloc might have been renamed as rpl_malloc. */
30988 +#undef malloc
30990 /* Thanks to Mike Haertel and Jim Avera for this test.
30991 Here is a matrix of mmap possibilities:
30992 @@ -3025,34 +20581,34 @@
30993 back from the file, nor mmap's back from the file at a different
30994 address. (There have been systems where private was not correctly
30995 implemented like the infamous i386 svr4.0, and systems where the
30996 - VM page cache was not coherent with the filesystem buffer cache
30997 + VM page cache was not coherent with the file system buffer cache
30998 like early versions of FreeBSD and possibly contemporary NetBSD.)
30999 For shared mappings, we should conversely verify that changes get
31000 - propogated back to all the places they're supposed to be.
31001 + propagated back to all the places they're supposed to be.
31003 Grep wants private fixed already mapped.
31004 The main things grep needs to know about mmap are:
31005 * does it exist and is it safe to write into the mmap'd area
31006 * how to use it (BSD variants) */
31007 -#include <sys/types.h>
31009 #include <fcntl.h>
31010 #include <sys/mman.h>
31012 -/* This mess was copied from the GNU getpagesize.h. */
31013 -#ifndef HAVE_GETPAGESIZE
31014 -# ifdef HAVE_UNISTD_H
31015 -# include <unistd.h>
31016 -# endif
31017 +#if !STDC_HEADERS && !HAVE_STDLIB_H
31018 +char *malloc ();
31019 +#endif
31021 +/* This mess was copied from the GNU getpagesize.h. */
31022 +#if !HAVE_GETPAGESIZE
31023 /* Assume that all systems that can run configure have sys/param.h. */
31024 -# ifndef HAVE_SYS_PARAM_H
31025 +# if !HAVE_SYS_PARAM_H
31026 # define HAVE_SYS_PARAM_H 1
31027 # endif
31029 # ifdef _SC_PAGESIZE
31030 # define getpagesize() sysconf(_SC_PAGESIZE)
31031 # else /* no _SC_PAGESIZE */
31032 -# ifdef HAVE_SYS_PARAM_H
31033 +# if HAVE_SYS_PARAM_H
31034 # include <sys/param.h>
31035 # ifdef EXEC_PAGESIZE
31036 # define getpagesize() EXEC_PAGESIZE
31037 @@ -3079,308 +20635,491 @@
31039 #endif /* no HAVE_GETPAGESIZE */
31041 -#ifdef __cplusplus
31042 -extern "C" { void *malloc(unsigned); }
31043 -#else
31044 -char *malloc();
31045 -#endif
31048 -main()
31049 +main ()
31051 - char *data, *data2, *data3;
31052 - int i, pagesize;
31053 - int fd;
31055 - pagesize = getpagesize();
31057 - /*
31058 - * First, make a file with some known garbage in it.
31059 - */
31060 - data = malloc(pagesize);
31061 - if (!data)
31062 - exit(1);
31063 - for (i = 0; i < pagesize; ++i)
31064 - *(data + i) = rand();
31065 - umask(0);
31066 - fd = creat("conftestmmap", 0600);
31067 - if (fd < 0)
31068 - exit(1);
31069 - if (write(fd, data, pagesize) != pagesize)
31070 - exit(1);
31071 - close(fd);
31073 - /*
31074 - * Next, try to mmap the file at a fixed address which
31075 - * already has something else allocated at it. If we can,
31076 - * also make sure that we see the same garbage.
31077 - */
31078 - fd = open("conftestmmap", O_RDWR);
31079 - if (fd < 0)
31080 - exit(1);
31081 - data2 = malloc(2 * pagesize);
31082 - if (!data2)
31083 - exit(1);
31084 - data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
31085 - if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
31086 - MAP_PRIVATE | MAP_FIXED, fd, 0L))
31087 - exit(1);
31088 - for (i = 0; i < pagesize; ++i)
31089 - if (*(data + i) != *(data2 + i))
31090 - exit(1);
31092 - /*
31093 - * Finally, make sure that changes to the mapped area
31094 - * do not percolate back to the file as seen by read().
31095 - * (This is a bug on some variants of i386 svr4.0.)
31096 - */
31097 - for (i = 0; i < pagesize; ++i)
31098 - *(data2 + i) = *(data2 + i) + 1;
31099 - data3 = malloc(pagesize);
31100 - if (!data3)
31101 - exit(1);
31102 - if (read(fd, data3, pagesize) != pagesize)
31103 - exit(1);
31104 - for (i = 0; i < pagesize; ++i)
31105 - if (*(data + i) != *(data3 + i))
31106 - exit(1);
31107 - close(fd);
31108 - unlink("conftestmmap");
31109 - exit(0);
31110 + char *data, *data2, *data3;
31111 + int i, pagesize;
31112 + int fd;
31114 + pagesize = getpagesize ();
31116 + /* First, make a file with some known garbage in it. */
31117 + data = (char *) malloc (pagesize);
31118 + if (!data)
31119 + exit (1);
31120 + for (i = 0; i < pagesize; ++i)
31121 + *(data + i) = rand ();
31122 + umask (0);
31123 + fd = creat ("conftest.mmap", 0600);
31124 + if (fd < 0)
31125 + exit (1);
31126 + if (write (fd, data, pagesize) != pagesize)
31127 + exit (1);
31128 + close (fd);
31130 + /* Next, try to mmap the file at a fixed address which already has
31131 + something else allocated at it. If we can, also make sure that
31132 + we see the same garbage. */
31133 + fd = open ("conftest.mmap", O_RDWR);
31134 + if (fd < 0)
31135 + exit (1);
31136 + data2 = (char *) malloc (2 * pagesize);
31137 + if (!data2)
31138 + exit (1);
31139 + data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
31140 + if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
31141 + MAP_PRIVATE | MAP_FIXED, fd, 0L))
31142 + exit (1);
31143 + for (i = 0; i < pagesize; ++i)
31144 + if (*(data + i) != *(data2 + i))
31145 + exit (1);
31147 + /* Finally, make sure that changes to the mapped area do not
31148 + percolate back to the file as seen by read(). (This is a bug on
31149 + some variants of i386 svr4.0.) */
31150 + for (i = 0; i < pagesize; ++i)
31151 + *(data2 + i) = *(data2 + i) + 1;
31152 + data3 = (char *) malloc (pagesize);
31153 + if (!data3)
31154 + exit (1);
31155 + if (read (fd, data3, pagesize) != pagesize)
31156 + exit (1);
31157 + for (i = 0; i < pagesize; ++i)
31158 + if (*(data + i) != *(data3 + i))
31159 + exit (1);
31160 + close (fd);
31161 + exit (0);
31164 -EOF
31165 -if { (eval echo configure:3154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
31166 -then
31167 +_ACEOF
31168 +rm -f conftest$ac_exeext
31169 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31170 + (eval $ac_link) 2>&5
31171 + ac_status=$?
31172 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31173 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31174 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31175 + (eval $ac_try) 2>&5
31176 + ac_status=$?
31177 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31178 + (exit $ac_status); }; }; then
31179 ac_cv_func_mmap_fixed_mapped=yes
31180 else
31181 - echo "configure: failed program was:" >&5
31182 - cat conftest.$ac_ext >&5
31183 - rm -fr conftest*
31184 - ac_cv_func_mmap_fixed_mapped=no
31185 + echo "$as_me: program exited with status $ac_status" >&5
31186 +echo "$as_me: failed program was:" >&5
31187 +sed 's/^/| /' conftest.$ac_ext >&5
31189 +( exit $ac_status )
31190 +ac_cv_func_mmap_fixed_mapped=no
31192 -rm -fr conftest*
31193 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31198 -echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
31199 +echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31200 +echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
31201 if test $ac_cv_func_mmap_fixed_mapped = yes; then
31202 - cat >> confdefs.h <<\EOF
31204 +cat >>confdefs.h <<\_ACEOF
31205 #define HAVE_MMAP 1
31206 -EOF
31207 +_ACEOF
31210 +rm -f conftest.mmap
31216 - for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
31223 +for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
31224 unistd.h sys/param.h
31226 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
31227 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
31228 -echo "configure:3182: checking for $ac_hdr" >&5
31229 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
31230 - echo $ac_n "(cached) $ac_c" 1>&6
31231 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31232 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
31233 + echo "$as_me:$LINENO: checking for $ac_header" >&5
31234 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31235 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
31236 + echo $ECHO_N "(cached) $ECHO_C" >&6
31238 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31239 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31240 +else
31241 + # Is the header compilable?
31242 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
31243 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31244 +cat >conftest.$ac_ext <<_ACEOF
31245 +/* confdefs.h. */
31246 +_ACEOF
31247 +cat confdefs.h >>conftest.$ac_ext
31248 +cat >>conftest.$ac_ext <<_ACEOF
31249 +/* end confdefs.h. */
31250 +$ac_includes_default
31251 +#include <$ac_header>
31252 +_ACEOF
31253 +rm -f conftest.$ac_objext
31254 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31255 + (eval $ac_compile) 2>conftest.er1
31256 + ac_status=$?
31257 + grep -v '^ *+' conftest.er1 >conftest.err
31258 + rm -f conftest.er1
31259 + cat conftest.err >&5
31260 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31261 + (exit $ac_status); } &&
31262 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31263 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31264 + (eval $ac_try) 2>&5
31265 + ac_status=$?
31266 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31267 + (exit $ac_status); }; } &&
31268 + { ac_try='test -s conftest.$ac_objext'
31269 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31270 + (eval $ac_try) 2>&5
31271 + ac_status=$?
31272 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31273 + (exit $ac_status); }; }; then
31274 + ac_header_compiler=yes
31275 +else
31276 + echo "$as_me: failed program was:" >&5
31277 +sed 's/^/| /' conftest.$ac_ext >&5
31279 +ac_header_compiler=no
31281 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31282 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31283 +echo "${ECHO_T}$ac_header_compiler" >&6
31285 +# Is the header present?
31286 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
31287 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31288 +cat >conftest.$ac_ext <<_ACEOF
31289 +/* confdefs.h. */
31290 +_ACEOF
31291 +cat confdefs.h >>conftest.$ac_ext
31292 +cat >>conftest.$ac_ext <<_ACEOF
31293 +/* end confdefs.h. */
31294 +#include <$ac_header>
31295 +_ACEOF
31296 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31297 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31298 + ac_status=$?
31299 + grep -v '^ *+' conftest.er1 >conftest.err
31300 + rm -f conftest.er1
31301 + cat conftest.err >&5
31302 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31303 + (exit $ac_status); } >/dev/null; then
31304 + if test -s conftest.err; then
31305 + ac_cpp_err=$ac_c_preproc_warn_flag
31306 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31307 + else
31308 + ac_cpp_err=
31309 + fi
31310 else
31311 - cat > conftest.$ac_ext <<EOF
31312 -#line 3187 "configure"
31313 -#include "confdefs.h"
31314 -#include <$ac_hdr>
31315 -EOF
31316 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
31317 -{ (eval echo configure:3192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
31318 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
31319 -if test -z "$ac_err"; then
31320 - rm -rf conftest*
31321 - eval "ac_cv_header_$ac_safe=yes"
31322 + ac_cpp_err=yes
31324 +if test -z "$ac_cpp_err"; then
31325 + ac_header_preproc=yes
31326 else
31327 - echo "$ac_err" >&5
31328 - echo "configure: failed program was:" >&5
31329 - cat conftest.$ac_ext >&5
31330 - rm -rf conftest*
31331 - eval "ac_cv_header_$ac_safe=no"
31332 + echo "$as_me: failed program was:" >&5
31333 +sed 's/^/| /' conftest.$ac_ext >&5
31335 + ac_header_preproc=no
31337 +rm -f conftest.err conftest.$ac_ext
31338 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31339 +echo "${ECHO_T}$ac_header_preproc" >&6
31341 +# So? What about this header?
31342 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31343 + yes:no: )
31344 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31345 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31346 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31347 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31348 + ac_header_preproc=yes
31349 + ;;
31350 + no:yes:* )
31351 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31352 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31353 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31354 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31355 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31356 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31357 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31358 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31359 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31360 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31361 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31362 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31364 + cat <<\_ASBOX
31365 +## ------------------------------------------ ##
31366 +## Report this to the AC_PACKAGE_NAME lists. ##
31367 +## ------------------------------------------ ##
31368 +_ASBOX
31369 + ) |
31370 + sed "s/^/$as_me: WARNING: /" >&2
31371 + ;;
31372 +esac
31373 +echo "$as_me:$LINENO: checking for $ac_header" >&5
31374 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31375 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
31376 + echo $ECHO_N "(cached) $ECHO_C" >&6
31377 +else
31378 + eval "$as_ac_Header=\$ac_header_preproc"
31380 -rm -f conftest*
31381 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31382 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31385 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
31386 - echo "$ac_t""yes" 1>&6
31387 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
31388 - cat >> confdefs.h <<EOF
31389 -#define $ac_tr_hdr 1
31390 -EOF
31392 -else
31393 - echo "$ac_t""no" 1>&6
31394 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
31395 + cat >>confdefs.h <<_ACEOF
31396 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31397 +_ACEOF
31401 done
31403 - for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
31415 +for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
31416 strdup __argz_count __argz_stringify __argz_next
31418 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
31419 -echo "configure:3222: checking for $ac_func" >&5
31420 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
31421 - echo $ac_n "(cached) $ac_c" 1>&6
31422 -else
31423 - cat > conftest.$ac_ext <<EOF
31424 -#line 3227 "configure"
31425 -#include "confdefs.h"
31426 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31427 +echo "$as_me:$LINENO: checking for $ac_func" >&5
31428 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31429 +if eval "test \"\${$as_ac_var+set}\" = set"; then
31430 + echo $ECHO_N "(cached) $ECHO_C" >&6
31431 +else
31432 + cat >conftest.$ac_ext <<_ACEOF
31433 +/* confdefs.h. */
31434 +_ACEOF
31435 +cat confdefs.h >>conftest.$ac_ext
31436 +cat >>conftest.$ac_ext <<_ACEOF
31437 +/* end confdefs.h. */
31438 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31439 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
31440 +#define $ac_func innocuous_$ac_func
31442 /* System header to define __stub macros and hopefully few prototypes,
31443 - which can conflict with char $ac_func(); below. */
31444 -#include <assert.h>
31445 -/* Override any gcc2 internal prototype to avoid an error. */
31446 -/* We use char because int might match the return type of a gcc2
31447 - builtin and then its argument prototype would still apply. */
31448 -char $ac_func();
31449 + which can conflict with char $ac_func (); below.
31450 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31451 + <limits.h> exists even on freestanding compilers. */
31453 +#ifdef __STDC__
31454 +# include <limits.h>
31455 +#else
31456 +# include <assert.h>
31457 +#endif
31459 -int main() {
31460 +#undef $ac_func
31462 +/* Override any gcc2 internal prototype to avoid an error. */
31463 +#ifdef __cplusplus
31464 +extern "C"
31466 +#endif
31467 +/* We use char because int might match the return type of a gcc2
31468 + builtin and then its argument prototype would still apply. */
31469 +char $ac_func ();
31470 /* The GNU C library defines this for functions which it implements
31471 to always fail with ENOSYS. Some functions are actually named
31472 something starting with __ and the normal name is an alias. */
31473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31474 choke me
31475 #else
31476 -$ac_func();
31477 +char (*f) () = $ac_func;
31478 +#endif
31479 +#ifdef __cplusplus
31481 #endif
31483 -; return 0; }
31484 -EOF
31485 -if { (eval echo configure:3250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
31486 - rm -rf conftest*
31487 - eval "ac_cv_func_$ac_func=yes"
31488 -else
31489 - echo "configure: failed program was:" >&5
31490 - cat conftest.$ac_ext >&5
31491 - rm -rf conftest*
31492 - eval "ac_cv_func_$ac_func=no"
31494 -rm -f conftest*
31496 +int
31497 +main ()
31499 +return f != $ac_func;
31501 + return 0;
31503 +_ACEOF
31504 +rm -f conftest.$ac_objext conftest$ac_exeext
31505 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31506 + (eval $ac_link) 2>conftest.er1
31507 + ac_status=$?
31508 + grep -v '^ *+' conftest.er1 >conftest.err
31509 + rm -f conftest.er1
31510 + cat conftest.err >&5
31511 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31512 + (exit $ac_status); } &&
31513 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31514 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31515 + (eval $ac_try) 2>&5
31516 + ac_status=$?
31517 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31518 + (exit $ac_status); }; } &&
31519 + { ac_try='test -s conftest$ac_exeext'
31520 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31521 + (eval $ac_try) 2>&5
31522 + ac_status=$?
31523 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524 + (exit $ac_status); }; }; then
31525 + eval "$as_ac_var=yes"
31526 +else
31527 + echo "$as_me: failed program was:" >&5
31528 +sed 's/^/| /' conftest.$ac_ext >&5
31530 +eval "$as_ac_var=no"
31532 +rm -f conftest.err conftest.$ac_objext \
31533 + conftest$ac_exeext conftest.$ac_ext
31535 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31536 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31537 +if test `eval echo '${'$as_ac_var'}'` = yes; then
31538 + cat >>confdefs.h <<_ACEOF
31539 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31540 +_ACEOF
31542 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
31543 - echo "$ac_t""yes" 1>&6
31544 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
31545 - cat >> confdefs.h <<EOF
31546 -#define $ac_tr_func 1
31547 -EOF
31549 -else
31550 - echo "$ac_t""no" 1>&6
31552 done
31555 if test "${ac_cv_func_stpcpy+set}" != "set"; then
31556 - for ac_func in stpcpy
31558 +for ac_func in stpcpy
31560 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
31561 -echo "configure:3279: checking for $ac_func" >&5
31562 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
31563 - echo $ac_n "(cached) $ac_c" 1>&6
31564 -else
31565 - cat > conftest.$ac_ext <<EOF
31566 -#line 3284 "configure"
31567 -#include "confdefs.h"
31568 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31569 +echo "$as_me:$LINENO: checking for $ac_func" >&5
31570 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31571 +if eval "test \"\${$as_ac_var+set}\" = set"; then
31572 + echo $ECHO_N "(cached) $ECHO_C" >&6
31573 +else
31574 + cat >conftest.$ac_ext <<_ACEOF
31575 +/* confdefs.h. */
31576 +_ACEOF
31577 +cat confdefs.h >>conftest.$ac_ext
31578 +cat >>conftest.$ac_ext <<_ACEOF
31579 +/* end confdefs.h. */
31580 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31581 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
31582 +#define $ac_func innocuous_$ac_func
31584 /* System header to define __stub macros and hopefully few prototypes,
31585 - which can conflict with char $ac_func(); below. */
31586 -#include <assert.h>
31587 -/* Override any gcc2 internal prototype to avoid an error. */
31588 -/* We use char because int might match the return type of a gcc2
31589 - builtin and then its argument prototype would still apply. */
31590 -char $ac_func();
31591 + which can conflict with char $ac_func (); below.
31592 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31593 + <limits.h> exists even on freestanding compilers. */
31595 +#ifdef __STDC__
31596 +# include <limits.h>
31597 +#else
31598 +# include <assert.h>
31599 +#endif
31601 -int main() {
31602 +#undef $ac_func
31604 +/* Override any gcc2 internal prototype to avoid an error. */
31605 +#ifdef __cplusplus
31606 +extern "C"
31608 +#endif
31609 +/* We use char because int might match the return type of a gcc2
31610 + builtin and then its argument prototype would still apply. */
31611 +char $ac_func ();
31612 /* The GNU C library defines this for functions which it implements
31613 to always fail with ENOSYS. Some functions are actually named
31614 something starting with __ and the normal name is an alias. */
31615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31616 choke me
31617 #else
31618 -$ac_func();
31619 +char (*f) () = $ac_func;
31620 +#endif
31621 +#ifdef __cplusplus
31623 #endif
31625 -; return 0; }
31626 -EOF
31627 -if { (eval echo configure:3307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
31628 - rm -rf conftest*
31629 - eval "ac_cv_func_$ac_func=yes"
31630 -else
31631 - echo "configure: failed program was:" >&5
31632 - cat conftest.$ac_ext >&5
31633 - rm -rf conftest*
31634 - eval "ac_cv_func_$ac_func=no"
31636 -rm -f conftest*
31638 +int
31639 +main ()
31641 +return f != $ac_func;
31643 + return 0;
31645 +_ACEOF
31646 +rm -f conftest.$ac_objext conftest$ac_exeext
31647 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31648 + (eval $ac_link) 2>conftest.er1
31649 + ac_status=$?
31650 + grep -v '^ *+' conftest.er1 >conftest.err
31651 + rm -f conftest.er1
31652 + cat conftest.err >&5
31653 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31654 + (exit $ac_status); } &&
31655 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31656 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31657 + (eval $ac_try) 2>&5
31658 + ac_status=$?
31659 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660 + (exit $ac_status); }; } &&
31661 + { ac_try='test -s conftest$ac_exeext'
31662 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31663 + (eval $ac_try) 2>&5
31664 + ac_status=$?
31665 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666 + (exit $ac_status); }; }; then
31667 + eval "$as_ac_var=yes"
31668 +else
31669 + echo "$as_me: failed program was:" >&5
31670 +sed 's/^/| /' conftest.$ac_ext >&5
31672 +eval "$as_ac_var=no"
31674 +rm -f conftest.err conftest.$ac_objext \
31675 + conftest$ac_exeext conftest.$ac_ext
31677 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31678 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31679 +if test `eval echo '${'$as_ac_var'}'` = yes; then
31680 + cat >>confdefs.h <<_ACEOF
31681 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31682 +_ACEOF
31684 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
31685 - echo "$ac_t""yes" 1>&6
31686 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
31687 - cat >> confdefs.h <<EOF
31688 -#define $ac_tr_func 1
31689 -EOF
31691 -else
31692 - echo "$ac_t""no" 1>&6
31694 done
31697 if test "${ac_cv_func_stpcpy}" = "yes"; then
31698 - cat >> confdefs.h <<\EOF
31699 + cat >>confdefs.h <<\_ACEOF
31700 #define HAVE_STPCPY 1
31701 -EOF
31702 +_ACEOF
31706 - if test $ac_cv_header_locale_h = yes; then
31707 - echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
31708 -echo "configure:3341: checking for LC_MESSAGES" >&5
31709 -if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
31710 - echo $ac_n "(cached) $ac_c" 1>&6
31711 -else
31712 - cat > conftest.$ac_ext <<EOF
31713 -#line 3346 "configure"
31714 -#include "confdefs.h"
31715 -#include <locale.h>
31716 -int main() {
31717 -return LC_MESSAGES
31718 -; return 0; }
31719 -EOF
31720 -if { (eval echo configure:3353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
31721 - rm -rf conftest*
31722 - am_cv_val_LC_MESSAGES=yes
31723 -else
31724 - echo "configure: failed program was:" >&5
31725 - cat conftest.$ac_ext >&5
31726 - rm -rf conftest*
31727 - am_cv_val_LC_MESSAGES=no
31729 -rm -f conftest*
31732 -echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
31733 - if test $am_cv_val_LC_MESSAGES = yes; then
31734 - cat >> confdefs.h <<\EOF
31735 -#define HAVE_LC_MESSAGES 1
31736 -EOF
31738 - fi
31739 - fi
31740 - echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
31741 -echo "configure:3374: checking whether NLS is requested" >&5
31742 + echo "$as_me:$LINENO: checking whether NLS is requested" >&5
31743 +echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
31744 # Check whether --enable-nls or --disable-nls was given.
31745 if test "${enable_nls+set}" = set; then
31746 enableval="$enable_nls"
31747 USE_NLS=$enableval
31748 else
31749 USE_NLS=yes
31751 +fi;
31752 + echo "$as_me:$LINENO: result: $USE_NLS" >&5
31753 +echo "${ECHO_T}$USE_NLS" >&6
31755 - echo "$ac_t""$USE_NLS" 1>&6
31758 USE_INCLUDED_LIBINTL=no
31760 @@ -3400,148 +21139,339 @@
31761 nls_cv_header_libgt=
31762 CATOBJEXT=NONE
31764 - ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
31765 -echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
31766 -echo "configure:3406: checking for libintl.h" >&5
31767 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
31768 - echo $ac_n "(cached) $ac_c" 1>&6
31769 -else
31770 - cat > conftest.$ac_ext <<EOF
31771 -#line 3411 "configure"
31772 -#include "confdefs.h"
31773 + if test "${ac_cv_header_libintl_h+set}" = set; then
31774 + echo "$as_me:$LINENO: checking for libintl.h" >&5
31775 +echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
31776 +if test "${ac_cv_header_libintl_h+set}" = set; then
31777 + echo $ECHO_N "(cached) $ECHO_C" >&6
31779 +echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
31780 +echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
31781 +else
31782 + # Is the header compilable?
31783 +echo "$as_me:$LINENO: checking libintl.h usability" >&5
31784 +echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
31785 +cat >conftest.$ac_ext <<_ACEOF
31786 +/* confdefs.h. */
31787 +_ACEOF
31788 +cat confdefs.h >>conftest.$ac_ext
31789 +cat >>conftest.$ac_ext <<_ACEOF
31790 +/* end confdefs.h. */
31791 +$ac_includes_default
31792 #include <libintl.h>
31793 -EOF
31794 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
31795 -{ (eval echo configure:3416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
31796 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
31797 -if test -z "$ac_err"; then
31798 - rm -rf conftest*
31799 - eval "ac_cv_header_$ac_safe=yes"
31800 +_ACEOF
31801 +rm -f conftest.$ac_objext
31802 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31803 + (eval $ac_compile) 2>conftest.er1
31804 + ac_status=$?
31805 + grep -v '^ *+' conftest.er1 >conftest.err
31806 + rm -f conftest.er1
31807 + cat conftest.err >&5
31808 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31809 + (exit $ac_status); } &&
31810 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31811 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31812 + (eval $ac_try) 2>&5
31813 + ac_status=$?
31814 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31815 + (exit $ac_status); }; } &&
31816 + { ac_try='test -s conftest.$ac_objext'
31817 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31818 + (eval $ac_try) 2>&5
31819 + ac_status=$?
31820 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31821 + (exit $ac_status); }; }; then
31822 + ac_header_compiler=yes
31823 +else
31824 + echo "$as_me: failed program was:" >&5
31825 +sed 's/^/| /' conftest.$ac_ext >&5
31827 +ac_header_compiler=no
31829 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31830 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31831 +echo "${ECHO_T}$ac_header_compiler" >&6
31833 +# Is the header present?
31834 +echo "$as_me:$LINENO: checking libintl.h presence" >&5
31835 +echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
31836 +cat >conftest.$ac_ext <<_ACEOF
31837 +/* confdefs.h. */
31838 +_ACEOF
31839 +cat confdefs.h >>conftest.$ac_ext
31840 +cat >>conftest.$ac_ext <<_ACEOF
31841 +/* end confdefs.h. */
31842 +#include <libintl.h>
31843 +_ACEOF
31844 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31845 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31846 + ac_status=$?
31847 + grep -v '^ *+' conftest.er1 >conftest.err
31848 + rm -f conftest.er1
31849 + cat conftest.err >&5
31850 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31851 + (exit $ac_status); } >/dev/null; then
31852 + if test -s conftest.err; then
31853 + ac_cpp_err=$ac_c_preproc_warn_flag
31854 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31855 + else
31856 + ac_cpp_err=
31857 + fi
31858 else
31859 - echo "$ac_err" >&5
31860 - echo "configure: failed program was:" >&5
31861 - cat conftest.$ac_ext >&5
31862 - rm -rf conftest*
31863 - eval "ac_cv_header_$ac_safe=no"
31865 -rm -f conftest*
31866 + ac_cpp_err=yes
31868 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
31869 - echo "$ac_t""yes" 1>&6
31870 - echo $ac_n "checking for dgettext in libc""... $ac_c" 1>&6
31871 -echo "configure:3433: checking for dgettext in libc" >&5
31872 -if eval "test \"`echo '$''{'gt_cv_func_dgettext_libc'+set}'`\" = set"; then
31873 - echo $ac_n "(cached) $ac_c" 1>&6
31874 +if test -z "$ac_cpp_err"; then
31875 + ac_header_preproc=yes
31876 else
31877 - cat > conftest.$ac_ext <<EOF
31878 -#line 3438 "configure"
31879 -#include "confdefs.h"
31880 + echo "$as_me: failed program was:" >&5
31881 +sed 's/^/| /' conftest.$ac_ext >&5
31883 + ac_header_preproc=no
31885 +rm -f conftest.err conftest.$ac_ext
31886 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31887 +echo "${ECHO_T}$ac_header_preproc" >&6
31889 +# So? What about this header?
31890 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31891 + yes:no: )
31892 + { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31893 +echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31894 + { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
31895 +echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
31896 + ac_header_preproc=yes
31897 + ;;
31898 + no:yes:* )
31899 + { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
31900 +echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
31901 + { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
31902 +echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
31903 + { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
31904 +echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
31905 + { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
31906 +echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
31907 + { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
31908 +echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
31909 + { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
31910 +echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
31912 + cat <<\_ASBOX
31913 +## ------------------------------------------ ##
31914 +## Report this to the AC_PACKAGE_NAME lists. ##
31915 +## ------------------------------------------ ##
31916 +_ASBOX
31917 + ) |
31918 + sed "s/^/$as_me: WARNING: /" >&2
31919 + ;;
31920 +esac
31921 +echo "$as_me:$LINENO: checking for libintl.h" >&5
31922 +echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
31923 +if test "${ac_cv_header_libintl_h+set}" = set; then
31924 + echo $ECHO_N "(cached) $ECHO_C" >&6
31925 +else
31926 + ac_cv_header_libintl_h=$ac_header_preproc
31928 +echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
31929 +echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
31932 +if test $ac_cv_header_libintl_h = yes; then
31933 + echo "$as_me:$LINENO: checking for dgettext in libc" >&5
31934 +echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
31935 +if test "${gt_cv_func_dgettext_libc+set}" = set; then
31936 + echo $ECHO_N "(cached) $ECHO_C" >&6
31937 +else
31938 + cat >conftest.$ac_ext <<_ACEOF
31939 +/* confdefs.h. */
31940 +_ACEOF
31941 +cat confdefs.h >>conftest.$ac_ext
31942 +cat >>conftest.$ac_ext <<_ACEOF
31943 +/* end confdefs.h. */
31944 #include <libintl.h>
31945 -int main() {
31946 +int
31947 +main ()
31949 return (int) dgettext ("","")
31950 -; return 0; }
31951 -EOF
31952 -if { (eval echo configure:3445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
31953 - rm -rf conftest*
31955 + return 0;
31957 +_ACEOF
31958 +rm -f conftest.$ac_objext conftest$ac_exeext
31959 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31960 + (eval $ac_link) 2>conftest.er1
31961 + ac_status=$?
31962 + grep -v '^ *+' conftest.er1 >conftest.err
31963 + rm -f conftest.er1
31964 + cat conftest.err >&5
31965 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966 + (exit $ac_status); } &&
31967 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31968 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31969 + (eval $ac_try) 2>&5
31970 + ac_status=$?
31971 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31972 + (exit $ac_status); }; } &&
31973 + { ac_try='test -s conftest$ac_exeext'
31974 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31975 + (eval $ac_try) 2>&5
31976 + ac_status=$?
31977 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978 + (exit $ac_status); }; }; then
31979 gt_cv_func_dgettext_libc=yes
31980 else
31981 - echo "configure: failed program was:" >&5
31982 - cat conftest.$ac_ext >&5
31983 - rm -rf conftest*
31984 - gt_cv_func_dgettext_libc=no
31985 + echo "$as_me: failed program was:" >&5
31986 +sed 's/^/| /' conftest.$ac_ext >&5
31988 +gt_cv_func_dgettext_libc=no
31990 -rm -f conftest*
31991 +rm -f conftest.err conftest.$ac_objext \
31992 + conftest$ac_exeext conftest.$ac_ext
31995 -echo "$ac_t""$gt_cv_func_dgettext_libc" 1>&6
31996 +echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
31997 +echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
31999 if test "$gt_cv_func_dgettext_libc" != "yes"; then
32000 - echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
32001 -echo "configure:3461: checking for bindtextdomain in -lintl" >&5
32002 -ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
32003 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
32004 - echo $ac_n "(cached) $ac_c" 1>&6
32005 + echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
32006 +echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
32007 +if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
32008 + echo $ECHO_N "(cached) $ECHO_C" >&6
32009 else
32010 - ac_save_LIBS="$LIBS"
32011 + ac_check_lib_save_LIBS=$LIBS
32012 LIBS="-lintl $LIBS"
32013 -cat > conftest.$ac_ext <<EOF
32014 -#line 3469 "configure"
32015 -#include "confdefs.h"
32016 +cat >conftest.$ac_ext <<_ACEOF
32017 +/* confdefs.h. */
32018 +_ACEOF
32019 +cat confdefs.h >>conftest.$ac_ext
32020 +cat >>conftest.$ac_ext <<_ACEOF
32021 +/* end confdefs.h. */
32023 /* Override any gcc2 internal prototype to avoid an error. */
32024 +#ifdef __cplusplus
32025 +extern "C"
32026 +#endif
32027 /* We use char because int might match the return type of a gcc2
32028 - builtin and then its argument prototype would still apply. */
32029 -char bindtextdomain();
32031 -int main() {
32032 -bindtextdomain()
32033 -; return 0; }
32034 -EOF
32035 -if { (eval echo configure:3480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
32036 - rm -rf conftest*
32037 - eval "ac_cv_lib_$ac_lib_var=yes"
32038 -else
32039 - echo "configure: failed program was:" >&5
32040 - cat conftest.$ac_ext >&5
32041 - rm -rf conftest*
32042 - eval "ac_cv_lib_$ac_lib_var=no"
32044 -rm -f conftest*
32045 -LIBS="$ac_save_LIBS"
32048 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
32049 - echo "$ac_t""yes" 1>&6
32050 - echo $ac_n "checking for dgettext in libintl""... $ac_c" 1>&6
32051 -echo "configure:3496: checking for dgettext in libintl" >&5
32052 -if eval "test \"`echo '$''{'gt_cv_func_dgettext_libintl'+set}'`\" = set"; then
32053 - echo $ac_n "(cached) $ac_c" 1>&6
32054 -else
32055 - echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
32056 -echo "configure:3501: checking for dgettext in -lintl" >&5
32057 -ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
32058 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
32059 - echo $ac_n "(cached) $ac_c" 1>&6
32060 + builtin and then its argument prototype would still apply. */
32061 +char bindtextdomain ();
32062 +int
32063 +main ()
32065 +bindtextdomain ();
32067 + return 0;
32069 +_ACEOF
32070 +rm -f conftest.$ac_objext conftest$ac_exeext
32071 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32072 + (eval $ac_link) 2>conftest.er1
32073 + ac_status=$?
32074 + grep -v '^ *+' conftest.er1 >conftest.err
32075 + rm -f conftest.er1
32076 + cat conftest.err >&5
32077 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32078 + (exit $ac_status); } &&
32079 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32080 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32081 + (eval $ac_try) 2>&5
32082 + ac_status=$?
32083 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32084 + (exit $ac_status); }; } &&
32085 + { ac_try='test -s conftest$ac_exeext'
32086 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32087 + (eval $ac_try) 2>&5
32088 + ac_status=$?
32089 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32090 + (exit $ac_status); }; }; then
32091 + ac_cv_lib_intl_bindtextdomain=yes
32092 +else
32093 + echo "$as_me: failed program was:" >&5
32094 +sed 's/^/| /' conftest.$ac_ext >&5
32096 +ac_cv_lib_intl_bindtextdomain=no
32098 +rm -f conftest.err conftest.$ac_objext \
32099 + conftest$ac_exeext conftest.$ac_ext
32100 +LIBS=$ac_check_lib_save_LIBS
32102 +echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
32103 +echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
32104 +if test $ac_cv_lib_intl_bindtextdomain = yes; then
32105 + echo "$as_me:$LINENO: checking for dgettext in libintl" >&5
32106 +echo $ECHO_N "checking for dgettext in libintl... $ECHO_C" >&6
32107 +if test "${gt_cv_func_dgettext_libintl+set}" = set; then
32108 + echo $ECHO_N "(cached) $ECHO_C" >&6
32109 +else
32110 + echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
32111 +echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
32112 +if test "${ac_cv_lib_intl_dgettext+set}" = set; then
32113 + echo $ECHO_N "(cached) $ECHO_C" >&6
32114 else
32115 - ac_save_LIBS="$LIBS"
32116 + ac_check_lib_save_LIBS=$LIBS
32117 LIBS="-lintl $LIBS"
32118 -cat > conftest.$ac_ext <<EOF
32119 -#line 3509 "configure"
32120 -#include "confdefs.h"
32121 +cat >conftest.$ac_ext <<_ACEOF
32122 +/* confdefs.h. */
32123 +_ACEOF
32124 +cat confdefs.h >>conftest.$ac_ext
32125 +cat >>conftest.$ac_ext <<_ACEOF
32126 +/* end confdefs.h. */
32128 /* Override any gcc2 internal prototype to avoid an error. */
32129 +#ifdef __cplusplus
32130 +extern "C"
32131 +#endif
32132 /* We use char because int might match the return type of a gcc2
32133 - builtin and then its argument prototype would still apply. */
32134 -char dgettext();
32136 -int main() {
32137 -dgettext()
32138 -; return 0; }
32139 -EOF
32140 -if { (eval echo configure:3520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
32141 - rm -rf conftest*
32142 - eval "ac_cv_lib_$ac_lib_var=yes"
32143 -else
32144 - echo "configure: failed program was:" >&5
32145 - cat conftest.$ac_ext >&5
32146 - rm -rf conftest*
32147 - eval "ac_cv_lib_$ac_lib_var=no"
32149 -rm -f conftest*
32150 -LIBS="$ac_save_LIBS"
32153 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
32154 - echo "$ac_t""yes" 1>&6
32155 + builtin and then its argument prototype would still apply. */
32156 +char dgettext ();
32157 +int
32158 +main ()
32160 +dgettext ();
32162 + return 0;
32164 +_ACEOF
32165 +rm -f conftest.$ac_objext conftest$ac_exeext
32166 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32167 + (eval $ac_link) 2>conftest.er1
32168 + ac_status=$?
32169 + grep -v '^ *+' conftest.er1 >conftest.err
32170 + rm -f conftest.er1
32171 + cat conftest.err >&5
32172 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32173 + (exit $ac_status); } &&
32174 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32175 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32176 + (eval $ac_try) 2>&5
32177 + ac_status=$?
32178 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32179 + (exit $ac_status); }; } &&
32180 + { ac_try='test -s conftest$ac_exeext'
32181 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32182 + (eval $ac_try) 2>&5
32183 + ac_status=$?
32184 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32185 + (exit $ac_status); }; }; then
32186 + ac_cv_lib_intl_dgettext=yes
32187 +else
32188 + echo "$as_me: failed program was:" >&5
32189 +sed 's/^/| /' conftest.$ac_ext >&5
32191 +ac_cv_lib_intl_dgettext=no
32193 +rm -f conftest.err conftest.$ac_objext \
32194 + conftest$ac_exeext conftest.$ac_ext
32195 +LIBS=$ac_check_lib_save_LIBS
32197 +echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
32198 +echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
32199 +if test $ac_cv_lib_intl_dgettext = yes; then
32200 gt_cv_func_dgettext_libintl=yes
32201 else
32202 - echo "$ac_t""no" 1>&6
32203 -gt_cv_func_dgettext_libintl=no
32204 + gt_cv_func_dgettext_libintl=no
32209 -echo "$ac_t""$gt_cv_func_dgettext_libintl" 1>&6
32210 -else
32211 - echo "$ac_t""no" 1>&6
32212 +echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libintl" >&5
32213 +echo "${ECHO_T}$gt_cv_func_dgettext_libintl" >&6
32217 @@ -3552,190 +21482,337 @@
32219 if test "$gt_cv_func_dgettext_libc" = "yes" \
32220 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
32221 - cat >> confdefs.h <<\EOF
32222 + cat >>confdefs.h <<\_ACEOF
32223 #define HAVE_GETTEXT 1
32224 -EOF
32225 +_ACEOF
32228 +# Prepare PATH_SEPARATOR.
32229 +# The user is always right.
32230 +if test "${PATH_SEPARATOR+set}" != set; then
32231 + echo "#! /bin/sh" >conf$$.sh
32232 + echo "exit 0" >>conf$$.sh
32233 + chmod +x conf$$.sh
32234 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32235 + PATH_SEPARATOR=';'
32236 + else
32237 + PATH_SEPARATOR=:
32238 + fi
32239 + rm -f conf$$.sh
32242 +# Find out how to test for executable files. Don't use a zero-byte file,
32243 +# as systems may use methods other than mode bits to determine executability.
32244 +cat >conf$$.file <<_ASEOF
32245 +#! /bin/sh
32246 +exit 0
32247 +_ASEOF
32248 +chmod +x conf$$.file
32249 +if test -x conf$$.file >/dev/null 2>&1; then
32250 + ac_executable_p="test -x"
32251 +else
32252 + ac_executable_p="test -f"
32254 +rm -f conf$$.file
32256 - # Extract the first word of "msgfmt", so it can be a program name with args.
32257 +# Extract the first word of "msgfmt", so it can be a program name with args.
32258 set dummy msgfmt; ac_word=$2
32259 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
32260 -echo "configure:3563: checking for $ac_word" >&5
32261 -if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
32262 - echo $ac_n "(cached) $ac_c" 1>&6
32263 +echo "$as_me:$LINENO: checking for $ac_word" >&5
32264 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32265 +if test "${ac_cv_path_MSGFMT+set}" = set; then
32266 + echo $ECHO_N "(cached) $ECHO_C" >&6
32267 else
32268 case "$MSGFMT" in
32269 - /*)
32270 - ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
32271 - ;;
32272 + [\\/]* | ?:[\\/]*)
32273 + ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
32274 + ;;
32276 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
32277 - for ac_dir in $PATH; do
32278 - test -z "$ac_dir" && ac_dir=.
32279 - if test -f $ac_dir/$ac_word; then
32280 - if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
32281 - ac_cv_path_MSGFMT="$ac_dir/$ac_word"
32282 - break
32283 - fi
32284 - fi
32285 - done
32286 - IFS="$ac_save_ifs"
32287 + ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
32288 + for ac_dir in $PATH; do
32289 + IFS="$ac_save_IFS"
32290 + test -z "$ac_dir" && ac_dir=.
32291 + for ac_exec_ext in '' $ac_executable_extensions; do
32292 + if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
32293 + echo "$as_me: trying $ac_dir/$ac_word..." >&5
32294 + if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
32295 + ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
32296 + break 2
32297 + fi
32298 + fi
32299 + done
32300 + done
32301 + IFS="$ac_save_IFS"
32302 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
32303 - ;;
32304 + ;;
32305 esac
32307 MSGFMT="$ac_cv_path_MSGFMT"
32308 -if test -n "$MSGFMT"; then
32309 - echo "$ac_t""$MSGFMT" 1>&6
32310 +if test "$MSGFMT" != "no"; then
32311 + echo "$as_me:$LINENO: result: $MSGFMT" >&5
32312 +echo "${ECHO_T}$MSGFMT" >&6
32313 else
32314 - echo "$ac_t""no" 1>&6
32315 + echo "$as_me:$LINENO: result: no" >&5
32316 +echo "${ECHO_T}no" >&6
32318 if test "$MSGFMT" != "no"; then
32319 - for ac_func in dcgettext
32321 +for ac_func in dcgettext
32323 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
32324 -echo "configure:3597: checking for $ac_func" >&5
32325 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
32326 - echo $ac_n "(cached) $ac_c" 1>&6
32327 -else
32328 - cat > conftest.$ac_ext <<EOF
32329 -#line 3602 "configure"
32330 -#include "confdefs.h"
32331 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32332 +echo "$as_me:$LINENO: checking for $ac_func" >&5
32333 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32334 +if eval "test \"\${$as_ac_var+set}\" = set"; then
32335 + echo $ECHO_N "(cached) $ECHO_C" >&6
32336 +else
32337 + cat >conftest.$ac_ext <<_ACEOF
32338 +/* confdefs.h. */
32339 +_ACEOF
32340 +cat confdefs.h >>conftest.$ac_ext
32341 +cat >>conftest.$ac_ext <<_ACEOF
32342 +/* end confdefs.h. */
32343 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32344 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
32345 +#define $ac_func innocuous_$ac_func
32347 /* System header to define __stub macros and hopefully few prototypes,
32348 - which can conflict with char $ac_func(); below. */
32349 -#include <assert.h>
32350 -/* Override any gcc2 internal prototype to avoid an error. */
32351 -/* We use char because int might match the return type of a gcc2
32352 - builtin and then its argument prototype would still apply. */
32353 -char $ac_func();
32354 + which can conflict with char $ac_func (); below.
32355 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32356 + <limits.h> exists even on freestanding compilers. */
32358 +#ifdef __STDC__
32359 +# include <limits.h>
32360 +#else
32361 +# include <assert.h>
32362 +#endif
32364 -int main() {
32365 +#undef $ac_func
32367 +/* Override any gcc2 internal prototype to avoid an error. */
32368 +#ifdef __cplusplus
32369 +extern "C"
32371 +#endif
32372 +/* We use char because int might match the return type of a gcc2
32373 + builtin and then its argument prototype would still apply. */
32374 +char $ac_func ();
32375 /* The GNU C library defines this for functions which it implements
32376 to always fail with ENOSYS. Some functions are actually named
32377 something starting with __ and the normal name is an alias. */
32378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32379 choke me
32380 #else
32381 -$ac_func();
32382 +char (*f) () = $ac_func;
32383 +#endif
32384 +#ifdef __cplusplus
32386 #endif
32388 -; return 0; }
32389 -EOF
32390 -if { (eval echo configure:3625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
32391 - rm -rf conftest*
32392 - eval "ac_cv_func_$ac_func=yes"
32393 -else
32394 - echo "configure: failed program was:" >&5
32395 - cat conftest.$ac_ext >&5
32396 - rm -rf conftest*
32397 - eval "ac_cv_func_$ac_func=no"
32399 -rm -f conftest*
32401 +int
32402 +main ()
32404 +return f != $ac_func;
32406 + return 0;
32408 +_ACEOF
32409 +rm -f conftest.$ac_objext conftest$ac_exeext
32410 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32411 + (eval $ac_link) 2>conftest.er1
32412 + ac_status=$?
32413 + grep -v '^ *+' conftest.er1 >conftest.err
32414 + rm -f conftest.er1
32415 + cat conftest.err >&5
32416 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32417 + (exit $ac_status); } &&
32418 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32419 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32420 + (eval $ac_try) 2>&5
32421 + ac_status=$?
32422 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32423 + (exit $ac_status); }; } &&
32424 + { ac_try='test -s conftest$ac_exeext'
32425 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32426 + (eval $ac_try) 2>&5
32427 + ac_status=$?
32428 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32429 + (exit $ac_status); }; }; then
32430 + eval "$as_ac_var=yes"
32431 +else
32432 + echo "$as_me: failed program was:" >&5
32433 +sed 's/^/| /' conftest.$ac_ext >&5
32435 +eval "$as_ac_var=no"
32437 +rm -f conftest.err conftest.$ac_objext \
32438 + conftest$ac_exeext conftest.$ac_ext
32440 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32441 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32442 +if test `eval echo '${'$as_ac_var'}'` = yes; then
32443 + cat >>confdefs.h <<_ACEOF
32444 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32445 +_ACEOF
32447 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
32448 - echo "$ac_t""yes" 1>&6
32449 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
32450 - cat >> confdefs.h <<EOF
32451 -#define $ac_tr_func 1
32452 -EOF
32454 -else
32455 - echo "$ac_t""no" 1>&6
32457 done
32459 # Extract the first word of "gmsgfmt", so it can be a program name with args.
32460 set dummy gmsgfmt; ac_word=$2
32461 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
32462 -echo "configure:3652: checking for $ac_word" >&5
32463 -if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
32464 - echo $ac_n "(cached) $ac_c" 1>&6
32465 +echo "$as_me:$LINENO: checking for $ac_word" >&5
32466 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32467 +if test "${ac_cv_path_GMSGFMT+set}" = set; then
32468 + echo $ECHO_N "(cached) $ECHO_C" >&6
32469 else
32470 - case "$GMSGFMT" in
32471 - /*)
32472 + case $GMSGFMT in
32473 + [\\/]* | ?:[\\/]*)
32474 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
32476 - ?:/*)
32477 - ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
32478 - ;;
32480 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
32481 - ac_dummy="$PATH"
32482 - for ac_dir in $ac_dummy; do
32483 - test -z "$ac_dir" && ac_dir=.
32484 - if test -f $ac_dir/$ac_word; then
32485 - ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
32486 - break
32487 - fi
32488 - done
32489 - IFS="$ac_save_ifs"
32490 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32491 +for as_dir in $PATH
32493 + IFS=$as_save_IFS
32494 + test -z "$as_dir" && as_dir=.
32495 + for ac_exec_ext in '' $ac_executable_extensions; do
32496 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32497 + ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
32498 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32499 + break 2
32500 + fi
32501 +done
32502 +done
32504 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
32506 esac
32508 -GMSGFMT="$ac_cv_path_GMSGFMT"
32509 +GMSGFMT=$ac_cv_path_GMSGFMT
32511 if test -n "$GMSGFMT"; then
32512 - echo "$ac_t""$GMSGFMT" 1>&6
32513 + echo "$as_me:$LINENO: result: $GMSGFMT" >&5
32514 +echo "${ECHO_T}$GMSGFMT" >&6
32515 +else
32516 + echo "$as_me:$LINENO: result: no" >&5
32517 +echo "${ECHO_T}no" >&6
32521 +# Prepare PATH_SEPARATOR.
32522 +# The user is always right.
32523 +if test "${PATH_SEPARATOR+set}" != set; then
32524 + echo "#! /bin/sh" >conf$$.sh
32525 + echo "exit 0" >>conf$$.sh
32526 + chmod +x conf$$.sh
32527 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32528 + PATH_SEPARATOR=';'
32529 + else
32530 + PATH_SEPARATOR=:
32531 + fi
32532 + rm -f conf$$.sh
32535 +# Find out how to test for executable files. Don't use a zero-byte file,
32536 +# as systems may use methods other than mode bits to determine executability.
32537 +cat >conf$$.file <<_ASEOF
32538 +#! /bin/sh
32539 +exit 0
32540 +_ASEOF
32541 +chmod +x conf$$.file
32542 +if test -x conf$$.file >/dev/null 2>&1; then
32543 + ac_executable_p="test -x"
32544 else
32545 - echo "$ac_t""no" 1>&6
32546 + ac_executable_p="test -f"
32548 +rm -f conf$$.file
32550 - # Extract the first word of "xgettext", so it can be a program name with args.
32551 +# Extract the first word of "xgettext", so it can be a program name with args.
32552 set dummy xgettext; ac_word=$2
32553 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
32554 -echo "configure:3688: checking for $ac_word" >&5
32555 -if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
32556 - echo $ac_n "(cached) $ac_c" 1>&6
32557 +echo "$as_me:$LINENO: checking for $ac_word" >&5
32558 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32559 +if test "${ac_cv_path_XGETTEXT+set}" = set; then
32560 + echo $ECHO_N "(cached) $ECHO_C" >&6
32561 else
32562 case "$XGETTEXT" in
32563 - /*)
32564 - ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
32565 - ;;
32566 + [\\/]* | ?:[\\/]*)
32567 + ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
32568 + ;;
32570 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
32571 - for ac_dir in $PATH; do
32572 - test -z "$ac_dir" && ac_dir=.
32573 - if test -f $ac_dir/$ac_word; then
32574 - if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
32575 - ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
32576 - break
32577 - fi
32578 - fi
32579 - done
32580 - IFS="$ac_save_ifs"
32581 + ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
32582 + for ac_dir in $PATH; do
32583 + IFS="$ac_save_IFS"
32584 + test -z "$ac_dir" && ac_dir=.
32585 + for ac_exec_ext in '' $ac_executable_extensions; do
32586 + if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
32587 + echo "$as_me: trying $ac_dir/$ac_word..." >&5
32588 + if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
32589 + ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
32590 + break 2
32591 + fi
32592 + fi
32593 + done
32594 + done
32595 + IFS="$ac_save_IFS"
32596 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
32597 - ;;
32598 + ;;
32599 esac
32601 XGETTEXT="$ac_cv_path_XGETTEXT"
32602 -if test -n "$XGETTEXT"; then
32603 - echo "$ac_t""$XGETTEXT" 1>&6
32604 -else
32605 - echo "$ac_t""no" 1>&6
32606 +if test "$XGETTEXT" != ":"; then
32607 + echo "$as_me:$LINENO: result: $XGETTEXT" >&5
32608 +echo "${ECHO_T}$XGETTEXT" >&6
32609 +else
32610 + echo "$as_me:$LINENO: result: no" >&5
32611 +echo "${ECHO_T}no" >&6
32614 - cat > conftest.$ac_ext <<EOF
32615 -#line 3720 "configure"
32616 -#include "confdefs.h"
32617 + cat >conftest.$ac_ext <<_ACEOF
32618 +/* confdefs.h. */
32619 +_ACEOF
32620 +cat confdefs.h >>conftest.$ac_ext
32621 +cat >>conftest.$ac_ext <<_ACEOF
32622 +/* end confdefs.h. */
32624 -int main() {
32625 +int
32626 +main ()
32628 extern int _nl_msg_cat_cntr;
32629 return _nl_msg_cat_cntr
32630 -; return 0; }
32631 -EOF
32632 -if { (eval echo configure:3728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
32633 - rm -rf conftest*
32635 + return 0;
32637 +_ACEOF
32638 +rm -f conftest.$ac_objext conftest$ac_exeext
32639 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32640 + (eval $ac_link) 2>conftest.er1
32641 + ac_status=$?
32642 + grep -v '^ *+' conftest.er1 >conftest.err
32643 + rm -f conftest.er1
32644 + cat conftest.err >&5
32645 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32646 + (exit $ac_status); } &&
32647 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32648 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32649 + (eval $ac_try) 2>&5
32650 + ac_status=$?
32651 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32652 + (exit $ac_status); }; } &&
32653 + { ac_try='test -s conftest$ac_exeext'
32654 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32655 + (eval $ac_try) 2>&5
32656 + ac_status=$?
32657 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658 + (exit $ac_status); }; }; then
32659 CATOBJEXT=.gmo
32660 DATADIRNAME=share
32661 else
32662 - echo "configure: failed program was:" >&5
32663 - cat conftest.$ac_ext >&5
32664 - rm -rf conftest*
32665 - CATOBJEXT=.mo
32666 + echo "$as_me: failed program was:" >&5
32667 +sed 's/^/| /' conftest.$ac_ext >&5
32669 +CATOBJEXT=.mo
32670 DATADIRNAME=lib
32672 -rm -f conftest*
32673 +rm -f conftest.err conftest.$ac_objext \
32674 + conftest$ac_exeext conftest.$ac_ext
32675 INSTOBJEXT=.mo
32678 @@ -3746,151 +21823,226 @@
32679 INTLLIBS=-lintl
32680 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
32683 -else
32684 - echo "$ac_t""no" 1>&6
32690 if test "$CATOBJEXT" = "NONE"; then
32691 - echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
32692 -echo "configure:3758: checking whether catgets can be used" >&5
32693 - # Check whether --with-catgets or --without-catgets was given.
32694 + echo "$as_me:$LINENO: checking whether catgets can be used" >&5
32695 +echo $ECHO_N "checking whether catgets can be used... $ECHO_C" >&6
32697 +# Check whether --with-catgets or --without-catgets was given.
32698 if test "${with_catgets+set}" = set; then
32699 withval="$with_catgets"
32700 nls_cv_use_catgets=$withval
32701 else
32702 nls_cv_use_catgets=no
32705 - echo "$ac_t""$nls_cv_use_catgets" 1>&6
32706 +fi;
32707 + echo "$as_me:$LINENO: result: $nls_cv_use_catgets" >&5
32708 +echo "${ECHO_T}$nls_cv_use_catgets" >&6
32710 if test "$nls_cv_use_catgets" = "yes"; then
32711 - echo $ac_n "checking for main in -li""... $ac_c" 1>&6
32712 -echo "configure:3771: checking for main in -li" >&5
32713 -ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
32714 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
32715 - echo $ac_n "(cached) $ac_c" 1>&6
32717 +echo "$as_me:$LINENO: checking for main in -li" >&5
32718 +echo $ECHO_N "checking for main in -li... $ECHO_C" >&6
32719 +if test "${ac_cv_lib_i_main+set}" = set; then
32720 + echo $ECHO_N "(cached) $ECHO_C" >&6
32721 else
32722 - ac_save_LIBS="$LIBS"
32723 + ac_check_lib_save_LIBS=$LIBS
32724 LIBS="-li $LIBS"
32725 -cat > conftest.$ac_ext <<EOF
32726 -#line 3779 "configure"
32727 -#include "confdefs.h"
32728 +cat >conftest.$ac_ext <<_ACEOF
32729 +/* confdefs.h. */
32730 +_ACEOF
32731 +cat confdefs.h >>conftest.$ac_ext
32732 +cat >>conftest.$ac_ext <<_ACEOF
32733 +/* end confdefs.h. */
32735 -int main() {
32736 -main()
32737 -; return 0; }
32738 -EOF
32739 -if { (eval echo configure:3786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
32740 - rm -rf conftest*
32741 - eval "ac_cv_lib_$ac_lib_var=yes"
32742 -else
32743 - echo "configure: failed program was:" >&5
32744 - cat conftest.$ac_ext >&5
32745 - rm -rf conftest*
32746 - eval "ac_cv_lib_$ac_lib_var=no"
32748 -rm -f conftest*
32749 -LIBS="$ac_save_LIBS"
32752 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
32753 - echo "$ac_t""yes" 1>&6
32754 - ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
32755 - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
32756 - cat >> confdefs.h <<EOF
32757 -#define $ac_tr_lib 1
32758 -EOF
32759 +int
32760 +main ()
32762 +main ();
32764 + return 0;
32766 +_ACEOF
32767 +rm -f conftest.$ac_objext conftest$ac_exeext
32768 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32769 + (eval $ac_link) 2>conftest.er1
32770 + ac_status=$?
32771 + grep -v '^ *+' conftest.er1 >conftest.err
32772 + rm -f conftest.er1
32773 + cat conftest.err >&5
32774 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775 + (exit $ac_status); } &&
32776 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32777 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32778 + (eval $ac_try) 2>&5
32779 + ac_status=$?
32780 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781 + (exit $ac_status); }; } &&
32782 + { ac_try='test -s conftest$ac_exeext'
32783 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32784 + (eval $ac_try) 2>&5
32785 + ac_status=$?
32786 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32787 + (exit $ac_status); }; }; then
32788 + ac_cv_lib_i_main=yes
32789 +else
32790 + echo "$as_me: failed program was:" >&5
32791 +sed 's/^/| /' conftest.$ac_ext >&5
32793 +ac_cv_lib_i_main=no
32795 +rm -f conftest.err conftest.$ac_objext \
32796 + conftest$ac_exeext conftest.$ac_ext
32797 +LIBS=$ac_check_lib_save_LIBS
32799 +echo "$as_me:$LINENO: result: $ac_cv_lib_i_main" >&5
32800 +echo "${ECHO_T}$ac_cv_lib_i_main" >&6
32801 +if test $ac_cv_lib_i_main = yes; then
32802 + cat >>confdefs.h <<_ACEOF
32803 +#define HAVE_LIBI 1
32804 +_ACEOF
32806 LIBS="-li $LIBS"
32808 -else
32809 - echo "$ac_t""no" 1>&6
32812 - echo $ac_n "checking for catgets""... $ac_c" 1>&6
32813 -echo "configure:3814: checking for catgets" >&5
32814 -if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
32815 - echo $ac_n "(cached) $ac_c" 1>&6
32816 -else
32817 - cat > conftest.$ac_ext <<EOF
32818 -#line 3819 "configure"
32819 -#include "confdefs.h"
32820 + echo "$as_me:$LINENO: checking for catgets" >&5
32821 +echo $ECHO_N "checking for catgets... $ECHO_C" >&6
32822 +if test "${ac_cv_func_catgets+set}" = set; then
32823 + echo $ECHO_N "(cached) $ECHO_C" >&6
32824 +else
32825 + cat >conftest.$ac_ext <<_ACEOF
32826 +/* confdefs.h. */
32827 +_ACEOF
32828 +cat confdefs.h >>conftest.$ac_ext
32829 +cat >>conftest.$ac_ext <<_ACEOF
32830 +/* end confdefs.h. */
32831 +/* Define catgets to an innocuous variant, in case <limits.h> declares catgets.
32832 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
32833 +#define catgets innocuous_catgets
32835 /* System header to define __stub macros and hopefully few prototypes,
32836 - which can conflict with char catgets(); below. */
32837 -#include <assert.h>
32838 -/* Override any gcc2 internal prototype to avoid an error. */
32839 -/* We use char because int might match the return type of a gcc2
32840 - builtin and then its argument prototype would still apply. */
32841 -char catgets();
32842 + which can conflict with char catgets (); below.
32843 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32844 + <limits.h> exists even on freestanding compilers. */
32846 +#ifdef __STDC__
32847 +# include <limits.h>
32848 +#else
32849 +# include <assert.h>
32850 +#endif
32852 -int main() {
32853 +#undef catgets
32855 +/* Override any gcc2 internal prototype to avoid an error. */
32856 +#ifdef __cplusplus
32857 +extern "C"
32859 +#endif
32860 +/* We use char because int might match the return type of a gcc2
32861 + builtin and then its argument prototype would still apply. */
32862 +char catgets ();
32863 /* The GNU C library defines this for functions which it implements
32864 to always fail with ENOSYS. Some functions are actually named
32865 something starting with __ and the normal name is an alias. */
32866 #if defined (__stub_catgets) || defined (__stub___catgets)
32867 choke me
32868 #else
32869 -catgets();
32870 +char (*f) () = catgets;
32871 +#endif
32872 +#ifdef __cplusplus
32874 #endif
32876 -; return 0; }
32877 -EOF
32878 -if { (eval echo configure:3842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
32879 - rm -rf conftest*
32880 - eval "ac_cv_func_catgets=yes"
32881 -else
32882 - echo "configure: failed program was:" >&5
32883 - cat conftest.$ac_ext >&5
32884 - rm -rf conftest*
32885 - eval "ac_cv_func_catgets=no"
32887 -rm -f conftest*
32890 -if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
32891 - echo "$ac_t""yes" 1>&6
32892 - cat >> confdefs.h <<\EOF
32893 +int
32894 +main ()
32896 +return f != catgets;
32898 + return 0;
32900 +_ACEOF
32901 +rm -f conftest.$ac_objext conftest$ac_exeext
32902 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32903 + (eval $ac_link) 2>conftest.er1
32904 + ac_status=$?
32905 + grep -v '^ *+' conftest.er1 >conftest.err
32906 + rm -f conftest.er1
32907 + cat conftest.err >&5
32908 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32909 + (exit $ac_status); } &&
32910 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32911 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32912 + (eval $ac_try) 2>&5
32913 + ac_status=$?
32914 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32915 + (exit $ac_status); }; } &&
32916 + { ac_try='test -s conftest$ac_exeext'
32917 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32918 + (eval $ac_try) 2>&5
32919 + ac_status=$?
32920 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32921 + (exit $ac_status); }; }; then
32922 + ac_cv_func_catgets=yes
32923 +else
32924 + echo "$as_me: failed program was:" >&5
32925 +sed 's/^/| /' conftest.$ac_ext >&5
32927 +ac_cv_func_catgets=no
32929 +rm -f conftest.err conftest.$ac_objext \
32930 + conftest$ac_exeext conftest.$ac_ext
32932 +echo "$as_me:$LINENO: result: $ac_cv_func_catgets" >&5
32933 +echo "${ECHO_T}$ac_cv_func_catgets" >&6
32934 +if test $ac_cv_func_catgets = yes; then
32935 + cat >>confdefs.h <<\_ACEOF
32936 #define HAVE_CATGETS 1
32937 -EOF
32938 +_ACEOF
32940 INTLOBJS="\$(CATOBJS)"
32941 # Extract the first word of "gencat", so it can be a program name with args.
32942 set dummy gencat; ac_word=$2
32943 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
32944 -echo "configure:3864: checking for $ac_word" >&5
32945 -if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
32946 - echo $ac_n "(cached) $ac_c" 1>&6
32947 +echo "$as_me:$LINENO: checking for $ac_word" >&5
32948 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32949 +if test "${ac_cv_path_GENCAT+set}" = set; then
32950 + echo $ECHO_N "(cached) $ECHO_C" >&6
32951 else
32952 - case "$GENCAT" in
32953 - /*)
32954 + case $GENCAT in
32955 + [\\/]* | ?:[\\/]*)
32956 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
32958 - ?:/*)
32959 - ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
32960 - ;;
32962 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
32963 - ac_dummy="$PATH"
32964 - for ac_dir in $ac_dummy; do
32965 - test -z "$ac_dir" && ac_dir=.
32966 - if test -f $ac_dir/$ac_word; then
32967 - ac_cv_path_GENCAT="$ac_dir/$ac_word"
32968 - break
32969 - fi
32970 - done
32971 - IFS="$ac_save_ifs"
32972 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32973 +for as_dir in $PATH
32975 + IFS=$as_save_IFS
32976 + test -z "$as_dir" && as_dir=.
32977 + for ac_exec_ext in '' $ac_executable_extensions; do
32978 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32979 + ac_cv_path_GENCAT="$as_dir/$ac_word$ac_exec_ext"
32980 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32981 + break 2
32982 + fi
32983 +done
32984 +done
32986 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
32988 esac
32990 -GENCAT="$ac_cv_path_GENCAT"
32991 +GENCAT=$ac_cv_path_GENCAT
32993 if test -n "$GENCAT"; then
32994 - echo "$ac_t""$GENCAT" 1>&6
32995 + echo "$as_me:$LINENO: result: $GENCAT" >&5
32996 +echo "${ECHO_T}$GENCAT" >&6
32997 else
32998 - echo "$ac_t""no" 1>&6
32999 + echo "$as_me:$LINENO: result: no" >&5
33000 +echo "${ECHO_T}no" >&6
33002 # if test "$GENCAT" != "no"; then
33003 # AC_PATH_PROG(GMSGFMT, gmsgfmt, no)
33004 @@ -3910,9 +22062,7 @@
33005 # nls_cv_header_intl=intl/libintl.h
33006 # nls_cv_header_libgt=intl/libgettext.h
33007 # fi
33009 -else
33010 - echo "$ac_t""no" 1>&6
33015 @@ -3924,9 +22074,9 @@
33018 if test "$nls_cv_use_gnu_gettext" != "yes"; then
33019 - cat >> confdefs.h <<\EOF
33020 + cat >>confdefs.h <<\_ACEOF
33021 #define ENABLE_NLS 1
33022 -EOF
33023 +_ACEOF
33025 else
33026 # Unset this variable since we use the non-zero value as a flag.
33027 @@ -3954,7 +22104,8 @@
33028 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
33030 else
33031 - echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
33032 + echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
33033 +echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
33034 XGETTEXT=":"
33037 @@ -3966,8 +22117,17 @@
33038 nls_cv_header_intl=intl/libintl.h
33039 nls_cv_header_libgt=intl/libgettext.h
33043 + ac_sources="$nls_cv_header_libgt"
33044 +ac_dests="$nls_cv_header_intl"
33045 +while test -n "$ac_sources"; do
33046 + set $ac_dests; ac_dest=$1; shift; ac_dests=$*
33047 + set $ac_sources; ac_source=$1; shift; ac_sources=$*
33048 + ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
33049 +done
33050 + ac_config_links="$ac_config_links $ac_config_links_1"
33052 + ac_config_commands="$ac_config_commands default-2"
33056 # # If this is used in GNU gettext we have to set USE_NLS to `yes'
33057 @@ -3982,25 +22142,25 @@
33058 POFILES="$POFILES $lang.po"
33059 done
33086 if test "x$CATOBJEXT" != "x"; then
33087 if test "x$ALL_LINGUAS" = "x"; then
33088 LINGUAS=
33089 else
33090 - echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
33091 -echo "configure:4004: checking for catalogs to be installed" >&5
33092 + echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
33093 +echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
33094 NEW_LINGUAS=
33095 for lang in ${LINGUAS=$ALL_LINGUAS}; do
33096 case "$ALL_LINGUAS" in
33097 @@ -4008,7 +22168,8 @@
33098 esac
33099 done
33100 LINGUAS=$NEW_LINGUAS
33101 - echo "$ac_t""$LINGUAS" 1>&6
33102 + echo "$as_me:$LINENO: result: $LINGUAS" >&5
33103 +echo "${ECHO_T}$LINGUAS" >&6
33106 if test -n "$LINGUAS"; then
33107 @@ -4022,45 +22183,154 @@
33108 INCLUDE_LOCALE_H="\
33109 /* The system does not provide the header <locale.h>. Take care yourself. */"
33114 test -d intl || mkdir intl
33115 if test "$CATOBJEXT" = ".cat"; then
33116 - ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
33117 -echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
33118 -echo "configure:4032: checking for linux/version.h" >&5
33119 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
33120 - echo $ac_n "(cached) $ac_c" 1>&6
33121 -else
33122 - cat > conftest.$ac_ext <<EOF
33123 -#line 4037 "configure"
33124 -#include "confdefs.h"
33125 + if test "${ac_cv_header_linux_version_h+set}" = set; then
33126 + echo "$as_me:$LINENO: checking for linux/version.h" >&5
33127 +echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
33128 +if test "${ac_cv_header_linux_version_h+set}" = set; then
33129 + echo $ECHO_N "(cached) $ECHO_C" >&6
33131 +echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
33132 +echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
33133 +else
33134 + # Is the header compilable?
33135 +echo "$as_me:$LINENO: checking linux/version.h usability" >&5
33136 +echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
33137 +cat >conftest.$ac_ext <<_ACEOF
33138 +/* confdefs.h. */
33139 +_ACEOF
33140 +cat confdefs.h >>conftest.$ac_ext
33141 +cat >>conftest.$ac_ext <<_ACEOF
33142 +/* end confdefs.h. */
33143 +$ac_includes_default
33144 #include <linux/version.h>
33145 -EOF
33146 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
33147 -{ (eval echo configure:4042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
33148 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
33149 -if test -z "$ac_err"; then
33150 - rm -rf conftest*
33151 - eval "ac_cv_header_$ac_safe=yes"
33152 +_ACEOF
33153 +rm -f conftest.$ac_objext
33154 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33155 + (eval $ac_compile) 2>conftest.er1
33156 + ac_status=$?
33157 + grep -v '^ *+' conftest.er1 >conftest.err
33158 + rm -f conftest.er1
33159 + cat conftest.err >&5
33160 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161 + (exit $ac_status); } &&
33162 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33163 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33164 + (eval $ac_try) 2>&5
33165 + ac_status=$?
33166 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33167 + (exit $ac_status); }; } &&
33168 + { ac_try='test -s conftest.$ac_objext'
33169 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33170 + (eval $ac_try) 2>&5
33171 + ac_status=$?
33172 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33173 + (exit $ac_status); }; }; then
33174 + ac_header_compiler=yes
33175 +else
33176 + echo "$as_me: failed program was:" >&5
33177 +sed 's/^/| /' conftest.$ac_ext >&5
33179 +ac_header_compiler=no
33181 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33182 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33183 +echo "${ECHO_T}$ac_header_compiler" >&6
33185 +# Is the header present?
33186 +echo "$as_me:$LINENO: checking linux/version.h presence" >&5
33187 +echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
33188 +cat >conftest.$ac_ext <<_ACEOF
33189 +/* confdefs.h. */
33190 +_ACEOF
33191 +cat confdefs.h >>conftest.$ac_ext
33192 +cat >>conftest.$ac_ext <<_ACEOF
33193 +/* end confdefs.h. */
33194 +#include <linux/version.h>
33195 +_ACEOF
33196 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33197 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33198 + ac_status=$?
33199 + grep -v '^ *+' conftest.er1 >conftest.err
33200 + rm -f conftest.er1
33201 + cat conftest.err >&5
33202 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33203 + (exit $ac_status); } >/dev/null; then
33204 + if test -s conftest.err; then
33205 + ac_cpp_err=$ac_c_preproc_warn_flag
33206 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33207 + else
33208 + ac_cpp_err=
33209 + fi
33210 else
33211 - echo "$ac_err" >&5
33212 - echo "configure: failed program was:" >&5
33213 - cat conftest.$ac_ext >&5
33214 - rm -rf conftest*
33215 - eval "ac_cv_header_$ac_safe=no"
33216 + ac_cpp_err=yes
33218 -rm -f conftest*
33219 +if test -z "$ac_cpp_err"; then
33220 + ac_header_preproc=yes
33221 +else
33222 + echo "$as_me: failed program was:" >&5
33223 +sed 's/^/| /' conftest.$ac_ext >&5
33225 + ac_header_preproc=no
33227 +rm -f conftest.err conftest.$ac_ext
33228 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33229 +echo "${ECHO_T}$ac_header_preproc" >&6
33231 +# So? What about this header?
33232 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33233 + yes:no: )
33234 + { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
33235 +echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33236 + { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
33237 +echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
33238 + ac_header_preproc=yes
33239 + ;;
33240 + no:yes:* )
33241 + { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
33242 +echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
33243 + { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
33244 +echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
33245 + { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
33246 +echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
33247 + { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
33248 +echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
33249 + { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
33250 +echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
33251 + { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
33252 +echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
33254 + cat <<\_ASBOX
33255 +## ------------------------------------------ ##
33256 +## Report this to the AC_PACKAGE_NAME lists. ##
33257 +## ------------------------------------------ ##
33258 +_ASBOX
33259 + ) |
33260 + sed "s/^/$as_me: WARNING: /" >&2
33261 + ;;
33262 +esac
33263 +echo "$as_me:$LINENO: checking for linux/version.h" >&5
33264 +echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
33265 +if test "${ac_cv_header_linux_version_h+set}" = set; then
33266 + echo $ECHO_N "(cached) $ECHO_C" >&6
33267 +else
33268 + ac_cv_header_linux_version_h=$ac_header_preproc
33270 +echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
33271 +echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
33274 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
33275 - echo "$ac_t""yes" 1>&6
33276 +if test $ac_cv_header_linux_version_h = yes; then
33277 msgformat=linux
33278 else
33279 - echo "$ac_t""no" 1>&6
33280 -msgformat=xopen
33281 + msgformat=xopen
33286 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
33288 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
33289 @@ -4073,8 +22343,8 @@
33290 GT_NO=
33291 GT_YES="#YES#"
33298 MKINSTALLDIRS=
33299 if test -n "$ac_aux_dir"; then
33300 @@ -4083,10 +22353,10 @@
33301 if test -z "$MKINSTALLDIRS"; then
33302 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
33311 test -d po || mkdir po
33312 if test "x$srcdir" != "x."; then
33313 @@ -4101,7 +22371,7 @@
33314 rm -f po/POTFILES
33315 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
33316 < $srcdir/po/POTFILES.in > po/POTFILES
33319 LIBS="$LIBS $INTLLIBS"
33321 # AM_GTK_GNU_GETTEXT above substs $DATADIRNAME
33322 @@ -4109,117 +22379,208 @@
33323 gtklocaledir='${prefix}/${DATADIRNAME}/locale'
33326 -echo $ac_n "checking for extra flags to get ANSI library prototypes""... $ac_c" 1>&6
33327 -echo "configure:4114: checking for extra flags to get ANSI library prototypes" >&5
33328 +echo "$as_me:$LINENO: checking for extra flags to get ANSI library prototypes" >&5
33329 +echo $ECHO_N "checking for extra flags to get ANSI library prototypes... $ECHO_C" >&6
33331 gtk_save_LIBS=$LIBS
33332 LIBS="$LIBS -lm"
33333 if test "$cross_compiling" = yes; then
33334 - echo "$ac_t""none needed" 1>&6
33335 + echo "$as_me:$LINENO: result: none needed" >&5
33336 +echo "${ECHO_T}none needed" >&6
33338 else
33339 - cat > conftest.$ac_ext <<EOF
33340 -#line 4123 "configure"
33341 -#include "confdefs.h"
33342 + cat >conftest.$ac_ext <<_ACEOF
33343 +/* confdefs.h. */
33344 +_ACEOF
33345 +cat confdefs.h >>conftest.$ac_ext
33346 +cat >>conftest.$ac_ext <<_ACEOF
33347 +/* end confdefs.h. */
33348 #include <math.h>
33349 int main (void) { return (log(1) != log(1.)); }
33350 -EOF
33351 -if { (eval echo configure:4128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
33352 -then
33353 - echo "$ac_t""none needed" 1>&6
33354 -else
33355 - echo "configure: failed program was:" >&5
33356 - cat conftest.$ac_ext >&5
33357 - rm -fr conftest*
33358 - gtk_save_CFLAGS=$CFLAGS
33359 +_ACEOF
33360 +rm -f conftest$ac_exeext
33361 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33362 + (eval $ac_link) 2>&5
33363 + ac_status=$?
33364 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33365 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33366 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33367 + (eval $ac_try) 2>&5
33368 + ac_status=$?
33369 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33370 + (exit $ac_status); }; }; then
33371 + echo "$as_me:$LINENO: result: none needed" >&5
33372 +echo "${ECHO_T}none needed" >&6
33373 +else
33374 + echo "$as_me: program exited with status $ac_status" >&5
33375 +echo "$as_me: failed program was:" >&5
33376 +sed 's/^/| /' conftest.$ac_ext >&5
33378 +( exit $ac_status )
33379 +gtk_save_CFLAGS=$CFLAGS
33380 CFLAGS="$CFLAGS -std1"
33381 if test "$cross_compiling" = yes; then
33382 true
33385 else
33386 - cat > conftest.$ac_ext <<EOF
33387 -#line 4142 "configure"
33388 -#include "confdefs.h"
33389 + cat >conftest.$ac_ext <<_ACEOF
33390 +/* confdefs.h. */
33391 +_ACEOF
33392 +cat confdefs.h >>conftest.$ac_ext
33393 +cat >>conftest.$ac_ext <<_ACEOF
33394 +/* end confdefs.h. */
33395 #include <math.h>
33396 int main (void) { return (log(1) != log(1.)); }
33397 -EOF
33398 -if { (eval echo configure:4147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
33399 -then
33400 - echo "$ac_t""-std1" 1>&6
33401 -else
33402 - echo "configure: failed program was:" >&5
33403 - cat conftest.$ac_ext >&5
33404 - rm -fr conftest*
33405 - echo "$ac_t""" 1>&6
33406 +_ACEOF
33407 +rm -f conftest$ac_exeext
33408 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33409 + (eval $ac_link) 2>&5
33410 + ac_status=$?
33411 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33412 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33413 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33414 + (eval $ac_try) 2>&5
33415 + ac_status=$?
33416 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33417 + (exit $ac_status); }; }; then
33418 + echo "$as_me:$LINENO: result: -std1" >&5
33419 +echo "${ECHO_T}-std1" >&6
33420 +else
33421 + echo "$as_me: program exited with status $ac_status" >&5
33422 +echo "$as_me: failed program was:" >&5
33423 +sed 's/^/| /' conftest.$ac_ext >&5
33425 +( exit $ac_status )
33426 +echo "$as_me:$LINENO: result: " >&5
33427 +echo "${ECHO_T}" >&6
33428 CFLAGS=$gtk_save_CFLAGS
33429 - echo "configure: warning: No ANSI prototypes found in library. (-std1 didn't work.)" 1>&2
33430 + { echo "$as_me:$LINENO: WARNING: No ANSI prototypes found in library. (-std1 didn't work.)" >&5
33431 +echo "$as_me: WARNING: No ANSI prototypes found in library. (-std1 didn't work.)" >&2;}
33433 -rm -fr conftest*
33434 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33438 -rm -fr conftest*
33439 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33442 LIBS=$gtk_save_LIBS
33444 -echo $ac_n "checking for extra flags for POSIX compliance""... $ac_c" 1>&6
33445 -echo "configure:4168: checking for extra flags for POSIX compliance" >&5
33446 -cat > conftest.$ac_ext <<EOF
33447 -#line 4170 "configure"
33448 -#include "confdefs.h"
33449 +echo "$as_me:$LINENO: checking for extra flags for POSIX compliance" >&5
33450 +echo $ECHO_N "checking for extra flags for POSIX compliance... $ECHO_C" >&6
33451 +cat >conftest.$ac_ext <<_ACEOF
33452 +/* confdefs.h. */
33453 +_ACEOF
33454 +cat confdefs.h >>conftest.$ac_ext
33455 +cat >>conftest.$ac_ext <<_ACEOF
33456 +/* end confdefs.h. */
33457 #include <dirent.h>
33458 -int main() {
33459 +int
33460 +main ()
33462 DIR *dir;
33463 -; return 0; }
33464 -EOF
33465 -if { (eval echo configure:4177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
33466 - rm -rf conftest*
33467 - echo "$ac_t""none needed" 1>&6
33469 + return 0;
33471 +_ACEOF
33472 +rm -f conftest.$ac_objext
33473 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33474 + (eval $ac_compile) 2>conftest.er1
33475 + ac_status=$?
33476 + grep -v '^ *+' conftest.er1 >conftest.err
33477 + rm -f conftest.er1
33478 + cat conftest.err >&5
33479 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480 + (exit $ac_status); } &&
33481 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33482 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33483 + (eval $ac_try) 2>&5
33484 + ac_status=$?
33485 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33486 + (exit $ac_status); }; } &&
33487 + { ac_try='test -s conftest.$ac_objext'
33488 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33489 + (eval $ac_try) 2>&5
33490 + ac_status=$?
33491 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33492 + (exit $ac_status); }; }; then
33493 + echo "$as_me:$LINENO: result: none needed" >&5
33494 +echo "${ECHO_T}none needed" >&6
33495 else
33496 - echo "configure: failed program was:" >&5
33497 - cat conftest.$ac_ext >&5
33498 - rm -rf conftest*
33499 - gtk_save_CFLAGS=$CFLAGS
33500 + echo "$as_me: failed program was:" >&5
33501 +sed 's/^/| /' conftest.$ac_ext >&5
33503 +gtk_save_CFLAGS=$CFLAGS
33504 CFLAGS="$CFLAGS -posix"
33505 - cat > conftest.$ac_ext <<EOF
33506 -#line 4187 "configure"
33507 -#include "confdefs.h"
33508 + cat >conftest.$ac_ext <<_ACEOF
33509 +/* confdefs.h. */
33510 +_ACEOF
33511 +cat confdefs.h >>conftest.$ac_ext
33512 +cat >>conftest.$ac_ext <<_ACEOF
33513 +/* end confdefs.h. */
33514 #include <dirent.h>
33515 -int main() {
33516 +int
33517 +main ()
33519 DIR *dir;
33520 -; return 0; }
33521 -EOF
33522 -if { (eval echo configure:4194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
33523 - rm -rf conftest*
33524 - echo "$ac_t""-posix" 1>&6
33526 + return 0;
33528 +_ACEOF
33529 +rm -f conftest.$ac_objext
33530 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33531 + (eval $ac_compile) 2>conftest.er1
33532 + ac_status=$?
33533 + grep -v '^ *+' conftest.er1 >conftest.err
33534 + rm -f conftest.er1
33535 + cat conftest.err >&5
33536 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33537 + (exit $ac_status); } &&
33538 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33539 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33540 + (eval $ac_try) 2>&5
33541 + ac_status=$?
33542 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33543 + (exit $ac_status); }; } &&
33544 + { ac_try='test -s conftest.$ac_objext'
33545 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33546 + (eval $ac_try) 2>&5
33547 + ac_status=$?
33548 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33549 + (exit $ac_status); }; }; then
33550 + echo "$as_me:$LINENO: result: -posix" >&5
33551 +echo "${ECHO_T}-posix" >&6
33552 else
33553 - echo "configure: failed program was:" >&5
33554 - cat conftest.$ac_ext >&5
33555 - rm -rf conftest*
33556 - echo "$ac_t""" 1>&6
33557 + echo "$as_me: failed program was:" >&5
33558 +sed 's/^/| /' conftest.$ac_ext >&5
33560 +echo "$as_me:$LINENO: result: " >&5
33561 +echo "${ECHO_T}" >&6
33562 CFLAGS=$gtk_save_CFLAGS
33563 - echo "configure: warning: Could not determine POSIX flag. (-posix didn't work.)" 1>&2
33564 + { echo "$as_me:$LINENO: WARNING: Could not determine POSIX flag. (-posix didn't work.)" >&5
33565 +echo "$as_me: WARNING: Could not determine POSIX flag. (-posix didn't work.)" >&2;}
33567 -rm -f conftest*
33568 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33570 -rm -f conftest*
33571 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33573 if test x$with_glib = xyes ; then
33574 - { echo "configure: error:
33575 -*** Directory must be specified for --with-glib" 1>&2; exit 1; }
33576 + { { echo "$as_me:$LINENO: error:
33577 +*** Directory must be specified for --with-glib" >&5
33578 +echo "$as_me: error:
33579 +*** Directory must be specified for --with-glib" >&2;}
33580 + { (exit 1); exit 1; }; }
33583 -if test x$with_glib = x ; then
33584 +if test x$with_glib = x ; then
33585 # Look for separately installed glib
33587 - # Check whether --with-glib-prefix or --without-glib-prefix was given.
33589 +# Check whether --with-glib-prefix or --without-glib-prefix was given.
33590 if test "${with_glib_prefix+set}" = set; then
33591 withval="$with_glib_prefix"
33592 glib_config_prefix="$withval"
33593 else
33594 glib_config_prefix=""
33596 +fi;
33598 # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
33599 if test "${with_glib_exec_prefix+set}" = set; then
33600 @@ -4227,16 +22588,14 @@
33601 glib_config_exec_prefix="$withval"
33602 else
33603 glib_config_exec_prefix=""
33606 +fi;
33607 # Check whether --enable-glibtest or --disable-glibtest was given.
33608 if test "${enable_glibtest+set}" = set; then
33609 enableval="$enable_glibtest"
33612 else
33613 enable_glibtest=yes
33616 +fi;
33618 if test x$glib_config_exec_prefix != x ; then
33619 glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
33620 @@ -4254,10 +22613,10 @@
33621 for module in . gmodule gthread
33623 case "$module" in
33624 - gmodule)
33625 + gmodule)
33626 glib_config_args="$glib_config_args gmodule"
33628 - gthread)
33629 + gthread)
33630 glib_config_args="$glib_config_args gthread"
33632 esac
33633 @@ -4265,43 +22624,47 @@
33635 # Extract the first word of "glib-config", so it can be a program name with args.
33636 set dummy glib-config; ac_word=$2
33637 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
33638 -echo "configure:4270: checking for $ac_word" >&5
33639 -if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
33640 - echo $ac_n "(cached) $ac_c" 1>&6
33641 +echo "$as_me:$LINENO: checking for $ac_word" >&5
33642 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33643 +if test "${ac_cv_path_GLIB_CONFIG+set}" = set; then
33644 + echo $ECHO_N "(cached) $ECHO_C" >&6
33645 else
33646 - case "$GLIB_CONFIG" in
33647 - /*)
33648 + case $GLIB_CONFIG in
33649 + [\\/]* | ?:[\\/]*)
33650 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
33651 - ;;
33652 - ?:/*)
33653 - ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path.
33654 - ;;
33655 - *)
33656 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
33657 - ac_dummy="$PATH"
33658 - for ac_dir in $ac_dummy; do
33659 - test -z "$ac_dir" && ac_dir=.
33660 - if test -f $ac_dir/$ac_word; then
33661 - ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
33662 - break
33663 - fi
33664 - done
33665 - IFS="$ac_save_ifs"
33666 + ;;
33667 + *)
33668 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33669 +for as_dir in $PATH
33671 + IFS=$as_save_IFS
33672 + test -z "$as_dir" && as_dir=.
33673 + for ac_exec_ext in '' $ac_executable_extensions; do
33674 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33675 + ac_cv_path_GLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33676 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33677 + break 2
33678 + fi
33679 +done
33680 +done
33682 test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
33684 esac
33686 -GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG"
33687 +GLIB_CONFIG=$ac_cv_path_GLIB_CONFIG
33689 if test -n "$GLIB_CONFIG"; then
33690 - echo "$ac_t""$GLIB_CONFIG" 1>&6
33691 + echo "$as_me:$LINENO: result: $GLIB_CONFIG" >&5
33692 +echo "${ECHO_T}$GLIB_CONFIG" >&6
33693 else
33694 - echo "$ac_t""no" 1>&6
33695 + echo "$as_me:$LINENO: result: no" >&5
33696 +echo "${ECHO_T}no" >&6
33699 min_glib_version=1.2.8
33700 - echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
33701 -echo "configure:4305: checking for GLIB - version >= $min_glib_version" >&5
33702 + echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
33703 +echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6
33704 no_glib=""
33705 if test "$GLIB_CONFIG" = "no" ; then
33706 no_glib=yes
33707 @@ -4323,15 +22686,18 @@
33708 if test "$cross_compiling" = yes; then
33709 echo $ac_n "cross compiling; assumed OK... $ac_c"
33710 else
33711 - cat > conftest.$ac_ext <<EOF
33712 -#line 4328 "configure"
33713 -#include "confdefs.h"
33714 + cat >conftest.$ac_ext <<_ACEOF
33715 +/* confdefs.h. */
33716 +_ACEOF
33717 +cat confdefs.h >>conftest.$ac_ext
33718 +cat >>conftest.$ac_ext <<_ACEOF
33719 +/* end confdefs.h. */
33721 #include <glib.h>
33722 #include <stdio.h>
33723 #include <stdlib.h>
33725 -int
33726 +int
33727 main ()
33729 int major, minor, micro;
33730 @@ -4350,7 +22716,7 @@
33731 (glib_minor_version != $glib_config_minor_version) ||
33732 (glib_micro_version != $glib_config_micro_version))
33734 - printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
33735 + printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
33736 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
33737 glib_major_version, glib_minor_version, glib_micro_version);
33738 printf ("*** was found! If glib-config was correct, then it is best\n");
33739 @@ -4361,7 +22727,7 @@
33740 printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
33741 printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
33742 printf("*** before re-running configure\n");
33743 - }
33745 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
33746 (glib_minor_version != GLIB_MINOR_VERSION) ||
33747 (glib_micro_version != GLIB_MICRO_VERSION))
33748 @@ -4399,28 +22765,40 @@
33749 return 1;
33752 -EOF
33753 -if { (eval echo configure:4404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
33754 -then
33755 +_ACEOF
33756 +rm -f conftest$ac_exeext
33757 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33758 + (eval $ac_link) 2>&5
33759 + ac_status=$?
33760 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33761 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33762 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33763 + (eval $ac_try) 2>&5
33764 + ac_status=$?
33765 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33766 + (exit $ac_status); }; }; then
33768 else
33769 - echo "configure: failed program was:" >&5
33770 - cat conftest.$ac_ext >&5
33771 - rm -fr conftest*
33772 - no_glib=yes
33773 + echo "$as_me: program exited with status $ac_status" >&5
33774 +echo "$as_me: failed program was:" >&5
33775 +sed 's/^/| /' conftest.$ac_ext >&5
33777 +( exit $ac_status )
33778 +no_glib=yes
33780 -rm -fr conftest*
33781 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33784 CFLAGS="$ac_save_CFLAGS"
33785 LIBS="$ac_save_LIBS"
33788 if test "x$no_glib" = x ; then
33789 - echo "$ac_t""yes" 1>&6
33790 - :
33791 + echo "$as_me:$LINENO: result: yes" >&5
33792 +echo "${ECHO_T}yes" >&6
33794 else
33795 - echo "$ac_t""no" 1>&6
33796 + echo "$as_me:$LINENO: result: no" >&5
33797 +echo "${ECHO_T}no" >&6
33798 if test "$GLIB_CONFIG" = "no" ; then
33799 echo "*** The glib-config script installed by GLIB could not be found"
33800 echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
33801 @@ -4433,19 +22811,45 @@
33802 echo "*** Could not run GLIB test program, checking why..."
33803 CFLAGS="$CFLAGS $GLIB_CFLAGS"
33804 LIBS="$LIBS $GLIB_LIBS"
33805 - cat > conftest.$ac_ext <<EOF
33806 -#line 4438 "configure"
33807 -#include "confdefs.h"
33808 + cat >conftest.$ac_ext <<_ACEOF
33809 +/* confdefs.h. */
33810 +_ACEOF
33811 +cat confdefs.h >>conftest.$ac_ext
33812 +cat >>conftest.$ac_ext <<_ACEOF
33813 +/* end confdefs.h. */
33815 #include <glib.h>
33816 #include <stdio.h>
33818 -int main() {
33819 - return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
33820 -; return 0; }
33821 -EOF
33822 -if { (eval echo configure:4448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
33823 - rm -rf conftest*
33824 +int
33825 +main ()
33827 + return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
33829 + return 0;
33831 +_ACEOF
33832 +rm -f conftest.$ac_objext conftest$ac_exeext
33833 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33834 + (eval $ac_link) 2>conftest.er1
33835 + ac_status=$?
33836 + grep -v '^ *+' conftest.er1 >conftest.err
33837 + rm -f conftest.er1
33838 + cat conftest.err >&5
33839 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33840 + (exit $ac_status); } &&
33841 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33842 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33843 + (eval $ac_try) 2>&5
33844 + ac_status=$?
33845 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33846 + (exit $ac_status); }; } &&
33847 + { ac_try='test -s conftest$ac_exeext'
33848 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33849 + (eval $ac_try) 2>&5
33850 + ac_status=$?
33851 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33852 + (exit $ac_status); }; }; then
33853 echo "*** The test program compiled, but did not run. This usually means"
33854 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
33855 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
33856 @@ -4459,29 +22863,34 @@
33857 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
33858 echo "*** came with the system with the command"
33859 echo "***"
33860 - echo "*** rpm --erase --nodeps gtk gtk-devel"
33861 + echo "*** rpm --erase --nodeps gtk gtk-devel"
33862 else
33863 - echo "configure: failed program was:" >&5
33864 - cat conftest.$ac_ext >&5
33865 - rm -rf conftest*
33866 - echo "*** The test program failed to compile or link. See the file config.log for the"
33867 + echo "$as_me: failed program was:" >&5
33868 +sed 's/^/| /' conftest.$ac_ext >&5
33870 + echo "*** The test program failed to compile or link. See the file config.log for the"
33871 echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
33872 echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
33873 - echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
33874 + echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
33876 -rm -f conftest*
33877 +rm -f conftest.err conftest.$ac_objext \
33878 + conftest$ac_exeext conftest.$ac_ext
33879 CFLAGS="$ac_save_CFLAGS"
33880 LIBS="$ac_save_LIBS"
33883 GLIB_CFLAGS=""
33884 GLIB_LIBS=""
33885 - { echo "configure: error:
33886 + { { echo "$as_me:$LINENO: error:
33887 +*** GLIB 1.2.8 or better is required. The latest version of GLIB
33888 +*** is always available from ftp://ftp.gtk.org/." >&5
33889 +echo "$as_me: error:
33890 *** GLIB 1.2.8 or better is required. The latest version of GLIB
33891 -*** is always available from ftp://ftp.gtk.org/." 1>&2; exit 1; }
33892 +*** is always available from ftp://ftp.gtk.org/." >&2;}
33893 + { (exit 1); exit 1; }; }
33899 rm -f conf.glibtest
33902 @@ -4496,10 +22905,12 @@
33903 # Use uninstalled glib (assume they got the version right)
33905 GLIB_CONFIG=$with_glib/glib-config
33906 - if test -x $GLIB_CONFIG ; then
33907 + if test -x $GLIB_CONFIG ; then
33909 else
33910 - { echo "configure: error: GLIB directory ($with_glib) not present or not configured" 1>&2; exit 1; }
33911 + { { echo "$as_me:$LINENO: error: GLIB directory ($with_glib) not present or not configured" >&5
33912 +echo "$as_me: error: GLIB directory ($with_glib) not present or not configured" >&2;}
33913 + { (exit 1); exit 1; }; }
33916 # For use in gtk-config
33917 @@ -4511,7 +22922,7 @@
33918 glib_release=`$GLIB_CONFIG --version | sed 's%\\.[0-9]*$%%'`
33920 # canonicalize relative paths
33921 - case $with_glib in
33922 + case $with_glib in
33924 glib_dir=$with_glib
33926 @@ -4524,8 +22935,8 @@
33927 GLIB_LIBS="$glib_dir/libglib.la $glib_dir/gmodule/libgmodule.la"
33928 GLIB_DEPLIBS=
33937 @@ -4535,19 +22946,18 @@
33940 # Find the X11 include and library directories
33941 -# If we find X, set shell vars x_includes and x_libraries to the
33942 -# paths, otherwise set no_x=yes.
33943 -# Uses ac_ vars as temps to allow command line to override cache and checks.
33944 -# --without-x overrides everything else, but does not touch the cache.
33945 -echo $ac_n "checking for X""... $ac_c" 1>&6
33946 -echo "configure:4544: checking for X" >&5
33948 +if test "x$ac_path_x_has_been_run" != xyes; then
33949 + echo "$as_me:$LINENO: checking for X" >&5
33950 +echo $ECHO_N "checking for X... $ECHO_C" >&6
33952 +ac_path_x_has_been_run=yes
33954 # Check whether --with-x or --without-x was given.
33955 if test "${with_x+set}" = set; then
33956 withval="$with_x"
33960 +fi;
33961 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
33962 if test "x$with_x" = xno; then
33963 # The user explicitly disabled X.
33964 @@ -4557,207 +22967,209 @@
33965 # Both variables are already set.
33966 have_x=yes
33967 else
33968 -if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
33969 - echo $ac_n "(cached) $ac_c" 1>&6
33970 + if test "${ac_cv_have_x+set}" = set; then
33971 + echo $ECHO_N "(cached) $ECHO_C" >&6
33972 else
33973 # One or both of the vars are not set, and there is no cached value.
33974 -ac_x_includes=NO ac_x_libraries=NO
33975 -rm -fr conftestdir
33976 -if mkdir conftestdir; then
33977 - cd conftestdir
33978 +ac_x_includes=no ac_x_libraries=no
33979 +rm -fr conftest.dir
33980 +if mkdir conftest.dir; then
33981 + cd conftest.dir
33982 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
33983 - cat > Imakefile <<'EOF'
33984 + cat >Imakefile <<'_ACEOF'
33985 acfindx:
33986 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
33987 -EOF
33988 +_ACEOF
33989 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
33990 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
33991 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
33992 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
33993 for ac_extension in a so sl; do
33994 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
33995 - test -f $ac_im_libdir/libX11.$ac_extension; then
33996 - ac_im_usrlibdir=$ac_im_libdir; break
33997 + test -f $ac_im_libdir/libX11.$ac_extension; then
33998 + ac_im_usrlibdir=$ac_im_libdir; break
34000 done
34001 # Screen out bogus values from the imake configuration. They are
34002 # bogus both because they are the default anyway, and because
34003 # using them would break gcc on systems where it needs fixed includes.
34004 - case "$ac_im_incroot" in
34005 + case $ac_im_incroot in
34006 /usr/include) ;;
34007 - *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
34008 + *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
34009 esac
34010 - case "$ac_im_usrlibdir" in
34011 + case $ac_im_usrlibdir in
34012 /usr/lib | /lib) ;;
34013 - *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
34014 + *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
34015 esac
34017 cd ..
34018 - rm -fr conftestdir
34019 + rm -fr conftest.dir
34022 -if test "$ac_x_includes" = NO; then
34023 - # Guess where to find include files, by looking for this one X11 .h file.
34024 - test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
34025 +# Standard set of common directories for X headers.
34026 +# Check X11 before X11Rn because it is often a symlink to the current release.
34027 +ac_x_header_dirs='
34028 +/usr/X11/include
34029 +/usr/X11R6/include
34030 +/usr/X11R5/include
34031 +/usr/X11R4/include
34033 +/usr/include/X11
34034 +/usr/include/X11R6
34035 +/usr/include/X11R5
34036 +/usr/include/X11R4
34038 +/usr/local/X11/include
34039 +/usr/local/X11R6/include
34040 +/usr/local/X11R5/include
34041 +/usr/local/X11R4/include
34043 +/usr/local/include/X11
34044 +/usr/local/include/X11R6
34045 +/usr/local/include/X11R5
34046 +/usr/local/include/X11R4
34048 +/usr/X386/include
34049 +/usr/x386/include
34050 +/usr/XFree86/include/X11
34052 +/usr/include
34053 +/usr/local/include
34054 +/usr/unsupported/include
34055 +/usr/athena/include
34056 +/usr/local/x11r5/include
34057 +/usr/lpp/Xamples/include
34059 +/usr/openwin/include
34060 +/usr/openwin/share/include'
34062 +if test "$ac_x_includes" = no; then
34063 + # Guess where to find include files, by looking for a specified header file.
34064 # First, try using that file with no special directory specified.
34065 -cat > conftest.$ac_ext <<EOF
34066 -#line 4606 "configure"
34067 -#include "confdefs.h"
34068 -#include <$x_direct_test_include>
34069 -EOF
34070 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
34071 -{ (eval echo configure:4611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
34072 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
34073 -if test -z "$ac_err"; then
34074 - rm -rf conftest*
34075 + cat >conftest.$ac_ext <<_ACEOF
34076 +/* confdefs.h. */
34077 +_ACEOF
34078 +cat confdefs.h >>conftest.$ac_ext
34079 +cat >>conftest.$ac_ext <<_ACEOF
34080 +/* end confdefs.h. */
34081 +#include <X11/Xlib.h>
34082 +_ACEOF
34083 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34084 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34085 + ac_status=$?
34086 + grep -v '^ *+' conftest.er1 >conftest.err
34087 + rm -f conftest.er1
34088 + cat conftest.err >&5
34089 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34090 + (exit $ac_status); } >/dev/null; then
34091 + if test -s conftest.err; then
34092 + ac_cpp_err=$ac_c_preproc_warn_flag
34093 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34094 + else
34095 + ac_cpp_err=
34096 + fi
34097 +else
34098 + ac_cpp_err=yes
34100 +if test -z "$ac_cpp_err"; then
34101 # We can compile using X headers with no special include directory.
34102 ac_x_includes=
34103 else
34104 - echo "$ac_err" >&5
34105 - echo "configure: failed program was:" >&5
34106 - cat conftest.$ac_ext >&5
34107 - rm -rf conftest*
34108 - # Look for the header file in a standard set of common directories.
34109 -# Check X11 before X11Rn because it is often a symlink to the current release.
34110 - for ac_dir in \
34111 - /usr/X11/include \
34112 - /usr/X11R6/include \
34113 - /usr/X11R5/include \
34114 - /usr/X11R4/include \
34116 - /usr/include/X11 \
34117 - /usr/include/X11R6 \
34118 - /usr/include/X11R5 \
34119 - /usr/include/X11R4 \
34121 - /usr/local/X11/include \
34122 - /usr/local/X11R6/include \
34123 - /usr/local/X11R5/include \
34124 - /usr/local/X11R4/include \
34126 - /usr/local/include/X11 \
34127 - /usr/local/include/X11R6 \
34128 - /usr/local/include/X11R5 \
34129 - /usr/local/include/X11R4 \
34131 - /usr/X386/include \
34132 - /usr/x386/include \
34133 - /usr/XFree86/include/X11 \
34135 - /usr/include \
34136 - /usr/local/include \
34137 - /usr/unsupported/include \
34138 - /usr/athena/include \
34139 - /usr/local/x11r5/include \
34140 - /usr/lpp/Xamples/include \
34142 - /usr/openwin/include \
34143 - /usr/openwin/share/include \
34144 - ; \
34145 - do
34146 - if test -r "$ac_dir/$x_direct_test_include"; then
34147 - ac_x_includes=$ac_dir
34148 - break
34149 - fi
34150 - done
34151 + echo "$as_me: failed program was:" >&5
34152 +sed 's/^/| /' conftest.$ac_ext >&5
34154 + for ac_dir in $ac_x_header_dirs; do
34155 + if test -r "$ac_dir/X11/Xlib.h"; then
34156 + ac_x_includes=$ac_dir
34157 + break
34158 + fi
34159 +done
34161 -rm -f conftest*
34162 -fi # $ac_x_includes = NO
34163 +rm -f conftest.err conftest.$ac_ext
34164 +fi # $ac_x_includes = no
34166 -if test "$ac_x_libraries" = NO; then
34167 +if test "$ac_x_libraries" = no; then
34168 # Check for the libraries.
34170 - test -z "$x_direct_test_library" && x_direct_test_library=Xt
34171 - test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
34173 # See if we find them without any special options.
34174 # Don't add to $LIBS permanently.
34175 - ac_save_LIBS="$LIBS"
34176 - LIBS="-l$x_direct_test_library $LIBS"
34177 -cat > conftest.$ac_ext <<EOF
34178 -#line 4680 "configure"
34179 -#include "confdefs.h"
34181 -int main() {
34182 -${x_direct_test_function}()
34183 -; return 0; }
34184 -EOF
34185 -if { (eval echo configure:4687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
34186 - rm -rf conftest*
34187 - LIBS="$ac_save_LIBS"
34188 + ac_save_LIBS=$LIBS
34189 + LIBS="-lX11 $LIBS"
34190 + cat >conftest.$ac_ext <<_ACEOF
34191 +/* confdefs.h. */
34192 +_ACEOF
34193 +cat confdefs.h >>conftest.$ac_ext
34194 +cat >>conftest.$ac_ext <<_ACEOF
34195 +/* end confdefs.h. */
34196 +#include <X11/Xlib.h>
34197 +int
34198 +main ()
34200 +XrmInitialize ()
34202 + return 0;
34204 +_ACEOF
34205 +rm -f conftest.$ac_objext conftest$ac_exeext
34206 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34207 + (eval $ac_link) 2>conftest.er1
34208 + ac_status=$?
34209 + grep -v '^ *+' conftest.er1 >conftest.err
34210 + rm -f conftest.er1
34211 + cat conftest.err >&5
34212 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34213 + (exit $ac_status); } &&
34214 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34215 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34216 + (eval $ac_try) 2>&5
34217 + ac_status=$?
34218 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34219 + (exit $ac_status); }; } &&
34220 + { ac_try='test -s conftest$ac_exeext'
34221 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34222 + (eval $ac_try) 2>&5
34223 + ac_status=$?
34224 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34225 + (exit $ac_status); }; }; then
34226 + LIBS=$ac_save_LIBS
34227 # We can link X programs with no special library path.
34228 ac_x_libraries=
34229 else
34230 - echo "configure: failed program was:" >&5
34231 - cat conftest.$ac_ext >&5
34232 - rm -rf conftest*
34233 - LIBS="$ac_save_LIBS"
34234 -# First see if replacing the include by lib works.
34235 -# Check X11 before X11Rn because it is often a symlink to the current release.
34236 -for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
34237 - /usr/X11/lib \
34238 - /usr/X11R6/lib \
34239 - /usr/X11R5/lib \
34240 - /usr/X11R4/lib \
34242 - /usr/lib/X11 \
34243 - /usr/lib/X11R6 \
34244 - /usr/lib/X11R5 \
34245 - /usr/lib/X11R4 \
34247 - /usr/local/X11/lib \
34248 - /usr/local/X11R6/lib \
34249 - /usr/local/X11R5/lib \
34250 - /usr/local/X11R4/lib \
34252 - /usr/local/lib/X11 \
34253 - /usr/local/lib/X11R6 \
34254 - /usr/local/lib/X11R5 \
34255 - /usr/local/lib/X11R4 \
34257 - /usr/X386/lib \
34258 - /usr/x386/lib \
34259 - /usr/XFree86/lib/X11 \
34261 - /usr/lib \
34262 - /usr/local/lib \
34263 - /usr/unsupported/lib \
34264 - /usr/athena/lib \
34265 - /usr/local/x11r5/lib \
34266 - /usr/lpp/Xamples/lib \
34267 - /lib/usr/lib/X11 \
34269 - /usr/openwin/lib \
34270 - /usr/openwin/share/lib \
34271 - ; \
34272 + echo "$as_me: failed program was:" >&5
34273 +sed 's/^/| /' conftest.$ac_ext >&5
34275 +LIBS=$ac_save_LIBS
34276 +for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
34278 + # Don't even attempt the hair of trying to link an X program!
34279 for ac_extension in a so sl; do
34280 - if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
34281 + if test -r $ac_dir/libX11.$ac_extension; then
34282 ac_x_libraries=$ac_dir
34283 break 2
34285 done
34286 done
34288 -rm -f conftest*
34289 -fi # $ac_x_libraries = NO
34290 +rm -f conftest.err conftest.$ac_objext \
34291 + conftest$ac_exeext conftest.$ac_ext
34292 +fi # $ac_x_libraries = no
34294 -if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
34295 +if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
34296 # Didn't find X anywhere. Cache the known absence of X.
34297 ac_cv_have_x="have_x=no"
34298 else
34299 # Record where we found X for the cache.
34300 ac_cv_have_x="have_x=yes \
34301 - ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
34302 + ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
34307 eval "$ac_cv_have_x"
34308 fi # $with_x != no
34310 if test "$have_x" != yes; then
34311 - echo "$ac_t""$have_x" 1>&6
34312 + echo "$as_me:$LINENO: result: $have_x" >&5
34313 +echo "${ECHO_T}$have_x" >&6
34314 no_x=yes
34315 else
34316 # If each of the values was on the command line, it overrides each guess.
34317 @@ -4766,14 +23178,21 @@
34318 # Update the cache value to reflect the command line values.
34319 ac_cv_have_x="have_x=yes \
34320 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
34321 - echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
34322 + # It might be that x_includes is empty (headers are found in the
34323 + # standard search path. Then output the corresponding message
34324 + ac_out_x_includes=$x_includes
34325 + test "x$x_includes" = x && ac_out_x_includes="in standard search path"
34326 + echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
34327 +echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
34331 if test "$no_x" = yes; then
34332 # Not all programs may use this symbol, but it does not hurt to define it.
34333 - cat >> confdefs.h <<\EOF
34335 +cat >>confdefs.h <<\_ACEOF
34336 #define X_DISPLAY_MISSING 1
34337 -EOF
34338 +_ACEOF
34340 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
34341 else
34342 @@ -4786,60 +23205,117 @@
34343 X_LIBS="$X_LIBS -L$x_libraries"
34344 # For Solaris; some versions of Sun CC require a space after -R and
34345 # others require no space. Words are not sufficient . . . .
34346 - case "`(uname -sr) 2>/dev/null`" in
34347 + case `(uname -sr) 2>/dev/null` in
34348 "SunOS 5"*)
34349 - echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
34350 -echo "configure:4793: checking whether -R must be followed by a space" >&5
34351 - ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
34352 - cat > conftest.$ac_ext <<EOF
34353 -#line 4796 "configure"
34354 -#include "confdefs.h"
34355 + echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
34356 +echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
34357 + ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
34358 + cat >conftest.$ac_ext <<_ACEOF
34359 +/* confdefs.h. */
34360 +_ACEOF
34361 +cat confdefs.h >>conftest.$ac_ext
34362 +cat >>conftest.$ac_ext <<_ACEOF
34363 +/* end confdefs.h. */
34365 -int main() {
34366 +int
34367 +main ()
34370 -; return 0; }
34371 -EOF
34372 -if { (eval echo configure:4803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
34373 - rm -rf conftest*
34375 + return 0;
34377 +_ACEOF
34378 +rm -f conftest.$ac_objext conftest$ac_exeext
34379 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34380 + (eval $ac_link) 2>conftest.er1
34381 + ac_status=$?
34382 + grep -v '^ *+' conftest.er1 >conftest.err
34383 + rm -f conftest.er1
34384 + cat conftest.err >&5
34385 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34386 + (exit $ac_status); } &&
34387 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34388 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34389 + (eval $ac_try) 2>&5
34390 + ac_status=$?
34391 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34392 + (exit $ac_status); }; } &&
34393 + { ac_try='test -s conftest$ac_exeext'
34394 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34395 + (eval $ac_try) 2>&5
34396 + ac_status=$?
34397 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34398 + (exit $ac_status); }; }; then
34399 ac_R_nospace=yes
34400 else
34401 - echo "configure: failed program was:" >&5
34402 - cat conftest.$ac_ext >&5
34403 - rm -rf conftest*
34404 - ac_R_nospace=no
34405 + echo "$as_me: failed program was:" >&5
34406 +sed 's/^/| /' conftest.$ac_ext >&5
34408 +ac_R_nospace=no
34410 -rm -f conftest*
34411 +rm -f conftest.err conftest.$ac_objext \
34412 + conftest$ac_exeext conftest.$ac_ext
34413 if test $ac_R_nospace = yes; then
34414 - echo "$ac_t""no" 1>&6
34415 + echo "$as_me:$LINENO: result: no" >&5
34416 +echo "${ECHO_T}no" >&6
34417 X_LIBS="$X_LIBS -R$x_libraries"
34418 else
34419 LIBS="$ac_xsave_LIBS -R $x_libraries"
34420 - cat > conftest.$ac_ext <<EOF
34421 -#line 4819 "configure"
34422 -#include "confdefs.h"
34423 + cat >conftest.$ac_ext <<_ACEOF
34424 +/* confdefs.h. */
34425 +_ACEOF
34426 +cat confdefs.h >>conftest.$ac_ext
34427 +cat >>conftest.$ac_ext <<_ACEOF
34428 +/* end confdefs.h. */
34430 -int main() {
34431 +int
34432 +main ()
34435 -; return 0; }
34436 -EOF
34437 -if { (eval echo configure:4826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
34438 - rm -rf conftest*
34440 + return 0;
34442 +_ACEOF
34443 +rm -f conftest.$ac_objext conftest$ac_exeext
34444 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34445 + (eval $ac_link) 2>conftest.er1
34446 + ac_status=$?
34447 + grep -v '^ *+' conftest.er1 >conftest.err
34448 + rm -f conftest.er1
34449 + cat conftest.err >&5
34450 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34451 + (exit $ac_status); } &&
34452 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34453 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34454 + (eval $ac_try) 2>&5
34455 + ac_status=$?
34456 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34457 + (exit $ac_status); }; } &&
34458 + { ac_try='test -s conftest$ac_exeext'
34459 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34460 + (eval $ac_try) 2>&5
34461 + ac_status=$?
34462 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34463 + (exit $ac_status); }; }; then
34464 ac_R_space=yes
34465 else
34466 - echo "configure: failed program was:" >&5
34467 - cat conftest.$ac_ext >&5
34468 - rm -rf conftest*
34469 - ac_R_space=no
34470 + echo "$as_me: failed program was:" >&5
34471 +sed 's/^/| /' conftest.$ac_ext >&5
34473 +ac_R_space=no
34475 -rm -f conftest*
34476 +rm -f conftest.err conftest.$ac_objext \
34477 + conftest$ac_exeext conftest.$ac_ext
34478 if test $ac_R_space = yes; then
34479 - echo "$ac_t""yes" 1>&6
34480 + echo "$as_me:$LINENO: result: yes" >&5
34481 +echo "${ECHO_T}yes" >&6
34482 X_LIBS="$X_LIBS -R $x_libraries"
34483 else
34484 - echo "$ac_t""neither works" 1>&6
34485 + echo "$as_me:$LINENO: result: neither works" >&5
34486 +echo "${ECHO_T}neither works" >&6
34489 - LIBS="$ac_xsave_LIBS"
34490 + LIBS=$ac_xsave_LIBS
34491 esac
34494 @@ -4850,528 +23326,1222 @@
34495 if test "$ISC" = yes; then
34496 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
34497 else
34498 - # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
34499 - # libraries were built with DECnet support. And karl@cs.umb.edu says
34500 + # Martyn Johnson says this is needed for Ultrix, if the X
34501 + # libraries were built with DECnet support. And Karl Berry says
34502 # the Alpha needs dnet_stub (dnet does not exist).
34503 - echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
34504 -echo "configure:4858: checking for dnet_ntoa in -ldnet" >&5
34505 -ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
34506 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
34507 - echo $ac_n "(cached) $ac_c" 1>&6
34508 -else
34509 - ac_save_LIBS="$LIBS"
34510 -LIBS="-ldnet $LIBS"
34511 -cat > conftest.$ac_ext <<EOF
34512 -#line 4866 "configure"
34513 -#include "confdefs.h"
34514 + ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
34515 + cat >conftest.$ac_ext <<_ACEOF
34516 +/* confdefs.h. */
34517 +_ACEOF
34518 +cat confdefs.h >>conftest.$ac_ext
34519 +cat >>conftest.$ac_ext <<_ACEOF
34520 +/* end confdefs.h. */
34522 /* Override any gcc2 internal prototype to avoid an error. */
34523 +#ifdef __cplusplus
34524 +extern "C"
34525 +#endif
34526 /* We use char because int might match the return type of a gcc2
34527 - builtin and then its argument prototype would still apply. */
34528 -char dnet_ntoa();
34529 + builtin and then its argument prototype would still apply. */
34530 +char XOpenDisplay ();
34531 +int
34532 +main ()
34534 +XOpenDisplay ();
34536 + return 0;
34538 +_ACEOF
34539 +rm -f conftest.$ac_objext conftest$ac_exeext
34540 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34541 + (eval $ac_link) 2>conftest.er1
34542 + ac_status=$?
34543 + grep -v '^ *+' conftest.er1 >conftest.err
34544 + rm -f conftest.er1
34545 + cat conftest.err >&5
34546 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34547 + (exit $ac_status); } &&
34548 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34549 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34550 + (eval $ac_try) 2>&5
34551 + ac_status=$?
34552 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34553 + (exit $ac_status); }; } &&
34554 + { ac_try='test -s conftest$ac_exeext'
34555 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34556 + (eval $ac_try) 2>&5
34557 + ac_status=$?
34558 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34559 + (exit $ac_status); }; }; then
34561 +else
34562 + echo "$as_me: failed program was:" >&5
34563 +sed 's/^/| /' conftest.$ac_ext >&5
34565 -int main() {
34566 -dnet_ntoa()
34567 -; return 0; }
34568 -EOF
34569 -if { (eval echo configure:4877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
34570 - rm -rf conftest*
34571 - eval "ac_cv_lib_$ac_lib_var=yes"
34572 +echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
34573 +echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
34574 +if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
34575 + echo $ECHO_N "(cached) $ECHO_C" >&6
34576 else
34577 - echo "configure: failed program was:" >&5
34578 - cat conftest.$ac_ext >&5
34579 - rm -rf conftest*
34580 - eval "ac_cv_lib_$ac_lib_var=no"
34582 -rm -f conftest*
34583 -LIBS="$ac_save_LIBS"
34584 + ac_check_lib_save_LIBS=$LIBS
34585 +LIBS="-ldnet $LIBS"
34586 +cat >conftest.$ac_ext <<_ACEOF
34587 +/* confdefs.h. */
34588 +_ACEOF
34589 +cat confdefs.h >>conftest.$ac_ext
34590 +cat >>conftest.$ac_ext <<_ACEOF
34591 +/* end confdefs.h. */
34594 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
34595 - echo "$ac_t""yes" 1>&6
34596 +/* Override any gcc2 internal prototype to avoid an error. */
34597 +#ifdef __cplusplus
34598 +extern "C"
34599 +#endif
34600 +/* We use char because int might match the return type of a gcc2
34601 + builtin and then its argument prototype would still apply. */
34602 +char dnet_ntoa ();
34603 +int
34604 +main ()
34606 +dnet_ntoa ();
34608 + return 0;
34610 +_ACEOF
34611 +rm -f conftest.$ac_objext conftest$ac_exeext
34612 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34613 + (eval $ac_link) 2>conftest.er1
34614 + ac_status=$?
34615 + grep -v '^ *+' conftest.er1 >conftest.err
34616 + rm -f conftest.er1
34617 + cat conftest.err >&5
34618 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34619 + (exit $ac_status); } &&
34620 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34621 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34622 + (eval $ac_try) 2>&5
34623 + ac_status=$?
34624 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34625 + (exit $ac_status); }; } &&
34626 + { ac_try='test -s conftest$ac_exeext'
34627 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34628 + (eval $ac_try) 2>&5
34629 + ac_status=$?
34630 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34631 + (exit $ac_status); }; }; then
34632 + ac_cv_lib_dnet_dnet_ntoa=yes
34633 +else
34634 + echo "$as_me: failed program was:" >&5
34635 +sed 's/^/| /' conftest.$ac_ext >&5
34637 +ac_cv_lib_dnet_dnet_ntoa=no
34639 +rm -f conftest.err conftest.$ac_objext \
34640 + conftest$ac_exeext conftest.$ac_ext
34641 +LIBS=$ac_check_lib_save_LIBS
34643 +echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
34644 +echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
34645 +if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
34646 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
34647 -else
34648 - echo "$ac_t""no" 1>&6
34651 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
34652 - echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
34653 -echo "configure:4899: checking for dnet_ntoa in -ldnet_stub" >&5
34654 -ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
34655 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
34656 - echo $ac_n "(cached) $ac_c" 1>&6
34657 + echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
34658 +echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
34659 +if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
34660 + echo $ECHO_N "(cached) $ECHO_C" >&6
34661 else
34662 - ac_save_LIBS="$LIBS"
34663 + ac_check_lib_save_LIBS=$LIBS
34664 LIBS="-ldnet_stub $LIBS"
34665 -cat > conftest.$ac_ext <<EOF
34666 -#line 4907 "configure"
34667 -#include "confdefs.h"
34668 +cat >conftest.$ac_ext <<_ACEOF
34669 +/* confdefs.h. */
34670 +_ACEOF
34671 +cat confdefs.h >>conftest.$ac_ext
34672 +cat >>conftest.$ac_ext <<_ACEOF
34673 +/* end confdefs.h. */
34675 /* Override any gcc2 internal prototype to avoid an error. */
34676 +#ifdef __cplusplus
34677 +extern "C"
34678 +#endif
34679 /* We use char because int might match the return type of a gcc2
34680 - builtin and then its argument prototype would still apply. */
34681 -char dnet_ntoa();
34683 -int main() {
34684 -dnet_ntoa()
34685 -; return 0; }
34686 -EOF
34687 -if { (eval echo configure:4918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
34688 - rm -rf conftest*
34689 - eval "ac_cv_lib_$ac_lib_var=yes"
34690 -else
34691 - echo "configure: failed program was:" >&5
34692 - cat conftest.$ac_ext >&5
34693 - rm -rf conftest*
34694 - eval "ac_cv_lib_$ac_lib_var=no"
34696 -rm -f conftest*
34697 -LIBS="$ac_save_LIBS"
34700 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
34701 - echo "$ac_t""yes" 1>&6
34702 + builtin and then its argument prototype would still apply. */
34703 +char dnet_ntoa ();
34704 +int
34705 +main ()
34707 +dnet_ntoa ();
34709 + return 0;
34711 +_ACEOF
34712 +rm -f conftest.$ac_objext conftest$ac_exeext
34713 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34714 + (eval $ac_link) 2>conftest.er1
34715 + ac_status=$?
34716 + grep -v '^ *+' conftest.er1 >conftest.err
34717 + rm -f conftest.er1
34718 + cat conftest.err >&5
34719 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34720 + (exit $ac_status); } &&
34721 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34722 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34723 + (eval $ac_try) 2>&5
34724 + ac_status=$?
34725 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34726 + (exit $ac_status); }; } &&
34727 + { ac_try='test -s conftest$ac_exeext'
34728 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34729 + (eval $ac_try) 2>&5
34730 + ac_status=$?
34731 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34732 + (exit $ac_status); }; }; then
34733 + ac_cv_lib_dnet_stub_dnet_ntoa=yes
34734 +else
34735 + echo "$as_me: failed program was:" >&5
34736 +sed 's/^/| /' conftest.$ac_ext >&5
34738 +ac_cv_lib_dnet_stub_dnet_ntoa=no
34740 +rm -f conftest.err conftest.$ac_objext \
34741 + conftest$ac_exeext conftest.$ac_ext
34742 +LIBS=$ac_check_lib_save_LIBS
34744 +echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
34745 +echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
34746 +if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
34747 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
34748 -else
34749 - echo "$ac_t""no" 1>&6
34754 +rm -f conftest.err conftest.$ac_objext \
34755 + conftest$ac_exeext conftest.$ac_ext
34756 + LIBS="$ac_xsave_LIBS"
34758 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
34759 # to get the SysV transport functions.
34760 - # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
34761 + # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
34762 # needs -lnsl.
34763 # The nsl library prevents programs from opening the X display
34764 - # on Irix 5.2, according to dickey@clark.net.
34765 - echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
34766 -echo "configure:4947: checking for gethostbyname" >&5
34767 -if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
34768 - echo $ac_n "(cached) $ac_c" 1>&6
34769 -else
34770 - cat > conftest.$ac_ext <<EOF
34771 -#line 4952 "configure"
34772 -#include "confdefs.h"
34773 + # on Irix 5.2, according to T.E. Dickey.
34774 + # The functions gethostbyname, getservbyname, and inet_addr are
34775 + # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
34776 + echo "$as_me:$LINENO: checking for gethostbyname" >&5
34777 +echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
34778 +if test "${ac_cv_func_gethostbyname+set}" = set; then
34779 + echo $ECHO_N "(cached) $ECHO_C" >&6
34780 +else
34781 + cat >conftest.$ac_ext <<_ACEOF
34782 +/* confdefs.h. */
34783 +_ACEOF
34784 +cat confdefs.h >>conftest.$ac_ext
34785 +cat >>conftest.$ac_ext <<_ACEOF
34786 +/* end confdefs.h. */
34787 +/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
34788 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
34789 +#define gethostbyname innocuous_gethostbyname
34791 /* System header to define __stub macros and hopefully few prototypes,
34792 - which can conflict with char gethostbyname(); below. */
34793 -#include <assert.h>
34794 -/* Override any gcc2 internal prototype to avoid an error. */
34795 -/* We use char because int might match the return type of a gcc2
34796 - builtin and then its argument prototype would still apply. */
34797 -char gethostbyname();
34798 + which can conflict with char gethostbyname (); below.
34799 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34800 + <limits.h> exists even on freestanding compilers. */
34802 -int main() {
34803 +#ifdef __STDC__
34804 +# include <limits.h>
34805 +#else
34806 +# include <assert.h>
34807 +#endif
34809 +#undef gethostbyname
34811 +/* Override any gcc2 internal prototype to avoid an error. */
34812 +#ifdef __cplusplus
34813 +extern "C"
34815 +#endif
34816 +/* We use char because int might match the return type of a gcc2
34817 + builtin and then its argument prototype would still apply. */
34818 +char gethostbyname ();
34819 /* The GNU C library defines this for functions which it implements
34820 to always fail with ENOSYS. Some functions are actually named
34821 something starting with __ and the normal name is an alias. */
34822 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
34823 choke me
34824 #else
34825 -gethostbyname();
34826 +char (*f) () = gethostbyname;
34827 +#endif
34828 +#ifdef __cplusplus
34830 #endif
34832 -; return 0; }
34833 -EOF
34834 -if { (eval echo configure:4975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
34835 - rm -rf conftest*
34836 - eval "ac_cv_func_gethostbyname=yes"
34837 -else
34838 - echo "configure: failed program was:" >&5
34839 - cat conftest.$ac_ext >&5
34840 - rm -rf conftest*
34841 - eval "ac_cv_func_gethostbyname=no"
34843 -rm -f conftest*
34845 +int
34846 +main ()
34848 +return f != gethostbyname;
34850 + return 0;
34852 +_ACEOF
34853 +rm -f conftest.$ac_objext conftest$ac_exeext
34854 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34855 + (eval $ac_link) 2>conftest.er1
34856 + ac_status=$?
34857 + grep -v '^ *+' conftest.er1 >conftest.err
34858 + rm -f conftest.er1
34859 + cat conftest.err >&5
34860 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34861 + (exit $ac_status); } &&
34862 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34863 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34864 + (eval $ac_try) 2>&5
34865 + ac_status=$?
34866 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34867 + (exit $ac_status); }; } &&
34868 + { ac_try='test -s conftest$ac_exeext'
34869 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34870 + (eval $ac_try) 2>&5
34871 + ac_status=$?
34872 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34873 + (exit $ac_status); }; }; then
34874 + ac_cv_func_gethostbyname=yes
34875 +else
34876 + echo "$as_me: failed program was:" >&5
34877 +sed 's/^/| /' conftest.$ac_ext >&5
34879 -if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
34880 - echo "$ac_t""yes" 1>&6
34882 -else
34883 - echo "$ac_t""no" 1>&6
34884 +ac_cv_func_gethostbyname=no
34886 +rm -f conftest.err conftest.$ac_objext \
34887 + conftest$ac_exeext conftest.$ac_ext
34889 +echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
34890 +echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
34892 if test $ac_cv_func_gethostbyname = no; then
34893 - echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
34894 -echo "configure:4996: checking for gethostbyname in -lnsl" >&5
34895 -ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
34896 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
34897 - echo $ac_n "(cached) $ac_c" 1>&6
34898 + echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
34899 +echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
34900 +if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
34901 + echo $ECHO_N "(cached) $ECHO_C" >&6
34902 else
34903 - ac_save_LIBS="$LIBS"
34904 + ac_check_lib_save_LIBS=$LIBS
34905 LIBS="-lnsl $LIBS"
34906 -cat > conftest.$ac_ext <<EOF
34907 -#line 5004 "configure"
34908 -#include "confdefs.h"
34909 +cat >conftest.$ac_ext <<_ACEOF
34910 +/* confdefs.h. */
34911 +_ACEOF
34912 +cat confdefs.h >>conftest.$ac_ext
34913 +cat >>conftest.$ac_ext <<_ACEOF
34914 +/* end confdefs.h. */
34916 /* Override any gcc2 internal prototype to avoid an error. */
34917 +#ifdef __cplusplus
34918 +extern "C"
34919 +#endif
34920 /* We use char because int might match the return type of a gcc2
34921 - builtin and then its argument prototype would still apply. */
34922 -char gethostbyname();
34924 -int main() {
34925 -gethostbyname()
34926 -; return 0; }
34927 -EOF
34928 -if { (eval echo configure:5015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
34929 - rm -rf conftest*
34930 - eval "ac_cv_lib_$ac_lib_var=yes"
34931 -else
34932 - echo "configure: failed program was:" >&5
34933 - cat conftest.$ac_ext >&5
34934 - rm -rf conftest*
34935 - eval "ac_cv_lib_$ac_lib_var=no"
34936 + builtin and then its argument prototype would still apply. */
34937 +char gethostbyname ();
34938 +int
34939 +main ()
34941 +gethostbyname ();
34943 + return 0;
34945 +_ACEOF
34946 +rm -f conftest.$ac_objext conftest$ac_exeext
34947 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34948 + (eval $ac_link) 2>conftest.er1
34949 + ac_status=$?
34950 + grep -v '^ *+' conftest.er1 >conftest.err
34951 + rm -f conftest.er1
34952 + cat conftest.err >&5
34953 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34954 + (exit $ac_status); } &&
34955 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34956 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34957 + (eval $ac_try) 2>&5
34958 + ac_status=$?
34959 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34960 + (exit $ac_status); }; } &&
34961 + { ac_try='test -s conftest$ac_exeext'
34962 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34963 + (eval $ac_try) 2>&5
34964 + ac_status=$?
34965 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34966 + (exit $ac_status); }; }; then
34967 + ac_cv_lib_nsl_gethostbyname=yes
34968 +else
34969 + echo "$as_me: failed program was:" >&5
34970 +sed 's/^/| /' conftest.$ac_ext >&5
34972 +ac_cv_lib_nsl_gethostbyname=no
34974 +rm -f conftest.err conftest.$ac_objext \
34975 + conftest$ac_exeext conftest.$ac_ext
34976 +LIBS=$ac_check_lib_save_LIBS
34978 +echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
34979 +echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
34980 +if test $ac_cv_lib_nsl_gethostbyname = yes; then
34981 + X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
34983 -rm -f conftest*
34984 -LIBS="$ac_save_LIBS"
34987 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
34988 - echo "$ac_t""yes" 1>&6
34989 - X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
34990 -else
34991 - echo "$ac_t""no" 1>&6
34992 + if test $ac_cv_lib_nsl_gethostbyname = no; then
34993 + echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
34994 +echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
34995 +if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
34996 + echo $ECHO_N "(cached) $ECHO_C" >&6
34997 +else
34998 + ac_check_lib_save_LIBS=$LIBS
34999 +LIBS="-lbsd $LIBS"
35000 +cat >conftest.$ac_ext <<_ACEOF
35001 +/* confdefs.h. */
35002 +_ACEOF
35003 +cat confdefs.h >>conftest.$ac_ext
35004 +cat >>conftest.$ac_ext <<_ACEOF
35005 +/* end confdefs.h. */
35007 +/* Override any gcc2 internal prototype to avoid an error. */
35008 +#ifdef __cplusplus
35009 +extern "C"
35010 +#endif
35011 +/* We use char because int might match the return type of a gcc2
35012 + builtin and then its argument prototype would still apply. */
35013 +char gethostbyname ();
35014 +int
35015 +main ()
35017 +gethostbyname ();
35019 + return 0;
35021 +_ACEOF
35022 +rm -f conftest.$ac_objext conftest$ac_exeext
35023 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35024 + (eval $ac_link) 2>conftest.er1
35025 + ac_status=$?
35026 + grep -v '^ *+' conftest.er1 >conftest.err
35027 + rm -f conftest.er1
35028 + cat conftest.err >&5
35029 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35030 + (exit $ac_status); } &&
35031 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35032 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35033 + (eval $ac_try) 2>&5
35034 + ac_status=$?
35035 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35036 + (exit $ac_status); }; } &&
35037 + { ac_try='test -s conftest$ac_exeext'
35038 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35039 + (eval $ac_try) 2>&5
35040 + ac_status=$?
35041 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35042 + (exit $ac_status); }; }; then
35043 + ac_cv_lib_bsd_gethostbyname=yes
35044 +else
35045 + echo "$as_me: failed program was:" >&5
35046 +sed 's/^/| /' conftest.$ac_ext >&5
35048 +ac_cv_lib_bsd_gethostbyname=no
35050 +rm -f conftest.err conftest.$ac_objext \
35051 + conftest$ac_exeext conftest.$ac_ext
35052 +LIBS=$ac_check_lib_save_LIBS
35054 +echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
35055 +echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
35056 +if test $ac_cv_lib_bsd_gethostbyname = yes; then
35057 + X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
35060 + fi
35063 # lieder@skyler.mavd.honeywell.com says without -lsocket,
35064 # socket/setsockopt and other routines are undefined under SCO ODT
35065 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
35066 - # on later versions), says simon@lia.di.epfl.ch: it contains
35067 - # gethostby* variants that don't use the nameserver (or something).
35068 - # -lsocket must be given before -lnsl if both are needed.
35069 - # We assume that if connect needs -lnsl, so does gethostbyname.
35070 - echo $ac_n "checking for connect""... $ac_c" 1>&6
35071 -echo "configure:5045: checking for connect" >&5
35072 -if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
35073 - echo $ac_n "(cached) $ac_c" 1>&6
35074 -else
35075 - cat > conftest.$ac_ext <<EOF
35076 -#line 5050 "configure"
35077 -#include "confdefs.h"
35078 + # on later versions), says Simon Leinen: it contains gethostby*
35079 + # variants that don't use the name server (or something). -lsocket
35080 + # must be given before -lnsl if both are needed. We assume that
35081 + # if connect needs -lnsl, so does gethostbyname.
35082 + echo "$as_me:$LINENO: checking for connect" >&5
35083 +echo $ECHO_N "checking for connect... $ECHO_C" >&6
35084 +if test "${ac_cv_func_connect+set}" = set; then
35085 + echo $ECHO_N "(cached) $ECHO_C" >&6
35086 +else
35087 + cat >conftest.$ac_ext <<_ACEOF
35088 +/* confdefs.h. */
35089 +_ACEOF
35090 +cat confdefs.h >>conftest.$ac_ext
35091 +cat >>conftest.$ac_ext <<_ACEOF
35092 +/* end confdefs.h. */
35093 +/* Define connect to an innocuous variant, in case <limits.h> declares connect.
35094 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
35095 +#define connect innocuous_connect
35097 /* System header to define __stub macros and hopefully few prototypes,
35098 - which can conflict with char connect(); below. */
35099 -#include <assert.h>
35100 -/* Override any gcc2 internal prototype to avoid an error. */
35101 -/* We use char because int might match the return type of a gcc2
35102 - builtin and then its argument prototype would still apply. */
35103 -char connect();
35104 + which can conflict with char connect (); below.
35105 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35106 + <limits.h> exists even on freestanding compilers. */
35108 -int main() {
35109 +#ifdef __STDC__
35110 +# include <limits.h>
35111 +#else
35112 +# include <assert.h>
35113 +#endif
35115 +#undef connect
35117 +/* Override any gcc2 internal prototype to avoid an error. */
35118 +#ifdef __cplusplus
35119 +extern "C"
35121 +#endif
35122 +/* We use char because int might match the return type of a gcc2
35123 + builtin and then its argument prototype would still apply. */
35124 +char connect ();
35125 /* The GNU C library defines this for functions which it implements
35126 to always fail with ENOSYS. Some functions are actually named
35127 something starting with __ and the normal name is an alias. */
35128 #if defined (__stub_connect) || defined (__stub___connect)
35129 choke me
35130 #else
35131 -connect();
35132 +char (*f) () = connect;
35133 +#endif
35134 +#ifdef __cplusplus
35136 #endif
35138 -; return 0; }
35139 -EOF
35140 -if { (eval echo configure:5073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
35141 - rm -rf conftest*
35142 - eval "ac_cv_func_connect=yes"
35143 -else
35144 - echo "configure: failed program was:" >&5
35145 - cat conftest.$ac_ext >&5
35146 - rm -rf conftest*
35147 - eval "ac_cv_func_connect=no"
35149 -rm -f conftest*
35151 +int
35152 +main ()
35154 +return f != connect;
35156 + return 0;
35158 +_ACEOF
35159 +rm -f conftest.$ac_objext conftest$ac_exeext
35160 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35161 + (eval $ac_link) 2>conftest.er1
35162 + ac_status=$?
35163 + grep -v '^ *+' conftest.er1 >conftest.err
35164 + rm -f conftest.er1
35165 + cat conftest.err >&5
35166 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35167 + (exit $ac_status); } &&
35168 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35169 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35170 + (eval $ac_try) 2>&5
35171 + ac_status=$?
35172 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35173 + (exit $ac_status); }; } &&
35174 + { ac_try='test -s conftest$ac_exeext'
35175 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35176 + (eval $ac_try) 2>&5
35177 + ac_status=$?
35178 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35179 + (exit $ac_status); }; }; then
35180 + ac_cv_func_connect=yes
35181 +else
35182 + echo "$as_me: failed program was:" >&5
35183 +sed 's/^/| /' conftest.$ac_ext >&5
35185 -if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
35186 - echo "$ac_t""yes" 1>&6
35188 -else
35189 - echo "$ac_t""no" 1>&6
35190 +ac_cv_func_connect=no
35192 +rm -f conftest.err conftest.$ac_objext \
35193 + conftest$ac_exeext conftest.$ac_ext
35195 +echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
35196 +echo "${ECHO_T}$ac_cv_func_connect" >&6
35198 if test $ac_cv_func_connect = no; then
35199 - echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
35200 -echo "configure:5094: checking for connect in -lsocket" >&5
35201 -ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
35202 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
35203 - echo $ac_n "(cached) $ac_c" 1>&6
35204 + echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
35205 +echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
35206 +if test "${ac_cv_lib_socket_connect+set}" = set; then
35207 + echo $ECHO_N "(cached) $ECHO_C" >&6
35208 else
35209 - ac_save_LIBS="$LIBS"
35210 + ac_check_lib_save_LIBS=$LIBS
35211 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
35212 -cat > conftest.$ac_ext <<EOF
35213 -#line 5102 "configure"
35214 -#include "confdefs.h"
35215 +cat >conftest.$ac_ext <<_ACEOF
35216 +/* confdefs.h. */
35217 +_ACEOF
35218 +cat confdefs.h >>conftest.$ac_ext
35219 +cat >>conftest.$ac_ext <<_ACEOF
35220 +/* end confdefs.h. */
35222 /* Override any gcc2 internal prototype to avoid an error. */
35223 +#ifdef __cplusplus
35224 +extern "C"
35225 +#endif
35226 /* We use char because int might match the return type of a gcc2
35227 - builtin and then its argument prototype would still apply. */
35228 -char connect();
35230 -int main() {
35231 -connect()
35232 -; return 0; }
35233 -EOF
35234 -if { (eval echo configure:5113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
35235 - rm -rf conftest*
35236 - eval "ac_cv_lib_$ac_lib_var=yes"
35237 -else
35238 - echo "configure: failed program was:" >&5
35239 - cat conftest.$ac_ext >&5
35240 - rm -rf conftest*
35241 - eval "ac_cv_lib_$ac_lib_var=no"
35243 -rm -f conftest*
35244 -LIBS="$ac_save_LIBS"
35247 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
35248 - echo "$ac_t""yes" 1>&6
35249 + builtin and then its argument prototype would still apply. */
35250 +char connect ();
35251 +int
35252 +main ()
35254 +connect ();
35256 + return 0;
35258 +_ACEOF
35259 +rm -f conftest.$ac_objext conftest$ac_exeext
35260 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35261 + (eval $ac_link) 2>conftest.er1
35262 + ac_status=$?
35263 + grep -v '^ *+' conftest.er1 >conftest.err
35264 + rm -f conftest.er1
35265 + cat conftest.err >&5
35266 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35267 + (exit $ac_status); } &&
35268 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35269 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35270 + (eval $ac_try) 2>&5
35271 + ac_status=$?
35272 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35273 + (exit $ac_status); }; } &&
35274 + { ac_try='test -s conftest$ac_exeext'
35275 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35276 + (eval $ac_try) 2>&5
35277 + ac_status=$?
35278 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35279 + (exit $ac_status); }; }; then
35280 + ac_cv_lib_socket_connect=yes
35281 +else
35282 + echo "$as_me: failed program was:" >&5
35283 +sed 's/^/| /' conftest.$ac_ext >&5
35285 +ac_cv_lib_socket_connect=no
35287 +rm -f conftest.err conftest.$ac_objext \
35288 + conftest$ac_exeext conftest.$ac_ext
35289 +LIBS=$ac_check_lib_save_LIBS
35291 +echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
35292 +echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
35293 +if test $ac_cv_lib_socket_connect = yes; then
35294 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
35295 -else
35296 - echo "$ac_t""no" 1>&6
35301 - # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
35302 - echo $ac_n "checking for remove""... $ac_c" 1>&6
35303 -echo "configure:5137: checking for remove" >&5
35304 -if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
35305 - echo $ac_n "(cached) $ac_c" 1>&6
35306 -else
35307 - cat > conftest.$ac_ext <<EOF
35308 -#line 5142 "configure"
35309 -#include "confdefs.h"
35310 + # Guillermo Gomez says -lposix is necessary on A/UX.
35311 + echo "$as_me:$LINENO: checking for remove" >&5
35312 +echo $ECHO_N "checking for remove... $ECHO_C" >&6
35313 +if test "${ac_cv_func_remove+set}" = set; then
35314 + echo $ECHO_N "(cached) $ECHO_C" >&6
35315 +else
35316 + cat >conftest.$ac_ext <<_ACEOF
35317 +/* confdefs.h. */
35318 +_ACEOF
35319 +cat confdefs.h >>conftest.$ac_ext
35320 +cat >>conftest.$ac_ext <<_ACEOF
35321 +/* end confdefs.h. */
35322 +/* Define remove to an innocuous variant, in case <limits.h> declares remove.
35323 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
35324 +#define remove innocuous_remove
35326 /* System header to define __stub macros and hopefully few prototypes,
35327 - which can conflict with char remove(); below. */
35328 -#include <assert.h>
35329 -/* Override any gcc2 internal prototype to avoid an error. */
35330 -/* We use char because int might match the return type of a gcc2
35331 - builtin and then its argument prototype would still apply. */
35332 -char remove();
35333 + which can conflict with char remove (); below.
35334 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35335 + <limits.h> exists even on freestanding compilers. */
35337 +#ifdef __STDC__
35338 +# include <limits.h>
35339 +#else
35340 +# include <assert.h>
35341 +#endif
35343 -int main() {
35344 +#undef remove
35346 +/* Override any gcc2 internal prototype to avoid an error. */
35347 +#ifdef __cplusplus
35348 +extern "C"
35350 +#endif
35351 +/* We use char because int might match the return type of a gcc2
35352 + builtin and then its argument prototype would still apply. */
35353 +char remove ();
35354 /* The GNU C library defines this for functions which it implements
35355 to always fail with ENOSYS. Some functions are actually named
35356 something starting with __ and the normal name is an alias. */
35357 #if defined (__stub_remove) || defined (__stub___remove)
35358 choke me
35359 #else
35360 -remove();
35361 +char (*f) () = remove;
35362 +#endif
35363 +#ifdef __cplusplus
35365 #endif
35367 -; return 0; }
35368 -EOF
35369 -if { (eval echo configure:5165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
35370 - rm -rf conftest*
35371 - eval "ac_cv_func_remove=yes"
35372 -else
35373 - echo "configure: failed program was:" >&5
35374 - cat conftest.$ac_ext >&5
35375 - rm -rf conftest*
35376 - eval "ac_cv_func_remove=no"
35378 -rm -f conftest*
35380 +int
35381 +main ()
35383 +return f != remove;
35385 + return 0;
35387 +_ACEOF
35388 +rm -f conftest.$ac_objext conftest$ac_exeext
35389 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35390 + (eval $ac_link) 2>conftest.er1
35391 + ac_status=$?
35392 + grep -v '^ *+' conftest.er1 >conftest.err
35393 + rm -f conftest.er1
35394 + cat conftest.err >&5
35395 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35396 + (exit $ac_status); } &&
35397 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35398 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35399 + (eval $ac_try) 2>&5
35400 + ac_status=$?
35401 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35402 + (exit $ac_status); }; } &&
35403 + { ac_try='test -s conftest$ac_exeext'
35404 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35405 + (eval $ac_try) 2>&5
35406 + ac_status=$?
35407 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408 + (exit $ac_status); }; }; then
35409 + ac_cv_func_remove=yes
35410 +else
35411 + echo "$as_me: failed program was:" >&5
35412 +sed 's/^/| /' conftest.$ac_ext >&5
35414 -if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
35415 - echo "$ac_t""yes" 1>&6
35417 -else
35418 - echo "$ac_t""no" 1>&6
35419 +ac_cv_func_remove=no
35421 +rm -f conftest.err conftest.$ac_objext \
35422 + conftest$ac_exeext conftest.$ac_ext
35424 +echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
35425 +echo "${ECHO_T}$ac_cv_func_remove" >&6
35427 if test $ac_cv_func_remove = no; then
35428 - echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
35429 -echo "configure:5186: checking for remove in -lposix" >&5
35430 -ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
35431 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
35432 - echo $ac_n "(cached) $ac_c" 1>&6
35433 + echo "$as_me:$LINENO: checking for remove in -lposix" >&5
35434 +echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
35435 +if test "${ac_cv_lib_posix_remove+set}" = set; then
35436 + echo $ECHO_N "(cached) $ECHO_C" >&6
35437 else
35438 - ac_save_LIBS="$LIBS"
35439 + ac_check_lib_save_LIBS=$LIBS
35440 LIBS="-lposix $LIBS"
35441 -cat > conftest.$ac_ext <<EOF
35442 -#line 5194 "configure"
35443 -#include "confdefs.h"
35444 +cat >conftest.$ac_ext <<_ACEOF
35445 +/* confdefs.h. */
35446 +_ACEOF
35447 +cat confdefs.h >>conftest.$ac_ext
35448 +cat >>conftest.$ac_ext <<_ACEOF
35449 +/* end confdefs.h. */
35451 /* Override any gcc2 internal prototype to avoid an error. */
35452 +#ifdef __cplusplus
35453 +extern "C"
35454 +#endif
35455 /* We use char because int might match the return type of a gcc2
35456 - builtin and then its argument prototype would still apply. */
35457 -char remove();
35459 -int main() {
35460 -remove()
35461 -; return 0; }
35462 -EOF
35463 -if { (eval echo configure:5205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
35464 - rm -rf conftest*
35465 - eval "ac_cv_lib_$ac_lib_var=yes"
35466 -else
35467 - echo "configure: failed program was:" >&5
35468 - cat conftest.$ac_ext >&5
35469 - rm -rf conftest*
35470 - eval "ac_cv_lib_$ac_lib_var=no"
35472 -rm -f conftest*
35473 -LIBS="$ac_save_LIBS"
35476 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
35477 - echo "$ac_t""yes" 1>&6
35478 + builtin and then its argument prototype would still apply. */
35479 +char remove ();
35480 +int
35481 +main ()
35483 +remove ();
35485 + return 0;
35487 +_ACEOF
35488 +rm -f conftest.$ac_objext conftest$ac_exeext
35489 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35490 + (eval $ac_link) 2>conftest.er1
35491 + ac_status=$?
35492 + grep -v '^ *+' conftest.er1 >conftest.err
35493 + rm -f conftest.er1
35494 + cat conftest.err >&5
35495 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35496 + (exit $ac_status); } &&
35497 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35498 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35499 + (eval $ac_try) 2>&5
35500 + ac_status=$?
35501 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35502 + (exit $ac_status); }; } &&
35503 + { ac_try='test -s conftest$ac_exeext'
35504 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35505 + (eval $ac_try) 2>&5
35506 + ac_status=$?
35507 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35508 + (exit $ac_status); }; }; then
35509 + ac_cv_lib_posix_remove=yes
35510 +else
35511 + echo "$as_me: failed program was:" >&5
35512 +sed 's/^/| /' conftest.$ac_ext >&5
35514 +ac_cv_lib_posix_remove=no
35516 +rm -f conftest.err conftest.$ac_objext \
35517 + conftest$ac_exeext conftest.$ac_ext
35518 +LIBS=$ac_check_lib_save_LIBS
35520 +echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
35521 +echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
35522 +if test $ac_cv_lib_posix_remove = yes; then
35523 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
35524 -else
35525 - echo "$ac_t""no" 1>&6
35530 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
35531 - echo $ac_n "checking for shmat""... $ac_c" 1>&6
35532 -echo "configure:5229: checking for shmat" >&5
35533 -if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
35534 - echo $ac_n "(cached) $ac_c" 1>&6
35535 -else
35536 - cat > conftest.$ac_ext <<EOF
35537 -#line 5234 "configure"
35538 -#include "confdefs.h"
35539 + echo "$as_me:$LINENO: checking for shmat" >&5
35540 +echo $ECHO_N "checking for shmat... $ECHO_C" >&6
35541 +if test "${ac_cv_func_shmat+set}" = set; then
35542 + echo $ECHO_N "(cached) $ECHO_C" >&6
35543 +else
35544 + cat >conftest.$ac_ext <<_ACEOF
35545 +/* confdefs.h. */
35546 +_ACEOF
35547 +cat confdefs.h >>conftest.$ac_ext
35548 +cat >>conftest.$ac_ext <<_ACEOF
35549 +/* end confdefs.h. */
35550 +/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
35551 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
35552 +#define shmat innocuous_shmat
35554 /* System header to define __stub macros and hopefully few prototypes,
35555 - which can conflict with char shmat(); below. */
35556 -#include <assert.h>
35557 -/* Override any gcc2 internal prototype to avoid an error. */
35558 -/* We use char because int might match the return type of a gcc2
35559 - builtin and then its argument prototype would still apply. */
35560 -char shmat();
35561 + which can conflict with char shmat (); below.
35562 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35563 + <limits.h> exists even on freestanding compilers. */
35565 -int main() {
35566 +#ifdef __STDC__
35567 +# include <limits.h>
35568 +#else
35569 +# include <assert.h>
35570 +#endif
35572 +#undef shmat
35574 +/* Override any gcc2 internal prototype to avoid an error. */
35575 +#ifdef __cplusplus
35576 +extern "C"
35578 +#endif
35579 +/* We use char because int might match the return type of a gcc2
35580 + builtin and then its argument prototype would still apply. */
35581 +char shmat ();
35582 /* The GNU C library defines this for functions which it implements
35583 to always fail with ENOSYS. Some functions are actually named
35584 something starting with __ and the normal name is an alias. */
35585 #if defined (__stub_shmat) || defined (__stub___shmat)
35586 choke me
35587 #else
35588 -shmat();
35589 +char (*f) () = shmat;
35590 +#endif
35591 +#ifdef __cplusplus
35593 #endif
35595 -; return 0; }
35596 -EOF
35597 -if { (eval echo configure:5257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
35598 - rm -rf conftest*
35599 - eval "ac_cv_func_shmat=yes"
35600 -else
35601 - echo "configure: failed program was:" >&5
35602 - cat conftest.$ac_ext >&5
35603 - rm -rf conftest*
35604 - eval "ac_cv_func_shmat=no"
35606 -rm -f conftest*
35608 +int
35609 +main ()
35611 +return f != shmat;
35613 + return 0;
35615 +_ACEOF
35616 +rm -f conftest.$ac_objext conftest$ac_exeext
35617 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35618 + (eval $ac_link) 2>conftest.er1
35619 + ac_status=$?
35620 + grep -v '^ *+' conftest.er1 >conftest.err
35621 + rm -f conftest.er1
35622 + cat conftest.err >&5
35623 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35624 + (exit $ac_status); } &&
35625 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35626 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35627 + (eval $ac_try) 2>&5
35628 + ac_status=$?
35629 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35630 + (exit $ac_status); }; } &&
35631 + { ac_try='test -s conftest$ac_exeext'
35632 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35633 + (eval $ac_try) 2>&5
35634 + ac_status=$?
35635 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35636 + (exit $ac_status); }; }; then
35637 + ac_cv_func_shmat=yes
35638 +else
35639 + echo "$as_me: failed program was:" >&5
35640 +sed 's/^/| /' conftest.$ac_ext >&5
35642 -if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
35643 - echo "$ac_t""yes" 1>&6
35645 -else
35646 - echo "$ac_t""no" 1>&6
35647 +ac_cv_func_shmat=no
35649 +rm -f conftest.err conftest.$ac_objext \
35650 + conftest$ac_exeext conftest.$ac_ext
35652 +echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
35653 +echo "${ECHO_T}$ac_cv_func_shmat" >&6
35655 if test $ac_cv_func_shmat = no; then
35656 - echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
35657 -echo "configure:5278: checking for shmat in -lipc" >&5
35658 -ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
35659 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
35660 - echo $ac_n "(cached) $ac_c" 1>&6
35661 + echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
35662 +echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
35663 +if test "${ac_cv_lib_ipc_shmat+set}" = set; then
35664 + echo $ECHO_N "(cached) $ECHO_C" >&6
35665 else
35666 - ac_save_LIBS="$LIBS"
35667 + ac_check_lib_save_LIBS=$LIBS
35668 LIBS="-lipc $LIBS"
35669 -cat > conftest.$ac_ext <<EOF
35670 -#line 5286 "configure"
35671 -#include "confdefs.h"
35672 +cat >conftest.$ac_ext <<_ACEOF
35673 +/* confdefs.h. */
35674 +_ACEOF
35675 +cat confdefs.h >>conftest.$ac_ext
35676 +cat >>conftest.$ac_ext <<_ACEOF
35677 +/* end confdefs.h. */
35679 /* Override any gcc2 internal prototype to avoid an error. */
35680 +#ifdef __cplusplus
35681 +extern "C"
35682 +#endif
35683 /* We use char because int might match the return type of a gcc2
35684 - builtin and then its argument prototype would still apply. */
35685 -char shmat();
35687 -int main() {
35688 -shmat()
35689 -; return 0; }
35690 -EOF
35691 -if { (eval echo configure:5297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
35692 - rm -rf conftest*
35693 - eval "ac_cv_lib_$ac_lib_var=yes"
35694 -else
35695 - echo "configure: failed program was:" >&5
35696 - cat conftest.$ac_ext >&5
35697 - rm -rf conftest*
35698 - eval "ac_cv_lib_$ac_lib_var=no"
35700 -rm -f conftest*
35701 -LIBS="$ac_save_LIBS"
35704 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
35705 - echo "$ac_t""yes" 1>&6
35706 + builtin and then its argument prototype would still apply. */
35707 +char shmat ();
35708 +int
35709 +main ()
35711 +shmat ();
35713 + return 0;
35715 +_ACEOF
35716 +rm -f conftest.$ac_objext conftest$ac_exeext
35717 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35718 + (eval $ac_link) 2>conftest.er1
35719 + ac_status=$?
35720 + grep -v '^ *+' conftest.er1 >conftest.err
35721 + rm -f conftest.er1
35722 + cat conftest.err >&5
35723 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35724 + (exit $ac_status); } &&
35725 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35726 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35727 + (eval $ac_try) 2>&5
35728 + ac_status=$?
35729 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35730 + (exit $ac_status); }; } &&
35731 + { ac_try='test -s conftest$ac_exeext'
35732 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35733 + (eval $ac_try) 2>&5
35734 + ac_status=$?
35735 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35736 + (exit $ac_status); }; }; then
35737 + ac_cv_lib_ipc_shmat=yes
35738 +else
35739 + echo "$as_me: failed program was:" >&5
35740 +sed 's/^/| /' conftest.$ac_ext >&5
35742 +ac_cv_lib_ipc_shmat=no
35744 +rm -f conftest.err conftest.$ac_objext \
35745 + conftest$ac_exeext conftest.$ac_ext
35746 +LIBS=$ac_check_lib_save_LIBS
35748 +echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
35749 +echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
35750 +if test $ac_cv_lib_ipc_shmat = yes; then
35751 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
35752 -else
35753 - echo "$ac_t""no" 1>&6
35759 # Check for libraries that X11R6 Xt/Xaw programs need.
35760 - ac_save_LDFLAGS="$LDFLAGS"
35761 + ac_save_LDFLAGS=$LDFLAGS
35762 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
35763 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
35764 # check for ICE first), but we must link in the order -lSM -lICE or
35765 # we get undefined symbols. So assume we have SM if we have ICE.
35766 # These have to be linked with before -lX11, unlike the other
35767 # libraries we check for below, so use a different variable.
35768 - # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
35769 - echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
35770 -echo "configure:5330: checking for IceConnectionNumber in -lICE" >&5
35771 -ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
35772 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
35773 - echo $ac_n "(cached) $ac_c" 1>&6
35774 + # John Interrante, Karl Berry
35775 + echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
35776 +echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
35777 +if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
35778 + echo $ECHO_N "(cached) $ECHO_C" >&6
35779 else
35780 - ac_save_LIBS="$LIBS"
35781 + ac_check_lib_save_LIBS=$LIBS
35782 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
35783 -cat > conftest.$ac_ext <<EOF
35784 -#line 5338 "configure"
35785 -#include "confdefs.h"
35786 +cat >conftest.$ac_ext <<_ACEOF
35787 +/* confdefs.h. */
35788 +_ACEOF
35789 +cat confdefs.h >>conftest.$ac_ext
35790 +cat >>conftest.$ac_ext <<_ACEOF
35791 +/* end confdefs.h. */
35793 /* Override any gcc2 internal prototype to avoid an error. */
35794 +#ifdef __cplusplus
35795 +extern "C"
35796 +#endif
35797 /* We use char because int might match the return type of a gcc2
35798 - builtin and then its argument prototype would still apply. */
35799 -char IceConnectionNumber();
35800 + builtin and then its argument prototype would still apply. */
35801 +char IceConnectionNumber ();
35802 +int
35803 +main ()
35805 +IceConnectionNumber ();
35807 + return 0;
35809 +_ACEOF
35810 +rm -f conftest.$ac_objext conftest$ac_exeext
35811 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35812 + (eval $ac_link) 2>conftest.er1
35813 + ac_status=$?
35814 + grep -v '^ *+' conftest.er1 >conftest.err
35815 + rm -f conftest.er1
35816 + cat conftest.err >&5
35817 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35818 + (exit $ac_status); } &&
35819 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35820 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35821 + (eval $ac_try) 2>&5
35822 + ac_status=$?
35823 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35824 + (exit $ac_status); }; } &&
35825 + { ac_try='test -s conftest$ac_exeext'
35826 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35827 + (eval $ac_try) 2>&5
35828 + ac_status=$?
35829 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35830 + (exit $ac_status); }; }; then
35831 + ac_cv_lib_ICE_IceConnectionNumber=yes
35832 +else
35833 + echo "$as_me: failed program was:" >&5
35834 +sed 's/^/| /' conftest.$ac_ext >&5
35836 +ac_cv_lib_ICE_IceConnectionNumber=no
35838 +rm -f conftest.err conftest.$ac_objext \
35839 + conftest$ac_exeext conftest.$ac_ext
35840 +LIBS=$ac_check_lib_save_LIBS
35842 +echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
35843 +echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
35844 +if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
35845 + X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
35848 -int main() {
35849 -IceConnectionNumber()
35850 -; return 0; }
35851 -EOF
35852 -if { (eval echo configure:5349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
35853 - rm -rf conftest*
35854 - eval "ac_cv_lib_$ac_lib_var=yes"
35855 + LDFLAGS=$ac_save_LDFLAGS
35862 +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
35863 + if test -n "$ac_tool_prefix"; then
35864 + # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
35865 +set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
35866 +echo "$as_me:$LINENO: checking for $ac_word" >&5
35867 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35868 +if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
35869 + echo $ECHO_N "(cached) $ECHO_C" >&6
35870 else
35871 - echo "configure: failed program was:" >&5
35872 - cat conftest.$ac_ext >&5
35873 - rm -rf conftest*
35874 - eval "ac_cv_lib_$ac_lib_var=no"
35875 + case $PKG_CONFIG in
35876 + [\\/]* | ?:[\\/]*)
35877 + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
35878 + ;;
35879 + *)
35880 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35881 +for as_dir in $PATH
35883 + IFS=$as_save_IFS
35884 + test -z "$as_dir" && as_dir=.
35885 + for ac_exec_ext in '' $ac_executable_extensions; do
35886 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35887 + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35888 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35889 + break 2
35890 + fi
35891 +done
35892 +done
35894 + ;;
35895 +esac
35897 -rm -f conftest*
35898 -LIBS="$ac_save_LIBS"
35899 +PKG_CONFIG=$ac_cv_path_PKG_CONFIG
35901 +if test -n "$PKG_CONFIG"; then
35902 + echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
35903 +echo "${ECHO_T}$PKG_CONFIG" >&6
35904 +else
35905 + echo "$as_me:$LINENO: result: no" >&5
35906 +echo "${ECHO_T}no" >&6
35908 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
35909 - echo "$ac_t""yes" 1>&6
35910 - X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
35913 +if test -z "$ac_cv_path_PKG_CONFIG"; then
35914 + ac_pt_PKG_CONFIG=$PKG_CONFIG
35915 + # Extract the first word of "pkg-config", so it can be a program name with args.
35916 +set dummy pkg-config; ac_word=$2
35917 +echo "$as_me:$LINENO: checking for $ac_word" >&5
35918 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35919 +if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
35920 + echo $ECHO_N "(cached) $ECHO_C" >&6
35921 +else
35922 + case $ac_pt_PKG_CONFIG in
35923 + [\\/]* | ?:[\\/]*)
35924 + ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
35925 + ;;
35926 + *)
35927 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35928 +for as_dir in $PATH
35930 + IFS=$as_save_IFS
35931 + test -z "$as_dir" && as_dir=.
35932 + for ac_exec_ext in '' $ac_executable_extensions; do
35933 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35934 + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35935 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35936 + break 2
35937 + fi
35938 +done
35939 +done
35941 + ;;
35942 +esac
35944 +ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
35946 +if test -n "$ac_pt_PKG_CONFIG"; then
35947 + echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
35948 +echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
35949 +else
35950 + echo "$as_me:$LINENO: result: no" >&5
35951 +echo "${ECHO_T}no" >&6
35954 + PKG_CONFIG=$ac_pt_PKG_CONFIG
35955 +else
35956 + PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
35960 +if test -n "$PKG_CONFIG"; then
35961 + _pkg_min_version=0.9.0
35962 + echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
35963 +echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
35964 + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
35965 + echo "$as_me:$LINENO: result: yes" >&5
35966 +echo "${ECHO_T}yes" >&6
35967 + else
35968 + echo "$as_me:$LINENO: result: no" >&5
35969 +echo "${ECHO_T}no" >&6
35970 + PKG_CONFIG=""
35971 + fi
35975 +pkg_failed=no
35976 +echo "$as_me:$LINENO: checking for X" >&5
35977 +echo $ECHO_N "checking for X... $ECHO_C" >&6
35979 +if test -n "$PKG_CONFIG"; then
35980 + if test -n "$X_CFLAGS"; then
35981 + pkg_cv_X_CFLAGS="$X_CFLAGS"
35982 + else
35983 + if test -n "$PKG_CONFIG" && \
35984 + { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xau\"") >&5
35985 + ($PKG_CONFIG --exists --print-errors "x11 xau") 2>&5
35986 + ac_status=$?
35987 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35988 + (exit $ac_status); }; then
35989 + pkg_cv_X_CFLAGS=`$PKG_CONFIG --cflags "x11 xau" 2>/dev/null`
35990 +else
35991 + pkg_failed=yes
35993 + fi
35994 +else
35995 + pkg_failed=untried
35997 +if test -n "$PKG_CONFIG"; then
35998 + if test -n "$X_LIBS"; then
35999 + pkg_cv_X_LIBS="$X_LIBS"
36000 + else
36001 + if test -n "$PKG_CONFIG" && \
36002 + { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xau\"") >&5
36003 + ($PKG_CONFIG --exists --print-errors "x11 xau") 2>&5
36004 + ac_status=$?
36005 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36006 + (exit $ac_status); }; then
36007 + pkg_cv_X_LIBS=`$PKG_CONFIG --libs "x11 xau" 2>/dev/null`
36008 +else
36009 + pkg_failed=yes
36011 + fi
36012 else
36013 - echo "$ac_t""no" 1>&6
36014 + pkg_failed=untried
36017 - LDFLAGS="$ac_save_LDFLAGS"
36020 +if test $pkg_failed = yes; then
36022 +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36023 + _pkg_short_errors_supported=yes
36024 +else
36025 + _pkg_short_errors_supported=no
36027 + if test $_pkg_short_errors_supported = yes; then
36028 + X_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11 xau"`
36029 + else
36030 + X_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xau"`
36031 + fi
36032 + # Put the nasty error message in config.log where it belongs
36033 + echo "$X_PKG_ERRORS" >&5
36035 + { { echo "$as_me:$LINENO: error: Package requirements (x11 xau) were not met:
36037 -if test "x$x_includes" = "x"; then
36038 - x_includes="/usr/include"
36039 +$X_PKG_ERRORS
36041 +Consider adjusting the PKG_CONFIG_PATH environment variable if you
36042 +installed software in a non-standard prefix.
36044 +Alternatively, you may set the environment variables X_CFLAGS
36045 +and X_LIBS to avoid the need to call pkg-config.
36046 +See the pkg-config man page for more details.
36047 +" >&5
36048 +echo "$as_me: error: Package requirements (x11 xau) were not met:
36050 +$X_PKG_ERRORS
36052 +Consider adjusting the PKG_CONFIG_PATH environment variable if you
36053 +installed software in a non-standard prefix.
36055 +Alternatively, you may set the environment variables X_CFLAGS
36056 +and X_LIBS to avoid the need to call pkg-config.
36057 +See the pkg-config man page for more details.
36058 +" >&2;}
36059 + { (exit 1); exit 1; }; }
36060 +elif test $pkg_failed = untried; then
36061 + { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
36062 +is in your PATH or set the PKG_CONFIG environment variable to the full
36063 +path to pkg-config.
36065 +Alternatively, you may set the environment variables X_CFLAGS
36066 +and X_LIBS to avoid the need to call pkg-config.
36067 +See the pkg-config man page for more details.
36069 +To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
36070 +See \`config.log' for more details." >&5
36071 +echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
36072 +is in your PATH or set the PKG_CONFIG environment variable to the full
36073 +path to pkg-config.
36075 +Alternatively, you may set the environment variables X_CFLAGS
36076 +and X_LIBS to avoid the need to call pkg-config.
36077 +See the pkg-config man page for more details.
36079 +To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
36080 +See \`config.log' for more details." >&2;}
36081 + { (exit 1); exit 1; }; }
36082 +else
36083 + X_CFLAGS=$pkg_cv_X_CFLAGS
36084 + X_LIBS=$pkg_cv_X_LIBS
36085 + echo "$as_me:$LINENO: result: yes" >&5
36086 +echo "${ECHO_T}yes" >&6
36090 saved_cflags="$CFLAGS"
36091 @@ -5380,136 +24550,226 @@
36092 CFLAGS="$CFLAGS $X_CFLAGS"
36093 LDFLAGS="$LDFLAGS $X_LDFLAGS $X_LIBS"
36095 -if test "x$no_x" = "xyes"; then
36096 - { echo "configure: error:
36097 -*** X libraries or include files not found. Check 'config.log' for
36098 -*** more details." 1>&2; exit 1; }
36099 +if test "x$no_x" = "xyes"; then
36100 + { { echo "$as_me:$LINENO: error:
36101 +*** X libraries or include files not found. Check 'config.log' for
36102 +*** more details." >&5
36103 +echo "$as_me: error:
36104 +*** X libraries or include files not found. Check 'config.log' for
36105 +*** more details." >&2;}
36106 + { (exit 1); exit 1; }; }
36109 # Checks for libraries.
36110 # Check for the X11 library
36111 -echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
36112 -echo "configure:5393: checking for XOpenDisplay in -lX11" >&5
36113 -ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
36114 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
36115 - echo $ac_n "(cached) $ac_c" 1>&6
36116 +echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
36117 +echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
36118 +if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
36119 + echo $ECHO_N "(cached) $ECHO_C" >&6
36120 else
36121 - ac_save_LIBS="$LIBS"
36122 + ac_check_lib_save_LIBS=$LIBS
36123 LIBS="-lX11 $X_EXTRA_LIBS $LIBS"
36124 -cat > conftest.$ac_ext <<EOF
36125 -#line 5401 "configure"
36126 -#include "confdefs.h"
36127 +cat >conftest.$ac_ext <<_ACEOF
36128 +/* confdefs.h. */
36129 +_ACEOF
36130 +cat confdefs.h >>conftest.$ac_ext
36131 +cat >>conftest.$ac_ext <<_ACEOF
36132 +/* end confdefs.h. */
36134 /* Override any gcc2 internal prototype to avoid an error. */
36135 +#ifdef __cplusplus
36136 +extern "C"
36137 +#endif
36138 /* We use char because int might match the return type of a gcc2
36139 - builtin and then its argument prototype would still apply. */
36140 -char XOpenDisplay();
36142 -int main() {
36143 -XOpenDisplay()
36144 -; return 0; }
36145 -EOF
36146 -if { (eval echo configure:5412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
36147 - rm -rf conftest*
36148 - eval "ac_cv_lib_$ac_lib_var=yes"
36149 -else
36150 - echo "configure: failed program was:" >&5
36151 - cat conftest.$ac_ext >&5
36152 - rm -rf conftest*
36153 - eval "ac_cv_lib_$ac_lib_var=no"
36155 -rm -f conftest*
36156 -LIBS="$ac_save_LIBS"
36159 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
36160 - echo "$ac_t""yes" 1>&6
36161 + builtin and then its argument prototype would still apply. */
36162 +char XOpenDisplay ();
36163 +int
36164 +main ()
36166 +XOpenDisplay ();
36168 + return 0;
36170 +_ACEOF
36171 +rm -f conftest.$ac_objext conftest$ac_exeext
36172 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36173 + (eval $ac_link) 2>conftest.er1
36174 + ac_status=$?
36175 + grep -v '^ *+' conftest.er1 >conftest.err
36176 + rm -f conftest.er1
36177 + cat conftest.err >&5
36178 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36179 + (exit $ac_status); } &&
36180 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36181 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36182 + (eval $ac_try) 2>&5
36183 + ac_status=$?
36184 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36185 + (exit $ac_status); }; } &&
36186 + { ac_try='test -s conftest$ac_exeext'
36187 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36188 + (eval $ac_try) 2>&5
36189 + ac_status=$?
36190 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36191 + (exit $ac_status); }; }; then
36192 + ac_cv_lib_X11_XOpenDisplay=yes
36193 +else
36194 + echo "$as_me: failed program was:" >&5
36195 +sed 's/^/| /' conftest.$ac_ext >&5
36197 +ac_cv_lib_X11_XOpenDisplay=no
36199 +rm -f conftest.err conftest.$ac_objext \
36200 + conftest$ac_exeext conftest.$ac_ext
36201 +LIBS=$ac_check_lib_save_LIBS
36203 +echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
36204 +echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
36205 +if test $ac_cv_lib_X11_XOpenDisplay = yes; then
36206 x_libs="-lX11 $X_EXTRA_LIBS"
36207 else
36208 - echo "$ac_t""no" 1>&6
36209 -{ echo "configure: error: *** libX11 not found. Check 'config.log' for more details." 1>&2; exit 1; }
36210 + { { echo "$as_me:$LINENO: error: *** libX11 not found. Check 'config.log' for more details." >&5
36211 +echo "$as_me: error: *** libX11 not found. Check 'config.log' for more details." >&2;}
36212 + { (exit 1); exit 1; }; }
36216 if test "x$enable_shm" = "xyes"; then
36217 # Check for the Xext library (needed for XShm extention)
36218 - echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
36219 -echo "configure:5437: checking for XShmAttach in -lXext" >&5
36220 -ac_lib_var=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
36221 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
36222 - echo $ac_n "(cached) $ac_c" 1>&6
36223 + echo "$as_me:$LINENO: checking for XShmAttach in -lXext" >&5
36224 +echo $ECHO_N "checking for XShmAttach in -lXext... $ECHO_C" >&6
36225 +if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then
36226 + echo $ECHO_N "(cached) $ECHO_C" >&6
36227 else
36228 - ac_save_LIBS="$LIBS"
36229 + ac_check_lib_save_LIBS=$LIBS
36230 LIBS="-lXext $x_libs $LIBS"
36231 -cat > conftest.$ac_ext <<EOF
36232 -#line 5445 "configure"
36233 -#include "confdefs.h"
36234 +cat >conftest.$ac_ext <<_ACEOF
36235 +/* confdefs.h. */
36236 +_ACEOF
36237 +cat confdefs.h >>conftest.$ac_ext
36238 +cat >>conftest.$ac_ext <<_ACEOF
36239 +/* end confdefs.h. */
36241 /* Override any gcc2 internal prototype to avoid an error. */
36242 +#ifdef __cplusplus
36243 +extern "C"
36244 +#endif
36245 /* We use char because int might match the return type of a gcc2
36246 - builtin and then its argument prototype would still apply. */
36247 -char XShmAttach();
36249 -int main() {
36250 -XShmAttach()
36251 -; return 0; }
36252 -EOF
36253 -if { (eval echo configure:5456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
36254 - rm -rf conftest*
36255 - eval "ac_cv_lib_$ac_lib_var=yes"
36256 -else
36257 - echo "configure: failed program was:" >&5
36258 - cat conftest.$ac_ext >&5
36259 - rm -rf conftest*
36260 - eval "ac_cv_lib_$ac_lib_var=no"
36262 -rm -f conftest*
36263 -LIBS="$ac_save_LIBS"
36266 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
36267 - echo "$ac_t""yes" 1>&6
36268 + builtin and then its argument prototype would still apply. */
36269 +char XShmAttach ();
36270 +int
36271 +main ()
36273 +XShmAttach ();
36275 + return 0;
36277 +_ACEOF
36278 +rm -f conftest.$ac_objext conftest$ac_exeext
36279 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36280 + (eval $ac_link) 2>conftest.er1
36281 + ac_status=$?
36282 + grep -v '^ *+' conftest.er1 >conftest.err
36283 + rm -f conftest.er1
36284 + cat conftest.err >&5
36285 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36286 + (exit $ac_status); } &&
36287 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36288 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36289 + (eval $ac_try) 2>&5
36290 + ac_status=$?
36291 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36292 + (exit $ac_status); }; } &&
36293 + { ac_try='test -s conftest$ac_exeext'
36294 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36295 + (eval $ac_try) 2>&5
36296 + ac_status=$?
36297 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36298 + (exit $ac_status); }; }; then
36299 + ac_cv_lib_Xext_XShmAttach=yes
36300 +else
36301 + echo "$as_me: failed program was:" >&5
36302 +sed 's/^/| /' conftest.$ac_ext >&5
36304 +ac_cv_lib_Xext_XShmAttach=no
36306 +rm -f conftest.err conftest.$ac_objext \
36307 + conftest$ac_exeext conftest.$ac_ext
36308 +LIBS=$ac_check_lib_save_LIBS
36310 +echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmAttach" >&5
36311 +echo "${ECHO_T}$ac_cv_lib_Xext_XShmAttach" >&6
36312 +if test $ac_cv_lib_Xext_XShmAttach = yes; then
36313 x_libs="-lXext $x_libs"
36314 else
36315 - echo "$ac_t""no" 1>&6
36316 -# On AIX, it is in XextSam instead, but we still need -lXext
36317 - echo $ac_n "checking for XShmAttach in -lXextSam""... $ac_c" 1>&6
36318 -echo "configure:5476: checking for XShmAttach in -lXextSam" >&5
36319 -ac_lib_var=`echo XextSam'_'XShmAttach | sed 'y%./+-%__p_%'`
36320 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
36321 - echo $ac_n "(cached) $ac_c" 1>&6
36322 + # On AIX, it is in XextSam instead, but we still need -lXext
36323 + echo "$as_me:$LINENO: checking for XShmAttach in -lXextSam" >&5
36324 +echo $ECHO_N "checking for XShmAttach in -lXextSam... $ECHO_C" >&6
36325 +if test "${ac_cv_lib_XextSam_XShmAttach+set}" = set; then
36326 + echo $ECHO_N "(cached) $ECHO_C" >&6
36327 else
36328 - ac_save_LIBS="$LIBS"
36329 + ac_check_lib_save_LIBS=$LIBS
36330 LIBS="-lXextSam $x_libs $LIBS"
36331 -cat > conftest.$ac_ext <<EOF
36332 -#line 5484 "configure"
36333 -#include "confdefs.h"
36334 +cat >conftest.$ac_ext <<_ACEOF
36335 +/* confdefs.h. */
36336 +_ACEOF
36337 +cat confdefs.h >>conftest.$ac_ext
36338 +cat >>conftest.$ac_ext <<_ACEOF
36339 +/* end confdefs.h. */
36341 /* Override any gcc2 internal prototype to avoid an error. */
36342 +#ifdef __cplusplus
36343 +extern "C"
36344 +#endif
36345 /* We use char because int might match the return type of a gcc2
36346 - builtin and then its argument prototype would still apply. */
36347 -char XShmAttach();
36349 -int main() {
36350 -XShmAttach()
36351 -; return 0; }
36352 -EOF
36353 -if { (eval echo configure:5495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
36354 - rm -rf conftest*
36355 - eval "ac_cv_lib_$ac_lib_var=yes"
36356 -else
36357 - echo "configure: failed program was:" >&5
36358 - cat conftest.$ac_ext >&5
36359 - rm -rf conftest*
36360 - eval "ac_cv_lib_$ac_lib_var=no"
36362 -rm -f conftest*
36363 -LIBS="$ac_save_LIBS"
36366 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
36367 - echo "$ac_t""yes" 1>&6
36368 + builtin and then its argument prototype would still apply. */
36369 +char XShmAttach ();
36370 +int
36371 +main ()
36373 +XShmAttach ();
36375 + return 0;
36377 +_ACEOF
36378 +rm -f conftest.$ac_objext conftest$ac_exeext
36379 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36380 + (eval $ac_link) 2>conftest.er1
36381 + ac_status=$?
36382 + grep -v '^ *+' conftest.er1 >conftest.err
36383 + rm -f conftest.er1
36384 + cat conftest.err >&5
36385 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36386 + (exit $ac_status); } &&
36387 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36388 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36389 + (eval $ac_try) 2>&5
36390 + ac_status=$?
36391 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36392 + (exit $ac_status); }; } &&
36393 + { ac_try='test -s conftest$ac_exeext'
36394 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36395 + (eval $ac_try) 2>&5
36396 + ac_status=$?
36397 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36398 + (exit $ac_status); }; }; then
36399 + ac_cv_lib_XextSam_XShmAttach=yes
36400 +else
36401 + echo "$as_me: failed program was:" >&5
36402 +sed 's/^/| /' conftest.$ac_ext >&5
36404 +ac_cv_lib_XextSam_XShmAttach=no
36406 +rm -f conftest.err conftest.$ac_objext \
36407 + conftest$ac_exeext conftest.$ac_ext
36408 +LIBS=$ac_check_lib_save_LIBS
36410 +echo "$as_me:$LINENO: result: $ac_cv_lib_XextSam_XShmAttach" >&5
36411 +echo "${ECHO_T}$ac_cv_lib_XextSam_XShmAttach" >&6
36412 +if test $ac_cv_lib_XextSam_XShmAttach = yes; then
36413 x_libs="-lXextSam -lXext $x_libs"
36414 else
36415 - echo "$ac_t""no" 1>&6
36416 -no_xext_lib=yes
36417 + no_xext_lib=yes
36421 @@ -5518,140 +24778,222 @@
36423 # Check for shaped window extension
36425 -echo $ac_n "checking for XShapeCombineMask in -lXext""... $ac_c" 1>&6
36426 -echo "configure:5523: checking for XShapeCombineMask in -lXext" >&5
36427 -ac_lib_var=`echo Xext'_'XShapeCombineMask | sed 'y%./+-%__p_%'`
36428 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
36429 - echo $ac_n "(cached) $ac_c" 1>&6
36430 +echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
36431 +echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
36432 +if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
36433 + echo $ECHO_N "(cached) $ECHO_C" >&6
36434 else
36435 - ac_save_LIBS="$LIBS"
36436 + ac_check_lib_save_LIBS=$LIBS
36437 LIBS="-lXext $x_libs $LIBS"
36438 -cat > conftest.$ac_ext <<EOF
36439 -#line 5531 "configure"
36440 -#include "confdefs.h"
36441 +cat >conftest.$ac_ext <<_ACEOF
36442 +/* confdefs.h. */
36443 +_ACEOF
36444 +cat confdefs.h >>conftest.$ac_ext
36445 +cat >>conftest.$ac_ext <<_ACEOF
36446 +/* end confdefs.h. */
36448 /* Override any gcc2 internal prototype to avoid an error. */
36449 +#ifdef __cplusplus
36450 +extern "C"
36451 +#endif
36452 /* We use char because int might match the return type of a gcc2
36453 - builtin and then its argument prototype would still apply. */
36454 -char XShapeCombineMask();
36456 -int main() {
36457 -XShapeCombineMask()
36458 -; return 0; }
36459 -EOF
36460 -if { (eval echo configure:5542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
36461 - rm -rf conftest*
36462 - eval "ac_cv_lib_$ac_lib_var=yes"
36463 -else
36464 - echo "configure: failed program was:" >&5
36465 - cat conftest.$ac_ext >&5
36466 - rm -rf conftest*
36467 - eval "ac_cv_lib_$ac_lib_var=no"
36469 -rm -f conftest*
36470 -LIBS="$ac_save_LIBS"
36473 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
36474 - echo "$ac_t""yes" 1>&6
36475 + builtin and then its argument prototype would still apply. */
36476 +char XShapeCombineMask ();
36477 +int
36478 +main ()
36480 +XShapeCombineMask ();
36482 + return 0;
36484 +_ACEOF
36485 +rm -f conftest.$ac_objext conftest$ac_exeext
36486 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36487 + (eval $ac_link) 2>conftest.er1
36488 + ac_status=$?
36489 + grep -v '^ *+' conftest.er1 >conftest.err
36490 + rm -f conftest.er1
36491 + cat conftest.err >&5
36492 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36493 + (exit $ac_status); } &&
36494 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36495 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36496 + (eval $ac_try) 2>&5
36497 + ac_status=$?
36498 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36499 + (exit $ac_status); }; } &&
36500 + { ac_try='test -s conftest$ac_exeext'
36501 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36502 + (eval $ac_try) 2>&5
36503 + ac_status=$?
36504 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36505 + (exit $ac_status); }; }; then
36506 + ac_cv_lib_Xext_XShapeCombineMask=yes
36507 +else
36508 + echo "$as_me: failed program was:" >&5
36509 +sed 's/^/| /' conftest.$ac_ext >&5
36511 +ac_cv_lib_Xext_XShapeCombineMask=no
36513 +rm -f conftest.err conftest.$ac_objext \
36514 + conftest$ac_exeext conftest.$ac_ext
36515 +LIBS=$ac_check_lib_save_LIBS
36517 +echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
36518 +echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
36519 +if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
36520 if test -z "`echo $x_libs | grep "\-lXext" 2> /dev/null`"; then
36521 x_libs="-lXext $x_libs"
36523 - cat >> confdefs.h <<\EOF
36524 + cat >>confdefs.h <<\_ACEOF
36525 #define HAVE_SHAPE_EXT 1
36526 -EOF
36527 +_ACEOF
36529 -else
36530 - echo "$ac_t""no" 1>&6
36534 # Check for XConvertCase (X11R6 specific)
36536 -echo $ac_n "checking for XConvertCase in -lX11""... $ac_c" 1>&6
36537 -echo "configure:5572: checking for XConvertCase in -lX11" >&5
36538 -ac_lib_var=`echo X11'_'XConvertCase | sed 'y%./+-%__p_%'`
36539 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
36540 - echo $ac_n "(cached) $ac_c" 1>&6
36541 -else
36542 - ac_save_LIBS="$LIBS"
36543 -LIBS="-lX11 $x_libs $LIBS"
36544 -cat > conftest.$ac_ext <<EOF
36545 -#line 5580 "configure"
36546 -#include "confdefs.h"
36547 -/* Override any gcc2 internal prototype to avoid an error. */
36548 -/* We use char because int might match the return type of a gcc2
36549 - builtin and then its argument prototype would still apply. */
36550 -char XConvertCase();
36552 -int main() {
36553 -XConvertCase()
36554 -; return 0; }
36555 -EOF
36556 -if { (eval echo configure:5591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
36557 - rm -rf conftest*
36558 - eval "ac_cv_lib_$ac_lib_var=yes"
36559 +echo "$as_me:$LINENO: checking for XConvertCase in -lX11" >&5
36560 +echo $ECHO_N "checking for XConvertCase in -lX11... $ECHO_C" >&6
36561 +if test "${ac_cv_lib_X11_XConvertCase+set}" = set; then
36562 + echo $ECHO_N "(cached) $ECHO_C" >&6
36563 else
36564 - echo "configure: failed program was:" >&5
36565 - cat conftest.$ac_ext >&5
36566 - rm -rf conftest*
36567 - eval "ac_cv_lib_$ac_lib_var=no"
36569 -rm -f conftest*
36570 -LIBS="$ac_save_LIBS"
36571 + ac_check_lib_save_LIBS=$LIBS
36572 +LIBS="-lX11 $x_libs $LIBS"
36573 +cat >conftest.$ac_ext <<_ACEOF
36574 +/* confdefs.h. */
36575 +_ACEOF
36576 +cat confdefs.h >>conftest.$ac_ext
36577 +cat >>conftest.$ac_ext <<_ACEOF
36578 +/* end confdefs.h. */
36581 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
36582 - echo "$ac_t""yes" 1>&6
36583 - cat >> confdefs.h <<\EOF
36584 +/* Override any gcc2 internal prototype to avoid an error. */
36585 +#ifdef __cplusplus
36586 +extern "C"
36587 +#endif
36588 +/* We use char because int might match the return type of a gcc2
36589 + builtin and then its argument prototype would still apply. */
36590 +char XConvertCase ();
36591 +int
36592 +main ()
36594 +XConvertCase ();
36596 + return 0;
36598 +_ACEOF
36599 +rm -f conftest.$ac_objext conftest$ac_exeext
36600 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36601 + (eval $ac_link) 2>conftest.er1
36602 + ac_status=$?
36603 + grep -v '^ *+' conftest.er1 >conftest.err
36604 + rm -f conftest.er1
36605 + cat conftest.err >&5
36606 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36607 + (exit $ac_status); } &&
36608 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36609 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36610 + (eval $ac_try) 2>&5
36611 + ac_status=$?
36612 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36613 + (exit $ac_status); }; } &&
36614 + { ac_try='test -s conftest$ac_exeext'
36615 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36616 + (eval $ac_try) 2>&5
36617 + ac_status=$?
36618 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36619 + (exit $ac_status); }; }; then
36620 + ac_cv_lib_X11_XConvertCase=yes
36621 +else
36622 + echo "$as_me: failed program was:" >&5
36623 +sed 's/^/| /' conftest.$ac_ext >&5
36625 +ac_cv_lib_X11_XConvertCase=no
36627 +rm -f conftest.err conftest.$ac_objext \
36628 + conftest$ac_exeext conftest.$ac_ext
36629 +LIBS=$ac_check_lib_save_LIBS
36631 +echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XConvertCase" >&5
36632 +echo "${ECHO_T}$ac_cv_lib_X11_XConvertCase" >&6
36633 +if test $ac_cv_lib_X11_XConvertCase = yes; then
36634 + cat >>confdefs.h <<\_ACEOF
36635 #define HAVE_XCONVERTCASE 1
36636 -EOF
36637 +_ACEOF
36639 -else
36640 - echo "$ac_t""no" 1>&6
36644 # Check for XIM support.
36646 -echo $ac_n "checking for XUnregisterIMInstantiateCallback in -lX11""... $ac_c" 1>&6
36647 -echo "configure:5618: checking for XUnregisterIMInstantiateCallback in -lX11" >&5
36648 -ac_lib_var=`echo X11'_'XUnregisterIMInstantiateCallback | sed 'y%./+-%__p_%'`
36649 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
36650 - echo $ac_n "(cached) $ac_c" 1>&6
36651 +echo "$as_me:$LINENO: checking for XUnregisterIMInstantiateCallback in -lX11" >&5
36652 +echo $ECHO_N "checking for XUnregisterIMInstantiateCallback in -lX11... $ECHO_C" >&6
36653 +if test "${ac_cv_lib_X11_XUnregisterIMInstantiateCallback+set}" = set; then
36654 + echo $ECHO_N "(cached) $ECHO_C" >&6
36655 else
36656 - ac_save_LIBS="$LIBS"
36657 + ac_check_lib_save_LIBS=$LIBS
36658 LIBS="-lX11 $x_libs $LIBS"
36659 -cat > conftest.$ac_ext <<EOF
36660 -#line 5626 "configure"
36661 -#include "confdefs.h"
36662 +cat >conftest.$ac_ext <<_ACEOF
36663 +/* confdefs.h. */
36664 +_ACEOF
36665 +cat confdefs.h >>conftest.$ac_ext
36666 +cat >>conftest.$ac_ext <<_ACEOF
36667 +/* end confdefs.h. */
36669 /* Override any gcc2 internal prototype to avoid an error. */
36670 +#ifdef __cplusplus
36671 +extern "C"
36672 +#endif
36673 /* We use char because int might match the return type of a gcc2
36674 - builtin and then its argument prototype would still apply. */
36675 -char XUnregisterIMInstantiateCallback();
36677 -int main() {
36678 -XUnregisterIMInstantiateCallback()
36679 -; return 0; }
36680 -EOF
36681 -if { (eval echo configure:5637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
36682 - rm -rf conftest*
36683 - eval "ac_cv_lib_$ac_lib_var=yes"
36684 -else
36685 - echo "configure: failed program was:" >&5
36686 - cat conftest.$ac_ext >&5
36687 - rm -rf conftest*
36688 - eval "ac_cv_lib_$ac_lib_var=no"
36690 -rm -f conftest*
36691 -LIBS="$ac_save_LIBS"
36694 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
36695 - echo "$ac_t""yes" 1>&6
36696 - :
36697 + builtin and then its argument prototype would still apply. */
36698 +char XUnregisterIMInstantiateCallback ();
36699 +int
36700 +main ()
36702 +XUnregisterIMInstantiateCallback ();
36704 + return 0;
36706 +_ACEOF
36707 +rm -f conftest.$ac_objext conftest$ac_exeext
36708 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36709 + (eval $ac_link) 2>conftest.er1
36710 + ac_status=$?
36711 + grep -v '^ *+' conftest.er1 >conftest.err
36712 + rm -f conftest.er1
36713 + cat conftest.err >&5
36714 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36715 + (exit $ac_status); } &&
36716 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36717 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36718 + (eval $ac_try) 2>&5
36719 + ac_status=$?
36720 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36721 + (exit $ac_status); }; } &&
36722 + { ac_try='test -s conftest$ac_exeext'
36723 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36724 + (eval $ac_try) 2>&5
36725 + ac_status=$?
36726 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36727 + (exit $ac_status); }; }; then
36728 + ac_cv_lib_X11_XUnregisterIMInstantiateCallback=yes
36729 +else
36730 + echo "$as_me: failed program was:" >&5
36731 +sed 's/^/| /' conftest.$ac_ext >&5
36733 +ac_cv_lib_X11_XUnregisterIMInstantiateCallback=no
36735 +rm -f conftest.err conftest.$ac_objext \
36736 + conftest$ac_exeext conftest.$ac_ext
36737 +LIBS=$ac_check_lib_save_LIBS
36739 +echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XUnregisterIMInstantiateCallback" >&5
36740 +echo "${ECHO_T}$ac_cv_lib_X11_XUnregisterIMInstantiateCallback" >&6
36741 +if test $ac_cv_lib_X11_XUnregisterIMInstantiateCallback = yes; then
36743 else
36744 - echo "$ac_t""no" 1>&6
36745 -enable_xim_inst="no"
36746 + enable_xim_inst="no"
36750 @@ -5673,9 +25015,9 @@
36751 if test "x$enable_xim" = "xyes"; then
36752 GTK_XIM_FLAGS="-DUSE_XIM"
36753 if test "x$enable_xim_inst" = "xyes"; then
36754 - cat >> confdefs.h <<\EOF
36755 + cat >>confdefs.h <<\_ACEOF
36756 #define USE_X11R6_XIM 1
36757 -EOF
36758 +_ACEOF
36762 @@ -5686,25 +25028,28 @@
36763 # set up things for XInput
36765 if test "x$with_xinput" = "xgxi"; then
36766 - echo "configure: warning:
36767 + { echo "$as_me:$LINENO: WARNING:
36768 +*** The generic XInput support has not been tested for several years
36769 +*** and is not known to work with any currently available X servers" >&5
36770 +echo "$as_me: WARNING:
36771 *** The generic XInput support has not been tested for several years
36772 -*** and is not known to work with any currently available X servers" 1>&2
36773 - cat >> confdefs.h <<\EOF
36774 +*** and is not known to work with any currently available X servers" >&2;}
36775 + cat >>confdefs.h <<\_ACEOF
36776 #define XINPUT_GXI 1
36777 -EOF
36778 +_ACEOF
36780 xinput_progs=gxid
36781 x_libs="-lXi $x_libs"
36782 elif test "x$with_xinput" = "xxfree" || test "x$with_xinput" = "xyes"; then
36783 - cat >> confdefs.h <<\EOF
36784 + cat >>confdefs.h <<\_ACEOF
36785 #define XINPUT_XFREE 1
36786 -EOF
36787 +_ACEOF
36789 x_libs="-lXi $x_libs"
36790 else
36791 - cat >> confdefs.h <<\EOF
36792 + cat >>confdefs.h <<\_ACEOF
36793 #define XINPUT_NONE 1
36794 -EOF
36795 +_ACEOF
36799 @@ -5719,96 +25064,317 @@
36801 if test "x$enable_shm" = "xyes"; then
36802 # Check for shared memory
36803 - ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
36804 -echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
36805 -echo "configure:5725: checking for sys/ipc.h" >&5
36806 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
36807 - echo $ac_n "(cached) $ac_c" 1>&6
36808 -else
36809 - cat > conftest.$ac_ext <<EOF
36810 -#line 5730 "configure"
36811 -#include "confdefs.h"
36812 + if test "${ac_cv_header_sys_ipc_h+set}" = set; then
36813 + echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
36814 +echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
36815 +if test "${ac_cv_header_sys_ipc_h+set}" = set; then
36816 + echo $ECHO_N "(cached) $ECHO_C" >&6
36818 +echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
36819 +echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
36820 +else
36821 + # Is the header compilable?
36822 +echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5
36823 +echo $ECHO_N "checking sys/ipc.h usability... $ECHO_C" >&6
36824 +cat >conftest.$ac_ext <<_ACEOF
36825 +/* confdefs.h. */
36826 +_ACEOF
36827 +cat confdefs.h >>conftest.$ac_ext
36828 +cat >>conftest.$ac_ext <<_ACEOF
36829 +/* end confdefs.h. */
36830 +$ac_includes_default
36831 #include <sys/ipc.h>
36832 -EOF
36833 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
36834 -{ (eval echo configure:5735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
36835 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
36836 -if test -z "$ac_err"; then
36837 - rm -rf conftest*
36838 - eval "ac_cv_header_$ac_safe=yes"
36839 +_ACEOF
36840 +rm -f conftest.$ac_objext
36841 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36842 + (eval $ac_compile) 2>conftest.er1
36843 + ac_status=$?
36844 + grep -v '^ *+' conftest.er1 >conftest.err
36845 + rm -f conftest.er1
36846 + cat conftest.err >&5
36847 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36848 + (exit $ac_status); } &&
36849 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36850 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36851 + (eval $ac_try) 2>&5
36852 + ac_status=$?
36853 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36854 + (exit $ac_status); }; } &&
36855 + { ac_try='test -s conftest.$ac_objext'
36856 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36857 + (eval $ac_try) 2>&5
36858 + ac_status=$?
36859 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36860 + (exit $ac_status); }; }; then
36861 + ac_header_compiler=yes
36862 +else
36863 + echo "$as_me: failed program was:" >&5
36864 +sed 's/^/| /' conftest.$ac_ext >&5
36866 +ac_header_compiler=no
36868 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36869 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36870 +echo "${ECHO_T}$ac_header_compiler" >&6
36872 +# Is the header present?
36873 +echo "$as_me:$LINENO: checking sys/ipc.h presence" >&5
36874 +echo $ECHO_N "checking sys/ipc.h presence... $ECHO_C" >&6
36875 +cat >conftest.$ac_ext <<_ACEOF
36876 +/* confdefs.h. */
36877 +_ACEOF
36878 +cat confdefs.h >>conftest.$ac_ext
36879 +cat >>conftest.$ac_ext <<_ACEOF
36880 +/* end confdefs.h. */
36881 +#include <sys/ipc.h>
36882 +_ACEOF
36883 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36884 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36885 + ac_status=$?
36886 + grep -v '^ *+' conftest.er1 >conftest.err
36887 + rm -f conftest.er1
36888 + cat conftest.err >&5
36889 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
36890 + (exit $ac_status); } >/dev/null; then
36891 + if test -s conftest.err; then
36892 + ac_cpp_err=$ac_c_preproc_warn_flag
36893 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36894 + else
36895 + ac_cpp_err=
36896 + fi
36897 else
36898 - echo "$ac_err" >&5
36899 - echo "configure: failed program was:" >&5
36900 - cat conftest.$ac_ext >&5
36901 - rm -rf conftest*
36902 - eval "ac_cv_header_$ac_safe=no"
36903 + ac_cpp_err=yes
36905 -rm -f conftest*
36906 +if test -z "$ac_cpp_err"; then
36907 + ac_header_preproc=yes
36908 +else
36909 + echo "$as_me: failed program was:" >&5
36910 +sed 's/^/| /' conftest.$ac_ext >&5
36912 + ac_header_preproc=no
36914 +rm -f conftest.err conftest.$ac_ext
36915 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36916 +echo "${ECHO_T}$ac_header_preproc" >&6
36918 +# So? What about this header?
36919 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36920 + yes:no: )
36921 + { echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&5
36922 +echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36923 + { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the compiler's result" >&5
36924 +echo "$as_me: WARNING: sys/ipc.h: proceeding with the compiler's result" >&2;}
36925 + ac_header_preproc=yes
36926 + ;;
36927 + no:yes:* )
36928 + { echo "$as_me:$LINENO: WARNING: sys/ipc.h: present but cannot be compiled" >&5
36929 +echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled" >&2;}
36930 + { echo "$as_me:$LINENO: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&5
36931 +echo "$as_me: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&2;}
36932 + { echo "$as_me:$LINENO: WARNING: sys/ipc.h: see the Autoconf documentation" >&5
36933 +echo "$as_me: WARNING: sys/ipc.h: see the Autoconf documentation" >&2;}
36934 + { echo "$as_me:$LINENO: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&5
36935 +echo "$as_me: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&2;}
36936 + { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
36937 +echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;}
36938 + { echo "$as_me:$LINENO: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&5
36939 +echo "$as_me: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&2;}
36941 + cat <<\_ASBOX
36942 +## ------------------------------------------ ##
36943 +## Report this to the AC_PACKAGE_NAME lists. ##
36944 +## ------------------------------------------ ##
36945 +_ASBOX
36946 + ) |
36947 + sed "s/^/$as_me: WARNING: /" >&2
36948 + ;;
36949 +esac
36950 +echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
36951 +echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
36952 +if test "${ac_cv_header_sys_ipc_h+set}" = set; then
36953 + echo $ECHO_N "(cached) $ECHO_C" >&6
36954 +else
36955 + ac_cv_header_sys_ipc_h=$ac_header_preproc
36957 +echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
36958 +echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
36961 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
36962 - echo "$ac_t""yes" 1>&6
36963 - cat >> confdefs.h <<\EOF
36964 +if test $ac_cv_header_sys_ipc_h = yes; then
36965 + cat >>confdefs.h <<\_ACEOF
36966 #define HAVE_IPC_H 1
36967 -EOF
36968 +_ACEOF
36970 else
36971 - echo "$ac_t""no" 1>&6
36972 -no_sys_ipc=yes
36973 + no_sys_ipc=yes
36976 - ac_safe=`echo "sys/shm.h" | sed 'y%./+-%__p_%'`
36977 -echo $ac_n "checking for sys/shm.h""... $ac_c" 1>&6
36978 -echo "configure:5762: checking for sys/shm.h" >&5
36979 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
36980 - echo $ac_n "(cached) $ac_c" 1>&6
36982 + if test "${ac_cv_header_sys_shm_h+set}" = set; then
36983 + echo "$as_me:$LINENO: checking for sys/shm.h" >&5
36984 +echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
36985 +if test "${ac_cv_header_sys_shm_h+set}" = set; then
36986 + echo $ECHO_N "(cached) $ECHO_C" >&6
36988 +echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
36989 +echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
36990 else
36991 - cat > conftest.$ac_ext <<EOF
36992 -#line 5767 "configure"
36993 -#include "confdefs.h"
36994 + # Is the header compilable?
36995 +echo "$as_me:$LINENO: checking sys/shm.h usability" >&5
36996 +echo $ECHO_N "checking sys/shm.h usability... $ECHO_C" >&6
36997 +cat >conftest.$ac_ext <<_ACEOF
36998 +/* confdefs.h. */
36999 +_ACEOF
37000 +cat confdefs.h >>conftest.$ac_ext
37001 +cat >>conftest.$ac_ext <<_ACEOF
37002 +/* end confdefs.h. */
37003 +$ac_includes_default
37004 #include <sys/shm.h>
37005 -EOF
37006 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
37007 -{ (eval echo configure:5772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
37008 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
37009 -if test -z "$ac_err"; then
37010 - rm -rf conftest*
37011 - eval "ac_cv_header_$ac_safe=yes"
37012 +_ACEOF
37013 +rm -f conftest.$ac_objext
37014 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37015 + (eval $ac_compile) 2>conftest.er1
37016 + ac_status=$?
37017 + grep -v '^ *+' conftest.er1 >conftest.err
37018 + rm -f conftest.er1
37019 + cat conftest.err >&5
37020 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37021 + (exit $ac_status); } &&
37022 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37023 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37024 + (eval $ac_try) 2>&5
37025 + ac_status=$?
37026 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37027 + (exit $ac_status); }; } &&
37028 + { ac_try='test -s conftest.$ac_objext'
37029 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37030 + (eval $ac_try) 2>&5
37031 + ac_status=$?
37032 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37033 + (exit $ac_status); }; }; then
37034 + ac_header_compiler=yes
37035 +else
37036 + echo "$as_me: failed program was:" >&5
37037 +sed 's/^/| /' conftest.$ac_ext >&5
37039 +ac_header_compiler=no
37041 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37042 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37043 +echo "${ECHO_T}$ac_header_compiler" >&6
37045 +# Is the header present?
37046 +echo "$as_me:$LINENO: checking sys/shm.h presence" >&5
37047 +echo $ECHO_N "checking sys/shm.h presence... $ECHO_C" >&6
37048 +cat >conftest.$ac_ext <<_ACEOF
37049 +/* confdefs.h. */
37050 +_ACEOF
37051 +cat confdefs.h >>conftest.$ac_ext
37052 +cat >>conftest.$ac_ext <<_ACEOF
37053 +/* end confdefs.h. */
37054 +#include <sys/shm.h>
37055 +_ACEOF
37056 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37057 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37058 + ac_status=$?
37059 + grep -v '^ *+' conftest.er1 >conftest.err
37060 + rm -f conftest.er1
37061 + cat conftest.err >&5
37062 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37063 + (exit $ac_status); } >/dev/null; then
37064 + if test -s conftest.err; then
37065 + ac_cpp_err=$ac_c_preproc_warn_flag
37066 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37067 + else
37068 + ac_cpp_err=
37069 + fi
37070 else
37071 - echo "$ac_err" >&5
37072 - echo "configure: failed program was:" >&5
37073 - cat conftest.$ac_ext >&5
37074 - rm -rf conftest*
37075 - eval "ac_cv_header_$ac_safe=no"
37076 + ac_cpp_err=yes
37078 -rm -f conftest*
37079 +if test -z "$ac_cpp_err"; then
37080 + ac_header_preproc=yes
37081 +else
37082 + echo "$as_me: failed program was:" >&5
37083 +sed 's/^/| /' conftest.$ac_ext >&5
37085 + ac_header_preproc=no
37087 +rm -f conftest.err conftest.$ac_ext
37088 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37089 +echo "${ECHO_T}$ac_header_preproc" >&6
37091 +# So? What about this header?
37092 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37093 + yes:no: )
37094 + { echo "$as_me:$LINENO: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&5
37095 +echo "$as_me: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37096 + { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the compiler's result" >&5
37097 +echo "$as_me: WARNING: sys/shm.h: proceeding with the compiler's result" >&2;}
37098 + ac_header_preproc=yes
37099 + ;;
37100 + no:yes:* )
37101 + { echo "$as_me:$LINENO: WARNING: sys/shm.h: present but cannot be compiled" >&5
37102 +echo "$as_me: WARNING: sys/shm.h: present but cannot be compiled" >&2;}
37103 + { echo "$as_me:$LINENO: WARNING: sys/shm.h: check for missing prerequisite headers?" >&5
37104 +echo "$as_me: WARNING: sys/shm.h: check for missing prerequisite headers?" >&2;}
37105 + { echo "$as_me:$LINENO: WARNING: sys/shm.h: see the Autoconf documentation" >&5
37106 +echo "$as_me: WARNING: sys/shm.h: see the Autoconf documentation" >&2;}
37107 + { echo "$as_me:$LINENO: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&5
37108 +echo "$as_me: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&2;}
37109 + { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
37110 +echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;}
37111 + { echo "$as_me:$LINENO: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&5
37112 +echo "$as_me: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&2;}
37114 + cat <<\_ASBOX
37115 +## ------------------------------------------ ##
37116 +## Report this to the AC_PACKAGE_NAME lists. ##
37117 +## ------------------------------------------ ##
37118 +_ASBOX
37119 + ) |
37120 + sed "s/^/$as_me: WARNING: /" >&2
37121 + ;;
37122 +esac
37123 +echo "$as_me:$LINENO: checking for sys/shm.h" >&5
37124 +echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
37125 +if test "${ac_cv_header_sys_shm_h+set}" = set; then
37126 + echo $ECHO_N "(cached) $ECHO_C" >&6
37127 +else
37128 + ac_cv_header_sys_shm_h=$ac_header_preproc
37130 +echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
37131 +echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
37134 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
37135 - echo "$ac_t""yes" 1>&6
37136 - cat >> confdefs.h <<\EOF
37137 +if test $ac_cv_header_sys_shm_h = yes; then
37138 + cat >>confdefs.h <<\_ACEOF
37139 #define HAVE_SHM_H 1
37140 -EOF
37141 +_ACEOF
37143 else
37144 - echo "$ac_t""no" 1>&6
37145 -no_sys_shm=yes
37146 + no_sys_shm=yes
37151 # Check for the X shared memory extension header file
37152 - echo $ac_n "checking X11/extensions/XShm.h""... $ac_c" 1>&6
37153 -echo "configure:5800: checking X11/extensions/XShm.h" >&5
37154 + echo "$as_me:$LINENO: checking X11/extensions/XShm.h" >&5
37155 +echo $ECHO_N "checking X11/extensions/XShm.h... $ECHO_C" >&6
37156 if test "x$no_xext_lib" = "xyes"; then
37157 - echo "$ac_t""no" 1>&6
37158 + echo "$as_me:$LINENO: result: no" >&5
37159 +echo "${ECHO_T}no" >&6
37160 no_xshm=yes
37161 else
37162 if test -f "$x_includes/X11/extensions/XShm.h"; then
37163 - echo "$ac_t""yes" 1>&6
37164 - cat >> confdefs.h <<\EOF
37165 + echo "$as_me:$LINENO: result: yes" >&5
37166 +echo "${ECHO_T}yes" >&6
37167 + cat >>confdefs.h <<\_ACEOF
37168 #define HAVE_XSHM_H 1
37169 -EOF
37170 +_ACEOF
37172 else
37173 - echo "$ac_t""no" 1>&6
37174 + echo "$as_me:$LINENO: result: no" >&5
37175 +echo "${ECHO_T}no" >&6
37176 no_xshm=yes
37179 @@ -5816,15 +25382,18 @@
37181 # Check if X_LOCALE definition is necessary
37183 -echo $ac_n "checking need -DX_LOCALE""... $ac_c" 1>&6
37184 -echo "configure:5821: checking need -DX_LOCALE" >&5
37185 +echo "$as_me:$LINENO: checking need -DX_LOCALE" >&5
37186 +echo $ECHO_N "checking need -DX_LOCALE... $ECHO_C" >&6
37188 if test "$cross_compiling" = yes; then
37189 need_x_locale=no
37190 else
37191 - cat > conftest.$ac_ext <<EOF
37192 -#line 5827 "configure"
37193 -#include "confdefs.h"
37194 + cat >conftest.$ac_ext <<_ACEOF
37195 +/* confdefs.h. */
37196 +_ACEOF
37197 +cat confdefs.h >>conftest.$ac_ext
37198 +cat >>conftest.$ac_ext <<_ACEOF
37199 +/* end confdefs.h. */
37201 #include <stdio.h>
37202 #include <locale.h>
37203 @@ -5834,65 +25403,107 @@
37205 return setlocale (LC_ALL, "${with_locale}") == NULL;
37207 -EOF
37208 -if { (eval echo configure:5839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
37209 -then
37210 +_ACEOF
37211 +rm -f conftest$ac_exeext
37212 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37213 + (eval $ac_link) 2>&5
37214 + ac_status=$?
37215 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37216 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37217 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37218 + (eval $ac_try) 2>&5
37219 + ac_status=$?
37220 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37221 + (exit $ac_status); }; }; then
37222 need_x_locale=no
37223 else
37224 - echo "configure: failed program was:" >&5
37225 - cat conftest.$ac_ext >&5
37226 - rm -fr conftest*
37227 - need_x_locale=yes
37228 + echo "$as_me: program exited with status $ac_status" >&5
37229 +echo "$as_me: failed program was:" >&5
37230 +sed 's/^/| /' conftest.$ac_ext >&5
37232 +( exit $ac_status )
37233 +need_x_locale=yes
37235 -rm -fr conftest*
37236 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37239 -echo "$ac_t""$need_x_locale" 1>&6
37240 +echo "$as_me:$LINENO: result: $need_x_locale" >&5
37241 +echo "${ECHO_T}$need_x_locale" >&6
37243 use_native_locale=no
37244 if test $need_x_locale = yes; then
37245 GTK_LOCALE_FLAGS="-DX_LOCALE"
37246 else
37247 if test x$with_native_locale = xyes ; then
37248 - echo $ac_n "checking functioning locale support""... $ac_c" 1>&6
37249 -echo "configure:5859: checking functioning locale support" >&5
37251 - cat > conftest.$ac_ext <<EOF
37252 -#line 5862 "configure"
37253 -#include "confdefs.h"
37254 + echo "$as_me:$LINENO: checking functioning locale support" >&5
37255 +echo $ECHO_N "checking functioning locale support... $ECHO_C" >&6
37257 + cat >conftest.$ac_ext <<_ACEOF
37258 +/* confdefs.h. */
37259 +_ACEOF
37260 +cat confdefs.h >>conftest.$ac_ext
37261 +cat >>conftest.$ac_ext <<_ACEOF
37262 +/* end confdefs.h. */
37263 #include <stdlib.h>
37264 -int main() {
37265 +int
37266 +main ()
37269 char c;
37270 if (MB_CUR_MAX == 1) {
37271 wctomb(&c, 42);
37274 -; return 0; }
37275 -EOF
37276 -if { (eval echo configure:5874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
37277 - rm -rf conftest*
37280 + return 0;
37282 +_ACEOF
37283 +rm -f conftest.$ac_objext
37284 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37285 + (eval $ac_compile) 2>conftest.er1
37286 + ac_status=$?
37287 + grep -v '^ *+' conftest.er1 >conftest.err
37288 + rm -f conftest.er1
37289 + cat conftest.err >&5
37290 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37291 + (exit $ac_status); } &&
37292 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37293 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37294 + (eval $ac_try) 2>&5
37295 + ac_status=$?
37296 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37297 + (exit $ac_status); }; } &&
37298 + { ac_try='test -s conftest.$ac_objext'
37299 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37300 + (eval $ac_try) 2>&5
37301 + ac_status=$?
37302 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37303 + (exit $ac_status); }; }; then
37304 use_native_locale=yes
37305 else
37306 - echo "configure: failed program was:" >&5
37307 - cat conftest.$ac_ext >&5
37308 + echo "$as_me: failed program was:" >&5
37309 +sed 's/^/| /' conftest.$ac_ext >&5
37312 -rm -f conftest*
37313 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37315 - echo "$ac_t""$use_native_locale" 1>&6
37316 + echo "$as_me:$LINENO: result: $use_native_locale" >&5
37317 +echo "${ECHO_T}$use_native_locale" >&6
37321 if test x$use_native_locale = xyes ; then
37322 - echo $ac_n "checking if sizeof(wchar_t) == 4""... $ac_c" 1>&6
37323 -echo "configure:5889: checking if sizeof(wchar_t) == 4" >&5
37324 + echo "$as_me:$LINENO: checking if sizeof(wchar_t) == 4" >&5
37325 +echo $ECHO_N "checking if sizeof(wchar_t) == 4... $ECHO_C" >&6
37327 if test "$cross_compiling" = yes; then
37329 else
37330 - cat > conftest.$ac_ext <<EOF
37331 -#line 5895 "configure"
37332 -#include "confdefs.h"
37333 + cat >conftest.$ac_ext <<_ACEOF
37334 +/* confdefs.h. */
37335 +_ACEOF
37336 +cat confdefs.h >>conftest.$ac_ext
37337 +cat >>conftest.$ac_ext <<_ACEOF
37338 +/* end confdefs.h. */
37340 #include <stdlib.h>
37342 @@ -5901,70 +25512,110 @@
37344 return (sizeof(wchar_t) == 4) ? 0 : 1;
37346 -EOF
37347 -if { (eval echo configure:5906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
37348 -then
37349 +_ACEOF
37350 +rm -f conftest$ac_exeext
37351 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37352 + (eval $ac_link) 2>&5
37353 + ac_status=$?
37354 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37355 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37356 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37357 + (eval $ac_try) 2>&5
37358 + ac_status=$?
37359 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37360 + (exit $ac_status); }; }; then
37362 else
37363 - echo "configure: failed program was:" >&5
37364 - cat conftest.$ac_ext >&5
37365 - rm -fr conftest*
37366 - use_native_locale=no
37367 + echo "$as_me: program exited with status $ac_status" >&5
37368 +echo "$as_me: failed program was:" >&5
37369 +sed 's/^/| /' conftest.$ac_ext >&5
37371 +( exit $ac_status )
37372 +use_native_locale=no
37374 -rm -fr conftest*
37375 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37378 - echo "$ac_t""$use_native_locale" 1>&6
37379 + echo "$as_me:$LINENO: result: $use_native_locale" >&5
37380 +echo "${ECHO_T}$use_native_locale" >&6
37383 -if test $use_native_locale = yes ; then
37384 - cat >> confdefs.h <<\EOF
37385 +if test $use_native_locale = yes ; then
37386 + cat >>confdefs.h <<\_ACEOF
37387 #define USE_NATIVE_LOCALE 1
37388 -EOF
37389 +_ACEOF
37393 # Checks for header files.
37394 -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
37395 -echo "configure:5930: checking for ANSI C header files" >&5
37396 -if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
37397 - echo $ac_n "(cached) $ac_c" 1>&6
37398 -else
37399 - cat > conftest.$ac_ext <<EOF
37400 -#line 5935 "configure"
37401 -#include "confdefs.h"
37402 +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
37403 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
37404 +if test "${ac_cv_header_stdc+set}" = set; then
37405 + echo $ECHO_N "(cached) $ECHO_C" >&6
37406 +else
37407 + cat >conftest.$ac_ext <<_ACEOF
37408 +/* confdefs.h. */
37409 +_ACEOF
37410 +cat confdefs.h >>conftest.$ac_ext
37411 +cat >>conftest.$ac_ext <<_ACEOF
37412 +/* end confdefs.h. */
37413 #include <stdlib.h>
37414 #include <stdarg.h>
37415 #include <string.h>
37416 #include <float.h>
37417 -EOF
37418 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
37419 -{ (eval echo configure:5943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
37420 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
37421 -if test -z "$ac_err"; then
37422 - rm -rf conftest*
37424 +int
37425 +main ()
37429 + return 0;
37431 +_ACEOF
37432 +rm -f conftest.$ac_objext
37433 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37434 + (eval $ac_compile) 2>conftest.er1
37435 + ac_status=$?
37436 + grep -v '^ *+' conftest.er1 >conftest.err
37437 + rm -f conftest.er1
37438 + cat conftest.err >&5
37439 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37440 + (exit $ac_status); } &&
37441 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37442 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37443 + (eval $ac_try) 2>&5
37444 + ac_status=$?
37445 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37446 + (exit $ac_status); }; } &&
37447 + { ac_try='test -s conftest.$ac_objext'
37448 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37449 + (eval $ac_try) 2>&5
37450 + ac_status=$?
37451 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37452 + (exit $ac_status); }; }; then
37453 ac_cv_header_stdc=yes
37454 else
37455 - echo "$ac_err" >&5
37456 - echo "configure: failed program was:" >&5
37457 - cat conftest.$ac_ext >&5
37458 - rm -rf conftest*
37459 - ac_cv_header_stdc=no
37460 + echo "$as_me: failed program was:" >&5
37461 +sed 's/^/| /' conftest.$ac_ext >&5
37463 +ac_cv_header_stdc=no
37465 -rm -f conftest*
37466 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37468 if test $ac_cv_header_stdc = yes; then
37469 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
37470 -cat > conftest.$ac_ext <<EOF
37471 -#line 5960 "configure"
37472 -#include "confdefs.h"
37473 + cat >conftest.$ac_ext <<_ACEOF
37474 +/* confdefs.h. */
37475 +_ACEOF
37476 +cat confdefs.h >>conftest.$ac_ext
37477 +cat >>conftest.$ac_ext <<_ACEOF
37478 +/* end confdefs.h. */
37479 #include <string.h>
37480 -EOF
37482 +_ACEOF
37483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37484 - egrep "memchr" >/dev/null 2>&1; then
37485 + $EGREP "memchr" >/dev/null 2>&1; then
37487 else
37488 - rm -rf conftest*
37489 ac_cv_header_stdc=no
37491 rm -f conftest*
37492 @@ -5973,16 +25624,19 @@
37494 if test $ac_cv_header_stdc = yes; then
37495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
37496 -cat > conftest.$ac_ext <<EOF
37497 -#line 5978 "configure"
37498 -#include "confdefs.h"
37499 + cat >conftest.$ac_ext <<_ACEOF
37500 +/* confdefs.h. */
37501 +_ACEOF
37502 +cat confdefs.h >>conftest.$ac_ext
37503 +cat >>conftest.$ac_ext <<_ACEOF
37504 +/* end confdefs.h. */
37505 #include <stdlib.h>
37506 -EOF
37508 +_ACEOF
37509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37510 - egrep "free" >/dev/null 2>&1; then
37511 + $EGREP "free" >/dev/null 2>&1; then
37513 else
37514 - rm -rf conftest*
37515 ac_cv_header_stdc=no
37517 rm -f conftest*
37518 @@ -5991,135 +25645,198 @@
37520 if test $ac_cv_header_stdc = yes; then
37521 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
37522 -if test "$cross_compiling" = yes; then
37523 + if test "$cross_compiling" = yes; then
37525 else
37526 - cat > conftest.$ac_ext <<EOF
37527 -#line 5999 "configure"
37528 -#include "confdefs.h"
37529 + cat >conftest.$ac_ext <<_ACEOF
37530 +/* confdefs.h. */
37531 +_ACEOF
37532 +cat confdefs.h >>conftest.$ac_ext
37533 +cat >>conftest.$ac_ext <<_ACEOF
37534 +/* end confdefs.h. */
37535 #include <ctype.h>
37536 -#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
37537 -#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
37538 -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
37539 -int main () { int i; for (i = 0; i < 256; i++)
37540 -if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
37541 -exit (0); }
37542 +#if ((' ' & 0x0FF) == 0x020)
37543 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
37544 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
37545 +#else
37546 +# define ISLOWER(c) \
37547 + (('a' <= (c) && (c) <= 'i') \
37548 + || ('j' <= (c) && (c) <= 'r') \
37549 + || ('s' <= (c) && (c) <= 'z'))
37550 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
37551 +#endif
37553 -EOF
37554 -if { (eval echo configure:6010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
37555 -then
37556 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
37557 +int
37558 +main ()
37560 + int i;
37561 + for (i = 0; i < 256; i++)
37562 + if (XOR (islower (i), ISLOWER (i))
37563 + || toupper (i) != TOUPPER (i))
37564 + exit(2);
37565 + exit (0);
37567 +_ACEOF
37568 +rm -f conftest$ac_exeext
37569 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37570 + (eval $ac_link) 2>&5
37571 + ac_status=$?
37572 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37573 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37574 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37575 + (eval $ac_try) 2>&5
37576 + ac_status=$?
37577 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37578 + (exit $ac_status); }; }; then
37580 else
37581 - echo "configure: failed program was:" >&5
37582 - cat conftest.$ac_ext >&5
37583 - rm -fr conftest*
37584 - ac_cv_header_stdc=no
37585 + echo "$as_me: program exited with status $ac_status" >&5
37586 +echo "$as_me: failed program was:" >&5
37587 +sed 's/^/| /' conftest.$ac_ext >&5
37589 +( exit $ac_status )
37590 +ac_cv_header_stdc=no
37592 -rm -fr conftest*
37593 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37599 -echo "$ac_t""$ac_cv_header_stdc" 1>&6
37600 +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
37601 +echo "${ECHO_T}$ac_cv_header_stdc" >&6
37602 if test $ac_cv_header_stdc = yes; then
37603 - cat >> confdefs.h <<\EOF
37605 +cat >>confdefs.h <<\_ACEOF
37606 #define STDC_HEADERS 1
37607 -EOF
37608 +_ACEOF
37613 # Checks for typedefs, structures, and compiler characteristics.
37614 -echo $ac_n "checking for working const""... $ac_c" 1>&6
37615 -echo "configure:6036: checking for working const" >&5
37616 -if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
37617 - echo $ac_n "(cached) $ac_c" 1>&6
37618 -else
37619 - cat > conftest.$ac_ext <<EOF
37620 -#line 6041 "configure"
37621 -#include "confdefs.h"
37622 +echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
37623 +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
37624 +if test "${ac_cv_c_const+set}" = set; then
37625 + echo $ECHO_N "(cached) $ECHO_C" >&6
37626 +else
37627 + cat >conftest.$ac_ext <<_ACEOF
37628 +/* confdefs.h. */
37629 +_ACEOF
37630 +cat confdefs.h >>conftest.$ac_ext
37631 +cat >>conftest.$ac_ext <<_ACEOF
37632 +/* end confdefs.h. */
37634 -int main() {
37635 +int
37636 +main ()
37638 +/* FIXME: Include the comments suggested by Paul. */
37639 +#ifndef __cplusplus
37640 + /* Ultrix mips cc rejects this. */
37641 + typedef int charset[2];
37642 + const charset x;
37643 + /* SunOS 4.1.1 cc rejects this. */
37644 + char const *const *ccp;
37645 + char **p;
37646 + /* NEC SVR4.0.2 mips cc rejects this. */
37647 + struct point {int x, y;};
37648 + static struct point const zero = {0,0};
37649 + /* AIX XL C 1.02.0.0 rejects this.
37650 + It does not let you subtract one const X* pointer from another in
37651 + an arm of an if-expression whose if-part is not a constant
37652 + expression */
37653 + const char *g = "string";
37654 + ccp = &g + (g ? g-g : 0);
37655 + /* HPUX 7.0 cc rejects these. */
37656 + ++ccp;
37657 + p = (char**) ccp;
37658 + ccp = (char const *const *) p;
37659 + { /* SCO 3.2v4 cc rejects this. */
37660 + char *t;
37661 + char const *s = 0 ? (char *) 0 : (char const *) 0;
37663 -/* Ultrix mips cc rejects this. */
37664 -typedef int charset[2]; const charset x;
37665 -/* SunOS 4.1.1 cc rejects this. */
37666 -char const *const *ccp;
37667 -char **p;
37668 -/* NEC SVR4.0.2 mips cc rejects this. */
37669 -struct point {int x, y;};
37670 -static struct point const zero = {0,0};
37671 -/* AIX XL C 1.02.0.0 rejects this.
37672 - It does not let you subtract one const X* pointer from another in an arm
37673 - of an if-expression whose if-part is not a constant expression */
37674 -const char *g = "string";
37675 -ccp = &g + (g ? g-g : 0);
37676 -/* HPUX 7.0 cc rejects these. */
37677 -++ccp;
37678 -p = (char**) ccp;
37679 -ccp = (char const *const *) p;
37680 -{ /* SCO 3.2v4 cc rejects this. */
37681 - char *t;
37682 - char const *s = 0 ? (char *) 0 : (char const *) 0;
37684 - *t++ = 0;
37686 -{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
37687 - int x[] = {25, 17};
37688 - const int *foo = &x[0];
37689 - ++foo;
37691 -{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
37692 - typedef const int *iptr;
37693 - iptr p = 0;
37694 - ++p;
37696 -{ /* AIX XL C 1.02.0.0 rejects this saying
37697 - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
37698 - struct s { int j; const int *ap[3]; };
37699 - struct s *b; b->j = 5;
37701 -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
37702 - const int foo = 10;
37704 + *t++ = 0;
37706 + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
37707 + int x[] = {25, 17};
37708 + const int *foo = &x[0];
37709 + ++foo;
37711 + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
37712 + typedef const int *iptr;
37713 + iptr p = 0;
37714 + ++p;
37716 + { /* AIX XL C 1.02.0.0 rejects this saying
37717 + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
37718 + struct s { int j; const int *ap[3]; };
37719 + struct s *b; b->j = 5;
37721 + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
37722 + const int foo = 10;
37724 +#endif
37726 -; return 0; }
37727 -EOF
37728 -if { (eval echo configure:6090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
37729 - rm -rf conftest*
37731 + return 0;
37733 +_ACEOF
37734 +rm -f conftest.$ac_objext
37735 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37736 + (eval $ac_compile) 2>conftest.er1
37737 + ac_status=$?
37738 + grep -v '^ *+' conftest.er1 >conftest.err
37739 + rm -f conftest.er1
37740 + cat conftest.err >&5
37741 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37742 + (exit $ac_status); } &&
37743 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37744 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37745 + (eval $ac_try) 2>&5
37746 + ac_status=$?
37747 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37748 + (exit $ac_status); }; } &&
37749 + { ac_try='test -s conftest.$ac_objext'
37750 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37751 + (eval $ac_try) 2>&5
37752 + ac_status=$?
37753 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37754 + (exit $ac_status); }; }; then
37755 ac_cv_c_const=yes
37756 else
37757 - echo "configure: failed program was:" >&5
37758 - cat conftest.$ac_ext >&5
37759 - rm -rf conftest*
37760 - ac_cv_c_const=no
37761 + echo "$as_me: failed program was:" >&5
37762 +sed 's/^/| /' conftest.$ac_ext >&5
37764 +ac_cv_c_const=no
37766 -rm -f conftest*
37767 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37770 -echo "$ac_t""$ac_cv_c_const" 1>&6
37771 +echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
37772 +echo "${ECHO_T}$ac_cv_c_const" >&6
37773 if test $ac_cv_c_const = no; then
37774 - cat >> confdefs.h <<\EOF
37775 -#define const
37776 -EOF
37778 +cat >>confdefs.h <<\_ACEOF
37779 +#define const
37780 +_ACEOF
37785 # Checks for library functions.
37786 -echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
37787 -echo "configure:6113: checking return type of signal handlers" >&5
37788 -if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
37789 - echo $ac_n "(cached) $ac_c" 1>&6
37790 -else
37791 - cat > conftest.$ac_ext <<EOF
37792 -#line 6118 "configure"
37793 -#include "confdefs.h"
37794 +echo "$as_me:$LINENO: checking return type of signal handlers" >&5
37795 +echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
37796 +if test "${ac_cv_type_signal+set}" = set; then
37797 + echo $ECHO_N "(cached) $ECHO_C" >&6
37798 +else
37799 + cat >conftest.$ac_ext <<_ACEOF
37800 +/* confdefs.h. */
37801 +_ACEOF
37802 +cat confdefs.h >>conftest.$ac_ext
37803 +cat >>conftest.$ac_ext <<_ACEOF
37804 +/* end confdefs.h. */
37805 #include <sys/types.h>
37806 #include <signal.h>
37807 #ifdef signal
37808 -#undef signal
37809 +# undef signal
37810 #endif
37811 #ifdef __cplusplus
37812 extern "C" void (*signal (int, void (*)(int)))(int);
37813 @@ -6127,134 +25844,320 @@
37814 void (*signal ()) ();
37815 #endif
37817 -int main() {
37818 +int
37819 +main ()
37821 int i;
37822 -; return 0; }
37823 -EOF
37824 -if { (eval echo configure:6135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
37825 - rm -rf conftest*
37827 + return 0;
37829 +_ACEOF
37830 +rm -f conftest.$ac_objext
37831 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37832 + (eval $ac_compile) 2>conftest.er1
37833 + ac_status=$?
37834 + grep -v '^ *+' conftest.er1 >conftest.err
37835 + rm -f conftest.er1
37836 + cat conftest.err >&5
37837 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37838 + (exit $ac_status); } &&
37839 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37840 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37841 + (eval $ac_try) 2>&5
37842 + ac_status=$?
37843 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37844 + (exit $ac_status); }; } &&
37845 + { ac_try='test -s conftest.$ac_objext'
37846 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37847 + (eval $ac_try) 2>&5
37848 + ac_status=$?
37849 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37850 + (exit $ac_status); }; }; then
37851 ac_cv_type_signal=void
37852 else
37853 - echo "configure: failed program was:" >&5
37854 - cat conftest.$ac_ext >&5
37855 - rm -rf conftest*
37856 - ac_cv_type_signal=int
37857 + echo "$as_me: failed program was:" >&5
37858 +sed 's/^/| /' conftest.$ac_ext >&5
37860 +ac_cv_type_signal=int
37862 -rm -f conftest*
37863 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37865 +echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
37866 +echo "${ECHO_T}$ac_cv_type_signal" >&6
37868 -echo "$ac_t""$ac_cv_type_signal" 1>&6
37869 -cat >> confdefs.h <<EOF
37870 +cat >>confdefs.h <<_ACEOF
37871 #define RETSIGTYPE $ac_cv_type_signal
37872 -EOF
37873 +_ACEOF
37877 -for ac_hdr in unistd.h
37879 +for ac_header in stdlib.h unistd.h
37881 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
37882 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
37883 -echo "configure:6157: checking for $ac_hdr" >&5
37884 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
37885 - echo $ac_n "(cached) $ac_c" 1>&6
37886 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37887 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
37888 + echo "$as_me:$LINENO: checking for $ac_header" >&5
37889 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37890 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
37891 + echo $ECHO_N "(cached) $ECHO_C" >&6
37893 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37894 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37895 +else
37896 + # Is the header compilable?
37897 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
37898 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37899 +cat >conftest.$ac_ext <<_ACEOF
37900 +/* confdefs.h. */
37901 +_ACEOF
37902 +cat confdefs.h >>conftest.$ac_ext
37903 +cat >>conftest.$ac_ext <<_ACEOF
37904 +/* end confdefs.h. */
37905 +$ac_includes_default
37906 +#include <$ac_header>
37907 +_ACEOF
37908 +rm -f conftest.$ac_objext
37909 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37910 + (eval $ac_compile) 2>conftest.er1
37911 + ac_status=$?
37912 + grep -v '^ *+' conftest.er1 >conftest.err
37913 + rm -f conftest.er1
37914 + cat conftest.err >&5
37915 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37916 + (exit $ac_status); } &&
37917 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37918 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37919 + (eval $ac_try) 2>&5
37920 + ac_status=$?
37921 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37922 + (exit $ac_status); }; } &&
37923 + { ac_try='test -s conftest.$ac_objext'
37924 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37925 + (eval $ac_try) 2>&5
37926 + ac_status=$?
37927 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37928 + (exit $ac_status); }; }; then
37929 + ac_header_compiler=yes
37930 +else
37931 + echo "$as_me: failed program was:" >&5
37932 +sed 's/^/| /' conftest.$ac_ext >&5
37934 +ac_header_compiler=no
37936 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37937 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37938 +echo "${ECHO_T}$ac_header_compiler" >&6
37940 +# Is the header present?
37941 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
37942 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37943 +cat >conftest.$ac_ext <<_ACEOF
37944 +/* confdefs.h. */
37945 +_ACEOF
37946 +cat confdefs.h >>conftest.$ac_ext
37947 +cat >>conftest.$ac_ext <<_ACEOF
37948 +/* end confdefs.h. */
37949 +#include <$ac_header>
37950 +_ACEOF
37951 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37952 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37953 + ac_status=$?
37954 + grep -v '^ *+' conftest.er1 >conftest.err
37955 + rm -f conftest.er1
37956 + cat conftest.err >&5
37957 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
37958 + (exit $ac_status); } >/dev/null; then
37959 + if test -s conftest.err; then
37960 + ac_cpp_err=$ac_c_preproc_warn_flag
37961 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37962 + else
37963 + ac_cpp_err=
37964 + fi
37965 else
37966 - cat > conftest.$ac_ext <<EOF
37967 -#line 6162 "configure"
37968 -#include "confdefs.h"
37969 -#include <$ac_hdr>
37970 -EOF
37971 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
37972 -{ (eval echo configure:6167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
37973 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
37974 -if test -z "$ac_err"; then
37975 - rm -rf conftest*
37976 - eval "ac_cv_header_$ac_safe=yes"
37977 + ac_cpp_err=yes
37979 +if test -z "$ac_cpp_err"; then
37980 + ac_header_preproc=yes
37981 else
37982 - echo "$ac_err" >&5
37983 - echo "configure: failed program was:" >&5
37984 - cat conftest.$ac_ext >&5
37985 - rm -rf conftest*
37986 - eval "ac_cv_header_$ac_safe=no"
37987 + echo "$as_me: failed program was:" >&5
37988 +sed 's/^/| /' conftest.$ac_ext >&5
37990 + ac_header_preproc=no
37992 +rm -f conftest.err conftest.$ac_ext
37993 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37994 +echo "${ECHO_T}$ac_header_preproc" >&6
37996 +# So? What about this header?
37997 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37998 + yes:no: )
37999 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38000 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38001 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38002 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38003 + ac_header_preproc=yes
38004 + ;;
38005 + no:yes:* )
38006 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38007 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38008 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38009 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38010 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38011 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38012 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38013 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38014 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38015 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38016 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38017 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38019 + cat <<\_ASBOX
38020 +## ------------------------------------------ ##
38021 +## Report this to the AC_PACKAGE_NAME lists. ##
38022 +## ------------------------------------------ ##
38023 +_ASBOX
38024 + ) |
38025 + sed "s/^/$as_me: WARNING: /" >&2
38026 + ;;
38027 +esac
38028 +echo "$as_me:$LINENO: checking for $ac_header" >&5
38029 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38030 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
38031 + echo $ECHO_N "(cached) $ECHO_C" >&6
38032 +else
38033 + eval "$as_ac_Header=\$ac_header_preproc"
38035 -rm -f conftest*
38036 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38037 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38040 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
38041 - echo "$ac_t""yes" 1>&6
38042 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
38043 - cat >> confdefs.h <<EOF
38044 -#define $ac_tr_hdr 1
38045 -EOF
38047 -else
38048 - echo "$ac_t""no" 1>&6
38049 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
38050 + cat >>confdefs.h <<_ACEOF
38051 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38052 +_ACEOF
38056 done
38059 for ac_func in getpagesize
38061 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
38062 -echo "configure:6196: checking for $ac_func" >&5
38063 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
38064 - echo $ac_n "(cached) $ac_c" 1>&6
38065 -else
38066 - cat > conftest.$ac_ext <<EOF
38067 -#line 6201 "configure"
38068 -#include "confdefs.h"
38069 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38070 +echo "$as_me:$LINENO: checking for $ac_func" >&5
38071 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38072 +if eval "test \"\${$as_ac_var+set}\" = set"; then
38073 + echo $ECHO_N "(cached) $ECHO_C" >&6
38074 +else
38075 + cat >conftest.$ac_ext <<_ACEOF
38076 +/* confdefs.h. */
38077 +_ACEOF
38078 +cat confdefs.h >>conftest.$ac_ext
38079 +cat >>conftest.$ac_ext <<_ACEOF
38080 +/* end confdefs.h. */
38081 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38082 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
38083 +#define $ac_func innocuous_$ac_func
38085 /* System header to define __stub macros and hopefully few prototypes,
38086 - which can conflict with char $ac_func(); below. */
38087 -#include <assert.h>
38088 -/* Override any gcc2 internal prototype to avoid an error. */
38089 -/* We use char because int might match the return type of a gcc2
38090 - builtin and then its argument prototype would still apply. */
38091 -char $ac_func();
38092 + which can conflict with char $ac_func (); below.
38093 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38094 + <limits.h> exists even on freestanding compilers. */
38096 +#ifdef __STDC__
38097 +# include <limits.h>
38098 +#else
38099 +# include <assert.h>
38100 +#endif
38102 -int main() {
38103 +#undef $ac_func
38105 +/* Override any gcc2 internal prototype to avoid an error. */
38106 +#ifdef __cplusplus
38107 +extern "C"
38109 +#endif
38110 +/* We use char because int might match the return type of a gcc2
38111 + builtin and then its argument prototype would still apply. */
38112 +char $ac_func ();
38113 /* The GNU C library defines this for functions which it implements
38114 to always fail with ENOSYS. Some functions are actually named
38115 something starting with __ and the normal name is an alias. */
38116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38117 choke me
38118 #else
38119 -$ac_func();
38120 +char (*f) () = $ac_func;
38121 +#endif
38122 +#ifdef __cplusplus
38124 #endif
38126 -; return 0; }
38127 -EOF
38128 -if { (eval echo configure:6224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38129 - rm -rf conftest*
38130 - eval "ac_cv_func_$ac_func=yes"
38131 -else
38132 - echo "configure: failed program was:" >&5
38133 - cat conftest.$ac_ext >&5
38134 - rm -rf conftest*
38135 - eval "ac_cv_func_$ac_func=no"
38137 -rm -f conftest*
38139 +int
38140 +main ()
38142 +return f != $ac_func;
38144 + return 0;
38146 +_ACEOF
38147 +rm -f conftest.$ac_objext conftest$ac_exeext
38148 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38149 + (eval $ac_link) 2>conftest.er1
38150 + ac_status=$?
38151 + grep -v '^ *+' conftest.er1 >conftest.err
38152 + rm -f conftest.er1
38153 + cat conftest.err >&5
38154 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38155 + (exit $ac_status); } &&
38156 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38157 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38158 + (eval $ac_try) 2>&5
38159 + ac_status=$?
38160 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38161 + (exit $ac_status); }; } &&
38162 + { ac_try='test -s conftest$ac_exeext'
38163 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38164 + (eval $ac_try) 2>&5
38165 + ac_status=$?
38166 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38167 + (exit $ac_status); }; }; then
38168 + eval "$as_ac_var=yes"
38169 +else
38170 + echo "$as_me: failed program was:" >&5
38171 +sed 's/^/| /' conftest.$ac_ext >&5
38173 +eval "$as_ac_var=no"
38175 +rm -f conftest.err conftest.$ac_objext \
38176 + conftest$ac_exeext conftest.$ac_ext
38178 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38179 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38180 +if test `eval echo '${'$as_ac_var'}'` = yes; then
38181 + cat >>confdefs.h <<_ACEOF
38182 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38183 +_ACEOF
38185 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
38186 - echo "$ac_t""yes" 1>&6
38187 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
38188 - cat >> confdefs.h <<EOF
38189 -#define $ac_tr_func 1
38190 -EOF
38192 -else
38193 - echo "$ac_t""no" 1>&6
38195 done
38197 -echo $ac_n "checking for working mmap""... $ac_c" 1>&6
38198 -echo "configure:6249: checking for working mmap" >&5
38199 -if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
38200 - echo $ac_n "(cached) $ac_c" 1>&6
38201 +echo "$as_me:$LINENO: checking for working mmap" >&5
38202 +echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
38203 +if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
38204 + echo $ECHO_N "(cached) $ECHO_C" >&6
38205 else
38206 if test "$cross_compiling" = yes; then
38207 ac_cv_func_mmap_fixed_mapped=no
38208 else
38209 - cat > conftest.$ac_ext <<EOF
38210 -#line 6257 "configure"
38211 -#include "confdefs.h"
38212 + cat >conftest.$ac_ext <<_ACEOF
38213 +/* confdefs.h. */
38214 +_ACEOF
38215 +cat confdefs.h >>conftest.$ac_ext
38216 +cat >>conftest.$ac_ext <<_ACEOF
38217 +/* end confdefs.h. */
38218 +$ac_includes_default
38219 +/* malloc might have been renamed as rpl_malloc. */
38220 +#undef malloc
38222 /* Thanks to Mike Haertel and Jim Avera for this test.
38223 Here is a matrix of mmap possibilities:
38224 @@ -6268,34 +26171,34 @@
38225 back from the file, nor mmap's back from the file at a different
38226 address. (There have been systems where private was not correctly
38227 implemented like the infamous i386 svr4.0, and systems where the
38228 - VM page cache was not coherent with the filesystem buffer cache
38229 + VM page cache was not coherent with the file system buffer cache
38230 like early versions of FreeBSD and possibly contemporary NetBSD.)
38231 For shared mappings, we should conversely verify that changes get
38232 - propogated back to all the places they're supposed to be.
38233 + propagated back to all the places they're supposed to be.
38235 Grep wants private fixed already mapped.
38236 The main things grep needs to know about mmap are:
38237 * does it exist and is it safe to write into the mmap'd area
38238 * how to use it (BSD variants) */
38239 -#include <sys/types.h>
38241 #include <fcntl.h>
38242 #include <sys/mman.h>
38244 -/* This mess was copied from the GNU getpagesize.h. */
38245 -#ifndef HAVE_GETPAGESIZE
38246 -# ifdef HAVE_UNISTD_H
38247 -# include <unistd.h>
38248 -# endif
38249 +#if !STDC_HEADERS && !HAVE_STDLIB_H
38250 +char *malloc ();
38251 +#endif
38253 +/* This mess was copied from the GNU getpagesize.h. */
38254 +#if !HAVE_GETPAGESIZE
38255 /* Assume that all systems that can run configure have sys/param.h. */
38256 -# ifndef HAVE_SYS_PARAM_H
38257 +# if !HAVE_SYS_PARAM_H
38258 # define HAVE_SYS_PARAM_H 1
38259 # endif
38261 # ifdef _SC_PAGESIZE
38262 # define getpagesize() sysconf(_SC_PAGESIZE)
38263 # else /* no _SC_PAGESIZE */
38264 -# ifdef HAVE_SYS_PARAM_H
38265 +# if HAVE_SYS_PARAM_H
38266 # include <sys/param.h>
38267 # ifdef EXEC_PAGESIZE
38268 # define getpagesize() EXEC_PAGESIZE
38269 @@ -6318,962 +26221,2169 @@
38270 # else /* no HAVE_SYS_PARAM_H */
38271 # define getpagesize() 8192 /* punt totally */
38272 # endif /* no HAVE_SYS_PARAM_H */
38273 -# endif /* no _SC_PAGESIZE */
38275 -#endif /* no HAVE_GETPAGESIZE */
38277 -#ifdef __cplusplus
38278 -extern "C" { void *malloc(unsigned); }
38279 -#else
38280 -char *malloc();
38281 -#endif
38282 +# endif /* no _SC_PAGESIZE */
38284 +#endif /* no HAVE_GETPAGESIZE */
38287 -main()
38288 +main ()
38290 - char *data, *data2, *data3;
38291 - int i, pagesize;
38292 - int fd;
38294 - pagesize = getpagesize();
38296 - /*
38297 - * First, make a file with some known garbage in it.
38298 - */
38299 - data = malloc(pagesize);
38300 - if (!data)
38301 - exit(1);
38302 - for (i = 0; i < pagesize; ++i)
38303 - *(data + i) = rand();
38304 - umask(0);
38305 - fd = creat("conftestmmap", 0600);
38306 - if (fd < 0)
38307 - exit(1);
38308 - if (write(fd, data, pagesize) != pagesize)
38309 - exit(1);
38310 - close(fd);
38312 - /*
38313 - * Next, try to mmap the file at a fixed address which
38314 - * already has something else allocated at it. If we can,
38315 - * also make sure that we see the same garbage.
38316 - */
38317 - fd = open("conftestmmap", O_RDWR);
38318 - if (fd < 0)
38319 - exit(1);
38320 - data2 = malloc(2 * pagesize);
38321 - if (!data2)
38322 - exit(1);
38323 - data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
38324 - if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
38325 - MAP_PRIVATE | MAP_FIXED, fd, 0L))
38326 - exit(1);
38327 - for (i = 0; i < pagesize; ++i)
38328 - if (*(data + i) != *(data2 + i))
38329 - exit(1);
38331 - /*
38332 - * Finally, make sure that changes to the mapped area
38333 - * do not percolate back to the file as seen by read().
38334 - * (This is a bug on some variants of i386 svr4.0.)
38335 - */
38336 - for (i = 0; i < pagesize; ++i)
38337 - *(data2 + i) = *(data2 + i) + 1;
38338 - data3 = malloc(pagesize);
38339 - if (!data3)
38340 - exit(1);
38341 - if (read(fd, data3, pagesize) != pagesize)
38342 - exit(1);
38343 - for (i = 0; i < pagesize; ++i)
38344 - if (*(data + i) != *(data3 + i))
38345 - exit(1);
38346 - close(fd);
38347 - unlink("conftestmmap");
38348 - exit(0);
38349 + char *data, *data2, *data3;
38350 + int i, pagesize;
38351 + int fd;
38353 + pagesize = getpagesize ();
38355 + /* First, make a file with some known garbage in it. */
38356 + data = (char *) malloc (pagesize);
38357 + if (!data)
38358 + exit (1);
38359 + for (i = 0; i < pagesize; ++i)
38360 + *(data + i) = rand ();
38361 + umask (0);
38362 + fd = creat ("conftest.mmap", 0600);
38363 + if (fd < 0)
38364 + exit (1);
38365 + if (write (fd, data, pagesize) != pagesize)
38366 + exit (1);
38367 + close (fd);
38369 + /* Next, try to mmap the file at a fixed address which already has
38370 + something else allocated at it. If we can, also make sure that
38371 + we see the same garbage. */
38372 + fd = open ("conftest.mmap", O_RDWR);
38373 + if (fd < 0)
38374 + exit (1);
38375 + data2 = (char *) malloc (2 * pagesize);
38376 + if (!data2)
38377 + exit (1);
38378 + data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
38379 + if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
38380 + MAP_PRIVATE | MAP_FIXED, fd, 0L))
38381 + exit (1);
38382 + for (i = 0; i < pagesize; ++i)
38383 + if (*(data + i) != *(data2 + i))
38384 + exit (1);
38386 + /* Finally, make sure that changes to the mapped area do not
38387 + percolate back to the file as seen by read(). (This is a bug on
38388 + some variants of i386 svr4.0.) */
38389 + for (i = 0; i < pagesize; ++i)
38390 + *(data2 + i) = *(data2 + i) + 1;
38391 + data3 = (char *) malloc (pagesize);
38392 + if (!data3)
38393 + exit (1);
38394 + if (read (fd, data3, pagesize) != pagesize)
38395 + exit (1);
38396 + for (i = 0; i < pagesize; ++i)
38397 + if (*(data + i) != *(data3 + i))
38398 + exit (1);
38399 + close (fd);
38400 + exit (0);
38403 -EOF
38404 -if { (eval echo configure:6397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
38405 -then
38406 +_ACEOF
38407 +rm -f conftest$ac_exeext
38408 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38409 + (eval $ac_link) 2>&5
38410 + ac_status=$?
38411 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38412 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38413 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38414 + (eval $ac_try) 2>&5
38415 + ac_status=$?
38416 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38417 + (exit $ac_status); }; }; then
38418 ac_cv_func_mmap_fixed_mapped=yes
38419 else
38420 - echo "configure: failed program was:" >&5
38421 - cat conftest.$ac_ext >&5
38422 - rm -fr conftest*
38423 - ac_cv_func_mmap_fixed_mapped=no
38424 + echo "$as_me: program exited with status $ac_status" >&5
38425 +echo "$as_me: failed program was:" >&5
38426 +sed 's/^/| /' conftest.$ac_ext >&5
38428 +( exit $ac_status )
38429 +ac_cv_func_mmap_fixed_mapped=no
38431 -rm -fr conftest*
38432 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38437 -echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
38438 +echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
38439 +echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
38440 if test $ac_cv_func_mmap_fixed_mapped = yes; then
38441 - cat >> confdefs.h <<\EOF
38443 +cat >>confdefs.h <<\_ACEOF
38444 #define HAVE_MMAP 1
38445 -EOF
38446 +_ACEOF
38449 +rm -f conftest.mmap
38453 for ac_func in getresuid
38455 -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
38456 -echo "configure:6423: checking for $ac_func" >&5
38457 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
38458 - echo $ac_n "(cached) $ac_c" 1>&6
38459 -else
38460 - cat > conftest.$ac_ext <<EOF
38461 -#line 6428 "configure"
38462 -#include "confdefs.h"
38463 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38464 +echo "$as_me:$LINENO: checking for $ac_func" >&5
38465 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38466 +if eval "test \"\${$as_ac_var+set}\" = set"; then
38467 + echo $ECHO_N "(cached) $ECHO_C" >&6
38468 +else
38469 + cat >conftest.$ac_ext <<_ACEOF
38470 +/* confdefs.h. */
38471 +_ACEOF
38472 +cat confdefs.h >>conftest.$ac_ext
38473 +cat >>conftest.$ac_ext <<_ACEOF
38474 +/* end confdefs.h. */
38475 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38476 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
38477 +#define $ac_func innocuous_$ac_func
38479 /* System header to define __stub macros and hopefully few prototypes,
38480 - which can conflict with char $ac_func(); below. */
38481 -#include <assert.h>
38482 -/* Override any gcc2 internal prototype to avoid an error. */
38483 -/* We use char because int might match the return type of a gcc2
38484 - builtin and then its argument prototype would still apply. */
38485 -char $ac_func();
38486 + which can conflict with char $ac_func (); below.
38487 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38488 + <limits.h> exists even on freestanding compilers. */
38490 +#ifdef __STDC__
38491 +# include <limits.h>
38492 +#else
38493 +# include <assert.h>
38494 +#endif
38496 -int main() {
38497 +#undef $ac_func
38499 +/* Override any gcc2 internal prototype to avoid an error. */
38500 +#ifdef __cplusplus
38501 +extern "C"
38503 +#endif
38504 +/* We use char because int might match the return type of a gcc2
38505 + builtin and then its argument prototype would still apply. */
38506 +char $ac_func ();
38507 /* The GNU C library defines this for functions which it implements
38508 to always fail with ENOSYS. Some functions are actually named
38509 something starting with __ and the normal name is an alias. */
38510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38511 choke me
38512 #else
38513 -$ac_func();
38514 +char (*f) () = $ac_func;
38515 +#endif
38516 +#ifdef __cplusplus
38518 #endif
38520 -; return 0; }
38521 -EOF
38522 -if { (eval echo configure:6451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38523 - rm -rf conftest*
38524 - eval "ac_cv_func_$ac_func=yes"
38525 -else
38526 - echo "configure: failed program was:" >&5
38527 - cat conftest.$ac_ext >&5
38528 - rm -rf conftest*
38529 - eval "ac_cv_func_$ac_func=no"
38531 -rm -f conftest*
38533 +int
38534 +main ()
38536 +return f != $ac_func;
38538 + return 0;
38540 +_ACEOF
38541 +rm -f conftest.$ac_objext conftest$ac_exeext
38542 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38543 + (eval $ac_link) 2>conftest.er1
38544 + ac_status=$?
38545 + grep -v '^ *+' conftest.er1 >conftest.err
38546 + rm -f conftest.er1
38547 + cat conftest.err >&5
38548 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38549 + (exit $ac_status); } &&
38550 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38551 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38552 + (eval $ac_try) 2>&5
38553 + ac_status=$?
38554 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38555 + (exit $ac_status); }; } &&
38556 + { ac_try='test -s conftest$ac_exeext'
38557 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38558 + (eval $ac_try) 2>&5
38559 + ac_status=$?
38560 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38561 + (exit $ac_status); }; }; then
38562 + eval "$as_ac_var=yes"
38563 +else
38564 + echo "$as_me: failed program was:" >&5
38565 +sed 's/^/| /' conftest.$ac_ext >&5
38567 +eval "$as_ac_var=no"
38569 +rm -f conftest.err conftest.$ac_objext \
38570 + conftest$ac_exeext conftest.$ac_ext
38572 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38573 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38574 +if test `eval echo '${'$as_ac_var'}'` = yes; then
38575 + cat >>confdefs.h <<_ACEOF
38576 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38577 +_ACEOF
38579 -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
38580 - echo "$ac_t""yes" 1>&6
38581 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
38582 - cat >> confdefs.h <<EOF
38583 -#define $ac_tr_func 1
38584 -EOF
38586 -else
38587 - echo "$ac_t""no" 1>&6
38589 done
38591 -echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
38592 -echo "configure:6476: checking for uid_t in sys/types.h" >&5
38593 -if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
38594 - echo $ac_n "(cached) $ac_c" 1>&6
38595 -else
38596 - cat > conftest.$ac_ext <<EOF
38597 -#line 6481 "configure"
38598 -#include "confdefs.h"
38599 +echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
38600 +echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
38601 +if test "${ac_cv_type_uid_t+set}" = set; then
38602 + echo $ECHO_N "(cached) $ECHO_C" >&6
38603 +else
38604 + cat >conftest.$ac_ext <<_ACEOF
38605 +/* confdefs.h. */
38606 +_ACEOF
38607 +cat confdefs.h >>conftest.$ac_ext
38608 +cat >>conftest.$ac_ext <<_ACEOF
38609 +/* end confdefs.h. */
38610 #include <sys/types.h>
38611 -EOF
38613 +_ACEOF
38614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38615 - egrep "uid_t" >/dev/null 2>&1; then
38616 - rm -rf conftest*
38617 + $EGREP "uid_t" >/dev/null 2>&1; then
38618 ac_cv_type_uid_t=yes
38619 else
38620 - rm -rf conftest*
38621 ac_cv_type_uid_t=no
38623 rm -f conftest*
38627 -echo "$ac_t""$ac_cv_type_uid_t" 1>&6
38628 +echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
38629 +echo "${ECHO_T}$ac_cv_type_uid_t" >&6
38630 if test $ac_cv_type_uid_t = no; then
38631 - cat >> confdefs.h <<\EOF
38633 +cat >>confdefs.h <<\_ACEOF
38634 #define uid_t int
38635 -EOF
38636 +_ACEOF
38639 - cat >> confdefs.h <<\EOF
38640 +cat >>confdefs.h <<\_ACEOF
38641 #define gid_t int
38642 -EOF
38643 +_ACEOF
38648 # Check if <sys/select.h> needs to be included for fd_set
38649 -echo $ac_n "checking for fd_set""... $ac_c" 1>&6
38650 -echo "configure:6512: checking for fd_set" >&5
38651 -cat > conftest.$ac_ext <<EOF
38652 -#line 6514 "configure"
38653 -#include "confdefs.h"
38654 +echo "$as_me:$LINENO: checking for fd_set" >&5
38655 +echo $ECHO_N "checking for fd_set... $ECHO_C" >&6
38656 +cat >conftest.$ac_ext <<_ACEOF
38657 +/* confdefs.h. */
38658 +_ACEOF
38659 +cat confdefs.h >>conftest.$ac_ext
38660 +cat >>conftest.$ac_ext <<_ACEOF
38661 +/* end confdefs.h. */
38662 #include <sys/types.h>
38663 -int main() {
38664 +int
38665 +main ()
38667 fd_set readMask, writeMask;
38668 -; return 0; }
38669 -EOF
38670 -if { (eval echo configure:6521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
38671 - rm -rf conftest*
38673 + return 0;
38675 +_ACEOF
38676 +rm -f conftest.$ac_objext
38677 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38678 + (eval $ac_compile) 2>conftest.er1
38679 + ac_status=$?
38680 + grep -v '^ *+' conftest.er1 >conftest.err
38681 + rm -f conftest.er1
38682 + cat conftest.err >&5
38683 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38684 + (exit $ac_status); } &&
38685 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38686 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38687 + (eval $ac_try) 2>&5
38688 + ac_status=$?
38689 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38690 + (exit $ac_status); }; } &&
38691 + { ac_try='test -s conftest.$ac_objext'
38692 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38693 + (eval $ac_try) 2>&5
38694 + ac_status=$?
38695 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38696 + (exit $ac_status); }; }; then
38697 gtk_ok=yes
38698 else
38699 - echo "configure: failed program was:" >&5
38700 - cat conftest.$ac_ext >&5
38701 - rm -rf conftest*
38702 - gtk_ok=no
38703 + echo "$as_me: failed program was:" >&5
38704 +sed 's/^/| /' conftest.$ac_ext >&5
38706 +gtk_ok=no
38708 -rm -f conftest*
38709 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38710 if test $gtk_ok = yes; then
38711 - echo "$ac_t""yes, found in sys/types.h" 1>&6
38712 + echo "$as_me:$LINENO: result: yes, found in sys/types.h" >&5
38713 +echo "${ECHO_T}yes, found in sys/types.h" >&6
38714 else
38715 - cat > conftest.$ac_ext <<EOF
38716 -#line 6535 "configure"
38717 -#include "confdefs.h"
38718 + cat >conftest.$ac_ext <<_ACEOF
38719 +/* confdefs.h. */
38720 +_ACEOF
38721 +cat confdefs.h >>conftest.$ac_ext
38722 +cat >>conftest.$ac_ext <<_ACEOF
38723 +/* end confdefs.h. */
38724 #include <sys/select.h>
38725 -EOF
38727 +_ACEOF
38728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38729 - egrep "fd_mask" >/dev/null 2>&1; then
38730 - rm -rf conftest*
38731 + $EGREP "fd_mask" >/dev/null 2>&1; then
38732 gtk_ok=yes
38734 rm -f conftest*
38736 if test $gtk_ok = yes; then
38737 - cat >> confdefs.h <<\EOF
38738 + cat >>confdefs.h <<\_ACEOF
38739 #define HAVE_SYS_SELECT_H 1
38740 -EOF
38741 +_ACEOF
38743 - echo "$ac_t""yes, found in sys/select.h" 1>&6
38744 + echo "$as_me:$LINENO: result: yes, found in sys/select.h" >&5
38745 +echo "${ECHO_T}yes, found in sys/select.h" >&6
38746 else
38747 - cat >> confdefs.h <<\EOF
38748 + cat >>confdefs.h <<\_ACEOF
38749 #define NO_FD_SET 1
38750 -EOF
38751 +_ACEOF
38753 - echo "$ac_t""no" 1>&6
38754 + echo "$as_me:$LINENO: result: no" >&5
38755 +echo "${ECHO_T}no" >&6
38759 # Duplicate `widechar' tests from `glib'.
38760 # Check for wchar.h
38761 -echo $ac_n "checking for wchar.h""... $ac_c" 1>&6
38762 -echo "configure:6564: checking for wchar.h" >&5
38763 -cat > conftest.$ac_ext <<EOF
38764 -#line 6566 "configure"
38765 -#include "confdefs.h"
38766 +echo "$as_me:$LINENO: checking for wchar.h" >&5
38767 +echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
38768 +cat >conftest.$ac_ext <<_ACEOF
38769 +/* confdefs.h. */
38770 +_ACEOF
38771 +cat confdefs.h >>conftest.$ac_ext
38772 +cat >>conftest.$ac_ext <<_ACEOF
38773 +/* end confdefs.h. */
38774 #include <wchar.h>
38775 -EOF
38776 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
38777 -{ (eval echo configure:6571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
38778 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
38779 -if test -z "$ac_err"; then
38780 - rm -rf conftest*
38781 +_ACEOF
38782 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38783 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38784 + ac_status=$?
38785 + grep -v '^ *+' conftest.er1 >conftest.err
38786 + rm -f conftest.er1
38787 + cat conftest.err >&5
38788 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38789 + (exit $ac_status); } >/dev/null; then
38790 + if test -s conftest.err; then
38791 + ac_cpp_err=$ac_c_preproc_warn_flag
38792 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38793 + else
38794 + ac_cpp_err=
38795 + fi
38796 +else
38797 + ac_cpp_err=yes
38799 +if test -z "$ac_cpp_err"; then
38800 gtk_ok=yes
38801 else
38802 - echo "$ac_err" >&5
38803 - echo "configure: failed program was:" >&5
38804 - cat conftest.$ac_ext >&5
38805 - rm -rf conftest*
38806 + echo "$as_me: failed program was:" >&5
38807 +sed 's/^/| /' conftest.$ac_ext >&5
38809 gtk_ok=no
38811 -rm -f conftest*
38812 +rm -f conftest.err conftest.$ac_ext
38813 if test $gtk_ok = yes; then
38814 - cat >> confdefs.h <<\EOF
38816 +cat >>confdefs.h <<\_ACEOF
38817 #define HAVE_WCHAR_H 1
38818 -EOF
38819 +_ACEOF
38822 -echo "$ac_t""$gtk_ok" 1>&6
38823 +echo "$as_me:$LINENO: result: $gtk_ok" >&5
38824 +echo "${ECHO_T}$gtk_ok" >&6
38826 # Check for wctype.h (for iswalnum)
38827 -echo $ac_n "checking for wctype.h""... $ac_c" 1>&6
38828 -echo "configure:6594: checking for wctype.h" >&5
38829 -cat > conftest.$ac_ext <<EOF
38830 -#line 6596 "configure"
38831 -#include "confdefs.h"
38832 +echo "$as_me:$LINENO: checking for wctype.h" >&5
38833 +echo $ECHO_N "checking for wctype.h... $ECHO_C" >&6
38834 +cat >conftest.$ac_ext <<_ACEOF
38835 +/* confdefs.h. */
38836 +_ACEOF
38837 +cat confdefs.h >>conftest.$ac_ext
38838 +cat >>conftest.$ac_ext <<_ACEOF
38839 +/* end confdefs.h. */
38840 #include <wctype.h>
38841 -EOF
38842 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
38843 -{ (eval echo configure:6601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
38844 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
38845 -if test -z "$ac_err"; then
38846 - rm -rf conftest*
38847 +_ACEOF
38848 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38849 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38850 + ac_status=$?
38851 + grep -v '^ *+' conftest.er1 >conftest.err
38852 + rm -f conftest.er1
38853 + cat conftest.err >&5
38854 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38855 + (exit $ac_status); } >/dev/null; then
38856 + if test -s conftest.err; then
38857 + ac_cpp_err=$ac_c_preproc_warn_flag
38858 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38859 + else
38860 + ac_cpp_err=
38861 + fi
38862 +else
38863 + ac_cpp_err=yes
38865 +if test -z "$ac_cpp_err"; then
38866 gtk_ok=yes
38867 else
38868 - echo "$ac_err" >&5
38869 - echo "configure: failed program was:" >&5
38870 - cat conftest.$ac_ext >&5
38871 - rm -rf conftest*
38872 + echo "$as_me: failed program was:" >&5
38873 +sed 's/^/| /' conftest.$ac_ext >&5
38875 gtk_ok=no
38877 -rm -f conftest*
38878 +rm -f conftest.err conftest.$ac_ext
38879 if test $gtk_ok = yes; then
38880 - cat >> confdefs.h <<\EOF
38882 +cat >>confdefs.h <<\_ACEOF
38883 #define HAVE_WCTYPE_H 1
38884 -EOF
38885 +_ACEOF
38888 -echo "$ac_t""$gtk_ok" 1>&6
38889 +echo "$as_me:$LINENO: result: $gtk_ok" >&5
38890 +echo "${ECHO_T}$gtk_ok" >&6
38892 # in Solaris 2.5, `iswalnum' is in -lw
38893 GDK_WLIBS=
38894 -echo $ac_n "checking for iswalnum""... $ac_c" 1>&6
38895 -echo "configure:6625: checking for iswalnum" >&5
38896 -if eval "test \"`echo '$''{'ac_cv_func_iswalnum'+set}'`\" = set"; then
38897 - echo $ac_n "(cached) $ac_c" 1>&6
38898 -else
38899 - cat > conftest.$ac_ext <<EOF
38900 -#line 6630 "configure"
38901 -#include "confdefs.h"
38902 +echo "$as_me:$LINENO: checking for iswalnum" >&5
38903 +echo $ECHO_N "checking for iswalnum... $ECHO_C" >&6
38904 +if test "${ac_cv_func_iswalnum+set}" = set; then
38905 + echo $ECHO_N "(cached) $ECHO_C" >&6
38906 +else
38907 + cat >conftest.$ac_ext <<_ACEOF
38908 +/* confdefs.h. */
38909 +_ACEOF
38910 +cat confdefs.h >>conftest.$ac_ext
38911 +cat >>conftest.$ac_ext <<_ACEOF
38912 +/* end confdefs.h. */
38913 +/* Define iswalnum to an innocuous variant, in case <limits.h> declares iswalnum.
38914 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
38915 +#define iswalnum innocuous_iswalnum
38917 /* System header to define __stub macros and hopefully few prototypes,
38918 - which can conflict with char iswalnum(); below. */
38919 -#include <assert.h>
38920 -/* Override any gcc2 internal prototype to avoid an error. */
38921 -/* We use char because int might match the return type of a gcc2
38922 - builtin and then its argument prototype would still apply. */
38923 -char iswalnum();
38924 + which can conflict with char iswalnum (); below.
38925 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38926 + <limits.h> exists even on freestanding compilers. */
38928 +#ifdef __STDC__
38929 +# include <limits.h>
38930 +#else
38931 +# include <assert.h>
38932 +#endif
38934 -int main() {
38935 +#undef iswalnum
38937 +/* Override any gcc2 internal prototype to avoid an error. */
38938 +#ifdef __cplusplus
38939 +extern "C"
38941 +#endif
38942 +/* We use char because int might match the return type of a gcc2
38943 + builtin and then its argument prototype would still apply. */
38944 +char iswalnum ();
38945 /* The GNU C library defines this for functions which it implements
38946 to always fail with ENOSYS. Some functions are actually named
38947 something starting with __ and the normal name is an alias. */
38948 #if defined (__stub_iswalnum) || defined (__stub___iswalnum)
38949 choke me
38950 #else
38951 -iswalnum();
38952 +char (*f) () = iswalnum;
38953 +#endif
38954 +#ifdef __cplusplus
38956 #endif
38958 -; return 0; }
38959 -EOF
38960 -if { (eval echo configure:6653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38961 - rm -rf conftest*
38962 - eval "ac_cv_func_iswalnum=yes"
38963 +int
38964 +main ()
38966 +return f != iswalnum;
38968 + return 0;
38970 +_ACEOF
38971 +rm -f conftest.$ac_objext conftest$ac_exeext
38972 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38973 + (eval $ac_link) 2>conftest.er1
38974 + ac_status=$?
38975 + grep -v '^ *+' conftest.er1 >conftest.err
38976 + rm -f conftest.er1
38977 + cat conftest.err >&5
38978 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38979 + (exit $ac_status); } &&
38980 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38981 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38982 + (eval $ac_try) 2>&5
38983 + ac_status=$?
38984 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38985 + (exit $ac_status); }; } &&
38986 + { ac_try='test -s conftest$ac_exeext'
38987 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38988 + (eval $ac_try) 2>&5
38989 + ac_status=$?
38990 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38991 + (exit $ac_status); }; }; then
38992 + ac_cv_func_iswalnum=yes
38993 +else
38994 + echo "$as_me: failed program was:" >&5
38995 +sed 's/^/| /' conftest.$ac_ext >&5
38997 +ac_cv_func_iswalnum=no
38999 +rm -f conftest.err conftest.$ac_objext \
39000 + conftest$ac_exeext conftest.$ac_ext
39002 +echo "$as_me:$LINENO: result: $ac_cv_func_iswalnum" >&5
39003 +echo "${ECHO_T}$ac_cv_func_iswalnum" >&6
39004 +if test $ac_cv_func_iswalnum = yes; then
39006 +else
39007 + echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
39008 +echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
39009 +if test "${ac_cv_lib_w_iswalnum+set}" = set; then
39010 + echo $ECHO_N "(cached) $ECHO_C" >&6
39011 +else
39012 + ac_check_lib_save_LIBS=$LIBS
39013 +LIBS="-lw $LIBS"
39014 +cat >conftest.$ac_ext <<_ACEOF
39015 +/* confdefs.h. */
39016 +_ACEOF
39017 +cat confdefs.h >>conftest.$ac_ext
39018 +cat >>conftest.$ac_ext <<_ACEOF
39019 +/* end confdefs.h. */
39021 +/* Override any gcc2 internal prototype to avoid an error. */
39022 +#ifdef __cplusplus
39023 +extern "C"
39024 +#endif
39025 +/* We use char because int might match the return type of a gcc2
39026 + builtin and then its argument prototype would still apply. */
39027 +char iswalnum ();
39028 +int
39029 +main ()
39031 +iswalnum ();
39033 + return 0;
39035 +_ACEOF
39036 +rm -f conftest.$ac_objext conftest$ac_exeext
39037 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39038 + (eval $ac_link) 2>conftest.er1
39039 + ac_status=$?
39040 + grep -v '^ *+' conftest.er1 >conftest.err
39041 + rm -f conftest.er1
39042 + cat conftest.err >&5
39043 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39044 + (exit $ac_status); } &&
39045 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39046 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39047 + (eval $ac_try) 2>&5
39048 + ac_status=$?
39049 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39050 + (exit $ac_status); }; } &&
39051 + { ac_try='test -s conftest$ac_exeext'
39052 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39053 + (eval $ac_try) 2>&5
39054 + ac_status=$?
39055 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39056 + (exit $ac_status); }; }; then
39057 + ac_cv_lib_w_iswalnum=yes
39058 +else
39059 + echo "$as_me: failed program was:" >&5
39060 +sed 's/^/| /' conftest.$ac_ext >&5
39062 +ac_cv_lib_w_iswalnum=no
39064 +rm -f conftest.err conftest.$ac_objext \
39065 + conftest$ac_exeext conftest.$ac_ext
39066 +LIBS=$ac_check_lib_save_LIBS
39068 +echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
39069 +echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
39070 +if test $ac_cv_lib_w_iswalnum = yes; then
39071 + GDK_WLIBS=-lw
39077 +# The following is necessary for Linux libc-5.4.38
39078 +oLIBS="$LIBS"
39079 +LIBS="$LIBS $GDK_WLIBS"
39080 +echo "$as_me:$LINENO: checking if iswalnum() and friends are properly defined" >&5
39081 +echo $ECHO_N "checking if iswalnum() and friends are properly defined... $ECHO_C" >&6
39082 +cat >conftest.$ac_ext <<_ACEOF
39083 +/* confdefs.h. */
39084 +_ACEOF
39085 +cat confdefs.h >>conftest.$ac_ext
39086 +cat >>conftest.$ac_ext <<_ACEOF
39087 +/* end confdefs.h. */
39088 +#include <stdlib.h>
39089 +int
39090 +main ()
39093 +#if (defined(HAVE_WCTYPE_H) || defined(HAVE_WCHAR_H))
39094 +# ifdef HAVE_WCTYPE_H
39095 +# include <wctype.h>
39096 +# else
39097 +# ifdef HAVE_WCHAR_H
39098 +# include <wchar.h>
39099 +# endif
39100 +# endif
39101 +#else
39102 +# define iswalnum(c) ((wchar_t)(c) <= 0xFF && isalnum(c))
39103 +#endif
39104 +iswalnum((wchar_t) 0);
39107 + return 0;
39109 +_ACEOF
39110 +rm -f conftest.$ac_objext conftest$ac_exeext
39111 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39112 + (eval $ac_link) 2>conftest.er1
39113 + ac_status=$?
39114 + grep -v '^ *+' conftest.er1 >conftest.err
39115 + rm -f conftest.er1
39116 + cat conftest.err >&5
39117 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39118 + (exit $ac_status); } &&
39119 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39120 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39121 + (eval $ac_try) 2>&5
39122 + ac_status=$?
39123 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39124 + (exit $ac_status); }; } &&
39125 + { ac_try='test -s conftest$ac_exeext'
39126 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39127 + (eval $ac_try) 2>&5
39128 + ac_status=$?
39129 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
39130 + (exit $ac_status); }; }; then
39131 + gtk_ok=yes
39132 +else
39133 + echo "$as_me: failed program was:" >&5
39134 +sed 's/^/| /' conftest.$ac_ext >&5
39136 +gtk_ok=no
39138 +rm -f conftest.err conftest.$ac_objext \
39139 + conftest$ac_exeext conftest.$ac_ext
39140 +LIBS="$oLIBS"
39142 +if test $gtk_ok = no; then
39144 +cat >>confdefs.h <<\_ACEOF
39145 +#define HAVE_BROKEN_WCTYPE 1
39146 +_ACEOF
39148 + GDK_WLIBS=
39150 +echo "$as_me:$LINENO: result: $gtk_ok" >&5
39151 +echo "${ECHO_T}$gtk_ok" >&6
39158 + ac_config_files="$ac_config_files gtk+.spec docs/gtk-config.1 Makefile gtk-config po/Makefile.in docs/Makefile gdk/Makefile gtk/Makefile gtk/gtkfeatures.h gdk.pc gtk+.pc"
39159 + ac_config_commands="$ac_config_commands default"
39160 +cat >confcache <<\_ACEOF
39161 +# This file is a shell script that caches the results of configure
39162 +# tests run on this system so they can be shared between configure
39163 +# scripts and configure runs, see configure's option --config-cache.
39164 +# It is not useful on other systems. If it contains results you don't
39165 +# want to keep, you may remove or edit it.
39167 +# config.status only pays attention to the cache file if you give it
39168 +# the --recheck option to rerun configure.
39170 +# `ac_cv_env_foo' variables (set or unset) will be overridden when
39171 +# loading this file, other *unset* `ac_cv_foo' will be assigned the
39172 +# following values.
39174 +_ACEOF
39176 +# The following way of writing the cache mishandles newlines in values,
39177 +# but we know of no workaround that is simple, portable, and efficient.
39178 +# So, don't put newlines in cache variables' values.
39179 +# Ultrix sh set writes to stderr and can't be redirected directly,
39180 +# and sets the high bit in the cache file unless we assign to the vars.
39182 + (set) 2>&1 |
39183 + case `(ac_space=' '; set | grep ac_space) 2>&1` in
39184 + *ac_space=\ *)
39185 + # `set' does not quote correctly, so add quotes (double-quote
39186 + # substitution turns \\\\ into \\, and sed turns \\ into \).
39187 + sed -n \
39188 + "s/'/'\\\\''/g;
39189 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39190 + ;;
39191 + *)
39192 + # `set' quotes correctly as required by POSIX, so do not add quotes.
39193 + sed -n \
39194 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
39195 + ;;
39196 + esac;
39197 +} |
39198 + sed '
39199 + t clear
39200 + : clear
39201 + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39202 + t end
39203 + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39204 + : end' >>confcache
39205 +if diff $cache_file confcache >/dev/null 2>&1; then :; else
39206 + if test -w $cache_file; then
39207 + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
39208 + cat confcache >$cache_file
39209 + else
39210 + echo "not updating unwritable cache $cache_file"
39211 + fi
39213 +rm -f confcache
39215 +test "x$prefix" = xNONE && prefix=$ac_default_prefix
39216 +# Let make expand exec_prefix.
39217 +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39219 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
39220 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39221 +# trailing colons and then remove the whole line if VPATH becomes empty
39222 +# (actually we leave an empty line to preserve line numbers).
39223 +if test "x$srcdir" = x.; then
39224 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
39225 +s/:*\$(srcdir):*/:/;
39226 +s/:*\${srcdir}:*/:/;
39227 +s/:*@srcdir@:*/:/;
39228 +s/^\([^=]*=[ ]*\):*/\1/;
39229 +s/:*$//;
39230 +s/^[^=]*=[ ]*$//;
39234 +DEFS=-DHAVE_CONFIG_H
39236 +ac_libobjs=
39237 +ac_ltlibobjs=
39238 +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39239 + # 1. Remove the extension, and $U if already installed.
39240 + ac_i=`echo "$ac_i" |
39241 + sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
39242 + # 2. Add them.
39243 + ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
39244 + ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
39245 +done
39246 +LIBOBJS=$ac_libobjs
39248 +LTLIBOBJS=$ac_ltlibobjs
39252 +: ${CONFIG_STATUS=./config.status}
39253 +ac_clean_files_save=$ac_clean_files
39254 +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39255 +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39256 +echo "$as_me: creating $CONFIG_STATUS" >&6;}
39257 +cat >$CONFIG_STATUS <<_ACEOF
39258 +#! $SHELL
39259 +# Generated by $as_me.
39260 +# Run this file to recreate the current configuration.
39261 +# Compiler output produced by configure, useful for debugging
39262 +# configure, is in config.log if it exists.
39264 +debug=false
39265 +ac_cs_recheck=false
39266 +ac_cs_silent=false
39267 +SHELL=\${CONFIG_SHELL-$SHELL}
39268 +_ACEOF
39270 +cat >>$CONFIG_STATUS <<\_ACEOF
39271 +## --------------------- ##
39272 +## M4sh Initialization. ##
39273 +## --------------------- ##
39275 +# Be Bourne compatible
39276 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39277 + emulate sh
39278 + NULLCMD=:
39279 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39280 + # is contrary to our usage. Disable this feature.
39281 + alias -g '${1+"$@"}'='"$@"'
39282 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
39283 + set -o posix
39285 +DUALCASE=1; export DUALCASE # for MKS sh
39287 +# Support unset when possible.
39288 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39289 + as_unset=unset
39290 +else
39291 + as_unset=false
39295 +# Work around bugs in pre-3.0 UWIN ksh.
39296 +$as_unset ENV MAIL MAILPATH
39297 +PS1='$ '
39298 +PS2='> '
39299 +PS4='+ '
39301 +# NLS nuisances.
39302 +for as_var in \
39303 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39304 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39305 + LC_TELEPHONE LC_TIME
39307 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39308 + eval $as_var=C; export $as_var
39309 + else
39310 + $as_unset $as_var
39311 + fi
39312 +done
39314 +# Required to use basename.
39315 +if expr a : '\(a\)' >/dev/null 2>&1; then
39316 + as_expr=expr
39317 +else
39318 + as_expr=false
39321 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
39322 + as_basename=basename
39323 +else
39324 + as_basename=false
39328 +# Name of the executable.
39329 +as_me=`$as_basename "$0" ||
39330 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39331 + X"$0" : 'X\(//\)$' \| \
39332 + X"$0" : 'X\(/\)$' \| \
39333 + . : '\(.\)' 2>/dev/null ||
39334 +echo X/"$0" |
39335 + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
39336 + /^X\/\(\/\/\)$/{ s//\1/; q; }
39337 + /^X\/\(\/\).*/{ s//\1/; q; }
39338 + s/.*/./; q'`
39341 +# PATH needs CR, and LINENO needs CR and PATH.
39342 +# Avoid depending upon Character Ranges.
39343 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39344 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39345 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39346 +as_cr_digits='0123456789'
39347 +as_cr_alnum=$as_cr_Letters$as_cr_digits
39349 +# The user is always right.
39350 +if test "${PATH_SEPARATOR+set}" != set; then
39351 + echo "#! /bin/sh" >conf$$.sh
39352 + echo "exit 0" >>conf$$.sh
39353 + chmod +x conf$$.sh
39354 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39355 + PATH_SEPARATOR=';'
39356 + else
39357 + PATH_SEPARATOR=:
39358 + fi
39359 + rm -f conf$$.sh
39363 + as_lineno_1=$LINENO
39364 + as_lineno_2=$LINENO
39365 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39366 + test "x$as_lineno_1" != "x$as_lineno_2" &&
39367 + test "x$as_lineno_3" = "x$as_lineno_2" || {
39368 + # Find who we are. Look in the path if we contain no path at all
39369 + # relative or not.
39370 + case $0 in
39371 + *[\\/]* ) as_myself=$0 ;;
39372 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39373 +for as_dir in $PATH
39375 + IFS=$as_save_IFS
39376 + test -z "$as_dir" && as_dir=.
39377 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39378 +done
39380 + ;;
39381 + esac
39382 + # We did not find ourselves, most probably we were run as `sh COMMAND'
39383 + # in which case we are not to be found in the path.
39384 + if test "x$as_myself" = x; then
39385 + as_myself=$0
39386 + fi
39387 + if test ! -f "$as_myself"; then
39388 + { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39389 +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39390 + { (exit 1); exit 1; }; }
39391 + fi
39392 + case $CONFIG_SHELL in
39393 + '')
39394 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39395 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
39397 + IFS=$as_save_IFS
39398 + test -z "$as_dir" && as_dir=.
39399 + for as_base in sh bash ksh sh5; do
39400 + case $as_dir in
39401 + /*)
39402 + if ("$as_dir/$as_base" -c '
39403 + as_lineno_1=$LINENO
39404 + as_lineno_2=$LINENO
39405 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39406 + test "x$as_lineno_1" != "x$as_lineno_2" &&
39407 + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
39408 + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
39409 + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
39410 + CONFIG_SHELL=$as_dir/$as_base
39411 + export CONFIG_SHELL
39412 + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
39413 + fi;;
39414 + esac
39415 + done
39416 +done
39418 + esac
39420 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39421 + # uniformly replaced by the line number. The first 'sed' inserts a
39422 + # line-number line before each line; the second 'sed' does the real
39423 + # work. The second script uses 'N' to pair each line-number line
39424 + # with the numbered line, and appends trailing '-' during
39425 + # substitution so that $LINENO is not a special case at line end.
39426 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39427 + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
39428 + sed '=' <$as_myself |
39429 + sed '
39431 + s,$,-,
39432 + : loop
39433 + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
39434 + t loop
39435 + s,-$,,
39436 + s,^['$as_cr_digits']*\n,,
39437 + ' >$as_me.lineno &&
39438 + chmod +x $as_me.lineno ||
39439 + { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39440 +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
39441 + { (exit 1); exit 1; }; }
39443 + # Don't try to exec as it changes $[0], causing all sort of problems
39444 + # (the dirname of $[0] is not the place where we might find the
39445 + # original and so on. Autoconf is especially sensible to this).
39446 + . ./$as_me.lineno
39447 + # Exit status is that of the last command.
39448 + exit
39452 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39453 + *c*,-n*) ECHO_N= ECHO_C='
39454 +' ECHO_T=' ' ;;
39455 + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
39456 + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
39457 +esac
39459 +if expr a : '\(a\)' >/dev/null 2>&1; then
39460 + as_expr=expr
39461 else
39462 - echo "configure: failed program was:" >&5
39463 - cat conftest.$ac_ext >&5
39464 - rm -rf conftest*
39465 - eval "ac_cv_func_iswalnum=no"
39467 -rm -f conftest*
39468 + as_expr=false
39471 -if eval "test \"`echo '$ac_cv_func_'iswalnum`\" = yes"; then
39472 - echo "$ac_t""yes" 1>&6
39474 -else
39475 - echo "$ac_t""no" 1>&6
39476 -echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
39477 -echo "configure:6671: checking for iswalnum in -lw" >&5
39478 -ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
39479 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
39480 - echo $ac_n "(cached) $ac_c" 1>&6
39481 +rm -f conf$$ conf$$.exe conf$$.file
39482 +echo >conf$$.file
39483 +if ln -s conf$$.file conf$$ 2>/dev/null; then
39484 + # We could just check for DJGPP; but this test a) works b) is more generic
39485 + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
39486 + if test -f conf$$.exe; then
39487 + # Don't use ln at all; we don't have any links
39488 + as_ln_s='cp -p'
39489 + else
39490 + as_ln_s='ln -s'
39491 + fi
39492 +elif ln conf$$.file conf$$ 2>/dev/null; then
39493 + as_ln_s=ln
39494 else
39495 - ac_save_LIBS="$LIBS"
39496 -LIBS="-lw $LIBS"
39497 -cat > conftest.$ac_ext <<EOF
39498 -#line 6679 "configure"
39499 -#include "confdefs.h"
39500 -/* Override any gcc2 internal prototype to avoid an error. */
39501 -/* We use char because int might match the return type of a gcc2
39502 - builtin and then its argument prototype would still apply. */
39503 -char iswalnum();
39504 + as_ln_s='cp -p'
39506 +rm -f conf$$ conf$$.exe conf$$.file
39508 -int main() {
39509 -iswalnum()
39510 -; return 0; }
39511 -EOF
39512 -if { (eval echo configure:6690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39513 - rm -rf conftest*
39514 - eval "ac_cv_lib_$ac_lib_var=yes"
39515 +if mkdir -p . 2>/dev/null; then
39516 + as_mkdir_p=:
39517 else
39518 - echo "configure: failed program was:" >&5
39519 - cat conftest.$ac_ext >&5
39520 - rm -rf conftest*
39521 - eval "ac_cv_lib_$ac_lib_var=no"
39522 + test -d ./-p && rmdir ./-p
39523 + as_mkdir_p=false
39525 -rm -f conftest*
39526 -LIBS="$ac_save_LIBS"
39528 +as_executable_p="test -f"
39530 +# Sed expression to map a string onto a valid CPP name.
39531 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39533 +# Sed expression to map a string onto a valid variable name.
39534 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39537 +# IFS
39538 +# We need space, tab and new line, in precisely that order.
39539 +as_nl='
39541 +IFS=" $as_nl"
39543 +# CDPATH.
39544 +$as_unset CDPATH
39546 +exec 6>&1
39548 +# Open the log real soon, to keep \$[0] and so on meaningful, and to
39549 +# report actual input values of CONFIG_FILES etc. instead of their
39550 +# values after options handling. Logging --version etc. is OK.
39551 +exec 5>>config.log
39553 + echo
39554 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39555 +## Running $as_me. ##
39556 +_ASBOX
39557 +} >&5
39558 +cat >&5 <<_CSEOF
39560 +This file was extended by $as_me, which was
39561 +generated by GNU Autoconf 2.59. Invocation command line was
39563 + CONFIG_FILES = $CONFIG_FILES
39564 + CONFIG_HEADERS = $CONFIG_HEADERS
39565 + CONFIG_LINKS = $CONFIG_LINKS
39566 + CONFIG_COMMANDS = $CONFIG_COMMANDS
39567 + $ $0 $@
39569 +_CSEOF
39570 +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39571 +echo >&5
39572 +_ACEOF
39574 +# Files that config.status was made for.
39575 +if test -n "$ac_config_files"; then
39576 + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39578 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
39579 - echo "$ac_t""yes" 1>&6
39580 - GDK_WLIBS=-lw
39581 -else
39582 - echo "$ac_t""no" 1>&6
39584 +if test -n "$ac_config_headers"; then
39585 + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39588 +if test -n "$ac_config_links"; then
39589 + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39592 +if test -n "$ac_config_commands"; then
39593 + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39596 -# The following is necessary for Linux libc-5.4.38
39597 -oLIBS="$LIBS"
39598 -LIBS="$LIBS $GDK_WLIBS"
39599 -echo $ac_n "checking if iswalnum() and friends are properly defined""... $ac_c" 1>&6
39600 -echo "configure:6717: checking if iswalnum() and friends are properly defined" >&5
39601 -cat > conftest.$ac_ext <<EOF
39602 -#line 6719 "configure"
39603 -#include "confdefs.h"
39604 -#include <stdlib.h>
39605 -int main() {
39606 +cat >>$CONFIG_STATUS <<\_ACEOF
39608 -#if (defined(HAVE_WCTYPE_H) || defined(HAVE_WCHAR_H))
39609 -# ifdef HAVE_WCTYPE_H
39610 -# include <wctype.h>
39611 -# else
39612 -# ifdef HAVE_WCHAR_H
39613 -# include <wchar.h>
39614 -# endif
39615 -# endif
39616 -#else
39617 -# define iswalnum(c) ((wchar_t)(c) <= 0xFF && isalnum(c))
39618 -#endif
39619 -iswalnum((wchar_t) 0);
39620 +ac_cs_usage="\
39621 +\`$as_me' instantiates files from templates according to the
39622 +current configuration.
39624 -; return 0; }
39625 -EOF
39626 -if { (eval echo configure:6739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39627 - rm -rf conftest*
39628 - gtk_ok=yes
39629 -else
39630 - echo "configure: failed program was:" >&5
39631 - cat conftest.$ac_ext >&5
39632 - rm -rf conftest*
39633 - gtk_ok=no
39635 -rm -f conftest*
39636 -LIBS="$oLIBS"
39637 +Usage: $0 [OPTIONS] [FILE]...
39639 -if test $gtk_ok = no; then
39640 - cat >> confdefs.h <<\EOF
39641 -#define HAVE_BROKEN_WCTYPE 1
39642 -EOF
39643 + -h, --help print this help, then exit
39644 + -V, --version print version number, then exit
39645 + -q, --quiet do not print progress messages
39646 + -d, --debug don't remove temporary files
39647 + --recheck update $as_me by reconfiguring in the same conditions
39648 + --file=FILE[:TEMPLATE]
39649 + instantiate the configuration file FILE
39650 + --header=FILE[:TEMPLATE]
39651 + instantiate the configuration header FILE
39653 - GDK_WLIBS=
39655 -echo "$ac_t""$gtk_ok" 1>&6
39656 +Configuration files:
39657 +$config_files
39659 +Configuration headers:
39660 +$config_headers
39662 +Configuration links:
39663 +$config_links
39665 +Configuration commands:
39666 +$config_commands
39668 +Report bugs to <bug-autoconf@gnu.org>."
39669 +_ACEOF
39671 +cat >>$CONFIG_STATUS <<_ACEOF
39672 +ac_cs_version="\\
39673 +config.status
39674 +configured by $0, generated by GNU Autoconf 2.59,
39675 + with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39677 -trap '' 1 2 15
39678 -cat > confcache <<\EOF
39679 -# This file is a shell script that caches the results of configure
39680 -# tests run on this system so they can be shared between configure
39681 -# scripts and configure runs. It is not useful on other systems.
39682 -# If it contains results you don't want to keep, you may remove or edit it.
39684 -# By default, configure uses ./config.cache as the cache file,
39685 -# creating it if it does not exist already. You can give configure
39686 -# the --cache-file=FILE option to use a different cache file; that is
39687 -# what configure does when it calls configure scripts in
39688 -# subdirectories, so they share the cache.
39689 -# Giving --cache-file=/dev/null disables caching, for debugging configure.
39690 -# config.status only pays attention to the cache file if you give it the
39691 -# --recheck option to rerun configure.
39693 -EOF
39694 -# The following way of writing the cache mishandles newlines in values,
39695 -# but we know of no workaround that is simple, portable, and efficient.
39696 -# So, don't put newlines in cache variables' values.
39697 -# Ultrix sh set writes to stderr and can't be redirected directly,
39698 -# and sets the high bit in the cache file unless we assign to the vars.
39699 -(set) 2>&1 |
39700 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
39701 - *ac_space=\ *)
39702 - # `set' does not quote correctly, so add quotes (double-quote substitution
39703 - # turns \\\\ into \\, and sed turns \\ into \).
39704 - sed -n \
39705 - -e "s/'/'\\\\''/g" \
39706 - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
39707 +Copyright (C) 2003 Free Software Foundation, Inc.
39708 +This config.status script is free software; the Free Software Foundation
39709 +gives unlimited permission to copy, distribute and modify it."
39710 +srcdir=$srcdir
39711 +INSTALL="$INSTALL"
39712 +_ACEOF
39714 +cat >>$CONFIG_STATUS <<\_ACEOF
39715 +# If no file are specified by the user, then we need to provide default
39716 +# value. By we need to know if files were specified by the user.
39717 +ac_need_defaults=:
39718 +while test $# != 0
39720 + case $1 in
39721 + --*=*)
39722 + ac_option=`expr "x$1" : 'x\([^=]*\)='`
39723 + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39724 + ac_shift=:
39726 - *)
39727 - # `set' quotes correctly as required by POSIX, so do not add quotes.
39728 - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
39729 + -*)
39730 + ac_option=$1
39731 + ac_optarg=$2
39732 + ac_shift=shift
39734 - esac >> confcache
39735 -if cmp -s $cache_file confcache; then
39737 -else
39738 - if test -w $cache_file; then
39739 - echo "updating cache $cache_file"
39740 - cat confcache > $cache_file
39741 - else
39742 - echo "not updating unwritable cache $cache_file"
39743 - fi
39745 -rm -f confcache
39746 + *) # This is not an option, so the user has probably given explicit
39747 + # arguments.
39748 + ac_option=$1
39749 + ac_need_defaults=false;;
39750 + esac
39752 -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
39753 + case $ac_option in
39754 + # Handling of the options.
39755 +_ACEOF
39756 +cat >>$CONFIG_STATUS <<\_ACEOF
39757 + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39758 + ac_cs_recheck=: ;;
39759 + --version | --vers* | -V )
39760 + echo "$ac_cs_version"; exit 0 ;;
39761 + --he | --h)
39762 + # Conflict between --help and --header
39763 + { { echo "$as_me:$LINENO: error: ambiguous option: $1
39764 +Try \`$0 --help' for more information." >&5
39765 +echo "$as_me: error: ambiguous option: $1
39766 +Try \`$0 --help' for more information." >&2;}
39767 + { (exit 1); exit 1; }; };;
39768 + --help | --hel | -h )
39769 + echo "$ac_cs_usage"; exit 0 ;;
39770 + --debug | --d* | -d )
39771 + debug=: ;;
39772 + --file | --fil | --fi | --f )
39773 + $ac_shift
39774 + CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39775 + ac_need_defaults=false;;
39776 + --header | --heade | --head | --hea )
39777 + $ac_shift
39778 + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39779 + ac_need_defaults=false;;
39780 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39781 + | -silent | --silent | --silen | --sile | --sil | --si | --s)
39782 + ac_cs_silent=: ;;
39784 -test "x$prefix" = xNONE && prefix=$ac_default_prefix
39785 -# Let make expand exec_prefix.
39786 -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39787 + # This is an error.
39788 + -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39789 +Try \`$0 --help' for more information." >&5
39790 +echo "$as_me: error: unrecognized option: $1
39791 +Try \`$0 --help' for more information." >&2;}
39792 + { (exit 1); exit 1; }; } ;;
39794 -# Any assignment to VPATH causes Sun make to only execute
39795 -# the first set of double-colon rules, so remove it if not needed.
39796 -# If there is a colon in the path, we need to keep it.
39797 -if test "x$srcdir" = x.; then
39798 - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
39800 + *) ac_config_targets="$ac_config_targets $1" ;;
39802 + esac
39803 + shift
39804 +done
39806 -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
39807 +ac_configure_extra_args=
39809 -DEFS=-DHAVE_CONFIG_H
39810 +if $ac_cs_silent; then
39811 + exec 6>/dev/null
39812 + ac_configure_extra_args="$ac_configure_extra_args --silent"
39815 -# Without the "./", some shells look in PATH for config.status.
39816 -: ${CONFIG_STATUS=./config.status}
39817 +_ACEOF
39818 +cat >>$CONFIG_STATUS <<_ACEOF
39819 +if \$ac_cs_recheck; then
39820 + echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39821 + exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39824 -echo creating $CONFIG_STATUS
39825 -rm -f $CONFIG_STATUS
39826 -cat > $CONFIG_STATUS <<EOF
39827 -#! /bin/sh
39828 -# Generated automatically by configure.
39829 -# Run this file to recreate the current configuration.
39830 -# This directory was configured as follows,
39831 -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
39832 +_ACEOF
39834 +cat >>$CONFIG_STATUS <<_ACEOF
39836 -# $0 $ac_configure_args
39837 +# INIT-COMMANDS section.
39839 -# Compiler output produced by configure, useful for debugging
39840 -# configure, is in ./config.log if it exists.
39842 -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
39843 -for ac_option
39847 +_ACEOF
39851 +cat >>$CONFIG_STATUS <<\_ACEOF
39852 +for ac_config_target in $ac_config_targets
39854 - case "\$ac_option" in
39855 - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39856 - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
39857 - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
39858 - -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
39859 - echo "$CONFIG_STATUS generated by autoconf version 2.13"
39860 - exit 0 ;;
39861 - -help | --help | --hel | --he | --h)
39862 - echo "\$ac_cs_usage"; exit 0 ;;
39863 - *) echo "\$ac_cs_usage"; exit 1 ;;
39864 + case "$ac_config_target" in
39865 + # Handling of arguments.
39866 + "gtk+.spec" ) CONFIG_FILES="$CONFIG_FILES gtk+.spec" ;;
39867 + "docs/gtk-config.1" ) CONFIG_FILES="$CONFIG_FILES docs/gtk-config.1" ;;
39868 + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
39869 + "gtk-config" ) CONFIG_FILES="$CONFIG_FILES gtk-config" ;;
39870 + "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
39871 + "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
39872 + "gdk/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdk/Makefile" ;;
39873 + "gtk/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtk/Makefile" ;;
39874 + "gtk/gtkfeatures.h" ) CONFIG_FILES="$CONFIG_FILES gtk/gtkfeatures.h" ;;
39875 + "gdk.pc" ) CONFIG_FILES="$CONFIG_FILES gdk.pc" ;;
39876 + "gtk+.pc" ) CONFIG_FILES="$CONFIG_FILES gtk+.pc" ;;
39877 + "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
39878 + "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
39879 + "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
39880 + "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39881 + "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
39882 + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39883 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39884 + { (exit 1); exit 1; }; };;
39885 esac
39886 done
39888 -ac_given_srcdir=$srcdir
39889 -ac_given_INSTALL="$INSTALL"
39891 -trap 'rm -fr `echo "
39892 -gtk+.spec
39893 -docs/gtk-config.1
39894 -Makefile
39895 -gtk-config
39896 -po/Makefile.in
39897 -docs/Makefile
39898 -gdk/Makefile
39899 -gtk/Makefile
39900 -gtk/gtkfeatures.h
39901 -gdk.pc
39902 -gtk+.pc
39903 - config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
39904 -EOF
39905 -cat >> $CONFIG_STATUS <<EOF
39906 +# If the user did not use the arguments to specify the items to instantiate,
39907 +# then the envvar interface is used. Set only those that are not.
39908 +# We use the long form for the default assignment because of an extremely
39909 +# bizarre bug on SunOS 4.1.3.
39910 +if $ac_need_defaults; then
39911 + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39912 + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39913 + test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
39914 + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39917 +# Have a temporary directory for convenience. Make it in the build tree
39918 +# simply because there is no reason to put it here, and in addition,
39919 +# creating and moving files from /tmp can sometimes cause problems.
39920 +# Create a temporary directory, and hook for its removal unless debugging.
39921 +$debug ||
39923 + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
39924 + trap '{ (exit 1); exit 1; }' 1 2 13 15
39927 -# Protect against being on the right side of a sed subst in config.status.
39928 -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
39929 - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
39930 -$ac_vpsub
39931 -$extrasub
39932 -s%@SHELL@%$SHELL%g
39933 -s%@CFLAGS@%$CFLAGS%g
39934 -s%@CPPFLAGS@%$CPPFLAGS%g
39935 -s%@CXXFLAGS@%$CXXFLAGS%g
39936 -s%@FFLAGS@%$FFLAGS%g
39937 -s%@DEFS@%$DEFS%g
39938 -s%@LDFLAGS@%$LDFLAGS%g
39939 -s%@LIBS@%$LIBS%g
39940 -s%@exec_prefix@%$exec_prefix%g
39941 -s%@prefix@%$prefix%g
39942 -s%@program_transform_name@%$program_transform_name%g
39943 -s%@bindir@%$bindir%g
39944 -s%@sbindir@%$sbindir%g
39945 -s%@libexecdir@%$libexecdir%g
39946 -s%@datadir@%$datadir%g
39947 -s%@sysconfdir@%$sysconfdir%g
39948 -s%@sharedstatedir@%$sharedstatedir%g
39949 -s%@localstatedir@%$localstatedir%g
39950 -s%@libdir@%$libdir%g
39951 -s%@includedir@%$includedir%g
39952 -s%@oldincludedir@%$oldincludedir%g
39953 -s%@infodir@%$infodir%g
39954 -s%@mandir@%$mandir%g
39955 -s%@GTK_MAJOR_VERSION@%$GTK_MAJOR_VERSION%g
39956 -s%@GTK_MINOR_VERSION@%$GTK_MINOR_VERSION%g
39957 -s%@GTK_MICRO_VERSION@%$GTK_MICRO_VERSION%g
39958 -s%@GTK_INTERFACE_AGE@%$GTK_INTERFACE_AGE%g
39959 -s%@GTK_BINARY_AGE@%$GTK_BINARY_AGE%g
39960 -s%@GTK_VERSION@%$GTK_VERSION%g
39961 -s%@LT_RELEASE@%$LT_RELEASE%g
39962 -s%@LT_CURRENT@%$LT_CURRENT%g
39963 -s%@LT_REVISION@%$LT_REVISION%g
39964 -s%@LT_AGE@%$LT_AGE%g
39965 -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
39966 -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
39967 -s%@INSTALL_DATA@%$INSTALL_DATA%g
39968 -s%@PACKAGE@%$PACKAGE%g
39969 -s%@VERSION@%$VERSION%g
39970 -s%@ACLOCAL@%$ACLOCAL%g
39971 -s%@AUTOCONF@%$AUTOCONF%g
39972 -s%@AUTOMAKE@%$AUTOMAKE%g
39973 -s%@AUTOHEADER@%$AUTOHEADER%g
39974 -s%@MAKEINFO@%$MAKEINFO%g
39975 -s%@SET_MAKE@%$SET_MAKE%g
39976 -s%@host@%$host%g
39977 -s%@host_alias@%$host_alias%g
39978 -s%@host_cpu@%$host_cpu%g
39979 -s%@host_vendor@%$host_vendor%g
39980 -s%@host_os@%$host_os%g
39981 -s%@build@%$build%g
39982 -s%@build_alias@%$build_alias%g
39983 -s%@build_cpu@%$build_cpu%g
39984 -s%@build_vendor@%$build_vendor%g
39985 -s%@build_os@%$build_os%g
39986 -s%@RANLIB@%$RANLIB%g
39987 -s%@CC@%$CC%g
39988 -s%@LN_S@%$LN_S%g
39989 -s%@LIBTOOL@%$LIBTOOL%g
39990 -s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
39991 -s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
39992 -s%@MAINT@%$MAINT%g
39993 -s%@AWK@%$AWK%g
39994 -s%@PERL@%$PERL%g
39995 -s%@INDENT@%$INDENT%g
39996 -s%@REBUILD@%$REBUILD%g
39997 -s%@STRIP_DUMMY@%$STRIP_DUMMY%g
39998 -s%@STRIP_BEGIN@%$STRIP_BEGIN%g
39999 -s%@STRIP_END@%$STRIP_END%g
40000 -s%@CPP@%$CPP%g
40001 -s%@ALLOCA@%$ALLOCA%g
40002 -s%@USE_NLS@%$USE_NLS%g
40003 -s%@MSGFMT@%$MSGFMT%g
40004 -s%@GMSGFMT@%$GMSGFMT%g
40005 -s%@XGETTEXT@%$XGETTEXT%g
40006 -s%@GENCAT@%$GENCAT%g
40007 -s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
40008 -s%@CATALOGS@%$CATALOGS%g
40009 -s%@CATOBJEXT@%$CATOBJEXT%g
40010 -s%@DATADIRNAME@%$DATADIRNAME%g
40011 -s%@GMOFILES@%$GMOFILES%g
40012 -s%@INSTOBJEXT@%$INSTOBJEXT%g
40013 -s%@INTLDEPS@%$INTLDEPS%g
40014 -s%@INTLLIBS@%$INTLLIBS%g
40015 -s%@INTLOBJS@%$INTLOBJS%g
40016 -s%@POFILES@%$POFILES%g
40017 -s%@POSUB@%$POSUB%g
40018 -s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
40019 -s%@GT_NO@%$GT_NO%g
40020 -s%@GT_YES@%$GT_YES%g
40021 -s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
40022 -s%@l@%$l%g
40023 -s%@gtklocaledir@%$gtklocaledir%g
40024 -s%@GLIB_CONFIG@%$GLIB_CONFIG%g
40025 -s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
40026 -s%@GLIB_LIBS@%$GLIB_LIBS%g
40027 -s%@glib_cflags@%$glib_cflags%g
40028 -s%@glib_libs@%$glib_libs%g
40029 -s%@glib_thread_cflags@%$glib_thread_cflags%g
40030 -s%@glib_thread_libs@%$glib_thread_libs%g
40031 -s%@GLIB_DEPLIBS@%$GLIB_DEPLIBS%g
40032 -s%@X_CFLAGS@%$X_CFLAGS%g
40033 -s%@X_PRE_LIBS@%$X_PRE_LIBS%g
40034 -s%@X_LIBS@%$X_LIBS%g
40035 -s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
40036 -s%@x_cflags@%$x_cflags%g
40037 -s%@x_includes@%$x_includes%g
40038 -s%@x_ldflags@%$x_ldflags%g
40039 -s%@x_libs@%$x_libs%g
40040 -s%@xinput_progs@%$xinput_progs%g
40041 -s%@GDK_WLIBS@%$GDK_WLIBS%g
40042 -s%@GTK_DEBUG_FLAGS@%$GTK_DEBUG_FLAGS%g
40043 -s%@GTK_XIM_FLAGS@%$GTK_XIM_FLAGS%g
40044 -s%@GTK_LOCALE_FLAGS@%$GTK_LOCALE_FLAGS%g
40045 +# Create a (secure) tmp directory for tmp files.
40048 + tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
40049 + test -n "$tmp" && test -d "$tmp"
40050 +} ||
40052 + tmp=./confstat$$-$RANDOM
40053 + (umask 077 && mkdir $tmp)
40054 +} ||
40056 + echo "$me: cannot create a temporary directory in ." >&2
40057 + { (exit 1); exit 1; }
40060 +_ACEOF
40062 +cat >>$CONFIG_STATUS <<_ACEOF
40065 +# CONFIG_FILES section.
40068 +# No need to generate the scripts if there are no CONFIG_FILES.
40069 +# This happens for instance when ./config.status config.h
40070 +if test -n "\$CONFIG_FILES"; then
40071 + # Protect against being on the right side of a sed subst in config.status.
40072 + sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
40073 + s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
40074 +s,@SHELL@,$SHELL,;t t
40075 +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
40076 +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
40077 +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
40078 +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
40079 +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
40080 +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
40081 +s,@exec_prefix@,$exec_prefix,;t t
40082 +s,@prefix@,$prefix,;t t
40083 +s,@program_transform_name@,$program_transform_name,;t t
40084 +s,@bindir@,$bindir,;t t
40085 +s,@sbindir@,$sbindir,;t t
40086 +s,@libexecdir@,$libexecdir,;t t
40087 +s,@datadir@,$datadir,;t t
40088 +s,@sysconfdir@,$sysconfdir,;t t
40089 +s,@sharedstatedir@,$sharedstatedir,;t t
40090 +s,@localstatedir@,$localstatedir,;t t
40091 +s,@libdir@,$libdir,;t t
40092 +s,@includedir@,$includedir,;t t
40093 +s,@oldincludedir@,$oldincludedir,;t t
40094 +s,@infodir@,$infodir,;t t
40095 +s,@mandir@,$mandir,;t t
40096 +s,@build_alias@,$build_alias,;t t
40097 +s,@host_alias@,$host_alias,;t t
40098 +s,@target_alias@,$target_alias,;t t
40099 +s,@DEFS@,$DEFS,;t t
40100 +s,@ECHO_C@,$ECHO_C,;t t
40101 +s,@ECHO_N@,$ECHO_N,;t t
40102 +s,@ECHO_T@,$ECHO_T,;t t
40103 +s,@LIBS@,$LIBS,;t t
40104 +s,@GTK_MAJOR_VERSION@,$GTK_MAJOR_VERSION,;t t
40105 +s,@GTK_MINOR_VERSION@,$GTK_MINOR_VERSION,;t t
40106 +s,@GTK_MICRO_VERSION@,$GTK_MICRO_VERSION,;t t
40107 +s,@GTK_INTERFACE_AGE@,$GTK_INTERFACE_AGE,;t t
40108 +s,@GTK_BINARY_AGE@,$GTK_BINARY_AGE,;t t
40109 +s,@GTK_VERSION@,$GTK_VERSION,;t t
40110 +s,@LT_RELEASE@,$LT_RELEASE,;t t
40111 +s,@LT_CURRENT@,$LT_CURRENT,;t t
40112 +s,@LT_REVISION@,$LT_REVISION,;t t
40113 +s,@LT_AGE@,$LT_AGE,;t t
40114 +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
40115 +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
40116 +s,@INSTALL_DATA@,$INSTALL_DATA,;t t
40117 +s,@PACKAGE@,$PACKAGE,;t t
40118 +s,@VERSION@,$VERSION,;t t
40119 +s,@ACLOCAL@,$ACLOCAL,;t t
40120 +s,@AUTOCONF@,$AUTOCONF,;t t
40121 +s,@AUTOMAKE@,$AUTOMAKE,;t t
40122 +s,@AUTOHEADER@,$AUTOHEADER,;t t
40123 +s,@MAKEINFO@,$MAKEINFO,;t t
40124 +s,@SET_MAKE@,$SET_MAKE,;t t
40125 +s,@build@,$build,;t t
40126 +s,@build_cpu@,$build_cpu,;t t
40127 +s,@build_vendor@,$build_vendor,;t t
40128 +s,@build_os@,$build_os,;t t
40129 +s,@host@,$host,;t t
40130 +s,@host_cpu@,$host_cpu,;t t
40131 +s,@host_vendor@,$host_vendor,;t t
40132 +s,@host_os@,$host_os,;t t
40133 +s,@CC@,$CC,;t t
40134 +s,@CFLAGS@,$CFLAGS,;t t
40135 +s,@LDFLAGS@,$LDFLAGS,;t t
40136 +s,@CPPFLAGS@,$CPPFLAGS,;t t
40137 +s,@ac_ct_CC@,$ac_ct_CC,;t t
40138 +s,@EXEEXT@,$EXEEXT,;t t
40139 +s,@OBJEXT@,$OBJEXT,;t t
40140 +s,@EGREP@,$EGREP,;t t
40141 +s,@LN_S@,$LN_S,;t t
40142 +s,@ECHO@,$ECHO,;t t
40143 +s,@AR@,$AR,;t t
40144 +s,@ac_ct_AR@,$ac_ct_AR,;t t
40145 +s,@RANLIB@,$RANLIB,;t t
40146 +s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
40147 +s,@STRIP@,$STRIP,;t t
40148 +s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
40149 +s,@CPP@,$CPP,;t t
40150 +s,@CXX@,$CXX,;t t
40151 +s,@CXXFLAGS@,$CXXFLAGS,;t t
40152 +s,@ac_ct_CXX@,$ac_ct_CXX,;t t
40153 +s,@CXXCPP@,$CXXCPP,;t t
40154 +s,@F77@,$F77,;t t
40155 +s,@FFLAGS@,$FFLAGS,;t t
40156 +s,@ac_ct_F77@,$ac_ct_F77,;t t
40157 +s,@LIBTOOL@,$LIBTOOL,;t t
40158 +s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
40159 +s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
40160 +s,@MAINT@,$MAINT,;t t
40161 +s,@AWK@,$AWK,;t t
40162 +s,@PERL@,$PERL,;t t
40163 +s,@INDENT@,$INDENT,;t t
40164 +s,@REBUILD@,$REBUILD,;t t
40165 +s,@STRIP_DUMMY@,$STRIP_DUMMY,;t t
40166 +s,@STRIP_BEGIN@,$STRIP_BEGIN,;t t
40167 +s,@STRIP_END@,$STRIP_END,;t t
40168 +s,@ALLOCA@,$ALLOCA,;t t
40169 +s,@USE_NLS@,$USE_NLS,;t t
40170 +s,@MSGFMT@,$MSGFMT,;t t
40171 +s,@GMSGFMT@,$GMSGFMT,;t t
40172 +s,@XGETTEXT@,$XGETTEXT,;t t
40173 +s,@GENCAT@,$GENCAT,;t t
40174 +s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
40175 +s,@CATALOGS@,$CATALOGS,;t t
40176 +s,@CATOBJEXT@,$CATOBJEXT,;t t
40177 +s,@DATADIRNAME@,$DATADIRNAME,;t t
40178 +s,@GMOFILES@,$GMOFILES,;t t
40179 +s,@INSTOBJEXT@,$INSTOBJEXT,;t t
40180 +s,@INTLDEPS@,$INTLDEPS,;t t
40181 +s,@INTLLIBS@,$INTLLIBS,;t t
40182 +s,@INTLOBJS@,$INTLOBJS,;t t
40183 +s,@POFILES@,$POFILES,;t t
40184 +s,@POSUB@,$POSUB,;t t
40185 +s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
40186 +s,@GT_NO@,$GT_NO,;t t
40187 +s,@GT_YES@,$GT_YES,;t t
40188 +s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
40189 +s,@l@,$l,;t t
40190 +s,@gtklocaledir@,$gtklocaledir,;t t
40191 +s,@GLIB_CONFIG@,$GLIB_CONFIG,;t t
40192 +s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
40193 +s,@GLIB_LIBS@,$GLIB_LIBS,;t t
40194 +s,@glib_cflags@,$glib_cflags,;t t
40195 +s,@glib_libs@,$glib_libs,;t t
40196 +s,@glib_thread_cflags@,$glib_thread_cflags,;t t
40197 +s,@glib_thread_libs@,$glib_thread_libs,;t t
40198 +s,@GLIB_DEPLIBS@,$GLIB_DEPLIBS,;t t
40199 +s,@X_CFLAGS@,$X_CFLAGS,;t t
40200 +s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
40201 +s,@X_LIBS@,$X_LIBS,;t t
40202 +s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
40203 +s,@PKG_CONFIG@,$PKG_CONFIG,;t t
40204 +s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
40205 +s,@x_cflags@,$x_cflags,;t t
40206 +s,@x_includes@,$x_includes,;t t
40207 +s,@x_ldflags@,$x_ldflags,;t t
40208 +s,@x_libs@,$x_libs,;t t
40209 +s,@xinput_progs@,$xinput_progs,;t t
40210 +s,@GDK_WLIBS@,$GDK_WLIBS,;t t
40211 +s,@GTK_DEBUG_FLAGS@,$GTK_DEBUG_FLAGS,;t t
40212 +s,@GTK_XIM_FLAGS@,$GTK_XIM_FLAGS,;t t
40213 +s,@GTK_LOCALE_FLAGS@,$GTK_LOCALE_FLAGS,;t t
40214 +s,@LIBOBJS@,$LIBOBJS,;t t
40215 +s,@LTLIBOBJS@,$LTLIBOBJS,;t t
40216 CEOF
40217 -EOF
40219 -cat >> $CONFIG_STATUS <<\EOF
40220 +_ACEOF
40222 -# Split the substitutions into bite-sized pieces for seds with
40223 -# small command number limits, like on Digital OSF/1 and HP-UX.
40224 -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
40225 -ac_file=1 # Number of current file.
40226 -ac_beg=1 # First line for current file.
40227 -ac_end=$ac_max_sed_cmds # Line after last line for current file.
40228 -ac_more_lines=:
40229 -ac_sed_cmds=""
40230 -while $ac_more_lines; do
40231 - if test $ac_beg -gt 1; then
40232 - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
40233 - else
40234 - sed "${ac_end}q" conftest.subs > conftest.s$ac_file
40235 - fi
40236 - if test ! -s conftest.s$ac_file; then
40237 - ac_more_lines=false
40238 - rm -f conftest.s$ac_file
40239 - else
40240 - if test -z "$ac_sed_cmds"; then
40241 - ac_sed_cmds="sed -f conftest.s$ac_file"
40242 + cat >>$CONFIG_STATUS <<\_ACEOF
40243 + # Split the substitutions into bite-sized pieces for seds with
40244 + # small command number limits, like on Digital OSF/1 and HP-UX.
40245 + ac_max_sed_lines=48
40246 + ac_sed_frag=1 # Number of current file.
40247 + ac_beg=1 # First line for current file.
40248 + ac_end=$ac_max_sed_lines # Line after last line for current file.
40249 + ac_more_lines=:
40250 + ac_sed_cmds=
40251 + while $ac_more_lines; do
40252 + if test $ac_beg -gt 1; then
40253 + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40254 else
40255 - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
40256 + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40257 + fi
40258 + if test ! -s $tmp/subs.frag; then
40259 + ac_more_lines=false
40260 + else
40261 + # The purpose of the label and of the branching condition is to
40262 + # speed up the sed processing (if there are no `@' at all, there
40263 + # is no need to browse any of the substitutions).
40264 + # These are the two extra sed commands mentioned above.
40265 + (echo ':t
40266 + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
40267 + if test -z "$ac_sed_cmds"; then
40268 + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
40269 + else
40270 + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
40271 + fi
40272 + ac_sed_frag=`expr $ac_sed_frag + 1`
40273 + ac_beg=$ac_end
40274 + ac_end=`expr $ac_end + $ac_max_sed_lines`
40276 - ac_file=`expr $ac_file + 1`
40277 - ac_beg=$ac_end
40278 - ac_end=`expr $ac_end + $ac_max_sed_cmds`
40279 + done
40280 + if test -z "$ac_sed_cmds"; then
40281 + ac_sed_cmds=cat
40283 -done
40284 -if test -z "$ac_sed_cmds"; then
40285 - ac_sed_cmds=cat
40287 -EOF
40288 +fi # test -n "$CONFIG_FILES"
40290 -cat >> $CONFIG_STATUS <<EOF
40292 -CONFIG_FILES=\${CONFIG_FILES-"gtk+.spec
40293 -docs/gtk-config.1
40294 -Makefile
40295 -gtk-config
40296 -po/Makefile.in
40297 -docs/Makefile
40298 -gdk/Makefile
40299 -gtk/Makefile
40300 -gtk/gtkfeatures.h
40301 -gdk.pc
40302 -gtk+.pc
40304 -EOF
40305 -cat >> $CONFIG_STATUS <<\EOF
40306 -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
40307 +_ACEOF
40308 +cat >>$CONFIG_STATUS <<\_ACEOF
40309 +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
40310 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40311 - case "$ac_file" in
40312 - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
40313 - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
40314 - *) ac_file_in="${ac_file}.in" ;;
40315 - esac
40317 - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
40319 - # Remove last slash and all that follows it. Not all systems have dirname.
40320 - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
40321 - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
40322 - # The file is in a subdirectory.
40323 - test ! -d "$ac_dir" && mkdir "$ac_dir"
40324 - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
40325 - # A "../" for each directory in $ac_dir_suffix.
40326 - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
40327 - else
40328 - ac_dir_suffix= ac_dots=
40329 - fi
40331 - case "$ac_given_srcdir" in
40332 - .) srcdir=.
40333 - if test -z "$ac_dots"; then top_srcdir=.
40334 - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
40335 - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
40336 + case $ac_file in
40337 + - | *:- | *:-:* ) # input from stdin
40338 + cat >$tmp/stdin
40339 + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40340 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40341 + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40342 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40343 + * ) ac_file_in=$ac_file.in ;;
40344 + esac
40346 + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
40347 + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40348 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40349 + X"$ac_file" : 'X\(//\)[^/]' \| \
40350 + X"$ac_file" : 'X\(//\)$' \| \
40351 + X"$ac_file" : 'X\(/\)' \| \
40352 + . : '\(.\)' 2>/dev/null ||
40353 +echo X"$ac_file" |
40354 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40355 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40356 + /^X\(\/\/\)$/{ s//\1/; q; }
40357 + /^X\(\/\).*/{ s//\1/; q; }
40358 + s/.*/./; q'`
40359 + { if $as_mkdir_p; then
40360 + mkdir -p "$ac_dir"
40361 + else
40362 + as_dir="$ac_dir"
40363 + as_dirs=
40364 + while test ! -d "$as_dir"; do
40365 + as_dirs="$as_dir $as_dirs"
40366 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
40367 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40368 + X"$as_dir" : 'X\(//\)[^/]' \| \
40369 + X"$as_dir" : 'X\(//\)$' \| \
40370 + X"$as_dir" : 'X\(/\)' \| \
40371 + . : '\(.\)' 2>/dev/null ||
40372 +echo X"$as_dir" |
40373 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40374 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40375 + /^X\(\/\/\)$/{ s//\1/; q; }
40376 + /^X\(\/\).*/{ s//\1/; q; }
40377 + s/.*/./; q'`
40378 + done
40379 + test ! -n "$as_dirs" || mkdir $as_dirs
40380 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40381 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40382 + { (exit 1); exit 1; }; }; }
40384 + ac_builddir=.
40386 +if test "$ac_dir" != .; then
40387 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40388 + # A "../" for each directory in $ac_dir_suffix.
40389 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40390 +else
40391 + ac_dir_suffix= ac_top_builddir=
40394 +case $srcdir in
40395 + .) # No --srcdir option. We are building in place.
40396 + ac_srcdir=.
40397 + if test -z "$ac_top_builddir"; then
40398 + ac_top_srcdir=.
40399 + else
40400 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40401 + fi ;;
40402 + [\\/]* | ?:[\\/]* ) # Absolute path.
40403 + ac_srcdir=$srcdir$ac_dir_suffix;
40404 + ac_top_srcdir=$srcdir ;;
40405 *) # Relative path.
40406 - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
40407 - top_srcdir="$ac_dots$ac_given_srcdir" ;;
40408 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40409 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
40410 +esac
40412 +# Do not use `cd foo && pwd` to compute absolute paths, because
40413 +# the directories may not exist.
40414 +case `pwd` in
40415 +.) ac_abs_builddir="$ac_dir";;
40417 + case "$ac_dir" in
40418 + .) ac_abs_builddir=`pwd`;;
40419 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40420 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
40421 + esac;;
40422 +esac
40423 +case $ac_abs_builddir in
40424 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
40426 + case ${ac_top_builddir}. in
40427 + .) ac_abs_top_builddir=$ac_abs_builddir;;
40428 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40429 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40430 + esac;;
40431 +esac
40432 +case $ac_abs_builddir in
40433 +.) ac_abs_srcdir=$ac_srcdir;;
40435 + case $ac_srcdir in
40436 + .) ac_abs_srcdir=$ac_abs_builddir;;
40437 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40438 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40439 + esac;;
40440 +esac
40441 +case $ac_abs_builddir in
40442 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
40444 + case $ac_top_srcdir in
40445 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
40446 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40447 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40448 + esac;;
40449 +esac
40452 + case $INSTALL in
40453 + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40454 + *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
40455 esac
40457 - case "$ac_given_INSTALL" in
40458 - [/$]*) INSTALL="$ac_given_INSTALL" ;;
40459 - *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
40460 - esac
40462 - echo creating "$ac_file"
40463 - rm -f "$ac_file"
40464 - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
40465 - case "$ac_file" in
40466 - *Makefile*) ac_comsub="1i\\
40467 -# $configure_input" ;;
40468 - *) ac_comsub= ;;
40469 - esac
40471 - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
40472 - sed -e "$ac_comsub
40473 -s%@configure_input@%$configure_input%g
40474 -s%@srcdir@%$srcdir%g
40475 -s%@top_srcdir@%$top_srcdir%g
40476 -s%@INSTALL@%$INSTALL%g
40477 -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
40478 -fi; done
40479 -rm -f conftest.s*
40480 + # Let's still pretend it is `configure' which instantiates (i.e., don't
40481 + # use $as_me), people would be surprised to read:
40482 + # /* config.h. Generated by config.status. */
40483 + if test x"$ac_file" = x-; then
40484 + configure_input=
40485 + else
40486 + configure_input="$ac_file. "
40487 + fi
40488 + configure_input=$configure_input"Generated from `echo $ac_file_in |
40489 + sed 's,.*/,,'` by configure."
40491 + # First look for the input files in the build tree, otherwise in the
40492 + # src tree.
40493 + ac_file_inputs=`IFS=:
40494 + for f in $ac_file_in; do
40495 + case $f in
40496 + -) echo $tmp/stdin ;;
40497 + [\\/$]*)
40498 + # Absolute (can't be DOS-style, as IFS=:)
40499 + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40500 +echo "$as_me: error: cannot find input file: $f" >&2;}
40501 + { (exit 1); exit 1; }; }
40502 + echo "$f";;
40503 + *) # Relative
40504 + if test -f "$f"; then
40505 + # Build tree
40506 + echo "$f"
40507 + elif test -f "$srcdir/$f"; then
40508 + # Source tree
40509 + echo "$srcdir/$f"
40510 + else
40511 + # /dev/null tree
40512 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40513 +echo "$as_me: error: cannot find input file: $f" >&2;}
40514 + { (exit 1); exit 1; }; }
40515 + fi;;
40516 + esac
40517 + done` || { (exit 1); exit 1; }
40519 + if test x"$ac_file" != x-; then
40520 + { echo "$as_me:$LINENO: creating $ac_file" >&5
40521 +echo "$as_me: creating $ac_file" >&6;}
40522 + rm -f "$ac_file"
40523 + fi
40524 +_ACEOF
40525 +cat >>$CONFIG_STATUS <<_ACEOF
40526 + sed "$ac_vpsub
40527 +$extrasub
40528 +_ACEOF
40529 +cat >>$CONFIG_STATUS <<\_ACEOF
40531 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40532 +s,@configure_input@,$configure_input,;t t
40533 +s,@srcdir@,$ac_srcdir,;t t
40534 +s,@abs_srcdir@,$ac_abs_srcdir,;t t
40535 +s,@top_srcdir@,$ac_top_srcdir,;t t
40536 +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
40537 +s,@builddir@,$ac_builddir,;t t
40538 +s,@abs_builddir@,$ac_abs_builddir,;t t
40539 +s,@top_builddir@,$ac_top_builddir,;t t
40540 +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
40541 +s,@INSTALL@,$ac_INSTALL,;t t
40542 +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
40543 + rm -f $tmp/stdin
40544 + if test x"$ac_file" != x-; then
40545 + mv $tmp/out $ac_file
40546 + else
40547 + cat $tmp/out
40548 + rm -f $tmp/out
40549 + fi
40551 +done
40552 +_ACEOF
40553 +cat >>$CONFIG_STATUS <<\_ACEOF
40556 +# CONFIG_HEADER section.
40559 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
40560 # NAME is the cpp macro being defined and VALUE is the value it is being given.
40562 # ac_d sets the value in "#define NAME VALUE" lines.
40563 -ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
40564 -ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
40565 -ac_dC='\3'
40566 -ac_dD='%g'
40567 -# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
40568 -ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
40569 -ac_uB='\([ ]\)%\1#\2define\3'
40570 +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
40571 +ac_dB='[ ].*$,\1#\2'
40572 +ac_dC=' '
40573 +ac_dD=',;t'
40574 +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
40575 +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
40576 +ac_uB='$,\1#\2define\3'
40577 ac_uC=' '
40578 -ac_uD='\4%g'
40579 -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
40580 -ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
40581 -ac_eB='$%\1#\2define\3'
40582 -ac_eC=' '
40583 -ac_eD='%g'
40584 +ac_uD=',;t'
40586 -if test "${CONFIG_HEADERS+set}" != set; then
40587 -EOF
40588 -cat >> $CONFIG_STATUS <<EOF
40589 - CONFIG_HEADERS="config.h"
40590 -EOF
40591 -cat >> $CONFIG_STATUS <<\EOF
40593 -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
40594 +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
40595 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40596 - case "$ac_file" in
40597 - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
40598 - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
40599 - *) ac_file_in="${ac_file}.in" ;;
40600 + case $ac_file in
40601 + - | *:- | *:-:* ) # input from stdin
40602 + cat >$tmp/stdin
40603 + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40604 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40605 + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40606 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40607 + * ) ac_file_in=$ac_file.in ;;
40608 esac
40610 - echo creating $ac_file
40612 - rm -f conftest.frag conftest.in conftest.out
40613 - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
40614 - cat $ac_file_inputs > conftest.in
40616 -EOF
40617 + test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
40618 +echo "$as_me: creating $ac_file" >&6;}
40620 -# Transform confdefs.h into a sed script conftest.vals that substitutes
40621 -# the proper values into config.h.in to produce config.h. And first:
40622 -# Protect against being on the right side of a sed subst in config.status.
40623 -# Protect against being in an unquoted here document in config.status.
40624 -rm -f conftest.vals
40625 -cat > conftest.hdr <<\EOF
40626 -s/[\\&%]/\\&/g
40627 -s%[\\$`]%\\&%g
40628 -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
40629 -s%ac_d%ac_u%gp
40630 -s%ac_u%ac_e%gp
40631 -EOF
40632 -sed -n -f conftest.hdr confdefs.h > conftest.vals
40633 -rm -f conftest.hdr
40634 + # First look for the input files in the build tree, otherwise in the
40635 + # src tree.
40636 + ac_file_inputs=`IFS=:
40637 + for f in $ac_file_in; do
40638 + case $f in
40639 + -) echo $tmp/stdin ;;
40640 + [\\/$]*)
40641 + # Absolute (can't be DOS-style, as IFS=:)
40642 + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40643 +echo "$as_me: error: cannot find input file: $f" >&2;}
40644 + { (exit 1); exit 1; }; }
40645 + # Do quote $f, to prevent DOS paths from being IFS'd.
40646 + echo "$f";;
40647 + *) # Relative
40648 + if test -f "$f"; then
40649 + # Build tree
40650 + echo "$f"
40651 + elif test -f "$srcdir/$f"; then
40652 + # Source tree
40653 + echo "$srcdir/$f"
40654 + else
40655 + # /dev/null tree
40656 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40657 +echo "$as_me: error: cannot find input file: $f" >&2;}
40658 + { (exit 1); exit 1; }; }
40659 + fi;;
40660 + esac
40661 + done` || { (exit 1); exit 1; }
40662 + # Remove the trailing spaces.
40663 + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
40665 +_ACEOF
40667 +# Transform confdefs.h into two sed scripts, `conftest.defines' and
40668 +# `conftest.undefs', that substitutes the proper values into
40669 +# config.h.in to produce config.h. The first handles `#define'
40670 +# templates, and the second `#undef' templates.
40671 +# And first: Protect against being on the right side of a sed subst in
40672 +# config.status. Protect against being in an unquoted here document
40673 +# in config.status.
40674 +rm -f conftest.defines conftest.undefs
40675 +# Using a here document instead of a string reduces the quoting nightmare.
40676 +# Putting comments in sed scripts is not portable.
40678 +# `end' is used to avoid that the second main sed command (meant for
40679 +# 0-ary CPP macros) applies to n-ary macro definitions.
40680 +# See the Autoconf documentation for `clear'.
40681 +cat >confdef2sed.sed <<\_ACEOF
40682 +s/[\\&,]/\\&/g
40683 +s,[\\$`],\\&,g
40684 +t clear
40685 +: clear
40686 +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
40687 +t end
40688 +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
40689 +: end
40690 +_ACEOF
40691 +# If some macros were called several times there might be several times
40692 +# the same #defines, which is useless. Nevertheless, we may not want to
40693 +# sort them, since we want the *last* AC-DEFINE to be honored.
40694 +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40695 +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40696 +rm -f confdef2sed.sed
40698 # This sed command replaces #undef with comments. This is necessary, for
40699 # example, in the case of _POSIX_SOURCE, which is predefined and required
40700 # on some systems where configure will not decide to define it.
40701 -cat >> conftest.vals <<\EOF
40702 -s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
40703 -EOF
40705 -# Break up conftest.vals because some shells have a limit on
40706 -# the size of here documents, and old seds have small limits too.
40708 +cat >>conftest.undefs <<\_ACEOF
40709 +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
40710 +_ACEOF
40712 +# Break up conftest.defines because some shells have a limit on the size
40713 +# of here documents, and old seds have small limits too (100 cmds).
40714 +echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
40715 +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
40716 +echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40717 +echo ' :' >>$CONFIG_STATUS
40718 rm -f conftest.tail
40719 -while :
40720 +while grep . conftest.defines >/dev/null
40722 - ac_lines=`grep -c . conftest.vals`
40723 - # grep -c gives empty output for an empty file on some AIX systems.
40724 - if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
40725 - # Write a limited-size here document to conftest.frag.
40726 - echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
40727 - sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
40728 + # Write a limited-size here document to $tmp/defines.sed.
40729 + echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40730 + # Speed up: don't consider the non `#define' lines.
40731 + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
40732 + # Work around the forget-to-reset-the-flag bug.
40733 + echo 't clr' >>$CONFIG_STATUS
40734 + echo ': clr' >>$CONFIG_STATUS
40735 + sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
40736 echo 'CEOF
40737 - sed -f conftest.frag conftest.in > conftest.out
40738 - rm -f conftest.in
40739 - mv conftest.out conftest.in
40740 -' >> $CONFIG_STATUS
40741 - sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
40742 - rm -f conftest.vals
40743 - mv conftest.tail conftest.vals
40744 -done
40745 -rm -f conftest.vals
40747 -cat >> $CONFIG_STATUS <<\EOF
40748 - rm -f conftest.frag conftest.h
40749 - echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
40750 - cat conftest.in >> conftest.h
40751 - rm -f conftest.in
40752 - if cmp -s $ac_file conftest.h 2>/dev/null; then
40753 - echo "$ac_file is unchanged"
40754 - rm -f conftest.h
40755 - else
40756 - # Remove last slash and all that follows it. Not all systems have dirname.
40757 - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
40758 - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
40759 - # The file is in a subdirectory.
40760 - test ! -d "$ac_dir" && mkdir "$ac_dir"
40761 - fi
40762 - rm -f $ac_file
40763 - mv conftest.h $ac_file
40764 + sed -f $tmp/defines.sed $tmp/in >$tmp/out
40765 + rm -f $tmp/in
40766 + mv $tmp/out $tmp/in
40767 +' >>$CONFIG_STATUS
40768 + sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
40769 + rm -f conftest.defines
40770 + mv conftest.tail conftest.defines
40771 +done
40772 +rm -f conftest.defines
40773 +echo ' fi # grep' >>$CONFIG_STATUS
40774 +echo >>$CONFIG_STATUS
40776 +# Break up conftest.undefs because some shells have a limit on the size
40777 +# of here documents, and old seds have small limits too (100 cmds).
40778 +echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
40779 +rm -f conftest.tail
40780 +while grep . conftest.undefs >/dev/null
40782 + # Write a limited-size here document to $tmp/undefs.sed.
40783 + echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40784 + # Speed up: don't consider the non `#undef'
40785 + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
40786 + # Work around the forget-to-reset-the-flag bug.
40787 + echo 't clr' >>$CONFIG_STATUS
40788 + echo ': clr' >>$CONFIG_STATUS
40789 + sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
40790 + echo 'CEOF
40791 + sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40792 + rm -f $tmp/in
40793 + mv $tmp/out $tmp/in
40794 +' >>$CONFIG_STATUS
40795 + sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40796 + rm -f conftest.undefs
40797 + mv conftest.tail conftest.undefs
40798 +done
40799 +rm -f conftest.undefs
40801 +cat >>$CONFIG_STATUS <<\_ACEOF
40802 + # Let's still pretend it is `configure' which instantiates (i.e., don't
40803 + # use $as_me), people would be surprised to read:
40804 + # /* config.h. Generated by config.status. */
40805 + if test x"$ac_file" = x-; then
40806 + echo "/* Generated by configure. */" >$tmp/config.h
40807 + else
40808 + echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
40810 -fi; done
40811 + cat $tmp/in >>$tmp/config.h
40812 + rm -f $tmp/in
40813 + if test x"$ac_file" != x-; then
40814 + if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40815 + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40816 +echo "$as_me: $ac_file is unchanged" >&6;}
40817 + else
40818 + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40819 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40820 + X"$ac_file" : 'X\(//\)[^/]' \| \
40821 + X"$ac_file" : 'X\(//\)$' \| \
40822 + X"$ac_file" : 'X\(/\)' \| \
40823 + . : '\(.\)' 2>/dev/null ||
40824 +echo X"$ac_file" |
40825 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40826 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40827 + /^X\(\/\/\)$/{ s//\1/; q; }
40828 + /^X\(\/\).*/{ s//\1/; q; }
40829 + s/.*/./; q'`
40830 + { if $as_mkdir_p; then
40831 + mkdir -p "$ac_dir"
40832 + else
40833 + as_dir="$ac_dir"
40834 + as_dirs=
40835 + while test ! -d "$as_dir"; do
40836 + as_dirs="$as_dir $as_dirs"
40837 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
40838 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40839 + X"$as_dir" : 'X\(//\)[^/]' \| \
40840 + X"$as_dir" : 'X\(//\)$' \| \
40841 + X"$as_dir" : 'X\(/\)' \| \
40842 + . : '\(.\)' 2>/dev/null ||
40843 +echo X"$as_dir" |
40844 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40845 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40846 + /^X\(\/\/\)$/{ s//\1/; q; }
40847 + /^X\(\/\).*/{ s//\1/; q; }
40848 + s/.*/./; q'`
40849 + done
40850 + test ! -n "$as_dirs" || mkdir $as_dirs
40851 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40852 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40853 + { (exit 1); exit 1; }; }; }
40855 -EOF
40856 + rm -f $ac_file
40857 + mv $tmp/config.h $ac_file
40858 + fi
40859 + else
40860 + cat $tmp/config.h
40861 + rm -f $tmp/config.h
40862 + fi
40863 +done
40864 +_ACEOF
40865 +cat >>$CONFIG_STATUS <<\_ACEOF
40867 -cat >> $CONFIG_STATUS <<EOF
40868 -ac_sources="$nls_cv_header_libgt"
40869 -ac_dests="$nls_cv_header_intl"
40870 -EOF
40872 +# CONFIG_LINKS section.
40875 -cat >> $CONFIG_STATUS <<\EOF
40876 -srcdir=$ac_given_srcdir
40877 -while test -n "$ac_sources"; do
40878 - set $ac_dests; ac_dest=$1; shift; ac_dests=$*
40879 - set $ac_sources; ac_source=$1; shift; ac_sources=$*
40880 +for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
40881 + ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40882 + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40884 - echo "linking $srcdir/$ac_source to $ac_dest"
40885 + { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
40886 +echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
40888 if test ! -r $srcdir/$ac_source; then
40889 - { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
40890 + { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
40891 +echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
40892 + { (exit 1); exit 1; }; }
40894 rm -f $ac_dest
40896 # Make relative symlinks.
40897 - # Remove last slash and all that follows it. Not all systems have dirname.
40898 - ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
40899 - if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
40900 - # The dest file is in a subdirectory.
40901 - test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
40902 - ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
40903 - # A "../" for each directory in $ac_dest_dir_suffix.
40904 - ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
40905 + ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
40906 +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40907 + X"$ac_dest" : 'X\(//\)[^/]' \| \
40908 + X"$ac_dest" : 'X\(//\)$' \| \
40909 + X"$ac_dest" : 'X\(/\)' \| \
40910 + . : '\(.\)' 2>/dev/null ||
40911 +echo X"$ac_dest" |
40912 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40913 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40914 + /^X\(\/\/\)$/{ s//\1/; q; }
40915 + /^X\(\/\).*/{ s//\1/; q; }
40916 + s/.*/./; q'`
40917 + { if $as_mkdir_p; then
40918 + mkdir -p "$ac_dest_dir"
40919 else
40920 - ac_dest_dir_suffix= ac_dots=
40921 - fi
40922 + as_dir="$ac_dest_dir"
40923 + as_dirs=
40924 + while test ! -d "$as_dir"; do
40925 + as_dirs="$as_dir $as_dirs"
40926 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
40927 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40928 + X"$as_dir" : 'X\(//\)[^/]' \| \
40929 + X"$as_dir" : 'X\(//\)$' \| \
40930 + X"$as_dir" : 'X\(/\)' \| \
40931 + . : '\(.\)' 2>/dev/null ||
40932 +echo X"$as_dir" |
40933 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40934 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40935 + /^X\(\/\/\)$/{ s//\1/; q; }
40936 + /^X\(\/\).*/{ s//\1/; q; }
40937 + s/.*/./; q'`
40938 + done
40939 + test ! -n "$as_dirs" || mkdir $as_dirs
40940 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
40941 +echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
40942 + { (exit 1); exit 1; }; }; }
40944 + ac_builddir=.
40946 +if test "$ac_dest_dir" != .; then
40947 + ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
40948 + # A "../" for each directory in $ac_dir_suffix.
40949 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40950 +else
40951 + ac_dir_suffix= ac_top_builddir=
40954 +case $srcdir in
40955 + .) # No --srcdir option. We are building in place.
40956 + ac_srcdir=.
40957 + if test -z "$ac_top_builddir"; then
40958 + ac_top_srcdir=.
40959 + else
40960 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40961 + fi ;;
40962 + [\\/]* | ?:[\\/]* ) # Absolute path.
40963 + ac_srcdir=$srcdir$ac_dir_suffix;
40964 + ac_top_srcdir=$srcdir ;;
40965 + *) # Relative path.
40966 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40967 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
40968 +esac
40970 +# Do not use `cd foo && pwd` to compute absolute paths, because
40971 +# the directories may not exist.
40972 +case `pwd` in
40973 +.) ac_abs_builddir="$ac_dest_dir";;
40975 + case "$ac_dest_dir" in
40976 + .) ac_abs_builddir=`pwd`;;
40977 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
40978 + *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
40979 + esac;;
40980 +esac
40981 +case $ac_abs_builddir in
40982 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
40984 + case ${ac_top_builddir}. in
40985 + .) ac_abs_top_builddir=$ac_abs_builddir;;
40986 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40987 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40988 + esac;;
40989 +esac
40990 +case $ac_abs_builddir in
40991 +.) ac_abs_srcdir=$ac_srcdir;;
40993 + case $ac_srcdir in
40994 + .) ac_abs_srcdir=$ac_abs_builddir;;
40995 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40996 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40997 + esac;;
40998 +esac
40999 +case $ac_abs_builddir in
41000 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
41002 + case $ac_top_srcdir in
41003 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
41004 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41005 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41006 + esac;;
41007 +esac
41009 - case "$srcdir" in
41010 - [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
41011 - *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
41013 + case $srcdir in
41014 + [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
41015 + *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
41016 esac
41018 - # Make a symlink if possible; otherwise try a hard link.
41019 - if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
41020 - ln $srcdir/$ac_source $ac_dest; then :
41021 - else
41022 - { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
41023 - fi
41024 + # Try a symlink, then a hard link, then a copy.
41025 + ln -s $ac_rel_source $ac_dest 2>/dev/null ||
41026 + ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
41027 + cp -p $srcdir/$ac_source $ac_dest ||
41028 + { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
41029 +echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
41030 + { (exit 1); exit 1; }; }
41031 done
41032 -EOF
41033 -cat >> $CONFIG_STATUS <<EOF
41034 +_ACEOF
41035 +cat >>$CONFIG_STATUS <<\_ACEOF
41038 +# CONFIG_COMMANDS section.
41040 +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
41041 + ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
41042 + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
41043 + ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
41044 +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41045 + X"$ac_dest" : 'X\(//\)[^/]' \| \
41046 + X"$ac_dest" : 'X\(//\)$' \| \
41047 + X"$ac_dest" : 'X\(/\)' \| \
41048 + . : '\(.\)' 2>/dev/null ||
41049 +echo X"$ac_dest" |
41050 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41051 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41052 + /^X\(\/\/\)$/{ s//\1/; q; }
41053 + /^X\(\/\).*/{ s//\1/; q; }
41054 + s/.*/./; q'`
41055 + { if $as_mkdir_p; then
41056 + mkdir -p "$ac_dir"
41057 + else
41058 + as_dir="$ac_dir"
41059 + as_dirs=
41060 + while test ! -d "$as_dir"; do
41061 + as_dirs="$as_dir $as_dirs"
41062 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
41063 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41064 + X"$as_dir" : 'X\(//\)[^/]' \| \
41065 + X"$as_dir" : 'X\(//\)$' \| \
41066 + X"$as_dir" : 'X\(/\)' \| \
41067 + . : '\(.\)' 2>/dev/null ||
41068 +echo X"$as_dir" |
41069 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41070 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41071 + /^X\(\/\/\)$/{ s//\1/; q; }
41072 + /^X\(\/\).*/{ s//\1/; q; }
41073 + s/.*/./; q'`
41074 + done
41075 + test ! -n "$as_dirs" || mkdir $as_dirs
41076 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41077 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41078 + { (exit 1); exit 1; }; }; }
41080 + ac_builddir=.
41082 +if test "$ac_dir" != .; then
41083 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41084 + # A "../" for each directory in $ac_dir_suffix.
41085 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41086 +else
41087 + ac_dir_suffix= ac_top_builddir=
41090 +case $srcdir in
41091 + .) # No --srcdir option. We are building in place.
41092 + ac_srcdir=.
41093 + if test -z "$ac_top_builddir"; then
41094 + ac_top_srcdir=.
41095 + else
41096 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41097 + fi ;;
41098 + [\\/]* | ?:[\\/]* ) # Absolute path.
41099 + ac_srcdir=$srcdir$ac_dir_suffix;
41100 + ac_top_srcdir=$srcdir ;;
41101 + *) # Relative path.
41102 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41103 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
41104 +esac
41106 +# Do not use `cd foo && pwd` to compute absolute paths, because
41107 +# the directories may not exist.
41108 +case `pwd` in
41109 +.) ac_abs_builddir="$ac_dir";;
41111 + case "$ac_dir" in
41112 + .) ac_abs_builddir=`pwd`;;
41113 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41114 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
41115 + esac;;
41116 +esac
41117 +case $ac_abs_builddir in
41118 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
41120 + case ${ac_top_builddir}. in
41121 + .) ac_abs_top_builddir=$ac_abs_builddir;;
41122 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41123 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41124 + esac;;
41125 +esac
41126 +case $ac_abs_builddir in
41127 +.) ac_abs_srcdir=$ac_srcdir;;
41129 + case $ac_srcdir in
41130 + .) ac_abs_srcdir=$ac_abs_builddir;;
41131 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41132 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41133 + esac;;
41134 +esac
41135 +case $ac_abs_builddir in
41136 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
41138 + case $ac_top_srcdir in
41139 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
41140 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41141 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41142 + esac;;
41143 +esac
41146 -EOF
41147 -cat >> $CONFIG_STATUS <<\EOF
41148 -test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
41149 -case "$CONFIG_FILES" in *po/Makefile.in*)
41150 + { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
41151 +echo "$as_me: executing $ac_dest commands" >&6;}
41152 + case $ac_dest in
41153 + default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
41154 + default-2 ) case "$CONFIG_FILES" in *po/Makefile.in*)
41155 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
41156 - esac
41157 -chmod +x gtk-config
41158 -exit 0
41159 -EOF
41160 + esac ;;
41161 + default ) chmod +x gtk-config ;;
41162 + esac
41163 +done
41164 +_ACEOF
41166 +cat >>$CONFIG_STATUS <<\_ACEOF
41168 +{ (exit 0); exit 0; }
41169 +_ACEOF
41170 chmod +x $CONFIG_STATUS
41171 -rm -fr confdefs* $ac_clean_files
41172 -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
41173 +ac_clean_files=$ac_clean_files_save
41176 +# configure is writing to config.log, and then calls config.status.
41177 +# config.status does its own redirection, appending to config.log.
41178 +# Unfortunately, on DOS this fails, as config.log is still kept open
41179 +# by configure, so config.status won't be able to write to it; its
41180 +# output is simply discarded. So we exec the FD to /dev/null,
41181 +# effectively closing config.log, so it can be properly (re)opened and
41182 +# appended to by config.status. When coming back to configure, we
41183 +# need to make the FD available again.
41184 +if test "$no_create" != yes; then
41185 + ac_cs_success=:
41186 + ac_config_status_args=
41187 + test "$silent" = yes &&
41188 + ac_config_status_args="$ac_config_status_args --quiet"
41189 + exec 5>/dev/null
41190 + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
41191 + exec 5>>config.log
41192 + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
41193 + # would make configure fail if this is the last instruction.
41194 + $ac_cs_success || { (exit 1); exit 1; }
41197 diff -urN gtk+-1.2.10.orig/docs/Makefile.in gtk+-1.2.10/docs/Makefile.in
41198 --- gtk+-1.2.10.orig/docs/Makefile.in 2001-04-01 21:15:08.000000000 -0600
41199 +++ gtk+-1.2.10/docs/Makefile.in 2006-07-09 02:29:45.000000000 -0600
41200 @@ -1,6 +1,6 @@
41201 -# Makefile.in generated automatically by automake 1.4 from Makefile.am
41202 +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
41204 -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
41205 +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
41206 # This Makefile.in is free software; the Free Software Foundation
41207 # gives unlimited permission to copy and/or distribute it,
41208 # with or without modifications, as long as this notice is preserved.
41209 @@ -59,13 +59,22 @@
41210 POST_UNINSTALL = :
41211 host_alias = @host_alias@
41212 host_triplet = @host@
41213 +AR = @AR@
41214 AS = @AS@
41215 AWK = @AWK@
41216 CATALOGS = @CATALOGS@
41217 CATOBJEXT = @CATOBJEXT@
41218 CC = @CC@
41219 +CXX = @CXX@
41220 +CXXCPP = @CXXCPP@
41221 DATADIRNAME = @DATADIRNAME@
41222 DLLTOOL = @DLLTOOL@
41223 +ECHO = @ECHO@
41224 +EGREP = @EGREP@
41225 +EXEEXT = @EXEEXT@
41226 +F77 = @F77@
41227 +GCJ = @GCJ@
41228 +GCJFLAGS = @GCJFLAGS@
41229 GDK_WLIBS = @GDK_WLIBS@
41230 GENCAT = @GENCAT@
41231 GLIB_CFLAGS = @GLIB_CFLAGS@
41232 @@ -85,14 +94,17 @@
41233 GTK_XIM_FLAGS = @GTK_XIM_FLAGS@
41234 GT_NO = @GT_NO@
41235 GT_YES = @GT_YES@
41236 +HAVE_LIB = @HAVE_LIB@
41237 INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@
41238 INDENT = @INDENT@
41239 INSTOBJEXT = @INSTOBJEXT@
41240 INTLDEPS = @INTLDEPS@
41241 INTLLIBS = @INTLLIBS@
41242 INTLOBJS = @INTLOBJS@
41243 +LIB = @LIB@
41244 LIBTOOL = @LIBTOOL@
41245 LN_S = @LN_S@
41246 +LTLIB = @LTLIB@
41247 LT_AGE = @LT_AGE@
41248 LT_CURRENT = @LT_CURRENT@
41249 LT_RELEASE = @LT_RELEASE@
41250 @@ -101,12 +113,16 @@
41251 MAKEINFO = @MAKEINFO@
41252 MKINSTALLDIRS = @MKINSTALLDIRS@
41253 OBJDUMP = @OBJDUMP@
41254 +OBJEXT = @OBJEXT@
41255 PACKAGE = @PACKAGE@
41256 PERL = @PERL@
41257 +PKG_CONFIG = @PKG_CONFIG@
41258 POFILES = @POFILES@
41259 POSUB = @POSUB@
41260 RANLIB = @RANLIB@
41261 +RC = @RC@
41262 REBUILD = @REBUILD@
41263 +STRIP = @STRIP@
41264 STRIP_BEGIN = @STRIP_BEGIN@
41265 STRIP_DUMMY = @STRIP_DUMMY@
41266 STRIP_END = @STRIP_END@
41267 @@ -159,15 +175,15 @@
41269 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
41271 -TAR = gtar
41272 +TAR = tar
41273 GZIP_ENV = --best
41274 all: all-redirect
41275 .SUFFIXES:
41276 .SUFFIXES: .dvi .info .ps .texi .texinfo .txi
41277 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
41278 - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps docs/Makefile
41279 + cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/Makefile
41281 -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
41282 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
41283 cd $(top_builddir) \
41284 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
41286 @@ -257,7 +273,7 @@
41287 else ii=; fi; \
41288 list='$(INFO_DEPS)'; \
41289 for file in $$list; do \
41290 - test -z "$ii" \
41291 + test -z "$$ii" \
41292 || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \
41293 done
41294 @$(NORMAL_UNINSTALL)
41295 @@ -343,6 +359,11 @@
41296 subdir = docs
41298 distdir: $(DISTFILES)
41299 + here=`cd $(top_builddir) && pwd`; \
41300 + top_distdir=`cd $(top_distdir) && pwd`; \
41301 + distdir=`cd $(distdir) && pwd`; \
41302 + cd $(top_srcdir) \
41303 + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu docs/Makefile
41304 $(mkinstalldirs) $(distdir)/html $(distdir)/text
41305 @for file in $(DISTFILES); do \
41306 d=$(srcdir); \
41307 diff -urN gtk+-1.2.10.orig/gdk/Makefile.in gtk+-1.2.10/gdk/Makefile.in
41308 --- gtk+-1.2.10.orig/gdk/Makefile.in 2001-04-01 21:14:11.000000000 -0600
41309 +++ gtk+-1.2.10/gdk/Makefile.in 2006-07-09 02:29:45.000000000 -0600
41310 @@ -1,6 +1,6 @@
41311 -# Makefile.in generated automatically by automake 1.4 from Makefile.am
41312 +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
41314 -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
41315 +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
41316 # This Makefile.in is free software; the Free Software Foundation
41317 # gives unlimited permission to copy and/or distribute it,
41318 # with or without modifications, as long as this notice is preserved.
41319 @@ -59,13 +59,22 @@
41320 POST_UNINSTALL = :
41321 host_alias = @host_alias@
41322 host_triplet = @host@
41323 +AR = @AR@
41324 AS = @AS@
41325 AWK = @AWK@
41326 CATALOGS = @CATALOGS@
41327 CATOBJEXT = @CATOBJEXT@
41328 CC = @CC@
41329 +CXX = @CXX@
41330 +CXXCPP = @CXXCPP@
41331 DATADIRNAME = @DATADIRNAME@
41332 DLLTOOL = @DLLTOOL@
41333 +ECHO = @ECHO@
41334 +EGREP = @EGREP@
41335 +EXEEXT = @EXEEXT@
41336 +F77 = @F77@
41337 +GCJ = @GCJ@
41338 +GCJFLAGS = @GCJFLAGS@
41339 GDK_WLIBS = @GDK_WLIBS@
41340 GENCAT = @GENCAT@
41341 GLIB_CFLAGS = @GLIB_CFLAGS@
41342 @@ -85,14 +94,17 @@
41343 GTK_XIM_FLAGS = @GTK_XIM_FLAGS@
41344 GT_NO = @GT_NO@
41345 GT_YES = @GT_YES@
41346 +HAVE_LIB = @HAVE_LIB@
41347 INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@
41348 INDENT = @INDENT@
41349 INSTOBJEXT = @INSTOBJEXT@
41350 INTLDEPS = @INTLDEPS@
41351 INTLLIBS = @INTLLIBS@
41352 INTLOBJS = @INTLOBJS@
41353 +LIB = @LIB@
41354 LIBTOOL = @LIBTOOL@
41355 LN_S = @LN_S@
41356 +LTLIB = @LTLIB@
41357 LT_AGE = @LT_AGE@
41358 LT_CURRENT = @LT_CURRENT@
41359 LT_RELEASE = @LT_RELEASE@
41360 @@ -101,12 +113,16 @@
41361 MAKEINFO = @MAKEINFO@
41362 MKINSTALLDIRS = @MKINSTALLDIRS@
41363 OBJDUMP = @OBJDUMP@
41364 +OBJEXT = @OBJEXT@
41365 PACKAGE = @PACKAGE@
41366 PERL = @PERL@
41367 +PKG_CONFIG = @PKG_CONFIG@
41368 POFILES = @POFILES@
41369 POSUB = @POSUB@
41370 RANLIB = @RANLIB@
41371 +RC = @RC@
41372 REBUILD = @REBUILD@
41373 +STRIP = @STRIP@
41374 STRIP_BEGIN = @STRIP_BEGIN@
41375 STRIP_DUMMY = @STRIP_DUMMY@
41376 STRIP_END = @STRIP_END@
41377 @@ -142,9 +158,10 @@
41378 # setup source file variables
41380 # GDK header files for public installation (non-generated)
41381 -gdk_public_h_sources = @STRIP_BEGIN@ gdk.h gdkcursors.h gdkrgb.h gdki18n.h gdkkeysyms.h gdkprivate.h gdktypes.h gdkx.h @STRIP_END@
41382 +gdk_public_h_sources = gdk.h gdkcursors.h gdkrgb.h gdki18n.h gdkkeysyms.h gdkprivate.h gdktypes.h gdkx.h
41384 -gdk_c_sources = @STRIP_BEGIN@ gdk.c gdkcc.c gdkcolor.c gdkcursor.c gdkdnd.c gdkdraw.c gdkevents.c gdkfont.c gdkgc.c gdkglobals.c gdkim.c gdkimage.c gdkinput.c gdkinput.h gdkinputnone.h gdkinputcommon.h gdkinputgxi.h gdkinputxfree.h gdkpixmap.c gdkproperty.c gdkrgb.c gdkrectangle.c gdkregion.c gdkselection.c gdkvisual.c gdkwindow.c gdkxid.c MwmUtil.h gxid_lib.h gxid_proto.h gxid_lib.c @STRIP_END@
41386 +gdk_c_sources = gdk.c gdkcc.c gdkcolor.c gdkcursor.c gdkdnd.c gdkdraw.c gdkevents.c gdkfont.c gdkgc.c gdkglobals.c gdkim.c gdkimage.c gdkinput.c gdkinput.h gdkinputnone.h gdkinputcommon.h gdkinputgxi.h gdkinputxfree.h gdkpixmap.c gdkproperty.c gdkrgb.c gdkrectangle.c gdkregion.c gdkselection.c gdkvisual.c gdkwindow.c gdkxid.c MwmUtil.h gxid_lib.h gxid_proto.h gxid_lib.c
41390 @@ -152,9 +169,9 @@
41392 libgdkinclude_HEADERS = $(gdk_public_h_sources)
41393 libgdk_la_SOURCES = $(gdk_c_sources)
41394 -MAINTAINERCLEANFILES =
41395 -EXTRA_HEADERS =
41396 -EXTRA_DIST =
41397 +MAINTAINERCLEANFILES =
41398 +EXTRA_HEADERS =
41399 +EXTRA_DIST =
41402 # extra programs
41403 @@ -185,9 +202,10 @@
41404 gdkimage.lo gdkinput.lo gdkpixmap.lo gdkproperty.lo gdkrgb.lo \
41405 gdkrectangle.lo gdkregion.lo gdkselection.lo gdkvisual.lo gdkwindow.lo \
41406 gdkxid.lo gxid_lib.lo
41407 +bin_PROGRAMS = @xinput_progs@
41408 PROGRAMS = $(bin_PROGRAMS)
41410 -gxid_OBJECTS = gxid.o
41411 +gxid_OBJECTS = gxid.$(OBJEXT)
41412 gxid_DEPENDENCIES =
41413 gxid_LDFLAGS =
41414 CFLAGS = @CFLAGS@
41415 @@ -202,18 +220,25 @@
41417 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
41419 -TAR = gtar
41420 +TAR = tar
41421 GZIP_ENV = --best
41422 +DEP_FILES = .deps/gdk.P .deps/gdkcc.P .deps/gdkcolor.P \
41423 +.deps/gdkcursor.P .deps/gdkdnd.P .deps/gdkdraw.P .deps/gdkevents.P \
41424 +.deps/gdkfont.P .deps/gdkgc.P .deps/gdkglobals.P .deps/gdkim.P \
41425 +.deps/gdkimage.P .deps/gdkinput.P .deps/gdkpixmap.P .deps/gdkproperty.P \
41426 +.deps/gdkrectangle.P .deps/gdkregion.P .deps/gdkrgb.P \
41427 +.deps/gdkselection.P .deps/gdkvisual.P .deps/gdkwindow.P .deps/gdkxid.P \
41428 +.deps/gxid.P .deps/gxid_lib.P
41429 SOURCES = $(libgdk_la_SOURCES) $(gxid_SOURCES)
41430 OBJECTS = $(libgdk_la_OBJECTS) $(gxid_OBJECTS)
41432 all: all-redirect
41433 .SUFFIXES:
41434 -.SUFFIXES: .S .c .lo .o .s
41435 +.SUFFIXES: .S .c .lo .o .obj .s
41436 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
41437 - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps gdk/Makefile
41438 + cd $(top_srcdir) && $(AUTOMAKE) --gnu gdk/Makefile
41440 -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
41441 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
41442 cd $(top_builddir) \
41443 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
41445 @@ -243,8 +268,10 @@
41446 $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
41447 done
41449 -.c.o:
41450 - $(COMPILE) -c $<
41451 +# FIXME: We should only use cygpath when building on Windows,
41452 +# and only if it is available.
41453 +.c.obj:
41454 + $(COMPILE) -c `cygpath -w $<`
41456 .s.o:
41457 $(COMPILE) -c $<
41458 @@ -254,6 +281,7 @@
41460 mostlyclean-compile:
41461 -rm -f *.o core *.core
41462 + -rm -f *.$(OBJEXT)
41464 clean-compile:
41466 @@ -262,9 +290,6 @@
41468 maintainer-clean-compile:
41470 -.c.lo:
41471 - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
41473 .s.lo:
41474 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
41476 @@ -309,8 +334,8 @@
41477 rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
41478 done
41480 -gxid: $(gxid_OBJECTS) $(gxid_DEPENDENCIES)
41481 - @rm -f gxid
41482 +gxid$(EXEEXT): $(gxid_OBJECTS) $(gxid_DEPENDENCIES)
41483 + @rm -f gxid$(EXEEXT)
41484 $(LINK) $(gxid_LDFLAGS) $(gxid_OBJECTS) $(gxid_LDADD) $(LIBS)
41486 install-libgdkincludeHEADERS: $(libgdkinclude_HEADERS)
41487 @@ -346,7 +371,7 @@
41488 awk ' { files[$$0] = 1; } \
41489 END { for (i in files) print i; }'`; \
41490 test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
41491 - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
41492 + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
41494 mostlyclean-tags:
41496 @@ -362,6 +387,11 @@
41497 subdir = gdk
41499 distdir: $(DISTFILES)
41500 + here=`cd $(top_builddir) && pwd`; \
41501 + top_distdir=`cd $(top_distdir) && pwd`; \
41502 + distdir=`cd $(distdir) && pwd`; \
41503 + cd $(top_srcdir) \
41504 + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu gdk/Makefile
41505 @for file in $(DISTFILES); do \
41506 d=$(srcdir); \
41507 if test -d $$d/$$file; then \
41508 @@ -372,55 +402,38 @@
41509 || cp -p $$d/$$file $(distdir)/$$file || :; \
41510 fi; \
41511 done
41512 -gdk.lo gdk.o : gdk.c ../config.h gdk.h gdktypes.h gdkcursors.h gdkrgb.h \
41513 - gdkprivate.h gdkinput.h gdkx.h gdkprivate.h gdki18n.h \
41514 - gdkkeysyms.h
41515 -gdkcc.lo gdkcc.o : gdkcc.c gdk.h gdktypes.h gdkcursors.h gdkrgb.h \
41516 - gdkprivate.h gdkx.h gdkprivate.h
41517 -gdkcolor.lo gdkcolor.o : gdkcolor.c gdk.h gdktypes.h gdkcursors.h \
41518 - gdkrgb.h gdkprivate.h gdkx.h gdkprivate.h
41519 -gdkcursor.lo gdkcursor.o : gdkcursor.c gdk.h gdktypes.h gdkcursors.h \
41520 - gdkrgb.h gdkprivate.h
41521 -gdkdnd.lo gdkdnd.o : gdkdnd.c gdkx.h gdkprivate.h gdktypes.h \
41522 - gdkcursors.h gdk.h gdkrgb.h
41523 -gdkdraw.lo gdkdraw.o : gdkdraw.c gdk.h gdktypes.h gdkcursors.h gdkrgb.h \
41524 - gdkprivate.h
41525 -gdkevents.lo gdkevents.o : gdkevents.c gdk.h gdktypes.h gdkcursors.h \
41526 - gdkrgb.h gdkx.h gdkprivate.h gdkprivate.h gdkkeysyms.h \
41527 - ../config.h gdkinput.h
41528 -gdkfont.lo gdkfont.o : gdkfont.c gdk.h gdktypes.h gdkcursors.h gdkrgb.h \
41529 - gdkprivate.h ../config.h
41530 -gdkgc.lo gdkgc.o : gdkgc.c gdk.h gdktypes.h gdkcursors.h gdkrgb.h \
41531 - gdkprivate.h
41532 -gdkglobals.lo gdkglobals.o : gdkglobals.c gdktypes.h gdkcursors.h \
41533 - gdkprivate.h gdktypes.h ../config.h
41534 -gdkim.lo gdkim.o : gdkim.c gdk.h gdktypes.h gdkcursors.h gdkrgb.h \
41535 - gdkprivate.h gdki18n.h gdkx.h gdkprivate.h ../config.h
41536 -gdkimage.lo gdkimage.o : gdkimage.c ../config.h gdk.h gdktypes.h \
41537 - gdkcursors.h gdkrgb.h gdkprivate.h
41538 -gdkinput.lo gdkinput.o : gdkinput.c ../config.h gdk.h gdktypes.h \
41539 - gdkcursors.h gdkrgb.h gdkx.h gdkprivate.h gdkprivate.h \
41540 - gdkinput.h gdkinputnone.h gdkinputcommon.h gdkinputxfree.h \
41541 - gdkinputgxi.h
41542 -gdkpixmap.lo gdkpixmap.o : gdkpixmap.c ../config.h gdk.h gdktypes.h \
41543 - gdkcursors.h gdkrgb.h gdkprivate.h
41544 -gdkproperty.lo gdkproperty.o : gdkproperty.c gdk.h gdktypes.h \
41545 - gdkcursors.h gdkrgb.h gdkprivate.h
41546 -gdkrectangle.lo gdkrectangle.o : gdkrectangle.c gdk.h gdktypes.h \
41547 - gdkcursors.h gdkrgb.h
41548 -gdkregion.lo gdkregion.o : gdkregion.c gdk.h gdktypes.h gdkcursors.h \
41549 - gdkrgb.h gdkprivate.h
41550 -gdkrgb.lo gdkrgb.o : gdkrgb.c ../config.h gdk.h gdktypes.h gdkcursors.h \
41551 - gdkrgb.h gdkprivate.h gdkrgb.h
41552 -gdkselection.lo gdkselection.o : gdkselection.c gdk.h gdktypes.h \
41553 - gdkcursors.h gdkrgb.h gdkprivate.h gdkx.h gdkprivate.h
41554 -gdkvisual.lo gdkvisual.o : gdkvisual.c gdk.h gdktypes.h gdkcursors.h \
41555 - gdkrgb.h gdkprivate.h gdkx.h gdkprivate.h
41556 -gdkwindow.lo gdkwindow.o : gdkwindow.c gdk.h gdktypes.h gdkcursors.h \
41557 - gdkrgb.h ../config.h gdkinput.h gdkprivate.h MwmUtil.h
41558 -gdkxid.lo gdkxid.o : gdkxid.c gdkprivate.h gdktypes.h gdkcursors.h
41559 -gxid_lib.lo gxid_lib.o : gxid_lib.c ../config.h gxid_lib.h gxid_proto.h
41561 +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
41563 +-include $(DEP_FILES)
41565 +mostlyclean-depend:
41567 +clean-depend:
41569 +distclean-depend:
41570 + -rm -rf .deps
41572 +maintainer-clean-depend:
41574 +%.o: %.c
41575 + @echo '$(COMPILE) -c $<'; \
41576 + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
41577 + @-cp .deps/$(*F).pp .deps/$(*F).P; \
41578 + tr ' ' '\012' < .deps/$(*F).pp \
41579 + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
41580 + >> .deps/$(*F).P; \
41581 + rm .deps/$(*F).pp
41583 +%.lo: %.c
41584 + @echo '$(LTCOMPILE) -c $<'; \
41585 + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
41586 + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
41587 + < .deps/$(*F).pp > .deps/$(*F).P; \
41588 + tr ' ' '\012' < .deps/$(*F).pp \
41589 + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
41590 + >> .deps/$(*F).P; \
41591 + rm -f .deps/$(*F).pp
41592 info-am:
41593 info: info-am
41594 dvi-am:
41595 @@ -462,19 +475,19 @@
41596 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
41597 mostlyclean-am: mostlyclean-libLTLIBRARIES mostlyclean-compile \
41598 mostlyclean-libtool mostlyclean-binPROGRAMS \
41599 - mostlyclean-tags mostlyclean-generic
41600 + mostlyclean-tags mostlyclean-depend mostlyclean-generic
41602 mostlyclean: mostlyclean-am
41604 clean-am: clean-libLTLIBRARIES clean-compile clean-libtool \
41605 - clean-binPROGRAMS clean-tags clean-generic \
41606 + clean-binPROGRAMS clean-tags clean-depend clean-generic \
41607 mostlyclean-am
41609 clean: clean-am
41611 distclean-am: distclean-libLTLIBRARIES distclean-compile \
41612 distclean-libtool distclean-binPROGRAMS distclean-tags \
41613 - distclean-generic clean-am
41614 + distclean-depend distclean-generic clean-am
41615 -rm -f libtool
41617 distclean: distclean-am
41618 @@ -482,7 +495,8 @@
41619 maintainer-clean-am: maintainer-clean-libLTLIBRARIES \
41620 maintainer-clean-compile maintainer-clean-libtool \
41621 maintainer-clean-binPROGRAMS maintainer-clean-tags \
41622 - maintainer-clean-generic distclean-am
41623 + maintainer-clean-depend maintainer-clean-generic \
41624 + distclean-am
41625 @echo "This command is intended for maintainers to use;"
41626 @echo "it deletes files that may require special tools to rebuild."
41628 @@ -497,12 +511,13 @@
41629 clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \
41630 install-binPROGRAMS uninstall-libgdkincludeHEADERS \
41631 install-libgdkincludeHEADERS tags mostlyclean-tags distclean-tags \
41632 -clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
41633 -check-am installcheck-am installcheck install-exec-am install-exec \
41634 -install-data-am install-data install-am install uninstall-am uninstall \
41635 -all-redirect all-am all installdirs mostlyclean-generic \
41636 -distclean-generic clean-generic maintainer-clean-generic clean \
41637 -mostlyclean distclean maintainer-clean
41638 +clean-tags maintainer-clean-tags distdir mostlyclean-depend \
41639 +distclean-depend clean-depend maintainer-clean-depend info-am info \
41640 +dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
41641 +install-exec install-data-am install-data install-am install \
41642 +uninstall-am uninstall all-redirect all-am all installdirs \
41643 +mostlyclean-generic distclean-generic clean-generic \
41644 +maintainer-clean-generic clean mostlyclean distclean maintainer-clean
41648 diff -urN gtk+-1.2.10.orig/gtk/Makefile.in gtk+-1.2.10/gtk/Makefile.in
41649 --- gtk+-1.2.10.orig/gtk/Makefile.in 2001-04-01 21:14:13.000000000 -0600
41650 +++ gtk+-1.2.10/gtk/Makefile.in 2006-07-09 02:29:45.000000000 -0600
41651 @@ -1,6 +1,6 @@
41652 -# Makefile.in generated automatically by automake 1.4 from Makefile.am
41653 +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
41655 -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
41656 +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
41657 # This Makefile.in is free software; the Free Software Foundation
41658 # gives unlimited permission to copy and/or distribute it,
41659 # with or without modifications, as long as this notice is preserved.
41660 @@ -59,13 +59,22 @@
41661 POST_UNINSTALL = :
41662 host_alias = @host_alias@
41663 host_triplet = @host@
41664 +AR = @AR@
41665 AS = @AS@
41666 AWK = @AWK@
41667 CATALOGS = @CATALOGS@
41668 CATOBJEXT = @CATOBJEXT@
41669 CC = @CC@
41670 +CXX = @CXX@
41671 +CXXCPP = @CXXCPP@
41672 DATADIRNAME = @DATADIRNAME@
41673 DLLTOOL = @DLLTOOL@
41674 +ECHO = @ECHO@
41675 +EGREP = @EGREP@
41676 +EXEEXT = @EXEEXT@
41677 +F77 = @F77@
41678 +GCJ = @GCJ@
41679 +GCJFLAGS = @GCJFLAGS@
41680 GDK_WLIBS = @GDK_WLIBS@
41681 GENCAT = @GENCAT@
41682 GLIB_CFLAGS = @GLIB_CFLAGS@
41683 @@ -85,14 +94,17 @@
41684 GTK_XIM_FLAGS = @GTK_XIM_FLAGS@
41685 GT_NO = @GT_NO@
41686 GT_YES = @GT_YES@
41687 +HAVE_LIB = @HAVE_LIB@
41688 INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@
41689 INDENT = @INDENT@
41690 INSTOBJEXT = @INSTOBJEXT@
41691 INTLDEPS = @INTLDEPS@
41692 INTLLIBS = @INTLLIBS@
41693 INTLOBJS = @INTLOBJS@
41694 +LIB = @LIB@
41695 LIBTOOL = @LIBTOOL@
41696 LN_S = @LN_S@
41697 +LTLIB = @LTLIB@
41698 LT_AGE = @LT_AGE@
41699 LT_CURRENT = @LT_CURRENT@
41700 LT_RELEASE = @LT_RELEASE@
41701 @@ -101,12 +113,16 @@
41702 MAKEINFO = @MAKEINFO@
41703 MKINSTALLDIRS = @MKINSTALLDIRS@
41704 OBJDUMP = @OBJDUMP@
41705 +OBJEXT = @OBJEXT@
41706 PACKAGE = @PACKAGE@
41707 PERL = @PERL@
41708 +PKG_CONFIG = @PKG_CONFIG@
41709 POFILES = @POFILES@
41710 POSUB = @POSUB@
41711 RANLIB = @RANLIB@
41712 +RC = @RC@
41713 REBUILD = @REBUILD@
41714 +STRIP = @STRIP@
41715 STRIP_BEGIN = @STRIP_BEGIN@
41716 STRIP_DUMMY = @STRIP_DUMMY@
41717 STRIP_END = @STRIP_END@
41718 @@ -143,13 +159,15 @@
41719 # setup source file variables
41721 # GTK+ header files for public installation (non-generated)
41722 -gtk_public_h_sources = @STRIP_BEGIN@ gtk.h gtkaccelgroup.h gtkaccellabel.h gtkadjustment.h gtkalignment.h gtkarg.h gtkarrow.h gtkaspectframe.h gtkbin.h gtkbindings.h gtkbbox.h gtkbox.h gtkbutton.h gtkcalendar.h gtkcheckbutton.h gtkcheckmenuitem.h gtkclist.h gtkcolorsel.h gtkcombo.h gtkcompat.h gtkcontainer.h gtkctree.h gtkcurve.h gtkdata.h gtkdebug.h gtkdialog.h gtkdnd.h gtkdrawingarea.h gtkeditable.h gtkentry.h gtkenums.h gtkeventbox.h gtkfilesel.h gtkfixed.h gtkfontsel.h gtkframe.h gtkgamma.h gtkgc.h gtkhandlebox.h gtkhbbox.h gtkhbox.h gtkhpaned.h gtkhruler.h gtkhscale.h gtkhscrollbar.h gtkhseparator.h gtkimage.h gtkinputdialog.h gtkinvisible.h gtkitem.h gtkitemfactory.h gtklabel.h gtklayout.h gtklist.h gtklistitem.h gtkmain.h gtkmenu.h gtkmenubar.h gtkmenufactory.h gtkmenuitem.h gtkmenushell.h gtkmisc.h gtknotebook.h gtkobject.h gtkoptionmenu.h gtkpacker.h gtkpaned.h gtkpixmap.h gtkplug.h gtkpreview.h gtkprivate.h gtkprogress.h gtkprogressbar.h gtkradiobutton.h gtkradiomenuitem.h gtkrange.h gtkrc.h gtkruler.h gtkscale.h gtkscrollbar.h gtkscrolledwindow.h gtkselection.h gtkseparator.h gtksignal.h gtksocket.h gtkspinbutton.h gtkstyle.h gtkstatusbar.h gtktable.h gtktearoffmenuitem.h gtktext.h gtkthemes.h gtktipsquery.h gtktogglebutton.h gtktoolbar.h gtktooltips.h gtktree.h gtktreeitem.h gtktypeutils.h gtkvbbox.h gtkvbox.h gtkviewport.h gtkvpaned.h gtkvruler.h gtkvscale.h gtkvscrollbar.h gtkvseparator.h gtkwidget.h gtkwindow.h @STRIP_END@
41723 +gtk_public_h_sources = gtk.h gtkaccelgroup.h gtkaccellabel.h gtkadjustment.h gtkalignment.h gtkarg.h gtkarrow.h gtkaspectframe.h gtkbin.h gtkbindings.h gtkbbox.h gtkbox.h gtkbutton.h gtkcalendar.h gtkcheckbutton.h gtkcheckmenuitem.h gtkclist.h gtkcolorsel.h gtkcombo.h gtkcompat.h gtkcontainer.h gtkctree.h gtkcurve.h gtkdata.h gtkdebug.h gtkdialog.h gtkdnd.h gtkdrawingarea.h gtkeditable.h gtkentry.h gtkenums.h gtkeventbox.h gtkfilesel.h gtkfixed.h gtkfontsel.h gtkframe.h gtkgamma.h gtkgc.h gtkhandlebox.h gtkhbbox.h gtkhbox.h gtkhpaned.h gtkhruler.h gtkhscale.h gtkhscrollbar.h gtkhseparator.h gtkimage.h gtkinputdialog.h gtkinvisible.h gtkitem.h gtkitemfactory.h gtklabel.h gtklayout.h gtklist.h gtklistitem.h gtkmain.h gtkmenu.h gtkmenubar.h gtkmenufactory.h gtkmenuitem.h gtkmenushell.h gtkmisc.h gtknotebook.h gtkobject.h gtkoptionmenu.h gtkpacker.h gtkpaned.h gtkpixmap.h gtkplug.h gtkpreview.h gtkprivate.h gtkprogress.h gtkprogressbar.h gtkradiobutton.h gtkradiomenuitem.h gtkrange.h gtkrc.h gtkruler.h gtkscale.h gtkscrollbar.h gtkscrolledwindow.h gtkselection.h gtkseparator.h gtksignal.h gtksocket.h gtkspinbutton.h gtkstyle.h gtkstatusbar.h gtktable.h gtktearoffmenuitem.h gtktext.h gtkthemes.h gtktipsquery.h gtktogglebutton.h gtktoolbar.h gtktooltips.h gtktree.h gtktreeitem.h gtktypeutils.h gtkvbbox.h gtkvbox.h gtkviewport.h gtkvpaned.h gtkvruler.h gtkvscale.h gtkvscrollbar.h gtkvseparator.h gtkwidget.h gtkwindow.h
41726 # GTK+ header files that don't get installed
41727 -gtk_private_h_sources = @STRIP_BEGIN@ @STRIP_END@
41728 +gtk_private_h_sources =
41730 # GTK+ C sources to build the library from
41731 -gtk_c_sources = @STRIP_BEGIN@ gtkaccelgroup.c gtkaccellabel.c gtkadjustment.c gtkalignment.c gtkarg.c gtkarrow.c gtkaspectframe.c gtkbin.c gtkbindings.c gtkbbox.c gtkbox.c gtkbutton.c gtkcalendar.c gtkcheckbutton.c gtkcheckmenuitem.c gtkclist.c gtkcolorsel.c gtkcombo.c gtkcontainer.c gtkctree.c gtkcurve.c gtkdata.c gtkdialog.c gtkdnd.c gtkdrawingarea.c gtkeditable.c gtkentry.c gtkeventbox.c gtkfilesel.c gtkfixed.c gtkfontsel.c gtkframe.c gtkgamma.c gtkgc.c gtkhandlebox.c gtkhbbox.c gtkhbox.c gtkhpaned.c gtkhruler.c gtkhscale.c gtkhscrollbar.c gtkhseparator.c gtkimage.c gtkinputdialog.c gtkintl.h gtkinvisible.c gtkitem.c gtkitemfactory.c gtklabel.c gtklayout.c gtklist.c gtklistitem.c gtkmain.c gtkmarshal.c gtkmenu.c gtkmenubar.c gtkmenufactory.c gtkmenuitem.c gtkmenushell.c gtkmisc.c gtknotebook.c gtkobject.c gtkoptionmenu.c gtkpacker.c gtkpaned.c gtkpixmap.c gtkplug.c gtkpreview.c gtkprogress.c gtkprogressbar.c gtkradiobutton.c gtkradiomenuitem.c gtkrange.c gtkrc.c gtkruler.c gtkscale.c gtkscrollbar.c gtkscrolledwindow.c gtkselection.c gtkseparator.c gtksignal.c gtksocket.c gtkspinbutton.c gtkstyle.c gtkstatusbar.c gtktable.c gtktearoffmenuitem.c gtktext.c gtkthemes.c gtktipsquery.c gtktogglebutton.c gtktoolbar.c gtktooltips.c gtktree.c gtktreeitem.c gtktypeutils.c gtkvbbox.c gtkvbox.c gtkviewport.c gtkvpaned.c gtkvruler.c gtkvscale.c gtkvscrollbar.c gtkvseparator.c gtkwidget.c gtkwindow.c fnmatch.c fnmatch.h @STRIP_END@
41732 +gtk_c_sources = gtkaccelgroup.c gtkaccellabel.c gtkadjustment.c gtkalignment.c gtkarg.c gtkarrow.c gtkaspectframe.c gtkbin.c gtkbindings.c gtkbbox.c gtkbox.c gtkbutton.c gtkcalendar.c gtkcheckbutton.c gtkcheckmenuitem.c gtkclist.c gtkcolorsel.c gtkcombo.c gtkcontainer.c gtkctree.c gtkcurve.c gtkdata.c gtkdialog.c gtkdnd.c gtkdrawingarea.c gtkeditable.c gtkentry.c gtkeventbox.c gtkfilesel.c gtkfixed.c gtkfontsel.c gtkframe.c gtkgamma.c gtkgc.c gtkhandlebox.c gtkhbbox.c gtkhbox.c gtkhpaned.c gtkhruler.c gtkhscale.c gtkhscrollbar.c gtkhseparator.c gtkimage.c gtkinputdialog.c gtkintl.h gtkinvisible.c gtkitem.c gtkitemfactory.c gtklabel.c gtklayout.c gtklist.c gtklistitem.c gtkmain.c gtkmarshal.c gtkmenu.c gtkmenubar.c gtkmenufactory.c gtkmenuitem.c gtkmenushell.c gtkmisc.c gtknotebook.c gtkobject.c gtkoptionmenu.c gtkpacker.c gtkpaned.c gtkpixmap.c gtkplug.c gtkpreview.c gtkprogress.c gtkprogressbar.c gtkradiobutton.c gtkradiomenuitem.c gtkrange.c gtkrc.c gtkruler.c gtkscale.c gtkscrollbar.c gtkscrolledwindow.c gtkselection.c gtkseparator.c gtksignal.c gtksocket.c gtkspinbutton.c gtkstyle.c gtkstatusbar.c gtktable.c gtktearoffmenuitem.c gtktext.c gtkthemes.c gtktipsquery.c gtktogglebutton.c gtktoolbar.c gtktooltips.c gtktree.c gtktreeitem.c gtktypeutils.c gtkvbbox.c gtkvbox.c gtkviewport.c gtkvpaned.c gtkvruler.c gtkvscale.c gtkvscrollbar.c gtkvseparator.c gtkwidget.c gtkwindow.c fnmatch.c fnmatch.h
41735 # we use our own built_sources variable rules to avoid automake's
41736 # BUILT_SOURCES oddities
41737 @@ -158,15 +176,18 @@
41738 # content
41740 # built sources that don't get installed
41741 -gtk_built_sources = @STRIP_BEGIN@ stamp-gtk.defs stamp-gtktypebuiltins.h stamp-gtkmarshal.h gtktypebuiltins_vars.c gtktypebuiltins_ids.c gtktypebuiltins_evals.c gtkmarshal.c gtk.defs @STRIP_END@
41742 +gtk_built_sources = stamp-gtk.defs stamp-gtktypebuiltins.h stamp-gtkmarshal.h gtktypebuiltins_vars.c gtktypebuiltins_ids.c gtktypebuiltins_evals.c gtkmarshal.c gtk.defs
41745 # built sources that get installed with the header files
41746 -gtk_built_public_sources = @STRIP_BEGIN@ gtkmarshal.h gtktypebuiltins.h @STRIP_END@
41747 +gtk_built_public_sources = gtkmarshal.h gtktypebuiltins.h
41750 # non-header sources (headers should be specified in the above variables)
41751 # that don't serve as direct make target sources, i.e. they don't have
41752 # their own .lo rules and don't get publically installed
41753 -gtk_extra_sources = @STRIP_BEGIN@ gtkfeatures.h.in makeenums.pl makeenums.awk maketypes.awk makeenums.h gtkargcollector.c gtk-boxed.defs genmarshal.pl gtkmarshal.list @STRIP_END@
41754 +gtk_extra_sources = gtkfeatures.h.in makeenums.pl makeenums.awk maketypes.awk makeenums.h gtkargcollector.c gtk-boxed.defs genmarshal.pl gtkmarshal.list
41757 # Extra headers that are used for enum type array/id generation
41758 gdk_headers = @STRIP_BEGIN@ ../gdk/gdktypes.h ../gdk/gdkrgb.h @STRIP_END@
41759 @@ -177,10 +198,10 @@
41761 libgtkinclude_HEADERS = $(gtk_public_h_sources) $(gtk_built_public_sources) gtkfeatures.h
41762 libgtk_la_SOURCES = $(gtk_c_sources)
41763 -MAINTAINERCLEANFILES = $(gtk_built_public_sources) $(gtk_built_sources)
41764 -EXTRA_HEADERS =
41765 +MAINTAINERCLEANFILES = $(gtk_built_public_sources) $(gtk_built_sources)
41766 +EXTRA_HEADERS =
41768 -EXTRA_DIST = $(gtk_private_h_sources) $(gtk_built_sources) $(gtk_built_public_sources) $(gtk_extra_sources) @STRIP_BEGIN@ testgtk.1 testgtkrc testgtkrc2 circles.xbm line-arrow.xbm line-wrap.xbm tree_plus.xbm tree_minus.xbm 3DRings.xpm FilesQueue.xpm Modeller.xpm check-y.xpm check-n.xpm marble.xpm tree_minus.xpm tree_plus.xpm test.xpm check-y.xpm check-n.xpm test.xpm $(gtkconf_DATA) @STRIP_END@
41769 +EXTRA_DIST = $(gtk_private_h_sources) $(gtk_built_sources) $(gtk_built_public_sources) $(gtk_extra_sources) @STRIP_BEGIN@ testgtk.1 testgtkrc testgtkrc2 circles.xbm line-arrow.xbm line-wrap.xbm tree_plus.xbm tree_minus.xbm 3DRings.xpm FilesQueue.xpm Modeller.xpm check-y.xpm check-n.xpm marble.xpm tree_minus.xpm tree_plus.xpm test.xpm check-y.xpm check-n.xpm test.xpm $(gtkconf_DATA) @STRIP_END@
41773 @@ -188,7 +209,7 @@
41775 # setup autogeneration dependancies
41776 gen_sources = xgen-gdef xgen-gtbh xgen-gtbvc xgen-gtbic xgen-gtbec xgen-gmh xgen-gmc
41777 -CLEANFILES = $(gen_sources)
41778 +CLEANFILES = $(gen_sources)
41780 gtkconfdir = $(sysconfdir)/gtk
41781 gtkconf_DATA = gtkrc.az gtkrc.el gtkrc.eo gtkrc.he gtkrc.hy gtkrc.ja gtkrc.ko gtkrc.ru gtkrc.tr gtkrc.th gtkrc.uk gtkrc.iso-8859-2 gtkrc.iso-8859-5 gtkrc.iso-8859-13 gtkrc.iso-8859-14 gtkrc.iso-8859-15 gtkrc.zh_CN gtkrc.zh_TW.big5 gtkrc.ka_GE.georgianacademy gtkrc.ka_GE.georgianps gtkrc.vi_VN.tcvn gtkrc.vi_VN.viscii gtkrc.cp1251 gtkrc.cp1255
41782 @@ -252,25 +273,28 @@
41783 gtktooltips.lo gtktree.lo gtktreeitem.lo gtktypeutils.lo gtkvbbox.lo \
41784 gtkvbox.lo gtkviewport.lo gtkvpaned.lo gtkvruler.lo gtkvscale.lo \
41785 gtkvscrollbar.lo gtkvseparator.lo gtkwidget.lo gtkwindow.lo fnmatch.lo
41786 +noinst_PROGRAMS = testgtk$(EXEEXT) testinput$(EXEEXT) \
41787 +testselection$(EXEEXT) testrgb$(EXEEXT) testdnd$(EXEEXT) \
41788 +simple$(EXEEXT)
41789 PROGRAMS = $(noinst_PROGRAMS)
41791 testgtk_SOURCES = testgtk.c
41792 -testgtk_OBJECTS = testgtk.o
41793 +testgtk_OBJECTS = testgtk.$(OBJEXT)
41794 testgtk_LDFLAGS =
41795 testinput_SOURCES = testinput.c
41796 -testinput_OBJECTS = testinput.o
41797 +testinput_OBJECTS = testinput.$(OBJEXT)
41798 testinput_LDFLAGS =
41799 testselection_SOURCES = testselection.c
41800 -testselection_OBJECTS = testselection.o
41801 +testselection_OBJECTS = testselection.$(OBJEXT)
41802 testselection_LDFLAGS =
41803 testrgb_SOURCES = testrgb.c
41804 -testrgb_OBJECTS = testrgb.o
41805 +testrgb_OBJECTS = testrgb.$(OBJEXT)
41806 testrgb_LDFLAGS =
41807 testdnd_SOURCES = testdnd.c
41808 -testdnd_OBJECTS = testdnd.o
41809 +testdnd_OBJECTS = testdnd.$(OBJEXT)
41810 testdnd_LDFLAGS =
41811 simple_SOURCES = simple.c
41812 -simple_OBJECTS = simple.o
41813 +simple_OBJECTS = simple.$(OBJEXT)
41814 simple_LDFLAGS =
41815 CFLAGS = @CFLAGS@
41816 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
41817 @@ -286,18 +310,52 @@
41819 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
41821 -TAR = gtar
41822 +TAR = tar
41823 GZIP_ENV = --best
41824 +DEP_FILES = .deps/fnmatch.P .deps/gtkaccelgroup.P .deps/gtkaccellabel.P \
41825 +.deps/gtkadjustment.P .deps/gtkalignment.P .deps/gtkarg.P \
41826 +.deps/gtkarrow.P .deps/gtkaspectframe.P .deps/gtkbbox.P .deps/gtkbin.P \
41827 +.deps/gtkbindings.P .deps/gtkbox.P .deps/gtkbutton.P \
41828 +.deps/gtkcalendar.P .deps/gtkcheckbutton.P .deps/gtkcheckmenuitem.P \
41829 +.deps/gtkclist.P .deps/gtkcolorsel.P .deps/gtkcombo.P \
41830 +.deps/gtkcontainer.P .deps/gtkctree.P .deps/gtkcurve.P .deps/gtkdata.P \
41831 +.deps/gtkdialog.P .deps/gtkdnd.P .deps/gtkdrawingarea.P \
41832 +.deps/gtkeditable.P .deps/gtkentry.P .deps/gtkeventbox.P \
41833 +.deps/gtkfilesel.P .deps/gtkfixed.P .deps/gtkfontsel.P .deps/gtkframe.P \
41834 +.deps/gtkgamma.P .deps/gtkgc.P .deps/gtkhandlebox.P .deps/gtkhbbox.P \
41835 +.deps/gtkhbox.P .deps/gtkhpaned.P .deps/gtkhruler.P .deps/gtkhscale.P \
41836 +.deps/gtkhscrollbar.P .deps/gtkhseparator.P .deps/gtkimage.P \
41837 +.deps/gtkinputdialog.P .deps/gtkinvisible.P .deps/gtkitem.P \
41838 +.deps/gtkitemfactory.P .deps/gtklabel.P .deps/gtklayout.P \
41839 +.deps/gtklist.P .deps/gtklistitem.P .deps/gtkmain.P .deps/gtkmarshal.P \
41840 +.deps/gtkmenu.P .deps/gtkmenubar.P .deps/gtkmenufactory.P \
41841 +.deps/gtkmenuitem.P .deps/gtkmenushell.P .deps/gtkmisc.P \
41842 +.deps/gtknotebook.P .deps/gtkobject.P .deps/gtkoptionmenu.P \
41843 +.deps/gtkpacker.P .deps/gtkpaned.P .deps/gtkpixmap.P .deps/gtkplug.P \
41844 +.deps/gtkpreview.P .deps/gtkprogress.P .deps/gtkprogressbar.P \
41845 +.deps/gtkradiobutton.P .deps/gtkradiomenuitem.P .deps/gtkrange.P \
41846 +.deps/gtkrc.P .deps/gtkruler.P .deps/gtkscale.P .deps/gtkscrollbar.P \
41847 +.deps/gtkscrolledwindow.P .deps/gtkselection.P .deps/gtkseparator.P \
41848 +.deps/gtksignal.P .deps/gtksocket.P .deps/gtkspinbutton.P \
41849 +.deps/gtkstatusbar.P .deps/gtkstyle.P .deps/gtktable.P \
41850 +.deps/gtktearoffmenuitem.P .deps/gtktext.P .deps/gtkthemes.P \
41851 +.deps/gtktipsquery.P .deps/gtktogglebutton.P .deps/gtktoolbar.P \
41852 +.deps/gtktooltips.P .deps/gtktree.P .deps/gtktreeitem.P \
41853 +.deps/gtktypeutils.P .deps/gtkvbbox.P .deps/gtkvbox.P \
41854 +.deps/gtkviewport.P .deps/gtkvpaned.P .deps/gtkvruler.P \
41855 +.deps/gtkvscale.P .deps/gtkvscrollbar.P .deps/gtkvseparator.P \
41856 +.deps/gtkwidget.P .deps/gtkwindow.P .deps/simple.P .deps/testdnd.P \
41857 +.deps/testgtk.P .deps/testinput.P .deps/testrgb.P .deps/testselection.P
41858 SOURCES = $(libgtk_la_SOURCES) testgtk.c testinput.c testselection.c testrgb.c testdnd.c simple.c
41859 -OBJECTS = $(libgtk_la_OBJECTS) testgtk.o testinput.o testselection.o testrgb.o testdnd.o simple.o
41860 +OBJECTS = $(libgtk_la_OBJECTS) testgtk.$(OBJEXT) testinput.$(OBJEXT) testselection.$(OBJEXT) testrgb.$(OBJEXT) testdnd.$(OBJEXT) simple.$(OBJEXT)
41862 all: all-redirect
41863 .SUFFIXES:
41864 -.SUFFIXES: .S .c .lo .o .s
41865 +.SUFFIXES: .S .c .lo .o .obj .s
41866 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
41867 - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps gtk/Makefile
41868 + cd $(top_srcdir) && $(AUTOMAKE) --gnu gtk/Makefile
41870 -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
41871 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
41872 cd $(top_builddir) \
41873 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
41875 @@ -329,8 +387,10 @@
41876 $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
41877 done
41879 -.c.o:
41880 - $(COMPILE) -c $<
41881 +# FIXME: We should only use cygpath when building on Windows,
41882 +# and only if it is available.
41883 +.c.obj:
41884 + $(COMPILE) -c `cygpath -w $<`
41886 .s.o:
41887 $(COMPILE) -c $<
41888 @@ -340,6 +400,7 @@
41890 mostlyclean-compile:
41891 -rm -f *.o core *.core
41892 + -rm -f *.$(OBJEXT)
41894 clean-compile:
41896 @@ -348,9 +409,6 @@
41898 maintainer-clean-compile:
41900 -.c.lo:
41901 - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
41903 .s.lo:
41904 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
41906 @@ -379,28 +437,28 @@
41908 maintainer-clean-noinstPROGRAMS:
41910 -testgtk: $(testgtk_OBJECTS) $(testgtk_DEPENDENCIES)
41911 - @rm -f testgtk
41912 +testgtk$(EXEEXT): $(testgtk_OBJECTS) $(testgtk_DEPENDENCIES)
41913 + @rm -f testgtk$(EXEEXT)
41914 $(LINK) $(testgtk_LDFLAGS) $(testgtk_OBJECTS) $(testgtk_LDADD) $(LIBS)
41916 -testinput: $(testinput_OBJECTS) $(testinput_DEPENDENCIES)
41917 - @rm -f testinput
41918 +testinput$(EXEEXT): $(testinput_OBJECTS) $(testinput_DEPENDENCIES)
41919 + @rm -f testinput$(EXEEXT)
41920 $(LINK) $(testinput_LDFLAGS) $(testinput_OBJECTS) $(testinput_LDADD) $(LIBS)
41922 -testselection: $(testselection_OBJECTS) $(testselection_DEPENDENCIES)
41923 - @rm -f testselection
41924 +testselection$(EXEEXT): $(testselection_OBJECTS) $(testselection_DEPENDENCIES)
41925 + @rm -f testselection$(EXEEXT)
41926 $(LINK) $(testselection_LDFLAGS) $(testselection_OBJECTS) $(testselection_LDADD) $(LIBS)
41928 -testrgb: $(testrgb_OBJECTS) $(testrgb_DEPENDENCIES)
41929 - @rm -f testrgb
41930 +testrgb$(EXEEXT): $(testrgb_OBJECTS) $(testrgb_DEPENDENCIES)
41931 + @rm -f testrgb$(EXEEXT)
41932 $(LINK) $(testrgb_LDFLAGS) $(testrgb_OBJECTS) $(testrgb_LDADD) $(LIBS)
41934 -testdnd: $(testdnd_OBJECTS) $(testdnd_DEPENDENCIES)
41935 - @rm -f testdnd
41936 +testdnd$(EXEEXT): $(testdnd_OBJECTS) $(testdnd_DEPENDENCIES)
41937 + @rm -f testdnd$(EXEEXT)
41938 $(LINK) $(testdnd_LDFLAGS) $(testdnd_OBJECTS) $(testdnd_LDADD) $(LIBS)
41940 -simple: $(simple_OBJECTS) $(simple_DEPENDENCIES)
41941 - @rm -f simple
41942 +simple$(EXEEXT): $(simple_OBJECTS) $(simple_DEPENDENCIES)
41943 + @rm -f simple$(EXEEXT)
41944 $(LINK) $(simple_LDFLAGS) $(simple_OBJECTS) $(simple_LDADD) $(LIBS)
41946 install-gtkconfDATA: $(gtkconf_DATA)
41947 @@ -455,7 +513,7 @@
41948 awk ' { files[$$0] = 1; } \
41949 END { for (i in files) print i; }'`; \
41950 test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
41951 - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
41952 + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
41954 mostlyclean-tags:
41956 @@ -471,6 +529,11 @@
41957 subdir = gtk
41959 distdir: $(DISTFILES)
41960 + here=`cd $(top_builddir) && pwd`; \
41961 + top_distdir=`cd $(top_distdir) && pwd`; \
41962 + distdir=`cd $(distdir) && pwd`; \
41963 + cd $(top_srcdir) \
41964 + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu gtk/Makefile
41965 @for file in $(DISTFILES); do \
41966 d=$(srcdir); \
41967 if test -d $$d/$$file; then \
41968 @@ -481,866 +544,38 @@
41969 || cp -p $$d/$$file $(distdir)/$$file || :; \
41970 fi; \
41971 done
41972 -fnmatch.lo fnmatch.o : fnmatch.c ../config.h fnmatch.h
41973 -gtkaccelgroup.lo gtkaccelgroup.o : gtkaccelgroup.c gtkaccelgroup.h \
41974 - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
41975 - ../gdk/gdkrgb.h gtkobject.h gtkarg.h gtktypeutils.h \
41976 - gtktypebuiltins.h gtkenums.h gtkdebug.h ../gdk/gdkkeysyms.h \
41977 - gtksignal.h gtkmarshal.h gtkwidget.h gtkaccelgroup.h \
41978 - gtkadjustment.h gtkdata.h gtkstyle.h
41979 -gtkaccellabel.lo gtkaccellabel.o : gtkaccellabel.c gtkmain.h \
41980 - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
41981 - ../gdk/gdkrgb.h gtkwidget.h gtkaccelgroup.h gtkobject.h \
41982 - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
41983 - gtkadjustment.h gtkdata.h gtkstyle.h gtksignal.h gtkmarshal.h \
41984 - gtkaccellabel.h gtklabel.h gtkmisc.h
41985 -gtkadjustment.lo gtkadjustment.o : gtkadjustment.c gtkadjustment.h \
41986 - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
41987 - ../gdk/gdkrgb.h gtkdata.h gtkobject.h gtkarg.h gtktypeutils.h \
41988 - gtktypebuiltins.h gtkenums.h gtkdebug.h gtksignal.h \
41989 - gtkmarshal.h
41990 -gtkalignment.lo gtkalignment.o : gtkalignment.c gtkalignment.h \
41991 - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
41992 - ../gdk/gdkrgb.h gtkbin.h gtkcontainer.h gtkenums.h gtkwidget.h \
41993 - gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
41994 - gtktypebuiltins.h gtkdebug.h gtkadjustment.h gtkdata.h \
41995 - gtkstyle.h
41996 -gtkarg.lo gtkarg.o : gtkarg.c gtkobject.h gtkarg.h gtktypeutils.h \
41997 - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkargcollector.c
41998 -gtkarrow.lo gtkarrow.o : gtkarrow.c gtkarrow.h ../gdk/gdk.h \
41999 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkmisc.h \
42000 - gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
42001 - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
42002 - gtkdata.h gtkstyle.h
42003 -gtkaspectframe.lo gtkaspectframe.o : gtkaspectframe.c gtkaspectframe.h \
42004 - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42005 - ../gdk/gdkrgb.h gtkbin.h gtkcontainer.h gtkenums.h gtkwidget.h \
42006 - gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
42007 - gtktypebuiltins.h gtkdebug.h gtkadjustment.h gtkdata.h \
42008 - gtkstyle.h gtkframe.h
42009 -gtkbbox.lo gtkbbox.o : gtkbbox.c gtkbbox.h gtkbox.h ../gdk/gdk.h \
42010 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42011 - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
42012 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42013 - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h
42014 -gtkbin.lo gtkbin.o : gtkbin.c gtkbin.h ../gdk/gdk.h ../gdk/gdktypes.h \
42015 - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkcontainer.h gtkenums.h \
42016 - gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
42017 - gtktypebuiltins.h gtkdebug.h gtkadjustment.h gtkdata.h \
42018 - gtkstyle.h
42019 -gtkbindings.lo gtkbindings.o : gtkbindings.c gtkbindings.h ../gdk/gdk.h \
42020 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42021 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42022 - gtkenums.h gtkdebug.h gtksignal.h gtkmarshal.h gtkwidget.h \
42023 - gtkaccelgroup.h gtkadjustment.h gtkdata.h gtkstyle.h gtkrc.h \
42024 - gtkwidget.h
42025 -gtkbox.lo gtkbox.o : gtkbox.c gtkbox.h ../gdk/gdk.h ../gdk/gdktypes.h \
42026 - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkcontainer.h gtkenums.h \
42027 - gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
42028 - gtktypebuiltins.h gtkdebug.h gtkadjustment.h gtkdata.h \
42029 - gtkstyle.h
42030 -gtkbutton.lo gtkbutton.o : gtkbutton.c gtkbutton.h ../gdk/gdk.h \
42031 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkbin.h \
42032 - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
42033 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42034 - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtklabel.h \
42035 - gtkmisc.h gtkmain.h gtksignal.h gtkmarshal.h
42036 -gtkcalendar.lo gtkcalendar.o : gtkcalendar.c gtkcalendar.h ../gdk/gdk.h \
42037 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42038 - gtksignal.h gtkenums.h gtkobject.h gtkarg.h gtktypeutils.h \
42039 - gtktypebuiltins.h gtkdebug.h gtkmarshal.h gtkwidget.h \
42040 - gtkaccelgroup.h gtkadjustment.h gtkdata.h gtkstyle.h \
42041 - ../gdk/gdkkeysyms.h
42042 -gtkcheckbutton.lo gtkcheckbutton.o : gtkcheckbutton.c gtkcheckbutton.h \
42043 - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42044 - ../gdk/gdkrgb.h gtktogglebutton.h gtkbutton.h gtkbin.h \
42045 - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
42046 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42047 - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtklabel.h \
42048 - gtkmisc.h
42049 -gtkcheckmenuitem.lo gtkcheckmenuitem.o : gtkcheckmenuitem.c \
42050 - gtkcheckmenuitem.h ../gdk/gdk.h ../gdk/gdktypes.h \
42051 - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkmenuitem.h gtkitem.h \
42052 - gtkbin.h gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
42053 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42054 - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtkaccellabel.h \
42055 - gtklabel.h gtkmisc.h gtksignal.h gtkmarshal.h
42056 -gtkclist.lo gtkclist.o : gtkclist.c ../config.h gtkmain.h ../gdk/gdk.h \
42057 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42058 - gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
42059 - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
42060 - gtkdata.h gtkstyle.h gtkclist.h gtksignal.h gtkmarshal.h \
42061 - gtkalignment.h gtkbin.h gtkcontainer.h gtklabel.h gtkmisc.h \
42062 - gtkbutton.h gtkhscrollbar.h gtkscrollbar.h gtkrange.h \
42063 - gtkvscrollbar.h gtkbindings.h gtkdnd.h gtkselection.h \
42064 - gtkwindow.h ../gdk/gdkx.h ../gdk/gdkprivate.h \
42065 - ../gdk/gdkkeysyms.h
42066 -gtkcolorsel.lo gtkcolorsel.o : gtkcolorsel.c ../gdk/gdk.h \
42067 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42068 - gtkcolorsel.h gtkwindow.h gtkaccelgroup.h gtkobject.h gtkarg.h \
42069 - gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h gtkbin.h \
42070 - gtkcontainer.h gtkwidget.h gtkadjustment.h gtkdata.h gtkstyle.h \
42071 - gtkvbox.h gtkbox.h gtkframe.h gtkpreview.h gtkbutton.h \
42072 - gtkentry.h gtkeditable.h gtkhbox.h gtklabel.h gtkmisc.h \
42073 - gtkmain.h gtksignal.h gtkmarshal.h gtkrange.h gtkscale.h \
42074 - gtkhscale.h gtktable.h gtkeventbox.h gtkwindow.h gtkhbbox.h \
42075 - gtkbbox.h gtkintl.h ../config.h gtkdnd.h gtkselection.h \
42076 - gtkselection.h
42077 -gtkcombo.lo gtkcombo.o : gtkcombo.c gtkarrow.h ../gdk/gdk.h \
42078 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkmisc.h \
42079 - gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
42080 - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
42081 - gtkdata.h gtkstyle.h gtklabel.h gtklist.h gtkcontainer.h \
42082 - gtklistitem.h gtkitem.h gtkbin.h gtkentry.h gtkeditable.h \
42083 - gtkeventbox.h gtkbutton.h gtklistitem.h gtkscrolledwindow.h \
42084 - gtkhscrollbar.h gtkscrollbar.h gtkrange.h gtkvscrollbar.h \
42085 - gtkviewport.h gtkmain.h gtksignal.h gtkmarshal.h gtkwindow.h \
42086 - ../gdk/gdkkeysyms.h gtkcombo.h gtkhbox.h gtkbox.h gtkframe.h
42087 -gtkcontainer.lo gtkcontainer.o : gtkcontainer.c gtkcontainer.h \
42088 - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42089 - ../gdk/gdkrgb.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
42090 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42091 - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtkprivate.h \
42092 - gtksignal.h gtkmarshal.h gtkmain.h
42093 -gtkctree.lo gtkctree.o : gtkctree.c gtkctree.h gtkclist.h ../gdk/gdk.h \
42094 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42095 - gtksignal.h gtkenums.h gtkobject.h gtkarg.h gtktypeutils.h \
42096 - gtktypebuiltins.h gtkdebug.h gtkmarshal.h gtkalignment.h \
42097 - gtkbin.h gtkcontainer.h gtkwidget.h gtkaccelgroup.h \
42098 - gtkadjustment.h gtkdata.h gtkstyle.h gtklabel.h gtkmisc.h \
42099 - gtkbutton.h gtkhscrollbar.h gtkscrollbar.h gtkrange.h \
42100 - gtkvscrollbar.h gtkbindings.h gtkmain.h gtkdnd.h gtkselection.h \
42101 - ../gdk/gdkx.h ../gdk/gdkprivate.h ../gdk/gdkkeysyms.h
42102 -gtkcurve.lo gtkcurve.o : gtkcurve.c gtkcurve.h ../gdk/gdk.h \
42103 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42104 - gtkdrawingarea.h gtkwidget.h gtkaccelgroup.h gtkobject.h \
42105 - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
42106 - gtkadjustment.h gtkdata.h gtkstyle.h gtkdrawingarea.h gtkmain.h \
42107 - gtkradiobutton.h gtkcheckbutton.h gtktogglebutton.h gtkbutton.h \
42108 - gtkbin.h gtkcontainer.h gtksignal.h gtkmarshal.h gtktable.h
42109 -gtkdata.lo gtkdata.o : gtkdata.c gtkdata.h ../gdk/gdk.h \
42110 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42111 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42112 - gtkenums.h gtkdebug.h gtksignal.h gtkmarshal.h
42113 -gtkdialog.lo gtkdialog.o : gtkdialog.c gtkbutton.h ../gdk/gdk.h \
42114 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkbin.h \
42115 - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
42116 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42117 - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtkdialog.h \
42118 - gtkwindow.h gtkhbox.h gtkbox.h gtkhseparator.h gtkseparator.h \
42119 - gtkvbox.h
42120 -gtkdnd.lo gtkdnd.o : gtkdnd.c ../gdk/gdkx.h ../gdk/gdkprivate.h \
42121 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkkeysyms.h \
42122 - gtkdnd.h ../gdk/gdk.h ../gdk/gdkrgb.h gtkenums.h gtkwidget.h \
42123 - gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
42124 - gtktypebuiltins.h gtkdebug.h gtkadjustment.h gtkdata.h \
42125 - gtkstyle.h gtkselection.h gtkinvisible.h gtkbin.h \
42126 - gtkcontainer.h gtkmain.h gtksignal.h gtkmarshal.h gtkwindow.h
42127 -gtkdrawingarea.lo gtkdrawingarea.o : gtkdrawingarea.c gtkdrawingarea.h \
42128 - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42129 - ../gdk/gdkrgb.h gtkwidget.h gtkaccelgroup.h gtkobject.h \
42130 - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
42131 - gtkadjustment.h gtkdata.h gtkstyle.h
42132 -gtkeditable.lo gtkeditable.o : gtkeditable.c ../gdk/gdkx.h \
42133 - ../gdk/gdkprivate.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42134 - ../gdk/gdkkeysyms.h ../gdk/gdki18n.h gtkeditable.h ../gdk/gdk.h \
42135 - ../gdk/gdkrgb.h gtkwidget.h gtkaccelgroup.h gtkobject.h \
42136 - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
42137 - gtkadjustment.h gtkdata.h gtkstyle.h gtkmain.h gtkselection.h \
42138 - gtksignal.h gtkmarshal.h
42139 -gtkentry.lo gtkentry.o : gtkentry.c ../gdk/gdkkeysyms.h ../gdk/gdki18n.h \
42140 - gtkentry.h ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42141 - ../gdk/gdkrgb.h gtkeditable.h gtkwidget.h gtkaccelgroup.h \
42142 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42143 - gtkenums.h gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h \
42144 - gtkmain.h gtkselection.h gtksignal.h gtkmarshal.h gtkstyle.h
42145 -gtkeventbox.lo gtkeventbox.o : gtkeventbox.c gtksignal.h ../gdk/gdk.h \
42146 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42147 - gtkenums.h gtkobject.h gtkarg.h gtktypeutils.h \
42148 - gtktypebuiltins.h gtkdebug.h gtkmarshal.h gtkeventbox.h \
42149 - gtkbin.h gtkcontainer.h gtkwidget.h gtkaccelgroup.h \
42150 - gtkadjustment.h gtkdata.h gtkstyle.h
42151 -gtkfilesel.lo gtkfilesel.o : gtkfilesel.c fnmatch.h ../gdk/gdkkeysyms.h \
42152 - gtkbutton.h ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42153 - ../gdk/gdkrgb.h gtkbin.h gtkcontainer.h gtkenums.h gtkwidget.h \
42154 - gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
42155 - gtktypebuiltins.h gtkdebug.h gtkadjustment.h gtkdata.h \
42156 - gtkstyle.h gtkentry.h gtkeditable.h gtkfilesel.h gtkwindow.h \
42157 - gtkhbox.h gtkbox.h gtkhbbox.h gtkbbox.h gtklabel.h gtkmisc.h \
42158 - gtklist.h gtklistitem.h gtkitem.h gtklistitem.h gtkmain.h \
42159 - gtkscrolledwindow.h gtkhscrollbar.h gtkscrollbar.h gtkrange.h \
42160 - gtkvscrollbar.h gtkviewport.h gtksignal.h gtkmarshal.h \
42161 - gtkvbox.h gtkmenu.h gtkmenushell.h gtkmenuitem.h \
42162 - gtkoptionmenu.h gtkbutton.h gtkclist.h gtksignal.h \
42163 - gtkalignment.h gtklabel.h gtkdialog.h gtkintl.h ../config.h
42164 -gtkfixed.lo gtkfixed.o : gtkfixed.c gtkfixed.h ../gdk/gdk.h \
42165 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42166 - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
42167 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42168 - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h
42169 -gtkfontsel.lo gtkfontsel.o : gtkfontsel.c ../gdk/gdkx.h \
42170 - ../gdk/gdkprivate.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42171 - ../gdk/gdkkeysyms.h gtkbutton.h ../gdk/gdk.h ../gdk/gdkrgb.h \
42172 - gtkbin.h gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
42173 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42174 - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h \
42175 - gtkcheckbutton.h gtktogglebutton.h gtkbutton.h gtkclist.h \
42176 - gtksignal.h gtkmarshal.h gtkalignment.h gtklabel.h gtkmisc.h \
42177 - gtkhscrollbar.h gtkscrollbar.h gtkrange.h gtkvscrollbar.h \
42178 - gtkentry.h gtkeditable.h gtkfontsel.h gtkwindow.h gtknotebook.h \
42179 - gtkframe.h gtkhbbox.h gtkbbox.h gtkbox.h gtkhbox.h gtklabel.h \
42180 - gtknotebook.h gtkradiobutton.h gtkcheckbutton.h gtksignal.h \
42181 - gtktable.h gtkvbox.h gtkscrolledwindow.h gtkviewport.h \
42182 - gtkintl.h ../config.h
42183 -gtkframe.lo gtkframe.o : gtkframe.c gtkframe.h ../gdk/gdk.h \
42184 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkbin.h \
42185 - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
42186 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42187 - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h
42188 -gtkgamma.lo gtkgamma.o : gtkgamma.c gtkgamma.h ../gdk/gdk.h \
42189 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkvbox.h \
42190 - gtkbox.h gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
42191 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42192 - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtkcurve.h \
42193 - gtkdrawingarea.h gtkdialog.h gtkwindow.h gtkbin.h \
42194 - gtkdrawingarea.h gtkentry.h gtkeditable.h gtkhbox.h gtklabel.h \
42195 - gtkmisc.h gtkmain.h gtkpixmap.h gtkradiobutton.h \
42196 - gtkcheckbutton.h gtktogglebutton.h gtkbutton.h gtksignal.h \
42197 - gtkmarshal.h gtktable.h gtkvbox.h gtkwindow.h gtkintl.h \
42198 - ../config.h
42199 -gtkgc.lo gtkgc.o : gtkgc.c gtkgc.h ../gdk/gdk.h ../gdk/gdktypes.h \
42200 - ../gdk/gdkcursors.h ../gdk/gdkrgb.h
42201 -gtkhandlebox.lo gtkhandlebox.o : gtkhandlebox.c ../gdk/gdkx.h \
42202 - ../gdk/gdkprivate.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42203 - gtkhandlebox.h ../gdk/gdk.h ../gdk/gdkrgb.h gtkbin.h \
42204 - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
42205 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42206 - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtkinvisible.h \
42207 - gtkmain.h gtksignal.h gtkmarshal.h gtkwindow.h
42208 -gtkhbbox.lo gtkhbbox.o : gtkhbbox.c gtkhbbox.h gtkbbox.h gtkbox.h \
42209 - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42210 - ../gdk/gdkrgb.h gtkcontainer.h gtkenums.h gtkwidget.h \
42211 - gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
42212 - gtktypebuiltins.h gtkdebug.h gtkadjustment.h gtkdata.h \
42213 - gtkstyle.h
42214 -gtkhbox.lo gtkhbox.o : gtkhbox.c gtkhbox.h ../gdk/gdk.h \
42215 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkbox.h \
42216 - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
42217 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42218 - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h
42219 -gtkhpaned.lo gtkhpaned.o : gtkhpaned.c gtkhpaned.h ../gdk/gdk.h \
42220 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42221 - gtkpaned.h gtkcontainer.h gtkenums.h gtkwidget.h \
42222 - gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
42223 - gtktypebuiltins.h gtkdebug.h gtkadjustment.h gtkdata.h \
42224 - gtkstyle.h gtkmain.h gtksignal.h gtkmarshal.h
42225 -gtkhruler.lo gtkhruler.o : gtkhruler.c gtkhruler.h ../gdk/gdk.h \
42226 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42227 - gtkruler.h gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h \
42228 - gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
42229 - gtkadjustment.h gtkdata.h gtkstyle.h
42230 -gtkhscale.lo gtkhscale.o : gtkhscale.c gtkhscale.h ../gdk/gdk.h \
42231 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42232 - gtkscale.h gtkrange.h gtkadjustment.h gtkdata.h gtkobject.h \
42233 - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
42234 - gtkwidget.h gtkaccelgroup.h gtkstyle.h gtksignal.h gtkmarshal.h \
42235 - ../gdk/gdkkeysyms.h
42236 -gtkhscrollbar.lo gtkhscrollbar.o : gtkhscrollbar.c gtkhscrollbar.h \
42237 - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42238 - ../gdk/gdkrgb.h gtkscrollbar.h gtkrange.h gtkadjustment.h \
42239 - gtkdata.h gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42240 - gtkenums.h gtkdebug.h gtkwidget.h gtkaccelgroup.h gtkstyle.h \
42241 - gtksignal.h gtkmarshal.h ../gdk/gdkkeysyms.h
42242 -gtkhseparator.lo gtkhseparator.o : gtkhseparator.c gtkhseparator.h \
42243 - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42244 - ../gdk/gdkrgb.h gtkseparator.h gtkwidget.h gtkaccelgroup.h \
42245 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42246 - gtkenums.h gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h
42247 -gtkimage.lo gtkimage.o : gtkimage.c gtkcontainer.h ../gdk/gdk.h \
42248 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42249 - gtkenums.h gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h \
42250 - gtktypeutils.h gtktypebuiltins.h gtkdebug.h gtkadjustment.h \
42251 - gtkdata.h gtkstyle.h gtkimage.h gtkmisc.h
42252 -gtkinputdialog.lo gtkinputdialog.o : gtkinputdialog.c \
42253 - ../gdk/gdkkeysyms.h gtkbutton.h ../gdk/gdk.h ../gdk/gdktypes.h \
42254 - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkbin.h gtkcontainer.h \
42255 - gtkenums.h gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h \
42256 - gtktypeutils.h gtktypebuiltins.h gtkdebug.h gtkadjustment.h \
42257 - gtkdata.h gtkstyle.h gtkentry.h gtkeditable.h gtkhbox.h \
42258 - gtkbox.h gtkhseparator.h gtkseparator.h gtkinputdialog.h \
42259 - gtkdialog.h gtkwindow.h gtklabel.h gtkmisc.h gtklistitem.h \
42260 - gtkitem.h gtkmain.h gtkmenu.h gtkmenushell.h gtkmenuitem.h \
42261 - gtknotebook.h gtkoptionmenu.h gtkbutton.h gtkscrolledwindow.h \
42262 - gtkhscrollbar.h gtkscrollbar.h gtkrange.h gtkvscrollbar.h \
42263 - gtkviewport.h gtksignal.h gtkmarshal.h gtktable.h gtkvbox.h \
42264 - gtkintl.h ../config.h
42265 -gtkinvisible.lo gtkinvisible.o : gtkinvisible.c gtksignal.h ../gdk/gdk.h \
42266 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42267 - gtkenums.h gtkobject.h gtkarg.h gtktypeutils.h \
42268 - gtktypebuiltins.h gtkdebug.h gtkmarshal.h gtkinvisible.h \
42269 - gtkbin.h gtkcontainer.h gtkwidget.h gtkaccelgroup.h \
42270 - gtkadjustment.h gtkdata.h gtkstyle.h
42271 -gtkitem.lo gtkitem.o : gtkitem.c gtkitem.h ../gdk/gdk.h \
42272 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkbin.h \
42273 - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
42274 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42275 - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtksignal.h \
42276 - gtkmarshal.h
42277 -gtkitemfactory.lo gtkitemfactory.o : gtkitemfactory.c gtkitemfactory.h \
42278 - gtkwidget.h ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42279 - ../gdk/gdkrgb.h gtkaccelgroup.h gtkobject.h gtkarg.h \
42280 - gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
42281 - gtkadjustment.h gtkdata.h gtkstyle.h gtkmenufactory.h \
42282 - gtkbindings.h gtksignal.h gtkmarshal.h gtkoptionmenu.h \
42283 - gtkbutton.h gtkbin.h gtkcontainer.h gtkmenubar.h gtkmenushell.h \
42284 - gtkmenu.h gtkmenuitem.h gtkitem.h gtkradiomenuitem.h \
42285 - gtkcheckmenuitem.h gtktearoffmenuitem.h gtkaccellabel.h \
42286 - gtklabel.h gtkmisc.h ../gdk/gdkkeysyms.h
42287 -gtklabel.lo gtklabel.o : gtklabel.c gtklabel.h ../gdk/gdk.h \
42288 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkmisc.h \
42289 - gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
42290 - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
42291 - gtkdata.h gtkstyle.h ../gdk/gdkkeysyms.h ../gdk/gdki18n.h
42292 -gtklayout.lo gtklayout.o : gtklayout.c gtklayout.h ../gdk/gdk.h \
42293 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42294 - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
42295 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42296 - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtksignal.h \
42297 - gtkmarshal.h gtkprivate.h ../gdk/gdkx.h ../gdk/gdkprivate.h
42298 -gtklist.lo gtklist.o : gtklist.c gtklist.h ../gdk/gdk.h \
42299 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42300 - gtkenums.h gtkcontainer.h gtkwidget.h gtkaccelgroup.h \
42301 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42302 - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtklistitem.h \
42303 - gtkitem.h gtkbin.h gtklistitem.h gtkmain.h gtksignal.h \
42304 - gtkmarshal.h gtklabel.h gtkmisc.h
42305 -gtklistitem.lo gtklistitem.o : gtklistitem.c gtkbindings.h ../gdk/gdk.h \
42306 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42307 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42308 - gtkenums.h gtkdebug.h gtklabel.h gtkmisc.h gtkwidget.h \
42309 - gtkaccelgroup.h gtkadjustment.h gtkdata.h gtkstyle.h \
42310 - gtklistitem.h gtkitem.h gtkbin.h gtkcontainer.h gtklist.h \
42311 - gtklistitem.h gtksignal.h gtkmarshal.h ../gdk/gdkkeysyms.h
42312 -gtkmain.lo gtkmain.o : gtkmain.c gtkbutton.h ../gdk/gdk.h \
42313 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkbin.h \
42314 - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
42315 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42316 - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtkdnd.h \
42317 - gtkselection.h gtkfeatures.h gtkhscrollbar.h gtkscrollbar.h \
42318 - gtkrange.h gtkhseparator.h gtkseparator.h gtkmain.h \
42319 - gtkpreview.h gtkrc.h gtkscrolledwindow.h gtkhscrollbar.h \
42320 - gtkvscrollbar.h gtkviewport.h gtkselection.h gtksignal.h \
42321 - gtkmarshal.h gtktable.h gtktext.h gtkeditable.h gtkvbox.h \
42322 - gtkbox.h gtkvscrollbar.h gtkwidget.h gtkwindow.h gtkprivate.h \
42323 - ../gdk/gdki18n.h ../config.h gtkdebug.h gtkintl.h
42324 -gtkmarshal.lo gtkmarshal.o : gtkmarshal.c gtkmarshal.h gtktypeutils.h \
42325 - gtktypebuiltins.h gtkobject.h gtkarg.h gtkenums.h gtkdebug.h
42326 -gtkmenu.lo gtkmenu.o : gtkmenu.c ../gdk/gdkkeysyms.h gtkbindings.h \
42327 - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42328 - ../gdk/gdkrgb.h gtkobject.h gtkarg.h gtktypeutils.h \
42329 - gtktypebuiltins.h gtkenums.h gtkdebug.h gtklabel.h gtkmisc.h \
42330 - gtkwidget.h gtkaccelgroup.h gtkadjustment.h gtkdata.h \
42331 - gtkstyle.h gtkmain.h gtkmenu.h gtkmenushell.h gtkcontainer.h \
42332 - gtkmenuitem.h gtkitem.h gtkbin.h gtksignal.h gtkmarshal.h \
42333 - gtkwindow.h
42334 -gtkmenubar.lo gtkmenubar.o : gtkmenubar.c ../gdk/gdkkeysyms.h \
42335 - gtkbindings.h ../gdk/gdk.h ../gdk/gdktypes.h \
42336 - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkobject.h gtkarg.h \
42337 - gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
42338 - gtkmain.h gtkwidget.h gtkaccelgroup.h gtkadjustment.h gtkdata.h \
42339 - gtkstyle.h gtkmenubar.h gtkmenushell.h gtkcontainer.h \
42340 - gtkmenuitem.h gtkitem.h gtkbin.h
42341 -gtkmenufactory.lo gtkmenufactory.o : gtkmenufactory.c gtkcheckmenuitem.h \
42342 - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42343 - ../gdk/gdkrgb.h gtkmenuitem.h gtkitem.h gtkbin.h gtkcontainer.h \
42344 - gtkenums.h gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h \
42345 - gtktypeutils.h gtktypebuiltins.h gtkdebug.h gtkadjustment.h \
42346 - gtkdata.h gtkstyle.h gtkmenu.h gtkmenushell.h gtkmenubar.h \
42347 - gtkmenufactory.h gtkmenuitem.h gtksignal.h gtkmarshal.h
42348 -gtkmenuitem.lo gtkmenuitem.o : gtkmenuitem.c gtkaccellabel.h gtklabel.h \
42349 - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42350 - ../gdk/gdkrgb.h gtkmisc.h gtkwidget.h gtkaccelgroup.h \
42351 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42352 - gtkenums.h gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h \
42353 - gtkmain.h gtkmenu.h gtkmenushell.h gtkcontainer.h gtkmenubar.h \
42354 - gtkmenuitem.h gtkitem.h gtkbin.h gtksignal.h gtkmarshal.h
42355 -gtkmenushell.lo gtkmenushell.o : gtkmenushell.c ../gdk/gdkkeysyms.h \
42356 - gtkbindings.h ../gdk/gdk.h ../gdk/gdktypes.h \
42357 - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkobject.h gtkarg.h \
42358 - gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
42359 - gtkmain.h gtkwidget.h gtkaccelgroup.h gtkadjustment.h gtkdata.h \
42360 - gtkstyle.h gtkmenuitem.h gtkitem.h gtkbin.h gtkcontainer.h \
42361 - gtktearoffmenuitem.h gtkmenuitem.h gtkmenushell.h gtksignal.h \
42362 - gtkmarshal.h
42363 -gtkmisc.lo gtkmisc.o : gtkmisc.c gtkcontainer.h ../gdk/gdk.h \
42364 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42365 - gtkenums.h gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h \
42366 - gtktypeutils.h gtktypebuiltins.h gtkdebug.h gtkadjustment.h \
42367 - gtkdata.h gtkstyle.h gtkmisc.h
42368 -gtknotebook.lo gtknotebook.o : gtknotebook.c gtknotebook.h ../gdk/gdk.h \
42369 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42370 - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
42371 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42372 - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtksignal.h \
42373 - gtkmarshal.h gtkmain.h gtkmenu.h gtkmenushell.h gtkmenuitem.h \
42374 - gtkitem.h gtkbin.h gtklabel.h gtkmisc.h ../gdk/gdkkeysyms.h \
42375 - gtkintl.h ../config.h
42376 -gtkobject.lo gtkobject.o : gtkobject.c gtkobject.h gtkarg.h \
42377 - gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
42378 - gtksignal.h ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42379 - ../gdk/gdkrgb.h gtkobject.h gtkmarshal.h
42380 -gtkoptionmenu.lo gtkoptionmenu.o : gtkoptionmenu.c gtkmenu.h \
42381 - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42382 - ../gdk/gdkrgb.h gtkaccelgroup.h gtkobject.h gtkarg.h \
42383 - gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
42384 - gtkmenushell.h gtkcontainer.h gtkwidget.h gtkadjustment.h \
42385 - gtkdata.h gtkstyle.h gtkmenuitem.h gtkitem.h gtkbin.h \
42386 - gtkoptionmenu.h gtkbutton.h gtksignal.h gtkmarshal.h \
42387 - ../gdk/gdkkeysyms.h
42388 -gtkpacker.lo gtkpacker.o : gtkpacker.c gtkpacker.h gtkcontainer.h \
42389 - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42390 - ../gdk/gdkrgb.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
42391 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42392 - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h
42393 -gtkpaned.lo gtkpaned.o : gtkpaned.c gtkpaned.h ../gdk/gdk.h \
42394 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42395 - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
42396 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42397 - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtkhpaned.h \
42398 - gtkpaned.h
42399 -gtkpixmap.lo gtkpixmap.o : gtkpixmap.c gtkcontainer.h ../gdk/gdk.h \
42400 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42401 - gtkenums.h gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h \
42402 - gtktypeutils.h gtktypebuiltins.h gtkdebug.h gtkadjustment.h \
42403 - gtkdata.h gtkstyle.h gtkpixmap.h gtkmisc.h
42404 -gtkplug.lo gtkplug.o : gtkplug.c ../gdk/gdkx.h ../gdk/gdkprivate.h \
42405 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkkeysyms.h \
42406 - gtkplug.h ../gdk/gdk.h ../gdk/gdkrgb.h gtkwindow.h \
42407 - gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
42408 - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkbin.h gtkcontainer.h \
42409 - gtkwidget.h gtkadjustment.h gtkdata.h gtkstyle.h
42410 -gtkpreview.lo gtkpreview.o : gtkpreview.c ../gdk/gdkx.h \
42411 - ../gdk/gdkprivate.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42412 - ../gdk/gdkrgb.h gtkpreview.h gtkwidget.h ../gdk/gdk.h \
42413 - gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
42414 - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
42415 - gtkdata.h gtkstyle.h gtksignal.h gtkmarshal.h
42416 -gtkprogress.lo gtkprogress.o : gtkprogress.c gtkprogress.h ../gdk/gdk.h \
42417 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42418 - gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
42419 - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
42420 - gtkdata.h gtkstyle.h gtksignal.h gtkmarshal.h
42421 -gtkprogressbar.lo gtkprogressbar.o : gtkprogressbar.c ../config.h \
42422 - gtkprogressbar.h ../gdk/gdk.h ../gdk/gdktypes.h \
42423 - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkprogress.h gtkwidget.h \
42424 - gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
42425 - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
42426 - gtkdata.h gtkstyle.h gtksignal.h gtkmarshal.h
42427 -gtkradiobutton.lo gtkradiobutton.o : gtkradiobutton.c gtklabel.h \
42428 - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42429 - ../gdk/gdkrgb.h gtkmisc.h gtkwidget.h gtkaccelgroup.h \
42430 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42431 - gtkenums.h gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h \
42432 - gtkradiobutton.h gtkcheckbutton.h gtktogglebutton.h gtkbutton.h \
42433 - gtkbin.h gtkcontainer.h gtksignal.h gtkmarshal.h
42434 -gtkradiomenuitem.lo gtkradiomenuitem.o : gtkradiomenuitem.c \
42435 - gtkaccellabel.h gtklabel.h ../gdk/gdk.h ../gdk/gdktypes.h \
42436 - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkmisc.h gtkwidget.h \
42437 - gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
42438 - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
42439 - gtkdata.h gtkstyle.h gtkradiomenuitem.h gtkcheckmenuitem.h \
42440 - gtkmenuitem.h gtkitem.h gtkbin.h gtkcontainer.h
42441 -gtkrange.lo gtkrange.o : gtkrange.c gtkmain.h ../gdk/gdk.h \
42442 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42443 - gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
42444 - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
42445 - gtkdata.h gtkstyle.h gtkrange.h gtksignal.h gtkmarshal.h
42446 -gtkrc.lo gtkrc.o : gtkrc.c gtkrc.h gtkstyle.h ../gdk/gdk.h \
42447 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42448 - gtkenums.h gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h \
42449 - gtktypeutils.h gtktypebuiltins.h gtkdebug.h gtkadjustment.h \
42450 - gtkdata.h gtkbindings.h gtkthemes.h gtkintl.h ../config.h
42451 -gtkruler.lo gtkruler.o : gtkruler.c gtkruler.h ../gdk/gdk.h \
42452 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42453 - gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
42454 - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
42455 - gtkdata.h gtkstyle.h
42456 -gtkscale.lo gtkscale.o : gtkscale.c gtkcontainer.h ../gdk/gdk.h \
42457 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42458 - gtkenums.h gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h \
42459 - gtktypeutils.h gtktypebuiltins.h gtkdebug.h gtkadjustment.h \
42460 - gtkdata.h gtkstyle.h gtkscale.h gtkrange.h
42461 -gtkscrollbar.lo gtkscrollbar.o : gtkscrollbar.c gtkscrollbar.h \
42462 - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42463 - ../gdk/gdkrgb.h gtkrange.h gtkadjustment.h gtkdata.h \
42464 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42465 - gtkenums.h gtkdebug.h gtkwidget.h gtkaccelgroup.h gtkstyle.h
42466 -gtkscrolledwindow.lo gtkscrolledwindow.o : gtkscrolledwindow.c \
42467 - gtkscrolledwindow.h ../gdk/gdk.h ../gdk/gdktypes.h \
42468 - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkhscrollbar.h \
42469 - gtkscrollbar.h gtkrange.h gtkadjustment.h gtkdata.h gtkobject.h \
42470 - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
42471 - gtkwidget.h gtkaccelgroup.h gtkstyle.h gtkvscrollbar.h \
42472 - gtkviewport.h gtkbin.h gtkcontainer.h gtksignal.h gtkmarshal.h
42473 -gtkselection.lo gtkselection.o : gtkselection.c ../gdk/gdkx.h \
42474 - ../gdk/gdkprivate.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42475 - gtkmain.h ../gdk/gdk.h ../gdk/gdkrgb.h gtkwidget.h \
42476 - gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
42477 - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
42478 - gtkdata.h gtkstyle.h gtkselection.h gtksignal.h gtkmarshal.h
42479 -gtkseparator.lo gtkseparator.o : gtkseparator.c gtkseparator.h \
42480 - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42481 - ../gdk/gdkrgb.h gtkwidget.h gtkaccelgroup.h gtkobject.h \
42482 - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
42483 - gtkadjustment.h gtkdata.h gtkstyle.h
42484 -gtksignal.lo gtksignal.o : gtksignal.c gtksignal.h ../gdk/gdk.h \
42485 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42486 - gtkenums.h gtkobject.h gtkarg.h gtktypeutils.h \
42487 - gtktypebuiltins.h gtkdebug.h gtkmarshal.h gtkargcollector.c
42488 -gtksocket.lo gtksocket.o : gtksocket.c ../gdk/gdkx.h ../gdk/gdkprivate.h \
42489 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkkeysyms.h \
42490 - gtkwindow.h ../gdk/gdk.h ../gdk/gdkrgb.h gtkaccelgroup.h \
42491 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42492 - gtkenums.h gtkdebug.h gtkbin.h gtkcontainer.h gtkwidget.h \
42493 - gtkadjustment.h gtkdata.h gtkstyle.h gtksignal.h gtkmarshal.h \
42494 - gtksocket.h gtkdnd.h gtkselection.h
42495 -gtkspinbutton.lo gtkspinbutton.o : gtkspinbutton.c ../gdk/gdkkeysyms.h \
42496 - gtkspinbutton.h ../gdk/gdk.h ../gdk/gdktypes.h \
42497 - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkentry.h gtkeditable.h \
42498 - gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
42499 - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
42500 - gtkdata.h gtkstyle.h gtkmain.h gtksignal.h gtkmarshal.h
42501 -gtkstatusbar.lo gtkstatusbar.o : gtkstatusbar.c gtkframe.h ../gdk/gdk.h \
42502 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkbin.h \
42503 - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
42504 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42505 - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtklabel.h \
42506 - gtkmisc.h gtksignal.h gtkmarshal.h gtkstatusbar.h gtkhbox.h \
42507 - gtkbox.h
42508 -gtkstyle.lo gtkstyle.o : gtkstyle.c gtkgc.h ../gdk/gdk.h \
42509 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkrc.h \
42510 - gtkstyle.h gtkenums.h gtkwidget.h gtkaccelgroup.h gtkobject.h \
42511 - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkdebug.h \
42512 - gtkadjustment.h gtkdata.h gtkstyle.h gtkwidget.h gtkthemes.h \
42513 - ../gdk/gdkprivate.h
42514 -gtktable.lo gtktable.o : gtktable.c gtktable.h ../gdk/gdk.h \
42515 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42516 - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
42517 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42518 - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h
42519 -gtktearoffmenuitem.lo gtktearoffmenuitem.o : gtktearoffmenuitem.c \
42520 - gtkmenu.h ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42521 - ../gdk/gdkrgb.h gtkaccelgroup.h gtkobject.h gtkarg.h \
42522 - gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
42523 - gtkmenushell.h gtkcontainer.h gtkwidget.h gtkadjustment.h \
42524 - gtkdata.h gtkstyle.h gtksignal.h gtkmarshal.h \
42525 - gtktearoffmenuitem.h gtkmenuitem.h gtkitem.h gtkbin.h
42526 -gtktext.lo gtktext.o : gtktext.c ../gdk/gdkkeysyms.h ../gdk/gdki18n.h \
42527 - gtkmain.h ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42528 - ../gdk/gdkrgb.h gtkwidget.h gtkaccelgroup.h gtkobject.h \
42529 - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
42530 - gtkadjustment.h gtkdata.h gtkstyle.h gtkselection.h gtksignal.h \
42531 - gtkmarshal.h gtktext.h gtkeditable.h line-wrap.xbm \
42532 - line-arrow.xbm
42533 -gtkthemes.lo gtkthemes.o : gtkthemes.c gtkthemes.h ../gdk/gdk.h \
42534 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42535 - gtkstyle.h gtkenums.h gtkwidget.h gtkaccelgroup.h gtkobject.h \
42536 - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkdebug.h \
42537 - gtkadjustment.h gtkdata.h gtkmain.h gtkrc.h gtkselection.h \
42538 - gtksignal.h gtkmarshal.h gtkwidget.h ../config.h gtkintl.h
42539 -gtktipsquery.lo gtktipsquery.o : gtktipsquery.c gtktipsquery.h \
42540 - gtklabel.h ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42541 - ../gdk/gdkrgb.h gtkmisc.h gtkwidget.h gtkaccelgroup.h \
42542 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42543 - gtkenums.h gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h \
42544 - gtksignal.h gtkmarshal.h gtktooltips.h gtkmain.h gtkintl.h \
42545 - ../config.h
42546 -gtktogglebutton.lo gtktogglebutton.o : gtktogglebutton.c gtklabel.h \
42547 - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42548 - ../gdk/gdkrgb.h gtkmisc.h gtkwidget.h gtkaccelgroup.h \
42549 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42550 - gtkenums.h gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h \
42551 - gtkmain.h gtksignal.h gtkmarshal.h gtktogglebutton.h \
42552 - gtkbutton.h gtkbin.h gtkcontainer.h
42553 -gtktoolbar.lo gtktoolbar.o : gtktoolbar.c gtkbutton.h ../gdk/gdk.h \
42554 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkbin.h \
42555 - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
42556 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42557 - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h \
42558 - gtktogglebutton.h gtkbutton.h gtkradiobutton.h gtkcheckbutton.h \
42559 - gtktogglebutton.h gtklabel.h gtkmisc.h gtkvbox.h gtkbox.h \
42560 - gtktoolbar.h gtkpixmap.h gtksignal.h gtkmarshal.h gtktooltips.h
42561 -gtktooltips.lo gtktooltips.o : gtktooltips.c gtkmain.h ../gdk/gdk.h \
42562 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42563 - gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
42564 - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
42565 - gtkdata.h gtkstyle.h gtkwidget.h gtkwindow.h gtkbin.h \
42566 - gtkcontainer.h gtksignal.h gtkmarshal.h gtkstyle.h \
42567 - gtktooltips.h
42568 -gtktree.lo gtktree.o : gtktree.c gtktree.h ../gdk/gdk.h \
42569 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42570 - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
42571 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42572 - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h gtktreeitem.h \
42573 - gtkitem.h gtkbin.h gtkmain.h gtksignal.h gtkmarshal.h gtklist.h \
42574 - gtklistitem.h
42575 -gtktreeitem.lo gtktreeitem.o : gtktreeitem.c gtklabel.h ../gdk/gdk.h \
42576 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkmisc.h \
42577 - gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
42578 - gtktypebuiltins.h gtkenums.h gtkdebug.h gtkadjustment.h \
42579 - gtkdata.h gtkstyle.h gtktree.h gtkcontainer.h gtktreeitem.h \
42580 - gtkitem.h gtkbin.h gtkeventbox.h gtkpixmap.h gtkmain.h \
42581 - gtksignal.h gtkmarshal.h tree_plus.xpm tree_minus.xpm
42582 -gtktypeutils.lo gtktypeutils.o : gtktypeutils.c gtktypeutils.h \
42583 - gtktypebuiltins.h makeenums.h ../gdk/gdkprivate.h \
42584 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdk.h \
42585 - ../gdk/gdkrgb.h gtk.h gtkaccelgroup.h gtkobject.h gtkarg.h \
42586 - gtktypeutils.h gtkenums.h gtkdebug.h gtkaccellabel.h gtklabel.h \
42587 - gtkmisc.h gtkwidget.h gtkadjustment.h gtkdata.h gtkstyle.h \
42588 - gtkalignment.h gtkbin.h gtkcontainer.h gtkaspectframe.h \
42589 - gtkframe.h gtkarrow.h gtkbindings.h gtkbox.h gtkbbox.h \
42590 - gtkbutton.h gtkcalendar.h gtksignal.h gtkmarshal.h \
42591 - gtkcheckbutton.h gtktogglebutton.h gtkcheckmenuitem.h \
42592 - gtkmenuitem.h gtkitem.h gtkclist.h gtkhscrollbar.h \
42593 - gtkscrollbar.h gtkrange.h gtkvscrollbar.h gtkcolorsel.h \
42594 - gtkwindow.h gtkvbox.h gtkpreview.h gtkentry.h gtkeditable.h \
42595 - gtkhbox.h gtkmain.h gtkscale.h gtkhscale.h gtktable.h \
42596 - gtkeventbox.h gtkcombo.h gtkcompat.h gtkctree.h gtkcurve.h \
42597 - gtkdrawingarea.h gtkdialog.h gtkdnd.h gtkselection.h \
42598 - gtkfeatures.h gtkfilesel.h gtkfixed.h gtkfontsel.h \
42599 - gtknotebook.h gtkgamma.h gtkgc.h gtkhandlebox.h gtkhbbox.h \
42600 - gtkhpaned.h gtkpaned.h gtkhruler.h gtkruler.h gtkhseparator.h \
42601 - gtkseparator.h gtkimage.h gtkinputdialog.h gtkitemfactory.h \
42602 - gtkmenufactory.h gtklayout.h gtklist.h gtklistitem.h gtkmenu.h \
42603 - gtkmenushell.h gtkmenubar.h gtkoptionmenu.h gtkpacker.h \
42604 - gtkpixmap.h gtkplug.h gtkprogress.h gtkprogressbar.h \
42605 - gtkradiobutton.h gtkradiomenuitem.h gtkrc.h gtkscrolledwindow.h \
42606 - gtkviewport.h gtksocket.h gtkspinbutton.h gtkstatusbar.h \
42607 - gtktearoffmenuitem.h gtktext.h gtkthemes.h gtktipsquery.h \
42608 - gtktoolbar.h gtktooltips.h gtktree.h gtktreeitem.h gtkvbbox.h \
42609 - gtkvpaned.h gtkvruler.h gtkvscale.h gtkvseparator.h \
42610 - gtkprivate.h gtktypebuiltins_vars.c gtktypebuiltins_evals.c \
42611 - gtktypebuiltins_ids.c
42612 -gtkvbbox.lo gtkvbbox.o : gtkvbbox.c gtkvbbox.h gtkbbox.h gtkbox.h \
42613 - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42614 - ../gdk/gdkrgb.h gtkcontainer.h gtkenums.h gtkwidget.h \
42615 - gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
42616 - gtktypebuiltins.h gtkdebug.h gtkadjustment.h gtkdata.h \
42617 - gtkstyle.h
42618 -gtkvbox.lo gtkvbox.o : gtkvbox.c gtkvbox.h ../gdk/gdk.h \
42619 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkbox.h \
42620 - gtkcontainer.h gtkenums.h gtkwidget.h gtkaccelgroup.h \
42621 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42622 - gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h
42623 -gtkviewport.lo gtkviewport.o : gtkviewport.c gtksignal.h ../gdk/gdk.h \
42624 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42625 - gtkenums.h gtkobject.h gtkarg.h gtktypeutils.h \
42626 - gtktypebuiltins.h gtkdebug.h gtkmarshal.h gtkviewport.h \
42627 - gtkadjustment.h gtkdata.h gtkbin.h gtkcontainer.h gtkwidget.h \
42628 - gtkaccelgroup.h gtkstyle.h
42629 -gtkvpaned.lo gtkvpaned.o : gtkvpaned.c gtkvpaned.h ../gdk/gdk.h \
42630 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42631 - gtkpaned.h gtkcontainer.h gtkenums.h gtkwidget.h \
42632 - gtkaccelgroup.h gtkobject.h gtkarg.h gtktypeutils.h \
42633 - gtktypebuiltins.h gtkdebug.h gtkadjustment.h gtkdata.h \
42634 - gtkstyle.h gtkmain.h gtksignal.h gtkmarshal.h
42635 -gtkvruler.lo gtkvruler.o : gtkvruler.c gtkvruler.h ../gdk/gdk.h \
42636 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42637 - gtkruler.h gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h \
42638 - gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
42639 - gtkadjustment.h gtkdata.h gtkstyle.h
42640 -gtkvscale.lo gtkvscale.o : gtkvscale.c gtkvscale.h ../gdk/gdk.h \
42641 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42642 - gtkscale.h gtkrange.h gtkadjustment.h gtkdata.h gtkobject.h \
42643 - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
42644 - gtkwidget.h gtkaccelgroup.h gtkstyle.h gtksignal.h gtkmarshal.h \
42645 - ../gdk/gdkkeysyms.h
42646 -gtkvscrollbar.lo gtkvscrollbar.o : gtkvscrollbar.c gtkvscrollbar.h \
42647 - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42648 - ../gdk/gdkrgb.h gtkscrollbar.h gtkrange.h gtkadjustment.h \
42649 - gtkdata.h gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42650 - gtkenums.h gtkdebug.h gtkwidget.h gtkaccelgroup.h gtkstyle.h \
42651 - gtksignal.h gtkmarshal.h ../gdk/gdkkeysyms.h
42652 -gtkvseparator.lo gtkvseparator.o : gtkvseparator.c gtkvseparator.h \
42653 - ../gdk/gdk.h ../gdk/gdktypes.h ../gdk/gdkcursors.h \
42654 - ../gdk/gdkrgb.h gtkseparator.h gtkwidget.h gtkaccelgroup.h \
42655 - gtkobject.h gtkarg.h gtktypeutils.h gtktypebuiltins.h \
42656 - gtkenums.h gtkdebug.h gtkadjustment.h gtkdata.h gtkstyle.h
42657 -gtkwidget.lo gtkwidget.o : gtkwidget.c gtkcontainer.h ../gdk/gdk.h \
42658 - ../gdk/gdktypes.h ../gdk/gdkcursors.h ../gdk/gdkrgb.h \
42659 - gtkenums.h gtkwidget.h gtkaccelgroup.h gtkobject.h gtkarg.h \
42660 - gtktypeutils.h gtktypebuiltins.h gtkdebug.h gtkadjustment.h \
42661 - gtkdata.h gtkstyle.h gtkmain.h gtkrc.h gtkselection.h \
42662 - gtksignal.h gtkmarshal.h gtkwidget.h gtkwindow.h gtkbin.h \
42663 - gtkcontainer.h gtkbindings.h gtkprivate.h ../gdk/gdkx.h \
42664 - ../gdk/gdkprivate.h
42665 -gtkwindow.lo gtkwindow.o : gtkwindow.c ../gdk/gdk.h ../gdk/gdktypes.h \
42666 - ../gdk/gdkcursors.h ../gdk/gdkrgb.h ../gdk/gdkkeysyms.h \
42667 - ../gdk/gdkx.h ../gdk/gdkprivate.h gtkprivate.h gtkobject.h \
42668 - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
42669 - gtkwidget.h gtkaccelgroup.h gtkadjustment.h gtkdata.h \
42670 - gtkstyle.h gtkrc.h gtksignal.h gtkmarshal.h gtkwindow.h \
42671 - gtkbin.h gtkcontainer.h gtkbindings.h gtkmain.h
42672 -simple.o: simple.c gtk.h ../gdk/gdk.h ../gdk/gdktypes.h \
42673 - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkaccelgroup.h gtkobject.h \
42674 - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
42675 - gtkaccellabel.h gtklabel.h gtkmisc.h gtkwidget.h \
42676 - gtkadjustment.h gtkdata.h gtkstyle.h gtkalignment.h gtkbin.h \
42677 - gtkcontainer.h gtkaspectframe.h gtkframe.h gtkarrow.h \
42678 - gtkbindings.h gtkbox.h gtkbbox.h gtkbutton.h gtkcalendar.h \
42679 - gtksignal.h gtkmarshal.h gtkcheckbutton.h gtktogglebutton.h \
42680 - gtkcheckmenuitem.h gtkmenuitem.h gtkitem.h gtkclist.h \
42681 - gtkhscrollbar.h gtkscrollbar.h gtkrange.h gtkvscrollbar.h \
42682 - gtkcolorsel.h gtkwindow.h gtkvbox.h gtkpreview.h gtkentry.h \
42683 - gtkeditable.h gtkhbox.h gtkmain.h gtkscale.h gtkhscale.h \
42684 - gtktable.h gtkeventbox.h gtkcombo.h gtkcompat.h gtkctree.h \
42685 - gtkcurve.h gtkdrawingarea.h gtkdialog.h gtkdnd.h gtkselection.h \
42686 - gtkfeatures.h gtkfilesel.h gtkfixed.h gtkfontsel.h \
42687 - gtknotebook.h gtkgamma.h gtkgc.h gtkhandlebox.h gtkhbbox.h \
42688 - gtkhpaned.h gtkpaned.h gtkhruler.h gtkruler.h gtkhseparator.h \
42689 - gtkseparator.h gtkimage.h gtkinputdialog.h gtkitemfactory.h \
42690 - gtkmenufactory.h gtklayout.h gtklist.h gtklistitem.h gtkmenu.h \
42691 - gtkmenushell.h gtkmenubar.h gtkoptionmenu.h gtkpacker.h \
42692 - gtkpixmap.h gtkplug.h gtkprogress.h gtkprogressbar.h \
42693 - gtkradiobutton.h gtkradiomenuitem.h gtkrc.h gtkscrolledwindow.h \
42694 - gtkviewport.h gtksocket.h gtkspinbutton.h gtkstatusbar.h \
42695 - gtktearoffmenuitem.h gtktext.h gtkthemes.h gtktipsquery.h \
42696 - gtktoolbar.h gtktooltips.h gtktree.h gtktreeitem.h gtkvbbox.h \
42697 - gtkvpaned.h gtkvruler.h gtkvscale.h gtkvseparator.h \
42698 - ../gdk/gdkprivate.h
42699 -testdnd.o: testdnd.c gtk.h ../gdk/gdk.h ../gdk/gdktypes.h \
42700 - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkaccelgroup.h gtkobject.h \
42701 - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
42702 - gtkaccellabel.h gtklabel.h gtkmisc.h gtkwidget.h \
42703 - gtkadjustment.h gtkdata.h gtkstyle.h gtkalignment.h gtkbin.h \
42704 - gtkcontainer.h gtkaspectframe.h gtkframe.h gtkarrow.h \
42705 - gtkbindings.h gtkbox.h gtkbbox.h gtkbutton.h gtkcalendar.h \
42706 - gtksignal.h gtkmarshal.h gtkcheckbutton.h gtktogglebutton.h \
42707 - gtkcheckmenuitem.h gtkmenuitem.h gtkitem.h gtkclist.h \
42708 - gtkhscrollbar.h gtkscrollbar.h gtkrange.h gtkvscrollbar.h \
42709 - gtkcolorsel.h gtkwindow.h gtkvbox.h gtkpreview.h gtkentry.h \
42710 - gtkeditable.h gtkhbox.h gtkmain.h gtkscale.h gtkhscale.h \
42711 - gtktable.h gtkeventbox.h gtkcombo.h gtkcompat.h gtkctree.h \
42712 - gtkcurve.h gtkdrawingarea.h gtkdialog.h gtkdnd.h gtkselection.h \
42713 - gtkfeatures.h gtkfilesel.h gtkfixed.h gtkfontsel.h \
42714 - gtknotebook.h gtkgamma.h gtkgc.h gtkhandlebox.h gtkhbbox.h \
42715 - gtkhpaned.h gtkpaned.h gtkhruler.h gtkruler.h gtkhseparator.h \
42716 - gtkseparator.h gtkimage.h gtkinputdialog.h gtkitemfactory.h \
42717 - gtkmenufactory.h gtklayout.h gtklist.h gtklistitem.h gtkmenu.h \
42718 - gtkmenushell.h gtkmenubar.h gtkoptionmenu.h gtkpacker.h \
42719 - gtkpixmap.h gtkplug.h gtkprogress.h gtkprogressbar.h \
42720 - gtkradiobutton.h gtkradiomenuitem.h gtkrc.h gtkscrolledwindow.h \
42721 - gtkviewport.h gtksocket.h gtkspinbutton.h gtkstatusbar.h \
42722 - gtktearoffmenuitem.h gtktext.h gtkthemes.h gtktipsquery.h \
42723 - gtktoolbar.h gtktooltips.h gtktree.h gtktreeitem.h gtkvbbox.h \
42724 - gtkvpaned.h gtkvruler.h gtkvscale.h gtkvseparator.h
42725 -testgtk.o: testgtk.c gtk.h ../gdk/gdk.h ../gdk/gdktypes.h \
42726 - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkaccelgroup.h gtkobject.h \
42727 - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
42728 - gtkaccellabel.h gtklabel.h gtkmisc.h gtkwidget.h \
42729 - gtkadjustment.h gtkdata.h gtkstyle.h gtkalignment.h gtkbin.h \
42730 - gtkcontainer.h gtkaspectframe.h gtkframe.h gtkarrow.h \
42731 - gtkbindings.h gtkbox.h gtkbbox.h gtkbutton.h gtkcalendar.h \
42732 - gtksignal.h gtkmarshal.h gtkcheckbutton.h gtktogglebutton.h \
42733 - gtkcheckmenuitem.h gtkmenuitem.h gtkitem.h gtkclist.h \
42734 - gtkhscrollbar.h gtkscrollbar.h gtkrange.h gtkvscrollbar.h \
42735 - gtkcolorsel.h gtkwindow.h gtkvbox.h gtkpreview.h gtkentry.h \
42736 - gtkeditable.h gtkhbox.h gtkmain.h gtkscale.h gtkhscale.h \
42737 - gtktable.h gtkeventbox.h gtkcombo.h gtkcompat.h gtkctree.h \
42738 - gtkcurve.h gtkdrawingarea.h gtkdialog.h gtkdnd.h gtkselection.h \
42739 - gtkfeatures.h gtkfilesel.h gtkfixed.h gtkfontsel.h \
42740 - gtknotebook.h gtkgamma.h gtkgc.h gtkhandlebox.h gtkhbbox.h \
42741 - gtkhpaned.h gtkpaned.h gtkhruler.h gtkruler.h gtkhseparator.h \
42742 - gtkseparator.h gtkimage.h gtkinputdialog.h gtkitemfactory.h \
42743 - gtkmenufactory.h gtklayout.h gtklist.h gtklistitem.h gtkmenu.h \
42744 - gtkmenushell.h gtkmenubar.h gtkoptionmenu.h gtkpacker.h \
42745 - gtkpixmap.h gtkplug.h gtkprogress.h gtkprogressbar.h \
42746 - gtkradiobutton.h gtkradiomenuitem.h gtkrc.h gtkscrolledwindow.h \
42747 - gtkviewport.h gtksocket.h gtkspinbutton.h gtkstatusbar.h \
42748 - gtktearoffmenuitem.h gtktext.h gtkthemes.h gtktipsquery.h \
42749 - gtktoolbar.h gtktooltips.h gtktree.h gtktreeitem.h gtkvbbox.h \
42750 - gtkvpaned.h gtkvruler.h gtkvscale.h gtkvseparator.h \
42751 - ../gdk/gdkx.h ../gdk/gdkprivate.h ../gdk/gdkkeysyms.h \
42752 - circles.xbm
42753 -testinput.o: testinput.c gtk.h ../gdk/gdk.h ../gdk/gdktypes.h \
42754 - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkaccelgroup.h gtkobject.h \
42755 - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
42756 - gtkaccellabel.h gtklabel.h gtkmisc.h gtkwidget.h \
42757 - gtkadjustment.h gtkdata.h gtkstyle.h gtkalignment.h gtkbin.h \
42758 - gtkcontainer.h gtkaspectframe.h gtkframe.h gtkarrow.h \
42759 - gtkbindings.h gtkbox.h gtkbbox.h gtkbutton.h gtkcalendar.h \
42760 - gtksignal.h gtkmarshal.h gtkcheckbutton.h gtktogglebutton.h \
42761 - gtkcheckmenuitem.h gtkmenuitem.h gtkitem.h gtkclist.h \
42762 - gtkhscrollbar.h gtkscrollbar.h gtkrange.h gtkvscrollbar.h \
42763 - gtkcolorsel.h gtkwindow.h gtkvbox.h gtkpreview.h gtkentry.h \
42764 - gtkeditable.h gtkhbox.h gtkmain.h gtkscale.h gtkhscale.h \
42765 - gtktable.h gtkeventbox.h gtkcombo.h gtkcompat.h gtkctree.h \
42766 - gtkcurve.h gtkdrawingarea.h gtkdialog.h gtkdnd.h gtkselection.h \
42767 - gtkfeatures.h gtkfilesel.h gtkfixed.h gtkfontsel.h \
42768 - gtknotebook.h gtkgamma.h gtkgc.h gtkhandlebox.h gtkhbbox.h \
42769 - gtkhpaned.h gtkpaned.h gtkhruler.h gtkruler.h gtkhseparator.h \
42770 - gtkseparator.h gtkimage.h gtkinputdialog.h gtkitemfactory.h \
42771 - gtkmenufactory.h gtklayout.h gtklist.h gtklistitem.h gtkmenu.h \
42772 - gtkmenushell.h gtkmenubar.h gtkoptionmenu.h gtkpacker.h \
42773 - gtkpixmap.h gtkplug.h gtkprogress.h gtkprogressbar.h \
42774 - gtkradiobutton.h gtkradiomenuitem.h gtkrc.h gtkscrolledwindow.h \
42775 - gtkviewport.h gtksocket.h gtkspinbutton.h gtkstatusbar.h \
42776 - gtktearoffmenuitem.h gtktext.h gtkthemes.h gtktipsquery.h \
42777 - gtktoolbar.h gtktooltips.h gtktree.h gtktreeitem.h gtkvbbox.h \
42778 - gtkvpaned.h gtkvruler.h gtkvscale.h gtkvseparator.h
42779 -testrgb.o: testrgb.c gtk.h ../gdk/gdk.h ../gdk/gdktypes.h \
42780 - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkaccelgroup.h gtkobject.h \
42781 - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
42782 - gtkaccellabel.h gtklabel.h gtkmisc.h gtkwidget.h \
42783 - gtkadjustment.h gtkdata.h gtkstyle.h gtkalignment.h gtkbin.h \
42784 - gtkcontainer.h gtkaspectframe.h gtkframe.h gtkarrow.h \
42785 - gtkbindings.h gtkbox.h gtkbbox.h gtkbutton.h gtkcalendar.h \
42786 - gtksignal.h gtkmarshal.h gtkcheckbutton.h gtktogglebutton.h \
42787 - gtkcheckmenuitem.h gtkmenuitem.h gtkitem.h gtkclist.h \
42788 - gtkhscrollbar.h gtkscrollbar.h gtkrange.h gtkvscrollbar.h \
42789 - gtkcolorsel.h gtkwindow.h gtkvbox.h gtkpreview.h gtkentry.h \
42790 - gtkeditable.h gtkhbox.h gtkmain.h gtkscale.h gtkhscale.h \
42791 - gtktable.h gtkeventbox.h gtkcombo.h gtkcompat.h gtkctree.h \
42792 - gtkcurve.h gtkdrawingarea.h gtkdialog.h gtkdnd.h gtkselection.h \
42793 - gtkfeatures.h gtkfilesel.h gtkfixed.h gtkfontsel.h \
42794 - gtknotebook.h gtkgamma.h gtkgc.h gtkhandlebox.h gtkhbbox.h \
42795 - gtkhpaned.h gtkpaned.h gtkhruler.h gtkruler.h gtkhseparator.h \
42796 - gtkseparator.h gtkimage.h gtkinputdialog.h gtkitemfactory.h \
42797 - gtkmenufactory.h gtklayout.h gtklist.h gtklistitem.h gtkmenu.h \
42798 - gtkmenushell.h gtkmenubar.h gtkoptionmenu.h gtkpacker.h \
42799 - gtkpixmap.h gtkplug.h gtkprogress.h gtkprogressbar.h \
42800 - gtkradiobutton.h gtkradiomenuitem.h gtkrc.h gtkscrolledwindow.h \
42801 - gtkviewport.h gtksocket.h gtkspinbutton.h gtkstatusbar.h \
42802 - gtktearoffmenuitem.h gtktext.h gtkthemes.h gtktipsquery.h \
42803 - gtktoolbar.h gtktooltips.h gtktree.h gtktreeitem.h gtkvbbox.h \
42804 - gtkvpaned.h gtkvruler.h gtkvscale.h gtkvseparator.h
42805 -testselection.o: testselection.c gtk.h ../gdk/gdk.h ../gdk/gdktypes.h \
42806 - ../gdk/gdkcursors.h ../gdk/gdkrgb.h gtkaccelgroup.h gtkobject.h \
42807 - gtkarg.h gtktypeutils.h gtktypebuiltins.h gtkenums.h gtkdebug.h \
42808 - gtkaccellabel.h gtklabel.h gtkmisc.h gtkwidget.h \
42809 - gtkadjustment.h gtkdata.h gtkstyle.h gtkalignment.h gtkbin.h \
42810 - gtkcontainer.h gtkaspectframe.h gtkframe.h gtkarrow.h \
42811 - gtkbindings.h gtkbox.h gtkbbox.h gtkbutton.h gtkcalendar.h \
42812 - gtksignal.h gtkmarshal.h gtkcheckbutton.h gtktogglebutton.h \
42813 - gtkcheckmenuitem.h gtkmenuitem.h gtkitem.h gtkclist.h \
42814 - gtkhscrollbar.h gtkscrollbar.h gtkrange.h gtkvscrollbar.h \
42815 - gtkcolorsel.h gtkwindow.h gtkvbox.h gtkpreview.h gtkentry.h \
42816 - gtkeditable.h gtkhbox.h gtkmain.h gtkscale.h gtkhscale.h \
42817 - gtktable.h gtkeventbox.h gtkcombo.h gtkcompat.h gtkctree.h \
42818 - gtkcurve.h gtkdrawingarea.h gtkdialog.h gtkdnd.h gtkselection.h \
42819 - gtkfeatures.h gtkfilesel.h gtkfixed.h gtkfontsel.h \
42820 - gtknotebook.h gtkgamma.h gtkgc.h gtkhandlebox.h gtkhbbox.h \
42821 - gtkhpaned.h gtkpaned.h gtkhruler.h gtkruler.h gtkhseparator.h \
42822 - gtkseparator.h gtkimage.h gtkinputdialog.h gtkitemfactory.h \
42823 - gtkmenufactory.h gtklayout.h gtklist.h gtklistitem.h gtkmenu.h \
42824 - gtkmenushell.h gtkmenubar.h gtkoptionmenu.h gtkpacker.h \
42825 - gtkpixmap.h gtkplug.h gtkprogress.h gtkprogressbar.h \
42826 - gtkradiobutton.h gtkradiomenuitem.h gtkrc.h gtkscrolledwindow.h \
42827 - gtkviewport.h gtksocket.h gtkspinbutton.h gtkstatusbar.h \
42828 - gtktearoffmenuitem.h gtktext.h gtkthemes.h gtktipsquery.h \
42829 - gtktoolbar.h gtktooltips.h gtktree.h gtktreeitem.h gtkvbbox.h \
42830 - gtkvpaned.h gtkvruler.h gtkvscale.h gtkvseparator.h
42832 +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
42834 +-include $(DEP_FILES)
42836 +mostlyclean-depend:
42838 +clean-depend:
42840 +distclean-depend:
42841 + -rm -rf .deps
42843 +maintainer-clean-depend:
42845 +%.o: %.c
42846 + @echo '$(COMPILE) -c $<'; \
42847 + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
42848 + @-cp .deps/$(*F).pp .deps/$(*F).P; \
42849 + tr ' ' '\012' < .deps/$(*F).pp \
42850 + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
42851 + >> .deps/$(*F).P; \
42852 + rm .deps/$(*F).pp
42854 +%.lo: %.c
42855 + @echo '$(LTCOMPILE) -c $<'; \
42856 + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
42857 + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
42858 + < .deps/$(*F).pp > .deps/$(*F).P; \
42859 + tr ' ' '\012' < .deps/$(*F).pp \
42860 + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
42861 + >> .deps/$(*F).P; \
42862 + rm -f .deps/$(*F).pp
42863 info-am:
42864 info: info-am
42865 dvi-am:
42866 @@ -1384,19 +619,20 @@
42867 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
42868 mostlyclean-am: mostlyclean-libLTLIBRARIES mostlyclean-compile \
42869 mostlyclean-libtool mostlyclean-noinstPROGRAMS \
42870 - mostlyclean-tags mostlyclean-generic
42871 + mostlyclean-tags mostlyclean-depend mostlyclean-generic
42873 mostlyclean: mostlyclean-am
42875 clean-am: clean-libLTLIBRARIES clean-compile clean-libtool \
42876 - clean-noinstPROGRAMS clean-tags clean-generic \
42877 - mostlyclean-am
42878 + clean-noinstPROGRAMS clean-tags clean-depend \
42879 + clean-generic mostlyclean-am
42881 clean: clean-am
42883 distclean-am: distclean-libLTLIBRARIES distclean-compile \
42884 distclean-libtool distclean-noinstPROGRAMS \
42885 - distclean-tags distclean-generic clean-am
42886 + distclean-tags distclean-depend distclean-generic \
42887 + clean-am
42888 -rm -f libtool
42890 distclean: distclean-am
42891 @@ -1404,7 +640,8 @@
42892 maintainer-clean-am: maintainer-clean-libLTLIBRARIES \
42893 maintainer-clean-compile maintainer-clean-libtool \
42894 maintainer-clean-noinstPROGRAMS maintainer-clean-tags \
42895 - maintainer-clean-generic distclean-am
42896 + maintainer-clean-depend maintainer-clean-generic \
42897 + distclean-am
42898 @echo "This command is intended for maintainers to use;"
42899 @echo "it deletes files that may require special tools to rebuild."
42901 @@ -1420,10 +657,11 @@
42902 maintainer-clean-noinstPROGRAMS uninstall-gtkconfDATA \
42903 install-gtkconfDATA uninstall-libgtkincludeHEADERS \
42904 install-libgtkincludeHEADERS tags mostlyclean-tags distclean-tags \
42905 -clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
42906 -check-am installcheck-am installcheck install-exec-am install-exec \
42907 -install-data-local install-data-am install-data install-am install \
42908 -uninstall-local uninstall-am uninstall all-redirect all-am all \
42909 +clean-tags maintainer-clean-tags distdir mostlyclean-depend \
42910 +distclean-depend clean-depend maintainer-clean-depend info-am info \
42911 +dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
42912 +install-exec install-data-local install-data-am install-data install-am \
42913 +install uninstall-local uninstall-am uninstall all-redirect all-am all \
42914 installdirs mostlyclean-generic distclean-generic clean-generic \
42915 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
42917 diff -urN gtk+-1.2.10.orig/ltmain.sh gtk+-1.2.10/ltmain.sh
42918 --- gtk+-1.2.10.orig/ltmain.sh 2000-02-02 18:07:43.000000000 -0700
42919 +++ gtk+-1.2.10/ltmain.sh 2006-01-10 08:23:52.000000000 -0700
42920 @@ -1,7 +1,8 @@
42921 # ltmain.sh - Provide generalized library-building support services.
42922 -# NOTE: Changing this file will not affect anything until you rerun ltconfig.
42923 +# NOTE: Changing this file will not affect anything until you rerun configure.
42925 -# Copyright (C) 1996-1999 Free Software Foundation, Inc.
42926 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
42927 +# Free Software Foundation, Inc.
42928 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
42930 # This program is free software; you can redistribute it and/or modify
42931 @@ -16,13 +17,41 @@
42933 # You should have received a copy of the GNU General Public License
42934 # along with this program; if not, write to the Free Software
42935 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
42936 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
42938 # As a special exception to the GNU General Public License, if you
42939 # distribute this file as part of a program that contains a
42940 # configuration script generated by Autoconf, you may include it under
42941 # the same distribution terms that you use for the rest of that program.
42943 +basename="s,^.*/,,g"
42945 +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
42946 +# is ksh but when the shell is invoked as "sh" and the current value of
42947 +# the _XPG environment variable is not equal to 1 (one), the special
42948 +# positional parameter $0, within a function call, is the name of the
42949 +# function.
42950 +progpath="$0"
42952 +# The name of this program:
42953 +progname=`echo "$progpath" | $SED $basename`
42954 +modename="$progname"
42956 +# Global variables:
42957 +EXIT_SUCCESS=0
42958 +EXIT_FAILURE=1
42960 +PROGRAM=ltmain.sh
42961 +PACKAGE=libtool
42962 +VERSION="1.5.22 Debian 1.5.22-2"
42963 +TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
42965 +# See if we are running on zsh, and set the options which allow our
42966 +# commands through without removal of \ escapes.
42967 +if test -n "${ZSH_VERSION+set}" ; then
42968 + setopt NO_GLOB_SUBST
42971 # Check that we have a working $echo.
42972 if test "X$1" = X--no-reexec; then
42973 # Discard the --no-reexec flag, and continue.
42974 @@ -35,7 +64,7 @@
42976 else
42977 # Restart under the correct shell, and then maybe $echo will work.
42978 - exec $SHELL "$0" --no-reexec ${1+"$@"}
42979 + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
42982 if test "X$1" = X--fallback-echo; then
42983 @@ -44,19 +73,9 @@
42984 cat <<EOF
42987 - exit 0
42988 + exit $EXIT_SUCCESS
42991 -# The name of this program.
42992 -progname=`$echo "$0" | sed 's%^.*/%%'`
42993 -modename="$progname"
42995 -# Constants.
42996 -PROGRAM=ltmain.sh
42997 -PACKAGE=libtool
42998 -VERSION=1.3.4
42999 -TIMESTAMP=" (1.385.2.196 1999/12/07 21:47:57)"
43001 default_mode=
43002 help="Try \`$progname --help' for more information."
43003 magic="%%%MAGIC variable%%%"
43004 @@ -66,10 +85,20 @@
43006 # Sed substitution that helps us do robust quoting. It backslashifies
43007 # metacharacters that are still active within double-quoted strings.
43008 -Xsed='sed -e 1s/^X//'
43009 +Xsed="${SED}"' -e 1s/^X//'
43010 sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
43011 -SP2NL='tr \040 \012'
43012 -NL2SP='tr \015\012 \040\040'
43013 +# test EBCDIC or ASCII
43014 +case `echo X|tr X '\101'` in
43015 + A) # ASCII based system
43016 + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
43017 + SP2NL='tr \040 \012'
43018 + NL2SP='tr \015\012 \040\040'
43019 + ;;
43020 + *) # EBCDIC based system
43021 + SP2NL='tr \100 \n'
43022 + NL2SP='tr \r\n \100\100'
43023 + ;;
43024 +esac
43026 # NLS nuisances.
43027 # Only set LANG and LC_ALL to C if already set.
43028 @@ -83,16 +112,15 @@
43029 save_LANG="$LANG"; LANG=C; export LANG
43032 -if test "$LTCONFIG_VERSION" != "$VERSION"; then
43033 - echo "$modename: ltconfig version \`$LTCONFIG_VERSION' does not match $PROGRAM version \`$VERSION'" 1>&2
43034 - echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
43035 - exit 1
43037 +# Make sure IFS has a sensible default
43038 +lt_nl='
43040 +IFS=" $lt_nl"
43042 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
43043 - echo "$modename: not configured to build any kind of library" 1>&2
43044 - echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
43045 - exit 1
43046 + $echo "$modename: not configured to build any kind of library" 1>&2
43047 + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
43048 + exit $EXIT_FAILURE
43051 # Global variables.
43052 @@ -104,25 +132,310 @@
43053 show="$echo"
43054 show_help=
43055 execute_dlfiles=
43056 +duplicate_deps=no
43057 +preserve_args=
43058 lo2o="s/\\.lo\$/.${objext}/"
43059 o2lo="s/\\.${objext}\$/.lo/"
43061 +#####################################
43062 +# Shell function definitions:
43063 +# This seems to be the best place for them
43065 +# func_mktempdir [string]
43066 +# Make a temporary directory that won't clash with other running
43067 +# libtool processes, and avoids race conditions if possible. If
43068 +# given, STRING is the basename for that directory.
43069 +func_mktempdir ()
43071 + my_template="${TMPDIR-/tmp}/${1-$progname}"
43073 + if test "$run" = ":"; then
43074 + # Return a directory name, but don't create it in dry-run mode
43075 + my_tmpdir="${my_template}-$$"
43076 + else
43078 + # If mktemp works, use that first and foremost
43079 + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
43081 + if test ! -d "$my_tmpdir"; then
43082 + # Failing that, at least try and use $RANDOM to avoid a race
43083 + my_tmpdir="${my_template}-${RANDOM-0}$$"
43085 + save_mktempdir_umask=`umask`
43086 + umask 0077
43087 + $mkdir "$my_tmpdir"
43088 + umask $save_mktempdir_umask
43089 + fi
43091 + # If we're not in dry-run mode, bomb out on failure
43092 + test -d "$my_tmpdir" || {
43093 + $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
43094 + exit $EXIT_FAILURE
43096 + fi
43098 + $echo "X$my_tmpdir" | $Xsed
43102 +# func_win32_libid arg
43103 +# return the library type of file 'arg'
43105 +# Need a lot of goo to handle *both* DLLs and import libs
43106 +# Has to be a shell function in order to 'eat' the argument
43107 +# that is supplied when $file_magic_command is called.
43108 +func_win32_libid ()
43110 + win32_libid_type="unknown"
43111 + win32_fileres=`file -L $1 2>/dev/null`
43112 + case $win32_fileres in
43113 + *ar\ archive\ import\ library*) # definitely import
43114 + win32_libid_type="x86 archive import"
43115 + ;;
43116 + *ar\ archive*) # could be an import, or static
43117 + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
43118 + $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
43119 + win32_nmres=`eval $NM -f posix -A $1 | \
43120 + $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
43121 + case $win32_nmres in
43122 + import*) win32_libid_type="x86 archive import";;
43123 + *) win32_libid_type="x86 archive static";;
43124 + esac
43125 + fi
43126 + ;;
43127 + *DLL*)
43128 + win32_libid_type="x86 DLL"
43129 + ;;
43130 + *executable*) # but shell scripts are "executable" too...
43131 + case $win32_fileres in
43132 + *MS\ Windows\ PE\ Intel*)
43133 + win32_libid_type="x86 DLL"
43134 + ;;
43135 + esac
43136 + ;;
43137 + esac
43138 + $echo $win32_libid_type
43142 +# func_infer_tag arg
43143 +# Infer tagged configuration to use if any are available and
43144 +# if one wasn't chosen via the "--tag" command line option.
43145 +# Only attempt this if the compiler in the base compile
43146 +# command doesn't match the default compiler.
43147 +# arg is usually of the form 'gcc ...'
43148 +func_infer_tag ()
43150 + if test -n "$available_tags" && test -z "$tagname"; then
43151 + CC_quoted=
43152 + for arg in $CC; do
43153 + case $arg in
43154 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
43155 + arg="\"$arg\""
43156 + ;;
43157 + esac
43158 + CC_quoted="$CC_quoted $arg"
43159 + done
43160 + case $@ in
43161 + # Blanks in the command may have been stripped by the calling shell,
43162 + # but not from the CC environment variable when configure was run.
43163 + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
43164 + # Blanks at the start of $base_compile will cause this to fail
43165 + # if we don't check for them as well.
43166 + *)
43167 + for z in $available_tags; do
43168 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
43169 + # Evaluate the configuration.
43170 + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
43171 + CC_quoted=
43172 + for arg in $CC; do
43173 + # Double-quote args containing other shell metacharacters.
43174 + case $arg in
43175 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
43176 + arg="\"$arg\""
43177 + ;;
43178 + esac
43179 + CC_quoted="$CC_quoted $arg"
43180 + done
43181 + case "$@ " in
43182 + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
43183 + # The compiler in the base compile command matches
43184 + # the one in the tagged configuration.
43185 + # Assume this is the tagged configuration we want.
43186 + tagname=$z
43187 + break
43188 + ;;
43189 + esac
43190 + fi
43191 + done
43192 + # If $tagname still isn't set, then no tagged configuration
43193 + # was found and let the user know that the "--tag" command
43194 + # line option must be used.
43195 + if test -z "$tagname"; then
43196 + $echo "$modename: unable to infer tagged configuration"
43197 + $echo "$modename: specify a tag with \`--tag'" 1>&2
43198 + exit $EXIT_FAILURE
43199 +# else
43200 +# $echo "$modename: using $tagname tagged configuration"
43201 + fi
43202 + ;;
43203 + esac
43204 + fi
43208 +# func_extract_an_archive dir oldlib
43209 +func_extract_an_archive ()
43211 + f_ex_an_ar_dir="$1"; shift
43212 + f_ex_an_ar_oldlib="$1"
43214 + $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
43215 + $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
43216 + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
43218 + else
43219 + $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
43220 + exit $EXIT_FAILURE
43221 + fi
43224 +# func_extract_archives gentop oldlib ...
43225 +func_extract_archives ()
43227 + my_gentop="$1"; shift
43228 + my_oldlibs=${1+"$@"}
43229 + my_oldobjs=""
43230 + my_xlib=""
43231 + my_xabs=""
43232 + my_xdir=""
43233 + my_status=""
43235 + $show "${rm}r $my_gentop"
43236 + $run ${rm}r "$my_gentop"
43237 + $show "$mkdir $my_gentop"
43238 + $run $mkdir "$my_gentop"
43239 + my_status=$?
43240 + if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
43241 + exit $my_status
43242 + fi
43244 + for my_xlib in $my_oldlibs; do
43245 + # Extract the objects.
43246 + case $my_xlib in
43247 + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
43248 + *) my_xabs=`pwd`"/$my_xlib" ;;
43249 + esac
43250 + my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
43251 + my_xdir="$my_gentop/$my_xlib"
43253 + $show "${rm}r $my_xdir"
43254 + $run ${rm}r "$my_xdir"
43255 + $show "$mkdir $my_xdir"
43256 + $run $mkdir "$my_xdir"
43257 + exit_status=$?
43258 + if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
43259 + exit $exit_status
43260 + fi
43261 + case $host in
43262 + *-darwin*)
43263 + $show "Extracting $my_xabs"
43264 + # Do not bother doing anything if just a dry run
43265 + if test -z "$run"; then
43266 + darwin_orig_dir=`pwd`
43267 + cd $my_xdir || exit $?
43268 + darwin_archive=$my_xabs
43269 + darwin_curdir=`pwd`
43270 + darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
43271 + darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
43272 + if test -n "$darwin_arches"; then
43273 + darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
43274 + darwin_arch=
43275 + $show "$darwin_base_archive has multiple architectures $darwin_arches"
43276 + for darwin_arch in $darwin_arches ; do
43277 + mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
43278 + lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
43279 + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
43280 + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
43281 + cd "$darwin_curdir"
43282 + $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
43283 + done # $darwin_arches
43284 + ## Okay now we have a bunch of thin objects, gotta fatten them up :)
43285 + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
43286 + darwin_file=
43287 + darwin_files=
43288 + for darwin_file in $darwin_filelist; do
43289 + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
43290 + lipo -create -output "$darwin_file" $darwin_files
43291 + done # $darwin_filelist
43292 + ${rm}r unfat-$$
43293 + cd "$darwin_orig_dir"
43294 + else
43295 + cd "$darwin_orig_dir"
43296 + func_extract_an_archive "$my_xdir" "$my_xabs"
43297 + fi # $darwin_arches
43298 + fi # $run
43299 + ;;
43300 + *)
43301 + func_extract_an_archive "$my_xdir" "$my_xabs"
43302 + ;;
43303 + esac
43304 + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
43305 + done
43306 + func_extract_archives_result="$my_oldobjs"
43308 +# End of Shell function definitions
43309 +#####################################
43311 +# Darwin sucks
43312 +eval std_shrext=\"$shrext_cmds\"
43314 +disable_libs=no
43316 # Parse our command line options once, thoroughly.
43317 -while test $# -gt 0
43318 +while test "$#" -gt 0
43320 arg="$1"
43321 shift
43323 - case "$arg" in
43324 + case $arg in
43325 -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
43326 *) optarg= ;;
43327 esac
43329 # If the previous option needs an argument, assign it.
43330 if test -n "$prev"; then
43331 - case "$prev" in
43332 + case $prev in
43333 execute_dlfiles)
43334 - eval "$prev=\"\$$prev \$arg\""
43335 + execute_dlfiles="$execute_dlfiles $arg"
43336 + ;;
43337 + tag)
43338 + tagname="$arg"
43339 + preserve_args="${preserve_args}=$arg"
43341 + # Check whether tagname contains only valid characters
43342 + case $tagname in
43343 + *[!-_A-Za-z0-9,/]*)
43344 + $echo "$progname: invalid tag name: $tagname" 1>&2
43345 + exit $EXIT_FAILURE
43346 + ;;
43347 + esac
43349 + case $tagname in
43350 + CC)
43351 + # Don't test for the "default" C tag, as we know, it's there, but
43352 + # not specially marked.
43353 + ;;
43354 + *)
43355 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
43356 + taglist="$taglist $tagname"
43357 + # Evaluate the configuration.
43358 + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
43359 + else
43360 + $echo "$progname: ignoring unknown tag $tagname" 1>&2
43361 + fi
43362 + ;;
43363 + esac
43366 eval "$prev=\$arg"
43367 @@ -135,24 +448,33 @@
43370 # Have we seen a non-optional argument yet?
43371 - case "$arg" in
43372 + case $arg in
43373 --help)
43374 show_help=yes
43377 --version)
43378 - echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
43379 - exit 0
43380 + $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
43381 + $echo
43382 + $echo "Copyright (C) 2005 Free Software Foundation, Inc."
43383 + $echo "This is free software; see the source for copying conditions. There is NO"
43384 + $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
43385 + exit $?
43388 --config)
43389 - sed -e '1,/^### BEGIN LIBTOOL CONFIG/d' -e '/^### END LIBTOOL CONFIG/,$d' $0
43390 - exit 0
43391 + ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
43392 + # Now print the configurations for the tags.
43393 + for tagname in $taglist; do
43394 + ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
43395 + done
43396 + exit $?
43399 --debug)
43400 - echo "$progname: enabling shell trace mode"
43401 + $echo "$progname: enabling shell trace mode"
43402 set -x
43403 + preserve_args="$preserve_args $arg"
43406 --dry-run | -n)
43407 @@ -160,18 +482,18 @@
43410 --features)
43411 - echo "host: $host"
43412 + $echo "host: $host"
43413 if test "$build_libtool_libs" = yes; then
43414 - echo "enable shared libraries"
43415 + $echo "enable shared libraries"
43416 else
43417 - echo "disable shared libraries"
43418 + $echo "disable shared libraries"
43420 if test "$build_old_libs" = yes; then
43421 - echo "enable static libraries"
43422 + $echo "enable static libraries"
43423 else
43424 - echo "disable static libraries"
43425 + $echo "disable static libraries"
43427 - exit 0
43428 + exit $?
43431 --finish) mode="finish" ;;
43432 @@ -179,8 +501,23 @@
43433 --mode) prevopt="--mode" prev=mode ;;
43434 --mode=*) mode="$optarg" ;;
43436 + --preserve-dup-deps) duplicate_deps="yes" ;;
43438 --quiet | --silent)
43439 show=:
43440 + preserve_args="$preserve_args $arg"
43441 + ;;
43443 + --tag)
43444 + prevopt="--tag"
43445 + prev=tag
43446 + preserve_args="$preserve_args --tag"
43447 + ;;
43448 + --tag=*)
43449 + set tag "$optarg" ${1+"$@"}
43450 + shift
43451 + prev=tag
43452 + preserve_args="$preserve_args --tag"
43455 -dlopen)
43456 @@ -191,7 +528,7 @@
43458 $echo "$modename: unrecognized option \`$arg'" 1>&2
43459 $echo "$help" 1>&2
43460 - exit 1
43461 + exit $EXIT_FAILURE
43465 @@ -204,19 +541,38 @@
43466 if test -n "$prevopt"; then
43467 $echo "$modename: option \`$prevopt' requires an argument" 1>&2
43468 $echo "$help" 1>&2
43469 - exit 1
43470 + exit $EXIT_FAILURE
43473 +case $disable_libs in
43474 +no)
43475 + ;;
43476 +shared)
43477 + build_libtool_libs=no
43478 + build_old_libs=yes
43479 + ;;
43480 +static)
43481 + build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
43482 + ;;
43483 +esac
43485 +# If this variable is set in any of the actions, the command in it
43486 +# will be execed at the end. This prevents here-documents from being
43487 +# left over by shells.
43488 +exec_cmd=
43490 if test -z "$show_help"; then
43492 # Infer the operation mode.
43493 if test -z "$mode"; then
43494 - case "$nonopt" in
43495 - *cc | *++ | gcc* | *-gcc*)
43496 + $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
43497 + $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
43498 + case $nonopt in
43499 + *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
43500 mode=link
43501 for arg
43503 - case "$arg" in
43504 + case $arg in
43506 mode=compile
43507 break
43508 @@ -253,7 +609,7 @@
43509 if test -n "$execute_dlfiles" && test "$mode" != execute; then
43510 $echo "$modename: unrecognized option \`-dlopen'" 1>&2
43511 $echo "$help" 1>&2
43512 - exit 1
43513 + exit $EXIT_FAILURE
43516 # Change the help message to a mode-specific one.
43517 @@ -261,140 +617,233 @@
43518 help="Try \`$modename --help --mode=$mode' for more information."
43520 # These modes are in order of execution frequency so that they run quickly.
43521 - case "$mode" in
43522 + case $mode in
43523 # libtool compile mode
43524 compile)
43525 modename="$modename: compile"
43526 # Get the compilation command and the source file.
43527 base_compile=
43528 - lastarg=
43529 - srcfile="$nonopt"
43530 + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
43531 + suppress_opt=yes
43532 suppress_output=
43533 + arg_mode=normal
43534 + libobj=
43535 + later=
43537 - user_target=no
43538 for arg
43540 - # Accept any command-line options.
43541 - case "$arg" in
43542 - -o)
43543 - if test "$user_target" != "no"; then
43544 - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
43545 - exit 1
43546 - fi
43547 - user_target=next
43548 - ;;
43550 - -static)
43551 - build_old_libs=yes
43552 - continue
43553 + case $arg_mode in
43554 + arg )
43555 + # do not "continue". Instead, add this to base_compile
43556 + lastarg="$arg"
43557 + arg_mode=normal
43559 - esac
43561 - case "$user_target" in
43562 - next)
43563 - # The next one is the -o target name
43564 - user_target=yes
43565 - continue
43566 - ;;
43567 - yes)
43568 - # We got the output file
43569 - user_target=set
43570 + target )
43571 libobj="$arg"
43572 + arg_mode=normal
43573 continue
43575 - esac
43577 - # Accept the current argument as the source file.
43578 - lastarg="$srcfile"
43579 - srcfile="$arg"
43580 + normal )
43581 + # Accept any command-line options.
43582 + case $arg in
43583 + -o)
43584 + if test -n "$libobj" ; then
43585 + $echo "$modename: you cannot specify \`-o' more than once" 1>&2
43586 + exit $EXIT_FAILURE
43587 + fi
43588 + arg_mode=target
43589 + continue
43590 + ;;
43592 - # Aesthetically quote the previous argument.
43593 + -static | -prefer-pic | -prefer-non-pic)
43594 + later="$later $arg"
43595 + continue
43596 + ;;
43598 - # Backslashify any backslashes, double quotes, and dollar signs.
43599 - # These are the only characters that are still specially
43600 - # interpreted inside of double-quoted scrings.
43601 + -no-suppress)
43602 + suppress_opt=no
43603 + continue
43604 + ;;
43606 + -Xcompiler)
43607 + arg_mode=arg # the next one goes into the "base_compile" arg list
43608 + continue # The current "srcfile" will either be retained or
43609 + ;; # replaced later. I would guess that would be a bug.
43611 + -Wc,*)
43612 + args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
43613 + lastarg=
43614 + save_ifs="$IFS"; IFS=','
43615 + for arg in $args; do
43616 + IFS="$save_ifs"
43618 + # Double-quote args containing other shell metacharacters.
43619 + # Many Bourne shells cannot handle close brackets correctly
43620 + # in scan sets, so we specify it separately.
43621 + case $arg in
43622 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
43623 + arg="\"$arg\""
43624 + ;;
43625 + esac
43626 + lastarg="$lastarg $arg"
43627 + done
43628 + IFS="$save_ifs"
43629 + lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
43631 + # Add the arguments to base_compile.
43632 + base_compile="$base_compile $lastarg"
43633 + continue
43634 + ;;
43636 + * )
43637 + # Accept the current argument as the source file.
43638 + # The previous "srcfile" becomes the current argument.
43640 + lastarg="$srcfile"
43641 + srcfile="$arg"
43642 + ;;
43643 + esac # case $arg
43644 + ;;
43645 + esac # case $arg_mode
43647 + # Aesthetically quote the previous argument.
43648 lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
43650 + case $lastarg in
43651 # Double-quote args containing other shell metacharacters.
43652 - # Many Bourne shells cannot handle close brackets correctly in scan
43653 - # sets, so we specify it separately.
43654 - case "$lastarg" in
43655 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
43656 + # Many Bourne shells cannot handle close brackets correctly
43657 + # in scan sets, and some SunOS ksh mistreat backslash-escaping
43658 + # in scan sets (worked around with variable expansion),
43659 + # and furthermore cannot handle '|' '&' '(' ')' in scan sets
43660 + # at all, so we specify them separately.
43661 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
43662 lastarg="\"$lastarg\""
43664 esac
43666 - # Add the previous argument to base_compile.
43667 - if test -z "$base_compile"; then
43668 - base_compile="$lastarg"
43669 - else
43670 - base_compile="$base_compile $lastarg"
43671 - fi
43672 - done
43673 + base_compile="$base_compile $lastarg"
43674 + done # for arg
43676 - case "$user_target" in
43677 - set)
43678 + case $arg_mode in
43679 + arg)
43680 + $echo "$modename: you must specify an argument for -Xcompile"
43681 + exit $EXIT_FAILURE
43683 - no)
43684 - # Get the name of the library object.
43685 - libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
43686 + target)
43687 + $echo "$modename: you must specify a target with \`-o'" 1>&2
43688 + exit $EXIT_FAILURE
43691 - $echo "$modename: you must specify a target with \`-o'" 1>&2
43692 - exit 1
43693 + # Get the name of the library object.
43694 + [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
43696 esac
43698 # Recognize several different file suffixes.
43699 # If the user specifies -o file.o, it is replaced with file.lo
43700 - xform='[cCFSfmso]'
43701 - case "$libobj" in
43702 + xform='[cCFSifmso]'
43703 + case $libobj in
43704 *.ada) xform=ada ;;
43705 *.adb) xform=adb ;;
43706 *.ads) xform=ads ;;
43707 *.asm) xform=asm ;;
43708 *.c++) xform=c++ ;;
43709 *.cc) xform=cc ;;
43710 + *.ii) xform=ii ;;
43711 + *.class) xform=class ;;
43712 *.cpp) xform=cpp ;;
43713 *.cxx) xform=cxx ;;
43714 *.f90) xform=f90 ;;
43715 *.for) xform=for ;;
43716 + *.java) xform=java ;;
43717 esac
43719 libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
43721 - case "$libobj" in
43722 + case $libobj in
43723 *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
43725 $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
43726 - exit 1
43727 + exit $EXIT_FAILURE
43729 esac
43731 + func_infer_tag $base_compile
43733 + for arg in $later; do
43734 + case $arg in
43735 + -static)
43736 + build_old_libs=yes
43737 + continue
43738 + ;;
43740 + -prefer-pic)
43741 + pic_mode=yes
43742 + continue
43743 + ;;
43745 + -prefer-non-pic)
43746 + pic_mode=no
43747 + continue
43748 + ;;
43749 + esac
43750 + done
43752 + qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
43753 + case $qlibobj in
43754 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
43755 + qlibobj="\"$qlibobj\"" ;;
43756 + esac
43757 + test "X$libobj" != "X$qlibobj" \
43758 + && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
43759 + && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
43760 + objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
43761 + xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
43762 + if test "X$xdir" = "X$obj"; then
43763 + xdir=
43764 + else
43765 + xdir=$xdir/
43766 + fi
43767 + lobj=${xdir}$objdir/$objname
43769 if test -z "$base_compile"; then
43770 $echo "$modename: you must specify a compilation command" 1>&2
43771 $echo "$help" 1>&2
43772 - exit 1
43773 + exit $EXIT_FAILURE
43776 # Delete any leftover library objects.
43777 if test "$build_old_libs" = yes; then
43778 - removelist="$obj $libobj"
43779 + removelist="$obj $lobj $libobj ${libobj}T"
43780 else
43781 - removelist="$libobj"
43782 + removelist="$lobj $libobj ${libobj}T"
43785 $run $rm $removelist
43786 - trap "$run $rm $removelist; exit 1" 1 2 15
43787 + trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
43789 + # On Cygwin there's no "real" PIC flag so we must build both object types
43790 + case $host_os in
43791 + cygwin* | mingw* | pw32* | os2*)
43792 + pic_mode=default
43793 + ;;
43794 + esac
43795 + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
43796 + # non-PIC code in shared libraries is not supported
43797 + pic_mode=default
43798 + fi
43800 # Calculate the filename of the output object if compiler does
43801 # not support -o with -c
43802 if test "$compiler_c_o" = no; then
43803 - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\..*$%%'`.${objext}
43804 + output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
43805 lockfile="$output_obj.lock"
43806 removelist="$removelist $output_obj $lockfile"
43807 - trap "$run $rm $removelist; exit 1" 1 2 15
43808 + trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
43809 else
43810 + output_obj=
43811 need_locks=no
43812 lockfile=
43814 @@ -402,13 +851,13 @@
43815 # Lock this critical section if it is needed
43816 # We use this script file to make the link, it avoids creating a new file
43817 if test "$need_locks" = yes; then
43818 - until ln "$0" "$lockfile" 2>/dev/null; do
43819 + until $run ln "$progpath" "$lockfile" 2>/dev/null; do
43820 $show "Waiting for $lockfile to be removed"
43821 sleep 2
43822 done
43823 elif test "$need_locks" = warn; then
43824 if test -f "$lockfile"; then
43825 - echo "\
43826 + $echo "\
43827 *** ERROR, $lockfile exists and contains:
43828 `cat $lockfile 2>/dev/null`
43830 @@ -420,63 +869,72 @@
43831 compiler."
43833 $run $rm $removelist
43834 - exit 1
43835 + exit $EXIT_FAILURE
43837 - echo $srcfile > "$lockfile"
43838 + $echo "$srcfile" > "$lockfile"
43841 if test -n "$fix_srcfile_path"; then
43842 eval srcfile=\"$fix_srcfile_path\"
43844 + qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
43845 + case $qsrcfile in
43846 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
43847 + qsrcfile="\"$qsrcfile\"" ;;
43848 + esac
43850 + $run $rm "$libobj" "${libobj}T"
43852 + # Create a libtool object file (analogous to a ".la" file),
43853 + # but don't create it if we're doing a dry run.
43854 + test -z "$run" && cat > ${libobj}T <<EOF
43855 +# $libobj - a libtool object file
43856 +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
43858 +# Please DO NOT delete this file!
43859 +# It is necessary for linking the library.
43861 +# Name of the PIC object.
43862 +EOF
43864 # Only build a PIC object if we are building libtool libraries.
43865 if test "$build_libtool_libs" = yes; then
43866 # Without this assignment, base_compile gets emptied.
43867 fbsd_hideous_sh_bug=$base_compile
43869 - # All platforms use -DPIC, to notify preprocessed assembler code.
43870 - command="$base_compile $srcfile $pic_flag -DPIC"
43871 - if test "$build_old_libs" = yes; then
43872 - lo_libobj="$libobj"
43873 - dir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
43874 - if test "X$dir" = "X$libobj"; then
43875 - dir="$objdir"
43876 - else
43877 - dir="$dir/$objdir"
43878 - fi
43879 - libobj="$dir/"`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
43880 + if test "$pic_mode" != no; then
43881 + command="$base_compile $qsrcfile $pic_flag"
43882 + else
43883 + # Don't build PIC code
43884 + command="$base_compile $qsrcfile"
43885 + fi
43887 - if test -d "$dir"; then
43888 - $show "$rm $libobj"
43889 - $run $rm $libobj
43890 - else
43891 - $show "$mkdir $dir"
43892 - $run $mkdir $dir
43893 - status=$?
43894 - if test $status -ne 0 && test ! -d $dir; then
43895 - exit $status
43896 - fi
43897 + if test ! -d "${xdir}$objdir"; then
43898 + $show "$mkdir ${xdir}$objdir"
43899 + $run $mkdir ${xdir}$objdir
43900 + exit_status=$?
43901 + if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
43902 + exit $exit_status
43905 - if test "$compiler_o_lo" = yes; then
43906 - output_obj="$libobj"
43907 - command="$command -o $output_obj"
43908 - elif test "$compiler_c_o" = yes; then
43909 - output_obj="$obj"
43910 - command="$command -o $output_obj"
43912 + if test -z "$output_obj"; then
43913 + # Place PIC objects in $objdir
43914 + command="$command -o $lobj"
43917 - $run $rm "$output_obj"
43918 + $run $rm "$lobj" "$output_obj"
43920 $show "$command"
43921 if $run eval "$command"; then :
43922 else
43923 test -n "$output_obj" && $run $rm $removelist
43924 - exit 1
43925 + exit $EXIT_FAILURE
43928 if test "$need_locks" = warn &&
43929 - test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
43930 - echo "\
43931 + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
43932 + $echo "\
43933 *** ERROR, $lockfile contains:
43934 `cat $lockfile 2>/dev/null`
43936 @@ -491,13 +949,13 @@
43937 compiler."
43939 $run $rm $removelist
43940 - exit 1
43941 + exit $EXIT_FAILURE
43944 # Just move the object if needed, then go on to compile the next one
43945 - if test x"$output_obj" != x"$libobj"; then
43946 - $show "$mv $output_obj $libobj"
43947 - if $run $mv $output_obj $libobj; then :
43948 + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
43949 + $show "$mv $output_obj $lobj"
43950 + if $run $mv $output_obj $lobj; then :
43951 else
43952 error=$?
43953 $run $rm $removelist
43954 @@ -505,66 +963,50 @@
43958 - # If we have no pic_flag, then copy the object into place and finish.
43959 - if test -z "$pic_flag" && test "$build_old_libs" = yes; then
43960 - # Rename the .lo from within objdir to obj
43961 - if test -f $obj; then
43962 - $show $rm $obj
43963 - $run $rm $obj
43964 - fi
43965 + # Append the name of the PIC object to the libtool object file.
43966 + test -z "$run" && cat >> ${libobj}T <<EOF
43967 +pic_object='$objdir/$objname'
43969 - $show "$mv $libobj $obj"
43970 - if $run $mv $libobj $obj; then :
43971 - else
43972 - error=$?
43973 - $run $rm $removelist
43974 - exit $error
43975 - fi
43976 +EOF
43978 - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
43979 - if test "X$xdir" = "X$obj"; then
43980 - xdir="."
43981 - else
43982 - xdir="$xdir"
43983 - fi
43984 - baseobj=`$echo "X$obj" | $Xsed -e "s%.*/%%"`
43985 - libobj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
43986 - # Now arrange that obj and lo_libobj become the same file
43987 - $show "(cd $xdir && $LN_S $baseobj $libobj)"
43988 - if $run eval '(cd $xdir && $LN_S $baseobj $libobj)'; then
43989 - exit 0
43990 - else
43991 - error=$?
43992 - $run $rm $removelist
43993 - exit $error
43994 - fi
43995 + # Allow error messages only from the first compilation.
43996 + if test "$suppress_opt" = yes; then
43997 + suppress_output=' >/dev/null 2>&1'
43999 + else
44000 + # No PIC object so indicate it doesn't exist in the libtool
44001 + # object file.
44002 + test -z "$run" && cat >> ${libobj}T <<EOF
44003 +pic_object=none
44005 - # Allow error messages only from the first compilation.
44006 - suppress_output=' >/dev/null 2>&1'
44007 +EOF
44010 # Only build a position-dependent object if we build old libraries.
44011 if test "$build_old_libs" = yes; then
44012 - command="$base_compile $srcfile"
44013 + if test "$pic_mode" != yes; then
44014 + # Don't build PIC code
44015 + command="$base_compile $qsrcfile"
44016 + else
44017 + command="$base_compile $qsrcfile $pic_flag"
44018 + fi
44019 if test "$compiler_c_o" = yes; then
44020 command="$command -o $obj"
44021 - output_obj="$obj"
44024 # Suppress compiler output if we already did a PIC compilation.
44025 command="$command$suppress_output"
44026 - $run $rm "$output_obj"
44027 + $run $rm "$obj" "$output_obj"
44028 $show "$command"
44029 if $run eval "$command"; then :
44030 else
44031 $run $rm $removelist
44032 - exit 1
44033 + exit $EXIT_FAILURE
44036 if test "$need_locks" = warn &&
44037 - test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
44038 - echo "\
44039 + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
44040 + $echo "\
44041 *** ERROR, $lockfile contains:
44042 `cat $lockfile 2>/dev/null`
44044 @@ -579,11 +1021,11 @@
44045 compiler."
44047 $run $rm $removelist
44048 - exit 1
44049 + exit $EXIT_FAILURE
44052 # Just move the object if needed
44053 - if test x"$output_obj" != x"$obj"; then
44054 + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
44055 $show "$mv $output_obj $obj"
44056 if $run $mv $output_obj $obj; then :
44057 else
44058 @@ -593,40 +1035,42 @@
44062 - # Create an invalid libtool object if no PIC, so that we do not
44063 - # accidentally link it into a program.
44064 - if test "$build_libtool_libs" != yes; then
44065 - $show "echo timestamp > $libobj"
44066 - $run eval "echo timestamp > \$libobj" || exit $?
44067 - else
44068 - # Move the .lo from within objdir
44069 - $show "$mv $libobj $lo_libobj"
44070 - if $run $mv $libobj $lo_libobj; then :
44071 - else
44072 - error=$?
44073 - $run $rm $removelist
44074 - exit $error
44075 - fi
44076 - fi
44077 + # Append the name of the non-PIC object the libtool object file.
44078 + # Only append if the libtool object file exists.
44079 + test -z "$run" && cat >> ${libobj}T <<EOF
44080 +# Name of the non-PIC object.
44081 +non_pic_object='$objname'
44083 +EOF
44084 + else
44085 + # Append the name of the non-PIC object the libtool object file.
44086 + # Only append if the libtool object file exists.
44087 + test -z "$run" && cat >> ${libobj}T <<EOF
44088 +# Name of the non-PIC object.
44089 +non_pic_object=none
44091 +EOF
44094 + $run $mv "${libobj}T" "${libobj}"
44096 # Unlock the critical section if it was locked
44097 if test "$need_locks" != no; then
44098 - $rm "$lockfile"
44099 + $run $rm "$lockfile"
44102 - exit 0
44103 + exit $EXIT_SUCCESS
44106 # libtool link mode
44107 - link)
44108 + link | relink)
44109 modename="$modename: link"
44110 - case "$host" in
44111 - *-*-cygwin* | *-*-mingw* | *-*-os2*)
44112 + case $host in
44113 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
44114 # It is impossible to link a dll without this setting, and
44115 # we shouldn't force the makefile maintainer to figure out
44116 # which system we are compiling for in order to pass an extra
44117 - # flag for every libtool invokation.
44118 + # flag for every libtool invocation.
44119 # allow_undefined=no
44121 # FIXME: Unfortunately, there are problems with the above when trying
44122 @@ -635,179 +1079,13 @@
44123 # -no-undefined on the libtool link line when we can be certain
44124 # that all symbols are satisfied, otherwise we get a static library.
44125 allow_undefined=yes
44127 - # This is a source program that is used to create dlls on Windows
44128 - # Don't remove nor modify the starting and closing comments
44129 -# /* ltdll.c starts here */
44130 -# #define WIN32_LEAN_AND_MEAN
44131 -# #include <windows.h>
44132 -# #undef WIN32_LEAN_AND_MEAN
44133 -# #include <stdio.h>
44135 -# #ifndef __CYGWIN__
44136 -# # ifdef __CYGWIN32__
44137 -# # define __CYGWIN__ __CYGWIN32__
44138 -# # endif
44139 -# #endif
44141 -# #ifdef __cplusplus
44142 -# extern "C" {
44143 -# #endif
44144 -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
44145 -# #ifdef __cplusplus
44146 -# }
44147 -# #endif
44149 -# #ifdef __CYGWIN__
44150 -# #include <cygwin/cygwin_dll.h>
44151 -# DECLARE_CYGWIN_DLL( DllMain );
44152 -# #endif
44153 -# HINSTANCE __hDllInstance_base;
44155 -# BOOL APIENTRY
44156 -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
44157 -# {
44158 -# __hDllInstance_base = hInst;
44159 -# return TRUE;
44160 -# }
44161 -# /* ltdll.c ends here */
44162 - # This is a source program that is used to create import libraries
44163 - # on Windows for dlls which lack them. Don't remove nor modify the
44164 - # starting and closing comments
44165 -# /* impgen.c starts here */
44166 -# /* Copyright (C) 1999 Free Software Foundation, Inc.
44168 -# This file is part of GNU libtool.
44170 -# This program is free software; you can redistribute it and/or modify
44171 -# it under the terms of the GNU General Public License as published by
44172 -# the Free Software Foundation; either version 2 of the License, or
44173 -# (at your option) any later version.
44175 -# This program is distributed in the hope that it will be useful,
44176 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
44177 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44178 -# GNU General Public License for more details.
44180 -# You should have received a copy of the GNU General Public License
44181 -# along with this program; if not, write to the Free Software
44182 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
44183 -# */
44185 -# #include <stdio.h> /* for printf() */
44186 -# #include <unistd.h> /* for open(), lseek(), read() */
44187 -# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
44188 -# #include <string.h> /* for strdup() */
44190 -# static unsigned int
44191 -# pe_get16 (fd, offset)
44192 -# int fd;
44193 -# int offset;
44194 -# {
44195 -# unsigned char b[2];
44196 -# lseek (fd, offset, SEEK_SET);
44197 -# read (fd, b, 2);
44198 -# return b[0] + (b[1]<<8);
44199 -# }
44201 -# static unsigned int
44202 -# pe_get32 (fd, offset)
44203 -# int fd;
44204 -# int offset;
44205 -# {
44206 -# unsigned char b[4];
44207 -# lseek (fd, offset, SEEK_SET);
44208 -# read (fd, b, 4);
44209 -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
44210 -# }
44212 -# static unsigned int
44213 -# pe_as32 (ptr)
44214 -# void *ptr;
44215 -# {
44216 -# unsigned char *b = ptr;
44217 -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
44218 -# }
44220 -# int
44221 -# main (argc, argv)
44222 -# int argc;
44223 -# char *argv[];
44224 -# {
44225 -# int dll;
44226 -# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
44227 -# unsigned long export_rva, export_size, nsections, secptr, expptr;
44228 -# unsigned long name_rvas, nexp;
44229 -# unsigned char *expdata, *erva;
44230 -# char *filename, *dll_name;
44232 -# filename = argv[1];
44234 -# dll = open(filename, O_RDONLY|O_BINARY);
44235 -# if (!dll)
44236 -# return 1;
44238 -# dll_name = filename;
44240 -# for (i=0; filename[i]; i++)
44241 -# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
44242 -# dll_name = filename + i +1;
44244 -# pe_header_offset = pe_get32 (dll, 0x3c);
44245 -# opthdr_ofs = pe_header_offset + 4 + 20;
44246 -# num_entries = pe_get32 (dll, opthdr_ofs + 92);
44248 -# if (num_entries < 1) /* no exports */
44249 -# return 1;
44251 -# export_rva = pe_get32 (dll, opthdr_ofs + 96);
44252 -# export_size = pe_get32 (dll, opthdr_ofs + 100);
44253 -# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
44254 -# secptr = (pe_header_offset + 4 + 20 +
44255 -# pe_get16 (dll, pe_header_offset + 4 + 16));
44257 -# expptr = 0;
44258 -# for (i = 0; i < nsections; i++)
44259 -# {
44260 -# char sname[8];
44261 -# unsigned long secptr1 = secptr + 40 * i;
44262 -# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
44263 -# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
44264 -# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
44265 -# lseek(dll, secptr1, SEEK_SET);
44266 -# read(dll, sname, 8);
44267 -# if (vaddr <= export_rva && vaddr+vsize > export_rva)
44268 -# {
44269 -# expptr = fptr + (export_rva - vaddr);
44270 -# if (export_rva + export_size > vaddr + vsize)
44271 -# export_size = vsize - (export_rva - vaddr);
44272 -# break;
44273 -# }
44274 -# }
44276 -# expdata = (unsigned char*)malloc(export_size);
44277 -# lseek (dll, expptr, SEEK_SET);
44278 -# read (dll, expdata, export_size);
44279 -# erva = expdata - export_rva;
44281 -# nexp = pe_as32 (expdata+24);
44282 -# name_rvas = pe_as32 (expdata+32);
44284 -# printf ("EXPORTS\n");
44285 -# for (i = 0; i<nexp; i++)
44286 -# {
44287 -# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
44288 -# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
44289 -# }
44291 -# return 0;
44292 -# }
44293 -# /* impgen.c ends here */
44296 allow_undefined=yes
44298 esac
44299 + libtool_args="$nonopt"
44300 + base_compile="$nonopt $@"
44301 compile_command="$nonopt"
44302 finalize_command="$nonopt"
44304 @@ -818,18 +1096,13 @@
44305 convenience=
44306 old_convenience=
44307 deplibs=
44308 - linkopts=
44309 + old_deplibs=
44310 + compiler_flags=
44311 + linker_flags=
44312 + dllsearchpath=
44313 + lib_search_path=`pwd`
44314 + inst_prefix_dir=
44316 - if test -n "$shlibpath_var"; then
44317 - # get the directories listed in $shlibpath_var
44318 - eval lib_search_path=\`\$echo \"X \${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
44319 - else
44320 - lib_search_path=
44321 - fi
44322 - # now prepend the system-specific ones
44323 - eval lib_search_path=\"$sys_lib_search_path_spec\$lib_search_path\"
44324 - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
44326 avoid_version=no
44327 dlfiles=
44328 dlprefiles=
44329 @@ -839,10 +1112,13 @@
44330 export_symbols_regex=
44331 generated=
44332 libobjs=
44333 - link_against_libtool_libs=
44334 ltlibs=
44335 module=no
44336 + no_install=no
44337 objs=
44338 + non_pic_objects=
44339 + notinst_path= # paths that contain not-installed libtool libraries
44340 + precious_files_regex=
44341 prefer_static_libs=no
44342 preload=no
44343 prev=
44344 @@ -854,11 +1130,14 @@
44345 temp_rpath=
44346 thread_safe=no
44347 vinfo=
44348 + vinfo_number=no
44350 + func_infer_tag $base_compile
44352 # We need to know -static, to get the right output filenames.
44353 for arg
44355 - case "$arg" in
44356 + case $arg in
44357 -all-static | -static)
44358 if test "X$arg" = "X-all-static"; then
44359 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
44360 @@ -867,14 +1146,15 @@
44361 if test -n "$link_static_flag"; then
44362 dlopen_self=$dlopen_self_static
44364 + prefer_static_libs=yes
44365 else
44366 if test -z "$pic_flag" && test -n "$link_static_flag"; then
44367 dlopen_self=$dlopen_self_static
44369 + prefer_static_libs=built
44371 build_libtool_libs=no
44372 build_old_libs=yes
44373 - prefer_static_libs=yes
44374 break
44376 esac
44377 @@ -884,20 +1164,27 @@
44378 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
44380 # Go through the arguments, transforming them on the way.
44381 - while test $# -gt 0; do
44382 + while test "$#" -gt 0; do
44383 arg="$1"
44384 shift
44385 + case $arg in
44386 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
44387 + qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
44388 + ;;
44389 + *) qarg=$arg ;;
44390 + esac
44391 + libtool_args="$libtool_args $qarg"
44393 # If the previous option needs an argument, assign it.
44394 if test -n "$prev"; then
44395 - case "$prev" in
44396 + case $prev in
44397 output)
44398 compile_command="$compile_command @OUTPUT@"
44399 finalize_command="$finalize_command @OUTPUT@"
44401 esac
44403 - case "$prev" in
44404 + case $prev in
44405 dlfiles|dlprefiles)
44406 if test "$preload" = no; then
44407 # Add the symbol object into the linking commands.
44408 @@ -905,7 +1192,7 @@
44409 finalize_command="$finalize_command @SYMFILE@"
44410 preload=yes
44412 - case "$arg" in
44413 + case $arg in
44414 *.la | *.lo) ;; # We handle these cases below.
44415 force)
44416 if test "$dlself" = no; then
44417 @@ -934,6 +1221,7 @@
44418 dlprefiles="$dlprefiles $arg"
44420 prev=
44421 + continue
44423 esac
44425 @@ -941,7 +1229,7 @@
44426 export_symbols="$arg"
44427 if test ! -f "$arg"; then
44428 $echo "$modename: symbol file \`$arg' does not exist"
44429 - exit 1
44430 + exit $EXIT_FAILURE
44432 prev=
44433 continue
44434 @@ -951,18 +1239,140 @@
44435 prev=
44436 continue
44438 + inst_prefix)
44439 + inst_prefix_dir="$arg"
44440 + prev=
44441 + continue
44442 + ;;
44443 + precious_regex)
44444 + precious_files_regex="$arg"
44445 + prev=
44446 + continue
44447 + ;;
44448 release)
44449 release="-$arg"
44450 prev=
44451 continue
44453 + objectlist)
44454 + if test -f "$arg"; then
44455 + save_arg=$arg
44456 + moreargs=
44457 + for fil in `cat $save_arg`
44458 + do
44459 +# moreargs="$moreargs $fil"
44460 + arg=$fil
44461 + # A libtool-controlled object.
44463 + # Check to see that this really is a libtool object.
44464 + if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
44465 + pic_object=
44466 + non_pic_object=
44468 + # Read the .lo file
44469 + # If there is no directory component, then add one.
44470 + case $arg in
44471 + */* | *\\*) . $arg ;;
44472 + *) . ./$arg ;;
44473 + esac
44475 + if test -z "$pic_object" || \
44476 + test -z "$non_pic_object" ||
44477 + test "$pic_object" = none && \
44478 + test "$non_pic_object" = none; then
44479 + $echo "$modename: cannot find name of object for \`$arg'" 1>&2
44480 + exit $EXIT_FAILURE
44481 + fi
44483 + # Extract subdirectory from the argument.
44484 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
44485 + if test "X$xdir" = "X$arg"; then
44486 + xdir=
44487 + else
44488 + xdir="$xdir/"
44489 + fi
44491 + if test "$pic_object" != none; then
44492 + # Prepend the subdirectory the object is found in.
44493 + pic_object="$xdir$pic_object"
44495 + if test "$prev" = dlfiles; then
44496 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
44497 + dlfiles="$dlfiles $pic_object"
44498 + prev=
44499 + continue
44500 + else
44501 + # If libtool objects are unsupported, then we need to preload.
44502 + prev=dlprefiles
44503 + fi
44504 + fi
44506 + # CHECK ME: I think I busted this. -Ossama
44507 + if test "$prev" = dlprefiles; then
44508 + # Preload the old-style object.
44509 + dlprefiles="$dlprefiles $pic_object"
44510 + prev=
44511 + fi
44513 + # A PIC object.
44514 + libobjs="$libobjs $pic_object"
44515 + arg="$pic_object"
44516 + fi
44518 + # Non-PIC object.
44519 + if test "$non_pic_object" != none; then
44520 + # Prepend the subdirectory the object is found in.
44521 + non_pic_object="$xdir$non_pic_object"
44523 + # A standard non-PIC object
44524 + non_pic_objects="$non_pic_objects $non_pic_object"
44525 + if test -z "$pic_object" || test "$pic_object" = none ; then
44526 + arg="$non_pic_object"
44527 + fi
44528 + else
44529 + # If the PIC object exists, use it instead.
44530 + # $xdir was prepended to $pic_object above.
44531 + non_pic_object="$pic_object"
44532 + non_pic_objects="$non_pic_objects $non_pic_object"
44533 + fi
44534 + else
44535 + # Only an error if not doing a dry-run.
44536 + if test -z "$run"; then
44537 + $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
44538 + exit $EXIT_FAILURE
44539 + else
44540 + # Dry-run case.
44542 + # Extract subdirectory from the argument.
44543 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
44544 + if test "X$xdir" = "X$arg"; then
44545 + xdir=
44546 + else
44547 + xdir="$xdir/"
44548 + fi
44550 + pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
44551 + non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
44552 + libobjs="$libobjs $pic_object"
44553 + non_pic_objects="$non_pic_objects $non_pic_object"
44554 + fi
44555 + fi
44556 + done
44557 + else
44558 + $echo "$modename: link input file \`$save_arg' does not exist"
44559 + exit $EXIT_FAILURE
44560 + fi
44561 + arg=$save_arg
44562 + prev=
44563 + continue
44564 + ;;
44565 rpath | xrpath)
44566 # We need an absolute path.
44567 - case "$arg" in
44568 + case $arg in
44569 [\\/]* | [A-Za-z]:[\\/]*) ;;
44571 $echo "$modename: only absolute run-paths are allowed" 1>&2
44572 - exit 1
44573 + exit $EXIT_FAILURE
44575 esac
44576 if test "$prev" = rpath; then
44577 @@ -979,17 +1389,52 @@
44578 prev=
44579 continue
44581 + xcompiler)
44582 + compiler_flags="$compiler_flags $qarg"
44583 + prev=
44584 + compile_command="$compile_command $qarg"
44585 + finalize_command="$finalize_command $qarg"
44586 + continue
44587 + ;;
44588 + xlinker)
44589 + linker_flags="$linker_flags $qarg"
44590 + compiler_flags="$compiler_flags $wl$qarg"
44591 + prev=
44592 + compile_command="$compile_command $wl$qarg"
44593 + finalize_command="$finalize_command $wl$qarg"
44594 + continue
44595 + ;;
44596 + xcclinker)
44597 + linker_flags="$linker_flags $qarg"
44598 + compiler_flags="$compiler_flags $qarg"
44599 + prev=
44600 + compile_command="$compile_command $qarg"
44601 + finalize_command="$finalize_command $qarg"
44602 + continue
44603 + ;;
44604 + shrext)
44605 + shrext_cmds="$arg"
44606 + prev=
44607 + continue
44608 + ;;
44609 + darwin_framework|darwin_framework_skip)
44610 + test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
44611 + compile_command="$compile_command $arg"
44612 + finalize_command="$finalize_command $arg"
44613 + prev=
44614 + continue
44615 + ;;
44617 eval "$prev=\"\$arg\""
44618 prev=
44619 continue
44621 esac
44622 - fi
44623 + fi # test -n "$prev"
44625 prevarg="$arg"
44627 - case "$arg" in
44628 + case $arg in
44629 -all-static)
44630 if test -n "$link_static_flag"; then
44631 compile_command="$compile_command $link_static_flag"
44632 @@ -1026,8 +1471,8 @@
44634 -export-symbols | -export-symbols-regex)
44635 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
44636 - $echo "$modename: not more than one -exported-symbols argument allowed"
44637 - exit 1
44638 + $echo "$modename: more than one -exported-symbols argument is not allowed"
44639 + exit $EXIT_FAILURE
44641 if test "X$arg" = "X-export-symbols"; then
44642 prev=expsyms
44643 @@ -1037,58 +1482,129 @@
44644 continue
44647 + -framework|-arch|-isysroot)
44648 + case " $CC " in
44649 + *" ${arg} ${1} "* | *" ${arg} ${1} "*)
44650 + prev=darwin_framework_skip ;;
44651 + *) compiler_flags="$compiler_flags $arg"
44652 + prev=darwin_framework ;;
44653 + esac
44654 + compile_command="$compile_command $arg"
44655 + finalize_command="$finalize_command $arg"
44656 + continue
44657 + ;;
44659 + -inst-prefix-dir)
44660 + prev=inst_prefix
44661 + continue
44662 + ;;
44664 + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
44665 + # so, if we see these flags be careful not to treat them like -L
44666 + -L[A-Z][A-Z]*:*)
44667 + case $with_gcc/$host in
44668 + no/*-*-irix* | /*-*-irix*)
44669 + compile_command="$compile_command $arg"
44670 + finalize_command="$finalize_command $arg"
44671 + ;;
44672 + esac
44673 + continue
44674 + ;;
44676 -L*)
44677 dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
44678 # We need an absolute path.
44679 - case "$dir" in
44680 + case $dir in
44681 [\\/]* | [A-Za-z]:[\\/]*) ;;
44683 absdir=`cd "$dir" && pwd`
44684 if test -z "$absdir"; then
44685 - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
44686 - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
44687 + $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
44688 absdir="$dir"
44689 + notinst_path="$notinst_path $dir"
44691 dir="$absdir"
44693 esac
44694 - case " $deplibs " in
44695 - *" $arg "*) ;;
44696 - *) deplibs="$deplibs $arg";;
44697 - esac
44698 - case " $lib_search_path " in
44699 - *" $dir "*) ;;
44700 - *) lib_search_path="$lib_search_path $dir";;
44701 + case "$deplibs " in
44702 + *" -L$dir "*) ;;
44703 + *)
44704 + deplibs="$deplibs -L$dir"
44705 + lib_search_path="$lib_search_path $dir"
44706 + ;;
44707 esac
44708 - case "$host" in
44709 - *-*-cygwin* | *-*-mingw* | *-*-os2*)
44710 - dllsearchdir=`cd "$dir" && pwd || echo "$dir"`
44711 - case ":$dllsearchpath:" in
44712 - ::) dllsearchpath="$dllsearchdir";;
44713 - *":$dllsearchdir:"*) ;;
44714 - *) dllsearchpath="$dllsearchpath:$dllsearchdir";;
44715 + case $host in
44716 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
44717 + testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
44718 + case :$dllsearchpath: in
44719 + *":$dir:"*) ;;
44720 + *) dllsearchpath="$dllsearchpath:$dir";;
44721 + esac
44722 + case :$dllsearchpath: in
44723 + *":$testbindir:"*) ;;
44724 + *) dllsearchpath="$dllsearchpath:$testbindir";;
44725 esac
44727 esac
44728 + continue
44731 -l*)
44732 - if test "$arg" = "-lc"; then
44733 - case "$host" in
44734 - *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
44735 - # These systems don't actually have c library (as such)
44736 + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
44737 + case $host in
44738 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
44739 + # These systems don't actually have a C or math library (as such)
44740 continue
44742 - esac
44743 - elif test "$arg" = "-lm"; then
44744 - case "$host" in
44745 - *-*-cygwin* | *-*-beos*)
44746 - # These systems don't actually have math library (as such)
44747 + *-*-os2*)
44748 + # These systems don't actually have a C library (as such)
44749 + test "X$arg" = "X-lc" && continue
44750 + ;;
44751 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
44752 + # Do not include libc due to us having libc/libc_r.
44753 + test "X$arg" = "X-lc" && continue
44754 + ;;
44755 + *-*-rhapsody* | *-*-darwin1.[012])
44756 + # Rhapsody C and math libraries are in the System framework
44757 + deplibs="$deplibs -framework System"
44758 continue
44760 + *-*-sco3.2v5* | *-*-sco5v6*)
44761 + # Causes problems with __ctype
44762 + test "X$arg" = "X-lc" && continue
44763 + ;;
44764 + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
44765 + # Compiler inserts libc in the correct place for threads to work
44766 + test "X$arg" = "X-lc" && continue
44767 + ;;
44768 esac
44769 + elif test "X$arg" = "X-lc_r"; then
44770 + case $host in
44771 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
44772 + # Do not include libc_r directly, use -pthread flag.
44773 + continue
44774 + ;;
44775 + esac
44777 deplibs="$deplibs $arg"
44778 + continue
44779 + ;;
44781 + # Tru64 UNIX uses -model [arg] to determine the layout of C++
44782 + # classes, name mangling, and exception handling.
44783 + -model)
44784 + compile_command="$compile_command $arg"
44785 + compiler_flags="$compiler_flags $arg"
44786 + finalize_command="$finalize_command $arg"
44787 + prev=xcompiler
44788 + continue
44789 + ;;
44791 + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
44792 + compiler_flags="$compiler_flags $arg"
44793 + compile_command="$compile_command $arg"
44794 + finalize_command="$finalize_command $arg"
44795 + continue
44798 -module)
44799 @@ -1096,13 +1612,74 @@
44800 continue
44803 + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
44804 + # -r[0-9][0-9]* specifies the processor on the SGI compiler
44805 + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
44806 + # +DA*, +DD* enable 64-bit mode on the HP compiler
44807 + # -q* pass through compiler args for the IBM compiler
44808 + # -m* pass through architecture-specific compiler args for GCC
44809 + # -m*, -t[45]*, -txscale* pass through architecture-specific
44810 + # compiler args for GCC
44811 + # -pg pass through profiling flag for GCC
44812 + # @file GCC response files
44813 + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
44814 + -t[45]*|-txscale*|@*)
44816 + # Unknown arguments in both finalize_command and compile_command need
44817 + # to be aesthetically quoted because they are evaled later.
44818 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
44819 + case $arg in
44820 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
44821 + arg="\"$arg\""
44822 + ;;
44823 + esac
44824 + compile_command="$compile_command $arg"
44825 + finalize_command="$finalize_command $arg"
44826 + compiler_flags="$compiler_flags $arg"
44827 + continue
44828 + ;;
44830 + -shrext)
44831 + prev=shrext
44832 + continue
44833 + ;;
44835 + -no-fast-install)
44836 + fast_install=no
44837 + continue
44838 + ;;
44840 + -no-install)
44841 + case $host in
44842 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
44843 + # The PATH hackery in wrapper scripts is required on Windows
44844 + # in order for the loader to find any dlls it needs.
44845 + $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
44846 + $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
44847 + fast_install=no
44848 + ;;
44849 + *) no_install=yes ;;
44850 + esac
44851 + continue
44852 + ;;
44854 -no-undefined)
44855 allow_undefined=no
44856 continue
44859 + -objectlist)
44860 + prev=objectlist
44861 + continue
44862 + ;;
44864 -o) prev=output ;;
44866 + -precious-files-regex)
44867 + prev=precious_regex
44868 + continue
44869 + ;;
44871 -release)
44872 prev=release
44873 continue
44874 @@ -1121,11 +1698,11 @@
44875 -R*)
44876 dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
44877 # We need an absolute path.
44878 - case "$dir" in
44879 + case $dir in
44880 [\\/]* | [A-Za-z]:[\\/]*) ;;
44882 $echo "$modename: only absolute run-paths are allowed" 1>&2
44883 - exit 1
44884 + exit $EXIT_FAILURE
44886 esac
44887 case "$xrpath " in
44888 @@ -1136,11 +1713,11 @@
44891 -static)
44892 - # If we have no pic_flag, then this is the same as -all-static.
44893 - if test -z "$pic_flag" && test -n "$link_static_flag"; then
44894 - compile_command="$compile_command $link_static_flag"
44895 - finalize_command="$finalize_command $link_static_flag"
44896 - fi
44897 + # The effects of -static are defined in a previous loop.
44898 + # We used to do the same as -all-static on platforms that
44899 + # didn't have a PIC flag, but the assumption that the effects
44900 + # would be equivalent was wrong. It would break on at least
44901 + # Digital Unix and AIX.
44902 continue
44905 @@ -1153,388 +1730,1335 @@
44906 prev=vinfo
44907 continue
44909 + -version-number)
44910 + prev=vinfo
44911 + vinfo_number=yes
44912 + continue
44913 + ;;
44915 + -Wc,*)
44916 + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
44917 + arg=
44918 + save_ifs="$IFS"; IFS=','
44919 + for flag in $args; do
44920 + IFS="$save_ifs"
44921 + case $flag in
44922 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
44923 + flag="\"$flag\""
44924 + ;;
44925 + esac
44926 + arg="$arg $wl$flag"
44927 + compiler_flags="$compiler_flags $flag"
44928 + done
44929 + IFS="$save_ifs"
44930 + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
44931 + ;;
44933 + -Wl,*)
44934 + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
44935 + arg=
44936 + save_ifs="$IFS"; IFS=','
44937 + for flag in $args; do
44938 + IFS="$save_ifs"
44939 + case $flag in
44940 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
44941 + flag="\"$flag\""
44942 + ;;
44943 + esac
44944 + arg="$arg $wl$flag"
44945 + compiler_flags="$compiler_flags $wl$flag"
44946 + linker_flags="$linker_flags $flag"
44947 + done
44948 + IFS="$save_ifs"
44949 + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
44950 + ;;
44952 + -Xcompiler)
44953 + prev=xcompiler
44954 + continue
44955 + ;;
44957 + -Xlinker)
44958 + prev=xlinker
44959 + continue
44960 + ;;
44962 + -XCClinker)
44963 + prev=xcclinker
44964 + continue
44965 + ;;
44967 # Some other compiler flag.
44968 -* | +*)
44969 # Unknown arguments in both finalize_command and compile_command need
44970 # to be aesthetically quoted because they are evaled later.
44971 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
44972 - case "$arg" in
44973 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
44974 + case $arg in
44975 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
44976 arg="\"$arg\""
44978 esac
44981 - *.o | *.obj | *.a | *.lib)
44982 + *.$objext)
44983 # A standard object.
44984 objs="$objs $arg"
44987 *.lo)
44988 - # A library object.
44989 - if test "$prev" = dlfiles; then
44990 - dlfiles="$dlfiles $arg"
44991 - if test "$build_libtool_libs" = yes && test "$dlopen" = yes; then
44992 - prev=
44993 - continue
44994 + # A libtool-controlled object.
44996 + # Check to see that this really is a libtool object.
44997 + if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
44998 + pic_object=
44999 + non_pic_object=
45001 + # Read the .lo file
45002 + # If there is no directory component, then add one.
45003 + case $arg in
45004 + */* | *\\*) . $arg ;;
45005 + *) . ./$arg ;;
45006 + esac
45008 + if test -z "$pic_object" || \
45009 + test -z "$non_pic_object" ||
45010 + test "$pic_object" = none && \
45011 + test "$non_pic_object" = none; then
45012 + $echo "$modename: cannot find name of object for \`$arg'" 1>&2
45013 + exit $EXIT_FAILURE
45014 + fi
45016 + # Extract subdirectory from the argument.
45017 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
45018 + if test "X$xdir" = "X$arg"; then
45019 + xdir=
45020 + else
45021 + xdir="$xdir/"
45022 + fi
45024 + if test "$pic_object" != none; then
45025 + # Prepend the subdirectory the object is found in.
45026 + pic_object="$xdir$pic_object"
45028 + if test "$prev" = dlfiles; then
45029 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
45030 + dlfiles="$dlfiles $pic_object"
45031 + prev=
45032 + continue
45033 + else
45034 + # If libtool objects are unsupported, then we need to preload.
45035 + prev=dlprefiles
45036 + fi
45037 + fi
45039 + # CHECK ME: I think I busted this. -Ossama
45040 + if test "$prev" = dlprefiles; then
45041 + # Preload the old-style object.
45042 + dlprefiles="$dlprefiles $pic_object"
45043 + prev=
45044 + fi
45046 + # A PIC object.
45047 + libobjs="$libobjs $pic_object"
45048 + arg="$pic_object"
45049 + fi
45051 + # Non-PIC object.
45052 + if test "$non_pic_object" != none; then
45053 + # Prepend the subdirectory the object is found in.
45054 + non_pic_object="$xdir$non_pic_object"
45056 + # A standard non-PIC object
45057 + non_pic_objects="$non_pic_objects $non_pic_object"
45058 + if test -z "$pic_object" || test "$pic_object" = none ; then
45059 + arg="$non_pic_object"
45060 + fi
45061 else
45062 - # If libtool objects are unsupported, then we need to preload.
45063 - prev=dlprefiles
45064 + # If the PIC object exists, use it instead.
45065 + # $xdir was prepended to $pic_object above.
45066 + non_pic_object="$pic_object"
45067 + non_pic_objects="$non_pic_objects $non_pic_object"
45069 - fi
45070 + else
45071 + # Only an error if not doing a dry-run.
45072 + if test -z "$run"; then
45073 + $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
45074 + exit $EXIT_FAILURE
45075 + else
45076 + # Dry-run case.
45078 - if test "$prev" = dlprefiles; then
45079 - # Preload the old-style object.
45080 - dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"`
45081 - prev=
45082 + # Extract subdirectory from the argument.
45083 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
45084 + if test "X$xdir" = "X$arg"; then
45085 + xdir=
45086 + else
45087 + xdir="$xdir/"
45088 + fi
45090 + pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
45091 + non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
45092 + libobjs="$libobjs $pic_object"
45093 + non_pic_objects="$non_pic_objects $non_pic_object"
45094 + fi
45096 - libobjs="$libobjs $arg"
45097 + ;;
45099 + *.$libext)
45100 + # An archive.
45101 + deplibs="$deplibs $arg"
45102 + old_deplibs="$old_deplibs $arg"
45103 + continue
45106 *.la)
45107 # A libtool-controlled library.
45109 - dlname=
45110 - libdir=
45111 - library_names=
45112 - old_library=
45114 - # Check to see that this really is a libtool archive.
45115 - if (sed -e '2q' $arg | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
45116 + if test "$prev" = dlfiles; then
45117 + # This library was specified with -dlopen.
45118 + dlfiles="$dlfiles $arg"
45119 + prev=
45120 + elif test "$prev" = dlprefiles; then
45121 + # The library was specified with -dlpreopen.
45122 + dlprefiles="$dlprefiles $arg"
45123 + prev=
45124 else
45125 - $echo "$modename: \`$arg' is not a valid libtool archive" 1>&2
45126 - exit 1
45127 + deplibs="$deplibs $arg"
45129 + continue
45130 + ;;
45132 - # If the library was installed with an old release of libtool,
45133 - # it will not redefine variable installed.
45134 - installed=yes
45136 - # Read the .la file
45137 - # If there is no directory component, then add one.
45138 - case "$arg" in
45139 - */* | *\\*) . $arg ;;
45140 - *) . ./$arg ;;
45141 + # Some other compiler argument.
45142 + *)
45143 + # Unknown arguments in both finalize_command and compile_command need
45144 + # to be aesthetically quoted because they are evaled later.
45145 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
45146 + case $arg in
45147 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
45148 + arg="\"$arg\""
45149 + ;;
45150 esac
45151 + ;;
45152 + esac # arg
45154 - # Get the name of the library we link against.
45155 - linklib=
45156 - for l in $old_library $library_names; do
45157 - linklib="$l"
45158 - done
45159 + # Now actually substitute the argument into the commands.
45160 + if test -n "$arg"; then
45161 + compile_command="$compile_command $arg"
45162 + finalize_command="$finalize_command $arg"
45163 + fi
45164 + done # argument parsing loop
45166 - if test -z "$linklib"; then
45167 - $echo "$modename: cannot find name of link library for \`$arg'" 1>&2
45168 - exit 1
45169 - fi
45170 + if test -n "$prev"; then
45171 + $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
45172 + $echo "$help" 1>&2
45173 + exit $EXIT_FAILURE
45174 + fi
45176 - # Find the relevant object directory and library name.
45177 - name=`$echo "X$arg" | $Xsed -e 's%^.*/%%' -e 's/\.la$//' -e 's/^lib//'`
45178 + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
45179 + eval arg=\"$export_dynamic_flag_spec\"
45180 + compile_command="$compile_command $arg"
45181 + finalize_command="$finalize_command $arg"
45182 + fi
45184 - if test "X$installed" = Xyes; then
45185 - dir="$libdir"
45186 - else
45187 - dir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
45188 - if test "X$dir" = "X$arg"; then
45189 - dir="$objdir"
45190 - else
45191 - dir="$dir/$objdir"
45192 - fi
45193 - fi
45194 + oldlibs=
45195 + # calculate the name of the file, without its directory
45196 + outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
45197 + libobjs_save="$libobjs"
45199 - if test -n "$dependency_libs"; then
45200 - # Extract -R and -L from dependency_libs
45201 - temp_deplibs=
45202 - for deplib in $dependency_libs; do
45203 - case "$deplib" in
45204 - -R*) temp_xrpath=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
45205 - case " $rpath $xrpath " in
45206 - *" $temp_xrpath "*) ;;
45207 - *) xrpath="$xrpath $temp_xrpath";;
45208 - esac;;
45209 - -L*) case "$compile_command $temp_deplibs " in
45210 - *" $deplib "*) ;;
45211 - *) temp_deplibs="$temp_deplibs $deplib";;
45212 - esac
45213 - temp_dir=`$echo "X$deplib" | $Xsed -e 's/^-L//'`
45214 - case " $lib_search_path " in
45215 - *" $temp_dir "*) ;;
45216 - *) lib_search_path="$lib_search_path $temp_dir";;
45217 - esac
45218 - ;;
45219 - *) temp_deplibs="$temp_deplibs $deplib";;
45220 - esac
45221 - done
45222 - dependency_libs="$temp_deplibs"
45223 - fi
45224 + if test -n "$shlibpath_var"; then
45225 + # get the directories listed in $shlibpath_var
45226 + eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
45227 + else
45228 + shlib_search_path=
45229 + fi
45230 + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
45231 + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
45233 - if test -z "$libdir"; then
45234 - # It is a libtool convenience library, so add in its objects.
45235 - convenience="$convenience $dir/$old_library"
45236 - old_convenience="$old_convenience $dir/$old_library"
45237 - deplibs="$deplibs$dependency_libs"
45238 - compile_command="$compile_command $dir/$old_library$dependency_libs"
45239 - finalize_command="$finalize_command $dir/$old_library$dependency_libs"
45240 - continue
45241 - fi
45242 + output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
45243 + if test "X$output_objdir" = "X$output"; then
45244 + output_objdir="$objdir"
45245 + else
45246 + output_objdir="$output_objdir/$objdir"
45247 + fi
45248 + # Create the object directory.
45249 + if test ! -d "$output_objdir"; then
45250 + $show "$mkdir $output_objdir"
45251 + $run $mkdir $output_objdir
45252 + exit_status=$?
45253 + if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
45254 + exit $exit_status
45255 + fi
45256 + fi
45258 - # This library was specified with -dlopen.
45259 - if test "$prev" = dlfiles; then
45260 - dlfiles="$dlfiles $arg"
45261 - if test -z "$dlname" || test "$dlopen" != yes || test "$build_libtool_libs" = no; then
45262 - # If there is no dlname, no dlopen support or we're linking statically,
45263 - # we need to preload.
45264 - prev=dlprefiles
45265 - else
45266 - # We should not create a dependency on this library, but we
45267 - # may need any libraries it requires.
45268 - compile_command="$compile_command$dependency_libs"
45269 - finalize_command="$finalize_command$dependency_libs"
45270 - prev=
45271 - continue
45272 - fi
45273 - fi
45274 + # Determine the type of output
45275 + case $output in
45276 + "")
45277 + $echo "$modename: you must specify an output file" 1>&2
45278 + $echo "$help" 1>&2
45279 + exit $EXIT_FAILURE
45280 + ;;
45281 + *.$libext) linkmode=oldlib ;;
45282 + *.lo | *.$objext) linkmode=obj ;;
45283 + *.la) linkmode=lib ;;
45284 + *) linkmode=prog ;; # Anything else should be a program.
45285 + esac
45287 - # The library was specified with -dlpreopen.
45288 - if test "$prev" = dlprefiles; then
45289 - # Prefer using a static library (so that no silly _DYNAMIC symbols
45290 - # are required to link).
45291 - if test -n "$old_library"; then
45292 - dlprefiles="$dlprefiles $dir/$old_library"
45293 - else
45294 - dlprefiles="$dlprefiles $dir/$linklib"
45295 - fi
45296 - prev=
45297 - fi
45298 + case $host in
45299 + *cygwin* | *mingw* | *pw32*)
45300 + # don't eliminate duplications in $postdeps and $predeps
45301 + duplicate_compiler_generated_deps=yes
45302 + ;;
45303 + *)
45304 + duplicate_compiler_generated_deps=$duplicate_deps
45305 + ;;
45306 + esac
45307 + specialdeplibs=
45309 - if test -n "$library_names" &&
45310 - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
45311 - link_against_libtool_libs="$link_against_libtool_libs $arg"
45312 - if test -n "$shlibpath_var"; then
45313 - # Make sure the rpath contains only unique directories.
45314 - case "$temp_rpath " in
45315 - *" $dir "*) ;;
45316 - *) temp_rpath="$temp_rpath $dir" ;;
45317 - esac
45318 - fi
45319 + libs=
45320 + # Find all interdependent deplibs by searching for libraries
45321 + # that are linked more than once (e.g. -la -lb -la)
45322 + for deplib in $deplibs; do
45323 + if test "X$duplicate_deps" = "Xyes" ; then
45324 + case "$libs " in
45325 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
45326 + esac
45327 + fi
45328 + libs="$libs $deplib"
45329 + done
45331 - # We need an absolute path.
45332 - case "$dir" in
45333 - [\\/] | [A-Za-z]:[\\/]*) absdir="$dir" ;;
45334 + if test "$linkmode" = lib; then
45335 + libs="$predeps $libs $compiler_lib_search_path $postdeps"
45337 + # Compute libraries that are listed more than once in $predeps
45338 + # $postdeps and mark them as special (i.e., whose duplicates are
45339 + # not to be eliminated).
45340 + pre_post_deps=
45341 + if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
45342 + for pre_post_dep in $predeps $postdeps; do
45343 + case "$pre_post_deps " in
45344 + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
45345 + esac
45346 + pre_post_deps="$pre_post_deps $pre_post_dep"
45347 + done
45348 + fi
45349 + pre_post_deps=
45350 + fi
45352 + deplibs=
45353 + newdependency_libs=
45354 + newlib_search_path=
45355 + need_relink=no # whether we're linking any uninstalled libtool libraries
45356 + notinst_deplibs= # not-installed libtool libraries
45357 + case $linkmode in
45358 + lib)
45359 + passes="conv link"
45360 + for file in $dlfiles $dlprefiles; do
45361 + case $file in
45362 + *.la) ;;
45364 - absdir=`cd "$dir" && pwd`
45365 - if test -z "$absdir"; then
45366 - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
45367 - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
45368 - absdir="$dir"
45369 - fi
45370 + $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
45371 + exit $EXIT_FAILURE
45373 esac
45375 - # This is the magic to use -rpath.
45376 - # Skip directories that are in the system default run-time
45377 - # search path, unless they have been requested with -R.
45378 - case " $sys_lib_dlsearch_path " in
45379 - *" $absdir "*) ;;
45380 - *)
45381 - case "$compile_rpath " in
45382 - *" $absdir "*) ;;
45383 - *) compile_rpath="$compile_rpath $absdir"
45384 - esac
45385 + done
45386 + ;;
45387 + prog)
45388 + compile_deplibs=
45389 + finalize_deplibs=
45390 + alldeplibs=no
45391 + newdlfiles=
45392 + newdlprefiles=
45393 + passes="conv scan dlopen dlpreopen link"
45394 + ;;
45395 + *) passes="conv"
45396 + ;;
45397 + esac
45398 + for pass in $passes; do
45399 + if test "$linkmode,$pass" = "lib,link" ||
45400 + test "$linkmode,$pass" = "prog,scan"; then
45401 + libs="$deplibs"
45402 + deplibs=
45403 + fi
45404 + if test "$linkmode" = prog; then
45405 + case $pass in
45406 + dlopen) libs="$dlfiles" ;;
45407 + dlpreopen) libs="$dlprefiles" ;;
45408 + link)
45409 + libs="$deplibs %DEPLIBS%"
45410 + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
45411 + ;;
45412 + esac
45413 + fi
45414 + if test "$pass" = dlopen; then
45415 + # Collect dlpreopened libraries
45416 + save_deplibs="$deplibs"
45417 + deplibs=
45418 + fi
45419 + for deplib in $libs; do
45420 + lib=
45421 + found=no
45422 + case $deplib in
45423 + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
45424 + if test "$linkmode,$pass" = "prog,link"; then
45425 + compile_deplibs="$deplib $compile_deplibs"
45426 + finalize_deplibs="$deplib $finalize_deplibs"
45427 + else
45428 + compiler_flags="$compiler_flags $deplib"
45429 + fi
45430 + continue
45431 + ;;
45432 + -l*)
45433 + if test "$linkmode" != lib && test "$linkmode" != prog; then
45434 + $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
45435 + continue
45436 + fi
45437 + name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
45438 + for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
45439 + for search_ext in .la $std_shrext .so .a; do
45440 + # Search the libtool library
45441 + lib="$searchdir/lib${name}${search_ext}"
45442 + if test -f "$lib"; then
45443 + if test "$search_ext" = ".la"; then
45444 + found=yes
45445 + else
45446 + found=no
45447 + fi
45448 + break 2
45449 + fi
45450 + done
45451 + done
45452 + if test "$found" != yes; then
45453 + # deplib doesn't seem to be a libtool library
45454 + if test "$linkmode,$pass" = "prog,link"; then
45455 + compile_deplibs="$deplib $compile_deplibs"
45456 + finalize_deplibs="$deplib $finalize_deplibs"
45457 + else
45458 + deplibs="$deplib $deplibs"
45459 + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
45460 + fi
45461 + continue
45462 + else # deplib is a libtool library
45463 + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
45464 + # We need to do some special things here, and not later.
45465 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
45466 + case " $predeps $postdeps " in
45467 + *" $deplib "*)
45468 + if (${SED} -e '2q' $lib |
45469 + grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
45470 + library_names=
45471 + old_library=
45472 + case $lib in
45473 + */* | *\\*) . $lib ;;
45474 + *) . ./$lib ;;
45475 + esac
45476 + for l in $old_library $library_names; do
45477 + ll="$l"
45478 + done
45479 + if test "X$ll" = "X$old_library" ; then # only static version available
45480 + found=no
45481 + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
45482 + test "X$ladir" = "X$lib" && ladir="."
45483 + lib=$ladir/$old_library
45484 + if test "$linkmode,$pass" = "prog,link"; then
45485 + compile_deplibs="$deplib $compile_deplibs"
45486 + finalize_deplibs="$deplib $finalize_deplibs"
45487 + else
45488 + deplibs="$deplib $deplibs"
45489 + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
45490 + fi
45491 + continue
45492 + fi
45493 + fi
45494 + ;;
45495 + *) ;;
45496 + esac
45497 + fi
45498 + fi
45499 + ;; # -l
45500 + -L*)
45501 + case $linkmode in
45502 + lib)
45503 + deplibs="$deplib $deplibs"
45504 + test "$pass" = conv && continue
45505 + newdependency_libs="$deplib $newdependency_libs"
45506 + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
45507 + ;;
45508 + prog)
45509 + if test "$pass" = conv; then
45510 + deplibs="$deplib $deplibs"
45511 + continue
45512 + fi
45513 + if test "$pass" = scan; then
45514 + deplibs="$deplib $deplibs"
45515 + else
45516 + compile_deplibs="$deplib $compile_deplibs"
45517 + finalize_deplibs="$deplib $finalize_deplibs"
45518 + fi
45519 + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
45521 - esac
45523 - case " $sys_lib_dlsearch_path " in
45524 - *" $libdir "*) ;;
45526 - case "$finalize_rpath " in
45527 - *" $libdir "*) ;;
45528 - *) finalize_rpath="$finalize_rpath $libdir"
45529 - esac
45530 + $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
45532 - esac
45534 - lib_linked=yes
45535 - case "$hardcode_action" in
45536 - immediate | unsupported)
45537 - if test "$hardcode_direct" = no; then
45538 - compile_command="$compile_command $dir/$linklib"
45539 - deplibs="$deplibs $dir/$linklib"
45540 - case "$host" in
45541 - *-*-cygwin* | *-*-mingw* | *-*-os2*)
45542 - dllsearchdir=`cd "$dir" && pwd || echo "$dir"`
45543 - if test -n "$dllsearchpath"; then
45544 - dllsearchpath="$dllsearchpath:$dllsearchdir"
45545 - else
45546 - dllsearchpath="$dllsearchdir"
45547 + esac # linkmode
45548 + continue
45549 + ;; # -L
45550 + -R*)
45551 + if test "$pass" = link; then
45552 + dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
45553 + # Make sure the xrpath contains only unique directories.
45554 + case "$xrpath " in
45555 + *" $dir "*) ;;
45556 + *) xrpath="$xrpath $dir" ;;
45557 + esac
45558 + fi
45559 + deplibs="$deplib $deplibs"
45560 + continue
45561 + ;;
45562 + *.la) lib="$deplib" ;;
45563 + *.$libext)
45564 + if test "$pass" = conv; then
45565 + deplibs="$deplib $deplibs"
45566 + continue
45567 + fi
45568 + case $linkmode in
45569 + lib)
45570 + valid_a_lib=no
45571 + case $deplibs_check_method in
45572 + match_pattern*)
45573 + set dummy $deplibs_check_method
45574 + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
45575 + if eval $echo \"$deplib\" 2>/dev/null \
45576 + | $SED 10q \
45577 + | $EGREP "$match_pattern_regex" > /dev/null; then
45578 + valid_a_lib=yes
45581 - esac
45582 - elif test "$hardcode_minus_L" = no; then
45583 - case "$host" in
45584 - *-*-sunos*)
45585 - compile_shlibpath="$compile_shlibpath$dir:"
45586 + pass_all)
45587 + valid_a_lib=yes
45589 - esac
45590 - case "$compile_command " in
45591 - *" -L$dir "*) ;;
45592 - *) compile_command="$compile_command -L$dir";;
45593 - esac
45594 - compile_command="$compile_command -l$name"
45595 - deplibs="$deplibs -L$dir -l$name"
45596 - elif test "$hardcode_shlibpath_var" = no; then
45597 - case ":$compile_shlibpath:" in
45598 - *":$dir:"*) ;;
45599 - *) compile_shlibpath="$compile_shlibpath$dir:";;
45600 - esac
45601 - compile_command="$compile_command -l$name"
45602 - deplibs="$deplibs -l$name"
45603 + esac
45604 + if test "$valid_a_lib" != yes; then
45605 + $echo
45606 + $echo "*** Warning: Trying to link with static lib archive $deplib."
45607 + $echo "*** I have the capability to make that library automatically link in when"
45608 + $echo "*** you link to this library. But I can only do this if you have a"
45609 + $echo "*** shared version of the library, which you do not appear to have"
45610 + $echo "*** because the file extensions .$libext of this argument makes me believe"
45611 + $echo "*** that it is just a static archive that I should not used here."
45612 else
45613 - lib_linked=no
45614 + $echo
45615 + $echo "*** Warning: Linking the shared library $output against the"
45616 + $echo "*** static library $deplib is not portable!"
45617 + deplibs="$deplib $deplibs"
45619 + continue
45622 - relink)
45623 - if test "$hardcode_direct" = yes; then
45624 - compile_command="$compile_command $absdir/$linklib"
45625 - deplibs="$deplibs $absdir/$linklib"
45626 - elif test "$hardcode_minus_L" = yes; then
45627 - case "$compile_command " in
45628 - *" -L$absdir "*) ;;
45629 - *) compile_command="$compile_command -L$absdir";;
45630 - esac
45631 - compile_command="$compile_command -l$name"
45632 - deplibs="$deplibs -L$absdir -l$name"
45633 - elif test "$hardcode_shlibpath_var" = yes; then
45634 - case ":$compile_shlibpath:" in
45635 - *":$absdir:"*) ;;
45636 - *) compile_shlibpath="$compile_shlibpath$absdir:";;
45637 - esac
45638 - compile_command="$compile_command -l$name"
45639 - deplibs="$deplibs -l$name"
45640 + prog)
45641 + if test "$pass" != link; then
45642 + deplibs="$deplib $deplibs"
45643 else
45644 - lib_linked=no
45645 + compile_deplibs="$deplib $compile_deplibs"
45646 + finalize_deplibs="$deplib $finalize_deplibs"
45648 + continue
45650 + esac # linkmode
45651 + ;; # *.$libext
45652 + *.lo | *.$objext)
45653 + if test "$pass" = conv; then
45654 + deplibs="$deplib $deplibs"
45655 + elif test "$linkmode" = prog; then
45656 + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
45657 + # If there is no dlopen support or we're linking statically,
45658 + # we need to preload.
45659 + newdlprefiles="$newdlprefiles $deplib"
45660 + compile_deplibs="$deplib $compile_deplibs"
45661 + finalize_deplibs="$deplib $finalize_deplibs"
45662 + else
45663 + newdlfiles="$newdlfiles $deplib"
45664 + fi
45665 + fi
45666 + continue
45667 + ;;
45668 + %DEPLIBS%)
45669 + alldeplibs=yes
45670 + continue
45671 + ;;
45672 + esac # case $deplib
45673 + if test "$found" = yes || test -f "$lib"; then :
45674 + else
45675 + $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
45676 + exit $EXIT_FAILURE
45677 + fi
45679 - *)
45680 - lib_linked=no
45681 - ;;
45682 - esac
45683 + # Check to see that this really is a libtool archive.
45684 + if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
45685 + else
45686 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
45687 + exit $EXIT_FAILURE
45688 + fi
45690 + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
45691 + test "X$ladir" = "X$lib" && ladir="."
45693 - if test "$lib_linked" != yes; then
45694 - $echo "$modename: configuration error: unsupported hardcode properties"
45695 - exit 1
45696 + dlname=
45697 + dlopen=
45698 + dlpreopen=
45699 + libdir=
45700 + library_names=
45701 + old_library=
45702 + # If the library was installed with an old release of libtool,
45703 + # it will not redefine variables installed, or shouldnotlink
45704 + installed=yes
45705 + shouldnotlink=no
45706 + avoidtemprpath=
45709 + # Read the .la file
45710 + case $lib in
45711 + */* | *\\*) . $lib ;;
45712 + *) . ./$lib ;;
45713 + esac
45715 + if test "$linkmode,$pass" = "lib,link" ||
45716 + test "$linkmode,$pass" = "prog,scan" ||
45717 + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
45718 + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
45719 + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
45720 + fi
45722 + if test "$pass" = conv; then
45723 + # Only check for convenience libraries
45724 + deplibs="$lib $deplibs"
45725 + if test -z "$libdir"; then
45726 + if test -z "$old_library"; then
45727 + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
45728 + exit $EXIT_FAILURE
45729 + fi
45730 + # It is a libtool convenience library, so add in its objects.
45731 + convenience="$convenience $ladir/$objdir/$old_library"
45732 + old_convenience="$old_convenience $ladir/$objdir/$old_library"
45733 + tmp_libs=
45734 + for deplib in $dependency_libs; do
45735 + deplibs="$deplib $deplibs"
45736 + if test "X$duplicate_deps" = "Xyes" ; then
45737 + case "$tmp_libs " in
45738 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
45739 + esac
45740 + fi
45741 + tmp_libs="$tmp_libs $deplib"
45742 + done
45743 + elif test "$linkmode" != prog && test "$linkmode" != lib; then
45744 + $echo "$modename: \`$lib' is not a convenience library" 1>&2
45745 + exit $EXIT_FAILURE
45747 + continue
45748 + fi # $pass = conv
45750 - # Finalize command for both is simple: just hardcode it.
45751 - if test "$hardcode_direct" = yes; then
45752 - finalize_command="$finalize_command $libdir/$linklib"
45753 - elif test "$hardcode_minus_L" = yes; then
45754 - case "$finalize_command " in
45755 - *" -L$libdir "*) ;;
45756 - *) finalize_command="$finalize_command -L$libdir";;
45757 - esac
45758 - finalize_command="$finalize_command -l$name"
45759 - elif test "$hardcode_shlibpath_var" = yes; then
45760 - case ":$finalize_shlibpath:" in
45761 - *":$libdir:"*) ;;
45762 - *) finalize_shlibpath="$finalize_shlibpath$libdir:";;
45763 - esac
45764 - finalize_command="$finalize_command -l$name"
45766 + # Get the name of the library we link against.
45767 + linklib=
45768 + for l in $old_library $library_names; do
45769 + linklib="$l"
45770 + done
45771 + if test -z "$linklib"; then
45772 + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
45773 + exit $EXIT_FAILURE
45774 + fi
45776 + # This library was specified with -dlopen.
45777 + if test "$pass" = dlopen; then
45778 + if test -z "$libdir"; then
45779 + $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
45780 + exit $EXIT_FAILURE
45781 + fi
45782 + if test -z "$dlname" ||
45783 + test "$dlopen_support" != yes ||
45784 + test "$build_libtool_libs" = no; then
45785 + # If there is no dlname, no dlopen support or we're linking
45786 + # statically, we need to preload. We also need to preload any
45787 + # dependent libraries so libltdl's deplib preloader doesn't
45788 + # bomb out in the load deplibs phase.
45789 + dlprefiles="$dlprefiles $lib $dependency_libs"
45790 else
45791 - # We cannot seem to hardcode it, guess we'll fake it.
45792 - case "$finalize_command " in
45793 - *" -L$dir "*) ;;
45794 - *) finalize_command="$finalize_command -L$libdir";;
45795 - esac
45796 - finalize_command="$finalize_command -l$name"
45797 + newdlfiles="$newdlfiles $lib"
45799 + continue
45800 + fi # $pass = dlopen
45802 + # We need an absolute path.
45803 + case $ladir in
45804 + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
45805 + *)
45806 + abs_ladir=`cd "$ladir" && pwd`
45807 + if test -z "$abs_ladir"; then
45808 + $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
45809 + $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
45810 + abs_ladir="$ladir"
45811 + fi
45812 + ;;
45813 + esac
45814 + laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
45816 + # Find the relevant object directory and library name.
45817 + if test "X$installed" = Xyes; then
45818 + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
45819 + $echo "$modename: warning: library \`$lib' was moved." 1>&2
45820 + dir="$ladir"
45821 + absdir="$abs_ladir"
45822 + libdir="$abs_ladir"
45823 + else
45824 + dir="$libdir"
45825 + absdir="$libdir"
45826 + fi
45827 + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
45828 else
45829 - # Transform directly to old archives if we don't build new libraries.
45830 - if test -n "$pic_flag" && test -z "$old_library"; then
45831 - $echo "$modename: cannot find static library for \`$arg'" 1>&2
45832 - exit 1
45833 + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
45834 + dir="$ladir"
45835 + absdir="$abs_ladir"
45836 + # Remove this search path later
45837 + notinst_path="$notinst_path $abs_ladir"
45838 + else
45839 + dir="$ladir/$objdir"
45840 + absdir="$abs_ladir/$objdir"
45841 + # Remove this search path later
45842 + notinst_path="$notinst_path $abs_ladir"
45843 + fi
45844 + fi # $installed = yes
45845 + name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
45847 + # This library was specified with -dlpreopen.
45848 + if test "$pass" = dlpreopen; then
45849 + if test -z "$libdir"; then
45850 + $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
45851 + exit $EXIT_FAILURE
45852 + fi
45853 + # Prefer using a static library (so that no silly _DYNAMIC symbols
45854 + # are required to link).
45855 + if test -n "$old_library"; then
45856 + newdlprefiles="$newdlprefiles $dir/$old_library"
45857 + # Otherwise, use the dlname, so that lt_dlopen finds it.
45858 + elif test -n "$dlname"; then
45859 + newdlprefiles="$newdlprefiles $dir/$dlname"
45860 + else
45861 + newdlprefiles="$newdlprefiles $dir/$linklib"
45863 + fi # $pass = dlpreopen
45865 - # Here we assume that one of hardcode_direct or hardcode_minus_L
45866 - # is not unsupported. This is valid on all known static and
45867 - # shared platforms.
45868 - if test "$hardcode_direct" != unsupported; then
45869 - test -n "$old_library" && linklib="$old_library"
45870 - compile_command="$compile_command $dir/$linklib"
45871 - finalize_command="$finalize_command $dir/$linklib"
45872 + if test -z "$libdir"; then
45873 + # Link the convenience library
45874 + if test "$linkmode" = lib; then
45875 + deplibs="$dir/$old_library $deplibs"
45876 + elif test "$linkmode,$pass" = "prog,link"; then
45877 + compile_deplibs="$dir/$old_library $compile_deplibs"
45878 + finalize_deplibs="$dir/$old_library $finalize_deplibs"
45879 else
45880 - case "$compile_command " in
45881 - *" -L$dir "*) ;;
45882 - *) compile_command="$compile_command -L$dir";;
45883 + deplibs="$lib $deplibs" # used for prog,scan pass
45884 + fi
45885 + continue
45886 + fi
45889 + if test "$linkmode" = prog && test "$pass" != link; then
45890 + newlib_search_path="$newlib_search_path $ladir"
45891 + deplibs="$lib $deplibs"
45893 + linkalldeplibs=no
45894 + if test "$link_all_deplibs" != no || test -z "$library_names" ||
45895 + test "$build_libtool_libs" = no; then
45896 + linkalldeplibs=yes
45897 + fi
45899 + tmp_libs=
45900 + for deplib in $dependency_libs; do
45901 + case $deplib in
45902 + -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
45903 + esac
45904 + # Need to link against all dependency_libs?
45905 + if test "$linkalldeplibs" = yes; then
45906 + deplibs="$deplib $deplibs"
45907 + else
45908 + # Need to hardcode shared library paths
45909 + # or/and link against static libraries
45910 + newdependency_libs="$deplib $newdependency_libs"
45911 + fi
45912 + if test "X$duplicate_deps" = "Xyes" ; then
45913 + case "$tmp_libs " in
45914 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
45915 + esac
45916 + fi
45917 + tmp_libs="$tmp_libs $deplib"
45918 + done # for deplib
45919 + continue
45920 + fi # $linkmode = prog...
45922 + if test "$linkmode,$pass" = "prog,link"; then
45923 + if test -n "$library_names" &&
45924 + { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
45925 + # We need to hardcode the library path
45926 + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
45927 + # Make sure the rpath contains only unique directories.
45928 + case "$temp_rpath " in
45929 + *" $dir "*) ;;
45930 + *" $absdir "*) ;;
45931 + *) temp_rpath="$temp_rpath $absdir" ;;
45932 + esac
45933 + fi
45935 + # Hardcode the library path.
45936 + # Skip directories that are in the system default run-time
45937 + # search path.
45938 + case " $sys_lib_dlsearch_path " in
45939 + *" $absdir "*) ;;
45940 + *)
45941 + case "$compile_rpath " in
45942 + *" $absdir "*) ;;
45943 + *) compile_rpath="$compile_rpath $absdir"
45944 + esac
45945 + ;;
45946 esac
45947 - compile_command="$compile_command -l$name"
45948 - case "$finalize_command " in
45949 - *" -L$dir "*) ;;
45950 - *) finalize_command="$finalize_command -L$dir";;
45951 + case " $sys_lib_dlsearch_path " in
45952 + *" $libdir "*) ;;
45953 + *)
45954 + case "$finalize_rpath " in
45955 + *" $libdir "*) ;;
45956 + *) finalize_rpath="$finalize_rpath $libdir"
45957 + esac
45958 + ;;
45959 esac
45960 - finalize_command="$finalize_command -l$name"
45961 + fi # $linkmode,$pass = prog,link...
45963 + if test "$alldeplibs" = yes &&
45964 + { test "$deplibs_check_method" = pass_all ||
45965 + { test "$build_libtool_libs" = yes &&
45966 + test -n "$library_names"; }; }; then
45967 + # We only need to search for static libraries
45968 + continue
45972 - # Add in any libraries that this one depends upon.
45973 - compile_command="$compile_command$dependency_libs"
45974 - finalize_command="$finalize_command$dependency_libs"
45975 - continue
45976 - ;;
45977 + link_static=no # Whether the deplib will be linked statically
45978 + use_static_libs=$prefer_static_libs
45979 + if test "$use_static_libs" = built && test "$installed" = yes ; then
45980 + use_static_libs=no
45981 + fi
45982 + if test -n "$library_names" &&
45983 + { test "$use_static_libs" = no || test -z "$old_library"; }; then
45984 + if test "$installed" = no; then
45985 + notinst_deplibs="$notinst_deplibs $lib"
45986 + need_relink=yes
45987 + fi
45988 + # This is a shared library
45990 + # Warn about portability, can't link against -module's on
45991 + # some systems (darwin)
45992 + if test "$shouldnotlink" = yes && test "$pass" = link ; then
45993 + $echo
45994 + if test "$linkmode" = prog; then
45995 + $echo "*** Warning: Linking the executable $output against the loadable module"
45996 + else
45997 + $echo "*** Warning: Linking the shared library $output against the loadable module"
45998 + fi
45999 + $echo "*** $linklib is not portable!"
46000 + fi
46001 + if test "$linkmode" = lib &&
46002 + test "$hardcode_into_libs" = yes; then
46003 + # Hardcode the library path.
46004 + # Skip directories that are in the system default run-time
46005 + # search path.
46006 + case " $sys_lib_dlsearch_path " in
46007 + *" $absdir "*) ;;
46008 + *)
46009 + case "$compile_rpath " in
46010 + *" $absdir "*) ;;
46011 + *) compile_rpath="$compile_rpath $absdir"
46012 + esac
46013 + ;;
46014 + esac
46015 + case " $sys_lib_dlsearch_path " in
46016 + *" $libdir "*) ;;
46017 + *)
46018 + case "$finalize_rpath " in
46019 + *" $libdir "*) ;;
46020 + *) finalize_rpath="$finalize_rpath $libdir"
46021 + esac
46022 + ;;
46023 + esac
46024 + fi
46026 - # Some other compiler argument.
46027 - *)
46028 - # Unknown arguments in both finalize_command and compile_command need
46029 - # to be aesthetically quoted because they are evaled later.
46030 - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
46031 - case "$arg" in
46032 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
46033 - arg="\"$arg\""
46034 - ;;
46035 - esac
46036 - ;;
46037 - esac
46038 + if test -n "$old_archive_from_expsyms_cmds"; then
46039 + # figure out the soname
46040 + set dummy $library_names
46041 + realname="$2"
46042 + shift; shift
46043 + libname=`eval \\$echo \"$libname_spec\"`
46044 + # use dlname if we got it. it's perfectly good, no?
46045 + if test -n "$dlname"; then
46046 + soname="$dlname"
46047 + elif test -n "$soname_spec"; then
46048 + # bleh windows
46049 + case $host in
46050 + *cygwin* | mingw*)
46051 + major=`expr $current - $age`
46052 + versuffix="-$major"
46053 + ;;
46054 + esac
46055 + eval soname=\"$soname_spec\"
46056 + else
46057 + soname="$realname"
46058 + fi
46060 - # Now actually substitute the argument into the commands.
46061 - if test -n "$arg"; then
46062 - compile_command="$compile_command $arg"
46063 - finalize_command="$finalize_command $arg"
46064 - fi
46065 - done
46066 + # Make a new name for the extract_expsyms_cmds to use
46067 + soroot="$soname"
46068 + soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
46069 + newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
46071 - if test -n "$prev"; then
46072 - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
46073 - $echo "$help" 1>&2
46074 - exit 1
46075 - fi
46076 + # If the library has no export list, then create one now
46077 + if test -f "$output_objdir/$soname-def"; then :
46078 + else
46079 + $show "extracting exported symbol list from \`$soname'"
46080 + save_ifs="$IFS"; IFS='~'
46081 + cmds=$extract_expsyms_cmds
46082 + for cmd in $cmds; do
46083 + IFS="$save_ifs"
46084 + eval cmd=\"$cmd\"
46085 + $show "$cmd"
46086 + $run eval "$cmd" || exit $?
46087 + done
46088 + IFS="$save_ifs"
46089 + fi
46091 - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
46092 - eval arg=\"$export_dynamic_flag_spec\"
46093 - compile_command="$compile_command $arg"
46094 - finalize_command="$finalize_command $arg"
46095 - fi
46096 + # Create $newlib
46097 + if test -f "$output_objdir/$newlib"; then :; else
46098 + $show "generating import library for \`$soname'"
46099 + save_ifs="$IFS"; IFS='~'
46100 + cmds=$old_archive_from_expsyms_cmds
46101 + for cmd in $cmds; do
46102 + IFS="$save_ifs"
46103 + eval cmd=\"$cmd\"
46104 + $show "$cmd"
46105 + $run eval "$cmd" || exit $?
46106 + done
46107 + IFS="$save_ifs"
46108 + fi
46109 + # make sure the library variables are pointing to the new library
46110 + dir=$output_objdir
46111 + linklib=$newlib
46112 + fi # test -n "$old_archive_from_expsyms_cmds"
46114 + if test "$linkmode" = prog || test "$mode" != relink; then
46115 + add_shlibpath=
46116 + add_dir=
46117 + add=
46118 + lib_linked=yes
46119 + case $hardcode_action in
46120 + immediate | unsupported)
46121 + if test "$hardcode_direct" = no; then
46122 + add="$dir/$linklib"
46123 + case $host in
46124 + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
46125 + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
46126 + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
46127 + *-*-unixware7*) add_dir="-L$dir" ;;
46128 + *-*-darwin* )
46129 + # if the lib is a module then we can not link against
46130 + # it, someone is ignoring the new warnings I added
46131 + if /usr/bin/file -L $add 2> /dev/null |
46132 + $EGREP ": [^:]* bundle" >/dev/null ; then
46133 + $echo "** Warning, lib $linklib is a module, not a shared library"
46134 + if test -z "$old_library" ; then
46135 + $echo
46136 + $echo "** And there doesn't seem to be a static archive available"
46137 + $echo "** The link will probably fail, sorry"
46138 + else
46139 + add="$dir/$old_library"
46140 + fi
46141 + fi
46142 + esac
46143 + elif test "$hardcode_minus_L" = no; then
46144 + case $host in
46145 + *-*-sunos*) add_shlibpath="$dir" ;;
46146 + esac
46147 + add_dir="-L$dir"
46148 + add="-l$name"
46149 + elif test "$hardcode_shlibpath_var" = no; then
46150 + add_shlibpath="$dir"
46151 + add="-l$name"
46152 + else
46153 + lib_linked=no
46154 + fi
46155 + ;;
46156 + relink)
46157 + if test "$hardcode_direct" = yes; then
46158 + add="$dir/$linklib"
46159 + elif test "$hardcode_minus_L" = yes; then
46160 + add_dir="-L$dir"
46161 + # Try looking first in the location we're being installed to.
46162 + if test -n "$inst_prefix_dir"; then
46163 + case $libdir in
46164 + [\\/]*)
46165 + add_dir="$add_dir -L$inst_prefix_dir$libdir"
46166 + ;;
46167 + esac
46168 + fi
46169 + add="-l$name"
46170 + elif test "$hardcode_shlibpath_var" = yes; then
46171 + add_shlibpath="$dir"
46172 + add="-l$name"
46173 + else
46174 + lib_linked=no
46175 + fi
46176 + ;;
46177 + *) lib_linked=no ;;
46178 + esac
46180 - oldlibs=
46181 - # calculate the name of the file, without its directory
46182 - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
46183 - libobjs_save="$libobjs"
46184 + if test "$lib_linked" != yes; then
46185 + $echo "$modename: configuration error: unsupported hardcode properties"
46186 + exit $EXIT_FAILURE
46187 + fi
46189 - case "$output" in
46190 - "")
46191 - $echo "$modename: you must specify an output file" 1>&2
46192 - $echo "$help" 1>&2
46193 - exit 1
46194 - ;;
46195 + if test -n "$add_shlibpath"; then
46196 + case :$compile_shlibpath: in
46197 + *":$add_shlibpath:"*) ;;
46198 + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
46199 + esac
46200 + fi
46201 + if test "$linkmode" = prog; then
46202 + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
46203 + test -n "$add" && compile_deplibs="$add $compile_deplibs"
46204 + else
46205 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
46206 + test -n "$add" && deplibs="$add $deplibs"
46207 + if test "$hardcode_direct" != yes && \
46208 + test "$hardcode_minus_L" != yes && \
46209 + test "$hardcode_shlibpath_var" = yes; then
46210 + case :$finalize_shlibpath: in
46211 + *":$libdir:"*) ;;
46212 + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
46213 + esac
46214 + fi
46215 + fi
46216 + fi
46218 + if test "$linkmode" = prog || test "$mode" = relink; then
46219 + add_shlibpath=
46220 + add_dir=
46221 + add=
46222 + # Finalize command for both is simple: just hardcode it.
46223 + if test "$hardcode_direct" = yes; then
46224 + add="$libdir/$linklib"
46225 + elif test "$hardcode_minus_L" = yes; then
46226 + add_dir="-L$libdir"
46227 + add="-l$name"
46228 + elif test "$hardcode_shlibpath_var" = yes; then
46229 + case :$finalize_shlibpath: in
46230 + *":$libdir:"*) ;;
46231 + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
46232 + esac
46233 + add="-l$name"
46234 + elif test "$hardcode_automatic" = yes; then
46235 + if test -n "$inst_prefix_dir" &&
46236 + test -f "$inst_prefix_dir$libdir/$linklib" ; then
46237 + add="$inst_prefix_dir$libdir/$linklib"
46238 + else
46239 + add="$libdir/$linklib"
46240 + fi
46241 + else
46242 + # We cannot seem to hardcode it, guess we'll fake it.
46243 + add_dir="-L$libdir"
46244 + # Try looking first in the location we're being installed to.
46245 + if test -n "$inst_prefix_dir"; then
46246 + case $libdir in
46247 + [\\/]*)
46248 + add_dir="$add_dir -L$inst_prefix_dir$libdir"
46249 + ;;
46250 + esac
46251 + fi
46252 + add="-l$name"
46253 + fi
46255 + if test "$linkmode" = prog; then
46256 + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
46257 + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
46258 + else
46259 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
46260 + test -n "$add" && deplibs="$add $deplibs"
46261 + fi
46262 + fi
46263 + elif test "$linkmode" = prog; then
46264 + # Here we assume that one of hardcode_direct or hardcode_minus_L
46265 + # is not unsupported. This is valid on all known static and
46266 + # shared platforms.
46267 + if test "$hardcode_direct" != unsupported; then
46268 + test -n "$old_library" && linklib="$old_library"
46269 + compile_deplibs="$dir/$linklib $compile_deplibs"
46270 + finalize_deplibs="$dir/$linklib $finalize_deplibs"
46271 + else
46272 + compile_deplibs="-l$name -L$dir $compile_deplibs"
46273 + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
46274 + fi
46275 + elif test "$build_libtool_libs" = yes; then
46276 + # Not a shared library
46277 + if test "$deplibs_check_method" != pass_all; then
46278 + # We're trying link a shared library against a static one
46279 + # but the system doesn't support it.
46281 + # Just print a warning and add the library to dependency_libs so
46282 + # that the program can be linked against the static library.
46283 + $echo
46284 + $echo "*** Warning: This system can not link to static lib archive $lib."
46285 + $echo "*** I have the capability to make that library automatically link in when"
46286 + $echo "*** you link to this library. But I can only do this if you have a"
46287 + $echo "*** shared version of the library, which you do not appear to have."
46288 + if test "$module" = yes; then
46289 + $echo "*** But as you try to build a module library, libtool will still create "
46290 + $echo "*** a static module, that should work as long as the dlopening application"
46291 + $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
46292 + if test -z "$global_symbol_pipe"; then
46293 + $echo
46294 + $echo "*** However, this would only work if libtool was able to extract symbol"
46295 + $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
46296 + $echo "*** not find such a program. So, this module is probably useless."
46297 + $echo "*** \`nm' from GNU binutils and a full rebuild may help."
46298 + fi
46299 + if test "$build_old_libs" = no; then
46300 + build_libtool_libs=module
46301 + build_old_libs=yes
46302 + else
46303 + build_libtool_libs=no
46304 + fi
46305 + fi
46306 + else
46307 + deplibs="$dir/$old_library $deplibs"
46308 + link_static=yes
46309 + fi
46310 + fi # link shared/static library?
46312 + if test "$linkmode" = lib; then
46313 + if test -n "$dependency_libs" &&
46314 + { test "$hardcode_into_libs" != yes ||
46315 + test "$build_old_libs" = yes ||
46316 + test "$link_static" = yes; }; then
46317 + # Extract -R from dependency_libs
46318 + temp_deplibs=
46319 + for libdir in $dependency_libs; do
46320 + case $libdir in
46321 + -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
46322 + case " $xrpath " in
46323 + *" $temp_xrpath "*) ;;
46324 + *) xrpath="$xrpath $temp_xrpath";;
46325 + esac;;
46326 + *) temp_deplibs="$temp_deplibs $libdir";;
46327 + esac
46328 + done
46329 + dependency_libs="$temp_deplibs"
46330 + fi
46332 + newlib_search_path="$newlib_search_path $absdir"
46333 + # Link against this library
46334 + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
46335 + # ... and its dependency_libs
46336 + tmp_libs=
46337 + for deplib in $dependency_libs; do
46338 + newdependency_libs="$deplib $newdependency_libs"
46339 + if test "X$duplicate_deps" = "Xyes" ; then
46340 + case "$tmp_libs " in
46341 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
46342 + esac
46343 + fi
46344 + tmp_libs="$tmp_libs $deplib"
46345 + done
46347 - *.a | *.lib)
46348 - if test -n "$link_against_libtool_libs"; then
46349 - $echo "$modename: error: cannot link libtool libraries into archives" 1>&2
46350 - exit 1
46351 + if test "$link_all_deplibs" != no; then
46352 + # Add the search paths of all dependency libraries
46353 + for deplib in $dependency_libs; do
46354 + case $deplib in
46355 + -L*) path="$deplib" ;;
46356 + *.la)
46357 + dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
46358 + test "X$dir" = "X$deplib" && dir="."
46359 + # We need an absolute path.
46360 + case $dir in
46361 + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
46362 + *)
46363 + absdir=`cd "$dir" && pwd`
46364 + if test -z "$absdir"; then
46365 + $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
46366 + absdir="$dir"
46367 + fi
46368 + ;;
46369 + esac
46370 + if grep "^installed=no" $deplib > /dev/null; then
46371 + path="$absdir/$objdir"
46372 + else
46373 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
46374 + if test -z "$libdir"; then
46375 + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
46376 + exit $EXIT_FAILURE
46377 + fi
46378 + if test "$absdir" != "$libdir"; then
46379 + $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
46380 + fi
46381 + path="$absdir"
46382 + fi
46383 + depdepl=
46384 + case $host in
46385 + *-*-darwin*)
46386 + # we do not want to link against static libs,
46387 + # but need to link against shared
46388 + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
46389 + if test -n "$deplibrary_names" ; then
46390 + for tmp in $deplibrary_names ; do
46391 + depdepl=$tmp
46392 + done
46393 + if test -f "$path/$depdepl" ; then
46394 + depdepl="$path/$depdepl"
46395 + fi
46396 + # do not add paths which are already there
46397 + case " $newlib_search_path " in
46398 + *" $path "*) ;;
46399 + *) newlib_search_path="$newlib_search_path $path";;
46400 + esac
46401 + fi
46402 + path=""
46403 + ;;
46404 + *)
46405 + path="-L$path"
46406 + ;;
46407 + esac
46408 + ;;
46409 + -l*)
46410 + case $host in
46411 + *-*-darwin*)
46412 + # Again, we only want to link against shared libraries
46413 + eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
46414 + for tmp in $newlib_search_path ; do
46415 + if test -f "$tmp/lib$tmp_libs.dylib" ; then
46416 + eval depdepl="$tmp/lib$tmp_libs.dylib"
46417 + break
46418 + fi
46419 + done
46420 + path=""
46421 + ;;
46422 + *) continue ;;
46423 + esac
46424 + ;;
46425 + *) continue ;;
46426 + esac
46427 + case " $deplibs " in
46428 + *" $path "*) ;;
46429 + *) deplibs="$path $deplibs" ;;
46430 + esac
46431 + case " $deplibs " in
46432 + *" $depdepl "*) ;;
46433 + *) deplibs="$depdepl $deplibs" ;;
46434 + esac
46435 + done
46436 + fi # link_all_deplibs != no
46437 + fi # linkmode = lib
46438 + done # for deplib in $libs
46439 + dependency_libs="$newdependency_libs"
46440 + if test "$pass" = dlpreopen; then
46441 + # Link the dlpreopened libraries before other libraries
46442 + for deplib in $save_deplibs; do
46443 + deplibs="$deplib $deplibs"
46444 + done
46446 + if test "$pass" != dlopen; then
46447 + if test "$pass" != conv; then
46448 + # Make sure lib_search_path contains only unique directories.
46449 + lib_search_path=
46450 + for dir in $newlib_search_path; do
46451 + case "$lib_search_path " in
46452 + *" $dir "*) ;;
46453 + *) lib_search_path="$lib_search_path $dir" ;;
46454 + esac
46455 + done
46456 + newlib_search_path=
46457 + fi
46459 + if test "$linkmode,$pass" != "prog,link"; then
46460 + vars="deplibs"
46461 + else
46462 + vars="compile_deplibs finalize_deplibs"
46463 + fi
46464 + for var in $vars dependency_libs; do
46465 + # Add libraries to $var in reverse order
46466 + eval tmp_libs=\"\$$var\"
46467 + new_libs=
46468 + for deplib in $tmp_libs; do
46469 + # FIXME: Pedantically, this is the right thing to do, so
46470 + # that some nasty dependency loop isn't accidentally
46471 + # broken:
46472 + #new_libs="$deplib $new_libs"
46473 + # Pragmatically, this seems to cause very few problems in
46474 + # practice:
46475 + case $deplib in
46476 + -L*) new_libs="$deplib $new_libs" ;;
46477 + -R*) ;;
46478 + *)
46479 + # And here is the reason: when a library appears more
46480 + # than once as an explicit dependence of a library, or
46481 + # is implicitly linked in more than once by the
46482 + # compiler, it is considered special, and multiple
46483 + # occurrences thereof are not removed. Compare this
46484 + # with having the same library being listed as a
46485 + # dependency of multiple other libraries: in this case,
46486 + # we know (pedantically, we assume) the library does not
46487 + # need to be listed more than once, so we keep only the
46488 + # last copy. This is not always right, but it is rare
46489 + # enough that we require users that really mean to play
46490 + # such unportable linking tricks to link the library
46491 + # using -Wl,-lname, so that libtool does not consider it
46492 + # for duplicate removal.
46493 + case " $specialdeplibs " in
46494 + *" $deplib "*) new_libs="$deplib $new_libs" ;;
46495 + *)
46496 + case " $new_libs " in
46497 + *" $deplib "*) ;;
46498 + *) new_libs="$deplib $new_libs" ;;
46499 + esac
46500 + ;;
46501 + esac
46502 + ;;
46503 + esac
46504 + done
46505 + tmp_libs=
46506 + for deplib in $new_libs; do
46507 + case $deplib in
46508 + -L*)
46509 + case " $tmp_libs " in
46510 + *" $deplib "*) ;;
46511 + *) tmp_libs="$tmp_libs $deplib" ;;
46512 + esac
46513 + ;;
46514 + *) tmp_libs="$tmp_libs $deplib" ;;
46515 + esac
46516 + done
46517 + eval $var=\"$tmp_libs\"
46518 + done # for var
46519 + fi
46520 + # Last step: remove runtime libs from dependency_libs
46521 + # (they stay in deplibs)
46522 + tmp_libs=
46523 + for i in $dependency_libs ; do
46524 + case " $predeps $postdeps $compiler_lib_search_path " in
46525 + *" $i "*)
46526 + i=""
46527 + ;;
46528 + esac
46529 + if test -n "$i" ; then
46530 + tmp_libs="$tmp_libs $i"
46531 + fi
46532 + done
46533 + dependency_libs=$tmp_libs
46534 + done # for pass
46535 + if test "$linkmode" = prog; then
46536 + dlfiles="$newdlfiles"
46537 + dlprefiles="$newdlprefiles"
46538 + fi
46540 + case $linkmode in
46541 + oldlib)
46542 if test -n "$deplibs"; then
46543 $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
46545 @@ -1552,7 +3076,7 @@
46548 if test -n "$vinfo"; then
46549 - $echo "$modename: warning: \`-version-info' is ignored for archives" 1>&2
46550 + $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
46553 if test -n "$release"; then
46554 @@ -1566,24 +3090,27 @@
46555 # Now set the variables for building old libraries.
46556 build_libtool_libs=no
46557 oldlibs="$output"
46558 + objs="$objs$old_deplibs"
46561 - *.la)
46562 + lib)
46563 # Make sure we only generate libraries of the form `libNAME.la'.
46564 - case "$outputname" in
46565 + case $outputname in
46566 lib*)
46567 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
46568 + eval shared_ext=\"$shrext_cmds\"
46569 eval libname=\"$libname_spec\"
46572 if test "$module" = no; then
46573 $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
46574 $echo "$help" 1>&2
46575 - exit 1
46576 + exit $EXIT_FAILURE
46578 if test "$need_lib_prefix" != no; then
46579 # Add the "lib" prefix for modules if required
46580 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
46581 + eval shared_ext=\"$shrext_cmds\"
46582 eval libname=\"$libname_spec\"
46583 else
46584 libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
46585 @@ -1591,30 +3118,24 @@
46587 esac
46589 - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
46590 - if test "X$output_objdir" = "X$output"; then
46591 - output_objdir="$objdir"
46592 - else
46593 - output_objdir="$output_objdir/$objdir"
46594 - fi
46596 if test -n "$objs"; then
46597 - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects:$objs" 2>&1
46598 - exit 1
46599 - fi
46601 - # How the heck are we supposed to write a wrapper for a shared library?
46602 - if test -n "$link_against_libtool_libs"; then
46603 - $echo "$modename: error: cannot link shared libraries into libtool libraries" 1>&2
46604 - exit 1
46605 + if test "$deplibs_check_method" != pass_all; then
46606 + $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
46607 + exit $EXIT_FAILURE
46608 + else
46609 + $echo
46610 + $echo "*** Warning: Linking the shared library $output against the non-libtool"
46611 + $echo "*** objects $objs is not portable!"
46612 + libobjs="$libobjs $objs"
46613 + fi
46616 - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
46617 - $echo "$modename: warning: \`-dlopen' is ignored for libtool libraries" 1>&2
46618 + if test "$dlself" != no; then
46619 + $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
46622 set dummy $rpath
46623 - if test $# -gt 2; then
46624 + if test "$#" -gt 2; then
46625 $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
46627 install_libdir="$2"
46628 @@ -1623,15 +3144,16 @@
46629 if test -z "$rpath"; then
46630 if test "$build_libtool_libs" = yes; then
46631 # Building a libtool convenience library.
46632 - libext=al
46633 + # Some compilers have problems with a `.al' extension so
46634 + # convenience libraries should have the same extension an
46635 + # archive normally would.
46636 oldlibs="$output_objdir/$libname.$libext $oldlibs"
46637 build_libtool_libs=convenience
46638 build_old_libs=yes
46640 - dependency_libs="$deplibs"
46642 if test -n "$vinfo"; then
46643 - $echo "$modename: warning: \`-version-info' is ignored for convenience libraries" 1>&2
46644 + $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
46647 if test -n "$release"; then
46648 @@ -1640,73 +3162,143 @@
46649 else
46651 # Parse the version information argument.
46652 - IFS="${IFS= }"; save_ifs="$IFS"; IFS=':'
46653 + save_ifs="$IFS"; IFS=':'
46654 set dummy $vinfo 0 0 0
46655 IFS="$save_ifs"
46657 if test -n "$8"; then
46658 $echo "$modename: too many parameters to \`-version-info'" 1>&2
46659 $echo "$help" 1>&2
46660 - exit 1
46661 + exit $EXIT_FAILURE
46664 - current="$2"
46665 - revision="$3"
46666 - age="$4"
46667 + # convert absolute version numbers to libtool ages
46668 + # this retains compatibility with .la files and attempts
46669 + # to make the code below a bit more comprehensible
46671 + case $vinfo_number in
46672 + yes)
46673 + number_major="$2"
46674 + number_minor="$3"
46675 + number_revision="$4"
46677 + # There are really only two kinds -- those that
46678 + # use the current revision as the major version
46679 + # and those that subtract age and use age as
46680 + # a minor version. But, then there is irix
46681 + # which has an extra 1 added just for fun
46683 + case $version_type in
46684 + darwin|linux|osf|windows)
46685 + current=`expr $number_major + $number_minor`
46686 + age="$number_minor"
46687 + revision="$number_revision"
46688 + ;;
46689 + freebsd-aout|freebsd-elf|sunos)
46690 + current="$number_major"
46691 + revision="$number_minor"
46692 + age="0"
46693 + ;;
46694 + irix|nonstopux)
46695 + current=`expr $number_major + $number_minor - 1`
46696 + age="$number_minor"
46697 + revision="$number_minor"
46698 + ;;
46699 + *)
46700 + $echo "$modename: unknown library version type \`$version_type'" 1>&2
46701 + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
46702 + exit $EXIT_FAILURE
46703 + ;;
46704 + esac
46705 + ;;
46706 + no)
46707 + current="$2"
46708 + revision="$3"
46709 + age="$4"
46710 + ;;
46711 + esac
46713 # Check that each of the things are valid numbers.
46714 - case "$current" in
46715 - 0 | [1-9] | [1-9][0-9]*) ;;
46716 + case $current in
46717 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
46719 - $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
46720 + $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
46721 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
46722 - exit 1
46723 + exit $EXIT_FAILURE
46725 esac
46727 - case "$revision" in
46728 - 0 | [1-9] | [1-9][0-9]*) ;;
46729 + case $revision in
46730 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
46732 - $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
46733 + $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
46734 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
46735 - exit 1
46736 + exit $EXIT_FAILURE
46738 esac
46740 - case "$age" in
46741 - 0 | [1-9] | [1-9][0-9]*) ;;
46742 + case $age in
46743 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
46745 - $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
46746 + $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
46747 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
46748 - exit 1
46749 + exit $EXIT_FAILURE
46751 esac
46753 - if test $age -gt $current; then
46754 + if test "$age" -gt "$current"; then
46755 $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
46756 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
46757 - exit 1
46758 + exit $EXIT_FAILURE
46761 # Calculate the version variables.
46762 major=
46763 versuffix=
46764 verstring=
46765 - case "$version_type" in
46766 + case $version_type in
46767 none) ;;
46769 - irix)
46770 + darwin)
46771 + # Like Linux, but with the current version available in
46772 + # verstring for coding it into the library header
46773 + major=.`expr $current - $age`
46774 + versuffix="$major.$age.$revision"
46775 + # Darwin ld doesn't like 0 for these options...
46776 + minor_current=`expr $current + 1`
46777 + verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
46778 + ;;
46780 + freebsd-aout)
46781 + major=".$current"
46782 + versuffix=".$current.$revision";
46783 + ;;
46785 + freebsd-elf)
46786 + major=".$current"
46787 + versuffix=".$current";
46788 + ;;
46790 + irix | nonstopux)
46791 major=`expr $current - $age + 1`
46792 - versuffix="$major.$revision"
46793 - verstring="sgi$major.$revision"
46795 + case $version_type in
46796 + nonstopux) verstring_prefix=nonstopux ;;
46797 + *) verstring_prefix=sgi ;;
46798 + esac
46799 + verstring="$verstring_prefix$major.$revision"
46801 # Add in all the interfaces that we are compatible with.
46802 loop=$revision
46803 - while test $loop != 0; do
46804 + while test "$loop" -ne 0; do
46805 iface=`expr $revision - $loop`
46806 loop=`expr $loop - 1`
46807 - verstring="sgi$major.$iface:$verstring"
46808 + verstring="$verstring_prefix$major.$iface:$verstring"
46809 done
46811 + # Before this point, $major must not contain `.'.
46812 + major=.$major
46813 + versuffix="$major.$revision"
46816 linux)
46817 @@ -1715,13 +3307,13 @@
46820 osf)
46821 - major=`expr $current - $age`
46822 + major=.`expr $current - $age`
46823 versuffix=".$current.$age.$revision"
46824 verstring="$current.$age.$revision"
46826 # Add in all the interfaces that we are compatible with.
46827 loop=$age
46828 - while test $loop != 0; do
46829 + while test "$loop" -ne 0; do
46830 iface=`expr $current - $loop`
46831 loop=`expr $loop - 1`
46832 verstring="$verstring:${iface}.0"
46833 @@ -1736,34 +3328,33 @@
46834 versuffix=".$current.$revision"
46837 - freebsd-aout)
46838 - major=".$current"
46839 - versuffix=".$current.$revision";
46840 - ;;
46842 - freebsd-elf)
46843 - major=".$current"
46844 - versuffix=".$current";
46845 - ;;
46847 windows)
46848 - # Like Linux, but with '-' rather than '.', since we only
46849 - # want one extension on Windows 95.
46850 + # Use '-' rather than '.', since we only want one
46851 + # extension on DOS 8.3 filesystems.
46852 major=`expr $current - $age`
46853 - versuffix="-$major-$age-$revision"
46854 + versuffix="-$major"
46858 $echo "$modename: unknown library version type \`$version_type'" 1>&2
46859 - echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
46860 - exit 1
46861 + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
46862 + exit $EXIT_FAILURE
46864 esac
46866 # Clear the version info if we defaulted, and they specified a release.
46867 if test -z "$vinfo" && test -n "$release"; then
46868 major=
46869 - verstring="0.0"
46870 + case $version_type in
46871 + darwin)
46872 + # we can't check for "0.0" in archive_cmds due to quoting
46873 + # problems, so we reset it completely
46874 + verstring=
46875 + ;;
46876 + *)
46877 + verstring="0.0"
46878 + ;;
46879 + esac
46880 if test "$need_version" = no; then
46881 versuffix=
46882 else
46883 @@ -1777,7 +3368,7 @@
46884 versuffix=
46885 verstring=""
46889 # Check to see if the archive will have undefined symbols.
46890 if test "$allow_undefined" = yes; then
46891 if test "$allow_undefined_flag" = unsupported; then
46892 @@ -1789,29 +3380,32 @@
46893 # Don't allow undefined symbols.
46894 allow_undefined_flag="$no_undefined_flag"
46897 - dependency_libs="$deplibs"
46898 - case "$host" in
46899 - *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
46900 - # these systems don't actually have a c library (as such)!
46901 - ;;
46902 - *)
46903 - # Add libc to deplibs on all other systems.
46904 - deplibs="$deplibs -lc"
46905 - ;;
46906 - esac
46909 - # Create the output directory, or remove our outputs if we need to.
46910 - if test -d $output_objdir; then
46911 - $show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*"
46912 - $run ${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*
46913 - else
46914 - $show "$mkdir $output_objdir"
46915 - $run $mkdir $output_objdir
46916 - status=$?
46917 - if test $status -ne 0 && test ! -d $output_objdir; then
46918 - exit $status
46919 + if test "$mode" != relink; then
46920 + # Remove our outputs, but don't remove object files since they
46921 + # may have been created when compiling PIC objects.
46922 + removelist=
46923 + tempremovelist=`$echo "$output_objdir/*"`
46924 + for p in $tempremovelist; do
46925 + case $p in
46926 + *.$objext)
46927 + ;;
46928 + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
46929 + if test "X$precious_files_regex" != "X"; then
46930 + if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
46931 + then
46932 + continue
46933 + fi
46934 + fi
46935 + removelist="$removelist $p"
46936 + ;;
46937 + *) ;;
46938 + esac
46939 + done
46940 + if test -n "$removelist"; then
46941 + $show "${rm}r $removelist"
46942 + $run ${rm}r $removelist
46946 @@ -1823,7 +3417,79 @@
46947 oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
46950 + # Eliminate all temporary directories.
46951 + for path in $notinst_path; do
46952 + lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
46953 + deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
46954 + dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
46955 + done
46957 + if test -n "$xrpath"; then
46958 + # If the user specified any rpath flags, then add them.
46959 + temp_xrpath=
46960 + for libdir in $xrpath; do
46961 + temp_xrpath="$temp_xrpath -R$libdir"
46962 + case "$finalize_rpath " in
46963 + *" $libdir "*) ;;
46964 + *) finalize_rpath="$finalize_rpath $libdir" ;;
46965 + esac
46966 + done
46967 + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
46968 + dependency_libs="$temp_xrpath $dependency_libs"
46969 + fi
46970 + fi
46972 + # Make sure dlfiles contains only unique files that won't be dlpreopened
46973 + old_dlfiles="$dlfiles"
46974 + dlfiles=
46975 + for lib in $old_dlfiles; do
46976 + case " $dlprefiles $dlfiles " in
46977 + *" $lib "*) ;;
46978 + *) dlfiles="$dlfiles $lib" ;;
46979 + esac
46980 + done
46982 + # Make sure dlprefiles contains only unique files
46983 + old_dlprefiles="$dlprefiles"
46984 + dlprefiles=
46985 + for lib in $old_dlprefiles; do
46986 + case "$dlprefiles " in
46987 + *" $lib "*) ;;
46988 + *) dlprefiles="$dlprefiles $lib" ;;
46989 + esac
46990 + done
46992 if test "$build_libtool_libs" = yes; then
46993 + if test -n "$rpath"; then
46994 + case $host in
46995 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
46996 + # these systems don't actually have a c library (as such)!
46997 + ;;
46998 + *-*-rhapsody* | *-*-darwin1.[012])
46999 + # Rhapsody C library is in the System framework
47000 + deplibs="$deplibs -framework System"
47001 + ;;
47002 + *-*-netbsd*)
47003 + # Don't link with libc until the a.out ld.so is fixed.
47004 + ;;
47005 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
47006 + # Do not include libc due to us having libc/libc_r.
47007 + ;;
47008 + *-*-sco3.2v5* | *-*-sco5v6*)
47009 + # Causes problems with __ctype
47010 + ;;
47011 + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
47012 + # Compiler inserts libc in the correct place for threads to work
47013 + ;;
47014 + *)
47015 + # Add libc to deplibs on all other systems if necessary.
47016 + if test "$build_libtool_need_lc" = "yes"; then
47017 + deplibs="$deplibs -lc"
47018 + fi
47019 + ;;
47020 + esac
47021 + fi
47023 # Transform deplibs into only deplibs that can be linked in shared.
47024 name_save=$name
47025 libname_save=$libname
47026 @@ -1838,13 +3504,13 @@
47027 major=""
47028 newdeplibs=
47029 droppeddeps=no
47030 - case "$deplibs_check_method" in
47031 + case $deplibs_check_method in
47032 pass_all)
47033 # Don't check for shared/static. Everything works.
47034 # This might be a little naive. We might want to check
47035 # whether the library exists or not. But this is on
47036 # osf3 & osf4 and I'm not really sure... Just
47037 - # implementing what was already the behaviour.
47038 + # implementing what was already the behavior.
47039 newdeplibs=$deplibs
47041 test_compile)
47042 @@ -1857,64 +3523,88 @@
47043 int main() { return 0; }
47045 $rm conftest
47046 - $CC -o conftest conftest.c $deplibs
47047 - if test $? -eq 0 ; then
47048 + $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
47049 + if test "$?" -eq 0 ; then
47050 ldd_output=`ldd conftest`
47051 for i in $deplibs; do
47052 - name="`expr $i : '-l\(.*\)'`"
47053 + name=`expr $i : '-l\(.*\)'`
47054 # If $name is empty we are operating on a -L argument.
47055 - if test "$name" != "" ; then
47056 - libname=`eval \\$echo \"$libname_spec\"`
47057 - deplib_matches=`eval \\$echo \"$library_names_spec\"`
47058 - set dummy $deplib_matches
47059 - deplib_match=$2
47060 - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
47061 - newdeplibs="$newdeplibs $i"
47062 - else
47063 - droppeddeps=yes
47064 - echo
47065 - echo "*** Warning: This library needs some functionality provided by $i."
47066 - echo "*** I have the capability to make that library automatically link in when"
47067 - echo "*** you link to this library. But I can only do this if you have a"
47068 - echo "*** shared version of the library, which you do not appear to have."
47069 + if test "$name" != "" && test "$name" -ne "0"; then
47070 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
47071 + case " $predeps $postdeps " in
47072 + *" $i "*)
47073 + newdeplibs="$newdeplibs $i"
47074 + i=""
47075 + ;;
47076 + esac
47077 + fi
47078 + if test -n "$i" ; then
47079 + libname=`eval \\$echo \"$libname_spec\"`
47080 + deplib_matches=`eval \\$echo \"$library_names_spec\"`
47081 + set dummy $deplib_matches
47082 + deplib_match=$2
47083 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
47084 + newdeplibs="$newdeplibs $i"
47085 + else
47086 + droppeddeps=yes
47087 + $echo
47088 + $echo "*** Warning: dynamic linker does not accept needed library $i."
47089 + $echo "*** I have the capability to make that library automatically link in when"
47090 + $echo "*** you link to this library. But I can only do this if you have a"
47091 + $echo "*** shared version of the library, which I believe you do not have"
47092 + $echo "*** because a test_compile did reveal that the linker did not use it for"
47093 + $echo "*** its dynamic dependency list that programs get resolved with at runtime."
47094 + fi
47096 else
47097 newdeplibs="$newdeplibs $i"
47099 done
47100 else
47101 - # Error occured in the first compile. Let's try to salvage the situation:
47102 - # Compile a seperate program for each library.
47103 + # Error occurred in the first compile. Let's try to salvage
47104 + # the situation: Compile a separate program for each library.
47105 for i in $deplibs; do
47106 - name="`expr $i : '-l\(.*\)'`"
47107 - # If $name is empty we are operating on a -L argument.
47108 - if test "$name" != "" ; then
47109 + name=`expr $i : '-l\(.*\)'`
47110 + # If $name is empty we are operating on a -L argument.
47111 + if test "$name" != "" && test "$name" != "0"; then
47112 $rm conftest
47113 - $CC -o conftest conftest.c $i
47114 + $LTCC $LTCFLAGS -o conftest conftest.c $i
47115 # Did it work?
47116 - if test $? -eq 0 ; then
47117 + if test "$?" -eq 0 ; then
47118 ldd_output=`ldd conftest`
47119 - libname=`eval \\$echo \"$libname_spec\"`
47120 - deplib_matches=`eval \\$echo \"$library_names_spec\"`
47121 - set dummy $deplib_matches
47122 - deplib_match=$2
47123 - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
47124 - newdeplibs="$newdeplibs $i"
47125 - else
47126 - droppeddeps=yes
47127 - echo
47128 - echo "*** Warning: This library needs some functionality provided by $i."
47129 - echo "*** I have the capability to make that library automatically link in when"
47130 - echo "*** you link to this library. But I can only do this if you have a"
47131 - echo "*** shared version of the library, which you do not appear to have."
47132 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
47133 + case " $predeps $postdeps " in
47134 + *" $i "*)
47135 + newdeplibs="$newdeplibs $i"
47136 + i=""
47137 + ;;
47138 + esac
47139 + fi
47140 + if test -n "$i" ; then
47141 + libname=`eval \\$echo \"$libname_spec\"`
47142 + deplib_matches=`eval \\$echo \"$library_names_spec\"`
47143 + set dummy $deplib_matches
47144 + deplib_match=$2
47145 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
47146 + newdeplibs="$newdeplibs $i"
47147 + else
47148 + droppeddeps=yes
47149 + $echo
47150 + $echo "*** Warning: dynamic linker does not accept needed library $i."
47151 + $echo "*** I have the capability to make that library automatically link in when"
47152 + $echo "*** you link to this library. But I can only do this if you have a"
47153 + $echo "*** shared version of the library, which you do not appear to have"
47154 + $echo "*** because a test_compile did reveal that the linker did not use this one"
47155 + $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
47156 + fi
47158 else
47159 droppeddeps=yes
47160 - echo
47161 - echo "*** Warning! Library $i is needed by this library but I was not able to"
47162 - echo "*** make it link in! You will probably need to install it or some"
47163 - echo "*** library that it depends on before this library will be fully"
47164 - echo "*** functional. Installing it before continuing would be even better."
47165 + $echo
47166 + $echo "*** Warning! Library $i is needed by this library but I was not able to"
47167 + $echo "*** make it link in! You will probably need to install it or some"
47168 + $echo "*** library that it depends on before this library will be fully"
47169 + $echo "*** functional. Installing it before continuing would be even better."
47171 else
47172 newdeplibs="$newdeplibs $i"
47173 @@ -1924,19 +3614,28 @@
47175 file_magic*)
47176 set dummy $deplibs_check_method
47177 - file_magic_regex="`expr \"$deplibs_check_method\" : \"$2 \(.*\)\"`"
47178 + file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
47179 for a_deplib in $deplibs; do
47180 - name="`expr $a_deplib : '-l\(.*\)'`"
47181 + name=`expr $a_deplib : '-l\(.*\)'`
47182 # If $name is empty we are operating on a -L argument.
47183 - if test "$name" != "" ; then
47184 - libname=`eval \\$echo \"$libname_spec\"`
47185 - for i in $lib_search_path; do
47186 - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
47187 - for potent_lib in $potential_libs; do
47188 + if test "$name" != "" && test "$name" != "0"; then
47189 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
47190 + case " $predeps $postdeps " in
47191 + *" $a_deplib "*)
47192 + newdeplibs="$newdeplibs $a_deplib"
47193 + a_deplib=""
47194 + ;;
47195 + esac
47196 + fi
47197 + if test -n "$a_deplib" ; then
47198 + libname=`eval \\$echo \"$libname_spec\"`
47199 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
47200 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
47201 + for potent_lib in $potential_libs; do
47202 # Follow soft links.
47203 if ls -lLd "$potent_lib" 2>/dev/null \
47204 | grep " -> " >/dev/null; then
47205 - continue
47206 + continue
47208 # The statement above tries to avoid entering an
47209 # endless loop below, in case of cyclic links.
47210 @@ -1945,28 +3644,88 @@
47211 # but so what?
47212 potlib="$potent_lib"
47213 while test -h "$potlib" 2>/dev/null; do
47214 - potliblink=`ls -ld $potlib | sed 's/.* -> //'`
47215 - case "$potliblink" in
47216 + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
47217 + case $potliblink in
47218 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
47219 *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
47220 esac
47221 done
47222 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
47223 - | sed 10q \
47224 - | egrep "$file_magic_regex" > /dev/null; then
47225 + | ${SED} 10q \
47226 + | $EGREP "$file_magic_regex" > /dev/null; then
47227 newdeplibs="$newdeplibs $a_deplib"
47228 a_deplib=""
47229 break 2
47231 - done
47232 - done
47233 + done
47234 + done
47235 + fi
47236 + if test -n "$a_deplib" ; then
47237 + droppeddeps=yes
47238 + $echo
47239 + $echo "*** Warning: linker path does not have real file for library $a_deplib."
47240 + $echo "*** I have the capability to make that library automatically link in when"
47241 + $echo "*** you link to this library. But I can only do this if you have a"
47242 + $echo "*** shared version of the library, which you do not appear to have"
47243 + $echo "*** because I did check the linker path looking for a file starting"
47244 + if test -z "$potlib" ; then
47245 + $echo "*** with $libname but no candidates were found. (...for file magic test)"
47246 + else
47247 + $echo "*** with $libname and none of the candidates passed a file format test"
47248 + $echo "*** using a file magic. Last file checked: $potlib"
47249 + fi
47250 + fi
47251 + else
47252 + # Add a -L argument.
47253 + newdeplibs="$newdeplibs $a_deplib"
47254 + fi
47255 + done # Gone through all deplibs.
47256 + ;;
47257 + match_pattern*)
47258 + set dummy $deplibs_check_method
47259 + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
47260 + for a_deplib in $deplibs; do
47261 + name=`expr $a_deplib : '-l\(.*\)'`
47262 + # If $name is empty we are operating on a -L argument.
47263 + if test -n "$name" && test "$name" != "0"; then
47264 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
47265 + case " $predeps $postdeps " in
47266 + *" $a_deplib "*)
47267 + newdeplibs="$newdeplibs $a_deplib"
47268 + a_deplib=""
47269 + ;;
47270 + esac
47271 + fi
47272 + if test -n "$a_deplib" ; then
47273 + libname=`eval \\$echo \"$libname_spec\"`
47274 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
47275 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
47276 + for potent_lib in $potential_libs; do
47277 + potlib="$potent_lib" # see symlink-check above in file_magic test
47278 + if eval $echo \"$potent_lib\" 2>/dev/null \
47279 + | ${SED} 10q \
47280 + | $EGREP "$match_pattern_regex" > /dev/null; then
47281 + newdeplibs="$newdeplibs $a_deplib"
47282 + a_deplib=""
47283 + break 2
47284 + fi
47285 + done
47286 + done
47287 + fi
47288 if test -n "$a_deplib" ; then
47289 droppeddeps=yes
47290 - echo
47291 - echo "*** Warning: This library needs some functionality provided by $a_deplib."
47292 - echo "*** I have the capability to make that library automatically link in when"
47293 - echo "*** you link to this library. But I can only do this if you have a"
47294 - echo "*** shared version of the library, which you do not appear to have."
47295 + $echo
47296 + $echo "*** Warning: linker path does not have real file for library $a_deplib."
47297 + $echo "*** I have the capability to make that library automatically link in when"
47298 + $echo "*** you link to this library. But I can only do this if you have a"
47299 + $echo "*** shared version of the library, which you do not appear to have"
47300 + $echo "*** because I did check the linker path looking for a file starting"
47301 + if test -z "$potlib" ; then
47302 + $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
47303 + else
47304 + $echo "*** with $libname and none of the candidates passed a file format test"
47305 + $echo "*** using a regex pattern. Last file checked: $potlib"
47306 + fi
47308 else
47309 # Add a -L argument.
47310 @@ -1976,16 +3735,23 @@
47312 none | unknown | *)
47313 newdeplibs=""
47314 - if $echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
47315 - -e 's/ -[LR][^ ]*//g' -e 's/[ ]//g' |
47316 - grep . >/dev/null; then
47317 - echo
47318 + tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
47319 + -e 's/ -[LR][^ ]*//g'`
47320 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
47321 + for i in $predeps $postdeps ; do
47322 + # can't use Xsed below, because $i might contain '/'
47323 + tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
47324 + done
47325 + fi
47326 + if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
47327 + | grep . >/dev/null; then
47328 + $echo
47329 if test "X$deplibs_check_method" = "Xnone"; then
47330 - echo "*** Warning: inter-library dependencies are not supported in this platform."
47331 + $echo "*** Warning: inter-library dependencies are not supported in this platform."
47332 else
47333 - echo "*** Warning: inter-library dependencies are not known to be supported."
47334 + $echo "*** Warning: inter-library dependencies are not known to be supported."
47336 - echo "*** All declared inter-library dependencies are being dropped."
47337 + $echo "*** All declared inter-library dependencies are being dropped."
47338 droppeddeps=yes
47341 @@ -1996,19 +3762,26 @@
47342 libname=$libname_save
47343 name=$name_save
47345 + case $host in
47346 + *-*-rhapsody* | *-*-darwin1.[012])
47347 + # On Rhapsody replace the C library is the System framework
47348 + newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
47349 + ;;
47350 + esac
47352 if test "$droppeddeps" = yes; then
47353 if test "$module" = yes; then
47354 - echo
47355 - echo "*** Warning: libtool could not satisfy all declared inter-library"
47356 - echo "*** dependencies of module $libname. Therefore, libtool will create"
47357 - echo "*** a static module, that should work as long as the dlopening"
47358 - echo "*** application is linked with the -dlopen flag."
47359 + $echo
47360 + $echo "*** Warning: libtool could not satisfy all declared inter-library"
47361 + $echo "*** dependencies of module $libname. Therefore, libtool will create"
47362 + $echo "*** a static module, that should work as long as the dlopening"
47363 + $echo "*** application is linked with the -dlopen flag."
47364 if test -z "$global_symbol_pipe"; then
47365 - echo
47366 - echo "*** However, this would only work if libtool was able to extract symbol"
47367 - echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
47368 - echo "*** not find such a program. So, this module is probably useless."
47369 - echo "*** \`nm' from GNU binutils and a full rebuild may help."
47370 + $echo
47371 + $echo "*** However, this would only work if libtool was able to extract symbol"
47372 + $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
47373 + $echo "*** not find such a program. So, this module is probably useless."
47374 + $echo "*** \`nm' from GNU binutils and a full rebuild may help."
47376 if test "$build_old_libs" = no; then
47377 oldlibs="$output_objdir/$libname.$libext"
47378 @@ -2018,23 +3791,127 @@
47379 build_libtool_libs=no
47381 else
47382 - echo "*** The inter-library dependencies that have been dropped here will be"
47383 - echo "*** automatically added whenever a program is linked with this library"
47384 - echo "*** or is declared to -dlopen it."
47385 + $echo "*** The inter-library dependencies that have been dropped here will be"
47386 + $echo "*** automatically added whenever a program is linked with this library"
47387 + $echo "*** or is declared to -dlopen it."
47389 + if test "$allow_undefined" = no; then
47390 + $echo
47391 + $echo "*** Since this library must not contain undefined symbols,"
47392 + $echo "*** because either the platform does not support them or"
47393 + $echo "*** it was explicitly requested with -no-undefined,"
47394 + $echo "*** libtool will only create a static version of it."
47395 + if test "$build_old_libs" = no; then
47396 + oldlibs="$output_objdir/$libname.$libext"
47397 + build_libtool_libs=module
47398 + build_old_libs=yes
47399 + else
47400 + build_libtool_libs=no
47401 + fi
47402 + fi
47405 # Done checking deplibs!
47406 deplibs=$newdeplibs
47410 + # move library search paths that coincide with paths to not yet
47411 + # installed libraries to the beginning of the library search list
47412 + new_libs=
47413 + for path in $notinst_path; do
47414 + case " $new_libs " in
47415 + *" -L$path/$objdir "*) ;;
47416 + *)
47417 + case " $deplibs " in
47418 + *" -L$path/$objdir "*)
47419 + new_libs="$new_libs -L$path/$objdir" ;;
47420 + esac
47421 + ;;
47422 + esac
47423 + done
47424 + for deplib in $deplibs; do
47425 + case $deplib in
47426 + -L*)
47427 + case " $new_libs " in
47428 + *" $deplib "*) ;;
47429 + *) new_libs="$new_libs $deplib" ;;
47430 + esac
47431 + ;;
47432 + *) new_libs="$new_libs $deplib" ;;
47433 + esac
47434 + done
47435 + deplibs="$new_libs"
47438 # All the library-specific variables (install_libdir is set above).
47439 library_names=
47440 old_library=
47441 dlname=
47444 # Test again, we may have decided not to build it any more
47445 if test "$build_libtool_libs" = yes; then
47446 + if test "$hardcode_into_libs" = yes; then
47447 + # Hardcode the library paths
47448 + hardcode_libdirs=
47449 + dep_rpath=
47450 + rpath="$finalize_rpath"
47451 + test "$mode" != relink && rpath="$compile_rpath$rpath"
47452 + for libdir in $rpath; do
47453 + if test -n "$hardcode_libdir_flag_spec"; then
47454 + if test -n "$hardcode_libdir_separator"; then
47455 + if test -z "$hardcode_libdirs"; then
47456 + hardcode_libdirs="$libdir"
47457 + else
47458 + # Just accumulate the unique libdirs.
47459 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
47460 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
47461 + ;;
47462 + *)
47463 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
47464 + ;;
47465 + esac
47466 + fi
47467 + else
47468 + eval flag=\"$hardcode_libdir_flag_spec\"
47469 + dep_rpath="$dep_rpath $flag"
47470 + fi
47471 + elif test -n "$runpath_var"; then
47472 + case "$perm_rpath " in
47473 + *" $libdir "*) ;;
47474 + *) perm_rpath="$perm_rpath $libdir" ;;
47475 + esac
47476 + fi
47477 + done
47478 + # Substitute the hardcoded libdirs into the rpath.
47479 + if test -n "$hardcode_libdir_separator" &&
47480 + test -n "$hardcode_libdirs"; then
47481 + libdir="$hardcode_libdirs"
47482 + if test -n "$hardcode_libdir_flag_spec_ld"; then
47483 + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
47484 + else
47485 + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
47486 + fi
47487 + fi
47488 + if test -n "$runpath_var" && test -n "$perm_rpath"; then
47489 + # We should set the runpath_var.
47490 + rpath=
47491 + for dir in $perm_rpath; do
47492 + rpath="$rpath$dir:"
47493 + done
47494 + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
47495 + fi
47496 + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
47497 + fi
47499 + shlibpath="$finalize_shlibpath"
47500 + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
47501 + if test -n "$shlibpath"; then
47502 + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
47503 + fi
47505 # Get the real and link names of the library.
47506 + eval shared_ext=\"$shrext_cmds\"
47507 eval library_names=\"$library_names_spec\"
47508 set dummy $library_names
47509 realname="$2"
47510 @@ -2045,30 +3922,17 @@
47511 else
47512 soname="$realname"
47514 + if test -z "$dlname"; then
47515 + dlname=$soname
47516 + fi
47518 lib="$output_objdir/$realname"
47519 + linknames=
47520 for link
47522 linknames="$linknames $link"
47523 done
47525 - # Ensure that we have .o objects for linkers which dislike .lo
47526 - # (e.g. aix) in case we are running --disable-static
47527 - for obj in $libobjs; do
47528 - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
47529 - if test "X$xdir" = "X$obj"; then
47530 - xdir="."
47531 - else
47532 - xdir="$xdir"
47533 - fi
47534 - baseobj=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
47535 - oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"`
47536 - if test ! -f $xdir/$oldobj; then
47537 - $show "(cd $xdir && ${LN_S} $baseobj $oldobj)"
47538 - $run eval '(cd $xdir && ${LN_S} $baseobj $oldobj)' || exit $?
47539 - fi
47540 - done
47542 # Use standard objects if they are pic
47543 test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
47545 @@ -2078,17 +3942,29 @@
47546 $show "generating symbol list for \`$libname.la'"
47547 export_symbols="$output_objdir/$libname.exp"
47548 $run $rm $export_symbols
47549 - eval cmds=\"$export_symbols_cmds\"
47550 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
47551 + cmds=$export_symbols_cmds
47552 + save_ifs="$IFS"; IFS='~'
47553 for cmd in $cmds; do
47554 IFS="$save_ifs"
47555 - $show "$cmd"
47556 - $run eval "$cmd" || exit $?
47557 + eval cmd=\"$cmd\"
47558 + if len=`expr "X$cmd" : ".*"` &&
47559 + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
47560 + $show "$cmd"
47561 + $run eval "$cmd" || exit $?
47562 + skipped_export=false
47563 + else
47564 + # The command line is too long to execute in one step.
47565 + $show "using reloadable object file for export list..."
47566 + skipped_export=:
47567 + # Break out early, otherwise skipped_export may be
47568 + # set to false by a later but shorter cmd.
47569 + break
47570 + fi
47571 done
47572 IFS="$save_ifs"
47573 if test -n "$export_symbols_regex"; then
47574 - $show "egrep -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
47575 - $run eval 'egrep -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
47576 + $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
47577 + $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
47578 $show "$mv \"${export_symbols}T\" \"$export_symbols\""
47579 $run eval '$mv "${export_symbols}T" "$export_symbols"'
47581 @@ -2099,65 +3975,212 @@
47582 $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
47585 + tmp_deplibs=
47586 + for test_deplib in $deplibs; do
47587 + case " $convenience " in
47588 + *" $test_deplib "*) ;;
47589 + *)
47590 + tmp_deplibs="$tmp_deplibs $test_deplib"
47591 + ;;
47592 + esac
47593 + done
47594 + deplibs="$tmp_deplibs"
47596 if test -n "$convenience"; then
47597 if test -n "$whole_archive_flag_spec"; then
47598 + save_libobjs=$libobjs
47599 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
47600 else
47601 gentop="$output_objdir/${outputname}x"
47602 - $show "${rm}r $gentop"
47603 - $run ${rm}r "$gentop"
47604 - $show "mkdir $gentop"
47605 - $run mkdir "$gentop"
47606 - status=$?
47607 - if test $status -ne 0 && test ! -d "$gentop"; then
47608 - exit $status
47609 - fi
47610 generated="$generated $gentop"
47612 - for xlib in $convenience; do
47613 - # Extract the objects.
47614 - case "$xlib" in
47615 - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
47616 - *) xabs=`pwd`"/$xlib" ;;
47617 - esac
47618 - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
47619 - xdir="$gentop/$xlib"
47621 - $show "${rm}r $xdir"
47622 - $run ${rm}r "$xdir"
47623 - $show "mkdir $xdir"
47624 - $run mkdir "$xdir"
47625 - status=$?
47626 - if test $status -ne 0 && test ! -d "$xdir"; then
47627 - exit $status
47628 - fi
47629 - $show "(cd $xdir && $AR x $xabs)"
47630 - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
47632 - libobjs="$libobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
47633 - done
47634 + func_extract_archives $gentop $convenience
47635 + libobjs="$libobjs $func_extract_archives_result"
47640 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
47641 eval flag=\"$thread_safe_flag_spec\"
47642 - linkopts="$linkopts $flag"
47643 + linker_flags="$linker_flags $flag"
47644 + fi
47646 + # Make a backup of the uninstalled library when relinking
47647 + if test "$mode" = relink; then
47648 + $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
47651 # Do each of the archive commands.
47652 + if test "$module" = yes && test -n "$module_cmds" ; then
47653 + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
47654 + eval test_cmds=\"$module_expsym_cmds\"
47655 + cmds=$module_expsym_cmds
47656 + else
47657 + eval test_cmds=\"$module_cmds\"
47658 + cmds=$module_cmds
47659 + fi
47660 + else
47661 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
47662 - eval cmds=\"$archive_expsym_cmds\"
47663 + eval test_cmds=\"$archive_expsym_cmds\"
47664 + cmds=$archive_expsym_cmds
47665 + else
47666 + eval test_cmds=\"$archive_cmds\"
47667 + cmds=$archive_cmds
47668 + fi
47669 + fi
47671 + if test "X$skipped_export" != "X:" &&
47672 + len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
47673 + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
47675 else
47676 - eval cmds=\"$archive_cmds\"
47677 + # The command line is too long to link in one step, link piecewise.
47678 + $echo "creating reloadable object files..."
47680 + # Save the value of $output and $libobjs because we want to
47681 + # use them later. If we have whole_archive_flag_spec, we
47682 + # want to use save_libobjs as it was before
47683 + # whole_archive_flag_spec was expanded, because we can't
47684 + # assume the linker understands whole_archive_flag_spec.
47685 + # This may have to be revisited, in case too many
47686 + # convenience libraries get linked in and end up exceeding
47687 + # the spec.
47688 + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
47689 + save_libobjs=$libobjs
47690 + fi
47691 + save_output=$output
47692 + output_la=`$echo "X$output" | $Xsed -e "$basename"`
47694 + # Clear the reloadable object creation command queue and
47695 + # initialize k to one.
47696 + test_cmds=
47697 + concat_cmds=
47698 + objlist=
47699 + delfiles=
47700 + last_robj=
47701 + k=1
47702 + output=$output_objdir/$output_la-${k}.$objext
47703 + # Loop over the list of objects to be linked.
47704 + for obj in $save_libobjs
47705 + do
47706 + eval test_cmds=\"$reload_cmds $objlist $last_robj\"
47707 + if test "X$objlist" = X ||
47708 + { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
47709 + test "$len" -le "$max_cmd_len"; }; then
47710 + objlist="$objlist $obj"
47711 + else
47712 + # The command $test_cmds is almost too long, add a
47713 + # command to the queue.
47714 + if test "$k" -eq 1 ; then
47715 + # The first file doesn't have a previous command to add.
47716 + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
47717 + else
47718 + # All subsequent reloadable object files will link in
47719 + # the last one created.
47720 + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
47721 + fi
47722 + last_robj=$output_objdir/$output_la-${k}.$objext
47723 + k=`expr $k + 1`
47724 + output=$output_objdir/$output_la-${k}.$objext
47725 + objlist=$obj
47726 + len=1
47727 + fi
47728 + done
47729 + # Handle the remaining objects by creating one last
47730 + # reloadable object file. All subsequent reloadable object
47731 + # files will link in the last one created.
47732 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
47733 + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
47735 + if ${skipped_export-false}; then
47736 + $show "generating symbol list for \`$libname.la'"
47737 + export_symbols="$output_objdir/$libname.exp"
47738 + $run $rm $export_symbols
47739 + libobjs=$output
47740 + # Append the command to create the export file.
47741 + eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
47742 + fi
47744 + # Set up a command to remove the reloadable object files
47745 + # after they are used.
47746 + i=0
47747 + while test "$i" -lt "$k"
47748 + do
47749 + i=`expr $i + 1`
47750 + delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
47751 + done
47753 + $echo "creating a temporary reloadable object file: $output"
47755 + # Loop through the commands generated above and execute them.
47756 + save_ifs="$IFS"; IFS='~'
47757 + for cmd in $concat_cmds; do
47758 + IFS="$save_ifs"
47759 + $show "$cmd"
47760 + $run eval "$cmd" || exit $?
47761 + done
47762 + IFS="$save_ifs"
47764 + libobjs=$output
47765 + # Restore the value of output.
47766 + output=$save_output
47768 + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
47769 + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
47770 + fi
47771 + # Expand the library linking commands again to reset the
47772 + # value of $libobjs for piecewise linking.
47774 + # Do each of the archive commands.
47775 + if test "$module" = yes && test -n "$module_cmds" ; then
47776 + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
47777 + cmds=$module_expsym_cmds
47778 + else
47779 + cmds=$module_cmds
47780 + fi
47781 + else
47782 + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
47783 + cmds=$archive_expsym_cmds
47784 + else
47785 + cmds=$archive_cmds
47786 + fi
47787 + fi
47789 + # Append the command to remove the reloadable object files
47790 + # to the just-reset $cmds.
47791 + eval cmds=\"\$cmds~\$rm $delfiles\"
47793 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
47794 + save_ifs="$IFS"; IFS='~'
47795 for cmd in $cmds; do
47796 IFS="$save_ifs"
47797 + eval cmd=\"$cmd\"
47798 $show "$cmd"
47799 - $run eval "$cmd" || exit $?
47800 + $run eval "$cmd" || {
47801 + lt_exit=$?
47803 + # Restore the uninstalled library and exit
47804 + if test "$mode" = relink; then
47805 + $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
47806 + fi
47808 + exit $lt_exit
47810 done
47811 IFS="$save_ifs"
47813 + # Restore the uninstalled library and exit
47814 + if test "$mode" = relink; then
47815 + $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
47817 + if test -n "$convenience"; then
47818 + if test -z "$whole_archive_flag_spec"; then
47819 + $show "${rm}r $gentop"
47820 + $run ${rm}r "$gentop"
47821 + fi
47822 + fi
47824 + exit $EXIT_SUCCESS
47825 + fi
47827 # Create links to the real library.
47828 for linkname in $linknames; do
47829 if test "$realname" != "$linkname"; then
47830 @@ -2174,12 +4197,7 @@
47834 - *.lo | *.o | *.obj)
47835 - if test -n "$link_against_libtool_libs"; then
47836 - $echo "$modename: error: cannot link libtool libraries into objects" 1>&2
47837 - exit 1
47838 - fi
47840 + obj)
47841 if test -n "$deplibs"; then
47842 $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
47844 @@ -2204,11 +4222,11 @@
47845 $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
47848 - case "$output" in
47849 + case $output in
47850 *.lo)
47851 - if test -n "$objs"; then
47852 + if test -n "$objs$old_deplibs"; then
47853 $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
47854 - exit 1
47855 + exit $EXIT_FAILURE
47857 libobj="$output"
47858 obj=`$echo "X$output" | $Xsed -e "$lo2o"`
47859 @@ -2230,56 +4248,29 @@
47860 gentop=
47861 # reload_cmds runs $LD directly, so let us get rid of
47862 # -Wl from whole_archive_flag_spec
47863 - wl=
47864 + wl=
47866 if test -n "$convenience"; then
47867 if test -n "$whole_archive_flag_spec"; then
47868 eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
47869 else
47870 gentop="$output_objdir/${obj}x"
47871 - $show "${rm}r $gentop"
47872 - $run ${rm}r "$gentop"
47873 - $show "mkdir $gentop"
47874 - $run mkdir "$gentop"
47875 - status=$?
47876 - if test $status -ne 0 && test ! -d "$gentop"; then
47877 - exit $status
47878 - fi
47879 generated="$generated $gentop"
47881 - for xlib in $convenience; do
47882 - # Extract the objects.
47883 - case "$xlib" in
47884 - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
47885 - *) xabs=`pwd`"/$xlib" ;;
47886 - esac
47887 - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
47888 - xdir="$gentop/$xlib"
47890 - $show "${rm}r $xdir"
47891 - $run ${rm}r "$xdir"
47892 - $show "mkdir $xdir"
47893 - $run mkdir "$xdir"
47894 - status=$?
47895 - if test $status -ne 0 && test ! -d "$xdir"; then
47896 - exit $status
47897 - fi
47898 - $show "(cd $xdir && $AR x $xabs)"
47899 - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
47901 - reload_conv_objs="$reload_objs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
47902 - done
47903 + func_extract_archives $gentop $convenience
47904 + reload_conv_objs="$reload_objs $func_extract_archives_result"
47908 # Create the old-style object.
47909 - reload_objs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs"
47910 + 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
47912 output="$obj"
47913 - eval cmds=\"$reload_cmds\"
47914 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
47915 + cmds=$reload_cmds
47916 + save_ifs="$IFS"; IFS='~'
47917 for cmd in $cmds; do
47918 IFS="$save_ifs"
47919 + eval cmd=\"$cmd\"
47920 $show "$cmd"
47921 $run eval "$cmd" || exit $?
47922 done
47923 @@ -2292,7 +4283,7 @@
47924 $run ${rm}r $gentop
47927 - exit 0
47928 + exit $EXIT_SUCCESS
47931 if test "$build_libtool_libs" != yes; then
47932 @@ -2303,37 +4294,24 @@
47934 # Create an invalid libtool object if no PIC, so that we don't
47935 # accidentally link it into a program.
47936 - $show "echo timestamp > $libobj"
47937 - $run eval "echo timestamp > $libobj" || exit $?
47938 - exit 0
47939 + # $show "echo timestamp > $libobj"
47940 + # $run eval "echo timestamp > $libobj" || exit $?
47941 + exit $EXIT_SUCCESS
47944 - if test -n "$pic_flag"; then
47945 + if test -n "$pic_flag" || test "$pic_mode" != default; then
47946 # Only do commands if we really have different PIC objects.
47947 reload_objs="$libobjs $reload_conv_objs"
47948 output="$libobj"
47949 - eval cmds=\"$reload_cmds\"
47950 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
47951 + cmds=$reload_cmds
47952 + save_ifs="$IFS"; IFS='~'
47953 for cmd in $cmds; do
47954 IFS="$save_ifs"
47955 + eval cmd=\"$cmd\"
47956 $show "$cmd"
47957 $run eval "$cmd" || exit $?
47958 done
47959 IFS="$save_ifs"
47960 - else
47961 - # Just create a symlink.
47962 - $show $rm $libobj
47963 - $run $rm $libobj
47964 - xdir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
47965 - if test "X$xdir" = "X$libobj"; then
47966 - xdir="."
47967 - else
47968 - xdir="$xdir"
47969 - fi
47970 - baseobj=`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
47971 - oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"`
47972 - $show "(cd $xdir && $LN_S $oldobj $baseobj)"
47973 - $run eval '(cd $xdir && $LN_S $oldobj $baseobj)' || exit $?
47976 if test -n "$gentop"; then
47977 @@ -2341,11 +4319,13 @@
47978 $run ${rm}r $gentop
47981 - exit 0
47982 + exit $EXIT_SUCCESS
47985 - # Anything else should be a program.
47986 - *)
47987 + prog)
47988 + case $host in
47989 + *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
47990 + esac
47991 if test -n "$vinfo"; then
47992 $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
47994 @@ -2355,20 +4335,66 @@
47997 if test "$preload" = yes; then
47998 - if test "$dlopen" = unknown && test "$dlopen_self" = unknown &&
47999 + if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
48000 test "$dlopen_self_static" = unknown; then
48001 $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
48002 - fi
48003 + fi
48007 + case $host in
48008 + *-*-rhapsody* | *-*-darwin1.[012])
48009 + # On Rhapsody replace the C library is the System framework
48010 + compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
48011 + finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
48012 + ;;
48013 + esac
48015 + case $host in
48016 + *darwin*)
48017 + # Don't allow lazy linking, it breaks C++ global constructors
48018 + if test "$tagname" = CXX ; then
48019 + compile_command="$compile_command ${wl}-bind_at_load"
48020 + finalize_command="$finalize_command ${wl}-bind_at_load"
48021 + fi
48022 + ;;
48023 + esac
48026 + # move library search paths that coincide with paths to not yet
48027 + # installed libraries to the beginning of the library search list
48028 + new_libs=
48029 + for path in $notinst_path; do
48030 + case " $new_libs " in
48031 + *" -L$path/$objdir "*) ;;
48032 + *)
48033 + case " $compile_deplibs " in
48034 + *" -L$path/$objdir "*)
48035 + new_libs="$new_libs -L$path/$objdir" ;;
48036 + esac
48037 + ;;
48038 + esac
48039 + done
48040 + for deplib in $compile_deplibs; do
48041 + case $deplib in
48042 + -L*)
48043 + case " $new_libs " in
48044 + *" $deplib "*) ;;
48045 + *) new_libs="$new_libs $deplib" ;;
48046 + esac
48047 + ;;
48048 + *) new_libs="$new_libs $deplib" ;;
48049 + esac
48050 + done
48051 + compile_deplibs="$new_libs"
48054 + compile_command="$compile_command $compile_deplibs"
48055 + finalize_command="$finalize_command $finalize_deplibs"
48057 if test -n "$rpath$xrpath"; then
48058 # If the user specified any rpath flags, then add them.
48059 for libdir in $rpath $xrpath; do
48060 # This is the magic to use -rpath.
48061 - case "$compile_rpath " in
48062 - *" $libdir "*) ;;
48063 - *) compile_rpath="$compile_rpath $libdir" ;;
48064 - esac
48065 case "$finalize_rpath " in
48066 *" $libdir "*) ;;
48067 *) finalize_rpath="$finalize_rpath $libdir" ;;
48068 @@ -2386,7 +4412,7 @@
48069 hardcode_libdirs="$libdir"
48070 else
48071 # Just accumulate the unique libdirs.
48072 - case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in
48073 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
48074 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
48077 @@ -2404,6 +4430,19 @@
48078 *) perm_rpath="$perm_rpath $libdir" ;;
48079 esac
48081 + case $host in
48082 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
48083 + testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
48084 + case :$dllsearchpath: in
48085 + *":$libdir:"*) ;;
48086 + *) dllsearchpath="$dllsearchpath:$libdir";;
48087 + esac
48088 + case :$dllsearchpath: in
48089 + *":$testbindir:"*) ;;
48090 + *) dllsearchpath="$dllsearchpath:$testbindir";;
48091 + esac
48092 + ;;
48093 + esac
48094 done
48095 # Substitute the hardcoded libdirs into the rpath.
48096 if test -n "$hardcode_libdir_separator" &&
48097 @@ -2422,7 +4461,7 @@
48098 hardcode_libdirs="$libdir"
48099 else
48100 # Just accumulate the unique libdirs.
48101 - case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in
48102 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
48103 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
48106 @@ -2449,23 +4488,6 @@
48108 finalize_rpath="$rpath"
48110 - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
48111 - if test "X$output_objdir" = "X$output"; then
48112 - output_objdir="$objdir"
48113 - else
48114 - output_objdir="$output_objdir/$objdir"
48115 - fi
48117 - # Create the binary in the object directory, then wrap it.
48118 - if test ! -d $output_objdir; then
48119 - $show "$mkdir $output_objdir"
48120 - $run $mkdir $output_objdir
48121 - status=$?
48122 - if test $status -ne 0 && test ! -d $output_objdir; then
48123 - exit $status
48124 - fi
48125 - fi
48127 if test -n "$libobjs" && test "$build_old_libs" = yes; then
48128 # Transform all the library objects into standard objects.
48129 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
48130 @@ -2482,7 +4504,7 @@
48133 if test -n "$dlsyms"; then
48134 - case "$dlsyms" in
48135 + case $dlsyms in
48136 "") ;;
48137 *.c)
48138 # Discover the nlist of each of the dlfiles.
48139 @@ -2514,38 +4536,50 @@
48140 test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
48142 # Add our own program objects to the symbol list.
48143 - progfiles=`$echo "X$objs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
48144 + progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
48145 for arg in $progfiles; do
48146 $show "extracting global C symbols from \`$arg'"
48147 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
48148 done
48150 if test -n "$exclude_expsyms"; then
48151 - $run eval 'egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
48152 + $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
48153 $run eval '$mv "$nlist"T "$nlist"'
48157 if test -n "$export_symbols_regex"; then
48158 - $run eval 'egrep -e "$export_symbols_regex" "$nlist" > "$nlist"T'
48159 + $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
48160 $run eval '$mv "$nlist"T "$nlist"'
48163 # Prepare the list of exported symbols
48164 if test -z "$export_symbols"; then
48165 - export_symbols="$output_objdir/$output.exp"
48166 + export_symbols="$output_objdir/$outputname.exp"
48167 $run $rm $export_symbols
48168 - $run eval "sed -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
48169 + $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
48170 + case $host in
48171 + *cygwin* | *mingw* )
48172 + $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
48173 + $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
48174 + ;;
48175 + esac
48176 else
48177 - $run eval "sed -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
48178 - $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
48179 + $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
48180 + $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
48181 $run eval 'mv "$nlist"T "$nlist"'
48182 + case $host in
48183 + *cygwin* | *mingw* )
48184 + $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
48185 + $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
48186 + ;;
48187 + esac
48191 for arg in $dlprefiles; do
48192 $show "extracting global C symbols from \`$arg'"
48193 - name=`echo "$arg" | sed -e 's%^.*/%%'`
48194 - $run eval 'echo ": $name " >> "$nlist"'
48195 + name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
48196 + $run eval '$echo ": $name " >> "$nlist"'
48197 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
48198 done
48200 @@ -2554,12 +4588,18 @@
48201 test -f "$nlist" || : > "$nlist"
48203 if test -n "$exclude_expsyms"; then
48204 - egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
48205 + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
48206 $mv "$nlist"T "$nlist"
48209 # Try sorting and uniquifying the output.
48210 - if grep -v "^: " < "$nlist" | sort +2 | uniq > "$nlist"S; then
48211 + if grep -v "^: " < "$nlist" |
48212 + if sort -k 3 </dev/null >/dev/null 2>&1; then
48213 + sort -k 3
48214 + else
48215 + sort +2
48216 + fi |
48217 + uniq > "$nlist"S; then
48219 else
48220 grep -v "^: " < "$nlist" > "$nlist"S
48221 @@ -2568,7 +4608,7 @@
48222 if test -f "$nlist"S; then
48223 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
48224 else
48225 - echo '/* NONE */' >> "$output_objdir/$dlsyms"
48226 + $echo '/* NONE */' >> "$output_objdir/$dlsyms"
48229 $echo >> "$output_objdir/$dlsyms" "\
48230 @@ -2576,27 +4616,44 @@
48231 #undef lt_preloaded_symbols
48233 #if defined (__STDC__) && __STDC__
48234 -# define lt_ptr_t void *
48235 +# define lt_ptr void *
48236 #else
48237 -# define lt_ptr_t char *
48238 +# define lt_ptr char *
48239 # define const
48240 #endif
48242 /* The mapping between symbol names and symbols. */
48245 + case $host in
48246 + *cygwin* | *mingw* )
48247 + $echo >> "$output_objdir/$dlsyms" "\
48248 +/* DATA imports from DLLs on WIN32 can't be const, because
48249 + runtime relocations are performed -- see ld's documentation
48250 + on pseudo-relocs */
48251 +struct {
48253 + ;;
48254 + * )
48255 + $echo >> "$output_objdir/$dlsyms" "\
48256 const struct {
48258 + ;;
48259 + esac
48262 + $echo >> "$output_objdir/$dlsyms" "\
48263 const char *name;
48264 - lt_ptr_t address;
48265 + lt_ptr address;
48267 lt_preloaded_symbols[] =
48271 - sed -n -e 's/^: \([^ ]*\) $/ {\"\1\", (lt_ptr_t) 0},/p' \
48272 - -e 's/^. \([^ ]*\) \([^ ]*\)$/ {"\2", (lt_ptr_t) \&\2},/p' \
48273 - < "$nlist" >> "$output_objdir/$dlsyms"
48274 + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
48276 $echo >> "$output_objdir/$dlsyms" "\
48277 - {0, (lt_ptr_t) 0}
48278 + {0, (lt_ptr) 0}
48281 /* This works around a problem in FreeBSD linker */
48282 @@ -2613,39 +4670,52 @@
48285 pic_flag_for_symtable=
48286 - case "$host" in
48287 + case $host in
48288 # compiling the symbol table file with pic_flag works around
48289 # a FreeBSD bug that causes programs to crash when -lm is
48290 # linked before any other PIC object. But we must not use
48291 # pic_flag when linking with -static. The problem exists in
48292 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
48293 - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
48294 + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
48295 case "$compile_command " in
48296 *" -static "*) ;;
48297 - *) pic_flag_for_symtable=" $pic_flag -DPIC -DFREEBSD_WORKAROUND";;
48298 + *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
48299 esac;;
48300 *-*-hpux*)
48301 case "$compile_command " in
48302 *" -static "*) ;;
48303 - *) pic_flag_for_symtable=" $pic_flag -DPIC";;
48304 + *) pic_flag_for_symtable=" $pic_flag";;
48305 esac
48306 esac
48308 # Now compile the dynamic symbol file.
48309 - $show "(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
48310 - $run eval '(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
48311 + $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
48312 + $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
48314 # Clean up the generated files.
48315 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
48316 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
48318 # Transform the symbol file into the correct name.
48319 - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
48320 - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
48321 + case $host in
48322 + *cygwin* | *mingw* )
48323 + if test -f "$output_objdir/${outputname}.def" ; then
48324 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
48325 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
48326 + else
48327 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
48328 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
48329 + fi
48330 + ;;
48331 + * )
48332 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
48333 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
48334 + ;;
48335 + esac
48338 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
48339 - exit 1
48340 + exit $EXIT_FAILURE
48342 esac
48343 else
48344 @@ -2658,7 +4728,7 @@
48345 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
48348 - if test -z "$link_against_libtool_libs" || test "$build_libtool_libs" != yes; then
48349 + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
48350 # Replace the output file specification.
48351 compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
48352 link_command="$compile_command$compile_rpath"
48353 @@ -2666,22 +4736,22 @@
48354 # We have no uninstalled library dependencies, so finalize right now.
48355 $show "$link_command"
48356 $run eval "$link_command"
48357 - status=$?
48359 + exit_status=$?
48361 # Delete the generated files.
48362 if test -n "$dlsyms"; then
48363 $show "$rm $output_objdir/${outputname}S.${objext}"
48364 $run $rm "$output_objdir/${outputname}S.${objext}"
48367 - exit $status
48368 + exit $exit_status
48371 if test -n "$shlibpath_var"; then
48372 # We should set the shlibpath_var
48373 rpath=
48374 for dir in $temp_rpath; do
48375 - case "$dir" in
48376 + case $dir in
48377 [\\/]* | [A-Za-z]:[\\/]*)
48378 # Absolute path.
48379 rpath="$rpath$dir:"
48380 @@ -2723,11 +4793,24 @@
48384 + if test "$no_install" = yes; then
48385 + # We don't need to create a wrapper script.
48386 + link_command="$compile_var$compile_command$compile_rpath"
48387 + # Replace the output file specification.
48388 + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
48389 + # Delete the old output file.
48390 + $run $rm $output
48391 + # Link the executable and exit
48392 + $show "$link_command"
48393 + $run eval "$link_command" || exit $?
48394 + exit $EXIT_SUCCESS
48395 + fi
48397 if test "$hardcode_action" = relink; then
48398 # Fast installation is not supported
48399 link_command="$compile_var$compile_command$compile_rpath"
48400 relink_command="$finalize_var$finalize_command$finalize_rpath"
48403 $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
48404 $echo "$modename: \`$output' will be relinked during installation" 1>&2
48405 else
48406 @@ -2747,7 +4830,7 @@
48408 # Replace the output file specification.
48409 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
48412 # Delete the old output files.
48413 $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
48415 @@ -2759,14 +4842,26 @@
48417 # Quote the relink command for shipping.
48418 if test -n "$relink_command"; then
48419 + # Preserve any variables that may affect compiler behavior
48420 + for var in $variables_saved_for_relink; do
48421 + if eval test -z \"\${$var+set}\"; then
48422 + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
48423 + elif eval var_value=\$$var; test -z "$var_value"; then
48424 + relink_command="$var=; export $var; $relink_command"
48425 + else
48426 + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
48427 + relink_command="$var=\"$var_value\"; export $var; $relink_command"
48428 + fi
48429 + done
48430 + relink_command="(cd `pwd`; $relink_command)"
48431 relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
48434 # Quote $echo for shipping.
48435 - if test "X$echo" = "X$SHELL $0 --fallback-echo"; then
48436 - case "$0" in
48437 - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";;
48438 - *) qecho="$SHELL `pwd`/$0 --fallback-echo";;
48439 + if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
48440 + case $progpath in
48441 + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
48442 + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
48443 esac
48444 qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
48445 else
48446 @@ -2778,10 +4873,376 @@
48447 # win32 will think the script is a binary if it has
48448 # a .exe suffix, so we strip it off here.
48449 case $output in
48450 - *.exe) output=`echo $output|sed 's,.exe$,,'` ;;
48451 + *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
48452 + esac
48453 + # test for cygwin because mv fails w/o .exe extensions
48454 + case $host in
48455 + *cygwin*)
48456 + exeext=.exe
48457 + outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
48458 + *) exeext= ;;
48459 esac
48460 - $rm $output
48461 - trap "$rm $output; exit 1" 1 2 15
48462 + case $host in
48463 + *cygwin* | *mingw* )
48464 + output_name=`basename $output`
48465 + output_path=`dirname $output`
48466 + cwrappersource="$output_path/$objdir/lt-$output_name.c"
48467 + cwrapper="$output_path/$output_name.exe"
48468 + $rm $cwrappersource $cwrapper
48469 + trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
48471 + cat > $cwrappersource <<EOF
48473 +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
48474 + Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
48476 + The $output program cannot be directly executed until all the libtool
48477 + libraries that it depends on are installed.
48479 + This wrapper executable should never be moved out of the build directory.
48480 + If it is, it will not operate correctly.
48482 + Currently, it simply execs the wrapper *script* "/bin/sh $output",
48483 + but could eventually absorb all of the scripts functionality and
48484 + exec $objdir/$outputname directly.
48486 +EOF
48487 + cat >> $cwrappersource<<"EOF"
48488 +#include <stdio.h>
48489 +#include <stdlib.h>
48490 +#include <unistd.h>
48491 +#include <malloc.h>
48492 +#include <stdarg.h>
48493 +#include <assert.h>
48494 +#include <string.h>
48495 +#include <ctype.h>
48496 +#include <sys/stat.h>
48498 +#if defined(PATH_MAX)
48499 +# define LT_PATHMAX PATH_MAX
48500 +#elif defined(MAXPATHLEN)
48501 +# define LT_PATHMAX MAXPATHLEN
48502 +#else
48503 +# define LT_PATHMAX 1024
48504 +#endif
48506 +#ifndef DIR_SEPARATOR
48507 +# define DIR_SEPARATOR '/'
48508 +# define PATH_SEPARATOR ':'
48509 +#endif
48511 +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
48512 + defined (__OS2__)
48513 +# define HAVE_DOS_BASED_FILE_SYSTEM
48514 +# ifndef DIR_SEPARATOR_2
48515 +# define DIR_SEPARATOR_2 '\\'
48516 +# endif
48517 +# ifndef PATH_SEPARATOR_2
48518 +# define PATH_SEPARATOR_2 ';'
48519 +# endif
48520 +#endif
48522 +#ifndef DIR_SEPARATOR_2
48523 +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
48524 +#else /* DIR_SEPARATOR_2 */
48525 +# define IS_DIR_SEPARATOR(ch) \
48526 + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
48527 +#endif /* DIR_SEPARATOR_2 */
48529 +#ifndef PATH_SEPARATOR_2
48530 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
48531 +#else /* PATH_SEPARATOR_2 */
48532 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
48533 +#endif /* PATH_SEPARATOR_2 */
48535 +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
48536 +#define XFREE(stale) do { \
48537 + if (stale) { free ((void *) stale); stale = 0; } \
48538 +} while (0)
48540 +/* -DDEBUG is fairly common in CFLAGS. */
48541 +#undef DEBUG
48542 +#if defined DEBUGWRAPPER
48543 +# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
48544 +#else
48545 +# define DEBUG(format, ...)
48546 +#endif
48548 +const char *program_name = NULL;
48550 +void * xmalloc (size_t num);
48551 +char * xstrdup (const char *string);
48552 +const char * base_name (const char *name);
48553 +char * find_executable(const char *wrapper);
48554 +int check_executable(const char *path);
48555 +char * strendzap(char *str, const char *pat);
48556 +void lt_fatal (const char *message, ...);
48558 +int
48559 +main (int argc, char *argv[])
48561 + char **newargz;
48562 + int i;
48564 + program_name = (char *) xstrdup (base_name (argv[0]));
48565 + DEBUG("(main) argv[0] : %s\n",argv[0]);
48566 + DEBUG("(main) program_name : %s\n",program_name);
48567 + newargz = XMALLOC(char *, argc+2);
48568 +EOF
48570 + cat >> $cwrappersource <<EOF
48571 + newargz[0] = (char *) xstrdup("$SHELL");
48572 +EOF
48574 + cat >> $cwrappersource <<"EOF"
48575 + newargz[1] = find_executable(argv[0]);
48576 + if (newargz[1] == NULL)
48577 + lt_fatal("Couldn't find %s", argv[0]);
48578 + DEBUG("(main) found exe at : %s\n",newargz[1]);
48579 + /* we know the script has the same name, without the .exe */
48580 + /* so make sure newargz[1] doesn't end in .exe */
48581 + strendzap(newargz[1],".exe");
48582 + for (i = 1; i < argc; i++)
48583 + newargz[i+1] = xstrdup(argv[i]);
48584 + newargz[argc+1] = NULL;
48586 + for (i=0; i<argc+1; i++)
48588 + DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
48592 +EOF
48594 + case $host_os in
48595 + mingw*)
48596 + cat >> $cwrappersource <<EOF
48597 + execv("$SHELL",(char const **)newargz);
48598 +EOF
48599 + ;;
48600 + *)
48601 + cat >> $cwrappersource <<EOF
48602 + execv("$SHELL",newargz);
48603 +EOF
48604 + ;;
48605 + esac
48607 + cat >> $cwrappersource <<"EOF"
48608 + return 127;
48611 +void *
48612 +xmalloc (size_t num)
48614 + void * p = (void *) malloc (num);
48615 + if (!p)
48616 + lt_fatal ("Memory exhausted");
48618 + return p;
48621 +char *
48622 +xstrdup (const char *string)
48624 + return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
48628 +const char *
48629 +base_name (const char *name)
48631 + const char *base;
48633 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
48634 + /* Skip over the disk name in MSDOS pathnames. */
48635 + if (isalpha ((unsigned char)name[0]) && name[1] == ':')
48636 + name += 2;
48637 +#endif
48639 + for (base = name; *name; name++)
48640 + if (IS_DIR_SEPARATOR (*name))
48641 + base = name + 1;
48642 + return base;
48645 +int
48646 +check_executable(const char * path)
48648 + struct stat st;
48650 + DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
48651 + if ((!path) || (!*path))
48652 + return 0;
48654 + if ((stat (path, &st) >= 0) &&
48656 + /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
48657 +#if defined (S_IXOTH)
48658 + ((st.st_mode & S_IXOTH) == S_IXOTH) ||
48659 +#endif
48660 +#if defined (S_IXGRP)
48661 + ((st.st_mode & S_IXGRP) == S_IXGRP) ||
48662 +#endif
48663 + ((st.st_mode & S_IXUSR) == S_IXUSR))
48665 + return 1;
48666 + else
48667 + return 0;
48670 +/* Searches for the full path of the wrapper. Returns
48671 + newly allocated full path name if found, NULL otherwise */
48672 +char *
48673 +find_executable (const char* wrapper)
48675 + int has_slash = 0;
48676 + const char* p;
48677 + const char* p_next;
48678 + /* static buffer for getcwd */
48679 + char tmp[LT_PATHMAX + 1];
48680 + int tmp_len;
48681 + char* concat_name;
48683 + DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
48685 + if ((wrapper == NULL) || (*wrapper == '\0'))
48686 + return NULL;
48688 + /* Absolute path? */
48689 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
48690 + if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
48692 + concat_name = xstrdup (wrapper);
48693 + if (check_executable(concat_name))
48694 + return concat_name;
48695 + XFREE(concat_name);
48697 + else
48699 +#endif
48700 + if (IS_DIR_SEPARATOR (wrapper[0]))
48702 + concat_name = xstrdup (wrapper);
48703 + if (check_executable(concat_name))
48704 + return concat_name;
48705 + XFREE(concat_name);
48707 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
48709 +#endif
48711 + for (p = wrapper; *p; p++)
48712 + if (*p == '/')
48714 + has_slash = 1;
48715 + break;
48717 + if (!has_slash)
48719 + /* no slashes; search PATH */
48720 + const char* path = getenv ("PATH");
48721 + if (path != NULL)
48723 + for (p = path; *p; p = p_next)
48725 + const char* q;
48726 + size_t p_len;
48727 + for (q = p; *q; q++)
48728 + if (IS_PATH_SEPARATOR(*q))
48729 + break;
48730 + p_len = q - p;
48731 + p_next = (*q == '\0' ? q : q + 1);
48732 + if (p_len == 0)
48734 + /* empty path: current directory */
48735 + if (getcwd (tmp, LT_PATHMAX) == NULL)
48736 + lt_fatal ("getcwd failed");
48737 + tmp_len = strlen(tmp);
48738 + concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
48739 + memcpy (concat_name, tmp, tmp_len);
48740 + concat_name[tmp_len] = '/';
48741 + strcpy (concat_name + tmp_len + 1, wrapper);
48743 + else
48745 + concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
48746 + memcpy (concat_name, p, p_len);
48747 + concat_name[p_len] = '/';
48748 + strcpy (concat_name + p_len + 1, wrapper);
48750 + if (check_executable(concat_name))
48751 + return concat_name;
48752 + XFREE(concat_name);
48755 + /* not found in PATH; assume curdir */
48757 + /* Relative path | not found in path: prepend cwd */
48758 + if (getcwd (tmp, LT_PATHMAX) == NULL)
48759 + lt_fatal ("getcwd failed");
48760 + tmp_len = strlen(tmp);
48761 + concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
48762 + memcpy (concat_name, tmp, tmp_len);
48763 + concat_name[tmp_len] = '/';
48764 + strcpy (concat_name + tmp_len + 1, wrapper);
48766 + if (check_executable(concat_name))
48767 + return concat_name;
48768 + XFREE(concat_name);
48769 + return NULL;
48772 +char *
48773 +strendzap(char *str, const char *pat)
48775 + size_t len, patlen;
48777 + assert(str != NULL);
48778 + assert(pat != NULL);
48780 + len = strlen(str);
48781 + patlen = strlen(pat);
48783 + if (patlen <= len)
48785 + str += len - patlen;
48786 + if (strcmp(str, pat) == 0)
48787 + *str = '\0';
48789 + return str;
48792 +static void
48793 +lt_error_core (int exit_status, const char * mode,
48794 + const char * message, va_list ap)
48796 + fprintf (stderr, "%s: %s: ", program_name, mode);
48797 + vfprintf (stderr, message, ap);
48798 + fprintf (stderr, ".\n");
48800 + if (exit_status >= 0)
48801 + exit (exit_status);
48804 +void
48805 +lt_fatal (const char *message, ...)
48807 + va_list ap;
48808 + va_start (ap, message);
48809 + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
48810 + va_end (ap);
48812 +EOF
48813 + # we should really use a build-platform specific compiler
48814 + # here, but OTOH, the wrappers (shell script and this C one)
48815 + # are only useful if you want to execute the "real" binary.
48816 + # Since the "real" binary is built for $host, then this
48817 + # wrapper might as well be built for $host, too.
48818 + $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
48819 + ;;
48820 + esac
48821 + $rm $output
48822 + trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
48824 $echo > $output "\
48825 #! $SHELL
48826 @@ -2797,19 +5258,19 @@
48828 # Sed substitution that helps us do robust quoting. It backslashifies
48829 # metacharacters that are still active within double-quoted strings.
48830 -Xsed='sed -e 1s/^X//'
48831 +Xsed='${SED} -e 1s/^X//'
48832 sed_quote_subst='$sed_quote_subst'
48834 # The HP-UX ksh and POSIX shell print the target directory to stdout
48835 # if CDPATH is set.
48836 -if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
48837 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
48839 relink_command=\"$relink_command\"
48841 # This environment variable determines our operation mode.
48842 if test \"\$libtool_install_magic\" = \"$magic\"; then
48843 # install mode needs the following variable:
48844 - link_against_libtool_libs='$link_against_libtool_libs'
48845 + notinst_deplibs='$notinst_deplibs'
48846 else
48847 # When we are sourced in execute mode, \$file and \$echo are already set.
48848 if test \"\$libtool_execute_magic\" != \"$magic\"; then
48849 @@ -2835,20 +5296,20 @@
48850 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
48852 # Follow symbolic links until we get to the real thisdir.
48853 - file=\`ls -ld \"\$file\" | sed -n 's/.*-> //p'\`
48854 + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
48855 while test -n \"\$file\"; do
48856 destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
48858 # If there was a directory component, then change thisdir.
48859 if test \"x\$destdir\" != \"x\$file\"; then
48860 case \"\$destdir\" in
48861 - [\\/]* | [A-Za-z]:[\\/]*) thisdir=\"\$destdir\" ;;
48862 + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
48863 *) thisdir=\"\$thisdir/\$destdir\" ;;
48864 esac
48867 file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
48868 - file=\`ls -ld \"\$thisdir/\$file\" | sed -n 's/.*-> //p'\`
48869 + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
48870 done
48872 # Try to get the absolute directory name.
48873 @@ -2857,12 +5318,12 @@
48876 if test "$fast_install" = yes; then
48877 - echo >> $output "\
48878 - program=lt-'$outputname'
48879 + $echo >> $output "\
48880 + program=lt-'$outputname'$exeext
48881 progdir=\"\$thisdir/$objdir\"
48884 if test ! -f \"\$progdir/\$program\" || \\
48885 - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | sed 1q\`; \\
48886 + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
48887 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
48889 file=\"\$\$-\$program\"
48890 @@ -2873,14 +5334,15 @@
48891 $rm \"\$progdir/\$file\"
48894 - echo >> $output "\
48895 + $echo >> $output "\
48897 # relink executable if necessary
48898 if test -n \"\$relink_command\"; then
48899 - if (cd \"\$thisdir\" && eval \$relink_command); then :
48900 + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
48901 else
48902 + $echo \"\$relink_command_output\" >&2
48903 $rm \"\$progdir/\$file\"
48904 - exit 1
48905 + exit $EXIT_FAILURE
48909 @@ -2890,13 +5352,13 @@
48910 $rm \"\$progdir/\$file\"
48912 else
48913 - echo >> $output "\
48914 + $echo >> $output "\
48915 program='$outputname'
48916 progdir=\"\$thisdir/$objdir\"
48920 - echo >> $output "\
48921 + $echo >> $output "\
48923 if test -f \"\$progdir/\$program\"; then"
48925 @@ -2927,39 +5389,35 @@
48926 # Run the actual program with our arguments.
48928 case $host in
48929 - *-*-cygwin* | *-*-mingw | *-*-os2*)
48930 - # win32 systems need to use the prog path for dll
48931 - # lookup to work
48932 + # Backslashes separate directories on plain windows
48933 + *-*-mingw | *-*-os2*)
48934 $echo >> $output "\
48935 - exec \$progdir\\\\\$program \${1+\"\$@\"}
48936 + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
48941 $echo >> $output "\
48942 - # Export the path to the program.
48943 - PATH=\"\$progdir:\$PATH\"
48944 - export PATH
48946 - exec \$program \${1+\"\$@\"}
48947 + exec \"\$progdir/\$program\" \${1+\"\$@\"}
48950 esac
48951 $echo >> $output "\
48952 \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
48953 - exit 1
48954 + exit $EXIT_FAILURE
48956 else
48957 # The program doesn't exist.
48958 - \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
48959 + \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
48960 \$echo \"This script is just a wrapper for \$program.\" 1>&2
48961 - echo \"See the $PACKAGE documentation for more information.\" 1>&2
48962 - exit 1
48963 + $echo \"See the $PACKAGE documentation for more information.\" 1>&2
48964 + exit $EXIT_FAILURE
48968 chmod +x $output
48970 - exit 0
48971 + exit $EXIT_SUCCESS
48973 esac
48975 @@ -2975,74 +5433,130 @@
48976 oldobjs="$libobjs_save"
48977 build_libtool_libs=no
48978 else
48979 - oldobjs="$objs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`
48980 + oldobjs="$old_deplibs $non_pic_objects"
48982 addlibs="$old_convenience"
48985 if test -n "$addlibs"; then
48986 gentop="$output_objdir/${outputname}x"
48987 - $show "${rm}r $gentop"
48988 - $run ${rm}r "$gentop"
48989 - $show "mkdir $gentop"
48990 - $run mkdir "$gentop"
48991 - status=$?
48992 - if test $status -ne 0 && test ! -d "$gentop"; then
48993 - exit $status
48994 - fi
48995 generated="$generated $gentop"
48997 - # Add in members from convenience archives.
48998 - for xlib in $addlibs; do
48999 - # Extract the objects.
49000 - case "$xlib" in
49001 - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
49002 - *) xabs=`pwd`"/$xlib" ;;
49003 - esac
49004 - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
49005 - xdir="$gentop/$xlib"
49007 - $show "${rm}r $xdir"
49008 - $run ${rm}r "$xdir"
49009 - $show "mkdir $xdir"
49010 - $run mkdir "$xdir"
49011 - status=$?
49012 - if test $status -ne 0 && test ! -d "$xdir"; then
49013 - exit $status
49014 - fi
49015 - $show "(cd $xdir && $AR x $xabs)"
49016 - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
49018 - oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
49019 - done
49020 + func_extract_archives $gentop $addlibs
49021 + oldobjs="$oldobjs $func_extract_archives_result"
49024 # Do each command in the archive commands.
49025 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
49026 - eval cmds=\"$old_archive_from_new_cmds\"
49027 + cmds=$old_archive_from_new_cmds
49028 else
49029 - # Ensure that we have .o objects in place in case we decided
49030 - # not to build a shared library, and have fallen back to building
49031 - # static libs even though --disable-static was passed!
49032 - for oldobj in $oldobjs; do
49033 - if test ! -f $oldobj; then
49034 - xdir=`$echo "X$oldobj" | $Xsed -e 's%/[^/]*$%%'`
49035 - if test "X$xdir" = "X$oldobj"; then
49036 - xdir="."
49037 - else
49038 - xdir="$xdir"
49039 - fi
49040 - baseobj=`$echo "X$oldobj" | $Xsed -e 's%^.*/%%'`
49041 - obj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
49042 - $show "(cd $xdir && ${LN_S} $obj $baseobj)"
49043 - $run eval '(cd $xdir && ${LN_S} $obj $baseobj)' || exit $?
49044 + # POSIX demands no paths to be encoded in archives. We have
49045 + # to avoid creating archives with duplicate basenames if we
49046 + # might have to extract them afterwards, e.g., when creating a
49047 + # static archive out of a convenience library, or when linking
49048 + # the entirety of a libtool archive into another (currently
49049 + # not supported by libtool).
49050 + if (for obj in $oldobjs
49051 + do
49052 + $echo "X$obj" | $Xsed -e 's%^.*/%%'
49053 + done | sort | sort -uc >/dev/null 2>&1); then
49055 + else
49056 + $echo "copying selected object files to avoid basename conflicts..."
49058 + if test -z "$gentop"; then
49059 + gentop="$output_objdir/${outputname}x"
49060 + generated="$generated $gentop"
49062 + $show "${rm}r $gentop"
49063 + $run ${rm}r "$gentop"
49064 + $show "$mkdir $gentop"
49065 + $run $mkdir "$gentop"
49066 + exit_status=$?
49067 + if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
49068 + exit $exit_status
49069 + fi
49071 - done
49073 + save_oldobjs=$oldobjs
49074 + oldobjs=
49075 + counter=1
49076 + for obj in $save_oldobjs
49077 + do
49078 + objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
49079 + case " $oldobjs " in
49080 + " ") oldobjs=$obj ;;
49081 + *[\ /]"$objbase "*)
49082 + while :; do
49083 + # Make sure we don't pick an alternate name that also
49084 + # overlaps.
49085 + newobj=lt$counter-$objbase
49086 + counter=`expr $counter + 1`
49087 + case " $oldobjs " in
49088 + *[\ /]"$newobj "*) ;;
49089 + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
49090 + esac
49091 + done
49092 + $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
49093 + $run ln "$obj" "$gentop/$newobj" ||
49094 + $run cp "$obj" "$gentop/$newobj"
49095 + oldobjs="$oldobjs $gentop/$newobj"
49096 + ;;
49097 + *) oldobjs="$oldobjs $obj" ;;
49098 + esac
49099 + done
49100 + fi
49102 eval cmds=\"$old_archive_cmds\"
49104 + if len=`expr "X$cmds" : ".*"` &&
49105 + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
49106 + cmds=$old_archive_cmds
49107 + else
49108 + # the command line is too long to link in one step, link in parts
49109 + $echo "using piecewise archive linking..."
49110 + save_RANLIB=$RANLIB
49111 + RANLIB=:
49112 + objlist=
49113 + concat_cmds=
49114 + save_oldobjs=$oldobjs
49116 + # Is there a better way of finding the last object in the list?
49117 + for obj in $save_oldobjs
49118 + do
49119 + last_oldobj=$obj
49120 + done
49121 + for obj in $save_oldobjs
49122 + do
49123 + oldobjs="$objlist $obj"
49124 + objlist="$objlist $obj"
49125 + eval test_cmds=\"$old_archive_cmds\"
49126 + if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
49127 + test "$len" -le "$max_cmd_len"; then
49129 + else
49130 + # the above command should be used before it gets too long
49131 + oldobjs=$objlist
49132 + if test "$obj" = "$last_oldobj" ; then
49133 + RANLIB=$save_RANLIB
49134 + fi
49135 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
49136 + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
49137 + objlist=
49138 + fi
49139 + done
49140 + RANLIB=$save_RANLIB
49141 + oldobjs=$objlist
49142 + if test "X$oldobjs" = "X" ; then
49143 + eval cmds=\"\$concat_cmds\"
49144 + else
49145 + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
49146 + fi
49147 + fi
49149 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
49150 + save_ifs="$IFS"; IFS='~'
49151 for cmd in $cmds; do
49152 + eval cmd=\"$cmd\"
49153 IFS="$save_ifs"
49154 $show "$cmd"
49155 $run eval "$cmd" || exit $?
49156 @@ -3056,20 +5570,31 @@
49159 # Now create the libtool archive.
49160 - case "$output" in
49161 + case $output in
49162 *.la)
49163 old_library=
49164 test "$build_old_libs" = yes && old_library="$libname.$libext"
49165 $show "creating $output"
49167 - if test -n "$xrpath"; then
49168 - temp_xrpath=
49169 - for libdir in $xrpath; do
49170 - temp_xrpath="$temp_xrpath -R$libdir"
49171 - done
49172 - dependency_libs="$temp_xrpath $dependency_libs"
49173 + # Preserve any variables that may affect compiler behavior
49174 + for var in $variables_saved_for_relink; do
49175 + if eval test -z \"\${$var+set}\"; then
49176 + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
49177 + elif eval var_value=\$$var; test -z "$var_value"; then
49178 + relink_command="$var=; export $var; $relink_command"
49179 + else
49180 + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
49181 + relink_command="$var=\"$var_value\"; export $var; $relink_command"
49182 + fi
49183 + done
49184 + # Quote the link command for shipping.
49185 + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
49186 + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
49187 + if test "$hardcode_automatic" = yes ; then
49188 + relink_command=
49192 # Only create the output if not a dry run.
49193 if test -z "$run"; then
49194 for installed in no yes; do
49195 @@ -3078,8 +5603,71 @@
49196 break
49198 output="$output_objdir/$outputname"i
49199 + # Replace all uninstalled libtool libraries with the installed ones
49200 + newdependency_libs=
49201 + for deplib in $dependency_libs; do
49202 + case $deplib in
49203 + *.la)
49204 + name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
49205 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
49206 + if test -z "$libdir"; then
49207 + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
49208 + exit $EXIT_FAILURE
49209 + fi
49210 + newdependency_libs="$newdependency_libs $libdir/$name"
49211 + ;;
49212 + *) newdependency_libs="$newdependency_libs $deplib" ;;
49213 + esac
49214 + done
49215 + dependency_libs="$newdependency_libs"
49216 + newdlfiles=
49217 + for lib in $dlfiles; do
49218 + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
49219 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
49220 + if test -z "$libdir"; then
49221 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
49222 + exit $EXIT_FAILURE
49223 + fi
49224 + newdlfiles="$newdlfiles $libdir/$name"
49225 + done
49226 + dlfiles="$newdlfiles"
49227 + newdlprefiles=
49228 + for lib in $dlprefiles; do
49229 + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
49230 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
49231 + if test -z "$libdir"; then
49232 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
49233 + exit $EXIT_FAILURE
49234 + fi
49235 + newdlprefiles="$newdlprefiles $libdir/$name"
49236 + done
49237 + dlprefiles="$newdlprefiles"
49238 + else
49239 + newdlfiles=
49240 + for lib in $dlfiles; do
49241 + case $lib in
49242 + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
49243 + *) abs=`pwd`"/$lib" ;;
49244 + esac
49245 + newdlfiles="$newdlfiles $abs"
49246 + done
49247 + dlfiles="$newdlfiles"
49248 + newdlprefiles=
49249 + for lib in $dlprefiles; do
49250 + case $lib in
49251 + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
49252 + *) abs=`pwd`"/$lib" ;;
49253 + esac
49254 + newdlprefiles="$newdlprefiles $abs"
49255 + done
49256 + dlprefiles="$newdlprefiles"
49258 $rm $output
49259 + # place dlname in correct position for cygwin
49260 + tdlname=$dlname
49261 + case $host,$output,$installed,$module,$dlname in
49262 + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
49263 + esac
49264 $echo > $output "\
49265 # $outputname - a libtool library file
49266 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
49267 @@ -3088,7 +5676,7 @@
49268 # It is necessary for linking the library.
49270 # The name that we can dlopen(3).
49271 -dlname='$dlname'
49272 +dlname='$tdlname'
49274 # Names of this library.
49275 library_names='$library_names'
49276 @@ -3107,19 +5695,29 @@
49277 # Is this an already installed library?
49278 installed=$installed
49280 +# Should we warn about portability when linking against -modules?
49281 +shouldnotlink=$module
49283 +# Files to dlopen/dlpreopen
49284 +dlopen='$dlfiles'
49285 +dlpreopen='$dlprefiles'
49287 # Directory that this library needs to be installed in:
49288 -libdir='$install_libdir'\
49290 +libdir='$install_libdir'"
49291 + if test "$installed" = no && test "$need_relink" = yes; then
49292 + $echo >> $output "\
49293 +relink_command=\"$relink_command\""
49294 + fi
49295 done
49298 # Do a symbolic link so that the libtool archive can be found in
49299 # LD_LIBRARY_PATH before the program is installed.
49300 $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
49301 - $run eval "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" || exit $?
49302 + $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
49304 esac
49305 - exit 0
49306 + exit $EXIT_SUCCESS
49309 # libtool install mode
49310 @@ -3128,11 +5726,13 @@
49312 # There may be an optional sh(1) argument at the beginning of
49313 # install_prog (especially on Windows NT).
49314 - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh; then
49315 + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
49316 + # Allow the use of GNU shtool's install command.
49317 + $echo "X$nonopt" | grep shtool > /dev/null; then
49318 # Aesthetically quote it.
49319 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
49320 - case "$arg" in
49321 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
49322 + case $arg in
49323 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
49324 arg="\"$arg\""
49326 esac
49327 @@ -3141,14 +5741,14 @@
49328 shift
49329 else
49330 install_prog=
49331 - arg="$nonopt"
49332 + arg=$nonopt
49335 # The real first argument should be the name of the installation program.
49336 # Aesthetically quote it.
49337 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
49338 - case "$arg" in
49339 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
49340 + case $arg in
49341 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
49342 arg="\"$arg\""
49344 esac
49345 @@ -3166,28 +5766,31 @@
49347 if test -n "$dest"; then
49348 files="$files $dest"
49349 - dest="$arg"
49350 + dest=$arg
49351 continue
49354 - case "$arg" in
49355 + case $arg in
49356 -d) isdir=yes ;;
49357 - -f) prev="-f" ;;
49358 - -g) prev="-g" ;;
49359 - -m) prev="-m" ;;
49360 - -o) prev="-o" ;;
49361 + -f)
49362 + case " $install_prog " in
49363 + *[\\\ /]cp\ *) ;;
49364 + *) prev=$arg ;;
49365 + esac
49366 + ;;
49367 + -g | -m | -o) prev=$arg ;;
49369 stripme=" -s"
49370 continue
49372 - -*) ;;
49374 + -*)
49375 + ;;
49377 # If the previous option needed an argument, then skip it.
49378 if test -n "$prev"; then
49379 prev=
49380 else
49381 - dest="$arg"
49382 + dest=$arg
49383 continue
49386 @@ -3195,8 +5798,8 @@
49388 # Aesthetically quote the argument.
49389 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
49390 - case "$arg" in
49391 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
49392 + case $arg in
49393 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
49394 arg="\"$arg\""
49396 esac
49397 @@ -3206,13 +5809,13 @@
49398 if test -z "$install_prog"; then
49399 $echo "$modename: you must specify an install program" 1>&2
49400 $echo "$help" 1>&2
49401 - exit 1
49402 + exit $EXIT_FAILURE
49405 if test -n "$prev"; then
49406 $echo "$modename: the \`$prev' option requires an argument" 1>&2
49407 $echo "$help" 1>&2
49408 - exit 1
49409 + exit $EXIT_FAILURE
49412 if test -z "$files"; then
49413 @@ -3222,7 +5825,7 @@
49414 $echo "$modename: you must specify a destination" 1>&2
49416 $echo "$help" 1>&2
49417 - exit 1
49418 + exit $EXIT_FAILURE
49421 # Strip any trailing slash from the destination.
49422 @@ -3240,22 +5843,22 @@
49424 # Not a directory, so check to see that there is only one file specified.
49425 set dummy $files
49426 - if test $# -gt 2; then
49427 + if test "$#" -gt 2; then
49428 $echo "$modename: \`$dest' is not a directory" 1>&2
49429 $echo "$help" 1>&2
49430 - exit 1
49431 + exit $EXIT_FAILURE
49434 - case "$destdir" in
49435 + case $destdir in
49436 [\\/]* | [A-Za-z]:[\\/]*) ;;
49438 for file in $files; do
49439 - case "$file" in
49440 + case $file in
49441 *.lo) ;;
49443 $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
49444 $echo "$help" 1>&2
49445 - exit 1
49446 + exit $EXIT_FAILURE
49448 esac
49449 done
49450 @@ -3272,25 +5875,26 @@
49451 for file in $files; do
49453 # Do each installation.
49454 - case "$file" in
49455 - *.a | *.lib)
49456 + case $file in
49457 + *.$libext)
49458 # Do the static libraries later.
49459 staticlibs="$staticlibs $file"
49462 *.la)
49463 # Check to see that this really is a libtool archive.
49464 - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
49465 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
49466 else
49467 $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
49468 $echo "$help" 1>&2
49469 - exit 1
49470 + exit $EXIT_FAILURE
49473 library_names=
49474 old_library=
49475 + relink_command=
49476 # If there is no directory component, then add one.
49477 - case "$file" in
49478 + case $file in
49479 */* | *\\*) . $file ;;
49480 *) . ./$file ;;
49481 esac
49482 @@ -3309,10 +5913,41 @@
49483 esac
49486 - dir="`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/"
49487 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
49488 test "X$dir" = "X$file/" && dir=
49489 dir="$dir$objdir"
49491 + if test -n "$relink_command"; then
49492 + # Determine the prefix the user has applied to our future dir.
49493 + inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
49495 + # Don't allow the user to place us outside of our expected
49496 + # location b/c this prevents finding dependent libraries that
49497 + # are installed to the same prefix.
49498 + # At present, this check doesn't affect windows .dll's that
49499 + # are installed into $libdir/../bin (currently, that works fine)
49500 + # but it's something to keep an eye on.
49501 + if test "$inst_prefix_dir" = "$destdir"; then
49502 + $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
49503 + exit $EXIT_FAILURE
49504 + fi
49506 + if test -n "$inst_prefix_dir"; then
49507 + # Stick the inst_prefix_dir data into the link command.
49508 + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
49509 + else
49510 + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
49511 + fi
49513 + $echo "$modename: warning: relinking \`$file'" 1>&2
49514 + $show "$relink_command"
49515 + if $run eval "$relink_command"; then :
49516 + else
49517 + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
49518 + exit $EXIT_FAILURE
49519 + fi
49520 + fi
49522 # See the names of the shared library.
49523 set dummy $library_names
49524 if test -n "$2"; then
49525 @@ -3320,29 +5955,49 @@
49526 shift
49527 shift
49529 + srcname="$realname"
49530 + test -n "$relink_command" && srcname="$realname"T
49532 # Install the shared library and build the symlinks.
49533 - $show "$install_prog $dir/$realname $destdir/$realname"
49534 - $run eval "$install_prog $dir/$realname $destdir/$realname" || exit $?
49535 + $show "$install_prog $dir/$srcname $destdir/$realname"
49536 + $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
49537 + if test -n "$stripme" && test -n "$striplib"; then
49538 + $show "$striplib $destdir/$realname"
49539 + $run eval "$striplib $destdir/$realname" || exit $?
49540 + fi
49542 - if test $# -gt 0; then
49543 + if test "$#" -gt 0; then
49544 # Delete the old symlinks, and create new ones.
49545 + # Try `ln -sf' first, because the `ln' binary might depend on
49546 + # the symlink we replace! Solaris /bin/ln does not understand -f,
49547 + # so we also need to try rm && ln -s.
49548 for linkname
49550 if test "$linkname" != "$realname"; then
49551 - $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
49552 - $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
49553 + $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
49554 + $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
49556 done
49559 # Do each command in the postinstall commands.
49560 lib="$destdir/$realname"
49561 - eval cmds=\"$postinstall_cmds\"
49562 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
49563 + cmds=$postinstall_cmds
49564 + save_ifs="$IFS"; IFS='~'
49565 for cmd in $cmds; do
49566 IFS="$save_ifs"
49567 + eval cmd=\"$cmd\"
49568 $show "$cmd"
49569 - $run eval "$cmd" || exit $?
49570 + $run eval "$cmd" || {
49571 + lt_exit=$?
49573 + # Restore the uninstalled library and exit
49574 + if test "$mode" = relink; then
49575 + $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
49576 + fi
49578 + exit $lt_exit
49580 done
49581 IFS="$save_ifs"
49583 @@ -3369,18 +6024,18 @@
49586 # Deduce the name of the destination old-style object file.
49587 - case "$destfile" in
49588 + case $destfile in
49589 *.lo)
49590 staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
49592 - *.o | *.obj)
49593 + *.$objext)
49594 staticdest="$destfile"
49595 destfile=
49598 $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
49599 $echo "$help" 1>&2
49600 - exit 1
49601 + exit $EXIT_FAILURE
49603 esac
49605 @@ -3398,7 +6053,7 @@
49606 $show "$install_prog $staticobj $staticdest"
49607 $run eval "$install_prog \$staticobj \$staticdest" || exit $?
49609 - exit 0
49610 + exit $EXIT_SUCCESS
49614 @@ -3410,52 +6065,84 @@
49615 destfile="$destdir/$destfile"
49618 + # If the file is missing, and there is a .exe on the end, strip it
49619 + # because it is most likely a libtool script we actually want to
49620 + # install
49621 + stripped_ext=""
49622 + case $file in
49623 + *.exe)
49624 + if test ! -f "$file"; then
49625 + file=`$echo $file|${SED} 's,.exe$,,'`
49626 + stripped_ext=".exe"
49627 + fi
49628 + ;;
49629 + esac
49631 # Do a test to see if this is really a libtool program.
49632 - if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
49633 - link_against_libtool_libs=
49634 + case $host in
49635 + *cygwin*|*mingw*)
49636 + wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
49637 + ;;
49638 + *)
49639 + wrapper=$file
49640 + ;;
49641 + esac
49642 + if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
49643 + notinst_deplibs=
49644 relink_command=
49646 + # Note that it is not necessary on cygwin/mingw to append a dot to
49647 + # foo even if both foo and FILE.exe exist: automatic-append-.exe
49648 + # behavior happens only for exec(3), not for open(2)! Also, sourcing
49649 + # `FILE.' does not work on cygwin managed mounts.
49651 # If there is no directory component, then add one.
49652 - case "$file" in
49653 - */* | *\\*) . $file ;;
49654 - *) . ./$file ;;
49655 + case $wrapper in
49656 + */* | *\\*) . ${wrapper} ;;
49657 + *) . ./${wrapper} ;;
49658 esac
49660 # Check the variables that should have been set.
49661 - if test -z "$link_against_libtool_libs"; then
49662 - $echo "$modename: invalid libtool wrapper script \`$file'" 1>&2
49663 - exit 1
49664 + if test -z "$notinst_deplibs"; then
49665 + $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
49666 + exit $EXIT_FAILURE
49669 finalize=yes
49670 - for lib in $link_against_libtool_libs; do
49671 + for lib in $notinst_deplibs; do
49672 # Check to see that each library is installed.
49673 libdir=
49674 if test -f "$lib"; then
49675 # If there is no directory component, then add one.
49676 - case "$lib" in
49677 + case $lib in
49678 */* | *\\*) . $lib ;;
49679 *) . ./$lib ;;
49680 esac
49682 - libfile="$libdir/`$echo "X$lib" | $Xsed -e 's%^.*/%%g'`"
49683 + libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
49684 if test -n "$libdir" && test ! -f "$libfile"; then
49685 $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
49686 finalize=no
49688 done
49690 + relink_command=
49691 + # Note that it is not necessary on cygwin/mingw to append a dot to
49692 + # foo even if both foo and FILE.exe exist: automatic-append-.exe
49693 + # behavior happens only for exec(3), not for open(2)! Also, sourcing
49694 + # `FILE.' does not work on cygwin managed mounts.
49696 + # If there is no directory component, then add one.
49697 + case $wrapper in
49698 + */* | *\\*) . ${wrapper} ;;
49699 + *) . ./${wrapper} ;;
49700 + esac
49702 outputname=
49703 if test "$fast_install" = no && test -n "$relink_command"; then
49704 if test "$finalize" = yes && test -z "$run"; then
49705 - tmpdir="/tmp"
49706 - test -n "$TMPDIR" && tmpdir="$TMPDIR"
49707 - tmpdir="$tmpdir/libtool-$$"
49708 - if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then :
49709 - else
49710 - $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
49711 - continue
49712 - fi
49713 + tmpdir=`func_mktempdir`
49714 + file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
49715 outputname="$tmpdir/$file"
49716 # Replace the output file specification.
49717 relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
49718 @@ -3473,10 +6160,27 @@
49720 else
49721 # Install the binary that we compiled earlier.
49722 - file=`$echo "X$file" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
49723 + file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
49727 + # remove .exe since cygwin /usr/bin/install will append another
49728 + # one anyway
49729 + case $install_prog,$host in
49730 + */usr/bin/install*,*cygwin*)
49731 + case $file:$destfile in
49732 + *.exe:*.exe)
49733 + # this is ok
49734 + ;;
49735 + *.exe:*)
49736 + destfile=$destfile.exe
49737 + ;;
49738 + *:*.exe)
49739 + destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
49740 + ;;
49741 + esac
49742 + ;;
49743 + esac
49744 $show "$install_prog$stripme $file $destfile"
49745 $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
49746 test -n "$outputname" && ${rm}r "$tmpdir"
49747 @@ -3493,11 +6197,17 @@
49748 $show "$install_prog $file $oldlib"
49749 $run eval "$install_prog \$file \$oldlib" || exit $?
49751 + if test -n "$stripme" && test -n "$old_striplib"; then
49752 + $show "$old_striplib $oldlib"
49753 + $run eval "$old_striplib $oldlib" || exit $?
49754 + fi
49756 # Do each command in the postinstall commands.
49757 - eval cmds=\"$old_postinstall_cmds\"
49758 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
49759 + cmds=$old_postinstall_cmds
49760 + save_ifs="$IFS"; IFS='~'
49761 for cmd in $cmds; do
49762 IFS="$save_ifs"
49763 + eval cmd=\"$cmd\"
49764 $show "$cmd"
49765 $run eval "$cmd" || exit $?
49766 done
49767 @@ -3511,11 +6221,10 @@
49768 if test -n "$current_libdirs"; then
49769 # Maybe just do a dry run.
49770 test -n "$run" && current_libdirs=" -n$current_libdirs"
49771 - exec $SHELL $0 --finish$current_libdirs
49772 - exit 1
49773 + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
49774 + else
49775 + exit $EXIT_SUCCESS
49778 - exit 0
49781 # libtool finish mode
49782 @@ -3533,10 +6242,11 @@
49783 for libdir in $libdirs; do
49784 if test -n "$finish_cmds"; then
49785 # Do each command in the finish commands.
49786 - eval cmds=\"$finish_cmds\"
49787 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
49788 + cmds=$finish_cmds
49789 + save_ifs="$IFS"; IFS='~'
49790 for cmd in $cmds; do
49791 IFS="$save_ifs"
49792 + eval cmd=\"$cmd\"
49793 $show "$cmd"
49794 $run eval "$cmd" || admincmds="$admincmds
49795 $cmd"
49796 @@ -3553,43 +6263,43 @@
49799 # Exit here if they wanted silent mode.
49800 - test "$show" = : && exit 0
49801 + test "$show" = : && exit $EXIT_SUCCESS
49803 - echo "----------------------------------------------------------------------"
49804 - echo "Libraries have been installed in:"
49805 + $echo "X----------------------------------------------------------------------" | $Xsed
49806 + $echo "Libraries have been installed in:"
49807 for libdir in $libdirs; do
49808 - echo " $libdir"
49809 + $echo " $libdir"
49810 done
49811 - echo
49812 - echo "If you ever happen to want to link against installed libraries"
49813 - echo "in a given directory, LIBDIR, you must either use libtool, and"
49814 - echo "specify the full pathname of the library, or use \`-LLIBDIR'"
49815 - echo "flag during linking and do at least one of the following:"
49816 + $echo
49817 + $echo "If you ever happen to want to link against installed libraries"
49818 + $echo "in a given directory, LIBDIR, you must either use libtool, and"
49819 + $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
49820 + $echo "flag during linking and do at least one of the following:"
49821 if test -n "$shlibpath_var"; then
49822 - echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
49823 - echo " during execution"
49824 + $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
49825 + $echo " during execution"
49827 if test -n "$runpath_var"; then
49828 - echo " - add LIBDIR to the \`$runpath_var' environment variable"
49829 - echo " during linking"
49830 + $echo " - add LIBDIR to the \`$runpath_var' environment variable"
49831 + $echo " during linking"
49833 if test -n "$hardcode_libdir_flag_spec"; then
49834 libdir=LIBDIR
49835 eval flag=\"$hardcode_libdir_flag_spec\"
49837 - echo " - use the \`$flag' linker flag"
49838 + $echo " - use the \`$flag' linker flag"
49840 if test -n "$admincmds"; then
49841 - echo " - have your system administrator run these commands:$admincmds"
49842 + $echo " - have your system administrator run these commands:$admincmds"
49844 if test -f /etc/ld.so.conf; then
49845 - echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
49846 + $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
49848 - echo
49849 - echo "See any operating system documentation about shared libraries for"
49850 - echo "more information, such as the ld(1) and ld.so(8) manual pages."
49851 - echo "----------------------------------------------------------------------"
49852 - exit 0
49853 + $echo
49854 + $echo "See any operating system documentation about shared libraries for"
49855 + $echo "more information, such as the ld(1) and ld.so(8) manual pages."
49856 + $echo "X----------------------------------------------------------------------" | $Xsed
49857 + exit $EXIT_SUCCESS
49860 # libtool execute mode
49861 @@ -3601,7 +6311,7 @@
49862 if test -z "$cmd"; then
49863 $echo "$modename: you must specify a COMMAND" 1>&2
49864 $echo "$help"
49865 - exit 1
49866 + exit $EXIT_FAILURE
49869 # Handle -dlopen flags immediately.
49870 @@ -3609,18 +6319,18 @@
49871 if test ! -f "$file"; then
49872 $echo "$modename: \`$file' is not a file" 1>&2
49873 $echo "$help" 1>&2
49874 - exit 1
49875 + exit $EXIT_FAILURE
49878 dir=
49879 - case "$file" in
49880 + case $file in
49881 *.la)
49882 # Check to see that this really is a libtool archive.
49883 - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
49884 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
49885 else
49886 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
49887 $echo "$help" 1>&2
49888 - exit 1
49889 + exit $EXIT_FAILURE
49892 # Read the libtool library.
49893 @@ -3628,7 +6338,7 @@
49894 library_names=
49896 # If there is no directory component, then add one.
49897 - case "$file" in
49898 + case $file in
49899 */* | *\\*) . $file ;;
49900 *) . ./$file ;;
49901 esac
49902 @@ -3647,7 +6357,7 @@
49903 dir="$dir/$objdir"
49904 else
49905 $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
49906 - exit 1
49907 + exit $EXIT_FAILURE
49911 @@ -3683,13 +6393,13 @@
49912 args=
49913 for file
49915 - case "$file" in
49916 + case $file in
49917 -*) ;;
49919 # Do a test to see if this is really a libtool program.
49920 - if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
49921 + if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
49922 # If there is no directory component, then add one.
49923 - case "$file" in
49924 + case $file in
49925 */* | *\\*) . $file ;;
49926 *) . ./$file ;;
49927 esac
49928 @@ -3706,11 +6416,11 @@
49930 if test -z "$run"; then
49931 if test -n "$shlibpath_var"; then
49932 - # Export the shlibpath_var.
49933 - eval "export $shlibpath_var"
49934 + # Export the shlibpath_var.
49935 + eval "export $shlibpath_var"
49938 - # Restore saved enviroment variables
49939 + # Restore saved environment variables
49940 if test "${save_LC_ALL+set}" = set; then
49941 LC_ALL="$save_LC_ALL"; export LC_ALL
49943 @@ -3718,31 +6428,35 @@
49944 LANG="$save_LANG"; export LANG
49947 - # Now actually exec the command.
49948 - eval "exec \$cmd$args"
49950 - $echo "$modename: cannot exec \$cmd$args"
49951 - exit 1
49952 + # Now prepare to actually exec the command.
49953 + exec_cmd="\$cmd$args"
49954 else
49955 # Display what would be done.
49956 if test -n "$shlibpath_var"; then
49957 - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
49958 - $echo "export $shlibpath_var"
49959 + eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
49960 + $echo "export $shlibpath_var"
49962 $echo "$cmd$args"
49963 - exit 0
49964 + exit $EXIT_SUCCESS
49968 - # libtool uninstall mode
49969 - uninstall)
49970 - modename="$modename: uninstall"
49971 + # libtool clean and uninstall mode
49972 + clean | uninstall)
49973 + modename="$modename: $mode"
49974 rm="$nonopt"
49975 files=
49976 + rmforce=
49977 + exit_status=0
49979 + # This variable tells wrapper scripts just to set variables rather
49980 + # than running their programs.
49981 + libtool_install_magic="$magic"
49983 for arg
49985 - case "$arg" in
49986 + case $arg in
49987 + -f) rm="$rm $arg"; rmforce=yes ;;
49988 -*) rm="$rm $arg" ;;
49989 *) files="$files $arg" ;;
49990 esac
49991 @@ -3751,91 +6465,192 @@
49992 if test -z "$rm"; then
49993 $echo "$modename: you must specify an RM program" 1>&2
49994 $echo "$help" 1>&2
49995 - exit 1
49996 + exit $EXIT_FAILURE
49999 + rmdirs=
50001 + origobjdir="$objdir"
50002 for file in $files; do
50003 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
50004 - test "X$dir" = "X$file" && dir=.
50005 + if test "X$dir" = "X$file"; then
50006 + dir=.
50007 + objdir="$origobjdir"
50008 + else
50009 + objdir="$dir/$origobjdir"
50010 + fi
50011 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
50012 + test "$mode" = uninstall && objdir="$dir"
50014 + # Remember objdir for removal later, being careful to avoid duplicates
50015 + if test "$mode" = clean; then
50016 + case " $rmdirs " in
50017 + *" $objdir "*) ;;
50018 + *) rmdirs="$rmdirs $objdir" ;;
50019 + esac
50020 + fi
50022 + # Don't error if the file doesn't exist and rm -f was used.
50023 + if (test -L "$file") >/dev/null 2>&1 \
50024 + || (test -h "$file") >/dev/null 2>&1 \
50025 + || test -f "$file"; then
50027 + elif test -d "$file"; then
50028 + exit_status=1
50029 + continue
50030 + elif test "$rmforce" = yes; then
50031 + continue
50032 + fi
50034 rmfiles="$file"
50036 - case "$name" in
50037 + case $name in
50038 *.la)
50039 # Possibly a libtool archive, so verify it.
50040 - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
50041 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
50042 . $dir/$name
50044 # Delete the libtool libraries and symlinks.
50045 for n in $library_names; do
50046 - rmfiles="$rmfiles $dir/$n"
50047 + rmfiles="$rmfiles $objdir/$n"
50048 done
50049 - test -n "$old_library" && rmfiles="$rmfiles $dir/$old_library"
50050 + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
50052 - $show "$rm $rmfiles"
50053 - $run $rm $rmfiles
50055 - if test -n "$library_names"; then
50056 - # Do each command in the postuninstall commands.
50057 - eval cmds=\"$postuninstall_cmds\"
50058 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
50059 - for cmd in $cmds; do
50060 + case "$mode" in
50061 + clean)
50062 + case " $library_names " in
50063 + # " " in the beginning catches empty $dlname
50064 + *" $dlname "*) ;;
50065 + *) rmfiles="$rmfiles $objdir/$dlname" ;;
50066 + esac
50067 + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
50068 + ;;
50069 + uninstall)
50070 + if test -n "$library_names"; then
50071 + # Do each command in the postuninstall commands.
50072 + cmds=$postuninstall_cmds
50073 + save_ifs="$IFS"; IFS='~'
50074 + for cmd in $cmds; do
50075 + IFS="$save_ifs"
50076 + eval cmd=\"$cmd\"
50077 + $show "$cmd"
50078 + $run eval "$cmd"
50079 + if test "$?" -ne 0 && test "$rmforce" != yes; then
50080 + exit_status=1
50081 + fi
50082 + done
50083 IFS="$save_ifs"
50084 - $show "$cmd"
50085 - $run eval "$cmd"
50086 - done
50087 - IFS="$save_ifs"
50088 - fi
50089 + fi
50091 - if test -n "$old_library"; then
50092 - # Do each command in the old_postuninstall commands.
50093 - eval cmds=\"$old_postuninstall_cmds\"
50094 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
50095 - for cmd in $cmds; do
50096 + if test -n "$old_library"; then
50097 + # Do each command in the old_postuninstall commands.
50098 + cmds=$old_postuninstall_cmds
50099 + save_ifs="$IFS"; IFS='~'
50100 + for cmd in $cmds; do
50101 + IFS="$save_ifs"
50102 + eval cmd=\"$cmd\"
50103 + $show "$cmd"
50104 + $run eval "$cmd"
50105 + if test "$?" -ne 0 && test "$rmforce" != yes; then
50106 + exit_status=1
50107 + fi
50108 + done
50109 IFS="$save_ifs"
50110 - $show "$cmd"
50111 - $run eval "$cmd"
50112 - done
50113 - IFS="$save_ifs"
50114 - fi
50116 - # FIXME: should reinstall the best remaining shared library.
50117 + fi
50118 + # FIXME: should reinstall the best remaining shared library.
50119 + ;;
50120 + esac
50124 *.lo)
50125 - if test "$build_old_libs" = yes; then
50126 - oldobj=`$echo "X$name" | $Xsed -e "$lo2o"`
50127 - rmfiles="$rmfiles $dir/$oldobj"
50128 + # Possibly a libtool object, so verify it.
50129 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
50131 + # Read the .lo file
50132 + . $dir/$name
50134 + # Add PIC object to the list of files to remove.
50135 + if test -n "$pic_object" \
50136 + && test "$pic_object" != none; then
50137 + rmfiles="$rmfiles $dir/$pic_object"
50138 + fi
50140 + # Add non-PIC object to the list of files to remove.
50141 + if test -n "$non_pic_object" \
50142 + && test "$non_pic_object" != none; then
50143 + rmfiles="$rmfiles $dir/$non_pic_object"
50144 + fi
50146 - $show "$rm $rmfiles"
50147 - $run $rm $rmfiles
50151 - $show "$rm $rmfiles"
50152 - $run $rm $rmfiles
50153 + if test "$mode" = clean ; then
50154 + noexename=$name
50155 + case $file in
50156 + *.exe)
50157 + file=`$echo $file|${SED} 's,.exe$,,'`
50158 + noexename=`$echo $name|${SED} 's,.exe$,,'`
50159 + # $file with .exe has already been added to rmfiles,
50160 + # add $file without .exe
50161 + rmfiles="$rmfiles $file"
50162 + ;;
50163 + esac
50164 + # Do a test to see if this is a libtool program.
50165 + if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
50166 + relink_command=
50167 + . $dir/$noexename
50169 + # note $name still contains .exe if it was in $file originally
50170 + # as does the version of $file that was added into $rmfiles
50171 + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
50172 + if test "$fast_install" = yes && test -n "$relink_command"; then
50173 + rmfiles="$rmfiles $objdir/lt-$name"
50174 + fi
50175 + if test "X$noexename" != "X$name" ; then
50176 + rmfiles="$rmfiles $objdir/lt-${noexename}.c"
50177 + fi
50178 + fi
50179 + fi
50181 esac
50182 + $show "$rm $rmfiles"
50183 + $run $rm $rmfiles || exit_status=1
50184 done
50185 - exit 0
50186 + objdir="$origobjdir"
50188 + # Try to remove the ${objdir}s in the directories where we deleted files
50189 + for dir in $rmdirs; do
50190 + if test -d "$dir"; then
50191 + $show "rmdir $dir"
50192 + $run rmdir $dir >/dev/null 2>&1
50193 + fi
50194 + done
50196 + exit $exit_status
50200 $echo "$modename: you must specify a MODE" 1>&2
50201 $echo "$generic_help" 1>&2
50202 - exit 1
50203 + exit $EXIT_FAILURE
50205 esac
50207 - $echo "$modename: invalid operation mode \`$mode'" 1>&2
50208 - $echo "$generic_help" 1>&2
50209 - exit 1
50210 + if test -z "$exec_cmd"; then
50211 + $echo "$modename: invalid operation mode \`$mode'" 1>&2
50212 + $echo "$generic_help" 1>&2
50213 + exit $EXIT_FAILURE
50214 + fi
50215 fi # test -z "$show_help"
50217 +if test -n "$exec_cmd"; then
50218 + eval exec $exec_cmd
50219 + exit $EXIT_FAILURE
50222 # We need to display help for each of the modes.
50223 -case "$mode" in
50224 +case $mode in
50225 "") $echo \
50226 "Usage: $modename [OPTION]... [MODE-ARG]...
50228 @@ -3850,10 +6665,12 @@
50229 --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
50230 --quiet same as \`--silent'
50231 --silent don't print informational messages
50232 + --tag=TAG use configuration variables from tag TAG
50233 --version print version information
50235 MODE must be one of the following:
50237 + clean remove files from the build directory
50238 compile compile a source file into a libtool object
50239 execute automatically set library path, then run a program
50240 finish complete the installation of libtool libraries
50241 @@ -3862,8 +6679,24 @@
50242 uninstall remove libraries from an installed directory
50244 MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
50245 -a more detailed description of MODE."
50246 - exit 0
50247 +a more detailed description of MODE.
50249 +Report bugs to <bug-libtool@gnu.org>."
50250 + exit $EXIT_SUCCESS
50251 + ;;
50253 +clean)
50254 + $echo \
50255 +"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
50257 +Remove files from the build directory.
50259 +RM is the name of the program to use to delete files associated with each FILE
50260 +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
50261 +to RM.
50263 +If FILE is a libtool library, object or program, all the files associated
50264 +with it are deleted. Otherwise, only FILE itself is deleted using RM."
50267 compile)
50268 @@ -3875,6 +6708,8 @@
50269 This mode accepts the following additional options:
50271 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
50272 + -prefer-pic try to building PIC objects only
50273 + -prefer-non-pic try to building non-PIC objects only
50274 -static always build a \`.o' file suitable for static linking
50276 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
50277 @@ -3954,8 +6789,13 @@
50278 -LLIBDIR search LIBDIR for required installed libraries
50279 -lNAME OUTPUT-FILE requires the installed library libNAME
50280 -module build a library that can dlopened
50281 + -no-fast-install disable the fast-install mode
50282 + -no-install link a not-installable executable
50283 -no-undefined declare that a library does not refer to external symbols
50284 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
50285 + -objectlist FILE Use a list of object files found in FILE to specify objects
50286 + -precious-files-regex REGEX
50287 + don't remove output files matching REGEX
50288 -release RELEASE specify package release information
50289 -rpath LIBDIR the created library will eventually be installed in LIBDIR
50290 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
50291 @@ -3997,14 +6837,33 @@
50293 $echo "$modename: invalid operation mode \`$mode'" 1>&2
50294 $echo "$help" 1>&2
50295 - exit 1
50296 + exit $EXIT_FAILURE
50298 esac
50300 -echo
50301 +$echo
50302 $echo "Try \`$modename --help' for more information about other modes."
50304 -exit 0
50305 +exit $?
50307 +# The TAGs below are defined such that we never get into a situation
50308 +# in which we disable both kinds of libraries. Given conflicting
50309 +# choices, we go for a static library, that is the most portable,
50310 +# since we can't tell whether shared libraries were disabled because
50311 +# the user asked for that or because the platform doesn't support
50312 +# them. This is particularly important on AIX, because we don't
50313 +# support having both static and shared libraries enabled at the same
50314 +# time on that platform, so we default to a shared-only configuration.
50315 +# If a disable-shared tag is given, we'll fallback to a static-only
50316 +# configuration. But we'll never go from static-only to shared-only.
50318 +# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
50319 +disable_libs=shared
50320 +# ### END LIBTOOL TAG CONFIG: disable-shared
50322 +# ### BEGIN LIBTOOL TAG CONFIG: disable-static
50323 +disable_libs=static
50324 +# ### END LIBTOOL TAG CONFIG: disable-static
50326 # Local Variables:
50327 # mode:shell-script