Codebase list gtkatlantic / 7f030aa
Merge tag 'upstream/0.6.0' Upstream version 0.6.0 # gpg: Signature made Fri 17 Jul 2015 23:23:37 CEST using RSA key ID 513B51E4 # gpg: Good signature from "Markus Koschany <apo@gambaru.de>" [ultimate] # gpg: aka "Markus Koschany <markus@koschany.net>" [ultimate] Markus Koschany 8 years ago
94 changed file(s) with 5483 addition(s) and 46870 deletion(s). Raw diff Collapse all Expand all
0 GNU GENERAL PUBLIC LICENSE
1 Version 2, June 1991
2
3 Copyright (C) 1989, 1991 Free Software Foundation, Inc.
4 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
0 GNU GENERAL PUBLIC LICENSE
1 Version 2, June 1991
2
3 Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
4 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
55 Everyone is permitted to copy and distribute verbatim copies
66 of this license document, but changing it is not allowed.
77
8 Preamble
8 Preamble
99
1010 The licenses for most software are designed to take away your
1111 freedom to share and change it. By contrast, the GNU General Public
1414 General Public License applies to most of the Free Software
1515 Foundation's software and to any other program whose authors commit to
1616 using it. (Some other Free Software Foundation software is covered by
17 the GNU Library General Public License instead.) You can apply it to
17 the GNU Lesser General Public License instead.) You can apply it to
1818 your programs, too.
1919
2020 When we speak of free software, we are referring to freedom, not
5454
5555 The precise terms and conditions for copying, distribution and
5656 modification follow.
57
58 GNU GENERAL PUBLIC LICENSE
57
58 GNU GENERAL PUBLIC LICENSE
5959 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
6060
6161 0. This License applies to any program or other work which contains
109109 License. (Exception: if the Program itself is interactive but
110110 does not normally print such an announcement, your work based on
111111 the Program is not required to print an announcement.)
112
112
113113 These requirements apply to the modified work as a whole. If
114114 identifiable sections of that work are not derived from the Program,
115115 and can be reasonably considered independent and separate works in
167167 access to copy the source code from the same place counts as
168168 distribution of the source code, even though third parties are not
169169 compelled to copy the source along with the object code.
170
170
171171 4. You may not copy, modify, sublicense, or distribute the Program
172172 except as expressly provided under this License. Any attempt
173173 otherwise to copy, modify, sublicense or distribute the Program is
224224
225225 This section is intended to make thoroughly clear what is believed to
226226 be a consequence of the rest of this License.
227
227
228228 8. If the distribution and/or use of the Program is restricted in
229229 certain countries either by patents or by copyrighted interfaces, the
230230 original copyright holder who places the Program under this License
254254 of preserving the free status of all derivatives of our free software and
255255 of promoting the sharing and reuse of software generally.
256256
257 NO WARRANTY
257 NO WARRANTY
258258
259259 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
260260 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
276276 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
277277 POSSIBILITY OF SUCH DAMAGES.
278278
279 END OF TERMS AND CONDITIONS
280
281 How to Apply These Terms to Your New Programs
279 END OF TERMS AND CONDITIONS
280
281 How to Apply These Terms to Your New Programs
282282
283283 If you develop a new program, and you want it to be of the greatest
284284 possible use to the public, the best way to achieve this is to make it
302302 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
303303 GNU General Public License for more details.
304304
305 You should have received a copy of the GNU General Public License
306 along with this program; if not, write to the Free Software
307 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
308
305 You should have received a copy of the GNU General Public License along
306 with this program; if not, write to the Free Software Foundation, Inc.,
307 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
309308
310309 Also add information on how to contact you by electronic and paper mail.
311310
312311 If the program is interactive, make it output a short notice like this
313312 when it starts in an interactive mode:
314313
315 Gnomovision version 69, Copyright (C) year name of author
314 Gnomovision version 69, Copyright (C) year name of author
316315 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317316 This is free software, and you are welcome to redistribute it
318317 under certain conditions; type `show c' for details.
335334 This General Public License does not permit incorporating your program into
336335 proprietary programs. If your program is a subroutine library, you may
337336 consider it more useful to permit linking proprietary applications with the
338 library. If this is what you want to do, use the GNU Library General
337 library. If this is what you want to do, use the GNU Lesser General
339338 Public License instead of this License.
0 2015-07-12 Sylvain Rochet
1 * added IPv6 support
2 * removed support of the legacy <configupdate/> protocol
3 * various changes to cope better with the updated <display/> protocol
4 * improved auction UI
5 * removed deprecated GTK 3.16 stuff (like gtk_alignment_new()
6 and gtk_widget_reparent())
7 * reworked game lounge UI
8 * added full support for spectators players
9 * updated to support monopd 0.10.0 protocol
10 * reworked internal data structures, getting rid of most ugly static
11 tables of structs
12 * added new icons set
13 * gtkatlantic: release 0.6.0
14
015 2014-03-22 Sylvain Rochet
116 * fully ported to GTK3, without using any deprecated GTK3 widget
217 * full support of monopd 0.9.5 protocol
0 SUBDIRS=src
0 SUBDIRS=src data
11 ACLOCAL_AMFLAGS = -I m4
22
3 install-data-local:
4 @$(NORMAL_INSTALL)
5 if test -d $(srcdir)/data; then \
6 $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/; \
7 for datafile in $(srcdir)/data/*; do \
8 if test -f $$datafile; then \
9 $(INSTALL_DATA) $$datafile $(DESTDIR)$(pkgdatadir)/; \
10 fi \
11 done \
12 fi
13 if test -d $(srcdir)/themes; then \
14 $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/themes; \
15 for themedir in $(srcdir)/themes/*; do \
16 if test -d $$themedir; then \
17 $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/$$themedir; \
18 for themefile in $(srcdir)/$$themedir/*; do \
19 if test -f $$themefile; then \
20 $(INSTALL_DATA) $$themefile $(DESTDIR)$(pkgdatadir)/$$themedir; \
21 fi \
22 done \
23 fi \
24 done \
25 fi
26
27
28 uninstall-local:
29 @$(NORMAL_UNINSTALL)
30 if test -d $(DESTDIR)$(pkgdatadir)/; then \
31 rm -rf $(DESTDIR)$(pkgdatadir)/; \
32 fi
3 desktopdir = $(datadir)/applications
4 nobase_dist_desktop_DATA = gtkatlantic.desktop
5 EXTRA_DIST = gtkatlantic.xpm
1212 # PARTICULAR PURPOSE.
1313
1414 @SET_MAKE@
15
1516 srcdir = @srcdir@
1617 top_srcdir = @top_srcdir@
1718 VPATH = @srcdir@
3435 POST_UNINSTALL = :
3536 build_triplet = @build@
3637 host_triplet = @host@
37 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
38 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
39 $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
40 config.guess config.sub depcomp install-sh ltmain.sh missing
38 DIST_COMMON = README $(am__configure_deps) $(nobase_dist_desktop_DATA) \
39 $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
40 $(srcdir)/config.h.in $(top_srcdir)/configure AUTHORS COPYING \
41 ChangeLog INSTALL NEWS config.guess config.sub depcomp \
42 install-sh ltmain.sh missing
4143 subdir = .
4244 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
4345 am__aclocal_m4_deps = $(top_srcdir)/configure.in
5658 install-recursive installcheck-recursive installdirs-recursive \
5759 pdf-recursive ps-recursive uninstall-info-recursive \
5860 uninstall-recursive
61 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
62 am__vpath_adj = case $$p in \
63 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
64 *) f=$$p;; \
65 esac;
66 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
67 am__installdirs = "$(DESTDIR)$(desktopdir)"
68 nobase_dist_desktopDATA_INSTALL = $(install_sh_DATA)
69 DATA = $(nobase_dist_desktop_DATA)
5970 ETAGS = etags
6071 CTAGS = ctags
6172 DIST_SUBDIRS = $(SUBDIRS)
181192 sharedstatedir = @sharedstatedir@
182193 sysconfdir = @sysconfdir@
183194 target_alias = @target_alias@
184 SUBDIRS = src
195 SUBDIRS = src data
185196 ACLOCAL_AMFLAGS = -I m4
197 desktopdir = $(datadir)/applications
198 nobase_dist_desktop_DATA = gtkatlantic.desktop
199 EXTRA_DIST = gtkatlantic.xpm
186200 all: config.h
187201 $(MAKE) $(AM_MAKEFLAGS) all-recursive
188202
247261 distclean-libtool:
248262 -rm -f libtool
249263 uninstall-info-am:
264 install-nobase_dist_desktopDATA: $(nobase_dist_desktop_DATA)
265 @$(NORMAL_INSTALL)
266 test -z "$(desktopdir)" || $(mkdir_p) "$(DESTDIR)$(desktopdir)"
267 @$(am__vpath_adj_setup) \
268 list='$(nobase_dist_desktop_DATA)'; for p in $$list; do \
269 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
270 $(am__vpath_adj) \
271 echo " $(nobase_dist_desktopDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(desktopdir)/$$f'"; \
272 $(nobase_dist_desktopDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(desktopdir)/$$f"; \
273 done
274
275 uninstall-nobase_dist_desktopDATA:
276 @$(NORMAL_UNINSTALL)
277 @$(am__vpath_adj_setup) \
278 list='$(nobase_dist_desktop_DATA)'; for p in $$list; do \
279 $(am__vpath_adj) \
280 echo " rm -f '$(DESTDIR)$(desktopdir)/$$f'"; \
281 rm -f "$(DESTDIR)$(desktopdir)/$$f"; \
282 done
250283
251284 # This directory's subdirectories are mostly independent; you can cd
252285 # into them and run `make' without going through this Makefile.
524557 exit 1; } >&2
525558 check-am: all-am
526559 check: check-recursive
527 all-am: Makefile config.h
560 all-am: Makefile $(DATA) config.h
528561 installdirs: installdirs-recursive
529562 installdirs-am:
563 for dir in "$(DESTDIR)$(desktopdir)"; do \
564 test -z "$$dir" || $(mkdir_p) "$$dir"; \
565 done
530566 install: install-recursive
531567 install-exec: install-exec-recursive
532568 install-data: install-data-recursive
571607
572608 info-am:
573609
574 install-data-am: install-data-local
610 install-data-am: install-nobase_dist_desktopDATA
575611
576612 install-exec-am:
577613
599635
600636 ps-am:
601637
602 uninstall-am: uninstall-info-am uninstall-local
638 uninstall-am: uninstall-info-am uninstall-nobase_dist_desktopDATA
603639
604640 uninstall-info: uninstall-info-recursive
605641
610646 distclean-generic distclean-hdr distclean-libtool \
611647 distclean-recursive distclean-tags distcleancheck distdir \
612648 distuninstallcheck dvi dvi-am html html-am info info-am \
613 install install-am install-data install-data-am \
614 install-data-local install-exec install-exec-am install-info \
615 install-info-am install-man install-strip installcheck \
649 install install-am install-data install-data-am install-exec \
650 install-exec-am install-info install-info-am install-man \
651 install-nobase_dist_desktopDATA install-strip installcheck \
616652 installcheck-am installdirs installdirs-am maintainer-clean \
617653 maintainer-clean-generic maintainer-clean-recursive \
618654 mostlyclean mostlyclean-generic mostlyclean-libtool \
619655 mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
620 uninstall uninstall-am uninstall-info-am uninstall-local
621
622
623 install-data-local:
624 @$(NORMAL_INSTALL)
625 if test -d $(srcdir)/data; then \
626 $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/; \
627 for datafile in $(srcdir)/data/*; do \
628 if test -f $$datafile; then \
629 $(INSTALL_DATA) $$datafile $(DESTDIR)$(pkgdatadir)/; \
630 fi \
631 done \
632 fi
633 if test -d $(srcdir)/themes; then \
634 $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/themes; \
635 for themedir in $(srcdir)/themes/*; do \
636 if test -d $$themedir; then \
637 $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/$$themedir; \
638 for themefile in $(srcdir)/$$themedir/*; do \
639 if test -f $$themefile; then \
640 $(INSTALL_DATA) $$themefile $(DESTDIR)$(pkgdatadir)/$$themedir; \
641 fi \
642 done \
643 fi \
644 done \
645 fi
646
647 uninstall-local:
648 @$(NORMAL_UNINSTALL)
649 if test -d $(DESTDIR)$(pkgdatadir)/; then \
650 rm -rf $(DESTDIR)$(pkgdatadir)/; \
651 fi
656 uninstall uninstall-am uninstall-info-am \
657 uninstall-nobase_dist_desktopDATA
658
652659 # Tell versions [3.59,3.63) of GNU make to not export all variables.
653660 # Otherwise a system limit (for SysV at least) may be exceeded.
654661 .NOEXPORT:
0 2015-07-12 Sylvain Rochet
1 * added IPv6 support
2 * removed support of the legacy <configupdate/> protocol
3 * various changes to cope better with the updated <display/> protocol
4 * improved auction UI
5 * removed deprecated GTK 3.16 stuff (like gtk_alignment_new()
6 and gtk_widget_reparent())
7 * reworked game lounge UI
8 * added full support for spectators players
9 * updated to support monopd 0.10.0 protocol
10 * reworked internal data structures, getting rid of most ugly static
11 tables of structs
12 * added new icons set
13 * gtkatlantic: release 0.6.0
14
015 2014-03-22 Sylvain Rochet
116 * fully ported to GTK3, without using any deprecated GTK3 widget
217 * full support of monopd 0.9.5 protocol
00 ================================================================================
11 GtkAtlantic - Sylvain Rochet <gradator@gradator.net>
2 Version 0.5.0
2 Version 0.6.0
33 ================================================================================
44
55 This monopd client can only play Monopoly® game, support for other games type
87728772 fi[]dnl
87738773 ])# PKG_CHECK_MODULES
87748774
8775
8776 # PKG_INSTALLDIR(DIRECTORY)
8777 # -------------------------
8778 # Substitutes the variable pkgconfigdir as the location where a module
8779 # should install pkg-config .pc files. By default the directory is
8780 # $libdir/pkgconfig, but the default can be changed by passing
8781 # DIRECTORY. The user can override through the --with-pkgconfigdir
8782 # parameter.
8783 AC_DEFUN([PKG_INSTALLDIR],
8784 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
8785 m4_pushdef([pkg_description],
8786 [pkg-config installation directory @<:@]pkg_default[@:>@])
8787 AC_ARG_WITH([pkgconfigdir],
8788 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
8789 [with_pkgconfigdir=]pkg_default)
8790 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
8791 m4_popdef([pkg_default])
8792 m4_popdef([pkg_description])
8793 ]) dnl PKG_INSTALLDIR
8794
8795
8796 # PKG_NOARCH_INSTALLDIR(DIRECTORY)
8797 # -------------------------
8798 # Substitutes the variable noarch_pkgconfigdir as the location where a
8799 # module should install arch-independent pkg-config .pc files. By
8800 # default the directory is $datadir/pkgconfig, but the default can be
8801 # changed by passing DIRECTORY. The user can override through the
8802 # --with-noarch-pkgconfigdir parameter.
8803 AC_DEFUN([PKG_NOARCH_INSTALLDIR],
8804 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
8805 m4_pushdef([pkg_description],
8806 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
8807 AC_ARG_WITH([noarch-pkgconfigdir],
8808 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
8809 [with_noarch_pkgconfigdir=]pkg_default)
8810 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
8811 m4_popdef([pkg_default])
8812 m4_popdef([pkg_description])
8813 ]) dnl PKG_NOARCH_INSTALLDIR
8814
8815
8816 # PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
8817 # [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
8818 # -------------------------------------------
8819 # Retrieves the value of the pkg-config variable for the given module.
8820 AC_DEFUN([PKG_CHECK_VAR],
8821 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
8822 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
8823
8824 _PKG_CONFIG([$1], [variable="][$3]["], [$2])
8825 AS_VAR_COPY([$1], [pkg_cv_][$1])
8826
8827 AS_VAR_IF([$1], [""], [$5], [$4])dnl
8828 ])# PKG_CHECK_VAR
8829
87758830 # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
87768831 #
87778832 # This file is free software; the Free Software Foundation
+0
-106
autogen.sh less more
0 #!/bin/sh
1 # Run this to generate all the initial makefiles, etc.
2
3 srcdir=`dirname $0`
4 PKG_NAME="the package."
5
6 DIE=0
7
8 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
9 echo
10 echo "**Error**: You must have \`autoconf' installed to."
11 echo "Download the appropriate package for your distribution,"
12 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
13 DIE=1
14 }
15
16 (grep "^LT_INIT" $srcdir/configure.in >/dev/null) && {
17 (libtool --version) < /dev/null > /dev/null 2>&1 || {
18 echo
19 echo "**Error**: You must have \`libtool' installed."
20 echo "Get ftp://ftp.gnu.org/pub/gnu/"
21 echo "(or a newer version if it is available)"
22 DIE=1
23 }
24 }
25
26 (automake --version) < /dev/null > /dev/null 2>&1 || {
27 echo
28 echo "**Error**: You must have \`automake' installed."
29 echo "Get ftp://ftp.gnu.org/pub/gnu/"
30 echo "(or a newer version if it is available)"
31 DIE=1
32 NO_AUTOMAKE=yes
33 }
34
35
36 # if no automake, don't bother testing for aclocal
37 test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
38 echo
39 echo "**Error**: Missing \`aclocal'. The version of \`automake'"
40 echo "installed doesn't appear recent enough."
41 echo "Get ftp://ftp.gnu.org/pub/gnu/"
42 echo "(or a newer version if it is available)"
43 DIE=1
44 }
45
46 if test "$DIE" -eq 1; then
47 exit 1
48 fi
49
50 if test -z "$*"; then
51 echo "**Warning**: I am going to run \`configure' with no arguments."
52 echo "If you wish to pass any to it, please specify them on the"
53 echo \`$0\'" command line."
54 echo
55 fi
56
57 case $CC in
58 xlc )
59 am_opt=--include-deps;;
60 esac
61
62 for coin in `find $srcdir -name configure.in -print`
63 do
64 dr=`dirname $coin`
65 if test -f $dr/NO-AUTO-GEN; then
66 echo skipping $dr -- flagged as no auto-gen
67 else
68 echo processing $dr
69 macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE(\(.*\)),\1,gp' < $coin`
70 ( cd $dr
71 aclocalinclude="$ACLOCAL_FLAGS"
72 for k in $macrodirs; do
73 if test -d $k; then
74 aclocalinclude="$aclocalinclude -I $k"
75 ##else
76 ## echo "**Warning**: No such directory \`$k'. Ignored."
77 fi
78 done
79 if grep "^LT_INIT" configure.in >/dev/null; then
80 echo "Running libtoolize..."
81 libtoolize --force --copy
82 fi
83 echo "Running aclocal $aclocalinclude ..."
84 aclocal $aclocalinclude
85 if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
86 echo "Running autoheader..."
87 autoheader
88 fi
89 echo "Running automake --gnu $am_opt ..."
90 automake --add-missing --gnu --copy $am_opt
91 echo "Running autoconf ..."
92 autoconf
93 )
94 fi
95 done
96
97 #conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
98
99 if test x$NOCONFIGURE = x; then
100 echo Running $srcdir/configure $conf_flags "$@" ...
101 $srcdir/configure $conf_flags "$@" \
102 && echo Now type \`make\' to compile $PKG_NAME
103 else
104 echo Skipping configure process.
105 fi
+0
-15264
autom4te.cache/output.0 less more
0 @%:@! /bin/sh
1 @%:@ Guess values for system-dependent variables and create Makefiles.
2 @%:@ Generated by GNU Autoconf 2.69.
3 @%:@
4 @%:@
5 @%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
6 @%:@
7 @%:@
8 @%:@ This configure script is free software; the Free Software Foundation
9 @%:@ gives unlimited permission to copy, distribute and modify it.
10 ## -------------------- ##
11 ## M4sh Initialization. ##
12 ## -------------------- ##
13
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17 emulate sh
18 NULLCMD=:
19 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in @%:@(
25 *posix*) :
26 set -o posix ;; @%:@(
27 *) :
28 ;;
29 esac
30 fi
31
32
33 as_nl='
34 '
35 export as_nl
36 # Printing a long string crashes Solaris 7 /usr/bin/printf.
37 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
38 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
40 # Prefer a ksh shell builtin over an external printf program on Solaris,
41 # but without wasting forks for bash or zsh.
42 if test -z "$BASH_VERSION$ZSH_VERSION" \
43 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
44 as_echo='print -r --'
45 as_echo_n='print -rn --'
46 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='printf %s\n'
48 as_echo_n='printf %s'
49 else
50 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
51 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
52 as_echo_n='/usr/ucb/echo -n'
53 else
54 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
55 as_echo_n_body='eval
56 arg=$1;
57 case $arg in @%:@(
58 *"$as_nl"*)
59 expr "X$arg" : "X\\(.*\\)$as_nl";
60 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
61 esac;
62 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
63 '
64 export as_echo_n_body
65 as_echo_n='sh -c $as_echo_n_body as_echo'
66 fi
67 export as_echo_body
68 as_echo='sh -c $as_echo_body as_echo'
69 fi
70
71 # The user is always right.
72 if test "${PATH_SEPARATOR+set}" != set; then
73 PATH_SEPARATOR=:
74 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
75 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
76 PATH_SEPARATOR=';'
77 }
78 fi
79
80
81 # IFS
82 # We need space, tab and new line, in precisely that order. Quoting is
83 # there to prevent editors from complaining about space-tab.
84 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
85 # splitting by setting IFS to empty value.)
86 IFS=" "" $as_nl"
87
88 # Find who we are. Look in the path if we contain no directory separator.
89 as_myself=
90 case $0 in @%:@((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 # Use a proper internal environment variable to ensure we don't fall
135 # into an infinite loop, continuously re-executing ourselves.
136 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
137 _as_can_reexec=no; export _as_can_reexec;
138 # We cannot yet assume a decent shell, so we have to provide a
139 # neutralization value for shells without unset; and this also
140 # works around shells that cannot unset nonexistent variables.
141 # Preserve -v and -x to the replacement shell.
142 BASH_ENV=/dev/null
143 ENV=/dev/null
144 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
145 case $- in @%:@ ((((
146 *v*x* | *x*v* ) as_opts=-vx ;;
147 *v* ) as_opts=-v ;;
148 *x* ) as_opts=-x ;;
149 * ) as_opts= ;;
150 esac
151 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
152 # Admittedly, this is quite paranoid, since all the known shells bail
153 # out after a failed `exec'.
154 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
155 as_fn_exit 255
156 fi
157 # We don't want this to propagate to other subprocesses.
158 { _as_can_reexec=; unset _as_can_reexec;}
159 if test "x$CONFIG_SHELL" = x; then
160 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
161 emulate sh
162 NULLCMD=:
163 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
164 # is contrary to our usage. Disable this feature.
165 alias -g '\${1+\"\$@\"}'='\"\$@\"'
166 setopt NO_GLOB_SUBST
167 else
168 case \`(set -o) 2>/dev/null\` in @%:@(
169 *posix*) :
170 set -o posix ;; @%:@(
171 *) :
172 ;;
173 esac
174 fi
175 "
176 as_required="as_fn_return () { (exit \$1); }
177 as_fn_success () { as_fn_return 0; }
178 as_fn_failure () { as_fn_return 1; }
179 as_fn_ret_success () { return 0; }
180 as_fn_ret_failure () { return 1; }
181
182 exitcode=0
183 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
184 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
185 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
186 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
187 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
188
189 else
190 exitcode=1; echo positional parameters were not saved.
191 fi
192 test x\$exitcode = x0 || exit 1
193 test -x / || exit 1"
194 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
195 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
196 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
197 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
198 test \$(( 1 + 1 )) = 2 || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
207 if (eval "$as_required") 2>/dev/null; then :
208 as_have_required=yes
209 else
210 as_have_required=no
211 fi
212 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
213
214 else
215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
216 as_found=false
217 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
218 do
219 IFS=$as_save_IFS
220 test -z "$as_dir" && as_dir=.
221 as_found=:
222 case $as_dir in @%:@(
223 /*)
224 for as_base in sh bash ksh sh5; do
225 # Try only shells that exist, to save several forks.
226 as_shell=$as_dir/$as_base
227 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
228 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
229 CONFIG_SHELL=$as_shell as_have_required=yes
230 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 break 2
232 fi
233 fi
234 done;;
235 esac
236 as_found=false
237 done
238 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
239 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
240 CONFIG_SHELL=$SHELL as_have_required=yes
241 fi; }
242 IFS=$as_save_IFS
243
244
245 if test "x$CONFIG_SHELL" != x; then :
246 export CONFIG_SHELL
247 # We cannot yet assume a decent shell, so we have to provide a
248 # neutralization value for shells without unset; and this also
249 # works around shells that cannot unset nonexistent variables.
250 # Preserve -v and -x to the replacement shell.
251 BASH_ENV=/dev/null
252 ENV=/dev/null
253 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
254 case $- in @%:@ ((((
255 *v*x* | *x*v* ) as_opts=-vx ;;
256 *v* ) as_opts=-v ;;
257 *x* ) as_opts=-x ;;
258 * ) as_opts= ;;
259 esac
260 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
261 # Admittedly, this is quite paranoid, since all the known shells bail
262 # out after a failed `exec'.
263 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
264 exit 255
265 fi
266
267 if test x$as_have_required = xno; then :
268 $as_echo "$0: This script requires a shell more modern than all"
269 $as_echo "$0: the shells that I found on your system."
270 if test x${ZSH_VERSION+set} = xset ; then
271 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
272 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
273 else
274 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
275 $0: including any error possibly output before this
276 $0: message. Then install a modern shell, or manually run
277 $0: the script under such a shell if you do have one."
278 fi
279 exit 1
280 fi
281 fi
282 fi
283 SHELL=${CONFIG_SHELL-/bin/sh}
284 export SHELL
285 # Unset more variables known to interfere with behavior of common tools.
286 CLICOLOR_FORCE= GREP_OPTIONS=
287 unset CLICOLOR_FORCE GREP_OPTIONS
288
289 ## --------------------- ##
290 ## M4sh Shell Functions. ##
291 ## --------------------- ##
292 @%:@ as_fn_unset VAR
293 @%:@ ---------------
294 @%:@ Portably unset VAR.
295 as_fn_unset ()
296 {
297 { eval $1=; unset $1;}
298 }
299 as_unset=as_fn_unset
300
301 @%:@ as_fn_set_status STATUS
302 @%:@ -----------------------
303 @%:@ Set @S|@? to STATUS, without forking.
304 as_fn_set_status ()
305 {
306 return $1
307 } @%:@ as_fn_set_status
308
309 @%:@ as_fn_exit STATUS
310 @%:@ -----------------
311 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
312 as_fn_exit ()
313 {
314 set +e
315 as_fn_set_status $1
316 exit $1
317 } @%:@ as_fn_exit
318
319 @%:@ as_fn_mkdir_p
320 @%:@ -------------
321 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
322 as_fn_mkdir_p ()
323 {
324
325 case $as_dir in #(
326 -*) as_dir=./$as_dir;;
327 esac
328 test -d "$as_dir" || eval $as_mkdir_p || {
329 as_dirs=
330 while :; do
331 case $as_dir in #(
332 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
333 *) as_qdir=$as_dir;;
334 esac
335 as_dirs="'$as_qdir' $as_dirs"
336 as_dir=`$as_dirname -- "$as_dir" ||
337 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
338 X"$as_dir" : 'X\(//\)[^/]' \| \
339 X"$as_dir" : 'X\(//\)$' \| \
340 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
341 $as_echo X"$as_dir" |
342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)[^/].*/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)$/{
351 s//\1/
352 q
353 }
354 /^X\(\/\).*/{
355 s//\1/
356 q
357 }
358 s/.*/./; q'`
359 test -d "$as_dir" && break
360 done
361 test -z "$as_dirs" || eval "mkdir $as_dirs"
362 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363
364
365 } @%:@ as_fn_mkdir_p
366
367 @%:@ as_fn_executable_p FILE
368 @%:@ -----------------------
369 @%:@ Test if FILE is an executable regular file.
370 as_fn_executable_p ()
371 {
372 test -f "$1" && test -x "$1"
373 } @%:@ as_fn_executable_p
374 @%:@ as_fn_append VAR VALUE
375 @%:@ ----------------------
376 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
377 @%:@ advantage of any shell optimizations that allow amortized linear growth over
378 @%:@ repeated appends, instead of the typical quadratic growth present in naive
379 @%:@ implementations.
380 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
381 eval 'as_fn_append ()
382 {
383 eval $1+=\$2
384 }'
385 else
386 as_fn_append ()
387 {
388 eval $1=\$$1\$2
389 }
390 fi # as_fn_append
391
392 @%:@ as_fn_arith ARG...
393 @%:@ ------------------
394 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
395 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
396 @%:@ must be portable across @S|@(()) and expr.
397 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 eval 'as_fn_arith ()
399 {
400 as_val=$(( $* ))
401 }'
402 else
403 as_fn_arith ()
404 {
405 as_val=`expr "$@" || test $? -eq 1`
406 }
407 fi # as_fn_arith
408
409
410 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
411 @%:@ ----------------------------------------
412 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
413 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
414 @%:@ script with STATUS, using 1 if that was 0.
415 as_fn_error ()
416 {
417 as_status=$1; test $as_status -eq 0 && as_status=1
418 if test "$4"; then
419 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
420 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
421 fi
422 $as_echo "$as_me: error: $2" >&2
423 as_fn_exit $as_status
424 } @%:@ as_fn_error
425
426 if expr a : '\(a\)' >/dev/null 2>&1 &&
427 test "X`expr 00001 : '.*\(...\)'`" = X001; then
428 as_expr=expr
429 else
430 as_expr=false
431 fi
432
433 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
434 as_basename=basename
435 else
436 as_basename=false
437 fi
438
439 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
440 as_dirname=dirname
441 else
442 as_dirname=false
443 fi
444
445 as_me=`$as_basename -- "$0" ||
446 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
447 X"$0" : 'X\(//\)$' \| \
448 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
449 $as_echo X/"$0" |
450 sed '/^.*\/\([^/][^/]*\)\/*$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\/\)$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\).*/{
459 s//\1/
460 q
461 }
462 s/.*/./; q'`
463
464 # Avoid depending upon Character Ranges.
465 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
466 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
467 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
468 as_cr_digits='0123456789'
469 as_cr_alnum=$as_cr_Letters$as_cr_digits
470
471
472 as_lineno_1=$LINENO as_lineno_1a=$LINENO
473 as_lineno_2=$LINENO as_lineno_2a=$LINENO
474 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
475 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
476 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
477 sed -n '
478 p
479 /[$]LINENO/=
480 ' <$as_myself |
481 sed '
482 s/[$]LINENO.*/&-/
483 t lineno
484 b
485 :lineno
486 N
487 :loop
488 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
489 t loop
490 s/-\n.*//
491 ' >$as_me.lineno &&
492 chmod +x "$as_me.lineno" ||
493 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
494
495 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
496 # already done that, so ensure we don't try to do so again and fall
497 # in an infinite loop. This has already happened in practice.
498 _as_can_reexec=no; export _as_can_reexec
499 # Don't try to exec as it changes $[0], causing all sort of problems
500 # (the dirname of $[0] is not the place where we might find the
501 # original and so on. Autoconf is especially sensitive to this).
502 . "./$as_me.lineno"
503 # Exit status is that of the last command.
504 exit
505 }
506
507 ECHO_C= ECHO_N= ECHO_T=
508 case `echo -n x` in @%:@(((((
509 -n*)
510 case `echo 'xy\c'` in
511 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
512 xy) ECHO_C='\c';;
513 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
514 ECHO_T=' ';;
515 esac;;
516 *)
517 ECHO_N='-n';;
518 esac
519
520 rm -f conf$$ conf$$.exe conf$$.file
521 if test -d conf$$.dir; then
522 rm -f conf$$.dir/conf$$.file
523 else
524 rm -f conf$$.dir
525 mkdir conf$$.dir 2>/dev/null
526 fi
527 if (echo >conf$$.file) 2>/dev/null; then
528 if ln -s conf$$.file conf$$ 2>/dev/null; then
529 as_ln_s='ln -s'
530 # ... but there are two gotchas:
531 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
532 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
533 # In both cases, we have to default to `cp -pR'.
534 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
535 as_ln_s='cp -pR'
536 elif ln conf$$.file conf$$ 2>/dev/null; then
537 as_ln_s=ln
538 else
539 as_ln_s='cp -pR'
540 fi
541 else
542 as_ln_s='cp -pR'
543 fi
544 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
545 rmdir conf$$.dir 2>/dev/null
546
547 if mkdir -p . 2>/dev/null; then
548 as_mkdir_p='mkdir -p "$as_dir"'
549 else
550 test -d ./-p && rmdir ./-p
551 as_mkdir_p=false
552 fi
553
554 as_test_x='test -x'
555 as_executable_p=as_fn_executable_p
556
557 # Sed expression to map a string onto a valid CPP name.
558 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
559
560 # Sed expression to map a string onto a valid variable name.
561 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
562
563 SHELL=${CONFIG_SHELL-/bin/sh}
564
565
566 test -n "$DJDIR" || exec 7<&0 </dev/null
567 exec 6>&1
568
569 # Name of the host.
570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
571 # so uname gets run too.
572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
573
574 #
575 # Initializations.
576 #
577 ac_default_prefix=/usr/local
578 ac_clean_files=
579 ac_config_libobj_dir=.
580 LIB@&t@OBJS=
581 cross_compiling=no
582 subdirs=
583 MFLAGS=
584 MAKEFLAGS=
585
586 # Identity of this package.
587 PACKAGE_NAME=
588 PACKAGE_TARNAME=
589 PACKAGE_VERSION=
590 PACKAGE_STRING=
591 PACKAGE_BUGREPORT=
592 PACKAGE_URL=
593
594 ac_unique_file="configure.in"
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='LTLIBOBJS
632 LIB@&t@OBJS
633 GTK_LIBS
634 GTK_CFLAGS
635 PKG_CONFIG_LIBDIR
636 PKG_CONFIG_PATH
637 PKG_CONFIG
638 OTOOL64
639 OTOOL
640 LIPO
641 NMEDIT
642 DSYMUTIL
643 MANIFEST_TOOL
644 RANLIB
645 ac_ct_AR
646 AR
647 DLLTOOL
648 OBJDUMP
649 LN_S
650 NM
651 ac_ct_DUMPBIN
652 DUMPBIN
653 LD
654 FGREP
655 SED
656 host_os
657 host_vendor
658 host_cpu
659 host
660 build_os
661 build_vendor
662 build_cpu
663 build
664 LIBTOOL
665 EGREP
666 GREP
667 CPP
668 am__fastdepCC_FALSE
669 am__fastdepCC_TRUE
670 CCDEPMODE
671 AMDEPBACKSLASH
672 AMDEP_FALSE
673 AMDEP_TRUE
674 am__quote
675 am__include
676 DEPDIR
677 OBJEXT
678 EXEEXT
679 ac_ct_CC
680 CPPFLAGS
681 LDFLAGS
682 CFLAGS
683 CC
684 am__untar
685 am__tar
686 AMTAR
687 am__leading_dot
688 SET_MAKE
689 AWK
690 mkdir_p
691 INSTALL_STRIP_PROGRAM
692 STRIP
693 install_sh
694 MAKEINFO
695 AUTOHEADER
696 AUTOMAKE
697 AUTOCONF
698 ACLOCAL
699 VERSION
700 PACKAGE
701 CYGPATH_W
702 INSTALL_DATA
703 INSTALL_SCRIPT
704 INSTALL_PROGRAM
705 target_alias
706 host_alias
707 build_alias
708 LIBS
709 ECHO_T
710 ECHO_N
711 ECHO_C
712 DEFS
713 mandir
714 localedir
715 libdir
716 psdir
717 pdfdir
718 dvidir
719 htmldir
720 infodir
721 docdir
722 oldincludedir
723 includedir
724 localstatedir
725 sharedstatedir
726 sysconfdir
727 datadir
728 datarootdir
729 libexecdir
730 sbindir
731 bindir
732 program_transform_name
733 prefix
734 exec_prefix
735 PACKAGE_URL
736 PACKAGE_BUGREPORT
737 PACKAGE_STRING
738 PACKAGE_VERSION
739 PACKAGE_TARNAME
740 PACKAGE_NAME
741 PATH_SEPARATOR
742 SHELL'
743 ac_subst_files=''
744 ac_user_opts='
745 enable_option_checking
746 enable_dependency_tracking
747 enable_shared
748 enable_static
749 with_pic
750 enable_fast_install
751 with_gnu_ld
752 with_sysroot
753 enable_libtool_lock
754 '
755 ac_precious_vars='build_alias
756 host_alias
757 target_alias
758 CC
759 CFLAGS
760 LDFLAGS
761 LIBS
762 CPPFLAGS
763 CPP
764 PKG_CONFIG
765 PKG_CONFIG_PATH
766 PKG_CONFIG_LIBDIR
767 GTK_CFLAGS
768 GTK_LIBS'
769
770
771 # Initialize some variables set by options.
772 ac_init_help=
773 ac_init_version=false
774 ac_unrecognized_opts=
775 ac_unrecognized_sep=
776 # The variables have the same names as the options, with
777 # dashes changed to underlines.
778 cache_file=/dev/null
779 exec_prefix=NONE
780 no_create=
781 no_recursion=
782 prefix=NONE
783 program_prefix=NONE
784 program_suffix=NONE
785 program_transform_name=s,x,x,
786 silent=
787 site=
788 srcdir=
789 verbose=
790 x_includes=NONE
791 x_libraries=NONE
792
793 # Installation directory options.
794 # These are left unexpanded so users can "make install exec_prefix=/foo"
795 # and all the variables that are supposed to be based on exec_prefix
796 # by default will actually change.
797 # Use braces instead of parens because sh, perl, etc. also accept them.
798 # (The list follows the same order as the GNU Coding Standards.)
799 bindir='${exec_prefix}/bin'
800 sbindir='${exec_prefix}/sbin'
801 libexecdir='${exec_prefix}/libexec'
802 datarootdir='${prefix}/share'
803 datadir='${datarootdir}'
804 sysconfdir='${prefix}/etc'
805 sharedstatedir='${prefix}/com'
806 localstatedir='${prefix}/var'
807 includedir='${prefix}/include'
808 oldincludedir='/usr/include'
809 docdir='${datarootdir}/doc/${PACKAGE}'
810 infodir='${datarootdir}/info'
811 htmldir='${docdir}'
812 dvidir='${docdir}'
813 pdfdir='${docdir}'
814 psdir='${docdir}'
815 libdir='${exec_prefix}/lib'
816 localedir='${datarootdir}/locale'
817 mandir='${datarootdir}/man'
818
819 ac_prev=
820 ac_dashdash=
821 for ac_option
822 do
823 # If the previous option needs an argument, assign it.
824 if test -n "$ac_prev"; then
825 eval $ac_prev=\$ac_option
826 ac_prev=
827 continue
828 fi
829
830 case $ac_option in
831 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832 *=) ac_optarg= ;;
833 *) ac_optarg=yes ;;
834 esac
835
836 # Accept the important Cygnus configure options, so we can diagnose typos.
837
838 case $ac_dashdash$ac_option in
839 --)
840 ac_dashdash=yes ;;
841
842 -bindir | --bindir | --bindi | --bind | --bin | --bi)
843 ac_prev=bindir ;;
844 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
845 bindir=$ac_optarg ;;
846
847 -build | --build | --buil | --bui | --bu)
848 ac_prev=build_alias ;;
849 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850 build_alias=$ac_optarg ;;
851
852 -cache-file | --cache-file | --cache-fil | --cache-fi \
853 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854 ac_prev=cache_file ;;
855 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857 cache_file=$ac_optarg ;;
858
859 --config-cache | -C)
860 cache_file=config.cache ;;
861
862 -datadir | --datadir | --datadi | --datad)
863 ac_prev=datadir ;;
864 -datadir=* | --datadir=* | --datadi=* | --datad=*)
865 datadir=$ac_optarg ;;
866
867 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868 | --dataroo | --dataro | --datar)
869 ac_prev=datarootdir ;;
870 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872 datarootdir=$ac_optarg ;;
873
874 -disable-* | --disable-*)
875 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 as_fn_error $? "invalid feature name: $ac_useropt"
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
882 *"
883 "enable_$ac_useropt"
884 "*) ;;
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
887 esac
888 eval enable_$ac_useropt=no ;;
889
890 -docdir | --docdir | --docdi | --doc | --do)
891 ac_prev=docdir ;;
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893 docdir=$ac_optarg ;;
894
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 ac_prev=dvidir ;;
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898 dvidir=$ac_optarg ;;
899
900 -enable-* | --enable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error $? "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
908 *"
909 "enable_$ac_useropt"
910 "*) ;;
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
913 esac
914 eval enable_$ac_useropt=\$ac_optarg ;;
915
916 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918 | --exec | --exe | --ex)
919 ac_prev=exec_prefix ;;
920 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922 | --exec=* | --exe=* | --ex=*)
923 exec_prefix=$ac_optarg ;;
924
925 -gas | --gas | --ga | --g)
926 # Obsolete; use --with-gas.
927 with_gas=yes ;;
928
929 -help | --help | --hel | --he | -h)
930 ac_init_help=long ;;
931 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932 ac_init_help=recursive ;;
933 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934 ac_init_help=short ;;
935
936 -host | --host | --hos | --ho)
937 ac_prev=host_alias ;;
938 -host=* | --host=* | --hos=* | --ho=*)
939 host_alias=$ac_optarg ;;
940
941 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
942 ac_prev=htmldir ;;
943 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
944 | --ht=*)
945 htmldir=$ac_optarg ;;
946
947 -includedir | --includedir | --includedi | --included | --include \
948 | --includ | --inclu | --incl | --inc)
949 ac_prev=includedir ;;
950 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951 | --includ=* | --inclu=* | --incl=* | --inc=*)
952 includedir=$ac_optarg ;;
953
954 -infodir | --infodir | --infodi | --infod | --info | --inf)
955 ac_prev=infodir ;;
956 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957 infodir=$ac_optarg ;;
958
959 -libdir | --libdir | --libdi | --libd)
960 ac_prev=libdir ;;
961 -libdir=* | --libdir=* | --libdi=* | --libd=*)
962 libdir=$ac_optarg ;;
963
964 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965 | --libexe | --libex | --libe)
966 ac_prev=libexecdir ;;
967 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968 | --libexe=* | --libex=* | --libe=*)
969 libexecdir=$ac_optarg ;;
970
971 -localedir | --localedir | --localedi | --localed | --locale)
972 ac_prev=localedir ;;
973 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974 localedir=$ac_optarg ;;
975
976 -localstatedir | --localstatedir | --localstatedi | --localstated \
977 | --localstate | --localstat | --localsta | --localst | --locals)
978 ac_prev=localstatedir ;;
979 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981 localstatedir=$ac_optarg ;;
982
983 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
984 ac_prev=mandir ;;
985 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
986 mandir=$ac_optarg ;;
987
988 -nfp | --nfp | --nf)
989 # Obsolete; use --without-fp.
990 with_fp=no ;;
991
992 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993 | --no-cr | --no-c | -n)
994 no_create=yes ;;
995
996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998 no_recursion=yes ;;
999
1000 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002 | --oldin | --oldi | --old | --ol | --o)
1003 ac_prev=oldincludedir ;;
1004 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007 oldincludedir=$ac_optarg ;;
1008
1009 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1010 ac_prev=prefix ;;
1011 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012 prefix=$ac_optarg ;;
1013
1014 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015 | --program-pre | --program-pr | --program-p)
1016 ac_prev=program_prefix ;;
1017 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019 program_prefix=$ac_optarg ;;
1020
1021 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022 | --program-suf | --program-su | --program-s)
1023 ac_prev=program_suffix ;;
1024 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026 program_suffix=$ac_optarg ;;
1027
1028 -program-transform-name | --program-transform-name \
1029 | --program-transform-nam | --program-transform-na \
1030 | --program-transform-n | --program-transform- \
1031 | --program-transform | --program-transfor \
1032 | --program-transfo | --program-transf \
1033 | --program-trans | --program-tran \
1034 | --progr-tra | --program-tr | --program-t)
1035 ac_prev=program_transform_name ;;
1036 -program-transform-name=* | --program-transform-name=* \
1037 | --program-transform-nam=* | --program-transform-na=* \
1038 | --program-transform-n=* | --program-transform-=* \
1039 | --program-transform=* | --program-transfor=* \
1040 | --program-transfo=* | --program-transf=* \
1041 | --program-trans=* | --program-tran=* \
1042 | --progr-tra=* | --program-tr=* | --program-t=*)
1043 program_transform_name=$ac_optarg ;;
1044
1045 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1046 ac_prev=pdfdir ;;
1047 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048 pdfdir=$ac_optarg ;;
1049
1050 -psdir | --psdir | --psdi | --psd | --ps)
1051 ac_prev=psdir ;;
1052 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1053 psdir=$ac_optarg ;;
1054
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1057 silent=yes ;;
1058
1059 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1060 ac_prev=sbindir ;;
1061 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1062 | --sbi=* | --sb=*)
1063 sbindir=$ac_optarg ;;
1064
1065 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067 | --sharedst | --shareds | --shared | --share | --shar \
1068 | --sha | --sh)
1069 ac_prev=sharedstatedir ;;
1070 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1073 | --sha=* | --sh=*)
1074 sharedstatedir=$ac_optarg ;;
1075
1076 -site | --site | --sit)
1077 ac_prev=site ;;
1078 -site=* | --site=* | --sit=*)
1079 site=$ac_optarg ;;
1080
1081 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1082 ac_prev=srcdir ;;
1083 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084 srcdir=$ac_optarg ;;
1085
1086 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087 | --syscon | --sysco | --sysc | --sys | --sy)
1088 ac_prev=sysconfdir ;;
1089 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091 sysconfdir=$ac_optarg ;;
1092
1093 -target | --target | --targe | --targ | --tar | --ta | --t)
1094 ac_prev=target_alias ;;
1095 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096 target_alias=$ac_optarg ;;
1097
1098 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1099 verbose=yes ;;
1100
1101 -version | --version | --versio | --versi | --vers | -V)
1102 ac_init_version=: ;;
1103
1104 -with-* | --with-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error $? "invalid package name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1112 *"
1113 "with_$ac_useropt"
1114 "*) ;;
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1117 esac
1118 eval with_$ac_useropt=\$ac_optarg ;;
1119
1120 -without-* | --without-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1128 *"
1129 "with_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval with_$ac_useropt=no ;;
1135
1136 --x)
1137 # Obsolete; use --with-x.
1138 with_x=yes ;;
1139
1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141 | --x-incl | --x-inc | --x-in | --x-i)
1142 ac_prev=x_includes ;;
1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145 x_includes=$ac_optarg ;;
1146
1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149 ac_prev=x_libraries ;;
1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152 x_libraries=$ac_optarg ;;
1153
1154 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1155 Try \`$0 --help' for more information"
1156 ;;
1157
1158 *=*)
1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160 # Reject names that are not valid shell variable names.
1161 case $ac_envvar in #(
1162 '' | [0-9]* | *[!_$as_cr_alnum]* )
1163 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1164 esac
1165 eval $ac_envvar=\$ac_optarg
1166 export $ac_envvar ;;
1167
1168 *)
1169 # FIXME: should be removed in autoconf 3.0.
1170 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1174 ;;
1175
1176 esac
1177 done
1178
1179 if test -n "$ac_prev"; then
1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181 as_fn_error $? "missing argument to $ac_option"
1182 fi
1183
1184 if test -n "$ac_unrecognized_opts"; then
1185 case $enable_option_checking in
1186 no) ;;
1187 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1188 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1189 esac
1190 fi
1191
1192 # Check all directory arguments for consistency.
1193 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194 datadir sysconfdir sharedstatedir localstatedir includedir \
1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196 libdir localedir mandir
1197 do
1198 eval ac_val=\$$ac_var
1199 # Remove trailing slashes.
1200 case $ac_val in
1201 */ )
1202 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203 eval $ac_var=\$ac_val;;
1204 esac
1205 # Be sure to have absolute directory names.
1206 case $ac_val in
1207 [\\/$]* | ?:[\\/]* ) continue;;
1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209 esac
1210 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1211 done
1212
1213 # There might be people who depend on the old broken behavior: `$host'
1214 # used to hold the argument of --host etc.
1215 # FIXME: To remove some day.
1216 build=$build_alias
1217 host=$host_alias
1218 target=$target_alias
1219
1220 # FIXME: To remove some day.
1221 if test "x$host_alias" != x; then
1222 if test "x$build_alias" = x; then
1223 cross_compiling=maybe
1224 elif test "x$build_alias" != "x$host_alias"; then
1225 cross_compiling=yes
1226 fi
1227 fi
1228
1229 ac_tool_prefix=
1230 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1231
1232 test "$silent" = yes && exec 6>/dev/null
1233
1234
1235 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1236 ac_ls_di=`ls -di .` &&
1237 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1238 as_fn_error $? "working directory cannot be determined"
1239 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1240 as_fn_error $? "pwd does not report name of working directory"
1241
1242
1243 # Find the source files, if location was not specified.
1244 if test -z "$srcdir"; then
1245 ac_srcdir_defaulted=yes
1246 # Try the directory containing this script, then the parent directory.
1247 ac_confdir=`$as_dirname -- "$as_myself" ||
1248 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1249 X"$as_myself" : 'X\(//\)[^/]' \| \
1250 X"$as_myself" : 'X\(//\)$' \| \
1251 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1252 $as_echo X"$as_myself" |
1253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1254 s//\1/
1255 q
1256 }
1257 /^X\(\/\/\)[^/].*/{
1258 s//\1/
1259 q
1260 }
1261 /^X\(\/\/\)$/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\).*/{
1266 s//\1/
1267 q
1268 }
1269 s/.*/./; q'`
1270 srcdir=$ac_confdir
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1272 srcdir=..
1273 fi
1274 else
1275 ac_srcdir_defaulted=no
1276 fi
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1279 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1280 fi
1281 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1282 ac_abs_confdir=`(
1283 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1284 pwd)`
1285 # When building in place, set srcdir=.
1286 if test "$ac_abs_confdir" = "$ac_pwd"; then
1287 srcdir=.
1288 fi
1289 # Remove unnecessary trailing slashes from srcdir.
1290 # Double slashes in file names in object file debugging info
1291 # mess up M-x gdb in Emacs.
1292 case $srcdir in
1293 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1294 esac
1295 for ac_var in $ac_precious_vars; do
1296 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1297 eval ac_env_${ac_var}_value=\$${ac_var}
1298 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1300 done
1301
1302 #
1303 # Report the --help message.
1304 #
1305 if test "$ac_init_help" = "long"; then
1306 # Omit some internal or obsolete options to make the list less imposing.
1307 # This message is too long to be a string in the A/UX 3.1 sh.
1308 cat <<_ACEOF
1309 \`configure' configures this package to adapt to many kinds of systems.
1310
1311 Usage: $0 [OPTION]... [VAR=VALUE]...
1312
1313 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1314 VAR=VALUE. See below for descriptions of some of the useful variables.
1315
1316 Defaults for the options are specified in brackets.
1317
1318 Configuration:
1319 -h, --help display this help and exit
1320 --help=short display options specific to this package
1321 --help=recursive display the short help of all the included packages
1322 -V, --version display version information and exit
1323 -q, --quiet, --silent do not print \`checking ...' messages
1324 --cache-file=FILE cache test results in FILE [disabled]
1325 -C, --config-cache alias for \`--cache-file=config.cache'
1326 -n, --no-create do not create output files
1327 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1328
1329 Installation directories:
1330 --prefix=PREFIX install architecture-independent files in PREFIX
1331 @<:@@S|@ac_default_prefix@:>@
1332 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1333 @<:@PREFIX@:>@
1334
1335 By default, \`make install' will install all the files in
1336 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1337 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1338 for instance \`--prefix=\$HOME'.
1339
1340 For better control, use the options below.
1341
1342 Fine tuning of the installation directories:
1343 --bindir=DIR user executables [EPREFIX/bin]
1344 --sbindir=DIR system admin executables [EPREFIX/sbin]
1345 --libexecdir=DIR program executables [EPREFIX/libexec]
1346 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1347 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1348 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1349 --libdir=DIR object code libraries [EPREFIX/lib]
1350 --includedir=DIR C header files [PREFIX/include]
1351 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1352 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1353 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1354 --infodir=DIR info documentation [DATAROOTDIR/info]
1355 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1356 --mandir=DIR man documentation [DATAROOTDIR/man]
1357 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1358 --htmldir=DIR html documentation [DOCDIR]
1359 --dvidir=DIR dvi documentation [DOCDIR]
1360 --pdfdir=DIR pdf documentation [DOCDIR]
1361 --psdir=DIR ps documentation [DOCDIR]
1362 _ACEOF
1363
1364 cat <<\_ACEOF
1365
1366 Program names:
1367 --program-prefix=PREFIX prepend PREFIX to installed program names
1368 --program-suffix=SUFFIX append SUFFIX to installed program names
1369 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1370
1371 System types:
1372 --build=BUILD configure for building on BUILD [guessed]
1373 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1374 _ACEOF
1375 fi
1376
1377 if test -n "$ac_init_help"; then
1378
1379 cat <<\_ACEOF
1380
1381 Optional Features:
1382 --disable-option-checking ignore unrecognized --enable/--with options
1383 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1384 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1385 --disable-dependency-tracking speeds up one-time build
1386 --enable-dependency-tracking do not reject slow dependency extractors
1387 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1388 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1389 --enable-fast-install@<:@=PKGS@:>@
1390 optimize for fast installation @<:@default=yes@:>@
1391 --disable-libtool-lock avoid locking (might break parallel builds)
1392
1393 Optional Packages:
1394 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1395 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1396 --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
1397 both@:>@
1398 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1399 --with-sysroot=DIR Search for dependent libraries within DIR
1400 (or the compiler's sysroot if not specified).
1401
1402 Some influential environment variables:
1403 CC C compiler command
1404 CFLAGS C compiler flags
1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1406 nonstandard directory <lib dir>
1407 LIBS libraries to pass to the linker, e.g. -l<library>
1408 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1409 you have headers in a nonstandard directory <include dir>
1410 CPP C preprocessor
1411 PKG_CONFIG path to pkg-config utility
1412 PKG_CONFIG_PATH
1413 directories to add to pkg-config's search path
1414 PKG_CONFIG_LIBDIR
1415 path overriding pkg-config's built-in search path
1416 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1417 GTK_LIBS linker flags for GTK, overriding pkg-config
1418
1419 Use these variables to override the choices made by `configure' or to help
1420 it to find libraries and programs with nonstandard names/locations.
1421
1422 Report bugs to the package provider.
1423 _ACEOF
1424 ac_status=$?
1425 fi
1426
1427 if test "$ac_init_help" = "recursive"; then
1428 # If there are subdirs, report their specific --help.
1429 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1430 test -d "$ac_dir" ||
1431 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1432 continue
1433 ac_builddir=.
1434
1435 case "$ac_dir" in
1436 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *)
1438 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1439 # A ".." for each directory in $ac_dir_suffix.
1440 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1441 case $ac_top_builddir_sub in
1442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1444 esac ;;
1445 esac
1446 ac_abs_top_builddir=$ac_pwd
1447 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1448 # for backward compatibility:
1449 ac_top_builddir=$ac_top_build_prefix
1450
1451 case $srcdir in
1452 .) # We are building in place.
1453 ac_srcdir=.
1454 ac_top_srcdir=$ac_top_builddir_sub
1455 ac_abs_top_srcdir=$ac_pwd ;;
1456 [\\/]* | ?:[\\/]* ) # Absolute name.
1457 ac_srcdir=$srcdir$ac_dir_suffix;
1458 ac_top_srcdir=$srcdir
1459 ac_abs_top_srcdir=$srcdir ;;
1460 *) # Relative name.
1461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1462 ac_top_srcdir=$ac_top_build_prefix$srcdir
1463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1464 esac
1465 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1466
1467 cd "$ac_dir" || { ac_status=$?; continue; }
1468 # Check for guested configure.
1469 if test -f "$ac_srcdir/configure.gnu"; then
1470 echo &&
1471 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1472 elif test -f "$ac_srcdir/configure"; then
1473 echo &&
1474 $SHELL "$ac_srcdir/configure" --help=recursive
1475 else
1476 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477 fi || ac_status=$?
1478 cd "$ac_pwd" || { ac_status=$?; break; }
1479 done
1480 fi
1481
1482 test -n "$ac_init_help" && exit $ac_status
1483 if $ac_init_version; then
1484 cat <<\_ACEOF
1485 configure
1486 generated by GNU Autoconf 2.69
1487
1488 Copyright (C) 2012 Free Software Foundation, Inc.
1489 This configure script is free software; the Free Software Foundation
1490 gives unlimited permission to copy, distribute and modify it.
1491 _ACEOF
1492 exit
1493 fi
1494
1495 ## ------------------------ ##
1496 ## Autoconf initialization. ##
1497 ## ------------------------ ##
1498
1499 @%:@ ac_fn_c_try_compile LINENO
1500 @%:@ --------------------------
1501 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1502 ac_fn_c_try_compile ()
1503 {
1504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505 rm -f conftest.$ac_objext
1506 if { { ac_try="$ac_compile"
1507 case "(($ac_try" in
1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1510 esac
1511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512 $as_echo "$ac_try_echo"; } >&5
1513 (eval "$ac_compile") 2>conftest.err
1514 ac_status=$?
1515 if test -s conftest.err; then
1516 grep -v '^ *+' conftest.err >conftest.er1
1517 cat conftest.er1 >&5
1518 mv -f conftest.er1 conftest.err
1519 fi
1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521 test $ac_status = 0; } && {
1522 test -z "$ac_c_werror_flag" ||
1523 test ! -s conftest.err
1524 } && test -s conftest.$ac_objext; then :
1525 ac_retval=0
1526 else
1527 $as_echo "$as_me: failed program was:" >&5
1528 sed 's/^/| /' conftest.$ac_ext >&5
1529
1530 ac_retval=1
1531 fi
1532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1533 as_fn_set_status $ac_retval
1534
1535 } @%:@ ac_fn_c_try_compile
1536
1537 @%:@ ac_fn_c_try_link LINENO
1538 @%:@ -----------------------
1539 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1540 ac_fn_c_try_link ()
1541 {
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 rm -f conftest.$ac_objext conftest$ac_exeext
1544 if { { ac_try="$ac_link"
1545 case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548 esac
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 $as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_link") 2>conftest.err
1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1557 fi
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest$ac_exeext && {
1563 test "$cross_compiling" = yes ||
1564 test -x conftest$ac_exeext
1565 }; then :
1566 ac_retval=0
1567 else
1568 $as_echo "$as_me: failed program was:" >&5
1569 sed 's/^/| /' conftest.$ac_ext >&5
1570
1571 ac_retval=1
1572 fi
1573 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1574 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1575 # interfere with the next link command; also delete a directory that is
1576 # left behind by Apple's compiler. We do this before executing the actions.
1577 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579 as_fn_set_status $ac_retval
1580
1581 } @%:@ ac_fn_c_try_link
1582
1583 @%:@ ac_fn_c_try_cpp LINENO
1584 @%:@ ----------------------
1585 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1586 ac_fn_c_try_cpp ()
1587 {
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 if { { ac_try="$ac_cpp conftest.$ac_ext"
1590 case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1597 ac_status=$?
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1602 fi
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } > conftest.i && {
1605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 }; then :
1608 ac_retval=0
1609 else
1610 $as_echo "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1612
1613 ac_retval=1
1614 fi
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616 as_fn_set_status $ac_retval
1617
1618 } @%:@ ac_fn_c_try_cpp
1619
1620 @%:@ ac_fn_c_try_run LINENO
1621 @%:@ ----------------------
1622 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1623 @%:@ that executables *can* be run.
1624 ac_fn_c_try_run ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 if { { ac_try="$ac_link"
1628 case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_link") 2>&5
1635 ac_status=$?
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1638 { { case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641 esac
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_try") 2>&5
1645 ac_status=$?
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; }; }; then :
1648 ac_retval=0
1649 else
1650 $as_echo "$as_me: program exited with status $ac_status" >&5
1651 $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654 ac_retval=$ac_status
1655 fi
1656 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658 as_fn_set_status $ac_retval
1659
1660 } @%:@ ac_fn_c_try_run
1661
1662 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1663 @%:@ -------------------------------------------------------
1664 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1665 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1666 ac_fn_c_check_header_compile ()
1667 {
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1670 $as_echo_n "checking for $2... " >&6; }
1671 if eval \${$3+:} false; then :
1672 $as_echo_n "(cached) " >&6
1673 else
1674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675 /* end confdefs.h. */
1676 $4
1677 @%:@include <$2>
1678 _ACEOF
1679 if ac_fn_c_try_compile "$LINENO"; then :
1680 eval "$3=yes"
1681 else
1682 eval "$3=no"
1683 fi
1684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1685 fi
1686 eval ac_res=\$$3
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1688 $as_echo "$ac_res" >&6; }
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690
1691 } @%:@ ac_fn_c_check_header_compile
1692
1693 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1694 @%:@ ----------------------------------
1695 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1696 ac_fn_c_check_func ()
1697 {
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1700 $as_echo_n "checking for $2... " >&6; }
1701 if eval \${$3+:} false; then :
1702 $as_echo_n "(cached) " >&6
1703 else
1704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705 /* end confdefs.h. */
1706 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1708 #define $2 innocuous_$2
1709
1710 /* System header to define __stub macros and hopefully few prototypes,
1711 which can conflict with char $2 (); below.
1712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1713 <limits.h> exists even on freestanding compilers. */
1714
1715 #ifdef __STDC__
1716 # include <limits.h>
1717 #else
1718 # include <assert.h>
1719 #endif
1720
1721 #undef $2
1722
1723 /* Override any GCC internal prototype to avoid an error.
1724 Use char because int might match the return type of a GCC
1725 builtin and then its argument prototype would still apply. */
1726 #ifdef __cplusplus
1727 extern "C"
1728 #endif
1729 char $2 ();
1730 /* The GNU C library defines this for functions which it implements
1731 to always fail with ENOSYS. Some functions are actually named
1732 something starting with __ and the normal name is an alias. */
1733 #if defined __stub_$2 || defined __stub___$2
1734 choke me
1735 #endif
1736
1737 int
1738 main ()
1739 {
1740 return $2 ();
1741 ;
1742 return 0;
1743 }
1744 _ACEOF
1745 if ac_fn_c_try_link "$LINENO"; then :
1746 eval "$3=yes"
1747 else
1748 eval "$3=no"
1749 fi
1750 rm -f core conftest.err conftest.$ac_objext \
1751 conftest$ac_exeext conftest.$ac_ext
1752 fi
1753 eval ac_res=\$$3
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755 $as_echo "$ac_res" >&6; }
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757
1758 } @%:@ ac_fn_c_check_func
1759
1760 @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1761 @%:@ -------------------------------------------------------
1762 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1763 @%:@ the include files in INCLUDES and setting the cache variable VAR
1764 @%:@ accordingly.
1765 ac_fn_c_check_header_mongrel ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 if eval \${$3+:} false; then :
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval \${$3+:} false; then :
1772 $as_echo_n "(cached) " >&6
1773 fi
1774 eval ac_res=\$$3
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1777 else
1778 # Is the header compilable?
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1780 $as_echo_n "checking $2 usability... " >&6; }
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1783 $4
1784 @%:@include <$2>
1785 _ACEOF
1786 if ac_fn_c_try_compile "$LINENO"; then :
1787 ac_header_compiler=yes
1788 else
1789 ac_header_compiler=no
1790 fi
1791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1793 $as_echo "$ac_header_compiler" >&6; }
1794
1795 # Is the header present?
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1797 $as_echo_n "checking $2 presence... " >&6; }
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1800 @%:@include <$2>
1801 _ACEOF
1802 if ac_fn_c_try_cpp "$LINENO"; then :
1803 ac_header_preproc=yes
1804 else
1805 ac_header_preproc=no
1806 fi
1807 rm -f conftest.err conftest.i conftest.$ac_ext
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1809 $as_echo "$ac_header_preproc" >&6; }
1810
1811 # So? What about this header?
1812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1813 yes:no: )
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1815 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1817 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1818 ;;
1819 no:yes:* )
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1821 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1823 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1825 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1827 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1829 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1830 ;;
1831 esac
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835 $as_echo_n "(cached) " >&6
1836 else
1837 eval "$3=\$ac_header_compiler"
1838 fi
1839 eval ac_res=\$$3
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 fi
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844
1845 } @%:@ ac_fn_c_check_header_mongrel
1846 cat >config.log <<_ACEOF
1847 This file contains any messages produced by compilers while
1848 running configure, to aid debugging if configure makes a mistake.
1849
1850 It was created by $as_me, which was
1851 generated by GNU Autoconf 2.69. Invocation command line was
1852
1853 $ $0 $@
1854
1855 _ACEOF
1856 exec 5>>config.log
1857 {
1858 cat <<_ASUNAME
1859 ## --------- ##
1860 ## Platform. ##
1861 ## --------- ##
1862
1863 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1864 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1865 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1866 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1867 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1868
1869 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1870 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1871
1872 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1873 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1874 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1875 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1876 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1877 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1878 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1879
1880 _ASUNAME
1881
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 for as_dir in $PATH
1884 do
1885 IFS=$as_save_IFS
1886 test -z "$as_dir" && as_dir=.
1887 $as_echo "PATH: $as_dir"
1888 done
1889 IFS=$as_save_IFS
1890
1891 } >&5
1892
1893 cat >&5 <<_ACEOF
1894
1895
1896 ## ----------- ##
1897 ## Core tests. ##
1898 ## ----------- ##
1899
1900 _ACEOF
1901
1902
1903 # Keep a trace of the command line.
1904 # Strip out --no-create and --no-recursion so they do not pile up.
1905 # Strip out --silent because we don't want to record it for future runs.
1906 # Also quote any args containing shell meta-characters.
1907 # Make two passes to allow for proper duplicate-argument suppression.
1908 ac_configure_args=
1909 ac_configure_args0=
1910 ac_configure_args1=
1911 ac_must_keep_next=false
1912 for ac_pass in 1 2
1913 do
1914 for ac_arg
1915 do
1916 case $ac_arg in
1917 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1918 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1919 | -silent | --silent | --silen | --sile | --sil)
1920 continue ;;
1921 *\'*)
1922 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1923 esac
1924 case $ac_pass in
1925 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1926 2)
1927 as_fn_append ac_configure_args1 " '$ac_arg'"
1928 if test $ac_must_keep_next = true; then
1929 ac_must_keep_next=false # Got value, back to normal.
1930 else
1931 case $ac_arg in
1932 *=* | --config-cache | -C | -disable-* | --disable-* \
1933 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1934 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1935 | -with-* | --with-* | -without-* | --without-* | --x)
1936 case "$ac_configure_args0 " in
1937 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1938 esac
1939 ;;
1940 -* ) ac_must_keep_next=true ;;
1941 esac
1942 fi
1943 as_fn_append ac_configure_args " '$ac_arg'"
1944 ;;
1945 esac
1946 done
1947 done
1948 { ac_configure_args0=; unset ac_configure_args0;}
1949 { ac_configure_args1=; unset ac_configure_args1;}
1950
1951 # When interrupted or exit'd, cleanup temporary files, and complete
1952 # config.log. We remove comments because anyway the quotes in there
1953 # would cause problems or look ugly.
1954 # WARNING: Use '\'' to represent an apostrophe within the trap.
1955 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1956 trap 'exit_status=$?
1957 # Save into config.log some information that might help in debugging.
1958 {
1959 echo
1960
1961 $as_echo "## ---------------- ##
1962 ## Cache variables. ##
1963 ## ---------------- ##"
1964 echo
1965 # The following way of writing the cache mishandles newlines in values,
1966 (
1967 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1968 eval ac_val=\$$ac_var
1969 case $ac_val in #(
1970 *${as_nl}*)
1971 case $ac_var in #(
1972 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1973 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1974 esac
1975 case $ac_var in #(
1976 _ | IFS | as_nl) ;; #(
1977 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1978 *) { eval $ac_var=; unset $ac_var;} ;;
1979 esac ;;
1980 esac
1981 done
1982 (set) 2>&1 |
1983 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1984 *${as_nl}ac_space=\ *)
1985 sed -n \
1986 "s/'\''/'\''\\\\'\'''\''/g;
1987 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1988 ;; #(
1989 *)
1990 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1991 ;;
1992 esac |
1993 sort
1994 )
1995 echo
1996
1997 $as_echo "## ----------------- ##
1998 ## Output variables. ##
1999 ## ----------------- ##"
2000 echo
2001 for ac_var in $ac_subst_vars
2002 do
2003 eval ac_val=\$$ac_var
2004 case $ac_val in
2005 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2006 esac
2007 $as_echo "$ac_var='\''$ac_val'\''"
2008 done | sort
2009 echo
2010
2011 if test -n "$ac_subst_files"; then
2012 $as_echo "## ------------------- ##
2013 ## File substitutions. ##
2014 ## ------------------- ##"
2015 echo
2016 for ac_var in $ac_subst_files
2017 do
2018 eval ac_val=\$$ac_var
2019 case $ac_val in
2020 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2021 esac
2022 $as_echo "$ac_var='\''$ac_val'\''"
2023 done | sort
2024 echo
2025 fi
2026
2027 if test -s confdefs.h; then
2028 $as_echo "## ----------- ##
2029 ## confdefs.h. ##
2030 ## ----------- ##"
2031 echo
2032 cat confdefs.h
2033 echo
2034 fi
2035 test "$ac_signal" != 0 &&
2036 $as_echo "$as_me: caught signal $ac_signal"
2037 $as_echo "$as_me: exit $exit_status"
2038 } >&5
2039 rm -f core *.core core.conftest.* &&
2040 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2041 exit $exit_status
2042 ' 0
2043 for ac_signal in 1 2 13 15; do
2044 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2045 done
2046 ac_signal=0
2047
2048 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2049 rm -f -r conftest* confdefs.h
2050
2051 $as_echo "/* confdefs.h */" > confdefs.h
2052
2053 # Predefined preprocessor variables.
2054
2055 cat >>confdefs.h <<_ACEOF
2056 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2057 _ACEOF
2058
2059 cat >>confdefs.h <<_ACEOF
2060 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2061 _ACEOF
2062
2063 cat >>confdefs.h <<_ACEOF
2064 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2065 _ACEOF
2066
2067 cat >>confdefs.h <<_ACEOF
2068 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2069 _ACEOF
2070
2071 cat >>confdefs.h <<_ACEOF
2072 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2073 _ACEOF
2074
2075 cat >>confdefs.h <<_ACEOF
2076 @%:@define PACKAGE_URL "$PACKAGE_URL"
2077 _ACEOF
2078
2079
2080 # Let the site file select an alternate cache file if it wants to.
2081 # Prefer an explicitly selected file to automatically selected ones.
2082 ac_site_file1=NONE
2083 ac_site_file2=NONE
2084 if test -n "$CONFIG_SITE"; then
2085 # We do not want a PATH search for config.site.
2086 case $CONFIG_SITE in @%:@((
2087 -*) ac_site_file1=./$CONFIG_SITE;;
2088 */*) ac_site_file1=$CONFIG_SITE;;
2089 *) ac_site_file1=./$CONFIG_SITE;;
2090 esac
2091 elif test "x$prefix" != xNONE; then
2092 ac_site_file1=$prefix/share/config.site
2093 ac_site_file2=$prefix/etc/config.site
2094 else
2095 ac_site_file1=$ac_default_prefix/share/config.site
2096 ac_site_file2=$ac_default_prefix/etc/config.site
2097 fi
2098 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2099 do
2100 test "x$ac_site_file" = xNONE && continue
2101 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2103 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2104 sed 's/^/| /' "$ac_site_file" >&5
2105 . "$ac_site_file" \
2106 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2108 as_fn_error $? "failed to load site script $ac_site_file
2109 See \`config.log' for more details" "$LINENO" 5; }
2110 fi
2111 done
2112
2113 if test -r "$cache_file"; then
2114 # Some versions of bash will fail to source /dev/null (special files
2115 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2116 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2118 $as_echo "$as_me: loading cache $cache_file" >&6;}
2119 case $cache_file in
2120 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2121 *) . "./$cache_file";;
2122 esac
2123 fi
2124 else
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2126 $as_echo "$as_me: creating cache $cache_file" >&6;}
2127 >$cache_file
2128 fi
2129
2130 # Check that the precious variables saved in the cache have kept the same
2131 # value.
2132 ac_cache_corrupted=false
2133 for ac_var in $ac_precious_vars; do
2134 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2135 eval ac_new_set=\$ac_env_${ac_var}_set
2136 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2137 eval ac_new_val=\$ac_env_${ac_var}_value
2138 case $ac_old_set,$ac_new_set in
2139 set,)
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2141 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2142 ac_cache_corrupted=: ;;
2143 ,set)
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2145 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2146 ac_cache_corrupted=: ;;
2147 ,);;
2148 *)
2149 if test "x$ac_old_val" != "x$ac_new_val"; then
2150 # differences in whitespace do not lead to failure.
2151 ac_old_val_w=`echo x $ac_old_val`
2152 ac_new_val_w=`echo x $ac_new_val`
2153 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2155 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2156 ac_cache_corrupted=:
2157 else
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2159 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2160 eval $ac_var=\$ac_old_val
2161 fi
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2163 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2165 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2166 fi;;
2167 esac
2168 # Pass precious variables to config.status.
2169 if test "$ac_new_set" = set; then
2170 case $ac_new_val in
2171 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2172 *) ac_arg=$ac_var=$ac_new_val ;;
2173 esac
2174 case " $ac_configure_args " in
2175 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2176 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2177 esac
2178 fi
2179 done
2180 if $ac_cache_corrupted; then
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2184 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2185 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2186 fi
2187 ## -------------------- ##
2188 ## Main body of script. ##
2189 ## -------------------- ##
2190
2191 ac_ext=c
2192 ac_cpp='$CPP $CPPFLAGS'
2193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2196
2197
2198 am__api_version="1.9"
2199 ac_aux_dir=
2200 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2201 if test -f "$ac_dir/install-sh"; then
2202 ac_aux_dir=$ac_dir
2203 ac_install_sh="$ac_aux_dir/install-sh -c"
2204 break
2205 elif test -f "$ac_dir/install.sh"; then
2206 ac_aux_dir=$ac_dir
2207 ac_install_sh="$ac_aux_dir/install.sh -c"
2208 break
2209 elif test -f "$ac_dir/shtool"; then
2210 ac_aux_dir=$ac_dir
2211 ac_install_sh="$ac_aux_dir/shtool install -c"
2212 break
2213 fi
2214 done
2215 if test -z "$ac_aux_dir"; then
2216 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2217 fi
2218
2219 # These three variables are undocumented and unsupported,
2220 # and are intended to be withdrawn in a future Autoconf release.
2221 # They can cause serious problems if a builder's source tree is in a directory
2222 # whose full name contains unusual characters.
2223 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2224 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2225 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2226
2227
2228 # Find a good install program. We prefer a C program (faster),
2229 # so one script is as good as another. But avoid the broken or
2230 # incompatible versions:
2231 # SysV /etc/install, /usr/sbin/install
2232 # SunOS /usr/etc/install
2233 # IRIX /sbin/install
2234 # AIX /bin/install
2235 # AmigaOS /C/install, which installs bootblocks on floppy discs
2236 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2237 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2238 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2239 # OS/2's system install, which has a completely different semantic
2240 # ./install, which can be erroneously created by make from ./install.sh.
2241 # Reject install programs that cannot install multiple files.
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2243 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2244 if test -z "$INSTALL"; then
2245 if ${ac_cv_path_install+:} false; then :
2246 $as_echo_n "(cached) " >&6
2247 else
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 for as_dir in $PATH
2250 do
2251 IFS=$as_save_IFS
2252 test -z "$as_dir" && as_dir=.
2253 # Account for people who put trailing slashes in PATH elements.
2254 case $as_dir/ in @%:@((
2255 ./ | .// | /[cC]/* | \
2256 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2257 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2258 /usr/ucb/* ) ;;
2259 *)
2260 # OSF1 and SCO ODT 3.0 have their own names for install.
2261 # Don't use installbsd from OSF since it installs stuff as root
2262 # by default.
2263 for ac_prog in ginstall scoinst install; do
2264 for ac_exec_ext in '' $ac_executable_extensions; do
2265 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2266 if test $ac_prog = install &&
2267 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2268 # AIX install. It has an incompatible calling convention.
2269 :
2270 elif test $ac_prog = install &&
2271 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2272 # program-specific install script used by HP pwplus--don't use.
2273 :
2274 else
2275 rm -rf conftest.one conftest.two conftest.dir
2276 echo one > conftest.one
2277 echo two > conftest.two
2278 mkdir conftest.dir
2279 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2280 test -s conftest.one && test -s conftest.two &&
2281 test -s conftest.dir/conftest.one &&
2282 test -s conftest.dir/conftest.two
2283 then
2284 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2285 break 3
2286 fi
2287 fi
2288 fi
2289 done
2290 done
2291 ;;
2292 esac
2293
2294 done
2295 IFS=$as_save_IFS
2296
2297 rm -rf conftest.one conftest.two conftest.dir
2298
2299 fi
2300 if test "${ac_cv_path_install+set}" = set; then
2301 INSTALL=$ac_cv_path_install
2302 else
2303 # As a last resort, use the slow shell script. Don't cache a
2304 # value for INSTALL within a source directory, because that will
2305 # break other packages using the cache if that directory is
2306 # removed, or if the value is a relative name.
2307 INSTALL=$ac_install_sh
2308 fi
2309 fi
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2311 $as_echo "$INSTALL" >&6; }
2312
2313 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2314 # It thinks the first close brace ends the variable substitution.
2315 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2316
2317 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2318
2319 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2320
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2322 $as_echo_n "checking whether build environment is sane... " >&6; }
2323 # Just in case
2324 sleep 1
2325 echo timestamp > conftest.file
2326 # Do `set' in a subshell so we don't clobber the current shell's
2327 # arguments. Must try -L first in case configure is actually a
2328 # symlink; some systems play weird games with the mod time of symlinks
2329 # (eg FreeBSD returns the mod time of the symlink's containing
2330 # directory).
2331 if (
2332 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2333 if test "$*" = "X"; then
2334 # -L didn't work.
2335 set X `ls -t $srcdir/configure conftest.file`
2336 fi
2337 rm -f conftest.file
2338 if test "$*" != "X $srcdir/configure conftest.file" \
2339 && test "$*" != "X conftest.file $srcdir/configure"; then
2340
2341 # If neither matched, then we have a broken ls. This can happen
2342 # if, for instance, CONFIG_SHELL is bash and it inherits a
2343 # broken ls alias from the environment. This has actually
2344 # happened. Such a system could not be considered "sane".
2345 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2346 alias in your environment" "$LINENO" 5
2347 fi
2348
2349 test "$2" = conftest.file
2350 )
2351 then
2352 # Ok.
2353 :
2354 else
2355 as_fn_error $? "newly created file is older than distributed files!
2356 Check your system clock" "$LINENO" 5
2357 fi
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2359 $as_echo "yes" >&6; }
2360 test "$program_prefix" != NONE &&
2361 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2362 # Use a double $ so make ignores it.
2363 test "$program_suffix" != NONE &&
2364 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2365 # Double any \ or $.
2366 # By default was `s,x,x', remove it if useless.
2367 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2368 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2369
2370 # expand $ac_aux_dir to an absolute path
2371 am_aux_dir=`cd $ac_aux_dir && pwd`
2372
2373 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2374 # Use eval to expand $SHELL
2375 if eval "$MISSING --run true"; then
2376 am_missing_run="$MISSING --run "
2377 else
2378 am_missing_run=
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2380 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2381 fi
2382
2383 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2384 # We used to keeping the `.' as first argument, in order to
2385 # allow $(mkdir_p) to be used without argument. As in
2386 # $(mkdir_p) $(somedir)
2387 # where $(somedir) is conditionally defined. However this is wrong
2388 # for two reasons:
2389 # 1. if the package is installed by a user who cannot write `.'
2390 # make install will fail,
2391 # 2. the above comment should most certainly read
2392 # $(mkdir_p) $(DESTDIR)$(somedir)
2393 # so it does not work when $(somedir) is undefined and
2394 # $(DESTDIR) is not.
2395 # To support the latter case, we have to write
2396 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2397 # so the `.' trick is pointless.
2398 mkdir_p='mkdir -p --'
2399 else
2400 # On NextStep and OpenStep, the `mkdir' command does not
2401 # recognize any option. It will interpret all options as
2402 # directories to create, and then abort because `.' already
2403 # exists.
2404 for d in ./-p ./--version;
2405 do
2406 test -d $d && rmdir $d
2407 done
2408 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2409 if test -f "$ac_aux_dir/mkinstalldirs"; then
2410 mkdir_p='$(mkinstalldirs)'
2411 else
2412 mkdir_p='$(install_sh) -d'
2413 fi
2414 fi
2415
2416 for ac_prog in gawk mawk nawk awk
2417 do
2418 # Extract the first word of "$ac_prog", so it can be a program name with args.
2419 set dummy $ac_prog; ac_word=$2
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2421 $as_echo_n "checking for $ac_word... " >&6; }
2422 if ${ac_cv_prog_AWK+:} false; then :
2423 $as_echo_n "(cached) " >&6
2424 else
2425 if test -n "$AWK"; then
2426 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2427 else
2428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 for as_dir in $PATH
2430 do
2431 IFS=$as_save_IFS
2432 test -z "$as_dir" && as_dir=.
2433 for ac_exec_ext in '' $ac_executable_extensions; do
2434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2435 ac_cv_prog_AWK="$ac_prog"
2436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2437 break 2
2438 fi
2439 done
2440 done
2441 IFS=$as_save_IFS
2442
2443 fi
2444 fi
2445 AWK=$ac_cv_prog_AWK
2446 if test -n "$AWK"; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2448 $as_echo "$AWK" >&6; }
2449 else
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2451 $as_echo "no" >&6; }
2452 fi
2453
2454
2455 test -n "$AWK" && break
2456 done
2457
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2459 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2460 set x ${MAKE-make}
2461 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2462 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2463 $as_echo_n "(cached) " >&6
2464 else
2465 cat >conftest.make <<\_ACEOF
2466 SHELL = /bin/sh
2467 all:
2468 @echo '@@@%%%=$(MAKE)=@@@%%%'
2469 _ACEOF
2470 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2471 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2472 *@@@%%%=?*=@@@%%%*)
2473 eval ac_cv_prog_make_${ac_make}_set=yes;;
2474 *)
2475 eval ac_cv_prog_make_${ac_make}_set=no;;
2476 esac
2477 rm -f conftest.make
2478 fi
2479 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2481 $as_echo "yes" >&6; }
2482 SET_MAKE=
2483 else
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2485 $as_echo "no" >&6; }
2486 SET_MAKE="MAKE=${MAKE-make}"
2487 fi
2488
2489 rm -rf .tst 2>/dev/null
2490 mkdir .tst 2>/dev/null
2491 if test -d .tst; then
2492 am__leading_dot=.
2493 else
2494 am__leading_dot=_
2495 fi
2496 rmdir .tst 2>/dev/null
2497
2498 # test to see if srcdir already configured
2499 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2500 test -f $srcdir/config.status; then
2501 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2502 fi
2503
2504 # test whether we have cygpath
2505 if test -z "$CYGPATH_W"; then
2506 if (cygpath --version) >/dev/null 2>/dev/null; then
2507 CYGPATH_W='cygpath -w'
2508 else
2509 CYGPATH_W=echo
2510 fi
2511 fi
2512
2513
2514 # Define the identity of the package.
2515 PACKAGE=gtkatlantic
2516 VERSION=0.5.0
2517
2518
2519 cat >>confdefs.h <<_ACEOF
2520 @%:@define PACKAGE "$PACKAGE"
2521 _ACEOF
2522
2523
2524 cat >>confdefs.h <<_ACEOF
2525 @%:@define VERSION "$VERSION"
2526 _ACEOF
2527
2528 # Some tools Automake needs.
2529
2530 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2531
2532
2533 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2534
2535
2536 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2537
2538
2539 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2540
2541
2542 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2543
2544 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2545
2546 # Installed binaries are usually stripped using `strip' when the user
2547 # run `make install-strip'. However `strip' might not be the right
2548 # tool to use in cross-compilation environments, therefore Automake
2549 # will honor the `STRIP' environment variable to overrule this program.
2550 if test "$cross_compiling" != no; then
2551 if test -n "$ac_tool_prefix"; then
2552 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2553 set dummy ${ac_tool_prefix}strip; ac_word=$2
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555 $as_echo_n "checking for $ac_word... " >&6; }
2556 if ${ac_cv_prog_STRIP+:} false; then :
2557 $as_echo_n "(cached) " >&6
2558 else
2559 if test -n "$STRIP"; then
2560 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2569 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 break 2
2572 fi
2573 done
2574 done
2575 IFS=$as_save_IFS
2576
2577 fi
2578 fi
2579 STRIP=$ac_cv_prog_STRIP
2580 if test -n "$STRIP"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2582 $as_echo "$STRIP" >&6; }
2583 else
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 $as_echo "no" >&6; }
2586 fi
2587
2588
2589 fi
2590 if test -z "$ac_cv_prog_STRIP"; then
2591 ac_ct_STRIP=$STRIP
2592 # Extract the first word of "strip", so it can be a program name with args.
2593 set dummy strip; ac_word=$2
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595 $as_echo_n "checking for $ac_word... " >&6; }
2596 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2597 $as_echo_n "(cached) " >&6
2598 else
2599 if test -n "$ac_ct_STRIP"; then
2600 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2601 else
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 for as_dir in $PATH
2604 do
2605 IFS=$as_save_IFS
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2609 ac_cv_prog_ac_ct_STRIP="strip"
2610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 break 2
2612 fi
2613 done
2614 done
2615 IFS=$as_save_IFS
2616
2617 fi
2618 fi
2619 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2620 if test -n "$ac_ct_STRIP"; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2622 $as_echo "$ac_ct_STRIP" >&6; }
2623 else
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625 $as_echo "no" >&6; }
2626 fi
2627
2628 if test "x$ac_ct_STRIP" = x; then
2629 STRIP=":"
2630 else
2631 case $cross_compiling:$ac_tool_warned in
2632 yes:)
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2635 ac_tool_warned=yes ;;
2636 esac
2637 STRIP=$ac_ct_STRIP
2638 fi
2639 else
2640 STRIP="$ac_cv_prog_STRIP"
2641 fi
2642
2643 fi
2644 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2645
2646 # We need awk for the "check" target. The system "awk" is bad on
2647 # some platforms.
2648 # Always define AMTAR for backward compatibility.
2649
2650 AMTAR=${AMTAR-"${am_missing_run}tar"}
2651
2652 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2653
2654
2655
2656
2657
2658 ac_config_headers="$ac_config_headers config.h"
2659
2660
2661 DEPDIR="${am__leading_dot}deps"
2662
2663 ac_config_commands="$ac_config_commands depfiles"
2664
2665
2666 am_make=${MAKE-make}
2667 cat > confinc << 'END'
2668 am__doit:
2669 @echo done
2670 .PHONY: am__doit
2671 END
2672 # If we don't find an include directive, just comment out the code.
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2674 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2675 am__include="#"
2676 am__quote=
2677 _am_result=none
2678 # First try GNU make style include.
2679 echo "include confinc" > confmf
2680 # We grep out `Entering directory' and `Leaving directory'
2681 # messages which can occur if `w' ends up in MAKEFLAGS.
2682 # In particular we don't look at `^make:' because GNU make might
2683 # be invoked under some other name (usually "gmake"), in which
2684 # case it prints its new name instead of `make'.
2685 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2686 am__include=include
2687 am__quote=
2688 _am_result=GNU
2689 fi
2690 # Now try BSD make style include.
2691 if test "$am__include" = "#"; then
2692 echo '.include "confinc"' > confmf
2693 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2694 am__include=.include
2695 am__quote="\""
2696 _am_result=BSD
2697 fi
2698 fi
2699
2700
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2702 $as_echo "$_am_result" >&6; }
2703 rm -f confinc confmf
2704
2705 @%:@ Check whether --enable-dependency-tracking was given.
2706 if test "${enable_dependency_tracking+set}" = set; then :
2707 enableval=$enable_dependency_tracking;
2708 fi
2709
2710 if test "x$enable_dependency_tracking" != xno; then
2711 am_depcomp="$ac_aux_dir/depcomp"
2712 AMDEPBACKSLASH='\'
2713 fi
2714
2715
2716 if test "x$enable_dependency_tracking" != xno; then
2717 AMDEP_TRUE=
2718 AMDEP_FALSE='#'
2719 else
2720 AMDEP_TRUE='#'
2721 AMDEP_FALSE=
2722 fi
2723
2724
2725
2726 ac_ext=c
2727 ac_cpp='$CPP $CPPFLAGS'
2728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2731 if test -n "$ac_tool_prefix"; then
2732 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2733 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 $as_echo_n "checking for $ac_word... " >&6; }
2736 if ${ac_cv_prog_CC+:} false; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 if test -n "$CC"; then
2740 ac_cv_prog_CC="$CC" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2744 do
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 break 2
2752 fi
2753 done
2754 done
2755 IFS=$as_save_IFS
2756
2757 fi
2758 fi
2759 CC=$ac_cv_prog_CC
2760 if test -n "$CC"; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2762 $as_echo "$CC" >&6; }
2763 else
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2766 fi
2767
2768
2769 fi
2770 if test -z "$ac_cv_prog_CC"; then
2771 ac_ct_CC=$CC
2772 # Extract the first word of "gcc", so it can be a program name with args.
2773 set dummy gcc; ac_word=$2
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775 $as_echo_n "checking for $ac_word... " >&6; }
2776 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2777 $as_echo_n "(cached) " >&6
2778 else
2779 if test -n "$ac_ct_CC"; then
2780 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2781 else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2784 do
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2789 ac_cv_prog_ac_ct_CC="gcc"
2790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 break 2
2792 fi
2793 done
2794 done
2795 IFS=$as_save_IFS
2796
2797 fi
2798 fi
2799 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2800 if test -n "$ac_ct_CC"; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2802 $as_echo "$ac_ct_CC" >&6; }
2803 else
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805 $as_echo "no" >&6; }
2806 fi
2807
2808 if test "x$ac_ct_CC" = x; then
2809 CC=""
2810 else
2811 case $cross_compiling:$ac_tool_warned in
2812 yes:)
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2815 ac_tool_warned=yes ;;
2816 esac
2817 CC=$ac_ct_CC
2818 fi
2819 else
2820 CC="$ac_cv_prog_CC"
2821 fi
2822
2823 if test -z "$CC"; then
2824 if test -n "$ac_tool_prefix"; then
2825 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2826 set dummy ${ac_tool_prefix}cc; ac_word=$2
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828 $as_echo_n "checking for $ac_word... " >&6; }
2829 if ${ac_cv_prog_CC+:} false; then :
2830 $as_echo_n "(cached) " >&6
2831 else
2832 if test -n "$CC"; then
2833 ac_cv_prog_CC="$CC" # Let the user override the test.
2834 else
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2837 do
2838 IFS=$as_save_IFS
2839 test -z "$as_dir" && as_dir=.
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2842 ac_cv_prog_CC="${ac_tool_prefix}cc"
2843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 break 2
2845 fi
2846 done
2847 done
2848 IFS=$as_save_IFS
2849
2850 fi
2851 fi
2852 CC=$ac_cv_prog_CC
2853 if test -n "$CC"; then
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2855 $as_echo "$CC" >&6; }
2856 else
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858 $as_echo "no" >&6; }
2859 fi
2860
2861
2862 fi
2863 fi
2864 if test -z "$CC"; then
2865 # Extract the first word of "cc", so it can be a program name with args.
2866 set dummy cc; ac_word=$2
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868 $as_echo_n "checking for $ac_word... " >&6; }
2869 if ${ac_cv_prog_CC+:} false; then :
2870 $as_echo_n "(cached) " >&6
2871 else
2872 if test -n "$CC"; then
2873 ac_cv_prog_CC="$CC" # Let the user override the test.
2874 else
2875 ac_prog_rejected=no
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2878 do
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 for ac_exec_ext in '' $ac_executable_extensions; do
2882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2883 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2884 ac_prog_rejected=yes
2885 continue
2886 fi
2887 ac_cv_prog_CC="cc"
2888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2890 fi
2891 done
2892 done
2893 IFS=$as_save_IFS
2894
2895 if test $ac_prog_rejected = yes; then
2896 # We found a bogon in the path, so make sure we never use it.
2897 set dummy $ac_cv_prog_CC
2898 shift
2899 if test $@%:@ != 0; then
2900 # We chose a different compiler from the bogus one.
2901 # However, it has the same basename, so the bogon will be chosen
2902 # first if we set CC to just the basename; use the full file name.
2903 shift
2904 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2905 fi
2906 fi
2907 fi
2908 fi
2909 CC=$ac_cv_prog_CC
2910 if test -n "$CC"; then
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2912 $as_echo "$CC" >&6; }
2913 else
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 $as_echo "no" >&6; }
2916 fi
2917
2918
2919 fi
2920 if test -z "$CC"; then
2921 if test -n "$ac_tool_prefix"; then
2922 for ac_prog in cl.exe
2923 do
2924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2925 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if ${ac_cv_prog_CC+:} false; then :
2929 $as_echo_n "(cached) " >&6
2930 else
2931 if test -n "$CC"; then
2932 ac_cv_prog_CC="$CC" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2941 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 break 2
2944 fi
2945 done
2946 done
2947 IFS=$as_save_IFS
2948
2949 fi
2950 fi
2951 CC=$ac_cv_prog_CC
2952 if test -n "$CC"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2954 $as_echo "$CC" >&6; }
2955 else
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2958 fi
2959
2960
2961 test -n "$CC" && break
2962 done
2963 fi
2964 if test -z "$CC"; then
2965 ac_ct_CC=$CC
2966 for ac_prog in cl.exe
2967 do
2968 # Extract the first word of "$ac_prog", so it can be a program name with args.
2969 set dummy $ac_prog; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2973 $as_echo_n "(cached) " >&6
2974 else
2975 if test -n "$ac_ct_CC"; then
2976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2985 ac_cv_prog_ac_ct_CC="$ac_prog"
2986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 break 2
2988 fi
2989 done
2990 done
2991 IFS=$as_save_IFS
2992
2993 fi
2994 fi
2995 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2996 if test -n "$ac_ct_CC"; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2998 $as_echo "$ac_ct_CC" >&6; }
2999 else
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3002 fi
3003
3004
3005 test -n "$ac_ct_CC" && break
3006 done
3007
3008 if test "x$ac_ct_CC" = x; then
3009 CC=""
3010 else
3011 case $cross_compiling:$ac_tool_warned in
3012 yes:)
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3015 ac_tool_warned=yes ;;
3016 esac
3017 CC=$ac_ct_CC
3018 fi
3019 fi
3020
3021 fi
3022
3023
3024 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3026 as_fn_error $? "no acceptable C compiler found in \$PATH
3027 See \`config.log' for more details" "$LINENO" 5; }
3028
3029 # Provide some information about the compiler.
3030 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3031 set X $ac_compile
3032 ac_compiler=$2
3033 for ac_option in --version -v -V -qversion; do
3034 { { ac_try="$ac_compiler $ac_option >&5"
3035 case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038 esac
3039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3040 $as_echo "$ac_try_echo"; } >&5
3041 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3042 ac_status=$?
3043 if test -s conftest.err; then
3044 sed '10a\
3045 ... rest of stderr output deleted ...
3046 10q' conftest.err >conftest.er1
3047 cat conftest.er1 >&5
3048 fi
3049 rm -f conftest.er1 conftest.err
3050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3051 test $ac_status = 0; }
3052 done
3053
3054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055 /* end confdefs.h. */
3056
3057 int
3058 main ()
3059 {
3060
3061 ;
3062 return 0;
3063 }
3064 _ACEOF
3065 ac_clean_files_save=$ac_clean_files
3066 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3067 # Try to create an executable without -o first, disregard a.out.
3068 # It will help us diagnose broken compilers, and finding out an intuition
3069 # of exeext.
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3071 $as_echo_n "checking whether the C compiler works... " >&6; }
3072 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3073
3074 # The possible output files:
3075 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3076
3077 ac_rmfiles=
3078 for ac_file in $ac_files
3079 do
3080 case $ac_file in
3081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3082 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3083 esac
3084 done
3085 rm -f $ac_rmfiles
3086
3087 if { { ac_try="$ac_link_default"
3088 case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091 esac
3092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3093 $as_echo "$ac_try_echo"; } >&5
3094 (eval "$ac_link_default") 2>&5
3095 ac_status=$?
3096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3097 test $ac_status = 0; }; then :
3098 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3099 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3100 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3101 # so that the user can short-circuit this test for compilers unknown to
3102 # Autoconf.
3103 for ac_file in $ac_files ''
3104 do
3105 test -f "$ac_file" || continue
3106 case $ac_file in
3107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3108 ;;
3109 [ab].out )
3110 # We found the default executable, but exeext='' is most
3111 # certainly right.
3112 break;;
3113 *.* )
3114 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3115 then :; else
3116 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3117 fi
3118 # We set ac_cv_exeext here because the later test for it is not
3119 # safe: cross compilers may not add the suffix if given an `-o'
3120 # argument, so we may need to know it at that point already.
3121 # Even if this section looks crufty: it has the advantage of
3122 # actually working.
3123 break;;
3124 * )
3125 break;;
3126 esac
3127 done
3128 test "$ac_cv_exeext" = no && ac_cv_exeext=
3129
3130 else
3131 ac_file=''
3132 fi
3133 if test -z "$ac_file"; then :
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3136 $as_echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3138
3139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3141 as_fn_error 77 "C compiler cannot create executables
3142 See \`config.log' for more details" "$LINENO" 5; }
3143 else
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3145 $as_echo "yes" >&6; }
3146 fi
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3148 $as_echo_n "checking for C compiler default output file name... " >&6; }
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3150 $as_echo "$ac_file" >&6; }
3151 ac_exeext=$ac_cv_exeext
3152
3153 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3154 ac_clean_files=$ac_clean_files_save
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3156 $as_echo_n "checking for suffix of executables... " >&6; }
3157 if { { ac_try="$ac_link"
3158 case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161 esac
3162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163 $as_echo "$ac_try_echo"; } >&5
3164 (eval "$ac_link") 2>&5
3165 ac_status=$?
3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167 test $ac_status = 0; }; then :
3168 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3169 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3170 # work properly (i.e., refer to `conftest.exe'), while it won't with
3171 # `rm'.
3172 for ac_file in conftest.exe conftest conftest.*; do
3173 test -f "$ac_file" || continue
3174 case $ac_file in
3175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3176 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3177 break;;
3178 * ) break;;
3179 esac
3180 done
3181 else
3182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3185 See \`config.log' for more details" "$LINENO" 5; }
3186 fi
3187 rm -f conftest conftest$ac_cv_exeext
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3189 $as_echo "$ac_cv_exeext" >&6; }
3190
3191 rm -f conftest.$ac_ext
3192 EXEEXT=$ac_cv_exeext
3193 ac_exeext=$EXEEXT
3194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195 /* end confdefs.h. */
3196 @%:@include <stdio.h>
3197 int
3198 main ()
3199 {
3200 FILE *f = fopen ("conftest.out", "w");
3201 return ferror (f) || fclose (f) != 0;
3202
3203 ;
3204 return 0;
3205 }
3206 _ACEOF
3207 ac_clean_files="$ac_clean_files conftest.out"
3208 # Check that the compiler produces executables we can run. If not, either
3209 # the compiler is broken, or we cross compile.
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3211 $as_echo_n "checking whether we are cross compiling... " >&6; }
3212 if test "$cross_compiling" != yes; then
3213 { { ac_try="$ac_link"
3214 case "(($ac_try" in
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3217 esac
3218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3219 $as_echo "$ac_try_echo"; } >&5
3220 (eval "$ac_link") 2>&5
3221 ac_status=$?
3222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3223 test $ac_status = 0; }
3224 if { ac_try='./conftest$ac_cv_exeext'
3225 { { case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228 esac
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231 (eval "$ac_try") 2>&5
3232 ac_status=$?
3233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234 test $ac_status = 0; }; }; then
3235 cross_compiling=no
3236 else
3237 if test "$cross_compiling" = maybe; then
3238 cross_compiling=yes
3239 else
3240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error $? "cannot run C compiled programs.
3243 If you meant to cross compile, use \`--host'.
3244 See \`config.log' for more details" "$LINENO" 5; }
3245 fi
3246 fi
3247 fi
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3249 $as_echo "$cross_compiling" >&6; }
3250
3251 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3252 ac_clean_files=$ac_clean_files_save
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3254 $as_echo_n "checking for suffix of object files... " >&6; }
3255 if ${ac_cv_objext+:} false; then :
3256 $as_echo_n "(cached) " >&6
3257 else
3258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259 /* end confdefs.h. */
3260
3261 int
3262 main ()
3263 {
3264
3265 ;
3266 return 0;
3267 }
3268 _ACEOF
3269 rm -f conftest.o conftest.obj
3270 if { { ac_try="$ac_compile"
3271 case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274 esac
3275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276 $as_echo "$ac_try_echo"; } >&5
3277 (eval "$ac_compile") 2>&5
3278 ac_status=$?
3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; }; then :
3281 for ac_file in conftest.o conftest.obj conftest.*; do
3282 test -f "$ac_file" || continue;
3283 case $ac_file in
3284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3285 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3286 break;;
3287 esac
3288 done
3289 else
3290 $as_echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3292
3293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 as_fn_error $? "cannot compute suffix of object files: cannot compile
3296 See \`config.log' for more details" "$LINENO" 5; }
3297 fi
3298 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3299 fi
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3301 $as_echo "$ac_cv_objext" >&6; }
3302 OBJEXT=$ac_cv_objext
3303 ac_objext=$OBJEXT
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3305 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3306 if ${ac_cv_c_compiler_gnu+:} false; then :
3307 $as_echo_n "(cached) " >&6
3308 else
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h. */
3311
3312 int
3313 main ()
3314 {
3315 #ifndef __GNUC__
3316 choke me
3317 #endif
3318
3319 ;
3320 return 0;
3321 }
3322 _ACEOF
3323 if ac_fn_c_try_compile "$LINENO"; then :
3324 ac_compiler_gnu=yes
3325 else
3326 ac_compiler_gnu=no
3327 fi
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3330
3331 fi
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3333 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3334 if test $ac_compiler_gnu = yes; then
3335 GCC=yes
3336 else
3337 GCC=
3338 fi
3339 ac_test_CFLAGS=${CFLAGS+set}
3340 ac_save_CFLAGS=$CFLAGS
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3342 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3343 if ${ac_cv_prog_cc_g+:} false; then :
3344 $as_echo_n "(cached) " >&6
3345 else
3346 ac_save_c_werror_flag=$ac_c_werror_flag
3347 ac_c_werror_flag=yes
3348 ac_cv_prog_cc_g=no
3349 CFLAGS="-g"
3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351 /* end confdefs.h. */
3352
3353 int
3354 main ()
3355 {
3356
3357 ;
3358 return 0;
3359 }
3360 _ACEOF
3361 if ac_fn_c_try_compile "$LINENO"; then :
3362 ac_cv_prog_cc_g=yes
3363 else
3364 CFLAGS=""
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3367
3368 int
3369 main ()
3370 {
3371
3372 ;
3373 return 0;
3374 }
3375 _ACEOF
3376 if ac_fn_c_try_compile "$LINENO"; then :
3377
3378 else
3379 ac_c_werror_flag=$ac_save_c_werror_flag
3380 CFLAGS="-g"
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3383
3384 int
3385 main ()
3386 {
3387
3388 ;
3389 return 0;
3390 }
3391 _ACEOF
3392 if ac_fn_c_try_compile "$LINENO"; then :
3393 ac_cv_prog_cc_g=yes
3394 fi
3395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396 fi
3397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3398 fi
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400 ac_c_werror_flag=$ac_save_c_werror_flag
3401 fi
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3403 $as_echo "$ac_cv_prog_cc_g" >&6; }
3404 if test "$ac_test_CFLAGS" = set; then
3405 CFLAGS=$ac_save_CFLAGS
3406 elif test $ac_cv_prog_cc_g = yes; then
3407 if test "$GCC" = yes; then
3408 CFLAGS="-g -O2"
3409 else
3410 CFLAGS="-g"
3411 fi
3412 else
3413 if test "$GCC" = yes; then
3414 CFLAGS="-O2"
3415 else
3416 CFLAGS=
3417 fi
3418 fi
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3420 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3421 if ${ac_cv_prog_cc_c89+:} false; then :
3422 $as_echo_n "(cached) " >&6
3423 else
3424 ac_cv_prog_cc_c89=no
3425 ac_save_CC=$CC
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3428 #include <stdarg.h>
3429 #include <stdio.h>
3430 struct stat;
3431 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3432 struct buf { int x; };
3433 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3434 static char *e (p, i)
3435 char **p;
3436 int i;
3437 {
3438 return p[i];
3439 }
3440 static char *f (char * (*g) (char **, int), char **p, ...)
3441 {
3442 char *s;
3443 va_list v;
3444 va_start (v,p);
3445 s = g (p, va_arg (v,int));
3446 va_end (v);
3447 return s;
3448 }
3449
3450 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3451 function prototypes and stuff, but not '\xHH' hex character constants.
3452 These don't provoke an error unfortunately, instead are silently treated
3453 as 'x'. The following induces an error, until -std is added to get
3454 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3455 array size at least. It's necessary to write '\x00'==0 to get something
3456 that's true only with -std. */
3457 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3458
3459 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3460 inside strings and character constants. */
3461 #define FOO(x) 'x'
3462 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3463
3464 int test (int i, double x);
3465 struct s1 {int (*f) (int a);};
3466 struct s2 {int (*f) (double a);};
3467 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3468 int argc;
3469 char **argv;
3470 int
3471 main ()
3472 {
3473 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3474 ;
3475 return 0;
3476 }
3477 _ACEOF
3478 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3479 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3480 do
3481 CC="$ac_save_CC $ac_arg"
3482 if ac_fn_c_try_compile "$LINENO"; then :
3483 ac_cv_prog_cc_c89=$ac_arg
3484 fi
3485 rm -f core conftest.err conftest.$ac_objext
3486 test "x$ac_cv_prog_cc_c89" != "xno" && break
3487 done
3488 rm -f conftest.$ac_ext
3489 CC=$ac_save_CC
3490
3491 fi
3492 # AC_CACHE_VAL
3493 case "x$ac_cv_prog_cc_c89" in
3494 x)
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3496 $as_echo "none needed" >&6; } ;;
3497 xno)
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3499 $as_echo "unsupported" >&6; } ;;
3500 *)
3501 CC="$CC $ac_cv_prog_cc_c89"
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3503 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3504 esac
3505 if test "x$ac_cv_prog_cc_c89" != xno; then :
3506
3507 fi
3508
3509 ac_ext=c
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3514
3515 depcc="$CC" am_compiler_list=
3516
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3518 $as_echo_n "checking dependency style of $depcc... " >&6; }
3519 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3523 # We make a subdir and do the tests there. Otherwise we can end up
3524 # making bogus files that we don't know about and never remove. For
3525 # instance it was reported that on HP-UX the gcc test will end up
3526 # making a dummy file named `D' -- because `-MD' means `put the output
3527 # in D'.
3528 mkdir conftest.dir
3529 # Copy depcomp to subdir because otherwise we won't find it if we're
3530 # using a relative directory.
3531 cp "$am_depcomp" conftest.dir
3532 cd conftest.dir
3533 # We will build objects and dependencies in a subdirectory because
3534 # it helps to detect inapplicable dependency modes. For instance
3535 # both Tru64's cc and ICC support -MD to output dependencies as a
3536 # side effect of compilation, but ICC will put the dependencies in
3537 # the current directory while Tru64 will put them in the object
3538 # directory.
3539 mkdir sub
3540
3541 am_cv_CC_dependencies_compiler_type=none
3542 if test "$am_compiler_list" = ""; then
3543 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3544 fi
3545 for depmode in $am_compiler_list; do
3546 # Setup a source with many dependencies, because some compilers
3547 # like to wrap large dependency lists on column 80 (with \), and
3548 # we should not choose a depcomp mode which is confused by this.
3549 #
3550 # We need to recreate these files for each test, as the compiler may
3551 # overwrite some of them when testing with obscure command lines.
3552 # This happens at least with the AIX C compiler.
3553 : > sub/conftest.c
3554 for i in 1 2 3 4 5 6; do
3555 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3556 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3557 # Solaris 8's {/usr,}/bin/sh.
3558 touch sub/conftst$i.h
3559 done
3560 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3561
3562 case $depmode in
3563 nosideeffect)
3564 # after this tag, mechanisms are not by side-effect, so they'll
3565 # only be used when explicitly requested
3566 if test "x$enable_dependency_tracking" = xyes; then
3567 continue
3568 else
3569 break
3570 fi
3571 ;;
3572 none) break ;;
3573 esac
3574 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3575 # mode. It turns out that the SunPro C++ compiler does not properly
3576 # handle `-M -o', and we need to detect this.
3577 if depmode=$depmode \
3578 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3579 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3580 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3581 >/dev/null 2>conftest.err &&
3582 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3583 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3584 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3585 # icc doesn't choke on unknown options, it will just issue warnings
3586 # or remarks (even with -Werror). So we grep stderr for any message
3587 # that says an option was ignored or not supported.
3588 # When given -MP, icc 7.0 and 7.1 complain thusly:
3589 # icc: Command line warning: ignoring option '-M'; no argument required
3590 # The diagnosis changed in icc 8.0:
3591 # icc: Command line remark: option '-MP' not supported
3592 if (grep 'ignoring option' conftest.err ||
3593 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3594 am_cv_CC_dependencies_compiler_type=$depmode
3595 break
3596 fi
3597 fi
3598 done
3599
3600 cd ..
3601 rm -rf conftest.dir
3602 else
3603 am_cv_CC_dependencies_compiler_type=none
3604 fi
3605
3606 fi
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3608 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3609 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3610
3611
3612
3613 if
3614 test "x$enable_dependency_tracking" != xno \
3615 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3616 am__fastdepCC_TRUE=
3617 am__fastdepCC_FALSE='#'
3618 else
3619 am__fastdepCC_TRUE='#'
3620 am__fastdepCC_FALSE=
3621 fi
3622
3623
3624
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3626 $as_echo_n "checking for library containing strerror... " >&6; }
3627 if ${ac_cv_search_strerror+:} false; then :
3628 $as_echo_n "(cached) " >&6
3629 else
3630 ac_func_search_save_LIBS=$LIBS
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3633
3634 /* Override any GCC internal prototype to avoid an error.
3635 Use char because int might match the return type of a GCC
3636 builtin and then its argument prototype would still apply. */
3637 #ifdef __cplusplus
3638 extern "C"
3639 #endif
3640 char strerror ();
3641 int
3642 main ()
3643 {
3644 return strerror ();
3645 ;
3646 return 0;
3647 }
3648 _ACEOF
3649 for ac_lib in '' cposix; do
3650 if test -z "$ac_lib"; then
3651 ac_res="none required"
3652 else
3653 ac_res=-l$ac_lib
3654 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3655 fi
3656 if ac_fn_c_try_link "$LINENO"; then :
3657 ac_cv_search_strerror=$ac_res
3658 fi
3659 rm -f core conftest.err conftest.$ac_objext \
3660 conftest$ac_exeext
3661 if ${ac_cv_search_strerror+:} false; then :
3662 break
3663 fi
3664 done
3665 if ${ac_cv_search_strerror+:} false; then :
3666
3667 else
3668 ac_cv_search_strerror=no
3669 fi
3670 rm conftest.$ac_ext
3671 LIBS=$ac_func_search_save_LIBS
3672 fi
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3674 $as_echo "$ac_cv_search_strerror" >&6; }
3675 ac_res=$ac_cv_search_strerror
3676 if test "$ac_res" != no; then :
3677 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3678
3679 fi
3680
3681 CFLAGS=$CFLAGS
3682
3683 ac_ext=c
3684 ac_cpp='$CPP $CPPFLAGS'
3685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3688 if test -n "$ac_tool_prefix"; then
3689 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3690 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692 $as_echo_n "checking for $ac_word... " >&6; }
3693 if ${ac_cv_prog_CC+:} false; then :
3694 $as_echo_n "(cached) " >&6
3695 else
3696 if test -n "$CC"; then
3697 ac_cv_prog_CC="$CC" # Let the user override the test.
3698 else
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3701 do
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3706 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3709 fi
3710 done
3711 done
3712 IFS=$as_save_IFS
3713
3714 fi
3715 fi
3716 CC=$ac_cv_prog_CC
3717 if test -n "$CC"; then
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3719 $as_echo "$CC" >&6; }
3720 else
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722 $as_echo "no" >&6; }
3723 fi
3724
3725
3726 fi
3727 if test -z "$ac_cv_prog_CC"; then
3728 ac_ct_CC=$CC
3729 # Extract the first word of "gcc", so it can be a program name with args.
3730 set dummy gcc; ac_word=$2
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3732 $as_echo_n "checking for $ac_word... " >&6; }
3733 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3734 $as_echo_n "(cached) " >&6
3735 else
3736 if test -n "$ac_ct_CC"; then
3737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3738 else
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 for as_dir in $PATH
3741 do
3742 IFS=$as_save_IFS
3743 test -z "$as_dir" && as_dir=.
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3746 ac_cv_prog_ac_ct_CC="gcc"
3747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3748 break 2
3749 fi
3750 done
3751 done
3752 IFS=$as_save_IFS
3753
3754 fi
3755 fi
3756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3757 if test -n "$ac_ct_CC"; then
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3759 $as_echo "$ac_ct_CC" >&6; }
3760 else
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762 $as_echo "no" >&6; }
3763 fi
3764
3765 if test "x$ac_ct_CC" = x; then
3766 CC=""
3767 else
3768 case $cross_compiling:$ac_tool_warned in
3769 yes:)
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3772 ac_tool_warned=yes ;;
3773 esac
3774 CC=$ac_ct_CC
3775 fi
3776 else
3777 CC="$ac_cv_prog_CC"
3778 fi
3779
3780 if test -z "$CC"; then
3781 if test -n "$ac_tool_prefix"; then
3782 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3783 set dummy ${ac_tool_prefix}cc; ac_word=$2
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785 $as_echo_n "checking for $ac_word... " >&6; }
3786 if ${ac_cv_prog_CC+:} false; then :
3787 $as_echo_n "(cached) " >&6
3788 else
3789 if test -n "$CC"; then
3790 ac_cv_prog_CC="$CC" # Let the user override the test.
3791 else
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793 for as_dir in $PATH
3794 do
3795 IFS=$as_save_IFS
3796 test -z "$as_dir" && as_dir=.
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3799 ac_cv_prog_CC="${ac_tool_prefix}cc"
3800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3801 break 2
3802 fi
3803 done
3804 done
3805 IFS=$as_save_IFS
3806
3807 fi
3808 fi
3809 CC=$ac_cv_prog_CC
3810 if test -n "$CC"; then
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3812 $as_echo "$CC" >&6; }
3813 else
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815 $as_echo "no" >&6; }
3816 fi
3817
3818
3819 fi
3820 fi
3821 if test -z "$CC"; then
3822 # Extract the first word of "cc", so it can be a program name with args.
3823 set dummy cc; ac_word=$2
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3825 $as_echo_n "checking for $ac_word... " >&6; }
3826 if ${ac_cv_prog_CC+:} false; then :
3827 $as_echo_n "(cached) " >&6
3828 else
3829 if test -n "$CC"; then
3830 ac_cv_prog_CC="$CC" # Let the user override the test.
3831 else
3832 ac_prog_rejected=no
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH
3835 do
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3841 ac_prog_rejected=yes
3842 continue
3843 fi
3844 ac_cv_prog_CC="cc"
3845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3846 break 2
3847 fi
3848 done
3849 done
3850 IFS=$as_save_IFS
3851
3852 if test $ac_prog_rejected = yes; then
3853 # We found a bogon in the path, so make sure we never use it.
3854 set dummy $ac_cv_prog_CC
3855 shift
3856 if test $@%:@ != 0; then
3857 # We chose a different compiler from the bogus one.
3858 # However, it has the same basename, so the bogon will be chosen
3859 # first if we set CC to just the basename; use the full file name.
3860 shift
3861 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3862 fi
3863 fi
3864 fi
3865 fi
3866 CC=$ac_cv_prog_CC
3867 if test -n "$CC"; then
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3869 $as_echo "$CC" >&6; }
3870 else
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872 $as_echo "no" >&6; }
3873 fi
3874
3875
3876 fi
3877 if test -z "$CC"; then
3878 if test -n "$ac_tool_prefix"; then
3879 for ac_prog in cl.exe
3880 do
3881 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3882 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3884 $as_echo_n "checking for $ac_word... " >&6; }
3885 if ${ac_cv_prog_CC+:} false; then :
3886 $as_echo_n "(cached) " >&6
3887 else
3888 if test -n "$CC"; then
3889 ac_cv_prog_CC="$CC" # Let the user override the test.
3890 else
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3893 do
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3901 fi
3902 done
3903 done
3904 IFS=$as_save_IFS
3905
3906 fi
3907 fi
3908 CC=$ac_cv_prog_CC
3909 if test -n "$CC"; then
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3911 $as_echo "$CC" >&6; }
3912 else
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914 $as_echo "no" >&6; }
3915 fi
3916
3917
3918 test -n "$CC" && break
3919 done
3920 fi
3921 if test -z "$CC"; then
3922 ac_ct_CC=$CC
3923 for ac_prog in cl.exe
3924 do
3925 # Extract the first word of "$ac_prog", so it can be a program name with args.
3926 set dummy $ac_prog; ac_word=$2
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3928 $as_echo_n "checking for $ac_word... " >&6; }
3929 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3930 $as_echo_n "(cached) " >&6
3931 else
3932 if test -n "$ac_ct_CC"; then
3933 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3934 else
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH
3937 do
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3942 ac_cv_prog_ac_ct_CC="$ac_prog"
3943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 break 2
3945 fi
3946 done
3947 done
3948 IFS=$as_save_IFS
3949
3950 fi
3951 fi
3952 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3953 if test -n "$ac_ct_CC"; then
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3955 $as_echo "$ac_ct_CC" >&6; }
3956 else
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958 $as_echo "no" >&6; }
3959 fi
3960
3961
3962 test -n "$ac_ct_CC" && break
3963 done
3964
3965 if test "x$ac_ct_CC" = x; then
3966 CC=""
3967 else
3968 case $cross_compiling:$ac_tool_warned in
3969 yes:)
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3972 ac_tool_warned=yes ;;
3973 esac
3974 CC=$ac_ct_CC
3975 fi
3976 fi
3977
3978 fi
3979
3980
3981 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error $? "no acceptable C compiler found in \$PATH
3984 See \`config.log' for more details" "$LINENO" 5; }
3985
3986 # Provide some information about the compiler.
3987 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3988 set X $ac_compile
3989 ac_compiler=$2
3990 for ac_option in --version -v -V -qversion; do
3991 { { ac_try="$ac_compiler $ac_option >&5"
3992 case "(($ac_try" in
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3995 esac
3996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3997 $as_echo "$ac_try_echo"; } >&5
3998 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3999 ac_status=$?
4000 if test -s conftest.err; then
4001 sed '10a\
4002 ... rest of stderr output deleted ...
4003 10q' conftest.err >conftest.er1
4004 cat conftest.er1 >&5
4005 fi
4006 rm -f conftest.er1 conftest.err
4007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4008 test $ac_status = 0; }
4009 done
4010
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4012 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4013 if ${ac_cv_c_compiler_gnu+:} false; then :
4014 $as_echo_n "(cached) " >&6
4015 else
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4018
4019 int
4020 main ()
4021 {
4022 #ifndef __GNUC__
4023 choke me
4024 #endif
4025
4026 ;
4027 return 0;
4028 }
4029 _ACEOF
4030 if ac_fn_c_try_compile "$LINENO"; then :
4031 ac_compiler_gnu=yes
4032 else
4033 ac_compiler_gnu=no
4034 fi
4035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4037
4038 fi
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4040 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4041 if test $ac_compiler_gnu = yes; then
4042 GCC=yes
4043 else
4044 GCC=
4045 fi
4046 ac_test_CFLAGS=${CFLAGS+set}
4047 ac_save_CFLAGS=$CFLAGS
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4049 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4050 if ${ac_cv_prog_cc_g+:} false; then :
4051 $as_echo_n "(cached) " >&6
4052 else
4053 ac_save_c_werror_flag=$ac_c_werror_flag
4054 ac_c_werror_flag=yes
4055 ac_cv_prog_cc_g=no
4056 CFLAGS="-g"
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4059
4060 int
4061 main ()
4062 {
4063
4064 ;
4065 return 0;
4066 }
4067 _ACEOF
4068 if ac_fn_c_try_compile "$LINENO"; then :
4069 ac_cv_prog_cc_g=yes
4070 else
4071 CFLAGS=""
4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h. */
4074
4075 int
4076 main ()
4077 {
4078
4079 ;
4080 return 0;
4081 }
4082 _ACEOF
4083 if ac_fn_c_try_compile "$LINENO"; then :
4084
4085 else
4086 ac_c_werror_flag=$ac_save_c_werror_flag
4087 CFLAGS="-g"
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4090
4091 int
4092 main ()
4093 {
4094
4095 ;
4096 return 0;
4097 }
4098 _ACEOF
4099 if ac_fn_c_try_compile "$LINENO"; then :
4100 ac_cv_prog_cc_g=yes
4101 fi
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103 fi
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105 fi
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 ac_c_werror_flag=$ac_save_c_werror_flag
4108 fi
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4110 $as_echo "$ac_cv_prog_cc_g" >&6; }
4111 if test "$ac_test_CFLAGS" = set; then
4112 CFLAGS=$ac_save_CFLAGS
4113 elif test $ac_cv_prog_cc_g = yes; then
4114 if test "$GCC" = yes; then
4115 CFLAGS="-g -O2"
4116 else
4117 CFLAGS="-g"
4118 fi
4119 else
4120 if test "$GCC" = yes; then
4121 CFLAGS="-O2"
4122 else
4123 CFLAGS=
4124 fi
4125 fi
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4127 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4128 if ${ac_cv_prog_cc_c89+:} false; then :
4129 $as_echo_n "(cached) " >&6
4130 else
4131 ac_cv_prog_cc_c89=no
4132 ac_save_CC=$CC
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4135 #include <stdarg.h>
4136 #include <stdio.h>
4137 struct stat;
4138 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4139 struct buf { int x; };
4140 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4141 static char *e (p, i)
4142 char **p;
4143 int i;
4144 {
4145 return p[i];
4146 }
4147 static char *f (char * (*g) (char **, int), char **p, ...)
4148 {
4149 char *s;
4150 va_list v;
4151 va_start (v,p);
4152 s = g (p, va_arg (v,int));
4153 va_end (v);
4154 return s;
4155 }
4156
4157 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4158 function prototypes and stuff, but not '\xHH' hex character constants.
4159 These don't provoke an error unfortunately, instead are silently treated
4160 as 'x'. The following induces an error, until -std is added to get
4161 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4162 array size at least. It's necessary to write '\x00'==0 to get something
4163 that's true only with -std. */
4164 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4165
4166 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4167 inside strings and character constants. */
4168 #define FOO(x) 'x'
4169 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4170
4171 int test (int i, double x);
4172 struct s1 {int (*f) (int a);};
4173 struct s2 {int (*f) (double a);};
4174 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4175 int argc;
4176 char **argv;
4177 int
4178 main ()
4179 {
4180 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4181 ;
4182 return 0;
4183 }
4184 _ACEOF
4185 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4186 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4187 do
4188 CC="$ac_save_CC $ac_arg"
4189 if ac_fn_c_try_compile "$LINENO"; then :
4190 ac_cv_prog_cc_c89=$ac_arg
4191 fi
4192 rm -f core conftest.err conftest.$ac_objext
4193 test "x$ac_cv_prog_cc_c89" != "xno" && break
4194 done
4195 rm -f conftest.$ac_ext
4196 CC=$ac_save_CC
4197
4198 fi
4199 # AC_CACHE_VAL
4200 case "x$ac_cv_prog_cc_c89" in
4201 x)
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4203 $as_echo "none needed" >&6; } ;;
4204 xno)
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4206 $as_echo "unsupported" >&6; } ;;
4207 *)
4208 CC="$CC $ac_cv_prog_cc_c89"
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4210 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4211 esac
4212 if test "x$ac_cv_prog_cc_c89" != xno; then :
4213
4214 fi
4215
4216 ac_ext=c
4217 ac_cpp='$CPP $CPPFLAGS'
4218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4221
4222 depcc="$CC" am_compiler_list=
4223
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4225 $as_echo_n "checking dependency style of $depcc... " >&6; }
4226 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4227 $as_echo_n "(cached) " >&6
4228 else
4229 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4230 # We make a subdir and do the tests there. Otherwise we can end up
4231 # making bogus files that we don't know about and never remove. For
4232 # instance it was reported that on HP-UX the gcc test will end up
4233 # making a dummy file named `D' -- because `-MD' means `put the output
4234 # in D'.
4235 mkdir conftest.dir
4236 # Copy depcomp to subdir because otherwise we won't find it if we're
4237 # using a relative directory.
4238 cp "$am_depcomp" conftest.dir
4239 cd conftest.dir
4240 # We will build objects and dependencies in a subdirectory because
4241 # it helps to detect inapplicable dependency modes. For instance
4242 # both Tru64's cc and ICC support -MD to output dependencies as a
4243 # side effect of compilation, but ICC will put the dependencies in
4244 # the current directory while Tru64 will put them in the object
4245 # directory.
4246 mkdir sub
4247
4248 am_cv_CC_dependencies_compiler_type=none
4249 if test "$am_compiler_list" = ""; then
4250 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4251 fi
4252 for depmode in $am_compiler_list; do
4253 # Setup a source with many dependencies, because some compilers
4254 # like to wrap large dependency lists on column 80 (with \), and
4255 # we should not choose a depcomp mode which is confused by this.
4256 #
4257 # We need to recreate these files for each test, as the compiler may
4258 # overwrite some of them when testing with obscure command lines.
4259 # This happens at least with the AIX C compiler.
4260 : > sub/conftest.c
4261 for i in 1 2 3 4 5 6; do
4262 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4263 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4264 # Solaris 8's {/usr,}/bin/sh.
4265 touch sub/conftst$i.h
4266 done
4267 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4268
4269 case $depmode in
4270 nosideeffect)
4271 # after this tag, mechanisms are not by side-effect, so they'll
4272 # only be used when explicitly requested
4273 if test "x$enable_dependency_tracking" = xyes; then
4274 continue
4275 else
4276 break
4277 fi
4278 ;;
4279 none) break ;;
4280 esac
4281 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4282 # mode. It turns out that the SunPro C++ compiler does not properly
4283 # handle `-M -o', and we need to detect this.
4284 if depmode=$depmode \
4285 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4286 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4287 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4288 >/dev/null 2>conftest.err &&
4289 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4290 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4291 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4292 # icc doesn't choke on unknown options, it will just issue warnings
4293 # or remarks (even with -Werror). So we grep stderr for any message
4294 # that says an option was ignored or not supported.
4295 # When given -MP, icc 7.0 and 7.1 complain thusly:
4296 # icc: Command line warning: ignoring option '-M'; no argument required
4297 # The diagnosis changed in icc 8.0:
4298 # icc: Command line remark: option '-MP' not supported
4299 if (grep 'ignoring option' conftest.err ||
4300 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4301 am_cv_CC_dependencies_compiler_type=$depmode
4302 break
4303 fi
4304 fi
4305 done
4306
4307 cd ..
4308 rm -rf conftest.dir
4309 else
4310 am_cv_CC_dependencies_compiler_type=none
4311 fi
4312
4313 fi
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4315 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4316 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4317
4318
4319
4320 if
4321 test "x$enable_dependency_tracking" != xno \
4322 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4323 am__fastdepCC_TRUE=
4324 am__fastdepCC_FALSE='#'
4325 else
4326 am__fastdepCC_TRUE='#'
4327 am__fastdepCC_FALSE=
4328 fi
4329
4330
4331 ac_ext=c
4332 ac_cpp='$CPP $CPPFLAGS'
4333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336 if test -n "$ac_tool_prefix"; then
4337 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4338 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4340 $as_echo_n "checking for $ac_word... " >&6; }
4341 if ${ac_cv_prog_CC+:} false; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 if test -n "$CC"; then
4345 ac_cv_prog_CC="$CC" # Let the user override the test.
4346 else
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH
4349 do
4350 IFS=$as_save_IFS
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 break 2
4357 fi
4358 done
4359 done
4360 IFS=$as_save_IFS
4361
4362 fi
4363 fi
4364 CC=$ac_cv_prog_CC
4365 if test -n "$CC"; then
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4367 $as_echo "$CC" >&6; }
4368 else
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370 $as_echo "no" >&6; }
4371 fi
4372
4373
4374 fi
4375 if test -z "$ac_cv_prog_CC"; then
4376 ac_ct_CC=$CC
4377 # Extract the first word of "gcc", so it can be a program name with args.
4378 set dummy gcc; ac_word=$2
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380 $as_echo_n "checking for $ac_word... " >&6; }
4381 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4382 $as_echo_n "(cached) " >&6
4383 else
4384 if test -n "$ac_ct_CC"; then
4385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4386 else
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4389 do
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4394 ac_cv_prog_ac_ct_CC="gcc"
4395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 break 2
4397 fi
4398 done
4399 done
4400 IFS=$as_save_IFS
4401
4402 fi
4403 fi
4404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4405 if test -n "$ac_ct_CC"; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4407 $as_echo "$ac_ct_CC" >&6; }
4408 else
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4411 fi
4412
4413 if test "x$ac_ct_CC" = x; then
4414 CC=""
4415 else
4416 case $cross_compiling:$ac_tool_warned in
4417 yes:)
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4420 ac_tool_warned=yes ;;
4421 esac
4422 CC=$ac_ct_CC
4423 fi
4424 else
4425 CC="$ac_cv_prog_CC"
4426 fi
4427
4428 if test -z "$CC"; then
4429 if test -n "$ac_tool_prefix"; then
4430 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4431 set dummy ${ac_tool_prefix}cc; ac_word=$2
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4433 $as_echo_n "checking for $ac_word... " >&6; }
4434 if ${ac_cv_prog_CC+:} false; then :
4435 $as_echo_n "(cached) " >&6
4436 else
4437 if test -n "$CC"; then
4438 ac_cv_prog_CC="$CC" # Let the user override the test.
4439 else
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4442 do
4443 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4447 ac_cv_prog_CC="${ac_tool_prefix}cc"
4448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 break 2
4450 fi
4451 done
4452 done
4453 IFS=$as_save_IFS
4454
4455 fi
4456 fi
4457 CC=$ac_cv_prog_CC
4458 if test -n "$CC"; then
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4460 $as_echo "$CC" >&6; }
4461 else
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463 $as_echo "no" >&6; }
4464 fi
4465
4466
4467 fi
4468 fi
4469 if test -z "$CC"; then
4470 # Extract the first word of "cc", so it can be a program name with args.
4471 set dummy cc; ac_word=$2
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4473 $as_echo_n "checking for $ac_word... " >&6; }
4474 if ${ac_cv_prog_CC+:} false; then :
4475 $as_echo_n "(cached) " >&6
4476 else
4477 if test -n "$CC"; then
4478 ac_cv_prog_CC="$CC" # Let the user override the test.
4479 else
4480 ac_prog_rejected=no
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4483 do
4484 IFS=$as_save_IFS
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4488 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4489 ac_prog_rejected=yes
4490 continue
4491 fi
4492 ac_cv_prog_CC="cc"
4493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4494 break 2
4495 fi
4496 done
4497 done
4498 IFS=$as_save_IFS
4499
4500 if test $ac_prog_rejected = yes; then
4501 # We found a bogon in the path, so make sure we never use it.
4502 set dummy $ac_cv_prog_CC
4503 shift
4504 if test $@%:@ != 0; then
4505 # We chose a different compiler from the bogus one.
4506 # However, it has the same basename, so the bogon will be chosen
4507 # first if we set CC to just the basename; use the full file name.
4508 shift
4509 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4510 fi
4511 fi
4512 fi
4513 fi
4514 CC=$ac_cv_prog_CC
4515 if test -n "$CC"; then
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4517 $as_echo "$CC" >&6; }
4518 else
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4520 $as_echo "no" >&6; }
4521 fi
4522
4523
4524 fi
4525 if test -z "$CC"; then
4526 if test -n "$ac_tool_prefix"; then
4527 for ac_prog in cl.exe
4528 do
4529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4530 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4532 $as_echo_n "checking for $ac_word... " >&6; }
4533 if ${ac_cv_prog_CC+:} false; then :
4534 $as_echo_n "(cached) " >&6
4535 else
4536 if test -n "$CC"; then
4537 ac_cv_prog_CC="$CC" # Let the user override the test.
4538 else
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH
4541 do
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4546 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 break 2
4549 fi
4550 done
4551 done
4552 IFS=$as_save_IFS
4553
4554 fi
4555 fi
4556 CC=$ac_cv_prog_CC
4557 if test -n "$CC"; then
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4559 $as_echo "$CC" >&6; }
4560 else
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4562 $as_echo "no" >&6; }
4563 fi
4564
4565
4566 test -n "$CC" && break
4567 done
4568 fi
4569 if test -z "$CC"; then
4570 ac_ct_CC=$CC
4571 for ac_prog in cl.exe
4572 do
4573 # Extract the first word of "$ac_prog", so it can be a program name with args.
4574 set dummy $ac_prog; ac_word=$2
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576 $as_echo_n "checking for $ac_word... " >&6; }
4577 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 if test -n "$ac_ct_CC"; then
4581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4582 else
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH
4585 do
4586 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=.
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4590 ac_cv_prog_ac_ct_CC="$ac_prog"
4591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 break 2
4593 fi
4594 done
4595 done
4596 IFS=$as_save_IFS
4597
4598 fi
4599 fi
4600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4601 if test -n "$ac_ct_CC"; then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4603 $as_echo "$ac_ct_CC" >&6; }
4604 else
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606 $as_echo "no" >&6; }
4607 fi
4608
4609
4610 test -n "$ac_ct_CC" && break
4611 done
4612
4613 if test "x$ac_ct_CC" = x; then
4614 CC=""
4615 else
4616 case $cross_compiling:$ac_tool_warned in
4617 yes:)
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4620 ac_tool_warned=yes ;;
4621 esac
4622 CC=$ac_ct_CC
4623 fi
4624 fi
4625
4626 fi
4627
4628
4629 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4631 as_fn_error $? "no acceptable C compiler found in \$PATH
4632 See \`config.log' for more details" "$LINENO" 5; }
4633
4634 # Provide some information about the compiler.
4635 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4636 set X $ac_compile
4637 ac_compiler=$2
4638 for ac_option in --version -v -V -qversion; do
4639 { { ac_try="$ac_compiler $ac_option >&5"
4640 case "(($ac_try" in
4641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642 *) ac_try_echo=$ac_try;;
4643 esac
4644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4645 $as_echo "$ac_try_echo"; } >&5
4646 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4647 ac_status=$?
4648 if test -s conftest.err; then
4649 sed '10a\
4650 ... rest of stderr output deleted ...
4651 10q' conftest.err >conftest.er1
4652 cat conftest.er1 >&5
4653 fi
4654 rm -f conftest.er1 conftest.err
4655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4656 test $ac_status = 0; }
4657 done
4658
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4660 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4661 if ${ac_cv_c_compiler_gnu+:} false; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666
4667 int
4668 main ()
4669 {
4670 #ifndef __GNUC__
4671 choke me
4672 #endif
4673
4674 ;
4675 return 0;
4676 }
4677 _ACEOF
4678 if ac_fn_c_try_compile "$LINENO"; then :
4679 ac_compiler_gnu=yes
4680 else
4681 ac_compiler_gnu=no
4682 fi
4683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4685
4686 fi
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4688 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4689 if test $ac_compiler_gnu = yes; then
4690 GCC=yes
4691 else
4692 GCC=
4693 fi
4694 ac_test_CFLAGS=${CFLAGS+set}
4695 ac_save_CFLAGS=$CFLAGS
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4697 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4698 if ${ac_cv_prog_cc_g+:} false; then :
4699 $as_echo_n "(cached) " >&6
4700 else
4701 ac_save_c_werror_flag=$ac_c_werror_flag
4702 ac_c_werror_flag=yes
4703 ac_cv_prog_cc_g=no
4704 CFLAGS="-g"
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4707
4708 int
4709 main ()
4710 {
4711
4712 ;
4713 return 0;
4714 }
4715 _ACEOF
4716 if ac_fn_c_try_compile "$LINENO"; then :
4717 ac_cv_prog_cc_g=yes
4718 else
4719 CFLAGS=""
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4722
4723 int
4724 main ()
4725 {
4726
4727 ;
4728 return 0;
4729 }
4730 _ACEOF
4731 if ac_fn_c_try_compile "$LINENO"; then :
4732
4733 else
4734 ac_c_werror_flag=$ac_save_c_werror_flag
4735 CFLAGS="-g"
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4738
4739 int
4740 main ()
4741 {
4742
4743 ;
4744 return 0;
4745 }
4746 _ACEOF
4747 if ac_fn_c_try_compile "$LINENO"; then :
4748 ac_cv_prog_cc_g=yes
4749 fi
4750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4751 fi
4752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 fi
4754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755 ac_c_werror_flag=$ac_save_c_werror_flag
4756 fi
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4758 $as_echo "$ac_cv_prog_cc_g" >&6; }
4759 if test "$ac_test_CFLAGS" = set; then
4760 CFLAGS=$ac_save_CFLAGS
4761 elif test $ac_cv_prog_cc_g = yes; then
4762 if test "$GCC" = yes; then
4763 CFLAGS="-g -O2"
4764 else
4765 CFLAGS="-g"
4766 fi
4767 else
4768 if test "$GCC" = yes; then
4769 CFLAGS="-O2"
4770 else
4771 CFLAGS=
4772 fi
4773 fi
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4775 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4776 if ${ac_cv_prog_cc_c89+:} false; then :
4777 $as_echo_n "(cached) " >&6
4778 else
4779 ac_cv_prog_cc_c89=no
4780 ac_save_CC=$CC
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4783 #include <stdarg.h>
4784 #include <stdio.h>
4785 struct stat;
4786 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4787 struct buf { int x; };
4788 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4789 static char *e (p, i)
4790 char **p;
4791 int i;
4792 {
4793 return p[i];
4794 }
4795 static char *f (char * (*g) (char **, int), char **p, ...)
4796 {
4797 char *s;
4798 va_list v;
4799 va_start (v,p);
4800 s = g (p, va_arg (v,int));
4801 va_end (v);
4802 return s;
4803 }
4804
4805 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4806 function prototypes and stuff, but not '\xHH' hex character constants.
4807 These don't provoke an error unfortunately, instead are silently treated
4808 as 'x'. The following induces an error, until -std is added to get
4809 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4810 array size at least. It's necessary to write '\x00'==0 to get something
4811 that's true only with -std. */
4812 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4813
4814 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4815 inside strings and character constants. */
4816 #define FOO(x) 'x'
4817 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4818
4819 int test (int i, double x);
4820 struct s1 {int (*f) (int a);};
4821 struct s2 {int (*f) (double a);};
4822 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4823 int argc;
4824 char **argv;
4825 int
4826 main ()
4827 {
4828 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4829 ;
4830 return 0;
4831 }
4832 _ACEOF
4833 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4834 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4835 do
4836 CC="$ac_save_CC $ac_arg"
4837 if ac_fn_c_try_compile "$LINENO"; then :
4838 ac_cv_prog_cc_c89=$ac_arg
4839 fi
4840 rm -f core conftest.err conftest.$ac_objext
4841 test "x$ac_cv_prog_cc_c89" != "xno" && break
4842 done
4843 rm -f conftest.$ac_ext
4844 CC=$ac_save_CC
4845
4846 fi
4847 # AC_CACHE_VAL
4848 case "x$ac_cv_prog_cc_c89" in
4849 x)
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4851 $as_echo "none needed" >&6; } ;;
4852 xno)
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4854 $as_echo "unsupported" >&6; } ;;
4855 *)
4856 CC="$CC $ac_cv_prog_cc_c89"
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4858 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4859 esac
4860 if test "x$ac_cv_prog_cc_c89" != xno; then :
4861
4862 fi
4863
4864 ac_ext=c
4865 ac_cpp='$CPP $CPPFLAGS'
4866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4869
4870 depcc="$CC" am_compiler_list=
4871
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4873 $as_echo_n "checking dependency style of $depcc... " >&6; }
4874 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4875 $as_echo_n "(cached) " >&6
4876 else
4877 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4878 # We make a subdir and do the tests there. Otherwise we can end up
4879 # making bogus files that we don't know about and never remove. For
4880 # instance it was reported that on HP-UX the gcc test will end up
4881 # making a dummy file named `D' -- because `-MD' means `put the output
4882 # in D'.
4883 mkdir conftest.dir
4884 # Copy depcomp to subdir because otherwise we won't find it if we're
4885 # using a relative directory.
4886 cp "$am_depcomp" conftest.dir
4887 cd conftest.dir
4888 # We will build objects and dependencies in a subdirectory because
4889 # it helps to detect inapplicable dependency modes. For instance
4890 # both Tru64's cc and ICC support -MD to output dependencies as a
4891 # side effect of compilation, but ICC will put the dependencies in
4892 # the current directory while Tru64 will put them in the object
4893 # directory.
4894 mkdir sub
4895
4896 am_cv_CC_dependencies_compiler_type=none
4897 if test "$am_compiler_list" = ""; then
4898 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4899 fi
4900 for depmode in $am_compiler_list; do
4901 # Setup a source with many dependencies, because some compilers
4902 # like to wrap large dependency lists on column 80 (with \), and
4903 # we should not choose a depcomp mode which is confused by this.
4904 #
4905 # We need to recreate these files for each test, as the compiler may
4906 # overwrite some of them when testing with obscure command lines.
4907 # This happens at least with the AIX C compiler.
4908 : > sub/conftest.c
4909 for i in 1 2 3 4 5 6; do
4910 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4911 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4912 # Solaris 8's {/usr,}/bin/sh.
4913 touch sub/conftst$i.h
4914 done
4915 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4916
4917 case $depmode in
4918 nosideeffect)
4919 # after this tag, mechanisms are not by side-effect, so they'll
4920 # only be used when explicitly requested
4921 if test "x$enable_dependency_tracking" = xyes; then
4922 continue
4923 else
4924 break
4925 fi
4926 ;;
4927 none) break ;;
4928 esac
4929 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4930 # mode. It turns out that the SunPro C++ compiler does not properly
4931 # handle `-M -o', and we need to detect this.
4932 if depmode=$depmode \
4933 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4934 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4935 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4936 >/dev/null 2>conftest.err &&
4937 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4938 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4939 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4940 # icc doesn't choke on unknown options, it will just issue warnings
4941 # or remarks (even with -Werror). So we grep stderr for any message
4942 # that says an option was ignored or not supported.
4943 # When given -MP, icc 7.0 and 7.1 complain thusly:
4944 # icc: Command line warning: ignoring option '-M'; no argument required
4945 # The diagnosis changed in icc 8.0:
4946 # icc: Command line remark: option '-MP' not supported
4947 if (grep 'ignoring option' conftest.err ||
4948 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4949 am_cv_CC_dependencies_compiler_type=$depmode
4950 break
4951 fi
4952 fi
4953 done
4954
4955 cd ..
4956 rm -rf conftest.dir
4957 else
4958 am_cv_CC_dependencies_compiler_type=none
4959 fi
4960
4961 fi
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4963 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4964 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4965
4966
4967
4968 if
4969 test "x$enable_dependency_tracking" != xno \
4970 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4971 am__fastdepCC_TRUE=
4972 am__fastdepCC_FALSE='#'
4973 else
4974 am__fastdepCC_TRUE='#'
4975 am__fastdepCC_FALSE=
4976 fi
4977
4978
4979
4980 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
4981
4982 ac_ext=c
4983 ac_cpp='$CPP $CPPFLAGS'
4984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4988 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4989 # On Suns, sometimes $CPP names a directory.
4990 if test -n "$CPP" && test -d "$CPP"; then
4991 CPP=
4992 fi
4993 if test -z "$CPP"; then
4994 if ${ac_cv_prog_CPP+:} false; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 # Double quotes because CPP needs to be expanded
4998 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4999 do
5000 ac_preproc_ok=false
5001 for ac_c_preproc_warn_flag in '' yes
5002 do
5003 # Use a header file that comes with gcc, so configuring glibc
5004 # with a fresh cross-compiler works.
5005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5006 # <limits.h> exists even on freestanding compilers.
5007 # On the NeXT, cc -E runs the code through the compiler's parser,
5008 # not just through cpp. "Syntax error" is here to catch this case.
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5011 @%:@ifdef __STDC__
5012 @%:@ include <limits.h>
5013 @%:@else
5014 @%:@ include <assert.h>
5015 @%:@endif
5016 Syntax error
5017 _ACEOF
5018 if ac_fn_c_try_cpp "$LINENO"; then :
5019
5020 else
5021 # Broken: fails on valid input.
5022 continue
5023 fi
5024 rm -f conftest.err conftest.i conftest.$ac_ext
5025
5026 # OK, works on sane cases. Now check whether nonexistent headers
5027 # can be detected and how.
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5030 @%:@include <ac_nonexistent.h>
5031 _ACEOF
5032 if ac_fn_c_try_cpp "$LINENO"; then :
5033 # Broken: success on invalid input.
5034 continue
5035 else
5036 # Passes both tests.
5037 ac_preproc_ok=:
5038 break
5039 fi
5040 rm -f conftest.err conftest.i conftest.$ac_ext
5041
5042 done
5043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5044 rm -f conftest.i conftest.err conftest.$ac_ext
5045 if $ac_preproc_ok; then :
5046 break
5047 fi
5048
5049 done
5050 ac_cv_prog_CPP=$CPP
5051
5052 fi
5053 CPP=$ac_cv_prog_CPP
5054 else
5055 ac_cv_prog_CPP=$CPP
5056 fi
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5058 $as_echo "$CPP" >&6; }
5059 ac_preproc_ok=false
5060 for ac_c_preproc_warn_flag in '' yes
5061 do
5062 # Use a header file that comes with gcc, so configuring glibc
5063 # with a fresh cross-compiler works.
5064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5065 # <limits.h> exists even on freestanding compilers.
5066 # On the NeXT, cc -E runs the code through the compiler's parser,
5067 # not just through cpp. "Syntax error" is here to catch this case.
5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5070 @%:@ifdef __STDC__
5071 @%:@ include <limits.h>
5072 @%:@else
5073 @%:@ include <assert.h>
5074 @%:@endif
5075 Syntax error
5076 _ACEOF
5077 if ac_fn_c_try_cpp "$LINENO"; then :
5078
5079 else
5080 # Broken: fails on valid input.
5081 continue
5082 fi
5083 rm -f conftest.err conftest.i conftest.$ac_ext
5084
5085 # OK, works on sane cases. Now check whether nonexistent headers
5086 # can be detected and how.
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5089 @%:@include <ac_nonexistent.h>
5090 _ACEOF
5091 if ac_fn_c_try_cpp "$LINENO"; then :
5092 # Broken: success on invalid input.
5093 continue
5094 else
5095 # Passes both tests.
5096 ac_preproc_ok=:
5097 break
5098 fi
5099 rm -f conftest.err conftest.i conftest.$ac_ext
5100
5101 done
5102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5103 rm -f conftest.i conftest.err conftest.$ac_ext
5104 if $ac_preproc_ok; then :
5105
5106 else
5107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5109 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5110 See \`config.log' for more details" "$LINENO" 5; }
5111 fi
5112
5113 ac_ext=c
5114 ac_cpp='$CPP $CPPFLAGS'
5115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5118
5119
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5121 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5122 if ${ac_cv_path_GREP+:} false; then :
5123 $as_echo_n "(cached) " >&6
5124 else
5125 if test -z "$GREP"; then
5126 ac_path_GREP_found=false
5127 # Loop through the user's path and test for each of PROGNAME-LIST
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5130 do
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5133 for ac_prog in grep ggrep; do
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5136 as_fn_executable_p "$ac_path_GREP" || continue
5137 # Check for GNU ac_path_GREP and select it if it is found.
5138 # Check for GNU $ac_path_GREP
5139 case `"$ac_path_GREP" --version 2>&1` in
5140 *GNU*)
5141 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5142 *)
5143 ac_count=0
5144 $as_echo_n 0123456789 >"conftest.in"
5145 while :
5146 do
5147 cat "conftest.in" "conftest.in" >"conftest.tmp"
5148 mv "conftest.tmp" "conftest.in"
5149 cp "conftest.in" "conftest.nl"
5150 $as_echo 'GREP' >> "conftest.nl"
5151 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5152 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5153 as_fn_arith $ac_count + 1 && ac_count=$as_val
5154 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5155 # Best one so far, save it but keep looking for a better one
5156 ac_cv_path_GREP="$ac_path_GREP"
5157 ac_path_GREP_max=$ac_count
5158 fi
5159 # 10*(2^10) chars as input seems more than enough
5160 test $ac_count -gt 10 && break
5161 done
5162 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5163 esac
5164
5165 $ac_path_GREP_found && break 3
5166 done
5167 done
5168 done
5169 IFS=$as_save_IFS
5170 if test -z "$ac_cv_path_GREP"; then
5171 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5172 fi
5173 else
5174 ac_cv_path_GREP=$GREP
5175 fi
5176
5177 fi
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5179 $as_echo "$ac_cv_path_GREP" >&6; }
5180 GREP="$ac_cv_path_GREP"
5181
5182
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5184 $as_echo_n "checking for egrep... " >&6; }
5185 if ${ac_cv_path_EGREP+:} false; then :
5186 $as_echo_n "(cached) " >&6
5187 else
5188 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5189 then ac_cv_path_EGREP="$GREP -E"
5190 else
5191 if test -z "$EGREP"; then
5192 ac_path_EGREP_found=false
5193 # Loop through the user's path and test for each of PROGNAME-LIST
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5196 do
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_prog in egrep; do
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5202 as_fn_executable_p "$ac_path_EGREP" || continue
5203 # Check for GNU ac_path_EGREP and select it if it is found.
5204 # Check for GNU $ac_path_EGREP
5205 case `"$ac_path_EGREP" --version 2>&1` in
5206 *GNU*)
5207 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5208 *)
5209 ac_count=0
5210 $as_echo_n 0123456789 >"conftest.in"
5211 while :
5212 do
5213 cat "conftest.in" "conftest.in" >"conftest.tmp"
5214 mv "conftest.tmp" "conftest.in"
5215 cp "conftest.in" "conftest.nl"
5216 $as_echo 'EGREP' >> "conftest.nl"
5217 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5219 as_fn_arith $ac_count + 1 && ac_count=$as_val
5220 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5221 # Best one so far, save it but keep looking for a better one
5222 ac_cv_path_EGREP="$ac_path_EGREP"
5223 ac_path_EGREP_max=$ac_count
5224 fi
5225 # 10*(2^10) chars as input seems more than enough
5226 test $ac_count -gt 10 && break
5227 done
5228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5229 esac
5230
5231 $ac_path_EGREP_found && break 3
5232 done
5233 done
5234 done
5235 IFS=$as_save_IFS
5236 if test -z "$ac_cv_path_EGREP"; then
5237 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5238 fi
5239 else
5240 ac_cv_path_EGREP=$EGREP
5241 fi
5242
5243 fi
5244 fi
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5246 $as_echo "$ac_cv_path_EGREP" >&6; }
5247 EGREP="$ac_cv_path_EGREP"
5248
5249
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5251 $as_echo_n "checking for ANSI C header files... " >&6; }
5252 if ${ac_cv_header_stdc+:} false; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5257 #include <stdlib.h>
5258 #include <stdarg.h>
5259 #include <string.h>
5260 #include <float.h>
5261
5262 int
5263 main ()
5264 {
5265
5266 ;
5267 return 0;
5268 }
5269 _ACEOF
5270 if ac_fn_c_try_compile "$LINENO"; then :
5271 ac_cv_header_stdc=yes
5272 else
5273 ac_cv_header_stdc=no
5274 fi
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276
5277 if test $ac_cv_header_stdc = yes; then
5278 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h. */
5281 #include <string.h>
5282
5283 _ACEOF
5284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5285 $EGREP "memchr" >/dev/null 2>&1; then :
5286
5287 else
5288 ac_cv_header_stdc=no
5289 fi
5290 rm -f conftest*
5291
5292 fi
5293
5294 if test $ac_cv_header_stdc = yes; then
5295 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5298 #include <stdlib.h>
5299
5300 _ACEOF
5301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5302 $EGREP "free" >/dev/null 2>&1; then :
5303
5304 else
5305 ac_cv_header_stdc=no
5306 fi
5307 rm -f conftest*
5308
5309 fi
5310
5311 if test $ac_cv_header_stdc = yes; then
5312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5313 if test "$cross_compiling" = yes; then :
5314 :
5315 else
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5318 #include <ctype.h>
5319 #include <stdlib.h>
5320 #if ((' ' & 0x0FF) == 0x020)
5321 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5322 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5323 #else
5324 # define ISLOWER(c) \
5325 (('a' <= (c) && (c) <= 'i') \
5326 || ('j' <= (c) && (c) <= 'r') \
5327 || ('s' <= (c) && (c) <= 'z'))
5328 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5329 #endif
5330
5331 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5332 int
5333 main ()
5334 {
5335 int i;
5336 for (i = 0; i < 256; i++)
5337 if (XOR (islower (i), ISLOWER (i))
5338 || toupper (i) != TOUPPER (i))
5339 return 2;
5340 return 0;
5341 }
5342 _ACEOF
5343 if ac_fn_c_try_run "$LINENO"; then :
5344
5345 else
5346 ac_cv_header_stdc=no
5347 fi
5348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5349 conftest.$ac_objext conftest.beam conftest.$ac_ext
5350 fi
5351
5352 fi
5353 fi
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5355 $as_echo "$ac_cv_header_stdc" >&6; }
5356 if test $ac_cv_header_stdc = yes; then
5357
5358 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
5359
5360 fi
5361
5362 case `pwd` in
5363 *\ * | *\ *)
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5365 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5366 esac
5367
5368
5369
5370 macro_version='2.4.2'
5371 macro_revision='1.3337'
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385 ltmain="$ac_aux_dir/ltmain.sh"
5386
5387 # Make sure we can run config.sub.
5388 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5389 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5390
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5392 $as_echo_n "checking build system type... " >&6; }
5393 if ${ac_cv_build+:} false; then :
5394 $as_echo_n "(cached) " >&6
5395 else
5396 ac_build_alias=$build_alias
5397 test "x$ac_build_alias" = x &&
5398 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5399 test "x$ac_build_alias" = x &&
5400 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5401 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5402 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5403
5404 fi
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5406 $as_echo "$ac_cv_build" >&6; }
5407 case $ac_cv_build in
5408 *-*-*) ;;
5409 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5410 esac
5411 build=$ac_cv_build
5412 ac_save_IFS=$IFS; IFS='-'
5413 set x $ac_cv_build
5414 shift
5415 build_cpu=$1
5416 build_vendor=$2
5417 shift; shift
5418 # Remember, the first character of IFS is used to create $*,
5419 # except with old shells:
5420 build_os=$*
5421 IFS=$ac_save_IFS
5422 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5423
5424
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5426 $as_echo_n "checking host system type... " >&6; }
5427 if ${ac_cv_host+:} false; then :
5428 $as_echo_n "(cached) " >&6
5429 else
5430 if test "x$host_alias" = x; then
5431 ac_cv_host=$ac_cv_build
5432 else
5433 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5434 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5435 fi
5436
5437 fi
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5439 $as_echo "$ac_cv_host" >&6; }
5440 case $ac_cv_host in
5441 *-*-*) ;;
5442 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5443 esac
5444 host=$ac_cv_host
5445 ac_save_IFS=$IFS; IFS='-'
5446 set x $ac_cv_host
5447 shift
5448 host_cpu=$1
5449 host_vendor=$2
5450 shift; shift
5451 # Remember, the first character of IFS is used to create $*,
5452 # except with old shells:
5453 host_os=$*
5454 IFS=$ac_save_IFS
5455 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5456
5457
5458 # Backslashify metacharacters that are still active within
5459 # double-quoted strings.
5460 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5461
5462 # Same as above, but do not quote variable references.
5463 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5464
5465 # Sed substitution to delay expansion of an escaped shell variable in a
5466 # double_quote_subst'ed string.
5467 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5468
5469 # Sed substitution to delay expansion of an escaped single quote.
5470 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5471
5472 # Sed substitution to avoid accidental globbing in evaled expressions
5473 no_glob_subst='s/\*/\\\*/g'
5474
5475 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5476 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5477 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5478
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5480 $as_echo_n "checking how to print strings... " >&6; }
5481 # Test print first, because it will be a builtin if present.
5482 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5483 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5484 ECHO='print -r --'
5485 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5486 ECHO='printf %s\n'
5487 else
5488 # Use this function as a fallback that always works.
5489 func_fallback_echo ()
5490 {
5491 eval 'cat <<_LTECHO_EOF
5492 $1
5493 _LTECHO_EOF'
5494 }
5495 ECHO='func_fallback_echo'
5496 fi
5497
5498 # func_echo_all arg...
5499 # Invoke $ECHO with all args, space-separated.
5500 func_echo_all ()
5501 {
5502 $ECHO ""
5503 }
5504
5505 case "$ECHO" in
5506 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5507 $as_echo "printf" >&6; } ;;
5508 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5509 $as_echo "print -r" >&6; } ;;
5510 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5511 $as_echo "cat" >&6; } ;;
5512 esac
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5528 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5529 if ${ac_cv_path_SED+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5533 for ac_i in 1 2 3 4 5 6 7; do
5534 ac_script="$ac_script$as_nl$ac_script"
5535 done
5536 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5537 { ac_script=; unset ac_script;}
5538 if test -z "$SED"; then
5539 ac_path_SED_found=false
5540 # Loop through the user's path and test for each of PROGNAME-LIST
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5543 do
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_prog in sed gsed; do
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5549 as_fn_executable_p "$ac_path_SED" || continue
5550 # Check for GNU ac_path_SED and select it if it is found.
5551 # Check for GNU $ac_path_SED
5552 case `"$ac_path_SED" --version 2>&1` in
5553 *GNU*)
5554 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5555 *)
5556 ac_count=0
5557 $as_echo_n 0123456789 >"conftest.in"
5558 while :
5559 do
5560 cat "conftest.in" "conftest.in" >"conftest.tmp"
5561 mv "conftest.tmp" "conftest.in"
5562 cp "conftest.in" "conftest.nl"
5563 $as_echo '' >> "conftest.nl"
5564 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5565 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5566 as_fn_arith $ac_count + 1 && ac_count=$as_val
5567 if test $ac_count -gt ${ac_path_SED_max-0}; then
5568 # Best one so far, save it but keep looking for a better one
5569 ac_cv_path_SED="$ac_path_SED"
5570 ac_path_SED_max=$ac_count
5571 fi
5572 # 10*(2^10) chars as input seems more than enough
5573 test $ac_count -gt 10 && break
5574 done
5575 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5576 esac
5577
5578 $ac_path_SED_found && break 3
5579 done
5580 done
5581 done
5582 IFS=$as_save_IFS
5583 if test -z "$ac_cv_path_SED"; then
5584 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5585 fi
5586 else
5587 ac_cv_path_SED=$SED
5588 fi
5589
5590 fi
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5592 $as_echo "$ac_cv_path_SED" >&6; }
5593 SED="$ac_cv_path_SED"
5594 rm -f conftest.sed
5595
5596 test -z "$SED" && SED=sed
5597 Xsed="$SED -e 1s/^X//"
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5610 $as_echo_n "checking for fgrep... " >&6; }
5611 if ${ac_cv_path_FGREP+:} false; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5615 then ac_cv_path_FGREP="$GREP -F"
5616 else
5617 if test -z "$FGREP"; then
5618 ac_path_FGREP_found=false
5619 # Loop through the user's path and test for each of PROGNAME-LIST
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5622 do
5623 IFS=$as_save_IFS
5624 test -z "$as_dir" && as_dir=.
5625 for ac_prog in fgrep; do
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5628 as_fn_executable_p "$ac_path_FGREP" || continue
5629 # Check for GNU ac_path_FGREP and select it if it is found.
5630 # Check for GNU $ac_path_FGREP
5631 case `"$ac_path_FGREP" --version 2>&1` in
5632 *GNU*)
5633 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5634 *)
5635 ac_count=0
5636 $as_echo_n 0123456789 >"conftest.in"
5637 while :
5638 do
5639 cat "conftest.in" "conftest.in" >"conftest.tmp"
5640 mv "conftest.tmp" "conftest.in"
5641 cp "conftest.in" "conftest.nl"
5642 $as_echo 'FGREP' >> "conftest.nl"
5643 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5644 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5645 as_fn_arith $ac_count + 1 && ac_count=$as_val
5646 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5647 # Best one so far, save it but keep looking for a better one
5648 ac_cv_path_FGREP="$ac_path_FGREP"
5649 ac_path_FGREP_max=$ac_count
5650 fi
5651 # 10*(2^10) chars as input seems more than enough
5652 test $ac_count -gt 10 && break
5653 done
5654 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5655 esac
5656
5657 $ac_path_FGREP_found && break 3
5658 done
5659 done
5660 done
5661 IFS=$as_save_IFS
5662 if test -z "$ac_cv_path_FGREP"; then
5663 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5664 fi
5665 else
5666 ac_cv_path_FGREP=$FGREP
5667 fi
5668
5669 fi
5670 fi
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5672 $as_echo "$ac_cv_path_FGREP" >&6; }
5673 FGREP="$ac_cv_path_FGREP"
5674
5675
5676 test -z "$GREP" && GREP=grep
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696 @%:@ Check whether --with-gnu-ld was given.
5697 if test "${with_gnu_ld+set}" = set; then :
5698 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5699 else
5700 with_gnu_ld=no
5701 fi
5702
5703 ac_prog=ld
5704 if test "$GCC" = yes; then
5705 # Check if gcc -print-prog-name=ld gives a path.
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5707 $as_echo_n "checking for ld used by $CC... " >&6; }
5708 case $host in
5709 *-*-mingw*)
5710 # gcc leaves a trailing carriage return which upsets mingw
5711 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5712 *)
5713 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5714 esac
5715 case $ac_prog in
5716 # Accept absolute paths.
5717 [\\/]* | ?:[\\/]*)
5718 re_direlt='/[^/][^/]*/\.\./'
5719 # Canonicalize the pathname of ld
5720 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5721 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5722 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5723 done
5724 test -z "$LD" && LD="$ac_prog"
5725 ;;
5726 "")
5727 # If it fails, then pretend we aren't using GCC.
5728 ac_prog=ld
5729 ;;
5730 *)
5731 # If it is relative, then search for the first ld in PATH.
5732 with_gnu_ld=unknown
5733 ;;
5734 esac
5735 elif test "$with_gnu_ld" = yes; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5737 $as_echo_n "checking for GNU ld... " >&6; }
5738 else
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5740 $as_echo_n "checking for non-GNU ld... " >&6; }
5741 fi
5742 if ${lt_cv_path_LD+:} false; then :
5743 $as_echo_n "(cached) " >&6
5744 else
5745 if test -z "$LD"; then
5746 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5747 for ac_dir in $PATH; do
5748 IFS="$lt_save_ifs"
5749 test -z "$ac_dir" && ac_dir=.
5750 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5751 lt_cv_path_LD="$ac_dir/$ac_prog"
5752 # Check to see if the program is GNU ld. I'd rather use --version,
5753 # but apparently some variants of GNU ld only accept -v.
5754 # Break only if it was the GNU/non-GNU ld that we prefer.
5755 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5756 *GNU* | *'with BFD'*)
5757 test "$with_gnu_ld" != no && break
5758 ;;
5759 *)
5760 test "$with_gnu_ld" != yes && break
5761 ;;
5762 esac
5763 fi
5764 done
5765 IFS="$lt_save_ifs"
5766 else
5767 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5768 fi
5769 fi
5770
5771 LD="$lt_cv_path_LD"
5772 if test -n "$LD"; then
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5774 $as_echo "$LD" >&6; }
5775 else
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5777 $as_echo "no" >&6; }
5778 fi
5779 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5781 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5782 if ${lt_cv_prog_gnu_ld+:} false; then :
5783 $as_echo_n "(cached) " >&6
5784 else
5785 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5786 case `$LD -v 2>&1 </dev/null` in
5787 *GNU* | *'with BFD'*)
5788 lt_cv_prog_gnu_ld=yes
5789 ;;
5790 *)
5791 lt_cv_prog_gnu_ld=no
5792 ;;
5793 esac
5794 fi
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5796 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5797 with_gnu_ld=$lt_cv_prog_gnu_ld
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5808 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5809 if ${lt_cv_path_NM+:} false; then :
5810 $as_echo_n "(cached) " >&6
5811 else
5812 if test -n "$NM"; then
5813 # Let the user override the test.
5814 lt_cv_path_NM="$NM"
5815 else
5816 lt_nm_to_check="${ac_tool_prefix}nm"
5817 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5818 lt_nm_to_check="$lt_nm_to_check nm"
5819 fi
5820 for lt_tmp_nm in $lt_nm_to_check; do
5821 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5822 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5823 IFS="$lt_save_ifs"
5824 test -z "$ac_dir" && ac_dir=.
5825 tmp_nm="$ac_dir/$lt_tmp_nm"
5826 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5827 # Check to see if the nm accepts a BSD-compat flag.
5828 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5829 # nm: unknown option "B" ignored
5830 # Tru64's nm complains that /dev/null is an invalid object file
5831 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5832 */dev/null* | *'Invalid file or object type'*)
5833 lt_cv_path_NM="$tmp_nm -B"
5834 break
5835 ;;
5836 *)
5837 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5838 */dev/null*)
5839 lt_cv_path_NM="$tmp_nm -p"
5840 break
5841 ;;
5842 *)
5843 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5844 continue # so that we can try to find one that supports BSD flags
5845 ;;
5846 esac
5847 ;;
5848 esac
5849 fi
5850 done
5851 IFS="$lt_save_ifs"
5852 done
5853 : ${lt_cv_path_NM=no}
5854 fi
5855 fi
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5857 $as_echo "$lt_cv_path_NM" >&6; }
5858 if test "$lt_cv_path_NM" != "no"; then
5859 NM="$lt_cv_path_NM"
5860 else
5861 # Didn't find any BSD compatible name lister, look for dumpbin.
5862 if test -n "$DUMPBIN"; then :
5863 # Let the user override the test.
5864 else
5865 if test -n "$ac_tool_prefix"; then
5866 for ac_prog in dumpbin "link -dump"
5867 do
5868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871 $as_echo_n "checking for $ac_word... " >&6; }
5872 if ${ac_cv_prog_DUMPBIN+:} false; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 if test -n "$DUMPBIN"; then
5876 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5877 else
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 for as_dir in $PATH
5880 do
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5885 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 break 2
5888 fi
5889 done
5890 done
5891 IFS=$as_save_IFS
5892
5893 fi
5894 fi
5895 DUMPBIN=$ac_cv_prog_DUMPBIN
5896 if test -n "$DUMPBIN"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5898 $as_echo "$DUMPBIN" >&6; }
5899 else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5902 fi
5903
5904
5905 test -n "$DUMPBIN" && break
5906 done
5907 fi
5908 if test -z "$DUMPBIN"; then
5909 ac_ct_DUMPBIN=$DUMPBIN
5910 for ac_prog in dumpbin "link -dump"
5911 do
5912 # Extract the first word of "$ac_prog", so it can be a program name with args.
5913 set dummy $ac_prog; ac_word=$2
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915 $as_echo_n "checking for $ac_word... " >&6; }
5916 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 if test -n "$ac_ct_DUMPBIN"; then
5920 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 break 2
5932 fi
5933 done
5934 done
5935 IFS=$as_save_IFS
5936
5937 fi
5938 fi
5939 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5940 if test -n "$ac_ct_DUMPBIN"; then
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5942 $as_echo "$ac_ct_DUMPBIN" >&6; }
5943 else
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945 $as_echo "no" >&6; }
5946 fi
5947
5948
5949 test -n "$ac_ct_DUMPBIN" && break
5950 done
5951
5952 if test "x$ac_ct_DUMPBIN" = x; then
5953 DUMPBIN=":"
5954 else
5955 case $cross_compiling:$ac_tool_warned in
5956 yes:)
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5959 ac_tool_warned=yes ;;
5960 esac
5961 DUMPBIN=$ac_ct_DUMPBIN
5962 fi
5963 fi
5964
5965 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5966 *COFF*)
5967 DUMPBIN="$DUMPBIN -symbols"
5968 ;;
5969 *)
5970 DUMPBIN=:
5971 ;;
5972 esac
5973 fi
5974
5975 if test "$DUMPBIN" != ":"; then
5976 NM="$DUMPBIN"
5977 fi
5978 fi
5979 test -z "$NM" && NM=nm
5980
5981
5982
5983
5984
5985
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5987 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5988 if ${lt_cv_nm_interface+:} false; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 lt_cv_nm_interface="BSD nm"
5992 echo "int some_variable = 0;" > conftest.$ac_ext
5993 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5994 (eval "$ac_compile" 2>conftest.err)
5995 cat conftest.err >&5
5996 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5997 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5998 cat conftest.err >&5
5999 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6000 cat conftest.out >&5
6001 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6002 lt_cv_nm_interface="MS dumpbin"
6003 fi
6004 rm -f conftest*
6005 fi
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6007 $as_echo "$lt_cv_nm_interface" >&6; }
6008
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6010 $as_echo_n "checking whether ln -s works... " >&6; }
6011 LN_S=$as_ln_s
6012 if test "$LN_S" = "ln -s"; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6014 $as_echo "yes" >&6; }
6015 else
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6017 $as_echo "no, using $LN_S" >&6; }
6018 fi
6019
6020 # find the maximum length of command line arguments
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6022 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6023 if ${lt_cv_sys_max_cmd_len+:} false; then :
6024 $as_echo_n "(cached) " >&6
6025 else
6026 i=0
6027 teststring="ABCD"
6028
6029 case $build_os in
6030 msdosdjgpp*)
6031 # On DJGPP, this test can blow up pretty badly due to problems in libc
6032 # (any single argument exceeding 2000 bytes causes a buffer overrun
6033 # during glob expansion). Even if it were fixed, the result of this
6034 # check would be larger than it should be.
6035 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6036 ;;
6037
6038 gnu*)
6039 # Under GNU Hurd, this test is not required because there is
6040 # no limit to the length of command line arguments.
6041 # Libtool will interpret -1 as no limit whatsoever
6042 lt_cv_sys_max_cmd_len=-1;
6043 ;;
6044
6045 cygwin* | mingw* | cegcc*)
6046 # On Win9x/ME, this test blows up -- it succeeds, but takes
6047 # about 5 minutes as the teststring grows exponentially.
6048 # Worse, since 9x/ME are not pre-emptively multitasking,
6049 # you end up with a "frozen" computer, even though with patience
6050 # the test eventually succeeds (with a max line length of 256k).
6051 # Instead, let's just punt: use the minimum linelength reported by
6052 # all of the supported platforms: 8192 (on NT/2K/XP).
6053 lt_cv_sys_max_cmd_len=8192;
6054 ;;
6055
6056 mint*)
6057 # On MiNT this can take a long time and run out of memory.
6058 lt_cv_sys_max_cmd_len=8192;
6059 ;;
6060
6061 amigaos*)
6062 # On AmigaOS with pdksh, this test takes hours, literally.
6063 # So we just punt and use a minimum line length of 8192.
6064 lt_cv_sys_max_cmd_len=8192;
6065 ;;
6066
6067 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6068 # This has been around since 386BSD, at least. Likely further.
6069 if test -x /sbin/sysctl; then
6070 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6071 elif test -x /usr/sbin/sysctl; then
6072 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6073 else
6074 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6075 fi
6076 # And add a safety zone
6077 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6078 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6079 ;;
6080
6081 interix*)
6082 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6083 lt_cv_sys_max_cmd_len=196608
6084 ;;
6085
6086 os2*)
6087 # The test takes a long time on OS/2.
6088 lt_cv_sys_max_cmd_len=8192
6089 ;;
6090
6091 osf*)
6092 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6093 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6094 # nice to cause kernel panics so lets avoid the loop below.
6095 # First set a reasonable default.
6096 lt_cv_sys_max_cmd_len=16384
6097 #
6098 if test -x /sbin/sysconfig; then
6099 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6100 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6101 esac
6102 fi
6103 ;;
6104 sco3.2v5*)
6105 lt_cv_sys_max_cmd_len=102400
6106 ;;
6107 sysv5* | sco5v6* | sysv4.2uw2*)
6108 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6109 if test -n "$kargmax"; then
6110 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6111 else
6112 lt_cv_sys_max_cmd_len=32768
6113 fi
6114 ;;
6115 *)
6116 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6117 if test -n "$lt_cv_sys_max_cmd_len" && \
6118 test undefined != "$lt_cv_sys_max_cmd_len"; then
6119 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6120 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6121 else
6122 # Make teststring a little bigger before we do anything with it.
6123 # a 1K string should be a reasonable start.
6124 for i in 1 2 3 4 5 6 7 8 ; do
6125 teststring=$teststring$teststring
6126 done
6127 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6128 # If test is not a shell built-in, we'll probably end up computing a
6129 # maximum length that is only half of the actual maximum length, but
6130 # we can't tell.
6131 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6132 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6133 test $i != 17 # 1/2 MB should be enough
6134 do
6135 i=`expr $i + 1`
6136 teststring=$teststring$teststring
6137 done
6138 # Only check the string length outside the loop.
6139 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6140 teststring=
6141 # Add a significant safety factor because C++ compilers can tack on
6142 # massive amounts of additional arguments before passing them to the
6143 # linker. It appears as though 1/2 is a usable value.
6144 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6145 fi
6146 ;;
6147 esac
6148
6149 fi
6150
6151 if test -n $lt_cv_sys_max_cmd_len ; then
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6153 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6154 else
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6156 $as_echo "none" >&6; }
6157 fi
6158 max_cmd_len=$lt_cv_sys_max_cmd_len
6159
6160
6161
6162
6163
6164
6165 : ${CP="cp -f"}
6166 : ${MV="mv -f"}
6167 : ${RM="rm -f"}
6168
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6170 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6171 # Try some XSI features
6172 xsi_shell=no
6173 ( _lt_dummy="a/b/c"
6174 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6175 = c,a/b,b/c, \
6176 && eval 'test $(( 1 + 1 )) -eq 2 \
6177 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6178 && xsi_shell=yes
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6180 $as_echo "$xsi_shell" >&6; }
6181
6182
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6184 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6185 lt_shell_append=no
6186 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6187 >/dev/null 2>&1 \
6188 && lt_shell_append=yes
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6190 $as_echo "$lt_shell_append" >&6; }
6191
6192
6193 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6194 lt_unset=unset
6195 else
6196 lt_unset=false
6197 fi
6198
6199
6200
6201
6202
6203 # test EBCDIC or ASCII
6204 case `echo X|tr X '\101'` in
6205 A) # ASCII based system
6206 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6207 lt_SP2NL='tr \040 \012'
6208 lt_NL2SP='tr \015\012 \040\040'
6209 ;;
6210 *) # EBCDIC based system
6211 lt_SP2NL='tr \100 \n'
6212 lt_NL2SP='tr \r\n \100\100'
6213 ;;
6214 esac
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6225 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6226 if ${lt_cv_to_host_file_cmd+:} false; then :
6227 $as_echo_n "(cached) " >&6
6228 else
6229 case $host in
6230 *-*-mingw* )
6231 case $build in
6232 *-*-mingw* ) # actually msys
6233 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6234 ;;
6235 *-*-cygwin* )
6236 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6237 ;;
6238 * ) # otherwise, assume *nix
6239 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6240 ;;
6241 esac
6242 ;;
6243 *-*-cygwin* )
6244 case $build in
6245 *-*-mingw* ) # actually msys
6246 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6247 ;;
6248 *-*-cygwin* )
6249 lt_cv_to_host_file_cmd=func_convert_file_noop
6250 ;;
6251 * ) # otherwise, assume *nix
6252 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6253 ;;
6254 esac
6255 ;;
6256 * ) # unhandled hosts (and "normal" native builds)
6257 lt_cv_to_host_file_cmd=func_convert_file_noop
6258 ;;
6259 esac
6260
6261 fi
6262
6263 to_host_file_cmd=$lt_cv_to_host_file_cmd
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6265 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6266
6267
6268
6269
6270
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6272 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6273 if ${lt_cv_to_tool_file_cmd+:} false; then :
6274 $as_echo_n "(cached) " >&6
6275 else
6276 #assume ordinary cross tools, or native build.
6277 lt_cv_to_tool_file_cmd=func_convert_file_noop
6278 case $host in
6279 *-*-mingw* )
6280 case $build in
6281 *-*-mingw* ) # actually msys
6282 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6283 ;;
6284 esac
6285 ;;
6286 esac
6287
6288 fi
6289
6290 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6292 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6293
6294
6295
6296
6297
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6299 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6300 if ${lt_cv_ld_reload_flag+:} false; then :
6301 $as_echo_n "(cached) " >&6
6302 else
6303 lt_cv_ld_reload_flag='-r'
6304 fi
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6306 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6307 reload_flag=$lt_cv_ld_reload_flag
6308 case $reload_flag in
6309 "" | " "*) ;;
6310 *) reload_flag=" $reload_flag" ;;
6311 esac
6312 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6313 case $host_os in
6314 cygwin* | mingw* | pw32* | cegcc*)
6315 if test "$GCC" != yes; then
6316 reload_cmds=false
6317 fi
6318 ;;
6319 darwin*)
6320 if test "$GCC" = yes; then
6321 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6322 else
6323 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6324 fi
6325 ;;
6326 esac
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336 if test -n "$ac_tool_prefix"; then
6337 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6338 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340 $as_echo_n "checking for $ac_word... " >&6; }
6341 if ${ac_cv_prog_OBJDUMP+:} false; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 if test -n "$OBJDUMP"; then
6345 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6346 else
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH
6349 do
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6354 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 break 2
6357 fi
6358 done
6359 done
6360 IFS=$as_save_IFS
6361
6362 fi
6363 fi
6364 OBJDUMP=$ac_cv_prog_OBJDUMP
6365 if test -n "$OBJDUMP"; then
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6367 $as_echo "$OBJDUMP" >&6; }
6368 else
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6371 fi
6372
6373
6374 fi
6375 if test -z "$ac_cv_prog_OBJDUMP"; then
6376 ac_ct_OBJDUMP=$OBJDUMP
6377 # Extract the first word of "objdump", so it can be a program name with args.
6378 set dummy objdump; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6382 $as_echo_n "(cached) " >&6
6383 else
6384 if test -n "$ac_ct_OBJDUMP"; then
6385 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6389 do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6397 fi
6398 done
6399 done
6400 IFS=$as_save_IFS
6401
6402 fi
6403 fi
6404 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6405 if test -n "$ac_ct_OBJDUMP"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6407 $as_echo "$ac_ct_OBJDUMP" >&6; }
6408 else
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6411 fi
6412
6413 if test "x$ac_ct_OBJDUMP" = x; then
6414 OBJDUMP="false"
6415 else
6416 case $cross_compiling:$ac_tool_warned in
6417 yes:)
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6420 ac_tool_warned=yes ;;
6421 esac
6422 OBJDUMP=$ac_ct_OBJDUMP
6423 fi
6424 else
6425 OBJDUMP="$ac_cv_prog_OBJDUMP"
6426 fi
6427
6428 test -z "$OBJDUMP" && OBJDUMP=objdump
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6439 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6440 if ${lt_cv_deplibs_check_method+:} false; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 lt_cv_file_magic_cmd='$MAGIC_CMD'
6444 lt_cv_file_magic_test_file=
6445 lt_cv_deplibs_check_method='unknown'
6446 # Need to set the preceding variable on all platforms that support
6447 # interlibrary dependencies.
6448 # 'none' -- dependencies not supported.
6449 # `unknown' -- same as none, but documents that we really don't know.
6450 # 'pass_all' -- all dependencies passed with no checks.
6451 # 'test_compile' -- check by making test program.
6452 # 'file_magic [[regex]]' -- check by looking for files in library path
6453 # which responds to the $file_magic_cmd with a given extended regex.
6454 # If you have `file' or equivalent on your system and you're not sure
6455 # whether `pass_all' will *always* work, you probably want this one.
6456
6457 case $host_os in
6458 aix[4-9]*)
6459 lt_cv_deplibs_check_method=pass_all
6460 ;;
6461
6462 beos*)
6463 lt_cv_deplibs_check_method=pass_all
6464 ;;
6465
6466 bsdi[45]*)
6467 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6468 lt_cv_file_magic_cmd='/usr/bin/file -L'
6469 lt_cv_file_magic_test_file=/shlib/libc.so
6470 ;;
6471
6472 cygwin*)
6473 # func_win32_libid is a shell function defined in ltmain.sh
6474 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6475 lt_cv_file_magic_cmd='func_win32_libid'
6476 ;;
6477
6478 mingw* | pw32*)
6479 # Base MSYS/MinGW do not provide the 'file' command needed by
6480 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6481 # unless we find 'file', for example because we are cross-compiling.
6482 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6483 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6484 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6485 lt_cv_file_magic_cmd='func_win32_libid'
6486 else
6487 # Keep this pattern in sync with the one in func_win32_libid.
6488 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6489 lt_cv_file_magic_cmd='$OBJDUMP -f'
6490 fi
6491 ;;
6492
6493 cegcc*)
6494 # use the weaker test based on 'objdump'. See mingw*.
6495 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6496 lt_cv_file_magic_cmd='$OBJDUMP -f'
6497 ;;
6498
6499 darwin* | rhapsody*)
6500 lt_cv_deplibs_check_method=pass_all
6501 ;;
6502
6503 freebsd* | dragonfly*)
6504 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6505 case $host_cpu in
6506 i*86 )
6507 # Not sure whether the presence of OpenBSD here was a mistake.
6508 # Let's accept both of them until this is cleared up.
6509 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6510 lt_cv_file_magic_cmd=/usr/bin/file
6511 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6512 ;;
6513 esac
6514 else
6515 lt_cv_deplibs_check_method=pass_all
6516 fi
6517 ;;
6518
6519 haiku*)
6520 lt_cv_deplibs_check_method=pass_all
6521 ;;
6522
6523 hpux10.20* | hpux11*)
6524 lt_cv_file_magic_cmd=/usr/bin/file
6525 case $host_cpu in
6526 ia64*)
6527 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6528 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6529 ;;
6530 hppa*64*)
6531 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6532 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6533 ;;
6534 *)
6535 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6536 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6537 ;;
6538 esac
6539 ;;
6540
6541 interix[3-9]*)
6542 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6543 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6544 ;;
6545
6546 irix5* | irix6* | nonstopux*)
6547 case $LD in
6548 *-32|*"-32 ") libmagic=32-bit;;
6549 *-n32|*"-n32 ") libmagic=N32;;
6550 *-64|*"-64 ") libmagic=64-bit;;
6551 *) libmagic=never-match;;
6552 esac
6553 lt_cv_deplibs_check_method=pass_all
6554 ;;
6555
6556 # This must be glibc/ELF.
6557 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6558 lt_cv_deplibs_check_method=pass_all
6559 ;;
6560
6561 netbsd* | netbsdelf*-gnu)
6562 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6563 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6564 else
6565 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6566 fi
6567 ;;
6568
6569 newos6*)
6570 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6571 lt_cv_file_magic_cmd=/usr/bin/file
6572 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6573 ;;
6574
6575 *nto* | *qnx*)
6576 lt_cv_deplibs_check_method=pass_all
6577 ;;
6578
6579 openbsd*)
6580 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6581 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6582 else
6583 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6584 fi
6585 ;;
6586
6587 osf3* | osf4* | osf5*)
6588 lt_cv_deplibs_check_method=pass_all
6589 ;;
6590
6591 rdos*)
6592 lt_cv_deplibs_check_method=pass_all
6593 ;;
6594
6595 solaris*)
6596 lt_cv_deplibs_check_method=pass_all
6597 ;;
6598
6599 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6600 lt_cv_deplibs_check_method=pass_all
6601 ;;
6602
6603 sysv4 | sysv4.3*)
6604 case $host_vendor in
6605 motorola)
6606 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]'
6607 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6608 ;;
6609 ncr)
6610 lt_cv_deplibs_check_method=pass_all
6611 ;;
6612 sequent)
6613 lt_cv_file_magic_cmd='/bin/file'
6614 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6615 ;;
6616 sni)
6617 lt_cv_file_magic_cmd='/bin/file'
6618 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6619 lt_cv_file_magic_test_file=/lib/libc.so
6620 ;;
6621 siemens)
6622 lt_cv_deplibs_check_method=pass_all
6623 ;;
6624 pc)
6625 lt_cv_deplibs_check_method=pass_all
6626 ;;
6627 esac
6628 ;;
6629
6630 tpf*)
6631 lt_cv_deplibs_check_method=pass_all
6632 ;;
6633 esac
6634
6635 fi
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6637 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6638
6639 file_magic_glob=
6640 want_nocaseglob=no
6641 if test "$build" = "$host"; then
6642 case $host_os in
6643 mingw* | pw32*)
6644 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6645 want_nocaseglob=yes
6646 else
6647 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6648 fi
6649 ;;
6650 esac
6651 fi
6652
6653 file_magic_cmd=$lt_cv_file_magic_cmd
6654 deplibs_check_method=$lt_cv_deplibs_check_method
6655 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678 if test -n "$ac_tool_prefix"; then
6679 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6680 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6682 $as_echo_n "checking for $ac_word... " >&6; }
6683 if ${ac_cv_prog_DLLTOOL+:} false; then :
6684 $as_echo_n "(cached) " >&6
6685 else
6686 if test -n "$DLLTOOL"; then
6687 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6688 else
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6691 do
6692 IFS=$as_save_IFS
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6696 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 break 2
6699 fi
6700 done
6701 done
6702 IFS=$as_save_IFS
6703
6704 fi
6705 fi
6706 DLLTOOL=$ac_cv_prog_DLLTOOL
6707 if test -n "$DLLTOOL"; then
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6709 $as_echo "$DLLTOOL" >&6; }
6710 else
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712 $as_echo "no" >&6; }
6713 fi
6714
6715
6716 fi
6717 if test -z "$ac_cv_prog_DLLTOOL"; then
6718 ac_ct_DLLTOOL=$DLLTOOL
6719 # Extract the first word of "dlltool", so it can be a program name with args.
6720 set dummy dlltool; ac_word=$2
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722 $as_echo_n "checking for $ac_word... " >&6; }
6723 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6724 $as_echo_n "(cached) " >&6
6725 else
6726 if test -n "$ac_ct_DLLTOOL"; then
6727 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6728 else
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6731 do
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6736 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 break 2
6739 fi
6740 done
6741 done
6742 IFS=$as_save_IFS
6743
6744 fi
6745 fi
6746 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6747 if test -n "$ac_ct_DLLTOOL"; then
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6749 $as_echo "$ac_ct_DLLTOOL" >&6; }
6750 else
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752 $as_echo "no" >&6; }
6753 fi
6754
6755 if test "x$ac_ct_DLLTOOL" = x; then
6756 DLLTOOL="false"
6757 else
6758 case $cross_compiling:$ac_tool_warned in
6759 yes:)
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6762 ac_tool_warned=yes ;;
6763 esac
6764 DLLTOOL=$ac_ct_DLLTOOL
6765 fi
6766 else
6767 DLLTOOL="$ac_cv_prog_DLLTOOL"
6768 fi
6769
6770 test -z "$DLLTOOL" && DLLTOOL=dlltool
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6782 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6783 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6784 $as_echo_n "(cached) " >&6
6785 else
6786 lt_cv_sharedlib_from_linklib_cmd='unknown'
6787
6788 case $host_os in
6789 cygwin* | mingw* | pw32* | cegcc*)
6790 # two different shell functions defined in ltmain.sh
6791 # decide which to use based on capabilities of $DLLTOOL
6792 case `$DLLTOOL --help 2>&1` in
6793 *--identify-strict*)
6794 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6795 ;;
6796 *)
6797 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6798 ;;
6799 esac
6800 ;;
6801 *)
6802 # fallback: assume linklib IS sharedlib
6803 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6804 ;;
6805 esac
6806
6807 fi
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6809 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6810 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6811 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6812
6813
6814
6815
6816
6817
6818
6819 if test -n "$ac_tool_prefix"; then
6820 for ac_prog in ar
6821 do
6822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if ${ac_cv_prog_AR+:} false; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 if test -n "$AR"; then
6830 ac_cv_prog_AR="$AR" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6839 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 break 2
6842 fi
6843 done
6844 done
6845 IFS=$as_save_IFS
6846
6847 fi
6848 fi
6849 AR=$ac_cv_prog_AR
6850 if test -n "$AR"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6852 $as_echo "$AR" >&6; }
6853 else
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6856 fi
6857
6858
6859 test -n "$AR" && break
6860 done
6861 fi
6862 if test -z "$AR"; then
6863 ac_ct_AR=$AR
6864 for ac_prog in ar
6865 do
6866 # Extract the first word of "$ac_prog", so it can be a program name with args.
6867 set dummy $ac_prog; ac_word=$2
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869 $as_echo_n "checking for $ac_word... " >&6; }
6870 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873 if test -n "$ac_ct_AR"; then
6874 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6875 else
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 for as_dir in $PATH
6878 do
6879 IFS=$as_save_IFS
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883 ac_cv_prog_ac_ct_AR="$ac_prog"
6884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 break 2
6886 fi
6887 done
6888 done
6889 IFS=$as_save_IFS
6890
6891 fi
6892 fi
6893 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6894 if test -n "$ac_ct_AR"; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6896 $as_echo "$ac_ct_AR" >&6; }
6897 else
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 $as_echo "no" >&6; }
6900 fi
6901
6902
6903 test -n "$ac_ct_AR" && break
6904 done
6905
6906 if test "x$ac_ct_AR" = x; then
6907 AR="false"
6908 else
6909 case $cross_compiling:$ac_tool_warned in
6910 yes:)
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6913 ac_tool_warned=yes ;;
6914 esac
6915 AR=$ac_ct_AR
6916 fi
6917 fi
6918
6919 : ${AR=ar}
6920 : ${AR_FLAGS=cru}
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6933 $as_echo_n "checking for archiver @FILE support... " >&6; }
6934 if ${lt_cv_ar_at_file+:} false; then :
6935 $as_echo_n "(cached) " >&6
6936 else
6937 lt_cv_ar_at_file=no
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6940
6941 int
6942 main ()
6943 {
6944
6945 ;
6946 return 0;
6947 }
6948 _ACEOF
6949 if ac_fn_c_try_compile "$LINENO"; then :
6950 echo conftest.$ac_objext > conftest.lst
6951 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6953 (eval $lt_ar_try) 2>&5
6954 ac_status=$?
6955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6956 test $ac_status = 0; }
6957 if test "$ac_status" -eq 0; then
6958 # Ensure the archiver fails upon bogus file names.
6959 rm -f conftest.$ac_objext libconftest.a
6960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6961 (eval $lt_ar_try) 2>&5
6962 ac_status=$?
6963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6964 test $ac_status = 0; }
6965 if test "$ac_status" -ne 0; then
6966 lt_cv_ar_at_file=@
6967 fi
6968 fi
6969 rm -f conftest.* libconftest.a
6970
6971 fi
6972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6973
6974 fi
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6976 $as_echo "$lt_cv_ar_at_file" >&6; }
6977
6978 if test "x$lt_cv_ar_at_file" = xno; then
6979 archiver_list_spec=
6980 else
6981 archiver_list_spec=$lt_cv_ar_at_file
6982 fi
6983
6984
6985
6986
6987
6988
6989
6990 if test -n "$ac_tool_prefix"; then
6991 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6992 set dummy ${ac_tool_prefix}strip; ac_word=$2
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6994 $as_echo_n "checking for $ac_word... " >&6; }
6995 if ${ac_cv_prog_STRIP+:} false; then :
6996 $as_echo_n "(cached) " >&6
6997 else
6998 if test -n "$STRIP"; then
6999 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7000 else
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 for as_dir in $PATH
7003 do
7004 IFS=$as_save_IFS
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7008 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 break 2
7011 fi
7012 done
7013 done
7014 IFS=$as_save_IFS
7015
7016 fi
7017 fi
7018 STRIP=$ac_cv_prog_STRIP
7019 if test -n "$STRIP"; then
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7021 $as_echo "$STRIP" >&6; }
7022 else
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024 $as_echo "no" >&6; }
7025 fi
7026
7027
7028 fi
7029 if test -z "$ac_cv_prog_STRIP"; then
7030 ac_ct_STRIP=$STRIP
7031 # Extract the first word of "strip", so it can be a program name with args.
7032 set dummy strip; ac_word=$2
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7034 $as_echo_n "checking for $ac_word... " >&6; }
7035 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7036 $as_echo_n "(cached) " >&6
7037 else
7038 if test -n "$ac_ct_STRIP"; then
7039 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7040 else
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH
7043 do
7044 IFS=$as_save_IFS
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7048 ac_cv_prog_ac_ct_STRIP="strip"
7049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 break 2
7051 fi
7052 done
7053 done
7054 IFS=$as_save_IFS
7055
7056 fi
7057 fi
7058 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7059 if test -n "$ac_ct_STRIP"; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7061 $as_echo "$ac_ct_STRIP" >&6; }
7062 else
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064 $as_echo "no" >&6; }
7065 fi
7066
7067 if test "x$ac_ct_STRIP" = x; then
7068 STRIP=":"
7069 else
7070 case $cross_compiling:$ac_tool_warned in
7071 yes:)
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7074 ac_tool_warned=yes ;;
7075 esac
7076 STRIP=$ac_ct_STRIP
7077 fi
7078 else
7079 STRIP="$ac_cv_prog_STRIP"
7080 fi
7081
7082 test -z "$STRIP" && STRIP=:
7083
7084
7085
7086
7087
7088
7089 if test -n "$ac_tool_prefix"; then
7090 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7091 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7093 $as_echo_n "checking for $ac_word... " >&6; }
7094 if ${ac_cv_prog_RANLIB+:} false; then :
7095 $as_echo_n "(cached) " >&6
7096 else
7097 if test -n "$RANLIB"; then
7098 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7099 else
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 for as_dir in $PATH
7102 do
7103 IFS=$as_save_IFS
7104 test -z "$as_dir" && as_dir=.
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7107 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7109 break 2
7110 fi
7111 done
7112 done
7113 IFS=$as_save_IFS
7114
7115 fi
7116 fi
7117 RANLIB=$ac_cv_prog_RANLIB
7118 if test -n "$RANLIB"; then
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7120 $as_echo "$RANLIB" >&6; }
7121 else
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7123 $as_echo "no" >&6; }
7124 fi
7125
7126
7127 fi
7128 if test -z "$ac_cv_prog_RANLIB"; then
7129 ac_ct_RANLIB=$RANLIB
7130 # Extract the first word of "ranlib", so it can be a program name with args.
7131 set dummy ranlib; ac_word=$2
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7133 $as_echo_n "checking for $ac_word... " >&6; }
7134 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7135 $as_echo_n "(cached) " >&6
7136 else
7137 if test -n "$ac_ct_RANLIB"; then
7138 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7139 else
7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 for as_dir in $PATH
7142 do
7143 IFS=$as_save_IFS
7144 test -z "$as_dir" && as_dir=.
7145 for ac_exec_ext in '' $ac_executable_extensions; do
7146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7147 ac_cv_prog_ac_ct_RANLIB="ranlib"
7148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 break 2
7150 fi
7151 done
7152 done
7153 IFS=$as_save_IFS
7154
7155 fi
7156 fi
7157 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7158 if test -n "$ac_ct_RANLIB"; then
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7160 $as_echo "$ac_ct_RANLIB" >&6; }
7161 else
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163 $as_echo "no" >&6; }
7164 fi
7165
7166 if test "x$ac_ct_RANLIB" = x; then
7167 RANLIB=":"
7168 else
7169 case $cross_compiling:$ac_tool_warned in
7170 yes:)
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7173 ac_tool_warned=yes ;;
7174 esac
7175 RANLIB=$ac_ct_RANLIB
7176 fi
7177 else
7178 RANLIB="$ac_cv_prog_RANLIB"
7179 fi
7180
7181 test -z "$RANLIB" && RANLIB=:
7182
7183
7184
7185
7186
7187
7188 # Determine commands to create old-style static archives.
7189 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7190 old_postinstall_cmds='chmod 644 $oldlib'
7191 old_postuninstall_cmds=
7192
7193 if test -n "$RANLIB"; then
7194 case $host_os in
7195 openbsd*)
7196 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7197 ;;
7198 *)
7199 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7200 ;;
7201 esac
7202 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7203 fi
7204
7205 case $host_os in
7206 darwin*)
7207 lock_old_archive_extraction=yes ;;
7208 *)
7209 lock_old_archive_extraction=no ;;
7210 esac
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250 # If no C compiler was specified, use CC.
7251 LTCC=${LTCC-"$CC"}
7252
7253 # If no C compiler flags were specified, use CFLAGS.
7254 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7255
7256 # Allow CC to be a program name with arguments.
7257 compiler=$CC
7258
7259
7260 # Check for command to grab the raw symbol name followed by C symbol from nm.
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7262 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7263 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7264 $as_echo_n "(cached) " >&6
7265 else
7266
7267 # These are sane defaults that work on at least a few old systems.
7268 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7269
7270 # Character class describing NM global symbol codes.
7271 symcode='[BCDEGRST]'
7272
7273 # Regexp to match symbols that can be accessed directly from C.
7274 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7275
7276 # Define system-specific variables.
7277 case $host_os in
7278 aix*)
7279 symcode='[BCDT]'
7280 ;;
7281 cygwin* | mingw* | pw32* | cegcc*)
7282 symcode='[ABCDGISTW]'
7283 ;;
7284 hpux*)
7285 if test "$host_cpu" = ia64; then
7286 symcode='[ABCDEGRST]'
7287 fi
7288 ;;
7289 irix* | nonstopux*)
7290 symcode='[BCDEGRST]'
7291 ;;
7292 osf*)
7293 symcode='[BCDEGQRST]'
7294 ;;
7295 solaris*)
7296 symcode='[BDRT]'
7297 ;;
7298 sco3.2v5*)
7299 symcode='[DT]'
7300 ;;
7301 sysv4.2uw2*)
7302 symcode='[DT]'
7303 ;;
7304 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7305 symcode='[ABDT]'
7306 ;;
7307 sysv4)
7308 symcode='[DFNSTU]'
7309 ;;
7310 esac
7311
7312 # If we're using GNU nm, then use its standard symbol codes.
7313 case `$NM -V 2>&1` in
7314 *GNU* | *'with BFD'*)
7315 symcode='[ABCDGIRSTW]' ;;
7316 esac
7317
7318 # Transform an extracted symbol line into a proper C declaration.
7319 # Some systems (esp. on ia64) link data and code symbols differently,
7320 # so use this general approach.
7321 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7322
7323 # Transform an extracted symbol line into symbol name and symbol address
7324 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7325 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7326
7327 # Handle CRLF in mingw tool chain
7328 opt_cr=
7329 case $build_os in
7330 mingw*)
7331 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7332 ;;
7333 esac
7334
7335 # Try without a prefix underscore, then with it.
7336 for ac_symprfx in "" "_"; do
7337
7338 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7339 symxfrm="\\1 $ac_symprfx\\2 \\2"
7340
7341 # Write the raw and C identifiers.
7342 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7343 # Fake it for dumpbin and say T for any non-static function
7344 # and D for any global variable.
7345 # Also find C++ and __fastcall symbols from MSVC++,
7346 # which start with @ or ?.
7347 lt_cv_sys_global_symbol_pipe="$AWK '"\
7348 " {last_section=section; section=\$ 3};"\
7349 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7350 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7351 " \$ 0!~/External *\|/{next};"\
7352 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7353 " {if(hide[section]) next};"\
7354 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7355 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7356 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7357 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7358 " ' prfx=^$ac_symprfx"
7359 else
7360 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7361 fi
7362 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7363
7364 # Check to see that the pipe works correctly.
7365 pipe_works=no
7366
7367 rm -f conftest*
7368 cat > conftest.$ac_ext <<_LT_EOF
7369 #ifdef __cplusplus
7370 extern "C" {
7371 #endif
7372 char nm_test_var;
7373 void nm_test_func(void);
7374 void nm_test_func(void){}
7375 #ifdef __cplusplus
7376 }
7377 #endif
7378 int main(){nm_test_var='a';nm_test_func();return(0);}
7379 _LT_EOF
7380
7381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7382 (eval $ac_compile) 2>&5
7383 ac_status=$?
7384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7385 test $ac_status = 0; }; then
7386 # Now try to grab the symbols.
7387 nlist=conftest.nm
7388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7389 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7390 ac_status=$?
7391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7392 test $ac_status = 0; } && test -s "$nlist"; then
7393 # Try sorting and uniquifying the output.
7394 if sort "$nlist" | uniq > "$nlist"T; then
7395 mv -f "$nlist"T "$nlist"
7396 else
7397 rm -f "$nlist"T
7398 fi
7399
7400 # Make sure that we snagged all the symbols we need.
7401 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7402 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7403 cat <<_LT_EOF > conftest.$ac_ext
7404 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7405 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7406 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7407 relocations are performed -- see ld's documentation on pseudo-relocs. */
7408 # define LT@&t@_DLSYM_CONST
7409 #elif defined(__osf__)
7410 /* This system does not cope well with relocations in const data. */
7411 # define LT@&t@_DLSYM_CONST
7412 #else
7413 # define LT@&t@_DLSYM_CONST const
7414 #endif
7415
7416 #ifdef __cplusplus
7417 extern "C" {
7418 #endif
7419
7420 _LT_EOF
7421 # Now generate the symbol file.
7422 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7423
7424 cat <<_LT_EOF >> conftest.$ac_ext
7425
7426 /* The mapping between symbol names and symbols. */
7427 LT@&t@_DLSYM_CONST struct {
7428 const char *name;
7429 void *address;
7430 }
7431 lt__PROGRAM__LTX_preloaded_symbols[] =
7432 {
7433 { "@PROGRAM@", (void *) 0 },
7434 _LT_EOF
7435 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7436 cat <<\_LT_EOF >> conftest.$ac_ext
7437 {0, (void *) 0}
7438 };
7439
7440 /* This works around a problem in FreeBSD linker */
7441 #ifdef FREEBSD_WORKAROUND
7442 static const void *lt_preloaded_setup() {
7443 return lt__PROGRAM__LTX_preloaded_symbols;
7444 }
7445 #endif
7446
7447 #ifdef __cplusplus
7448 }
7449 #endif
7450 _LT_EOF
7451 # Now try linking the two files.
7452 mv conftest.$ac_objext conftstm.$ac_objext
7453 lt_globsym_save_LIBS=$LIBS
7454 lt_globsym_save_CFLAGS=$CFLAGS
7455 LIBS="conftstm.$ac_objext"
7456 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7458 (eval $ac_link) 2>&5
7459 ac_status=$?
7460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7461 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7462 pipe_works=yes
7463 fi
7464 LIBS=$lt_globsym_save_LIBS
7465 CFLAGS=$lt_globsym_save_CFLAGS
7466 else
7467 echo "cannot find nm_test_func in $nlist" >&5
7468 fi
7469 else
7470 echo "cannot find nm_test_var in $nlist" >&5
7471 fi
7472 else
7473 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7474 fi
7475 else
7476 echo "$progname: failed program was:" >&5
7477 cat conftest.$ac_ext >&5
7478 fi
7479 rm -rf conftest* conftst*
7480
7481 # Do not use the global_symbol_pipe unless it works.
7482 if test "$pipe_works" = yes; then
7483 break
7484 else
7485 lt_cv_sys_global_symbol_pipe=
7486 fi
7487 done
7488
7489 fi
7490
7491 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7492 lt_cv_sys_global_symbol_to_cdecl=
7493 fi
7494 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7496 $as_echo "failed" >&6; }
7497 else
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7499 $as_echo "ok" >&6; }
7500 fi
7501
7502 # Response file support.
7503 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7504 nm_file_list_spec='@'
7505 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7506 nm_file_list_spec='@'
7507 fi
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7536 $as_echo_n "checking for sysroot... " >&6; }
7537
7538 @%:@ Check whether --with-sysroot was given.
7539 if test "${with_sysroot+set}" = set; then :
7540 withval=$with_sysroot;
7541 else
7542 with_sysroot=no
7543 fi
7544
7545
7546 lt_sysroot=
7547 case ${with_sysroot} in #(
7548 yes)
7549 if test "$GCC" = yes; then
7550 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7551 fi
7552 ;; #(
7553 /*)
7554 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7555 ;; #(
7556 no|'')
7557 ;; #(
7558 *)
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7560 $as_echo "${with_sysroot}" >&6; }
7561 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7562 ;;
7563 esac
7564
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7566 $as_echo "${lt_sysroot:-no}" >&6; }
7567
7568
7569
7570
7571
7572 @%:@ Check whether --enable-libtool-lock was given.
7573 if test "${enable_libtool_lock+set}" = set; then :
7574 enableval=$enable_libtool_lock;
7575 fi
7576
7577 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7578
7579 # Some flags need to be propagated to the compiler or linker for good
7580 # libtool support.
7581 case $host in
7582 ia64-*-hpux*)
7583 # Find out which ABI we are using.
7584 echo 'int i;' > conftest.$ac_ext
7585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7586 (eval $ac_compile) 2>&5
7587 ac_status=$?
7588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7589 test $ac_status = 0; }; then
7590 case `/usr/bin/file conftest.$ac_objext` in
7591 *ELF-32*)
7592 HPUX_IA64_MODE="32"
7593 ;;
7594 *ELF-64*)
7595 HPUX_IA64_MODE="64"
7596 ;;
7597 esac
7598 fi
7599 rm -rf conftest*
7600 ;;
7601 *-*-irix6*)
7602 # Find out which ABI we are using.
7603 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7605 (eval $ac_compile) 2>&5
7606 ac_status=$?
7607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7608 test $ac_status = 0; }; then
7609 if test "$lt_cv_prog_gnu_ld" = yes; then
7610 case `/usr/bin/file conftest.$ac_objext` in
7611 *32-bit*)
7612 LD="${LD-ld} -melf32bsmip"
7613 ;;
7614 *N32*)
7615 LD="${LD-ld} -melf32bmipn32"
7616 ;;
7617 *64-bit*)
7618 LD="${LD-ld} -melf64bmip"
7619 ;;
7620 esac
7621 else
7622 case `/usr/bin/file conftest.$ac_objext` in
7623 *32-bit*)
7624 LD="${LD-ld} -32"
7625 ;;
7626 *N32*)
7627 LD="${LD-ld} -n32"
7628 ;;
7629 *64-bit*)
7630 LD="${LD-ld} -64"
7631 ;;
7632 esac
7633 fi
7634 fi
7635 rm -rf conftest*
7636 ;;
7637
7638 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7639 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7640 # Find out which ABI we are using.
7641 echo 'int i;' > conftest.$ac_ext
7642 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7643 (eval $ac_compile) 2>&5
7644 ac_status=$?
7645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7646 test $ac_status = 0; }; then
7647 case `/usr/bin/file conftest.o` in
7648 *32-bit*)
7649 case $host in
7650 x86_64-*kfreebsd*-gnu)
7651 LD="${LD-ld} -m elf_i386_fbsd"
7652 ;;
7653 x86_64-*linux*)
7654 case `/usr/bin/file conftest.o` in
7655 *x86-64*)
7656 LD="${LD-ld} -m elf32_x86_64"
7657 ;;
7658 *)
7659 LD="${LD-ld} -m elf_i386"
7660 ;;
7661 esac
7662 ;;
7663 powerpc64le-*)
7664 LD="${LD-ld} -m elf32lppclinux"
7665 ;;
7666 powerpc64-*)
7667 LD="${LD-ld} -m elf32ppclinux"
7668 ;;
7669 s390x-*linux*)
7670 LD="${LD-ld} -m elf_s390"
7671 ;;
7672 sparc64-*linux*)
7673 LD="${LD-ld} -m elf32_sparc"
7674 ;;
7675 esac
7676 ;;
7677 *64-bit*)
7678 case $host in
7679 x86_64-*kfreebsd*-gnu)
7680 LD="${LD-ld} -m elf_x86_64_fbsd"
7681 ;;
7682 x86_64-*linux*)
7683 LD="${LD-ld} -m elf_x86_64"
7684 ;;
7685 powerpcle-*)
7686 LD="${LD-ld} -m elf64lppc"
7687 ;;
7688 powerpc-*)
7689 LD="${LD-ld} -m elf64ppc"
7690 ;;
7691 s390*-*linux*|s390*-*tpf*)
7692 LD="${LD-ld} -m elf64_s390"
7693 ;;
7694 sparc*-*linux*)
7695 LD="${LD-ld} -m elf64_sparc"
7696 ;;
7697 esac
7698 ;;
7699 esac
7700 fi
7701 rm -rf conftest*
7702 ;;
7703
7704 *-*-sco3.2v5*)
7705 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7706 SAVE_CFLAGS="$CFLAGS"
7707 CFLAGS="$CFLAGS -belf"
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7709 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7710 if ${lt_cv_cc_needs_belf+:} false; then :
7711 $as_echo_n "(cached) " >&6
7712 else
7713 ac_ext=c
7714 ac_cpp='$CPP $CPPFLAGS'
7715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7718
7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7721
7722 int
7723 main ()
7724 {
7725
7726 ;
7727 return 0;
7728 }
7729 _ACEOF
7730 if ac_fn_c_try_link "$LINENO"; then :
7731 lt_cv_cc_needs_belf=yes
7732 else
7733 lt_cv_cc_needs_belf=no
7734 fi
7735 rm -f core conftest.err conftest.$ac_objext \
7736 conftest$ac_exeext conftest.$ac_ext
7737 ac_ext=c
7738 ac_cpp='$CPP $CPPFLAGS'
7739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7742
7743 fi
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7745 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7746 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7747 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7748 CFLAGS="$SAVE_CFLAGS"
7749 fi
7750 ;;
7751 *-*solaris*)
7752 # Find out which ABI we are using.
7753 echo 'int i;' > conftest.$ac_ext
7754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7755 (eval $ac_compile) 2>&5
7756 ac_status=$?
7757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7758 test $ac_status = 0; }; then
7759 case `/usr/bin/file conftest.o` in
7760 *64-bit*)
7761 case $lt_cv_prog_gnu_ld in
7762 yes*)
7763 case $host in
7764 i?86-*-solaris*)
7765 LD="${LD-ld} -m elf_x86_64"
7766 ;;
7767 sparc*-*-solaris*)
7768 LD="${LD-ld} -m elf64_sparc"
7769 ;;
7770 esac
7771 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7772 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7773 LD="${LD-ld}_sol2"
7774 fi
7775 ;;
7776 *)
7777 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7778 LD="${LD-ld} -64"
7779 fi
7780 ;;
7781 esac
7782 ;;
7783 esac
7784 fi
7785 rm -rf conftest*
7786 ;;
7787 esac
7788
7789 need_locks="$enable_libtool_lock"
7790
7791 if test -n "$ac_tool_prefix"; then
7792 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7793 set dummy ${ac_tool_prefix}mt; ac_word=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7797 $as_echo_n "(cached) " >&6
7798 else
7799 if test -n "$MANIFEST_TOOL"; then
7800 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7801 else
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7804 do
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7809 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 break 2
7812 fi
7813 done
7814 done
7815 IFS=$as_save_IFS
7816
7817 fi
7818 fi
7819 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7820 if test -n "$MANIFEST_TOOL"; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7822 $as_echo "$MANIFEST_TOOL" >&6; }
7823 else
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7826 fi
7827
7828
7829 fi
7830 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7831 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7832 # Extract the first word of "mt", so it can be a program name with args.
7833 set dummy mt; ac_word=$2
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7835 $as_echo_n "checking for $ac_word... " >&6; }
7836 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7837 $as_echo_n "(cached) " >&6
7838 else
7839 if test -n "$ac_ct_MANIFEST_TOOL"; then
7840 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7841 else
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 for as_dir in $PATH
7844 do
7845 IFS=$as_save_IFS
7846 test -z "$as_dir" && as_dir=.
7847 for ac_exec_ext in '' $ac_executable_extensions; do
7848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7849 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7851 break 2
7852 fi
7853 done
7854 done
7855 IFS=$as_save_IFS
7856
7857 fi
7858 fi
7859 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7860 if test -n "$ac_ct_MANIFEST_TOOL"; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7862 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7863 else
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7865 $as_echo "no" >&6; }
7866 fi
7867
7868 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7869 MANIFEST_TOOL=":"
7870 else
7871 case $cross_compiling:$ac_tool_warned in
7872 yes:)
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7875 ac_tool_warned=yes ;;
7876 esac
7877 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7878 fi
7879 else
7880 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7881 fi
7882
7883 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7885 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7886 if ${lt_cv_path_mainfest_tool+:} false; then :
7887 $as_echo_n "(cached) " >&6
7888 else
7889 lt_cv_path_mainfest_tool=no
7890 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7891 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7892 cat conftest.err >&5
7893 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7894 lt_cv_path_mainfest_tool=yes
7895 fi
7896 rm -f conftest*
7897 fi
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7899 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7900 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7901 MANIFEST_TOOL=:
7902 fi
7903
7904
7905
7906
7907
7908
7909 case $host_os in
7910 rhapsody* | darwin*)
7911 if test -n "$ac_tool_prefix"; then
7912 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7913 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915 $as_echo_n "checking for $ac_word... " >&6; }
7916 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7917 $as_echo_n "(cached) " >&6
7918 else
7919 if test -n "$DSYMUTIL"; then
7920 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7921 else
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 for as_dir in $PATH
7924 do
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7929 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 break 2
7932 fi
7933 done
7934 done
7935 IFS=$as_save_IFS
7936
7937 fi
7938 fi
7939 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7940 if test -n "$DSYMUTIL"; then
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7942 $as_echo "$DSYMUTIL" >&6; }
7943 else
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 $as_echo "no" >&6; }
7946 fi
7947
7948
7949 fi
7950 if test -z "$ac_cv_prog_DSYMUTIL"; then
7951 ac_ct_DSYMUTIL=$DSYMUTIL
7952 # Extract the first word of "dsymutil", so it can be a program name with args.
7953 set dummy dsymutil; ac_word=$2
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955 $as_echo_n "checking for $ac_word... " >&6; }
7956 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7957 $as_echo_n "(cached) " >&6
7958 else
7959 if test -n "$ac_ct_DSYMUTIL"; then
7960 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7961 else
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963 for as_dir in $PATH
7964 do
7965 IFS=$as_save_IFS
7966 test -z "$as_dir" && as_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7969 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7971 break 2
7972 fi
7973 done
7974 done
7975 IFS=$as_save_IFS
7976
7977 fi
7978 fi
7979 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7980 if test -n "$ac_ct_DSYMUTIL"; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7982 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7983 else
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985 $as_echo "no" >&6; }
7986 fi
7987
7988 if test "x$ac_ct_DSYMUTIL" = x; then
7989 DSYMUTIL=":"
7990 else
7991 case $cross_compiling:$ac_tool_warned in
7992 yes:)
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7995 ac_tool_warned=yes ;;
7996 esac
7997 DSYMUTIL=$ac_ct_DSYMUTIL
7998 fi
7999 else
8000 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8001 fi
8002
8003 if test -n "$ac_tool_prefix"; then
8004 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8005 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8007 $as_echo_n "checking for $ac_word... " >&6; }
8008 if ${ac_cv_prog_NMEDIT+:} false; then :
8009 $as_echo_n "(cached) " >&6
8010 else
8011 if test -n "$NMEDIT"; then
8012 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8013 else
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 for as_dir in $PATH
8016 do
8017 IFS=$as_save_IFS
8018 test -z "$as_dir" && as_dir=.
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8021 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8023 break 2
8024 fi
8025 done
8026 done
8027 IFS=$as_save_IFS
8028
8029 fi
8030 fi
8031 NMEDIT=$ac_cv_prog_NMEDIT
8032 if test -n "$NMEDIT"; then
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8034 $as_echo "$NMEDIT" >&6; }
8035 else
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8037 $as_echo "no" >&6; }
8038 fi
8039
8040
8041 fi
8042 if test -z "$ac_cv_prog_NMEDIT"; then
8043 ac_ct_NMEDIT=$NMEDIT
8044 # Extract the first word of "nmedit", so it can be a program name with args.
8045 set dummy nmedit; ac_word=$2
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8047 $as_echo_n "checking for $ac_word... " >&6; }
8048 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8049 $as_echo_n "(cached) " >&6
8050 else
8051 if test -n "$ac_ct_NMEDIT"; then
8052 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8053 else
8054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 for as_dir in $PATH
8056 do
8057 IFS=$as_save_IFS
8058 test -z "$as_dir" && as_dir=.
8059 for ac_exec_ext in '' $ac_executable_extensions; do
8060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8061 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 break 2
8064 fi
8065 done
8066 done
8067 IFS=$as_save_IFS
8068
8069 fi
8070 fi
8071 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8072 if test -n "$ac_ct_NMEDIT"; then
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8074 $as_echo "$ac_ct_NMEDIT" >&6; }
8075 else
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077 $as_echo "no" >&6; }
8078 fi
8079
8080 if test "x$ac_ct_NMEDIT" = x; then
8081 NMEDIT=":"
8082 else
8083 case $cross_compiling:$ac_tool_warned in
8084 yes:)
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8087 ac_tool_warned=yes ;;
8088 esac
8089 NMEDIT=$ac_ct_NMEDIT
8090 fi
8091 else
8092 NMEDIT="$ac_cv_prog_NMEDIT"
8093 fi
8094
8095 if test -n "$ac_tool_prefix"; then
8096 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8097 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8099 $as_echo_n "checking for $ac_word... " >&6; }
8100 if ${ac_cv_prog_LIPO+:} false; then :
8101 $as_echo_n "(cached) " >&6
8102 else
8103 if test -n "$LIPO"; then
8104 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8105 else
8106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107 for as_dir in $PATH
8108 do
8109 IFS=$as_save_IFS
8110 test -z "$as_dir" && as_dir=.
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8113 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8115 break 2
8116 fi
8117 done
8118 done
8119 IFS=$as_save_IFS
8120
8121 fi
8122 fi
8123 LIPO=$ac_cv_prog_LIPO
8124 if test -n "$LIPO"; then
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8126 $as_echo "$LIPO" >&6; }
8127 else
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129 $as_echo "no" >&6; }
8130 fi
8131
8132
8133 fi
8134 if test -z "$ac_cv_prog_LIPO"; then
8135 ac_ct_LIPO=$LIPO
8136 # Extract the first word of "lipo", so it can be a program name with args.
8137 set dummy lipo; ac_word=$2
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8139 $as_echo_n "checking for $ac_word... " >&6; }
8140 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8141 $as_echo_n "(cached) " >&6
8142 else
8143 if test -n "$ac_ct_LIPO"; then
8144 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8145 else
8146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147 for as_dir in $PATH
8148 do
8149 IFS=$as_save_IFS
8150 test -z "$as_dir" && as_dir=.
8151 for ac_exec_ext in '' $ac_executable_extensions; do
8152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8153 ac_cv_prog_ac_ct_LIPO="lipo"
8154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8155 break 2
8156 fi
8157 done
8158 done
8159 IFS=$as_save_IFS
8160
8161 fi
8162 fi
8163 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8164 if test -n "$ac_ct_LIPO"; then
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8166 $as_echo "$ac_ct_LIPO" >&6; }
8167 else
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8169 $as_echo "no" >&6; }
8170 fi
8171
8172 if test "x$ac_ct_LIPO" = x; then
8173 LIPO=":"
8174 else
8175 case $cross_compiling:$ac_tool_warned in
8176 yes:)
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8179 ac_tool_warned=yes ;;
8180 esac
8181 LIPO=$ac_ct_LIPO
8182 fi
8183 else
8184 LIPO="$ac_cv_prog_LIPO"
8185 fi
8186
8187 if test -n "$ac_tool_prefix"; then
8188 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8189 set dummy ${ac_tool_prefix}otool; ac_word=$2
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8191 $as_echo_n "checking for $ac_word... " >&6; }
8192 if ${ac_cv_prog_OTOOL+:} false; then :
8193 $as_echo_n "(cached) " >&6
8194 else
8195 if test -n "$OTOOL"; then
8196 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8197 else
8198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199 for as_dir in $PATH
8200 do
8201 IFS=$as_save_IFS
8202 test -z "$as_dir" && as_dir=.
8203 for ac_exec_ext in '' $ac_executable_extensions; do
8204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8205 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8207 break 2
8208 fi
8209 done
8210 done
8211 IFS=$as_save_IFS
8212
8213 fi
8214 fi
8215 OTOOL=$ac_cv_prog_OTOOL
8216 if test -n "$OTOOL"; then
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8218 $as_echo "$OTOOL" >&6; }
8219 else
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 $as_echo "no" >&6; }
8222 fi
8223
8224
8225 fi
8226 if test -z "$ac_cv_prog_OTOOL"; then
8227 ac_ct_OTOOL=$OTOOL
8228 # Extract the first word of "otool", so it can be a program name with args.
8229 set dummy otool; ac_word=$2
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8231 $as_echo_n "checking for $ac_word... " >&6; }
8232 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8233 $as_echo_n "(cached) " >&6
8234 else
8235 if test -n "$ac_ct_OTOOL"; then
8236 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8237 else
8238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239 for as_dir in $PATH
8240 do
8241 IFS=$as_save_IFS
8242 test -z "$as_dir" && as_dir=.
8243 for ac_exec_ext in '' $ac_executable_extensions; do
8244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8245 ac_cv_prog_ac_ct_OTOOL="otool"
8246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8247 break 2
8248 fi
8249 done
8250 done
8251 IFS=$as_save_IFS
8252
8253 fi
8254 fi
8255 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8256 if test -n "$ac_ct_OTOOL"; then
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8258 $as_echo "$ac_ct_OTOOL" >&6; }
8259 else
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261 $as_echo "no" >&6; }
8262 fi
8263
8264 if test "x$ac_ct_OTOOL" = x; then
8265 OTOOL=":"
8266 else
8267 case $cross_compiling:$ac_tool_warned in
8268 yes:)
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8271 ac_tool_warned=yes ;;
8272 esac
8273 OTOOL=$ac_ct_OTOOL
8274 fi
8275 else
8276 OTOOL="$ac_cv_prog_OTOOL"
8277 fi
8278
8279 if test -n "$ac_tool_prefix"; then
8280 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8281 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283 $as_echo_n "checking for $ac_word... " >&6; }
8284 if ${ac_cv_prog_OTOOL64+:} false; then :
8285 $as_echo_n "(cached) " >&6
8286 else
8287 if test -n "$OTOOL64"; then
8288 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8289 else
8290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 for as_dir in $PATH
8292 do
8293 IFS=$as_save_IFS
8294 test -z "$as_dir" && as_dir=.
8295 for ac_exec_ext in '' $ac_executable_extensions; do
8296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8297 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8299 break 2
8300 fi
8301 done
8302 done
8303 IFS=$as_save_IFS
8304
8305 fi
8306 fi
8307 OTOOL64=$ac_cv_prog_OTOOL64
8308 if test -n "$OTOOL64"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8310 $as_echo "$OTOOL64" >&6; }
8311 else
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8314 fi
8315
8316
8317 fi
8318 if test -z "$ac_cv_prog_OTOOL64"; then
8319 ac_ct_OTOOL64=$OTOOL64
8320 # Extract the first word of "otool64", so it can be a program name with args.
8321 set dummy otool64; ac_word=$2
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8323 $as_echo_n "checking for $ac_word... " >&6; }
8324 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8325 $as_echo_n "(cached) " >&6
8326 else
8327 if test -n "$ac_ct_OTOOL64"; then
8328 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8329 else
8330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331 for as_dir in $PATH
8332 do
8333 IFS=$as_save_IFS
8334 test -z "$as_dir" && as_dir=.
8335 for ac_exec_ext in '' $ac_executable_extensions; do
8336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8337 ac_cv_prog_ac_ct_OTOOL64="otool64"
8338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8339 break 2
8340 fi
8341 done
8342 done
8343 IFS=$as_save_IFS
8344
8345 fi
8346 fi
8347 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8348 if test -n "$ac_ct_OTOOL64"; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8350 $as_echo "$ac_ct_OTOOL64" >&6; }
8351 else
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353 $as_echo "no" >&6; }
8354 fi
8355
8356 if test "x$ac_ct_OTOOL64" = x; then
8357 OTOOL64=":"
8358 else
8359 case $cross_compiling:$ac_tool_warned in
8360 yes:)
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8363 ac_tool_warned=yes ;;
8364 esac
8365 OTOOL64=$ac_ct_OTOOL64
8366 fi
8367 else
8368 OTOOL64="$ac_cv_prog_OTOOL64"
8369 fi
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8398 $as_echo_n "checking for -single_module linker flag... " >&6; }
8399 if ${lt_cv_apple_cc_single_mod+:} false; then :
8400 $as_echo_n "(cached) " >&6
8401 else
8402 lt_cv_apple_cc_single_mod=no
8403 if test -z "${LT_MULTI_MODULE}"; then
8404 # By default we will add the -single_module flag. You can override
8405 # by either setting the environment variable LT_MULTI_MODULE
8406 # non-empty at configure time, or by adding -multi_module to the
8407 # link flags.
8408 rm -rf libconftest.dylib*
8409 echo "int foo(void){return 1;}" > conftest.c
8410 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8411 -dynamiclib -Wl,-single_module conftest.c" >&5
8412 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8413 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8414 _lt_result=$?
8415 # If there is a non-empty error log, and "single_module"
8416 # appears in it, assume the flag caused a linker warning
8417 if test -s conftest.err && $GREP single_module conftest.err; then
8418 cat conftest.err >&5
8419 # Otherwise, if the output was created with a 0 exit code from
8420 # the compiler, it worked.
8421 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8422 lt_cv_apple_cc_single_mod=yes
8423 else
8424 cat conftest.err >&5
8425 fi
8426 rm -rf libconftest.dylib*
8427 rm -f conftest.*
8428 fi
8429 fi
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8431 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8432
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8434 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8435 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8436 $as_echo_n "(cached) " >&6
8437 else
8438 lt_cv_ld_exported_symbols_list=no
8439 save_LDFLAGS=$LDFLAGS
8440 echo "_main" > conftest.sym
8441 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8444
8445 int
8446 main ()
8447 {
8448
8449 ;
8450 return 0;
8451 }
8452 _ACEOF
8453 if ac_fn_c_try_link "$LINENO"; then :
8454 lt_cv_ld_exported_symbols_list=yes
8455 else
8456 lt_cv_ld_exported_symbols_list=no
8457 fi
8458 rm -f core conftest.err conftest.$ac_objext \
8459 conftest$ac_exeext conftest.$ac_ext
8460 LDFLAGS="$save_LDFLAGS"
8461
8462 fi
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8464 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8465
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8467 $as_echo_n "checking for -force_load linker flag... " >&6; }
8468 if ${lt_cv_ld_force_load+:} false; then :
8469 $as_echo_n "(cached) " >&6
8470 else
8471 lt_cv_ld_force_load=no
8472 cat > conftest.c << _LT_EOF
8473 int forced_loaded() { return 2;}
8474 _LT_EOF
8475 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8476 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8477 echo "$AR cru libconftest.a conftest.o" >&5
8478 $AR cru libconftest.a conftest.o 2>&5
8479 echo "$RANLIB libconftest.a" >&5
8480 $RANLIB libconftest.a 2>&5
8481 cat > conftest.c << _LT_EOF
8482 int main() { return 0;}
8483 _LT_EOF
8484 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8485 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8486 _lt_result=$?
8487 if test -s conftest.err && $GREP force_load conftest.err; then
8488 cat conftest.err >&5
8489 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8490 lt_cv_ld_force_load=yes
8491 else
8492 cat conftest.err >&5
8493 fi
8494 rm -f conftest.err libconftest.a conftest conftest.c
8495 rm -rf conftest.dSYM
8496
8497 fi
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8499 $as_echo "$lt_cv_ld_force_load" >&6; }
8500 case $host_os in
8501 rhapsody* | darwin1.[012])
8502 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8503 darwin1.*)
8504 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8505 darwin*) # darwin 5.x on
8506 # if running on 10.5 or later, the deployment target defaults
8507 # to the OS version, if on x86, and 10.4, the deployment
8508 # target defaults to 10.4. Don't you love it?
8509 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8510 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8511 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8512 10.[012]*)
8513 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8514 10.*)
8515 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8516 esac
8517 ;;
8518 esac
8519 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8520 _lt_dar_single_mod='$single_module'
8521 fi
8522 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8523 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8524 else
8525 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8526 fi
8527 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8528 _lt_dsymutil='~$DSYMUTIL $lib || :'
8529 else
8530 _lt_dsymutil=
8531 fi
8532 ;;
8533 esac
8534
8535 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8536 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8537 inttypes.h stdint.h unistd.h
8538 do :
8539 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8540 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8541 "
8542 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8543 cat >>confdefs.h <<_ACEOF
8544 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8545 _ACEOF
8546
8547 fi
8548
8549 done
8550
8551
8552 for ac_header in dlfcn.h
8553 do :
8554 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8555 "
8556 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8557 cat >>confdefs.h <<_ACEOF
8558 @%:@define HAVE_DLFCN_H 1
8559 _ACEOF
8560
8561 fi
8562
8563 done
8564
8565
8566
8567
8568
8569 # Set options
8570
8571
8572
8573 enable_dlopen=no
8574
8575
8576 enable_win32_dll=no
8577
8578
8579 @%:@ Check whether --enable-shared was given.
8580 if test "${enable_shared+set}" = set; then :
8581 enableval=$enable_shared; p=${PACKAGE-default}
8582 case $enableval in
8583 yes) enable_shared=yes ;;
8584 no) enable_shared=no ;;
8585 *)
8586 enable_shared=no
8587 # Look at the argument we got. We use all the common list separators.
8588 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8589 for pkg in $enableval; do
8590 IFS="$lt_save_ifs"
8591 if test "X$pkg" = "X$p"; then
8592 enable_shared=yes
8593 fi
8594 done
8595 IFS="$lt_save_ifs"
8596 ;;
8597 esac
8598 else
8599 enable_shared=yes
8600 fi
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610 @%:@ Check whether --enable-static was given.
8611 if test "${enable_static+set}" = set; then :
8612 enableval=$enable_static; p=${PACKAGE-default}
8613 case $enableval in
8614 yes) enable_static=yes ;;
8615 no) enable_static=no ;;
8616 *)
8617 enable_static=no
8618 # Look at the argument we got. We use all the common list separators.
8619 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8620 for pkg in $enableval; do
8621 IFS="$lt_save_ifs"
8622 if test "X$pkg" = "X$p"; then
8623 enable_static=yes
8624 fi
8625 done
8626 IFS="$lt_save_ifs"
8627 ;;
8628 esac
8629 else
8630 enable_static=yes
8631 fi
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642 @%:@ Check whether --with-pic was given.
8643 if test "${with_pic+set}" = set; then :
8644 withval=$with_pic; lt_p=${PACKAGE-default}
8645 case $withval in
8646 yes|no) pic_mode=$withval ;;
8647 *)
8648 pic_mode=default
8649 # Look at the argument we got. We use all the common list separators.
8650 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8651 for lt_pkg in $withval; do
8652 IFS="$lt_save_ifs"
8653 if test "X$lt_pkg" = "X$lt_p"; then
8654 pic_mode=yes
8655 fi
8656 done
8657 IFS="$lt_save_ifs"
8658 ;;
8659 esac
8660 else
8661 pic_mode=default
8662 fi
8663
8664
8665 test -z "$pic_mode" && pic_mode=default
8666
8667
8668
8669
8670
8671
8672
8673 @%:@ Check whether --enable-fast-install was given.
8674 if test "${enable_fast_install+set}" = set; then :
8675 enableval=$enable_fast_install; p=${PACKAGE-default}
8676 case $enableval in
8677 yes) enable_fast_install=yes ;;
8678 no) enable_fast_install=no ;;
8679 *)
8680 enable_fast_install=no
8681 # Look at the argument we got. We use all the common list separators.
8682 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8683 for pkg in $enableval; do
8684 IFS="$lt_save_ifs"
8685 if test "X$pkg" = "X$p"; then
8686 enable_fast_install=yes
8687 fi
8688 done
8689 IFS="$lt_save_ifs"
8690 ;;
8691 esac
8692 else
8693 enable_fast_install=yes
8694 fi
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706 # This can be used to rebuild libtool when needed
8707 LIBTOOL_DEPS="$ltmain"
8708
8709 # Always use our own libtool.
8710 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741 test -z "$LN_S" && LN_S="ln -s"
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756 if test -n "${ZSH_VERSION+set}" ; then
8757 setopt NO_GLOB_SUBST
8758 fi
8759
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8761 $as_echo_n "checking for objdir... " >&6; }
8762 if ${lt_cv_objdir+:} false; then :
8763 $as_echo_n "(cached) " >&6
8764 else
8765 rm -f .libs 2>/dev/null
8766 mkdir .libs 2>/dev/null
8767 if test -d .libs; then
8768 lt_cv_objdir=.libs
8769 else
8770 # MS-DOS does not allow filenames that begin with a dot.
8771 lt_cv_objdir=_libs
8772 fi
8773 rmdir .libs 2>/dev/null
8774 fi
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8776 $as_echo "$lt_cv_objdir" >&6; }
8777 objdir=$lt_cv_objdir
8778
8779
8780
8781
8782
8783 cat >>confdefs.h <<_ACEOF
8784 @%:@define LT_OBJDIR "$lt_cv_objdir/"
8785 _ACEOF
8786
8787
8788
8789
8790 case $host_os in
8791 aix3*)
8792 # AIX sometimes has problems with the GCC collect2 program. For some
8793 # reason, if we set the COLLECT_NAMES environment variable, the problems
8794 # vanish in a puff of smoke.
8795 if test "X${COLLECT_NAMES+set}" != Xset; then
8796 COLLECT_NAMES=
8797 export COLLECT_NAMES
8798 fi
8799 ;;
8800 esac
8801
8802 # Global variables:
8803 ofile=libtool
8804 can_build_shared=yes
8805
8806 # All known linkers require a `.a' archive for static linking (except MSVC,
8807 # which needs '.lib').
8808 libext=a
8809
8810 with_gnu_ld="$lt_cv_prog_gnu_ld"
8811
8812 old_CC="$CC"
8813 old_CFLAGS="$CFLAGS"
8814
8815 # Set sane defaults for various variables
8816 test -z "$CC" && CC=cc
8817 test -z "$LTCC" && LTCC=$CC
8818 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8819 test -z "$LD" && LD=ld
8820 test -z "$ac_objext" && ac_objext=o
8821
8822 for cc_temp in $compiler""; do
8823 case $cc_temp in
8824 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8825 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8826 \-*) ;;
8827 *) break;;
8828 esac
8829 done
8830 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8831
8832
8833 # Only perform the check for file, if the check method requires it
8834 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8835 case $deplibs_check_method in
8836 file_magic*)
8837 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8839 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8840 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8841 $as_echo_n "(cached) " >&6
8842 else
8843 case $MAGIC_CMD in
8844 [\\/*] | ?:[\\/]*)
8845 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8846 ;;
8847 *)
8848 lt_save_MAGIC_CMD="$MAGIC_CMD"
8849 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8850 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8851 for ac_dir in $ac_dummy; do
8852 IFS="$lt_save_ifs"
8853 test -z "$ac_dir" && ac_dir=.
8854 if test -f $ac_dir/${ac_tool_prefix}file; then
8855 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8856 if test -n "$file_magic_test_file"; then
8857 case $deplibs_check_method in
8858 "file_magic "*)
8859 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8860 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8861 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8862 $EGREP "$file_magic_regex" > /dev/null; then
8863 :
8864 else
8865 cat <<_LT_EOF 1>&2
8866
8867 *** Warning: the command libtool uses to detect shared libraries,
8868 *** $file_magic_cmd, produces output that libtool cannot recognize.
8869 *** The result is that libtool may fail to recognize shared libraries
8870 *** as such. This will affect the creation of libtool libraries that
8871 *** depend on shared libraries, but programs linked with such libtool
8872 *** libraries will work regardless of this problem. Nevertheless, you
8873 *** may want to report the problem to your system manager and/or to
8874 *** bug-libtool@gnu.org
8875
8876 _LT_EOF
8877 fi ;;
8878 esac
8879 fi
8880 break
8881 fi
8882 done
8883 IFS="$lt_save_ifs"
8884 MAGIC_CMD="$lt_save_MAGIC_CMD"
8885 ;;
8886 esac
8887 fi
8888
8889 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8890 if test -n "$MAGIC_CMD"; then
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8892 $as_echo "$MAGIC_CMD" >&6; }
8893 else
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895 $as_echo "no" >&6; }
8896 fi
8897
8898
8899
8900
8901
8902 if test -z "$lt_cv_path_MAGIC_CMD"; then
8903 if test -n "$ac_tool_prefix"; then
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8905 $as_echo_n "checking for file... " >&6; }
8906 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8907 $as_echo_n "(cached) " >&6
8908 else
8909 case $MAGIC_CMD in
8910 [\\/*] | ?:[\\/]*)
8911 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8912 ;;
8913 *)
8914 lt_save_MAGIC_CMD="$MAGIC_CMD"
8915 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8916 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8917 for ac_dir in $ac_dummy; do
8918 IFS="$lt_save_ifs"
8919 test -z "$ac_dir" && ac_dir=.
8920 if test -f $ac_dir/file; then
8921 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8922 if test -n "$file_magic_test_file"; then
8923 case $deplibs_check_method in
8924 "file_magic "*)
8925 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8926 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8927 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8928 $EGREP "$file_magic_regex" > /dev/null; then
8929 :
8930 else
8931 cat <<_LT_EOF 1>&2
8932
8933 *** Warning: the command libtool uses to detect shared libraries,
8934 *** $file_magic_cmd, produces output that libtool cannot recognize.
8935 *** The result is that libtool may fail to recognize shared libraries
8936 *** as such. This will affect the creation of libtool libraries that
8937 *** depend on shared libraries, but programs linked with such libtool
8938 *** libraries will work regardless of this problem. Nevertheless, you
8939 *** may want to report the problem to your system manager and/or to
8940 *** bug-libtool@gnu.org
8941
8942 _LT_EOF
8943 fi ;;
8944 esac
8945 fi
8946 break
8947 fi
8948 done
8949 IFS="$lt_save_ifs"
8950 MAGIC_CMD="$lt_save_MAGIC_CMD"
8951 ;;
8952 esac
8953 fi
8954
8955 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8956 if test -n "$MAGIC_CMD"; then
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8958 $as_echo "$MAGIC_CMD" >&6; }
8959 else
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8961 $as_echo "no" >&6; }
8962 fi
8963
8964
8965 else
8966 MAGIC_CMD=:
8967 fi
8968 fi
8969
8970 fi
8971 ;;
8972 esac
8973
8974 # Use C for the default configuration in the libtool script
8975
8976 lt_save_CC="$CC"
8977 ac_ext=c
8978 ac_cpp='$CPP $CPPFLAGS'
8979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8982
8983
8984 # Source file extension for C test sources.
8985 ac_ext=c
8986
8987 # Object file extension for compiled C test sources.
8988 objext=o
8989 objext=$objext
8990
8991 # Code to be used in simple compile tests
8992 lt_simple_compile_test_code="int some_variable = 0;"
8993
8994 # Code to be used in simple link tests
8995 lt_simple_link_test_code='int main(){return(0);}'
8996
8997
8998
8999
9000
9001
9002
9003 # If no C compiler was specified, use CC.
9004 LTCC=${LTCC-"$CC"}
9005
9006 # If no C compiler flags were specified, use CFLAGS.
9007 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9008
9009 # Allow CC to be a program name with arguments.
9010 compiler=$CC
9011
9012 # Save the default compiler, since it gets overwritten when the other
9013 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9014 compiler_DEFAULT=$CC
9015
9016 # save warnings/boilerplate of simple test code
9017 ac_outfile=conftest.$ac_objext
9018 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9019 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9020 _lt_compiler_boilerplate=`cat conftest.err`
9021 $RM conftest*
9022
9023 ac_outfile=conftest.$ac_objext
9024 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9025 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9026 _lt_linker_boilerplate=`cat conftest.err`
9027 $RM -r conftest*
9028
9029
9030 ## CAVEAT EMPTOR:
9031 ## There is no encapsulation within the following macros, do not change
9032 ## the running order or otherwise move them around unless you know exactly
9033 ## what you are doing...
9034 if test -n "$compiler"; then
9035
9036 lt_prog_compiler_no_builtin_flag=
9037
9038 if test "$GCC" = yes; then
9039 case $cc_basename in
9040 nvcc*)
9041 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9042 *)
9043 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9044 esac
9045
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9047 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9048 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9049 $as_echo_n "(cached) " >&6
9050 else
9051 lt_cv_prog_compiler_rtti_exceptions=no
9052 ac_outfile=conftest.$ac_objext
9053 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9054 lt_compiler_flag="-fno-rtti -fno-exceptions"
9055 # Insert the option either (1) after the last *FLAGS variable, or
9056 # (2) before a word containing "conftest.", or (3) at the end.
9057 # Note that $ac_compile itself does not contain backslashes and begins
9058 # with a dollar sign (not a hyphen), so the echo should work correctly.
9059 # The option is referenced via a variable to avoid confusing sed.
9060 lt_compile=`echo "$ac_compile" | $SED \
9061 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9063 -e 's:$: $lt_compiler_flag:'`
9064 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9065 (eval "$lt_compile" 2>conftest.err)
9066 ac_status=$?
9067 cat conftest.err >&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 if (exit $ac_status) && test -s "$ac_outfile"; then
9070 # The compiler can only warn and ignore the option if not recognized
9071 # So say no if there are warnings other than the usual output.
9072 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9074 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9075 lt_cv_prog_compiler_rtti_exceptions=yes
9076 fi
9077 fi
9078 $RM conftest*
9079
9080 fi
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9082 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9083
9084 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9085 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9086 else
9087 :
9088 fi
9089
9090 fi
9091
9092
9093
9094
9095
9096
9097 lt_prog_compiler_wl=
9098 lt_prog_compiler_pic=
9099 lt_prog_compiler_static=
9100
9101
9102 if test "$GCC" = yes; then
9103 lt_prog_compiler_wl='-Wl,'
9104 lt_prog_compiler_static='-static'
9105
9106 case $host_os in
9107 aix*)
9108 # All AIX code is PIC.
9109 if test "$host_cpu" = ia64; then
9110 # AIX 5 now supports IA64 processor
9111 lt_prog_compiler_static='-Bstatic'
9112 fi
9113 ;;
9114
9115 amigaos*)
9116 case $host_cpu in
9117 powerpc)
9118 # see comment about AmigaOS4 .so support
9119 lt_prog_compiler_pic='-fPIC'
9120 ;;
9121 m68k)
9122 # FIXME: we need at least 68020 code to build shared libraries, but
9123 # adding the `-m68020' flag to GCC prevents building anything better,
9124 # like `-m68040'.
9125 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9126 ;;
9127 esac
9128 ;;
9129
9130 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9131 # PIC is the default for these OSes.
9132 ;;
9133
9134 mingw* | cygwin* | pw32* | os2* | cegcc*)
9135 # This hack is so that the source file can tell whether it is being
9136 # built for inclusion in a dll (and should export symbols for example).
9137 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9138 # (--disable-auto-import) libraries
9139 lt_prog_compiler_pic='-DDLL_EXPORT'
9140 ;;
9141
9142 darwin* | rhapsody*)
9143 # PIC is the default on this platform
9144 # Common symbols not allowed in MH_DYLIB files
9145 lt_prog_compiler_pic='-fno-common'
9146 ;;
9147
9148 haiku*)
9149 # PIC is the default for Haiku.
9150 # The "-static" flag exists, but is broken.
9151 lt_prog_compiler_static=
9152 ;;
9153
9154 hpux*)
9155 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9156 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9157 # sets the default TLS model and affects inlining.
9158 case $host_cpu in
9159 hppa*64*)
9160 # +Z the default
9161 ;;
9162 *)
9163 lt_prog_compiler_pic='-fPIC'
9164 ;;
9165 esac
9166 ;;
9167
9168 interix[3-9]*)
9169 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9170 # Instead, we relocate shared libraries at runtime.
9171 ;;
9172
9173 msdosdjgpp*)
9174 # Just because we use GCC doesn't mean we suddenly get shared libraries
9175 # on systems that don't support them.
9176 lt_prog_compiler_can_build_shared=no
9177 enable_shared=no
9178 ;;
9179
9180 *nto* | *qnx*)
9181 # QNX uses GNU C++, but need to define -shared option too, otherwise
9182 # it will coredump.
9183 lt_prog_compiler_pic='-fPIC -shared'
9184 ;;
9185
9186 sysv4*MP*)
9187 if test -d /usr/nec; then
9188 lt_prog_compiler_pic=-Kconform_pic
9189 fi
9190 ;;
9191
9192 *)
9193 lt_prog_compiler_pic='-fPIC'
9194 ;;
9195 esac
9196
9197 case $cc_basename in
9198 nvcc*) # Cuda Compiler Driver 2.2
9199 lt_prog_compiler_wl='-Xlinker '
9200 if test -n "$lt_prog_compiler_pic"; then
9201 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9202 fi
9203 ;;
9204 esac
9205 else
9206 # PORTME Check for flag to pass linker flags through the system compiler.
9207 case $host_os in
9208 aix*)
9209 lt_prog_compiler_wl='-Wl,'
9210 if test "$host_cpu" = ia64; then
9211 # AIX 5 now supports IA64 processor
9212 lt_prog_compiler_static='-Bstatic'
9213 else
9214 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9215 fi
9216 ;;
9217
9218 mingw* | cygwin* | pw32* | os2* | cegcc*)
9219 # This hack is so that the source file can tell whether it is being
9220 # built for inclusion in a dll (and should export symbols for example).
9221 lt_prog_compiler_pic='-DDLL_EXPORT'
9222 ;;
9223
9224 hpux9* | hpux10* | hpux11*)
9225 lt_prog_compiler_wl='-Wl,'
9226 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9227 # not for PA HP-UX.
9228 case $host_cpu in
9229 hppa*64*|ia64*)
9230 # +Z the default
9231 ;;
9232 *)
9233 lt_prog_compiler_pic='+Z'
9234 ;;
9235 esac
9236 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9237 lt_prog_compiler_static='${wl}-a ${wl}archive'
9238 ;;
9239
9240 irix5* | irix6* | nonstopux*)
9241 lt_prog_compiler_wl='-Wl,'
9242 # PIC (with -KPIC) is the default.
9243 lt_prog_compiler_static='-non_shared'
9244 ;;
9245
9246 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9247 case $cc_basename in
9248 # old Intel for x86_64 which still supported -KPIC.
9249 ecc*)
9250 lt_prog_compiler_wl='-Wl,'
9251 lt_prog_compiler_pic='-KPIC'
9252 lt_prog_compiler_static='-static'
9253 ;;
9254 # icc used to be incompatible with GCC.
9255 # ICC 10 doesn't accept -KPIC any more.
9256 icc* | ifort*)
9257 lt_prog_compiler_wl='-Wl,'
9258 lt_prog_compiler_pic='-fPIC'
9259 lt_prog_compiler_static='-static'
9260 ;;
9261 # Lahey Fortran 8.1.
9262 lf95*)
9263 lt_prog_compiler_wl='-Wl,'
9264 lt_prog_compiler_pic='--shared'
9265 lt_prog_compiler_static='--static'
9266 ;;
9267 nagfor*)
9268 # NAG Fortran compiler
9269 lt_prog_compiler_wl='-Wl,-Wl,,'
9270 lt_prog_compiler_pic='-PIC'
9271 lt_prog_compiler_static='-Bstatic'
9272 ;;
9273 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9274 # Portland Group compilers (*not* the Pentium gcc compiler,
9275 # which looks to be a dead project)
9276 lt_prog_compiler_wl='-Wl,'
9277 lt_prog_compiler_pic='-fpic'
9278 lt_prog_compiler_static='-Bstatic'
9279 ;;
9280 ccc*)
9281 lt_prog_compiler_wl='-Wl,'
9282 # All Alpha code is PIC.
9283 lt_prog_compiler_static='-non_shared'
9284 ;;
9285 xl* | bgxl* | bgf* | mpixl*)
9286 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9287 lt_prog_compiler_wl='-Wl,'
9288 lt_prog_compiler_pic='-qpic'
9289 lt_prog_compiler_static='-qstaticlink'
9290 ;;
9291 *)
9292 case `$CC -V 2>&1 | sed 5q` in
9293 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9294 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9295 lt_prog_compiler_pic='-KPIC'
9296 lt_prog_compiler_static='-Bstatic'
9297 lt_prog_compiler_wl=''
9298 ;;
9299 *Sun\ F* | *Sun*Fortran*)
9300 lt_prog_compiler_pic='-KPIC'
9301 lt_prog_compiler_static='-Bstatic'
9302 lt_prog_compiler_wl='-Qoption ld '
9303 ;;
9304 *Sun\ C*)
9305 # Sun C 5.9
9306 lt_prog_compiler_pic='-KPIC'
9307 lt_prog_compiler_static='-Bstatic'
9308 lt_prog_compiler_wl='-Wl,'
9309 ;;
9310 *Intel*\ [CF]*Compiler*)
9311 lt_prog_compiler_wl='-Wl,'
9312 lt_prog_compiler_pic='-fPIC'
9313 lt_prog_compiler_static='-static'
9314 ;;
9315 *Portland\ Group*)
9316 lt_prog_compiler_wl='-Wl,'
9317 lt_prog_compiler_pic='-fpic'
9318 lt_prog_compiler_static='-Bstatic'
9319 ;;
9320 esac
9321 ;;
9322 esac
9323 ;;
9324
9325 newsos6)
9326 lt_prog_compiler_pic='-KPIC'
9327 lt_prog_compiler_static='-Bstatic'
9328 ;;
9329
9330 *nto* | *qnx*)
9331 # QNX uses GNU C++, but need to define -shared option too, otherwise
9332 # it will coredump.
9333 lt_prog_compiler_pic='-fPIC -shared'
9334 ;;
9335
9336 osf3* | osf4* | osf5*)
9337 lt_prog_compiler_wl='-Wl,'
9338 # All OSF/1 code is PIC.
9339 lt_prog_compiler_static='-non_shared'
9340 ;;
9341
9342 rdos*)
9343 lt_prog_compiler_static='-non_shared'
9344 ;;
9345
9346 solaris*)
9347 lt_prog_compiler_pic='-KPIC'
9348 lt_prog_compiler_static='-Bstatic'
9349 case $cc_basename in
9350 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9351 lt_prog_compiler_wl='-Qoption ld ';;
9352 *)
9353 lt_prog_compiler_wl='-Wl,';;
9354 esac
9355 ;;
9356
9357 sunos4*)
9358 lt_prog_compiler_wl='-Qoption ld '
9359 lt_prog_compiler_pic='-PIC'
9360 lt_prog_compiler_static='-Bstatic'
9361 ;;
9362
9363 sysv4 | sysv4.2uw2* | sysv4.3*)
9364 lt_prog_compiler_wl='-Wl,'
9365 lt_prog_compiler_pic='-KPIC'
9366 lt_prog_compiler_static='-Bstatic'
9367 ;;
9368
9369 sysv4*MP*)
9370 if test -d /usr/nec ;then
9371 lt_prog_compiler_pic='-Kconform_pic'
9372 lt_prog_compiler_static='-Bstatic'
9373 fi
9374 ;;
9375
9376 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9377 lt_prog_compiler_wl='-Wl,'
9378 lt_prog_compiler_pic='-KPIC'
9379 lt_prog_compiler_static='-Bstatic'
9380 ;;
9381
9382 unicos*)
9383 lt_prog_compiler_wl='-Wl,'
9384 lt_prog_compiler_can_build_shared=no
9385 ;;
9386
9387 uts4*)
9388 lt_prog_compiler_pic='-pic'
9389 lt_prog_compiler_static='-Bstatic'
9390 ;;
9391
9392 *)
9393 lt_prog_compiler_can_build_shared=no
9394 ;;
9395 esac
9396 fi
9397
9398 case $host_os in
9399 # For platforms which do not support PIC, -DPIC is meaningless:
9400 *djgpp*)
9401 lt_prog_compiler_pic=
9402 ;;
9403 *)
9404 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
9405 ;;
9406 esac
9407
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9409 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9410 if ${lt_cv_prog_compiler_pic+:} false; then :
9411 $as_echo_n "(cached) " >&6
9412 else
9413 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9414 fi
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9416 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9417 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9418
9419 #
9420 # Check to make sure the PIC flag actually works.
9421 #
9422 if test -n "$lt_prog_compiler_pic"; then
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9424 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9425 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9426 $as_echo_n "(cached) " >&6
9427 else
9428 lt_cv_prog_compiler_pic_works=no
9429 ac_outfile=conftest.$ac_objext
9430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9431 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
9432 # Insert the option either (1) after the last *FLAGS variable, or
9433 # (2) before a word containing "conftest.", or (3) at the end.
9434 # Note that $ac_compile itself does not contain backslashes and begins
9435 # with a dollar sign (not a hyphen), so the echo should work correctly.
9436 # The option is referenced via a variable to avoid confusing sed.
9437 lt_compile=`echo "$ac_compile" | $SED \
9438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9440 -e 's:$: $lt_compiler_flag:'`
9441 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9442 (eval "$lt_compile" 2>conftest.err)
9443 ac_status=$?
9444 cat conftest.err >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 if (exit $ac_status) && test -s "$ac_outfile"; then
9447 # The compiler can only warn and ignore the option if not recognized
9448 # So say no if there are warnings other than the usual output.
9449 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9450 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9451 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9452 lt_cv_prog_compiler_pic_works=yes
9453 fi
9454 fi
9455 $RM conftest*
9456
9457 fi
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9459 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9460
9461 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9462 case $lt_prog_compiler_pic in
9463 "" | " "*) ;;
9464 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9465 esac
9466 else
9467 lt_prog_compiler_pic=
9468 lt_prog_compiler_can_build_shared=no
9469 fi
9470
9471 fi
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483 #
9484 # Check to make sure the static flag actually works.
9485 #
9486 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9488 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9489 if ${lt_cv_prog_compiler_static_works+:} false; then :
9490 $as_echo_n "(cached) " >&6
9491 else
9492 lt_cv_prog_compiler_static_works=no
9493 save_LDFLAGS="$LDFLAGS"
9494 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9495 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9496 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9497 # The linker can only warn and ignore the option if not recognized
9498 # So say no if there are warnings
9499 if test -s conftest.err; then
9500 # Append any errors to the config.log.
9501 cat conftest.err 1>&5
9502 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9504 if diff conftest.exp conftest.er2 >/dev/null; then
9505 lt_cv_prog_compiler_static_works=yes
9506 fi
9507 else
9508 lt_cv_prog_compiler_static_works=yes
9509 fi
9510 fi
9511 $RM -r conftest*
9512 LDFLAGS="$save_LDFLAGS"
9513
9514 fi
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9516 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9517
9518 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9519 :
9520 else
9521 lt_prog_compiler_static=
9522 fi
9523
9524
9525
9526
9527
9528
9529
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9531 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9532 if ${lt_cv_prog_compiler_c_o+:} false; then :
9533 $as_echo_n "(cached) " >&6
9534 else
9535 lt_cv_prog_compiler_c_o=no
9536 $RM -r conftest 2>/dev/null
9537 mkdir conftest
9538 cd conftest
9539 mkdir out
9540 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9541
9542 lt_compiler_flag="-o out/conftest2.$ac_objext"
9543 # Insert the option either (1) after the last *FLAGS variable, or
9544 # (2) before a word containing "conftest.", or (3) at the end.
9545 # Note that $ac_compile itself does not contain backslashes and begins
9546 # with a dollar sign (not a hyphen), so the echo should work correctly.
9547 lt_compile=`echo "$ac_compile" | $SED \
9548 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9549 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9550 -e 's:$: $lt_compiler_flag:'`
9551 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9552 (eval "$lt_compile" 2>out/conftest.err)
9553 ac_status=$?
9554 cat out/conftest.err >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9557 then
9558 # The compiler can only warn and ignore the option if not recognized
9559 # So say no if there are warnings
9560 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9561 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9562 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9563 lt_cv_prog_compiler_c_o=yes
9564 fi
9565 fi
9566 chmod u+w . 2>&5
9567 $RM conftest*
9568 # SGI C++ compiler will create directory out/ii_files/ for
9569 # template instantiation
9570 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9571 $RM out/* && rmdir out
9572 cd ..
9573 $RM -r conftest
9574 $RM conftest*
9575
9576 fi
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9578 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9579
9580
9581
9582
9583
9584
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9586 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9587 if ${lt_cv_prog_compiler_c_o+:} false; then :
9588 $as_echo_n "(cached) " >&6
9589 else
9590 lt_cv_prog_compiler_c_o=no
9591 $RM -r conftest 2>/dev/null
9592 mkdir conftest
9593 cd conftest
9594 mkdir out
9595 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9596
9597 lt_compiler_flag="-o out/conftest2.$ac_objext"
9598 # Insert the option either (1) after the last *FLAGS variable, or
9599 # (2) before a word containing "conftest.", or (3) at the end.
9600 # Note that $ac_compile itself does not contain backslashes and begins
9601 # with a dollar sign (not a hyphen), so the echo should work correctly.
9602 lt_compile=`echo "$ac_compile" | $SED \
9603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9605 -e 's:$: $lt_compiler_flag:'`
9606 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9607 (eval "$lt_compile" 2>out/conftest.err)
9608 ac_status=$?
9609 cat out/conftest.err >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9612 then
9613 # The compiler can only warn and ignore the option if not recognized
9614 # So say no if there are warnings
9615 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9616 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9617 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9618 lt_cv_prog_compiler_c_o=yes
9619 fi
9620 fi
9621 chmod u+w . 2>&5
9622 $RM conftest*
9623 # SGI C++ compiler will create directory out/ii_files/ for
9624 # template instantiation
9625 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9626 $RM out/* && rmdir out
9627 cd ..
9628 $RM -r conftest
9629 $RM conftest*
9630
9631 fi
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9633 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9634
9635
9636
9637
9638 hard_links="nottested"
9639 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9640 # do not overwrite the value of need_locks provided by the user
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9642 $as_echo_n "checking if we can lock with hard links... " >&6; }
9643 hard_links=yes
9644 $RM conftest*
9645 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9646 touch conftest.a
9647 ln conftest.a conftest.b 2>&5 || hard_links=no
9648 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9650 $as_echo "$hard_links" >&6; }
9651 if test "$hard_links" = no; then
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9653 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9654 need_locks=warn
9655 fi
9656 else
9657 need_locks=no
9658 fi
9659
9660
9661
9662
9663
9664
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9666 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9667
9668 runpath_var=
9669 allow_undefined_flag=
9670 always_export_symbols=no
9671 archive_cmds=
9672 archive_expsym_cmds=
9673 compiler_needs_object=no
9674 enable_shared_with_static_runtimes=no
9675 export_dynamic_flag_spec=
9676 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9677 hardcode_automatic=no
9678 hardcode_direct=no
9679 hardcode_direct_absolute=no
9680 hardcode_libdir_flag_spec=
9681 hardcode_libdir_separator=
9682 hardcode_minus_L=no
9683 hardcode_shlibpath_var=unsupported
9684 inherit_rpath=no
9685 link_all_deplibs=unknown
9686 module_cmds=
9687 module_expsym_cmds=
9688 old_archive_from_new_cmds=
9689 old_archive_from_expsyms_cmds=
9690 thread_safe_flag_spec=
9691 whole_archive_flag_spec=
9692 # include_expsyms should be a list of space-separated symbols to be *always*
9693 # included in the symbol list
9694 include_expsyms=
9695 # exclude_expsyms can be an extended regexp of symbols to exclude
9696 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9697 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9698 # as well as any symbol that contains `d'.
9699 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9700 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9701 # platforms (ab)use it in PIC code, but their linkers get confused if
9702 # the symbol is explicitly referenced. Since portable code cannot
9703 # rely on this symbol name, it's probably fine to never include it in
9704 # preloaded symbol tables.
9705 # Exclude shared library initialization/finalization symbols.
9706 extract_expsyms_cmds=
9707
9708 case $host_os in
9709 cygwin* | mingw* | pw32* | cegcc*)
9710 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9711 # When not using gcc, we currently assume that we are using
9712 # Microsoft Visual C++.
9713 if test "$GCC" != yes; then
9714 with_gnu_ld=no
9715 fi
9716 ;;
9717 interix*)
9718 # we just hope/assume this is gcc and not c89 (= MSVC++)
9719 with_gnu_ld=yes
9720 ;;
9721 openbsd*)
9722 with_gnu_ld=no
9723 ;;
9724 linux* | k*bsd*-gnu | gnu*)
9725 link_all_deplibs=no
9726 ;;
9727 esac
9728
9729 ld_shlibs=yes
9730
9731 # On some targets, GNU ld is compatible enough with the native linker
9732 # that we're better off using the native interface for both.
9733 lt_use_gnu_ld_interface=no
9734 if test "$with_gnu_ld" = yes; then
9735 case $host_os in
9736 aix*)
9737 # The AIX port of GNU ld has always aspired to compatibility
9738 # with the native linker. However, as the warning in the GNU ld
9739 # block says, versions before 2.19.5* couldn't really create working
9740 # shared libraries, regardless of the interface used.
9741 case `$LD -v 2>&1` in
9742 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9743 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9744 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9745 *)
9746 lt_use_gnu_ld_interface=yes
9747 ;;
9748 esac
9749 ;;
9750 *)
9751 lt_use_gnu_ld_interface=yes
9752 ;;
9753 esac
9754 fi
9755
9756 if test "$lt_use_gnu_ld_interface" = yes; then
9757 # If archive_cmds runs LD, not CC, wlarc should be empty
9758 wlarc='${wl}'
9759
9760 # Set some defaults for GNU ld with shared library support. These
9761 # are reset later if shared libraries are not supported. Putting them
9762 # here allows them to be overridden if necessary.
9763 runpath_var=LD_RUN_PATH
9764 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9765 export_dynamic_flag_spec='${wl}--export-dynamic'
9766 # ancient GNU ld didn't support --whole-archive et. al.
9767 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9768 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9769 else
9770 whole_archive_flag_spec=
9771 fi
9772 supports_anon_versioning=no
9773 case `$LD -v 2>&1` in
9774 *GNU\ gold*) supports_anon_versioning=yes ;;
9775 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9776 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9777 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9778 *\ 2.11.*) ;; # other 2.11 versions
9779 *) supports_anon_versioning=yes ;;
9780 esac
9781
9782 # See if GNU ld supports shared libraries.
9783 case $host_os in
9784 aix[3-9]*)
9785 # On AIX/PPC, the GNU linker is very broken
9786 if test "$host_cpu" != ia64; then
9787 ld_shlibs=no
9788 cat <<_LT_EOF 1>&2
9789
9790 *** Warning: the GNU linker, at least up to release 2.19, is reported
9791 *** to be unable to reliably create shared libraries on AIX.
9792 *** Therefore, libtool is disabling shared libraries support. If you
9793 *** really care for shared libraries, you may want to install binutils
9794 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9795 *** You will then need to restart the configuration process.
9796
9797 _LT_EOF
9798 fi
9799 ;;
9800
9801 amigaos*)
9802 case $host_cpu in
9803 powerpc)
9804 # see comment about AmigaOS4 .so support
9805 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9806 archive_expsym_cmds=''
9807 ;;
9808 m68k)
9809 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)'
9810 hardcode_libdir_flag_spec='-L$libdir'
9811 hardcode_minus_L=yes
9812 ;;
9813 esac
9814 ;;
9815
9816 beos*)
9817 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9818 allow_undefined_flag=unsupported
9819 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9820 # support --undefined. This deserves some investigation. FIXME
9821 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9822 else
9823 ld_shlibs=no
9824 fi
9825 ;;
9826
9827 cygwin* | mingw* | pw32* | cegcc*)
9828 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9829 # as there is no search path for DLLs.
9830 hardcode_libdir_flag_spec='-L$libdir'
9831 export_dynamic_flag_spec='${wl}--export-all-symbols'
9832 allow_undefined_flag=unsupported
9833 always_export_symbols=no
9834 enable_shared_with_static_runtimes=yes
9835 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9836 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9837
9838 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9839 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9840 # If the export-symbols file already is a .def file (1st line
9841 # is EXPORTS), use it as is; otherwise, prepend...
9842 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9843 cp $export_symbols $output_objdir/$soname.def;
9844 else
9845 echo EXPORTS > $output_objdir/$soname.def;
9846 cat $export_symbols >> $output_objdir/$soname.def;
9847 fi~
9848 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9849 else
9850 ld_shlibs=no
9851 fi
9852 ;;
9853
9854 haiku*)
9855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9856 link_all_deplibs=yes
9857 ;;
9858
9859 interix[3-9]*)
9860 hardcode_direct=no
9861 hardcode_shlibpath_var=no
9862 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9863 export_dynamic_flag_spec='${wl}-E'
9864 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9865 # Instead, shared libraries are loaded at an image base (0x10000000 by
9866 # default) and relocated if they conflict, which is a slow very memory
9867 # consuming and fragmenting process. To avoid this, we pick a random,
9868 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9869 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9870 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9871 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'
9872 ;;
9873
9874 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9875 tmp_diet=no
9876 if test "$host_os" = linux-dietlibc; then
9877 case $cc_basename in
9878 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9879 esac
9880 fi
9881 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9882 && test "$tmp_diet" = no
9883 then
9884 tmp_addflag=' $pic_flag'
9885 tmp_sharedflag='-shared'
9886 case $cc_basename,$host_cpu in
9887 pgcc*) # Portland Group C compiler
9888 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9889 tmp_addflag=' $pic_flag'
9890 ;;
9891 pgf77* | pgf90* | pgf95* | pgfortran*)
9892 # Portland Group f77 and f90 compilers
9893 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9894 tmp_addflag=' $pic_flag -Mnomain' ;;
9895 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9896 tmp_addflag=' -i_dynamic' ;;
9897 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9898 tmp_addflag=' -i_dynamic -nofor_main' ;;
9899 ifc* | ifort*) # Intel Fortran compiler
9900 tmp_addflag=' -nofor_main' ;;
9901 lf95*) # Lahey Fortran 8.1
9902 whole_archive_flag_spec=
9903 tmp_sharedflag='--shared' ;;
9904 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9905 tmp_sharedflag='-qmkshrobj'
9906 tmp_addflag= ;;
9907 nvcc*) # Cuda Compiler Driver 2.2
9908 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9909 compiler_needs_object=yes
9910 ;;
9911 esac
9912 case `$CC -V 2>&1 | sed 5q` in
9913 *Sun\ C*) # Sun C 5.9
9914 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9915 compiler_needs_object=yes
9916 tmp_sharedflag='-G' ;;
9917 *Sun\ F*) # Sun Fortran 8.3
9918 tmp_sharedflag='-G' ;;
9919 esac
9920 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9921
9922 if test "x$supports_anon_versioning" = xyes; then
9923 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9924 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9925 echo "local: *; };" >> $output_objdir/$libname.ver~
9926 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9927 fi
9928
9929 case $cc_basename in
9930 xlf* | bgf* | bgxlf* | mpixlf*)
9931 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9932 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9933 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9934 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9935 if test "x$supports_anon_versioning" = xyes; then
9936 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9937 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9938 echo "local: *; };" >> $output_objdir/$libname.ver~
9939 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9940 fi
9941 ;;
9942 esac
9943 else
9944 ld_shlibs=no
9945 fi
9946 ;;
9947
9948 netbsd* | netbsdelf*-gnu)
9949 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9950 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9951 wlarc=
9952 else
9953 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9954 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9955 fi
9956 ;;
9957
9958 solaris*)
9959 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9960 ld_shlibs=no
9961 cat <<_LT_EOF 1>&2
9962
9963 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9964 *** create shared libraries on Solaris systems. Therefore, libtool
9965 *** is disabling shared libraries support. We urge you to upgrade GNU
9966 *** binutils to release 2.9.1 or newer. Another option is to modify
9967 *** your PATH or compiler configuration so that the native linker is
9968 *** used, and then restart.
9969
9970 _LT_EOF
9971 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9972 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9973 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9974 else
9975 ld_shlibs=no
9976 fi
9977 ;;
9978
9979 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9980 case `$LD -v 2>&1` in
9981 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9982 ld_shlibs=no
9983 cat <<_LT_EOF 1>&2
9984
9985 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9986 *** reliably create shared libraries on SCO systems. Therefore, libtool
9987 *** is disabling shared libraries support. We urge you to upgrade GNU
9988 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9989 *** your PATH or compiler configuration so that the native linker is
9990 *** used, and then restart.
9991
9992 _LT_EOF
9993 ;;
9994 *)
9995 # For security reasons, it is highly recommended that you always
9996 # use absolute paths for naming shared libraries, and exclude the
9997 # DT_RUNPATH tag from executables and libraries. But doing so
9998 # requires that you compile everything twice, which is a pain.
9999 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10000 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10002 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10003 else
10004 ld_shlibs=no
10005 fi
10006 ;;
10007 esac
10008 ;;
10009
10010 sunos4*)
10011 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10012 wlarc=
10013 hardcode_direct=yes
10014 hardcode_shlibpath_var=no
10015 ;;
10016
10017 *)
10018 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10019 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10020 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10021 else
10022 ld_shlibs=no
10023 fi
10024 ;;
10025 esac
10026
10027 if test "$ld_shlibs" = no; then
10028 runpath_var=
10029 hardcode_libdir_flag_spec=
10030 export_dynamic_flag_spec=
10031 whole_archive_flag_spec=
10032 fi
10033 else
10034 # PORTME fill in a description of your system's linker (not GNU ld)
10035 case $host_os in
10036 aix3*)
10037 allow_undefined_flag=unsupported
10038 always_export_symbols=yes
10039 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'
10040 # Note: this linker hardcodes the directories in LIBPATH if there
10041 # are no directories specified by -L.
10042 hardcode_minus_L=yes
10043 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10044 # Neither direct hardcoding nor static linking is supported with a
10045 # broken collect2.
10046 hardcode_direct=unsupported
10047 fi
10048 ;;
10049
10050 aix[4-9]*)
10051 if test "$host_cpu" = ia64; then
10052 # On IA64, the linker does run time linking by default, so we don't
10053 # have to do anything special.
10054 aix_use_runtimelinking=no
10055 exp_sym_flag='-Bexport'
10056 no_entry_flag=""
10057 else
10058 # If we're using GNU nm, then we don't want the "-C" option.
10059 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10060 # Also, AIX nm treats weak defined symbols like other global
10061 # defined symbols, whereas GNU nm marks them as "W".
10062 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10063 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10064 else
10065 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'
10066 fi
10067 aix_use_runtimelinking=no
10068
10069 # Test if we are trying to use run time linking or normal
10070 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10071 # need to do runtime linking.
10072 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10073 for ld_flag in $LDFLAGS; do
10074 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10075 aix_use_runtimelinking=yes
10076 break
10077 fi
10078 done
10079 ;;
10080 esac
10081
10082 exp_sym_flag='-bexport'
10083 no_entry_flag='-bnoentry'
10084 fi
10085
10086 # When large executables or shared objects are built, AIX ld can
10087 # have problems creating the table of contents. If linking a library
10088 # or program results in "error TOC overflow" add -mminimal-toc to
10089 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10090 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10091
10092 archive_cmds=''
10093 hardcode_direct=yes
10094 hardcode_direct_absolute=yes
10095 hardcode_libdir_separator=':'
10096 link_all_deplibs=yes
10097 file_list_spec='${wl}-f,'
10098
10099 if test "$GCC" = yes; then
10100 case $host_os in aix4.[012]|aix4.[012].*)
10101 # We only want to do this on AIX 4.2 and lower, the check
10102 # below for broken collect2 doesn't work under 4.3+
10103 collect2name=`${CC} -print-prog-name=collect2`
10104 if test -f "$collect2name" &&
10105 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10106 then
10107 # We have reworked collect2
10108 :
10109 else
10110 # We have old collect2
10111 hardcode_direct=unsupported
10112 # It fails to find uninstalled libraries when the uninstalled
10113 # path is not listed in the libpath. Setting hardcode_minus_L
10114 # to unsupported forces relinking
10115 hardcode_minus_L=yes
10116 hardcode_libdir_flag_spec='-L$libdir'
10117 hardcode_libdir_separator=
10118 fi
10119 ;;
10120 esac
10121 shared_flag='-shared'
10122 if test "$aix_use_runtimelinking" = yes; then
10123 shared_flag="$shared_flag "'${wl}-G'
10124 fi
10125 link_all_deplibs=no
10126 else
10127 # not using gcc
10128 if test "$host_cpu" = ia64; then
10129 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10130 # chokes on -Wl,-G. The following line is correct:
10131 shared_flag='-G'
10132 else
10133 if test "$aix_use_runtimelinking" = yes; then
10134 shared_flag='${wl}-G'
10135 else
10136 shared_flag='${wl}-bM:SRE'
10137 fi
10138 fi
10139 fi
10140
10141 export_dynamic_flag_spec='${wl}-bexpall'
10142 # It seems that -bexpall does not export symbols beginning with
10143 # underscore (_), so it is better to generate a list of symbols to export.
10144 always_export_symbols=yes
10145 if test "$aix_use_runtimelinking" = yes; then
10146 # Warning - without using the other runtime loading flags (-brtl),
10147 # -berok will link without error, but may produce a broken library.
10148 allow_undefined_flag='-berok'
10149 # Determine the default libpath from the value encoded in an
10150 # empty executable.
10151 if test "${lt_cv_aix_libpath+set}" = set; then
10152 aix_libpath=$lt_cv_aix_libpath
10153 else
10154 if ${lt_cv_aix_libpath_+:} false; then :
10155 $as_echo_n "(cached) " >&6
10156 else
10157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10158 /* end confdefs.h. */
10159
10160 int
10161 main ()
10162 {
10163
10164 ;
10165 return 0;
10166 }
10167 _ACEOF
10168 if ac_fn_c_try_link "$LINENO"; then :
10169
10170 lt_aix_libpath_sed='
10171 /Import File Strings/,/^$/ {
10172 /^0/ {
10173 s/^0 *\([^ ]*\) *$/\1/
10174 p
10175 }
10176 }'
10177 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10178 # Check for a 64-bit object if we didn't find anything.
10179 if test -z "$lt_cv_aix_libpath_"; then
10180 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10181 fi
10182 fi
10183 rm -f core conftest.err conftest.$ac_objext \
10184 conftest$ac_exeext conftest.$ac_ext
10185 if test -z "$lt_cv_aix_libpath_"; then
10186 lt_cv_aix_libpath_="/usr/lib:/lib"
10187 fi
10188
10189 fi
10190
10191 aix_libpath=$lt_cv_aix_libpath_
10192 fi
10193
10194 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10195 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10196 else
10197 if test "$host_cpu" = ia64; then
10198 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10199 allow_undefined_flag="-z nodefs"
10200 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"
10201 else
10202 # Determine the default libpath from the value encoded in an
10203 # empty executable.
10204 if test "${lt_cv_aix_libpath+set}" = set; then
10205 aix_libpath=$lt_cv_aix_libpath
10206 else
10207 if ${lt_cv_aix_libpath_+:} false; then :
10208 $as_echo_n "(cached) " >&6
10209 else
10210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211 /* end confdefs.h. */
10212
10213 int
10214 main ()
10215 {
10216
10217 ;
10218 return 0;
10219 }
10220 _ACEOF
10221 if ac_fn_c_try_link "$LINENO"; then :
10222
10223 lt_aix_libpath_sed='
10224 /Import File Strings/,/^$/ {
10225 /^0/ {
10226 s/^0 *\([^ ]*\) *$/\1/
10227 p
10228 }
10229 }'
10230 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10231 # Check for a 64-bit object if we didn't find anything.
10232 if test -z "$lt_cv_aix_libpath_"; then
10233 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10234 fi
10235 fi
10236 rm -f core conftest.err conftest.$ac_objext \
10237 conftest$ac_exeext conftest.$ac_ext
10238 if test -z "$lt_cv_aix_libpath_"; then
10239 lt_cv_aix_libpath_="/usr/lib:/lib"
10240 fi
10241
10242 fi
10243
10244 aix_libpath=$lt_cv_aix_libpath_
10245 fi
10246
10247 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10248 # Warning - without using the other run time loading flags,
10249 # -berok will link without error, but may produce a broken library.
10250 no_undefined_flag=' ${wl}-bernotok'
10251 allow_undefined_flag=' ${wl}-berok'
10252 if test "$with_gnu_ld" = yes; then
10253 # We only use this code for GNU lds that support --whole-archive.
10254 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10255 else
10256 # Exported symbols can be pulled into shared objects from archives
10257 whole_archive_flag_spec='$convenience'
10258 fi
10259 archive_cmds_need_lc=yes
10260 # This is similar to how AIX traditionally builds its shared libraries.
10261 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'
10262 fi
10263 fi
10264 ;;
10265
10266 amigaos*)
10267 case $host_cpu in
10268 powerpc)
10269 # see comment about AmigaOS4 .so support
10270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10271 archive_expsym_cmds=''
10272 ;;
10273 m68k)
10274 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)'
10275 hardcode_libdir_flag_spec='-L$libdir'
10276 hardcode_minus_L=yes
10277 ;;
10278 esac
10279 ;;
10280
10281 bsdi[45]*)
10282 export_dynamic_flag_spec=-rdynamic
10283 ;;
10284
10285 cygwin* | mingw* | pw32* | cegcc*)
10286 # When not using gcc, we currently assume that we are using
10287 # Microsoft Visual C++.
10288 # hardcode_libdir_flag_spec is actually meaningless, as there is
10289 # no search path for DLLs.
10290 case $cc_basename in
10291 cl*)
10292 # Native MSVC
10293 hardcode_libdir_flag_spec=' '
10294 allow_undefined_flag=unsupported
10295 always_export_symbols=yes
10296 file_list_spec='@'
10297 # Tell ltmain to make .lib files, not .a files.
10298 libext=lib
10299 # Tell ltmain to make .dll files, not .so files.
10300 shrext_cmds=".dll"
10301 # FIXME: Setting linknames here is a bad hack.
10302 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10303 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10304 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10305 else
10306 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10307 fi~
10308 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10309 linknames='
10310 # The linker will not automatically build a static lib if we build a DLL.
10311 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10312 enable_shared_with_static_runtimes=yes
10313 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10314 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10315 # Don't use ranlib
10316 old_postinstall_cmds='chmod 644 $oldlib'
10317 postlink_cmds='lt_outputfile="@OUTPUT@"~
10318 lt_tool_outputfile="@TOOL_OUTPUT@"~
10319 case $lt_outputfile in
10320 *.exe|*.EXE) ;;
10321 *)
10322 lt_outputfile="$lt_outputfile.exe"
10323 lt_tool_outputfile="$lt_tool_outputfile.exe"
10324 ;;
10325 esac~
10326 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10327 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10328 $RM "$lt_outputfile.manifest";
10329 fi'
10330 ;;
10331 *)
10332 # Assume MSVC wrapper
10333 hardcode_libdir_flag_spec=' '
10334 allow_undefined_flag=unsupported
10335 # Tell ltmain to make .lib files, not .a files.
10336 libext=lib
10337 # Tell ltmain to make .dll files, not .so files.
10338 shrext_cmds=".dll"
10339 # FIXME: Setting linknames here is a bad hack.
10340 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10341 # The linker will automatically build a .lib file if we build a DLL.
10342 old_archive_from_new_cmds='true'
10343 # FIXME: Should let the user specify the lib program.
10344 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10345 enable_shared_with_static_runtimes=yes
10346 ;;
10347 esac
10348 ;;
10349
10350 darwin* | rhapsody*)
10351
10352
10353 archive_cmds_need_lc=no
10354 hardcode_direct=no
10355 hardcode_automatic=yes
10356 hardcode_shlibpath_var=unsupported
10357 if test "$lt_cv_ld_force_load" = "yes"; then
10358 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10359
10360 else
10361 whole_archive_flag_spec=''
10362 fi
10363 link_all_deplibs=yes
10364 allow_undefined_flag="$_lt_dar_allow_undefined"
10365 case $cc_basename in
10366 ifort*) _lt_dar_can_shared=yes ;;
10367 *) _lt_dar_can_shared=$GCC ;;
10368 esac
10369 if test "$_lt_dar_can_shared" = "yes"; then
10370 output_verbose_link_cmd=func_echo_all
10371 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10372 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10373 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10374 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10375
10376 else
10377 ld_shlibs=no
10378 fi
10379
10380 ;;
10381
10382 dgux*)
10383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10384 hardcode_libdir_flag_spec='-L$libdir'
10385 hardcode_shlibpath_var=no
10386 ;;
10387
10388 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10389 # support. Future versions do this automatically, but an explicit c++rt0.o
10390 # does not break anything, and helps significantly (at the cost of a little
10391 # extra space).
10392 freebsd2.2*)
10393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10394 hardcode_libdir_flag_spec='-R$libdir'
10395 hardcode_direct=yes
10396 hardcode_shlibpath_var=no
10397 ;;
10398
10399 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10400 freebsd2.*)
10401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10402 hardcode_direct=yes
10403 hardcode_minus_L=yes
10404 hardcode_shlibpath_var=no
10405 ;;
10406
10407 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10408 freebsd* | dragonfly*)
10409 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10410 hardcode_libdir_flag_spec='-R$libdir'
10411 hardcode_direct=yes
10412 hardcode_shlibpath_var=no
10413 ;;
10414
10415 hpux9*)
10416 if test "$GCC" = yes; then
10417 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10418 else
10419 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'
10420 fi
10421 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10422 hardcode_libdir_separator=:
10423 hardcode_direct=yes
10424
10425 # hardcode_minus_L: Not really in the search PATH,
10426 # but as the default location of the library.
10427 hardcode_minus_L=yes
10428 export_dynamic_flag_spec='${wl}-E'
10429 ;;
10430
10431 hpux10*)
10432 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10433 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10434 else
10435 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10436 fi
10437 if test "$with_gnu_ld" = no; then
10438 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10439 hardcode_libdir_separator=:
10440 hardcode_direct=yes
10441 hardcode_direct_absolute=yes
10442 export_dynamic_flag_spec='${wl}-E'
10443 # hardcode_minus_L: Not really in the search PATH,
10444 # but as the default location of the library.
10445 hardcode_minus_L=yes
10446 fi
10447 ;;
10448
10449 hpux11*)
10450 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10451 case $host_cpu in
10452 hppa*64*)
10453 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10454 ;;
10455 ia64*)
10456 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10457 ;;
10458 *)
10459 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10460 ;;
10461 esac
10462 else
10463 case $host_cpu in
10464 hppa*64*)
10465 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10466 ;;
10467 ia64*)
10468 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10469 ;;
10470 *)
10471
10472 # Older versions of the 11.00 compiler do not understand -b yet
10473 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10475 $as_echo_n "checking if $CC understands -b... " >&6; }
10476 if ${lt_cv_prog_compiler__b+:} false; then :
10477 $as_echo_n "(cached) " >&6
10478 else
10479 lt_cv_prog_compiler__b=no
10480 save_LDFLAGS="$LDFLAGS"
10481 LDFLAGS="$LDFLAGS -b"
10482 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10483 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10484 # The linker can only warn and ignore the option if not recognized
10485 # So say no if there are warnings
10486 if test -s conftest.err; then
10487 # Append any errors to the config.log.
10488 cat conftest.err 1>&5
10489 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10490 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10491 if diff conftest.exp conftest.er2 >/dev/null; then
10492 lt_cv_prog_compiler__b=yes
10493 fi
10494 else
10495 lt_cv_prog_compiler__b=yes
10496 fi
10497 fi
10498 $RM -r conftest*
10499 LDFLAGS="$save_LDFLAGS"
10500
10501 fi
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10503 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10504
10505 if test x"$lt_cv_prog_compiler__b" = xyes; then
10506 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10507 else
10508 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10509 fi
10510
10511 ;;
10512 esac
10513 fi
10514 if test "$with_gnu_ld" = no; then
10515 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10516 hardcode_libdir_separator=:
10517
10518 case $host_cpu in
10519 hppa*64*|ia64*)
10520 hardcode_direct=no
10521 hardcode_shlibpath_var=no
10522 ;;
10523 *)
10524 hardcode_direct=yes
10525 hardcode_direct_absolute=yes
10526 export_dynamic_flag_spec='${wl}-E'
10527
10528 # hardcode_minus_L: Not really in the search PATH,
10529 # but as the default location of the library.
10530 hardcode_minus_L=yes
10531 ;;
10532 esac
10533 fi
10534 ;;
10535
10536 irix5* | irix6* | nonstopux*)
10537 if test "$GCC" = yes; then
10538 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10539 # Try to use the -exported_symbol ld option, if it does not
10540 # work, assume that -exports_file does not work either and
10541 # implicitly export all symbols.
10542 # This should be the same for all languages, so no per-tag cache variable.
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10544 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10545 if ${lt_cv_irix_exported_symbol+:} false; then :
10546 $as_echo_n "(cached) " >&6
10547 else
10548 save_LDFLAGS="$LDFLAGS"
10549 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10551 /* end confdefs.h. */
10552 int foo (void) { return 0; }
10553 _ACEOF
10554 if ac_fn_c_try_link "$LINENO"; then :
10555 lt_cv_irix_exported_symbol=yes
10556 else
10557 lt_cv_irix_exported_symbol=no
10558 fi
10559 rm -f core conftest.err conftest.$ac_objext \
10560 conftest$ac_exeext conftest.$ac_ext
10561 LDFLAGS="$save_LDFLAGS"
10562 fi
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10564 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10565 if test "$lt_cv_irix_exported_symbol" = yes; then
10566 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10567 fi
10568 else
10569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10570 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10571 fi
10572 archive_cmds_need_lc='no'
10573 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10574 hardcode_libdir_separator=:
10575 inherit_rpath=yes
10576 link_all_deplibs=yes
10577 ;;
10578
10579 netbsd* | netbsdelf*-gnu)
10580 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10581 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10582 else
10583 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10584 fi
10585 hardcode_libdir_flag_spec='-R$libdir'
10586 hardcode_direct=yes
10587 hardcode_shlibpath_var=no
10588 ;;
10589
10590 newsos6)
10591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10592 hardcode_direct=yes
10593 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10594 hardcode_libdir_separator=:
10595 hardcode_shlibpath_var=no
10596 ;;
10597
10598 *nto* | *qnx*)
10599 ;;
10600
10601 openbsd*)
10602 if test -f /usr/libexec/ld.so; then
10603 hardcode_direct=yes
10604 hardcode_shlibpath_var=no
10605 hardcode_direct_absolute=yes
10606 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10607 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10608 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10609 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10610 export_dynamic_flag_spec='${wl}-E'
10611 else
10612 case $host_os in
10613 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10614 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10615 hardcode_libdir_flag_spec='-R$libdir'
10616 ;;
10617 *)
10618 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10619 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10620 ;;
10621 esac
10622 fi
10623 else
10624 ld_shlibs=no
10625 fi
10626 ;;
10627
10628 os2*)
10629 hardcode_libdir_flag_spec='-L$libdir'
10630 hardcode_minus_L=yes
10631 allow_undefined_flag=unsupported
10632 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'
10633 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10634 ;;
10635
10636 osf3*)
10637 if test "$GCC" = yes; then
10638 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10639 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10640 else
10641 allow_undefined_flag=' -expect_unresolved \*'
10642 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10643 fi
10644 archive_cmds_need_lc='no'
10645 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10646 hardcode_libdir_separator=:
10647 ;;
10648
10649 osf4* | osf5*) # as osf3* with the addition of -msym flag
10650 if test "$GCC" = yes; then
10651 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10652 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10653 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10654 else
10655 allow_undefined_flag=' -expect_unresolved \*'
10656 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10657 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10658 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10659
10660 # Both c and cxx compiler support -rpath directly
10661 hardcode_libdir_flag_spec='-rpath $libdir'
10662 fi
10663 archive_cmds_need_lc='no'
10664 hardcode_libdir_separator=:
10665 ;;
10666
10667 solaris*)
10668 no_undefined_flag=' -z defs'
10669 if test "$GCC" = yes; then
10670 wlarc='${wl}'
10671 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10672 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10673 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10674 else
10675 case `$CC -V 2>&1` in
10676 *"Compilers 5.0"*)
10677 wlarc=''
10678 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10679 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10680 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10681 ;;
10682 *)
10683 wlarc='${wl}'
10684 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10685 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10686 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10687 ;;
10688 esac
10689 fi
10690 hardcode_libdir_flag_spec='-R$libdir'
10691 hardcode_shlibpath_var=no
10692 case $host_os in
10693 solaris2.[0-5] | solaris2.[0-5].*) ;;
10694 *)
10695 # The compiler driver will combine and reorder linker options,
10696 # but understands `-z linker_flag'. GCC discards it without `$wl',
10697 # but is careful enough not to reorder.
10698 # Supported since Solaris 2.6 (maybe 2.5.1?)
10699 if test "$GCC" = yes; then
10700 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10701 else
10702 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10703 fi
10704 ;;
10705 esac
10706 link_all_deplibs=yes
10707 ;;
10708
10709 sunos4*)
10710 if test "x$host_vendor" = xsequent; then
10711 # Use $CC to link under sequent, because it throws in some extra .o
10712 # files that make .init and .fini sections work.
10713 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10714 else
10715 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10716 fi
10717 hardcode_libdir_flag_spec='-L$libdir'
10718 hardcode_direct=yes
10719 hardcode_minus_L=yes
10720 hardcode_shlibpath_var=no
10721 ;;
10722
10723 sysv4)
10724 case $host_vendor in
10725 sni)
10726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10727 hardcode_direct=yes # is this really true???
10728 ;;
10729 siemens)
10730 ## LD is ld it makes a PLAMLIB
10731 ## CC just makes a GrossModule.
10732 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10733 reload_cmds='$CC -r -o $output$reload_objs'
10734 hardcode_direct=no
10735 ;;
10736 motorola)
10737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10738 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10739 ;;
10740 esac
10741 runpath_var='LD_RUN_PATH'
10742 hardcode_shlibpath_var=no
10743 ;;
10744
10745 sysv4.3*)
10746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10747 hardcode_shlibpath_var=no
10748 export_dynamic_flag_spec='-Bexport'
10749 ;;
10750
10751 sysv4*MP*)
10752 if test -d /usr/nec; then
10753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10754 hardcode_shlibpath_var=no
10755 runpath_var=LD_RUN_PATH
10756 hardcode_runpath_var=yes
10757 ld_shlibs=yes
10758 fi
10759 ;;
10760
10761 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10762 no_undefined_flag='${wl}-z,text'
10763 archive_cmds_need_lc=no
10764 hardcode_shlibpath_var=no
10765 runpath_var='LD_RUN_PATH'
10766
10767 if test "$GCC" = yes; then
10768 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10769 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10770 else
10771 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10772 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10773 fi
10774 ;;
10775
10776 sysv5* | sco3.2v5* | sco5v6*)
10777 # Note: We can NOT use -z defs as we might desire, because we do not
10778 # link with -lc, and that would cause any symbols used from libc to
10779 # always be unresolved, which means just about no library would
10780 # ever link correctly. If we're not using GNU ld we use -z text
10781 # though, which does catch some bad symbols but isn't as heavy-handed
10782 # as -z defs.
10783 no_undefined_flag='${wl}-z,text'
10784 allow_undefined_flag='${wl}-z,nodefs'
10785 archive_cmds_need_lc=no
10786 hardcode_shlibpath_var=no
10787 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10788 hardcode_libdir_separator=':'
10789 link_all_deplibs=yes
10790 export_dynamic_flag_spec='${wl}-Bexport'
10791 runpath_var='LD_RUN_PATH'
10792
10793 if test "$GCC" = yes; then
10794 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10795 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10796 else
10797 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10798 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10799 fi
10800 ;;
10801
10802 uts4*)
10803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10804 hardcode_libdir_flag_spec='-L$libdir'
10805 hardcode_shlibpath_var=no
10806 ;;
10807
10808 *)
10809 ld_shlibs=no
10810 ;;
10811 esac
10812
10813 if test x$host_vendor = xsni; then
10814 case $host in
10815 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10816 export_dynamic_flag_spec='${wl}-Blargedynsym'
10817 ;;
10818 esac
10819 fi
10820 fi
10821
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10823 $as_echo "$ld_shlibs" >&6; }
10824 test "$ld_shlibs" = no && can_build_shared=no
10825
10826 with_gnu_ld=$with_gnu_ld
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842 #
10843 # Do we need to explicitly link libc?
10844 #
10845 case "x$archive_cmds_need_lc" in
10846 x|xyes)
10847 # Assume -lc should be added
10848 archive_cmds_need_lc=yes
10849
10850 if test "$enable_shared" = yes && test "$GCC" = yes; then
10851 case $archive_cmds in
10852 *'~'*)
10853 # FIXME: we may have to deal with multi-command sequences.
10854 ;;
10855 '$CC '*)
10856 # Test whether the compiler implicitly links with -lc since on some
10857 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10858 # to ld, don't add -lc before -lgcc.
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10860 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10861 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10862 $as_echo_n "(cached) " >&6
10863 else
10864 $RM conftest*
10865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10866
10867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10868 (eval $ac_compile) 2>&5
10869 ac_status=$?
10870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10871 test $ac_status = 0; } 2>conftest.err; then
10872 soname=conftest
10873 lib=conftest
10874 libobjs=conftest.$ac_objext
10875 deplibs=
10876 wl=$lt_prog_compiler_wl
10877 pic_flag=$lt_prog_compiler_pic
10878 compiler_flags=-v
10879 linker_flags=-v
10880 verstring=
10881 output_objdir=.
10882 libname=conftest
10883 lt_save_allow_undefined_flag=$allow_undefined_flag
10884 allow_undefined_flag=
10885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10886 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10887 ac_status=$?
10888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10889 test $ac_status = 0; }
10890 then
10891 lt_cv_archive_cmds_need_lc=no
10892 else
10893 lt_cv_archive_cmds_need_lc=yes
10894 fi
10895 allow_undefined_flag=$lt_save_allow_undefined_flag
10896 else
10897 cat conftest.err 1>&5
10898 fi
10899 $RM conftest*
10900
10901 fi
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10903 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10904 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10905 ;;
10906 esac
10907 fi
10908 ;;
10909 esac
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11063 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11064
11065 if test "$GCC" = yes; then
11066 case $host_os in
11067 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11068 *) lt_awk_arg="/^libraries:/" ;;
11069 esac
11070 case $host_os in
11071 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11072 *) lt_sed_strip_eq="s,=/,/,g" ;;
11073 esac
11074 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11075 case $lt_search_path_spec in
11076 *\;*)
11077 # if the path contains ";" then we assume it to be the separator
11078 # otherwise default to the standard path separator (i.e. ":") - it is
11079 # assumed that no part of a normal pathname contains ";" but that should
11080 # okay in the real world where ";" in dirpaths is itself problematic.
11081 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11082 ;;
11083 *)
11084 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11085 ;;
11086 esac
11087 # Ok, now we have the path, separated by spaces, we can step through it
11088 # and add multilib dir if necessary.
11089 lt_tmp_lt_search_path_spec=
11090 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11091 for lt_sys_path in $lt_search_path_spec; do
11092 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11093 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11094 else
11095 test -d "$lt_sys_path" && \
11096 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11097 fi
11098 done
11099 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11100 BEGIN {RS=" "; FS="/|\n";} {
11101 lt_foo="";
11102 lt_count=0;
11103 for (lt_i = NF; lt_i > 0; lt_i--) {
11104 if ($lt_i != "" && $lt_i != ".") {
11105 if ($lt_i == "..") {
11106 lt_count++;
11107 } else {
11108 if (lt_count == 0) {
11109 lt_foo="/" $lt_i lt_foo;
11110 } else {
11111 lt_count--;
11112 }
11113 }
11114 }
11115 }
11116 if (lt_foo != "") { lt_freq[lt_foo]++; }
11117 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11118 }'`
11119 # AWK program above erroneously prepends '/' to C:/dos/paths
11120 # for these hosts.
11121 case $host_os in
11122 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11123 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11124 esac
11125 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11126 else
11127 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11128 fi
11129 library_names_spec=
11130 libname_spec='lib$name'
11131 soname_spec=
11132 shrext_cmds=".so"
11133 postinstall_cmds=
11134 postuninstall_cmds=
11135 finish_cmds=
11136 finish_eval=
11137 shlibpath_var=
11138 shlibpath_overrides_runpath=unknown
11139 version_type=none
11140 dynamic_linker="$host_os ld.so"
11141 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11142 need_lib_prefix=unknown
11143 hardcode_into_libs=no
11144
11145 # when you set need_version to no, make sure it does not cause -set_version
11146 # flags to be left without arguments
11147 need_version=unknown
11148
11149 case $host_os in
11150 aix3*)
11151 version_type=linux # correct to gnu/linux during the next big refactor
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11153 shlibpath_var=LIBPATH
11154
11155 # AIX 3 has no versioning support, so we append a major version to the name.
11156 soname_spec='${libname}${release}${shared_ext}$major'
11157 ;;
11158
11159 aix[4-9]*)
11160 version_type=linux # correct to gnu/linux during the next big refactor
11161 need_lib_prefix=no
11162 need_version=no
11163 hardcode_into_libs=yes
11164 if test "$host_cpu" = ia64; then
11165 # AIX 5 supports IA64
11166 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11167 shlibpath_var=LD_LIBRARY_PATH
11168 else
11169 # With GCC up to 2.95.x, collect2 would create an import file
11170 # for dependence libraries. The import file would start with
11171 # the line `#! .'. This would cause the generated library to
11172 # depend on `.', always an invalid library. This was fixed in
11173 # development snapshots of GCC prior to 3.0.
11174 case $host_os in
11175 aix4 | aix4.[01] | aix4.[01].*)
11176 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11177 echo ' yes '
11178 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11179 :
11180 else
11181 can_build_shared=no
11182 fi
11183 ;;
11184 esac
11185 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11186 # soname into executable. Probably we can add versioning support to
11187 # collect2, so additional links can be useful in future.
11188 if test "$aix_use_runtimelinking" = yes; then
11189 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11190 # instead of lib<name>.a to let people know that these are not
11191 # typical AIX shared libraries.
11192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193 else
11194 # We preserve .a as extension for shared libraries through AIX4.2
11195 # and later when we are not doing run time linking.
11196 library_names_spec='${libname}${release}.a $libname.a'
11197 soname_spec='${libname}${release}${shared_ext}$major'
11198 fi
11199 shlibpath_var=LIBPATH
11200 fi
11201 ;;
11202
11203 amigaos*)
11204 case $host_cpu in
11205 powerpc)
11206 # Since July 2007 AmigaOS4 officially supports .so libraries.
11207 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11209 ;;
11210 m68k)
11211 library_names_spec='$libname.ixlibrary $libname.a'
11212 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11213 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
11214 ;;
11215 esac
11216 ;;
11217
11218 beos*)
11219 library_names_spec='${libname}${shared_ext}'
11220 dynamic_linker="$host_os ld.so"
11221 shlibpath_var=LIBRARY_PATH
11222 ;;
11223
11224 bsdi[45]*)
11225 version_type=linux # correct to gnu/linux during the next big refactor
11226 need_version=no
11227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11228 soname_spec='${libname}${release}${shared_ext}$major'
11229 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11230 shlibpath_var=LD_LIBRARY_PATH
11231 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11232 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11233 # the default ld.so.conf also contains /usr/contrib/lib and
11234 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11235 # libtool to hard-code these into programs
11236 ;;
11237
11238 cygwin* | mingw* | pw32* | cegcc*)
11239 version_type=windows
11240 shrext_cmds=".dll"
11241 need_version=no
11242 need_lib_prefix=no
11243
11244 case $GCC,$cc_basename in
11245 yes,*)
11246 # gcc
11247 library_names_spec='$libname.dll.a'
11248 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11249 postinstall_cmds='base_file=`basename \${file}`~
11250 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11251 dldir=$destdir/`dirname \$dlpath`~
11252 test -d \$dldir || mkdir -p \$dldir~
11253 $install_prog $dir/$dlname \$dldir/$dlname~
11254 chmod a+x \$dldir/$dlname~
11255 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11256 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11257 fi'
11258 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11259 dlpath=$dir/\$dldll~
11260 $RM \$dlpath'
11261 shlibpath_overrides_runpath=yes
11262
11263 case $host_os in
11264 cygwin*)
11265 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11266 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11267
11268 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11269 ;;
11270 mingw* | cegcc*)
11271 # MinGW DLLs use traditional 'lib' prefix
11272 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11273 ;;
11274 pw32*)
11275 # pw32 DLLs use 'pw' prefix rather than 'lib'
11276 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11277 ;;
11278 esac
11279 dynamic_linker='Win32 ld.exe'
11280 ;;
11281
11282 *,cl*)
11283 # Native MSVC
11284 libname_spec='$name'
11285 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11286 library_names_spec='${libname}.dll.lib'
11287
11288 case $build_os in
11289 mingw*)
11290 sys_lib_search_path_spec=
11291 lt_save_ifs=$IFS
11292 IFS=';'
11293 for lt_path in $LIB
11294 do
11295 IFS=$lt_save_ifs
11296 # Let DOS variable expansion print the short 8.3 style file name.
11297 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11298 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11299 done
11300 IFS=$lt_save_ifs
11301 # Convert to MSYS style.
11302 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11303 ;;
11304 cygwin*)
11305 # Convert to unix form, then to dos form, then back to unix form
11306 # but this time dos style (no spaces!) so that the unix form looks
11307 # like /cygdrive/c/PROGRA~1:/cygdr...
11308 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11309 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11310 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11311 ;;
11312 *)
11313 sys_lib_search_path_spec="$LIB"
11314 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11315 # It is most probably a Windows format PATH.
11316 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11317 else
11318 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11319 fi
11320 # FIXME: find the short name or the path components, as spaces are
11321 # common. (e.g. "Program Files" -> "PROGRA~1")
11322 ;;
11323 esac
11324
11325 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11326 postinstall_cmds='base_file=`basename \${file}`~
11327 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11328 dldir=$destdir/`dirname \$dlpath`~
11329 test -d \$dldir || mkdir -p \$dldir~
11330 $install_prog $dir/$dlname \$dldir/$dlname'
11331 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11332 dlpath=$dir/\$dldll~
11333 $RM \$dlpath'
11334 shlibpath_overrides_runpath=yes
11335 dynamic_linker='Win32 link.exe'
11336 ;;
11337
11338 *)
11339 # Assume MSVC wrapper
11340 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11341 dynamic_linker='Win32 ld.exe'
11342 ;;
11343 esac
11344 # FIXME: first we should search . and the directory the executable is in
11345 shlibpath_var=PATH
11346 ;;
11347
11348 darwin* | rhapsody*)
11349 dynamic_linker="$host_os dyld"
11350 version_type=darwin
11351 need_lib_prefix=no
11352 need_version=no
11353 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11354 soname_spec='${libname}${release}${major}$shared_ext'
11355 shlibpath_overrides_runpath=yes
11356 shlibpath_var=DYLD_LIBRARY_PATH
11357 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11358
11359 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11360 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11361 ;;
11362
11363 dgux*)
11364 version_type=linux # correct to gnu/linux during the next big refactor
11365 need_lib_prefix=no
11366 need_version=no
11367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11368 soname_spec='${libname}${release}${shared_ext}$major'
11369 shlibpath_var=LD_LIBRARY_PATH
11370 ;;
11371
11372 freebsd* | dragonfly*)
11373 # DragonFly does not have aout. When/if they implement a new
11374 # versioning mechanism, adjust this.
11375 if test -x /usr/bin/objformat; then
11376 objformat=`/usr/bin/objformat`
11377 else
11378 case $host_os in
11379 freebsd[23].*) objformat=aout ;;
11380 *) objformat=elf ;;
11381 esac
11382 fi
11383 version_type=freebsd-$objformat
11384 case $version_type in
11385 freebsd-elf*)
11386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11387 need_version=no
11388 need_lib_prefix=no
11389 ;;
11390 freebsd-*)
11391 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11392 need_version=yes
11393 ;;
11394 esac
11395 shlibpath_var=LD_LIBRARY_PATH
11396 case $host_os in
11397 freebsd2.*)
11398 shlibpath_overrides_runpath=yes
11399 ;;
11400 freebsd3.[01]* | freebsdelf3.[01]*)
11401 shlibpath_overrides_runpath=yes
11402 hardcode_into_libs=yes
11403 ;;
11404 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11405 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11406 shlibpath_overrides_runpath=no
11407 hardcode_into_libs=yes
11408 ;;
11409 *) # from 4.6 on, and DragonFly
11410 shlibpath_overrides_runpath=yes
11411 hardcode_into_libs=yes
11412 ;;
11413 esac
11414 ;;
11415
11416 haiku*)
11417 version_type=linux # correct to gnu/linux during the next big refactor
11418 need_lib_prefix=no
11419 need_version=no
11420 dynamic_linker="$host_os runtime_loader"
11421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11422 soname_spec='${libname}${release}${shared_ext}$major'
11423 shlibpath_var=LIBRARY_PATH
11424 shlibpath_overrides_runpath=yes
11425 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11426 hardcode_into_libs=yes
11427 ;;
11428
11429 hpux9* | hpux10* | hpux11*)
11430 # Give a soname corresponding to the major version so that dld.sl refuses to
11431 # link against other versions.
11432 version_type=sunos
11433 need_lib_prefix=no
11434 need_version=no
11435 case $host_cpu in
11436 ia64*)
11437 shrext_cmds='.so'
11438 hardcode_into_libs=yes
11439 dynamic_linker="$host_os dld.so"
11440 shlibpath_var=LD_LIBRARY_PATH
11441 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11443 soname_spec='${libname}${release}${shared_ext}$major'
11444 if test "X$HPUX_IA64_MODE" = X32; then
11445 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11446 else
11447 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11448 fi
11449 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11450 ;;
11451 hppa*64*)
11452 shrext_cmds='.sl'
11453 hardcode_into_libs=yes
11454 dynamic_linker="$host_os dld.sl"
11455 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11456 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11458 soname_spec='${libname}${release}${shared_ext}$major'
11459 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11460 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11461 ;;
11462 *)
11463 shrext_cmds='.sl'
11464 dynamic_linker="$host_os dld.sl"
11465 shlibpath_var=SHLIB_PATH
11466 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11468 soname_spec='${libname}${release}${shared_ext}$major'
11469 ;;
11470 esac
11471 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11472 postinstall_cmds='chmod 555 $lib'
11473 # or fails outright, so override atomically:
11474 install_override_mode=555
11475 ;;
11476
11477 interix[3-9]*)
11478 version_type=linux # correct to gnu/linux during the next big refactor
11479 need_lib_prefix=no
11480 need_version=no
11481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11482 soname_spec='${libname}${release}${shared_ext}$major'
11483 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11484 shlibpath_var=LD_LIBRARY_PATH
11485 shlibpath_overrides_runpath=no
11486 hardcode_into_libs=yes
11487 ;;
11488
11489 irix5* | irix6* | nonstopux*)
11490 case $host_os in
11491 nonstopux*) version_type=nonstopux ;;
11492 *)
11493 if test "$lt_cv_prog_gnu_ld" = yes; then
11494 version_type=linux # correct to gnu/linux during the next big refactor
11495 else
11496 version_type=irix
11497 fi ;;
11498 esac
11499 need_lib_prefix=no
11500 need_version=no
11501 soname_spec='${libname}${release}${shared_ext}$major'
11502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11503 case $host_os in
11504 irix5* | nonstopux*)
11505 libsuff= shlibsuff=
11506 ;;
11507 *)
11508 case $LD in # libtool.m4 will add one of these switches to LD
11509 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11510 libsuff= shlibsuff= libmagic=32-bit;;
11511 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11512 libsuff=32 shlibsuff=N32 libmagic=N32;;
11513 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11514 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11515 *) libsuff= shlibsuff= libmagic=never-match;;
11516 esac
11517 ;;
11518 esac
11519 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11520 shlibpath_overrides_runpath=no
11521 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11522 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11523 hardcode_into_libs=yes
11524 ;;
11525
11526 # No shared lib support for Linux oldld, aout, or coff.
11527 linux*oldld* | linux*aout* | linux*coff*)
11528 dynamic_linker=no
11529 ;;
11530
11531 # This must be glibc/ELF.
11532 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11533 version_type=linux # correct to gnu/linux during the next big refactor
11534 need_lib_prefix=no
11535 need_version=no
11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11537 soname_spec='${libname}${release}${shared_ext}$major'
11538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11539 shlibpath_var=LD_LIBRARY_PATH
11540 shlibpath_overrides_runpath=no
11541
11542 # Some binutils ld are patched to set DT_RUNPATH
11543 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11544 $as_echo_n "(cached) " >&6
11545 else
11546 lt_cv_shlibpath_overrides_runpath=no
11547 save_LDFLAGS=$LDFLAGS
11548 save_libdir=$libdir
11549 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11550 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11552 /* end confdefs.h. */
11553
11554 int
11555 main ()
11556 {
11557
11558 ;
11559 return 0;
11560 }
11561 _ACEOF
11562 if ac_fn_c_try_link "$LINENO"; then :
11563 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11564 lt_cv_shlibpath_overrides_runpath=yes
11565 fi
11566 fi
11567 rm -f core conftest.err conftest.$ac_objext \
11568 conftest$ac_exeext conftest.$ac_ext
11569 LDFLAGS=$save_LDFLAGS
11570 libdir=$save_libdir
11571
11572 fi
11573
11574 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11575
11576 # This implies no fast_install, which is unacceptable.
11577 # Some rework will be needed to allow for fast_install
11578 # before this can be enabled.
11579 hardcode_into_libs=yes
11580
11581 # Append ld.so.conf contents to the search path
11582 if test -f /etc/ld.so.conf; then
11583 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11584 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11585 fi
11586
11587 # We used to test for /lib/ld.so.1 and disable shared libraries on
11588 # powerpc, because MkLinux only supported shared libraries with the
11589 # GNU dynamic linker. Since this was broken with cross compilers,
11590 # most powerpc-linux boxes support dynamic linking these days and
11591 # people can always --disable-shared, the test was removed, and we
11592 # assume the GNU/Linux dynamic linker is in use.
11593 dynamic_linker='GNU/Linux ld.so'
11594 ;;
11595
11596 netbsdelf*-gnu)
11597 version_type=linux
11598 need_lib_prefix=no
11599 need_version=no
11600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11601 soname_spec='${libname}${release}${shared_ext}$major'
11602 shlibpath_var=LD_LIBRARY_PATH
11603 shlibpath_overrides_runpath=no
11604 hardcode_into_libs=yes
11605 dynamic_linker='NetBSD ld.elf_so'
11606 ;;
11607
11608 netbsd*)
11609 version_type=sunos
11610 need_lib_prefix=no
11611 need_version=no
11612 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11615 dynamic_linker='NetBSD (a.out) ld.so'
11616 else
11617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11618 soname_spec='${libname}${release}${shared_ext}$major'
11619 dynamic_linker='NetBSD ld.elf_so'
11620 fi
11621 shlibpath_var=LD_LIBRARY_PATH
11622 shlibpath_overrides_runpath=yes
11623 hardcode_into_libs=yes
11624 ;;
11625
11626 newsos6)
11627 version_type=linux # correct to gnu/linux during the next big refactor
11628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11629 shlibpath_var=LD_LIBRARY_PATH
11630 shlibpath_overrides_runpath=yes
11631 ;;
11632
11633 *nto* | *qnx*)
11634 version_type=qnx
11635 need_lib_prefix=no
11636 need_version=no
11637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11638 soname_spec='${libname}${release}${shared_ext}$major'
11639 shlibpath_var=LD_LIBRARY_PATH
11640 shlibpath_overrides_runpath=no
11641 hardcode_into_libs=yes
11642 dynamic_linker='ldqnx.so'
11643 ;;
11644
11645 openbsd*)
11646 version_type=sunos
11647 sys_lib_dlsearch_path_spec="/usr/lib"
11648 need_lib_prefix=no
11649 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11650 case $host_os in
11651 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11652 *) need_version=no ;;
11653 esac
11654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11656 shlibpath_var=LD_LIBRARY_PATH
11657 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11658 case $host_os in
11659 openbsd2.[89] | openbsd2.[89].*)
11660 shlibpath_overrides_runpath=no
11661 ;;
11662 *)
11663 shlibpath_overrides_runpath=yes
11664 ;;
11665 esac
11666 else
11667 shlibpath_overrides_runpath=yes
11668 fi
11669 ;;
11670
11671 os2*)
11672 libname_spec='$name'
11673 shrext_cmds=".dll"
11674 need_lib_prefix=no
11675 library_names_spec='$libname${shared_ext} $libname.a'
11676 dynamic_linker='OS/2 ld.exe'
11677 shlibpath_var=LIBPATH
11678 ;;
11679
11680 osf3* | osf4* | osf5*)
11681 version_type=osf
11682 need_lib_prefix=no
11683 need_version=no
11684 soname_spec='${libname}${release}${shared_ext}$major'
11685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11686 shlibpath_var=LD_LIBRARY_PATH
11687 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11688 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11689 ;;
11690
11691 rdos*)
11692 dynamic_linker=no
11693 ;;
11694
11695 solaris*)
11696 version_type=linux # correct to gnu/linux during the next big refactor
11697 need_lib_prefix=no
11698 need_version=no
11699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11700 soname_spec='${libname}${release}${shared_ext}$major'
11701 shlibpath_var=LD_LIBRARY_PATH
11702 shlibpath_overrides_runpath=yes
11703 hardcode_into_libs=yes
11704 # ldd complains unless libraries are executable
11705 postinstall_cmds='chmod +x $lib'
11706 ;;
11707
11708 sunos4*)
11709 version_type=sunos
11710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11711 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11712 shlibpath_var=LD_LIBRARY_PATH
11713 shlibpath_overrides_runpath=yes
11714 if test "$with_gnu_ld" = yes; then
11715 need_lib_prefix=no
11716 fi
11717 need_version=yes
11718 ;;
11719
11720 sysv4 | sysv4.3*)
11721 version_type=linux # correct to gnu/linux during the next big refactor
11722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11723 soname_spec='${libname}${release}${shared_ext}$major'
11724 shlibpath_var=LD_LIBRARY_PATH
11725 case $host_vendor in
11726 sni)
11727 shlibpath_overrides_runpath=no
11728 need_lib_prefix=no
11729 runpath_var=LD_RUN_PATH
11730 ;;
11731 siemens)
11732 need_lib_prefix=no
11733 ;;
11734 motorola)
11735 need_lib_prefix=no
11736 need_version=no
11737 shlibpath_overrides_runpath=no
11738 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11739 ;;
11740 esac
11741 ;;
11742
11743 sysv4*MP*)
11744 if test -d /usr/nec ;then
11745 version_type=linux # correct to gnu/linux during the next big refactor
11746 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11747 soname_spec='$libname${shared_ext}.$major'
11748 shlibpath_var=LD_LIBRARY_PATH
11749 fi
11750 ;;
11751
11752 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11753 version_type=freebsd-elf
11754 need_lib_prefix=no
11755 need_version=no
11756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11757 soname_spec='${libname}${release}${shared_ext}$major'
11758 shlibpath_var=LD_LIBRARY_PATH
11759 shlibpath_overrides_runpath=yes
11760 hardcode_into_libs=yes
11761 if test "$with_gnu_ld" = yes; then
11762 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11763 else
11764 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11765 case $host_os in
11766 sco3.2v5*)
11767 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11768 ;;
11769 esac
11770 fi
11771 sys_lib_dlsearch_path_spec='/usr/lib'
11772 ;;
11773
11774 tpf*)
11775 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11776 version_type=linux # correct to gnu/linux during the next big refactor
11777 need_lib_prefix=no
11778 need_version=no
11779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11780 shlibpath_var=LD_LIBRARY_PATH
11781 shlibpath_overrides_runpath=no
11782 hardcode_into_libs=yes
11783 ;;
11784
11785 uts4*)
11786 version_type=linux # correct to gnu/linux during the next big refactor
11787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11788 soname_spec='${libname}${release}${shared_ext}$major'
11789 shlibpath_var=LD_LIBRARY_PATH
11790 ;;
11791
11792 *)
11793 dynamic_linker=no
11794 ;;
11795 esac
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11797 $as_echo "$dynamic_linker" >&6; }
11798 test "$dynamic_linker" = no && can_build_shared=no
11799
11800 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11801 if test "$GCC" = yes; then
11802 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11803 fi
11804
11805 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11806 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11807 fi
11808 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11809 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11810 fi
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11904 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11905 hardcode_action=
11906 if test -n "$hardcode_libdir_flag_spec" ||
11907 test -n "$runpath_var" ||
11908 test "X$hardcode_automatic" = "Xyes" ; then
11909
11910 # We can hardcode non-existent directories.
11911 if test "$hardcode_direct" != no &&
11912 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11913 # have to relink, otherwise we might link with an installed library
11914 # when we should be linking with a yet-to-be-installed one
11915 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11916 test "$hardcode_minus_L" != no; then
11917 # Linking always hardcodes the temporary library directory.
11918 hardcode_action=relink
11919 else
11920 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11921 hardcode_action=immediate
11922 fi
11923 else
11924 # We cannot hardcode anything, or else we can only hardcode existing
11925 # directories.
11926 hardcode_action=unsupported
11927 fi
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11929 $as_echo "$hardcode_action" >&6; }
11930
11931 if test "$hardcode_action" = relink ||
11932 test "$inherit_rpath" = yes; then
11933 # Fast installation is not supported
11934 enable_fast_install=no
11935 elif test "$shlibpath_overrides_runpath" = yes ||
11936 test "$enable_shared" = no; then
11937 # Fast installation is not necessary
11938 enable_fast_install=needless
11939 fi
11940
11941
11942
11943
11944
11945
11946 if test "x$enable_dlopen" != xyes; then
11947 enable_dlopen=unknown
11948 enable_dlopen_self=unknown
11949 enable_dlopen_self_static=unknown
11950 else
11951 lt_cv_dlopen=no
11952 lt_cv_dlopen_libs=
11953
11954 case $host_os in
11955 beos*)
11956 lt_cv_dlopen="load_add_on"
11957 lt_cv_dlopen_libs=
11958 lt_cv_dlopen_self=yes
11959 ;;
11960
11961 mingw* | pw32* | cegcc*)
11962 lt_cv_dlopen="LoadLibrary"
11963 lt_cv_dlopen_libs=
11964 ;;
11965
11966 cygwin*)
11967 lt_cv_dlopen="dlopen"
11968 lt_cv_dlopen_libs=
11969 ;;
11970
11971 darwin*)
11972 # if libdl is installed we need to link against it
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11974 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11975 if ${ac_cv_lib_dl_dlopen+:} false; then :
11976 $as_echo_n "(cached) " >&6
11977 else
11978 ac_check_lib_save_LIBS=$LIBS
11979 LIBS="-ldl $LIBS"
11980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11981 /* end confdefs.h. */
11982
11983 /* Override any GCC internal prototype to avoid an error.
11984 Use char because int might match the return type of a GCC
11985 builtin and then its argument prototype would still apply. */
11986 #ifdef __cplusplus
11987 extern "C"
11988 #endif
11989 char dlopen ();
11990 int
11991 main ()
11992 {
11993 return dlopen ();
11994 ;
11995 return 0;
11996 }
11997 _ACEOF
11998 if ac_fn_c_try_link "$LINENO"; then :
11999 ac_cv_lib_dl_dlopen=yes
12000 else
12001 ac_cv_lib_dl_dlopen=no
12002 fi
12003 rm -f core conftest.err conftest.$ac_objext \
12004 conftest$ac_exeext conftest.$ac_ext
12005 LIBS=$ac_check_lib_save_LIBS
12006 fi
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12008 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12009 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12010 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12011 else
12012
12013 lt_cv_dlopen="dyld"
12014 lt_cv_dlopen_libs=
12015 lt_cv_dlopen_self=yes
12016
12017 fi
12018
12019 ;;
12020
12021 *)
12022 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12023 if test "x$ac_cv_func_shl_load" = xyes; then :
12024 lt_cv_dlopen="shl_load"
12025 else
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12027 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12028 if ${ac_cv_lib_dld_shl_load+:} false; then :
12029 $as_echo_n "(cached) " >&6
12030 else
12031 ac_check_lib_save_LIBS=$LIBS
12032 LIBS="-ldld $LIBS"
12033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12034 /* end confdefs.h. */
12035
12036 /* Override any GCC internal prototype to avoid an error.
12037 Use char because int might match the return type of a GCC
12038 builtin and then its argument prototype would still apply. */
12039 #ifdef __cplusplus
12040 extern "C"
12041 #endif
12042 char shl_load ();
12043 int
12044 main ()
12045 {
12046 return shl_load ();
12047 ;
12048 return 0;
12049 }
12050 _ACEOF
12051 if ac_fn_c_try_link "$LINENO"; then :
12052 ac_cv_lib_dld_shl_load=yes
12053 else
12054 ac_cv_lib_dld_shl_load=no
12055 fi
12056 rm -f core conftest.err conftest.$ac_objext \
12057 conftest$ac_exeext conftest.$ac_ext
12058 LIBS=$ac_check_lib_save_LIBS
12059 fi
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12061 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12062 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12063 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12064 else
12065 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12066 if test "x$ac_cv_func_dlopen" = xyes; then :
12067 lt_cv_dlopen="dlopen"
12068 else
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12070 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12071 if ${ac_cv_lib_dl_dlopen+:} false; then :
12072 $as_echo_n "(cached) " >&6
12073 else
12074 ac_check_lib_save_LIBS=$LIBS
12075 LIBS="-ldl $LIBS"
12076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12077 /* end confdefs.h. */
12078
12079 /* Override any GCC internal prototype to avoid an error.
12080 Use char because int might match the return type of a GCC
12081 builtin and then its argument prototype would still apply. */
12082 #ifdef __cplusplus
12083 extern "C"
12084 #endif
12085 char dlopen ();
12086 int
12087 main ()
12088 {
12089 return dlopen ();
12090 ;
12091 return 0;
12092 }
12093 _ACEOF
12094 if ac_fn_c_try_link "$LINENO"; then :
12095 ac_cv_lib_dl_dlopen=yes
12096 else
12097 ac_cv_lib_dl_dlopen=no
12098 fi
12099 rm -f core conftest.err conftest.$ac_objext \
12100 conftest$ac_exeext conftest.$ac_ext
12101 LIBS=$ac_check_lib_save_LIBS
12102 fi
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12104 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12105 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12107 else
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12109 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12110 if ${ac_cv_lib_svld_dlopen+:} false; then :
12111 $as_echo_n "(cached) " >&6
12112 else
12113 ac_check_lib_save_LIBS=$LIBS
12114 LIBS="-lsvld $LIBS"
12115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12116 /* end confdefs.h. */
12117
12118 /* Override any GCC internal prototype to avoid an error.
12119 Use char because int might match the return type of a GCC
12120 builtin and then its argument prototype would still apply. */
12121 #ifdef __cplusplus
12122 extern "C"
12123 #endif
12124 char dlopen ();
12125 int
12126 main ()
12127 {
12128 return dlopen ();
12129 ;
12130 return 0;
12131 }
12132 _ACEOF
12133 if ac_fn_c_try_link "$LINENO"; then :
12134 ac_cv_lib_svld_dlopen=yes
12135 else
12136 ac_cv_lib_svld_dlopen=no
12137 fi
12138 rm -f core conftest.err conftest.$ac_objext \
12139 conftest$ac_exeext conftest.$ac_ext
12140 LIBS=$ac_check_lib_save_LIBS
12141 fi
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12143 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12144 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12145 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12146 else
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12148 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12149 if ${ac_cv_lib_dld_dld_link+:} false; then :
12150 $as_echo_n "(cached) " >&6
12151 else
12152 ac_check_lib_save_LIBS=$LIBS
12153 LIBS="-ldld $LIBS"
12154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12155 /* end confdefs.h. */
12156
12157 /* Override any GCC internal prototype to avoid an error.
12158 Use char because int might match the return type of a GCC
12159 builtin and then its argument prototype would still apply. */
12160 #ifdef __cplusplus
12161 extern "C"
12162 #endif
12163 char dld_link ();
12164 int
12165 main ()
12166 {
12167 return dld_link ();
12168 ;
12169 return 0;
12170 }
12171 _ACEOF
12172 if ac_fn_c_try_link "$LINENO"; then :
12173 ac_cv_lib_dld_dld_link=yes
12174 else
12175 ac_cv_lib_dld_dld_link=no
12176 fi
12177 rm -f core conftest.err conftest.$ac_objext \
12178 conftest$ac_exeext conftest.$ac_ext
12179 LIBS=$ac_check_lib_save_LIBS
12180 fi
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12182 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12183 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12184 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12185 fi
12186
12187
12188 fi
12189
12190
12191 fi
12192
12193
12194 fi
12195
12196
12197 fi
12198
12199
12200 fi
12201
12202 ;;
12203 esac
12204
12205 if test "x$lt_cv_dlopen" != xno; then
12206 enable_dlopen=yes
12207 else
12208 enable_dlopen=no
12209 fi
12210
12211 case $lt_cv_dlopen in
12212 dlopen)
12213 save_CPPFLAGS="$CPPFLAGS"
12214 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12215
12216 save_LDFLAGS="$LDFLAGS"
12217 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12218
12219 save_LIBS="$LIBS"
12220 LIBS="$lt_cv_dlopen_libs $LIBS"
12221
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12223 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12224 if ${lt_cv_dlopen_self+:} false; then :
12225 $as_echo_n "(cached) " >&6
12226 else
12227 if test "$cross_compiling" = yes; then :
12228 lt_cv_dlopen_self=cross
12229 else
12230 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12231 lt_status=$lt_dlunknown
12232 cat > conftest.$ac_ext <<_LT_EOF
12233 #line $LINENO "configure"
12234 #include "confdefs.h"
12235
12236 #if HAVE_DLFCN_H
12237 #include <dlfcn.h>
12238 #endif
12239
12240 #include <stdio.h>
12241
12242 #ifdef RTLD_GLOBAL
12243 # define LT_DLGLOBAL RTLD_GLOBAL
12244 #else
12245 # ifdef DL_GLOBAL
12246 # define LT_DLGLOBAL DL_GLOBAL
12247 # else
12248 # define LT_DLGLOBAL 0
12249 # endif
12250 #endif
12251
12252 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12253 find out it does not work in some platform. */
12254 #ifndef LT_DLLAZY_OR_NOW
12255 # ifdef RTLD_LAZY
12256 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12257 # else
12258 # ifdef DL_LAZY
12259 # define LT_DLLAZY_OR_NOW DL_LAZY
12260 # else
12261 # ifdef RTLD_NOW
12262 # define LT_DLLAZY_OR_NOW RTLD_NOW
12263 # else
12264 # ifdef DL_NOW
12265 # define LT_DLLAZY_OR_NOW DL_NOW
12266 # else
12267 # define LT_DLLAZY_OR_NOW 0
12268 # endif
12269 # endif
12270 # endif
12271 # endif
12272 #endif
12273
12274 /* When -fvisbility=hidden is used, assume the code has been annotated
12275 correspondingly for the symbols needed. */
12276 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12277 int fnord () __attribute__((visibility("default")));
12278 #endif
12279
12280 int fnord () { return 42; }
12281 int main ()
12282 {
12283 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12284 int status = $lt_dlunknown;
12285
12286 if (self)
12287 {
12288 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12289 else
12290 {
12291 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12292 else puts (dlerror ());
12293 }
12294 /* dlclose (self); */
12295 }
12296 else
12297 puts (dlerror ());
12298
12299 return status;
12300 }
12301 _LT_EOF
12302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12303 (eval $ac_link) 2>&5
12304 ac_status=$?
12305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12306 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12307 (./conftest; exit; ) >&5 2>/dev/null
12308 lt_status=$?
12309 case x$lt_status in
12310 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12311 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12312 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12313 esac
12314 else :
12315 # compilation failed
12316 lt_cv_dlopen_self=no
12317 fi
12318 fi
12319 rm -fr conftest*
12320
12321
12322 fi
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12324 $as_echo "$lt_cv_dlopen_self" >&6; }
12325
12326 if test "x$lt_cv_dlopen_self" = xyes; then
12327 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12329 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12330 if ${lt_cv_dlopen_self_static+:} false; then :
12331 $as_echo_n "(cached) " >&6
12332 else
12333 if test "$cross_compiling" = yes; then :
12334 lt_cv_dlopen_self_static=cross
12335 else
12336 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12337 lt_status=$lt_dlunknown
12338 cat > conftest.$ac_ext <<_LT_EOF
12339 #line $LINENO "configure"
12340 #include "confdefs.h"
12341
12342 #if HAVE_DLFCN_H
12343 #include <dlfcn.h>
12344 #endif
12345
12346 #include <stdio.h>
12347
12348 #ifdef RTLD_GLOBAL
12349 # define LT_DLGLOBAL RTLD_GLOBAL
12350 #else
12351 # ifdef DL_GLOBAL
12352 # define LT_DLGLOBAL DL_GLOBAL
12353 # else
12354 # define LT_DLGLOBAL 0
12355 # endif
12356 #endif
12357
12358 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12359 find out it does not work in some platform. */
12360 #ifndef LT_DLLAZY_OR_NOW
12361 # ifdef RTLD_LAZY
12362 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12363 # else
12364 # ifdef DL_LAZY
12365 # define LT_DLLAZY_OR_NOW DL_LAZY
12366 # else
12367 # ifdef RTLD_NOW
12368 # define LT_DLLAZY_OR_NOW RTLD_NOW
12369 # else
12370 # ifdef DL_NOW
12371 # define LT_DLLAZY_OR_NOW DL_NOW
12372 # else
12373 # define LT_DLLAZY_OR_NOW 0
12374 # endif
12375 # endif
12376 # endif
12377 # endif
12378 #endif
12379
12380 /* When -fvisbility=hidden is used, assume the code has been annotated
12381 correspondingly for the symbols needed. */
12382 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12383 int fnord () __attribute__((visibility("default")));
12384 #endif
12385
12386 int fnord () { return 42; }
12387 int main ()
12388 {
12389 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12390 int status = $lt_dlunknown;
12391
12392 if (self)
12393 {
12394 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12395 else
12396 {
12397 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12398 else puts (dlerror ());
12399 }
12400 /* dlclose (self); */
12401 }
12402 else
12403 puts (dlerror ());
12404
12405 return status;
12406 }
12407 _LT_EOF
12408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12409 (eval $ac_link) 2>&5
12410 ac_status=$?
12411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12412 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12413 (./conftest; exit; ) >&5 2>/dev/null
12414 lt_status=$?
12415 case x$lt_status in
12416 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12417 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12418 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12419 esac
12420 else :
12421 # compilation failed
12422 lt_cv_dlopen_self_static=no
12423 fi
12424 fi
12425 rm -fr conftest*
12426
12427
12428 fi
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12430 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12431 fi
12432
12433 CPPFLAGS="$save_CPPFLAGS"
12434 LDFLAGS="$save_LDFLAGS"
12435 LIBS="$save_LIBS"
12436 ;;
12437 esac
12438
12439 case $lt_cv_dlopen_self in
12440 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12441 *) enable_dlopen_self=unknown ;;
12442 esac
12443
12444 case $lt_cv_dlopen_self_static in
12445 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12446 *) enable_dlopen_self_static=unknown ;;
12447 esac
12448 fi
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466 striplib=
12467 old_striplib=
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12469 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12470 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12471 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12472 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12474 $as_echo "yes" >&6; }
12475 else
12476 # FIXME - insert some real tests, host_os isn't really good enough
12477 case $host_os in
12478 darwin*)
12479 if test -n "$STRIP" ; then
12480 striplib="$STRIP -x"
12481 old_striplib="$STRIP -S"
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12483 $as_echo "yes" >&6; }
12484 else
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12486 $as_echo "no" >&6; }
12487 fi
12488 ;;
12489 *)
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491 $as_echo "no" >&6; }
12492 ;;
12493 esac
12494 fi
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507 # Report which library types will actually be built
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12509 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12511 $as_echo "$can_build_shared" >&6; }
12512
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12514 $as_echo_n "checking whether to build shared libraries... " >&6; }
12515 test "$can_build_shared" = "no" && enable_shared=no
12516
12517 # On AIX, shared libraries and static libraries use the same namespace, and
12518 # are all built from PIC.
12519 case $host_os in
12520 aix3*)
12521 test "$enable_shared" = yes && enable_static=no
12522 if test -n "$RANLIB"; then
12523 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12524 postinstall_cmds='$RANLIB $lib'
12525 fi
12526 ;;
12527
12528 aix[4-9]*)
12529 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12530 test "$enable_shared" = yes && enable_static=no
12531 fi
12532 ;;
12533 esac
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12535 $as_echo "$enable_shared" >&6; }
12536
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12538 $as_echo_n "checking whether to build static libraries... " >&6; }
12539 # Make sure either enable_shared or enable_static is yes.
12540 test "$enable_shared" = yes || enable_static=yes
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12542 $as_echo "$enable_static" >&6; }
12543
12544
12545
12546
12547 fi
12548 ac_ext=c
12549 ac_cpp='$CPP $CPPFLAGS'
12550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12553
12554 CC="$lt_save_CC"
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570 ac_config_commands="$ac_config_commands libtool"
12571
12572
12573
12574
12575 # Only expand once:
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12587 if test -n "$ac_tool_prefix"; then
12588 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12589 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12591 $as_echo_n "checking for $ac_word... " >&6; }
12592 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12593 $as_echo_n "(cached) " >&6
12594 else
12595 case $PKG_CONFIG in
12596 [\\/]* | ?:[\\/]*)
12597 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12598 ;;
12599 *)
12600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12601 for as_dir in $PATH
12602 do
12603 IFS=$as_save_IFS
12604 test -z "$as_dir" && as_dir=.
12605 for ac_exec_ext in '' $ac_executable_extensions; do
12606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12607 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12609 break 2
12610 fi
12611 done
12612 done
12613 IFS=$as_save_IFS
12614
12615 ;;
12616 esac
12617 fi
12618 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12619 if test -n "$PKG_CONFIG"; then
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12621 $as_echo "$PKG_CONFIG" >&6; }
12622 else
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624 $as_echo "no" >&6; }
12625 fi
12626
12627
12628 fi
12629 if test -z "$ac_cv_path_PKG_CONFIG"; then
12630 ac_pt_PKG_CONFIG=$PKG_CONFIG
12631 # Extract the first word of "pkg-config", so it can be a program name with args.
12632 set dummy pkg-config; ac_word=$2
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12634 $as_echo_n "checking for $ac_word... " >&6; }
12635 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12636 $as_echo_n "(cached) " >&6
12637 else
12638 case $ac_pt_PKG_CONFIG in
12639 [\\/]* | ?:[\\/]*)
12640 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12641 ;;
12642 *)
12643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12644 for as_dir in $PATH
12645 do
12646 IFS=$as_save_IFS
12647 test -z "$as_dir" && as_dir=.
12648 for ac_exec_ext in '' $ac_executable_extensions; do
12649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12650 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12652 break 2
12653 fi
12654 done
12655 done
12656 IFS=$as_save_IFS
12657
12658 ;;
12659 esac
12660 fi
12661 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12662 if test -n "$ac_pt_PKG_CONFIG"; then
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12664 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12665 else
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12667 $as_echo "no" >&6; }
12668 fi
12669
12670 if test "x$ac_pt_PKG_CONFIG" = x; then
12671 PKG_CONFIG=""
12672 else
12673 case $cross_compiling:$ac_tool_warned in
12674 yes:)
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12677 ac_tool_warned=yes ;;
12678 esac
12679 PKG_CONFIG=$ac_pt_PKG_CONFIG
12680 fi
12681 else
12682 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12683 fi
12684
12685 fi
12686 if test -n "$PKG_CONFIG"; then
12687 _pkg_min_version=0.9.0
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12689 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12690 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12692 $as_echo "yes" >&6; }
12693 else
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12695 $as_echo "no" >&6; }
12696 PKG_CONFIG=""
12697 fi
12698 fi
12699
12700 pkg_failed=no
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
12702 $as_echo_n "checking for GTK... " >&6; }
12703
12704 if test -n "$GTK_CFLAGS"; then
12705 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
12706 elif test -n "$PKG_CONFIG"; then
12707 if test -n "$PKG_CONFIG" && \
12708 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 gdk-3.0 libxml-2.0\""; } >&5
12709 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 gdk-3.0 libxml-2.0") 2>&5
12710 ac_status=$?
12711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12712 test $ac_status = 0; }; then
12713 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 gdk-3.0 libxml-2.0" 2>/dev/null`
12714 test "x$?" != "x0" && pkg_failed=yes
12715 else
12716 pkg_failed=yes
12717 fi
12718 else
12719 pkg_failed=untried
12720 fi
12721 if test -n "$GTK_LIBS"; then
12722 pkg_cv_GTK_LIBS="$GTK_LIBS"
12723 elif test -n "$PKG_CONFIG"; then
12724 if test -n "$PKG_CONFIG" && \
12725 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 gdk-3.0 libxml-2.0\""; } >&5
12726 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 gdk-3.0 libxml-2.0") 2>&5
12727 ac_status=$?
12728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12729 test $ac_status = 0; }; then
12730 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 gdk-3.0 libxml-2.0" 2>/dev/null`
12731 test "x$?" != "x0" && pkg_failed=yes
12732 else
12733 pkg_failed=yes
12734 fi
12735 else
12736 pkg_failed=untried
12737 fi
12738
12739
12740
12741 if test $pkg_failed = yes; then
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12743 $as_echo "no" >&6; }
12744
12745 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12746 _pkg_short_errors_supported=yes
12747 else
12748 _pkg_short_errors_supported=no
12749 fi
12750 if test $_pkg_short_errors_supported = yes; then
12751 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 gdk-3.0 libxml-2.0" 2>&1`
12752 else
12753 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 gdk-3.0 libxml-2.0" 2>&1`
12754 fi
12755 # Put the nasty error message in config.log where it belongs
12756 echo "$GTK_PKG_ERRORS" >&5
12757
12758 exit
12759 elif test $pkg_failed = untried; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12761 $as_echo "no" >&6; }
12762 exit
12763 else
12764 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
12765 GTK_LIBS=$pkg_cv_GTK_LIBS
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12767 $as_echo "yes" >&6; }
12768
12769 fi
12770
12771
12772
12773 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
12774 if test "x$ac_cv_header_png_h" = xyes; then :
12775
12776 else
12777 as_fn_error $? "Please install libpng >= 1.0.12" "$LINENO" 5
12778 fi
12779
12780
12781
12782
12783 $as_echo "@%:@define HAVE_INET_ATON 1" >>confdefs.h
12784
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
12786 $as_echo_n "checking for inet_aton in -lc... " >&6; }
12787 if ${ac_cv_lib_c_inet_aton+:} false; then :
12788 $as_echo_n "(cached) " >&6
12789 else
12790 ac_check_lib_save_LIBS=$LIBS
12791 LIBS="-lc $LIBS"
12792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12793 /* end confdefs.h. */
12794
12795 /* Override any GCC internal prototype to avoid an error.
12796 Use char because int might match the return type of a GCC
12797 builtin and then its argument prototype would still apply. */
12798 #ifdef __cplusplus
12799 extern "C"
12800 #endif
12801 char inet_aton ();
12802 int
12803 main ()
12804 {
12805 return inet_aton ();
12806 ;
12807 return 0;
12808 }
12809 _ACEOF
12810 if ac_fn_c_try_link "$LINENO"; then :
12811 ac_cv_lib_c_inet_aton=yes
12812 else
12813 ac_cv_lib_c_inet_aton=no
12814 fi
12815 rm -f core conftest.err conftest.$ac_objext \
12816 conftest$ac_exeext conftest.$ac_ext
12817 LIBS=$ac_check_lib_save_LIBS
12818 fi
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
12820 $as_echo "$ac_cv_lib_c_inet_aton" >&6; }
12821 if test "x$ac_cv_lib_c_inet_aton" = xyes; then :
12822 $as_echo "@%:@define HAVE_INET_ATON 1" >>confdefs.h
12823
12824 fi
12825
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
12827 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
12828 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
12829 $as_echo_n "(cached) " >&6
12830 else
12831 ac_check_lib_save_LIBS=$LIBS
12832 LIBS="-lresolv $LIBS"
12833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12834 /* end confdefs.h. */
12835
12836 /* Override any GCC internal prototype to avoid an error.
12837 Use char because int might match the return type of a GCC
12838 builtin and then its argument prototype would still apply. */
12839 #ifdef __cplusplus
12840 extern "C"
12841 #endif
12842 char inet_aton ();
12843 int
12844 main ()
12845 {
12846 return inet_aton ();
12847 ;
12848 return 0;
12849 }
12850 _ACEOF
12851 if ac_fn_c_try_link "$LINENO"; then :
12852 ac_cv_lib_resolv_inet_aton=yes
12853 else
12854 ac_cv_lib_resolv_inet_aton=no
12855 fi
12856 rm -f core conftest.err conftest.$ac_objext \
12857 conftest$ac_exeext conftest.$ac_ext
12858 LIBS=$ac_check_lib_save_LIBS
12859 fi
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
12861 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
12862 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
12863 $as_echo "@%:@define HAVE_INET_ATON 1" >>confdefs.h
12864
12865 fi
12866
12867
12868
12869 cat >>confdefs.h <<_ACEOF
12870 @%:@define DEBUG 0
12871 _ACEOF
12872
12873
12874
12875 cat >>confdefs.h <<_ACEOF
12876 @%:@define PACKAGE "${PACKAGE}"
12877 _ACEOF
12878
12879
12880 cat >>confdefs.h <<_ACEOF
12881 @%:@define VERSION "${VERSION}"
12882 _ACEOF
12883
12884
12885
12886
12887 if test "x${datarootdir}" = 'x${prefix}/share'; then
12888 if test "x${prefix}" = "xNONE"; then
12889
12890 cat >>confdefs.h <<_ACEOF
12891 @%:@define PACKAGE_DATA_DIR "${ac_default_prefix}/share/${PACKAGE}"
12892 _ACEOF
12893
12894 else
12895
12896 cat >>confdefs.h <<_ACEOF
12897 @%:@define PACKAGE_DATA_DIR "${prefix}/share/${PACKAGE}"
12898 _ACEOF
12899
12900 fi
12901 else
12902
12903 cat >>confdefs.h <<_ACEOF
12904 @%:@define PACKAGE_DATA_DIR "${datadir}/${PACKAGE}"
12905 _ACEOF
12906
12907 fi
12908
12909 packagesrcdir=`cd $srcdir && pwd`
12910
12911 cat >>confdefs.h <<_ACEOF
12912 @%:@define PACKAGE_SOURCE_DIR "${packagesrcdir}"
12913 _ACEOF
12914
12915
12916 # if test "x$GCC" = "xyes"; then \
12917 # CFLAGS="-Wall -ffast-math -funroll-all-loops -fomit-frame-pointer -O9"; \
12918 # CFLAGS="-g"; \
12919 # fi
12920
12921 if test "x$GCC" = "xyes"; then \
12922 CFLAGS+=" -Wall -Wextra -ggdb"; \
12923 fi
12924
12925 ac_config_files="$ac_config_files Makefile src/Makefile"
12926
12927 cat >confcache <<\_ACEOF
12928 # This file is a shell script that caches the results of configure
12929 # tests run on this system so they can be shared between configure
12930 # scripts and configure runs, see configure's option --config-cache.
12931 # It is not useful on other systems. If it contains results you don't
12932 # want to keep, you may remove or edit it.
12933 #
12934 # config.status only pays attention to the cache file if you give it
12935 # the --recheck option to rerun configure.
12936 #
12937 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12938 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12939 # following values.
12940
12941 _ACEOF
12942
12943 # The following way of writing the cache mishandles newlines in values,
12944 # but we know of no workaround that is simple, portable, and efficient.
12945 # So, we kill variables containing newlines.
12946 # Ultrix sh set writes to stderr and can't be redirected directly,
12947 # and sets the high bit in the cache file unless we assign to the vars.
12948 (
12949 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12950 eval ac_val=\$$ac_var
12951 case $ac_val in #(
12952 *${as_nl}*)
12953 case $ac_var in #(
12954 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12955 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12956 esac
12957 case $ac_var in #(
12958 _ | IFS | as_nl) ;; #(
12959 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12960 *) { eval $ac_var=; unset $ac_var;} ;;
12961 esac ;;
12962 esac
12963 done
12964
12965 (set) 2>&1 |
12966 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12967 *${as_nl}ac_space=\ *)
12968 # `set' does not quote correctly, so add quotes: double-quote
12969 # substitution turns \\\\ into \\, and sed turns \\ into \.
12970 sed -n \
12971 "s/'/'\\\\''/g;
12972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12973 ;; #(
12974 *)
12975 # `set' quotes correctly as required by POSIX, so do not add quotes.
12976 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12977 ;;
12978 esac |
12979 sort
12980 ) |
12981 sed '
12982 /^ac_cv_env_/b end
12983 t clear
12984 :clear
12985 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12986 t end
12987 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12988 :end' >>confcache
12989 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12990 if test -w "$cache_file"; then
12991 if test "x$cache_file" != "x/dev/null"; then
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12993 $as_echo "$as_me: updating cache $cache_file" >&6;}
12994 if test ! -f "$cache_file" || test -h "$cache_file"; then
12995 cat confcache >"$cache_file"
12996 else
12997 case $cache_file in #(
12998 */* | ?:*)
12999 mv -f confcache "$cache_file"$$ &&
13000 mv -f "$cache_file"$$ "$cache_file" ;; #(
13001 *)
13002 mv -f confcache "$cache_file" ;;
13003 esac
13004 fi
13005 fi
13006 else
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13008 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13009 fi
13010 fi
13011 rm -f confcache
13012
13013 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13014 # Let make expand exec_prefix.
13015 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13016
13017 DEFS=-DHAVE_CONFIG_H
13018
13019 ac_libobjs=
13020 ac_ltlibobjs=
13021 U=
13022 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
13023 # 1. Remove the extension, and $U if already installed.
13024 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13025 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13026 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13027 # will be set to the directory where LIBOBJS objects are built.
13028 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13029 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13030 done
13031 LIB@&t@OBJS=$ac_libobjs
13032
13033 LTLIBOBJS=$ac_ltlibobjs
13034
13035
13036 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13037 as_fn_error $? "conditional \"AMDEP\" was never defined.
13038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13039 fi
13040 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13041 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13043 fi
13044 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13045 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13047 fi
13048 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13049 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13051 fi
13052
13053 : "${CONFIG_STATUS=./config.status}"
13054 ac_write_fail=0
13055 ac_clean_files_save=$ac_clean_files
13056 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13058 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13059 as_write_fail=0
13060 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13061 #! $SHELL
13062 # Generated by $as_me.
13063 # Run this file to recreate the current configuration.
13064 # Compiler output produced by configure, useful for debugging
13065 # configure, is in config.log if it exists.
13066
13067 debug=false
13068 ac_cs_recheck=false
13069 ac_cs_silent=false
13070
13071 SHELL=\${CONFIG_SHELL-$SHELL}
13072 export SHELL
13073 _ASEOF
13074 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13075 ## -------------------- ##
13076 ## M4sh Initialization. ##
13077 ## -------------------- ##
13078
13079 # Be more Bourne compatible
13080 DUALCASE=1; export DUALCASE # for MKS sh
13081 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13082 emulate sh
13083 NULLCMD=:
13084 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13085 # is contrary to our usage. Disable this feature.
13086 alias -g '${1+"$@"}'='"$@"'
13087 setopt NO_GLOB_SUBST
13088 else
13089 case `(set -o) 2>/dev/null` in @%:@(
13090 *posix*) :
13091 set -o posix ;; @%:@(
13092 *) :
13093 ;;
13094 esac
13095 fi
13096
13097
13098 as_nl='
13099 '
13100 export as_nl
13101 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13102 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13103 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13104 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13105 # Prefer a ksh shell builtin over an external printf program on Solaris,
13106 # but without wasting forks for bash or zsh.
13107 if test -z "$BASH_VERSION$ZSH_VERSION" \
13108 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13109 as_echo='print -r --'
13110 as_echo_n='print -rn --'
13111 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13112 as_echo='printf %s\n'
13113 as_echo_n='printf %s'
13114 else
13115 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13116 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13117 as_echo_n='/usr/ucb/echo -n'
13118 else
13119 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13120 as_echo_n_body='eval
13121 arg=$1;
13122 case $arg in @%:@(
13123 *"$as_nl"*)
13124 expr "X$arg" : "X\\(.*\\)$as_nl";
13125 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13126 esac;
13127 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13128 '
13129 export as_echo_n_body
13130 as_echo_n='sh -c $as_echo_n_body as_echo'
13131 fi
13132 export as_echo_body
13133 as_echo='sh -c $as_echo_body as_echo'
13134 fi
13135
13136 # The user is always right.
13137 if test "${PATH_SEPARATOR+set}" != set; then
13138 PATH_SEPARATOR=:
13139 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13140 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13141 PATH_SEPARATOR=';'
13142 }
13143 fi
13144
13145
13146 # IFS
13147 # We need space, tab and new line, in precisely that order. Quoting is
13148 # there to prevent editors from complaining about space-tab.
13149 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13150 # splitting by setting IFS to empty value.)
13151 IFS=" "" $as_nl"
13152
13153 # Find who we are. Look in the path if we contain no directory separator.
13154 as_myself=
13155 case $0 in @%:@((
13156 *[\\/]* ) as_myself=$0 ;;
13157 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13158 for as_dir in $PATH
13159 do
13160 IFS=$as_save_IFS
13161 test -z "$as_dir" && as_dir=.
13162 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13163 done
13164 IFS=$as_save_IFS
13165
13166 ;;
13167 esac
13168 # We did not find ourselves, most probably we were run as `sh COMMAND'
13169 # in which case we are not to be found in the path.
13170 if test "x$as_myself" = x; then
13171 as_myself=$0
13172 fi
13173 if test ! -f "$as_myself"; then
13174 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13175 exit 1
13176 fi
13177
13178 # Unset variables that we do not need and which cause bugs (e.g. in
13179 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13180 # suppresses any "Segmentation fault" message there. '((' could
13181 # trigger a bug in pdksh 5.2.14.
13182 for as_var in BASH_ENV ENV MAIL MAILPATH
13183 do eval test x\${$as_var+set} = xset \
13184 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13185 done
13186 PS1='$ '
13187 PS2='> '
13188 PS4='+ '
13189
13190 # NLS nuisances.
13191 LC_ALL=C
13192 export LC_ALL
13193 LANGUAGE=C
13194 export LANGUAGE
13195
13196 # CDPATH.
13197 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13198
13199
13200 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
13201 @%:@ ----------------------------------------
13202 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13203 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13204 @%:@ script with STATUS, using 1 if that was 0.
13205 as_fn_error ()
13206 {
13207 as_status=$1; test $as_status -eq 0 && as_status=1
13208 if test "$4"; then
13209 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13210 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13211 fi
13212 $as_echo "$as_me: error: $2" >&2
13213 as_fn_exit $as_status
13214 } @%:@ as_fn_error
13215
13216
13217 @%:@ as_fn_set_status STATUS
13218 @%:@ -----------------------
13219 @%:@ Set @S|@? to STATUS, without forking.
13220 as_fn_set_status ()
13221 {
13222 return $1
13223 } @%:@ as_fn_set_status
13224
13225 @%:@ as_fn_exit STATUS
13226 @%:@ -----------------
13227 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13228 as_fn_exit ()
13229 {
13230 set +e
13231 as_fn_set_status $1
13232 exit $1
13233 } @%:@ as_fn_exit
13234
13235 @%:@ as_fn_unset VAR
13236 @%:@ ---------------
13237 @%:@ Portably unset VAR.
13238 as_fn_unset ()
13239 {
13240 { eval $1=; unset $1;}
13241 }
13242 as_unset=as_fn_unset
13243 @%:@ as_fn_append VAR VALUE
13244 @%:@ ----------------------
13245 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
13246 @%:@ advantage of any shell optimizations that allow amortized linear growth over
13247 @%:@ repeated appends, instead of the typical quadratic growth present in naive
13248 @%:@ implementations.
13249 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13250 eval 'as_fn_append ()
13251 {
13252 eval $1+=\$2
13253 }'
13254 else
13255 as_fn_append ()
13256 {
13257 eval $1=\$$1\$2
13258 }
13259 fi # as_fn_append
13260
13261 @%:@ as_fn_arith ARG...
13262 @%:@ ------------------
13263 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
13264 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
13265 @%:@ must be portable across @S|@(()) and expr.
13266 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13267 eval 'as_fn_arith ()
13268 {
13269 as_val=$(( $* ))
13270 }'
13271 else
13272 as_fn_arith ()
13273 {
13274 as_val=`expr "$@" || test $? -eq 1`
13275 }
13276 fi # as_fn_arith
13277
13278
13279 if expr a : '\(a\)' >/dev/null 2>&1 &&
13280 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13281 as_expr=expr
13282 else
13283 as_expr=false
13284 fi
13285
13286 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13287 as_basename=basename
13288 else
13289 as_basename=false
13290 fi
13291
13292 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13293 as_dirname=dirname
13294 else
13295 as_dirname=false
13296 fi
13297
13298 as_me=`$as_basename -- "$0" ||
13299 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13300 X"$0" : 'X\(//\)$' \| \
13301 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13302 $as_echo X/"$0" |
13303 sed '/^.*\/\([^/][^/]*\)\/*$/{
13304 s//\1/
13305 q
13306 }
13307 /^X\/\(\/\/\)$/{
13308 s//\1/
13309 q
13310 }
13311 /^X\/\(\/\).*/{
13312 s//\1/
13313 q
13314 }
13315 s/.*/./; q'`
13316
13317 # Avoid depending upon Character Ranges.
13318 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13319 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13320 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13321 as_cr_digits='0123456789'
13322 as_cr_alnum=$as_cr_Letters$as_cr_digits
13323
13324 ECHO_C= ECHO_N= ECHO_T=
13325 case `echo -n x` in @%:@(((((
13326 -n*)
13327 case `echo 'xy\c'` in
13328 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13329 xy) ECHO_C='\c';;
13330 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13331 ECHO_T=' ';;
13332 esac;;
13333 *)
13334 ECHO_N='-n';;
13335 esac
13336
13337 rm -f conf$$ conf$$.exe conf$$.file
13338 if test -d conf$$.dir; then
13339 rm -f conf$$.dir/conf$$.file
13340 else
13341 rm -f conf$$.dir
13342 mkdir conf$$.dir 2>/dev/null
13343 fi
13344 if (echo >conf$$.file) 2>/dev/null; then
13345 if ln -s conf$$.file conf$$ 2>/dev/null; then
13346 as_ln_s='ln -s'
13347 # ... but there are two gotchas:
13348 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13349 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13350 # In both cases, we have to default to `cp -pR'.
13351 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13352 as_ln_s='cp -pR'
13353 elif ln conf$$.file conf$$ 2>/dev/null; then
13354 as_ln_s=ln
13355 else
13356 as_ln_s='cp -pR'
13357 fi
13358 else
13359 as_ln_s='cp -pR'
13360 fi
13361 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13362 rmdir conf$$.dir 2>/dev/null
13363
13364
13365 @%:@ as_fn_mkdir_p
13366 @%:@ -------------
13367 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
13368 as_fn_mkdir_p ()
13369 {
13370
13371 case $as_dir in #(
13372 -*) as_dir=./$as_dir;;
13373 esac
13374 test -d "$as_dir" || eval $as_mkdir_p || {
13375 as_dirs=
13376 while :; do
13377 case $as_dir in #(
13378 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13379 *) as_qdir=$as_dir;;
13380 esac
13381 as_dirs="'$as_qdir' $as_dirs"
13382 as_dir=`$as_dirname -- "$as_dir" ||
13383 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13384 X"$as_dir" : 'X\(//\)[^/]' \| \
13385 X"$as_dir" : 'X\(//\)$' \| \
13386 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13387 $as_echo X"$as_dir" |
13388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13389 s//\1/
13390 q
13391 }
13392 /^X\(\/\/\)[^/].*/{
13393 s//\1/
13394 q
13395 }
13396 /^X\(\/\/\)$/{
13397 s//\1/
13398 q
13399 }
13400 /^X\(\/\).*/{
13401 s//\1/
13402 q
13403 }
13404 s/.*/./; q'`
13405 test -d "$as_dir" && break
13406 done
13407 test -z "$as_dirs" || eval "mkdir $as_dirs"
13408 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13409
13410
13411 } @%:@ as_fn_mkdir_p
13412 if mkdir -p . 2>/dev/null; then
13413 as_mkdir_p='mkdir -p "$as_dir"'
13414 else
13415 test -d ./-p && rmdir ./-p
13416 as_mkdir_p=false
13417 fi
13418
13419
13420 @%:@ as_fn_executable_p FILE
13421 @%:@ -----------------------
13422 @%:@ Test if FILE is an executable regular file.
13423 as_fn_executable_p ()
13424 {
13425 test -f "$1" && test -x "$1"
13426 } @%:@ as_fn_executable_p
13427 as_test_x='test -x'
13428 as_executable_p=as_fn_executable_p
13429
13430 # Sed expression to map a string onto a valid CPP name.
13431 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13432
13433 # Sed expression to map a string onto a valid variable name.
13434 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13435
13436
13437 exec 6>&1
13438 ## ----------------------------------- ##
13439 ## Main body of $CONFIG_STATUS script. ##
13440 ## ----------------------------------- ##
13441 _ASEOF
13442 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13443
13444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13445 # Save the log message, to keep $0 and so on meaningful, and to
13446 # report actual input values of CONFIG_FILES etc. instead of their
13447 # values after options handling.
13448 ac_log="
13449 This file was extended by $as_me, which was
13450 generated by GNU Autoconf 2.69. Invocation command line was
13451
13452 CONFIG_FILES = $CONFIG_FILES
13453 CONFIG_HEADERS = $CONFIG_HEADERS
13454 CONFIG_LINKS = $CONFIG_LINKS
13455 CONFIG_COMMANDS = $CONFIG_COMMANDS
13456 $ $0 $@
13457
13458 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13459 "
13460
13461 _ACEOF
13462
13463 case $ac_config_files in *"
13464 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13465 esac
13466
13467 case $ac_config_headers in *"
13468 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13469 esac
13470
13471
13472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13473 # Files that config.status was made for.
13474 config_files="$ac_config_files"
13475 config_headers="$ac_config_headers"
13476 config_commands="$ac_config_commands"
13477
13478 _ACEOF
13479
13480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13481 ac_cs_usage="\
13482 \`$as_me' instantiates files and other configuration actions
13483 from templates according to the current configuration. Unless the files
13484 and actions are specified as TAGs, all are instantiated by default.
13485
13486 Usage: $0 [OPTION]... [TAG]...
13487
13488 -h, --help print this help, then exit
13489 -V, --version print version number and configuration settings, then exit
13490 --config print configuration, then exit
13491 -q, --quiet, --silent
13492 do not print progress messages
13493 -d, --debug don't remove temporary files
13494 --recheck update $as_me by reconfiguring in the same conditions
13495 --file=FILE[:TEMPLATE]
13496 instantiate the configuration file FILE
13497 --header=FILE[:TEMPLATE]
13498 instantiate the configuration header FILE
13499
13500 Configuration files:
13501 $config_files
13502
13503 Configuration headers:
13504 $config_headers
13505
13506 Configuration commands:
13507 $config_commands
13508
13509 Report bugs to the package provider."
13510
13511 _ACEOF
13512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13513 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13514 ac_cs_version="\\
13515 config.status
13516 configured by $0, generated by GNU Autoconf 2.69,
13517 with options \\"\$ac_cs_config\\"
13518
13519 Copyright (C) 2012 Free Software Foundation, Inc.
13520 This config.status script is free software; the Free Software Foundation
13521 gives unlimited permission to copy, distribute and modify it."
13522
13523 ac_pwd='$ac_pwd'
13524 srcdir='$srcdir'
13525 INSTALL='$INSTALL'
13526 AWK='$AWK'
13527 test -n "\$AWK" || AWK=awk
13528 _ACEOF
13529
13530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13531 # The default lists apply if the user does not specify any file.
13532 ac_need_defaults=:
13533 while test $# != 0
13534 do
13535 case $1 in
13536 --*=?*)
13537 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13538 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13539 ac_shift=:
13540 ;;
13541 --*=)
13542 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13543 ac_optarg=
13544 ac_shift=:
13545 ;;
13546 *)
13547 ac_option=$1
13548 ac_optarg=$2
13549 ac_shift=shift
13550 ;;
13551 esac
13552
13553 case $ac_option in
13554 # Handling of the options.
13555 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13556 ac_cs_recheck=: ;;
13557 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13558 $as_echo "$ac_cs_version"; exit ;;
13559 --config | --confi | --conf | --con | --co | --c )
13560 $as_echo "$ac_cs_config"; exit ;;
13561 --debug | --debu | --deb | --de | --d | -d )
13562 debug=: ;;
13563 --file | --fil | --fi | --f )
13564 $ac_shift
13565 case $ac_optarg in
13566 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13567 '') as_fn_error $? "missing file argument" ;;
13568 esac
13569 as_fn_append CONFIG_FILES " '$ac_optarg'"
13570 ac_need_defaults=false;;
13571 --header | --heade | --head | --hea )
13572 $ac_shift
13573 case $ac_optarg in
13574 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13575 esac
13576 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13577 ac_need_defaults=false;;
13578 --he | --h)
13579 # Conflict between --help and --header
13580 as_fn_error $? "ambiguous option: \`$1'
13581 Try \`$0 --help' for more information.";;
13582 --help | --hel | -h )
13583 $as_echo "$ac_cs_usage"; exit ;;
13584 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13585 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13586 ac_cs_silent=: ;;
13587
13588 # This is an error.
13589 -*) as_fn_error $? "unrecognized option: \`$1'
13590 Try \`$0 --help' for more information." ;;
13591
13592 *) as_fn_append ac_config_targets " $1"
13593 ac_need_defaults=false ;;
13594
13595 esac
13596 shift
13597 done
13598
13599 ac_configure_extra_args=
13600
13601 if $ac_cs_silent; then
13602 exec 6>/dev/null
13603 ac_configure_extra_args="$ac_configure_extra_args --silent"
13604 fi
13605
13606 _ACEOF
13607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13608 if \$ac_cs_recheck; then
13609 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13610 shift
13611 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13612 CONFIG_SHELL='$SHELL'
13613 export CONFIG_SHELL
13614 exec "\$@"
13615 fi
13616
13617 _ACEOF
13618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13619 exec 5>>config.log
13620 {
13621 echo
13622 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
13623 @%:@@%:@ Running $as_me. @%:@@%:@
13624 _ASBOX
13625 $as_echo "$ac_log"
13626 } >&5
13627
13628 _ACEOF
13629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13630 #
13631 # INIT-COMMANDS
13632 #
13633 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13634
13635
13636 # The HP-UX ksh and POSIX shell print the target directory to stdout
13637 # if CDPATH is set.
13638 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13639
13640 sed_quote_subst='$sed_quote_subst'
13641 double_quote_subst='$double_quote_subst'
13642 delay_variable_subst='$delay_variable_subst'
13643 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13644 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13645 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13646 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13647 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13648 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13649 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13650 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13651 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13652 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13653 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13654 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13655 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13656 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13657 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13658 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13659 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13660 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13661 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13662 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13663 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13664 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13665 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13666 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13667 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13668 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13669 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13670 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13671 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13672 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13673 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13674 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13675 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13676 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13677 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13678 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13679 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13680 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13681 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13682 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13683 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13684 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13685 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13686 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13687 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13688 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13689 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13690 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13691 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13692 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13693 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13694 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13695 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13696 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13697 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13698 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13699 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13700 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13701 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13702 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13703 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13704 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13705 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13706 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13707 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13708 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13709 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13710 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13711 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13712 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13713 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13714 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13715 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13716 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13717 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13718 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13719 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13720 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13721 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13722 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13723 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13724 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13725 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13726 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13727 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13728 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13729 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13730 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13731 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13732 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13733 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13734 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13735 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13736 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13737 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13738 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13739 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13740 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13741 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13742 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13743 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13744 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13745 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13746 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13747 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13748 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13749 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13750 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13751 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13752 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13753 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13754 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13755 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13756 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13757 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13758 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13759 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13760 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13761 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13762 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13763 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13764 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13765 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13766 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13767 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13768 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13769 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13770 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13771 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13772 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13773
13774 LTCC='$LTCC'
13775 LTCFLAGS='$LTCFLAGS'
13776 compiler='$compiler_DEFAULT'
13777
13778 # A function that is used when there is no print builtin or printf.
13779 func_fallback_echo ()
13780 {
13781 eval 'cat <<_LTECHO_EOF
13782 \$1
13783 _LTECHO_EOF'
13784 }
13785
13786 # Quote evaled strings.
13787 for var in SHELL \
13788 ECHO \
13789 PATH_SEPARATOR \
13790 SED \
13791 GREP \
13792 EGREP \
13793 FGREP \
13794 LD \
13795 NM \
13796 LN_S \
13797 lt_SP2NL \
13798 lt_NL2SP \
13799 reload_flag \
13800 OBJDUMP \
13801 deplibs_check_method \
13802 file_magic_cmd \
13803 file_magic_glob \
13804 want_nocaseglob \
13805 DLLTOOL \
13806 sharedlib_from_linklib_cmd \
13807 AR \
13808 AR_FLAGS \
13809 archiver_list_spec \
13810 STRIP \
13811 RANLIB \
13812 CC \
13813 CFLAGS \
13814 compiler \
13815 lt_cv_sys_global_symbol_pipe \
13816 lt_cv_sys_global_symbol_to_cdecl \
13817 lt_cv_sys_global_symbol_to_c_name_address \
13818 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13819 nm_file_list_spec \
13820 lt_prog_compiler_no_builtin_flag \
13821 lt_prog_compiler_pic \
13822 lt_prog_compiler_wl \
13823 lt_prog_compiler_static \
13824 lt_cv_prog_compiler_c_o \
13825 need_locks \
13826 MANIFEST_TOOL \
13827 DSYMUTIL \
13828 NMEDIT \
13829 LIPO \
13830 OTOOL \
13831 OTOOL64 \
13832 shrext_cmds \
13833 export_dynamic_flag_spec \
13834 whole_archive_flag_spec \
13835 compiler_needs_object \
13836 with_gnu_ld \
13837 allow_undefined_flag \
13838 no_undefined_flag \
13839 hardcode_libdir_flag_spec \
13840 hardcode_libdir_separator \
13841 exclude_expsyms \
13842 include_expsyms \
13843 file_list_spec \
13844 variables_saved_for_relink \
13845 libname_spec \
13846 library_names_spec \
13847 soname_spec \
13848 install_override_mode \
13849 finish_eval \
13850 old_striplib \
13851 striplib; do
13852 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13853 *[\\\\\\\`\\"\\\$]*)
13854 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13855 ;;
13856 *)
13857 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13858 ;;
13859 esac
13860 done
13861
13862 # Double-quote double-evaled strings.
13863 for var in reload_cmds \
13864 old_postinstall_cmds \
13865 old_postuninstall_cmds \
13866 old_archive_cmds \
13867 extract_expsyms_cmds \
13868 old_archive_from_new_cmds \
13869 old_archive_from_expsyms_cmds \
13870 archive_cmds \
13871 archive_expsym_cmds \
13872 module_cmds \
13873 module_expsym_cmds \
13874 export_symbols_cmds \
13875 prelink_cmds \
13876 postlink_cmds \
13877 postinstall_cmds \
13878 postuninstall_cmds \
13879 finish_cmds \
13880 sys_lib_search_path_spec \
13881 sys_lib_dlsearch_path_spec; do
13882 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13883 *[\\\\\\\`\\"\\\$]*)
13884 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13885 ;;
13886 *)
13887 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13888 ;;
13889 esac
13890 done
13891
13892 ac_aux_dir='$ac_aux_dir'
13893 xsi_shell='$xsi_shell'
13894 lt_shell_append='$lt_shell_append'
13895
13896 # See if we are running on zsh, and set the options which allow our
13897 # commands through without removal of \ escapes INIT.
13898 if test -n "\${ZSH_VERSION+set}" ; then
13899 setopt NO_GLOB_SUBST
13900 fi
13901
13902
13903 PACKAGE='$PACKAGE'
13904 VERSION='$VERSION'
13905 TIMESTAMP='$TIMESTAMP'
13906 RM='$RM'
13907 ofile='$ofile'
13908
13909
13910
13911
13912 _ACEOF
13913
13914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13915
13916 # Handling of arguments.
13917 for ac_config_target in $ac_config_targets
13918 do
13919 case $ac_config_target in
13920 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13921 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13922 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13923 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13924 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13925
13926 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13927 esac
13928 done
13929
13930
13931 # If the user did not use the arguments to specify the items to instantiate,
13932 # then the envvar interface is used. Set only those that are not.
13933 # We use the long form for the default assignment because of an extremely
13934 # bizarre bug on SunOS 4.1.3.
13935 if $ac_need_defaults; then
13936 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13937 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13938 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13939 fi
13940
13941 # Have a temporary directory for convenience. Make it in the build tree
13942 # simply because there is no reason against having it here, and in addition,
13943 # creating and moving files from /tmp can sometimes cause problems.
13944 # Hook for its removal unless debugging.
13945 # Note that there is a small window in which the directory will not be cleaned:
13946 # after its creation but before its name has been assigned to `$tmp'.
13947 $debug ||
13948 {
13949 tmp= ac_tmp=
13950 trap 'exit_status=$?
13951 : "${ac_tmp:=$tmp}"
13952 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13953 ' 0
13954 trap 'as_fn_exit 1' 1 2 13 15
13955 }
13956 # Create a (secure) tmp directory for tmp files.
13957
13958 {
13959 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13960 test -d "$tmp"
13961 } ||
13962 {
13963 tmp=./conf$$-$RANDOM
13964 (umask 077 && mkdir "$tmp")
13965 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13966 ac_tmp=$tmp
13967
13968 # Set up the scripts for CONFIG_FILES section.
13969 # No need to generate them if there are no CONFIG_FILES.
13970 # This happens for instance with `./config.status config.h'.
13971 if test -n "$CONFIG_FILES"; then
13972
13973
13974 ac_cr=`echo X | tr X '\015'`
13975 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13976 # But we know of no other shell where ac_cr would be empty at this
13977 # point, so we can use a bashism as a fallback.
13978 if test "x$ac_cr" = x; then
13979 eval ac_cr=\$\'\\r\'
13980 fi
13981 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13982 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13983 ac_cs_awk_cr='\\r'
13984 else
13985 ac_cs_awk_cr=$ac_cr
13986 fi
13987
13988 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13989 _ACEOF
13990
13991
13992 {
13993 echo "cat >conf$$subs.awk <<_ACEOF" &&
13994 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13995 echo "_ACEOF"
13996 } >conf$$subs.sh ||
13997 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13998 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13999 ac_delim='%!_!# '
14000 for ac_last_try in false false false false false :; do
14001 . ./conf$$subs.sh ||
14002 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14003
14004 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14005 if test $ac_delim_n = $ac_delim_num; then
14006 break
14007 elif $ac_last_try; then
14008 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14009 else
14010 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14011 fi
14012 done
14013 rm -f conf$$subs.sh
14014
14015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14016 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14017 _ACEOF
14018 sed -n '
14019 h
14020 s/^/S["/; s/!.*/"]=/
14021 p
14022 g
14023 s/^[^!]*!//
14024 :repl
14025 t repl
14026 s/'"$ac_delim"'$//
14027 t delim
14028 :nl
14029 h
14030 s/\(.\{148\}\)..*/\1/
14031 t more1
14032 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14033 p
14034 n
14035 b repl
14036 :more1
14037 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14038 p
14039 g
14040 s/.\{148\}//
14041 t nl
14042 :delim
14043 h
14044 s/\(.\{148\}\)..*/\1/
14045 t more2
14046 s/["\\]/\\&/g; s/^/"/; s/$/"/
14047 p
14048 b
14049 :more2
14050 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14051 p
14052 g
14053 s/.\{148\}//
14054 t delim
14055 ' <conf$$subs.awk | sed '
14056 /^[^""]/{
14057 N
14058 s/\n//
14059 }
14060 ' >>$CONFIG_STATUS || ac_write_fail=1
14061 rm -f conf$$subs.awk
14062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14063 _ACAWK
14064 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14065 for (key in S) S_is_set[key] = 1
14066 FS = ""
14067
14068 }
14069 {
14070 line = $ 0
14071 nfields = split(line, field, "@")
14072 substed = 0
14073 len = length(field[1])
14074 for (i = 2; i < nfields; i++) {
14075 key = field[i]
14076 keylen = length(key)
14077 if (S_is_set[key]) {
14078 value = S[key]
14079 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14080 len += length(value) + length(field[++i])
14081 substed = 1
14082 } else
14083 len += 1 + keylen
14084 }
14085
14086 print line
14087 }
14088
14089 _ACAWK
14090 _ACEOF
14091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14092 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14093 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14094 else
14095 cat
14096 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14097 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14098 _ACEOF
14099
14100 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14101 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14102 # trailing colons and then remove the whole line if VPATH becomes empty
14103 # (actually we leave an empty line to preserve line numbers).
14104 if test "x$srcdir" = x.; then
14105 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14106 h
14107 s///
14108 s/^/:/
14109 s/[ ]*$/:/
14110 s/:\$(srcdir):/:/g
14111 s/:\${srcdir}:/:/g
14112 s/:@srcdir@:/:/g
14113 s/^:*//
14114 s/:*$//
14115 x
14116 s/\(=[ ]*\).*/\1/
14117 G
14118 s/\n//
14119 s/^[^=]*=[ ]*$//
14120 }'
14121 fi
14122
14123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14124 fi # test -n "$CONFIG_FILES"
14125
14126 # Set up the scripts for CONFIG_HEADERS section.
14127 # No need to generate them if there are no CONFIG_HEADERS.
14128 # This happens for instance with `./config.status Makefile'.
14129 if test -n "$CONFIG_HEADERS"; then
14130 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14131 BEGIN {
14132 _ACEOF
14133
14134 # Transform confdefs.h into an awk script `defines.awk', embedded as
14135 # here-document in config.status, that substitutes the proper values into
14136 # config.h.in to produce config.h.
14137
14138 # Create a delimiter string that does not exist in confdefs.h, to ease
14139 # handling of long lines.
14140 ac_delim='%!_!# '
14141 for ac_last_try in false false :; do
14142 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14143 if test -z "$ac_tt"; then
14144 break
14145 elif $ac_last_try; then
14146 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14147 else
14148 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14149 fi
14150 done
14151
14152 # For the awk script, D is an array of macro values keyed by name,
14153 # likewise P contains macro parameters if any. Preserve backslash
14154 # newline sequences.
14155
14156 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14157 sed -n '
14158 s/.\{148\}/&'"$ac_delim"'/g
14159 t rset
14160 :rset
14161 s/^[ ]*#[ ]*define[ ][ ]*/ /
14162 t def
14163 d
14164 :def
14165 s/\\$//
14166 t bsnl
14167 s/["\\]/\\&/g
14168 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14169 D["\1"]=" \3"/p
14170 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14171 d
14172 :bsnl
14173 s/["\\]/\\&/g
14174 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14175 D["\1"]=" \3\\\\\\n"\\/p
14176 t cont
14177 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14178 t cont
14179 d
14180 :cont
14181 n
14182 s/.\{148\}/&'"$ac_delim"'/g
14183 t clear
14184 :clear
14185 s/\\$//
14186 t bsnlc
14187 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14188 d
14189 :bsnlc
14190 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14191 b cont
14192 ' <confdefs.h | sed '
14193 s/'"$ac_delim"'/"\\\
14194 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14195
14196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14197 for (key in D) D_is_set[key] = 1
14198 FS = ""
14199 }
14200 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14201 line = \$ 0
14202 split(line, arg, " ")
14203 if (arg[1] == "#") {
14204 defundef = arg[2]
14205 mac1 = arg[3]
14206 } else {
14207 defundef = substr(arg[1], 2)
14208 mac1 = arg[2]
14209 }
14210 split(mac1, mac2, "(") #)
14211 macro = mac2[1]
14212 prefix = substr(line, 1, index(line, defundef) - 1)
14213 if (D_is_set[macro]) {
14214 # Preserve the white space surrounding the "#".
14215 print prefix "define", macro P[macro] D[macro]
14216 next
14217 } else {
14218 # Replace #undef with comments. This is necessary, for example,
14219 # in the case of _POSIX_SOURCE, which is predefined and required
14220 # on some systems where configure will not decide to define it.
14221 if (defundef == "undef") {
14222 print "/*", prefix defundef, macro, "*/"
14223 next
14224 }
14225 }
14226 }
14227 { print }
14228 _ACAWK
14229 _ACEOF
14230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14231 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14232 fi # test -n "$CONFIG_HEADERS"
14233
14234
14235 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14236 shift
14237 for ac_tag
14238 do
14239 case $ac_tag in
14240 :[FHLC]) ac_mode=$ac_tag; continue;;
14241 esac
14242 case $ac_mode$ac_tag in
14243 :[FHL]*:*);;
14244 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14245 :[FH]-) ac_tag=-:-;;
14246 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14247 esac
14248 ac_save_IFS=$IFS
14249 IFS=:
14250 set x $ac_tag
14251 IFS=$ac_save_IFS
14252 shift
14253 ac_file=$1
14254 shift
14255
14256 case $ac_mode in
14257 :L) ac_source=$1;;
14258 :[FH])
14259 ac_file_inputs=
14260 for ac_f
14261 do
14262 case $ac_f in
14263 -) ac_f="$ac_tmp/stdin";;
14264 *) # Look for the file first in the build tree, then in the source tree
14265 # (if the path is not absolute). The absolute path cannot be DOS-style,
14266 # because $ac_f cannot contain `:'.
14267 test -f "$ac_f" ||
14268 case $ac_f in
14269 [\\/$]*) false;;
14270 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14271 esac ||
14272 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14273 esac
14274 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14275 as_fn_append ac_file_inputs " '$ac_f'"
14276 done
14277
14278 # Let's still pretend it is `configure' which instantiates (i.e., don't
14279 # use $as_me), people would be surprised to read:
14280 # /* config.h. Generated by config.status. */
14281 configure_input='Generated from '`
14282 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14283 `' by configure.'
14284 if test x"$ac_file" != x-; then
14285 configure_input="$ac_file. $configure_input"
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14287 $as_echo "$as_me: creating $ac_file" >&6;}
14288 fi
14289 # Neutralize special characters interpreted by sed in replacement strings.
14290 case $configure_input in #(
14291 *\&* | *\|* | *\\* )
14292 ac_sed_conf_input=`$as_echo "$configure_input" |
14293 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14294 *) ac_sed_conf_input=$configure_input;;
14295 esac
14296
14297 case $ac_tag in
14298 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14299 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14300 esac
14301 ;;
14302 esac
14303
14304 ac_dir=`$as_dirname -- "$ac_file" ||
14305 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14306 X"$ac_file" : 'X\(//\)[^/]' \| \
14307 X"$ac_file" : 'X\(//\)$' \| \
14308 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14309 $as_echo X"$ac_file" |
14310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14311 s//\1/
14312 q
14313 }
14314 /^X\(\/\/\)[^/].*/{
14315 s//\1/
14316 q
14317 }
14318 /^X\(\/\/\)$/{
14319 s//\1/
14320 q
14321 }
14322 /^X\(\/\).*/{
14323 s//\1/
14324 q
14325 }
14326 s/.*/./; q'`
14327 as_dir="$ac_dir"; as_fn_mkdir_p
14328 ac_builddir=.
14329
14330 case "$ac_dir" in
14331 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14332 *)
14333 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14334 # A ".." for each directory in $ac_dir_suffix.
14335 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14336 case $ac_top_builddir_sub in
14337 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14338 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14339 esac ;;
14340 esac
14341 ac_abs_top_builddir=$ac_pwd
14342 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14343 # for backward compatibility:
14344 ac_top_builddir=$ac_top_build_prefix
14345
14346 case $srcdir in
14347 .) # We are building in place.
14348 ac_srcdir=.
14349 ac_top_srcdir=$ac_top_builddir_sub
14350 ac_abs_top_srcdir=$ac_pwd ;;
14351 [\\/]* | ?:[\\/]* ) # Absolute name.
14352 ac_srcdir=$srcdir$ac_dir_suffix;
14353 ac_top_srcdir=$srcdir
14354 ac_abs_top_srcdir=$srcdir ;;
14355 *) # Relative name.
14356 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14357 ac_top_srcdir=$ac_top_build_prefix$srcdir
14358 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14359 esac
14360 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14361
14362
14363 case $ac_mode in
14364 :F)
14365 #
14366 # CONFIG_FILE
14367 #
14368
14369 case $INSTALL in
14370 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14371 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14372 esac
14373 _ACEOF
14374
14375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14376 # If the template does not know about datarootdir, expand it.
14377 # FIXME: This hack should be removed a few years after 2.60.
14378 ac_datarootdir_hack=; ac_datarootdir_seen=
14379 ac_sed_dataroot='
14380 /datarootdir/ {
14381 p
14382 q
14383 }
14384 /@datadir@/p
14385 /@docdir@/p
14386 /@infodir@/p
14387 /@localedir@/p
14388 /@mandir@/p'
14389 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14390 *datarootdir*) ac_datarootdir_seen=yes;;
14391 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14393 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14394 _ACEOF
14395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14396 ac_datarootdir_hack='
14397 s&@datadir@&$datadir&g
14398 s&@docdir@&$docdir&g
14399 s&@infodir@&$infodir&g
14400 s&@localedir@&$localedir&g
14401 s&@mandir@&$mandir&g
14402 s&\\\${datarootdir}&$datarootdir&g' ;;
14403 esac
14404 _ACEOF
14405
14406 # Neutralize VPATH when `$srcdir' = `.'.
14407 # Shell code in configure.ac might set extrasub.
14408 # FIXME: do we really want to maintain this feature?
14409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14410 ac_sed_extra="$ac_vpsub
14411 $extrasub
14412 _ACEOF
14413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14414 :t
14415 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14416 s|@configure_input@|$ac_sed_conf_input|;t t
14417 s&@top_builddir@&$ac_top_builddir_sub&;t t
14418 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14419 s&@srcdir@&$ac_srcdir&;t t
14420 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14421 s&@top_srcdir@&$ac_top_srcdir&;t t
14422 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14423 s&@builddir@&$ac_builddir&;t t
14424 s&@abs_builddir@&$ac_abs_builddir&;t t
14425 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14426 s&@INSTALL@&$ac_INSTALL&;t t
14427 $ac_datarootdir_hack
14428 "
14429 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14430 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14431
14432 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14433 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14434 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14435 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14437 which seems to be undefined. Please make sure it is defined" >&5
14438 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14439 which seems to be undefined. Please make sure it is defined" >&2;}
14440
14441 rm -f "$ac_tmp/stdin"
14442 case $ac_file in
14443 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14444 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14445 esac \
14446 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14447 ;;
14448 :H)
14449 #
14450 # CONFIG_HEADER
14451 #
14452 if test x"$ac_file" != x-; then
14453 {
14454 $as_echo "/* $configure_input */" \
14455 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14456 } >"$ac_tmp/config.h" \
14457 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14458 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14460 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14461 else
14462 rm -f "$ac_file"
14463 mv "$ac_tmp/config.h" "$ac_file" \
14464 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14465 fi
14466 else
14467 $as_echo "/* $configure_input */" \
14468 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14469 || as_fn_error $? "could not create -" "$LINENO" 5
14470 fi
14471 # Compute "$ac_file"'s index in $config_headers.
14472 _am_stamp_count=1
14473 for _am_header in $config_headers :; do
14474 case $_am_header in
14475 "$ac_file" | "$ac_file":* )
14476 break ;;
14477 * )
14478 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14479 esac
14480 done
14481 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
14482 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14483 X"$ac_file" : 'X\(//\)[^/]' \| \
14484 X"$ac_file" : 'X\(//\)$' \| \
14485 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14486 $as_echo X"$ac_file" |
14487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14488 s//\1/
14489 q
14490 }
14491 /^X\(\/\/\)[^/].*/{
14492 s//\1/
14493 q
14494 }
14495 /^X\(\/\/\)$/{
14496 s//\1/
14497 q
14498 }
14499 /^X\(\/\).*/{
14500 s//\1/
14501 q
14502 }
14503 s/.*/./; q'`/stamp-h$_am_stamp_count
14504 ;;
14505
14506 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14507 $as_echo "$as_me: executing $ac_file commands" >&6;}
14508 ;;
14509 esac
14510
14511
14512 case $ac_file$ac_mode in
14513 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14514 # Strip MF so we end up with the name of the file.
14515 mf=`echo "$mf" | sed -e 's/:.*$//'`
14516 # Check whether this is an Automake generated Makefile or not.
14517 # We used to match only the files named `Makefile.in', but
14518 # some people rename them; so instead we look at the file content.
14519 # Grep'ing the first line is not enough: some people post-process
14520 # each Makefile.in and add a new line on top of each file to say so.
14521 # So let's grep whole file.
14522 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14523 dirpart=`$as_dirname -- "$mf" ||
14524 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14525 X"$mf" : 'X\(//\)[^/]' \| \
14526 X"$mf" : 'X\(//\)$' \| \
14527 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14528 $as_echo X"$mf" |
14529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14530 s//\1/
14531 q
14532 }
14533 /^X\(\/\/\)[^/].*/{
14534 s//\1/
14535 q
14536 }
14537 /^X\(\/\/\)$/{
14538 s//\1/
14539 q
14540 }
14541 /^X\(\/\).*/{
14542 s//\1/
14543 q
14544 }
14545 s/.*/./; q'`
14546 else
14547 continue
14548 fi
14549 # Extract the definition of DEPDIR, am__include, and am__quote
14550 # from the Makefile without running `make'.
14551 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14552 test -z "$DEPDIR" && continue
14553 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14554 test -z "am__include" && continue
14555 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14556 # When using ansi2knr, U may be empty or an underscore; expand it
14557 U=`sed -n 's/^U = //p' < "$mf"`
14558 # Find all dependency output files, they are included files with
14559 # $(DEPDIR) in their names. We invoke sed twice because it is the
14560 # simplest approach to changing $(DEPDIR) to its actual value in the
14561 # expansion.
14562 for file in `sed -n "
14563 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14564 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14565 # Make sure the directory exists.
14566 test -f "$dirpart/$file" && continue
14567 fdir=`$as_dirname -- "$file" ||
14568 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14569 X"$file" : 'X\(//\)[^/]' \| \
14570 X"$file" : 'X\(//\)$' \| \
14571 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14572 $as_echo X"$file" |
14573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14574 s//\1/
14575 q
14576 }
14577 /^X\(\/\/\)[^/].*/{
14578 s//\1/
14579 q
14580 }
14581 /^X\(\/\/\)$/{
14582 s//\1/
14583 q
14584 }
14585 /^X\(\/\).*/{
14586 s//\1/
14587 q
14588 }
14589 s/.*/./; q'`
14590 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14591 # echo "creating $dirpart/$file"
14592 echo '# dummy' > "$dirpart/$file"
14593 done
14594 done
14595 ;;
14596 "libtool":C)
14597
14598 # See if we are running on zsh, and set the options which allow our
14599 # commands through without removal of \ escapes.
14600 if test -n "${ZSH_VERSION+set}" ; then
14601 setopt NO_GLOB_SUBST
14602 fi
14603
14604 cfgfile="${ofile}T"
14605 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14606 $RM "$cfgfile"
14607
14608 cat <<_LT_EOF >> "$cfgfile"
14609 #! $SHELL
14610
14611 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14612 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14613 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14614 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14615 #
14616 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14617 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14618 # Foundation, Inc.
14619 # Written by Gordon Matzigkeit, 1996
14620 #
14621 # This file is part of GNU Libtool.
14622 #
14623 # GNU Libtool is free software; you can redistribute it and/or
14624 # modify it under the terms of the GNU General Public License as
14625 # published by the Free Software Foundation; either version 2 of
14626 # the License, or (at your option) any later version.
14627 #
14628 # As a special exception to the GNU General Public License,
14629 # if you distribute this file as part of a program or library that
14630 # is built using GNU Libtool, you may include this file under the
14631 # same distribution terms that you use for the rest of that program.
14632 #
14633 # GNU Libtool is distributed in the hope that it will be useful,
14634 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14635 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14636 # GNU General Public License for more details.
14637 #
14638 # You should have received a copy of the GNU General Public License
14639 # along with GNU Libtool; see the file COPYING. If not, a copy
14640 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14641 # obtained by writing to the Free Software Foundation, Inc.,
14642 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14643
14644
14645 # The names of the tagged configurations supported by this script.
14646 available_tags=""
14647
14648 # ### BEGIN LIBTOOL CONFIG
14649
14650 # Which release of libtool.m4 was used?
14651 macro_version=$macro_version
14652 macro_revision=$macro_revision
14653
14654 # Whether or not to build shared libraries.
14655 build_libtool_libs=$enable_shared
14656
14657 # Whether or not to build static libraries.
14658 build_old_libs=$enable_static
14659
14660 # What type of objects to build.
14661 pic_mode=$pic_mode
14662
14663 # Whether or not to optimize for fast installation.
14664 fast_install=$enable_fast_install
14665
14666 # Shell to use when invoking shell scripts.
14667 SHELL=$lt_SHELL
14668
14669 # An echo program that protects backslashes.
14670 ECHO=$lt_ECHO
14671
14672 # The PATH separator for the build system.
14673 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14674
14675 # The host system.
14676 host_alias=$host_alias
14677 host=$host
14678 host_os=$host_os
14679
14680 # The build system.
14681 build_alias=$build_alias
14682 build=$build
14683 build_os=$build_os
14684
14685 # A sed program that does not truncate output.
14686 SED=$lt_SED
14687
14688 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14689 Xsed="\$SED -e 1s/^X//"
14690
14691 # A grep program that handles long lines.
14692 GREP=$lt_GREP
14693
14694 # An ERE matcher.
14695 EGREP=$lt_EGREP
14696
14697 # A literal string matcher.
14698 FGREP=$lt_FGREP
14699
14700 # A BSD- or MS-compatible name lister.
14701 NM=$lt_NM
14702
14703 # Whether we need soft or hard links.
14704 LN_S=$lt_LN_S
14705
14706 # What is the maximum length of a command?
14707 max_cmd_len=$max_cmd_len
14708
14709 # Object file suffix (normally "o").
14710 objext=$ac_objext
14711
14712 # Executable file suffix (normally "").
14713 exeext=$exeext
14714
14715 # whether the shell understands "unset".
14716 lt_unset=$lt_unset
14717
14718 # turn spaces into newlines.
14719 SP2NL=$lt_lt_SP2NL
14720
14721 # turn newlines into spaces.
14722 NL2SP=$lt_lt_NL2SP
14723
14724 # convert \$build file names to \$host format.
14725 to_host_file_cmd=$lt_cv_to_host_file_cmd
14726
14727 # convert \$build files to toolchain format.
14728 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14729
14730 # An object symbol dumper.
14731 OBJDUMP=$lt_OBJDUMP
14732
14733 # Method to check whether dependent libraries are shared objects.
14734 deplibs_check_method=$lt_deplibs_check_method
14735
14736 # Command to use when deplibs_check_method = "file_magic".
14737 file_magic_cmd=$lt_file_magic_cmd
14738
14739 # How to find potential files when deplibs_check_method = "file_magic".
14740 file_magic_glob=$lt_file_magic_glob
14741
14742 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14743 want_nocaseglob=$lt_want_nocaseglob
14744
14745 # DLL creation program.
14746 DLLTOOL=$lt_DLLTOOL
14747
14748 # Command to associate shared and link libraries.
14749 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14750
14751 # The archiver.
14752 AR=$lt_AR
14753
14754 # Flags to create an archive.
14755 AR_FLAGS=$lt_AR_FLAGS
14756
14757 # How to feed a file listing to the archiver.
14758 archiver_list_spec=$lt_archiver_list_spec
14759
14760 # A symbol stripping program.
14761 STRIP=$lt_STRIP
14762
14763 # Commands used to install an old-style archive.
14764 RANLIB=$lt_RANLIB
14765 old_postinstall_cmds=$lt_old_postinstall_cmds
14766 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14767
14768 # Whether to use a lock for old archive extraction.
14769 lock_old_archive_extraction=$lock_old_archive_extraction
14770
14771 # A C compiler.
14772 LTCC=$lt_CC
14773
14774 # LTCC compiler flags.
14775 LTCFLAGS=$lt_CFLAGS
14776
14777 # Take the output of nm and produce a listing of raw symbols and C names.
14778 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14779
14780 # Transform the output of nm in a proper C declaration.
14781 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14782
14783 # Transform the output of nm in a C name address pair.
14784 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14785
14786 # Transform the output of nm in a C name address pair when lib prefix is needed.
14787 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14788
14789 # Specify filename containing input files for \$NM.
14790 nm_file_list_spec=$lt_nm_file_list_spec
14791
14792 # The root where to search for dependent libraries,and in which our libraries should be installed.
14793 lt_sysroot=$lt_sysroot
14794
14795 # The name of the directory that contains temporary libtool files.
14796 objdir=$objdir
14797
14798 # Used to examine libraries when file_magic_cmd begins with "file".
14799 MAGIC_CMD=$MAGIC_CMD
14800
14801 # Must we lock files when doing compilation?
14802 need_locks=$lt_need_locks
14803
14804 # Manifest tool.
14805 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14806
14807 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14808 DSYMUTIL=$lt_DSYMUTIL
14809
14810 # Tool to change global to local symbols on Mac OS X.
14811 NMEDIT=$lt_NMEDIT
14812
14813 # Tool to manipulate fat objects and archives on Mac OS X.
14814 LIPO=$lt_LIPO
14815
14816 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14817 OTOOL=$lt_OTOOL
14818
14819 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14820 OTOOL64=$lt_OTOOL64
14821
14822 # Old archive suffix (normally "a").
14823 libext=$libext
14824
14825 # Shared library suffix (normally ".so").
14826 shrext_cmds=$lt_shrext_cmds
14827
14828 # The commands to extract the exported symbol list from a shared archive.
14829 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14830
14831 # Variables whose values should be saved in libtool wrapper scripts and
14832 # restored at link time.
14833 variables_saved_for_relink=$lt_variables_saved_for_relink
14834
14835 # Do we need the "lib" prefix for modules?
14836 need_lib_prefix=$need_lib_prefix
14837
14838 # Do we need a version for libraries?
14839 need_version=$need_version
14840
14841 # Library versioning type.
14842 version_type=$version_type
14843
14844 # Shared library runtime path variable.
14845 runpath_var=$runpath_var
14846
14847 # Shared library path variable.
14848 shlibpath_var=$shlibpath_var
14849
14850 # Is shlibpath searched before the hard-coded library search path?
14851 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14852
14853 # Format of library name prefix.
14854 libname_spec=$lt_libname_spec
14855
14856 # List of archive names. First name is the real one, the rest are links.
14857 # The last name is the one that the linker finds with -lNAME
14858 library_names_spec=$lt_library_names_spec
14859
14860 # The coded name of the library, if different from the real name.
14861 soname_spec=$lt_soname_spec
14862
14863 # Permission mode override for installation of shared libraries.
14864 install_override_mode=$lt_install_override_mode
14865
14866 # Command to use after installation of a shared archive.
14867 postinstall_cmds=$lt_postinstall_cmds
14868
14869 # Command to use after uninstallation of a shared archive.
14870 postuninstall_cmds=$lt_postuninstall_cmds
14871
14872 # Commands used to finish a libtool library installation in a directory.
14873 finish_cmds=$lt_finish_cmds
14874
14875 # As "finish_cmds", except a single script fragment to be evaled but
14876 # not shown.
14877 finish_eval=$lt_finish_eval
14878
14879 # Whether we should hardcode library paths into libraries.
14880 hardcode_into_libs=$hardcode_into_libs
14881
14882 # Compile-time system search path for libraries.
14883 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14884
14885 # Run-time system search path for libraries.
14886 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14887
14888 # Whether dlopen is supported.
14889 dlopen_support=$enable_dlopen
14890
14891 # Whether dlopen of programs is supported.
14892 dlopen_self=$enable_dlopen_self
14893
14894 # Whether dlopen of statically linked programs is supported.
14895 dlopen_self_static=$enable_dlopen_self_static
14896
14897 # Commands to strip libraries.
14898 old_striplib=$lt_old_striplib
14899 striplib=$lt_striplib
14900
14901
14902 # The linker used to build libraries.
14903 LD=$lt_LD
14904
14905 # How to create reloadable object files.
14906 reload_flag=$lt_reload_flag
14907 reload_cmds=$lt_reload_cmds
14908
14909 # Commands used to build an old-style archive.
14910 old_archive_cmds=$lt_old_archive_cmds
14911
14912 # A language specific compiler.
14913 CC=$lt_compiler
14914
14915 # Is the compiler the GNU compiler?
14916 with_gcc=$GCC
14917
14918 # Compiler flag to turn off builtin functions.
14919 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14920
14921 # Additional compiler flags for building library objects.
14922 pic_flag=$lt_lt_prog_compiler_pic
14923
14924 # How to pass a linker flag through the compiler.
14925 wl=$lt_lt_prog_compiler_wl
14926
14927 # Compiler flag to prevent dynamic linking.
14928 link_static_flag=$lt_lt_prog_compiler_static
14929
14930 # Does compiler simultaneously support -c and -o options?
14931 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14932
14933 # Whether or not to add -lc for building shared libraries.
14934 build_libtool_need_lc=$archive_cmds_need_lc
14935
14936 # Whether or not to disallow shared libs when runtime libs are static.
14937 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14938
14939 # Compiler flag to allow reflexive dlopens.
14940 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14941
14942 # Compiler flag to generate shared objects directly from archives.
14943 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14944
14945 # Whether the compiler copes with passing no objects directly.
14946 compiler_needs_object=$lt_compiler_needs_object
14947
14948 # Create an old-style archive from a shared archive.
14949 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14950
14951 # Create a temporary old-style archive to link instead of a shared archive.
14952 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14953
14954 # Commands used to build a shared archive.
14955 archive_cmds=$lt_archive_cmds
14956 archive_expsym_cmds=$lt_archive_expsym_cmds
14957
14958 # Commands used to build a loadable module if different from building
14959 # a shared archive.
14960 module_cmds=$lt_module_cmds
14961 module_expsym_cmds=$lt_module_expsym_cmds
14962
14963 # Whether we are building with GNU ld or not.
14964 with_gnu_ld=$lt_with_gnu_ld
14965
14966 # Flag that allows shared libraries with undefined symbols to be built.
14967 allow_undefined_flag=$lt_allow_undefined_flag
14968
14969 # Flag that enforces no undefined symbols.
14970 no_undefined_flag=$lt_no_undefined_flag
14971
14972 # Flag to hardcode \$libdir into a binary during linking.
14973 # This must work even if \$libdir does not exist
14974 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14975
14976 # Whether we need a single "-rpath" flag with a separated argument.
14977 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14978
14979 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14980 # DIR into the resulting binary.
14981 hardcode_direct=$hardcode_direct
14982
14983 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14984 # DIR into the resulting binary and the resulting library dependency is
14985 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14986 # library is relocated.
14987 hardcode_direct_absolute=$hardcode_direct_absolute
14988
14989 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14990 # into the resulting binary.
14991 hardcode_minus_L=$hardcode_minus_L
14992
14993 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14994 # into the resulting binary.
14995 hardcode_shlibpath_var=$hardcode_shlibpath_var
14996
14997 # Set to "yes" if building a shared library automatically hardcodes DIR
14998 # into the library and all subsequent libraries and executables linked
14999 # against it.
15000 hardcode_automatic=$hardcode_automatic
15001
15002 # Set to yes if linker adds runtime paths of dependent libraries
15003 # to runtime path list.
15004 inherit_rpath=$inherit_rpath
15005
15006 # Whether libtool must link a program against all its dependency libraries.
15007 link_all_deplibs=$link_all_deplibs
15008
15009 # Set to "yes" if exported symbols are required.
15010 always_export_symbols=$always_export_symbols
15011
15012 # The commands to list exported symbols.
15013 export_symbols_cmds=$lt_export_symbols_cmds
15014
15015 # Symbols that should not be listed in the preloaded symbols.
15016 exclude_expsyms=$lt_exclude_expsyms
15017
15018 # Symbols that must always be exported.
15019 include_expsyms=$lt_include_expsyms
15020
15021 # Commands necessary for linking programs (against libraries) with templates.
15022 prelink_cmds=$lt_prelink_cmds
15023
15024 # Commands necessary for finishing linking programs.
15025 postlink_cmds=$lt_postlink_cmds
15026
15027 # Specify filename containing input files.
15028 file_list_spec=$lt_file_list_spec
15029
15030 # How to hardcode a shared library path into an executable.
15031 hardcode_action=$hardcode_action
15032
15033 # ### END LIBTOOL CONFIG
15034
15035 _LT_EOF
15036
15037 case $host_os in
15038 aix3*)
15039 cat <<\_LT_EOF >> "$cfgfile"
15040 # AIX sometimes has problems with the GCC collect2 program. For some
15041 # reason, if we set the COLLECT_NAMES environment variable, the problems
15042 # vanish in a puff of smoke.
15043 if test "X${COLLECT_NAMES+set}" != Xset; then
15044 COLLECT_NAMES=
15045 export COLLECT_NAMES
15046 fi
15047 _LT_EOF
15048 ;;
15049 esac
15050
15051
15052 ltmain="$ac_aux_dir/ltmain.sh"
15053
15054
15055 # We use sed instead of cat because bash on DJGPP gets confused if
15056 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15057 # text mode, it properly converts lines to CR/LF. This bash problem
15058 # is reportedly fixed, but why not run on old versions too?
15059 sed '$q' "$ltmain" >> "$cfgfile" \
15060 || (rm -f "$cfgfile"; exit 1)
15061
15062 if test x"$xsi_shell" = xyes; then
15063 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15064 func_dirname ()\
15065 {\
15066 \ case ${1} in\
15067 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15068 \ * ) func_dirname_result="${3}" ;;\
15069 \ esac\
15070 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15071 && mv -f "$cfgfile.tmp" "$cfgfile" \
15072 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15073 test 0 -eq $? || _lt_function_replace_fail=:
15074
15075
15076 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15077 func_basename ()\
15078 {\
15079 \ func_basename_result="${1##*/}"\
15080 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15081 && mv -f "$cfgfile.tmp" "$cfgfile" \
15082 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15083 test 0 -eq $? || _lt_function_replace_fail=:
15084
15085
15086 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15087 func_dirname_and_basename ()\
15088 {\
15089 \ case ${1} in\
15090 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15091 \ * ) func_dirname_result="${3}" ;;\
15092 \ esac\
15093 \ func_basename_result="${1##*/}"\
15094 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15095 && mv -f "$cfgfile.tmp" "$cfgfile" \
15096 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15097 test 0 -eq $? || _lt_function_replace_fail=:
15098
15099
15100 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15101 func_stripname ()\
15102 {\
15103 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15104 \ # positional parameters, so assign one to ordinary parameter first.\
15105 \ func_stripname_result=${3}\
15106 \ func_stripname_result=${func_stripname_result#"${1}"}\
15107 \ func_stripname_result=${func_stripname_result%"${2}"}\
15108 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15109 && mv -f "$cfgfile.tmp" "$cfgfile" \
15110 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15111 test 0 -eq $? || _lt_function_replace_fail=:
15112
15113
15114 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15115 func_split_long_opt ()\
15116 {\
15117 \ func_split_long_opt_name=${1%%=*}\
15118 \ func_split_long_opt_arg=${1#*=}\
15119 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15120 && mv -f "$cfgfile.tmp" "$cfgfile" \
15121 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15122 test 0 -eq $? || _lt_function_replace_fail=:
15123
15124
15125 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15126 func_split_short_opt ()\
15127 {\
15128 \ func_split_short_opt_arg=${1#??}\
15129 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15130 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15131 && mv -f "$cfgfile.tmp" "$cfgfile" \
15132 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15133 test 0 -eq $? || _lt_function_replace_fail=:
15134
15135
15136 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15137 func_lo2o ()\
15138 {\
15139 \ case ${1} in\
15140 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15141 \ *) func_lo2o_result=${1} ;;\
15142 \ esac\
15143 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15144 && mv -f "$cfgfile.tmp" "$cfgfile" \
15145 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15146 test 0 -eq $? || _lt_function_replace_fail=:
15147
15148
15149 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15150 func_xform ()\
15151 {\
15152 func_xform_result=${1%.*}.lo\
15153 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15154 && mv -f "$cfgfile.tmp" "$cfgfile" \
15155 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15156 test 0 -eq $? || _lt_function_replace_fail=:
15157
15158
15159 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15160 func_arith ()\
15161 {\
15162 func_arith_result=$(( $* ))\
15163 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15164 && mv -f "$cfgfile.tmp" "$cfgfile" \
15165 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15166 test 0 -eq $? || _lt_function_replace_fail=:
15167
15168
15169 sed -e '/^func_len ()$/,/^} # func_len /c\
15170 func_len ()\
15171 {\
15172 func_len_result=${#1}\
15173 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15174 && mv -f "$cfgfile.tmp" "$cfgfile" \
15175 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15176 test 0 -eq $? || _lt_function_replace_fail=:
15177
15178 fi
15179
15180 if test x"$lt_shell_append" = xyes; then
15181 sed -e '/^func_append ()$/,/^} # func_append /c\
15182 func_append ()\
15183 {\
15184 eval "${1}+=\\${2}"\
15185 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15186 && mv -f "$cfgfile.tmp" "$cfgfile" \
15187 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15188 test 0 -eq $? || _lt_function_replace_fail=:
15189
15190
15191 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15192 func_append_quoted ()\
15193 {\
15194 \ func_quote_for_eval "${2}"\
15195 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15196 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15197 && mv -f "$cfgfile.tmp" "$cfgfile" \
15198 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15199 test 0 -eq $? || _lt_function_replace_fail=:
15200
15201
15202 # Save a `func_append' function call where possible by direct use of '+='
15203 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15204 && mv -f "$cfgfile.tmp" "$cfgfile" \
15205 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15206 test 0 -eq $? || _lt_function_replace_fail=:
15207 else
15208 # Save a `func_append' function call even when '+=' is not available
15209 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15210 && mv -f "$cfgfile.tmp" "$cfgfile" \
15211 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15212 test 0 -eq $? || _lt_function_replace_fail=:
15213 fi
15214
15215 if test x"$_lt_function_replace_fail" = x":"; then
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15217 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15218 fi
15219
15220
15221 mv -f "$cfgfile" "$ofile" ||
15222 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15223 chmod +x "$ofile"
15224
15225 ;;
15226
15227 esac
15228 done # for ac_tag
15229
15230
15231 as_fn_exit 0
15232 _ACEOF
15233 ac_clean_files=$ac_clean_files_save
15234
15235 test $ac_write_fail = 0 ||
15236 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15237
15238
15239 # configure is writing to config.log, and then calls config.status.
15240 # config.status does its own redirection, appending to config.log.
15241 # Unfortunately, on DOS this fails, as config.log is still kept open
15242 # by configure, so config.status won't be able to write to it; its
15243 # output is simply discarded. So we exec the FD to /dev/null,
15244 # effectively closing config.log, so it can be properly (re)opened and
15245 # appended to by config.status. When coming back to configure, we
15246 # need to make the FD available again.
15247 if test "$no_create" != yes; then
15248 ac_cs_success=:
15249 ac_config_status_args=
15250 test "$silent" = yes &&
15251 ac_config_status_args="$ac_config_status_args --quiet"
15252 exec 5>/dev/null
15253 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15254 exec 5>>config.log
15255 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15256 # would make configure fail if this is the last instruction.
15257 $ac_cs_success || as_fn_exit 1
15258 fi
15259 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15261 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15262 fi
15263
+0
-15260
autom4te.cache/output.1 less more
0 @%:@! /bin/sh
1 @%:@ Guess values for system-dependent variables and create Makefiles.
2 @%:@ Generated by GNU Autoconf 2.69.
3 @%:@
4 @%:@
5 @%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
6 @%:@
7 @%:@
8 @%:@ This configure script is free software; the Free Software Foundation
9 @%:@ gives unlimited permission to copy, distribute and modify it.
10 ## -------------------- ##
11 ## M4sh Initialization. ##
12 ## -------------------- ##
13
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17 emulate sh
18 NULLCMD=:
19 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in @%:@(
25 *posix*) :
26 set -o posix ;; @%:@(
27 *) :
28 ;;
29 esac
30 fi
31
32
33 as_nl='
34 '
35 export as_nl
36 # Printing a long string crashes Solaris 7 /usr/bin/printf.
37 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
38 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
40 # Prefer a ksh shell builtin over an external printf program on Solaris,
41 # but without wasting forks for bash or zsh.
42 if test -z "$BASH_VERSION$ZSH_VERSION" \
43 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
44 as_echo='print -r --'
45 as_echo_n='print -rn --'
46 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='printf %s\n'
48 as_echo_n='printf %s'
49 else
50 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
51 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
52 as_echo_n='/usr/ucb/echo -n'
53 else
54 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
55 as_echo_n_body='eval
56 arg=$1;
57 case $arg in @%:@(
58 *"$as_nl"*)
59 expr "X$arg" : "X\\(.*\\)$as_nl";
60 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
61 esac;
62 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
63 '
64 export as_echo_n_body
65 as_echo_n='sh -c $as_echo_n_body as_echo'
66 fi
67 export as_echo_body
68 as_echo='sh -c $as_echo_body as_echo'
69 fi
70
71 # The user is always right.
72 if test "${PATH_SEPARATOR+set}" != set; then
73 PATH_SEPARATOR=:
74 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
75 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
76 PATH_SEPARATOR=';'
77 }
78 fi
79
80
81 # IFS
82 # We need space, tab and new line, in precisely that order. Quoting is
83 # there to prevent editors from complaining about space-tab.
84 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
85 # splitting by setting IFS to empty value.)
86 IFS=" "" $as_nl"
87
88 # Find who we are. Look in the path if we contain no directory separator.
89 as_myself=
90 case $0 in @%:@((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 # Use a proper internal environment variable to ensure we don't fall
135 # into an infinite loop, continuously re-executing ourselves.
136 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
137 _as_can_reexec=no; export _as_can_reexec;
138 # We cannot yet assume a decent shell, so we have to provide a
139 # neutralization value for shells without unset; and this also
140 # works around shells that cannot unset nonexistent variables.
141 # Preserve -v and -x to the replacement shell.
142 BASH_ENV=/dev/null
143 ENV=/dev/null
144 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
145 case $- in @%:@ ((((
146 *v*x* | *x*v* ) as_opts=-vx ;;
147 *v* ) as_opts=-v ;;
148 *x* ) as_opts=-x ;;
149 * ) as_opts= ;;
150 esac
151 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
152 # Admittedly, this is quite paranoid, since all the known shells bail
153 # out after a failed `exec'.
154 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
155 as_fn_exit 255
156 fi
157 # We don't want this to propagate to other subprocesses.
158 { _as_can_reexec=; unset _as_can_reexec;}
159 if test "x$CONFIG_SHELL" = x; then
160 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
161 emulate sh
162 NULLCMD=:
163 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
164 # is contrary to our usage. Disable this feature.
165 alias -g '\${1+\"\$@\"}'='\"\$@\"'
166 setopt NO_GLOB_SUBST
167 else
168 case \`(set -o) 2>/dev/null\` in @%:@(
169 *posix*) :
170 set -o posix ;; @%:@(
171 *) :
172 ;;
173 esac
174 fi
175 "
176 as_required="as_fn_return () { (exit \$1); }
177 as_fn_success () { as_fn_return 0; }
178 as_fn_failure () { as_fn_return 1; }
179 as_fn_ret_success () { return 0; }
180 as_fn_ret_failure () { return 1; }
181
182 exitcode=0
183 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
184 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
185 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
186 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
187 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
188
189 else
190 exitcode=1; echo positional parameters were not saved.
191 fi
192 test x\$exitcode = x0 || exit 1
193 test -x / || exit 1"
194 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
195 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
196 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
197 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
198 test \$(( 1 + 1 )) = 2 || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
207 if (eval "$as_required") 2>/dev/null; then :
208 as_have_required=yes
209 else
210 as_have_required=no
211 fi
212 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
213
214 else
215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
216 as_found=false
217 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
218 do
219 IFS=$as_save_IFS
220 test -z "$as_dir" && as_dir=.
221 as_found=:
222 case $as_dir in @%:@(
223 /*)
224 for as_base in sh bash ksh sh5; do
225 # Try only shells that exist, to save several forks.
226 as_shell=$as_dir/$as_base
227 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
228 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
229 CONFIG_SHELL=$as_shell as_have_required=yes
230 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 break 2
232 fi
233 fi
234 done;;
235 esac
236 as_found=false
237 done
238 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
239 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
240 CONFIG_SHELL=$SHELL as_have_required=yes
241 fi; }
242 IFS=$as_save_IFS
243
244
245 if test "x$CONFIG_SHELL" != x; then :
246 export CONFIG_SHELL
247 # We cannot yet assume a decent shell, so we have to provide a
248 # neutralization value for shells without unset; and this also
249 # works around shells that cannot unset nonexistent variables.
250 # Preserve -v and -x to the replacement shell.
251 BASH_ENV=/dev/null
252 ENV=/dev/null
253 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
254 case $- in @%:@ ((((
255 *v*x* | *x*v* ) as_opts=-vx ;;
256 *v* ) as_opts=-v ;;
257 *x* ) as_opts=-x ;;
258 * ) as_opts= ;;
259 esac
260 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
261 # Admittedly, this is quite paranoid, since all the known shells bail
262 # out after a failed `exec'.
263 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
264 exit 255
265 fi
266
267 if test x$as_have_required = xno; then :
268 $as_echo "$0: This script requires a shell more modern than all"
269 $as_echo "$0: the shells that I found on your system."
270 if test x${ZSH_VERSION+set} = xset ; then
271 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
272 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
273 else
274 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
275 $0: including any error possibly output before this
276 $0: message. Then install a modern shell, or manually run
277 $0: the script under such a shell if you do have one."
278 fi
279 exit 1
280 fi
281 fi
282 fi
283 SHELL=${CONFIG_SHELL-/bin/sh}
284 export SHELL
285 # Unset more variables known to interfere with behavior of common tools.
286 CLICOLOR_FORCE= GREP_OPTIONS=
287 unset CLICOLOR_FORCE GREP_OPTIONS
288
289 ## --------------------- ##
290 ## M4sh Shell Functions. ##
291 ## --------------------- ##
292 @%:@ as_fn_unset VAR
293 @%:@ ---------------
294 @%:@ Portably unset VAR.
295 as_fn_unset ()
296 {
297 { eval $1=; unset $1;}
298 }
299 as_unset=as_fn_unset
300
301 @%:@ as_fn_set_status STATUS
302 @%:@ -----------------------
303 @%:@ Set @S|@? to STATUS, without forking.
304 as_fn_set_status ()
305 {
306 return $1
307 } @%:@ as_fn_set_status
308
309 @%:@ as_fn_exit STATUS
310 @%:@ -----------------
311 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
312 as_fn_exit ()
313 {
314 set +e
315 as_fn_set_status $1
316 exit $1
317 } @%:@ as_fn_exit
318
319 @%:@ as_fn_mkdir_p
320 @%:@ -------------
321 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
322 as_fn_mkdir_p ()
323 {
324
325 case $as_dir in #(
326 -*) as_dir=./$as_dir;;
327 esac
328 test -d "$as_dir" || eval $as_mkdir_p || {
329 as_dirs=
330 while :; do
331 case $as_dir in #(
332 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
333 *) as_qdir=$as_dir;;
334 esac
335 as_dirs="'$as_qdir' $as_dirs"
336 as_dir=`$as_dirname -- "$as_dir" ||
337 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
338 X"$as_dir" : 'X\(//\)[^/]' \| \
339 X"$as_dir" : 'X\(//\)$' \| \
340 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
341 $as_echo X"$as_dir" |
342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)[^/].*/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)$/{
351 s//\1/
352 q
353 }
354 /^X\(\/\).*/{
355 s//\1/
356 q
357 }
358 s/.*/./; q'`
359 test -d "$as_dir" && break
360 done
361 test -z "$as_dirs" || eval "mkdir $as_dirs"
362 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363
364
365 } @%:@ as_fn_mkdir_p
366
367 @%:@ as_fn_executable_p FILE
368 @%:@ -----------------------
369 @%:@ Test if FILE is an executable regular file.
370 as_fn_executable_p ()
371 {
372 test -f "$1" && test -x "$1"
373 } @%:@ as_fn_executable_p
374 @%:@ as_fn_append VAR VALUE
375 @%:@ ----------------------
376 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
377 @%:@ advantage of any shell optimizations that allow amortized linear growth over
378 @%:@ repeated appends, instead of the typical quadratic growth present in naive
379 @%:@ implementations.
380 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
381 eval 'as_fn_append ()
382 {
383 eval $1+=\$2
384 }'
385 else
386 as_fn_append ()
387 {
388 eval $1=\$$1\$2
389 }
390 fi # as_fn_append
391
392 @%:@ as_fn_arith ARG...
393 @%:@ ------------------
394 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
395 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
396 @%:@ must be portable across @S|@(()) and expr.
397 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 eval 'as_fn_arith ()
399 {
400 as_val=$(( $* ))
401 }'
402 else
403 as_fn_arith ()
404 {
405 as_val=`expr "$@" || test $? -eq 1`
406 }
407 fi # as_fn_arith
408
409
410 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
411 @%:@ ----------------------------------------
412 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
413 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
414 @%:@ script with STATUS, using 1 if that was 0.
415 as_fn_error ()
416 {
417 as_status=$1; test $as_status -eq 0 && as_status=1
418 if test "$4"; then
419 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
420 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
421 fi
422 $as_echo "$as_me: error: $2" >&2
423 as_fn_exit $as_status
424 } @%:@ as_fn_error
425
426 if expr a : '\(a\)' >/dev/null 2>&1 &&
427 test "X`expr 00001 : '.*\(...\)'`" = X001; then
428 as_expr=expr
429 else
430 as_expr=false
431 fi
432
433 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
434 as_basename=basename
435 else
436 as_basename=false
437 fi
438
439 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
440 as_dirname=dirname
441 else
442 as_dirname=false
443 fi
444
445 as_me=`$as_basename -- "$0" ||
446 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
447 X"$0" : 'X\(//\)$' \| \
448 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
449 $as_echo X/"$0" |
450 sed '/^.*\/\([^/][^/]*\)\/*$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\/\)$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\).*/{
459 s//\1/
460 q
461 }
462 s/.*/./; q'`
463
464 # Avoid depending upon Character Ranges.
465 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
466 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
467 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
468 as_cr_digits='0123456789'
469 as_cr_alnum=$as_cr_Letters$as_cr_digits
470
471
472 as_lineno_1=$LINENO as_lineno_1a=$LINENO
473 as_lineno_2=$LINENO as_lineno_2a=$LINENO
474 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
475 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
476 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
477 sed -n '
478 p
479 /[$]LINENO/=
480 ' <$as_myself |
481 sed '
482 s/[$]LINENO.*/&-/
483 t lineno
484 b
485 :lineno
486 N
487 :loop
488 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
489 t loop
490 s/-\n.*//
491 ' >$as_me.lineno &&
492 chmod +x "$as_me.lineno" ||
493 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
494
495 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
496 # already done that, so ensure we don't try to do so again and fall
497 # in an infinite loop. This has already happened in practice.
498 _as_can_reexec=no; export _as_can_reexec
499 # Don't try to exec as it changes $[0], causing all sort of problems
500 # (the dirname of $[0] is not the place where we might find the
501 # original and so on. Autoconf is especially sensitive to this).
502 . "./$as_me.lineno"
503 # Exit status is that of the last command.
504 exit
505 }
506
507 ECHO_C= ECHO_N= ECHO_T=
508 case `echo -n x` in @%:@(((((
509 -n*)
510 case `echo 'xy\c'` in
511 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
512 xy) ECHO_C='\c';;
513 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
514 ECHO_T=' ';;
515 esac;;
516 *)
517 ECHO_N='-n';;
518 esac
519
520 rm -f conf$$ conf$$.exe conf$$.file
521 if test -d conf$$.dir; then
522 rm -f conf$$.dir/conf$$.file
523 else
524 rm -f conf$$.dir
525 mkdir conf$$.dir 2>/dev/null
526 fi
527 if (echo >conf$$.file) 2>/dev/null; then
528 if ln -s conf$$.file conf$$ 2>/dev/null; then
529 as_ln_s='ln -s'
530 # ... but there are two gotchas:
531 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
532 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
533 # In both cases, we have to default to `cp -pR'.
534 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
535 as_ln_s='cp -pR'
536 elif ln conf$$.file conf$$ 2>/dev/null; then
537 as_ln_s=ln
538 else
539 as_ln_s='cp -pR'
540 fi
541 else
542 as_ln_s='cp -pR'
543 fi
544 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
545 rmdir conf$$.dir 2>/dev/null
546
547 if mkdir -p . 2>/dev/null; then
548 as_mkdir_p='mkdir -p "$as_dir"'
549 else
550 test -d ./-p && rmdir ./-p
551 as_mkdir_p=false
552 fi
553
554 as_test_x='test -x'
555 as_executable_p=as_fn_executable_p
556
557 # Sed expression to map a string onto a valid CPP name.
558 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
559
560 # Sed expression to map a string onto a valid variable name.
561 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
562
563 SHELL=${CONFIG_SHELL-/bin/sh}
564
565
566 test -n "$DJDIR" || exec 7<&0 </dev/null
567 exec 6>&1
568
569 # Name of the host.
570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
571 # so uname gets run too.
572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
573
574 #
575 # Initializations.
576 #
577 ac_default_prefix=/usr/local
578 ac_clean_files=
579 ac_config_libobj_dir=.
580 LIB@&t@OBJS=
581 cross_compiling=no
582 subdirs=
583 MFLAGS=
584 MAKEFLAGS=
585
586 # Identity of this package.
587 PACKAGE_NAME=
588 PACKAGE_TARNAME=
589 PACKAGE_VERSION=
590 PACKAGE_STRING=
591 PACKAGE_BUGREPORT=
592 PACKAGE_URL=
593
594 ac_unique_file="configure.in"
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='LTLIBOBJS
632 LIB@&t@OBJS
633 GTK_LIBS
634 GTK_CFLAGS
635 PKG_CONFIG_LIBDIR
636 PKG_CONFIG_PATH
637 PKG_CONFIG
638 OTOOL64
639 OTOOL
640 LIPO
641 NMEDIT
642 DSYMUTIL
643 MANIFEST_TOOL
644 RANLIB
645 ac_ct_AR
646 AR
647 DLLTOOL
648 OBJDUMP
649 LN_S
650 NM
651 ac_ct_DUMPBIN
652 DUMPBIN
653 LD
654 FGREP
655 SED
656 host_os
657 host_vendor
658 host_cpu
659 host
660 build_os
661 build_vendor
662 build_cpu
663 build
664 LIBTOOL
665 EGREP
666 GREP
667 CPP
668 am__fastdepCC_FALSE
669 am__fastdepCC_TRUE
670 CCDEPMODE
671 AMDEPBACKSLASH
672 AMDEP_FALSE
673 AMDEP_TRUE
674 am__quote
675 am__include
676 DEPDIR
677 OBJEXT
678 EXEEXT
679 ac_ct_CC
680 CPPFLAGS
681 LDFLAGS
682 CFLAGS
683 CC
684 am__untar
685 am__tar
686 AMTAR
687 am__leading_dot
688 SET_MAKE
689 AWK
690 mkdir_p
691 INSTALL_STRIP_PROGRAM
692 STRIP
693 install_sh
694 MAKEINFO
695 AUTOHEADER
696 AUTOMAKE
697 AUTOCONF
698 ACLOCAL
699 VERSION
700 PACKAGE
701 CYGPATH_W
702 INSTALL_DATA
703 INSTALL_SCRIPT
704 INSTALL_PROGRAM
705 target_alias
706 host_alias
707 build_alias
708 LIBS
709 ECHO_T
710 ECHO_N
711 ECHO_C
712 DEFS
713 mandir
714 localedir
715 libdir
716 psdir
717 pdfdir
718 dvidir
719 htmldir
720 infodir
721 docdir
722 oldincludedir
723 includedir
724 localstatedir
725 sharedstatedir
726 sysconfdir
727 datadir
728 datarootdir
729 libexecdir
730 sbindir
731 bindir
732 program_transform_name
733 prefix
734 exec_prefix
735 PACKAGE_URL
736 PACKAGE_BUGREPORT
737 PACKAGE_STRING
738 PACKAGE_VERSION
739 PACKAGE_TARNAME
740 PACKAGE_NAME
741 PATH_SEPARATOR
742 SHELL'
743 ac_subst_files=''
744 ac_user_opts='
745 enable_option_checking
746 enable_dependency_tracking
747 enable_shared
748 enable_static
749 with_pic
750 enable_fast_install
751 with_gnu_ld
752 with_sysroot
753 enable_libtool_lock
754 '
755 ac_precious_vars='build_alias
756 host_alias
757 target_alias
758 CC
759 CFLAGS
760 LDFLAGS
761 LIBS
762 CPPFLAGS
763 CPP
764 PKG_CONFIG
765 PKG_CONFIG_PATH
766 PKG_CONFIG_LIBDIR
767 GTK_CFLAGS
768 GTK_LIBS'
769
770
771 # Initialize some variables set by options.
772 ac_init_help=
773 ac_init_version=false
774 ac_unrecognized_opts=
775 ac_unrecognized_sep=
776 # The variables have the same names as the options, with
777 # dashes changed to underlines.
778 cache_file=/dev/null
779 exec_prefix=NONE
780 no_create=
781 no_recursion=
782 prefix=NONE
783 program_prefix=NONE
784 program_suffix=NONE
785 program_transform_name=s,x,x,
786 silent=
787 site=
788 srcdir=
789 verbose=
790 x_includes=NONE
791 x_libraries=NONE
792
793 # Installation directory options.
794 # These are left unexpanded so users can "make install exec_prefix=/foo"
795 # and all the variables that are supposed to be based on exec_prefix
796 # by default will actually change.
797 # Use braces instead of parens because sh, perl, etc. also accept them.
798 # (The list follows the same order as the GNU Coding Standards.)
799 bindir='${exec_prefix}/bin'
800 sbindir='${exec_prefix}/sbin'
801 libexecdir='${exec_prefix}/libexec'
802 datarootdir='${prefix}/share'
803 datadir='${datarootdir}'
804 sysconfdir='${prefix}/etc'
805 sharedstatedir='${prefix}/com'
806 localstatedir='${prefix}/var'
807 includedir='${prefix}/include'
808 oldincludedir='/usr/include'
809 docdir='${datarootdir}/doc/${PACKAGE}'
810 infodir='${datarootdir}/info'
811 htmldir='${docdir}'
812 dvidir='${docdir}'
813 pdfdir='${docdir}'
814 psdir='${docdir}'
815 libdir='${exec_prefix}/lib'
816 localedir='${datarootdir}/locale'
817 mandir='${datarootdir}/man'
818
819 ac_prev=
820 ac_dashdash=
821 for ac_option
822 do
823 # If the previous option needs an argument, assign it.
824 if test -n "$ac_prev"; then
825 eval $ac_prev=\$ac_option
826 ac_prev=
827 continue
828 fi
829
830 case $ac_option in
831 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832 *=) ac_optarg= ;;
833 *) ac_optarg=yes ;;
834 esac
835
836 # Accept the important Cygnus configure options, so we can diagnose typos.
837
838 case $ac_dashdash$ac_option in
839 --)
840 ac_dashdash=yes ;;
841
842 -bindir | --bindir | --bindi | --bind | --bin | --bi)
843 ac_prev=bindir ;;
844 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
845 bindir=$ac_optarg ;;
846
847 -build | --build | --buil | --bui | --bu)
848 ac_prev=build_alias ;;
849 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850 build_alias=$ac_optarg ;;
851
852 -cache-file | --cache-file | --cache-fil | --cache-fi \
853 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854 ac_prev=cache_file ;;
855 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857 cache_file=$ac_optarg ;;
858
859 --config-cache | -C)
860 cache_file=config.cache ;;
861
862 -datadir | --datadir | --datadi | --datad)
863 ac_prev=datadir ;;
864 -datadir=* | --datadir=* | --datadi=* | --datad=*)
865 datadir=$ac_optarg ;;
866
867 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868 | --dataroo | --dataro | --datar)
869 ac_prev=datarootdir ;;
870 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872 datarootdir=$ac_optarg ;;
873
874 -disable-* | --disable-*)
875 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 as_fn_error $? "invalid feature name: $ac_useropt"
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
882 *"
883 "enable_$ac_useropt"
884 "*) ;;
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
887 esac
888 eval enable_$ac_useropt=no ;;
889
890 -docdir | --docdir | --docdi | --doc | --do)
891 ac_prev=docdir ;;
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893 docdir=$ac_optarg ;;
894
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 ac_prev=dvidir ;;
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898 dvidir=$ac_optarg ;;
899
900 -enable-* | --enable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error $? "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
908 *"
909 "enable_$ac_useropt"
910 "*) ;;
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
913 esac
914 eval enable_$ac_useropt=\$ac_optarg ;;
915
916 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918 | --exec | --exe | --ex)
919 ac_prev=exec_prefix ;;
920 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922 | --exec=* | --exe=* | --ex=*)
923 exec_prefix=$ac_optarg ;;
924
925 -gas | --gas | --ga | --g)
926 # Obsolete; use --with-gas.
927 with_gas=yes ;;
928
929 -help | --help | --hel | --he | -h)
930 ac_init_help=long ;;
931 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932 ac_init_help=recursive ;;
933 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934 ac_init_help=short ;;
935
936 -host | --host | --hos | --ho)
937 ac_prev=host_alias ;;
938 -host=* | --host=* | --hos=* | --ho=*)
939 host_alias=$ac_optarg ;;
940
941 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
942 ac_prev=htmldir ;;
943 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
944 | --ht=*)
945 htmldir=$ac_optarg ;;
946
947 -includedir | --includedir | --includedi | --included | --include \
948 | --includ | --inclu | --incl | --inc)
949 ac_prev=includedir ;;
950 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951 | --includ=* | --inclu=* | --incl=* | --inc=*)
952 includedir=$ac_optarg ;;
953
954 -infodir | --infodir | --infodi | --infod | --info | --inf)
955 ac_prev=infodir ;;
956 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957 infodir=$ac_optarg ;;
958
959 -libdir | --libdir | --libdi | --libd)
960 ac_prev=libdir ;;
961 -libdir=* | --libdir=* | --libdi=* | --libd=*)
962 libdir=$ac_optarg ;;
963
964 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965 | --libexe | --libex | --libe)
966 ac_prev=libexecdir ;;
967 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968 | --libexe=* | --libex=* | --libe=*)
969 libexecdir=$ac_optarg ;;
970
971 -localedir | --localedir | --localedi | --localed | --locale)
972 ac_prev=localedir ;;
973 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974 localedir=$ac_optarg ;;
975
976 -localstatedir | --localstatedir | --localstatedi | --localstated \
977 | --localstate | --localstat | --localsta | --localst | --locals)
978 ac_prev=localstatedir ;;
979 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981 localstatedir=$ac_optarg ;;
982
983 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
984 ac_prev=mandir ;;
985 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
986 mandir=$ac_optarg ;;
987
988 -nfp | --nfp | --nf)
989 # Obsolete; use --without-fp.
990 with_fp=no ;;
991
992 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993 | --no-cr | --no-c | -n)
994 no_create=yes ;;
995
996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998 no_recursion=yes ;;
999
1000 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002 | --oldin | --oldi | --old | --ol | --o)
1003 ac_prev=oldincludedir ;;
1004 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007 oldincludedir=$ac_optarg ;;
1008
1009 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1010 ac_prev=prefix ;;
1011 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012 prefix=$ac_optarg ;;
1013
1014 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015 | --program-pre | --program-pr | --program-p)
1016 ac_prev=program_prefix ;;
1017 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019 program_prefix=$ac_optarg ;;
1020
1021 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022 | --program-suf | --program-su | --program-s)
1023 ac_prev=program_suffix ;;
1024 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026 program_suffix=$ac_optarg ;;
1027
1028 -program-transform-name | --program-transform-name \
1029 | --program-transform-nam | --program-transform-na \
1030 | --program-transform-n | --program-transform- \
1031 | --program-transform | --program-transfor \
1032 | --program-transfo | --program-transf \
1033 | --program-trans | --program-tran \
1034 | --progr-tra | --program-tr | --program-t)
1035 ac_prev=program_transform_name ;;
1036 -program-transform-name=* | --program-transform-name=* \
1037 | --program-transform-nam=* | --program-transform-na=* \
1038 | --program-transform-n=* | --program-transform-=* \
1039 | --program-transform=* | --program-transfor=* \
1040 | --program-transfo=* | --program-transf=* \
1041 | --program-trans=* | --program-tran=* \
1042 | --progr-tra=* | --program-tr=* | --program-t=*)
1043 program_transform_name=$ac_optarg ;;
1044
1045 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1046 ac_prev=pdfdir ;;
1047 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048 pdfdir=$ac_optarg ;;
1049
1050 -psdir | --psdir | --psdi | --psd | --ps)
1051 ac_prev=psdir ;;
1052 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1053 psdir=$ac_optarg ;;
1054
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1057 silent=yes ;;
1058
1059 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1060 ac_prev=sbindir ;;
1061 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1062 | --sbi=* | --sb=*)
1063 sbindir=$ac_optarg ;;
1064
1065 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067 | --sharedst | --shareds | --shared | --share | --shar \
1068 | --sha | --sh)
1069 ac_prev=sharedstatedir ;;
1070 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1073 | --sha=* | --sh=*)
1074 sharedstatedir=$ac_optarg ;;
1075
1076 -site | --site | --sit)
1077 ac_prev=site ;;
1078 -site=* | --site=* | --sit=*)
1079 site=$ac_optarg ;;
1080
1081 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1082 ac_prev=srcdir ;;
1083 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084 srcdir=$ac_optarg ;;
1085
1086 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087 | --syscon | --sysco | --sysc | --sys | --sy)
1088 ac_prev=sysconfdir ;;
1089 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091 sysconfdir=$ac_optarg ;;
1092
1093 -target | --target | --targe | --targ | --tar | --ta | --t)
1094 ac_prev=target_alias ;;
1095 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096 target_alias=$ac_optarg ;;
1097
1098 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1099 verbose=yes ;;
1100
1101 -version | --version | --versio | --versi | --vers | -V)
1102 ac_init_version=: ;;
1103
1104 -with-* | --with-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error $? "invalid package name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1112 *"
1113 "with_$ac_useropt"
1114 "*) ;;
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1117 esac
1118 eval with_$ac_useropt=\$ac_optarg ;;
1119
1120 -without-* | --without-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1128 *"
1129 "with_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval with_$ac_useropt=no ;;
1135
1136 --x)
1137 # Obsolete; use --with-x.
1138 with_x=yes ;;
1139
1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141 | --x-incl | --x-inc | --x-in | --x-i)
1142 ac_prev=x_includes ;;
1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145 x_includes=$ac_optarg ;;
1146
1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149 ac_prev=x_libraries ;;
1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152 x_libraries=$ac_optarg ;;
1153
1154 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1155 Try \`$0 --help' for more information"
1156 ;;
1157
1158 *=*)
1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160 # Reject names that are not valid shell variable names.
1161 case $ac_envvar in #(
1162 '' | [0-9]* | *[!_$as_cr_alnum]* )
1163 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1164 esac
1165 eval $ac_envvar=\$ac_optarg
1166 export $ac_envvar ;;
1167
1168 *)
1169 # FIXME: should be removed in autoconf 3.0.
1170 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1174 ;;
1175
1176 esac
1177 done
1178
1179 if test -n "$ac_prev"; then
1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181 as_fn_error $? "missing argument to $ac_option"
1182 fi
1183
1184 if test -n "$ac_unrecognized_opts"; then
1185 case $enable_option_checking in
1186 no) ;;
1187 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1188 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1189 esac
1190 fi
1191
1192 # Check all directory arguments for consistency.
1193 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194 datadir sysconfdir sharedstatedir localstatedir includedir \
1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196 libdir localedir mandir
1197 do
1198 eval ac_val=\$$ac_var
1199 # Remove trailing slashes.
1200 case $ac_val in
1201 */ )
1202 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203 eval $ac_var=\$ac_val;;
1204 esac
1205 # Be sure to have absolute directory names.
1206 case $ac_val in
1207 [\\/$]* | ?:[\\/]* ) continue;;
1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209 esac
1210 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1211 done
1212
1213 # There might be people who depend on the old broken behavior: `$host'
1214 # used to hold the argument of --host etc.
1215 # FIXME: To remove some day.
1216 build=$build_alias
1217 host=$host_alias
1218 target=$target_alias
1219
1220 # FIXME: To remove some day.
1221 if test "x$host_alias" != x; then
1222 if test "x$build_alias" = x; then
1223 cross_compiling=maybe
1224 elif test "x$build_alias" != "x$host_alias"; then
1225 cross_compiling=yes
1226 fi
1227 fi
1228
1229 ac_tool_prefix=
1230 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1231
1232 test "$silent" = yes && exec 6>/dev/null
1233
1234
1235 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1236 ac_ls_di=`ls -di .` &&
1237 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1238 as_fn_error $? "working directory cannot be determined"
1239 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1240 as_fn_error $? "pwd does not report name of working directory"
1241
1242
1243 # Find the source files, if location was not specified.
1244 if test -z "$srcdir"; then
1245 ac_srcdir_defaulted=yes
1246 # Try the directory containing this script, then the parent directory.
1247 ac_confdir=`$as_dirname -- "$as_myself" ||
1248 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1249 X"$as_myself" : 'X\(//\)[^/]' \| \
1250 X"$as_myself" : 'X\(//\)$' \| \
1251 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1252 $as_echo X"$as_myself" |
1253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1254 s//\1/
1255 q
1256 }
1257 /^X\(\/\/\)[^/].*/{
1258 s//\1/
1259 q
1260 }
1261 /^X\(\/\/\)$/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\).*/{
1266 s//\1/
1267 q
1268 }
1269 s/.*/./; q'`
1270 srcdir=$ac_confdir
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1272 srcdir=..
1273 fi
1274 else
1275 ac_srcdir_defaulted=no
1276 fi
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1279 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1280 fi
1281 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1282 ac_abs_confdir=`(
1283 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1284 pwd)`
1285 # When building in place, set srcdir=.
1286 if test "$ac_abs_confdir" = "$ac_pwd"; then
1287 srcdir=.
1288 fi
1289 # Remove unnecessary trailing slashes from srcdir.
1290 # Double slashes in file names in object file debugging info
1291 # mess up M-x gdb in Emacs.
1292 case $srcdir in
1293 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1294 esac
1295 for ac_var in $ac_precious_vars; do
1296 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1297 eval ac_env_${ac_var}_value=\$${ac_var}
1298 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1300 done
1301
1302 #
1303 # Report the --help message.
1304 #
1305 if test "$ac_init_help" = "long"; then
1306 # Omit some internal or obsolete options to make the list less imposing.
1307 # This message is too long to be a string in the A/UX 3.1 sh.
1308 cat <<_ACEOF
1309 \`configure' configures this package to adapt to many kinds of systems.
1310
1311 Usage: $0 [OPTION]... [VAR=VALUE]...
1312
1313 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1314 VAR=VALUE. See below for descriptions of some of the useful variables.
1315
1316 Defaults for the options are specified in brackets.
1317
1318 Configuration:
1319 -h, --help display this help and exit
1320 --help=short display options specific to this package
1321 --help=recursive display the short help of all the included packages
1322 -V, --version display version information and exit
1323 -q, --quiet, --silent do not print \`checking ...' messages
1324 --cache-file=FILE cache test results in FILE [disabled]
1325 -C, --config-cache alias for \`--cache-file=config.cache'
1326 -n, --no-create do not create output files
1327 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1328
1329 Installation directories:
1330 --prefix=PREFIX install architecture-independent files in PREFIX
1331 @<:@@S|@ac_default_prefix@:>@
1332 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1333 @<:@PREFIX@:>@
1334
1335 By default, \`make install' will install all the files in
1336 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1337 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1338 for instance \`--prefix=\$HOME'.
1339
1340 For better control, use the options below.
1341
1342 Fine tuning of the installation directories:
1343 --bindir=DIR user executables [EPREFIX/bin]
1344 --sbindir=DIR system admin executables [EPREFIX/sbin]
1345 --libexecdir=DIR program executables [EPREFIX/libexec]
1346 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1347 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1348 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1349 --libdir=DIR object code libraries [EPREFIX/lib]
1350 --includedir=DIR C header files [PREFIX/include]
1351 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1352 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1353 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1354 --infodir=DIR info documentation [DATAROOTDIR/info]
1355 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1356 --mandir=DIR man documentation [DATAROOTDIR/man]
1357 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1358 --htmldir=DIR html documentation [DOCDIR]
1359 --dvidir=DIR dvi documentation [DOCDIR]
1360 --pdfdir=DIR pdf documentation [DOCDIR]
1361 --psdir=DIR ps documentation [DOCDIR]
1362 _ACEOF
1363
1364 cat <<\_ACEOF
1365
1366 Program names:
1367 --program-prefix=PREFIX prepend PREFIX to installed program names
1368 --program-suffix=SUFFIX append SUFFIX to installed program names
1369 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1370
1371 System types:
1372 --build=BUILD configure for building on BUILD [guessed]
1373 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1374 _ACEOF
1375 fi
1376
1377 if test -n "$ac_init_help"; then
1378
1379 cat <<\_ACEOF
1380
1381 Optional Features:
1382 --disable-option-checking ignore unrecognized --enable/--with options
1383 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1384 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1385 --disable-dependency-tracking speeds up one-time build
1386 --enable-dependency-tracking do not reject slow dependency extractors
1387 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1388 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1389 --enable-fast-install@<:@=PKGS@:>@
1390 optimize for fast installation @<:@default=yes@:>@
1391 --disable-libtool-lock avoid locking (might break parallel builds)
1392
1393 Optional Packages:
1394 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1395 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1396 --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
1397 both@:>@
1398 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1399 --with-sysroot=DIR Search for dependent libraries within DIR
1400 (or the compiler's sysroot if not specified).
1401
1402 Some influential environment variables:
1403 CC C compiler command
1404 CFLAGS C compiler flags
1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1406 nonstandard directory <lib dir>
1407 LIBS libraries to pass to the linker, e.g. -l<library>
1408 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1409 you have headers in a nonstandard directory <include dir>
1410 CPP C preprocessor
1411 PKG_CONFIG path to pkg-config utility
1412 PKG_CONFIG_PATH
1413 directories to add to pkg-config's search path
1414 PKG_CONFIG_LIBDIR
1415 path overriding pkg-config's built-in search path
1416 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1417 GTK_LIBS linker flags for GTK, overriding pkg-config
1418
1419 Use these variables to override the choices made by `configure' or to help
1420 it to find libraries and programs with nonstandard names/locations.
1421
1422 Report bugs to the package provider.
1423 _ACEOF
1424 ac_status=$?
1425 fi
1426
1427 if test "$ac_init_help" = "recursive"; then
1428 # If there are subdirs, report their specific --help.
1429 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1430 test -d "$ac_dir" ||
1431 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1432 continue
1433 ac_builddir=.
1434
1435 case "$ac_dir" in
1436 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *)
1438 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1439 # A ".." for each directory in $ac_dir_suffix.
1440 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1441 case $ac_top_builddir_sub in
1442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1444 esac ;;
1445 esac
1446 ac_abs_top_builddir=$ac_pwd
1447 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1448 # for backward compatibility:
1449 ac_top_builddir=$ac_top_build_prefix
1450
1451 case $srcdir in
1452 .) # We are building in place.
1453 ac_srcdir=.
1454 ac_top_srcdir=$ac_top_builddir_sub
1455 ac_abs_top_srcdir=$ac_pwd ;;
1456 [\\/]* | ?:[\\/]* ) # Absolute name.
1457 ac_srcdir=$srcdir$ac_dir_suffix;
1458 ac_top_srcdir=$srcdir
1459 ac_abs_top_srcdir=$srcdir ;;
1460 *) # Relative name.
1461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1462 ac_top_srcdir=$ac_top_build_prefix$srcdir
1463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1464 esac
1465 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1466
1467 cd "$ac_dir" || { ac_status=$?; continue; }
1468 # Check for guested configure.
1469 if test -f "$ac_srcdir/configure.gnu"; then
1470 echo &&
1471 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1472 elif test -f "$ac_srcdir/configure"; then
1473 echo &&
1474 $SHELL "$ac_srcdir/configure" --help=recursive
1475 else
1476 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1477 fi || ac_status=$?
1478 cd "$ac_pwd" || { ac_status=$?; break; }
1479 done
1480 fi
1481
1482 test -n "$ac_init_help" && exit $ac_status
1483 if $ac_init_version; then
1484 cat <<\_ACEOF
1485 configure
1486 generated by GNU Autoconf 2.69
1487
1488 Copyright (C) 2012 Free Software Foundation, Inc.
1489 This configure script is free software; the Free Software Foundation
1490 gives unlimited permission to copy, distribute and modify it.
1491 _ACEOF
1492 exit
1493 fi
1494
1495 ## ------------------------ ##
1496 ## Autoconf initialization. ##
1497 ## ------------------------ ##
1498
1499 @%:@ ac_fn_c_try_compile LINENO
1500 @%:@ --------------------------
1501 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1502 ac_fn_c_try_compile ()
1503 {
1504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505 rm -f conftest.$ac_objext
1506 if { { ac_try="$ac_compile"
1507 case "(($ac_try" in
1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1510 esac
1511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512 $as_echo "$ac_try_echo"; } >&5
1513 (eval "$ac_compile") 2>conftest.err
1514 ac_status=$?
1515 if test -s conftest.err; then
1516 grep -v '^ *+' conftest.err >conftest.er1
1517 cat conftest.er1 >&5
1518 mv -f conftest.er1 conftest.err
1519 fi
1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521 test $ac_status = 0; } && {
1522 test -z "$ac_c_werror_flag" ||
1523 test ! -s conftest.err
1524 } && test -s conftest.$ac_objext; then :
1525 ac_retval=0
1526 else
1527 $as_echo "$as_me: failed program was:" >&5
1528 sed 's/^/| /' conftest.$ac_ext >&5
1529
1530 ac_retval=1
1531 fi
1532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1533 as_fn_set_status $ac_retval
1534
1535 } @%:@ ac_fn_c_try_compile
1536
1537 @%:@ ac_fn_c_try_link LINENO
1538 @%:@ -----------------------
1539 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1540 ac_fn_c_try_link ()
1541 {
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 rm -f conftest.$ac_objext conftest$ac_exeext
1544 if { { ac_try="$ac_link"
1545 case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548 esac
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 $as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_link") 2>conftest.err
1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1557 fi
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest$ac_exeext && {
1563 test "$cross_compiling" = yes ||
1564 test -x conftest$ac_exeext
1565 }; then :
1566 ac_retval=0
1567 else
1568 $as_echo "$as_me: failed program was:" >&5
1569 sed 's/^/| /' conftest.$ac_ext >&5
1570
1571 ac_retval=1
1572 fi
1573 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1574 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1575 # interfere with the next link command; also delete a directory that is
1576 # left behind by Apple's compiler. We do this before executing the actions.
1577 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579 as_fn_set_status $ac_retval
1580
1581 } @%:@ ac_fn_c_try_link
1582
1583 @%:@ ac_fn_c_try_cpp LINENO
1584 @%:@ ----------------------
1585 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1586 ac_fn_c_try_cpp ()
1587 {
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 if { { ac_try="$ac_cpp conftest.$ac_ext"
1590 case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1597 ac_status=$?
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1602 fi
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } > conftest.i && {
1605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 }; then :
1608 ac_retval=0
1609 else
1610 $as_echo "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1612
1613 ac_retval=1
1614 fi
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616 as_fn_set_status $ac_retval
1617
1618 } @%:@ ac_fn_c_try_cpp
1619
1620 @%:@ ac_fn_c_try_run LINENO
1621 @%:@ ----------------------
1622 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1623 @%:@ that executables *can* be run.
1624 ac_fn_c_try_run ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 if { { ac_try="$ac_link"
1628 case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_link") 2>&5
1635 ac_status=$?
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1638 { { case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641 esac
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_try") 2>&5
1645 ac_status=$?
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; }; }; then :
1648 ac_retval=0
1649 else
1650 $as_echo "$as_me: program exited with status $ac_status" >&5
1651 $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654 ac_retval=$ac_status
1655 fi
1656 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658 as_fn_set_status $ac_retval
1659
1660 } @%:@ ac_fn_c_try_run
1661
1662 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1663 @%:@ -------------------------------------------------------
1664 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1665 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1666 ac_fn_c_check_header_compile ()
1667 {
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1670 $as_echo_n "checking for $2... " >&6; }
1671 if eval \${$3+:} false; then :
1672 $as_echo_n "(cached) " >&6
1673 else
1674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675 /* end confdefs.h. */
1676 $4
1677 @%:@include <$2>
1678 _ACEOF
1679 if ac_fn_c_try_compile "$LINENO"; then :
1680 eval "$3=yes"
1681 else
1682 eval "$3=no"
1683 fi
1684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1685 fi
1686 eval ac_res=\$$3
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1688 $as_echo "$ac_res" >&6; }
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690
1691 } @%:@ ac_fn_c_check_header_compile
1692
1693 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1694 @%:@ ----------------------------------
1695 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1696 ac_fn_c_check_func ()
1697 {
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1700 $as_echo_n "checking for $2... " >&6; }
1701 if eval \${$3+:} false; then :
1702 $as_echo_n "(cached) " >&6
1703 else
1704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705 /* end confdefs.h. */
1706 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1708 #define $2 innocuous_$2
1709
1710 /* System header to define __stub macros and hopefully few prototypes,
1711 which can conflict with char $2 (); below.
1712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1713 <limits.h> exists even on freestanding compilers. */
1714
1715 #ifdef __STDC__
1716 # include <limits.h>
1717 #else
1718 # include <assert.h>
1719 #endif
1720
1721 #undef $2
1722
1723 /* Override any GCC internal prototype to avoid an error.
1724 Use char because int might match the return type of a GCC
1725 builtin and then its argument prototype would still apply. */
1726 #ifdef __cplusplus
1727 extern "C"
1728 #endif
1729 char $2 ();
1730 /* The GNU C library defines this for functions which it implements
1731 to always fail with ENOSYS. Some functions are actually named
1732 something starting with __ and the normal name is an alias. */
1733 #if defined __stub_$2 || defined __stub___$2
1734 choke me
1735 #endif
1736
1737 int
1738 main ()
1739 {
1740 return $2 ();
1741 ;
1742 return 0;
1743 }
1744 _ACEOF
1745 if ac_fn_c_try_link "$LINENO"; then :
1746 eval "$3=yes"
1747 else
1748 eval "$3=no"
1749 fi
1750 rm -f core conftest.err conftest.$ac_objext \
1751 conftest$ac_exeext conftest.$ac_ext
1752 fi
1753 eval ac_res=\$$3
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755 $as_echo "$ac_res" >&6; }
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757
1758 } @%:@ ac_fn_c_check_func
1759
1760 @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1761 @%:@ -------------------------------------------------------
1762 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1763 @%:@ the include files in INCLUDES and setting the cache variable VAR
1764 @%:@ accordingly.
1765 ac_fn_c_check_header_mongrel ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 if eval \${$3+:} false; then :
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval \${$3+:} false; then :
1772 $as_echo_n "(cached) " >&6
1773 fi
1774 eval ac_res=\$$3
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1777 else
1778 # Is the header compilable?
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1780 $as_echo_n "checking $2 usability... " >&6; }
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1783 $4
1784 @%:@include <$2>
1785 _ACEOF
1786 if ac_fn_c_try_compile "$LINENO"; then :
1787 ac_header_compiler=yes
1788 else
1789 ac_header_compiler=no
1790 fi
1791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1793 $as_echo "$ac_header_compiler" >&6; }
1794
1795 # Is the header present?
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1797 $as_echo_n "checking $2 presence... " >&6; }
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1800 @%:@include <$2>
1801 _ACEOF
1802 if ac_fn_c_try_cpp "$LINENO"; then :
1803 ac_header_preproc=yes
1804 else
1805 ac_header_preproc=no
1806 fi
1807 rm -f conftest.err conftest.i conftest.$ac_ext
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1809 $as_echo "$ac_header_preproc" >&6; }
1810
1811 # So? What about this header?
1812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1813 yes:no: )
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1815 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1817 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1818 ;;
1819 no:yes:* )
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1821 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1823 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1825 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1827 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1829 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1830 ;;
1831 esac
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835 $as_echo_n "(cached) " >&6
1836 else
1837 eval "$3=\$ac_header_compiler"
1838 fi
1839 eval ac_res=\$$3
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 fi
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844
1845 } @%:@ ac_fn_c_check_header_mongrel
1846 cat >config.log <<_ACEOF
1847 This file contains any messages produced by compilers while
1848 running configure, to aid debugging if configure makes a mistake.
1849
1850 It was created by $as_me, which was
1851 generated by GNU Autoconf 2.69. Invocation command line was
1852
1853 $ $0 $@
1854
1855 _ACEOF
1856 exec 5>>config.log
1857 {
1858 cat <<_ASUNAME
1859 ## --------- ##
1860 ## Platform. ##
1861 ## --------- ##
1862
1863 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1864 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1865 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1866 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1867 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1868
1869 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1870 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1871
1872 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1873 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1874 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1875 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1876 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1877 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1878 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1879
1880 _ASUNAME
1881
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 for as_dir in $PATH
1884 do
1885 IFS=$as_save_IFS
1886 test -z "$as_dir" && as_dir=.
1887 $as_echo "PATH: $as_dir"
1888 done
1889 IFS=$as_save_IFS
1890
1891 } >&5
1892
1893 cat >&5 <<_ACEOF
1894
1895
1896 ## ----------- ##
1897 ## Core tests. ##
1898 ## ----------- ##
1899
1900 _ACEOF
1901
1902
1903 # Keep a trace of the command line.
1904 # Strip out --no-create and --no-recursion so they do not pile up.
1905 # Strip out --silent because we don't want to record it for future runs.
1906 # Also quote any args containing shell meta-characters.
1907 # Make two passes to allow for proper duplicate-argument suppression.
1908 ac_configure_args=
1909 ac_configure_args0=
1910 ac_configure_args1=
1911 ac_must_keep_next=false
1912 for ac_pass in 1 2
1913 do
1914 for ac_arg
1915 do
1916 case $ac_arg in
1917 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1918 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1919 | -silent | --silent | --silen | --sile | --sil)
1920 continue ;;
1921 *\'*)
1922 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1923 esac
1924 case $ac_pass in
1925 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1926 2)
1927 as_fn_append ac_configure_args1 " '$ac_arg'"
1928 if test $ac_must_keep_next = true; then
1929 ac_must_keep_next=false # Got value, back to normal.
1930 else
1931 case $ac_arg in
1932 *=* | --config-cache | -C | -disable-* | --disable-* \
1933 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1934 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1935 | -with-* | --with-* | -without-* | --without-* | --x)
1936 case "$ac_configure_args0 " in
1937 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1938 esac
1939 ;;
1940 -* ) ac_must_keep_next=true ;;
1941 esac
1942 fi
1943 as_fn_append ac_configure_args " '$ac_arg'"
1944 ;;
1945 esac
1946 done
1947 done
1948 { ac_configure_args0=; unset ac_configure_args0;}
1949 { ac_configure_args1=; unset ac_configure_args1;}
1950
1951 # When interrupted or exit'd, cleanup temporary files, and complete
1952 # config.log. We remove comments because anyway the quotes in there
1953 # would cause problems or look ugly.
1954 # WARNING: Use '\'' to represent an apostrophe within the trap.
1955 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1956 trap 'exit_status=$?
1957 # Save into config.log some information that might help in debugging.
1958 {
1959 echo
1960
1961 $as_echo "## ---------------- ##
1962 ## Cache variables. ##
1963 ## ---------------- ##"
1964 echo
1965 # The following way of writing the cache mishandles newlines in values,
1966 (
1967 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1968 eval ac_val=\$$ac_var
1969 case $ac_val in #(
1970 *${as_nl}*)
1971 case $ac_var in #(
1972 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1973 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1974 esac
1975 case $ac_var in #(
1976 _ | IFS | as_nl) ;; #(
1977 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1978 *) { eval $ac_var=; unset $ac_var;} ;;
1979 esac ;;
1980 esac
1981 done
1982 (set) 2>&1 |
1983 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1984 *${as_nl}ac_space=\ *)
1985 sed -n \
1986 "s/'\''/'\''\\\\'\'''\''/g;
1987 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1988 ;; #(
1989 *)
1990 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1991 ;;
1992 esac |
1993 sort
1994 )
1995 echo
1996
1997 $as_echo "## ----------------- ##
1998 ## Output variables. ##
1999 ## ----------------- ##"
2000 echo
2001 for ac_var in $ac_subst_vars
2002 do
2003 eval ac_val=\$$ac_var
2004 case $ac_val in
2005 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2006 esac
2007 $as_echo "$ac_var='\''$ac_val'\''"
2008 done | sort
2009 echo
2010
2011 if test -n "$ac_subst_files"; then
2012 $as_echo "## ------------------- ##
2013 ## File substitutions. ##
2014 ## ------------------- ##"
2015 echo
2016 for ac_var in $ac_subst_files
2017 do
2018 eval ac_val=\$$ac_var
2019 case $ac_val in
2020 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2021 esac
2022 $as_echo "$ac_var='\''$ac_val'\''"
2023 done | sort
2024 echo
2025 fi
2026
2027 if test -s confdefs.h; then
2028 $as_echo "## ----------- ##
2029 ## confdefs.h. ##
2030 ## ----------- ##"
2031 echo
2032 cat confdefs.h
2033 echo
2034 fi
2035 test "$ac_signal" != 0 &&
2036 $as_echo "$as_me: caught signal $ac_signal"
2037 $as_echo "$as_me: exit $exit_status"
2038 } >&5
2039 rm -f core *.core core.conftest.* &&
2040 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2041 exit $exit_status
2042 ' 0
2043 for ac_signal in 1 2 13 15; do
2044 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2045 done
2046 ac_signal=0
2047
2048 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2049 rm -f -r conftest* confdefs.h
2050
2051 $as_echo "/* confdefs.h */" > confdefs.h
2052
2053 # Predefined preprocessor variables.
2054
2055 cat >>confdefs.h <<_ACEOF
2056 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2057 _ACEOF
2058
2059 cat >>confdefs.h <<_ACEOF
2060 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2061 _ACEOF
2062
2063 cat >>confdefs.h <<_ACEOF
2064 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2065 _ACEOF
2066
2067 cat >>confdefs.h <<_ACEOF
2068 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2069 _ACEOF
2070
2071 cat >>confdefs.h <<_ACEOF
2072 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2073 _ACEOF
2074
2075 cat >>confdefs.h <<_ACEOF
2076 @%:@define PACKAGE_URL "$PACKAGE_URL"
2077 _ACEOF
2078
2079
2080 # Let the site file select an alternate cache file if it wants to.
2081 # Prefer an explicitly selected file to automatically selected ones.
2082 ac_site_file1=NONE
2083 ac_site_file2=NONE
2084 if test -n "$CONFIG_SITE"; then
2085 # We do not want a PATH search for config.site.
2086 case $CONFIG_SITE in @%:@((
2087 -*) ac_site_file1=./$CONFIG_SITE;;
2088 */*) ac_site_file1=$CONFIG_SITE;;
2089 *) ac_site_file1=./$CONFIG_SITE;;
2090 esac
2091 elif test "x$prefix" != xNONE; then
2092 ac_site_file1=$prefix/share/config.site
2093 ac_site_file2=$prefix/etc/config.site
2094 else
2095 ac_site_file1=$ac_default_prefix/share/config.site
2096 ac_site_file2=$ac_default_prefix/etc/config.site
2097 fi
2098 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2099 do
2100 test "x$ac_site_file" = xNONE && continue
2101 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2103 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2104 sed 's/^/| /' "$ac_site_file" >&5
2105 . "$ac_site_file" \
2106 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2108 as_fn_error $? "failed to load site script $ac_site_file
2109 See \`config.log' for more details" "$LINENO" 5; }
2110 fi
2111 done
2112
2113 if test -r "$cache_file"; then
2114 # Some versions of bash will fail to source /dev/null (special files
2115 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2116 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2118 $as_echo "$as_me: loading cache $cache_file" >&6;}
2119 case $cache_file in
2120 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2121 *) . "./$cache_file";;
2122 esac
2123 fi
2124 else
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2126 $as_echo "$as_me: creating cache $cache_file" >&6;}
2127 >$cache_file
2128 fi
2129
2130 # Check that the precious variables saved in the cache have kept the same
2131 # value.
2132 ac_cache_corrupted=false
2133 for ac_var in $ac_precious_vars; do
2134 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2135 eval ac_new_set=\$ac_env_${ac_var}_set
2136 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2137 eval ac_new_val=\$ac_env_${ac_var}_value
2138 case $ac_old_set,$ac_new_set in
2139 set,)
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2141 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2142 ac_cache_corrupted=: ;;
2143 ,set)
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2145 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2146 ac_cache_corrupted=: ;;
2147 ,);;
2148 *)
2149 if test "x$ac_old_val" != "x$ac_new_val"; then
2150 # differences in whitespace do not lead to failure.
2151 ac_old_val_w=`echo x $ac_old_val`
2152 ac_new_val_w=`echo x $ac_new_val`
2153 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2155 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2156 ac_cache_corrupted=:
2157 else
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2159 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2160 eval $ac_var=\$ac_old_val
2161 fi
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2163 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2165 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2166 fi;;
2167 esac
2168 # Pass precious variables to config.status.
2169 if test "$ac_new_set" = set; then
2170 case $ac_new_val in
2171 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2172 *) ac_arg=$ac_var=$ac_new_val ;;
2173 esac
2174 case " $ac_configure_args " in
2175 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2176 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2177 esac
2178 fi
2179 done
2180 if $ac_cache_corrupted; then
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2184 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2185 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2186 fi
2187 ## -------------------- ##
2188 ## Main body of script. ##
2189 ## -------------------- ##
2190
2191 ac_ext=c
2192 ac_cpp='$CPP $CPPFLAGS'
2193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2196
2197
2198 am__api_version="1.9"
2199 ac_aux_dir=
2200 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2201 if test -f "$ac_dir/install-sh"; then
2202 ac_aux_dir=$ac_dir
2203 ac_install_sh="$ac_aux_dir/install-sh -c"
2204 break
2205 elif test -f "$ac_dir/install.sh"; then
2206 ac_aux_dir=$ac_dir
2207 ac_install_sh="$ac_aux_dir/install.sh -c"
2208 break
2209 elif test -f "$ac_dir/shtool"; then
2210 ac_aux_dir=$ac_dir
2211 ac_install_sh="$ac_aux_dir/shtool install -c"
2212 break
2213 fi
2214 done
2215 if test -z "$ac_aux_dir"; then
2216 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2217 fi
2218
2219 # These three variables are undocumented and unsupported,
2220 # and are intended to be withdrawn in a future Autoconf release.
2221 # They can cause serious problems if a builder's source tree is in a directory
2222 # whose full name contains unusual characters.
2223 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2224 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2225 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2226
2227
2228 # Find a good install program. We prefer a C program (faster),
2229 # so one script is as good as another. But avoid the broken or
2230 # incompatible versions:
2231 # SysV /etc/install, /usr/sbin/install
2232 # SunOS /usr/etc/install
2233 # IRIX /sbin/install
2234 # AIX /bin/install
2235 # AmigaOS /C/install, which installs bootblocks on floppy discs
2236 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2237 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2238 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2239 # OS/2's system install, which has a completely different semantic
2240 # ./install, which can be erroneously created by make from ./install.sh.
2241 # Reject install programs that cannot install multiple files.
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2243 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2244 if test -z "$INSTALL"; then
2245 if ${ac_cv_path_install+:} false; then :
2246 $as_echo_n "(cached) " >&6
2247 else
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 for as_dir in $PATH
2250 do
2251 IFS=$as_save_IFS
2252 test -z "$as_dir" && as_dir=.
2253 # Account for people who put trailing slashes in PATH elements.
2254 case $as_dir/ in @%:@((
2255 ./ | .// | /[cC]/* | \
2256 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2257 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2258 /usr/ucb/* ) ;;
2259 *)
2260 # OSF1 and SCO ODT 3.0 have their own names for install.
2261 # Don't use installbsd from OSF since it installs stuff as root
2262 # by default.
2263 for ac_prog in ginstall scoinst install; do
2264 for ac_exec_ext in '' $ac_executable_extensions; do
2265 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2266 if test $ac_prog = install &&
2267 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2268 # AIX install. It has an incompatible calling convention.
2269 :
2270 elif test $ac_prog = install &&
2271 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2272 # program-specific install script used by HP pwplus--don't use.
2273 :
2274 else
2275 rm -rf conftest.one conftest.two conftest.dir
2276 echo one > conftest.one
2277 echo two > conftest.two
2278 mkdir conftest.dir
2279 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2280 test -s conftest.one && test -s conftest.two &&
2281 test -s conftest.dir/conftest.one &&
2282 test -s conftest.dir/conftest.two
2283 then
2284 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2285 break 3
2286 fi
2287 fi
2288 fi
2289 done
2290 done
2291 ;;
2292 esac
2293
2294 done
2295 IFS=$as_save_IFS
2296
2297 rm -rf conftest.one conftest.two conftest.dir
2298
2299 fi
2300 if test "${ac_cv_path_install+set}" = set; then
2301 INSTALL=$ac_cv_path_install
2302 else
2303 # As a last resort, use the slow shell script. Don't cache a
2304 # value for INSTALL within a source directory, because that will
2305 # break other packages using the cache if that directory is
2306 # removed, or if the value is a relative name.
2307 INSTALL=$ac_install_sh
2308 fi
2309 fi
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2311 $as_echo "$INSTALL" >&6; }
2312
2313 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2314 # It thinks the first close brace ends the variable substitution.
2315 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2316
2317 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2318
2319 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2320
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2322 $as_echo_n "checking whether build environment is sane... " >&6; }
2323 # Just in case
2324 sleep 1
2325 echo timestamp > conftest.file
2326 # Do `set' in a subshell so we don't clobber the current shell's
2327 # arguments. Must try -L first in case configure is actually a
2328 # symlink; some systems play weird games with the mod time of symlinks
2329 # (eg FreeBSD returns the mod time of the symlink's containing
2330 # directory).
2331 if (
2332 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2333 if test "$*" = "X"; then
2334 # -L didn't work.
2335 set X `ls -t $srcdir/configure conftest.file`
2336 fi
2337 rm -f conftest.file
2338 if test "$*" != "X $srcdir/configure conftest.file" \
2339 && test "$*" != "X conftest.file $srcdir/configure"; then
2340
2341 # If neither matched, then we have a broken ls. This can happen
2342 # if, for instance, CONFIG_SHELL is bash and it inherits a
2343 # broken ls alias from the environment. This has actually
2344 # happened. Such a system could not be considered "sane".
2345 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2346 alias in your environment" "$LINENO" 5
2347 fi
2348
2349 test "$2" = conftest.file
2350 )
2351 then
2352 # Ok.
2353 :
2354 else
2355 as_fn_error $? "newly created file is older than distributed files!
2356 Check your system clock" "$LINENO" 5
2357 fi
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2359 $as_echo "yes" >&6; }
2360 test "$program_prefix" != NONE &&
2361 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2362 # Use a double $ so make ignores it.
2363 test "$program_suffix" != NONE &&
2364 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2365 # Double any \ or $.
2366 # By default was `s,x,x', remove it if useless.
2367 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2368 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2369
2370 # expand $ac_aux_dir to an absolute path
2371 am_aux_dir=`cd $ac_aux_dir && pwd`
2372
2373 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2374 # Use eval to expand $SHELL
2375 if eval "$MISSING --run true"; then
2376 am_missing_run="$MISSING --run "
2377 else
2378 am_missing_run=
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2380 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2381 fi
2382
2383 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2384 # We used to keeping the `.' as first argument, in order to
2385 # allow $(mkdir_p) to be used without argument. As in
2386 # $(mkdir_p) $(somedir)
2387 # where $(somedir) is conditionally defined. However this is wrong
2388 # for two reasons:
2389 # 1. if the package is installed by a user who cannot write `.'
2390 # make install will fail,
2391 # 2. the above comment should most certainly read
2392 # $(mkdir_p) $(DESTDIR)$(somedir)
2393 # so it does not work when $(somedir) is undefined and
2394 # $(DESTDIR) is not.
2395 # To support the latter case, we have to write
2396 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2397 # so the `.' trick is pointless.
2398 mkdir_p='mkdir -p --'
2399 else
2400 # On NextStep and OpenStep, the `mkdir' command does not
2401 # recognize any option. It will interpret all options as
2402 # directories to create, and then abort because `.' already
2403 # exists.
2404 for d in ./-p ./--version;
2405 do
2406 test -d $d && rmdir $d
2407 done
2408 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2409 if test -f "$ac_aux_dir/mkinstalldirs"; then
2410 mkdir_p='$(mkinstalldirs)'
2411 else
2412 mkdir_p='$(install_sh) -d'
2413 fi
2414 fi
2415
2416 for ac_prog in gawk mawk nawk awk
2417 do
2418 # Extract the first word of "$ac_prog", so it can be a program name with args.
2419 set dummy $ac_prog; ac_word=$2
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2421 $as_echo_n "checking for $ac_word... " >&6; }
2422 if ${ac_cv_prog_AWK+:} false; then :
2423 $as_echo_n "(cached) " >&6
2424 else
2425 if test -n "$AWK"; then
2426 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2427 else
2428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 for as_dir in $PATH
2430 do
2431 IFS=$as_save_IFS
2432 test -z "$as_dir" && as_dir=.
2433 for ac_exec_ext in '' $ac_executable_extensions; do
2434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2435 ac_cv_prog_AWK="$ac_prog"
2436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2437 break 2
2438 fi
2439 done
2440 done
2441 IFS=$as_save_IFS
2442
2443 fi
2444 fi
2445 AWK=$ac_cv_prog_AWK
2446 if test -n "$AWK"; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2448 $as_echo "$AWK" >&6; }
2449 else
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2451 $as_echo "no" >&6; }
2452 fi
2453
2454
2455 test -n "$AWK" && break
2456 done
2457
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2459 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2460 set x ${MAKE-make}
2461 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2462 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2463 $as_echo_n "(cached) " >&6
2464 else
2465 cat >conftest.make <<\_ACEOF
2466 SHELL = /bin/sh
2467 all:
2468 @echo '@@@%%%=$(MAKE)=@@@%%%'
2469 _ACEOF
2470 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2471 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2472 *@@@%%%=?*=@@@%%%*)
2473 eval ac_cv_prog_make_${ac_make}_set=yes;;
2474 *)
2475 eval ac_cv_prog_make_${ac_make}_set=no;;
2476 esac
2477 rm -f conftest.make
2478 fi
2479 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2481 $as_echo "yes" >&6; }
2482 SET_MAKE=
2483 else
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2485 $as_echo "no" >&6; }
2486 SET_MAKE="MAKE=${MAKE-make}"
2487 fi
2488
2489 rm -rf .tst 2>/dev/null
2490 mkdir .tst 2>/dev/null
2491 if test -d .tst; then
2492 am__leading_dot=.
2493 else
2494 am__leading_dot=_
2495 fi
2496 rmdir .tst 2>/dev/null
2497
2498 # test to see if srcdir already configured
2499 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2500 test -f $srcdir/config.status; then
2501 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2502 fi
2503
2504 # test whether we have cygpath
2505 if test -z "$CYGPATH_W"; then
2506 if (cygpath --version) >/dev/null 2>/dev/null; then
2507 CYGPATH_W='cygpath -w'
2508 else
2509 CYGPATH_W=echo
2510 fi
2511 fi
2512
2513
2514 # Define the identity of the package.
2515 PACKAGE=gtkatlantic
2516 VERSION=0.5.0
2517
2518
2519 cat >>confdefs.h <<_ACEOF
2520 @%:@define PACKAGE "$PACKAGE"
2521 _ACEOF
2522
2523
2524 cat >>confdefs.h <<_ACEOF
2525 @%:@define VERSION "$VERSION"
2526 _ACEOF
2527
2528 # Some tools Automake needs.
2529
2530 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2531
2532
2533 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2534
2535
2536 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2537
2538
2539 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2540
2541
2542 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2543
2544 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2545
2546 # Installed binaries are usually stripped using `strip' when the user
2547 # run `make install-strip'. However `strip' might not be the right
2548 # tool to use in cross-compilation environments, therefore Automake
2549 # will honor the `STRIP' environment variable to overrule this program.
2550 if test "$cross_compiling" != no; then
2551 if test -n "$ac_tool_prefix"; then
2552 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2553 set dummy ${ac_tool_prefix}strip; ac_word=$2
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555 $as_echo_n "checking for $ac_word... " >&6; }
2556 if ${ac_cv_prog_STRIP+:} false; then :
2557 $as_echo_n "(cached) " >&6
2558 else
2559 if test -n "$STRIP"; then
2560 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2569 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 break 2
2572 fi
2573 done
2574 done
2575 IFS=$as_save_IFS
2576
2577 fi
2578 fi
2579 STRIP=$ac_cv_prog_STRIP
2580 if test -n "$STRIP"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2582 $as_echo "$STRIP" >&6; }
2583 else
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 $as_echo "no" >&6; }
2586 fi
2587
2588
2589 fi
2590 if test -z "$ac_cv_prog_STRIP"; then
2591 ac_ct_STRIP=$STRIP
2592 # Extract the first word of "strip", so it can be a program name with args.
2593 set dummy strip; ac_word=$2
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595 $as_echo_n "checking for $ac_word... " >&6; }
2596 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2597 $as_echo_n "(cached) " >&6
2598 else
2599 if test -n "$ac_ct_STRIP"; then
2600 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2601 else
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 for as_dir in $PATH
2604 do
2605 IFS=$as_save_IFS
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2609 ac_cv_prog_ac_ct_STRIP="strip"
2610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 break 2
2612 fi
2613 done
2614 done
2615 IFS=$as_save_IFS
2616
2617 fi
2618 fi
2619 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2620 if test -n "$ac_ct_STRIP"; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2622 $as_echo "$ac_ct_STRIP" >&6; }
2623 else
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625 $as_echo "no" >&6; }
2626 fi
2627
2628 if test "x$ac_ct_STRIP" = x; then
2629 STRIP=":"
2630 else
2631 case $cross_compiling:$ac_tool_warned in
2632 yes:)
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2635 ac_tool_warned=yes ;;
2636 esac
2637 STRIP=$ac_ct_STRIP
2638 fi
2639 else
2640 STRIP="$ac_cv_prog_STRIP"
2641 fi
2642
2643 fi
2644 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2645
2646 # We need awk for the "check" target. The system "awk" is bad on
2647 # some platforms.
2648 # Always define AMTAR for backward compatibility.
2649
2650 AMTAR=${AMTAR-"${am_missing_run}tar"}
2651
2652 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2653
2654
2655
2656
2657
2658 ac_config_headers="$ac_config_headers config.h"
2659
2660
2661 DEPDIR="${am__leading_dot}deps"
2662
2663 ac_config_commands="$ac_config_commands depfiles"
2664
2665
2666 am_make=${MAKE-make}
2667 cat > confinc << 'END'
2668 am__doit:
2669 @echo done
2670 .PHONY: am__doit
2671 END
2672 # If we don't find an include directive, just comment out the code.
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2674 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2675 am__include="#"
2676 am__quote=
2677 _am_result=none
2678 # First try GNU make style include.
2679 echo "include confinc" > confmf
2680 # We grep out `Entering directory' and `Leaving directory'
2681 # messages which can occur if `w' ends up in MAKEFLAGS.
2682 # In particular we don't look at `^make:' because GNU make might
2683 # be invoked under some other name (usually "gmake"), in which
2684 # case it prints its new name instead of `make'.
2685 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2686 am__include=include
2687 am__quote=
2688 _am_result=GNU
2689 fi
2690 # Now try BSD make style include.
2691 if test "$am__include" = "#"; then
2692 echo '.include "confinc"' > confmf
2693 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2694 am__include=.include
2695 am__quote="\""
2696 _am_result=BSD
2697 fi
2698 fi
2699
2700
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2702 $as_echo "$_am_result" >&6; }
2703 rm -f confinc confmf
2704
2705 @%:@ Check whether --enable-dependency-tracking was given.
2706 if test "${enable_dependency_tracking+set}" = set; then :
2707 enableval=$enable_dependency_tracking;
2708 fi
2709
2710 if test "x$enable_dependency_tracking" != xno; then
2711 am_depcomp="$ac_aux_dir/depcomp"
2712 AMDEPBACKSLASH='\'
2713 fi
2714
2715
2716 if test "x$enable_dependency_tracking" != xno; then
2717 AMDEP_TRUE=
2718 AMDEP_FALSE='#'
2719 else
2720 AMDEP_TRUE='#'
2721 AMDEP_FALSE=
2722 fi
2723
2724
2725
2726 ac_ext=c
2727 ac_cpp='$CPP $CPPFLAGS'
2728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2731 if test -n "$ac_tool_prefix"; then
2732 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2733 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 $as_echo_n "checking for $ac_word... " >&6; }
2736 if ${ac_cv_prog_CC+:} false; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 if test -n "$CC"; then
2740 ac_cv_prog_CC="$CC" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2744 do
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 break 2
2752 fi
2753 done
2754 done
2755 IFS=$as_save_IFS
2756
2757 fi
2758 fi
2759 CC=$ac_cv_prog_CC
2760 if test -n "$CC"; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2762 $as_echo "$CC" >&6; }
2763 else
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2766 fi
2767
2768
2769 fi
2770 if test -z "$ac_cv_prog_CC"; then
2771 ac_ct_CC=$CC
2772 # Extract the first word of "gcc", so it can be a program name with args.
2773 set dummy gcc; ac_word=$2
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775 $as_echo_n "checking for $ac_word... " >&6; }
2776 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2777 $as_echo_n "(cached) " >&6
2778 else
2779 if test -n "$ac_ct_CC"; then
2780 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2781 else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2784 do
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2789 ac_cv_prog_ac_ct_CC="gcc"
2790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 break 2
2792 fi
2793 done
2794 done
2795 IFS=$as_save_IFS
2796
2797 fi
2798 fi
2799 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2800 if test -n "$ac_ct_CC"; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2802 $as_echo "$ac_ct_CC" >&6; }
2803 else
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805 $as_echo "no" >&6; }
2806 fi
2807
2808 if test "x$ac_ct_CC" = x; then
2809 CC=""
2810 else
2811 case $cross_compiling:$ac_tool_warned in
2812 yes:)
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2815 ac_tool_warned=yes ;;
2816 esac
2817 CC=$ac_ct_CC
2818 fi
2819 else
2820 CC="$ac_cv_prog_CC"
2821 fi
2822
2823 if test -z "$CC"; then
2824 if test -n "$ac_tool_prefix"; then
2825 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2826 set dummy ${ac_tool_prefix}cc; ac_word=$2
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828 $as_echo_n "checking for $ac_word... " >&6; }
2829 if ${ac_cv_prog_CC+:} false; then :
2830 $as_echo_n "(cached) " >&6
2831 else
2832 if test -n "$CC"; then
2833 ac_cv_prog_CC="$CC" # Let the user override the test.
2834 else
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2837 do
2838 IFS=$as_save_IFS
2839 test -z "$as_dir" && as_dir=.
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2842 ac_cv_prog_CC="${ac_tool_prefix}cc"
2843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 break 2
2845 fi
2846 done
2847 done
2848 IFS=$as_save_IFS
2849
2850 fi
2851 fi
2852 CC=$ac_cv_prog_CC
2853 if test -n "$CC"; then
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2855 $as_echo "$CC" >&6; }
2856 else
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858 $as_echo "no" >&6; }
2859 fi
2860
2861
2862 fi
2863 fi
2864 if test -z "$CC"; then
2865 # Extract the first word of "cc", so it can be a program name with args.
2866 set dummy cc; ac_word=$2
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868 $as_echo_n "checking for $ac_word... " >&6; }
2869 if ${ac_cv_prog_CC+:} false; then :
2870 $as_echo_n "(cached) " >&6
2871 else
2872 if test -n "$CC"; then
2873 ac_cv_prog_CC="$CC" # Let the user override the test.
2874 else
2875 ac_prog_rejected=no
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2878 do
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 for ac_exec_ext in '' $ac_executable_extensions; do
2882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2883 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2884 ac_prog_rejected=yes
2885 continue
2886 fi
2887 ac_cv_prog_CC="cc"
2888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2890 fi
2891 done
2892 done
2893 IFS=$as_save_IFS
2894
2895 if test $ac_prog_rejected = yes; then
2896 # We found a bogon in the path, so make sure we never use it.
2897 set dummy $ac_cv_prog_CC
2898 shift
2899 if test $@%:@ != 0; then
2900 # We chose a different compiler from the bogus one.
2901 # However, it has the same basename, so the bogon will be chosen
2902 # first if we set CC to just the basename; use the full file name.
2903 shift
2904 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2905 fi
2906 fi
2907 fi
2908 fi
2909 CC=$ac_cv_prog_CC
2910 if test -n "$CC"; then
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2912 $as_echo "$CC" >&6; }
2913 else
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 $as_echo "no" >&6; }
2916 fi
2917
2918
2919 fi
2920 if test -z "$CC"; then
2921 if test -n "$ac_tool_prefix"; then
2922 for ac_prog in cl.exe
2923 do
2924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2925 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if ${ac_cv_prog_CC+:} false; then :
2929 $as_echo_n "(cached) " >&6
2930 else
2931 if test -n "$CC"; then
2932 ac_cv_prog_CC="$CC" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2941 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 break 2
2944 fi
2945 done
2946 done
2947 IFS=$as_save_IFS
2948
2949 fi
2950 fi
2951 CC=$ac_cv_prog_CC
2952 if test -n "$CC"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2954 $as_echo "$CC" >&6; }
2955 else
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2958 fi
2959
2960
2961 test -n "$CC" && break
2962 done
2963 fi
2964 if test -z "$CC"; then
2965 ac_ct_CC=$CC
2966 for ac_prog in cl.exe
2967 do
2968 # Extract the first word of "$ac_prog", so it can be a program name with args.
2969 set dummy $ac_prog; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2973 $as_echo_n "(cached) " >&6
2974 else
2975 if test -n "$ac_ct_CC"; then
2976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2985 ac_cv_prog_ac_ct_CC="$ac_prog"
2986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 break 2
2988 fi
2989 done
2990 done
2991 IFS=$as_save_IFS
2992
2993 fi
2994 fi
2995 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2996 if test -n "$ac_ct_CC"; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2998 $as_echo "$ac_ct_CC" >&6; }
2999 else
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3002 fi
3003
3004
3005 test -n "$ac_ct_CC" && break
3006 done
3007
3008 if test "x$ac_ct_CC" = x; then
3009 CC=""
3010 else
3011 case $cross_compiling:$ac_tool_warned in
3012 yes:)
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3015 ac_tool_warned=yes ;;
3016 esac
3017 CC=$ac_ct_CC
3018 fi
3019 fi
3020
3021 fi
3022
3023
3024 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3026 as_fn_error $? "no acceptable C compiler found in \$PATH
3027 See \`config.log' for more details" "$LINENO" 5; }
3028
3029 # Provide some information about the compiler.
3030 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3031 set X $ac_compile
3032 ac_compiler=$2
3033 for ac_option in --version -v -V -qversion; do
3034 { { ac_try="$ac_compiler $ac_option >&5"
3035 case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038 esac
3039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3040 $as_echo "$ac_try_echo"; } >&5
3041 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3042 ac_status=$?
3043 if test -s conftest.err; then
3044 sed '10a\
3045 ... rest of stderr output deleted ...
3046 10q' conftest.err >conftest.er1
3047 cat conftest.er1 >&5
3048 fi
3049 rm -f conftest.er1 conftest.err
3050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3051 test $ac_status = 0; }
3052 done
3053
3054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055 /* end confdefs.h. */
3056
3057 int
3058 main ()
3059 {
3060
3061 ;
3062 return 0;
3063 }
3064 _ACEOF
3065 ac_clean_files_save=$ac_clean_files
3066 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3067 # Try to create an executable without -o first, disregard a.out.
3068 # It will help us diagnose broken compilers, and finding out an intuition
3069 # of exeext.
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3071 $as_echo_n "checking whether the C compiler works... " >&6; }
3072 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3073
3074 # The possible output files:
3075 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3076
3077 ac_rmfiles=
3078 for ac_file in $ac_files
3079 do
3080 case $ac_file in
3081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3082 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3083 esac
3084 done
3085 rm -f $ac_rmfiles
3086
3087 if { { ac_try="$ac_link_default"
3088 case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091 esac
3092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3093 $as_echo "$ac_try_echo"; } >&5
3094 (eval "$ac_link_default") 2>&5
3095 ac_status=$?
3096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3097 test $ac_status = 0; }; then :
3098 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3099 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3100 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3101 # so that the user can short-circuit this test for compilers unknown to
3102 # Autoconf.
3103 for ac_file in $ac_files ''
3104 do
3105 test -f "$ac_file" || continue
3106 case $ac_file in
3107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3108 ;;
3109 [ab].out )
3110 # We found the default executable, but exeext='' is most
3111 # certainly right.
3112 break;;
3113 *.* )
3114 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3115 then :; else
3116 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3117 fi
3118 # We set ac_cv_exeext here because the later test for it is not
3119 # safe: cross compilers may not add the suffix if given an `-o'
3120 # argument, so we may need to know it at that point already.
3121 # Even if this section looks crufty: it has the advantage of
3122 # actually working.
3123 break;;
3124 * )
3125 break;;
3126 esac
3127 done
3128 test "$ac_cv_exeext" = no && ac_cv_exeext=
3129
3130 else
3131 ac_file=''
3132 fi
3133 if test -z "$ac_file"; then :
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3136 $as_echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3138
3139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3141 as_fn_error 77 "C compiler cannot create executables
3142 See \`config.log' for more details" "$LINENO" 5; }
3143 else
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3145 $as_echo "yes" >&6; }
3146 fi
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3148 $as_echo_n "checking for C compiler default output file name... " >&6; }
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3150 $as_echo "$ac_file" >&6; }
3151 ac_exeext=$ac_cv_exeext
3152
3153 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3154 ac_clean_files=$ac_clean_files_save
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3156 $as_echo_n "checking for suffix of executables... " >&6; }
3157 if { { ac_try="$ac_link"
3158 case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161 esac
3162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163 $as_echo "$ac_try_echo"; } >&5
3164 (eval "$ac_link") 2>&5
3165 ac_status=$?
3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167 test $ac_status = 0; }; then :
3168 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3169 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3170 # work properly (i.e., refer to `conftest.exe'), while it won't with
3171 # `rm'.
3172 for ac_file in conftest.exe conftest conftest.*; do
3173 test -f "$ac_file" || continue
3174 case $ac_file in
3175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3176 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3177 break;;
3178 * ) break;;
3179 esac
3180 done
3181 else
3182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3185 See \`config.log' for more details" "$LINENO" 5; }
3186 fi
3187 rm -f conftest conftest$ac_cv_exeext
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3189 $as_echo "$ac_cv_exeext" >&6; }
3190
3191 rm -f conftest.$ac_ext
3192 EXEEXT=$ac_cv_exeext
3193 ac_exeext=$EXEEXT
3194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195 /* end confdefs.h. */
3196 @%:@include <stdio.h>
3197 int
3198 main ()
3199 {
3200 FILE *f = fopen ("conftest.out", "w");
3201 return ferror (f) || fclose (f) != 0;
3202
3203 ;
3204 return 0;
3205 }
3206 _ACEOF
3207 ac_clean_files="$ac_clean_files conftest.out"
3208 # Check that the compiler produces executables we can run. If not, either
3209 # the compiler is broken, or we cross compile.
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3211 $as_echo_n "checking whether we are cross compiling... " >&6; }
3212 if test "$cross_compiling" != yes; then
3213 { { ac_try="$ac_link"
3214 case "(($ac_try" in
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3217 esac
3218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3219 $as_echo "$ac_try_echo"; } >&5
3220 (eval "$ac_link") 2>&5
3221 ac_status=$?
3222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3223 test $ac_status = 0; }
3224 if { ac_try='./conftest$ac_cv_exeext'
3225 { { case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228 esac
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231 (eval "$ac_try") 2>&5
3232 ac_status=$?
3233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234 test $ac_status = 0; }; }; then
3235 cross_compiling=no
3236 else
3237 if test "$cross_compiling" = maybe; then
3238 cross_compiling=yes
3239 else
3240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error $? "cannot run C compiled programs.
3243 If you meant to cross compile, use \`--host'.
3244 See \`config.log' for more details" "$LINENO" 5; }
3245 fi
3246 fi
3247 fi
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3249 $as_echo "$cross_compiling" >&6; }
3250
3251 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3252 ac_clean_files=$ac_clean_files_save
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3254 $as_echo_n "checking for suffix of object files... " >&6; }
3255 if ${ac_cv_objext+:} false; then :
3256 $as_echo_n "(cached) " >&6
3257 else
3258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259 /* end confdefs.h. */
3260
3261 int
3262 main ()
3263 {
3264
3265 ;
3266 return 0;
3267 }
3268 _ACEOF
3269 rm -f conftest.o conftest.obj
3270 if { { ac_try="$ac_compile"
3271 case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274 esac
3275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276 $as_echo "$ac_try_echo"; } >&5
3277 (eval "$ac_compile") 2>&5
3278 ac_status=$?
3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; }; then :
3281 for ac_file in conftest.o conftest.obj conftest.*; do
3282 test -f "$ac_file" || continue;
3283 case $ac_file in
3284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3285 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3286 break;;
3287 esac
3288 done
3289 else
3290 $as_echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3292
3293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 as_fn_error $? "cannot compute suffix of object files: cannot compile
3296 See \`config.log' for more details" "$LINENO" 5; }
3297 fi
3298 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3299 fi
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3301 $as_echo "$ac_cv_objext" >&6; }
3302 OBJEXT=$ac_cv_objext
3303 ac_objext=$OBJEXT
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3305 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3306 if ${ac_cv_c_compiler_gnu+:} false; then :
3307 $as_echo_n "(cached) " >&6
3308 else
3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h. */
3311
3312 int
3313 main ()
3314 {
3315 #ifndef __GNUC__
3316 choke me
3317 #endif
3318
3319 ;
3320 return 0;
3321 }
3322 _ACEOF
3323 if ac_fn_c_try_compile "$LINENO"; then :
3324 ac_compiler_gnu=yes
3325 else
3326 ac_compiler_gnu=no
3327 fi
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3330
3331 fi
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3333 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3334 if test $ac_compiler_gnu = yes; then
3335 GCC=yes
3336 else
3337 GCC=
3338 fi
3339 ac_test_CFLAGS=${CFLAGS+set}
3340 ac_save_CFLAGS=$CFLAGS
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3342 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3343 if ${ac_cv_prog_cc_g+:} false; then :
3344 $as_echo_n "(cached) " >&6
3345 else
3346 ac_save_c_werror_flag=$ac_c_werror_flag
3347 ac_c_werror_flag=yes
3348 ac_cv_prog_cc_g=no
3349 CFLAGS="-g"
3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351 /* end confdefs.h. */
3352
3353 int
3354 main ()
3355 {
3356
3357 ;
3358 return 0;
3359 }
3360 _ACEOF
3361 if ac_fn_c_try_compile "$LINENO"; then :
3362 ac_cv_prog_cc_g=yes
3363 else
3364 CFLAGS=""
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3367
3368 int
3369 main ()
3370 {
3371
3372 ;
3373 return 0;
3374 }
3375 _ACEOF
3376 if ac_fn_c_try_compile "$LINENO"; then :
3377
3378 else
3379 ac_c_werror_flag=$ac_save_c_werror_flag
3380 CFLAGS="-g"
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3383
3384 int
3385 main ()
3386 {
3387
3388 ;
3389 return 0;
3390 }
3391 _ACEOF
3392 if ac_fn_c_try_compile "$LINENO"; then :
3393 ac_cv_prog_cc_g=yes
3394 fi
3395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396 fi
3397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3398 fi
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400 ac_c_werror_flag=$ac_save_c_werror_flag
3401 fi
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3403 $as_echo "$ac_cv_prog_cc_g" >&6; }
3404 if test "$ac_test_CFLAGS" = set; then
3405 CFLAGS=$ac_save_CFLAGS
3406 elif test $ac_cv_prog_cc_g = yes; then
3407 if test "$GCC" = yes; then
3408 CFLAGS="-g -O2"
3409 else
3410 CFLAGS="-g"
3411 fi
3412 else
3413 if test "$GCC" = yes; then
3414 CFLAGS="-O2"
3415 else
3416 CFLAGS=
3417 fi
3418 fi
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3420 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3421 if ${ac_cv_prog_cc_c89+:} false; then :
3422 $as_echo_n "(cached) " >&6
3423 else
3424 ac_cv_prog_cc_c89=no
3425 ac_save_CC=$CC
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3428 #include <stdarg.h>
3429 #include <stdio.h>
3430 struct stat;
3431 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3432 struct buf { int x; };
3433 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3434 static char *e (p, i)
3435 char **p;
3436 int i;
3437 {
3438 return p[i];
3439 }
3440 static char *f (char * (*g) (char **, int), char **p, ...)
3441 {
3442 char *s;
3443 va_list v;
3444 va_start (v,p);
3445 s = g (p, va_arg (v,int));
3446 va_end (v);
3447 return s;
3448 }
3449
3450 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3451 function prototypes and stuff, but not '\xHH' hex character constants.
3452 These don't provoke an error unfortunately, instead are silently treated
3453 as 'x'. The following induces an error, until -std is added to get
3454 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3455 array size at least. It's necessary to write '\x00'==0 to get something
3456 that's true only with -std. */
3457 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3458
3459 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3460 inside strings and character constants. */
3461 #define FOO(x) 'x'
3462 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3463
3464 int test (int i, double x);
3465 struct s1 {int (*f) (int a);};
3466 struct s2 {int (*f) (double a);};
3467 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3468 int argc;
3469 char **argv;
3470 int
3471 main ()
3472 {
3473 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3474 ;
3475 return 0;
3476 }
3477 _ACEOF
3478 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3479 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3480 do
3481 CC="$ac_save_CC $ac_arg"
3482 if ac_fn_c_try_compile "$LINENO"; then :
3483 ac_cv_prog_cc_c89=$ac_arg
3484 fi
3485 rm -f core conftest.err conftest.$ac_objext
3486 test "x$ac_cv_prog_cc_c89" != "xno" && break
3487 done
3488 rm -f conftest.$ac_ext
3489 CC=$ac_save_CC
3490
3491 fi
3492 # AC_CACHE_VAL
3493 case "x$ac_cv_prog_cc_c89" in
3494 x)
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3496 $as_echo "none needed" >&6; } ;;
3497 xno)
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3499 $as_echo "unsupported" >&6; } ;;
3500 *)
3501 CC="$CC $ac_cv_prog_cc_c89"
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3503 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3504 esac
3505 if test "x$ac_cv_prog_cc_c89" != xno; then :
3506
3507 fi
3508
3509 ac_ext=c
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3514
3515 depcc="$CC" am_compiler_list=
3516
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3518 $as_echo_n "checking dependency style of $depcc... " >&6; }
3519 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3523 # We make a subdir and do the tests there. Otherwise we can end up
3524 # making bogus files that we don't know about and never remove. For
3525 # instance it was reported that on HP-UX the gcc test will end up
3526 # making a dummy file named `D' -- because `-MD' means `put the output
3527 # in D'.
3528 mkdir conftest.dir
3529 # Copy depcomp to subdir because otherwise we won't find it if we're
3530 # using a relative directory.
3531 cp "$am_depcomp" conftest.dir
3532 cd conftest.dir
3533 # We will build objects and dependencies in a subdirectory because
3534 # it helps to detect inapplicable dependency modes. For instance
3535 # both Tru64's cc and ICC support -MD to output dependencies as a
3536 # side effect of compilation, but ICC will put the dependencies in
3537 # the current directory while Tru64 will put them in the object
3538 # directory.
3539 mkdir sub
3540
3541 am_cv_CC_dependencies_compiler_type=none
3542 if test "$am_compiler_list" = ""; then
3543 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3544 fi
3545 for depmode in $am_compiler_list; do
3546 # Setup a source with many dependencies, because some compilers
3547 # like to wrap large dependency lists on column 80 (with \), and
3548 # we should not choose a depcomp mode which is confused by this.
3549 #
3550 # We need to recreate these files for each test, as the compiler may
3551 # overwrite some of them when testing with obscure command lines.
3552 # This happens at least with the AIX C compiler.
3553 : > sub/conftest.c
3554 for i in 1 2 3 4 5 6; do
3555 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3556 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3557 # Solaris 8's {/usr,}/bin/sh.
3558 touch sub/conftst$i.h
3559 done
3560 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3561
3562 case $depmode in
3563 nosideeffect)
3564 # after this tag, mechanisms are not by side-effect, so they'll
3565 # only be used when explicitly requested
3566 if test "x$enable_dependency_tracking" = xyes; then
3567 continue
3568 else
3569 break
3570 fi
3571 ;;
3572 none) break ;;
3573 esac
3574 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3575 # mode. It turns out that the SunPro C++ compiler does not properly
3576 # handle `-M -o', and we need to detect this.
3577 if depmode=$depmode \
3578 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3579 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3580 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3581 >/dev/null 2>conftest.err &&
3582 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3583 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3584 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3585 # icc doesn't choke on unknown options, it will just issue warnings
3586 # or remarks (even with -Werror). So we grep stderr for any message
3587 # that says an option was ignored or not supported.
3588 # When given -MP, icc 7.0 and 7.1 complain thusly:
3589 # icc: Command line warning: ignoring option '-M'; no argument required
3590 # The diagnosis changed in icc 8.0:
3591 # icc: Command line remark: option '-MP' not supported
3592 if (grep 'ignoring option' conftest.err ||
3593 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3594 am_cv_CC_dependencies_compiler_type=$depmode
3595 break
3596 fi
3597 fi
3598 done
3599
3600 cd ..
3601 rm -rf conftest.dir
3602 else
3603 am_cv_CC_dependencies_compiler_type=none
3604 fi
3605
3606 fi
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3608 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3609 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3610
3611
3612
3613 if
3614 test "x$enable_dependency_tracking" != xno \
3615 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3616 am__fastdepCC_TRUE=
3617 am__fastdepCC_FALSE='#'
3618 else
3619 am__fastdepCC_TRUE='#'
3620 am__fastdepCC_FALSE=
3621 fi
3622
3623
3624
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3626 $as_echo_n "checking for library containing strerror... " >&6; }
3627 if ${ac_cv_search_strerror+:} false; then :
3628 $as_echo_n "(cached) " >&6
3629 else
3630 ac_func_search_save_LIBS=$LIBS
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3633
3634 /* Override any GCC internal prototype to avoid an error.
3635 Use char because int might match the return type of a GCC
3636 builtin and then its argument prototype would still apply. */
3637 #ifdef __cplusplus
3638 extern "C"
3639 #endif
3640 char strerror ();
3641 int
3642 main ()
3643 {
3644 return strerror ();
3645 ;
3646 return 0;
3647 }
3648 _ACEOF
3649 for ac_lib in '' cposix; do
3650 if test -z "$ac_lib"; then
3651 ac_res="none required"
3652 else
3653 ac_res=-l$ac_lib
3654 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3655 fi
3656 if ac_fn_c_try_link "$LINENO"; then :
3657 ac_cv_search_strerror=$ac_res
3658 fi
3659 rm -f core conftest.err conftest.$ac_objext \
3660 conftest$ac_exeext
3661 if ${ac_cv_search_strerror+:} false; then :
3662 break
3663 fi
3664 done
3665 if ${ac_cv_search_strerror+:} false; then :
3666
3667 else
3668 ac_cv_search_strerror=no
3669 fi
3670 rm conftest.$ac_ext
3671 LIBS=$ac_func_search_save_LIBS
3672 fi
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3674 $as_echo "$ac_cv_search_strerror" >&6; }
3675 ac_res=$ac_cv_search_strerror
3676 if test "$ac_res" != no; then :
3677 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3678
3679 fi
3680
3681 CFLAGS=$CFLAGS
3682
3683 ac_ext=c
3684 ac_cpp='$CPP $CPPFLAGS'
3685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3688 if test -n "$ac_tool_prefix"; then
3689 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3690 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692 $as_echo_n "checking for $ac_word... " >&6; }
3693 if ${ac_cv_prog_CC+:} false; then :
3694 $as_echo_n "(cached) " >&6
3695 else
3696 if test -n "$CC"; then
3697 ac_cv_prog_CC="$CC" # Let the user override the test.
3698 else
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3701 do
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3706 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3709 fi
3710 done
3711 done
3712 IFS=$as_save_IFS
3713
3714 fi
3715 fi
3716 CC=$ac_cv_prog_CC
3717 if test -n "$CC"; then
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3719 $as_echo "$CC" >&6; }
3720 else
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722 $as_echo "no" >&6; }
3723 fi
3724
3725
3726 fi
3727 if test -z "$ac_cv_prog_CC"; then
3728 ac_ct_CC=$CC
3729 # Extract the first word of "gcc", so it can be a program name with args.
3730 set dummy gcc; ac_word=$2
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3732 $as_echo_n "checking for $ac_word... " >&6; }
3733 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3734 $as_echo_n "(cached) " >&6
3735 else
3736 if test -n "$ac_ct_CC"; then
3737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3738 else
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 for as_dir in $PATH
3741 do
3742 IFS=$as_save_IFS
3743 test -z "$as_dir" && as_dir=.
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3746 ac_cv_prog_ac_ct_CC="gcc"
3747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3748 break 2
3749 fi
3750 done
3751 done
3752 IFS=$as_save_IFS
3753
3754 fi
3755 fi
3756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3757 if test -n "$ac_ct_CC"; then
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3759 $as_echo "$ac_ct_CC" >&6; }
3760 else
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762 $as_echo "no" >&6; }
3763 fi
3764
3765 if test "x$ac_ct_CC" = x; then
3766 CC=""
3767 else
3768 case $cross_compiling:$ac_tool_warned in
3769 yes:)
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3772 ac_tool_warned=yes ;;
3773 esac
3774 CC=$ac_ct_CC
3775 fi
3776 else
3777 CC="$ac_cv_prog_CC"
3778 fi
3779
3780 if test -z "$CC"; then
3781 if test -n "$ac_tool_prefix"; then
3782 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3783 set dummy ${ac_tool_prefix}cc; ac_word=$2
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785 $as_echo_n "checking for $ac_word... " >&6; }
3786 if ${ac_cv_prog_CC+:} false; then :
3787 $as_echo_n "(cached) " >&6
3788 else
3789 if test -n "$CC"; then
3790 ac_cv_prog_CC="$CC" # Let the user override the test.
3791 else
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793 for as_dir in $PATH
3794 do
3795 IFS=$as_save_IFS
3796 test -z "$as_dir" && as_dir=.
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3799 ac_cv_prog_CC="${ac_tool_prefix}cc"
3800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3801 break 2
3802 fi
3803 done
3804 done
3805 IFS=$as_save_IFS
3806
3807 fi
3808 fi
3809 CC=$ac_cv_prog_CC
3810 if test -n "$CC"; then
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3812 $as_echo "$CC" >&6; }
3813 else
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815 $as_echo "no" >&6; }
3816 fi
3817
3818
3819 fi
3820 fi
3821 if test -z "$CC"; then
3822 # Extract the first word of "cc", so it can be a program name with args.
3823 set dummy cc; ac_word=$2
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3825 $as_echo_n "checking for $ac_word... " >&6; }
3826 if ${ac_cv_prog_CC+:} false; then :
3827 $as_echo_n "(cached) " >&6
3828 else
3829 if test -n "$CC"; then
3830 ac_cv_prog_CC="$CC" # Let the user override the test.
3831 else
3832 ac_prog_rejected=no
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH
3835 do
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3841 ac_prog_rejected=yes
3842 continue
3843 fi
3844 ac_cv_prog_CC="cc"
3845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3846 break 2
3847 fi
3848 done
3849 done
3850 IFS=$as_save_IFS
3851
3852 if test $ac_prog_rejected = yes; then
3853 # We found a bogon in the path, so make sure we never use it.
3854 set dummy $ac_cv_prog_CC
3855 shift
3856 if test $@%:@ != 0; then
3857 # We chose a different compiler from the bogus one.
3858 # However, it has the same basename, so the bogon will be chosen
3859 # first if we set CC to just the basename; use the full file name.
3860 shift
3861 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3862 fi
3863 fi
3864 fi
3865 fi
3866 CC=$ac_cv_prog_CC
3867 if test -n "$CC"; then
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3869 $as_echo "$CC" >&6; }
3870 else
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872 $as_echo "no" >&6; }
3873 fi
3874
3875
3876 fi
3877 if test -z "$CC"; then
3878 if test -n "$ac_tool_prefix"; then
3879 for ac_prog in cl.exe
3880 do
3881 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3882 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3884 $as_echo_n "checking for $ac_word... " >&6; }
3885 if ${ac_cv_prog_CC+:} false; then :
3886 $as_echo_n "(cached) " >&6
3887 else
3888 if test -n "$CC"; then
3889 ac_cv_prog_CC="$CC" # Let the user override the test.
3890 else
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3893 do
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3901 fi
3902 done
3903 done
3904 IFS=$as_save_IFS
3905
3906 fi
3907 fi
3908 CC=$ac_cv_prog_CC
3909 if test -n "$CC"; then
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3911 $as_echo "$CC" >&6; }
3912 else
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914 $as_echo "no" >&6; }
3915 fi
3916
3917
3918 test -n "$CC" && break
3919 done
3920 fi
3921 if test -z "$CC"; then
3922 ac_ct_CC=$CC
3923 for ac_prog in cl.exe
3924 do
3925 # Extract the first word of "$ac_prog", so it can be a program name with args.
3926 set dummy $ac_prog; ac_word=$2
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3928 $as_echo_n "checking for $ac_word... " >&6; }
3929 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3930 $as_echo_n "(cached) " >&6
3931 else
3932 if test -n "$ac_ct_CC"; then
3933 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3934 else
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH
3937 do
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3942 ac_cv_prog_ac_ct_CC="$ac_prog"
3943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 break 2
3945 fi
3946 done
3947 done
3948 IFS=$as_save_IFS
3949
3950 fi
3951 fi
3952 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3953 if test -n "$ac_ct_CC"; then
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3955 $as_echo "$ac_ct_CC" >&6; }
3956 else
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958 $as_echo "no" >&6; }
3959 fi
3960
3961
3962 test -n "$ac_ct_CC" && break
3963 done
3964
3965 if test "x$ac_ct_CC" = x; then
3966 CC=""
3967 else
3968 case $cross_compiling:$ac_tool_warned in
3969 yes:)
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3972 ac_tool_warned=yes ;;
3973 esac
3974 CC=$ac_ct_CC
3975 fi
3976 fi
3977
3978 fi
3979
3980
3981 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error $? "no acceptable C compiler found in \$PATH
3984 See \`config.log' for more details" "$LINENO" 5; }
3985
3986 # Provide some information about the compiler.
3987 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3988 set X $ac_compile
3989 ac_compiler=$2
3990 for ac_option in --version -v -V -qversion; do
3991 { { ac_try="$ac_compiler $ac_option >&5"
3992 case "(($ac_try" in
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3995 esac
3996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3997 $as_echo "$ac_try_echo"; } >&5
3998 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3999 ac_status=$?
4000 if test -s conftest.err; then
4001 sed '10a\
4002 ... rest of stderr output deleted ...
4003 10q' conftest.err >conftest.er1
4004 cat conftest.er1 >&5
4005 fi
4006 rm -f conftest.er1 conftest.err
4007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4008 test $ac_status = 0; }
4009 done
4010
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4012 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4013 if ${ac_cv_c_compiler_gnu+:} false; then :
4014 $as_echo_n "(cached) " >&6
4015 else
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4018
4019 int
4020 main ()
4021 {
4022 #ifndef __GNUC__
4023 choke me
4024 #endif
4025
4026 ;
4027 return 0;
4028 }
4029 _ACEOF
4030 if ac_fn_c_try_compile "$LINENO"; then :
4031 ac_compiler_gnu=yes
4032 else
4033 ac_compiler_gnu=no
4034 fi
4035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4037
4038 fi
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4040 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4041 if test $ac_compiler_gnu = yes; then
4042 GCC=yes
4043 else
4044 GCC=
4045 fi
4046 ac_test_CFLAGS=${CFLAGS+set}
4047 ac_save_CFLAGS=$CFLAGS
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4049 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4050 if ${ac_cv_prog_cc_g+:} false; then :
4051 $as_echo_n "(cached) " >&6
4052 else
4053 ac_save_c_werror_flag=$ac_c_werror_flag
4054 ac_c_werror_flag=yes
4055 ac_cv_prog_cc_g=no
4056 CFLAGS="-g"
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4059
4060 int
4061 main ()
4062 {
4063
4064 ;
4065 return 0;
4066 }
4067 _ACEOF
4068 if ac_fn_c_try_compile "$LINENO"; then :
4069 ac_cv_prog_cc_g=yes
4070 else
4071 CFLAGS=""
4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h. */
4074
4075 int
4076 main ()
4077 {
4078
4079 ;
4080 return 0;
4081 }
4082 _ACEOF
4083 if ac_fn_c_try_compile "$LINENO"; then :
4084
4085 else
4086 ac_c_werror_flag=$ac_save_c_werror_flag
4087 CFLAGS="-g"
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4090
4091 int
4092 main ()
4093 {
4094
4095 ;
4096 return 0;
4097 }
4098 _ACEOF
4099 if ac_fn_c_try_compile "$LINENO"; then :
4100 ac_cv_prog_cc_g=yes
4101 fi
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103 fi
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105 fi
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 ac_c_werror_flag=$ac_save_c_werror_flag
4108 fi
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4110 $as_echo "$ac_cv_prog_cc_g" >&6; }
4111 if test "$ac_test_CFLAGS" = set; then
4112 CFLAGS=$ac_save_CFLAGS
4113 elif test $ac_cv_prog_cc_g = yes; then
4114 if test "$GCC" = yes; then
4115 CFLAGS="-g -O2"
4116 else
4117 CFLAGS="-g"
4118 fi
4119 else
4120 if test "$GCC" = yes; then
4121 CFLAGS="-O2"
4122 else
4123 CFLAGS=
4124 fi
4125 fi
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4127 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4128 if ${ac_cv_prog_cc_c89+:} false; then :
4129 $as_echo_n "(cached) " >&6
4130 else
4131 ac_cv_prog_cc_c89=no
4132 ac_save_CC=$CC
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4135 #include <stdarg.h>
4136 #include <stdio.h>
4137 struct stat;
4138 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4139 struct buf { int x; };
4140 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4141 static char *e (p, i)
4142 char **p;
4143 int i;
4144 {
4145 return p[i];
4146 }
4147 static char *f (char * (*g) (char **, int), char **p, ...)
4148 {
4149 char *s;
4150 va_list v;
4151 va_start (v,p);
4152 s = g (p, va_arg (v,int));
4153 va_end (v);
4154 return s;
4155 }
4156
4157 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4158 function prototypes and stuff, but not '\xHH' hex character constants.
4159 These don't provoke an error unfortunately, instead are silently treated
4160 as 'x'. The following induces an error, until -std is added to get
4161 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4162 array size at least. It's necessary to write '\x00'==0 to get something
4163 that's true only with -std. */
4164 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4165
4166 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4167 inside strings and character constants. */
4168 #define FOO(x) 'x'
4169 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4170
4171 int test (int i, double x);
4172 struct s1 {int (*f) (int a);};
4173 struct s2 {int (*f) (double a);};
4174 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4175 int argc;
4176 char **argv;
4177 int
4178 main ()
4179 {
4180 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4181 ;
4182 return 0;
4183 }
4184 _ACEOF
4185 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4186 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4187 do
4188 CC="$ac_save_CC $ac_arg"
4189 if ac_fn_c_try_compile "$LINENO"; then :
4190 ac_cv_prog_cc_c89=$ac_arg
4191 fi
4192 rm -f core conftest.err conftest.$ac_objext
4193 test "x$ac_cv_prog_cc_c89" != "xno" && break
4194 done
4195 rm -f conftest.$ac_ext
4196 CC=$ac_save_CC
4197
4198 fi
4199 # AC_CACHE_VAL
4200 case "x$ac_cv_prog_cc_c89" in
4201 x)
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4203 $as_echo "none needed" >&6; } ;;
4204 xno)
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4206 $as_echo "unsupported" >&6; } ;;
4207 *)
4208 CC="$CC $ac_cv_prog_cc_c89"
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4210 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4211 esac
4212 if test "x$ac_cv_prog_cc_c89" != xno; then :
4213
4214 fi
4215
4216 ac_ext=c
4217 ac_cpp='$CPP $CPPFLAGS'
4218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4221
4222 depcc="$CC" am_compiler_list=
4223
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4225 $as_echo_n "checking dependency style of $depcc... " >&6; }
4226 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4227 $as_echo_n "(cached) " >&6
4228 else
4229 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4230 # We make a subdir and do the tests there. Otherwise we can end up
4231 # making bogus files that we don't know about and never remove. For
4232 # instance it was reported that on HP-UX the gcc test will end up
4233 # making a dummy file named `D' -- because `-MD' means `put the output
4234 # in D'.
4235 mkdir conftest.dir
4236 # Copy depcomp to subdir because otherwise we won't find it if we're
4237 # using a relative directory.
4238 cp "$am_depcomp" conftest.dir
4239 cd conftest.dir
4240 # We will build objects and dependencies in a subdirectory because
4241 # it helps to detect inapplicable dependency modes. For instance
4242 # both Tru64's cc and ICC support -MD to output dependencies as a
4243 # side effect of compilation, but ICC will put the dependencies in
4244 # the current directory while Tru64 will put them in the object
4245 # directory.
4246 mkdir sub
4247
4248 am_cv_CC_dependencies_compiler_type=none
4249 if test "$am_compiler_list" = ""; then
4250 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4251 fi
4252 for depmode in $am_compiler_list; do
4253 # Setup a source with many dependencies, because some compilers
4254 # like to wrap large dependency lists on column 80 (with \), and
4255 # we should not choose a depcomp mode which is confused by this.
4256 #
4257 # We need to recreate these files for each test, as the compiler may
4258 # overwrite some of them when testing with obscure command lines.
4259 # This happens at least with the AIX C compiler.
4260 : > sub/conftest.c
4261 for i in 1 2 3 4 5 6; do
4262 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4263 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4264 # Solaris 8's {/usr,}/bin/sh.
4265 touch sub/conftst$i.h
4266 done
4267 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4268
4269 case $depmode in
4270 nosideeffect)
4271 # after this tag, mechanisms are not by side-effect, so they'll
4272 # only be used when explicitly requested
4273 if test "x$enable_dependency_tracking" = xyes; then
4274 continue
4275 else
4276 break
4277 fi
4278 ;;
4279 none) break ;;
4280 esac
4281 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4282 # mode. It turns out that the SunPro C++ compiler does not properly
4283 # handle `-M -o', and we need to detect this.
4284 if depmode=$depmode \
4285 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4286 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4287 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4288 >/dev/null 2>conftest.err &&
4289 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4290 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4291 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4292 # icc doesn't choke on unknown options, it will just issue warnings
4293 # or remarks (even with -Werror). So we grep stderr for any message
4294 # that says an option was ignored or not supported.
4295 # When given -MP, icc 7.0 and 7.1 complain thusly:
4296 # icc: Command line warning: ignoring option '-M'; no argument required
4297 # The diagnosis changed in icc 8.0:
4298 # icc: Command line remark: option '-MP' not supported
4299 if (grep 'ignoring option' conftest.err ||
4300 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4301 am_cv_CC_dependencies_compiler_type=$depmode
4302 break
4303 fi
4304 fi
4305 done
4306
4307 cd ..
4308 rm -rf conftest.dir
4309 else
4310 am_cv_CC_dependencies_compiler_type=none
4311 fi
4312
4313 fi
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4315 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4316 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4317
4318
4319
4320 if
4321 test "x$enable_dependency_tracking" != xno \
4322 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4323 am__fastdepCC_TRUE=
4324 am__fastdepCC_FALSE='#'
4325 else
4326 am__fastdepCC_TRUE='#'
4327 am__fastdepCC_FALSE=
4328 fi
4329
4330
4331 ac_ext=c
4332 ac_cpp='$CPP $CPPFLAGS'
4333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336 if test -n "$ac_tool_prefix"; then
4337 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4338 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4340 $as_echo_n "checking for $ac_word... " >&6; }
4341 if ${ac_cv_prog_CC+:} false; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 if test -n "$CC"; then
4345 ac_cv_prog_CC="$CC" # Let the user override the test.
4346 else
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH
4349 do
4350 IFS=$as_save_IFS
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 break 2
4357 fi
4358 done
4359 done
4360 IFS=$as_save_IFS
4361
4362 fi
4363 fi
4364 CC=$ac_cv_prog_CC
4365 if test -n "$CC"; then
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4367 $as_echo "$CC" >&6; }
4368 else
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370 $as_echo "no" >&6; }
4371 fi
4372
4373
4374 fi
4375 if test -z "$ac_cv_prog_CC"; then
4376 ac_ct_CC=$CC
4377 # Extract the first word of "gcc", so it can be a program name with args.
4378 set dummy gcc; ac_word=$2
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380 $as_echo_n "checking for $ac_word... " >&6; }
4381 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4382 $as_echo_n "(cached) " >&6
4383 else
4384 if test -n "$ac_ct_CC"; then
4385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4386 else
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4389 do
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4394 ac_cv_prog_ac_ct_CC="gcc"
4395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 break 2
4397 fi
4398 done
4399 done
4400 IFS=$as_save_IFS
4401
4402 fi
4403 fi
4404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4405 if test -n "$ac_ct_CC"; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4407 $as_echo "$ac_ct_CC" >&6; }
4408 else
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4411 fi
4412
4413 if test "x$ac_ct_CC" = x; then
4414 CC=""
4415 else
4416 case $cross_compiling:$ac_tool_warned in
4417 yes:)
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4420 ac_tool_warned=yes ;;
4421 esac
4422 CC=$ac_ct_CC
4423 fi
4424 else
4425 CC="$ac_cv_prog_CC"
4426 fi
4427
4428 if test -z "$CC"; then
4429 if test -n "$ac_tool_prefix"; then
4430 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4431 set dummy ${ac_tool_prefix}cc; ac_word=$2
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4433 $as_echo_n "checking for $ac_word... " >&6; }
4434 if ${ac_cv_prog_CC+:} false; then :
4435 $as_echo_n "(cached) " >&6
4436 else
4437 if test -n "$CC"; then
4438 ac_cv_prog_CC="$CC" # Let the user override the test.
4439 else
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4442 do
4443 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4447 ac_cv_prog_CC="${ac_tool_prefix}cc"
4448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 break 2
4450 fi
4451 done
4452 done
4453 IFS=$as_save_IFS
4454
4455 fi
4456 fi
4457 CC=$ac_cv_prog_CC
4458 if test -n "$CC"; then
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4460 $as_echo "$CC" >&6; }
4461 else
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463 $as_echo "no" >&6; }
4464 fi
4465
4466
4467 fi
4468 fi
4469 if test -z "$CC"; then
4470 # Extract the first word of "cc", so it can be a program name with args.
4471 set dummy cc; ac_word=$2
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4473 $as_echo_n "checking for $ac_word... " >&6; }
4474 if ${ac_cv_prog_CC+:} false; then :
4475 $as_echo_n "(cached) " >&6
4476 else
4477 if test -n "$CC"; then
4478 ac_cv_prog_CC="$CC" # Let the user override the test.
4479 else
4480 ac_prog_rejected=no
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4483 do
4484 IFS=$as_save_IFS
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4488 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4489 ac_prog_rejected=yes
4490 continue
4491 fi
4492 ac_cv_prog_CC="cc"
4493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4494 break 2
4495 fi
4496 done
4497 done
4498 IFS=$as_save_IFS
4499
4500 if test $ac_prog_rejected = yes; then
4501 # We found a bogon in the path, so make sure we never use it.
4502 set dummy $ac_cv_prog_CC
4503 shift
4504 if test $@%:@ != 0; then
4505 # We chose a different compiler from the bogus one.
4506 # However, it has the same basename, so the bogon will be chosen
4507 # first if we set CC to just the basename; use the full file name.
4508 shift
4509 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4510 fi
4511 fi
4512 fi
4513 fi
4514 CC=$ac_cv_prog_CC
4515 if test -n "$CC"; then
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4517 $as_echo "$CC" >&6; }
4518 else
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4520 $as_echo "no" >&6; }
4521 fi
4522
4523
4524 fi
4525 if test -z "$CC"; then
4526 if test -n "$ac_tool_prefix"; then
4527 for ac_prog in cl.exe
4528 do
4529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4530 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4532 $as_echo_n "checking for $ac_word... " >&6; }
4533 if ${ac_cv_prog_CC+:} false; then :
4534 $as_echo_n "(cached) " >&6
4535 else
4536 if test -n "$CC"; then
4537 ac_cv_prog_CC="$CC" # Let the user override the test.
4538 else
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH
4541 do
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4546 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 break 2
4549 fi
4550 done
4551 done
4552 IFS=$as_save_IFS
4553
4554 fi
4555 fi
4556 CC=$ac_cv_prog_CC
4557 if test -n "$CC"; then
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4559 $as_echo "$CC" >&6; }
4560 else
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4562 $as_echo "no" >&6; }
4563 fi
4564
4565
4566 test -n "$CC" && break
4567 done
4568 fi
4569 if test -z "$CC"; then
4570 ac_ct_CC=$CC
4571 for ac_prog in cl.exe
4572 do
4573 # Extract the first word of "$ac_prog", so it can be a program name with args.
4574 set dummy $ac_prog; ac_word=$2
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576 $as_echo_n "checking for $ac_word... " >&6; }
4577 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 if test -n "$ac_ct_CC"; then
4581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4582 else
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH
4585 do
4586 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=.
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4590 ac_cv_prog_ac_ct_CC="$ac_prog"
4591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 break 2
4593 fi
4594 done
4595 done
4596 IFS=$as_save_IFS
4597
4598 fi
4599 fi
4600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4601 if test -n "$ac_ct_CC"; then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4603 $as_echo "$ac_ct_CC" >&6; }
4604 else
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606 $as_echo "no" >&6; }
4607 fi
4608
4609
4610 test -n "$ac_ct_CC" && break
4611 done
4612
4613 if test "x$ac_ct_CC" = x; then
4614 CC=""
4615 else
4616 case $cross_compiling:$ac_tool_warned in
4617 yes:)
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4620 ac_tool_warned=yes ;;
4621 esac
4622 CC=$ac_ct_CC
4623 fi
4624 fi
4625
4626 fi
4627
4628
4629 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4631 as_fn_error $? "no acceptable C compiler found in \$PATH
4632 See \`config.log' for more details" "$LINENO" 5; }
4633
4634 # Provide some information about the compiler.
4635 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4636 set X $ac_compile
4637 ac_compiler=$2
4638 for ac_option in --version -v -V -qversion; do
4639 { { ac_try="$ac_compiler $ac_option >&5"
4640 case "(($ac_try" in
4641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642 *) ac_try_echo=$ac_try;;
4643 esac
4644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4645 $as_echo "$ac_try_echo"; } >&5
4646 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4647 ac_status=$?
4648 if test -s conftest.err; then
4649 sed '10a\
4650 ... rest of stderr output deleted ...
4651 10q' conftest.err >conftest.er1
4652 cat conftest.er1 >&5
4653 fi
4654 rm -f conftest.er1 conftest.err
4655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4656 test $ac_status = 0; }
4657 done
4658
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4660 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4661 if ${ac_cv_c_compiler_gnu+:} false; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666
4667 int
4668 main ()
4669 {
4670 #ifndef __GNUC__
4671 choke me
4672 #endif
4673
4674 ;
4675 return 0;
4676 }
4677 _ACEOF
4678 if ac_fn_c_try_compile "$LINENO"; then :
4679 ac_compiler_gnu=yes
4680 else
4681 ac_compiler_gnu=no
4682 fi
4683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4685
4686 fi
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4688 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4689 if test $ac_compiler_gnu = yes; then
4690 GCC=yes
4691 else
4692 GCC=
4693 fi
4694 ac_test_CFLAGS=${CFLAGS+set}
4695 ac_save_CFLAGS=$CFLAGS
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4697 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4698 if ${ac_cv_prog_cc_g+:} false; then :
4699 $as_echo_n "(cached) " >&6
4700 else
4701 ac_save_c_werror_flag=$ac_c_werror_flag
4702 ac_c_werror_flag=yes
4703 ac_cv_prog_cc_g=no
4704 CFLAGS="-g"
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4707
4708 int
4709 main ()
4710 {
4711
4712 ;
4713 return 0;
4714 }
4715 _ACEOF
4716 if ac_fn_c_try_compile "$LINENO"; then :
4717 ac_cv_prog_cc_g=yes
4718 else
4719 CFLAGS=""
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4722
4723 int
4724 main ()
4725 {
4726
4727 ;
4728 return 0;
4729 }
4730 _ACEOF
4731 if ac_fn_c_try_compile "$LINENO"; then :
4732
4733 else
4734 ac_c_werror_flag=$ac_save_c_werror_flag
4735 CFLAGS="-g"
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4738
4739 int
4740 main ()
4741 {
4742
4743 ;
4744 return 0;
4745 }
4746 _ACEOF
4747 if ac_fn_c_try_compile "$LINENO"; then :
4748 ac_cv_prog_cc_g=yes
4749 fi
4750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4751 fi
4752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 fi
4754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755 ac_c_werror_flag=$ac_save_c_werror_flag
4756 fi
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4758 $as_echo "$ac_cv_prog_cc_g" >&6; }
4759 if test "$ac_test_CFLAGS" = set; then
4760 CFLAGS=$ac_save_CFLAGS
4761 elif test $ac_cv_prog_cc_g = yes; then
4762 if test "$GCC" = yes; then
4763 CFLAGS="-g -O2"
4764 else
4765 CFLAGS="-g"
4766 fi
4767 else
4768 if test "$GCC" = yes; then
4769 CFLAGS="-O2"
4770 else
4771 CFLAGS=
4772 fi
4773 fi
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4775 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4776 if ${ac_cv_prog_cc_c89+:} false; then :
4777 $as_echo_n "(cached) " >&6
4778 else
4779 ac_cv_prog_cc_c89=no
4780 ac_save_CC=$CC
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782 /* end confdefs.h. */
4783 #include <stdarg.h>
4784 #include <stdio.h>
4785 struct stat;
4786 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4787 struct buf { int x; };
4788 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4789 static char *e (p, i)
4790 char **p;
4791 int i;
4792 {
4793 return p[i];
4794 }
4795 static char *f (char * (*g) (char **, int), char **p, ...)
4796 {
4797 char *s;
4798 va_list v;
4799 va_start (v,p);
4800 s = g (p, va_arg (v,int));
4801 va_end (v);
4802 return s;
4803 }
4804
4805 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4806 function prototypes and stuff, but not '\xHH' hex character constants.
4807 These don't provoke an error unfortunately, instead are silently treated
4808 as 'x'. The following induces an error, until -std is added to get
4809 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4810 array size at least. It's necessary to write '\x00'==0 to get something
4811 that's true only with -std. */
4812 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4813
4814 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4815 inside strings and character constants. */
4816 #define FOO(x) 'x'
4817 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4818
4819 int test (int i, double x);
4820 struct s1 {int (*f) (int a);};
4821 struct s2 {int (*f) (double a);};
4822 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4823 int argc;
4824 char **argv;
4825 int
4826 main ()
4827 {
4828 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4829 ;
4830 return 0;
4831 }
4832 _ACEOF
4833 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4834 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4835 do
4836 CC="$ac_save_CC $ac_arg"
4837 if ac_fn_c_try_compile "$LINENO"; then :
4838 ac_cv_prog_cc_c89=$ac_arg
4839 fi
4840 rm -f core conftest.err conftest.$ac_objext
4841 test "x$ac_cv_prog_cc_c89" != "xno" && break
4842 done
4843 rm -f conftest.$ac_ext
4844 CC=$ac_save_CC
4845
4846 fi
4847 # AC_CACHE_VAL
4848 case "x$ac_cv_prog_cc_c89" in
4849 x)
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4851 $as_echo "none needed" >&6; } ;;
4852 xno)
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4854 $as_echo "unsupported" >&6; } ;;
4855 *)
4856 CC="$CC $ac_cv_prog_cc_c89"
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4858 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4859 esac
4860 if test "x$ac_cv_prog_cc_c89" != xno; then :
4861
4862 fi
4863
4864 ac_ext=c
4865 ac_cpp='$CPP $CPPFLAGS'
4866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4869
4870 depcc="$CC" am_compiler_list=
4871
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4873 $as_echo_n "checking dependency style of $depcc... " >&6; }
4874 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4875 $as_echo_n "(cached) " >&6
4876 else
4877 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4878 # We make a subdir and do the tests there. Otherwise we can end up
4879 # making bogus files that we don't know about and never remove. For
4880 # instance it was reported that on HP-UX the gcc test will end up
4881 # making a dummy file named `D' -- because `-MD' means `put the output
4882 # in D'.
4883 mkdir conftest.dir
4884 # Copy depcomp to subdir because otherwise we won't find it if we're
4885 # using a relative directory.
4886 cp "$am_depcomp" conftest.dir
4887 cd conftest.dir
4888 # We will build objects and dependencies in a subdirectory because
4889 # it helps to detect inapplicable dependency modes. For instance
4890 # both Tru64's cc and ICC support -MD to output dependencies as a
4891 # side effect of compilation, but ICC will put the dependencies in
4892 # the current directory while Tru64 will put them in the object
4893 # directory.
4894 mkdir sub
4895
4896 am_cv_CC_dependencies_compiler_type=none
4897 if test "$am_compiler_list" = ""; then
4898 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4899 fi
4900 for depmode in $am_compiler_list; do
4901 # Setup a source with many dependencies, because some compilers
4902 # like to wrap large dependency lists on column 80 (with \), and
4903 # we should not choose a depcomp mode which is confused by this.
4904 #
4905 # We need to recreate these files for each test, as the compiler may
4906 # overwrite some of them when testing with obscure command lines.
4907 # This happens at least with the AIX C compiler.
4908 : > sub/conftest.c
4909 for i in 1 2 3 4 5 6; do
4910 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4911 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4912 # Solaris 8's {/usr,}/bin/sh.
4913 touch sub/conftst$i.h
4914 done
4915 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4916
4917 case $depmode in
4918 nosideeffect)
4919 # after this tag, mechanisms are not by side-effect, so they'll
4920 # only be used when explicitly requested
4921 if test "x$enable_dependency_tracking" = xyes; then
4922 continue
4923 else
4924 break
4925 fi
4926 ;;
4927 none) break ;;
4928 esac
4929 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4930 # mode. It turns out that the SunPro C++ compiler does not properly
4931 # handle `-M -o', and we need to detect this.
4932 if depmode=$depmode \
4933 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4934 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4935 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4936 >/dev/null 2>conftest.err &&
4937 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4938 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4939 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4940 # icc doesn't choke on unknown options, it will just issue warnings
4941 # or remarks (even with -Werror). So we grep stderr for any message
4942 # that says an option was ignored or not supported.
4943 # When given -MP, icc 7.0 and 7.1 complain thusly:
4944 # icc: Command line warning: ignoring option '-M'; no argument required
4945 # The diagnosis changed in icc 8.0:
4946 # icc: Command line remark: option '-MP' not supported
4947 if (grep 'ignoring option' conftest.err ||
4948 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4949 am_cv_CC_dependencies_compiler_type=$depmode
4950 break
4951 fi
4952 fi
4953 done
4954
4955 cd ..
4956 rm -rf conftest.dir
4957 else
4958 am_cv_CC_dependencies_compiler_type=none
4959 fi
4960
4961 fi
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4963 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4964 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4965
4966
4967
4968 if
4969 test "x$enable_dependency_tracking" != xno \
4970 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4971 am__fastdepCC_TRUE=
4972 am__fastdepCC_FALSE='#'
4973 else
4974 am__fastdepCC_TRUE='#'
4975 am__fastdepCC_FALSE=
4976 fi
4977
4978
4979
4980 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
4981
4982 ac_ext=c
4983 ac_cpp='$CPP $CPPFLAGS'
4984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4988 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4989 # On Suns, sometimes $CPP names a directory.
4990 if test -n "$CPP" && test -d "$CPP"; then
4991 CPP=
4992 fi
4993 if test -z "$CPP"; then
4994 if ${ac_cv_prog_CPP+:} false; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 # Double quotes because CPP needs to be expanded
4998 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4999 do
5000 ac_preproc_ok=false
5001 for ac_c_preproc_warn_flag in '' yes
5002 do
5003 # Use a header file that comes with gcc, so configuring glibc
5004 # with a fresh cross-compiler works.
5005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5006 # <limits.h> exists even on freestanding compilers.
5007 # On the NeXT, cc -E runs the code through the compiler's parser,
5008 # not just through cpp. "Syntax error" is here to catch this case.
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5011 @%:@ifdef __STDC__
5012 @%:@ include <limits.h>
5013 @%:@else
5014 @%:@ include <assert.h>
5015 @%:@endif
5016 Syntax error
5017 _ACEOF
5018 if ac_fn_c_try_cpp "$LINENO"; then :
5019
5020 else
5021 # Broken: fails on valid input.
5022 continue
5023 fi
5024 rm -f conftest.err conftest.i conftest.$ac_ext
5025
5026 # OK, works on sane cases. Now check whether nonexistent headers
5027 # can be detected and how.
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5030 @%:@include <ac_nonexistent.h>
5031 _ACEOF
5032 if ac_fn_c_try_cpp "$LINENO"; then :
5033 # Broken: success on invalid input.
5034 continue
5035 else
5036 # Passes both tests.
5037 ac_preproc_ok=:
5038 break
5039 fi
5040 rm -f conftest.err conftest.i conftest.$ac_ext
5041
5042 done
5043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5044 rm -f conftest.i conftest.err conftest.$ac_ext
5045 if $ac_preproc_ok; then :
5046 break
5047 fi
5048
5049 done
5050 ac_cv_prog_CPP=$CPP
5051
5052 fi
5053 CPP=$ac_cv_prog_CPP
5054 else
5055 ac_cv_prog_CPP=$CPP
5056 fi
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5058 $as_echo "$CPP" >&6; }
5059 ac_preproc_ok=false
5060 for ac_c_preproc_warn_flag in '' yes
5061 do
5062 # Use a header file that comes with gcc, so configuring glibc
5063 # with a fresh cross-compiler works.
5064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5065 # <limits.h> exists even on freestanding compilers.
5066 # On the NeXT, cc -E runs the code through the compiler's parser,
5067 # not just through cpp. "Syntax error" is here to catch this case.
5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5070 @%:@ifdef __STDC__
5071 @%:@ include <limits.h>
5072 @%:@else
5073 @%:@ include <assert.h>
5074 @%:@endif
5075 Syntax error
5076 _ACEOF
5077 if ac_fn_c_try_cpp "$LINENO"; then :
5078
5079 else
5080 # Broken: fails on valid input.
5081 continue
5082 fi
5083 rm -f conftest.err conftest.i conftest.$ac_ext
5084
5085 # OK, works on sane cases. Now check whether nonexistent headers
5086 # can be detected and how.
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5089 @%:@include <ac_nonexistent.h>
5090 _ACEOF
5091 if ac_fn_c_try_cpp "$LINENO"; then :
5092 # Broken: success on invalid input.
5093 continue
5094 else
5095 # Passes both tests.
5096 ac_preproc_ok=:
5097 break
5098 fi
5099 rm -f conftest.err conftest.i conftest.$ac_ext
5100
5101 done
5102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5103 rm -f conftest.i conftest.err conftest.$ac_ext
5104 if $ac_preproc_ok; then :
5105
5106 else
5107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5109 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5110 See \`config.log' for more details" "$LINENO" 5; }
5111 fi
5112
5113 ac_ext=c
5114 ac_cpp='$CPP $CPPFLAGS'
5115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5118
5119
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5121 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5122 if ${ac_cv_path_GREP+:} false; then :
5123 $as_echo_n "(cached) " >&6
5124 else
5125 if test -z "$GREP"; then
5126 ac_path_GREP_found=false
5127 # Loop through the user's path and test for each of PROGNAME-LIST
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5130 do
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5133 for ac_prog in grep ggrep; do
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5136 as_fn_executable_p "$ac_path_GREP" || continue
5137 # Check for GNU ac_path_GREP and select it if it is found.
5138 # Check for GNU $ac_path_GREP
5139 case `"$ac_path_GREP" --version 2>&1` in
5140 *GNU*)
5141 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5142 *)
5143 ac_count=0
5144 $as_echo_n 0123456789 >"conftest.in"
5145 while :
5146 do
5147 cat "conftest.in" "conftest.in" >"conftest.tmp"
5148 mv "conftest.tmp" "conftest.in"
5149 cp "conftest.in" "conftest.nl"
5150 $as_echo 'GREP' >> "conftest.nl"
5151 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5152 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5153 as_fn_arith $ac_count + 1 && ac_count=$as_val
5154 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5155 # Best one so far, save it but keep looking for a better one
5156 ac_cv_path_GREP="$ac_path_GREP"
5157 ac_path_GREP_max=$ac_count
5158 fi
5159 # 10*(2^10) chars as input seems more than enough
5160 test $ac_count -gt 10 && break
5161 done
5162 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5163 esac
5164
5165 $ac_path_GREP_found && break 3
5166 done
5167 done
5168 done
5169 IFS=$as_save_IFS
5170 if test -z "$ac_cv_path_GREP"; then
5171 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5172 fi
5173 else
5174 ac_cv_path_GREP=$GREP
5175 fi
5176
5177 fi
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5179 $as_echo "$ac_cv_path_GREP" >&6; }
5180 GREP="$ac_cv_path_GREP"
5181
5182
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5184 $as_echo_n "checking for egrep... " >&6; }
5185 if ${ac_cv_path_EGREP+:} false; then :
5186 $as_echo_n "(cached) " >&6
5187 else
5188 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5189 then ac_cv_path_EGREP="$GREP -E"
5190 else
5191 if test -z "$EGREP"; then
5192 ac_path_EGREP_found=false
5193 # Loop through the user's path and test for each of PROGNAME-LIST
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5196 do
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_prog in egrep; do
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5202 as_fn_executable_p "$ac_path_EGREP" || continue
5203 # Check for GNU ac_path_EGREP and select it if it is found.
5204 # Check for GNU $ac_path_EGREP
5205 case `"$ac_path_EGREP" --version 2>&1` in
5206 *GNU*)
5207 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5208 *)
5209 ac_count=0
5210 $as_echo_n 0123456789 >"conftest.in"
5211 while :
5212 do
5213 cat "conftest.in" "conftest.in" >"conftest.tmp"
5214 mv "conftest.tmp" "conftest.in"
5215 cp "conftest.in" "conftest.nl"
5216 $as_echo 'EGREP' >> "conftest.nl"
5217 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5219 as_fn_arith $ac_count + 1 && ac_count=$as_val
5220 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5221 # Best one so far, save it but keep looking for a better one
5222 ac_cv_path_EGREP="$ac_path_EGREP"
5223 ac_path_EGREP_max=$ac_count
5224 fi
5225 # 10*(2^10) chars as input seems more than enough
5226 test $ac_count -gt 10 && break
5227 done
5228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5229 esac
5230
5231 $ac_path_EGREP_found && break 3
5232 done
5233 done
5234 done
5235 IFS=$as_save_IFS
5236 if test -z "$ac_cv_path_EGREP"; then
5237 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5238 fi
5239 else
5240 ac_cv_path_EGREP=$EGREP
5241 fi
5242
5243 fi
5244 fi
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5246 $as_echo "$ac_cv_path_EGREP" >&6; }
5247 EGREP="$ac_cv_path_EGREP"
5248
5249
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5251 $as_echo_n "checking for ANSI C header files... " >&6; }
5252 if ${ac_cv_header_stdc+:} false; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5257 #include <stdlib.h>
5258 #include <stdarg.h>
5259 #include <string.h>
5260 #include <float.h>
5261
5262 int
5263 main ()
5264 {
5265
5266 ;
5267 return 0;
5268 }
5269 _ACEOF
5270 if ac_fn_c_try_compile "$LINENO"; then :
5271 ac_cv_header_stdc=yes
5272 else
5273 ac_cv_header_stdc=no
5274 fi
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276
5277 if test $ac_cv_header_stdc = yes; then
5278 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h. */
5281 #include <string.h>
5282
5283 _ACEOF
5284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5285 $EGREP "memchr" >/dev/null 2>&1; then :
5286
5287 else
5288 ac_cv_header_stdc=no
5289 fi
5290 rm -f conftest*
5291
5292 fi
5293
5294 if test $ac_cv_header_stdc = yes; then
5295 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5298 #include <stdlib.h>
5299
5300 _ACEOF
5301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5302 $EGREP "free" >/dev/null 2>&1; then :
5303
5304 else
5305 ac_cv_header_stdc=no
5306 fi
5307 rm -f conftest*
5308
5309 fi
5310
5311 if test $ac_cv_header_stdc = yes; then
5312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5313 if test "$cross_compiling" = yes; then :
5314 :
5315 else
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5318 #include <ctype.h>
5319 #include <stdlib.h>
5320 #if ((' ' & 0x0FF) == 0x020)
5321 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5322 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5323 #else
5324 # define ISLOWER(c) \
5325 (('a' <= (c) && (c) <= 'i') \
5326 || ('j' <= (c) && (c) <= 'r') \
5327 || ('s' <= (c) && (c) <= 'z'))
5328 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5329 #endif
5330
5331 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5332 int
5333 main ()
5334 {
5335 int i;
5336 for (i = 0; i < 256; i++)
5337 if (XOR (islower (i), ISLOWER (i))
5338 || toupper (i) != TOUPPER (i))
5339 return 2;
5340 return 0;
5341 }
5342 _ACEOF
5343 if ac_fn_c_try_run "$LINENO"; then :
5344
5345 else
5346 ac_cv_header_stdc=no
5347 fi
5348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5349 conftest.$ac_objext conftest.beam conftest.$ac_ext
5350 fi
5351
5352 fi
5353 fi
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5355 $as_echo "$ac_cv_header_stdc" >&6; }
5356 if test $ac_cv_header_stdc = yes; then
5357
5358 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
5359
5360 fi
5361
5362 case `pwd` in
5363 *\ * | *\ *)
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5365 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5366 esac
5367
5368
5369
5370 macro_version='2.4.2'
5371 macro_revision='1.3337'
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385 ltmain="$ac_aux_dir/ltmain.sh"
5386
5387 # Make sure we can run config.sub.
5388 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5389 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5390
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5392 $as_echo_n "checking build system type... " >&6; }
5393 if ${ac_cv_build+:} false; then :
5394 $as_echo_n "(cached) " >&6
5395 else
5396 ac_build_alias=$build_alias
5397 test "x$ac_build_alias" = x &&
5398 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5399 test "x$ac_build_alias" = x &&
5400 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5401 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5402 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5403
5404 fi
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5406 $as_echo "$ac_cv_build" >&6; }
5407 case $ac_cv_build in
5408 *-*-*) ;;
5409 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5410 esac
5411 build=$ac_cv_build
5412 ac_save_IFS=$IFS; IFS='-'
5413 set x $ac_cv_build
5414 shift
5415 build_cpu=$1
5416 build_vendor=$2
5417 shift; shift
5418 # Remember, the first character of IFS is used to create $*,
5419 # except with old shells:
5420 build_os=$*
5421 IFS=$ac_save_IFS
5422 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5423
5424
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5426 $as_echo_n "checking host system type... " >&6; }
5427 if ${ac_cv_host+:} false; then :
5428 $as_echo_n "(cached) " >&6
5429 else
5430 if test "x$host_alias" = x; then
5431 ac_cv_host=$ac_cv_build
5432 else
5433 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5434 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5435 fi
5436
5437 fi
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5439 $as_echo "$ac_cv_host" >&6; }
5440 case $ac_cv_host in
5441 *-*-*) ;;
5442 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5443 esac
5444 host=$ac_cv_host
5445 ac_save_IFS=$IFS; IFS='-'
5446 set x $ac_cv_host
5447 shift
5448 host_cpu=$1
5449 host_vendor=$2
5450 shift; shift
5451 # Remember, the first character of IFS is used to create $*,
5452 # except with old shells:
5453 host_os=$*
5454 IFS=$ac_save_IFS
5455 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5456
5457
5458 # Backslashify metacharacters that are still active within
5459 # double-quoted strings.
5460 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5461
5462 # Same as above, but do not quote variable references.
5463 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5464
5465 # Sed substitution to delay expansion of an escaped shell variable in a
5466 # double_quote_subst'ed string.
5467 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5468
5469 # Sed substitution to delay expansion of an escaped single quote.
5470 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5471
5472 # Sed substitution to avoid accidental globbing in evaled expressions
5473 no_glob_subst='s/\*/\\\*/g'
5474
5475 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5476 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5477 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5478
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5480 $as_echo_n "checking how to print strings... " >&6; }
5481 # Test print first, because it will be a builtin if present.
5482 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5483 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5484 ECHO='print -r --'
5485 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5486 ECHO='printf %s\n'
5487 else
5488 # Use this function as a fallback that always works.
5489 func_fallback_echo ()
5490 {
5491 eval 'cat <<_LTECHO_EOF
5492 $1
5493 _LTECHO_EOF'
5494 }
5495 ECHO='func_fallback_echo'
5496 fi
5497
5498 # func_echo_all arg...
5499 # Invoke $ECHO with all args, space-separated.
5500 func_echo_all ()
5501 {
5502 $ECHO ""
5503 }
5504
5505 case "$ECHO" in
5506 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5507 $as_echo "printf" >&6; } ;;
5508 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5509 $as_echo "print -r" >&6; } ;;
5510 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5511 $as_echo "cat" >&6; } ;;
5512 esac
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5528 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5529 if ${ac_cv_path_SED+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5533 for ac_i in 1 2 3 4 5 6 7; do
5534 ac_script="$ac_script$as_nl$ac_script"
5535 done
5536 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5537 { ac_script=; unset ac_script;}
5538 if test -z "$SED"; then
5539 ac_path_SED_found=false
5540 # Loop through the user's path and test for each of PROGNAME-LIST
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5543 do
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_prog in sed gsed; do
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5549 as_fn_executable_p "$ac_path_SED" || continue
5550 # Check for GNU ac_path_SED and select it if it is found.
5551 # Check for GNU $ac_path_SED
5552 case `"$ac_path_SED" --version 2>&1` in
5553 *GNU*)
5554 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5555 *)
5556 ac_count=0
5557 $as_echo_n 0123456789 >"conftest.in"
5558 while :
5559 do
5560 cat "conftest.in" "conftest.in" >"conftest.tmp"
5561 mv "conftest.tmp" "conftest.in"
5562 cp "conftest.in" "conftest.nl"
5563 $as_echo '' >> "conftest.nl"
5564 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5565 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5566 as_fn_arith $ac_count + 1 && ac_count=$as_val
5567 if test $ac_count -gt ${ac_path_SED_max-0}; then
5568 # Best one so far, save it but keep looking for a better one
5569 ac_cv_path_SED="$ac_path_SED"
5570 ac_path_SED_max=$ac_count
5571 fi
5572 # 10*(2^10) chars as input seems more than enough
5573 test $ac_count -gt 10 && break
5574 done
5575 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5576 esac
5577
5578 $ac_path_SED_found && break 3
5579 done
5580 done
5581 done
5582 IFS=$as_save_IFS
5583 if test -z "$ac_cv_path_SED"; then
5584 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5585 fi
5586 else
5587 ac_cv_path_SED=$SED
5588 fi
5589
5590 fi
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5592 $as_echo "$ac_cv_path_SED" >&6; }
5593 SED="$ac_cv_path_SED"
5594 rm -f conftest.sed
5595
5596 test -z "$SED" && SED=sed
5597 Xsed="$SED -e 1s/^X//"
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5610 $as_echo_n "checking for fgrep... " >&6; }
5611 if ${ac_cv_path_FGREP+:} false; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5615 then ac_cv_path_FGREP="$GREP -F"
5616 else
5617 if test -z "$FGREP"; then
5618 ac_path_FGREP_found=false
5619 # Loop through the user's path and test for each of PROGNAME-LIST
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5622 do
5623 IFS=$as_save_IFS
5624 test -z "$as_dir" && as_dir=.
5625 for ac_prog in fgrep; do
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5628 as_fn_executable_p "$ac_path_FGREP" || continue
5629 # Check for GNU ac_path_FGREP and select it if it is found.
5630 # Check for GNU $ac_path_FGREP
5631 case `"$ac_path_FGREP" --version 2>&1` in
5632 *GNU*)
5633 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5634 *)
5635 ac_count=0
5636 $as_echo_n 0123456789 >"conftest.in"
5637 while :
5638 do
5639 cat "conftest.in" "conftest.in" >"conftest.tmp"
5640 mv "conftest.tmp" "conftest.in"
5641 cp "conftest.in" "conftest.nl"
5642 $as_echo 'FGREP' >> "conftest.nl"
5643 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5644 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5645 as_fn_arith $ac_count + 1 && ac_count=$as_val
5646 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5647 # Best one so far, save it but keep looking for a better one
5648 ac_cv_path_FGREP="$ac_path_FGREP"
5649 ac_path_FGREP_max=$ac_count
5650 fi
5651 # 10*(2^10) chars as input seems more than enough
5652 test $ac_count -gt 10 && break
5653 done
5654 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5655 esac
5656
5657 $ac_path_FGREP_found && break 3
5658 done
5659 done
5660 done
5661 IFS=$as_save_IFS
5662 if test -z "$ac_cv_path_FGREP"; then
5663 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5664 fi
5665 else
5666 ac_cv_path_FGREP=$FGREP
5667 fi
5668
5669 fi
5670 fi
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5672 $as_echo "$ac_cv_path_FGREP" >&6; }
5673 FGREP="$ac_cv_path_FGREP"
5674
5675
5676 test -z "$GREP" && GREP=grep
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696 @%:@ Check whether --with-gnu-ld was given.
5697 if test "${with_gnu_ld+set}" = set; then :
5698 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5699 else
5700 with_gnu_ld=no
5701 fi
5702
5703 ac_prog=ld
5704 if test "$GCC" = yes; then
5705 # Check if gcc -print-prog-name=ld gives a path.
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5707 $as_echo_n "checking for ld used by $CC... " >&6; }
5708 case $host in
5709 *-*-mingw*)
5710 # gcc leaves a trailing carriage return which upsets mingw
5711 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5712 *)
5713 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5714 esac
5715 case $ac_prog in
5716 # Accept absolute paths.
5717 [\\/]* | ?:[\\/]*)
5718 re_direlt='/[^/][^/]*/\.\./'
5719 # Canonicalize the pathname of ld
5720 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5721 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5722 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5723 done
5724 test -z "$LD" && LD="$ac_prog"
5725 ;;
5726 "")
5727 # If it fails, then pretend we aren't using GCC.
5728 ac_prog=ld
5729 ;;
5730 *)
5731 # If it is relative, then search for the first ld in PATH.
5732 with_gnu_ld=unknown
5733 ;;
5734 esac
5735 elif test "$with_gnu_ld" = yes; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5737 $as_echo_n "checking for GNU ld... " >&6; }
5738 else
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5740 $as_echo_n "checking for non-GNU ld... " >&6; }
5741 fi
5742 if ${lt_cv_path_LD+:} false; then :
5743 $as_echo_n "(cached) " >&6
5744 else
5745 if test -z "$LD"; then
5746 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5747 for ac_dir in $PATH; do
5748 IFS="$lt_save_ifs"
5749 test -z "$ac_dir" && ac_dir=.
5750 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5751 lt_cv_path_LD="$ac_dir/$ac_prog"
5752 # Check to see if the program is GNU ld. I'd rather use --version,
5753 # but apparently some variants of GNU ld only accept -v.
5754 # Break only if it was the GNU/non-GNU ld that we prefer.
5755 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5756 *GNU* | *'with BFD'*)
5757 test "$with_gnu_ld" != no && break
5758 ;;
5759 *)
5760 test "$with_gnu_ld" != yes && break
5761 ;;
5762 esac
5763 fi
5764 done
5765 IFS="$lt_save_ifs"
5766 else
5767 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5768 fi
5769 fi
5770
5771 LD="$lt_cv_path_LD"
5772 if test -n "$LD"; then
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5774 $as_echo "$LD" >&6; }
5775 else
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5777 $as_echo "no" >&6; }
5778 fi
5779 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5781 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5782 if ${lt_cv_prog_gnu_ld+:} false; then :
5783 $as_echo_n "(cached) " >&6
5784 else
5785 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5786 case `$LD -v 2>&1 </dev/null` in
5787 *GNU* | *'with BFD'*)
5788 lt_cv_prog_gnu_ld=yes
5789 ;;
5790 *)
5791 lt_cv_prog_gnu_ld=no
5792 ;;
5793 esac
5794 fi
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5796 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5797 with_gnu_ld=$lt_cv_prog_gnu_ld
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5808 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5809 if ${lt_cv_path_NM+:} false; then :
5810 $as_echo_n "(cached) " >&6
5811 else
5812 if test -n "$NM"; then
5813 # Let the user override the test.
5814 lt_cv_path_NM="$NM"
5815 else
5816 lt_nm_to_check="${ac_tool_prefix}nm"
5817 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5818 lt_nm_to_check="$lt_nm_to_check nm"
5819 fi
5820 for lt_tmp_nm in $lt_nm_to_check; do
5821 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5822 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5823 IFS="$lt_save_ifs"
5824 test -z "$ac_dir" && ac_dir=.
5825 tmp_nm="$ac_dir/$lt_tmp_nm"
5826 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5827 # Check to see if the nm accepts a BSD-compat flag.
5828 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5829 # nm: unknown option "B" ignored
5830 # Tru64's nm complains that /dev/null is an invalid object file
5831 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5832 */dev/null* | *'Invalid file or object type'*)
5833 lt_cv_path_NM="$tmp_nm -B"
5834 break
5835 ;;
5836 *)
5837 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5838 */dev/null*)
5839 lt_cv_path_NM="$tmp_nm -p"
5840 break
5841 ;;
5842 *)
5843 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5844 continue # so that we can try to find one that supports BSD flags
5845 ;;
5846 esac
5847 ;;
5848 esac
5849 fi
5850 done
5851 IFS="$lt_save_ifs"
5852 done
5853 : ${lt_cv_path_NM=no}
5854 fi
5855 fi
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5857 $as_echo "$lt_cv_path_NM" >&6; }
5858 if test "$lt_cv_path_NM" != "no"; then
5859 NM="$lt_cv_path_NM"
5860 else
5861 # Didn't find any BSD compatible name lister, look for dumpbin.
5862 if test -n "$DUMPBIN"; then :
5863 # Let the user override the test.
5864 else
5865 if test -n "$ac_tool_prefix"; then
5866 for ac_prog in dumpbin "link -dump"
5867 do
5868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871 $as_echo_n "checking for $ac_word... " >&6; }
5872 if ${ac_cv_prog_DUMPBIN+:} false; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 if test -n "$DUMPBIN"; then
5876 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5877 else
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 for as_dir in $PATH
5880 do
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5885 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 break 2
5888 fi
5889 done
5890 done
5891 IFS=$as_save_IFS
5892
5893 fi
5894 fi
5895 DUMPBIN=$ac_cv_prog_DUMPBIN
5896 if test -n "$DUMPBIN"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5898 $as_echo "$DUMPBIN" >&6; }
5899 else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5902 fi
5903
5904
5905 test -n "$DUMPBIN" && break
5906 done
5907 fi
5908 if test -z "$DUMPBIN"; then
5909 ac_ct_DUMPBIN=$DUMPBIN
5910 for ac_prog in dumpbin "link -dump"
5911 do
5912 # Extract the first word of "$ac_prog", so it can be a program name with args.
5913 set dummy $ac_prog; ac_word=$2
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915 $as_echo_n "checking for $ac_word... " >&6; }
5916 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 if test -n "$ac_ct_DUMPBIN"; then
5920 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 break 2
5932 fi
5933 done
5934 done
5935 IFS=$as_save_IFS
5936
5937 fi
5938 fi
5939 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5940 if test -n "$ac_ct_DUMPBIN"; then
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5942 $as_echo "$ac_ct_DUMPBIN" >&6; }
5943 else
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945 $as_echo "no" >&6; }
5946 fi
5947
5948
5949 test -n "$ac_ct_DUMPBIN" && break
5950 done
5951
5952 if test "x$ac_ct_DUMPBIN" = x; then
5953 DUMPBIN=":"
5954 else
5955 case $cross_compiling:$ac_tool_warned in
5956 yes:)
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5959 ac_tool_warned=yes ;;
5960 esac
5961 DUMPBIN=$ac_ct_DUMPBIN
5962 fi
5963 fi
5964
5965 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5966 *COFF*)
5967 DUMPBIN="$DUMPBIN -symbols"
5968 ;;
5969 *)
5970 DUMPBIN=:
5971 ;;
5972 esac
5973 fi
5974
5975 if test "$DUMPBIN" != ":"; then
5976 NM="$DUMPBIN"
5977 fi
5978 fi
5979 test -z "$NM" && NM=nm
5980
5981
5982
5983
5984
5985
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5987 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5988 if ${lt_cv_nm_interface+:} false; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 lt_cv_nm_interface="BSD nm"
5992 echo "int some_variable = 0;" > conftest.$ac_ext
5993 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5994 (eval "$ac_compile" 2>conftest.err)
5995 cat conftest.err >&5
5996 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5997 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5998 cat conftest.err >&5
5999 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6000 cat conftest.out >&5
6001 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6002 lt_cv_nm_interface="MS dumpbin"
6003 fi
6004 rm -f conftest*
6005 fi
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6007 $as_echo "$lt_cv_nm_interface" >&6; }
6008
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6010 $as_echo_n "checking whether ln -s works... " >&6; }
6011 LN_S=$as_ln_s
6012 if test "$LN_S" = "ln -s"; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6014 $as_echo "yes" >&6; }
6015 else
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6017 $as_echo "no, using $LN_S" >&6; }
6018 fi
6019
6020 # find the maximum length of command line arguments
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6022 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6023 if ${lt_cv_sys_max_cmd_len+:} false; then :
6024 $as_echo_n "(cached) " >&6
6025 else
6026 i=0
6027 teststring="ABCD"
6028
6029 case $build_os in
6030 msdosdjgpp*)
6031 # On DJGPP, this test can blow up pretty badly due to problems in libc
6032 # (any single argument exceeding 2000 bytes causes a buffer overrun
6033 # during glob expansion). Even if it were fixed, the result of this
6034 # check would be larger than it should be.
6035 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6036 ;;
6037
6038 gnu*)
6039 # Under GNU Hurd, this test is not required because there is
6040 # no limit to the length of command line arguments.
6041 # Libtool will interpret -1 as no limit whatsoever
6042 lt_cv_sys_max_cmd_len=-1;
6043 ;;
6044
6045 cygwin* | mingw* | cegcc*)
6046 # On Win9x/ME, this test blows up -- it succeeds, but takes
6047 # about 5 minutes as the teststring grows exponentially.
6048 # Worse, since 9x/ME are not pre-emptively multitasking,
6049 # you end up with a "frozen" computer, even though with patience
6050 # the test eventually succeeds (with a max line length of 256k).
6051 # Instead, let's just punt: use the minimum linelength reported by
6052 # all of the supported platforms: 8192 (on NT/2K/XP).
6053 lt_cv_sys_max_cmd_len=8192;
6054 ;;
6055
6056 mint*)
6057 # On MiNT this can take a long time and run out of memory.
6058 lt_cv_sys_max_cmd_len=8192;
6059 ;;
6060
6061 amigaos*)
6062 # On AmigaOS with pdksh, this test takes hours, literally.
6063 # So we just punt and use a minimum line length of 8192.
6064 lt_cv_sys_max_cmd_len=8192;
6065 ;;
6066
6067 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6068 # This has been around since 386BSD, at least. Likely further.
6069 if test -x /sbin/sysctl; then
6070 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6071 elif test -x /usr/sbin/sysctl; then
6072 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6073 else
6074 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6075 fi
6076 # And add a safety zone
6077 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6078 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6079 ;;
6080
6081 interix*)
6082 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6083 lt_cv_sys_max_cmd_len=196608
6084 ;;
6085
6086 os2*)
6087 # The test takes a long time on OS/2.
6088 lt_cv_sys_max_cmd_len=8192
6089 ;;
6090
6091 osf*)
6092 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6093 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6094 # nice to cause kernel panics so lets avoid the loop below.
6095 # First set a reasonable default.
6096 lt_cv_sys_max_cmd_len=16384
6097 #
6098 if test -x /sbin/sysconfig; then
6099 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6100 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6101 esac
6102 fi
6103 ;;
6104 sco3.2v5*)
6105 lt_cv_sys_max_cmd_len=102400
6106 ;;
6107 sysv5* | sco5v6* | sysv4.2uw2*)
6108 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6109 if test -n "$kargmax"; then
6110 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6111 else
6112 lt_cv_sys_max_cmd_len=32768
6113 fi
6114 ;;
6115 *)
6116 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6117 if test -n "$lt_cv_sys_max_cmd_len" && \
6118 test undefined != "$lt_cv_sys_max_cmd_len"; then
6119 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6120 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6121 else
6122 # Make teststring a little bigger before we do anything with it.
6123 # a 1K string should be a reasonable start.
6124 for i in 1 2 3 4 5 6 7 8 ; do
6125 teststring=$teststring$teststring
6126 done
6127 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6128 # If test is not a shell built-in, we'll probably end up computing a
6129 # maximum length that is only half of the actual maximum length, but
6130 # we can't tell.
6131 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6132 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6133 test $i != 17 # 1/2 MB should be enough
6134 do
6135 i=`expr $i + 1`
6136 teststring=$teststring$teststring
6137 done
6138 # Only check the string length outside the loop.
6139 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6140 teststring=
6141 # Add a significant safety factor because C++ compilers can tack on
6142 # massive amounts of additional arguments before passing them to the
6143 # linker. It appears as though 1/2 is a usable value.
6144 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6145 fi
6146 ;;
6147 esac
6148
6149 fi
6150
6151 if test -n $lt_cv_sys_max_cmd_len ; then
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6153 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6154 else
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6156 $as_echo "none" >&6; }
6157 fi
6158 max_cmd_len=$lt_cv_sys_max_cmd_len
6159
6160
6161
6162
6163
6164
6165 : ${CP="cp -f"}
6166 : ${MV="mv -f"}
6167 : ${RM="rm -f"}
6168
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6170 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6171 # Try some XSI features
6172 xsi_shell=no
6173 ( _lt_dummy="a/b/c"
6174 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6175 = c,a/b,b/c, \
6176 && eval 'test $(( 1 + 1 )) -eq 2 \
6177 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6178 && xsi_shell=yes
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6180 $as_echo "$xsi_shell" >&6; }
6181
6182
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6184 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6185 lt_shell_append=no
6186 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6187 >/dev/null 2>&1 \
6188 && lt_shell_append=yes
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6190 $as_echo "$lt_shell_append" >&6; }
6191
6192
6193 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6194 lt_unset=unset
6195 else
6196 lt_unset=false
6197 fi
6198
6199
6200
6201
6202
6203 # test EBCDIC or ASCII
6204 case `echo X|tr X '\101'` in
6205 A) # ASCII based system
6206 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6207 lt_SP2NL='tr \040 \012'
6208 lt_NL2SP='tr \015\012 \040\040'
6209 ;;
6210 *) # EBCDIC based system
6211 lt_SP2NL='tr \100 \n'
6212 lt_NL2SP='tr \r\n \100\100'
6213 ;;
6214 esac
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6225 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6226 if ${lt_cv_to_host_file_cmd+:} false; then :
6227 $as_echo_n "(cached) " >&6
6228 else
6229 case $host in
6230 *-*-mingw* )
6231 case $build in
6232 *-*-mingw* ) # actually msys
6233 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6234 ;;
6235 *-*-cygwin* )
6236 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6237 ;;
6238 * ) # otherwise, assume *nix
6239 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6240 ;;
6241 esac
6242 ;;
6243 *-*-cygwin* )
6244 case $build in
6245 *-*-mingw* ) # actually msys
6246 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6247 ;;
6248 *-*-cygwin* )
6249 lt_cv_to_host_file_cmd=func_convert_file_noop
6250 ;;
6251 * ) # otherwise, assume *nix
6252 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6253 ;;
6254 esac
6255 ;;
6256 * ) # unhandled hosts (and "normal" native builds)
6257 lt_cv_to_host_file_cmd=func_convert_file_noop
6258 ;;
6259 esac
6260
6261 fi
6262
6263 to_host_file_cmd=$lt_cv_to_host_file_cmd
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6265 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6266
6267
6268
6269
6270
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6272 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6273 if ${lt_cv_to_tool_file_cmd+:} false; then :
6274 $as_echo_n "(cached) " >&6
6275 else
6276 #assume ordinary cross tools, or native build.
6277 lt_cv_to_tool_file_cmd=func_convert_file_noop
6278 case $host in
6279 *-*-mingw* )
6280 case $build in
6281 *-*-mingw* ) # actually msys
6282 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6283 ;;
6284 esac
6285 ;;
6286 esac
6287
6288 fi
6289
6290 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6292 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6293
6294
6295
6296
6297
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6299 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6300 if ${lt_cv_ld_reload_flag+:} false; then :
6301 $as_echo_n "(cached) " >&6
6302 else
6303 lt_cv_ld_reload_flag='-r'
6304 fi
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6306 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6307 reload_flag=$lt_cv_ld_reload_flag
6308 case $reload_flag in
6309 "" | " "*) ;;
6310 *) reload_flag=" $reload_flag" ;;
6311 esac
6312 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6313 case $host_os in
6314 cygwin* | mingw* | pw32* | cegcc*)
6315 if test "$GCC" != yes; then
6316 reload_cmds=false
6317 fi
6318 ;;
6319 darwin*)
6320 if test "$GCC" = yes; then
6321 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6322 else
6323 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6324 fi
6325 ;;
6326 esac
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336 if test -n "$ac_tool_prefix"; then
6337 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6338 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340 $as_echo_n "checking for $ac_word... " >&6; }
6341 if ${ac_cv_prog_OBJDUMP+:} false; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 if test -n "$OBJDUMP"; then
6345 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6346 else
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH
6349 do
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6354 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 break 2
6357 fi
6358 done
6359 done
6360 IFS=$as_save_IFS
6361
6362 fi
6363 fi
6364 OBJDUMP=$ac_cv_prog_OBJDUMP
6365 if test -n "$OBJDUMP"; then
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6367 $as_echo "$OBJDUMP" >&6; }
6368 else
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6371 fi
6372
6373
6374 fi
6375 if test -z "$ac_cv_prog_OBJDUMP"; then
6376 ac_ct_OBJDUMP=$OBJDUMP
6377 # Extract the first word of "objdump", so it can be a program name with args.
6378 set dummy objdump; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6382 $as_echo_n "(cached) " >&6
6383 else
6384 if test -n "$ac_ct_OBJDUMP"; then
6385 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6389 do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6397 fi
6398 done
6399 done
6400 IFS=$as_save_IFS
6401
6402 fi
6403 fi
6404 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6405 if test -n "$ac_ct_OBJDUMP"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6407 $as_echo "$ac_ct_OBJDUMP" >&6; }
6408 else
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6411 fi
6412
6413 if test "x$ac_ct_OBJDUMP" = x; then
6414 OBJDUMP="false"
6415 else
6416 case $cross_compiling:$ac_tool_warned in
6417 yes:)
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6420 ac_tool_warned=yes ;;
6421 esac
6422 OBJDUMP=$ac_ct_OBJDUMP
6423 fi
6424 else
6425 OBJDUMP="$ac_cv_prog_OBJDUMP"
6426 fi
6427
6428 test -z "$OBJDUMP" && OBJDUMP=objdump
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6439 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6440 if ${lt_cv_deplibs_check_method+:} false; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 lt_cv_file_magic_cmd='$MAGIC_CMD'
6444 lt_cv_file_magic_test_file=
6445 lt_cv_deplibs_check_method='unknown'
6446 # Need to set the preceding variable on all platforms that support
6447 # interlibrary dependencies.
6448 # 'none' -- dependencies not supported.
6449 # `unknown' -- same as none, but documents that we really don't know.
6450 # 'pass_all' -- all dependencies passed with no checks.
6451 # 'test_compile' -- check by making test program.
6452 # 'file_magic [[regex]]' -- check by looking for files in library path
6453 # which responds to the $file_magic_cmd with a given extended regex.
6454 # If you have `file' or equivalent on your system and you're not sure
6455 # whether `pass_all' will *always* work, you probably want this one.
6456
6457 case $host_os in
6458 aix[4-9]*)
6459 lt_cv_deplibs_check_method=pass_all
6460 ;;
6461
6462 beos*)
6463 lt_cv_deplibs_check_method=pass_all
6464 ;;
6465
6466 bsdi[45]*)
6467 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6468 lt_cv_file_magic_cmd='/usr/bin/file -L'
6469 lt_cv_file_magic_test_file=/shlib/libc.so
6470 ;;
6471
6472 cygwin*)
6473 # func_win32_libid is a shell function defined in ltmain.sh
6474 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6475 lt_cv_file_magic_cmd='func_win32_libid'
6476 ;;
6477
6478 mingw* | pw32*)
6479 # Base MSYS/MinGW do not provide the 'file' command needed by
6480 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6481 # unless we find 'file', for example because we are cross-compiling.
6482 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6483 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6484 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6485 lt_cv_file_magic_cmd='func_win32_libid'
6486 else
6487 # Keep this pattern in sync with the one in func_win32_libid.
6488 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6489 lt_cv_file_magic_cmd='$OBJDUMP -f'
6490 fi
6491 ;;
6492
6493 cegcc*)
6494 # use the weaker test based on 'objdump'. See mingw*.
6495 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6496 lt_cv_file_magic_cmd='$OBJDUMP -f'
6497 ;;
6498
6499 darwin* | rhapsody*)
6500 lt_cv_deplibs_check_method=pass_all
6501 ;;
6502
6503 freebsd* | dragonfly*)
6504 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6505 case $host_cpu in
6506 i*86 )
6507 # Not sure whether the presence of OpenBSD here was a mistake.
6508 # Let's accept both of them until this is cleared up.
6509 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6510 lt_cv_file_magic_cmd=/usr/bin/file
6511 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6512 ;;
6513 esac
6514 else
6515 lt_cv_deplibs_check_method=pass_all
6516 fi
6517 ;;
6518
6519 haiku*)
6520 lt_cv_deplibs_check_method=pass_all
6521 ;;
6522
6523 hpux10.20* | hpux11*)
6524 lt_cv_file_magic_cmd=/usr/bin/file
6525 case $host_cpu in
6526 ia64*)
6527 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6528 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6529 ;;
6530 hppa*64*)
6531 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6532 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6533 ;;
6534 *)
6535 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6536 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6537 ;;
6538 esac
6539 ;;
6540
6541 interix[3-9]*)
6542 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6543 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6544 ;;
6545
6546 irix5* | irix6* | nonstopux*)
6547 case $LD in
6548 *-32|*"-32 ") libmagic=32-bit;;
6549 *-n32|*"-n32 ") libmagic=N32;;
6550 *-64|*"-64 ") libmagic=64-bit;;
6551 *) libmagic=never-match;;
6552 esac
6553 lt_cv_deplibs_check_method=pass_all
6554 ;;
6555
6556 # This must be glibc/ELF.
6557 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6558 lt_cv_deplibs_check_method=pass_all
6559 ;;
6560
6561 netbsd* | netbsdelf*-gnu)
6562 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6563 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6564 else
6565 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6566 fi
6567 ;;
6568
6569 newos6*)
6570 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6571 lt_cv_file_magic_cmd=/usr/bin/file
6572 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6573 ;;
6574
6575 *nto* | *qnx*)
6576 lt_cv_deplibs_check_method=pass_all
6577 ;;
6578
6579 openbsd*)
6580 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6581 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6582 else
6583 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6584 fi
6585 ;;
6586
6587 osf3* | osf4* | osf5*)
6588 lt_cv_deplibs_check_method=pass_all
6589 ;;
6590
6591 rdos*)
6592 lt_cv_deplibs_check_method=pass_all
6593 ;;
6594
6595 solaris*)
6596 lt_cv_deplibs_check_method=pass_all
6597 ;;
6598
6599 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6600 lt_cv_deplibs_check_method=pass_all
6601 ;;
6602
6603 sysv4 | sysv4.3*)
6604 case $host_vendor in
6605 motorola)
6606 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]'
6607 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6608 ;;
6609 ncr)
6610 lt_cv_deplibs_check_method=pass_all
6611 ;;
6612 sequent)
6613 lt_cv_file_magic_cmd='/bin/file'
6614 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6615 ;;
6616 sni)
6617 lt_cv_file_magic_cmd='/bin/file'
6618 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6619 lt_cv_file_magic_test_file=/lib/libc.so
6620 ;;
6621 siemens)
6622 lt_cv_deplibs_check_method=pass_all
6623 ;;
6624 pc)
6625 lt_cv_deplibs_check_method=pass_all
6626 ;;
6627 esac
6628 ;;
6629
6630 tpf*)
6631 lt_cv_deplibs_check_method=pass_all
6632 ;;
6633 esac
6634
6635 fi
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6637 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6638
6639 file_magic_glob=
6640 want_nocaseglob=no
6641 if test "$build" = "$host"; then
6642 case $host_os in
6643 mingw* | pw32*)
6644 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6645 want_nocaseglob=yes
6646 else
6647 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6648 fi
6649 ;;
6650 esac
6651 fi
6652
6653 file_magic_cmd=$lt_cv_file_magic_cmd
6654 deplibs_check_method=$lt_cv_deplibs_check_method
6655 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678 if test -n "$ac_tool_prefix"; then
6679 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6680 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6682 $as_echo_n "checking for $ac_word... " >&6; }
6683 if ${ac_cv_prog_DLLTOOL+:} false; then :
6684 $as_echo_n "(cached) " >&6
6685 else
6686 if test -n "$DLLTOOL"; then
6687 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6688 else
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6691 do
6692 IFS=$as_save_IFS
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6696 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 break 2
6699 fi
6700 done
6701 done
6702 IFS=$as_save_IFS
6703
6704 fi
6705 fi
6706 DLLTOOL=$ac_cv_prog_DLLTOOL
6707 if test -n "$DLLTOOL"; then
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6709 $as_echo "$DLLTOOL" >&6; }
6710 else
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712 $as_echo "no" >&6; }
6713 fi
6714
6715
6716 fi
6717 if test -z "$ac_cv_prog_DLLTOOL"; then
6718 ac_ct_DLLTOOL=$DLLTOOL
6719 # Extract the first word of "dlltool", so it can be a program name with args.
6720 set dummy dlltool; ac_word=$2
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722 $as_echo_n "checking for $ac_word... " >&6; }
6723 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6724 $as_echo_n "(cached) " >&6
6725 else
6726 if test -n "$ac_ct_DLLTOOL"; then
6727 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6728 else
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6731 do
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6736 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 break 2
6739 fi
6740 done
6741 done
6742 IFS=$as_save_IFS
6743
6744 fi
6745 fi
6746 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6747 if test -n "$ac_ct_DLLTOOL"; then
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6749 $as_echo "$ac_ct_DLLTOOL" >&6; }
6750 else
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752 $as_echo "no" >&6; }
6753 fi
6754
6755 if test "x$ac_ct_DLLTOOL" = x; then
6756 DLLTOOL="false"
6757 else
6758 case $cross_compiling:$ac_tool_warned in
6759 yes:)
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6762 ac_tool_warned=yes ;;
6763 esac
6764 DLLTOOL=$ac_ct_DLLTOOL
6765 fi
6766 else
6767 DLLTOOL="$ac_cv_prog_DLLTOOL"
6768 fi
6769
6770 test -z "$DLLTOOL" && DLLTOOL=dlltool
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6782 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6783 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6784 $as_echo_n "(cached) " >&6
6785 else
6786 lt_cv_sharedlib_from_linklib_cmd='unknown'
6787
6788 case $host_os in
6789 cygwin* | mingw* | pw32* | cegcc*)
6790 # two different shell functions defined in ltmain.sh
6791 # decide which to use based on capabilities of $DLLTOOL
6792 case `$DLLTOOL --help 2>&1` in
6793 *--identify-strict*)
6794 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6795 ;;
6796 *)
6797 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6798 ;;
6799 esac
6800 ;;
6801 *)
6802 # fallback: assume linklib IS sharedlib
6803 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6804 ;;
6805 esac
6806
6807 fi
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6809 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6810 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6811 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6812
6813
6814
6815
6816
6817
6818
6819 if test -n "$ac_tool_prefix"; then
6820 for ac_prog in ar
6821 do
6822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if ${ac_cv_prog_AR+:} false; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 if test -n "$AR"; then
6830 ac_cv_prog_AR="$AR" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6839 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 break 2
6842 fi
6843 done
6844 done
6845 IFS=$as_save_IFS
6846
6847 fi
6848 fi
6849 AR=$ac_cv_prog_AR
6850 if test -n "$AR"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6852 $as_echo "$AR" >&6; }
6853 else
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6856 fi
6857
6858
6859 test -n "$AR" && break
6860 done
6861 fi
6862 if test -z "$AR"; then
6863 ac_ct_AR=$AR
6864 for ac_prog in ar
6865 do
6866 # Extract the first word of "$ac_prog", so it can be a program name with args.
6867 set dummy $ac_prog; ac_word=$2
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869 $as_echo_n "checking for $ac_word... " >&6; }
6870 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6871 $as_echo_n "(cached) " >&6
6872 else
6873 if test -n "$ac_ct_AR"; then
6874 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6875 else
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 for as_dir in $PATH
6878 do
6879 IFS=$as_save_IFS
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883 ac_cv_prog_ac_ct_AR="$ac_prog"
6884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 break 2
6886 fi
6887 done
6888 done
6889 IFS=$as_save_IFS
6890
6891 fi
6892 fi
6893 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6894 if test -n "$ac_ct_AR"; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6896 $as_echo "$ac_ct_AR" >&6; }
6897 else
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 $as_echo "no" >&6; }
6900 fi
6901
6902
6903 test -n "$ac_ct_AR" && break
6904 done
6905
6906 if test "x$ac_ct_AR" = x; then
6907 AR="false"
6908 else
6909 case $cross_compiling:$ac_tool_warned in
6910 yes:)
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6913 ac_tool_warned=yes ;;
6914 esac
6915 AR=$ac_ct_AR
6916 fi
6917 fi
6918
6919 : ${AR=ar}
6920 : ${AR_FLAGS=cru}
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6933 $as_echo_n "checking for archiver @FILE support... " >&6; }
6934 if ${lt_cv_ar_at_file+:} false; then :
6935 $as_echo_n "(cached) " >&6
6936 else
6937 lt_cv_ar_at_file=no
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6940
6941 int
6942 main ()
6943 {
6944
6945 ;
6946 return 0;
6947 }
6948 _ACEOF
6949 if ac_fn_c_try_compile "$LINENO"; then :
6950 echo conftest.$ac_objext > conftest.lst
6951 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6953 (eval $lt_ar_try) 2>&5
6954 ac_status=$?
6955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6956 test $ac_status = 0; }
6957 if test "$ac_status" -eq 0; then
6958 # Ensure the archiver fails upon bogus file names.
6959 rm -f conftest.$ac_objext libconftest.a
6960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6961 (eval $lt_ar_try) 2>&5
6962 ac_status=$?
6963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6964 test $ac_status = 0; }
6965 if test "$ac_status" -ne 0; then
6966 lt_cv_ar_at_file=@
6967 fi
6968 fi
6969 rm -f conftest.* libconftest.a
6970
6971 fi
6972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6973
6974 fi
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6976 $as_echo "$lt_cv_ar_at_file" >&6; }
6977
6978 if test "x$lt_cv_ar_at_file" = xno; then
6979 archiver_list_spec=
6980 else
6981 archiver_list_spec=$lt_cv_ar_at_file
6982 fi
6983
6984
6985
6986
6987
6988
6989
6990 if test -n "$ac_tool_prefix"; then
6991 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6992 set dummy ${ac_tool_prefix}strip; ac_word=$2
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6994 $as_echo_n "checking for $ac_word... " >&6; }
6995 if ${ac_cv_prog_STRIP+:} false; then :
6996 $as_echo_n "(cached) " >&6
6997 else
6998 if test -n "$STRIP"; then
6999 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7000 else
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 for as_dir in $PATH
7003 do
7004 IFS=$as_save_IFS
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7008 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 break 2
7011 fi
7012 done
7013 done
7014 IFS=$as_save_IFS
7015
7016 fi
7017 fi
7018 STRIP=$ac_cv_prog_STRIP
7019 if test -n "$STRIP"; then
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7021 $as_echo "$STRIP" >&6; }
7022 else
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024 $as_echo "no" >&6; }
7025 fi
7026
7027
7028 fi
7029 if test -z "$ac_cv_prog_STRIP"; then
7030 ac_ct_STRIP=$STRIP
7031 # Extract the first word of "strip", so it can be a program name with args.
7032 set dummy strip; ac_word=$2
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7034 $as_echo_n "checking for $ac_word... " >&6; }
7035 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7036 $as_echo_n "(cached) " >&6
7037 else
7038 if test -n "$ac_ct_STRIP"; then
7039 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7040 else
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH
7043 do
7044 IFS=$as_save_IFS
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7048 ac_cv_prog_ac_ct_STRIP="strip"
7049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 break 2
7051 fi
7052 done
7053 done
7054 IFS=$as_save_IFS
7055
7056 fi
7057 fi
7058 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7059 if test -n "$ac_ct_STRIP"; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7061 $as_echo "$ac_ct_STRIP" >&6; }
7062 else
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064 $as_echo "no" >&6; }
7065 fi
7066
7067 if test "x$ac_ct_STRIP" = x; then
7068 STRIP=":"
7069 else
7070 case $cross_compiling:$ac_tool_warned in
7071 yes:)
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7074 ac_tool_warned=yes ;;
7075 esac
7076 STRIP=$ac_ct_STRIP
7077 fi
7078 else
7079 STRIP="$ac_cv_prog_STRIP"
7080 fi
7081
7082 test -z "$STRIP" && STRIP=:
7083
7084
7085
7086
7087
7088
7089 if test -n "$ac_tool_prefix"; then
7090 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7091 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7093 $as_echo_n "checking for $ac_word... " >&6; }
7094 if ${ac_cv_prog_RANLIB+:} false; then :
7095 $as_echo_n "(cached) " >&6
7096 else
7097 if test -n "$RANLIB"; then
7098 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7099 else
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 for as_dir in $PATH
7102 do
7103 IFS=$as_save_IFS
7104 test -z "$as_dir" && as_dir=.
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7107 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7109 break 2
7110 fi
7111 done
7112 done
7113 IFS=$as_save_IFS
7114
7115 fi
7116 fi
7117 RANLIB=$ac_cv_prog_RANLIB
7118 if test -n "$RANLIB"; then
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7120 $as_echo "$RANLIB" >&6; }
7121 else
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7123 $as_echo "no" >&6; }
7124 fi
7125
7126
7127 fi
7128 if test -z "$ac_cv_prog_RANLIB"; then
7129 ac_ct_RANLIB=$RANLIB
7130 # Extract the first word of "ranlib", so it can be a program name with args.
7131 set dummy ranlib; ac_word=$2
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7133 $as_echo_n "checking for $ac_word... " >&6; }
7134 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7135 $as_echo_n "(cached) " >&6
7136 else
7137 if test -n "$ac_ct_RANLIB"; then
7138 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7139 else
7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 for as_dir in $PATH
7142 do
7143 IFS=$as_save_IFS
7144 test -z "$as_dir" && as_dir=.
7145 for ac_exec_ext in '' $ac_executable_extensions; do
7146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7147 ac_cv_prog_ac_ct_RANLIB="ranlib"
7148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 break 2
7150 fi
7151 done
7152 done
7153 IFS=$as_save_IFS
7154
7155 fi
7156 fi
7157 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7158 if test -n "$ac_ct_RANLIB"; then
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7160 $as_echo "$ac_ct_RANLIB" >&6; }
7161 else
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163 $as_echo "no" >&6; }
7164 fi
7165
7166 if test "x$ac_ct_RANLIB" = x; then
7167 RANLIB=":"
7168 else
7169 case $cross_compiling:$ac_tool_warned in
7170 yes:)
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7173 ac_tool_warned=yes ;;
7174 esac
7175 RANLIB=$ac_ct_RANLIB
7176 fi
7177 else
7178 RANLIB="$ac_cv_prog_RANLIB"
7179 fi
7180
7181 test -z "$RANLIB" && RANLIB=:
7182
7183
7184
7185
7186
7187
7188 # Determine commands to create old-style static archives.
7189 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7190 old_postinstall_cmds='chmod 644 $oldlib'
7191 old_postuninstall_cmds=
7192
7193 if test -n "$RANLIB"; then
7194 case $host_os in
7195 openbsd*)
7196 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7197 ;;
7198 *)
7199 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7200 ;;
7201 esac
7202 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7203 fi
7204
7205 case $host_os in
7206 darwin*)
7207 lock_old_archive_extraction=yes ;;
7208 *)
7209 lock_old_archive_extraction=no ;;
7210 esac
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250 # If no C compiler was specified, use CC.
7251 LTCC=${LTCC-"$CC"}
7252
7253 # If no C compiler flags were specified, use CFLAGS.
7254 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7255
7256 # Allow CC to be a program name with arguments.
7257 compiler=$CC
7258
7259
7260 # Check for command to grab the raw symbol name followed by C symbol from nm.
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7262 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7263 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7264 $as_echo_n "(cached) " >&6
7265 else
7266
7267 # These are sane defaults that work on at least a few old systems.
7268 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7269
7270 # Character class describing NM global symbol codes.
7271 symcode='[BCDEGRST]'
7272
7273 # Regexp to match symbols that can be accessed directly from C.
7274 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7275
7276 # Define system-specific variables.
7277 case $host_os in
7278 aix*)
7279 symcode='[BCDT]'
7280 ;;
7281 cygwin* | mingw* | pw32* | cegcc*)
7282 symcode='[ABCDGISTW]'
7283 ;;
7284 hpux*)
7285 if test "$host_cpu" = ia64; then
7286 symcode='[ABCDEGRST]'
7287 fi
7288 ;;
7289 irix* | nonstopux*)
7290 symcode='[BCDEGRST]'
7291 ;;
7292 osf*)
7293 symcode='[BCDEGQRST]'
7294 ;;
7295 solaris*)
7296 symcode='[BDRT]'
7297 ;;
7298 sco3.2v5*)
7299 symcode='[DT]'
7300 ;;
7301 sysv4.2uw2*)
7302 symcode='[DT]'
7303 ;;
7304 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7305 symcode='[ABDT]'
7306 ;;
7307 sysv4)
7308 symcode='[DFNSTU]'
7309 ;;
7310 esac
7311
7312 # If we're using GNU nm, then use its standard symbol codes.
7313 case `$NM -V 2>&1` in
7314 *GNU* | *'with BFD'*)
7315 symcode='[ABCDGIRSTW]' ;;
7316 esac
7317
7318 # Transform an extracted symbol line into a proper C declaration.
7319 # Some systems (esp. on ia64) link data and code symbols differently,
7320 # so use this general approach.
7321 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7322
7323 # Transform an extracted symbol line into symbol name and symbol address
7324 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7325 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7326
7327 # Handle CRLF in mingw tool chain
7328 opt_cr=
7329 case $build_os in
7330 mingw*)
7331 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7332 ;;
7333 esac
7334
7335 # Try without a prefix underscore, then with it.
7336 for ac_symprfx in "" "_"; do
7337
7338 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7339 symxfrm="\\1 $ac_symprfx\\2 \\2"
7340
7341 # Write the raw and C identifiers.
7342 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7343 # Fake it for dumpbin and say T for any non-static function
7344 # and D for any global variable.
7345 # Also find C++ and __fastcall symbols from MSVC++,
7346 # which start with @ or ?.
7347 lt_cv_sys_global_symbol_pipe="$AWK '"\
7348 " {last_section=section; section=\$ 3};"\
7349 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7350 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7351 " \$ 0!~/External *\|/{next};"\
7352 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7353 " {if(hide[section]) next};"\
7354 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7355 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7356 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7357 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7358 " ' prfx=^$ac_symprfx"
7359 else
7360 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7361 fi
7362 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7363
7364 # Check to see that the pipe works correctly.
7365 pipe_works=no
7366
7367 rm -f conftest*
7368 cat > conftest.$ac_ext <<_LT_EOF
7369 #ifdef __cplusplus
7370 extern "C" {
7371 #endif
7372 char nm_test_var;
7373 void nm_test_func(void);
7374 void nm_test_func(void){}
7375 #ifdef __cplusplus
7376 }
7377 #endif
7378 int main(){nm_test_var='a';nm_test_func();return(0);}
7379 _LT_EOF
7380
7381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7382 (eval $ac_compile) 2>&5
7383 ac_status=$?
7384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7385 test $ac_status = 0; }; then
7386 # Now try to grab the symbols.
7387 nlist=conftest.nm
7388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7389 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7390 ac_status=$?
7391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7392 test $ac_status = 0; } && test -s "$nlist"; then
7393 # Try sorting and uniquifying the output.
7394 if sort "$nlist" | uniq > "$nlist"T; then
7395 mv -f "$nlist"T "$nlist"
7396 else
7397 rm -f "$nlist"T
7398 fi
7399
7400 # Make sure that we snagged all the symbols we need.
7401 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7402 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7403 cat <<_LT_EOF > conftest.$ac_ext
7404 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7405 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7406 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7407 relocations are performed -- see ld's documentation on pseudo-relocs. */
7408 # define LT@&t@_DLSYM_CONST
7409 #elif defined(__osf__)
7410 /* This system does not cope well with relocations in const data. */
7411 # define LT@&t@_DLSYM_CONST
7412 #else
7413 # define LT@&t@_DLSYM_CONST const
7414 #endif
7415
7416 #ifdef __cplusplus
7417 extern "C" {
7418 #endif
7419
7420 _LT_EOF
7421 # Now generate the symbol file.
7422 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7423
7424 cat <<_LT_EOF >> conftest.$ac_ext
7425
7426 /* The mapping between symbol names and symbols. */
7427 LT@&t@_DLSYM_CONST struct {
7428 const char *name;
7429 void *address;
7430 }
7431 lt__PROGRAM__LTX_preloaded_symbols[] =
7432 {
7433 { "@PROGRAM@", (void *) 0 },
7434 _LT_EOF
7435 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7436 cat <<\_LT_EOF >> conftest.$ac_ext
7437 {0, (void *) 0}
7438 };
7439
7440 /* This works around a problem in FreeBSD linker */
7441 #ifdef FREEBSD_WORKAROUND
7442 static const void *lt_preloaded_setup() {
7443 return lt__PROGRAM__LTX_preloaded_symbols;
7444 }
7445 #endif
7446
7447 #ifdef __cplusplus
7448 }
7449 #endif
7450 _LT_EOF
7451 # Now try linking the two files.
7452 mv conftest.$ac_objext conftstm.$ac_objext
7453 lt_globsym_save_LIBS=$LIBS
7454 lt_globsym_save_CFLAGS=$CFLAGS
7455 LIBS="conftstm.$ac_objext"
7456 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7458 (eval $ac_link) 2>&5
7459 ac_status=$?
7460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7461 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7462 pipe_works=yes
7463 fi
7464 LIBS=$lt_globsym_save_LIBS
7465 CFLAGS=$lt_globsym_save_CFLAGS
7466 else
7467 echo "cannot find nm_test_func in $nlist" >&5
7468 fi
7469 else
7470 echo "cannot find nm_test_var in $nlist" >&5
7471 fi
7472 else
7473 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7474 fi
7475 else
7476 echo "$progname: failed program was:" >&5
7477 cat conftest.$ac_ext >&5
7478 fi
7479 rm -rf conftest* conftst*
7480
7481 # Do not use the global_symbol_pipe unless it works.
7482 if test "$pipe_works" = yes; then
7483 break
7484 else
7485 lt_cv_sys_global_symbol_pipe=
7486 fi
7487 done
7488
7489 fi
7490
7491 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7492 lt_cv_sys_global_symbol_to_cdecl=
7493 fi
7494 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7496 $as_echo "failed" >&6; }
7497 else
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7499 $as_echo "ok" >&6; }
7500 fi
7501
7502 # Response file support.
7503 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7504 nm_file_list_spec='@'
7505 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7506 nm_file_list_spec='@'
7507 fi
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7536 $as_echo_n "checking for sysroot... " >&6; }
7537
7538 @%:@ Check whether --with-sysroot was given.
7539 if test "${with_sysroot+set}" = set; then :
7540 withval=$with_sysroot;
7541 else
7542 with_sysroot=no
7543 fi
7544
7545
7546 lt_sysroot=
7547 case ${with_sysroot} in #(
7548 yes)
7549 if test "$GCC" = yes; then
7550 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7551 fi
7552 ;; #(
7553 /*)
7554 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7555 ;; #(
7556 no|'')
7557 ;; #(
7558 *)
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7560 $as_echo "${with_sysroot}" >&6; }
7561 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7562 ;;
7563 esac
7564
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7566 $as_echo "${lt_sysroot:-no}" >&6; }
7567
7568
7569
7570
7571
7572 @%:@ Check whether --enable-libtool-lock was given.
7573 if test "${enable_libtool_lock+set}" = set; then :
7574 enableval=$enable_libtool_lock;
7575 fi
7576
7577 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7578
7579 # Some flags need to be propagated to the compiler or linker for good
7580 # libtool support.
7581 case $host in
7582 ia64-*-hpux*)
7583 # Find out which ABI we are using.
7584 echo 'int i;' > conftest.$ac_ext
7585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7586 (eval $ac_compile) 2>&5
7587 ac_status=$?
7588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7589 test $ac_status = 0; }; then
7590 case `/usr/bin/file conftest.$ac_objext` in
7591 *ELF-32*)
7592 HPUX_IA64_MODE="32"
7593 ;;
7594 *ELF-64*)
7595 HPUX_IA64_MODE="64"
7596 ;;
7597 esac
7598 fi
7599 rm -rf conftest*
7600 ;;
7601 *-*-irix6*)
7602 # Find out which ABI we are using.
7603 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7605 (eval $ac_compile) 2>&5
7606 ac_status=$?
7607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7608 test $ac_status = 0; }; then
7609 if test "$lt_cv_prog_gnu_ld" = yes; then
7610 case `/usr/bin/file conftest.$ac_objext` in
7611 *32-bit*)
7612 LD="${LD-ld} -melf32bsmip"
7613 ;;
7614 *N32*)
7615 LD="${LD-ld} -melf32bmipn32"
7616 ;;
7617 *64-bit*)
7618 LD="${LD-ld} -melf64bmip"
7619 ;;
7620 esac
7621 else
7622 case `/usr/bin/file conftest.$ac_objext` in
7623 *32-bit*)
7624 LD="${LD-ld} -32"
7625 ;;
7626 *N32*)
7627 LD="${LD-ld} -n32"
7628 ;;
7629 *64-bit*)
7630 LD="${LD-ld} -64"
7631 ;;
7632 esac
7633 fi
7634 fi
7635 rm -rf conftest*
7636 ;;
7637
7638 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7639 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7640 # Find out which ABI we are using.
7641 echo 'int i;' > conftest.$ac_ext
7642 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7643 (eval $ac_compile) 2>&5
7644 ac_status=$?
7645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7646 test $ac_status = 0; }; then
7647 case `/usr/bin/file conftest.o` in
7648 *32-bit*)
7649 case $host in
7650 x86_64-*kfreebsd*-gnu)
7651 LD="${LD-ld} -m elf_i386_fbsd"
7652 ;;
7653 x86_64-*linux*)
7654 case `/usr/bin/file conftest.o` in
7655 *x86-64*)
7656 LD="${LD-ld} -m elf32_x86_64"
7657 ;;
7658 *)
7659 LD="${LD-ld} -m elf_i386"
7660 ;;
7661 esac
7662 ;;
7663 powerpc64le-*)
7664 LD="${LD-ld} -m elf32lppclinux"
7665 ;;
7666 powerpc64-*)
7667 LD="${LD-ld} -m elf32ppclinux"
7668 ;;
7669 s390x-*linux*)
7670 LD="${LD-ld} -m elf_s390"
7671 ;;
7672 sparc64-*linux*)
7673 LD="${LD-ld} -m elf32_sparc"
7674 ;;
7675 esac
7676 ;;
7677 *64-bit*)
7678 case $host in
7679 x86_64-*kfreebsd*-gnu)
7680 LD="${LD-ld} -m elf_x86_64_fbsd"
7681 ;;
7682 x86_64-*linux*)
7683 LD="${LD-ld} -m elf_x86_64"
7684 ;;
7685 powerpcle-*)
7686 LD="${LD-ld} -m elf64lppc"
7687 ;;
7688 powerpc-*)
7689 LD="${LD-ld} -m elf64ppc"
7690 ;;
7691 s390*-*linux*|s390*-*tpf*)
7692 LD="${LD-ld} -m elf64_s390"
7693 ;;
7694 sparc*-*linux*)
7695 LD="${LD-ld} -m elf64_sparc"
7696 ;;
7697 esac
7698 ;;
7699 esac
7700 fi
7701 rm -rf conftest*
7702 ;;
7703
7704 *-*-sco3.2v5*)
7705 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7706 SAVE_CFLAGS="$CFLAGS"
7707 CFLAGS="$CFLAGS -belf"
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7709 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7710 if ${lt_cv_cc_needs_belf+:} false; then :
7711 $as_echo_n "(cached) " >&6
7712 else
7713 ac_ext=c
7714 ac_cpp='$CPP $CPPFLAGS'
7715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7718
7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7721
7722 int
7723 main ()
7724 {
7725
7726 ;
7727 return 0;
7728 }
7729 _ACEOF
7730 if ac_fn_c_try_link "$LINENO"; then :
7731 lt_cv_cc_needs_belf=yes
7732 else
7733 lt_cv_cc_needs_belf=no
7734 fi
7735 rm -f core conftest.err conftest.$ac_objext \
7736 conftest$ac_exeext conftest.$ac_ext
7737 ac_ext=c
7738 ac_cpp='$CPP $CPPFLAGS'
7739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7742
7743 fi
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7745 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7746 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7747 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7748 CFLAGS="$SAVE_CFLAGS"
7749 fi
7750 ;;
7751 *-*solaris*)
7752 # Find out which ABI we are using.
7753 echo 'int i;' > conftest.$ac_ext
7754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7755 (eval $ac_compile) 2>&5
7756 ac_status=$?
7757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7758 test $ac_status = 0; }; then
7759 case `/usr/bin/file conftest.o` in
7760 *64-bit*)
7761 case $lt_cv_prog_gnu_ld in
7762 yes*)
7763 case $host in
7764 i?86-*-solaris*)
7765 LD="${LD-ld} -m elf_x86_64"
7766 ;;
7767 sparc*-*-solaris*)
7768 LD="${LD-ld} -m elf64_sparc"
7769 ;;
7770 esac
7771 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7772 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7773 LD="${LD-ld}_sol2"
7774 fi
7775 ;;
7776 *)
7777 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7778 LD="${LD-ld} -64"
7779 fi
7780 ;;
7781 esac
7782 ;;
7783 esac
7784 fi
7785 rm -rf conftest*
7786 ;;
7787 esac
7788
7789 need_locks="$enable_libtool_lock"
7790
7791 if test -n "$ac_tool_prefix"; then
7792 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7793 set dummy ${ac_tool_prefix}mt; ac_word=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7797 $as_echo_n "(cached) " >&6
7798 else
7799 if test -n "$MANIFEST_TOOL"; then
7800 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7801 else
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7804 do
7805 IFS=$as_save_IFS
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7809 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 break 2
7812 fi
7813 done
7814 done
7815 IFS=$as_save_IFS
7816
7817 fi
7818 fi
7819 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7820 if test -n "$MANIFEST_TOOL"; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7822 $as_echo "$MANIFEST_TOOL" >&6; }
7823 else
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7826 fi
7827
7828
7829 fi
7830 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7831 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7832 # Extract the first word of "mt", so it can be a program name with args.
7833 set dummy mt; ac_word=$2
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7835 $as_echo_n "checking for $ac_word... " >&6; }
7836 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7837 $as_echo_n "(cached) " >&6
7838 else
7839 if test -n "$ac_ct_MANIFEST_TOOL"; then
7840 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7841 else
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 for as_dir in $PATH
7844 do
7845 IFS=$as_save_IFS
7846 test -z "$as_dir" && as_dir=.
7847 for ac_exec_ext in '' $ac_executable_extensions; do
7848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7849 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7851 break 2
7852 fi
7853 done
7854 done
7855 IFS=$as_save_IFS
7856
7857 fi
7858 fi
7859 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7860 if test -n "$ac_ct_MANIFEST_TOOL"; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7862 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7863 else
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7865 $as_echo "no" >&6; }
7866 fi
7867
7868 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7869 MANIFEST_TOOL=":"
7870 else
7871 case $cross_compiling:$ac_tool_warned in
7872 yes:)
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7875 ac_tool_warned=yes ;;
7876 esac
7877 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7878 fi
7879 else
7880 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7881 fi
7882
7883 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7885 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7886 if ${lt_cv_path_mainfest_tool+:} false; then :
7887 $as_echo_n "(cached) " >&6
7888 else
7889 lt_cv_path_mainfest_tool=no
7890 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7891 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7892 cat conftest.err >&5
7893 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7894 lt_cv_path_mainfest_tool=yes
7895 fi
7896 rm -f conftest*
7897 fi
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7899 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7900 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7901 MANIFEST_TOOL=:
7902 fi
7903
7904
7905
7906
7907
7908
7909 case $host_os in
7910 rhapsody* | darwin*)
7911 if test -n "$ac_tool_prefix"; then
7912 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7913 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915 $as_echo_n "checking for $ac_word... " >&6; }
7916 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7917 $as_echo_n "(cached) " >&6
7918 else
7919 if test -n "$DSYMUTIL"; then
7920 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7921 else
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 for as_dir in $PATH
7924 do
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7929 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 break 2
7932 fi
7933 done
7934 done
7935 IFS=$as_save_IFS
7936
7937 fi
7938 fi
7939 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7940 if test -n "$DSYMUTIL"; then
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7942 $as_echo "$DSYMUTIL" >&6; }
7943 else
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 $as_echo "no" >&6; }
7946 fi
7947
7948
7949 fi
7950 if test -z "$ac_cv_prog_DSYMUTIL"; then
7951 ac_ct_DSYMUTIL=$DSYMUTIL
7952 # Extract the first word of "dsymutil", so it can be a program name with args.
7953 set dummy dsymutil; ac_word=$2
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955 $as_echo_n "checking for $ac_word... " >&6; }
7956 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7957 $as_echo_n "(cached) " >&6
7958 else
7959 if test -n "$ac_ct_DSYMUTIL"; then
7960 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7961 else
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963 for as_dir in $PATH
7964 do
7965 IFS=$as_save_IFS
7966 test -z "$as_dir" && as_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7969 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7971 break 2
7972 fi
7973 done
7974 done
7975 IFS=$as_save_IFS
7976
7977 fi
7978 fi
7979 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7980 if test -n "$ac_ct_DSYMUTIL"; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7982 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7983 else
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985 $as_echo "no" >&6; }
7986 fi
7987
7988 if test "x$ac_ct_DSYMUTIL" = x; then
7989 DSYMUTIL=":"
7990 else
7991 case $cross_compiling:$ac_tool_warned in
7992 yes:)
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7995 ac_tool_warned=yes ;;
7996 esac
7997 DSYMUTIL=$ac_ct_DSYMUTIL
7998 fi
7999 else
8000 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8001 fi
8002
8003 if test -n "$ac_tool_prefix"; then
8004 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8005 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8007 $as_echo_n "checking for $ac_word... " >&6; }
8008 if ${ac_cv_prog_NMEDIT+:} false; then :
8009 $as_echo_n "(cached) " >&6
8010 else
8011 if test -n "$NMEDIT"; then
8012 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8013 else
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 for as_dir in $PATH
8016 do
8017 IFS=$as_save_IFS
8018 test -z "$as_dir" && as_dir=.
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8021 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8023 break 2
8024 fi
8025 done
8026 done
8027 IFS=$as_save_IFS
8028
8029 fi
8030 fi
8031 NMEDIT=$ac_cv_prog_NMEDIT
8032 if test -n "$NMEDIT"; then
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8034 $as_echo "$NMEDIT" >&6; }
8035 else
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8037 $as_echo "no" >&6; }
8038 fi
8039
8040
8041 fi
8042 if test -z "$ac_cv_prog_NMEDIT"; then
8043 ac_ct_NMEDIT=$NMEDIT
8044 # Extract the first word of "nmedit", so it can be a program name with args.
8045 set dummy nmedit; ac_word=$2
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8047 $as_echo_n "checking for $ac_word... " >&6; }
8048 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8049 $as_echo_n "(cached) " >&6
8050 else
8051 if test -n "$ac_ct_NMEDIT"; then
8052 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8053 else
8054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 for as_dir in $PATH
8056 do
8057 IFS=$as_save_IFS
8058 test -z "$as_dir" && as_dir=.
8059 for ac_exec_ext in '' $ac_executable_extensions; do
8060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8061 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 break 2
8064 fi
8065 done
8066 done
8067 IFS=$as_save_IFS
8068
8069 fi
8070 fi
8071 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8072 if test -n "$ac_ct_NMEDIT"; then
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8074 $as_echo "$ac_ct_NMEDIT" >&6; }
8075 else
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077 $as_echo "no" >&6; }
8078 fi
8079
8080 if test "x$ac_ct_NMEDIT" = x; then
8081 NMEDIT=":"
8082 else
8083 case $cross_compiling:$ac_tool_warned in
8084 yes:)
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8087 ac_tool_warned=yes ;;
8088 esac
8089 NMEDIT=$ac_ct_NMEDIT
8090 fi
8091 else
8092 NMEDIT="$ac_cv_prog_NMEDIT"
8093 fi
8094
8095 if test -n "$ac_tool_prefix"; then
8096 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8097 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8099 $as_echo_n "checking for $ac_word... " >&6; }
8100 if ${ac_cv_prog_LIPO+:} false; then :
8101 $as_echo_n "(cached) " >&6
8102 else
8103 if test -n "$LIPO"; then
8104 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8105 else
8106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107 for as_dir in $PATH
8108 do
8109 IFS=$as_save_IFS
8110 test -z "$as_dir" && as_dir=.
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8113 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8115 break 2
8116 fi
8117 done
8118 done
8119 IFS=$as_save_IFS
8120
8121 fi
8122 fi
8123 LIPO=$ac_cv_prog_LIPO
8124 if test -n "$LIPO"; then
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8126 $as_echo "$LIPO" >&6; }
8127 else
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129 $as_echo "no" >&6; }
8130 fi
8131
8132
8133 fi
8134 if test -z "$ac_cv_prog_LIPO"; then
8135 ac_ct_LIPO=$LIPO
8136 # Extract the first word of "lipo", so it can be a program name with args.
8137 set dummy lipo; ac_word=$2
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8139 $as_echo_n "checking for $ac_word... " >&6; }
8140 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8141 $as_echo_n "(cached) " >&6
8142 else
8143 if test -n "$ac_ct_LIPO"; then
8144 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8145 else
8146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147 for as_dir in $PATH
8148 do
8149 IFS=$as_save_IFS
8150 test -z "$as_dir" && as_dir=.
8151 for ac_exec_ext in '' $ac_executable_extensions; do
8152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8153 ac_cv_prog_ac_ct_LIPO="lipo"
8154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8155 break 2
8156 fi
8157 done
8158 done
8159 IFS=$as_save_IFS
8160
8161 fi
8162 fi
8163 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8164 if test -n "$ac_ct_LIPO"; then
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8166 $as_echo "$ac_ct_LIPO" >&6; }
8167 else
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8169 $as_echo "no" >&6; }
8170 fi
8171
8172 if test "x$ac_ct_LIPO" = x; then
8173 LIPO=":"
8174 else
8175 case $cross_compiling:$ac_tool_warned in
8176 yes:)
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8179 ac_tool_warned=yes ;;
8180 esac
8181 LIPO=$ac_ct_LIPO
8182 fi
8183 else
8184 LIPO="$ac_cv_prog_LIPO"
8185 fi
8186
8187 if test -n "$ac_tool_prefix"; then
8188 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8189 set dummy ${ac_tool_prefix}otool; ac_word=$2
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8191 $as_echo_n "checking for $ac_word... " >&6; }
8192 if ${ac_cv_prog_OTOOL+:} false; then :
8193 $as_echo_n "(cached) " >&6
8194 else
8195 if test -n "$OTOOL"; then
8196 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8197 else
8198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199 for as_dir in $PATH
8200 do
8201 IFS=$as_save_IFS
8202 test -z "$as_dir" && as_dir=.
8203 for ac_exec_ext in '' $ac_executable_extensions; do
8204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8205 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8207 break 2
8208 fi
8209 done
8210 done
8211 IFS=$as_save_IFS
8212
8213 fi
8214 fi
8215 OTOOL=$ac_cv_prog_OTOOL
8216 if test -n "$OTOOL"; then
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8218 $as_echo "$OTOOL" >&6; }
8219 else
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 $as_echo "no" >&6; }
8222 fi
8223
8224
8225 fi
8226 if test -z "$ac_cv_prog_OTOOL"; then
8227 ac_ct_OTOOL=$OTOOL
8228 # Extract the first word of "otool", so it can be a program name with args.
8229 set dummy otool; ac_word=$2
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8231 $as_echo_n "checking for $ac_word... " >&6; }
8232 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8233 $as_echo_n "(cached) " >&6
8234 else
8235 if test -n "$ac_ct_OTOOL"; then
8236 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8237 else
8238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239 for as_dir in $PATH
8240 do
8241 IFS=$as_save_IFS
8242 test -z "$as_dir" && as_dir=.
8243 for ac_exec_ext in '' $ac_executable_extensions; do
8244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8245 ac_cv_prog_ac_ct_OTOOL="otool"
8246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8247 break 2
8248 fi
8249 done
8250 done
8251 IFS=$as_save_IFS
8252
8253 fi
8254 fi
8255 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8256 if test -n "$ac_ct_OTOOL"; then
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8258 $as_echo "$ac_ct_OTOOL" >&6; }
8259 else
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261 $as_echo "no" >&6; }
8262 fi
8263
8264 if test "x$ac_ct_OTOOL" = x; then
8265 OTOOL=":"
8266 else
8267 case $cross_compiling:$ac_tool_warned in
8268 yes:)
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8271 ac_tool_warned=yes ;;
8272 esac
8273 OTOOL=$ac_ct_OTOOL
8274 fi
8275 else
8276 OTOOL="$ac_cv_prog_OTOOL"
8277 fi
8278
8279 if test -n "$ac_tool_prefix"; then
8280 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8281 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283 $as_echo_n "checking for $ac_word... " >&6; }
8284 if ${ac_cv_prog_OTOOL64+:} false; then :
8285 $as_echo_n "(cached) " >&6
8286 else
8287 if test -n "$OTOOL64"; then
8288 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8289 else
8290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 for as_dir in $PATH
8292 do
8293 IFS=$as_save_IFS
8294 test -z "$as_dir" && as_dir=.
8295 for ac_exec_ext in '' $ac_executable_extensions; do
8296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8297 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8299 break 2
8300 fi
8301 done
8302 done
8303 IFS=$as_save_IFS
8304
8305 fi
8306 fi
8307 OTOOL64=$ac_cv_prog_OTOOL64
8308 if test -n "$OTOOL64"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8310 $as_echo "$OTOOL64" >&6; }
8311 else
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8314 fi
8315
8316
8317 fi
8318 if test -z "$ac_cv_prog_OTOOL64"; then
8319 ac_ct_OTOOL64=$OTOOL64
8320 # Extract the first word of "otool64", so it can be a program name with args.
8321 set dummy otool64; ac_word=$2
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8323 $as_echo_n "checking for $ac_word... " >&6; }
8324 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8325 $as_echo_n "(cached) " >&6
8326 else
8327 if test -n "$ac_ct_OTOOL64"; then
8328 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8329 else
8330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331 for as_dir in $PATH
8332 do
8333 IFS=$as_save_IFS
8334 test -z "$as_dir" && as_dir=.
8335 for ac_exec_ext in '' $ac_executable_extensions; do
8336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8337 ac_cv_prog_ac_ct_OTOOL64="otool64"
8338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8339 break 2
8340 fi
8341 done
8342 done
8343 IFS=$as_save_IFS
8344
8345 fi
8346 fi
8347 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8348 if test -n "$ac_ct_OTOOL64"; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8350 $as_echo "$ac_ct_OTOOL64" >&6; }
8351 else
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353 $as_echo "no" >&6; }
8354 fi
8355
8356 if test "x$ac_ct_OTOOL64" = x; then
8357 OTOOL64=":"
8358 else
8359 case $cross_compiling:$ac_tool_warned in
8360 yes:)
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8363 ac_tool_warned=yes ;;
8364 esac
8365 OTOOL64=$ac_ct_OTOOL64
8366 fi
8367 else
8368 OTOOL64="$ac_cv_prog_OTOOL64"
8369 fi
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8398 $as_echo_n "checking for -single_module linker flag... " >&6; }
8399 if ${lt_cv_apple_cc_single_mod+:} false; then :
8400 $as_echo_n "(cached) " >&6
8401 else
8402 lt_cv_apple_cc_single_mod=no
8403 if test -z "${LT_MULTI_MODULE}"; then
8404 # By default we will add the -single_module flag. You can override
8405 # by either setting the environment variable LT_MULTI_MODULE
8406 # non-empty at configure time, or by adding -multi_module to the
8407 # link flags.
8408 rm -rf libconftest.dylib*
8409 echo "int foo(void){return 1;}" > conftest.c
8410 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8411 -dynamiclib -Wl,-single_module conftest.c" >&5
8412 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8413 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8414 _lt_result=$?
8415 # If there is a non-empty error log, and "single_module"
8416 # appears in it, assume the flag caused a linker warning
8417 if test -s conftest.err && $GREP single_module conftest.err; then
8418 cat conftest.err >&5
8419 # Otherwise, if the output was created with a 0 exit code from
8420 # the compiler, it worked.
8421 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8422 lt_cv_apple_cc_single_mod=yes
8423 else
8424 cat conftest.err >&5
8425 fi
8426 rm -rf libconftest.dylib*
8427 rm -f conftest.*
8428 fi
8429 fi
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8431 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8432
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8434 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8435 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8436 $as_echo_n "(cached) " >&6
8437 else
8438 lt_cv_ld_exported_symbols_list=no
8439 save_LDFLAGS=$LDFLAGS
8440 echo "_main" > conftest.sym
8441 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8444
8445 int
8446 main ()
8447 {
8448
8449 ;
8450 return 0;
8451 }
8452 _ACEOF
8453 if ac_fn_c_try_link "$LINENO"; then :
8454 lt_cv_ld_exported_symbols_list=yes
8455 else
8456 lt_cv_ld_exported_symbols_list=no
8457 fi
8458 rm -f core conftest.err conftest.$ac_objext \
8459 conftest$ac_exeext conftest.$ac_ext
8460 LDFLAGS="$save_LDFLAGS"
8461
8462 fi
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8464 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8465
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8467 $as_echo_n "checking for -force_load linker flag... " >&6; }
8468 if ${lt_cv_ld_force_load+:} false; then :
8469 $as_echo_n "(cached) " >&6
8470 else
8471 lt_cv_ld_force_load=no
8472 cat > conftest.c << _LT_EOF
8473 int forced_loaded() { return 2;}
8474 _LT_EOF
8475 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8476 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8477 echo "$AR cru libconftest.a conftest.o" >&5
8478 $AR cru libconftest.a conftest.o 2>&5
8479 echo "$RANLIB libconftest.a" >&5
8480 $RANLIB libconftest.a 2>&5
8481 cat > conftest.c << _LT_EOF
8482 int main() { return 0;}
8483 _LT_EOF
8484 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8485 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8486 _lt_result=$?
8487 if test -s conftest.err && $GREP force_load conftest.err; then
8488 cat conftest.err >&5
8489 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8490 lt_cv_ld_force_load=yes
8491 else
8492 cat conftest.err >&5
8493 fi
8494 rm -f conftest.err libconftest.a conftest conftest.c
8495 rm -rf conftest.dSYM
8496
8497 fi
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8499 $as_echo "$lt_cv_ld_force_load" >&6; }
8500 case $host_os in
8501 rhapsody* | darwin1.[012])
8502 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8503 darwin1.*)
8504 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8505 darwin*) # darwin 5.x on
8506 # if running on 10.5 or later, the deployment target defaults
8507 # to the OS version, if on x86, and 10.4, the deployment
8508 # target defaults to 10.4. Don't you love it?
8509 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8510 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8511 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8512 10.[012]*)
8513 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8514 10.*)
8515 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8516 esac
8517 ;;
8518 esac
8519 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8520 _lt_dar_single_mod='$single_module'
8521 fi
8522 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8523 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8524 else
8525 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8526 fi
8527 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8528 _lt_dsymutil='~$DSYMUTIL $lib || :'
8529 else
8530 _lt_dsymutil=
8531 fi
8532 ;;
8533 esac
8534
8535 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8536 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8537 inttypes.h stdint.h unistd.h
8538 do :
8539 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8540 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8541 "
8542 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8543 cat >>confdefs.h <<_ACEOF
8544 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8545 _ACEOF
8546
8547 fi
8548
8549 done
8550
8551
8552 for ac_header in dlfcn.h
8553 do :
8554 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8555 "
8556 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8557 cat >>confdefs.h <<_ACEOF
8558 @%:@define HAVE_DLFCN_H 1
8559 _ACEOF
8560
8561 fi
8562
8563 done
8564
8565
8566
8567
8568
8569 # Set options
8570
8571
8572
8573 enable_dlopen=no
8574
8575
8576 enable_win32_dll=no
8577
8578
8579 @%:@ Check whether --enable-shared was given.
8580 if test "${enable_shared+set}" = set; then :
8581 enableval=$enable_shared; p=${PACKAGE-default}
8582 case $enableval in
8583 yes) enable_shared=yes ;;
8584 no) enable_shared=no ;;
8585 *)
8586 enable_shared=no
8587 # Look at the argument we got. We use all the common list separators.
8588 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8589 for pkg in $enableval; do
8590 IFS="$lt_save_ifs"
8591 if test "X$pkg" = "X$p"; then
8592 enable_shared=yes
8593 fi
8594 done
8595 IFS="$lt_save_ifs"
8596 ;;
8597 esac
8598 else
8599 enable_shared=yes
8600 fi
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610 @%:@ Check whether --enable-static was given.
8611 if test "${enable_static+set}" = set; then :
8612 enableval=$enable_static; p=${PACKAGE-default}
8613 case $enableval in
8614 yes) enable_static=yes ;;
8615 no) enable_static=no ;;
8616 *)
8617 enable_static=no
8618 # Look at the argument we got. We use all the common list separators.
8619 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8620 for pkg in $enableval; do
8621 IFS="$lt_save_ifs"
8622 if test "X$pkg" = "X$p"; then
8623 enable_static=yes
8624 fi
8625 done
8626 IFS="$lt_save_ifs"
8627 ;;
8628 esac
8629 else
8630 enable_static=yes
8631 fi
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642 @%:@ Check whether --with-pic was given.
8643 if test "${with_pic+set}" = set; then :
8644 withval=$with_pic; lt_p=${PACKAGE-default}
8645 case $withval in
8646 yes|no) pic_mode=$withval ;;
8647 *)
8648 pic_mode=default
8649 # Look at the argument we got. We use all the common list separators.
8650 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8651 for lt_pkg in $withval; do
8652 IFS="$lt_save_ifs"
8653 if test "X$lt_pkg" = "X$lt_p"; then
8654 pic_mode=yes
8655 fi
8656 done
8657 IFS="$lt_save_ifs"
8658 ;;
8659 esac
8660 else
8661 pic_mode=default
8662 fi
8663
8664
8665 test -z "$pic_mode" && pic_mode=default
8666
8667
8668
8669
8670
8671
8672
8673 @%:@ Check whether --enable-fast-install was given.
8674 if test "${enable_fast_install+set}" = set; then :
8675 enableval=$enable_fast_install; p=${PACKAGE-default}
8676 case $enableval in
8677 yes) enable_fast_install=yes ;;
8678 no) enable_fast_install=no ;;
8679 *)
8680 enable_fast_install=no
8681 # Look at the argument we got. We use all the common list separators.
8682 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8683 for pkg in $enableval; do
8684 IFS="$lt_save_ifs"
8685 if test "X$pkg" = "X$p"; then
8686 enable_fast_install=yes
8687 fi
8688 done
8689 IFS="$lt_save_ifs"
8690 ;;
8691 esac
8692 else
8693 enable_fast_install=yes
8694 fi
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706 # This can be used to rebuild libtool when needed
8707 LIBTOOL_DEPS="$ltmain"
8708
8709 # Always use our own libtool.
8710 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741 test -z "$LN_S" && LN_S="ln -s"
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756 if test -n "${ZSH_VERSION+set}" ; then
8757 setopt NO_GLOB_SUBST
8758 fi
8759
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8761 $as_echo_n "checking for objdir... " >&6; }
8762 if ${lt_cv_objdir+:} false; then :
8763 $as_echo_n "(cached) " >&6
8764 else
8765 rm -f .libs 2>/dev/null
8766 mkdir .libs 2>/dev/null
8767 if test -d .libs; then
8768 lt_cv_objdir=.libs
8769 else
8770 # MS-DOS does not allow filenames that begin with a dot.
8771 lt_cv_objdir=_libs
8772 fi
8773 rmdir .libs 2>/dev/null
8774 fi
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8776 $as_echo "$lt_cv_objdir" >&6; }
8777 objdir=$lt_cv_objdir
8778
8779
8780
8781
8782
8783 cat >>confdefs.h <<_ACEOF
8784 @%:@define LT_OBJDIR "$lt_cv_objdir/"
8785 _ACEOF
8786
8787
8788
8789
8790 case $host_os in
8791 aix3*)
8792 # AIX sometimes has problems with the GCC collect2 program. For some
8793 # reason, if we set the COLLECT_NAMES environment variable, the problems
8794 # vanish in a puff of smoke.
8795 if test "X${COLLECT_NAMES+set}" != Xset; then
8796 COLLECT_NAMES=
8797 export COLLECT_NAMES
8798 fi
8799 ;;
8800 esac
8801
8802 # Global variables:
8803 ofile=libtool
8804 can_build_shared=yes
8805
8806 # All known linkers require a `.a' archive for static linking (except MSVC,
8807 # which needs '.lib').
8808 libext=a
8809
8810 with_gnu_ld="$lt_cv_prog_gnu_ld"
8811
8812 old_CC="$CC"
8813 old_CFLAGS="$CFLAGS"
8814
8815 # Set sane defaults for various variables
8816 test -z "$CC" && CC=cc
8817 test -z "$LTCC" && LTCC=$CC
8818 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8819 test -z "$LD" && LD=ld
8820 test -z "$ac_objext" && ac_objext=o
8821
8822 for cc_temp in $compiler""; do
8823 case $cc_temp in
8824 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8825 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8826 \-*) ;;
8827 *) break;;
8828 esac
8829 done
8830 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8831
8832
8833 # Only perform the check for file, if the check method requires it
8834 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8835 case $deplibs_check_method in
8836 file_magic*)
8837 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8839 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8840 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8841 $as_echo_n "(cached) " >&6
8842 else
8843 case $MAGIC_CMD in
8844 [\\/*] | ?:[\\/]*)
8845 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8846 ;;
8847 *)
8848 lt_save_MAGIC_CMD="$MAGIC_CMD"
8849 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8850 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8851 for ac_dir in $ac_dummy; do
8852 IFS="$lt_save_ifs"
8853 test -z "$ac_dir" && ac_dir=.
8854 if test -f $ac_dir/${ac_tool_prefix}file; then
8855 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8856 if test -n "$file_magic_test_file"; then
8857 case $deplibs_check_method in
8858 "file_magic "*)
8859 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8860 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8861 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8862 $EGREP "$file_magic_regex" > /dev/null; then
8863 :
8864 else
8865 cat <<_LT_EOF 1>&2
8866
8867 *** Warning: the command libtool uses to detect shared libraries,
8868 *** $file_magic_cmd, produces output that libtool cannot recognize.
8869 *** The result is that libtool may fail to recognize shared libraries
8870 *** as such. This will affect the creation of libtool libraries that
8871 *** depend on shared libraries, but programs linked with such libtool
8872 *** libraries will work regardless of this problem. Nevertheless, you
8873 *** may want to report the problem to your system manager and/or to
8874 *** bug-libtool@gnu.org
8875
8876 _LT_EOF
8877 fi ;;
8878 esac
8879 fi
8880 break
8881 fi
8882 done
8883 IFS="$lt_save_ifs"
8884 MAGIC_CMD="$lt_save_MAGIC_CMD"
8885 ;;
8886 esac
8887 fi
8888
8889 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8890 if test -n "$MAGIC_CMD"; then
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8892 $as_echo "$MAGIC_CMD" >&6; }
8893 else
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895 $as_echo "no" >&6; }
8896 fi
8897
8898
8899
8900
8901
8902 if test -z "$lt_cv_path_MAGIC_CMD"; then
8903 if test -n "$ac_tool_prefix"; then
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8905 $as_echo_n "checking for file... " >&6; }
8906 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8907 $as_echo_n "(cached) " >&6
8908 else
8909 case $MAGIC_CMD in
8910 [\\/*] | ?:[\\/]*)
8911 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8912 ;;
8913 *)
8914 lt_save_MAGIC_CMD="$MAGIC_CMD"
8915 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8916 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8917 for ac_dir in $ac_dummy; do
8918 IFS="$lt_save_ifs"
8919 test -z "$ac_dir" && ac_dir=.
8920 if test -f $ac_dir/file; then
8921 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8922 if test -n "$file_magic_test_file"; then
8923 case $deplibs_check_method in
8924 "file_magic "*)
8925 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8926 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8927 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8928 $EGREP "$file_magic_regex" > /dev/null; then
8929 :
8930 else
8931 cat <<_LT_EOF 1>&2
8932
8933 *** Warning: the command libtool uses to detect shared libraries,
8934 *** $file_magic_cmd, produces output that libtool cannot recognize.
8935 *** The result is that libtool may fail to recognize shared libraries
8936 *** as such. This will affect the creation of libtool libraries that
8937 *** depend on shared libraries, but programs linked with such libtool
8938 *** libraries will work regardless of this problem. Nevertheless, you
8939 *** may want to report the problem to your system manager and/or to
8940 *** bug-libtool@gnu.org
8941
8942 _LT_EOF
8943 fi ;;
8944 esac
8945 fi
8946 break
8947 fi
8948 done
8949 IFS="$lt_save_ifs"
8950 MAGIC_CMD="$lt_save_MAGIC_CMD"
8951 ;;
8952 esac
8953 fi
8954
8955 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8956 if test -n "$MAGIC_CMD"; then
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8958 $as_echo "$MAGIC_CMD" >&6; }
8959 else
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8961 $as_echo "no" >&6; }
8962 fi
8963
8964
8965 else
8966 MAGIC_CMD=:
8967 fi
8968 fi
8969
8970 fi
8971 ;;
8972 esac
8973
8974 # Use C for the default configuration in the libtool script
8975
8976 lt_save_CC="$CC"
8977 ac_ext=c
8978 ac_cpp='$CPP $CPPFLAGS'
8979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8982
8983
8984 # Source file extension for C test sources.
8985 ac_ext=c
8986
8987 # Object file extension for compiled C test sources.
8988 objext=o
8989 objext=$objext
8990
8991 # Code to be used in simple compile tests
8992 lt_simple_compile_test_code="int some_variable = 0;"
8993
8994 # Code to be used in simple link tests
8995 lt_simple_link_test_code='int main(){return(0);}'
8996
8997
8998
8999
9000
9001
9002
9003 # If no C compiler was specified, use CC.
9004 LTCC=${LTCC-"$CC"}
9005
9006 # If no C compiler flags were specified, use CFLAGS.
9007 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9008
9009 # Allow CC to be a program name with arguments.
9010 compiler=$CC
9011
9012 # Save the default compiler, since it gets overwritten when the other
9013 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9014 compiler_DEFAULT=$CC
9015
9016 # save warnings/boilerplate of simple test code
9017 ac_outfile=conftest.$ac_objext
9018 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9019 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9020 _lt_compiler_boilerplate=`cat conftest.err`
9021 $RM conftest*
9022
9023 ac_outfile=conftest.$ac_objext
9024 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9025 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9026 _lt_linker_boilerplate=`cat conftest.err`
9027 $RM -r conftest*
9028
9029
9030 if test -n "$compiler"; then
9031
9032 lt_prog_compiler_no_builtin_flag=
9033
9034 if test "$GCC" = yes; then
9035 case $cc_basename in
9036 nvcc*)
9037 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9038 *)
9039 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9040 esac
9041
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9043 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9044 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9045 $as_echo_n "(cached) " >&6
9046 else
9047 lt_cv_prog_compiler_rtti_exceptions=no
9048 ac_outfile=conftest.$ac_objext
9049 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9050 lt_compiler_flag="-fno-rtti -fno-exceptions"
9051 # Insert the option either (1) after the last *FLAGS variable, or
9052 # (2) before a word containing "conftest.", or (3) at the end.
9053 # Note that $ac_compile itself does not contain backslashes and begins
9054 # with a dollar sign (not a hyphen), so the echo should work correctly.
9055 # The option is referenced via a variable to avoid confusing sed.
9056 lt_compile=`echo "$ac_compile" | $SED \
9057 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9058 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9059 -e 's:$: $lt_compiler_flag:'`
9060 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9061 (eval "$lt_compile" 2>conftest.err)
9062 ac_status=$?
9063 cat conftest.err >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 if (exit $ac_status) && test -s "$ac_outfile"; then
9066 # The compiler can only warn and ignore the option if not recognized
9067 # So say no if there are warnings other than the usual output.
9068 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9069 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9070 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9071 lt_cv_prog_compiler_rtti_exceptions=yes
9072 fi
9073 fi
9074 $RM conftest*
9075
9076 fi
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9078 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9079
9080 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9081 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9082 else
9083 :
9084 fi
9085
9086 fi
9087
9088
9089
9090
9091
9092
9093 lt_prog_compiler_wl=
9094 lt_prog_compiler_pic=
9095 lt_prog_compiler_static=
9096
9097
9098 if test "$GCC" = yes; then
9099 lt_prog_compiler_wl='-Wl,'
9100 lt_prog_compiler_static='-static'
9101
9102 case $host_os in
9103 aix*)
9104 # All AIX code is PIC.
9105 if test "$host_cpu" = ia64; then
9106 # AIX 5 now supports IA64 processor
9107 lt_prog_compiler_static='-Bstatic'
9108 fi
9109 ;;
9110
9111 amigaos*)
9112 case $host_cpu in
9113 powerpc)
9114 # see comment about AmigaOS4 .so support
9115 lt_prog_compiler_pic='-fPIC'
9116 ;;
9117 m68k)
9118 # FIXME: we need at least 68020 code to build shared libraries, but
9119 # adding the `-m68020' flag to GCC prevents building anything better,
9120 # like `-m68040'.
9121 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9122 ;;
9123 esac
9124 ;;
9125
9126 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9127 # PIC is the default for these OSes.
9128 ;;
9129
9130 mingw* | cygwin* | pw32* | os2* | cegcc*)
9131 # This hack is so that the source file can tell whether it is being
9132 # built for inclusion in a dll (and should export symbols for example).
9133 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9134 # (--disable-auto-import) libraries
9135 lt_prog_compiler_pic='-DDLL_EXPORT'
9136 ;;
9137
9138 darwin* | rhapsody*)
9139 # PIC is the default on this platform
9140 # Common symbols not allowed in MH_DYLIB files
9141 lt_prog_compiler_pic='-fno-common'
9142 ;;
9143
9144 haiku*)
9145 # PIC is the default for Haiku.
9146 # The "-static" flag exists, but is broken.
9147 lt_prog_compiler_static=
9148 ;;
9149
9150 hpux*)
9151 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9152 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9153 # sets the default TLS model and affects inlining.
9154 case $host_cpu in
9155 hppa*64*)
9156 # +Z the default
9157 ;;
9158 *)
9159 lt_prog_compiler_pic='-fPIC'
9160 ;;
9161 esac
9162 ;;
9163
9164 interix[3-9]*)
9165 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9166 # Instead, we relocate shared libraries at runtime.
9167 ;;
9168
9169 msdosdjgpp*)
9170 # Just because we use GCC doesn't mean we suddenly get shared libraries
9171 # on systems that don't support them.
9172 lt_prog_compiler_can_build_shared=no
9173 enable_shared=no
9174 ;;
9175
9176 *nto* | *qnx*)
9177 # QNX uses GNU C++, but need to define -shared option too, otherwise
9178 # it will coredump.
9179 lt_prog_compiler_pic='-fPIC -shared'
9180 ;;
9181
9182 sysv4*MP*)
9183 if test -d /usr/nec; then
9184 lt_prog_compiler_pic=-Kconform_pic
9185 fi
9186 ;;
9187
9188 *)
9189 lt_prog_compiler_pic='-fPIC'
9190 ;;
9191 esac
9192
9193 case $cc_basename in
9194 nvcc*) # Cuda Compiler Driver 2.2
9195 lt_prog_compiler_wl='-Xlinker '
9196 if test -n "$lt_prog_compiler_pic"; then
9197 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9198 fi
9199 ;;
9200 esac
9201 else
9202 # PORTME Check for flag to pass linker flags through the system compiler.
9203 case $host_os in
9204 aix*)
9205 lt_prog_compiler_wl='-Wl,'
9206 if test "$host_cpu" = ia64; then
9207 # AIX 5 now supports IA64 processor
9208 lt_prog_compiler_static='-Bstatic'
9209 else
9210 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9211 fi
9212 ;;
9213
9214 mingw* | cygwin* | pw32* | os2* | cegcc*)
9215 # This hack is so that the source file can tell whether it is being
9216 # built for inclusion in a dll (and should export symbols for example).
9217 lt_prog_compiler_pic='-DDLL_EXPORT'
9218 ;;
9219
9220 hpux9* | hpux10* | hpux11*)
9221 lt_prog_compiler_wl='-Wl,'
9222 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9223 # not for PA HP-UX.
9224 case $host_cpu in
9225 hppa*64*|ia64*)
9226 # +Z the default
9227 ;;
9228 *)
9229 lt_prog_compiler_pic='+Z'
9230 ;;
9231 esac
9232 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9233 lt_prog_compiler_static='${wl}-a ${wl}archive'
9234 ;;
9235
9236 irix5* | irix6* | nonstopux*)
9237 lt_prog_compiler_wl='-Wl,'
9238 # PIC (with -KPIC) is the default.
9239 lt_prog_compiler_static='-non_shared'
9240 ;;
9241
9242 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9243 case $cc_basename in
9244 # old Intel for x86_64 which still supported -KPIC.
9245 ecc*)
9246 lt_prog_compiler_wl='-Wl,'
9247 lt_prog_compiler_pic='-KPIC'
9248 lt_prog_compiler_static='-static'
9249 ;;
9250 # icc used to be incompatible with GCC.
9251 # ICC 10 doesn't accept -KPIC any more.
9252 icc* | ifort*)
9253 lt_prog_compiler_wl='-Wl,'
9254 lt_prog_compiler_pic='-fPIC'
9255 lt_prog_compiler_static='-static'
9256 ;;
9257 # Lahey Fortran 8.1.
9258 lf95*)
9259 lt_prog_compiler_wl='-Wl,'
9260 lt_prog_compiler_pic='--shared'
9261 lt_prog_compiler_static='--static'
9262 ;;
9263 nagfor*)
9264 # NAG Fortran compiler
9265 lt_prog_compiler_wl='-Wl,-Wl,,'
9266 lt_prog_compiler_pic='-PIC'
9267 lt_prog_compiler_static='-Bstatic'
9268 ;;
9269 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9270 # Portland Group compilers (*not* the Pentium gcc compiler,
9271 # which looks to be a dead project)
9272 lt_prog_compiler_wl='-Wl,'
9273 lt_prog_compiler_pic='-fpic'
9274 lt_prog_compiler_static='-Bstatic'
9275 ;;
9276 ccc*)
9277 lt_prog_compiler_wl='-Wl,'
9278 # All Alpha code is PIC.
9279 lt_prog_compiler_static='-non_shared'
9280 ;;
9281 xl* | bgxl* | bgf* | mpixl*)
9282 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9283 lt_prog_compiler_wl='-Wl,'
9284 lt_prog_compiler_pic='-qpic'
9285 lt_prog_compiler_static='-qstaticlink'
9286 ;;
9287 *)
9288 case `$CC -V 2>&1 | sed 5q` in
9289 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9290 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9291 lt_prog_compiler_pic='-KPIC'
9292 lt_prog_compiler_static='-Bstatic'
9293 lt_prog_compiler_wl=''
9294 ;;
9295 *Sun\ F* | *Sun*Fortran*)
9296 lt_prog_compiler_pic='-KPIC'
9297 lt_prog_compiler_static='-Bstatic'
9298 lt_prog_compiler_wl='-Qoption ld '
9299 ;;
9300 *Sun\ C*)
9301 # Sun C 5.9
9302 lt_prog_compiler_pic='-KPIC'
9303 lt_prog_compiler_static='-Bstatic'
9304 lt_prog_compiler_wl='-Wl,'
9305 ;;
9306 *Intel*\ [CF]*Compiler*)
9307 lt_prog_compiler_wl='-Wl,'
9308 lt_prog_compiler_pic='-fPIC'
9309 lt_prog_compiler_static='-static'
9310 ;;
9311 *Portland\ Group*)
9312 lt_prog_compiler_wl='-Wl,'
9313 lt_prog_compiler_pic='-fpic'
9314 lt_prog_compiler_static='-Bstatic'
9315 ;;
9316 esac
9317 ;;
9318 esac
9319 ;;
9320
9321 newsos6)
9322 lt_prog_compiler_pic='-KPIC'
9323 lt_prog_compiler_static='-Bstatic'
9324 ;;
9325
9326 *nto* | *qnx*)
9327 # QNX uses GNU C++, but need to define -shared option too, otherwise
9328 # it will coredump.
9329 lt_prog_compiler_pic='-fPIC -shared'
9330 ;;
9331
9332 osf3* | osf4* | osf5*)
9333 lt_prog_compiler_wl='-Wl,'
9334 # All OSF/1 code is PIC.
9335 lt_prog_compiler_static='-non_shared'
9336 ;;
9337
9338 rdos*)
9339 lt_prog_compiler_static='-non_shared'
9340 ;;
9341
9342 solaris*)
9343 lt_prog_compiler_pic='-KPIC'
9344 lt_prog_compiler_static='-Bstatic'
9345 case $cc_basename in
9346 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9347 lt_prog_compiler_wl='-Qoption ld ';;
9348 *)
9349 lt_prog_compiler_wl='-Wl,';;
9350 esac
9351 ;;
9352
9353 sunos4*)
9354 lt_prog_compiler_wl='-Qoption ld '
9355 lt_prog_compiler_pic='-PIC'
9356 lt_prog_compiler_static='-Bstatic'
9357 ;;
9358
9359 sysv4 | sysv4.2uw2* | sysv4.3*)
9360 lt_prog_compiler_wl='-Wl,'
9361 lt_prog_compiler_pic='-KPIC'
9362 lt_prog_compiler_static='-Bstatic'
9363 ;;
9364
9365 sysv4*MP*)
9366 if test -d /usr/nec ;then
9367 lt_prog_compiler_pic='-Kconform_pic'
9368 lt_prog_compiler_static='-Bstatic'
9369 fi
9370 ;;
9371
9372 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9373 lt_prog_compiler_wl='-Wl,'
9374 lt_prog_compiler_pic='-KPIC'
9375 lt_prog_compiler_static='-Bstatic'
9376 ;;
9377
9378 unicos*)
9379 lt_prog_compiler_wl='-Wl,'
9380 lt_prog_compiler_can_build_shared=no
9381 ;;
9382
9383 uts4*)
9384 lt_prog_compiler_pic='-pic'
9385 lt_prog_compiler_static='-Bstatic'
9386 ;;
9387
9388 *)
9389 lt_prog_compiler_can_build_shared=no
9390 ;;
9391 esac
9392 fi
9393
9394 case $host_os in
9395 # For platforms which do not support PIC, -DPIC is meaningless:
9396 *djgpp*)
9397 lt_prog_compiler_pic=
9398 ;;
9399 *)
9400 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
9401 ;;
9402 esac
9403
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9405 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9406 if ${lt_cv_prog_compiler_pic+:} false; then :
9407 $as_echo_n "(cached) " >&6
9408 else
9409 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9410 fi
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9412 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9413 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9414
9415 #
9416 # Check to make sure the PIC flag actually works.
9417 #
9418 if test -n "$lt_prog_compiler_pic"; then
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9420 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9421 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9422 $as_echo_n "(cached) " >&6
9423 else
9424 lt_cv_prog_compiler_pic_works=no
9425 ac_outfile=conftest.$ac_objext
9426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9427 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
9428 # Insert the option either (1) after the last *FLAGS variable, or
9429 # (2) before a word containing "conftest.", or (3) at the end.
9430 # Note that $ac_compile itself does not contain backslashes and begins
9431 # with a dollar sign (not a hyphen), so the echo should work correctly.
9432 # The option is referenced via a variable to avoid confusing sed.
9433 lt_compile=`echo "$ac_compile" | $SED \
9434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9436 -e 's:$: $lt_compiler_flag:'`
9437 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9438 (eval "$lt_compile" 2>conftest.err)
9439 ac_status=$?
9440 cat conftest.err >&5
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 if (exit $ac_status) && test -s "$ac_outfile"; then
9443 # The compiler can only warn and ignore the option if not recognized
9444 # So say no if there are warnings other than the usual output.
9445 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9446 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9447 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9448 lt_cv_prog_compiler_pic_works=yes
9449 fi
9450 fi
9451 $RM conftest*
9452
9453 fi
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9455 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9456
9457 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9458 case $lt_prog_compiler_pic in
9459 "" | " "*) ;;
9460 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9461 esac
9462 else
9463 lt_prog_compiler_pic=
9464 lt_prog_compiler_can_build_shared=no
9465 fi
9466
9467 fi
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479 #
9480 # Check to make sure the static flag actually works.
9481 #
9482 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9484 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9485 if ${lt_cv_prog_compiler_static_works+:} false; then :
9486 $as_echo_n "(cached) " >&6
9487 else
9488 lt_cv_prog_compiler_static_works=no
9489 save_LDFLAGS="$LDFLAGS"
9490 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9491 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9492 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9493 # The linker can only warn and ignore the option if not recognized
9494 # So say no if there are warnings
9495 if test -s conftest.err; then
9496 # Append any errors to the config.log.
9497 cat conftest.err 1>&5
9498 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9500 if diff conftest.exp conftest.er2 >/dev/null; then
9501 lt_cv_prog_compiler_static_works=yes
9502 fi
9503 else
9504 lt_cv_prog_compiler_static_works=yes
9505 fi
9506 fi
9507 $RM -r conftest*
9508 LDFLAGS="$save_LDFLAGS"
9509
9510 fi
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9512 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9513
9514 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9515 :
9516 else
9517 lt_prog_compiler_static=
9518 fi
9519
9520
9521
9522
9523
9524
9525
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9527 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9528 if ${lt_cv_prog_compiler_c_o+:} false; then :
9529 $as_echo_n "(cached) " >&6
9530 else
9531 lt_cv_prog_compiler_c_o=no
9532 $RM -r conftest 2>/dev/null
9533 mkdir conftest
9534 cd conftest
9535 mkdir out
9536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9537
9538 lt_compiler_flag="-o out/conftest2.$ac_objext"
9539 # Insert the option either (1) after the last *FLAGS variable, or
9540 # (2) before a word containing "conftest.", or (3) at the end.
9541 # Note that $ac_compile itself does not contain backslashes and begins
9542 # with a dollar sign (not a hyphen), so the echo should work correctly.
9543 lt_compile=`echo "$ac_compile" | $SED \
9544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9546 -e 's:$: $lt_compiler_flag:'`
9547 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9548 (eval "$lt_compile" 2>out/conftest.err)
9549 ac_status=$?
9550 cat out/conftest.err >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9553 then
9554 # The compiler can only warn and ignore the option if not recognized
9555 # So say no if there are warnings
9556 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9557 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9558 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9559 lt_cv_prog_compiler_c_o=yes
9560 fi
9561 fi
9562 chmod u+w . 2>&5
9563 $RM conftest*
9564 # SGI C++ compiler will create directory out/ii_files/ for
9565 # template instantiation
9566 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9567 $RM out/* && rmdir out
9568 cd ..
9569 $RM -r conftest
9570 $RM conftest*
9571
9572 fi
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9574 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9575
9576
9577
9578
9579
9580
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9582 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9583 if ${lt_cv_prog_compiler_c_o+:} false; then :
9584 $as_echo_n "(cached) " >&6
9585 else
9586 lt_cv_prog_compiler_c_o=no
9587 $RM -r conftest 2>/dev/null
9588 mkdir conftest
9589 cd conftest
9590 mkdir out
9591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9592
9593 lt_compiler_flag="-o out/conftest2.$ac_objext"
9594 # Insert the option either (1) after the last *FLAGS variable, or
9595 # (2) before a word containing "conftest.", or (3) at the end.
9596 # Note that $ac_compile itself does not contain backslashes and begins
9597 # with a dollar sign (not a hyphen), so the echo should work correctly.
9598 lt_compile=`echo "$ac_compile" | $SED \
9599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9601 -e 's:$: $lt_compiler_flag:'`
9602 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9603 (eval "$lt_compile" 2>out/conftest.err)
9604 ac_status=$?
9605 cat out/conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9608 then
9609 # The compiler can only warn and ignore the option if not recognized
9610 # So say no if there are warnings
9611 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9612 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9613 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9614 lt_cv_prog_compiler_c_o=yes
9615 fi
9616 fi
9617 chmod u+w . 2>&5
9618 $RM conftest*
9619 # SGI C++ compiler will create directory out/ii_files/ for
9620 # template instantiation
9621 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9622 $RM out/* && rmdir out
9623 cd ..
9624 $RM -r conftest
9625 $RM conftest*
9626
9627 fi
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9629 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9630
9631
9632
9633
9634 hard_links="nottested"
9635 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9636 # do not overwrite the value of need_locks provided by the user
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9638 $as_echo_n "checking if we can lock with hard links... " >&6; }
9639 hard_links=yes
9640 $RM conftest*
9641 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9642 touch conftest.a
9643 ln conftest.a conftest.b 2>&5 || hard_links=no
9644 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9646 $as_echo "$hard_links" >&6; }
9647 if test "$hard_links" = no; then
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9649 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9650 need_locks=warn
9651 fi
9652 else
9653 need_locks=no
9654 fi
9655
9656
9657
9658
9659
9660
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9662 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9663
9664 runpath_var=
9665 allow_undefined_flag=
9666 always_export_symbols=no
9667 archive_cmds=
9668 archive_expsym_cmds=
9669 compiler_needs_object=no
9670 enable_shared_with_static_runtimes=no
9671 export_dynamic_flag_spec=
9672 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9673 hardcode_automatic=no
9674 hardcode_direct=no
9675 hardcode_direct_absolute=no
9676 hardcode_libdir_flag_spec=
9677 hardcode_libdir_separator=
9678 hardcode_minus_L=no
9679 hardcode_shlibpath_var=unsupported
9680 inherit_rpath=no
9681 link_all_deplibs=unknown
9682 module_cmds=
9683 module_expsym_cmds=
9684 old_archive_from_new_cmds=
9685 old_archive_from_expsyms_cmds=
9686 thread_safe_flag_spec=
9687 whole_archive_flag_spec=
9688 # include_expsyms should be a list of space-separated symbols to be *always*
9689 # included in the symbol list
9690 include_expsyms=
9691 # exclude_expsyms can be an extended regexp of symbols to exclude
9692 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9693 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9694 # as well as any symbol that contains `d'.
9695 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9696 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9697 # platforms (ab)use it in PIC code, but their linkers get confused if
9698 # the symbol is explicitly referenced. Since portable code cannot
9699 # rely on this symbol name, it's probably fine to never include it in
9700 # preloaded symbol tables.
9701 # Exclude shared library initialization/finalization symbols.
9702 extract_expsyms_cmds=
9703
9704 case $host_os in
9705 cygwin* | mingw* | pw32* | cegcc*)
9706 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9707 # When not using gcc, we currently assume that we are using
9708 # Microsoft Visual C++.
9709 if test "$GCC" != yes; then
9710 with_gnu_ld=no
9711 fi
9712 ;;
9713 interix*)
9714 # we just hope/assume this is gcc and not c89 (= MSVC++)
9715 with_gnu_ld=yes
9716 ;;
9717 openbsd*)
9718 with_gnu_ld=no
9719 ;;
9720 linux* | k*bsd*-gnu | gnu*)
9721 link_all_deplibs=no
9722 ;;
9723 esac
9724
9725 ld_shlibs=yes
9726
9727 # On some targets, GNU ld is compatible enough with the native linker
9728 # that we're better off using the native interface for both.
9729 lt_use_gnu_ld_interface=no
9730 if test "$with_gnu_ld" = yes; then
9731 case $host_os in
9732 aix*)
9733 # The AIX port of GNU ld has always aspired to compatibility
9734 # with the native linker. However, as the warning in the GNU ld
9735 # block says, versions before 2.19.5* couldn't really create working
9736 # shared libraries, regardless of the interface used.
9737 case `$LD -v 2>&1` in
9738 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9739 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9740 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9741 *)
9742 lt_use_gnu_ld_interface=yes
9743 ;;
9744 esac
9745 ;;
9746 *)
9747 lt_use_gnu_ld_interface=yes
9748 ;;
9749 esac
9750 fi
9751
9752 if test "$lt_use_gnu_ld_interface" = yes; then
9753 # If archive_cmds runs LD, not CC, wlarc should be empty
9754 wlarc='${wl}'
9755
9756 # Set some defaults for GNU ld with shared library support. These
9757 # are reset later if shared libraries are not supported. Putting them
9758 # here allows them to be overridden if necessary.
9759 runpath_var=LD_RUN_PATH
9760 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9761 export_dynamic_flag_spec='${wl}--export-dynamic'
9762 # ancient GNU ld didn't support --whole-archive et. al.
9763 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9764 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9765 else
9766 whole_archive_flag_spec=
9767 fi
9768 supports_anon_versioning=no
9769 case `$LD -v 2>&1` in
9770 *GNU\ gold*) supports_anon_versioning=yes ;;
9771 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9772 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9773 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9774 *\ 2.11.*) ;; # other 2.11 versions
9775 *) supports_anon_versioning=yes ;;
9776 esac
9777
9778 # See if GNU ld supports shared libraries.
9779 case $host_os in
9780 aix[3-9]*)
9781 # On AIX/PPC, the GNU linker is very broken
9782 if test "$host_cpu" != ia64; then
9783 ld_shlibs=no
9784 cat <<_LT_EOF 1>&2
9785
9786 *** Warning: the GNU linker, at least up to release 2.19, is reported
9787 *** to be unable to reliably create shared libraries on AIX.
9788 *** Therefore, libtool is disabling shared libraries support. If you
9789 *** really care for shared libraries, you may want to install binutils
9790 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9791 *** You will then need to restart the configuration process.
9792
9793 _LT_EOF
9794 fi
9795 ;;
9796
9797 amigaos*)
9798 case $host_cpu in
9799 powerpc)
9800 # see comment about AmigaOS4 .so support
9801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9802 archive_expsym_cmds=''
9803 ;;
9804 m68k)
9805 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)'
9806 hardcode_libdir_flag_spec='-L$libdir'
9807 hardcode_minus_L=yes
9808 ;;
9809 esac
9810 ;;
9811
9812 beos*)
9813 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9814 allow_undefined_flag=unsupported
9815 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9816 # support --undefined. This deserves some investigation. FIXME
9817 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9818 else
9819 ld_shlibs=no
9820 fi
9821 ;;
9822
9823 cygwin* | mingw* | pw32* | cegcc*)
9824 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9825 # as there is no search path for DLLs.
9826 hardcode_libdir_flag_spec='-L$libdir'
9827 export_dynamic_flag_spec='${wl}--export-all-symbols'
9828 allow_undefined_flag=unsupported
9829 always_export_symbols=no
9830 enable_shared_with_static_runtimes=yes
9831 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9832 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9833
9834 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9835 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9836 # If the export-symbols file already is a .def file (1st line
9837 # is EXPORTS), use it as is; otherwise, prepend...
9838 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9839 cp $export_symbols $output_objdir/$soname.def;
9840 else
9841 echo EXPORTS > $output_objdir/$soname.def;
9842 cat $export_symbols >> $output_objdir/$soname.def;
9843 fi~
9844 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9845 else
9846 ld_shlibs=no
9847 fi
9848 ;;
9849
9850 haiku*)
9851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9852 link_all_deplibs=yes
9853 ;;
9854
9855 interix[3-9]*)
9856 hardcode_direct=no
9857 hardcode_shlibpath_var=no
9858 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9859 export_dynamic_flag_spec='${wl}-E'
9860 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9861 # Instead, shared libraries are loaded at an image base (0x10000000 by
9862 # default) and relocated if they conflict, which is a slow very memory
9863 # consuming and fragmenting process. To avoid this, we pick a random,
9864 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9865 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9866 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9867 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'
9868 ;;
9869
9870 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9871 tmp_diet=no
9872 if test "$host_os" = linux-dietlibc; then
9873 case $cc_basename in
9874 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9875 esac
9876 fi
9877 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9878 && test "$tmp_diet" = no
9879 then
9880 tmp_addflag=' $pic_flag'
9881 tmp_sharedflag='-shared'
9882 case $cc_basename,$host_cpu in
9883 pgcc*) # Portland Group C compiler
9884 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9885 tmp_addflag=' $pic_flag'
9886 ;;
9887 pgf77* | pgf90* | pgf95* | pgfortran*)
9888 # Portland Group f77 and f90 compilers
9889 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9890 tmp_addflag=' $pic_flag -Mnomain' ;;
9891 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9892 tmp_addflag=' -i_dynamic' ;;
9893 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9894 tmp_addflag=' -i_dynamic -nofor_main' ;;
9895 ifc* | ifort*) # Intel Fortran compiler
9896 tmp_addflag=' -nofor_main' ;;
9897 lf95*) # Lahey Fortran 8.1
9898 whole_archive_flag_spec=
9899 tmp_sharedflag='--shared' ;;
9900 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9901 tmp_sharedflag='-qmkshrobj'
9902 tmp_addflag= ;;
9903 nvcc*) # Cuda Compiler Driver 2.2
9904 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9905 compiler_needs_object=yes
9906 ;;
9907 esac
9908 case `$CC -V 2>&1 | sed 5q` in
9909 *Sun\ C*) # Sun C 5.9
9910 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9911 compiler_needs_object=yes
9912 tmp_sharedflag='-G' ;;
9913 *Sun\ F*) # Sun Fortran 8.3
9914 tmp_sharedflag='-G' ;;
9915 esac
9916 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9917
9918 if test "x$supports_anon_versioning" = xyes; then
9919 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9920 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9921 echo "local: *; };" >> $output_objdir/$libname.ver~
9922 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9923 fi
9924
9925 case $cc_basename in
9926 xlf* | bgf* | bgxlf* | mpixlf*)
9927 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9928 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9929 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9930 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9931 if test "x$supports_anon_versioning" = xyes; then
9932 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9933 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9934 echo "local: *; };" >> $output_objdir/$libname.ver~
9935 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9936 fi
9937 ;;
9938 esac
9939 else
9940 ld_shlibs=no
9941 fi
9942 ;;
9943
9944 netbsd* | netbsdelf*-gnu)
9945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9946 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9947 wlarc=
9948 else
9949 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9950 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9951 fi
9952 ;;
9953
9954 solaris*)
9955 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9956 ld_shlibs=no
9957 cat <<_LT_EOF 1>&2
9958
9959 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9960 *** create shared libraries on Solaris systems. Therefore, libtool
9961 *** is disabling shared libraries support. We urge you to upgrade GNU
9962 *** binutils to release 2.9.1 or newer. Another option is to modify
9963 *** your PATH or compiler configuration so that the native linker is
9964 *** used, and then restart.
9965
9966 _LT_EOF
9967 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9968 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9969 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9970 else
9971 ld_shlibs=no
9972 fi
9973 ;;
9974
9975 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9976 case `$LD -v 2>&1` in
9977 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9978 ld_shlibs=no
9979 cat <<_LT_EOF 1>&2
9980
9981 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9982 *** reliably create shared libraries on SCO systems. Therefore, libtool
9983 *** is disabling shared libraries support. We urge you to upgrade GNU
9984 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9985 *** your PATH or compiler configuration so that the native linker is
9986 *** used, and then restart.
9987
9988 _LT_EOF
9989 ;;
9990 *)
9991 # For security reasons, it is highly recommended that you always
9992 # use absolute paths for naming shared libraries, and exclude the
9993 # DT_RUNPATH tag from executables and libraries. But doing so
9994 # requires that you compile everything twice, which is a pain.
9995 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9998 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9999 else
10000 ld_shlibs=no
10001 fi
10002 ;;
10003 esac
10004 ;;
10005
10006 sunos4*)
10007 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10008 wlarc=
10009 hardcode_direct=yes
10010 hardcode_shlibpath_var=no
10011 ;;
10012
10013 *)
10014 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10015 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10016 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10017 else
10018 ld_shlibs=no
10019 fi
10020 ;;
10021 esac
10022
10023 if test "$ld_shlibs" = no; then
10024 runpath_var=
10025 hardcode_libdir_flag_spec=
10026 export_dynamic_flag_spec=
10027 whole_archive_flag_spec=
10028 fi
10029 else
10030 # PORTME fill in a description of your system's linker (not GNU ld)
10031 case $host_os in
10032 aix3*)
10033 allow_undefined_flag=unsupported
10034 always_export_symbols=yes
10035 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'
10036 # Note: this linker hardcodes the directories in LIBPATH if there
10037 # are no directories specified by -L.
10038 hardcode_minus_L=yes
10039 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10040 # Neither direct hardcoding nor static linking is supported with a
10041 # broken collect2.
10042 hardcode_direct=unsupported
10043 fi
10044 ;;
10045
10046 aix[4-9]*)
10047 if test "$host_cpu" = ia64; then
10048 # On IA64, the linker does run time linking by default, so we don't
10049 # have to do anything special.
10050 aix_use_runtimelinking=no
10051 exp_sym_flag='-Bexport'
10052 no_entry_flag=""
10053 else
10054 # If we're using GNU nm, then we don't want the "-C" option.
10055 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10056 # Also, AIX nm treats weak defined symbols like other global
10057 # defined symbols, whereas GNU nm marks them as "W".
10058 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10059 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10060 else
10061 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'
10062 fi
10063 aix_use_runtimelinking=no
10064
10065 # Test if we are trying to use run time linking or normal
10066 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10067 # need to do runtime linking.
10068 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10069 for ld_flag in $LDFLAGS; do
10070 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10071 aix_use_runtimelinking=yes
10072 break
10073 fi
10074 done
10075 ;;
10076 esac
10077
10078 exp_sym_flag='-bexport'
10079 no_entry_flag='-bnoentry'
10080 fi
10081
10082 # When large executables or shared objects are built, AIX ld can
10083 # have problems creating the table of contents. If linking a library
10084 # or program results in "error TOC overflow" add -mminimal-toc to
10085 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10086 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10087
10088 archive_cmds=''
10089 hardcode_direct=yes
10090 hardcode_direct_absolute=yes
10091 hardcode_libdir_separator=':'
10092 link_all_deplibs=yes
10093 file_list_spec='${wl}-f,'
10094
10095 if test "$GCC" = yes; then
10096 case $host_os in aix4.[012]|aix4.[012].*)
10097 # We only want to do this on AIX 4.2 and lower, the check
10098 # below for broken collect2 doesn't work under 4.3+
10099 collect2name=`${CC} -print-prog-name=collect2`
10100 if test -f "$collect2name" &&
10101 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10102 then
10103 # We have reworked collect2
10104 :
10105 else
10106 # We have old collect2
10107 hardcode_direct=unsupported
10108 # It fails to find uninstalled libraries when the uninstalled
10109 # path is not listed in the libpath. Setting hardcode_minus_L
10110 # to unsupported forces relinking
10111 hardcode_minus_L=yes
10112 hardcode_libdir_flag_spec='-L$libdir'
10113 hardcode_libdir_separator=
10114 fi
10115 ;;
10116 esac
10117 shared_flag='-shared'
10118 if test "$aix_use_runtimelinking" = yes; then
10119 shared_flag="$shared_flag "'${wl}-G'
10120 fi
10121 link_all_deplibs=no
10122 else
10123 # not using gcc
10124 if test "$host_cpu" = ia64; then
10125 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10126 # chokes on -Wl,-G. The following line is correct:
10127 shared_flag='-G'
10128 else
10129 if test "$aix_use_runtimelinking" = yes; then
10130 shared_flag='${wl}-G'
10131 else
10132 shared_flag='${wl}-bM:SRE'
10133 fi
10134 fi
10135 fi
10136
10137 export_dynamic_flag_spec='${wl}-bexpall'
10138 # It seems that -bexpall does not export symbols beginning with
10139 # underscore (_), so it is better to generate a list of symbols to export.
10140 always_export_symbols=yes
10141 if test "$aix_use_runtimelinking" = yes; then
10142 # Warning - without using the other runtime loading flags (-brtl),
10143 # -berok will link without error, but may produce a broken library.
10144 allow_undefined_flag='-berok'
10145 # Determine the default libpath from the value encoded in an
10146 # empty executable.
10147 if test "${lt_cv_aix_libpath+set}" = set; then
10148 aix_libpath=$lt_cv_aix_libpath
10149 else
10150 if ${lt_cv_aix_libpath_+:} false; then :
10151 $as_echo_n "(cached) " >&6
10152 else
10153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154 /* end confdefs.h. */
10155
10156 int
10157 main ()
10158 {
10159
10160 ;
10161 return 0;
10162 }
10163 _ACEOF
10164 if ac_fn_c_try_link "$LINENO"; then :
10165
10166 lt_aix_libpath_sed='
10167 /Import File Strings/,/^$/ {
10168 /^0/ {
10169 s/^0 *\([^ ]*\) *$/\1/
10170 p
10171 }
10172 }'
10173 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10174 # Check for a 64-bit object if we didn't find anything.
10175 if test -z "$lt_cv_aix_libpath_"; then
10176 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10177 fi
10178 fi
10179 rm -f core conftest.err conftest.$ac_objext \
10180 conftest$ac_exeext conftest.$ac_ext
10181 if test -z "$lt_cv_aix_libpath_"; then
10182 lt_cv_aix_libpath_="/usr/lib:/lib"
10183 fi
10184
10185 fi
10186
10187 aix_libpath=$lt_cv_aix_libpath_
10188 fi
10189
10190 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10191 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10192 else
10193 if test "$host_cpu" = ia64; then
10194 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10195 allow_undefined_flag="-z nodefs"
10196 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"
10197 else
10198 # Determine the default libpath from the value encoded in an
10199 # empty executable.
10200 if test "${lt_cv_aix_libpath+set}" = set; then
10201 aix_libpath=$lt_cv_aix_libpath
10202 else
10203 if ${lt_cv_aix_libpath_+:} false; then :
10204 $as_echo_n "(cached) " >&6
10205 else
10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10207 /* end confdefs.h. */
10208
10209 int
10210 main ()
10211 {
10212
10213 ;
10214 return 0;
10215 }
10216 _ACEOF
10217 if ac_fn_c_try_link "$LINENO"; then :
10218
10219 lt_aix_libpath_sed='
10220 /Import File Strings/,/^$/ {
10221 /^0/ {
10222 s/^0 *\([^ ]*\) *$/\1/
10223 p
10224 }
10225 }'
10226 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10227 # Check for a 64-bit object if we didn't find anything.
10228 if test -z "$lt_cv_aix_libpath_"; then
10229 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10230 fi
10231 fi
10232 rm -f core conftest.err conftest.$ac_objext \
10233 conftest$ac_exeext conftest.$ac_ext
10234 if test -z "$lt_cv_aix_libpath_"; then
10235 lt_cv_aix_libpath_="/usr/lib:/lib"
10236 fi
10237
10238 fi
10239
10240 aix_libpath=$lt_cv_aix_libpath_
10241 fi
10242
10243 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10244 # Warning - without using the other run time loading flags,
10245 # -berok will link without error, but may produce a broken library.
10246 no_undefined_flag=' ${wl}-bernotok'
10247 allow_undefined_flag=' ${wl}-berok'
10248 if test "$with_gnu_ld" = yes; then
10249 # We only use this code for GNU lds that support --whole-archive.
10250 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10251 else
10252 # Exported symbols can be pulled into shared objects from archives
10253 whole_archive_flag_spec='$convenience'
10254 fi
10255 archive_cmds_need_lc=yes
10256 # This is similar to how AIX traditionally builds its shared libraries.
10257 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'
10258 fi
10259 fi
10260 ;;
10261
10262 amigaos*)
10263 case $host_cpu in
10264 powerpc)
10265 # see comment about AmigaOS4 .so support
10266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10267 archive_expsym_cmds=''
10268 ;;
10269 m68k)
10270 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)'
10271 hardcode_libdir_flag_spec='-L$libdir'
10272 hardcode_minus_L=yes
10273 ;;
10274 esac
10275 ;;
10276
10277 bsdi[45]*)
10278 export_dynamic_flag_spec=-rdynamic
10279 ;;
10280
10281 cygwin* | mingw* | pw32* | cegcc*)
10282 # When not using gcc, we currently assume that we are using
10283 # Microsoft Visual C++.
10284 # hardcode_libdir_flag_spec is actually meaningless, as there is
10285 # no search path for DLLs.
10286 case $cc_basename in
10287 cl*)
10288 # Native MSVC
10289 hardcode_libdir_flag_spec=' '
10290 allow_undefined_flag=unsupported
10291 always_export_symbols=yes
10292 file_list_spec='@'
10293 # Tell ltmain to make .lib files, not .a files.
10294 libext=lib
10295 # Tell ltmain to make .dll files, not .so files.
10296 shrext_cmds=".dll"
10297 # FIXME: Setting linknames here is a bad hack.
10298 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10299 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10300 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10301 else
10302 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10303 fi~
10304 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10305 linknames='
10306 # The linker will not automatically build a static lib if we build a DLL.
10307 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10308 enable_shared_with_static_runtimes=yes
10309 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10310 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10311 # Don't use ranlib
10312 old_postinstall_cmds='chmod 644 $oldlib'
10313 postlink_cmds='lt_outputfile="@OUTPUT@"~
10314 lt_tool_outputfile="@TOOL_OUTPUT@"~
10315 case $lt_outputfile in
10316 *.exe|*.EXE) ;;
10317 *)
10318 lt_outputfile="$lt_outputfile.exe"
10319 lt_tool_outputfile="$lt_tool_outputfile.exe"
10320 ;;
10321 esac~
10322 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10323 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10324 $RM "$lt_outputfile.manifest";
10325 fi'
10326 ;;
10327 *)
10328 # Assume MSVC wrapper
10329 hardcode_libdir_flag_spec=' '
10330 allow_undefined_flag=unsupported
10331 # Tell ltmain to make .lib files, not .a files.
10332 libext=lib
10333 # Tell ltmain to make .dll files, not .so files.
10334 shrext_cmds=".dll"
10335 # FIXME: Setting linknames here is a bad hack.
10336 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10337 # The linker will automatically build a .lib file if we build a DLL.
10338 old_archive_from_new_cmds='true'
10339 # FIXME: Should let the user specify the lib program.
10340 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10341 enable_shared_with_static_runtimes=yes
10342 ;;
10343 esac
10344 ;;
10345
10346 darwin* | rhapsody*)
10347
10348
10349 archive_cmds_need_lc=no
10350 hardcode_direct=no
10351 hardcode_automatic=yes
10352 hardcode_shlibpath_var=unsupported
10353 if test "$lt_cv_ld_force_load" = "yes"; then
10354 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10355
10356 else
10357 whole_archive_flag_spec=''
10358 fi
10359 link_all_deplibs=yes
10360 allow_undefined_flag="$_lt_dar_allow_undefined"
10361 case $cc_basename in
10362 ifort*) _lt_dar_can_shared=yes ;;
10363 *) _lt_dar_can_shared=$GCC ;;
10364 esac
10365 if test "$_lt_dar_can_shared" = "yes"; then
10366 output_verbose_link_cmd=func_echo_all
10367 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10368 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10369 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10370 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10371
10372 else
10373 ld_shlibs=no
10374 fi
10375
10376 ;;
10377
10378 dgux*)
10379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10380 hardcode_libdir_flag_spec='-L$libdir'
10381 hardcode_shlibpath_var=no
10382 ;;
10383
10384 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10385 # support. Future versions do this automatically, but an explicit c++rt0.o
10386 # does not break anything, and helps significantly (at the cost of a little
10387 # extra space).
10388 freebsd2.2*)
10389 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10390 hardcode_libdir_flag_spec='-R$libdir'
10391 hardcode_direct=yes
10392 hardcode_shlibpath_var=no
10393 ;;
10394
10395 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10396 freebsd2.*)
10397 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10398 hardcode_direct=yes
10399 hardcode_minus_L=yes
10400 hardcode_shlibpath_var=no
10401 ;;
10402
10403 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10404 freebsd* | dragonfly*)
10405 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10406 hardcode_libdir_flag_spec='-R$libdir'
10407 hardcode_direct=yes
10408 hardcode_shlibpath_var=no
10409 ;;
10410
10411 hpux9*)
10412 if test "$GCC" = yes; then
10413 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10414 else
10415 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'
10416 fi
10417 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10418 hardcode_libdir_separator=:
10419 hardcode_direct=yes
10420
10421 # hardcode_minus_L: Not really in the search PATH,
10422 # but as the default location of the library.
10423 hardcode_minus_L=yes
10424 export_dynamic_flag_spec='${wl}-E'
10425 ;;
10426
10427 hpux10*)
10428 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10429 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10430 else
10431 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10432 fi
10433 if test "$with_gnu_ld" = no; then
10434 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10435 hardcode_libdir_separator=:
10436 hardcode_direct=yes
10437 hardcode_direct_absolute=yes
10438 export_dynamic_flag_spec='${wl}-E'
10439 # hardcode_minus_L: Not really in the search PATH,
10440 # but as the default location of the library.
10441 hardcode_minus_L=yes
10442 fi
10443 ;;
10444
10445 hpux11*)
10446 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10447 case $host_cpu in
10448 hppa*64*)
10449 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10450 ;;
10451 ia64*)
10452 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10453 ;;
10454 *)
10455 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10456 ;;
10457 esac
10458 else
10459 case $host_cpu in
10460 hppa*64*)
10461 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10462 ;;
10463 ia64*)
10464 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10465 ;;
10466 *)
10467
10468 # Older versions of the 11.00 compiler do not understand -b yet
10469 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10471 $as_echo_n "checking if $CC understands -b... " >&6; }
10472 if ${lt_cv_prog_compiler__b+:} false; then :
10473 $as_echo_n "(cached) " >&6
10474 else
10475 lt_cv_prog_compiler__b=no
10476 save_LDFLAGS="$LDFLAGS"
10477 LDFLAGS="$LDFLAGS -b"
10478 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10479 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10480 # The linker can only warn and ignore the option if not recognized
10481 # So say no if there are warnings
10482 if test -s conftest.err; then
10483 # Append any errors to the config.log.
10484 cat conftest.err 1>&5
10485 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10487 if diff conftest.exp conftest.er2 >/dev/null; then
10488 lt_cv_prog_compiler__b=yes
10489 fi
10490 else
10491 lt_cv_prog_compiler__b=yes
10492 fi
10493 fi
10494 $RM -r conftest*
10495 LDFLAGS="$save_LDFLAGS"
10496
10497 fi
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10499 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10500
10501 if test x"$lt_cv_prog_compiler__b" = xyes; then
10502 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10503 else
10504 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10505 fi
10506
10507 ;;
10508 esac
10509 fi
10510 if test "$with_gnu_ld" = no; then
10511 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10512 hardcode_libdir_separator=:
10513
10514 case $host_cpu in
10515 hppa*64*|ia64*)
10516 hardcode_direct=no
10517 hardcode_shlibpath_var=no
10518 ;;
10519 *)
10520 hardcode_direct=yes
10521 hardcode_direct_absolute=yes
10522 export_dynamic_flag_spec='${wl}-E'
10523
10524 # hardcode_minus_L: Not really in the search PATH,
10525 # but as the default location of the library.
10526 hardcode_minus_L=yes
10527 ;;
10528 esac
10529 fi
10530 ;;
10531
10532 irix5* | irix6* | nonstopux*)
10533 if test "$GCC" = yes; then
10534 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10535 # Try to use the -exported_symbol ld option, if it does not
10536 # work, assume that -exports_file does not work either and
10537 # implicitly export all symbols.
10538 # This should be the same for all languages, so no per-tag cache variable.
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10540 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10541 if ${lt_cv_irix_exported_symbol+:} false; then :
10542 $as_echo_n "(cached) " >&6
10543 else
10544 save_LDFLAGS="$LDFLAGS"
10545 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10547 /* end confdefs.h. */
10548 int foo (void) { return 0; }
10549 _ACEOF
10550 if ac_fn_c_try_link "$LINENO"; then :
10551 lt_cv_irix_exported_symbol=yes
10552 else
10553 lt_cv_irix_exported_symbol=no
10554 fi
10555 rm -f core conftest.err conftest.$ac_objext \
10556 conftest$ac_exeext conftest.$ac_ext
10557 LDFLAGS="$save_LDFLAGS"
10558 fi
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10560 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10561 if test "$lt_cv_irix_exported_symbol" = yes; then
10562 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10563 fi
10564 else
10565 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10566 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10567 fi
10568 archive_cmds_need_lc='no'
10569 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10570 hardcode_libdir_separator=:
10571 inherit_rpath=yes
10572 link_all_deplibs=yes
10573 ;;
10574
10575 netbsd* | netbsdelf*-gnu)
10576 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10577 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10578 else
10579 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10580 fi
10581 hardcode_libdir_flag_spec='-R$libdir'
10582 hardcode_direct=yes
10583 hardcode_shlibpath_var=no
10584 ;;
10585
10586 newsos6)
10587 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10588 hardcode_direct=yes
10589 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10590 hardcode_libdir_separator=:
10591 hardcode_shlibpath_var=no
10592 ;;
10593
10594 *nto* | *qnx*)
10595 ;;
10596
10597 openbsd*)
10598 if test -f /usr/libexec/ld.so; then
10599 hardcode_direct=yes
10600 hardcode_shlibpath_var=no
10601 hardcode_direct_absolute=yes
10602 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10603 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10604 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10605 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10606 export_dynamic_flag_spec='${wl}-E'
10607 else
10608 case $host_os in
10609 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10610 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10611 hardcode_libdir_flag_spec='-R$libdir'
10612 ;;
10613 *)
10614 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10615 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10616 ;;
10617 esac
10618 fi
10619 else
10620 ld_shlibs=no
10621 fi
10622 ;;
10623
10624 os2*)
10625 hardcode_libdir_flag_spec='-L$libdir'
10626 hardcode_minus_L=yes
10627 allow_undefined_flag=unsupported
10628 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'
10629 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10630 ;;
10631
10632 osf3*)
10633 if test "$GCC" = yes; then
10634 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10635 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10636 else
10637 allow_undefined_flag=' -expect_unresolved \*'
10638 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10639 fi
10640 archive_cmds_need_lc='no'
10641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10642 hardcode_libdir_separator=:
10643 ;;
10644
10645 osf4* | osf5*) # as osf3* with the addition of -msym flag
10646 if test "$GCC" = yes; then
10647 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10648 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10649 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10650 else
10651 allow_undefined_flag=' -expect_unresolved \*'
10652 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10653 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10654 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10655
10656 # Both c and cxx compiler support -rpath directly
10657 hardcode_libdir_flag_spec='-rpath $libdir'
10658 fi
10659 archive_cmds_need_lc='no'
10660 hardcode_libdir_separator=:
10661 ;;
10662
10663 solaris*)
10664 no_undefined_flag=' -z defs'
10665 if test "$GCC" = yes; then
10666 wlarc='${wl}'
10667 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10668 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10669 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10670 else
10671 case `$CC -V 2>&1` in
10672 *"Compilers 5.0"*)
10673 wlarc=''
10674 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10675 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10676 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10677 ;;
10678 *)
10679 wlarc='${wl}'
10680 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10681 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10682 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10683 ;;
10684 esac
10685 fi
10686 hardcode_libdir_flag_spec='-R$libdir'
10687 hardcode_shlibpath_var=no
10688 case $host_os in
10689 solaris2.[0-5] | solaris2.[0-5].*) ;;
10690 *)
10691 # The compiler driver will combine and reorder linker options,
10692 # but understands `-z linker_flag'. GCC discards it without `$wl',
10693 # but is careful enough not to reorder.
10694 # Supported since Solaris 2.6 (maybe 2.5.1?)
10695 if test "$GCC" = yes; then
10696 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10697 else
10698 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10699 fi
10700 ;;
10701 esac
10702 link_all_deplibs=yes
10703 ;;
10704
10705 sunos4*)
10706 if test "x$host_vendor" = xsequent; then
10707 # Use $CC to link under sequent, because it throws in some extra .o
10708 # files that make .init and .fini sections work.
10709 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10710 else
10711 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10712 fi
10713 hardcode_libdir_flag_spec='-L$libdir'
10714 hardcode_direct=yes
10715 hardcode_minus_L=yes
10716 hardcode_shlibpath_var=no
10717 ;;
10718
10719 sysv4)
10720 case $host_vendor in
10721 sni)
10722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10723 hardcode_direct=yes # is this really true???
10724 ;;
10725 siemens)
10726 ## LD is ld it makes a PLAMLIB
10727 ## CC just makes a GrossModule.
10728 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10729 reload_cmds='$CC -r -o $output$reload_objs'
10730 hardcode_direct=no
10731 ;;
10732 motorola)
10733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10734 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10735 ;;
10736 esac
10737 runpath_var='LD_RUN_PATH'
10738 hardcode_shlibpath_var=no
10739 ;;
10740
10741 sysv4.3*)
10742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10743 hardcode_shlibpath_var=no
10744 export_dynamic_flag_spec='-Bexport'
10745 ;;
10746
10747 sysv4*MP*)
10748 if test -d /usr/nec; then
10749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10750 hardcode_shlibpath_var=no
10751 runpath_var=LD_RUN_PATH
10752 hardcode_runpath_var=yes
10753 ld_shlibs=yes
10754 fi
10755 ;;
10756
10757 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10758 no_undefined_flag='${wl}-z,text'
10759 archive_cmds_need_lc=no
10760 hardcode_shlibpath_var=no
10761 runpath_var='LD_RUN_PATH'
10762
10763 if test "$GCC" = yes; then
10764 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10765 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10766 else
10767 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10768 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10769 fi
10770 ;;
10771
10772 sysv5* | sco3.2v5* | sco5v6*)
10773 # Note: We can NOT use -z defs as we might desire, because we do not
10774 # link with -lc, and that would cause any symbols used from libc to
10775 # always be unresolved, which means just about no library would
10776 # ever link correctly. If we're not using GNU ld we use -z text
10777 # though, which does catch some bad symbols but isn't as heavy-handed
10778 # as -z defs.
10779 no_undefined_flag='${wl}-z,text'
10780 allow_undefined_flag='${wl}-z,nodefs'
10781 archive_cmds_need_lc=no
10782 hardcode_shlibpath_var=no
10783 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10784 hardcode_libdir_separator=':'
10785 link_all_deplibs=yes
10786 export_dynamic_flag_spec='${wl}-Bexport'
10787 runpath_var='LD_RUN_PATH'
10788
10789 if test "$GCC" = yes; then
10790 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10791 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10792 else
10793 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10794 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10795 fi
10796 ;;
10797
10798 uts4*)
10799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10800 hardcode_libdir_flag_spec='-L$libdir'
10801 hardcode_shlibpath_var=no
10802 ;;
10803
10804 *)
10805 ld_shlibs=no
10806 ;;
10807 esac
10808
10809 if test x$host_vendor = xsni; then
10810 case $host in
10811 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10812 export_dynamic_flag_spec='${wl}-Blargedynsym'
10813 ;;
10814 esac
10815 fi
10816 fi
10817
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10819 $as_echo "$ld_shlibs" >&6; }
10820 test "$ld_shlibs" = no && can_build_shared=no
10821
10822 with_gnu_ld=$with_gnu_ld
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838 #
10839 # Do we need to explicitly link libc?
10840 #
10841 case "x$archive_cmds_need_lc" in
10842 x|xyes)
10843 # Assume -lc should be added
10844 archive_cmds_need_lc=yes
10845
10846 if test "$enable_shared" = yes && test "$GCC" = yes; then
10847 case $archive_cmds in
10848 *'~'*)
10849 # FIXME: we may have to deal with multi-command sequences.
10850 ;;
10851 '$CC '*)
10852 # Test whether the compiler implicitly links with -lc since on some
10853 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10854 # to ld, don't add -lc before -lgcc.
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10856 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10857 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10858 $as_echo_n "(cached) " >&6
10859 else
10860 $RM conftest*
10861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10862
10863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10864 (eval $ac_compile) 2>&5
10865 ac_status=$?
10866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10867 test $ac_status = 0; } 2>conftest.err; then
10868 soname=conftest
10869 lib=conftest
10870 libobjs=conftest.$ac_objext
10871 deplibs=
10872 wl=$lt_prog_compiler_wl
10873 pic_flag=$lt_prog_compiler_pic
10874 compiler_flags=-v
10875 linker_flags=-v
10876 verstring=
10877 output_objdir=.
10878 libname=conftest
10879 lt_save_allow_undefined_flag=$allow_undefined_flag
10880 allow_undefined_flag=
10881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10882 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10883 ac_status=$?
10884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10885 test $ac_status = 0; }
10886 then
10887 lt_cv_archive_cmds_need_lc=no
10888 else
10889 lt_cv_archive_cmds_need_lc=yes
10890 fi
10891 allow_undefined_flag=$lt_save_allow_undefined_flag
10892 else
10893 cat conftest.err 1>&5
10894 fi
10895 $RM conftest*
10896
10897 fi
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10899 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10900 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10901 ;;
10902 esac
10903 fi
10904 ;;
10905 esac
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11059 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11060
11061 if test "$GCC" = yes; then
11062 case $host_os in
11063 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11064 *) lt_awk_arg="/^libraries:/" ;;
11065 esac
11066 case $host_os in
11067 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11068 *) lt_sed_strip_eq="s,=/,/,g" ;;
11069 esac
11070 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11071 case $lt_search_path_spec in
11072 *\;*)
11073 # if the path contains ";" then we assume it to be the separator
11074 # otherwise default to the standard path separator (i.e. ":") - it is
11075 # assumed that no part of a normal pathname contains ";" but that should
11076 # okay in the real world where ";" in dirpaths is itself problematic.
11077 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11078 ;;
11079 *)
11080 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11081 ;;
11082 esac
11083 # Ok, now we have the path, separated by spaces, we can step through it
11084 # and add multilib dir if necessary.
11085 lt_tmp_lt_search_path_spec=
11086 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11087 for lt_sys_path in $lt_search_path_spec; do
11088 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11089 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11090 else
11091 test -d "$lt_sys_path" && \
11092 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11093 fi
11094 done
11095 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11096 BEGIN {RS=" "; FS="/|\n";} {
11097 lt_foo="";
11098 lt_count=0;
11099 for (lt_i = NF; lt_i > 0; lt_i--) {
11100 if ($lt_i != "" && $lt_i != ".") {
11101 if ($lt_i == "..") {
11102 lt_count++;
11103 } else {
11104 if (lt_count == 0) {
11105 lt_foo="/" $lt_i lt_foo;
11106 } else {
11107 lt_count--;
11108 }
11109 }
11110 }
11111 }
11112 if (lt_foo != "") { lt_freq[lt_foo]++; }
11113 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11114 }'`
11115 # AWK program above erroneously prepends '/' to C:/dos/paths
11116 # for these hosts.
11117 case $host_os in
11118 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11119 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11120 esac
11121 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11122 else
11123 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11124 fi
11125 library_names_spec=
11126 libname_spec='lib$name'
11127 soname_spec=
11128 shrext_cmds=".so"
11129 postinstall_cmds=
11130 postuninstall_cmds=
11131 finish_cmds=
11132 finish_eval=
11133 shlibpath_var=
11134 shlibpath_overrides_runpath=unknown
11135 version_type=none
11136 dynamic_linker="$host_os ld.so"
11137 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11138 need_lib_prefix=unknown
11139 hardcode_into_libs=no
11140
11141 # when you set need_version to no, make sure it does not cause -set_version
11142 # flags to be left without arguments
11143 need_version=unknown
11144
11145 case $host_os in
11146 aix3*)
11147 version_type=linux # correct to gnu/linux during the next big refactor
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11149 shlibpath_var=LIBPATH
11150
11151 # AIX 3 has no versioning support, so we append a major version to the name.
11152 soname_spec='${libname}${release}${shared_ext}$major'
11153 ;;
11154
11155 aix[4-9]*)
11156 version_type=linux # correct to gnu/linux during the next big refactor
11157 need_lib_prefix=no
11158 need_version=no
11159 hardcode_into_libs=yes
11160 if test "$host_cpu" = ia64; then
11161 # AIX 5 supports IA64
11162 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11163 shlibpath_var=LD_LIBRARY_PATH
11164 else
11165 # With GCC up to 2.95.x, collect2 would create an import file
11166 # for dependence libraries. The import file would start with
11167 # the line `#! .'. This would cause the generated library to
11168 # depend on `.', always an invalid library. This was fixed in
11169 # development snapshots of GCC prior to 3.0.
11170 case $host_os in
11171 aix4 | aix4.[01] | aix4.[01].*)
11172 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11173 echo ' yes '
11174 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11175 :
11176 else
11177 can_build_shared=no
11178 fi
11179 ;;
11180 esac
11181 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11182 # soname into executable. Probably we can add versioning support to
11183 # collect2, so additional links can be useful in future.
11184 if test "$aix_use_runtimelinking" = yes; then
11185 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11186 # instead of lib<name>.a to let people know that these are not
11187 # typical AIX shared libraries.
11188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11189 else
11190 # We preserve .a as extension for shared libraries through AIX4.2
11191 # and later when we are not doing run time linking.
11192 library_names_spec='${libname}${release}.a $libname.a'
11193 soname_spec='${libname}${release}${shared_ext}$major'
11194 fi
11195 shlibpath_var=LIBPATH
11196 fi
11197 ;;
11198
11199 amigaos*)
11200 case $host_cpu in
11201 powerpc)
11202 # Since July 2007 AmigaOS4 officially supports .so libraries.
11203 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205 ;;
11206 m68k)
11207 library_names_spec='$libname.ixlibrary $libname.a'
11208 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11209 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
11210 ;;
11211 esac
11212 ;;
11213
11214 beos*)
11215 library_names_spec='${libname}${shared_ext}'
11216 dynamic_linker="$host_os ld.so"
11217 shlibpath_var=LIBRARY_PATH
11218 ;;
11219
11220 bsdi[45]*)
11221 version_type=linux # correct to gnu/linux during the next big refactor
11222 need_version=no
11223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11224 soname_spec='${libname}${release}${shared_ext}$major'
11225 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11226 shlibpath_var=LD_LIBRARY_PATH
11227 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11228 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11229 # the default ld.so.conf also contains /usr/contrib/lib and
11230 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11231 # libtool to hard-code these into programs
11232 ;;
11233
11234 cygwin* | mingw* | pw32* | cegcc*)
11235 version_type=windows
11236 shrext_cmds=".dll"
11237 need_version=no
11238 need_lib_prefix=no
11239
11240 case $GCC,$cc_basename in
11241 yes,*)
11242 # gcc
11243 library_names_spec='$libname.dll.a'
11244 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11245 postinstall_cmds='base_file=`basename \${file}`~
11246 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11247 dldir=$destdir/`dirname \$dlpath`~
11248 test -d \$dldir || mkdir -p \$dldir~
11249 $install_prog $dir/$dlname \$dldir/$dlname~
11250 chmod a+x \$dldir/$dlname~
11251 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11252 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11253 fi'
11254 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11255 dlpath=$dir/\$dldll~
11256 $RM \$dlpath'
11257 shlibpath_overrides_runpath=yes
11258
11259 case $host_os in
11260 cygwin*)
11261 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11262 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11263
11264 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11265 ;;
11266 mingw* | cegcc*)
11267 # MinGW DLLs use traditional 'lib' prefix
11268 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11269 ;;
11270 pw32*)
11271 # pw32 DLLs use 'pw' prefix rather than 'lib'
11272 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11273 ;;
11274 esac
11275 dynamic_linker='Win32 ld.exe'
11276 ;;
11277
11278 *,cl*)
11279 # Native MSVC
11280 libname_spec='$name'
11281 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11282 library_names_spec='${libname}.dll.lib'
11283
11284 case $build_os in
11285 mingw*)
11286 sys_lib_search_path_spec=
11287 lt_save_ifs=$IFS
11288 IFS=';'
11289 for lt_path in $LIB
11290 do
11291 IFS=$lt_save_ifs
11292 # Let DOS variable expansion print the short 8.3 style file name.
11293 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11294 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11295 done
11296 IFS=$lt_save_ifs
11297 # Convert to MSYS style.
11298 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11299 ;;
11300 cygwin*)
11301 # Convert to unix form, then to dos form, then back to unix form
11302 # but this time dos style (no spaces!) so that the unix form looks
11303 # like /cygdrive/c/PROGRA~1:/cygdr...
11304 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11305 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11306 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11307 ;;
11308 *)
11309 sys_lib_search_path_spec="$LIB"
11310 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11311 # It is most probably a Windows format PATH.
11312 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11313 else
11314 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11315 fi
11316 # FIXME: find the short name or the path components, as spaces are
11317 # common. (e.g. "Program Files" -> "PROGRA~1")
11318 ;;
11319 esac
11320
11321 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11322 postinstall_cmds='base_file=`basename \${file}`~
11323 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11324 dldir=$destdir/`dirname \$dlpath`~
11325 test -d \$dldir || mkdir -p \$dldir~
11326 $install_prog $dir/$dlname \$dldir/$dlname'
11327 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11328 dlpath=$dir/\$dldll~
11329 $RM \$dlpath'
11330 shlibpath_overrides_runpath=yes
11331 dynamic_linker='Win32 link.exe'
11332 ;;
11333
11334 *)
11335 # Assume MSVC wrapper
11336 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11337 dynamic_linker='Win32 ld.exe'
11338 ;;
11339 esac
11340 # FIXME: first we should search . and the directory the executable is in
11341 shlibpath_var=PATH
11342 ;;
11343
11344 darwin* | rhapsody*)
11345 dynamic_linker="$host_os dyld"
11346 version_type=darwin
11347 need_lib_prefix=no
11348 need_version=no
11349 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11350 soname_spec='${libname}${release}${major}$shared_ext'
11351 shlibpath_overrides_runpath=yes
11352 shlibpath_var=DYLD_LIBRARY_PATH
11353 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11354
11355 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11356 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11357 ;;
11358
11359 dgux*)
11360 version_type=linux # correct to gnu/linux during the next big refactor
11361 need_lib_prefix=no
11362 need_version=no
11363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11364 soname_spec='${libname}${release}${shared_ext}$major'
11365 shlibpath_var=LD_LIBRARY_PATH
11366 ;;
11367
11368 freebsd* | dragonfly*)
11369 # DragonFly does not have aout. When/if they implement a new
11370 # versioning mechanism, adjust this.
11371 if test -x /usr/bin/objformat; then
11372 objformat=`/usr/bin/objformat`
11373 else
11374 case $host_os in
11375 freebsd[23].*) objformat=aout ;;
11376 *) objformat=elf ;;
11377 esac
11378 fi
11379 version_type=freebsd-$objformat
11380 case $version_type in
11381 freebsd-elf*)
11382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11383 need_version=no
11384 need_lib_prefix=no
11385 ;;
11386 freebsd-*)
11387 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11388 need_version=yes
11389 ;;
11390 esac
11391 shlibpath_var=LD_LIBRARY_PATH
11392 case $host_os in
11393 freebsd2.*)
11394 shlibpath_overrides_runpath=yes
11395 ;;
11396 freebsd3.[01]* | freebsdelf3.[01]*)
11397 shlibpath_overrides_runpath=yes
11398 hardcode_into_libs=yes
11399 ;;
11400 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11401 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11402 shlibpath_overrides_runpath=no
11403 hardcode_into_libs=yes
11404 ;;
11405 *) # from 4.6 on, and DragonFly
11406 shlibpath_overrides_runpath=yes
11407 hardcode_into_libs=yes
11408 ;;
11409 esac
11410 ;;
11411
11412 haiku*)
11413 version_type=linux # correct to gnu/linux during the next big refactor
11414 need_lib_prefix=no
11415 need_version=no
11416 dynamic_linker="$host_os runtime_loader"
11417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11418 soname_spec='${libname}${release}${shared_ext}$major'
11419 shlibpath_var=LIBRARY_PATH
11420 shlibpath_overrides_runpath=yes
11421 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11422 hardcode_into_libs=yes
11423 ;;
11424
11425 hpux9* | hpux10* | hpux11*)
11426 # Give a soname corresponding to the major version so that dld.sl refuses to
11427 # link against other versions.
11428 version_type=sunos
11429 need_lib_prefix=no
11430 need_version=no
11431 case $host_cpu in
11432 ia64*)
11433 shrext_cmds='.so'
11434 hardcode_into_libs=yes
11435 dynamic_linker="$host_os dld.so"
11436 shlibpath_var=LD_LIBRARY_PATH
11437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11439 soname_spec='${libname}${release}${shared_ext}$major'
11440 if test "X$HPUX_IA64_MODE" = X32; then
11441 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11442 else
11443 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11444 fi
11445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11446 ;;
11447 hppa*64*)
11448 shrext_cmds='.sl'
11449 hardcode_into_libs=yes
11450 dynamic_linker="$host_os dld.sl"
11451 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11454 soname_spec='${libname}${release}${shared_ext}$major'
11455 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11457 ;;
11458 *)
11459 shrext_cmds='.sl'
11460 dynamic_linker="$host_os dld.sl"
11461 shlibpath_var=SHLIB_PATH
11462 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11464 soname_spec='${libname}${release}${shared_ext}$major'
11465 ;;
11466 esac
11467 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11468 postinstall_cmds='chmod 555 $lib'
11469 # or fails outright, so override atomically:
11470 install_override_mode=555
11471 ;;
11472
11473 interix[3-9]*)
11474 version_type=linux # correct to gnu/linux during the next big refactor
11475 need_lib_prefix=no
11476 need_version=no
11477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11478 soname_spec='${libname}${release}${shared_ext}$major'
11479 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11480 shlibpath_var=LD_LIBRARY_PATH
11481 shlibpath_overrides_runpath=no
11482 hardcode_into_libs=yes
11483 ;;
11484
11485 irix5* | irix6* | nonstopux*)
11486 case $host_os in
11487 nonstopux*) version_type=nonstopux ;;
11488 *)
11489 if test "$lt_cv_prog_gnu_ld" = yes; then
11490 version_type=linux # correct to gnu/linux during the next big refactor
11491 else
11492 version_type=irix
11493 fi ;;
11494 esac
11495 need_lib_prefix=no
11496 need_version=no
11497 soname_spec='${libname}${release}${shared_ext}$major'
11498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11499 case $host_os in
11500 irix5* | nonstopux*)
11501 libsuff= shlibsuff=
11502 ;;
11503 *)
11504 case $LD in # libtool.m4 will add one of these switches to LD
11505 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11506 libsuff= shlibsuff= libmagic=32-bit;;
11507 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11508 libsuff=32 shlibsuff=N32 libmagic=N32;;
11509 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11510 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11511 *) libsuff= shlibsuff= libmagic=never-match;;
11512 esac
11513 ;;
11514 esac
11515 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11516 shlibpath_overrides_runpath=no
11517 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11518 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11519 hardcode_into_libs=yes
11520 ;;
11521
11522 # No shared lib support for Linux oldld, aout, or coff.
11523 linux*oldld* | linux*aout* | linux*coff*)
11524 dynamic_linker=no
11525 ;;
11526
11527 # This must be glibc/ELF.
11528 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11529 version_type=linux # correct to gnu/linux during the next big refactor
11530 need_lib_prefix=no
11531 need_version=no
11532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11533 soname_spec='${libname}${release}${shared_ext}$major'
11534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11535 shlibpath_var=LD_LIBRARY_PATH
11536 shlibpath_overrides_runpath=no
11537
11538 # Some binutils ld are patched to set DT_RUNPATH
11539 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11540 $as_echo_n "(cached) " >&6
11541 else
11542 lt_cv_shlibpath_overrides_runpath=no
11543 save_LDFLAGS=$LDFLAGS
11544 save_libdir=$libdir
11545 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11546 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11548 /* end confdefs.h. */
11549
11550 int
11551 main ()
11552 {
11553
11554 ;
11555 return 0;
11556 }
11557 _ACEOF
11558 if ac_fn_c_try_link "$LINENO"; then :
11559 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11560 lt_cv_shlibpath_overrides_runpath=yes
11561 fi
11562 fi
11563 rm -f core conftest.err conftest.$ac_objext \
11564 conftest$ac_exeext conftest.$ac_ext
11565 LDFLAGS=$save_LDFLAGS
11566 libdir=$save_libdir
11567
11568 fi
11569
11570 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11571
11572 # This implies no fast_install, which is unacceptable.
11573 # Some rework will be needed to allow for fast_install
11574 # before this can be enabled.
11575 hardcode_into_libs=yes
11576
11577 # Append ld.so.conf contents to the search path
11578 if test -f /etc/ld.so.conf; then
11579 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11580 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11581 fi
11582
11583 # We used to test for /lib/ld.so.1 and disable shared libraries on
11584 # powerpc, because MkLinux only supported shared libraries with the
11585 # GNU dynamic linker. Since this was broken with cross compilers,
11586 # most powerpc-linux boxes support dynamic linking these days and
11587 # people can always --disable-shared, the test was removed, and we
11588 # assume the GNU/Linux dynamic linker is in use.
11589 dynamic_linker='GNU/Linux ld.so'
11590 ;;
11591
11592 netbsdelf*-gnu)
11593 version_type=linux
11594 need_lib_prefix=no
11595 need_version=no
11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11597 soname_spec='${libname}${release}${shared_ext}$major'
11598 shlibpath_var=LD_LIBRARY_PATH
11599 shlibpath_overrides_runpath=no
11600 hardcode_into_libs=yes
11601 dynamic_linker='NetBSD ld.elf_so'
11602 ;;
11603
11604 netbsd*)
11605 version_type=sunos
11606 need_lib_prefix=no
11607 need_version=no
11608 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11610 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11611 dynamic_linker='NetBSD (a.out) ld.so'
11612 else
11613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11614 soname_spec='${libname}${release}${shared_ext}$major'
11615 dynamic_linker='NetBSD ld.elf_so'
11616 fi
11617 shlibpath_var=LD_LIBRARY_PATH
11618 shlibpath_overrides_runpath=yes
11619 hardcode_into_libs=yes
11620 ;;
11621
11622 newsos6)
11623 version_type=linux # correct to gnu/linux during the next big refactor
11624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11625 shlibpath_var=LD_LIBRARY_PATH
11626 shlibpath_overrides_runpath=yes
11627 ;;
11628
11629 *nto* | *qnx*)
11630 version_type=qnx
11631 need_lib_prefix=no
11632 need_version=no
11633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634 soname_spec='${libname}${release}${shared_ext}$major'
11635 shlibpath_var=LD_LIBRARY_PATH
11636 shlibpath_overrides_runpath=no
11637 hardcode_into_libs=yes
11638 dynamic_linker='ldqnx.so'
11639 ;;
11640
11641 openbsd*)
11642 version_type=sunos
11643 sys_lib_dlsearch_path_spec="/usr/lib"
11644 need_lib_prefix=no
11645 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11646 case $host_os in
11647 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11648 *) need_version=no ;;
11649 esac
11650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11652 shlibpath_var=LD_LIBRARY_PATH
11653 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11654 case $host_os in
11655 openbsd2.[89] | openbsd2.[89].*)
11656 shlibpath_overrides_runpath=no
11657 ;;
11658 *)
11659 shlibpath_overrides_runpath=yes
11660 ;;
11661 esac
11662 else
11663 shlibpath_overrides_runpath=yes
11664 fi
11665 ;;
11666
11667 os2*)
11668 libname_spec='$name'
11669 shrext_cmds=".dll"
11670 need_lib_prefix=no
11671 library_names_spec='$libname${shared_ext} $libname.a'
11672 dynamic_linker='OS/2 ld.exe'
11673 shlibpath_var=LIBPATH
11674 ;;
11675
11676 osf3* | osf4* | osf5*)
11677 version_type=osf
11678 need_lib_prefix=no
11679 need_version=no
11680 soname_spec='${libname}${release}${shared_ext}$major'
11681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11682 shlibpath_var=LD_LIBRARY_PATH
11683 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11684 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11685 ;;
11686
11687 rdos*)
11688 dynamic_linker=no
11689 ;;
11690
11691 solaris*)
11692 version_type=linux # correct to gnu/linux during the next big refactor
11693 need_lib_prefix=no
11694 need_version=no
11695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11696 soname_spec='${libname}${release}${shared_ext}$major'
11697 shlibpath_var=LD_LIBRARY_PATH
11698 shlibpath_overrides_runpath=yes
11699 hardcode_into_libs=yes
11700 # ldd complains unless libraries are executable
11701 postinstall_cmds='chmod +x $lib'
11702 ;;
11703
11704 sunos4*)
11705 version_type=sunos
11706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11707 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11708 shlibpath_var=LD_LIBRARY_PATH
11709 shlibpath_overrides_runpath=yes
11710 if test "$with_gnu_ld" = yes; then
11711 need_lib_prefix=no
11712 fi
11713 need_version=yes
11714 ;;
11715
11716 sysv4 | sysv4.3*)
11717 version_type=linux # correct to gnu/linux during the next big refactor
11718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11719 soname_spec='${libname}${release}${shared_ext}$major'
11720 shlibpath_var=LD_LIBRARY_PATH
11721 case $host_vendor in
11722 sni)
11723 shlibpath_overrides_runpath=no
11724 need_lib_prefix=no
11725 runpath_var=LD_RUN_PATH
11726 ;;
11727 siemens)
11728 need_lib_prefix=no
11729 ;;
11730 motorola)
11731 need_lib_prefix=no
11732 need_version=no
11733 shlibpath_overrides_runpath=no
11734 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11735 ;;
11736 esac
11737 ;;
11738
11739 sysv4*MP*)
11740 if test -d /usr/nec ;then
11741 version_type=linux # correct to gnu/linux during the next big refactor
11742 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11743 soname_spec='$libname${shared_ext}.$major'
11744 shlibpath_var=LD_LIBRARY_PATH
11745 fi
11746 ;;
11747
11748 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11749 version_type=freebsd-elf
11750 need_lib_prefix=no
11751 need_version=no
11752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11753 soname_spec='${libname}${release}${shared_ext}$major'
11754 shlibpath_var=LD_LIBRARY_PATH
11755 shlibpath_overrides_runpath=yes
11756 hardcode_into_libs=yes
11757 if test "$with_gnu_ld" = yes; then
11758 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11759 else
11760 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11761 case $host_os in
11762 sco3.2v5*)
11763 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11764 ;;
11765 esac
11766 fi
11767 sys_lib_dlsearch_path_spec='/usr/lib'
11768 ;;
11769
11770 tpf*)
11771 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11772 version_type=linux # correct to gnu/linux during the next big refactor
11773 need_lib_prefix=no
11774 need_version=no
11775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11776 shlibpath_var=LD_LIBRARY_PATH
11777 shlibpath_overrides_runpath=no
11778 hardcode_into_libs=yes
11779 ;;
11780
11781 uts4*)
11782 version_type=linux # correct to gnu/linux during the next big refactor
11783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11784 soname_spec='${libname}${release}${shared_ext}$major'
11785 shlibpath_var=LD_LIBRARY_PATH
11786 ;;
11787
11788 *)
11789 dynamic_linker=no
11790 ;;
11791 esac
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11793 $as_echo "$dynamic_linker" >&6; }
11794 test "$dynamic_linker" = no && can_build_shared=no
11795
11796 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11797 if test "$GCC" = yes; then
11798 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11799 fi
11800
11801 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11802 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11803 fi
11804 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11805 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11806 fi
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11900 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11901 hardcode_action=
11902 if test -n "$hardcode_libdir_flag_spec" ||
11903 test -n "$runpath_var" ||
11904 test "X$hardcode_automatic" = "Xyes" ; then
11905
11906 # We can hardcode non-existent directories.
11907 if test "$hardcode_direct" != no &&
11908 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11909 # have to relink, otherwise we might link with an installed library
11910 # when we should be linking with a yet-to-be-installed one
11911 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11912 test "$hardcode_minus_L" != no; then
11913 # Linking always hardcodes the temporary library directory.
11914 hardcode_action=relink
11915 else
11916 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11917 hardcode_action=immediate
11918 fi
11919 else
11920 # We cannot hardcode anything, or else we can only hardcode existing
11921 # directories.
11922 hardcode_action=unsupported
11923 fi
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11925 $as_echo "$hardcode_action" >&6; }
11926
11927 if test "$hardcode_action" = relink ||
11928 test "$inherit_rpath" = yes; then
11929 # Fast installation is not supported
11930 enable_fast_install=no
11931 elif test "$shlibpath_overrides_runpath" = yes ||
11932 test "$enable_shared" = no; then
11933 # Fast installation is not necessary
11934 enable_fast_install=needless
11935 fi
11936
11937
11938
11939
11940
11941
11942 if test "x$enable_dlopen" != xyes; then
11943 enable_dlopen=unknown
11944 enable_dlopen_self=unknown
11945 enable_dlopen_self_static=unknown
11946 else
11947 lt_cv_dlopen=no
11948 lt_cv_dlopen_libs=
11949
11950 case $host_os in
11951 beos*)
11952 lt_cv_dlopen="load_add_on"
11953 lt_cv_dlopen_libs=
11954 lt_cv_dlopen_self=yes
11955 ;;
11956
11957 mingw* | pw32* | cegcc*)
11958 lt_cv_dlopen="LoadLibrary"
11959 lt_cv_dlopen_libs=
11960 ;;
11961
11962 cygwin*)
11963 lt_cv_dlopen="dlopen"
11964 lt_cv_dlopen_libs=
11965 ;;
11966
11967 darwin*)
11968 # if libdl is installed we need to link against it
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11970 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11971 if ${ac_cv_lib_dl_dlopen+:} false; then :
11972 $as_echo_n "(cached) " >&6
11973 else
11974 ac_check_lib_save_LIBS=$LIBS
11975 LIBS="-ldl $LIBS"
11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11977 /* end confdefs.h. */
11978
11979 /* Override any GCC internal prototype to avoid an error.
11980 Use char because int might match the return type of a GCC
11981 builtin and then its argument prototype would still apply. */
11982 #ifdef __cplusplus
11983 extern "C"
11984 #endif
11985 char dlopen ();
11986 int
11987 main ()
11988 {
11989 return dlopen ();
11990 ;
11991 return 0;
11992 }
11993 _ACEOF
11994 if ac_fn_c_try_link "$LINENO"; then :
11995 ac_cv_lib_dl_dlopen=yes
11996 else
11997 ac_cv_lib_dl_dlopen=no
11998 fi
11999 rm -f core conftest.err conftest.$ac_objext \
12000 conftest$ac_exeext conftest.$ac_ext
12001 LIBS=$ac_check_lib_save_LIBS
12002 fi
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12004 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12005 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12006 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12007 else
12008
12009 lt_cv_dlopen="dyld"
12010 lt_cv_dlopen_libs=
12011 lt_cv_dlopen_self=yes
12012
12013 fi
12014
12015 ;;
12016
12017 *)
12018 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12019 if test "x$ac_cv_func_shl_load" = xyes; then :
12020 lt_cv_dlopen="shl_load"
12021 else
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12023 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12024 if ${ac_cv_lib_dld_shl_load+:} false; then :
12025 $as_echo_n "(cached) " >&6
12026 else
12027 ac_check_lib_save_LIBS=$LIBS
12028 LIBS="-ldld $LIBS"
12029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12030 /* end confdefs.h. */
12031
12032 /* Override any GCC internal prototype to avoid an error.
12033 Use char because int might match the return type of a GCC
12034 builtin and then its argument prototype would still apply. */
12035 #ifdef __cplusplus
12036 extern "C"
12037 #endif
12038 char shl_load ();
12039 int
12040 main ()
12041 {
12042 return shl_load ();
12043 ;
12044 return 0;
12045 }
12046 _ACEOF
12047 if ac_fn_c_try_link "$LINENO"; then :
12048 ac_cv_lib_dld_shl_load=yes
12049 else
12050 ac_cv_lib_dld_shl_load=no
12051 fi
12052 rm -f core conftest.err conftest.$ac_objext \
12053 conftest$ac_exeext conftest.$ac_ext
12054 LIBS=$ac_check_lib_save_LIBS
12055 fi
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12057 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12058 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12059 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12060 else
12061 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12062 if test "x$ac_cv_func_dlopen" = xyes; then :
12063 lt_cv_dlopen="dlopen"
12064 else
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12066 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12067 if ${ac_cv_lib_dl_dlopen+:} false; then :
12068 $as_echo_n "(cached) " >&6
12069 else
12070 ac_check_lib_save_LIBS=$LIBS
12071 LIBS="-ldl $LIBS"
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12074
12075 /* Override any GCC internal prototype to avoid an error.
12076 Use char because int might match the return type of a GCC
12077 builtin and then its argument prototype would still apply. */
12078 #ifdef __cplusplus
12079 extern "C"
12080 #endif
12081 char dlopen ();
12082 int
12083 main ()
12084 {
12085 return dlopen ();
12086 ;
12087 return 0;
12088 }
12089 _ACEOF
12090 if ac_fn_c_try_link "$LINENO"; then :
12091 ac_cv_lib_dl_dlopen=yes
12092 else
12093 ac_cv_lib_dl_dlopen=no
12094 fi
12095 rm -f core conftest.err conftest.$ac_objext \
12096 conftest$ac_exeext conftest.$ac_ext
12097 LIBS=$ac_check_lib_save_LIBS
12098 fi
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12100 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12101 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12102 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12103 else
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12105 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12106 if ${ac_cv_lib_svld_dlopen+:} false; then :
12107 $as_echo_n "(cached) " >&6
12108 else
12109 ac_check_lib_save_LIBS=$LIBS
12110 LIBS="-lsvld $LIBS"
12111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112 /* end confdefs.h. */
12113
12114 /* Override any GCC internal prototype to avoid an error.
12115 Use char because int might match the return type of a GCC
12116 builtin and then its argument prototype would still apply. */
12117 #ifdef __cplusplus
12118 extern "C"
12119 #endif
12120 char dlopen ();
12121 int
12122 main ()
12123 {
12124 return dlopen ();
12125 ;
12126 return 0;
12127 }
12128 _ACEOF
12129 if ac_fn_c_try_link "$LINENO"; then :
12130 ac_cv_lib_svld_dlopen=yes
12131 else
12132 ac_cv_lib_svld_dlopen=no
12133 fi
12134 rm -f core conftest.err conftest.$ac_objext \
12135 conftest$ac_exeext conftest.$ac_ext
12136 LIBS=$ac_check_lib_save_LIBS
12137 fi
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12139 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12140 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12141 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12142 else
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12144 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12145 if ${ac_cv_lib_dld_dld_link+:} false; then :
12146 $as_echo_n "(cached) " >&6
12147 else
12148 ac_check_lib_save_LIBS=$LIBS
12149 LIBS="-ldld $LIBS"
12150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h. */
12152
12153 /* Override any GCC internal prototype to avoid an error.
12154 Use char because int might match the return type of a GCC
12155 builtin and then its argument prototype would still apply. */
12156 #ifdef __cplusplus
12157 extern "C"
12158 #endif
12159 char dld_link ();
12160 int
12161 main ()
12162 {
12163 return dld_link ();
12164 ;
12165 return 0;
12166 }
12167 _ACEOF
12168 if ac_fn_c_try_link "$LINENO"; then :
12169 ac_cv_lib_dld_dld_link=yes
12170 else
12171 ac_cv_lib_dld_dld_link=no
12172 fi
12173 rm -f core conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
12175 LIBS=$ac_check_lib_save_LIBS
12176 fi
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12178 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12179 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12180 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12181 fi
12182
12183
12184 fi
12185
12186
12187 fi
12188
12189
12190 fi
12191
12192
12193 fi
12194
12195
12196 fi
12197
12198 ;;
12199 esac
12200
12201 if test "x$lt_cv_dlopen" != xno; then
12202 enable_dlopen=yes
12203 else
12204 enable_dlopen=no
12205 fi
12206
12207 case $lt_cv_dlopen in
12208 dlopen)
12209 save_CPPFLAGS="$CPPFLAGS"
12210 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12211
12212 save_LDFLAGS="$LDFLAGS"
12213 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12214
12215 save_LIBS="$LIBS"
12216 LIBS="$lt_cv_dlopen_libs $LIBS"
12217
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12219 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12220 if ${lt_cv_dlopen_self+:} false; then :
12221 $as_echo_n "(cached) " >&6
12222 else
12223 if test "$cross_compiling" = yes; then :
12224 lt_cv_dlopen_self=cross
12225 else
12226 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12227 lt_status=$lt_dlunknown
12228 cat > conftest.$ac_ext <<_LT_EOF
12229 #line $LINENO "configure"
12230 #include "confdefs.h"
12231
12232 #if HAVE_DLFCN_H
12233 #include <dlfcn.h>
12234 #endif
12235
12236 #include <stdio.h>
12237
12238 #ifdef RTLD_GLOBAL
12239 # define LT_DLGLOBAL RTLD_GLOBAL
12240 #else
12241 # ifdef DL_GLOBAL
12242 # define LT_DLGLOBAL DL_GLOBAL
12243 # else
12244 # define LT_DLGLOBAL 0
12245 # endif
12246 #endif
12247
12248 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12249 find out it does not work in some platform. */
12250 #ifndef LT_DLLAZY_OR_NOW
12251 # ifdef RTLD_LAZY
12252 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12253 # else
12254 # ifdef DL_LAZY
12255 # define LT_DLLAZY_OR_NOW DL_LAZY
12256 # else
12257 # ifdef RTLD_NOW
12258 # define LT_DLLAZY_OR_NOW RTLD_NOW
12259 # else
12260 # ifdef DL_NOW
12261 # define LT_DLLAZY_OR_NOW DL_NOW
12262 # else
12263 # define LT_DLLAZY_OR_NOW 0
12264 # endif
12265 # endif
12266 # endif
12267 # endif
12268 #endif
12269
12270 /* When -fvisbility=hidden is used, assume the code has been annotated
12271 correspondingly for the symbols needed. */
12272 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12273 int fnord () __attribute__((visibility("default")));
12274 #endif
12275
12276 int fnord () { return 42; }
12277 int main ()
12278 {
12279 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12280 int status = $lt_dlunknown;
12281
12282 if (self)
12283 {
12284 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12285 else
12286 {
12287 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12288 else puts (dlerror ());
12289 }
12290 /* dlclose (self); */
12291 }
12292 else
12293 puts (dlerror ());
12294
12295 return status;
12296 }
12297 _LT_EOF
12298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12299 (eval $ac_link) 2>&5
12300 ac_status=$?
12301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12302 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12303 (./conftest; exit; ) >&5 2>/dev/null
12304 lt_status=$?
12305 case x$lt_status in
12306 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12307 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12308 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12309 esac
12310 else :
12311 # compilation failed
12312 lt_cv_dlopen_self=no
12313 fi
12314 fi
12315 rm -fr conftest*
12316
12317
12318 fi
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12320 $as_echo "$lt_cv_dlopen_self" >&6; }
12321
12322 if test "x$lt_cv_dlopen_self" = xyes; then
12323 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12325 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12326 if ${lt_cv_dlopen_self_static+:} false; then :
12327 $as_echo_n "(cached) " >&6
12328 else
12329 if test "$cross_compiling" = yes; then :
12330 lt_cv_dlopen_self_static=cross
12331 else
12332 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12333 lt_status=$lt_dlunknown
12334 cat > conftest.$ac_ext <<_LT_EOF
12335 #line $LINENO "configure"
12336 #include "confdefs.h"
12337
12338 #if HAVE_DLFCN_H
12339 #include <dlfcn.h>
12340 #endif
12341
12342 #include <stdio.h>
12343
12344 #ifdef RTLD_GLOBAL
12345 # define LT_DLGLOBAL RTLD_GLOBAL
12346 #else
12347 # ifdef DL_GLOBAL
12348 # define LT_DLGLOBAL DL_GLOBAL
12349 # else
12350 # define LT_DLGLOBAL 0
12351 # endif
12352 #endif
12353
12354 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12355 find out it does not work in some platform. */
12356 #ifndef LT_DLLAZY_OR_NOW
12357 # ifdef RTLD_LAZY
12358 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12359 # else
12360 # ifdef DL_LAZY
12361 # define LT_DLLAZY_OR_NOW DL_LAZY
12362 # else
12363 # ifdef RTLD_NOW
12364 # define LT_DLLAZY_OR_NOW RTLD_NOW
12365 # else
12366 # ifdef DL_NOW
12367 # define LT_DLLAZY_OR_NOW DL_NOW
12368 # else
12369 # define LT_DLLAZY_OR_NOW 0
12370 # endif
12371 # endif
12372 # endif
12373 # endif
12374 #endif
12375
12376 /* When -fvisbility=hidden is used, assume the code has been annotated
12377 correspondingly for the symbols needed. */
12378 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12379 int fnord () __attribute__((visibility("default")));
12380 #endif
12381
12382 int fnord () { return 42; }
12383 int main ()
12384 {
12385 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12386 int status = $lt_dlunknown;
12387
12388 if (self)
12389 {
12390 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12391 else
12392 {
12393 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12394 else puts (dlerror ());
12395 }
12396 /* dlclose (self); */
12397 }
12398 else
12399 puts (dlerror ());
12400
12401 return status;
12402 }
12403 _LT_EOF
12404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12405 (eval $ac_link) 2>&5
12406 ac_status=$?
12407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12408 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12409 (./conftest; exit; ) >&5 2>/dev/null
12410 lt_status=$?
12411 case x$lt_status in
12412 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12413 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12414 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12415 esac
12416 else :
12417 # compilation failed
12418 lt_cv_dlopen_self_static=no
12419 fi
12420 fi
12421 rm -fr conftest*
12422
12423
12424 fi
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12426 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12427 fi
12428
12429 CPPFLAGS="$save_CPPFLAGS"
12430 LDFLAGS="$save_LDFLAGS"
12431 LIBS="$save_LIBS"
12432 ;;
12433 esac
12434
12435 case $lt_cv_dlopen_self in
12436 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12437 *) enable_dlopen_self=unknown ;;
12438 esac
12439
12440 case $lt_cv_dlopen_self_static in
12441 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12442 *) enable_dlopen_self_static=unknown ;;
12443 esac
12444 fi
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462 striplib=
12463 old_striplib=
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12465 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12466 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12467 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12468 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12470 $as_echo "yes" >&6; }
12471 else
12472 # FIXME - insert some real tests, host_os isn't really good enough
12473 case $host_os in
12474 darwin*)
12475 if test -n "$STRIP" ; then
12476 striplib="$STRIP -x"
12477 old_striplib="$STRIP -S"
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12479 $as_echo "yes" >&6; }
12480 else
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12482 $as_echo "no" >&6; }
12483 fi
12484 ;;
12485 *)
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12487 $as_echo "no" >&6; }
12488 ;;
12489 esac
12490 fi
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503 # Report which library types will actually be built
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12505 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12507 $as_echo "$can_build_shared" >&6; }
12508
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12510 $as_echo_n "checking whether to build shared libraries... " >&6; }
12511 test "$can_build_shared" = "no" && enable_shared=no
12512
12513 # On AIX, shared libraries and static libraries use the same namespace, and
12514 # are all built from PIC.
12515 case $host_os in
12516 aix3*)
12517 test "$enable_shared" = yes && enable_static=no
12518 if test -n "$RANLIB"; then
12519 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12520 postinstall_cmds='$RANLIB $lib'
12521 fi
12522 ;;
12523
12524 aix[4-9]*)
12525 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12526 test "$enable_shared" = yes && enable_static=no
12527 fi
12528 ;;
12529 esac
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12531 $as_echo "$enable_shared" >&6; }
12532
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12534 $as_echo_n "checking whether to build static libraries... " >&6; }
12535 # Make sure either enable_shared or enable_static is yes.
12536 test "$enable_shared" = yes || enable_static=yes
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12538 $as_echo "$enable_static" >&6; }
12539
12540
12541
12542
12543 fi
12544 ac_ext=c
12545 ac_cpp='$CPP $CPPFLAGS'
12546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12549
12550 CC="$lt_save_CC"
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566 ac_config_commands="$ac_config_commands libtool"
12567
12568
12569
12570
12571 # Only expand once:
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12583 if test -n "$ac_tool_prefix"; then
12584 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12585 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12587 $as_echo_n "checking for $ac_word... " >&6; }
12588 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12589 $as_echo_n "(cached) " >&6
12590 else
12591 case $PKG_CONFIG in
12592 [\\/]* | ?:[\\/]*)
12593 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12594 ;;
12595 *)
12596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597 for as_dir in $PATH
12598 do
12599 IFS=$as_save_IFS
12600 test -z "$as_dir" && as_dir=.
12601 for ac_exec_ext in '' $ac_executable_extensions; do
12602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12603 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12605 break 2
12606 fi
12607 done
12608 done
12609 IFS=$as_save_IFS
12610
12611 ;;
12612 esac
12613 fi
12614 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12615 if test -n "$PKG_CONFIG"; then
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12617 $as_echo "$PKG_CONFIG" >&6; }
12618 else
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620 $as_echo "no" >&6; }
12621 fi
12622
12623
12624 fi
12625 if test -z "$ac_cv_path_PKG_CONFIG"; then
12626 ac_pt_PKG_CONFIG=$PKG_CONFIG
12627 # Extract the first word of "pkg-config", so it can be a program name with args.
12628 set dummy pkg-config; ac_word=$2
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12630 $as_echo_n "checking for $ac_word... " >&6; }
12631 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12632 $as_echo_n "(cached) " >&6
12633 else
12634 case $ac_pt_PKG_CONFIG in
12635 [\\/]* | ?:[\\/]*)
12636 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12637 ;;
12638 *)
12639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12640 for as_dir in $PATH
12641 do
12642 IFS=$as_save_IFS
12643 test -z "$as_dir" && as_dir=.
12644 for ac_exec_ext in '' $ac_executable_extensions; do
12645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12646 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12648 break 2
12649 fi
12650 done
12651 done
12652 IFS=$as_save_IFS
12653
12654 ;;
12655 esac
12656 fi
12657 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12658 if test -n "$ac_pt_PKG_CONFIG"; then
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12660 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12661 else
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12663 $as_echo "no" >&6; }
12664 fi
12665
12666 if test "x$ac_pt_PKG_CONFIG" = x; then
12667 PKG_CONFIG=""
12668 else
12669 case $cross_compiling:$ac_tool_warned in
12670 yes:)
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12673 ac_tool_warned=yes ;;
12674 esac
12675 PKG_CONFIG=$ac_pt_PKG_CONFIG
12676 fi
12677 else
12678 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12679 fi
12680
12681 fi
12682 if test -n "$PKG_CONFIG"; then
12683 _pkg_min_version=0.9.0
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12685 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12686 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12688 $as_echo "yes" >&6; }
12689 else
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12691 $as_echo "no" >&6; }
12692 PKG_CONFIG=""
12693 fi
12694 fi
12695
12696 pkg_failed=no
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
12698 $as_echo_n "checking for GTK... " >&6; }
12699
12700 if test -n "$GTK_CFLAGS"; then
12701 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
12702 elif test -n "$PKG_CONFIG"; then
12703 if test -n "$PKG_CONFIG" && \
12704 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 gdk-3.0 libxml-2.0\""; } >&5
12705 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 gdk-3.0 libxml-2.0") 2>&5
12706 ac_status=$?
12707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12708 test $ac_status = 0; }; then
12709 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 gdk-3.0 libxml-2.0" 2>/dev/null`
12710 test "x$?" != "x0" && pkg_failed=yes
12711 else
12712 pkg_failed=yes
12713 fi
12714 else
12715 pkg_failed=untried
12716 fi
12717 if test -n "$GTK_LIBS"; then
12718 pkg_cv_GTK_LIBS="$GTK_LIBS"
12719 elif test -n "$PKG_CONFIG"; then
12720 if test -n "$PKG_CONFIG" && \
12721 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 gdk-3.0 libxml-2.0\""; } >&5
12722 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 gdk-3.0 libxml-2.0") 2>&5
12723 ac_status=$?
12724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12725 test $ac_status = 0; }; then
12726 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 gdk-3.0 libxml-2.0" 2>/dev/null`
12727 test "x$?" != "x0" && pkg_failed=yes
12728 else
12729 pkg_failed=yes
12730 fi
12731 else
12732 pkg_failed=untried
12733 fi
12734
12735
12736
12737 if test $pkg_failed = yes; then
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12739 $as_echo "no" >&6; }
12740
12741 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12742 _pkg_short_errors_supported=yes
12743 else
12744 _pkg_short_errors_supported=no
12745 fi
12746 if test $_pkg_short_errors_supported = yes; then
12747 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 gdk-3.0 libxml-2.0" 2>&1`
12748 else
12749 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 gdk-3.0 libxml-2.0" 2>&1`
12750 fi
12751 # Put the nasty error message in config.log where it belongs
12752 echo "$GTK_PKG_ERRORS" >&5
12753
12754 exit
12755 elif test $pkg_failed = untried; then
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12757 $as_echo "no" >&6; }
12758 exit
12759 else
12760 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
12761 GTK_LIBS=$pkg_cv_GTK_LIBS
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12763 $as_echo "yes" >&6; }
12764
12765 fi
12766
12767
12768
12769 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
12770 if test "x$ac_cv_header_png_h" = xyes; then :
12771
12772 else
12773 as_fn_error $? "Please install libpng >= 1.0.12" "$LINENO" 5
12774 fi
12775
12776
12777
12778
12779 $as_echo "@%:@define HAVE_INET_ATON 1" >>confdefs.h
12780
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
12782 $as_echo_n "checking for inet_aton in -lc... " >&6; }
12783 if ${ac_cv_lib_c_inet_aton+:} false; then :
12784 $as_echo_n "(cached) " >&6
12785 else
12786 ac_check_lib_save_LIBS=$LIBS
12787 LIBS="-lc $LIBS"
12788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12789 /* end confdefs.h. */
12790
12791 /* Override any GCC internal prototype to avoid an error.
12792 Use char because int might match the return type of a GCC
12793 builtin and then its argument prototype would still apply. */
12794 #ifdef __cplusplus
12795 extern "C"
12796 #endif
12797 char inet_aton ();
12798 int
12799 main ()
12800 {
12801 return inet_aton ();
12802 ;
12803 return 0;
12804 }
12805 _ACEOF
12806 if ac_fn_c_try_link "$LINENO"; then :
12807 ac_cv_lib_c_inet_aton=yes
12808 else
12809 ac_cv_lib_c_inet_aton=no
12810 fi
12811 rm -f core conftest.err conftest.$ac_objext \
12812 conftest$ac_exeext conftest.$ac_ext
12813 LIBS=$ac_check_lib_save_LIBS
12814 fi
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
12816 $as_echo "$ac_cv_lib_c_inet_aton" >&6; }
12817 if test "x$ac_cv_lib_c_inet_aton" = xyes; then :
12818 $as_echo "@%:@define HAVE_INET_ATON 1" >>confdefs.h
12819
12820 fi
12821
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
12823 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
12824 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
12825 $as_echo_n "(cached) " >&6
12826 else
12827 ac_check_lib_save_LIBS=$LIBS
12828 LIBS="-lresolv $LIBS"
12829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h. */
12831
12832 /* Override any GCC internal prototype to avoid an error.
12833 Use char because int might match the return type of a GCC
12834 builtin and then its argument prototype would still apply. */
12835 #ifdef __cplusplus
12836 extern "C"
12837 #endif
12838 char inet_aton ();
12839 int
12840 main ()
12841 {
12842 return inet_aton ();
12843 ;
12844 return 0;
12845 }
12846 _ACEOF
12847 if ac_fn_c_try_link "$LINENO"; then :
12848 ac_cv_lib_resolv_inet_aton=yes
12849 else
12850 ac_cv_lib_resolv_inet_aton=no
12851 fi
12852 rm -f core conftest.err conftest.$ac_objext \
12853 conftest$ac_exeext conftest.$ac_ext
12854 LIBS=$ac_check_lib_save_LIBS
12855 fi
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
12857 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
12858 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
12859 $as_echo "@%:@define HAVE_INET_ATON 1" >>confdefs.h
12860
12861 fi
12862
12863
12864
12865 cat >>confdefs.h <<_ACEOF
12866 @%:@define DEBUG 0
12867 _ACEOF
12868
12869
12870
12871 cat >>confdefs.h <<_ACEOF
12872 @%:@define PACKAGE "${PACKAGE}"
12873 _ACEOF
12874
12875
12876 cat >>confdefs.h <<_ACEOF
12877 @%:@define VERSION "${VERSION}"
12878 _ACEOF
12879
12880
12881
12882
12883 if test "x${datarootdir}" = 'x${prefix}/share'; then
12884 if test "x${prefix}" = "xNONE"; then
12885
12886 cat >>confdefs.h <<_ACEOF
12887 @%:@define PACKAGE_DATA_DIR "${ac_default_prefix}/share/${PACKAGE}"
12888 _ACEOF
12889
12890 else
12891
12892 cat >>confdefs.h <<_ACEOF
12893 @%:@define PACKAGE_DATA_DIR "${prefix}/share/${PACKAGE}"
12894 _ACEOF
12895
12896 fi
12897 else
12898
12899 cat >>confdefs.h <<_ACEOF
12900 @%:@define PACKAGE_DATA_DIR "${datadir}/${PACKAGE}"
12901 _ACEOF
12902
12903 fi
12904
12905 packagesrcdir=`cd $srcdir && pwd`
12906
12907 cat >>confdefs.h <<_ACEOF
12908 @%:@define PACKAGE_SOURCE_DIR "${packagesrcdir}"
12909 _ACEOF
12910
12911
12912 # if test "x$GCC" = "xyes"; then \
12913 # CFLAGS="-Wall -ffast-math -funroll-all-loops -fomit-frame-pointer -O9"; \
12914 # CFLAGS="-g"; \
12915 # fi
12916
12917 if test "x$GCC" = "xyes"; then \
12918 CFLAGS+=" -Wall -Wextra -ggdb"; \
12919 fi
12920
12921 ac_config_files="$ac_config_files Makefile src/Makefile"
12922
12923 cat >confcache <<\_ACEOF
12924 # This file is a shell script that caches the results of configure
12925 # tests run on this system so they can be shared between configure
12926 # scripts and configure runs, see configure's option --config-cache.
12927 # It is not useful on other systems. If it contains results you don't
12928 # want to keep, you may remove or edit it.
12929 #
12930 # config.status only pays attention to the cache file if you give it
12931 # the --recheck option to rerun configure.
12932 #
12933 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12934 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12935 # following values.
12936
12937 _ACEOF
12938
12939 # The following way of writing the cache mishandles newlines in values,
12940 # but we know of no workaround that is simple, portable, and efficient.
12941 # So, we kill variables containing newlines.
12942 # Ultrix sh set writes to stderr and can't be redirected directly,
12943 # and sets the high bit in the cache file unless we assign to the vars.
12944 (
12945 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12946 eval ac_val=\$$ac_var
12947 case $ac_val in #(
12948 *${as_nl}*)
12949 case $ac_var in #(
12950 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12951 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12952 esac
12953 case $ac_var in #(
12954 _ | IFS | as_nl) ;; #(
12955 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12956 *) { eval $ac_var=; unset $ac_var;} ;;
12957 esac ;;
12958 esac
12959 done
12960
12961 (set) 2>&1 |
12962 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12963 *${as_nl}ac_space=\ *)
12964 # `set' does not quote correctly, so add quotes: double-quote
12965 # substitution turns \\\\ into \\, and sed turns \\ into \.
12966 sed -n \
12967 "s/'/'\\\\''/g;
12968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12969 ;; #(
12970 *)
12971 # `set' quotes correctly as required by POSIX, so do not add quotes.
12972 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12973 ;;
12974 esac |
12975 sort
12976 ) |
12977 sed '
12978 /^ac_cv_env_/b end
12979 t clear
12980 :clear
12981 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12982 t end
12983 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12984 :end' >>confcache
12985 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12986 if test -w "$cache_file"; then
12987 if test "x$cache_file" != "x/dev/null"; then
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12989 $as_echo "$as_me: updating cache $cache_file" >&6;}
12990 if test ! -f "$cache_file" || test -h "$cache_file"; then
12991 cat confcache >"$cache_file"
12992 else
12993 case $cache_file in #(
12994 */* | ?:*)
12995 mv -f confcache "$cache_file"$$ &&
12996 mv -f "$cache_file"$$ "$cache_file" ;; #(
12997 *)
12998 mv -f confcache "$cache_file" ;;
12999 esac
13000 fi
13001 fi
13002 else
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13004 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13005 fi
13006 fi
13007 rm -f confcache
13008
13009 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13010 # Let make expand exec_prefix.
13011 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13012
13013 DEFS=-DHAVE_CONFIG_H
13014
13015 ac_libobjs=
13016 ac_ltlibobjs=
13017 U=
13018 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
13019 # 1. Remove the extension, and $U if already installed.
13020 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13021 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13022 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13023 # will be set to the directory where LIBOBJS objects are built.
13024 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13025 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13026 done
13027 LIB@&t@OBJS=$ac_libobjs
13028
13029 LTLIBOBJS=$ac_ltlibobjs
13030
13031
13032 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13033 as_fn_error $? "conditional \"AMDEP\" was never defined.
13034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13035 fi
13036 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13037 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13039 fi
13040 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13041 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13043 fi
13044 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13045 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13047 fi
13048
13049 : "${CONFIG_STATUS=./config.status}"
13050 ac_write_fail=0
13051 ac_clean_files_save=$ac_clean_files
13052 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13054 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13055 as_write_fail=0
13056 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13057 #! $SHELL
13058 # Generated by $as_me.
13059 # Run this file to recreate the current configuration.
13060 # Compiler output produced by configure, useful for debugging
13061 # configure, is in config.log if it exists.
13062
13063 debug=false
13064 ac_cs_recheck=false
13065 ac_cs_silent=false
13066
13067 SHELL=\${CONFIG_SHELL-$SHELL}
13068 export SHELL
13069 _ASEOF
13070 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13071 ## -------------------- ##
13072 ## M4sh Initialization. ##
13073 ## -------------------- ##
13074
13075 # Be more Bourne compatible
13076 DUALCASE=1; export DUALCASE # for MKS sh
13077 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13078 emulate sh
13079 NULLCMD=:
13080 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13081 # is contrary to our usage. Disable this feature.
13082 alias -g '${1+"$@"}'='"$@"'
13083 setopt NO_GLOB_SUBST
13084 else
13085 case `(set -o) 2>/dev/null` in @%:@(
13086 *posix*) :
13087 set -o posix ;; @%:@(
13088 *) :
13089 ;;
13090 esac
13091 fi
13092
13093
13094 as_nl='
13095 '
13096 export as_nl
13097 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13098 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13099 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13100 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13101 # Prefer a ksh shell builtin over an external printf program on Solaris,
13102 # but without wasting forks for bash or zsh.
13103 if test -z "$BASH_VERSION$ZSH_VERSION" \
13104 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13105 as_echo='print -r --'
13106 as_echo_n='print -rn --'
13107 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13108 as_echo='printf %s\n'
13109 as_echo_n='printf %s'
13110 else
13111 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13112 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13113 as_echo_n='/usr/ucb/echo -n'
13114 else
13115 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13116 as_echo_n_body='eval
13117 arg=$1;
13118 case $arg in @%:@(
13119 *"$as_nl"*)
13120 expr "X$arg" : "X\\(.*\\)$as_nl";
13121 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13122 esac;
13123 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13124 '
13125 export as_echo_n_body
13126 as_echo_n='sh -c $as_echo_n_body as_echo'
13127 fi
13128 export as_echo_body
13129 as_echo='sh -c $as_echo_body as_echo'
13130 fi
13131
13132 # The user is always right.
13133 if test "${PATH_SEPARATOR+set}" != set; then
13134 PATH_SEPARATOR=:
13135 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13136 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13137 PATH_SEPARATOR=';'
13138 }
13139 fi
13140
13141
13142 # IFS
13143 # We need space, tab and new line, in precisely that order. Quoting is
13144 # there to prevent editors from complaining about space-tab.
13145 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13146 # splitting by setting IFS to empty value.)
13147 IFS=" "" $as_nl"
13148
13149 # Find who we are. Look in the path if we contain no directory separator.
13150 as_myself=
13151 case $0 in @%:@((
13152 *[\\/]* ) as_myself=$0 ;;
13153 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13154 for as_dir in $PATH
13155 do
13156 IFS=$as_save_IFS
13157 test -z "$as_dir" && as_dir=.
13158 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13159 done
13160 IFS=$as_save_IFS
13161
13162 ;;
13163 esac
13164 # We did not find ourselves, most probably we were run as `sh COMMAND'
13165 # in which case we are not to be found in the path.
13166 if test "x$as_myself" = x; then
13167 as_myself=$0
13168 fi
13169 if test ! -f "$as_myself"; then
13170 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13171 exit 1
13172 fi
13173
13174 # Unset variables that we do not need and which cause bugs (e.g. in
13175 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13176 # suppresses any "Segmentation fault" message there. '((' could
13177 # trigger a bug in pdksh 5.2.14.
13178 for as_var in BASH_ENV ENV MAIL MAILPATH
13179 do eval test x\${$as_var+set} = xset \
13180 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13181 done
13182 PS1='$ '
13183 PS2='> '
13184 PS4='+ '
13185
13186 # NLS nuisances.
13187 LC_ALL=C
13188 export LC_ALL
13189 LANGUAGE=C
13190 export LANGUAGE
13191
13192 # CDPATH.
13193 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13194
13195
13196 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
13197 @%:@ ----------------------------------------
13198 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13199 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13200 @%:@ script with STATUS, using 1 if that was 0.
13201 as_fn_error ()
13202 {
13203 as_status=$1; test $as_status -eq 0 && as_status=1
13204 if test "$4"; then
13205 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13206 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13207 fi
13208 $as_echo "$as_me: error: $2" >&2
13209 as_fn_exit $as_status
13210 } @%:@ as_fn_error
13211
13212
13213 @%:@ as_fn_set_status STATUS
13214 @%:@ -----------------------
13215 @%:@ Set @S|@? to STATUS, without forking.
13216 as_fn_set_status ()
13217 {
13218 return $1
13219 } @%:@ as_fn_set_status
13220
13221 @%:@ as_fn_exit STATUS
13222 @%:@ -----------------
13223 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13224 as_fn_exit ()
13225 {
13226 set +e
13227 as_fn_set_status $1
13228 exit $1
13229 } @%:@ as_fn_exit
13230
13231 @%:@ as_fn_unset VAR
13232 @%:@ ---------------
13233 @%:@ Portably unset VAR.
13234 as_fn_unset ()
13235 {
13236 { eval $1=; unset $1;}
13237 }
13238 as_unset=as_fn_unset
13239 @%:@ as_fn_append VAR VALUE
13240 @%:@ ----------------------
13241 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
13242 @%:@ advantage of any shell optimizations that allow amortized linear growth over
13243 @%:@ repeated appends, instead of the typical quadratic growth present in naive
13244 @%:@ implementations.
13245 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13246 eval 'as_fn_append ()
13247 {
13248 eval $1+=\$2
13249 }'
13250 else
13251 as_fn_append ()
13252 {
13253 eval $1=\$$1\$2
13254 }
13255 fi # as_fn_append
13256
13257 @%:@ as_fn_arith ARG...
13258 @%:@ ------------------
13259 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
13260 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
13261 @%:@ must be portable across @S|@(()) and expr.
13262 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13263 eval 'as_fn_arith ()
13264 {
13265 as_val=$(( $* ))
13266 }'
13267 else
13268 as_fn_arith ()
13269 {
13270 as_val=`expr "$@" || test $? -eq 1`
13271 }
13272 fi # as_fn_arith
13273
13274
13275 if expr a : '\(a\)' >/dev/null 2>&1 &&
13276 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13277 as_expr=expr
13278 else
13279 as_expr=false
13280 fi
13281
13282 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13283 as_basename=basename
13284 else
13285 as_basename=false
13286 fi
13287
13288 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13289 as_dirname=dirname
13290 else
13291 as_dirname=false
13292 fi
13293
13294 as_me=`$as_basename -- "$0" ||
13295 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13296 X"$0" : 'X\(//\)$' \| \
13297 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13298 $as_echo X/"$0" |
13299 sed '/^.*\/\([^/][^/]*\)\/*$/{
13300 s//\1/
13301 q
13302 }
13303 /^X\/\(\/\/\)$/{
13304 s//\1/
13305 q
13306 }
13307 /^X\/\(\/\).*/{
13308 s//\1/
13309 q
13310 }
13311 s/.*/./; q'`
13312
13313 # Avoid depending upon Character Ranges.
13314 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13315 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13316 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13317 as_cr_digits='0123456789'
13318 as_cr_alnum=$as_cr_Letters$as_cr_digits
13319
13320 ECHO_C= ECHO_N= ECHO_T=
13321 case `echo -n x` in @%:@(((((
13322 -n*)
13323 case `echo 'xy\c'` in
13324 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13325 xy) ECHO_C='\c';;
13326 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13327 ECHO_T=' ';;
13328 esac;;
13329 *)
13330 ECHO_N='-n';;
13331 esac
13332
13333 rm -f conf$$ conf$$.exe conf$$.file
13334 if test -d conf$$.dir; then
13335 rm -f conf$$.dir/conf$$.file
13336 else
13337 rm -f conf$$.dir
13338 mkdir conf$$.dir 2>/dev/null
13339 fi
13340 if (echo >conf$$.file) 2>/dev/null; then
13341 if ln -s conf$$.file conf$$ 2>/dev/null; then
13342 as_ln_s='ln -s'
13343 # ... but there are two gotchas:
13344 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13345 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13346 # In both cases, we have to default to `cp -pR'.
13347 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13348 as_ln_s='cp -pR'
13349 elif ln conf$$.file conf$$ 2>/dev/null; then
13350 as_ln_s=ln
13351 else
13352 as_ln_s='cp -pR'
13353 fi
13354 else
13355 as_ln_s='cp -pR'
13356 fi
13357 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13358 rmdir conf$$.dir 2>/dev/null
13359
13360
13361 @%:@ as_fn_mkdir_p
13362 @%:@ -------------
13363 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
13364 as_fn_mkdir_p ()
13365 {
13366
13367 case $as_dir in #(
13368 -*) as_dir=./$as_dir;;
13369 esac
13370 test -d "$as_dir" || eval $as_mkdir_p || {
13371 as_dirs=
13372 while :; do
13373 case $as_dir in #(
13374 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13375 *) as_qdir=$as_dir;;
13376 esac
13377 as_dirs="'$as_qdir' $as_dirs"
13378 as_dir=`$as_dirname -- "$as_dir" ||
13379 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13380 X"$as_dir" : 'X\(//\)[^/]' \| \
13381 X"$as_dir" : 'X\(//\)$' \| \
13382 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13383 $as_echo X"$as_dir" |
13384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13385 s//\1/
13386 q
13387 }
13388 /^X\(\/\/\)[^/].*/{
13389 s//\1/
13390 q
13391 }
13392 /^X\(\/\/\)$/{
13393 s//\1/
13394 q
13395 }
13396 /^X\(\/\).*/{
13397 s//\1/
13398 q
13399 }
13400 s/.*/./; q'`
13401 test -d "$as_dir" && break
13402 done
13403 test -z "$as_dirs" || eval "mkdir $as_dirs"
13404 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13405
13406
13407 } @%:@ as_fn_mkdir_p
13408 if mkdir -p . 2>/dev/null; then
13409 as_mkdir_p='mkdir -p "$as_dir"'
13410 else
13411 test -d ./-p && rmdir ./-p
13412 as_mkdir_p=false
13413 fi
13414
13415
13416 @%:@ as_fn_executable_p FILE
13417 @%:@ -----------------------
13418 @%:@ Test if FILE is an executable regular file.
13419 as_fn_executable_p ()
13420 {
13421 test -f "$1" && test -x "$1"
13422 } @%:@ as_fn_executable_p
13423 as_test_x='test -x'
13424 as_executable_p=as_fn_executable_p
13425
13426 # Sed expression to map a string onto a valid CPP name.
13427 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13428
13429 # Sed expression to map a string onto a valid variable name.
13430 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13431
13432
13433 exec 6>&1
13434 ## ----------------------------------- ##
13435 ## Main body of $CONFIG_STATUS script. ##
13436 ## ----------------------------------- ##
13437 _ASEOF
13438 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13439
13440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13441 # Save the log message, to keep $0 and so on meaningful, and to
13442 # report actual input values of CONFIG_FILES etc. instead of their
13443 # values after options handling.
13444 ac_log="
13445 This file was extended by $as_me, which was
13446 generated by GNU Autoconf 2.69. Invocation command line was
13447
13448 CONFIG_FILES = $CONFIG_FILES
13449 CONFIG_HEADERS = $CONFIG_HEADERS
13450 CONFIG_LINKS = $CONFIG_LINKS
13451 CONFIG_COMMANDS = $CONFIG_COMMANDS
13452 $ $0 $@
13453
13454 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13455 "
13456
13457 _ACEOF
13458
13459 case $ac_config_files in *"
13460 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13461 esac
13462
13463 case $ac_config_headers in *"
13464 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13465 esac
13466
13467
13468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13469 # Files that config.status was made for.
13470 config_files="$ac_config_files"
13471 config_headers="$ac_config_headers"
13472 config_commands="$ac_config_commands"
13473
13474 _ACEOF
13475
13476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13477 ac_cs_usage="\
13478 \`$as_me' instantiates files and other configuration actions
13479 from templates according to the current configuration. Unless the files
13480 and actions are specified as TAGs, all are instantiated by default.
13481
13482 Usage: $0 [OPTION]... [TAG]...
13483
13484 -h, --help print this help, then exit
13485 -V, --version print version number and configuration settings, then exit
13486 --config print configuration, then exit
13487 -q, --quiet, --silent
13488 do not print progress messages
13489 -d, --debug don't remove temporary files
13490 --recheck update $as_me by reconfiguring in the same conditions
13491 --file=FILE[:TEMPLATE]
13492 instantiate the configuration file FILE
13493 --header=FILE[:TEMPLATE]
13494 instantiate the configuration header FILE
13495
13496 Configuration files:
13497 $config_files
13498
13499 Configuration headers:
13500 $config_headers
13501
13502 Configuration commands:
13503 $config_commands
13504
13505 Report bugs to the package provider."
13506
13507 _ACEOF
13508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13509 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13510 ac_cs_version="\\
13511 config.status
13512 configured by $0, generated by GNU Autoconf 2.69,
13513 with options \\"\$ac_cs_config\\"
13514
13515 Copyright (C) 2012 Free Software Foundation, Inc.
13516 This config.status script is free software; the Free Software Foundation
13517 gives unlimited permission to copy, distribute and modify it."
13518
13519 ac_pwd='$ac_pwd'
13520 srcdir='$srcdir'
13521 INSTALL='$INSTALL'
13522 AWK='$AWK'
13523 test -n "\$AWK" || AWK=awk
13524 _ACEOF
13525
13526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13527 # The default lists apply if the user does not specify any file.
13528 ac_need_defaults=:
13529 while test $# != 0
13530 do
13531 case $1 in
13532 --*=?*)
13533 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13534 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13535 ac_shift=:
13536 ;;
13537 --*=)
13538 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13539 ac_optarg=
13540 ac_shift=:
13541 ;;
13542 *)
13543 ac_option=$1
13544 ac_optarg=$2
13545 ac_shift=shift
13546 ;;
13547 esac
13548
13549 case $ac_option in
13550 # Handling of the options.
13551 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13552 ac_cs_recheck=: ;;
13553 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13554 $as_echo "$ac_cs_version"; exit ;;
13555 --config | --confi | --conf | --con | --co | --c )
13556 $as_echo "$ac_cs_config"; exit ;;
13557 --debug | --debu | --deb | --de | --d | -d )
13558 debug=: ;;
13559 --file | --fil | --fi | --f )
13560 $ac_shift
13561 case $ac_optarg in
13562 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13563 '') as_fn_error $? "missing file argument" ;;
13564 esac
13565 as_fn_append CONFIG_FILES " '$ac_optarg'"
13566 ac_need_defaults=false;;
13567 --header | --heade | --head | --hea )
13568 $ac_shift
13569 case $ac_optarg in
13570 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13571 esac
13572 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13573 ac_need_defaults=false;;
13574 --he | --h)
13575 # Conflict between --help and --header
13576 as_fn_error $? "ambiguous option: \`$1'
13577 Try \`$0 --help' for more information.";;
13578 --help | --hel | -h )
13579 $as_echo "$ac_cs_usage"; exit ;;
13580 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13581 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13582 ac_cs_silent=: ;;
13583
13584 # This is an error.
13585 -*) as_fn_error $? "unrecognized option: \`$1'
13586 Try \`$0 --help' for more information." ;;
13587
13588 *) as_fn_append ac_config_targets " $1"
13589 ac_need_defaults=false ;;
13590
13591 esac
13592 shift
13593 done
13594
13595 ac_configure_extra_args=
13596
13597 if $ac_cs_silent; then
13598 exec 6>/dev/null
13599 ac_configure_extra_args="$ac_configure_extra_args --silent"
13600 fi
13601
13602 _ACEOF
13603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13604 if \$ac_cs_recheck; then
13605 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13606 shift
13607 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13608 CONFIG_SHELL='$SHELL'
13609 export CONFIG_SHELL
13610 exec "\$@"
13611 fi
13612
13613 _ACEOF
13614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13615 exec 5>>config.log
13616 {
13617 echo
13618 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
13619 @%:@@%:@ Running $as_me. @%:@@%:@
13620 _ASBOX
13621 $as_echo "$ac_log"
13622 } >&5
13623
13624 _ACEOF
13625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13626 #
13627 # INIT-COMMANDS
13628 #
13629 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13630
13631
13632 # The HP-UX ksh and POSIX shell print the target directory to stdout
13633 # if CDPATH is set.
13634 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13635
13636 sed_quote_subst='$sed_quote_subst'
13637 double_quote_subst='$double_quote_subst'
13638 delay_variable_subst='$delay_variable_subst'
13639 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13640 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13641 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13642 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13643 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13644 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13645 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13646 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13647 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13648 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13649 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13650 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13651 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13652 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13653 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13654 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13655 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13656 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13657 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13658 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13659 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13660 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13661 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13662 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13663 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13664 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13665 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13666 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13667 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13668 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13669 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13670 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13671 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13672 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13673 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13674 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13675 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13676 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13677 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13678 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13679 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13680 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13681 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13682 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13683 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13684 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13685 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13686 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13687 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13688 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13689 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13690 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13691 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13692 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13693 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13694 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13695 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13696 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13697 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13698 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13699 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13700 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13701 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13702 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13703 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13704 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13705 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13706 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13707 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13708 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13709 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13710 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13711 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13712 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13713 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13714 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13715 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13716 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13717 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13718 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13719 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13720 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13721 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13722 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13723 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13724 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13725 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13726 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13727 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13728 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13729 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13730 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13731 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13732 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13733 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13734 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13735 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13736 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13737 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13738 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13739 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13740 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13741 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13742 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13743 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13744 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13745 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13746 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13747 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13748 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13749 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13750 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13751 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13752 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13753 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13754 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13755 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13756 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13757 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13758 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13759 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13760 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13761 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13762 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13763 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13764 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13765 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13766 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13767 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13768 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13769
13770 LTCC='$LTCC'
13771 LTCFLAGS='$LTCFLAGS'
13772 compiler='$compiler_DEFAULT'
13773
13774 # A function that is used when there is no print builtin or printf.
13775 func_fallback_echo ()
13776 {
13777 eval 'cat <<_LTECHO_EOF
13778 \$1
13779 _LTECHO_EOF'
13780 }
13781
13782 # Quote evaled strings.
13783 for var in SHELL \
13784 ECHO \
13785 PATH_SEPARATOR \
13786 SED \
13787 GREP \
13788 EGREP \
13789 FGREP \
13790 LD \
13791 NM \
13792 LN_S \
13793 lt_SP2NL \
13794 lt_NL2SP \
13795 reload_flag \
13796 OBJDUMP \
13797 deplibs_check_method \
13798 file_magic_cmd \
13799 file_magic_glob \
13800 want_nocaseglob \
13801 DLLTOOL \
13802 sharedlib_from_linklib_cmd \
13803 AR \
13804 AR_FLAGS \
13805 archiver_list_spec \
13806 STRIP \
13807 RANLIB \
13808 CC \
13809 CFLAGS \
13810 compiler \
13811 lt_cv_sys_global_symbol_pipe \
13812 lt_cv_sys_global_symbol_to_cdecl \
13813 lt_cv_sys_global_symbol_to_c_name_address \
13814 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13815 nm_file_list_spec \
13816 lt_prog_compiler_no_builtin_flag \
13817 lt_prog_compiler_pic \
13818 lt_prog_compiler_wl \
13819 lt_prog_compiler_static \
13820 lt_cv_prog_compiler_c_o \
13821 need_locks \
13822 MANIFEST_TOOL \
13823 DSYMUTIL \
13824 NMEDIT \
13825 LIPO \
13826 OTOOL \
13827 OTOOL64 \
13828 shrext_cmds \
13829 export_dynamic_flag_spec \
13830 whole_archive_flag_spec \
13831 compiler_needs_object \
13832 with_gnu_ld \
13833 allow_undefined_flag \
13834 no_undefined_flag \
13835 hardcode_libdir_flag_spec \
13836 hardcode_libdir_separator \
13837 exclude_expsyms \
13838 include_expsyms \
13839 file_list_spec \
13840 variables_saved_for_relink \
13841 libname_spec \
13842 library_names_spec \
13843 soname_spec \
13844 install_override_mode \
13845 finish_eval \
13846 old_striplib \
13847 striplib; do
13848 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13849 *[\\\\\\\`\\"\\\$]*)
13850 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13851 ;;
13852 *)
13853 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13854 ;;
13855 esac
13856 done
13857
13858 # Double-quote double-evaled strings.
13859 for var in reload_cmds \
13860 old_postinstall_cmds \
13861 old_postuninstall_cmds \
13862 old_archive_cmds \
13863 extract_expsyms_cmds \
13864 old_archive_from_new_cmds \
13865 old_archive_from_expsyms_cmds \
13866 archive_cmds \
13867 archive_expsym_cmds \
13868 module_cmds \
13869 module_expsym_cmds \
13870 export_symbols_cmds \
13871 prelink_cmds \
13872 postlink_cmds \
13873 postinstall_cmds \
13874 postuninstall_cmds \
13875 finish_cmds \
13876 sys_lib_search_path_spec \
13877 sys_lib_dlsearch_path_spec; do
13878 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13879 *[\\\\\\\`\\"\\\$]*)
13880 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13881 ;;
13882 *)
13883 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13884 ;;
13885 esac
13886 done
13887
13888 ac_aux_dir='$ac_aux_dir'
13889 xsi_shell='$xsi_shell'
13890 lt_shell_append='$lt_shell_append'
13891
13892 # See if we are running on zsh, and set the options which allow our
13893 # commands through without removal of \ escapes INIT.
13894 if test -n "\${ZSH_VERSION+set}" ; then
13895 setopt NO_GLOB_SUBST
13896 fi
13897
13898
13899 PACKAGE='$PACKAGE'
13900 VERSION='$VERSION'
13901 TIMESTAMP='$TIMESTAMP'
13902 RM='$RM'
13903 ofile='$ofile'
13904
13905
13906
13907
13908 _ACEOF
13909
13910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13911
13912 # Handling of arguments.
13913 for ac_config_target in $ac_config_targets
13914 do
13915 case $ac_config_target in
13916 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13917 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13918 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13919 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13920 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13921
13922 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13923 esac
13924 done
13925
13926
13927 # If the user did not use the arguments to specify the items to instantiate,
13928 # then the envvar interface is used. Set only those that are not.
13929 # We use the long form for the default assignment because of an extremely
13930 # bizarre bug on SunOS 4.1.3.
13931 if $ac_need_defaults; then
13932 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13933 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13934 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13935 fi
13936
13937 # Have a temporary directory for convenience. Make it in the build tree
13938 # simply because there is no reason against having it here, and in addition,
13939 # creating and moving files from /tmp can sometimes cause problems.
13940 # Hook for its removal unless debugging.
13941 # Note that there is a small window in which the directory will not be cleaned:
13942 # after its creation but before its name has been assigned to `$tmp'.
13943 $debug ||
13944 {
13945 tmp= ac_tmp=
13946 trap 'exit_status=$?
13947 : "${ac_tmp:=$tmp}"
13948 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13949 ' 0
13950 trap 'as_fn_exit 1' 1 2 13 15
13951 }
13952 # Create a (secure) tmp directory for tmp files.
13953
13954 {
13955 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13956 test -d "$tmp"
13957 } ||
13958 {
13959 tmp=./conf$$-$RANDOM
13960 (umask 077 && mkdir "$tmp")
13961 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13962 ac_tmp=$tmp
13963
13964 # Set up the scripts for CONFIG_FILES section.
13965 # No need to generate them if there are no CONFIG_FILES.
13966 # This happens for instance with `./config.status config.h'.
13967 if test -n "$CONFIG_FILES"; then
13968
13969
13970 ac_cr=`echo X | tr X '\015'`
13971 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13972 # But we know of no other shell where ac_cr would be empty at this
13973 # point, so we can use a bashism as a fallback.
13974 if test "x$ac_cr" = x; then
13975 eval ac_cr=\$\'\\r\'
13976 fi
13977 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13978 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13979 ac_cs_awk_cr='\\r'
13980 else
13981 ac_cs_awk_cr=$ac_cr
13982 fi
13983
13984 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13985 _ACEOF
13986
13987
13988 {
13989 echo "cat >conf$$subs.awk <<_ACEOF" &&
13990 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13991 echo "_ACEOF"
13992 } >conf$$subs.sh ||
13993 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13994 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13995 ac_delim='%!_!# '
13996 for ac_last_try in false false false false false :; do
13997 . ./conf$$subs.sh ||
13998 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13999
14000 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14001 if test $ac_delim_n = $ac_delim_num; then
14002 break
14003 elif $ac_last_try; then
14004 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14005 else
14006 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14007 fi
14008 done
14009 rm -f conf$$subs.sh
14010
14011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14012 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14013 _ACEOF
14014 sed -n '
14015 h
14016 s/^/S["/; s/!.*/"]=/
14017 p
14018 g
14019 s/^[^!]*!//
14020 :repl
14021 t repl
14022 s/'"$ac_delim"'$//
14023 t delim
14024 :nl
14025 h
14026 s/\(.\{148\}\)..*/\1/
14027 t more1
14028 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14029 p
14030 n
14031 b repl
14032 :more1
14033 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14034 p
14035 g
14036 s/.\{148\}//
14037 t nl
14038 :delim
14039 h
14040 s/\(.\{148\}\)..*/\1/
14041 t more2
14042 s/["\\]/\\&/g; s/^/"/; s/$/"/
14043 p
14044 b
14045 :more2
14046 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14047 p
14048 g
14049 s/.\{148\}//
14050 t delim
14051 ' <conf$$subs.awk | sed '
14052 /^[^""]/{
14053 N
14054 s/\n//
14055 }
14056 ' >>$CONFIG_STATUS || ac_write_fail=1
14057 rm -f conf$$subs.awk
14058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14059 _ACAWK
14060 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14061 for (key in S) S_is_set[key] = 1
14062 FS = ""
14063
14064 }
14065 {
14066 line = $ 0
14067 nfields = split(line, field, "@")
14068 substed = 0
14069 len = length(field[1])
14070 for (i = 2; i < nfields; i++) {
14071 key = field[i]
14072 keylen = length(key)
14073 if (S_is_set[key]) {
14074 value = S[key]
14075 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14076 len += length(value) + length(field[++i])
14077 substed = 1
14078 } else
14079 len += 1 + keylen
14080 }
14081
14082 print line
14083 }
14084
14085 _ACAWK
14086 _ACEOF
14087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14088 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14089 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14090 else
14091 cat
14092 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14093 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14094 _ACEOF
14095
14096 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14097 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14098 # trailing colons and then remove the whole line if VPATH becomes empty
14099 # (actually we leave an empty line to preserve line numbers).
14100 if test "x$srcdir" = x.; then
14101 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14102 h
14103 s///
14104 s/^/:/
14105 s/[ ]*$/:/
14106 s/:\$(srcdir):/:/g
14107 s/:\${srcdir}:/:/g
14108 s/:@srcdir@:/:/g
14109 s/^:*//
14110 s/:*$//
14111 x
14112 s/\(=[ ]*\).*/\1/
14113 G
14114 s/\n//
14115 s/^[^=]*=[ ]*$//
14116 }'
14117 fi
14118
14119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14120 fi # test -n "$CONFIG_FILES"
14121
14122 # Set up the scripts for CONFIG_HEADERS section.
14123 # No need to generate them if there are no CONFIG_HEADERS.
14124 # This happens for instance with `./config.status Makefile'.
14125 if test -n "$CONFIG_HEADERS"; then
14126 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14127 BEGIN {
14128 _ACEOF
14129
14130 # Transform confdefs.h into an awk script `defines.awk', embedded as
14131 # here-document in config.status, that substitutes the proper values into
14132 # config.h.in to produce config.h.
14133
14134 # Create a delimiter string that does not exist in confdefs.h, to ease
14135 # handling of long lines.
14136 ac_delim='%!_!# '
14137 for ac_last_try in false false :; do
14138 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14139 if test -z "$ac_tt"; then
14140 break
14141 elif $ac_last_try; then
14142 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14143 else
14144 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14145 fi
14146 done
14147
14148 # For the awk script, D is an array of macro values keyed by name,
14149 # likewise P contains macro parameters if any. Preserve backslash
14150 # newline sequences.
14151
14152 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14153 sed -n '
14154 s/.\{148\}/&'"$ac_delim"'/g
14155 t rset
14156 :rset
14157 s/^[ ]*#[ ]*define[ ][ ]*/ /
14158 t def
14159 d
14160 :def
14161 s/\\$//
14162 t bsnl
14163 s/["\\]/\\&/g
14164 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14165 D["\1"]=" \3"/p
14166 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14167 d
14168 :bsnl
14169 s/["\\]/\\&/g
14170 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14171 D["\1"]=" \3\\\\\\n"\\/p
14172 t cont
14173 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14174 t cont
14175 d
14176 :cont
14177 n
14178 s/.\{148\}/&'"$ac_delim"'/g
14179 t clear
14180 :clear
14181 s/\\$//
14182 t bsnlc
14183 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14184 d
14185 :bsnlc
14186 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14187 b cont
14188 ' <confdefs.h | sed '
14189 s/'"$ac_delim"'/"\\\
14190 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14191
14192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14193 for (key in D) D_is_set[key] = 1
14194 FS = ""
14195 }
14196 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14197 line = \$ 0
14198 split(line, arg, " ")
14199 if (arg[1] == "#") {
14200 defundef = arg[2]
14201 mac1 = arg[3]
14202 } else {
14203 defundef = substr(arg[1], 2)
14204 mac1 = arg[2]
14205 }
14206 split(mac1, mac2, "(") #)
14207 macro = mac2[1]
14208 prefix = substr(line, 1, index(line, defundef) - 1)
14209 if (D_is_set[macro]) {
14210 # Preserve the white space surrounding the "#".
14211 print prefix "define", macro P[macro] D[macro]
14212 next
14213 } else {
14214 # Replace #undef with comments. This is necessary, for example,
14215 # in the case of _POSIX_SOURCE, which is predefined and required
14216 # on some systems where configure will not decide to define it.
14217 if (defundef == "undef") {
14218 print "/*", prefix defundef, macro, "*/"
14219 next
14220 }
14221 }
14222 }
14223 { print }
14224 _ACAWK
14225 _ACEOF
14226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14227 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14228 fi # test -n "$CONFIG_HEADERS"
14229
14230
14231 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14232 shift
14233 for ac_tag
14234 do
14235 case $ac_tag in
14236 :[FHLC]) ac_mode=$ac_tag; continue;;
14237 esac
14238 case $ac_mode$ac_tag in
14239 :[FHL]*:*);;
14240 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14241 :[FH]-) ac_tag=-:-;;
14242 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14243 esac
14244 ac_save_IFS=$IFS
14245 IFS=:
14246 set x $ac_tag
14247 IFS=$ac_save_IFS
14248 shift
14249 ac_file=$1
14250 shift
14251
14252 case $ac_mode in
14253 :L) ac_source=$1;;
14254 :[FH])
14255 ac_file_inputs=
14256 for ac_f
14257 do
14258 case $ac_f in
14259 -) ac_f="$ac_tmp/stdin";;
14260 *) # Look for the file first in the build tree, then in the source tree
14261 # (if the path is not absolute). The absolute path cannot be DOS-style,
14262 # because $ac_f cannot contain `:'.
14263 test -f "$ac_f" ||
14264 case $ac_f in
14265 [\\/$]*) false;;
14266 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14267 esac ||
14268 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14269 esac
14270 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14271 as_fn_append ac_file_inputs " '$ac_f'"
14272 done
14273
14274 # Let's still pretend it is `configure' which instantiates (i.e., don't
14275 # use $as_me), people would be surprised to read:
14276 # /* config.h. Generated by config.status. */
14277 configure_input='Generated from '`
14278 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14279 `' by configure.'
14280 if test x"$ac_file" != x-; then
14281 configure_input="$ac_file. $configure_input"
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14283 $as_echo "$as_me: creating $ac_file" >&6;}
14284 fi
14285 # Neutralize special characters interpreted by sed in replacement strings.
14286 case $configure_input in #(
14287 *\&* | *\|* | *\\* )
14288 ac_sed_conf_input=`$as_echo "$configure_input" |
14289 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14290 *) ac_sed_conf_input=$configure_input;;
14291 esac
14292
14293 case $ac_tag in
14294 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14295 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14296 esac
14297 ;;
14298 esac
14299
14300 ac_dir=`$as_dirname -- "$ac_file" ||
14301 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14302 X"$ac_file" : 'X\(//\)[^/]' \| \
14303 X"$ac_file" : 'X\(//\)$' \| \
14304 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14305 $as_echo X"$ac_file" |
14306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14307 s//\1/
14308 q
14309 }
14310 /^X\(\/\/\)[^/].*/{
14311 s//\1/
14312 q
14313 }
14314 /^X\(\/\/\)$/{
14315 s//\1/
14316 q
14317 }
14318 /^X\(\/\).*/{
14319 s//\1/
14320 q
14321 }
14322 s/.*/./; q'`
14323 as_dir="$ac_dir"; as_fn_mkdir_p
14324 ac_builddir=.
14325
14326 case "$ac_dir" in
14327 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14328 *)
14329 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14330 # A ".." for each directory in $ac_dir_suffix.
14331 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14332 case $ac_top_builddir_sub in
14333 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14334 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14335 esac ;;
14336 esac
14337 ac_abs_top_builddir=$ac_pwd
14338 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14339 # for backward compatibility:
14340 ac_top_builddir=$ac_top_build_prefix
14341
14342 case $srcdir in
14343 .) # We are building in place.
14344 ac_srcdir=.
14345 ac_top_srcdir=$ac_top_builddir_sub
14346 ac_abs_top_srcdir=$ac_pwd ;;
14347 [\\/]* | ?:[\\/]* ) # Absolute name.
14348 ac_srcdir=$srcdir$ac_dir_suffix;
14349 ac_top_srcdir=$srcdir
14350 ac_abs_top_srcdir=$srcdir ;;
14351 *) # Relative name.
14352 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14353 ac_top_srcdir=$ac_top_build_prefix$srcdir
14354 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14355 esac
14356 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14357
14358
14359 case $ac_mode in
14360 :F)
14361 #
14362 # CONFIG_FILE
14363 #
14364
14365 case $INSTALL in
14366 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14367 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14368 esac
14369 _ACEOF
14370
14371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14372 # If the template does not know about datarootdir, expand it.
14373 # FIXME: This hack should be removed a few years after 2.60.
14374 ac_datarootdir_hack=; ac_datarootdir_seen=
14375 ac_sed_dataroot='
14376 /datarootdir/ {
14377 p
14378 q
14379 }
14380 /@datadir@/p
14381 /@docdir@/p
14382 /@infodir@/p
14383 /@localedir@/p
14384 /@mandir@/p'
14385 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14386 *datarootdir*) ac_datarootdir_seen=yes;;
14387 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14389 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14390 _ACEOF
14391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14392 ac_datarootdir_hack='
14393 s&@datadir@&$datadir&g
14394 s&@docdir@&$docdir&g
14395 s&@infodir@&$infodir&g
14396 s&@localedir@&$localedir&g
14397 s&@mandir@&$mandir&g
14398 s&\\\${datarootdir}&$datarootdir&g' ;;
14399 esac
14400 _ACEOF
14401
14402 # Neutralize VPATH when `$srcdir' = `.'.
14403 # Shell code in configure.ac might set extrasub.
14404 # FIXME: do we really want to maintain this feature?
14405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14406 ac_sed_extra="$ac_vpsub
14407 $extrasub
14408 _ACEOF
14409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14410 :t
14411 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14412 s|@configure_input@|$ac_sed_conf_input|;t t
14413 s&@top_builddir@&$ac_top_builddir_sub&;t t
14414 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14415 s&@srcdir@&$ac_srcdir&;t t
14416 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14417 s&@top_srcdir@&$ac_top_srcdir&;t t
14418 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14419 s&@builddir@&$ac_builddir&;t t
14420 s&@abs_builddir@&$ac_abs_builddir&;t t
14421 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14422 s&@INSTALL@&$ac_INSTALL&;t t
14423 $ac_datarootdir_hack
14424 "
14425 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14426 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14427
14428 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14429 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14430 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14431 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14433 which seems to be undefined. Please make sure it is defined" >&5
14434 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14435 which seems to be undefined. Please make sure it is defined" >&2;}
14436
14437 rm -f "$ac_tmp/stdin"
14438 case $ac_file in
14439 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14440 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14441 esac \
14442 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14443 ;;
14444 :H)
14445 #
14446 # CONFIG_HEADER
14447 #
14448 if test x"$ac_file" != x-; then
14449 {
14450 $as_echo "/* $configure_input */" \
14451 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14452 } >"$ac_tmp/config.h" \
14453 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14454 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14456 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14457 else
14458 rm -f "$ac_file"
14459 mv "$ac_tmp/config.h" "$ac_file" \
14460 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14461 fi
14462 else
14463 $as_echo "/* $configure_input */" \
14464 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14465 || as_fn_error $? "could not create -" "$LINENO" 5
14466 fi
14467 # Compute "$ac_file"'s index in $config_headers.
14468 _am_stamp_count=1
14469 for _am_header in $config_headers :; do
14470 case $_am_header in
14471 "$ac_file" | "$ac_file":* )
14472 break ;;
14473 * )
14474 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14475 esac
14476 done
14477 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
14478 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14479 X"$ac_file" : 'X\(//\)[^/]' \| \
14480 X"$ac_file" : 'X\(//\)$' \| \
14481 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14482 $as_echo X"$ac_file" |
14483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14484 s//\1/
14485 q
14486 }
14487 /^X\(\/\/\)[^/].*/{
14488 s//\1/
14489 q
14490 }
14491 /^X\(\/\/\)$/{
14492 s//\1/
14493 q
14494 }
14495 /^X\(\/\).*/{
14496 s//\1/
14497 q
14498 }
14499 s/.*/./; q'`/stamp-h$_am_stamp_count
14500 ;;
14501
14502 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14503 $as_echo "$as_me: executing $ac_file commands" >&6;}
14504 ;;
14505 esac
14506
14507
14508 case $ac_file$ac_mode in
14509 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14510 # Strip MF so we end up with the name of the file.
14511 mf=`echo "$mf" | sed -e 's/:.*$//'`
14512 # Check whether this is an Automake generated Makefile or not.
14513 # We used to match only the files named `Makefile.in', but
14514 # some people rename them; so instead we look at the file content.
14515 # Grep'ing the first line is not enough: some people post-process
14516 # each Makefile.in and add a new line on top of each file to say so.
14517 # So let's grep whole file.
14518 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14519 dirpart=`$as_dirname -- "$mf" ||
14520 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14521 X"$mf" : 'X\(//\)[^/]' \| \
14522 X"$mf" : 'X\(//\)$' \| \
14523 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14524 $as_echo X"$mf" |
14525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14526 s//\1/
14527 q
14528 }
14529 /^X\(\/\/\)[^/].*/{
14530 s//\1/
14531 q
14532 }
14533 /^X\(\/\/\)$/{
14534 s//\1/
14535 q
14536 }
14537 /^X\(\/\).*/{
14538 s//\1/
14539 q
14540 }
14541 s/.*/./; q'`
14542 else
14543 continue
14544 fi
14545 # Extract the definition of DEPDIR, am__include, and am__quote
14546 # from the Makefile without running `make'.
14547 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14548 test -z "$DEPDIR" && continue
14549 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14550 test -z "am__include" && continue
14551 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14552 # When using ansi2knr, U may be empty or an underscore; expand it
14553 U=`sed -n 's/^U = //p' < "$mf"`
14554 # Find all dependency output files, they are included files with
14555 # $(DEPDIR) in their names. We invoke sed twice because it is the
14556 # simplest approach to changing $(DEPDIR) to its actual value in the
14557 # expansion.
14558 for file in `sed -n "
14559 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14560 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14561 # Make sure the directory exists.
14562 test -f "$dirpart/$file" && continue
14563 fdir=`$as_dirname -- "$file" ||
14564 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14565 X"$file" : 'X\(//\)[^/]' \| \
14566 X"$file" : 'X\(//\)$' \| \
14567 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14568 $as_echo X"$file" |
14569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14570 s//\1/
14571 q
14572 }
14573 /^X\(\/\/\)[^/].*/{
14574 s//\1/
14575 q
14576 }
14577 /^X\(\/\/\)$/{
14578 s//\1/
14579 q
14580 }
14581 /^X\(\/\).*/{
14582 s//\1/
14583 q
14584 }
14585 s/.*/./; q'`
14586 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14587 # echo "creating $dirpart/$file"
14588 echo '# dummy' > "$dirpart/$file"
14589 done
14590 done
14591 ;;
14592 "libtool":C)
14593
14594 # See if we are running on zsh, and set the options which allow our
14595 # commands through without removal of \ escapes.
14596 if test -n "${ZSH_VERSION+set}" ; then
14597 setopt NO_GLOB_SUBST
14598 fi
14599
14600 cfgfile="${ofile}T"
14601 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14602 $RM "$cfgfile"
14603
14604 cat <<_LT_EOF >> "$cfgfile"
14605 #! $SHELL
14606
14607 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14608 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14609 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14610 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14611 #
14612 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14613 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14614 # Foundation, Inc.
14615 # Written by Gordon Matzigkeit, 1996
14616 #
14617 # This file is part of GNU Libtool.
14618 #
14619 # GNU Libtool is free software; you can redistribute it and/or
14620 # modify it under the terms of the GNU General Public License as
14621 # published by the Free Software Foundation; either version 2 of
14622 # the License, or (at your option) any later version.
14623 #
14624 # As a special exception to the GNU General Public License,
14625 # if you distribute this file as part of a program or library that
14626 # is built using GNU Libtool, you may include this file under the
14627 # same distribution terms that you use for the rest of that program.
14628 #
14629 # GNU Libtool is distributed in the hope that it will be useful,
14630 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14631 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14632 # GNU General Public License for more details.
14633 #
14634 # You should have received a copy of the GNU General Public License
14635 # along with GNU Libtool; see the file COPYING. If not, a copy
14636 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14637 # obtained by writing to the Free Software Foundation, Inc.,
14638 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14639
14640
14641 # The names of the tagged configurations supported by this script.
14642 available_tags=""
14643
14644 # ### BEGIN LIBTOOL CONFIG
14645
14646 # Which release of libtool.m4 was used?
14647 macro_version=$macro_version
14648 macro_revision=$macro_revision
14649
14650 # Whether or not to build shared libraries.
14651 build_libtool_libs=$enable_shared
14652
14653 # Whether or not to build static libraries.
14654 build_old_libs=$enable_static
14655
14656 # What type of objects to build.
14657 pic_mode=$pic_mode
14658
14659 # Whether or not to optimize for fast installation.
14660 fast_install=$enable_fast_install
14661
14662 # Shell to use when invoking shell scripts.
14663 SHELL=$lt_SHELL
14664
14665 # An echo program that protects backslashes.
14666 ECHO=$lt_ECHO
14667
14668 # The PATH separator for the build system.
14669 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14670
14671 # The host system.
14672 host_alias=$host_alias
14673 host=$host
14674 host_os=$host_os
14675
14676 # The build system.
14677 build_alias=$build_alias
14678 build=$build
14679 build_os=$build_os
14680
14681 # A sed program that does not truncate output.
14682 SED=$lt_SED
14683
14684 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14685 Xsed="\$SED -e 1s/^X//"
14686
14687 # A grep program that handles long lines.
14688 GREP=$lt_GREP
14689
14690 # An ERE matcher.
14691 EGREP=$lt_EGREP
14692
14693 # A literal string matcher.
14694 FGREP=$lt_FGREP
14695
14696 # A BSD- or MS-compatible name lister.
14697 NM=$lt_NM
14698
14699 # Whether we need soft or hard links.
14700 LN_S=$lt_LN_S
14701
14702 # What is the maximum length of a command?
14703 max_cmd_len=$max_cmd_len
14704
14705 # Object file suffix (normally "o").
14706 objext=$ac_objext
14707
14708 # Executable file suffix (normally "").
14709 exeext=$exeext
14710
14711 # whether the shell understands "unset".
14712 lt_unset=$lt_unset
14713
14714 # turn spaces into newlines.
14715 SP2NL=$lt_lt_SP2NL
14716
14717 # turn newlines into spaces.
14718 NL2SP=$lt_lt_NL2SP
14719
14720 # convert \$build file names to \$host format.
14721 to_host_file_cmd=$lt_cv_to_host_file_cmd
14722
14723 # convert \$build files to toolchain format.
14724 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14725
14726 # An object symbol dumper.
14727 OBJDUMP=$lt_OBJDUMP
14728
14729 # Method to check whether dependent libraries are shared objects.
14730 deplibs_check_method=$lt_deplibs_check_method
14731
14732 # Command to use when deplibs_check_method = "file_magic".
14733 file_magic_cmd=$lt_file_magic_cmd
14734
14735 # How to find potential files when deplibs_check_method = "file_magic".
14736 file_magic_glob=$lt_file_magic_glob
14737
14738 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14739 want_nocaseglob=$lt_want_nocaseglob
14740
14741 # DLL creation program.
14742 DLLTOOL=$lt_DLLTOOL
14743
14744 # Command to associate shared and link libraries.
14745 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14746
14747 # The archiver.
14748 AR=$lt_AR
14749
14750 # Flags to create an archive.
14751 AR_FLAGS=$lt_AR_FLAGS
14752
14753 # How to feed a file listing to the archiver.
14754 archiver_list_spec=$lt_archiver_list_spec
14755
14756 # A symbol stripping program.
14757 STRIP=$lt_STRIP
14758
14759 # Commands used to install an old-style archive.
14760 RANLIB=$lt_RANLIB
14761 old_postinstall_cmds=$lt_old_postinstall_cmds
14762 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14763
14764 # Whether to use a lock for old archive extraction.
14765 lock_old_archive_extraction=$lock_old_archive_extraction
14766
14767 # A C compiler.
14768 LTCC=$lt_CC
14769
14770 # LTCC compiler flags.
14771 LTCFLAGS=$lt_CFLAGS
14772
14773 # Take the output of nm and produce a listing of raw symbols and C names.
14774 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14775
14776 # Transform the output of nm in a proper C declaration.
14777 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14778
14779 # Transform the output of nm in a C name address pair.
14780 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14781
14782 # Transform the output of nm in a C name address pair when lib prefix is needed.
14783 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14784
14785 # Specify filename containing input files for \$NM.
14786 nm_file_list_spec=$lt_nm_file_list_spec
14787
14788 # The root where to search for dependent libraries,and in which our libraries should be installed.
14789 lt_sysroot=$lt_sysroot
14790
14791 # The name of the directory that contains temporary libtool files.
14792 objdir=$objdir
14793
14794 # Used to examine libraries when file_magic_cmd begins with "file".
14795 MAGIC_CMD=$MAGIC_CMD
14796
14797 # Must we lock files when doing compilation?
14798 need_locks=$lt_need_locks
14799
14800 # Manifest tool.
14801 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14802
14803 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14804 DSYMUTIL=$lt_DSYMUTIL
14805
14806 # Tool to change global to local symbols on Mac OS X.
14807 NMEDIT=$lt_NMEDIT
14808
14809 # Tool to manipulate fat objects and archives on Mac OS X.
14810 LIPO=$lt_LIPO
14811
14812 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14813 OTOOL=$lt_OTOOL
14814
14815 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14816 OTOOL64=$lt_OTOOL64
14817
14818 # Old archive suffix (normally "a").
14819 libext=$libext
14820
14821 # Shared library suffix (normally ".so").
14822 shrext_cmds=$lt_shrext_cmds
14823
14824 # The commands to extract the exported symbol list from a shared archive.
14825 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14826
14827 # Variables whose values should be saved in libtool wrapper scripts and
14828 # restored at link time.
14829 variables_saved_for_relink=$lt_variables_saved_for_relink
14830
14831 # Do we need the "lib" prefix for modules?
14832 need_lib_prefix=$need_lib_prefix
14833
14834 # Do we need a version for libraries?
14835 need_version=$need_version
14836
14837 # Library versioning type.
14838 version_type=$version_type
14839
14840 # Shared library runtime path variable.
14841 runpath_var=$runpath_var
14842
14843 # Shared library path variable.
14844 shlibpath_var=$shlibpath_var
14845
14846 # Is shlibpath searched before the hard-coded library search path?
14847 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14848
14849 # Format of library name prefix.
14850 libname_spec=$lt_libname_spec
14851
14852 # List of archive names. First name is the real one, the rest are links.
14853 # The last name is the one that the linker finds with -lNAME
14854 library_names_spec=$lt_library_names_spec
14855
14856 # The coded name of the library, if different from the real name.
14857 soname_spec=$lt_soname_spec
14858
14859 # Permission mode override for installation of shared libraries.
14860 install_override_mode=$lt_install_override_mode
14861
14862 # Command to use after installation of a shared archive.
14863 postinstall_cmds=$lt_postinstall_cmds
14864
14865 # Command to use after uninstallation of a shared archive.
14866 postuninstall_cmds=$lt_postuninstall_cmds
14867
14868 # Commands used to finish a libtool library installation in a directory.
14869 finish_cmds=$lt_finish_cmds
14870
14871 # As "finish_cmds", except a single script fragment to be evaled but
14872 # not shown.
14873 finish_eval=$lt_finish_eval
14874
14875 # Whether we should hardcode library paths into libraries.
14876 hardcode_into_libs=$hardcode_into_libs
14877
14878 # Compile-time system search path for libraries.
14879 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14880
14881 # Run-time system search path for libraries.
14882 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14883
14884 # Whether dlopen is supported.
14885 dlopen_support=$enable_dlopen
14886
14887 # Whether dlopen of programs is supported.
14888 dlopen_self=$enable_dlopen_self
14889
14890 # Whether dlopen of statically linked programs is supported.
14891 dlopen_self_static=$enable_dlopen_self_static
14892
14893 # Commands to strip libraries.
14894 old_striplib=$lt_old_striplib
14895 striplib=$lt_striplib
14896
14897
14898 # The linker used to build libraries.
14899 LD=$lt_LD
14900
14901 # How to create reloadable object files.
14902 reload_flag=$lt_reload_flag
14903 reload_cmds=$lt_reload_cmds
14904
14905 # Commands used to build an old-style archive.
14906 old_archive_cmds=$lt_old_archive_cmds
14907
14908 # A language specific compiler.
14909 CC=$lt_compiler
14910
14911 # Is the compiler the GNU compiler?
14912 with_gcc=$GCC
14913
14914 # Compiler flag to turn off builtin functions.
14915 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14916
14917 # Additional compiler flags for building library objects.
14918 pic_flag=$lt_lt_prog_compiler_pic
14919
14920 # How to pass a linker flag through the compiler.
14921 wl=$lt_lt_prog_compiler_wl
14922
14923 # Compiler flag to prevent dynamic linking.
14924 link_static_flag=$lt_lt_prog_compiler_static
14925
14926 # Does compiler simultaneously support -c and -o options?
14927 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14928
14929 # Whether or not to add -lc for building shared libraries.
14930 build_libtool_need_lc=$archive_cmds_need_lc
14931
14932 # Whether or not to disallow shared libs when runtime libs are static.
14933 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14934
14935 # Compiler flag to allow reflexive dlopens.
14936 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14937
14938 # Compiler flag to generate shared objects directly from archives.
14939 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14940
14941 # Whether the compiler copes with passing no objects directly.
14942 compiler_needs_object=$lt_compiler_needs_object
14943
14944 # Create an old-style archive from a shared archive.
14945 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14946
14947 # Create a temporary old-style archive to link instead of a shared archive.
14948 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14949
14950 # Commands used to build a shared archive.
14951 archive_cmds=$lt_archive_cmds
14952 archive_expsym_cmds=$lt_archive_expsym_cmds
14953
14954 # Commands used to build a loadable module if different from building
14955 # a shared archive.
14956 module_cmds=$lt_module_cmds
14957 module_expsym_cmds=$lt_module_expsym_cmds
14958
14959 # Whether we are building with GNU ld or not.
14960 with_gnu_ld=$lt_with_gnu_ld
14961
14962 # Flag that allows shared libraries with undefined symbols to be built.
14963 allow_undefined_flag=$lt_allow_undefined_flag
14964
14965 # Flag that enforces no undefined symbols.
14966 no_undefined_flag=$lt_no_undefined_flag
14967
14968 # Flag to hardcode \$libdir into a binary during linking.
14969 # This must work even if \$libdir does not exist
14970 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14971
14972 # Whether we need a single "-rpath" flag with a separated argument.
14973 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14974
14975 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14976 # DIR into the resulting binary.
14977 hardcode_direct=$hardcode_direct
14978
14979 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14980 # DIR into the resulting binary and the resulting library dependency is
14981 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14982 # library is relocated.
14983 hardcode_direct_absolute=$hardcode_direct_absolute
14984
14985 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14986 # into the resulting binary.
14987 hardcode_minus_L=$hardcode_minus_L
14988
14989 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14990 # into the resulting binary.
14991 hardcode_shlibpath_var=$hardcode_shlibpath_var
14992
14993 # Set to "yes" if building a shared library automatically hardcodes DIR
14994 # into the library and all subsequent libraries and executables linked
14995 # against it.
14996 hardcode_automatic=$hardcode_automatic
14997
14998 # Set to yes if linker adds runtime paths of dependent libraries
14999 # to runtime path list.
15000 inherit_rpath=$inherit_rpath
15001
15002 # Whether libtool must link a program against all its dependency libraries.
15003 link_all_deplibs=$link_all_deplibs
15004
15005 # Set to "yes" if exported symbols are required.
15006 always_export_symbols=$always_export_symbols
15007
15008 # The commands to list exported symbols.
15009 export_symbols_cmds=$lt_export_symbols_cmds
15010
15011 # Symbols that should not be listed in the preloaded symbols.
15012 exclude_expsyms=$lt_exclude_expsyms
15013
15014 # Symbols that must always be exported.
15015 include_expsyms=$lt_include_expsyms
15016
15017 # Commands necessary for linking programs (against libraries) with templates.
15018 prelink_cmds=$lt_prelink_cmds
15019
15020 # Commands necessary for finishing linking programs.
15021 postlink_cmds=$lt_postlink_cmds
15022
15023 # Specify filename containing input files.
15024 file_list_spec=$lt_file_list_spec
15025
15026 # How to hardcode a shared library path into an executable.
15027 hardcode_action=$hardcode_action
15028
15029 # ### END LIBTOOL CONFIG
15030
15031 _LT_EOF
15032
15033 case $host_os in
15034 aix3*)
15035 cat <<\_LT_EOF >> "$cfgfile"
15036 # AIX sometimes has problems with the GCC collect2 program. For some
15037 # reason, if we set the COLLECT_NAMES environment variable, the problems
15038 # vanish in a puff of smoke.
15039 if test "X${COLLECT_NAMES+set}" != Xset; then
15040 COLLECT_NAMES=
15041 export COLLECT_NAMES
15042 fi
15043 _LT_EOF
15044 ;;
15045 esac
15046
15047
15048 ltmain="$ac_aux_dir/ltmain.sh"
15049
15050
15051 # We use sed instead of cat because bash on DJGPP gets confused if
15052 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15053 # text mode, it properly converts lines to CR/LF. This bash problem
15054 # is reportedly fixed, but why not run on old versions too?
15055 sed '$q' "$ltmain" >> "$cfgfile" \
15056 || (rm -f "$cfgfile"; exit 1)
15057
15058 if test x"$xsi_shell" = xyes; then
15059 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15060 func_dirname ()\
15061 {\
15062 \ case ${1} in\
15063 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15064 \ * ) func_dirname_result="${3}" ;;\
15065 \ esac\
15066 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15067 && mv -f "$cfgfile.tmp" "$cfgfile" \
15068 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15069 test 0 -eq $? || _lt_function_replace_fail=:
15070
15071
15072 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15073 func_basename ()\
15074 {\
15075 \ func_basename_result="${1##*/}"\
15076 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15077 && mv -f "$cfgfile.tmp" "$cfgfile" \
15078 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15079 test 0 -eq $? || _lt_function_replace_fail=:
15080
15081
15082 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15083 func_dirname_and_basename ()\
15084 {\
15085 \ case ${1} in\
15086 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15087 \ * ) func_dirname_result="${3}" ;;\
15088 \ esac\
15089 \ func_basename_result="${1##*/}"\
15090 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15091 && mv -f "$cfgfile.tmp" "$cfgfile" \
15092 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15093 test 0 -eq $? || _lt_function_replace_fail=:
15094
15095
15096 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15097 func_stripname ()\
15098 {\
15099 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15100 \ # positional parameters, so assign one to ordinary parameter first.\
15101 \ func_stripname_result=${3}\
15102 \ func_stripname_result=${func_stripname_result#"${1}"}\
15103 \ func_stripname_result=${func_stripname_result%"${2}"}\
15104 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15105 && mv -f "$cfgfile.tmp" "$cfgfile" \
15106 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15107 test 0 -eq $? || _lt_function_replace_fail=:
15108
15109
15110 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15111 func_split_long_opt ()\
15112 {\
15113 \ func_split_long_opt_name=${1%%=*}\
15114 \ func_split_long_opt_arg=${1#*=}\
15115 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15116 && mv -f "$cfgfile.tmp" "$cfgfile" \
15117 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15118 test 0 -eq $? || _lt_function_replace_fail=:
15119
15120
15121 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15122 func_split_short_opt ()\
15123 {\
15124 \ func_split_short_opt_arg=${1#??}\
15125 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15126 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15127 && mv -f "$cfgfile.tmp" "$cfgfile" \
15128 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15129 test 0 -eq $? || _lt_function_replace_fail=:
15130
15131
15132 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15133 func_lo2o ()\
15134 {\
15135 \ case ${1} in\
15136 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15137 \ *) func_lo2o_result=${1} ;;\
15138 \ esac\
15139 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15140 && mv -f "$cfgfile.tmp" "$cfgfile" \
15141 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15142 test 0 -eq $? || _lt_function_replace_fail=:
15143
15144
15145 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15146 func_xform ()\
15147 {\
15148 func_xform_result=${1%.*}.lo\
15149 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15150 && mv -f "$cfgfile.tmp" "$cfgfile" \
15151 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15152 test 0 -eq $? || _lt_function_replace_fail=:
15153
15154
15155 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15156 func_arith ()\
15157 {\
15158 func_arith_result=$(( $* ))\
15159 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15160 && mv -f "$cfgfile.tmp" "$cfgfile" \
15161 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15162 test 0 -eq $? || _lt_function_replace_fail=:
15163
15164
15165 sed -e '/^func_len ()$/,/^} # func_len /c\
15166 func_len ()\
15167 {\
15168 func_len_result=${#1}\
15169 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15170 && mv -f "$cfgfile.tmp" "$cfgfile" \
15171 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15172 test 0 -eq $? || _lt_function_replace_fail=:
15173
15174 fi
15175
15176 if test x"$lt_shell_append" = xyes; then
15177 sed -e '/^func_append ()$/,/^} # func_append /c\
15178 func_append ()\
15179 {\
15180 eval "${1}+=\\${2}"\
15181 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15182 && mv -f "$cfgfile.tmp" "$cfgfile" \
15183 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15184 test 0 -eq $? || _lt_function_replace_fail=:
15185
15186
15187 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15188 func_append_quoted ()\
15189 {\
15190 \ func_quote_for_eval "${2}"\
15191 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15192 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15193 && mv -f "$cfgfile.tmp" "$cfgfile" \
15194 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15195 test 0 -eq $? || _lt_function_replace_fail=:
15196
15197
15198 # Save a `func_append' function call where possible by direct use of '+='
15199 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15200 && mv -f "$cfgfile.tmp" "$cfgfile" \
15201 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15202 test 0 -eq $? || _lt_function_replace_fail=:
15203 else
15204 # Save a `func_append' function call even when '+=' is not available
15205 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15206 && mv -f "$cfgfile.tmp" "$cfgfile" \
15207 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15208 test 0 -eq $? || _lt_function_replace_fail=:
15209 fi
15210
15211 if test x"$_lt_function_replace_fail" = x":"; then
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15213 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15214 fi
15215
15216
15217 mv -f "$cfgfile" "$ofile" ||
15218 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15219 chmod +x "$ofile"
15220
15221 ;;
15222
15223 esac
15224 done # for ac_tag
15225
15226
15227 as_fn_exit 0
15228 _ACEOF
15229 ac_clean_files=$ac_clean_files_save
15230
15231 test $ac_write_fail = 0 ||
15232 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15233
15234
15235 # configure is writing to config.log, and then calls config.status.
15236 # config.status does its own redirection, appending to config.log.
15237 # Unfortunately, on DOS this fails, as config.log is still kept open
15238 # by configure, so config.status won't be able to write to it; its
15239 # output is simply discarded. So we exec the FD to /dev/null,
15240 # effectively closing config.log, so it can be properly (re)opened and
15241 # appended to by config.status. When coming back to configure, we
15242 # need to make the FD available again.
15243 if test "$no_create" != yes; then
15244 ac_cs_success=:
15245 ac_config_status_args=
15246 test "$silent" = yes &&
15247 ac_config_status_args="$ac_config_status_args --quiet"
15248 exec 5>/dev/null
15249 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15250 exec 5>>config.log
15251 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15252 # would make configure fail if this is the last instruction.
15253 $ac_cs_success || as_fn_exit 1
15254 fi
15255 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15257 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15258 fi
15259
+0
-266
autom4te.cache/requests less more
0 # This file was generated by Autom4te Sun Feb 23 17:19:32 UTC 2014.
1 # It contains the lists of macros which have been traced.
2 # It can be safely removed.
3
4 @request = (
5 bless( [
6 '0',
7 1,
8 [
9 '/usr/share/autoconf'
10 ],
11 [
12 '/usr/share/autoconf/autoconf/autoconf.m4f',
13 '/usr/share/aclocal/libtool.m4',
14 '/usr/share/aclocal/ltoptions.m4',
15 '/usr/share/aclocal/ltsugar.m4',
16 '/usr/share/aclocal/ltversion.m4',
17 '/usr/share/aclocal/lt~obsolete.m4',
18 '/usr/share/aclocal/pkg.m4',
19 '/usr/share/aclocal-1.9/amversion.m4',
20 '/usr/share/aclocal-1.9/auxdir.m4',
21 '/usr/share/aclocal-1.9/ccstdc.m4',
22 '/usr/share/aclocal-1.9/cond.m4',
23 '/usr/share/aclocal-1.9/depend.m4',
24 '/usr/share/aclocal-1.9/depout.m4',
25 '/usr/share/aclocal-1.9/header.m4',
26 '/usr/share/aclocal-1.9/init.m4',
27 '/usr/share/aclocal-1.9/install-sh.m4',
28 '/usr/share/aclocal-1.9/lead-dot.m4',
29 '/usr/share/aclocal-1.9/make.m4',
30 '/usr/share/aclocal-1.9/missing.m4',
31 '/usr/share/aclocal-1.9/mkdirp.m4',
32 '/usr/share/aclocal-1.9/options.m4',
33 '/usr/share/aclocal-1.9/runlog.m4',
34 '/usr/share/aclocal-1.9/sanity.m4',
35 '/usr/share/aclocal-1.9/strip.m4',
36 '/usr/share/aclocal-1.9/tar.m4',
37 'configure.in'
38 ],
39 {
40 'AC_DEFUN_ONCE' => 1,
41 'LT_PATH_LD' => 1,
42 'AC_PROG_LD_GNU' => 1,
43 '_LT_AC_LANG_C_CONFIG' => 1,
44 '_LT_PROG_CXX' => 1,
45 'AM_ENABLE_SHARED' => 1,
46 '_AM_MANGLE_OPTION' => 1,
47 'AM_AUTOMAKE_VERSION' => 1,
48 '_LT_REQUIRED_DARWIN_CHECKS' => 1,
49 'AC_DEFUN' => 1,
50 'AC_PROG_LIBTOOL' => 1,
51 'AC_PATH_TOOL_PREFIX' => 1,
52 'LT_PROG_GO' => 1,
53 'LT_OUTPUT' => 1,
54 'AC_LIBTOOL_SYS_OLD_ARCHIVE' => 1,
55 'LTOPTIONS_VERSION' => 1,
56 'AC_LTDL_OBJDIR' => 1,
57 '_PKG_SHORT_ERRORS_SUPPORTED' => 1,
58 'LTVERSION_VERSION' => 1,
59 '_LT_AC_TAGCONFIG' => 1,
60 'AC_DISABLE_SHARED' => 1,
61 'AM_MAKE_INCLUDE' => 1,
62 'AC_LIBTOOL_RC' => 1,
63 '_LT_PROG_LTMAIN' => 1,
64 'LT_AC_PROG_GCJ' => 1,
65 'AU_DEFUN' => 1,
66 '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1,
67 '_LT_AC_PROG_CXXCPP' => 1,
68 '_LT_PREPARE_SED_QUOTE_VARS' => 1,
69 'AC_DEPLIBS_CHECK_METHOD' => 1,
70 'AC_LIBTOOL_PROG_CC_C_O' => 1,
71 'AM_MISSING_PROG' => 1,
72 '_LT_AC_LANG_GCJ' => 1,
73 '_LT_WITH_SYSROOT' => 1,
74 '_LT_CC_BASENAME' => 1,
75 'AM_PROG_NM' => 1,
76 '_LT_AC_LANG_CXX_CONFIG' => 1,
77 'AC_LIBTOOL_DLOPEN_SELF' => 1,
78 'AC_LIBTOOL_PROG_COMPILER_NO_RTTI' => 1,
79 '_LT_COMPILER_OPTION' => 1,
80 '_AC_PROG_LIBTOOL' => 1,
81 '_LT_AC_TRY_DLOPEN_SELF' => 1,
82 'AC_LIBTOOL_LANG_C_CONFIG' => 1,
83 'm4_pattern_allow' => 1,
84 'AC_LIBTOOL_LANG_CXX_CONFIG' => 1,
85 'AM_ENABLE_STATIC' => 1,
86 'AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE' => 1,
87 '_LT_LINKER_BOILERPLATE' => 1,
88 'AM_PROG_LIBTOOL' => 1,
89 'AC_LIBTOOL_PROG_LD_SHLIBS' => 1,
90 'LT_LANG' => 1,
91 'AM_PROG_MKDIR_P' => 1,
92 'AM_RUN_LOG' => 1,
93 'AC_LTDL_ENABLE_INSTALL' => 1,
94 'AC_LIBTOOL_LANG_F77_CONFIG' => 1,
95 'AC_LIBTOOL_SYS_HARD_LINK_LOCKS' => 1,
96 'AM_MISSING_HAS_RUN' => 1,
97 'include' => 1,
98 'LT_CMD_MAX_LEN' => 1,
99 'AC_LIBTOOL_CXX' => 1,
100 '_LT_COMPILER_BOILERPLATE' => 1,
101 'LT_PATH_NM' => 1,
102 '_AM_IF_OPTION' => 1,
103 'AM_PROG_INSTALL_STRIP' => 1,
104 'AC_LIBTOOL_F77' => 1,
105 'LTSUGAR_VERSION' => 1,
106 'AC_LIBTOOL_LANG_GCJ_CONFIG' => 1,
107 'AM_PROG_CC_STDC' => 1,
108 'AC_LIBTOOL_COMPILER_OPTION' => 1,
109 '_LT_AC_SYS_COMPILER' => 1,
110 'LT_SYS_DLOPEN_SELF' => 1,
111 'm4_pattern_forbid' => 1,
112 '_AC_AM_CONFIG_HEADER_HOOK' => 1,
113 'AM_DISABLE_SHARED' => 1,
114 '_LT_PATH_TOOL_PREFIX' => 1,
115 'AM_AUX_DIR_EXPAND' => 1,
116 '_LT_AC_PROG_ECHO_BACKSLASH' => 1,
117 '_LT_AC_CHECK_DLFCN' => 1,
118 'AC_LIBTOOL_PICMODE' => 1,
119 'AM_SANITY_CHECK' => 1,
120 '_LT_AC_LANG_GCJ_CONFIG' => 1,
121 '_m4_warn' => 1,
122 'LT_PROG_GCJ' => 1,
123 '_LT_LINKER_OPTION' => 1,
124 'AC_LIBTOOL_CONFIG' => 1,
125 'AC_LTDL_PREOPEN' => 1,
126 'AC_DISABLE_STATIC' => 1,
127 'AC_ENABLE_SHARED' => 1,
128 '_LT_AC_FILE_LTDLL_C' => 1,
129 'LT_AC_PROG_EGREP' => 1,
130 'AC_PROG_EGREP' => 1,
131 'AM_INIT_AUTOMAKE' => 1,
132 'AC_ENABLE_FAST_INSTALL' => 1,
133 '_LT_PROG_ECHO_BACKSLASH' => 1,
134 'AC_LIBTOOL_LANG_RC_CONFIG' => 1,
135 'AC_PROG_NM' => 1,
136 'AC_LIBTOOL_SETUP' => 1,
137 '_LT_AC_SHELL_INIT' => 1,
138 '_LT_AC_LANG_F77' => 1,
139 'LT_INIT' => 1,
140 'LT_LIB_M' => 1,
141 '_LT_AC_LOCK' => 1,
142 'AC_LIBTOOL_FC' => 1,
143 '_LT_AC_SYS_LIBPATH_AIX' => 1,
144 'AM_SET_LEADING_DOT' => 1,
145 'PKG_CHECK_EXISTS' => 1,
146 'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1,
147 'AC_CHECK_LIBM' => 1,
148 'fp_PROG_CC_STDC' => 1,
149 'LT_PROG_RC' => 1,
150 'AC_DISABLE_FAST_INSTALL' => 1,
151 'AC_LIBTOOL_GCJ' => 1,
152 '_LT_AC_LANG_CXX' => 1,
153 'LT_SUPPORTED_TAG' => 1,
154 'AC_LIBTOOL_SYS_MAX_CMD_LEN' => 1,
155 'AC_PROG_LD' => 1,
156 '_AM_DEPENDENCIES' => 1,
157 'PKG_CHECK_MODULES' => 1,
158 'AC_LIBTOOL_POSTDEP_PREDEP' => 1,
159 'AC_PROG_LD_RELOAD_FLAG' => 1,
160 '_LT_PROG_F77' => 1,
161 'AC_ENABLE_STATIC' => 1,
162 'AM_DISABLE_STATIC' => 1,
163 'AM_CONFIG_HEADER' => 1,
164 '_AM_SET_OPTION' => 1,
165 'AC_LIBTOOL_SYS_DYNAMIC_LINKER' => 1,
166 'AC_PATH_MAGIC' => 1,
167 'AC_LIBTOOL_WIN32_DLL' => 1,
168 '_AM_PROG_TAR' => 1,
169 'm4_include' => 1,
170 '_AM_SET_OPTIONS' => 1,
171 'PKG_PROG_PKG_CONFIG' => 1,
172 'AM_PROG_LD' => 1,
173 'AM_CONDITIONAL' => 1,
174 'AC_LIBTOOL_OBJDIR' => 1,
175 'AM_PROG_INSTALL_SH' => 1,
176 'AC_LIBTOOL_DLOPEN' => 1,
177 'AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH' => 1,
178 'LT_AC_PROG_SED' => 1,
179 'AM_SET_DEPDIR' => 1,
180 'AC_LIBTOOL_PROG_COMPILER_PIC' => 1,
181 '_LT_AC_TAGVAR' => 1,
182 '_LT_PROG_FC' => 1,
183 '_LT_AC_LANG_RC_CONFIG' => 1,
184 'AC_LIBTOOL_SYS_LIB_STRIP' => 1,
185 'AM_DEP_TRACK' => 1,
186 'AC_LIBTOOL_LINKER_OPTION' => 1,
187 'LTOBSOLETE_VERSION' => 1,
188 '_LT_AC_LANG_F77_CONFIG' => 1,
189 'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1,
190 'LT_AC_PROG_RC' => 1
191 }
192 ], 'Autom4te::Request' ),
193 bless( [
194 '1',
195 1,
196 [
197 '/usr/share/autoconf'
198 ],
199 [
200 '/usr/share/autoconf/autoconf/autoconf.m4f',
201 'aclocal.m4',
202 'configure.in'
203 ],
204 {
205 '_AM_SUBST_NOTMAKE' => 1,
206 'AM_PROG_F77_C_O' => 1,
207 'AC_CANONICAL_TARGET' => 1,
208 'AC_FC_SRCEXT' => 1,
209 'AH_OUTPUT' => 1,
210 'AC_INIT' => 1,
211 'm4_pattern_forbid' => 1,
212 'AC_CONFIG_FILES' => 1,
213 'LT_INIT' => 1,
214 '_AM_COND_IF' => 1,
215 'AC_CONFIG_LIBOBJ_DIR' => 1,
216 'sinclude' => 1,
217 'AC_FC_PP_SRCEXT' => 1,
218 'AM_POT_TOOLS' => 1,
219 'AM_XGETTEXT_OPTION' => 1,
220 'AM_CONDITIONAL' => 1,
221 'AC_CANONICAL_SYSTEM' => 1,
222 'include' => 1,
223 'AC_CANONICAL_BUILD' => 1,
224 'AM_PATH_GUILE' => 1,
225 'm4_sinclude' => 1,
226 'm4_include' => 1,
227 'AM_INIT_AUTOMAKE' => 1,
228 '_LT_AC_TAGCONFIG' => 1,
229 'LT_CONFIG_LTDL_DIR' => 1,
230 'AC_SUBST' => 1,
231 'AM_PROG_MOC' => 1,
232 'AM_SILENT_RULES' => 1,
233 'AC_FC_PP_DEFINE' => 1,
234 'AC_SUBST_TRACE' => 1,
235 '_AM_COND_ELSE' => 1,
236 'AM_NLS' => 1,
237 'AM_PROG_FC_C_O' => 1,
238 'AC_CONFIG_SUBDIRS' => 1,
239 'AC_REQUIRE_AUX_FILE' => 1,
240 'AC_CANONICAL_HOST' => 1,
241 '_m4_warn' => 1,
242 'AC_CONFIG_HEADERS' => 1,
243 'AC_PROG_LIBTOOL' => 1,
244 '_AM_COND_ENDIF' => 1,
245 'LT_SUPPORTED_TAG' => 1,
246 'AM_AUTOMAKE_VERSION' => 1,
247 'm4_pattern_allow' => 1,
248 'AM_PROG_CXX_C_O' => 1,
249 'AM_MAKEFILE_INCLUDE' => 1,
250 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1,
251 'AM_MAINTAINER_MODE' => 1,
252 'AC_CONFIG_LINKS' => 1,
253 'AM_PROG_CC_C_O' => 1,
254 '_AM_MAKEFILE_INCLUDE' => 1,
255 'AM_GNU_GETTEXT' => 1,
256 'AM_PROG_AR' => 1,
257 'AC_DEFINE_TRACE_LITERAL' => 1,
258 'AC_CONFIG_AUX_DIR' => 1,
259 'AC_LIBSOURCE' => 1,
260 'AM_ENABLE_MULTILIB' => 1,
261 'AC_FC_FREEFORM' => 1
262 }
263 ], 'Autom4te::Request' )
264 );
265
+0
-1861
autom4te.cache/traces.0 less more
0 m4trace:/usr/share/aclocal/libtool.m4:69: -1- AC_DEFUN([LT_INIT], [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
1 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
2 AC_BEFORE([$0], [LT_LANG])dnl
3 AC_BEFORE([$0], [LT_OUTPUT])dnl
4 AC_BEFORE([$0], [LTDL_INIT])dnl
5 m4_require([_LT_CHECK_BUILDDIR])dnl
6
7 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
8 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
9 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
10 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
11 dnl unless we require an AC_DEFUNed macro:
12 AC_REQUIRE([LTOPTIONS_VERSION])dnl
13 AC_REQUIRE([LTSUGAR_VERSION])dnl
14 AC_REQUIRE([LTVERSION_VERSION])dnl
15 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
16 m4_require([_LT_PROG_LTMAIN])dnl
17
18 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
19
20 dnl Parse OPTIONS
21 _LT_SET_OPTIONS([$0], [$1])
22
23 # This can be used to rebuild libtool when needed
24 LIBTOOL_DEPS="$ltmain"
25
26 # Always use our own libtool.
27 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
28 AC_SUBST(LIBTOOL)dnl
29
30 _LT_SETUP
31
32 # Only expand once:
33 m4_define([LT_INIT])
34 ])
35 m4trace:/usr/share/aclocal/libtool.m4:107: -1- AU_DEFUN([AC_PROG_LIBTOOL], [m4_if($#, 0, [LT_INIT], [LT_INIT($@)])])
36 m4trace:/usr/share/aclocal/libtool.m4:107: -1- AC_DEFUN([AC_PROG_LIBTOOL], [AC_DIAGNOSE([obsolete], [The macro `AC_PROG_LIBTOOL' is obsolete.
37 You should run autoupdate.])dnl
38 m4_if($#, 0, [LT_INIT], [LT_INIT($@)])])
39 m4trace:/usr/share/aclocal/libtool.m4:108: -1- AU_DEFUN([AM_PROG_LIBTOOL], [m4_if($#, 0, [LT_INIT], [LT_INIT($@)])])
40 m4trace:/usr/share/aclocal/libtool.m4:108: -1- AC_DEFUN([AM_PROG_LIBTOOL], [AC_DIAGNOSE([obsolete], [The macro `AM_PROG_LIBTOOL' is obsolete.
41 You should run autoupdate.])dnl
42 m4_if($#, 0, [LT_INIT], [LT_INIT($@)])])
43 m4trace:/usr/share/aclocal/libtool.m4:609: -1- AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt}
44 AC_MSG_NOTICE([creating $CONFIG_LT])
45 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
46 [# Run this file to recreate a libtool stub with the current configuration.])
47
48 cat >>"$CONFIG_LT" <<\_LTEOF
49 lt_cl_silent=false
50 exec AS_MESSAGE_LOG_FD>>config.log
51 {
52 echo
53 AS_BOX([Running $as_me.])
54 } >&AS_MESSAGE_LOG_FD
55
56 lt_cl_help="\
57 \`$as_me' creates a local libtool stub from the current configuration,
58 for use in further configure time tests before the real libtool is
59 generated.
60
61 Usage: $[0] [[OPTIONS]]
62
63 -h, --help print this help, then exit
64 -V, --version print version number, then exit
65 -q, --quiet do not print progress messages
66 -d, --debug don't remove temporary files
67
68 Report bugs to <bug-libtool@gnu.org>."
69
70 lt_cl_version="\
71 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
72 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
73 configured by $[0], generated by m4_PACKAGE_STRING.
74
75 Copyright (C) 2011 Free Software Foundation, Inc.
76 This config.lt script is free software; the Free Software Foundation
77 gives unlimited permision to copy, distribute and modify it."
78
79 while test $[#] != 0
80 do
81 case $[1] in
82 --version | --v* | -V )
83 echo "$lt_cl_version"; exit 0 ;;
84 --help | --h* | -h )
85 echo "$lt_cl_help"; exit 0 ;;
86 --debug | --d* | -d )
87 debug=: ;;
88 --quiet | --q* | --silent | --s* | -q )
89 lt_cl_silent=: ;;
90
91 -*) AC_MSG_ERROR([unrecognized option: $[1]
92 Try \`$[0] --help' for more information.]) ;;
93
94 *) AC_MSG_ERROR([unrecognized argument: $[1]
95 Try \`$[0] --help' for more information.]) ;;
96 esac
97 shift
98 done
99
100 if $lt_cl_silent; then
101 exec AS_MESSAGE_FD>/dev/null
102 fi
103 _LTEOF
104
105 cat >>"$CONFIG_LT" <<_LTEOF
106 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
107 _LTEOF
108
109 cat >>"$CONFIG_LT" <<\_LTEOF
110 AC_MSG_NOTICE([creating $ofile])
111 _LT_OUTPUT_LIBTOOL_COMMANDS
112 AS_EXIT(0)
113 _LTEOF
114 chmod +x "$CONFIG_LT"
115
116 # configure is writing to config.log, but config.lt does its own redirection,
117 # appending to config.log, which fails on DOS, as config.log is still kept
118 # open by configure. Here we exec the FD to /dev/null, effectively closing
119 # config.log, so it can be properly (re)opened and appended to by config.lt.
120 lt_cl_success=:
121 test "$silent" = yes &&
122 lt_config_lt_args="$lt_config_lt_args --quiet"
123 exec AS_MESSAGE_LOG_FD>/dev/null
124 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
125 exec AS_MESSAGE_LOG_FD>>config.log
126 $lt_cl_success || AS_EXIT(1)
127 ])
128 m4trace:/usr/share/aclocal/libtool.m4:790: -1- AC_DEFUN([LT_SUPPORTED_TAG], [])
129 m4trace:/usr/share/aclocal/libtool.m4:801: -1- AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl
130 m4_case([$1],
131 [C], [_LT_LANG(C)],
132 [C++], [_LT_LANG(CXX)],
133 [Go], [_LT_LANG(GO)],
134 [Java], [_LT_LANG(GCJ)],
135 [Fortran 77], [_LT_LANG(F77)],
136 [Fortran], [_LT_LANG(FC)],
137 [Windows Resource], [_LT_LANG(RC)],
138 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
139 [_LT_LANG($1)],
140 [m4_fatal([$0: unsupported language: "$1"])])])dnl
141 ])
142 m4trace:/usr/share/aclocal/libtool.m4:893: -1- AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
143 m4trace:/usr/share/aclocal/libtool.m4:893: -1- AC_DEFUN([AC_LIBTOOL_CXX], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_CXX' is obsolete.
144 You should run autoupdate.])dnl
145 LT_LANG(C++)])
146 m4trace:/usr/share/aclocal/libtool.m4:894: -1- AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
147 m4trace:/usr/share/aclocal/libtool.m4:894: -1- AC_DEFUN([AC_LIBTOOL_F77], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_F77' is obsolete.
148 You should run autoupdate.])dnl
149 LT_LANG(Fortran 77)])
150 m4trace:/usr/share/aclocal/libtool.m4:895: -1- AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
151 m4trace:/usr/share/aclocal/libtool.m4:895: -1- AC_DEFUN([AC_LIBTOOL_FC], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_FC' is obsolete.
152 You should run autoupdate.])dnl
153 LT_LANG(Fortran)])
154 m4trace:/usr/share/aclocal/libtool.m4:896: -1- AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
155 m4trace:/usr/share/aclocal/libtool.m4:896: -1- AC_DEFUN([AC_LIBTOOL_GCJ], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_GCJ' is obsolete.
156 You should run autoupdate.])dnl
157 LT_LANG(Java)])
158 m4trace:/usr/share/aclocal/libtool.m4:897: -1- AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
159 m4trace:/usr/share/aclocal/libtool.m4:897: -1- AC_DEFUN([AC_LIBTOOL_RC], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_RC' is obsolete.
160 You should run autoupdate.])dnl
161 LT_LANG(Windows Resource)])
162 m4trace:/usr/share/aclocal/libtool.m4:1225: -1- AC_DEFUN([_LT_WITH_SYSROOT], [AC_MSG_CHECKING([for sysroot])
163 AC_ARG_WITH([sysroot],
164 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
165 (or the compiler's sysroot if not specified).],
166 [], [with_sysroot=no])
167
168 dnl lt_sysroot will always be passed unquoted. We quote it here
169 dnl in case the user passed a directory name.
170 lt_sysroot=
171 case ${with_sysroot} in #(
172 yes)
173 if test "$GCC" = yes; then
174 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
175 fi
176 ;; #(
177 /*)
178 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
179 ;; #(
180 no|'')
181 ;; #(
182 *)
183 AC_MSG_RESULT([${with_sysroot}])
184 AC_MSG_ERROR([The sysroot must be an absolute path.])
185 ;;
186 esac
187
188 AC_MSG_RESULT([${lt_sysroot:-no}])
189 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
190 [dependent libraries, and in which our libraries should be installed.])])
191 m4trace:/usr/share/aclocal/libtool.m4:1515: -1- AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
192 m4_require([_LT_DECL_SED])dnl
193 AC_CACHE_CHECK([$1], [$2],
194 [$2=no
195 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
197 lt_compiler_flag="$3"
198 # Insert the option either (1) after the last *FLAGS variable, or
199 # (2) before a word containing "conftest.", or (3) at the end.
200 # Note that $ac_compile itself does not contain backslashes and begins
201 # with a dollar sign (not a hyphen), so the echo should work correctly.
202 # The option is referenced via a variable to avoid confusing sed.
203 lt_compile=`echo "$ac_compile" | $SED \
204 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
205 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
206 -e 's:$: $lt_compiler_flag:'`
207 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
208 (eval "$lt_compile" 2>conftest.err)
209 ac_status=$?
210 cat conftest.err >&AS_MESSAGE_LOG_FD
211 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
212 if (exit $ac_status) && test -s "$ac_outfile"; then
213 # The compiler can only warn and ignore the option if not recognized
214 # So say no if there are warnings other than the usual output.
215 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
216 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
217 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
218 $2=yes
219 fi
220 fi
221 $RM conftest*
222 ])
223
224 if test x"[$]$2" = xyes; then
225 m4_if([$5], , :, [$5])
226 else
227 m4_if([$6], , :, [$6])
228 fi
229 ])
230 m4trace:/usr/share/aclocal/libtool.m4:1557: -1- AU_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [m4_if($#, 0, [_LT_COMPILER_OPTION], [_LT_COMPILER_OPTION($@)])])
231 m4trace:/usr/share/aclocal/libtool.m4:1557: -1- AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_COMPILER_OPTION' is obsolete.
232 You should run autoupdate.])dnl
233 m4_if($#, 0, [_LT_COMPILER_OPTION], [_LT_COMPILER_OPTION($@)])])
234 m4trace:/usr/share/aclocal/libtool.m4:1566: -1- AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
235 m4_require([_LT_DECL_SED])dnl
236 AC_CACHE_CHECK([$1], [$2],
237 [$2=no
238 save_LDFLAGS="$LDFLAGS"
239 LDFLAGS="$LDFLAGS $3"
240 echo "$lt_simple_link_test_code" > conftest.$ac_ext
241 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
242 # The linker can only warn and ignore the option if not recognized
243 # So say no if there are warnings
244 if test -s conftest.err; then
245 # Append any errors to the config.log.
246 cat conftest.err 1>&AS_MESSAGE_LOG_FD
247 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
248 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
249 if diff conftest.exp conftest.er2 >/dev/null; then
250 $2=yes
251 fi
252 else
253 $2=yes
254 fi
255 fi
256 $RM -r conftest*
257 LDFLAGS="$save_LDFLAGS"
258 ])
259
260 if test x"[$]$2" = xyes; then
261 m4_if([$4], , :, [$4])
262 else
263 m4_if([$5], , :, [$5])
264 fi
265 ])
266 m4trace:/usr/share/aclocal/libtool.m4:1601: -1- AU_DEFUN([AC_LIBTOOL_LINKER_OPTION], [m4_if($#, 0, [_LT_LINKER_OPTION], [_LT_LINKER_OPTION($@)])])
267 m4trace:/usr/share/aclocal/libtool.m4:1601: -1- AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_LINKER_OPTION' is obsolete.
268 You should run autoupdate.])dnl
269 m4_if($#, 0, [_LT_LINKER_OPTION], [_LT_LINKER_OPTION($@)])])
270 m4trace:/usr/share/aclocal/libtool.m4:1608: -1- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl
271 # find the maximum length of command line arguments
272 AC_MSG_CHECKING([the maximum length of command line arguments])
273 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
274 i=0
275 teststring="ABCD"
276
277 case $build_os in
278 msdosdjgpp*)
279 # On DJGPP, this test can blow up pretty badly due to problems in libc
280 # (any single argument exceeding 2000 bytes causes a buffer overrun
281 # during glob expansion). Even if it were fixed, the result of this
282 # check would be larger than it should be.
283 lt_cv_sys_max_cmd_len=12288; # 12K is about right
284 ;;
285
286 gnu*)
287 # Under GNU Hurd, this test is not required because there is
288 # no limit to the length of command line arguments.
289 # Libtool will interpret -1 as no limit whatsoever
290 lt_cv_sys_max_cmd_len=-1;
291 ;;
292
293 cygwin* | mingw* | cegcc*)
294 # On Win9x/ME, this test blows up -- it succeeds, but takes
295 # about 5 minutes as the teststring grows exponentially.
296 # Worse, since 9x/ME are not pre-emptively multitasking,
297 # you end up with a "frozen" computer, even though with patience
298 # the test eventually succeeds (with a max line length of 256k).
299 # Instead, let's just punt: use the minimum linelength reported by
300 # all of the supported platforms: 8192 (on NT/2K/XP).
301 lt_cv_sys_max_cmd_len=8192;
302 ;;
303
304 mint*)
305 # On MiNT this can take a long time and run out of memory.
306 lt_cv_sys_max_cmd_len=8192;
307 ;;
308
309 amigaos*)
310 # On AmigaOS with pdksh, this test takes hours, literally.
311 # So we just punt and use a minimum line length of 8192.
312 lt_cv_sys_max_cmd_len=8192;
313 ;;
314
315 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
316 # This has been around since 386BSD, at least. Likely further.
317 if test -x /sbin/sysctl; then
318 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
319 elif test -x /usr/sbin/sysctl; then
320 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
321 else
322 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
323 fi
324 # And add a safety zone
325 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
327 ;;
328
329 interix*)
330 # We know the value 262144 and hardcode it with a safety zone (like BSD)
331 lt_cv_sys_max_cmd_len=196608
332 ;;
333
334 os2*)
335 # The test takes a long time on OS/2.
336 lt_cv_sys_max_cmd_len=8192
337 ;;
338
339 osf*)
340 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
341 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
342 # nice to cause kernel panics so lets avoid the loop below.
343 # First set a reasonable default.
344 lt_cv_sys_max_cmd_len=16384
345 #
346 if test -x /sbin/sysconfig; then
347 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
348 *1*) lt_cv_sys_max_cmd_len=-1 ;;
349 esac
350 fi
351 ;;
352 sco3.2v5*)
353 lt_cv_sys_max_cmd_len=102400
354 ;;
355 sysv5* | sco5v6* | sysv4.2uw2*)
356 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
357 if test -n "$kargmax"; then
358 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
359 else
360 lt_cv_sys_max_cmd_len=32768
361 fi
362 ;;
363 *)
364 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
365 if test -n "$lt_cv_sys_max_cmd_len" && \
366 test undefined != "$lt_cv_sys_max_cmd_len"; then
367 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
368 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
369 else
370 # Make teststring a little bigger before we do anything with it.
371 # a 1K string should be a reasonable start.
372 for i in 1 2 3 4 5 6 7 8 ; do
373 teststring=$teststring$teststring
374 done
375 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
376 # If test is not a shell built-in, we'll probably end up computing a
377 # maximum length that is only half of the actual maximum length, but
378 # we can't tell.
379 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
380 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
381 test $i != 17 # 1/2 MB should be enough
382 do
383 i=`expr $i + 1`
384 teststring=$teststring$teststring
385 done
386 # Only check the string length outside the loop.
387 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
388 teststring=
389 # Add a significant safety factor because C++ compilers can tack on
390 # massive amounts of additional arguments before passing them to the
391 # linker. It appears as though 1/2 is a usable value.
392 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
393 fi
394 ;;
395 esac
396 ])
397 if test -n $lt_cv_sys_max_cmd_len ; then
398 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
399 else
400 AC_MSG_RESULT(none)
401 fi
402 max_cmd_len=$lt_cv_sys_max_cmd_len
403 _LT_DECL([], [max_cmd_len], [0],
404 [What is the maximum length of a command?])
405 ])
406 m4trace:/usr/share/aclocal/libtool.m4:1747: -1- AU_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [m4_if($#, 0, [LT_CMD_MAX_LEN], [LT_CMD_MAX_LEN($@)])])
407 m4trace:/usr/share/aclocal/libtool.m4:1747: -1- AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_SYS_MAX_CMD_LEN' is obsolete.
408 You should run autoupdate.])dnl
409 m4_if($#, 0, [LT_CMD_MAX_LEN], [LT_CMD_MAX_LEN($@)])])
410 m4trace:/usr/share/aclocal/libtool.m4:1858: -1- AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl
411 if test "x$enable_dlopen" != xyes; then
412 enable_dlopen=unknown
413 enable_dlopen_self=unknown
414 enable_dlopen_self_static=unknown
415 else
416 lt_cv_dlopen=no
417 lt_cv_dlopen_libs=
418
419 case $host_os in
420 beos*)
421 lt_cv_dlopen="load_add_on"
422 lt_cv_dlopen_libs=
423 lt_cv_dlopen_self=yes
424 ;;
425
426 mingw* | pw32* | cegcc*)
427 lt_cv_dlopen="LoadLibrary"
428 lt_cv_dlopen_libs=
429 ;;
430
431 cygwin*)
432 lt_cv_dlopen="dlopen"
433 lt_cv_dlopen_libs=
434 ;;
435
436 darwin*)
437 # if libdl is installed we need to link against it
438 AC_CHECK_LIB([dl], [dlopen],
439 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
440 lt_cv_dlopen="dyld"
441 lt_cv_dlopen_libs=
442 lt_cv_dlopen_self=yes
443 ])
444 ;;
445
446 *)
447 AC_CHECK_FUNC([shl_load],
448 [lt_cv_dlopen="shl_load"],
449 [AC_CHECK_LIB([dld], [shl_load],
450 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
451 [AC_CHECK_FUNC([dlopen],
452 [lt_cv_dlopen="dlopen"],
453 [AC_CHECK_LIB([dl], [dlopen],
454 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
455 [AC_CHECK_LIB([svld], [dlopen],
456 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
457 [AC_CHECK_LIB([dld], [dld_link],
458 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
459 ])
460 ])
461 ])
462 ])
463 ])
464 ;;
465 esac
466
467 if test "x$lt_cv_dlopen" != xno; then
468 enable_dlopen=yes
469 else
470 enable_dlopen=no
471 fi
472
473 case $lt_cv_dlopen in
474 dlopen)
475 save_CPPFLAGS="$CPPFLAGS"
476 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
477
478 save_LDFLAGS="$LDFLAGS"
479 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
480
481 save_LIBS="$LIBS"
482 LIBS="$lt_cv_dlopen_libs $LIBS"
483
484 AC_CACHE_CHECK([whether a program can dlopen itself],
485 lt_cv_dlopen_self, [dnl
486 _LT_TRY_DLOPEN_SELF(
487 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
488 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
489 ])
490
491 if test "x$lt_cv_dlopen_self" = xyes; then
492 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
493 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
494 lt_cv_dlopen_self_static, [dnl
495 _LT_TRY_DLOPEN_SELF(
496 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
497 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
498 ])
499 fi
500
501 CPPFLAGS="$save_CPPFLAGS"
502 LDFLAGS="$save_LDFLAGS"
503 LIBS="$save_LIBS"
504 ;;
505 esac
506
507 case $lt_cv_dlopen_self in
508 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
509 *) enable_dlopen_self=unknown ;;
510 esac
511
512 case $lt_cv_dlopen_self_static in
513 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
514 *) enable_dlopen_self_static=unknown ;;
515 esac
516 fi
517 _LT_DECL([dlopen_support], [enable_dlopen], [0],
518 [Whether dlopen is supported])
519 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
520 [Whether dlopen of programs is supported])
521 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
522 [Whether dlopen of statically linked programs is supported])
523 ])
524 m4trace:/usr/share/aclocal/libtool.m4:1975: -1- AU_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [m4_if($#, 0, [LT_SYS_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF($@)])])
525 m4trace:/usr/share/aclocal/libtool.m4:1975: -1- AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_DLOPEN_SELF' is obsolete.
526 You should run autoupdate.])dnl
527 m4_if($#, 0, [LT_SYS_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF($@)])])
528 m4trace:/usr/share/aclocal/libtool.m4:2945: -1- AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl
529 AC_MSG_CHECKING([for $1])
530 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
531 [case $MAGIC_CMD in
532 [[\\/*] | ?:[\\/]*])
533 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
534 ;;
535 *)
536 lt_save_MAGIC_CMD="$MAGIC_CMD"
537 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
538 dnl $ac_dummy forces splitting on constant user-supplied paths.
539 dnl POSIX.2 word splitting is done only on the output of word expansions,
540 dnl not every word. This closes a longstanding sh security hole.
541 ac_dummy="m4_if([$2], , $PATH, [$2])"
542 for ac_dir in $ac_dummy; do
543 IFS="$lt_save_ifs"
544 test -z "$ac_dir" && ac_dir=.
545 if test -f $ac_dir/$1; then
546 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
547 if test -n "$file_magic_test_file"; then
548 case $deplibs_check_method in
549 "file_magic "*)
550 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
551 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
552 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
553 $EGREP "$file_magic_regex" > /dev/null; then
554 :
555 else
556 cat <<_LT_EOF 1>&2
557
558 *** Warning: the command libtool uses to detect shared libraries,
559 *** $file_magic_cmd, produces output that libtool cannot recognize.
560 *** The result is that libtool may fail to recognize shared libraries
561 *** as such. This will affect the creation of libtool libraries that
562 *** depend on shared libraries, but programs linked with such libtool
563 *** libraries will work regardless of this problem. Nevertheless, you
564 *** may want to report the problem to your system manager and/or to
565 *** bug-libtool@gnu.org
566
567 _LT_EOF
568 fi ;;
569 esac
570 fi
571 break
572 fi
573 done
574 IFS="$lt_save_ifs"
575 MAGIC_CMD="$lt_save_MAGIC_CMD"
576 ;;
577 esac])
578 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
579 if test -n "$MAGIC_CMD"; then
580 AC_MSG_RESULT($MAGIC_CMD)
581 else
582 AC_MSG_RESULT(no)
583 fi
584 _LT_DECL([], [MAGIC_CMD], [0],
585 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
586 ])
587 m4trace:/usr/share/aclocal/libtool.m4:3007: -1- AU_DEFUN([AC_PATH_TOOL_PREFIX], [m4_if($#, 0, [_LT_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX($@)])])
588 m4trace:/usr/share/aclocal/libtool.m4:3007: -1- AC_DEFUN([AC_PATH_TOOL_PREFIX], [AC_DIAGNOSE([obsolete], [The macro `AC_PATH_TOOL_PREFIX' is obsolete.
589 You should run autoupdate.])dnl
590 m4_if($#, 0, [_LT_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX($@)])])
591 m4trace:/usr/share/aclocal/libtool.m4:3030: -1- AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl
592 AC_REQUIRE([AC_CANONICAL_HOST])dnl
593 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
594 m4_require([_LT_DECL_SED])dnl
595 m4_require([_LT_DECL_EGREP])dnl
596 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
597
598 AC_ARG_WITH([gnu-ld],
599 [AS_HELP_STRING([--with-gnu-ld],
600 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
601 [test "$withval" = no || with_gnu_ld=yes],
602 [with_gnu_ld=no])dnl
603
604 ac_prog=ld
605 if test "$GCC" = yes; then
606 # Check if gcc -print-prog-name=ld gives a path.
607 AC_MSG_CHECKING([for ld used by $CC])
608 case $host in
609 *-*-mingw*)
610 # gcc leaves a trailing carriage return which upsets mingw
611 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
612 *)
613 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
614 esac
615 case $ac_prog in
616 # Accept absolute paths.
617 [[\\/]]* | ?:[[\\/]]*)
618 re_direlt='/[[^/]][[^/]]*/\.\./'
619 # Canonicalize the pathname of ld
620 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
621 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
622 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
623 done
624 test -z "$LD" && LD="$ac_prog"
625 ;;
626 "")
627 # If it fails, then pretend we aren't using GCC.
628 ac_prog=ld
629 ;;
630 *)
631 # If it is relative, then search for the first ld in PATH.
632 with_gnu_ld=unknown
633 ;;
634 esac
635 elif test "$with_gnu_ld" = yes; then
636 AC_MSG_CHECKING([for GNU ld])
637 else
638 AC_MSG_CHECKING([for non-GNU ld])
639 fi
640 AC_CACHE_VAL(lt_cv_path_LD,
641 [if test -z "$LD"; then
642 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
643 for ac_dir in $PATH; do
644 IFS="$lt_save_ifs"
645 test -z "$ac_dir" && ac_dir=.
646 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
647 lt_cv_path_LD="$ac_dir/$ac_prog"
648 # Check to see if the program is GNU ld. I'd rather use --version,
649 # but apparently some variants of GNU ld only accept -v.
650 # Break only if it was the GNU/non-GNU ld that we prefer.
651 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
652 *GNU* | *'with BFD'*)
653 test "$with_gnu_ld" != no && break
654 ;;
655 *)
656 test "$with_gnu_ld" != yes && break
657 ;;
658 esac
659 fi
660 done
661 IFS="$lt_save_ifs"
662 else
663 lt_cv_path_LD="$LD" # Let the user override the test with a path.
664 fi])
665 LD="$lt_cv_path_LD"
666 if test -n "$LD"; then
667 AC_MSG_RESULT($LD)
668 else
669 AC_MSG_RESULT(no)
670 fi
671 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
672 _LT_PATH_LD_GNU
673 AC_SUBST([LD])
674
675 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
676 ])
677 m4trace:/usr/share/aclocal/libtool.m4:3119: -1- AU_DEFUN([AM_PROG_LD], [m4_if($#, 0, [LT_PATH_LD], [LT_PATH_LD($@)])])
678 m4trace:/usr/share/aclocal/libtool.m4:3119: -1- AC_DEFUN([AM_PROG_LD], [AC_DIAGNOSE([obsolete], [The macro `AM_PROG_LD' is obsolete.
679 You should run autoupdate.])dnl
680 m4_if($#, 0, [LT_PATH_LD], [LT_PATH_LD($@)])])
681 m4trace:/usr/share/aclocal/libtool.m4:3120: -1- AU_DEFUN([AC_PROG_LD], [m4_if($#, 0, [LT_PATH_LD], [LT_PATH_LD($@)])])
682 m4trace:/usr/share/aclocal/libtool.m4:3120: -1- AC_DEFUN([AC_PROG_LD], [AC_DIAGNOSE([obsolete], [The macro `AC_PROG_LD' is obsolete.
683 You should run autoupdate.])dnl
684 m4_if($#, 0, [LT_PATH_LD], [LT_PATH_LD($@)])])
685 m4trace:/usr/share/aclocal/libtool.m4:3410: -1- AC_DEFUN([LT_PATH_NM], [AC_REQUIRE([AC_PROG_CC])dnl
686 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
687 [if test -n "$NM"; then
688 # Let the user override the test.
689 lt_cv_path_NM="$NM"
690 else
691 lt_nm_to_check="${ac_tool_prefix}nm"
692 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
693 lt_nm_to_check="$lt_nm_to_check nm"
694 fi
695 for lt_tmp_nm in $lt_nm_to_check; do
696 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
697 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
698 IFS="$lt_save_ifs"
699 test -z "$ac_dir" && ac_dir=.
700 tmp_nm="$ac_dir/$lt_tmp_nm"
701 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
702 # Check to see if the nm accepts a BSD-compat flag.
703 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
704 # nm: unknown option "B" ignored
705 # Tru64's nm complains that /dev/null is an invalid object file
706 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
707 */dev/null* | *'Invalid file or object type'*)
708 lt_cv_path_NM="$tmp_nm -B"
709 break
710 ;;
711 *)
712 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
713 */dev/null*)
714 lt_cv_path_NM="$tmp_nm -p"
715 break
716 ;;
717 *)
718 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
719 continue # so that we can try to find one that supports BSD flags
720 ;;
721 esac
722 ;;
723 esac
724 fi
725 done
726 IFS="$lt_save_ifs"
727 done
728 : ${lt_cv_path_NM=no}
729 fi])
730 if test "$lt_cv_path_NM" != "no"; then
731 NM="$lt_cv_path_NM"
732 else
733 # Didn't find any BSD compatible name lister, look for dumpbin.
734 if test -n "$DUMPBIN"; then :
735 # Let the user override the test.
736 else
737 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
738 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
739 *COFF*)
740 DUMPBIN="$DUMPBIN -symbols"
741 ;;
742 *)
743 DUMPBIN=:
744 ;;
745 esac
746 fi
747 AC_SUBST([DUMPBIN])
748 if test "$DUMPBIN" != ":"; then
749 NM="$DUMPBIN"
750 fi
751 fi
752 test -z "$NM" && NM=nm
753 AC_SUBST([NM])
754 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
755
756 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
757 [lt_cv_nm_interface="BSD nm"
758 echo "int some_variable = 0;" > conftest.$ac_ext
759 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
760 (eval "$ac_compile" 2>conftest.err)
761 cat conftest.err >&AS_MESSAGE_LOG_FD
762 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
763 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
764 cat conftest.err >&AS_MESSAGE_LOG_FD
765 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
766 cat conftest.out >&AS_MESSAGE_LOG_FD
767 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
768 lt_cv_nm_interface="MS dumpbin"
769 fi
770 rm -f conftest*])
771 ])
772 m4trace:/usr/share/aclocal/libtool.m4:3500: -1- AU_DEFUN([AM_PROG_NM], [m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])])
773 m4trace:/usr/share/aclocal/libtool.m4:3500: -1- AC_DEFUN([AM_PROG_NM], [AC_DIAGNOSE([obsolete], [The macro `AM_PROG_NM' is obsolete.
774 You should run autoupdate.])dnl
775 m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])])
776 m4trace:/usr/share/aclocal/libtool.m4:3501: -1- AU_DEFUN([AC_PROG_NM], [m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])])
777 m4trace:/usr/share/aclocal/libtool.m4:3501: -1- AC_DEFUN([AC_PROG_NM], [AC_DIAGNOSE([obsolete], [The macro `AC_PROG_NM' is obsolete.
778 You should run autoupdate.])dnl
779 m4_if($#, 0, [LT_PATH_NM], [LT_PATH_NM($@)])])
780 m4trace:/usr/share/aclocal/libtool.m4:3571: -1- AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl
781 LIBM=
782 case $host in
783 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
784 # These system don't have libm, or don't need it
785 ;;
786 *-ncr-sysv4.3*)
787 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
788 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
789 ;;
790 *)
791 AC_CHECK_LIB(m, cos, LIBM="-lm")
792 ;;
793 esac
794 AC_SUBST([LIBM])
795 ])
796 m4trace:/usr/share/aclocal/libtool.m4:3590: -1- AU_DEFUN([AC_CHECK_LIBM], [m4_if($#, 0, [LT_LIB_M], [LT_LIB_M($@)])])
797 m4trace:/usr/share/aclocal/libtool.m4:3590: -1- AC_DEFUN([AC_CHECK_LIBM], [AC_DIAGNOSE([obsolete], [The macro `AC_CHECK_LIBM' is obsolete.
798 You should run autoupdate.])dnl
799 m4_if($#, 0, [LT_LIB_M], [LT_LIB_M($@)])])
800 m4trace:/usr/share/aclocal/libtool.m4:7637: -1- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
801 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
802 [AC_CHECK_TOOL(GCJ, gcj,)
803 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
804 AC_SUBST(GCJFLAGS)])])[]dnl
805 ])
806 m4trace:/usr/share/aclocal/libtool.m4:7646: -1- AU_DEFUN([LT_AC_PROG_GCJ], [m4_if($#, 0, [LT_PROG_GCJ], [LT_PROG_GCJ($@)])])
807 m4trace:/usr/share/aclocal/libtool.m4:7646: -1- AC_DEFUN([LT_AC_PROG_GCJ], [AC_DIAGNOSE([obsolete], [The macro `LT_AC_PROG_GCJ' is obsolete.
808 You should run autoupdate.])dnl
809 m4_if($#, 0, [LT_PROG_GCJ], [LT_PROG_GCJ($@)])])
810 m4trace:/usr/share/aclocal/libtool.m4:7653: -1- AC_DEFUN([LT_PROG_GO], [AC_CHECK_TOOL(GOC, gccgo,)
811 ])
812 m4trace:/usr/share/aclocal/libtool.m4:7660: -1- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,)
813 ])
814 m4trace:/usr/share/aclocal/libtool.m4:7665: -1- AU_DEFUN([LT_AC_PROG_RC], [m4_if($#, 0, [LT_PROG_RC], [LT_PROG_RC($@)])])
815 m4trace:/usr/share/aclocal/libtool.m4:7665: -1- AC_DEFUN([LT_AC_PROG_RC], [AC_DIAGNOSE([obsolete], [The macro `LT_AC_PROG_RC' is obsolete.
816 You should run autoupdate.])dnl
817 m4_if($#, 0, [LT_PROG_RC], [LT_PROG_RC($@)])])
818 m4trace:/usr/share/aclocal/libtool.m4:7785: -1- AU_DEFUN([LT_AC_PROG_SED], [m4_if($#, 0, [AC_PROG_SED], [AC_PROG_SED($@)])])
819 m4trace:/usr/share/aclocal/libtool.m4:7785: -1- AC_DEFUN([LT_AC_PROG_SED], [AC_DIAGNOSE([obsolete], [The macro `LT_AC_PROG_SED' is obsolete.
820 You should run autoupdate.])dnl
821 m4_if($#, 0, [AC_PROG_SED], [AC_PROG_SED($@)])])
822 m4trace:/usr/share/aclocal/ltoptions.m4:14: -1- AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
823 m4trace:/usr/share/aclocal/ltoptions.m4:111: -1- AU_DEFUN([AC_LIBTOOL_DLOPEN], [_LT_SET_OPTION([LT_INIT], [dlopen])
824 AC_DIAGNOSE([obsolete],
825 [$0: Remove this warning and the call to _LT_SET_OPTION when you
826 put the `dlopen' option into LT_INIT's first parameter.])
827 ])
828 m4trace:/usr/share/aclocal/ltoptions.m4:111: -1- AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_DLOPEN' is obsolete.
829 You should run autoupdate.])dnl
830 _LT_SET_OPTION([LT_INIT], [dlopen])
831 AC_DIAGNOSE([obsolete],
832 [$0: Remove this warning and the call to _LT_SET_OPTION when you
833 put the `dlopen' option into LT_INIT's first parameter.])
834 ])
835 m4trace:/usr/share/aclocal/ltoptions.m4:146: -1- AU_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_REQUIRE([AC_CANONICAL_HOST])dnl
836 _LT_SET_OPTION([LT_INIT], [win32-dll])
837 AC_DIAGNOSE([obsolete],
838 [$0: Remove this warning and the call to _LT_SET_OPTION when you
839 put the `win32-dll' option into LT_INIT's first parameter.])
840 ])
841 m4trace:/usr/share/aclocal/ltoptions.m4:146: -1- AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_WIN32_DLL' is obsolete.
842 You should run autoupdate.])dnl
843 AC_REQUIRE([AC_CANONICAL_HOST])dnl
844 _LT_SET_OPTION([LT_INIT], [win32-dll])
845 AC_DIAGNOSE([obsolete],
846 [$0: Remove this warning and the call to _LT_SET_OPTION when you
847 put the `win32-dll' option into LT_INIT's first parameter.])
848 ])
849 m4trace:/usr/share/aclocal/ltoptions.m4:195: -1- AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
850 ])
851 m4trace:/usr/share/aclocal/ltoptions.m4:199: -1- AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared])
852 ])
853 m4trace:/usr/share/aclocal/ltoptions.m4:203: -1- AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
854 m4trace:/usr/share/aclocal/ltoptions.m4:203: -1- AC_DEFUN([AM_ENABLE_SHARED], [AC_DIAGNOSE([obsolete], [The macro `AM_ENABLE_SHARED' is obsolete.
855 You should run autoupdate.])dnl
856 AC_ENABLE_SHARED($@)])
857 m4trace:/usr/share/aclocal/ltoptions.m4:204: -1- AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
858 m4trace:/usr/share/aclocal/ltoptions.m4:204: -1- AC_DEFUN([AM_DISABLE_SHARED], [AC_DIAGNOSE([obsolete], [The macro `AM_DISABLE_SHARED' is obsolete.
859 You should run autoupdate.])dnl
860 AC_DISABLE_SHARED($@)])
861 m4trace:/usr/share/aclocal/ltoptions.m4:249: -1- AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
862 ])
863 m4trace:/usr/share/aclocal/ltoptions.m4:253: -1- AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static])
864 ])
865 m4trace:/usr/share/aclocal/ltoptions.m4:257: -1- AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
866 m4trace:/usr/share/aclocal/ltoptions.m4:257: -1- AC_DEFUN([AM_ENABLE_STATIC], [AC_DIAGNOSE([obsolete], [The macro `AM_ENABLE_STATIC' is obsolete.
867 You should run autoupdate.])dnl
868 AC_ENABLE_STATIC($@)])
869 m4trace:/usr/share/aclocal/ltoptions.m4:258: -1- AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
870 m4trace:/usr/share/aclocal/ltoptions.m4:258: -1- AC_DEFUN([AM_DISABLE_STATIC], [AC_DIAGNOSE([obsolete], [The macro `AM_DISABLE_STATIC' is obsolete.
871 You should run autoupdate.])dnl
872 AC_DISABLE_STATIC($@)])
873 m4trace:/usr/share/aclocal/ltoptions.m4:303: -1- AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
874 AC_DIAGNOSE([obsolete],
875 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
876 the `fast-install' option into LT_INIT's first parameter.])
877 ])
878 m4trace:/usr/share/aclocal/ltoptions.m4:303: -1- AC_DEFUN([AC_ENABLE_FAST_INSTALL], [AC_DIAGNOSE([obsolete], [The macro `AC_ENABLE_FAST_INSTALL' is obsolete.
879 You should run autoupdate.])dnl
880 _LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
881 AC_DIAGNOSE([obsolete],
882 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
883 the `fast-install' option into LT_INIT's first parameter.])
884 ])
885 m4trace:/usr/share/aclocal/ltoptions.m4:310: -1- AU_DEFUN([AC_DISABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
886 AC_DIAGNOSE([obsolete],
887 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
888 the `disable-fast-install' option into LT_INIT's first parameter.])
889 ])
890 m4trace:/usr/share/aclocal/ltoptions.m4:310: -1- AC_DEFUN([AC_DISABLE_FAST_INSTALL], [AC_DIAGNOSE([obsolete], [The macro `AC_DISABLE_FAST_INSTALL' is obsolete.
891 You should run autoupdate.])dnl
892 _LT_SET_OPTION([LT_INIT], [disable-fast-install])
893 AC_DIAGNOSE([obsolete],
894 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
895 the `disable-fast-install' option into LT_INIT's first parameter.])
896 ])
897 m4trace:/usr/share/aclocal/ltoptions.m4:358: -1- AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only])
898 AC_DIAGNOSE([obsolete],
899 [$0: Remove this warning and the call to _LT_SET_OPTION when you
900 put the `pic-only' option into LT_INIT's first parameter.])
901 ])
902 m4trace:/usr/share/aclocal/ltoptions.m4:358: -1- AC_DEFUN([AC_LIBTOOL_PICMODE], [AC_DIAGNOSE([obsolete], [The macro `AC_LIBTOOL_PICMODE' is obsolete.
903 You should run autoupdate.])dnl
904 _LT_SET_OPTION([LT_INIT], [pic-only])
905 AC_DIAGNOSE([obsolete],
906 [$0: Remove this warning and the call to _LT_SET_OPTION when you
907 put the `pic-only' option into LT_INIT's first parameter.])
908 ])
909 m4trace:/usr/share/aclocal/ltsugar.m4:13: -1- AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
910 m4trace:/usr/share/aclocal/ltversion.m4:18: -1- AC_DEFUN([LTVERSION_VERSION], [macro_version='2.4.2'
911 macro_revision='1.3337'
912 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
913 _LT_DECL(, macro_revision, 0)
914 ])
915 m4trace:/usr/share/aclocal/lt~obsolete.m4:36: -1- AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
916 m4trace:/usr/share/aclocal/lt~obsolete.m4:40: -1- AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])
917 m4trace:/usr/share/aclocal/lt~obsolete.m4:41: -1- AC_DEFUN([_LT_AC_SHELL_INIT])
918 m4trace:/usr/share/aclocal/lt~obsolete.m4:42: -1- AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])
919 m4trace:/usr/share/aclocal/lt~obsolete.m4:44: -1- AC_DEFUN([_LT_AC_TAGVAR])
920 m4trace:/usr/share/aclocal/lt~obsolete.m4:45: -1- AC_DEFUN([AC_LTDL_ENABLE_INSTALL])
921 m4trace:/usr/share/aclocal/lt~obsolete.m4:46: -1- AC_DEFUN([AC_LTDL_PREOPEN])
922 m4trace:/usr/share/aclocal/lt~obsolete.m4:47: -1- AC_DEFUN([_LT_AC_SYS_COMPILER])
923 m4trace:/usr/share/aclocal/lt~obsolete.m4:48: -1- AC_DEFUN([_LT_AC_LOCK])
924 m4trace:/usr/share/aclocal/lt~obsolete.m4:49: -1- AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])
925 m4trace:/usr/share/aclocal/lt~obsolete.m4:50: -1- AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])
926 m4trace:/usr/share/aclocal/lt~obsolete.m4:51: -1- AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])
927 m4trace:/usr/share/aclocal/lt~obsolete.m4:52: -1- AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])
928 m4trace:/usr/share/aclocal/lt~obsolete.m4:53: -1- AC_DEFUN([AC_LIBTOOL_OBJDIR])
929 m4trace:/usr/share/aclocal/lt~obsolete.m4:54: -1- AC_DEFUN([AC_LTDL_OBJDIR])
930 m4trace:/usr/share/aclocal/lt~obsolete.m4:55: -1- AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])
931 m4trace:/usr/share/aclocal/lt~obsolete.m4:56: -1- AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])
932 m4trace:/usr/share/aclocal/lt~obsolete.m4:57: -1- AC_DEFUN([AC_PATH_MAGIC])
933 m4trace:/usr/share/aclocal/lt~obsolete.m4:58: -1- AC_DEFUN([AC_PROG_LD_GNU])
934 m4trace:/usr/share/aclocal/lt~obsolete.m4:59: -1- AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])
935 m4trace:/usr/share/aclocal/lt~obsolete.m4:60: -1- AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])
936 m4trace:/usr/share/aclocal/lt~obsolete.m4:61: -1- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])
937 m4trace:/usr/share/aclocal/lt~obsolete.m4:62: -1- AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])
938 m4trace:/usr/share/aclocal/lt~obsolete.m4:63: -1- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])
939 m4trace:/usr/share/aclocal/lt~obsolete.m4:64: -1- AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])
940 m4trace:/usr/share/aclocal/lt~obsolete.m4:65: -1- AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])
941 m4trace:/usr/share/aclocal/lt~obsolete.m4:66: -1- AC_DEFUN([LT_AC_PROG_EGREP])
942 m4trace:/usr/share/aclocal/lt~obsolete.m4:71: -1- AC_DEFUN([_AC_PROG_LIBTOOL])
943 m4trace:/usr/share/aclocal/lt~obsolete.m4:72: -1- AC_DEFUN([AC_LIBTOOL_SETUP])
944 m4trace:/usr/share/aclocal/lt~obsolete.m4:73: -1- AC_DEFUN([_LT_AC_CHECK_DLFCN])
945 m4trace:/usr/share/aclocal/lt~obsolete.m4:74: -1- AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])
946 m4trace:/usr/share/aclocal/lt~obsolete.m4:75: -1- AC_DEFUN([_LT_AC_TAGCONFIG])
947 m4trace:/usr/share/aclocal/lt~obsolete.m4:77: -1- AC_DEFUN([_LT_AC_LANG_CXX])
948 m4trace:/usr/share/aclocal/lt~obsolete.m4:78: -1- AC_DEFUN([_LT_AC_LANG_F77])
949 m4trace:/usr/share/aclocal/lt~obsolete.m4:79: -1- AC_DEFUN([_LT_AC_LANG_GCJ])
950 m4trace:/usr/share/aclocal/lt~obsolete.m4:80: -1- AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])
951 m4trace:/usr/share/aclocal/lt~obsolete.m4:81: -1- AC_DEFUN([_LT_AC_LANG_C_CONFIG])
952 m4trace:/usr/share/aclocal/lt~obsolete.m4:82: -1- AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])
953 m4trace:/usr/share/aclocal/lt~obsolete.m4:83: -1- AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])
954 m4trace:/usr/share/aclocal/lt~obsolete.m4:84: -1- AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])
955 m4trace:/usr/share/aclocal/lt~obsolete.m4:85: -1- AC_DEFUN([_LT_AC_LANG_F77_CONFIG])
956 m4trace:/usr/share/aclocal/lt~obsolete.m4:86: -1- AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])
957 m4trace:/usr/share/aclocal/lt~obsolete.m4:87: -1- AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])
958 m4trace:/usr/share/aclocal/lt~obsolete.m4:88: -1- AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])
959 m4trace:/usr/share/aclocal/lt~obsolete.m4:89: -1- AC_DEFUN([_LT_AC_LANG_RC_CONFIG])
960 m4trace:/usr/share/aclocal/lt~obsolete.m4:90: -1- AC_DEFUN([AC_LIBTOOL_CONFIG])
961 m4trace:/usr/share/aclocal/lt~obsolete.m4:91: -1- AC_DEFUN([_LT_AC_FILE_LTDLL_C])
962 m4trace:/usr/share/aclocal/lt~obsolete.m4:93: -1- AC_DEFUN([_LT_AC_PROG_CXXCPP])
963 m4trace:/usr/share/aclocal/lt~obsolete.m4:96: -1- AC_DEFUN([_LT_PROG_F77])
964 m4trace:/usr/share/aclocal/lt~obsolete.m4:97: -1- AC_DEFUN([_LT_PROG_FC])
965 m4trace:/usr/share/aclocal/lt~obsolete.m4:98: -1- AC_DEFUN([_LT_PROG_CXX])
966 m4trace:/usr/share/aclocal/pkg.m4:27: -1- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
967 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
968 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
969 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
970 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
971 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
972
973 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
974 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
975 fi
976 if test -n "$PKG_CONFIG"; then
977 _pkg_min_version=m4_default([$1], [0.9.0])
978 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
979 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
980 AC_MSG_RESULT([yes])
981 else
982 AC_MSG_RESULT([no])
983 PKG_CONFIG=""
984 fi
985 fi[]dnl
986 ])
987 m4trace:/usr/share/aclocal/pkg.m4:60: -1- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
988 if test -n "$PKG_CONFIG" && \
989 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
990 m4_default([$2], [:])
991 m4_ifvaln([$3], [else
992 $3])dnl
993 fi])
994 m4trace:/usr/share/aclocal/pkg.m4:86: -1- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
995 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
996 _pkg_short_errors_supported=yes
997 else
998 _pkg_short_errors_supported=no
999 fi[]dnl
1000 ])
1001 m4trace:/usr/share/aclocal/pkg.m4:106: -1- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1002 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
1003 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
1004
1005 pkg_failed=no
1006 AC_MSG_CHECKING([for $1])
1007
1008 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
1009 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
1010
1011 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
1012 and $1[]_LIBS to avoid the need to call pkg-config.
1013 See the pkg-config man page for more details.])
1014
1015 if test $pkg_failed = yes; then
1016 AC_MSG_RESULT([no])
1017 _PKG_SHORT_ERRORS_SUPPORTED
1018 if test $_pkg_short_errors_supported = yes; then
1019 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
1020 else
1021 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
1022 fi
1023 # Put the nasty error message in config.log where it belongs
1024 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
1025
1026 m4_default([$4], [AC_MSG_ERROR(
1027 [Package requirements ($2) were not met:
1028
1029 $$1_PKG_ERRORS
1030
1031 Consider adjusting the PKG_CONFIG_PATH environment variable if you
1032 installed software in a non-standard prefix.
1033
1034 _PKG_TEXT])[]dnl
1035 ])
1036 elif test $pkg_failed = untried; then
1037 AC_MSG_RESULT([no])
1038 m4_default([$4], [AC_MSG_FAILURE(
1039 [The pkg-config script could not be found or is too old. Make sure it
1040 is in your PATH or set the PKG_CONFIG environment variable to the full
1041 path to pkg-config.
1042
1043 _PKG_TEXT
1044
1045 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
1046 ])
1047 else
1048 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
1049 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
1050 AC_MSG_RESULT([yes])
1051 $3
1052 fi[]dnl
1053 ])
1054 m4trace:/usr/share/aclocal-1.9/amversion.m4:13: -1- AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
1055 m4trace:/usr/share/aclocal-1.9/amversion.m4:19: -1- AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.9.6])])
1056 m4trace:/usr/share/aclocal-1.9/auxdir.m4:47: -1- AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly.
1057 AC_PREREQ([2.50])dnl
1058 # expand $ac_aux_dir to an absolute path
1059 am_aux_dir=`cd $ac_aux_dir && pwd`
1060 ])
1061 m4trace:/usr/share/aclocal-1.9/ccstdc.m4:17: -1- AU_DEFUN([AM_PROG_CC_STDC], [AC_PROG_CC
1062 AC_DIAGNOSE([obsolete], [$0:
1063 your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
1064 `ac_cv_prog_cc_stdc'. Remove this warning and the assignment when
1065 you adjust the code. You can also remove the above call to
1066 AC_PROG_CC if you already called it elsewhere.])
1067 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
1068 ])
1069 m4trace:/usr/share/aclocal-1.9/ccstdc.m4:17: -1- AC_DEFUN([AM_PROG_CC_STDC], [AC_DIAGNOSE([obsolete], [The macro `AM_PROG_CC_STDC' is obsolete.
1070 You should run autoupdate.])dnl
1071 AC_PROG_CC
1072 AC_DIAGNOSE([obsolete], [$0:
1073 your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
1074 `ac_cv_prog_cc_stdc'. Remove this warning and the assignment when
1075 you adjust the code. You can also remove the above call to
1076 AC_PROG_CC if you already called it elsewhere.])
1077 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
1078 ])
1079 m4trace:/usr/share/aclocal-1.9/ccstdc.m4:26: -1- AU_DEFUN([fp_PROG_CC_STDC])
1080 m4trace:/usr/share/aclocal-1.9/ccstdc.m4:26: -1- AC_DEFUN([fp_PROG_CC_STDC], [AC_DIAGNOSE([obsolete], [The macro `fp_PROG_CC_STDC' is obsolete.
1081 You should run autoupdate.])dnl
1082 ])
1083 m4trace:/usr/share/aclocal-1.9/cond.m4:15: -1- AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl
1084 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
1085 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
1086 AC_SUBST([$1_TRUE])
1087 AC_SUBST([$1_FALSE])
1088 if $2; then
1089 $1_TRUE=
1090 $1_FALSE='#'
1091 else
1092 $1_TRUE='#'
1093 $1_FALSE=
1094 fi
1095 AC_CONFIG_COMMANDS_PRE(
1096 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
1097 AC_MSG_ERROR([[conditional "$1" was never defined.
1098 Usually this means the macro was only invoked conditionally.]])
1099 fi])])
1100 m4trace:/usr/share/aclocal-1.9/depend.m4:29: -1- AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl
1101 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
1102 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
1103 AC_REQUIRE([AM_DEP_TRACK])dnl
1104
1105 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
1106 [$1], CXX, [depcc="$CXX" am_compiler_list=],
1107 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1108 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
1109 [depcc="$$1" am_compiler_list=])
1110
1111 AC_CACHE_CHECK([dependency style of $depcc],
1112 [am_cv_$1_dependencies_compiler_type],
1113 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1114 # We make a subdir and do the tests there. Otherwise we can end up
1115 # making bogus files that we don't know about and never remove. For
1116 # instance it was reported that on HP-UX the gcc test will end up
1117 # making a dummy file named `D' -- because `-MD' means `put the output
1118 # in D'.
1119 mkdir conftest.dir
1120 # Copy depcomp to subdir because otherwise we won't find it if we're
1121 # using a relative directory.
1122 cp "$am_depcomp" conftest.dir
1123 cd conftest.dir
1124 # We will build objects and dependencies in a subdirectory because
1125 # it helps to detect inapplicable dependency modes. For instance
1126 # both Tru64's cc and ICC support -MD to output dependencies as a
1127 # side effect of compilation, but ICC will put the dependencies in
1128 # the current directory while Tru64 will put them in the object
1129 # directory.
1130 mkdir sub
1131
1132 am_cv_$1_dependencies_compiler_type=none
1133 if test "$am_compiler_list" = ""; then
1134 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
1135 fi
1136 for depmode in $am_compiler_list; do
1137 # Setup a source with many dependencies, because some compilers
1138 # like to wrap large dependency lists on column 80 (with \), and
1139 # we should not choose a depcomp mode which is confused by this.
1140 #
1141 # We need to recreate these files for each test, as the compiler may
1142 # overwrite some of them when testing with obscure command lines.
1143 # This happens at least with the AIX C compiler.
1144 : > sub/conftest.c
1145 for i in 1 2 3 4 5 6; do
1146 echo '#include "conftst'$i'.h"' >> sub/conftest.c
1147 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1148 # Solaris 8's {/usr,}/bin/sh.
1149 touch sub/conftst$i.h
1150 done
1151 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1152
1153 case $depmode in
1154 nosideeffect)
1155 # after this tag, mechanisms are not by side-effect, so they'll
1156 # only be used when explicitly requested
1157 if test "x$enable_dependency_tracking" = xyes; then
1158 continue
1159 else
1160 break
1161 fi
1162 ;;
1163 none) break ;;
1164 esac
1165 # We check with `-c' and `-o' for the sake of the "dashmstdout"
1166 # mode. It turns out that the SunPro C++ compiler does not properly
1167 # handle `-M -o', and we need to detect this.
1168 if depmode=$depmode \
1169 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1170 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1171 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1172 >/dev/null 2>conftest.err &&
1173 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1174 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1175 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1176 # icc doesn't choke on unknown options, it will just issue warnings
1177 # or remarks (even with -Werror). So we grep stderr for any message
1178 # that says an option was ignored or not supported.
1179 # When given -MP, icc 7.0 and 7.1 complain thusly:
1180 # icc: Command line warning: ignoring option '-M'; no argument required
1181 # The diagnosis changed in icc 8.0:
1182 # icc: Command line remark: option '-MP' not supported
1183 if (grep 'ignoring option' conftest.err ||
1184 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1185 am_cv_$1_dependencies_compiler_type=$depmode
1186 break
1187 fi
1188 fi
1189 done
1190
1191 cd ..
1192 rm -rf conftest.dir
1193 else
1194 am_cv_$1_dependencies_compiler_type=none
1195 fi
1196 ])
1197 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
1198 AM_CONDITIONAL([am__fastdep$1], [
1199 test "x$enable_dependency_tracking" != xno \
1200 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
1201 ])
1202 m4trace:/usr/share/aclocal-1.9/depend.m4:138: -1- AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1203 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
1204 ])
1205 m4trace:/usr/share/aclocal-1.9/depend.m4:146: -1- AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking,
1206 [ --disable-dependency-tracking speeds up one-time build
1207 --enable-dependency-tracking do not reject slow dependency extractors])
1208 if test "x$enable_dependency_tracking" != xno; then
1209 am_depcomp="$ac_aux_dir/depcomp"
1210 AMDEPBACKSLASH='\'
1211 fi
1212 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1213 AC_SUBST([AMDEPBACKSLASH])
1214 ])
1215 m4trace:/usr/share/aclocal-1.9/depout.m4:14: -1- AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [for mf in $CONFIG_FILES; do
1216 # Strip MF so we end up with the name of the file.
1217 mf=`echo "$mf" | sed -e 's/:.*$//'`
1218 # Check whether this is an Automake generated Makefile or not.
1219 # We used to match only the files named `Makefile.in', but
1220 # some people rename them; so instead we look at the file content.
1221 # Grep'ing the first line is not enough: some people post-process
1222 # each Makefile.in and add a new line on top of each file to say so.
1223 # So let's grep whole file.
1224 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
1225 dirpart=`AS_DIRNAME("$mf")`
1226 else
1227 continue
1228 fi
1229 # Extract the definition of DEPDIR, am__include, and am__quote
1230 # from the Makefile without running `make'.
1231 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1232 test -z "$DEPDIR" && continue
1233 am__include=`sed -n 's/^am__include = //p' < "$mf"`
1234 test -z "am__include" && continue
1235 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1236 # When using ansi2knr, U may be empty or an underscore; expand it
1237 U=`sed -n 's/^U = //p' < "$mf"`
1238 # Find all dependency output files, they are included files with
1239 # $(DEPDIR) in their names. We invoke sed twice because it is the
1240 # simplest approach to changing $(DEPDIR) to its actual value in the
1241 # expansion.
1242 for file in `sed -n "
1243 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1244 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1245 # Make sure the directory exists.
1246 test -f "$dirpart/$file" && continue
1247 fdir=`AS_DIRNAME(["$file"])`
1248 AS_MKDIR_P([$dirpart/$fdir])
1249 # echo "creating $dirpart/$file"
1250 echo '# dummy' > "$dirpart/$file"
1251 done
1252 done
1253 ])
1254 m4trace:/usr/share/aclocal-1.9/depout.m4:63: -1- AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles],
1255 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1256 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1257 ])
1258 m4trace:/usr/share/aclocal-1.9/header.m4:12: -1- AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
1259 m4trace:/usr/share/aclocal-1.9/header.m4:12: -1- AC_DEFUN([AM_CONFIG_HEADER], [AC_DIAGNOSE([obsolete], [The macro `AM_CONFIG_HEADER' is obsolete.
1260 You should run autoupdate.])dnl
1261 AC_CONFIG_HEADERS($@)])
1262 m4trace:/usr/share/aclocal-1.9/init.m4:26: -1- AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.58])dnl
1263 dnl Autoconf wants to disallow AM_ names. We explicitly allow
1264 dnl the ones we care about.
1265 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1266 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1267 AC_REQUIRE([AC_PROG_INSTALL])dnl
1268 # test to see if srcdir already configured
1269 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1270 test -f $srcdir/config.status; then
1271 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1272 fi
1273
1274 # test whether we have cygpath
1275 if test -z "$CYGPATH_W"; then
1276 if (cygpath --version) >/dev/null 2>/dev/null; then
1277 CYGPATH_W='cygpath -w'
1278 else
1279 CYGPATH_W=echo
1280 fi
1281 fi
1282 AC_SUBST([CYGPATH_W])
1283
1284 # Define the identity of the package.
1285 dnl Distinguish between old-style and new-style calls.
1286 m4_ifval([$2],
1287 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1288 AC_SUBST([PACKAGE], [$1])dnl
1289 AC_SUBST([VERSION], [$2])],
1290 [_AM_SET_OPTIONS([$1])dnl
1291 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1292 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1293
1294 _AM_IF_OPTION([no-define],,
1295 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1296 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
1297
1298 # Some tools Automake needs.
1299 AC_REQUIRE([AM_SANITY_CHECK])dnl
1300 AC_REQUIRE([AC_ARG_PROGRAM])dnl
1301 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
1302 AM_MISSING_PROG(AUTOCONF, autoconf)
1303 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1304 AM_MISSING_PROG(AUTOHEADER, autoheader)
1305 AM_MISSING_PROG(MAKEINFO, makeinfo)
1306 AM_PROG_INSTALL_SH
1307 AM_PROG_INSTALL_STRIP
1308 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
1309 # We need awk for the "check" target. The system "awk" is bad on
1310 # some platforms.
1311 AC_REQUIRE([AC_PROG_AWK])dnl
1312 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1313 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1314 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1315 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1316 [_AM_PROG_TAR([v7])])])
1317 _AM_IF_OPTION([no-dependencies],,
1318 [AC_PROVIDE_IFELSE([AC_PROG_CC],
1319 [_AM_DEPENDENCIES(CC)],
1320 [define([AC_PROG_CC],
1321 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1322 AC_PROVIDE_IFELSE([AC_PROG_CXX],
1323 [_AM_DEPENDENCIES(CXX)],
1324 [define([AC_PROG_CXX],
1325 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1326 ])
1327 ])
1328 m4trace:/usr/share/aclocal-1.9/init.m4:102: -1- AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers.
1329 _am_stamp_count=1
1330 for _am_header in $config_headers :; do
1331 case $_am_header in
1332 $1 | $1:* )
1333 break ;;
1334 * )
1335 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1336 esac
1337 done
1338 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
1339 m4trace:/usr/share/aclocal-1.9/install-sh.m4:11: -1- AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1340 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1341 AC_SUBST(install_sh)])
1342 m4trace:/usr/share/aclocal-1.9/lead-dot.m4:12: -1- AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null
1343 mkdir .tst 2>/dev/null
1344 if test -d .tst; then
1345 am__leading_dot=.
1346 else
1347 am__leading_dot=_
1348 fi
1349 rmdir .tst 2>/dev/null
1350 AC_SUBST([am__leading_dot])])
1351 m4trace:/usr/share/aclocal-1.9/make.m4:14: -1- AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make}
1352 cat > confinc << 'END'
1353 am__doit:
1354 @echo done
1355 .PHONY: am__doit
1356 END
1357 # If we don't find an include directive, just comment out the code.
1358 AC_MSG_CHECKING([for style of include used by $am_make])
1359 am__include="#"
1360 am__quote=
1361 _am_result=none
1362 # First try GNU make style include.
1363 echo "include confinc" > confmf
1364 # We grep out `Entering directory' and `Leaving directory'
1365 # messages which can occur if `w' ends up in MAKEFLAGS.
1366 # In particular we don't look at `^make:' because GNU make might
1367 # be invoked under some other name (usually "gmake"), in which
1368 # case it prints its new name instead of `make'.
1369 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1370 am__include=include
1371 am__quote=
1372 _am_result=GNU
1373 fi
1374 # Now try BSD make style include.
1375 if test "$am__include" = "#"; then
1376 echo '.include "confinc"' > confmf
1377 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1378 am__include=.include
1379 am__quote="\""
1380 _am_result=BSD
1381 fi
1382 fi
1383 AC_SUBST([am__include])
1384 AC_SUBST([am__quote])
1385 AC_MSG_RESULT([$_am_result])
1386 rm -f confinc confmf
1387 ])
1388 m4trace:/usr/share/aclocal-1.9/missing.m4:14: -1- AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN])
1389 $1=${$1-"${am_missing_run}$2"}
1390 AC_SUBST($1)])
1391 m4trace:/usr/share/aclocal-1.9/missing.m4:24: -1- AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1392 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1393 # Use eval to expand $SHELL
1394 if eval "$MISSING --run true"; then
1395 am_missing_run="$MISSING --run "
1396 else
1397 am_missing_run=
1398 AC_MSG_WARN([`missing' script is too old or missing])
1399 fi
1400 ])
1401 m4trace:/usr/share/aclocal-1.9/mkdirp.m4:30: -1- AC_DEFUN([AM_PROG_MKDIR_P], [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1402 # We used to keeping the `.' as first argument, in order to
1403 # allow $(mkdir_p) to be used without argument. As in
1404 # $(mkdir_p) $(somedir)
1405 # where $(somedir) is conditionally defined. However this is wrong
1406 # for two reasons:
1407 # 1. if the package is installed by a user who cannot write `.'
1408 # make install will fail,
1409 # 2. the above comment should most certainly read
1410 # $(mkdir_p) $(DESTDIR)$(somedir)
1411 # so it does not work when $(somedir) is undefined and
1412 # $(DESTDIR) is not.
1413 # To support the latter case, we have to write
1414 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1415 # so the `.' trick is pointless.
1416 mkdir_p='mkdir -p --'
1417 else
1418 # On NextStep and OpenStep, the `mkdir' command does not
1419 # recognize any option. It will interpret all options as
1420 # directories to create, and then abort because `.' already
1421 # exists.
1422 for d in ./-p ./--version;
1423 do
1424 test -d $d && rmdir $d
1425 done
1426 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1427 if test -f "$ac_aux_dir/mkinstalldirs"; then
1428 mkdir_p='$(mkinstalldirs)'
1429 else
1430 mkdir_p='$(install_sh) -d'
1431 fi
1432 fi
1433 AC_SUBST([mkdir_p])])
1434 m4trace:/usr/share/aclocal-1.9/options.m4:13: -1- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1435 m4trace:/usr/share/aclocal-1.9/options.m4:19: -1- AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1436 m4trace:/usr/share/aclocal-1.9/options.m4:25: -1- AC_DEFUN([_AM_SET_OPTIONS], [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1437 m4trace:/usr/share/aclocal-1.9/options.m4:31: -1- AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1438 m4trace:/usr/share/aclocal-1.9/runlog.m4:12: -1- AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1439 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1440 ac_status=$?
1441 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1442 (exit $ac_status); }])
1443 m4trace:/usr/share/aclocal-1.9/sanity.m4:14: -1- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane])
1444 # Just in case
1445 sleep 1
1446 echo timestamp > conftest.file
1447 # Do `set' in a subshell so we don't clobber the current shell's
1448 # arguments. Must try -L first in case configure is actually a
1449 # symlink; some systems play weird games with the mod time of symlinks
1450 # (eg FreeBSD returns the mod time of the symlink's containing
1451 # directory).
1452 if (
1453 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1454 if test "$[*]" = "X"; then
1455 # -L didn't work.
1456 set X `ls -t $srcdir/configure conftest.file`
1457 fi
1458 rm -f conftest.file
1459 if test "$[*]" != "X $srcdir/configure conftest.file" \
1460 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1461
1462 # If neither matched, then we have a broken ls. This can happen
1463 # if, for instance, CONFIG_SHELL is bash and it inherits a
1464 # broken ls alias from the environment. This has actually
1465 # happened. Such a system could not be considered "sane".
1466 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1467 alias in your environment])
1468 fi
1469
1470 test "$[2]" = conftest.file
1471 )
1472 then
1473 # Ok.
1474 :
1475 else
1476 AC_MSG_ERROR([newly created file is older than distributed files!
1477 Check your system clock])
1478 fi
1479 AC_MSG_RESULT(yes)])
1480 m4trace:/usr/share/aclocal-1.9/strip.m4:17: -1- AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1481 # Installed binaries are usually stripped using `strip' when the user
1482 # run `make install-strip'. However `strip' might not be the right
1483 # tool to use in cross-compilation environments, therefore Automake
1484 # will honor the `STRIP' environment variable to overrule this program.
1485 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1486 if test "$cross_compiling" != no; then
1487 AC_CHECK_TOOL([STRIP], [strip], :)
1488 fi
1489 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1490 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1491 m4trace:/usr/share/aclocal-1.9/tar.m4:24: -1- AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility.
1492 AM_MISSING_PROG([AMTAR], [tar])
1493 m4_if([$1], [v7],
1494 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1495 [m4_case([$1], [ustar],, [pax],,
1496 [m4_fatal([Unknown tar format])])
1497 AC_MSG_CHECKING([how to create a $1 tar archive])
1498 # Loop over all known methods to create a tar archive until one works.
1499 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1500 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1501 # Do not fold the above two line into one, because Tru64 sh and
1502 # Solaris sh will not grok spaces in the rhs of `-'.
1503 for _am_tool in $_am_tools
1504 do
1505 case $_am_tool in
1506 gnutar)
1507 for _am_tar in tar gnutar gtar;
1508 do
1509 AM_RUN_LOG([$_am_tar --version]) && break
1510 done
1511 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1512 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1513 am__untar="$_am_tar -xf -"
1514 ;;
1515 plaintar)
1516 # Must skip GNU tar: if it does not support --format= it doesn't create
1517 # ustar tarball either.
1518 (tar --version) >/dev/null 2>&1 && continue
1519 am__tar='tar chf - "$$tardir"'
1520 am__tar_='tar chf - "$tardir"'
1521 am__untar='tar xf -'
1522 ;;
1523 pax)
1524 am__tar='pax -L -x $1 -w "$$tardir"'
1525 am__tar_='pax -L -x $1 -w "$tardir"'
1526 am__untar='pax -r'
1527 ;;
1528 cpio)
1529 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1530 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1531 am__untar='cpio -i -H $1 -d'
1532 ;;
1533 none)
1534 am__tar=false
1535 am__tar_=false
1536 am__untar=false
1537 ;;
1538 esac
1539
1540 # If the value was cached, stop now. We just wanted to have am__tar
1541 # and am__untar set.
1542 test -n "${am_cv_prog_tar_$1}" && break
1543
1544 # tar/untar a dummy directory, and stop if the command works
1545 rm -rf conftest.dir
1546 mkdir conftest.dir
1547 echo GrepMe > conftest.dir/file
1548 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1549 rm -rf conftest.dir
1550 if test -s conftest.tar; then
1551 AM_RUN_LOG([$am__untar <conftest.tar])
1552 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1553 fi
1554 done
1555 rm -rf conftest.dir
1556
1557 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1558 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1559 AC_SUBST([am__tar])
1560 AC_SUBST([am__untar])
1561 ])
1562 m4trace:configure.in:3: -1- m4_pattern_forbid([^_?A[CHUM]_])
1563 m4trace:configure.in:3: -1- m4_pattern_forbid([_AC_])
1564 m4trace:configure.in:3: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'])
1565 m4trace:configure.in:3: -1- m4_pattern_allow([^AS_FLAGS$])
1566 m4trace:configure.in:3: -1- m4_pattern_forbid([^_?m4_])
1567 m4trace:configure.in:3: -1- m4_pattern_forbid([^dnl$])
1568 m4trace:configure.in:3: -1- m4_pattern_forbid([^_?AS_])
1569 m4trace:configure.in:3: -1- m4_pattern_allow([^SHELL$])
1570 m4trace:configure.in:3: -1- m4_pattern_allow([^PATH_SEPARATOR$])
1571 m4trace:configure.in:3: -1- m4_pattern_allow([^PACKAGE_NAME$])
1572 m4trace:configure.in:3: -1- m4_pattern_allow([^PACKAGE_TARNAME$])
1573 m4trace:configure.in:3: -1- m4_pattern_allow([^PACKAGE_VERSION$])
1574 m4trace:configure.in:3: -1- m4_pattern_allow([^PACKAGE_STRING$])
1575 m4trace:configure.in:3: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$])
1576 m4trace:configure.in:3: -1- m4_pattern_allow([^PACKAGE_URL$])
1577 m4trace:configure.in:3: -1- m4_pattern_allow([^exec_prefix$])
1578 m4trace:configure.in:3: -1- m4_pattern_allow([^prefix$])
1579 m4trace:configure.in:3: -1- m4_pattern_allow([^program_transform_name$])
1580 m4trace:configure.in:3: -1- m4_pattern_allow([^bindir$])
1581 m4trace:configure.in:3: -1- m4_pattern_allow([^sbindir$])
1582 m4trace:configure.in:3: -1- m4_pattern_allow([^libexecdir$])
1583 m4trace:configure.in:3: -1- m4_pattern_allow([^datarootdir$])
1584 m4trace:configure.in:3: -1- m4_pattern_allow([^datadir$])
1585 m4trace:configure.in:3: -1- m4_pattern_allow([^sysconfdir$])
1586 m4trace:configure.in:3: -1- m4_pattern_allow([^sharedstatedir$])
1587 m4trace:configure.in:3: -1- m4_pattern_allow([^localstatedir$])
1588 m4trace:configure.in:3: -1- m4_pattern_allow([^includedir$])
1589 m4trace:configure.in:3: -1- m4_pattern_allow([^oldincludedir$])
1590 m4trace:configure.in:3: -1- m4_pattern_allow([^docdir$])
1591 m4trace:configure.in:3: -1- m4_pattern_allow([^infodir$])
1592 m4trace:configure.in:3: -1- m4_pattern_allow([^htmldir$])
1593 m4trace:configure.in:3: -1- m4_pattern_allow([^dvidir$])
1594 m4trace:configure.in:3: -1- m4_pattern_allow([^pdfdir$])
1595 m4trace:configure.in:3: -1- m4_pattern_allow([^psdir$])
1596 m4trace:configure.in:3: -1- m4_pattern_allow([^libdir$])
1597 m4trace:configure.in:3: -1- m4_pattern_allow([^localedir$])
1598 m4trace:configure.in:3: -1- m4_pattern_allow([^mandir$])
1599 m4trace:configure.in:3: -1- m4_pattern_allow([^PACKAGE_NAME$])
1600 m4trace:configure.in:3: -1- m4_pattern_allow([^PACKAGE_TARNAME$])
1601 m4trace:configure.in:3: -1- m4_pattern_allow([^PACKAGE_VERSION$])
1602 m4trace:configure.in:3: -1- m4_pattern_allow([^PACKAGE_STRING$])
1603 m4trace:configure.in:3: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$])
1604 m4trace:configure.in:3: -1- m4_pattern_allow([^PACKAGE_URL$])
1605 m4trace:configure.in:3: -1- m4_pattern_allow([^DEFS$])
1606 m4trace:configure.in:3: -1- m4_pattern_allow([^ECHO_C$])
1607 m4trace:configure.in:3: -1- m4_pattern_allow([^ECHO_N$])
1608 m4trace:configure.in:3: -1- m4_pattern_allow([^ECHO_T$])
1609 m4trace:configure.in:3: -1- m4_pattern_allow([^LIBS$])
1610 m4trace:configure.in:3: -1- m4_pattern_allow([^build_alias$])
1611 m4trace:configure.in:3: -1- m4_pattern_allow([^host_alias$])
1612 m4trace:configure.in:3: -1- m4_pattern_allow([^target_alias$])
1613 m4trace:configure.in:4: -1- AM_INIT_AUTOMAKE([gtkatlantic], [0.5.0])
1614 m4trace:configure.in:4: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$])
1615 m4trace:configure.in:4: -1- AM_SET_CURRENT_AUTOMAKE_VERSION
1616 m4trace:configure.in:4: -1- AM_AUTOMAKE_VERSION([1.9.6])
1617 m4trace:configure.in:4: -1- m4_pattern_allow([^INSTALL_PROGRAM$])
1618 m4trace:configure.in:4: -1- m4_pattern_allow([^INSTALL_SCRIPT$])
1619 m4trace:configure.in:4: -1- m4_pattern_allow([^INSTALL_DATA$])
1620 m4trace:configure.in:4: -1- m4_pattern_allow([^CYGPATH_W$])
1621 m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE$])
1622 m4trace:configure.in:4: -1- m4_pattern_allow([^VERSION$])
1623 m4trace:configure.in:4: -1- _AM_IF_OPTION([no-define], [], [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1624 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])
1625 m4trace:configure.in:4: -2- _AM_MANGLE_OPTION([no-define])
1626 m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE$])
1627 m4trace:configure.in:4: -1- m4_pattern_allow([^VERSION$])
1628 m4trace:configure.in:4: -1- AM_SANITY_CHECK
1629 m4trace:configure.in:4: -1- AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
1630 m4trace:configure.in:4: -1- AM_MISSING_HAS_RUN
1631 m4trace:configure.in:4: -1- AM_AUX_DIR_EXPAND
1632 m4trace:configure.in:4: -1- m4_pattern_allow([^ACLOCAL$])
1633 m4trace:configure.in:4: -1- AM_MISSING_PROG([AUTOCONF], [autoconf])
1634 m4trace:configure.in:4: -1- m4_pattern_allow([^AUTOCONF$])
1635 m4trace:configure.in:4: -1- AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
1636 m4trace:configure.in:4: -1- m4_pattern_allow([^AUTOMAKE$])
1637 m4trace:configure.in:4: -1- AM_MISSING_PROG([AUTOHEADER], [autoheader])
1638 m4trace:configure.in:4: -1- m4_pattern_allow([^AUTOHEADER$])
1639 m4trace:configure.in:4: -1- AM_MISSING_PROG([MAKEINFO], [makeinfo])
1640 m4trace:configure.in:4: -1- m4_pattern_allow([^MAKEINFO$])
1641 m4trace:configure.in:4: -1- AM_PROG_INSTALL_SH
1642 m4trace:configure.in:4: -1- m4_pattern_allow([^install_sh$])
1643 m4trace:configure.in:4: -1- AM_PROG_INSTALL_STRIP
1644 m4trace:configure.in:4: -1- m4_pattern_allow([^STRIP$])
1645 m4trace:configure.in:4: -1- m4_pattern_allow([^INSTALL_STRIP_PROGRAM$])
1646 m4trace:configure.in:4: -1- AM_PROG_MKDIR_P
1647 m4trace:configure.in:4: -1- m4_pattern_allow([^mkdir_p$])
1648 m4trace:configure.in:4: -1- m4_pattern_allow([^AWK$])
1649 m4trace:configure.in:4: -1- m4_pattern_allow([^SET_MAKE$])
1650 m4trace:configure.in:4: -1- AM_SET_LEADING_DOT
1651 m4trace:configure.in:4: -1- m4_pattern_allow([^am__leading_dot$])
1652 m4trace:configure.in:4: -1- _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1653 [_AM_PROG_TAR([v7])])])
1654 m4trace:configure.in:4: -2- _AM_MANGLE_OPTION([tar-ustar])
1655 m4trace:configure.in:4: -1- _AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])
1656 m4trace:configure.in:4: -2- _AM_MANGLE_OPTION([tar-pax])
1657 m4trace:configure.in:4: -1- _AM_PROG_TAR([v7])
1658 m4trace:configure.in:4: -1- AM_MISSING_PROG([AMTAR], [tar])
1659 m4trace:configure.in:4: -1- m4_pattern_allow([^AMTAR$])
1660 m4trace:configure.in:4: -1- m4_pattern_allow([^am__tar$])
1661 m4trace:configure.in:4: -1- m4_pattern_allow([^am__untar$])
1662 m4trace:configure.in:4: -1- _AM_IF_OPTION([no-dependencies], [], [AC_PROVIDE_IFELSE([AC_PROG_CC],
1663 [_AM_DEPENDENCIES(CC)],
1664 [define([AC_PROG_CC],
1665 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1666 AC_PROVIDE_IFELSE([AC_PROG_CXX],
1667 [_AM_DEPENDENCIES(CXX)],
1668 [define([AC_PROG_CXX],
1669 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1670 ])
1671 m4trace:configure.in:4: -2- _AM_MANGLE_OPTION([no-dependencies])
1672 m4trace:configure.in:5: -1- AM_CONFIG_HEADER([config.h])
1673 m4trace:configure.in:5: -1- _m4_warn([obsolete], [The macro `AM_CONFIG_HEADER' is obsolete.
1674 You should run autoupdate.], [/usr/share/aclocal-1.9/header.m4:12: AM_CONFIG_HEADER is expanded from...
1675 configure.in:5: the top level])
1676 m4trace:configure.in:7: -1- _m4_warn([obsolete], [The macro `AC_ISC_POSIX' is obsolete.
1677 You should run autoupdate.], [../../lib/autoconf/specific.m4:446: AC_ISC_POSIX is expanded from...
1678 configure.in:7: the top level])
1679 m4trace:configure.in:7: -1- m4_pattern_allow([^CC$])
1680 m4trace:configure.in:7: -1- m4_pattern_allow([^CFLAGS$])
1681 m4trace:configure.in:7: -1- m4_pattern_allow([^LDFLAGS$])
1682 m4trace:configure.in:7: -1- m4_pattern_allow([^LIBS$])
1683 m4trace:configure.in:7: -1- m4_pattern_allow([^CPPFLAGS$])
1684 m4trace:configure.in:7: -1- m4_pattern_allow([^CC$])
1685 m4trace:configure.in:7: -1- m4_pattern_allow([^CC$])
1686 m4trace:configure.in:7: -1- m4_pattern_allow([^CC$])
1687 m4trace:configure.in:7: -1- m4_pattern_allow([^CC$])
1688 m4trace:configure.in:7: -1- m4_pattern_allow([^ac_ct_CC$])
1689 m4trace:configure.in:7: -1- m4_pattern_allow([^EXEEXT$])
1690 m4trace:configure.in:7: -1- m4_pattern_allow([^OBJEXT$])
1691 m4trace:configure.in:7: -1- _AM_DEPENDENCIES([CC])
1692 m4trace:configure.in:7: -1- AM_SET_DEPDIR
1693 m4trace:configure.in:7: -1- m4_pattern_allow([^DEPDIR$])
1694 m4trace:configure.in:7: -1- AM_OUTPUT_DEPENDENCY_COMMANDS
1695 m4trace:configure.in:7: -1- AM_MAKE_INCLUDE
1696 m4trace:configure.in:7: -1- m4_pattern_allow([^am__include$])
1697 m4trace:configure.in:7: -1- m4_pattern_allow([^am__quote$])
1698 m4trace:configure.in:7: -1- AM_DEP_TRACK
1699 m4trace:configure.in:7: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1700 m4trace:configure.in:7: -1- m4_pattern_allow([^AMDEP_TRUE$])
1701 m4trace:configure.in:7: -1- m4_pattern_allow([^AMDEP_FALSE$])
1702 m4trace:configure.in:7: -1- m4_pattern_allow([^AMDEPBACKSLASH$])
1703 m4trace:configure.in:7: -1- m4_pattern_allow([^CCDEPMODE$])
1704 m4trace:configure.in:7: -1- AM_CONDITIONAL([am__fastdepCC], [
1705 test "x$enable_dependency_tracking" != xno \
1706 && test "$am_cv_CC_dependencies_compiler_type" = gcc3])
1707 m4trace:configure.in:7: -1- m4_pattern_allow([^am__fastdepCC_TRUE$])
1708 m4trace:configure.in:7: -1- m4_pattern_allow([^am__fastdepCC_FALSE$])
1709 m4trace:configure.in:8: -1- m4_pattern_allow([^CFLAGS$])
1710 m4trace:configure.in:9: -1- m4_pattern_allow([^CC$])
1711 m4trace:configure.in:9: -1- m4_pattern_allow([^CFLAGS$])
1712 m4trace:configure.in:9: -1- m4_pattern_allow([^LDFLAGS$])
1713 m4trace:configure.in:9: -1- m4_pattern_allow([^LIBS$])
1714 m4trace:configure.in:9: -1- m4_pattern_allow([^CPPFLAGS$])
1715 m4trace:configure.in:9: -1- m4_pattern_allow([^CC$])
1716 m4trace:configure.in:9: -1- m4_pattern_allow([^CC$])
1717 m4trace:configure.in:9: -1- m4_pattern_allow([^CC$])
1718 m4trace:configure.in:9: -1- m4_pattern_allow([^CC$])
1719 m4trace:configure.in:9: -1- m4_pattern_allow([^ac_ct_CC$])
1720 m4trace:configure.in:9: -1- _AM_DEPENDENCIES([CC])
1721 m4trace:configure.in:9: -1- m4_pattern_allow([^CCDEPMODE$])
1722 m4trace:configure.in:9: -1- AM_CONDITIONAL([am__fastdepCC], [
1723 test "x$enable_dependency_tracking" != xno \
1724 && test "$am_cv_CC_dependencies_compiler_type" = gcc3])
1725 m4trace:configure.in:9: -1- m4_pattern_allow([^am__fastdepCC_TRUE$])
1726 m4trace:configure.in:9: -1- m4_pattern_allow([^am__fastdepCC_FALSE$])
1727 m4trace:configure.in:10: -1- AM_PROG_CC_STDC
1728 m4trace:configure.in:10: -1- _m4_warn([obsolete], [The macro `AM_PROG_CC_STDC' is obsolete.
1729 You should run autoupdate.], [/usr/share/aclocal-1.9/ccstdc.m4:17: AM_PROG_CC_STDC is expanded from...
1730 configure.in:10: the top level])
1731 m4trace:configure.in:10: -1- m4_pattern_allow([^CC$])
1732 m4trace:configure.in:10: -1- m4_pattern_allow([^CFLAGS$])
1733 m4trace:configure.in:10: -1- m4_pattern_allow([^LDFLAGS$])
1734 m4trace:configure.in:10: -1- m4_pattern_allow([^LIBS$])
1735 m4trace:configure.in:10: -1- m4_pattern_allow([^CPPFLAGS$])
1736 m4trace:configure.in:10: -1- m4_pattern_allow([^CC$])
1737 m4trace:configure.in:10: -1- m4_pattern_allow([^CC$])
1738 m4trace:configure.in:10: -1- m4_pattern_allow([^CC$])
1739 m4trace:configure.in:10: -1- m4_pattern_allow([^CC$])
1740 m4trace:configure.in:10: -1- m4_pattern_allow([^ac_ct_CC$])
1741 m4trace:configure.in:10: -1- _AM_DEPENDENCIES([CC])
1742 m4trace:configure.in:10: -1- m4_pattern_allow([^CCDEPMODE$])
1743 m4trace:configure.in:10: -1- AM_CONDITIONAL([am__fastdepCC], [
1744 test "x$enable_dependency_tracking" != xno \
1745 && test "$am_cv_CC_dependencies_compiler_type" = gcc3])
1746 m4trace:configure.in:10: -1- m4_pattern_allow([^am__fastdepCC_TRUE$])
1747 m4trace:configure.in:10: -1- m4_pattern_allow([^am__fastdepCC_FALSE$])
1748 m4trace:configure.in:10: -1- _m4_warn([obsolete], [AM_PROG_CC_STDC:
1749 your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
1750 `ac_cv_prog_cc_stdc'. Remove this warning and the assignment when
1751 you adjust the code. You can also remove the above call to
1752 AC_PROG_CC if you already called it elsewhere.], [/usr/share/aclocal-1.9/ccstdc.m4:17: AM_PROG_CC_STDC is expanded from...
1753 configure.in:10: the top level])
1754 m4trace:configure.in:11: -1- m4_pattern_allow([^CPP$])
1755 m4trace:configure.in:11: -1- m4_pattern_allow([^CPPFLAGS$])
1756 m4trace:configure.in:11: -1- m4_pattern_allow([^CPP$])
1757 m4trace:configure.in:11: -1- AC_PROG_EGREP
1758 m4trace:configure.in:11: -1- m4_pattern_allow([^GREP$])
1759 m4trace:configure.in:11: -1- m4_pattern_allow([^EGREP$])
1760 m4trace:configure.in:11: -1- m4_pattern_allow([^STDC_HEADERS$])
1761 m4trace:configure.in:12: -1- LT_INIT
1762 m4trace:configure.in:12: -1- m4_pattern_forbid([^_?LT_[A-Z_]+$])
1763 m4trace:configure.in:12: -1- m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])
1764 m4trace:configure.in:12: -1- LTOPTIONS_VERSION
1765 m4trace:configure.in:12: -1- LTSUGAR_VERSION
1766 m4trace:configure.in:12: -1- LTVERSION_VERSION
1767 m4trace:configure.in:12: -1- LTOBSOLETE_VERSION
1768 m4trace:configure.in:12: -1- _LT_PROG_LTMAIN
1769 m4trace:configure.in:12: -1- m4_pattern_allow([^LIBTOOL$])
1770 m4trace:configure.in:12: -1- m4_pattern_allow([^build$])
1771 m4trace:configure.in:12: -1- m4_pattern_allow([^build_cpu$])
1772 m4trace:configure.in:12: -1- m4_pattern_allow([^build_vendor$])
1773 m4trace:configure.in:12: -1- m4_pattern_allow([^build_os$])
1774 m4trace:configure.in:12: -1- m4_pattern_allow([^host$])
1775 m4trace:configure.in:12: -1- m4_pattern_allow([^host_cpu$])
1776 m4trace:configure.in:12: -1- m4_pattern_allow([^host_vendor$])
1777 m4trace:configure.in:12: -1- m4_pattern_allow([^host_os$])
1778 m4trace:configure.in:12: -1- _LT_PREPARE_SED_QUOTE_VARS
1779 m4trace:configure.in:12: -1- _LT_PROG_ECHO_BACKSLASH
1780 m4trace:configure.in:12: -1- LT_PATH_LD
1781 m4trace:configure.in:12: -1- m4_pattern_allow([^SED$])
1782 m4trace:configure.in:12: -1- m4_pattern_allow([^FGREP$])
1783 m4trace:configure.in:12: -1- m4_pattern_allow([^GREP$])
1784 m4trace:configure.in:12: -1- m4_pattern_allow([^LD$])
1785 m4trace:configure.in:12: -1- LT_PATH_NM
1786 m4trace:configure.in:12: -1- m4_pattern_allow([^DUMPBIN$])
1787 m4trace:configure.in:12: -1- m4_pattern_allow([^ac_ct_DUMPBIN$])
1788 m4trace:configure.in:12: -1- m4_pattern_allow([^DUMPBIN$])
1789 m4trace:configure.in:12: -1- m4_pattern_allow([^NM$])
1790 m4trace:configure.in:12: -1- m4_pattern_allow([^LN_S$])
1791 m4trace:configure.in:12: -1- LT_CMD_MAX_LEN
1792 m4trace:configure.in:12: -1- m4_pattern_allow([^OBJDUMP$])
1793 m4trace:configure.in:12: -1- m4_pattern_allow([^OBJDUMP$])
1794 m4trace:configure.in:12: -1- m4_pattern_allow([^DLLTOOL$])
1795 m4trace:configure.in:12: -1- m4_pattern_allow([^DLLTOOL$])
1796 m4trace:configure.in:12: -1- m4_pattern_allow([^AR$])
1797 m4trace:configure.in:12: -1- m4_pattern_allow([^ac_ct_AR$])
1798 m4trace:configure.in:12: -1- m4_pattern_allow([^STRIP$])
1799 m4trace:configure.in:12: -1- m4_pattern_allow([^RANLIB$])
1800 m4trace:configure.in:12: -1- _LT_WITH_SYSROOT
1801 m4trace:configure.in:12: -1- m4_pattern_allow([LT_OBJDIR])
1802 m4trace:configure.in:12: -1- m4_pattern_allow([^LT_OBJDIR$])
1803 m4trace:configure.in:12: -1- _LT_CC_BASENAME([$compiler])
1804 m4trace:configure.in:12: -1- _LT_PATH_TOOL_PREFIX([${ac_tool_prefix}file], [/usr/bin$PATH_SEPARATOR$PATH])
1805 m4trace:configure.in:12: -1- _LT_PATH_TOOL_PREFIX([file], [/usr/bin$PATH_SEPARATOR$PATH])
1806 m4trace:configure.in:12: -1- LT_SUPPORTED_TAG([CC])
1807 m4trace:configure.in:12: -1- _LT_COMPILER_BOILERPLATE
1808 m4trace:configure.in:12: -1- _LT_LINKER_BOILERPLATE
1809 m4trace:configure.in:12: -1- _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], [lt_cv_prog_compiler_rtti_exceptions], [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, )="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, ) -fno-rtti -fno-exceptions"])
1810 m4trace:configure.in:12: -1- _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, ) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, )], [$_LT_TAGVAR(lt_prog_compiler_pic, )@&t@m4_if([],[],[ -DPIC],[m4_if([],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, ) in
1811 "" | " "*) ;;
1812 *) _LT_TAGVAR(lt_prog_compiler_pic, )=" $_LT_TAGVAR(lt_prog_compiler_pic, )" ;;
1813 esac], [_LT_TAGVAR(lt_prog_compiler_pic, )=
1814 _LT_TAGVAR(lt_prog_compiler_can_build_shared, )=no])
1815 m4trace:configure.in:12: -1- _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], [lt_cv_prog_compiler_static_works], [$lt_tmp_static_flag], [], [_LT_TAGVAR(lt_prog_compiler_static, )=])
1816 m4trace:configure.in:12: -1- m4_pattern_allow([^MANIFEST_TOOL$])
1817 m4trace:configure.in:12: -1- _LT_REQUIRED_DARWIN_CHECKS
1818 m4trace:configure.in:12: -1- m4_pattern_allow([^DSYMUTIL$])
1819 m4trace:configure.in:12: -1- m4_pattern_allow([^NMEDIT$])
1820 m4trace:configure.in:12: -1- m4_pattern_allow([^LIPO$])
1821 m4trace:configure.in:12: -1- m4_pattern_allow([^OTOOL$])
1822 m4trace:configure.in:12: -1- m4_pattern_allow([^OTOOL64$])
1823 m4trace:configure.in:12: -1- _LT_LINKER_OPTION([if $CC understands -b], [lt_cv_prog_compiler__b], [-b], [_LT_TAGVAR(archive_cmds, )='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], [_LT_TAGVAR(archive_cmds, )='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])
1824 m4trace:configure.in:12: -1- LT_SYS_DLOPEN_SELF
1825 m4trace:configure.in:12: -1- m4_pattern_allow([^HAVE_DLFCN_H$])
1826 m4trace:configure.in:14: -1- PKG_CHECK_MODULES([GTK], [gtk+-3.0 gdk-3.0 libxml-2.0], [], [exit])
1827 m4trace:configure.in:14: -1- PKG_PROG_PKG_CONFIG
1828 m4trace:configure.in:14: -1- m4_pattern_forbid([^_?PKG_[A-Z_]+$])
1829 m4trace:configure.in:14: -1- m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
1830 m4trace:configure.in:14: -1- m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
1831 m4trace:configure.in:14: -1- m4_pattern_allow([^PKG_CONFIG$])
1832 m4trace:configure.in:14: -1- m4_pattern_allow([^PKG_CONFIG_PATH$])
1833 m4trace:configure.in:14: -1- m4_pattern_allow([^PKG_CONFIG_LIBDIR$])
1834 m4trace:configure.in:14: -1- m4_pattern_allow([^PKG_CONFIG$])
1835 m4trace:configure.in:14: -1- m4_pattern_allow([^GTK_CFLAGS$])
1836 m4trace:configure.in:14: -1- m4_pattern_allow([^GTK_LIBS$])
1837 m4trace:configure.in:14: -1- PKG_CHECK_EXISTS([gtk+-3.0 gdk-3.0 libxml-2.0], [pkg_cv_[]GTK_CFLAGS=`$PKG_CONFIG --[]cflags "gtk+-3.0 gdk-3.0 libxml-2.0" 2>/dev/null`
1838 test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes])
1839 m4trace:configure.in:14: -1- PKG_CHECK_EXISTS([gtk+-3.0 gdk-3.0 libxml-2.0], [pkg_cv_[]GTK_LIBS=`$PKG_CONFIG --[]libs "gtk+-3.0 gdk-3.0 libxml-2.0" 2>/dev/null`
1840 test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes])
1841 m4trace:configure.in:14: -1- _PKG_SHORT_ERRORS_SUPPORTED
1842 m4trace:configure.in:15: -1- m4_pattern_allow([^GTK_LIBS$])
1843 m4trace:configure.in:16: -1- m4_pattern_allow([^GTK_CFLAGS$])
1844 m4trace:configure.in:29: -1- m4_pattern_allow([^HAVE_INET_ATON$])
1845 m4trace:configure.in:30: -1- m4_pattern_allow([^HAVE_INET_ATON$])
1846 m4trace:configure.in:31: -1- m4_pattern_allow([^HAVE_INET_ATON$])
1847 m4trace:configure.in:33: -1- m4_pattern_allow([^DEBUG$])
1848 m4trace:configure.in:36: -1- m4_pattern_allow([^PACKAGE$])
1849 m4trace:configure.in:37: -1- m4_pattern_allow([^VERSION$])
1850 m4trace:configure.in:54: -1- m4_pattern_allow([^PACKAGE_DATA_DIR$])
1851 m4trace:configure.in:56: -1- m4_pattern_allow([^PACKAGE_DATA_DIR$])
1852 m4trace:configure.in:59: -1- m4_pattern_allow([^PACKAGE_DATA_DIR$])
1853 m4trace:configure.in:64: -1- m4_pattern_allow([^PACKAGE_SOURCE_DIR$])
1854 m4trace:configure.in:75: -1- _m4_warn([obsolete], [AC_OUTPUT should be used without arguments.
1855 You should run autoupdate.], [])
1856 m4trace:configure.in:75: -1- m4_pattern_allow([^LIB@&t@OBJS$])
1857 m4trace:configure.in:75: -1- m4_pattern_allow([^LTLIBOBJS$])
1858 m4trace:configure.in:75: -1- _AC_AM_CONFIG_HEADER_HOOK(["$ac_file"])
1859 m4trace:configure.in:75: -1- _AM_OUTPUT_DEPENDENCY_COMMANDS
1860 m4trace:configure.in:75: -1- _LT_PROG_LTMAIN
+0
-631
autom4te.cache/traces.1 less more
0 m4trace:configure.in:3: -1- AC_INIT([configure.in])
1 m4trace:configure.in:3: -1- m4_pattern_forbid([^_?A[CHUM]_])
2 m4trace:configure.in:3: -1- m4_pattern_forbid([_AC_])
3 m4trace:configure.in:3: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'])
4 m4trace:configure.in:3: -1- m4_pattern_allow([^AS_FLAGS$])
5 m4trace:configure.in:3: -1- m4_pattern_forbid([^_?m4_])
6 m4trace:configure.in:3: -1- m4_pattern_forbid([^dnl$])
7 m4trace:configure.in:3: -1- m4_pattern_forbid([^_?AS_])
8 m4trace:configure.in:3: -1- AC_SUBST([SHELL])
9 m4trace:configure.in:3: -1- AC_SUBST_TRACE([SHELL])
10 m4trace:configure.in:3: -1- m4_pattern_allow([^SHELL$])
11 m4trace:configure.in:3: -1- AC_SUBST([PATH_SEPARATOR])
12 m4trace:configure.in:3: -1- AC_SUBST_TRACE([PATH_SEPARATOR])
13 m4trace:configure.in:3: -1- m4_pattern_allow([^PATH_SEPARATOR$])
14 m4trace:configure.in:3: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])])
15 m4trace:configure.in:3: -1- AC_SUBST_TRACE([PACKAGE_NAME])
16 m4trace:configure.in:3: -1- m4_pattern_allow([^PACKAGE_NAME$])
17 m4trace:configure.in:3: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])])
18 m4trace:configure.in:3: -1- AC_SUBST_TRACE([PACKAGE_TARNAME])
19 m4trace:configure.in:3: -1- m4_pattern_allow([^PACKAGE_TARNAME$])
20 m4trace:configure.in:3: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])])
21 m4trace:configure.in:3: -1- AC_SUBST_TRACE([PACKAGE_VERSION])
22 m4trace:configure.in:3: -1- m4_pattern_allow([^PACKAGE_VERSION$])
23 m4trace:configure.in:3: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])])
24 m4trace:configure.in:3: -1- AC_SUBST_TRACE([PACKAGE_STRING])
25 m4trace:configure.in:3: -1- m4_pattern_allow([^PACKAGE_STRING$])
26 m4trace:configure.in:3: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])])
27 m4trace:configure.in:3: -1- AC_SUBST_TRACE([PACKAGE_BUGREPORT])
28 m4trace:configure.in:3: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$])
29 m4trace:configure.in:3: -1- AC_SUBST([PACKAGE_URL], [m4_ifdef([AC_PACKAGE_URL], ['AC_PACKAGE_URL'])])
30 m4trace:configure.in:3: -1- AC_SUBST_TRACE([PACKAGE_URL])
31 m4trace:configure.in:3: -1- m4_pattern_allow([^PACKAGE_URL$])
32 m4trace:configure.in:3: -1- AC_SUBST([exec_prefix], [NONE])
33 m4trace:configure.in:3: -1- AC_SUBST_TRACE([exec_prefix])
34 m4trace:configure.in:3: -1- m4_pattern_allow([^exec_prefix$])
35 m4trace:configure.in:3: -1- AC_SUBST([prefix], [NONE])
36 m4trace:configure.in:3: -1- AC_SUBST_TRACE([prefix])
37 m4trace:configure.in:3: -1- m4_pattern_allow([^prefix$])
38 m4trace:configure.in:3: -1- AC_SUBST([program_transform_name], [s,x,x,])
39 m4trace:configure.in:3: -1- AC_SUBST_TRACE([program_transform_name])
40 m4trace:configure.in:3: -1- m4_pattern_allow([^program_transform_name$])
41 m4trace:configure.in:3: -1- AC_SUBST([bindir], ['${exec_prefix}/bin'])
42 m4trace:configure.in:3: -1- AC_SUBST_TRACE([bindir])
43 m4trace:configure.in:3: -1- m4_pattern_allow([^bindir$])
44 m4trace:configure.in:3: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin'])
45 m4trace:configure.in:3: -1- AC_SUBST_TRACE([sbindir])
46 m4trace:configure.in:3: -1- m4_pattern_allow([^sbindir$])
47 m4trace:configure.in:3: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec'])
48 m4trace:configure.in:3: -1- AC_SUBST_TRACE([libexecdir])
49 m4trace:configure.in:3: -1- m4_pattern_allow([^libexecdir$])
50 m4trace:configure.in:3: -1- AC_SUBST([datarootdir], ['${prefix}/share'])
51 m4trace:configure.in:3: -1- AC_SUBST_TRACE([datarootdir])
52 m4trace:configure.in:3: -1- m4_pattern_allow([^datarootdir$])
53 m4trace:configure.in:3: -1- AC_SUBST([datadir], ['${datarootdir}'])
54 m4trace:configure.in:3: -1- AC_SUBST_TRACE([datadir])
55 m4trace:configure.in:3: -1- m4_pattern_allow([^datadir$])
56 m4trace:configure.in:3: -1- AC_SUBST([sysconfdir], ['${prefix}/etc'])
57 m4trace:configure.in:3: -1- AC_SUBST_TRACE([sysconfdir])
58 m4trace:configure.in:3: -1- m4_pattern_allow([^sysconfdir$])
59 m4trace:configure.in:3: -1- AC_SUBST([sharedstatedir], ['${prefix}/com'])
60 m4trace:configure.in:3: -1- AC_SUBST_TRACE([sharedstatedir])
61 m4trace:configure.in:3: -1- m4_pattern_allow([^sharedstatedir$])
62 m4trace:configure.in:3: -1- AC_SUBST([localstatedir], ['${prefix}/var'])
63 m4trace:configure.in:3: -1- AC_SUBST_TRACE([localstatedir])
64 m4trace:configure.in:3: -1- m4_pattern_allow([^localstatedir$])
65 m4trace:configure.in:3: -1- AC_SUBST([includedir], ['${prefix}/include'])
66 m4trace:configure.in:3: -1- AC_SUBST_TRACE([includedir])
67 m4trace:configure.in:3: -1- m4_pattern_allow([^includedir$])
68 m4trace:configure.in:3: -1- AC_SUBST([oldincludedir], ['/usr/include'])
69 m4trace:configure.in:3: -1- AC_SUBST_TRACE([oldincludedir])
70 m4trace:configure.in:3: -1- m4_pattern_allow([^oldincludedir$])
71 m4trace:configure.in:3: -1- AC_SUBST([docdir], [m4_ifset([AC_PACKAGE_TARNAME],
72 ['${datarootdir}/doc/${PACKAGE_TARNAME}'],
73 ['${datarootdir}/doc/${PACKAGE}'])])
74 m4trace:configure.in:3: -1- AC_SUBST_TRACE([docdir])
75 m4trace:configure.in:3: -1- m4_pattern_allow([^docdir$])
76 m4trace:configure.in:3: -1- AC_SUBST([infodir], ['${datarootdir}/info'])
77 m4trace:configure.in:3: -1- AC_SUBST_TRACE([infodir])
78 m4trace:configure.in:3: -1- m4_pattern_allow([^infodir$])
79 m4trace:configure.in:3: -1- AC_SUBST([htmldir], ['${docdir}'])
80 m4trace:configure.in:3: -1- AC_SUBST_TRACE([htmldir])
81 m4trace:configure.in:3: -1- m4_pattern_allow([^htmldir$])
82 m4trace:configure.in:3: -1- AC_SUBST([dvidir], ['${docdir}'])
83 m4trace:configure.in:3: -1- AC_SUBST_TRACE([dvidir])
84 m4trace:configure.in:3: -1- m4_pattern_allow([^dvidir$])
85 m4trace:configure.in:3: -1- AC_SUBST([pdfdir], ['${docdir}'])
86 m4trace:configure.in:3: -1- AC_SUBST_TRACE([pdfdir])
87 m4trace:configure.in:3: -1- m4_pattern_allow([^pdfdir$])
88 m4trace:configure.in:3: -1- AC_SUBST([psdir], ['${docdir}'])
89 m4trace:configure.in:3: -1- AC_SUBST_TRACE([psdir])
90 m4trace:configure.in:3: -1- m4_pattern_allow([^psdir$])
91 m4trace:configure.in:3: -1- AC_SUBST([libdir], ['${exec_prefix}/lib'])
92 m4trace:configure.in:3: -1- AC_SUBST_TRACE([libdir])
93 m4trace:configure.in:3: -1- m4_pattern_allow([^libdir$])
94 m4trace:configure.in:3: -1- AC_SUBST([localedir], ['${datarootdir}/locale'])
95 m4trace:configure.in:3: -1- AC_SUBST_TRACE([localedir])
96 m4trace:configure.in:3: -1- m4_pattern_allow([^localedir$])
97 m4trace:configure.in:3: -1- AC_SUBST([mandir], ['${datarootdir}/man'])
98 m4trace:configure.in:3: -1- AC_SUBST_TRACE([mandir])
99 m4trace:configure.in:3: -1- m4_pattern_allow([^mandir$])
100 m4trace:configure.in:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME])
101 m4trace:configure.in:3: -1- m4_pattern_allow([^PACKAGE_NAME$])
102 m4trace:configure.in:3: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */
103 @%:@undef PACKAGE_NAME])
104 m4trace:configure.in:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME])
105 m4trace:configure.in:3: -1- m4_pattern_allow([^PACKAGE_TARNAME$])
106 m4trace:configure.in:3: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */
107 @%:@undef PACKAGE_TARNAME])
108 m4trace:configure.in:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION])
109 m4trace:configure.in:3: -1- m4_pattern_allow([^PACKAGE_VERSION$])
110 m4trace:configure.in:3: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */
111 @%:@undef PACKAGE_VERSION])
112 m4trace:configure.in:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING])
113 m4trace:configure.in:3: -1- m4_pattern_allow([^PACKAGE_STRING$])
114 m4trace:configure.in:3: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */
115 @%:@undef PACKAGE_STRING])
116 m4trace:configure.in:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT])
117 m4trace:configure.in:3: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$])
118 m4trace:configure.in:3: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */
119 @%:@undef PACKAGE_BUGREPORT])
120 m4trace:configure.in:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_URL])
121 m4trace:configure.in:3: -1- m4_pattern_allow([^PACKAGE_URL$])
122 m4trace:configure.in:3: -1- AH_OUTPUT([PACKAGE_URL], [/* Define to the home page for this package. */
123 @%:@undef PACKAGE_URL])
124 m4trace:configure.in:3: -1- AC_SUBST([DEFS])
125 m4trace:configure.in:3: -1- AC_SUBST_TRACE([DEFS])
126 m4trace:configure.in:3: -1- m4_pattern_allow([^DEFS$])
127 m4trace:configure.in:3: -1- AC_SUBST([ECHO_C])
128 m4trace:configure.in:3: -1- AC_SUBST_TRACE([ECHO_C])
129 m4trace:configure.in:3: -1- m4_pattern_allow([^ECHO_C$])
130 m4trace:configure.in:3: -1- AC_SUBST([ECHO_N])
131 m4trace:configure.in:3: -1- AC_SUBST_TRACE([ECHO_N])
132 m4trace:configure.in:3: -1- m4_pattern_allow([^ECHO_N$])
133 m4trace:configure.in:3: -1- AC_SUBST([ECHO_T])
134 m4trace:configure.in:3: -1- AC_SUBST_TRACE([ECHO_T])
135 m4trace:configure.in:3: -1- m4_pattern_allow([^ECHO_T$])
136 m4trace:configure.in:3: -1- AC_SUBST([LIBS])
137 m4trace:configure.in:3: -1- AC_SUBST_TRACE([LIBS])
138 m4trace:configure.in:3: -1- m4_pattern_allow([^LIBS$])
139 m4trace:configure.in:3: -1- AC_SUBST([build_alias])
140 m4trace:configure.in:3: -1- AC_SUBST_TRACE([build_alias])
141 m4trace:configure.in:3: -1- m4_pattern_allow([^build_alias$])
142 m4trace:configure.in:3: -1- AC_SUBST([host_alias])
143 m4trace:configure.in:3: -1- AC_SUBST_TRACE([host_alias])
144 m4trace:configure.in:3: -1- m4_pattern_allow([^host_alias$])
145 m4trace:configure.in:3: -1- AC_SUBST([target_alias])
146 m4trace:configure.in:3: -1- AC_SUBST_TRACE([target_alias])
147 m4trace:configure.in:3: -1- m4_pattern_allow([^target_alias$])
148 m4trace:configure.in:4: -1- AM_INIT_AUTOMAKE([gtkatlantic], [0.5.0])
149 m4trace:configure.in:4: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$])
150 m4trace:configure.in:4: -1- AM_AUTOMAKE_VERSION([1.9.6])
151 m4trace:configure.in:4: -1- AC_REQUIRE_AUX_FILE([install-sh])
152 m4trace:configure.in:4: -1- AC_SUBST([INSTALL_PROGRAM])
153 m4trace:configure.in:4: -1- AC_SUBST_TRACE([INSTALL_PROGRAM])
154 m4trace:configure.in:4: -1- m4_pattern_allow([^INSTALL_PROGRAM$])
155 m4trace:configure.in:4: -1- AC_SUBST([INSTALL_SCRIPT])
156 m4trace:configure.in:4: -1- AC_SUBST_TRACE([INSTALL_SCRIPT])
157 m4trace:configure.in:4: -1- m4_pattern_allow([^INSTALL_SCRIPT$])
158 m4trace:configure.in:4: -1- AC_SUBST([INSTALL_DATA])
159 m4trace:configure.in:4: -1- AC_SUBST_TRACE([INSTALL_DATA])
160 m4trace:configure.in:4: -1- m4_pattern_allow([^INSTALL_DATA$])
161 m4trace:configure.in:4: -1- AC_SUBST([CYGPATH_W])
162 m4trace:configure.in:4: -1- AC_SUBST_TRACE([CYGPATH_W])
163 m4trace:configure.in:4: -1- m4_pattern_allow([^CYGPATH_W$])
164 m4trace:configure.in:4: -1- AC_SUBST([PACKAGE], [gtkatlantic])
165 m4trace:configure.in:4: -1- AC_SUBST_TRACE([PACKAGE])
166 m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE$])
167 m4trace:configure.in:4: -1- AC_SUBST([VERSION], [0.5.0])
168 m4trace:configure.in:4: -1- AC_SUBST_TRACE([VERSION])
169 m4trace:configure.in:4: -1- m4_pattern_allow([^VERSION$])
170 m4trace:configure.in:4: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE])
171 m4trace:configure.in:4: -1- m4_pattern_allow([^PACKAGE$])
172 m4trace:configure.in:4: -1- AH_OUTPUT([PACKAGE], [/* Name of package */
173 @%:@undef PACKAGE])
174 m4trace:configure.in:4: -1- AC_DEFINE_TRACE_LITERAL([VERSION])
175 m4trace:configure.in:4: -1- m4_pattern_allow([^VERSION$])
176 m4trace:configure.in:4: -1- AH_OUTPUT([VERSION], [/* Version number of package */
177 @%:@undef VERSION])
178 m4trace:configure.in:4: -1- AC_SUBST([ACLOCAL])
179 m4trace:configure.in:4: -1- AC_SUBST_TRACE([ACLOCAL])
180 m4trace:configure.in:4: -1- m4_pattern_allow([^ACLOCAL$])
181 m4trace:configure.in:4: -1- AC_SUBST([AUTOCONF])
182 m4trace:configure.in:4: -1- AC_SUBST_TRACE([AUTOCONF])
183 m4trace:configure.in:4: -1- m4_pattern_allow([^AUTOCONF$])
184 m4trace:configure.in:4: -1- AC_SUBST([AUTOMAKE])
185 m4trace:configure.in:4: -1- AC_SUBST_TRACE([AUTOMAKE])
186 m4trace:configure.in:4: -1- m4_pattern_allow([^AUTOMAKE$])
187 m4trace:configure.in:4: -1- AC_SUBST([AUTOHEADER])
188 m4trace:configure.in:4: -1- AC_SUBST_TRACE([AUTOHEADER])
189 m4trace:configure.in:4: -1- m4_pattern_allow([^AUTOHEADER$])
190 m4trace:configure.in:4: -1- AC_SUBST([MAKEINFO])
191 m4trace:configure.in:4: -1- AC_SUBST_TRACE([MAKEINFO])
192 m4trace:configure.in:4: -1- m4_pattern_allow([^MAKEINFO$])
193 m4trace:configure.in:4: -1- AC_SUBST([install_sh])
194 m4trace:configure.in:4: -1- AC_SUBST_TRACE([install_sh])
195 m4trace:configure.in:4: -1- m4_pattern_allow([^install_sh$])
196 m4trace:configure.in:4: -1- AC_SUBST([STRIP])
197 m4trace:configure.in:4: -1- AC_SUBST_TRACE([STRIP])
198 m4trace:configure.in:4: -1- m4_pattern_allow([^STRIP$])
199 m4trace:configure.in:4: -1- AC_SUBST([INSTALL_STRIP_PROGRAM])
200 m4trace:configure.in:4: -1- AC_SUBST_TRACE([INSTALL_STRIP_PROGRAM])
201 m4trace:configure.in:4: -1- m4_pattern_allow([^INSTALL_STRIP_PROGRAM$])
202 m4trace:configure.in:4: -1- AC_SUBST([mkdir_p])
203 m4trace:configure.in:4: -1- AC_SUBST_TRACE([mkdir_p])
204 m4trace:configure.in:4: -1- m4_pattern_allow([^mkdir_p$])
205 m4trace:configure.in:4: -1- AC_SUBST([AWK])
206 m4trace:configure.in:4: -1- AC_SUBST_TRACE([AWK])
207 m4trace:configure.in:4: -1- m4_pattern_allow([^AWK$])
208 m4trace:configure.in:4: -1- AC_SUBST([SET_MAKE])
209 m4trace:configure.in:4: -1- AC_SUBST_TRACE([SET_MAKE])
210 m4trace:configure.in:4: -1- m4_pattern_allow([^SET_MAKE$])
211 m4trace:configure.in:4: -1- AC_SUBST([am__leading_dot])
212 m4trace:configure.in:4: -1- AC_SUBST_TRACE([am__leading_dot])
213 m4trace:configure.in:4: -1- m4_pattern_allow([^am__leading_dot$])
214 m4trace:configure.in:4: -1- AC_SUBST([AMTAR])
215 m4trace:configure.in:4: -1- AC_SUBST_TRACE([AMTAR])
216 m4trace:configure.in:4: -1- m4_pattern_allow([^AMTAR$])
217 m4trace:configure.in:4: -1- AC_SUBST([am__tar])
218 m4trace:configure.in:4: -1- AC_SUBST_TRACE([am__tar])
219 m4trace:configure.in:4: -1- m4_pattern_allow([^am__tar$])
220 m4trace:configure.in:4: -1- AC_SUBST([am__untar])
221 m4trace:configure.in:4: -1- AC_SUBST_TRACE([am__untar])
222 m4trace:configure.in:4: -1- m4_pattern_allow([^am__untar$])
223 m4trace:configure.in:5: -1- _m4_warn([obsolete], [The macro `AM_CONFIG_HEADER' is obsolete.
224 You should run autoupdate.], [aclocal.m4:9138: AM_CONFIG_HEADER is expanded from...
225 configure.in:5: the top level])
226 m4trace:configure.in:5: -1- AC_CONFIG_HEADERS([config.h])
227 m4trace:configure.in:7: -1- _m4_warn([obsolete], [The macro `AC_ISC_POSIX' is obsolete.
228 You should run autoupdate.], [../../lib/autoconf/specific.m4:446: AC_ISC_POSIX is expanded from...
229 configure.in:7: the top level])
230 m4trace:configure.in:7: -1- AC_SUBST([CC])
231 m4trace:configure.in:7: -1- AC_SUBST_TRACE([CC])
232 m4trace:configure.in:7: -1- m4_pattern_allow([^CC$])
233 m4trace:configure.in:7: -1- AC_SUBST([CFLAGS])
234 m4trace:configure.in:7: -1- AC_SUBST_TRACE([CFLAGS])
235 m4trace:configure.in:7: -1- m4_pattern_allow([^CFLAGS$])
236 m4trace:configure.in:7: -1- AC_SUBST([LDFLAGS])
237 m4trace:configure.in:7: -1- AC_SUBST_TRACE([LDFLAGS])
238 m4trace:configure.in:7: -1- m4_pattern_allow([^LDFLAGS$])
239 m4trace:configure.in:7: -1- AC_SUBST([LIBS])
240 m4trace:configure.in:7: -1- AC_SUBST_TRACE([LIBS])
241 m4trace:configure.in:7: -1- m4_pattern_allow([^LIBS$])
242 m4trace:configure.in:7: -1- AC_SUBST([CPPFLAGS])
243 m4trace:configure.in:7: -1- AC_SUBST_TRACE([CPPFLAGS])
244 m4trace:configure.in:7: -1- m4_pattern_allow([^CPPFLAGS$])
245 m4trace:configure.in:7: -1- AC_SUBST([CC])
246 m4trace:configure.in:7: -1- AC_SUBST_TRACE([CC])
247 m4trace:configure.in:7: -1- m4_pattern_allow([^CC$])
248 m4trace:configure.in:7: -1- AC_SUBST([CC])
249 m4trace:configure.in:7: -1- AC_SUBST_TRACE([CC])
250 m4trace:configure.in:7: -1- m4_pattern_allow([^CC$])
251 m4trace:configure.in:7: -1- AC_SUBST([CC])
252 m4trace:configure.in:7: -1- AC_SUBST_TRACE([CC])
253 m4trace:configure.in:7: -1- m4_pattern_allow([^CC$])
254 m4trace:configure.in:7: -1- AC_SUBST([CC])
255 m4trace:configure.in:7: -1- AC_SUBST_TRACE([CC])
256 m4trace:configure.in:7: -1- m4_pattern_allow([^CC$])
257 m4trace:configure.in:7: -1- AC_SUBST([ac_ct_CC])
258 m4trace:configure.in:7: -1- AC_SUBST_TRACE([ac_ct_CC])
259 m4trace:configure.in:7: -1- m4_pattern_allow([^ac_ct_CC$])
260 m4trace:configure.in:7: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext])
261 m4trace:configure.in:7: -1- AC_SUBST_TRACE([EXEEXT])
262 m4trace:configure.in:7: -1- m4_pattern_allow([^EXEEXT$])
263 m4trace:configure.in:7: -1- AC_SUBST([OBJEXT], [$ac_cv_objext])
264 m4trace:configure.in:7: -1- AC_SUBST_TRACE([OBJEXT])
265 m4trace:configure.in:7: -1- m4_pattern_allow([^OBJEXT$])
266 m4trace:configure.in:7: -1- AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])
267 m4trace:configure.in:7: -1- AC_SUBST_TRACE([DEPDIR])
268 m4trace:configure.in:7: -1- m4_pattern_allow([^DEPDIR$])
269 m4trace:configure.in:7: -1- AC_SUBST([am__include])
270 m4trace:configure.in:7: -1- AC_SUBST_TRACE([am__include])
271 m4trace:configure.in:7: -1- m4_pattern_allow([^am__include$])
272 m4trace:configure.in:7: -1- AC_SUBST([am__quote])
273 m4trace:configure.in:7: -1- AC_SUBST_TRACE([am__quote])
274 m4trace:configure.in:7: -1- m4_pattern_allow([^am__quote$])
275 m4trace:configure.in:7: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
276 m4trace:configure.in:7: -1- AC_SUBST([AMDEP_TRUE])
277 m4trace:configure.in:7: -1- AC_SUBST_TRACE([AMDEP_TRUE])
278 m4trace:configure.in:7: -1- m4_pattern_allow([^AMDEP_TRUE$])
279 m4trace:configure.in:7: -1- AC_SUBST([AMDEP_FALSE])
280 m4trace:configure.in:7: -1- AC_SUBST_TRACE([AMDEP_FALSE])
281 m4trace:configure.in:7: -1- m4_pattern_allow([^AMDEP_FALSE$])
282 m4trace:configure.in:7: -1- AC_SUBST([AMDEPBACKSLASH])
283 m4trace:configure.in:7: -1- AC_SUBST_TRACE([AMDEPBACKSLASH])
284 m4trace:configure.in:7: -1- m4_pattern_allow([^AMDEPBACKSLASH$])
285 m4trace:configure.in:7: -1- AC_SUBST([CCDEPMODE], [depmode=$am_cv_CC_dependencies_compiler_type])
286 m4trace:configure.in:7: -1- AC_SUBST_TRACE([CCDEPMODE])
287 m4trace:configure.in:7: -1- m4_pattern_allow([^CCDEPMODE$])
288 m4trace:configure.in:7: -1- AM_CONDITIONAL([am__fastdepCC], [
289 test "x$enable_dependency_tracking" != xno \
290 && test "$am_cv_CC_dependencies_compiler_type" = gcc3])
291 m4trace:configure.in:7: -1- AC_SUBST([am__fastdepCC_TRUE])
292 m4trace:configure.in:7: -1- AC_SUBST_TRACE([am__fastdepCC_TRUE])
293 m4trace:configure.in:7: -1- m4_pattern_allow([^am__fastdepCC_TRUE$])
294 m4trace:configure.in:7: -1- AC_SUBST([am__fastdepCC_FALSE])
295 m4trace:configure.in:7: -1- AC_SUBST_TRACE([am__fastdepCC_FALSE])
296 m4trace:configure.in:7: -1- m4_pattern_allow([^am__fastdepCC_FALSE$])
297 m4trace:configure.in:8: -1- AC_SUBST([CFLAGS], [$CFLAGS])
298 m4trace:configure.in:8: -1- AC_SUBST_TRACE([CFLAGS])
299 m4trace:configure.in:8: -1- m4_pattern_allow([^CFLAGS$])
300 m4trace:configure.in:9: -1- AC_SUBST([CC])
301 m4trace:configure.in:9: -1- AC_SUBST_TRACE([CC])
302 m4trace:configure.in:9: -1- m4_pattern_allow([^CC$])
303 m4trace:configure.in:9: -1- AC_SUBST([CFLAGS])
304 m4trace:configure.in:9: -1- AC_SUBST_TRACE([CFLAGS])
305 m4trace:configure.in:9: -1- m4_pattern_allow([^CFLAGS$])
306 m4trace:configure.in:9: -1- AC_SUBST([LDFLAGS])
307 m4trace:configure.in:9: -1- AC_SUBST_TRACE([LDFLAGS])
308 m4trace:configure.in:9: -1- m4_pattern_allow([^LDFLAGS$])
309 m4trace:configure.in:9: -1- AC_SUBST([LIBS])
310 m4trace:configure.in:9: -1- AC_SUBST_TRACE([LIBS])
311 m4trace:configure.in:9: -1- m4_pattern_allow([^LIBS$])
312 m4trace:configure.in:9: -1- AC_SUBST([CPPFLAGS])
313 m4trace:configure.in:9: -1- AC_SUBST_TRACE([CPPFLAGS])
314 m4trace:configure.in:9: -1- m4_pattern_allow([^CPPFLAGS$])
315 m4trace:configure.in:9: -1- AC_SUBST([CC])
316 m4trace:configure.in:9: -1- AC_SUBST_TRACE([CC])
317 m4trace:configure.in:9: -1- m4_pattern_allow([^CC$])
318 m4trace:configure.in:9: -1- AC_SUBST([CC])
319 m4trace:configure.in:9: -1- AC_SUBST_TRACE([CC])
320 m4trace:configure.in:9: -1- m4_pattern_allow([^CC$])
321 m4trace:configure.in:9: -1- AC_SUBST([CC])
322 m4trace:configure.in:9: -1- AC_SUBST_TRACE([CC])
323 m4trace:configure.in:9: -1- m4_pattern_allow([^CC$])
324 m4trace:configure.in:9: -1- AC_SUBST([CC])
325 m4trace:configure.in:9: -1- AC_SUBST_TRACE([CC])
326 m4trace:configure.in:9: -1- m4_pattern_allow([^CC$])
327 m4trace:configure.in:9: -1- AC_SUBST([ac_ct_CC])
328 m4trace:configure.in:9: -1- AC_SUBST_TRACE([ac_ct_CC])
329 m4trace:configure.in:9: -1- m4_pattern_allow([^ac_ct_CC$])
330 m4trace:configure.in:9: -1- AC_SUBST([CCDEPMODE], [depmode=$am_cv_CC_dependencies_compiler_type])
331 m4trace:configure.in:9: -1- AC_SUBST_TRACE([CCDEPMODE])
332 m4trace:configure.in:9: -1- m4_pattern_allow([^CCDEPMODE$])
333 m4trace:configure.in:9: -1- AM_CONDITIONAL([am__fastdepCC], [
334 test "x$enable_dependency_tracking" != xno \
335 && test "$am_cv_CC_dependencies_compiler_type" = gcc3])
336 m4trace:configure.in:9: -1- AC_SUBST([am__fastdepCC_TRUE])
337 m4trace:configure.in:9: -1- AC_SUBST_TRACE([am__fastdepCC_TRUE])
338 m4trace:configure.in:9: -1- m4_pattern_allow([^am__fastdepCC_TRUE$])
339 m4trace:configure.in:9: -1- AC_SUBST([am__fastdepCC_FALSE])
340 m4trace:configure.in:9: -1- AC_SUBST_TRACE([am__fastdepCC_FALSE])
341 m4trace:configure.in:9: -1- m4_pattern_allow([^am__fastdepCC_FALSE$])
342 m4trace:configure.in:10: -1- _m4_warn([obsolete], [The macro `AM_PROG_CC_STDC' is obsolete.
343 You should run autoupdate.], [aclocal.m4:8860: AM_PROG_CC_STDC is expanded from...
344 configure.in:10: the top level])
345 m4trace:configure.in:10: -1- AC_SUBST([CC])
346 m4trace:configure.in:10: -1- AC_SUBST_TRACE([CC])
347 m4trace:configure.in:10: -1- m4_pattern_allow([^CC$])
348 m4trace:configure.in:10: -1- AC_SUBST([CFLAGS])
349 m4trace:configure.in:10: -1- AC_SUBST_TRACE([CFLAGS])
350 m4trace:configure.in:10: -1- m4_pattern_allow([^CFLAGS$])
351 m4trace:configure.in:10: -1- AC_SUBST([LDFLAGS])
352 m4trace:configure.in:10: -1- AC_SUBST_TRACE([LDFLAGS])
353 m4trace:configure.in:10: -1- m4_pattern_allow([^LDFLAGS$])
354 m4trace:configure.in:10: -1- AC_SUBST([LIBS])
355 m4trace:configure.in:10: -1- AC_SUBST_TRACE([LIBS])
356 m4trace:configure.in:10: -1- m4_pattern_allow([^LIBS$])
357 m4trace:configure.in:10: -1- AC_SUBST([CPPFLAGS])
358 m4trace:configure.in:10: -1- AC_SUBST_TRACE([CPPFLAGS])
359 m4trace:configure.in:10: -1- m4_pattern_allow([^CPPFLAGS$])
360 m4trace:configure.in:10: -1- AC_SUBST([CC])
361 m4trace:configure.in:10: -1- AC_SUBST_TRACE([CC])
362 m4trace:configure.in:10: -1- m4_pattern_allow([^CC$])
363 m4trace:configure.in:10: -1- AC_SUBST([CC])
364 m4trace:configure.in:10: -1- AC_SUBST_TRACE([CC])
365 m4trace:configure.in:10: -1- m4_pattern_allow([^CC$])
366 m4trace:configure.in:10: -1- AC_SUBST([CC])
367 m4trace:configure.in:10: -1- AC_SUBST_TRACE([CC])
368 m4trace:configure.in:10: -1- m4_pattern_allow([^CC$])
369 m4trace:configure.in:10: -1- AC_SUBST([CC])
370 m4trace:configure.in:10: -1- AC_SUBST_TRACE([CC])
371 m4trace:configure.in:10: -1- m4_pattern_allow([^CC$])
372 m4trace:configure.in:10: -1- AC_SUBST([ac_ct_CC])
373 m4trace:configure.in:10: -1- AC_SUBST_TRACE([ac_ct_CC])
374 m4trace:configure.in:10: -1- m4_pattern_allow([^ac_ct_CC$])
375 m4trace:configure.in:10: -1- AC_SUBST([CCDEPMODE], [depmode=$am_cv_CC_dependencies_compiler_type])
376 m4trace:configure.in:10: -1- AC_SUBST_TRACE([CCDEPMODE])
377 m4trace:configure.in:10: -1- m4_pattern_allow([^CCDEPMODE$])
378 m4trace:configure.in:10: -1- AM_CONDITIONAL([am__fastdepCC], [
379 test "x$enable_dependency_tracking" != xno \
380 && test "$am_cv_CC_dependencies_compiler_type" = gcc3])
381 m4trace:configure.in:10: -1- AC_SUBST([am__fastdepCC_TRUE])
382 m4trace:configure.in:10: -1- AC_SUBST_TRACE([am__fastdepCC_TRUE])
383 m4trace:configure.in:10: -1- m4_pattern_allow([^am__fastdepCC_TRUE$])
384 m4trace:configure.in:10: -1- AC_SUBST([am__fastdepCC_FALSE])
385 m4trace:configure.in:10: -1- AC_SUBST_TRACE([am__fastdepCC_FALSE])
386 m4trace:configure.in:10: -1- m4_pattern_allow([^am__fastdepCC_FALSE$])
387 m4trace:configure.in:10: -1- _m4_warn([obsolete], [AM_PROG_CC_STDC:
388 your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
389 `ac_cv_prog_cc_stdc'. Remove this warning and the assignment when
390 you adjust the code. You can also remove the above call to
391 AC_PROG_CC if you already called it elsewhere.], [aclocal.m4:8860: AM_PROG_CC_STDC is expanded from...
392 configure.in:10: the top level])
393 m4trace:configure.in:11: -1- AC_SUBST([CPP])
394 m4trace:configure.in:11: -1- AC_SUBST_TRACE([CPP])
395 m4trace:configure.in:11: -1- m4_pattern_allow([^CPP$])
396 m4trace:configure.in:11: -1- AC_SUBST([CPPFLAGS])
397 m4trace:configure.in:11: -1- AC_SUBST_TRACE([CPPFLAGS])
398 m4trace:configure.in:11: -1- m4_pattern_allow([^CPPFLAGS$])
399 m4trace:configure.in:11: -1- AC_SUBST([CPP])
400 m4trace:configure.in:11: -1- AC_SUBST_TRACE([CPP])
401 m4trace:configure.in:11: -1- m4_pattern_allow([^CPP$])
402 m4trace:configure.in:11: -1- AC_SUBST([GREP])
403 m4trace:configure.in:11: -1- AC_SUBST_TRACE([GREP])
404 m4trace:configure.in:11: -1- m4_pattern_allow([^GREP$])
405 m4trace:configure.in:11: -1- AC_SUBST([EGREP])
406 m4trace:configure.in:11: -1- AC_SUBST_TRACE([EGREP])
407 m4trace:configure.in:11: -1- m4_pattern_allow([^EGREP$])
408 m4trace:configure.in:11: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS])
409 m4trace:configure.in:11: -1- m4_pattern_allow([^STDC_HEADERS$])
410 m4trace:configure.in:11: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */
411 @%:@undef STDC_HEADERS])
412 m4trace:configure.in:12: -1- LT_INIT
413 m4trace:configure.in:12: -1- m4_pattern_forbid([^_?LT_[A-Z_]+$])
414 m4trace:configure.in:12: -1- m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])
415 m4trace:configure.in:12: -1- AC_REQUIRE_AUX_FILE([ltmain.sh])
416 m4trace:configure.in:12: -1- AC_SUBST([LIBTOOL])
417 m4trace:configure.in:12: -1- AC_SUBST_TRACE([LIBTOOL])
418 m4trace:configure.in:12: -1- m4_pattern_allow([^LIBTOOL$])
419 m4trace:configure.in:12: -1- AC_CANONICAL_HOST
420 m4trace:configure.in:12: -1- AC_CANONICAL_BUILD
421 m4trace:configure.in:12: -1- AC_REQUIRE_AUX_FILE([config.sub])
422 m4trace:configure.in:12: -1- AC_REQUIRE_AUX_FILE([config.guess])
423 m4trace:configure.in:12: -1- AC_SUBST([build], [$ac_cv_build])
424 m4trace:configure.in:12: -1- AC_SUBST_TRACE([build])
425 m4trace:configure.in:12: -1- m4_pattern_allow([^build$])
426 m4trace:configure.in:12: -1- AC_SUBST([build_cpu], [$[1]])
427 m4trace:configure.in:12: -1- AC_SUBST_TRACE([build_cpu])
428 m4trace:configure.in:12: -1- m4_pattern_allow([^build_cpu$])
429 m4trace:configure.in:12: -1- AC_SUBST([build_vendor], [$[2]])
430 m4trace:configure.in:12: -1- AC_SUBST_TRACE([build_vendor])
431 m4trace:configure.in:12: -1- m4_pattern_allow([^build_vendor$])
432 m4trace:configure.in:12: -1- AC_SUBST([build_os])
433 m4trace:configure.in:12: -1- AC_SUBST_TRACE([build_os])
434 m4trace:configure.in:12: -1- m4_pattern_allow([^build_os$])
435 m4trace:configure.in:12: -1- AC_SUBST([host], [$ac_cv_host])
436 m4trace:configure.in:12: -1- AC_SUBST_TRACE([host])
437 m4trace:configure.in:12: -1- m4_pattern_allow([^host$])
438 m4trace:configure.in:12: -1- AC_SUBST([host_cpu], [$[1]])
439 m4trace:configure.in:12: -1- AC_SUBST_TRACE([host_cpu])
440 m4trace:configure.in:12: -1- m4_pattern_allow([^host_cpu$])
441 m4trace:configure.in:12: -1- AC_SUBST([host_vendor], [$[2]])
442 m4trace:configure.in:12: -1- AC_SUBST_TRACE([host_vendor])
443 m4trace:configure.in:12: -1- m4_pattern_allow([^host_vendor$])
444 m4trace:configure.in:12: -1- AC_SUBST([host_os])
445 m4trace:configure.in:12: -1- AC_SUBST_TRACE([host_os])
446 m4trace:configure.in:12: -1- m4_pattern_allow([^host_os$])
447 m4trace:configure.in:12: -1- AC_SUBST([SED])
448 m4trace:configure.in:12: -1- AC_SUBST_TRACE([SED])
449 m4trace:configure.in:12: -1- m4_pattern_allow([^SED$])
450 m4trace:configure.in:12: -1- AC_SUBST([FGREP])
451 m4trace:configure.in:12: -1- AC_SUBST_TRACE([FGREP])
452 m4trace:configure.in:12: -1- m4_pattern_allow([^FGREP$])
453 m4trace:configure.in:12: -1- AC_SUBST([GREP])
454 m4trace:configure.in:12: -1- AC_SUBST_TRACE([GREP])
455 m4trace:configure.in:12: -1- m4_pattern_allow([^GREP$])
456 m4trace:configure.in:12: -1- AC_SUBST([LD])
457 m4trace:configure.in:12: -1- AC_SUBST_TRACE([LD])
458 m4trace:configure.in:12: -1- m4_pattern_allow([^LD$])
459 m4trace:configure.in:12: -1- AC_SUBST([DUMPBIN])
460 m4trace:configure.in:12: -1- AC_SUBST_TRACE([DUMPBIN])
461 m4trace:configure.in:12: -1- m4_pattern_allow([^DUMPBIN$])
462 m4trace:configure.in:12: -1- AC_SUBST([ac_ct_DUMPBIN])
463 m4trace:configure.in:12: -1- AC_SUBST_TRACE([ac_ct_DUMPBIN])
464 m4trace:configure.in:12: -1- m4_pattern_allow([^ac_ct_DUMPBIN$])
465 m4trace:configure.in:12: -1- AC_SUBST([DUMPBIN])
466 m4trace:configure.in:12: -1- AC_SUBST_TRACE([DUMPBIN])
467 m4trace:configure.in:12: -1- m4_pattern_allow([^DUMPBIN$])
468 m4trace:configure.in:12: -1- AC_SUBST([NM])
469 m4trace:configure.in:12: -1- AC_SUBST_TRACE([NM])
470 m4trace:configure.in:12: -1- m4_pattern_allow([^NM$])
471 m4trace:configure.in:12: -1- AC_SUBST([LN_S], [$as_ln_s])
472 m4trace:configure.in:12: -1- AC_SUBST_TRACE([LN_S])
473 m4trace:configure.in:12: -1- m4_pattern_allow([^LN_S$])
474 m4trace:configure.in:12: -1- AC_SUBST([OBJDUMP])
475 m4trace:configure.in:12: -1- AC_SUBST_TRACE([OBJDUMP])
476 m4trace:configure.in:12: -1- m4_pattern_allow([^OBJDUMP$])
477 m4trace:configure.in:12: -1- AC_SUBST([OBJDUMP])
478 m4trace:configure.in:12: -1- AC_SUBST_TRACE([OBJDUMP])
479 m4trace:configure.in:12: -1- m4_pattern_allow([^OBJDUMP$])
480 m4trace:configure.in:12: -1- AC_SUBST([DLLTOOL])
481 m4trace:configure.in:12: -1- AC_SUBST_TRACE([DLLTOOL])
482 m4trace:configure.in:12: -1- m4_pattern_allow([^DLLTOOL$])
483 m4trace:configure.in:12: -1- AC_SUBST([DLLTOOL])
484 m4trace:configure.in:12: -1- AC_SUBST_TRACE([DLLTOOL])
485 m4trace:configure.in:12: -1- m4_pattern_allow([^DLLTOOL$])
486 m4trace:configure.in:12: -1- AC_SUBST([AR])
487 m4trace:configure.in:12: -1- AC_SUBST_TRACE([AR])
488 m4trace:configure.in:12: -1- m4_pattern_allow([^AR$])
489 m4trace:configure.in:12: -1- AC_SUBST([ac_ct_AR])
490 m4trace:configure.in:12: -1- AC_SUBST_TRACE([ac_ct_AR])
491 m4trace:configure.in:12: -1- m4_pattern_allow([^ac_ct_AR$])
492 m4trace:configure.in:12: -1- AC_SUBST([STRIP])
493 m4trace:configure.in:12: -1- AC_SUBST_TRACE([STRIP])
494 m4trace:configure.in:12: -1- m4_pattern_allow([^STRIP$])
495 m4trace:configure.in:12: -1- AC_SUBST([RANLIB])
496 m4trace:configure.in:12: -1- AC_SUBST_TRACE([RANLIB])
497 m4trace:configure.in:12: -1- m4_pattern_allow([^RANLIB$])
498 m4trace:configure.in:12: -1- m4_pattern_allow([LT_OBJDIR])
499 m4trace:configure.in:12: -1- AC_DEFINE_TRACE_LITERAL([LT_OBJDIR])
500 m4trace:configure.in:12: -1- m4_pattern_allow([^LT_OBJDIR$])
501 m4trace:configure.in:12: -1- AH_OUTPUT([LT_OBJDIR], [/* Define to the sub-directory in which libtool stores uninstalled libraries.
502 */
503 @%:@undef LT_OBJDIR])
504 m4trace:configure.in:12: -1- LT_SUPPORTED_TAG([CC])
505 m4trace:configure.in:12: -1- AC_SUBST([MANIFEST_TOOL])
506 m4trace:configure.in:12: -1- AC_SUBST_TRACE([MANIFEST_TOOL])
507 m4trace:configure.in:12: -1- m4_pattern_allow([^MANIFEST_TOOL$])
508 m4trace:configure.in:12: -1- AC_SUBST([DSYMUTIL])
509 m4trace:configure.in:12: -1- AC_SUBST_TRACE([DSYMUTIL])
510 m4trace:configure.in:12: -1- m4_pattern_allow([^DSYMUTIL$])
511 m4trace:configure.in:12: -1- AC_SUBST([NMEDIT])
512 m4trace:configure.in:12: -1- AC_SUBST_TRACE([NMEDIT])
513 m4trace:configure.in:12: -1- m4_pattern_allow([^NMEDIT$])
514 m4trace:configure.in:12: -1- AC_SUBST([LIPO])
515 m4trace:configure.in:12: -1- AC_SUBST_TRACE([LIPO])
516 m4trace:configure.in:12: -1- m4_pattern_allow([^LIPO$])
517 m4trace:configure.in:12: -1- AC_SUBST([OTOOL])
518 m4trace:configure.in:12: -1- AC_SUBST_TRACE([OTOOL])
519 m4trace:configure.in:12: -1- m4_pattern_allow([^OTOOL$])
520 m4trace:configure.in:12: -1- AC_SUBST([OTOOL64])
521 m4trace:configure.in:12: -1- AC_SUBST_TRACE([OTOOL64])
522 m4trace:configure.in:12: -1- m4_pattern_allow([^OTOOL64$])
523 m4trace:configure.in:12: -1- AH_OUTPUT([HAVE_DLFCN_H], [/* Define to 1 if you have the <dlfcn.h> header file. */
524 @%:@undef HAVE_DLFCN_H])
525 m4trace:configure.in:12: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the <sys/types.h> header file. */
526 @%:@undef HAVE_SYS_TYPES_H])
527 m4trace:configure.in:12: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the <sys/stat.h> header file. */
528 @%:@undef HAVE_SYS_STAT_H])
529 m4trace:configure.in:12: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the <stdlib.h> header file. */
530 @%:@undef HAVE_STDLIB_H])
531 m4trace:configure.in:12: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the <string.h> header file. */
532 @%:@undef HAVE_STRING_H])
533 m4trace:configure.in:12: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the <memory.h> header file. */
534 @%:@undef HAVE_MEMORY_H])
535 m4trace:configure.in:12: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the <strings.h> header file. */
536 @%:@undef HAVE_STRINGS_H])
537 m4trace:configure.in:12: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the <inttypes.h> header file. */
538 @%:@undef HAVE_INTTYPES_H])
539 m4trace:configure.in:12: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the <stdint.h> header file. */
540 @%:@undef HAVE_STDINT_H])
541 m4trace:configure.in:12: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the <unistd.h> header file. */
542 @%:@undef HAVE_UNISTD_H])
543 m4trace:configure.in:12: -1- AC_DEFINE_TRACE_LITERAL([HAVE_DLFCN_H])
544 m4trace:configure.in:12: -1- m4_pattern_allow([^HAVE_DLFCN_H$])
545 m4trace:configure.in:14: -1- m4_pattern_forbid([^_?PKG_[A-Z_]+$])
546 m4trace:configure.in:14: -1- m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
547 m4trace:configure.in:14: -1- m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
548 m4trace:configure.in:14: -1- AC_SUBST([PKG_CONFIG])
549 m4trace:configure.in:14: -1- AC_SUBST_TRACE([PKG_CONFIG])
550 m4trace:configure.in:14: -1- m4_pattern_allow([^PKG_CONFIG$])
551 m4trace:configure.in:14: -1- AC_SUBST([PKG_CONFIG_PATH])
552 m4trace:configure.in:14: -1- AC_SUBST_TRACE([PKG_CONFIG_PATH])
553 m4trace:configure.in:14: -1- m4_pattern_allow([^PKG_CONFIG_PATH$])
554 m4trace:configure.in:14: -1- AC_SUBST([PKG_CONFIG_LIBDIR])
555 m4trace:configure.in:14: -1- AC_SUBST_TRACE([PKG_CONFIG_LIBDIR])
556 m4trace:configure.in:14: -1- m4_pattern_allow([^PKG_CONFIG_LIBDIR$])
557 m4trace:configure.in:14: -1- AC_SUBST([PKG_CONFIG])
558 m4trace:configure.in:14: -1- AC_SUBST_TRACE([PKG_CONFIG])
559 m4trace:configure.in:14: -1- m4_pattern_allow([^PKG_CONFIG$])
560 m4trace:configure.in:14: -1- AC_SUBST([GTK_CFLAGS])
561 m4trace:configure.in:14: -1- AC_SUBST_TRACE([GTK_CFLAGS])
562 m4trace:configure.in:14: -1- m4_pattern_allow([^GTK_CFLAGS$])
563 m4trace:configure.in:14: -1- AC_SUBST([GTK_LIBS])
564 m4trace:configure.in:14: -1- AC_SUBST_TRACE([GTK_LIBS])
565 m4trace:configure.in:14: -1- m4_pattern_allow([^GTK_LIBS$])
566 m4trace:configure.in:15: -1- AC_SUBST([GTK_LIBS])
567 m4trace:configure.in:15: -1- AC_SUBST_TRACE([GTK_LIBS])
568 m4trace:configure.in:15: -1- m4_pattern_allow([^GTK_LIBS$])
569 m4trace:configure.in:16: -1- AC_SUBST([GTK_CFLAGS])
570 m4trace:configure.in:16: -1- AC_SUBST_TRACE([GTK_CFLAGS])
571 m4trace:configure.in:16: -1- m4_pattern_allow([^GTK_CFLAGS$])
572 m4trace:configure.in:29: -1- AC_DEFINE_TRACE_LITERAL([HAVE_INET_ATON])
573 m4trace:configure.in:29: -1- m4_pattern_allow([^HAVE_INET_ATON$])
574 m4trace:configure.in:29: -1- AH_OUTPUT([HAVE_INET_ATON], [/* Define if you have inet_aton */
575 @%:@undef HAVE_INET_ATON])
576 m4trace:configure.in:30: -1- AC_DEFINE_TRACE_LITERAL([HAVE_INET_ATON])
577 m4trace:configure.in:30: -1- m4_pattern_allow([^HAVE_INET_ATON$])
578 m4trace:configure.in:31: -1- AC_DEFINE_TRACE_LITERAL([HAVE_INET_ATON])
579 m4trace:configure.in:31: -1- m4_pattern_allow([^HAVE_INET_ATON$])
580 m4trace:configure.in:33: -1- AC_DEFINE_TRACE_LITERAL([DEBUG])
581 m4trace:configure.in:33: -1- m4_pattern_allow([^DEBUG$])
582 m4trace:configure.in:33: -1- AH_OUTPUT([DEBUG], [/* If you wish to see network traffic. */
583 @%:@undef DEBUG])
584 m4trace:configure.in:36: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE])
585 m4trace:configure.in:36: -1- m4_pattern_allow([^PACKAGE$])
586 m4trace:configure.in:36: -1- AH_OUTPUT([PACKAGE], [/* Package name */
587 @%:@undef PACKAGE])
588 m4trace:configure.in:37: -1- AC_DEFINE_TRACE_LITERAL([VERSION])
589 m4trace:configure.in:37: -1- m4_pattern_allow([^VERSION$])
590 m4trace:configure.in:37: -1- AH_OUTPUT([VERSION], [/* Package version */
591 @%:@undef VERSION])
592 m4trace:configure.in:54: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_DATA_DIR])
593 m4trace:configure.in:54: -1- m4_pattern_allow([^PACKAGE_DATA_DIR$])
594 m4trace:configure.in:54: -1- AH_OUTPUT([PACKAGE_DATA_DIR], [/* Path where data will be installed */
595 @%:@undef PACKAGE_DATA_DIR])
596 m4trace:configure.in:56: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_DATA_DIR])
597 m4trace:configure.in:56: -1- m4_pattern_allow([^PACKAGE_DATA_DIR$])
598 m4trace:configure.in:56: -1- AH_OUTPUT([PACKAGE_DATA_DIR], [/* Path where data will be installed */
599 @%:@undef PACKAGE_DATA_DIR])
600 m4trace:configure.in:59: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_DATA_DIR])
601 m4trace:configure.in:59: -1- m4_pattern_allow([^PACKAGE_DATA_DIR$])
602 m4trace:configure.in:59: -1- AH_OUTPUT([PACKAGE_DATA_DIR], [/* Path where data will be installed */
603 @%:@undef PACKAGE_DATA_DIR])
604 m4trace:configure.in:64: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_SOURCE_DIR])
605 m4trace:configure.in:64: -1- m4_pattern_allow([^PACKAGE_SOURCE_DIR$])
606 m4trace:configure.in:64: -1- AH_OUTPUT([PACKAGE_SOURCE_DIR], [/* Source path */
607 @%:@undef PACKAGE_SOURCE_DIR])
608 m4trace:configure.in:75: -1- AC_CONFIG_FILES([
609 Makefile
610 src/Makefile
611 ])
612 m4trace:configure.in:75: -1- _m4_warn([obsolete], [AC_OUTPUT should be used without arguments.
613 You should run autoupdate.], [])
614 m4trace:configure.in:75: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs])
615 m4trace:configure.in:75: -1- AC_SUBST_TRACE([LIB@&t@OBJS])
616 m4trace:configure.in:75: -1- m4_pattern_allow([^LIB@&t@OBJS$])
617 m4trace:configure.in:75: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs])
618 m4trace:configure.in:75: -1- AC_SUBST_TRACE([LTLIBOBJS])
619 m4trace:configure.in:75: -1- m4_pattern_allow([^LTLIBOBJS$])
620 m4trace:configure.in:75: -1- AC_SUBST_TRACE([top_builddir])
621 m4trace:configure.in:75: -1- AC_SUBST_TRACE([top_build_prefix])
622 m4trace:configure.in:75: -1- AC_SUBST_TRACE([srcdir])
623 m4trace:configure.in:75: -1- AC_SUBST_TRACE([abs_srcdir])
624 m4trace:configure.in:75: -1- AC_SUBST_TRACE([top_srcdir])
625 m4trace:configure.in:75: -1- AC_SUBST_TRACE([abs_top_srcdir])
626 m4trace:configure.in:75: -1- AC_SUBST_TRACE([builddir])
627 m4trace:configure.in:75: -1- AC_SUBST_TRACE([abs_builddir])
628 m4trace:configure.in:75: -1- AC_SUBST_TRACE([abs_top_builddir])
629 m4trace:configure.in:75: -1- AC_SUBST_TRACE([INSTALL])
630 m4trace:configure.in:75: -1- AC_REQUIRE_AUX_FILE([ltmain.sh])
+0
-30
clean_gtkatlantic less more
0 rm -f aclocal.m4
1 rm -f -r autom4te.cache
2 rm -f config.guess
3 rm -f config.h
4 rm -f config.status
5 rm -f config.h.in
6 rm -f config.log
7 rm -f config.sub
8 rm -f configure
9 rm -f depcomp
10 rm -f install-sh
11 rm -f Makefile
12 rm -f Makefile.in
13 rm -f missing
14 rm -f mkinstalldirs
15 rm -f stamp-h1
16 rm -f stamp-h.in
17 rm -f libtool
18 rm -f ltmain.sh
19 rm -f *~
20 rm -f src/*.o
21 rm -f src/gtkatlantic
22 rm -f src/Makefile.in
23 rm -f src/Makefile
24 rm -f src/*~
25 rm -f -r src/.deps
26 rm -f -r src/.libs
27 rm -f -r m4
28 find . -name "CVS" -type d -exec rm -f -rf {} \;
29 find . -name ".svn" -type d -exec rm -f -rf {} \;
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright 1992-2013 Free Software Foundation, Inc.
3
4 timestamp='2013-06-10'
2 # Copyright 1992-2014 Free Software Foundation, Inc.
3
4 timestamp='2014-03-23'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
4949 GNU config.guess ($timestamp)
5050
5151 Originally written by Per Bothner.
52 Copyright 1992-2013 Free Software Foundation, Inc.
52 Copyright 1992-2014 Free Software Foundation, Inc.
5353
5454 This is free software; see the source for copying conditions. There is NO
5555 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
148148 LIBC=gnu
149149 #endif
150150 EOF
151 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
151 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
152152 ;;
153153 esac
154154
825825 *:MINGW*:*)
826826 echo ${UNAME_MACHINE}-pc-mingw32
827827 exit ;;
828 i*:MSYS*:*)
828 *:MSYS*:*)
829829 echo ${UNAME_MACHINE}-pc-msys
830830 exit ;;
831831 i*:windows32*:*)
968968 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
969969 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
970970 ;;
971 or1k:Linux:*:*)
972 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
973 exit ;;
974 or32:Linux:*:*)
971 openrisc*:Linux:*:*)
972 echo or1k-unknown-linux-${LIBC}
973 exit ;;
974 or32:Linux:*:* | or1k*:Linux:*:*)
975975 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
976976 exit ;;
977977 padre:Linux:*:*)
12591259 if test "$UNAME_PROCESSOR" = unknown ; then
12601260 UNAME_PROCESSOR=powerpc
12611261 fi
1262 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1263 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1264 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1265 grep IS_64BIT_ARCH >/dev/null
1266 then
1267 case $UNAME_PROCESSOR in
1268 i386) UNAME_PROCESSOR=x86_64 ;;
1269 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1270 esac
1262 if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
1263 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1264 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1265 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1266 grep IS_64BIT_ARCH >/dev/null
1267 then
1268 case $UNAME_PROCESSOR in
1269 i386) UNAME_PROCESSOR=x86_64 ;;
1270 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1271 esac
1272 fi
12711273 fi
1274 elif test "$UNAME_PROCESSOR" = i386 ; then
1275 # Avoid executing cc on OS X 10.9, as it ships with a stub
1276 # that puts up a graphical alert prompting to install
1277 # developer tools. Any system running Mac OS X 10.7 or
1278 # later (Darwin 11 and later) is required to have a 64-bit
1279 # processor. This is not true of the ARM version of Darwin
1280 # that Apple uses in portable devices.
1281 UNAME_PROCESSOR=x86_64
12721282 fi
12731283 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
12741284 exit ;;
13601370 exit ;;
13611371 esac
13621372
1363 eval $set_cc_for_build
1364 cat >$dummy.c <<EOF
1365 #ifdef _SEQUENT_
1366 # include <sys/types.h>
1367 # include <sys/utsname.h>
1368 #endif
1369 main ()
1370 {
1371 #if defined (sony)
1372 #if defined (MIPSEB)
1373 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1374 I don't know.... */
1375 printf ("mips-sony-bsd\n"); exit (0);
1376 #else
1377 #include <sys/param.h>
1378 printf ("m68k-sony-newsos%s\n",
1379 #ifdef NEWSOS4
1380 "4"
1381 #else
1382 ""
1383 #endif
1384 ); exit (0);
1385 #endif
1386 #endif
1387
1388 #if defined (__arm) && defined (__acorn) && defined (__unix)
1389 printf ("arm-acorn-riscix\n"); exit (0);
1390 #endif
1391
1392 #if defined (hp300) && !defined (hpux)
1393 printf ("m68k-hp-bsd\n"); exit (0);
1394 #endif
1395
1396 #if defined (NeXT)
1397 #if !defined (__ARCHITECTURE__)
1398 #define __ARCHITECTURE__ "m68k"
1399 #endif
1400 int version;
1401 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1402 if (version < 4)
1403 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1404 else
1405 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1406 exit (0);
1407 #endif
1408
1409 #if defined (MULTIMAX) || defined (n16)
1410 #if defined (UMAXV)
1411 printf ("ns32k-encore-sysv\n"); exit (0);
1412 #else
1413 #if defined (CMU)
1414 printf ("ns32k-encore-mach\n"); exit (0);
1415 #else
1416 printf ("ns32k-encore-bsd\n"); exit (0);
1417 #endif
1418 #endif
1419 #endif
1420
1421 #if defined (__386BSD__)
1422 printf ("i386-pc-bsd\n"); exit (0);
1423 #endif
1424
1425 #if defined (sequent)
1426 #if defined (i386)
1427 printf ("i386-sequent-dynix\n"); exit (0);
1428 #endif
1429 #if defined (ns32000)
1430 printf ("ns32k-sequent-dynix\n"); exit (0);
1431 #endif
1432 #endif
1433
1434 #if defined (_SEQUENT_)
1435 struct utsname un;
1436
1437 uname(&un);
1438
1439 if (strncmp(un.version, "V2", 2) == 0) {
1440 printf ("i386-sequent-ptx2\n"); exit (0);
1441 }
1442 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1443 printf ("i386-sequent-ptx1\n"); exit (0);
1444 }
1445 printf ("i386-sequent-ptx\n"); exit (0);
1446
1447 #endif
1448
1449 #if defined (vax)
1450 # if !defined (ultrix)
1451 # include <sys/param.h>
1452 # if defined (BSD)
1453 # if BSD == 43
1454 printf ("vax-dec-bsd4.3\n"); exit (0);
1455 # else
1456 # if BSD == 199006
1457 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1458 # else
1459 printf ("vax-dec-bsd\n"); exit (0);
1460 # endif
1461 # endif
1462 # else
1463 printf ("vax-dec-bsd\n"); exit (0);
1464 # endif
1465 # else
1466 printf ("vax-dec-ultrix\n"); exit (0);
1467 # endif
1468 #endif
1469
1470 #if defined (alliant) && defined (i860)
1471 printf ("i860-alliant-bsd\n"); exit (0);
1472 #endif
1473
1474 exit (1);
1475 }
1476 EOF
1477
1478 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1479 { echo "$SYSTEM_NAME"; exit; }
1480
1481 # Apollos put the system type in the environment.
1482
1483 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1484
1485 # Convex versions that predate uname can use getsysinfo(1)
1486
1487 if [ -x /usr/convex/getsysinfo ]
1488 then
1489 case `getsysinfo -f cpu_type` in
1490 c1*)
1491 echo c1-convex-bsd
1492 exit ;;
1493 c2*)
1494 if getsysinfo -f scalar_acc
1495 then echo c32-convex-bsd
1496 else echo c2-convex-bsd
1497 fi
1498 exit ;;
1499 c34*)
1500 echo c34-convex-bsd
1501 exit ;;
1502 c38*)
1503 echo c38-convex-bsd
1504 exit ;;
1505 c4*)
1506 echo c4-convex-bsd
1507 exit ;;
1508 esac
1509 fi
1510
15111373 cat >&2 <<EOF
15121374 $0: unable to guess system type
15131375
5151 /* Define to the full name of this package. */
5252 #undef PACKAGE_NAME
5353
54 /* Source path */
55 #undef PACKAGE_SOURCE_DIR
56
5754 /* Define to the full name and version of this package. */
5855 #undef PACKAGE_STRING
5956
00 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright 1992-2013 Free Software Foundation, Inc.
3
4 timestamp='2013-08-10'
2 # Copyright 1992-2014 Free Software Foundation, Inc.
3
4 timestamp='2014-09-11'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
6767 version="\
6868 GNU config.sub ($timestamp)
6969
70 Copyright 1992-2013 Free Software Foundation, Inc.
70 Copyright 1992-2014 Free Software Foundation, Inc.
7171
7272 This is free software; see the source for copying conditions. There is NO
7373 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
264264 | hexagon \
265265 | i370 | i860 | i960 | ia64 \
266266 | ip2k | iq2000 \
267 | k1om \
267268 | le32 | le64 \
268269 | lm32 \
269270 | m32c | m32r | m32rle | m68000 | m68k | m88k \
281282 | mips64vr5900 | mips64vr5900el \
282283 | mipsisa32 | mipsisa32el \
283284 | mipsisa32r2 | mipsisa32r2el \
285 | mipsisa32r6 | mipsisa32r6el \
284286 | mipsisa64 | mipsisa64el \
285287 | mipsisa64r2 | mipsisa64r2el \
288 | mipsisa64r6 | mipsisa64r6el \
286289 | mipsisa64sb1 | mipsisa64sb1el \
287290 | mipsisa64sr71k | mipsisa64sr71kel \
288291 | mipsr5900 | mipsr5900el \
294297 | nds32 | nds32le | nds32be \
295298 | nios | nios2 | nios2eb | nios2el \
296299 | ns16k | ns32k \
297 | open8 \
298 | or1k | or32 \
300 | open8 | or1k | or1knd | or32 \
299301 | pdp10 | pdp11 | pj | pjl \
300302 | powerpc | powerpc64 | powerpc64le | powerpcle \
301303 | pyramid \
304 | riscv32 | riscv64 \
302305 | rl78 | rx \
303306 | score \
304307 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
323326 c6x)
324327 basic_machine=tic6x-unknown
325328 ;;
326 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
329 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
327330 basic_machine=$basic_machine-unknown
328331 os=-none
329332 ;;
380383 | hexagon-* \
381384 | i*86-* | i860-* | i960-* | ia64-* \
382385 | ip2k-* | iq2000-* \
386 | k1om-* \
383387 | le32-* | le64-* \
384388 | lm32-* \
385389 | m32c-* | m32r-* | m32rle-* \
399403 | mips64vr5900-* | mips64vr5900el-* \
400404 | mipsisa32-* | mipsisa32el-* \
401405 | mipsisa32r2-* | mipsisa32r2el-* \
406 | mipsisa32r6-* | mipsisa32r6el-* \
402407 | mipsisa64-* | mipsisa64el-* \
403408 | mipsisa64r2-* | mipsisa64r2el-* \
409 | mipsisa64r6-* | mipsisa64r6el-* \
404410 | mipsisa64sb1-* | mipsisa64sb1el-* \
405411 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
406412 | mipsr5900-* | mipsr5900el-* \
412418 | nios-* | nios2-* | nios2eb-* | nios2el-* \
413419 | none-* | np1-* | ns16k-* | ns32k-* \
414420 | open8-* \
421 | or1k*-* \
415422 | orion-* \
416423 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
417424 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
821828 basic_machine=powerpc-unknown
822829 os=-morphos
823830 ;;
831 moxiebox)
832 basic_machine=moxie-unknown
833 os=-moxiebox
834 ;;
824835 msdos)
825836 basic_machine=i386-pc
826837 os=-msdos
13661377 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
13671378 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
13681379 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1369 | -uxpv* | -beos* | -mpeix* | -udk* \
1380 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
13701381 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
13711382 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
13721383 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
13731384 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
13741385 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
13751386 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1376 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1387 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
13771388 # Remember, each alternative MUST END IN *, to match a version number.
13781389 ;;
13791390 -qnx*)
15911602 mips*-*)
15921603 os=-elf
15931604 ;;
1594 or1k-*)
1595 os=-elf
1596 ;;
15971605 or32-*)
15981606 os=-coff
15991607 ;;
25132513
25142514 # Define the identity of the package.
25152515 PACKAGE=gtkatlantic
2516 VERSION=0.5.0
2516 VERSION=0.6.0
25172517
25182518
25192519 cat >>confdefs.h <<_ACEOF
1288012880
1288112881
1288212882
12883 if test "x${datarootdir}" = 'x${prefix}/share'; then
12884 if test "x${prefix}" = "xNONE"; then
12883 if test "x${datadir}" = 'x${datarootdir}'; then
12884 if test "x${datarootdir}" = 'x${prefix}/share'; then
12885 if test "x${prefix}" = 'xNONE'; then
1288512886
1288612887 cat >>confdefs.h <<_ACEOF
1288712888 #define PACKAGE_DATA_DIR "${ac_default_prefix}/share/${PACKAGE}"
1288812889 _ACEOF
1288912890
12890 else
12891 else
1289112892
1289212893 cat >>confdefs.h <<_ACEOF
1289312894 #define PACKAGE_DATA_DIR "${prefix}/share/${PACKAGE}"
1289412895 _ACEOF
1289512896
12897 fi
12898 else
12899
12900 cat >>confdefs.h <<_ACEOF
12901 #define PACKAGE_DATA_DIR "${datarootdir}/${PACKAGE}"
12902 _ACEOF
12903
1289612904 fi
1289712905 else
1289812906
1290212910
1290312911 fi
1290412912
12905 packagesrcdir=`cd $srcdir && pwd`
12906
12907 cat >>confdefs.h <<_ACEOF
12908 #define PACKAGE_SOURCE_DIR "${packagesrcdir}"
12909 _ACEOF
12910
12911
12912 # if test "x$GCC" = "xyes"; then \
12913 # CFLAGS="-Wall -ffast-math -funroll-all-loops -fomit-frame-pointer -O9"; \
12914 # CFLAGS="-g"; \
12915 # fi
12916
1291712913 if test "x$GCC" = "xyes"; then \
1291812914 CFLAGS+=" -Wall -Wextra -ggdb"; \
1291912915 fi
1292012916
12921 ac_config_files="$ac_config_files Makefile src/Makefile"
12917 ac_config_files="$ac_config_files Makefile src/Makefile data/Makefile data/themes/Makefile"
1292212918
1292312919 cat >confcache <<\_ACEOF
1292412920 # This file is a shell script that caches the results of configure
1391813914 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
1391913915 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1392013916 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13917 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
13918 "data/themes/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/Makefile" ;;
1392113919
1392213920 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1392313921 esac
00 dnl Process this file with autoconf to produce a configure script.
11
22 AC_INIT(configure.in)
3 AM_INIT_AUTOMAKE(gtkatlantic, 0.5.0)
3 AM_INIT_AUTOMAKE(gtkatlantic, 0.6.0)
44 AM_CONFIG_HEADER(config.h)
55
66 AC_ISC_POSIX
4848 dnl fi
4949
5050 dnl Set PACKAGE_DATA_DIR in config.h.
51 if test "x${datarootdir}" = 'x${prefix}/share'; then
52 if test "x${prefix}" = "xNONE"; then
53 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${ac_default_prefix}/share/${PACKAGE}", [Path where data will be installed])
51 if test "x${datadir}" = 'x${datarootdir}'; then
52 if test "x${datarootdir}" = 'x${prefix}/share'; then
53 if test "x${prefix}" = 'xNONE'; then
54 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${ac_default_prefix}/share/${PACKAGE}", [Path where data will be installed])
55 else
56 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}", [Path where data will be installed])
57 fi
5458 else
55 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}", [Path where data will be installed])
59 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datarootdir}/${PACKAGE}", [Path where data will be installed])
5660 fi
5761 else
5862 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datadir}/${PACKAGE}", [Path where data will be installed])
5963 fi
60
61 dnl Set PACKAGE SOURCE DIR in config.h.
62 packagesrcdir=`cd $srcdir && pwd`
63 AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}", [Source path])
64
65 # if test "x$GCC" = "xyes"; then \
66 # CFLAGS="-Wall -ffast-math -funroll-all-loops -fomit-frame-pointer -O9"; \
67 # CFLAGS="-g"; \
68 # fi
6964
7065 if test "x$GCC" = "xyes"; then \
7166 CFLAGS+=" -Wall -Wextra -ggdb"; \
7469 AC_OUTPUT([
7570 Makefile
7671 src/Makefile
72 data/Makefile
73 data/themes/Makefile
7774 ])
0 SUBDIRS=themes
1
2 datafiles = \
3 board.png \
4 cards.png \
5 commands.png \
6 houses.png \
7 icon_128x128.png \
8 icon_16x16.png \
9 icon_32x32.png \
10 icon_48x48.png \
11 icon_64x64.png \
12 interface.xml \
13 stars_m.png \
14 stars.png \
15 tokens.png
16
17 gamedatadir = $(pkgdatadir)
18 nobase_dist_gamedata_DATA = $(datafiles)
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = ..
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
25 install_sh_DATA = $(install_sh) -c -m 644
26 install_sh_PROGRAM = $(install_sh) -c
27 install_sh_SCRIPT = $(install_sh) -c
28 INSTALL_HEADER = $(INSTALL_DATA)
29 transform = $(program_transform_name)
30 NORMAL_INSTALL = :
31 PRE_INSTALL = :
32 POST_INSTALL = :
33 NORMAL_UNINSTALL = :
34 PRE_UNINSTALL = :
35 POST_UNINSTALL = :
36 build_triplet = @build@
37 host_triplet = @host@
38 subdir = data
39 DIST_COMMON = $(nobase_dist_gamedata_DATA) $(srcdir)/Makefile.am \
40 $(srcdir)/Makefile.in
41 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
42 am__aclocal_m4_deps = $(top_srcdir)/configure.in
43 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45 mkinstalldirs = $(install_sh) -d
46 CONFIG_HEADER = $(top_builddir)/config.h
47 CONFIG_CLEAN_FILES =
48 SOURCES =
49 DIST_SOURCES =
50 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
51 html-recursive info-recursive install-data-recursive \
52 install-exec-recursive install-info-recursive \
53 install-recursive installcheck-recursive installdirs-recursive \
54 pdf-recursive ps-recursive uninstall-info-recursive \
55 uninstall-recursive
56 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
57 am__vpath_adj = case $$p in \
58 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
59 *) f=$$p;; \
60 esac;
61 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
62 am__installdirs = "$(DESTDIR)$(gamedatadir)"
63 nobase_dist_gamedataDATA_INSTALL = $(install_sh_DATA)
64 DATA = $(nobase_dist_gamedata_DATA)
65 ETAGS = etags
66 CTAGS = ctags
67 DIST_SUBDIRS = $(SUBDIRS)
68 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
69 ACLOCAL = @ACLOCAL@
70 AMDEP_FALSE = @AMDEP_FALSE@
71 AMDEP_TRUE = @AMDEP_TRUE@
72 AMTAR = @AMTAR@
73 AR = @AR@
74 AUTOCONF = @AUTOCONF@
75 AUTOHEADER = @AUTOHEADER@
76 AUTOMAKE = @AUTOMAKE@
77 AWK = @AWK@
78 CC = @CC@
79 CCDEPMODE = @CCDEPMODE@
80 CFLAGS = @CFLAGS@
81 CPP = @CPP@
82 CPPFLAGS = @CPPFLAGS@
83 CYGPATH_W = @CYGPATH_W@
84 DEFS = @DEFS@
85 DEPDIR = @DEPDIR@
86 DLLTOOL = @DLLTOOL@
87 DSYMUTIL = @DSYMUTIL@
88 DUMPBIN = @DUMPBIN@
89 ECHO_C = @ECHO_C@
90 ECHO_N = @ECHO_N@
91 ECHO_T = @ECHO_T@
92 EGREP = @EGREP@
93 EXEEXT = @EXEEXT@
94 FGREP = @FGREP@
95 GREP = @GREP@
96 GTK_CFLAGS = @GTK_CFLAGS@
97 GTK_LIBS = @GTK_LIBS@
98 INSTALL_DATA = @INSTALL_DATA@
99 INSTALL_PROGRAM = @INSTALL_PROGRAM@
100 INSTALL_SCRIPT = @INSTALL_SCRIPT@
101 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
102 LD = @LD@
103 LDFLAGS = @LDFLAGS@
104 LIBOBJS = @LIBOBJS@
105 LIBS = @LIBS@
106 LIBTOOL = @LIBTOOL@
107 LIPO = @LIPO@
108 LN_S = @LN_S@
109 LTLIBOBJS = @LTLIBOBJS@
110 MAKEINFO = @MAKEINFO@
111 MANIFEST_TOOL = @MANIFEST_TOOL@
112 NM = @NM@
113 NMEDIT = @NMEDIT@
114 OBJDUMP = @OBJDUMP@
115 OBJEXT = @OBJEXT@
116 OTOOL = @OTOOL@
117 OTOOL64 = @OTOOL64@
118 PACKAGE = @PACKAGE@
119 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
120 PACKAGE_NAME = @PACKAGE_NAME@
121 PACKAGE_STRING = @PACKAGE_STRING@
122 PACKAGE_TARNAME = @PACKAGE_TARNAME@
123 PACKAGE_URL = @PACKAGE_URL@
124 PACKAGE_VERSION = @PACKAGE_VERSION@
125 PATH_SEPARATOR = @PATH_SEPARATOR@
126 PKG_CONFIG = @PKG_CONFIG@
127 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
128 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
129 RANLIB = @RANLIB@
130 SED = @SED@
131 SET_MAKE = @SET_MAKE@
132 SHELL = @SHELL@
133 STRIP = @STRIP@
134 VERSION = @VERSION@
135 ac_ct_AR = @ac_ct_AR@
136 ac_ct_CC = @ac_ct_CC@
137 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
138 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
139 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
140 am__include = @am__include@
141 am__leading_dot = @am__leading_dot@
142 am__quote = @am__quote@
143 am__tar = @am__tar@
144 am__untar = @am__untar@
145 bindir = @bindir@
146 build = @build@
147 build_alias = @build_alias@
148 build_cpu = @build_cpu@
149 build_os = @build_os@
150 build_vendor = @build_vendor@
151 datadir = @datadir@
152 datarootdir = @datarootdir@
153 docdir = @docdir@
154 dvidir = @dvidir@
155 exec_prefix = @exec_prefix@
156 host = @host@
157 host_alias = @host_alias@
158 host_cpu = @host_cpu@
159 host_os = @host_os@
160 host_vendor = @host_vendor@
161 htmldir = @htmldir@
162 includedir = @includedir@
163 infodir = @infodir@
164 install_sh = @install_sh@
165 libdir = @libdir@
166 libexecdir = @libexecdir@
167 localedir = @localedir@
168 localstatedir = @localstatedir@
169 mandir = @mandir@
170 mkdir_p = @mkdir_p@
171 oldincludedir = @oldincludedir@
172 pdfdir = @pdfdir@
173 prefix = @prefix@
174 program_transform_name = @program_transform_name@
175 psdir = @psdir@
176 sbindir = @sbindir@
177 sharedstatedir = @sharedstatedir@
178 sysconfdir = @sysconfdir@
179 target_alias = @target_alias@
180 SUBDIRS = themes
181 datafiles = \
182 board.png \
183 cards.png \
184 commands.png \
185 houses.png \
186 icon_128x128.png \
187 icon_16x16.png \
188 icon_32x32.png \
189 icon_48x48.png \
190 icon_64x64.png \
191 interface.xml \
192 stars_m.png \
193 stars.png \
194 tokens.png
195
196 gamedatadir = $(pkgdatadir)
197 nobase_dist_gamedata_DATA = $(datafiles)
198 all: all-recursive
199
200 .SUFFIXES:
201 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
202 @for dep in $?; do \
203 case '$(am__configure_deps)' in \
204 *$$dep*) \
205 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
206 && exit 0; \
207 exit 1;; \
208 esac; \
209 done; \
210 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu data/Makefile'; \
211 cd $(top_srcdir) && \
212 $(AUTOMAKE) --gnu data/Makefile
213 .PRECIOUS: Makefile
214 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
215 @case '$?' in \
216 *config.status*) \
217 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
218 *) \
219 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
220 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
221 esac;
222
223 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
224 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
225
226 $(top_srcdir)/configure: $(am__configure_deps)
227 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
228 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
229 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
230
231 mostlyclean-libtool:
232 -rm -f *.lo
233
234 clean-libtool:
235 -rm -rf .libs _libs
236
237 distclean-libtool:
238 -rm -f libtool
239 uninstall-info-am:
240 install-nobase_dist_gamedataDATA: $(nobase_dist_gamedata_DATA)
241 @$(NORMAL_INSTALL)
242 test -z "$(gamedatadir)" || $(mkdir_p) "$(DESTDIR)$(gamedatadir)"
243 @$(am__vpath_adj_setup) \
244 list='$(nobase_dist_gamedata_DATA)'; for p in $$list; do \
245 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
246 $(am__vpath_adj) \
247 echo " $(nobase_dist_gamedataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(gamedatadir)/$$f'"; \
248 $(nobase_dist_gamedataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(gamedatadir)/$$f"; \
249 done
250
251 uninstall-nobase_dist_gamedataDATA:
252 @$(NORMAL_UNINSTALL)
253 @$(am__vpath_adj_setup) \
254 list='$(nobase_dist_gamedata_DATA)'; for p in $$list; do \
255 $(am__vpath_adj) \
256 echo " rm -f '$(DESTDIR)$(gamedatadir)/$$f'"; \
257 rm -f "$(DESTDIR)$(gamedatadir)/$$f"; \
258 done
259
260 # This directory's subdirectories are mostly independent; you can cd
261 # into them and run `make' without going through this Makefile.
262 # To change the values of `make' variables: instead of editing Makefiles,
263 # (1) if the variable is set in `config.status', edit `config.status'
264 # (which will cause the Makefiles to be regenerated when you run `make');
265 # (2) otherwise, pass the desired values on the `make' command line.
266 $(RECURSIVE_TARGETS):
267 @failcom='exit 1'; \
268 for f in x $$MAKEFLAGS; do \
269 case $$f in \
270 *=* | --[!k]*);; \
271 *k*) failcom='fail=yes';; \
272 esac; \
273 done; \
274 dot_seen=no; \
275 target=`echo $@ | sed s/-recursive//`; \
276 list='$(SUBDIRS)'; for subdir in $$list; do \
277 echo "Making $$target in $$subdir"; \
278 if test "$$subdir" = "."; then \
279 dot_seen=yes; \
280 local_target="$$target-am"; \
281 else \
282 local_target="$$target"; \
283 fi; \
284 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
285 || eval $$failcom; \
286 done; \
287 if test "$$dot_seen" = "no"; then \
288 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
289 fi; test -z "$$fail"
290
291 mostlyclean-recursive clean-recursive distclean-recursive \
292 maintainer-clean-recursive:
293 @failcom='exit 1'; \
294 for f in x $$MAKEFLAGS; do \
295 case $$f in \
296 *=* | --[!k]*);; \
297 *k*) failcom='fail=yes';; \
298 esac; \
299 done; \
300 dot_seen=no; \
301 case "$@" in \
302 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
303 *) list='$(SUBDIRS)' ;; \
304 esac; \
305 rev=''; for subdir in $$list; do \
306 if test "$$subdir" = "."; then :; else \
307 rev="$$subdir $$rev"; \
308 fi; \
309 done; \
310 rev="$$rev ."; \
311 target=`echo $@ | sed s/-recursive//`; \
312 for subdir in $$rev; do \
313 echo "Making $$target in $$subdir"; \
314 if test "$$subdir" = "."; then \
315 local_target="$$target-am"; \
316 else \
317 local_target="$$target"; \
318 fi; \
319 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
320 || eval $$failcom; \
321 done && test -z "$$fail"
322 tags-recursive:
323 list='$(SUBDIRS)'; for subdir in $$list; do \
324 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
325 done
326 ctags-recursive:
327 list='$(SUBDIRS)'; for subdir in $$list; do \
328 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
329 done
330
331 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
332 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
333 unique=`for i in $$list; do \
334 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
335 done | \
336 $(AWK) ' { files[$$0] = 1; } \
337 END { for (i in files) print i; }'`; \
338 mkid -fID $$unique
339 tags: TAGS
340
341 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
342 $(TAGS_FILES) $(LISP)
343 tags=; \
344 here=`pwd`; \
345 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
346 include_option=--etags-include; \
347 empty_fix=.; \
348 else \
349 include_option=--include; \
350 empty_fix=; \
351 fi; \
352 list='$(SUBDIRS)'; for subdir in $$list; do \
353 if test "$$subdir" = .; then :; else \
354 test ! -f $$subdir/TAGS || \
355 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
356 fi; \
357 done; \
358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
359 unique=`for i in $$list; do \
360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
361 done | \
362 $(AWK) ' { files[$$0] = 1; } \
363 END { for (i in files) print i; }'`; \
364 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
365 test -n "$$unique" || unique=$$empty_fix; \
366 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
367 $$tags $$unique; \
368 fi
369 ctags: CTAGS
370 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
371 $(TAGS_FILES) $(LISP)
372 tags=; \
373 here=`pwd`; \
374 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
375 unique=`for i in $$list; do \
376 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
377 done | \
378 $(AWK) ' { files[$$0] = 1; } \
379 END { for (i in files) print i; }'`; \
380 test -z "$(CTAGS_ARGS)$$tags$$unique" \
381 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
382 $$tags $$unique
383
384 GTAGS:
385 here=`$(am__cd) $(top_builddir) && pwd` \
386 && cd $(top_srcdir) \
387 && gtags -i $(GTAGS_ARGS) $$here
388
389 distclean-tags:
390 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
391
392 distdir: $(DISTFILES)
393 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
394 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
395 list='$(DISTFILES)'; for file in $$list; do \
396 case $$file in \
397 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
398 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
399 esac; \
400 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
401 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
402 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
403 dir="/$$dir"; \
404 $(mkdir_p) "$(distdir)$$dir"; \
405 else \
406 dir=''; \
407 fi; \
408 if test -d $$d/$$file; then \
409 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
410 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
411 fi; \
412 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
413 else \
414 test -f $(distdir)/$$file \
415 || cp -p $$d/$$file $(distdir)/$$file \
416 || exit 1; \
417 fi; \
418 done
419 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
420 if test "$$subdir" = .; then :; else \
421 test -d "$(distdir)/$$subdir" \
422 || $(mkdir_p) "$(distdir)/$$subdir" \
423 || exit 1; \
424 distdir=`$(am__cd) $(distdir) && pwd`; \
425 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
426 (cd $$subdir && \
427 $(MAKE) $(AM_MAKEFLAGS) \
428 top_distdir="$$top_distdir" \
429 distdir="$$distdir/$$subdir" \
430 distdir) \
431 || exit 1; \
432 fi; \
433 done
434 check-am: all-am
435 check: check-recursive
436 all-am: Makefile $(DATA)
437 installdirs: installdirs-recursive
438 installdirs-am:
439 for dir in "$(DESTDIR)$(gamedatadir)"; do \
440 test -z "$$dir" || $(mkdir_p) "$$dir"; \
441 done
442 install: install-recursive
443 install-exec: install-exec-recursive
444 install-data: install-data-recursive
445 uninstall: uninstall-recursive
446
447 install-am: all-am
448 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
449
450 installcheck: installcheck-recursive
451 install-strip:
452 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
453 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
454 `test -z '$(STRIP)' || \
455 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
456 mostlyclean-generic:
457
458 clean-generic:
459
460 distclean-generic:
461 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
462
463 maintainer-clean-generic:
464 @echo "This command is intended for maintainers to use"
465 @echo "it deletes files that may require special tools to rebuild."
466 clean: clean-recursive
467
468 clean-am: clean-generic clean-libtool mostlyclean-am
469
470 distclean: distclean-recursive
471 -rm -f Makefile
472 distclean-am: clean-am distclean-generic distclean-libtool \
473 distclean-tags
474
475 dvi: dvi-recursive
476
477 dvi-am:
478
479 html: html-recursive
480
481 info: info-recursive
482
483 info-am:
484
485 install-data-am: install-nobase_dist_gamedataDATA
486
487 install-exec-am:
488
489 install-info: install-info-recursive
490
491 install-man:
492
493 installcheck-am:
494
495 maintainer-clean: maintainer-clean-recursive
496 -rm -f Makefile
497 maintainer-clean-am: distclean-am maintainer-clean-generic
498
499 mostlyclean: mostlyclean-recursive
500
501 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
502
503 pdf: pdf-recursive
504
505 pdf-am:
506
507 ps: ps-recursive
508
509 ps-am:
510
511 uninstall-am: uninstall-info-am uninstall-nobase_dist_gamedataDATA
512
513 uninstall-info: uninstall-info-recursive
514
515 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
516 clean clean-generic clean-libtool clean-recursive ctags \
517 ctags-recursive distclean distclean-generic distclean-libtool \
518 distclean-recursive distclean-tags distdir dvi dvi-am html \
519 html-am info info-am install install-am install-data \
520 install-data-am install-exec install-exec-am install-info \
521 install-info-am install-man install-nobase_dist_gamedataDATA \
522 install-strip installcheck installcheck-am installdirs \
523 installdirs-am maintainer-clean maintainer-clean-generic \
524 maintainer-clean-recursive mostlyclean mostlyclean-generic \
525 mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
526 tags tags-recursive uninstall uninstall-am uninstall-info-am \
527 uninstall-nobase_dist_gamedataDATA
528
529 # Tell versions [3.59,3.63) of GNU make to not export all variables.
530 # Otherwise a system limit (for SysV at least) may be exceeded.
531 .NOEXPORT:
data/icon16x16.ico less more
Binary diff not shown
+0
-113
data/icon16x16.xpm less more
0 /* XPM */
1 static char * icon16x16_xpm[] = {
2 "16 16 94 2",
3 " c None",
4 ". c #49627E",
5 "+ c #54313F",
6 "@ c #58643F",
7 "# c #92C4FB",
8 "$ c #A8627E",
9 "% c #AFC87E",
10 "& c #544A43",
11 "* c #A89586",
12 "= c #834A43",
13 "- c #D60000",
14 "; c #CA0000",
15 "> c #D9D900",
16 ", c #E6E600",
17 "' c #617A46",
18 ") c #5C8E8B",
19 "! c #2E4746",
20 "~ c #D77414",
21 "{ c #307023",
22 "] c #CA6D12",
23 "^ c #2A641F",
24 "/ c #383150",
25 "( c #70629F",
26 "_ c #5C004E",
27 ": c #040773",
28 "< c #4A65B0",
29 "[ c #253258",
30 "} c #323232",
31 "| c #686868",
32 "1 c #6F6F70",
33 "2 c #89919A",
34 "3 c #6C4966",
35 "4 c #95AFCC",
36 "5 c #95C3F6",
37 "6 c #616161",
38 "7 c #ADADAD",
39 "8 c #848484",
40 "9 c #808080",
41 "0 c #656565",
42 "a c #989898",
43 "b c #BBBBBB",
44 "c c #9FC4EC",
45 "d c #92B3D8",
46 "e c #849CB6",
47 "f c #94A2B2",
48 "g c #6E7780",
49 "h c #93AFCE",
50 "i c #0A0D82",
51 "j c #575757",
52 "k c #D2D2D2",
53 "l c #FFFFFF",
54 "m c #F6F6F6",
55 "n c #C4C4C4",
56 "o c #999999",
57 "p c #C0C0C0",
58 "q c #7A95BC",
59 "r c #E4E4E4",
60 "s c #717171",
61 "t c #959595",
62 "u c #818181",
63 "v c #81828A",
64 "w c #5A68A3",
65 "x c #B6B6B6",
66 "y c #DFDFDF",
67 "z c #B2B2B2",
68 "A c #96B0D2",
69 "B c #FEFEFE",
70 "C c #979797",
71 "D c #8E8E8E",
72 "E c #90ABC8",
73 "F c #E3E3E3",
74 "G c #7E7E7E",
75 "H c #677486",
76 "I c #E8E8E8",
77 "J c #DBDBDB",
78 "K c #DCDCDC",
79 "L c #9A9A9A",
80 "M c #808E9C",
81 "N c #565655",
82 "O c #B8B8B8",
83 "P c #C2C2C2",
84 "Q c #909090",
85 "R c #414140",
86 "S c #DEDEDE",
87 "T c #A4A4A4",
88 "U c #A2A2A2",
89 "V c #585857",
90 "W c #010100",
91 "X c #70706F",
92 "Y c #7A7A7A",
93 "Z c #A5A5A5",
94 "` c #363635",
95 " . c #6F6F6F",
96 ".. c #60605F",
97 " . + . + + . @ @ . @ . ",
98 " . # $ # $ $ # % % # % # . ",
99 " & * = - ; ; . > > , ' ) ! ",
100 " . # ~ # # # # # # # { # . ",
101 " & * ] # # # # # # # ^ ) ! ",
102 " & * ] # # # # # # # ^ ) ! ",
103 " . # . # # # # # # # . # . ",
104 " / ( _ # # # # # # # : < [ ",
105 " } | 1 2 3 4 5 # # # # # : < [ ",
106 "6 7 8 9 0 a b c d e f g h i # . ",
107 "j k l m n o p q r o s t u v w [ ",
108 "9 l x l y p z A l B n C p D E . ",
109 "9 l F l y p G H I J K L a p M ",
110 "N l l O P Q R N l l S p T U V ",
111 " W W N X N l K Y p Z ` ",
112 " W ...W W "};
data/icon32x32.ico less more
Binary diff not shown
+0
-169
data/icon32x32.xpm less more
0 /* XPM */
1 static char * icon_xpm[] = {
2 "32 32 134 2",
3 " c None",
4 ". c #000000",
5 "+ c #92C4FB",
6 "@ c #BD0000",
7 "# c #CCCC00",
8 "$ c #F00000",
9 "% c #FFFF00",
10 "& c #BD6611",
11 "* c #25571B",
12 "= c #F18216",
13 "- c #3B892B",
14 "; c #4F0043",
15 "> c #030666",
16 ", c #010100",
17 "' c #82006E",
18 ") c #060A9A",
19 "! c #959595",
20 "~ c #797979",
21 "{ c #7A7C7E",
22 "] c #85909C",
23 "^ c #93A7BE",
24 "/ c #893C7D",
25 "( c #5E2054",
26 "_ c #92C1F6",
27 ": c #757575",
28 "< c #616161",
29 "[ c #676767",
30 "} c #787878",
31 "| c #858585",
32 "1 c #434343",
33 "2 c #949596",
34 "3 c #9BA2AB",
35 "4 c #9DBFE5",
36 "5 c #A2A2A2",
37 "6 c #7E7E7E",
38 "7 c #313131",
39 "8 c #868686",
40 "9 c #7C7C7C",
41 "0 c #343434",
42 "a c #ACACAC",
43 "b c #BFBFBF",
44 "c c #A6C2E0",
45 "d c #92C3FA",
46 "e c #92BCEB",
47 "f c #93B3D8",
48 "g c #93AAC4",
49 "h c #758392",
50 "i c #8A9FB6",
51 "j c #92BDED",
52 "k c #E1E1E1",
53 "l c #CBCBCB",
54 "m c #D5D5D5",
55 "n c #B0B0B0",
56 "o c #A7A7A7",
57 "p c #969696",
58 "q c #5A5A5A",
59 "r c #3B3B3B",
60 "s c #8F8F8F",
61 "t c #BBBBBB",
62 "u c #C0C0C0",
63 "v c #9FC7F4",
64 "w c #95ABC3",
65 "x c #8E9AA7",
66 "y c #595C5F",
67 "z c #939393",
68 "A c #444444",
69 "B c #949597",
70 "C c #93A6BB",
71 "D c #191B6D",
72 "E c #646464",
73 "F c #555555",
74 "G c #FFFFFF",
75 "H c #F9F9F9",
76 "I c #E2E2E2",
77 "J c #B3B3B3",
78 "K c #B4B4B4",
79 "L c #6A83A7",
80 "M c #879FC4",
81 "N c #EDEDED",
82 "O c #585858",
83 "P c #929292",
84 "Q c #4F4F4F",
85 "R c #636485",
86 "S c #1D206E",
87 "T c #F7F7F7",
88 "U c #F6F6F6",
89 "V c #FEFEFE",
90 "W c #2F2F2F",
91 "X c #8EAFE0",
92 "Y c #D9D9D9",
93 "Z c #A0A0A0",
94 "` c #717171",
95 " . c #292929",
96 ".. c #8A8A8A",
97 "+. c #9A9A9A",
98 "@. c #B5B8BC",
99 "#. c #BEBEBE",
100 "$. c #C3DEFC",
101 "%. c #C3C3C3",
102 "&. c #ABABAB",
103 "*. c #B5B5B5",
104 "=. c #1B1B1B",
105 "-. c #6D7074",
106 ";. c #4A4A4A",
107 ">. c #BDBDBD",
108 ",. c #FCFCFC",
109 "'. c #B9B9B9",
110 "). c #AEAEAE",
111 "!. c #9D9D9D",
112 "~. c #B1B5B8",
113 "{. c #B7B7B7",
114 "]. c #D6D6D6",
115 "^. c #6680A6",
116 "/. c #D2D2D2",
117 "(. c #B6B6B6",
118 "_. c #414141",
119 ":. c #A8A8A8",
120 "<. c #BDC0C3",
121 "[. c #5B5B5B",
122 "}. c #010101",
123 "|. c #737373",
124 "1. c #A3A3A3",
125 "2. c #3E3E3E",
126 "3. c #9E9E9E",
127 "4. c #DBDBDB",
128 "5. c #636363",
129 "6. c #454545",
130 "7. c #484848",
131 "8. c #BCBCBC",
132 "9. c #535353",
133 "0. c #9F9F9F",
134 "a. c #080808",
135 "b. c #999999",
136 "c. c #FBFBFB",
137 " . . . . . . . . . . . . . . . . . . . . . . ",
138 " . + + + @ + + @ + + @ + + # + + # + + # + + + . ",
139 " . + + + + @ + + @ + + @ + + # + + # + + # + + + + . ",
140 " . + + + + @ + + @ + + @ + + # + + # + + # + + + + . ",
141 " . + + + + @ $ $ @ $ $ @ + + # % % # % % # + + + + . ",
142 " . & & & & . @ @ @ @ @ @ . . # # # # # # . * * * * . ",
143 " . + + + = & + + + + + + + + + + + + + + * - + + + . ",
144 " . + + + = & + + + + + + + + + + + + + + * - + + + . ",
145 " . & & & & & + + + + + + + + + + + + + + * * * * * . ",
146 " . + + + = & + + + + + + + + + + + + + + * - + + + . ",
147 " . + + + = & + + + + + + + + + + + + + + * - + + + . ",
148 " . & & & & & + + + + + + + + + + + + + + * * * * * . ",
149 " . + + + + . + + + + + + + + + + + + + + . + + + + . ",
150 " . + + + + . + + + + + + + + + + + + + + . + + + + . ",
151 " . ; ; ; ; ; + + + + + + + + + + + + + + > > > > > . ",
152 " , . + + + ' ; + + + + + + + + + + + + + + > ) + + + . ",
153 " , , ! ~ { ] ^ / ( _ + + + + + + + + + + + + + > ) + + + . ",
154 " , , ! ! : < [ } ! | 1 2 3 4 + + + + + + + + + + + > > > > > . ",
155 ", 5 ! 6 7 8 9 ! ! 0 6 8 a b c + + + d e f g h i j + > ) + + + . ",
156 ", k l m n o p q r s 5 t u u c v w x y z ! ! A : B C D ) + + + . ",
157 ", E F G G G H I l J K u u u L M N o O P ! ! ! ! ! Q < R S > > . ",
158 ", T U G G G G G V ! W u u u L X G G Y Z ` .! ! p ..+.o @.+ + . ",
159 ", G G G G G G G V u #.u u u L $.G G G H %.+.&.*.#.u u =.-.+ + . ",
160 ", G G G ;.s G G V u u u >...L $.G G G G ,.'.Q ).u u u !.~.+ + . ",
161 ", G G G {.].G G V u u u ).0 ^.$.G /.(.G ,.(._.:.u u u u <.+ . ",
162 ", G G G G G G G V u u u t [.}.|.G /.'.G ,.u u u 1.2.#.u J . ",
163 ", G G G G G G 3.4.u u u u , , G G G G G ,.u u u a 5.b u u , ",
164 " , G G G G G 6.).u u , , , G G G G ,.u u u u u u 7.!., ",
165 " , , , , , G V #., , G G G ,.u ..8.u u u 9.0., ",
166 " , , , , G G ,.{.a.b.u u u u , ",
167 " , , c.u >.u , , , , ",
168 " , , , , "};
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
Binary diff not shown
00 <?xml version="1.0"?>
11 <gtkatlantic>
2
3
4 <pngfile_logo filename="logo.png">
5 <buffer id="full" />
6 </pngfile_logo>
72
83
94 <pngfile_board filename="board.png">
data/logo.png less more
Binary diff not shown
0 themesfiles = \
1 generic_gradient/pattern.png \
2 generic_gradient/theme.conf \
3 generic_gradient/stars_m.png \
4 generic_gradient/tokens.png \
5 generic_gradient/cards.png \
6 generic_gradient/stars.png \
7 generic_gradient/preview.png \
8 generic_gradient/houses.png \
9 generic_gradient/estates.png
10
11 themesdir = $(pkgdatadir)/themes
12 nobase_dist_themes_DATA = $(themesfiles)
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = ../..
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
25 install_sh_DATA = $(install_sh) -c -m 644
26 install_sh_PROGRAM = $(install_sh) -c
27 install_sh_SCRIPT = $(install_sh) -c
28 INSTALL_HEADER = $(INSTALL_DATA)
29 transform = $(program_transform_name)
30 NORMAL_INSTALL = :
31 PRE_INSTALL = :
32 POST_INSTALL = :
33 NORMAL_UNINSTALL = :
34 PRE_UNINSTALL = :
35 POST_UNINSTALL = :
36 build_triplet = @build@
37 host_triplet = @host@
38 subdir = data/themes
39 DIST_COMMON = $(nobase_dist_themes_DATA) $(srcdir)/Makefile.am \
40 $(srcdir)/Makefile.in
41 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
42 am__aclocal_m4_deps = $(top_srcdir)/configure.in
43 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45 mkinstalldirs = $(install_sh) -d
46 CONFIG_HEADER = $(top_builddir)/config.h
47 CONFIG_CLEAN_FILES =
48 SOURCES =
49 DIST_SOURCES =
50 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
51 am__vpath_adj = case $$p in \
52 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
53 *) f=$$p;; \
54 esac;
55 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
56 am__installdirs = "$(DESTDIR)$(themesdir)"
57 nobase_dist_themesDATA_INSTALL = $(install_sh_DATA)
58 DATA = $(nobase_dist_themes_DATA)
59 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
60 ACLOCAL = @ACLOCAL@
61 AMDEP_FALSE = @AMDEP_FALSE@
62 AMDEP_TRUE = @AMDEP_TRUE@
63 AMTAR = @AMTAR@
64 AR = @AR@
65 AUTOCONF = @AUTOCONF@
66 AUTOHEADER = @AUTOHEADER@
67 AUTOMAKE = @AUTOMAKE@
68 AWK = @AWK@
69 CC = @CC@
70 CCDEPMODE = @CCDEPMODE@
71 CFLAGS = @CFLAGS@
72 CPP = @CPP@
73 CPPFLAGS = @CPPFLAGS@
74 CYGPATH_W = @CYGPATH_W@
75 DEFS = @DEFS@
76 DEPDIR = @DEPDIR@
77 DLLTOOL = @DLLTOOL@
78 DSYMUTIL = @DSYMUTIL@
79 DUMPBIN = @DUMPBIN@
80 ECHO_C = @ECHO_C@
81 ECHO_N = @ECHO_N@
82 ECHO_T = @ECHO_T@
83 EGREP = @EGREP@
84 EXEEXT = @EXEEXT@
85 FGREP = @FGREP@
86 GREP = @GREP@
87 GTK_CFLAGS = @GTK_CFLAGS@
88 GTK_LIBS = @GTK_LIBS@
89 INSTALL_DATA = @INSTALL_DATA@
90 INSTALL_PROGRAM = @INSTALL_PROGRAM@
91 INSTALL_SCRIPT = @INSTALL_SCRIPT@
92 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
93 LD = @LD@
94 LDFLAGS = @LDFLAGS@
95 LIBOBJS = @LIBOBJS@
96 LIBS = @LIBS@
97 LIBTOOL = @LIBTOOL@
98 LIPO = @LIPO@
99 LN_S = @LN_S@
100 LTLIBOBJS = @LTLIBOBJS@
101 MAKEINFO = @MAKEINFO@
102 MANIFEST_TOOL = @MANIFEST_TOOL@
103 NM = @NM@
104 NMEDIT = @NMEDIT@
105 OBJDUMP = @OBJDUMP@
106 OBJEXT = @OBJEXT@
107 OTOOL = @OTOOL@
108 OTOOL64 = @OTOOL64@
109 PACKAGE = @PACKAGE@
110 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
111 PACKAGE_NAME = @PACKAGE_NAME@
112 PACKAGE_STRING = @PACKAGE_STRING@
113 PACKAGE_TARNAME = @PACKAGE_TARNAME@
114 PACKAGE_URL = @PACKAGE_URL@
115 PACKAGE_VERSION = @PACKAGE_VERSION@
116 PATH_SEPARATOR = @PATH_SEPARATOR@
117 PKG_CONFIG = @PKG_CONFIG@
118 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
119 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
120 RANLIB = @RANLIB@
121 SED = @SED@
122 SET_MAKE = @SET_MAKE@
123 SHELL = @SHELL@
124 STRIP = @STRIP@
125 VERSION = @VERSION@
126 ac_ct_AR = @ac_ct_AR@
127 ac_ct_CC = @ac_ct_CC@
128 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
129 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
130 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
131 am__include = @am__include@
132 am__leading_dot = @am__leading_dot@
133 am__quote = @am__quote@
134 am__tar = @am__tar@
135 am__untar = @am__untar@
136 bindir = @bindir@
137 build = @build@
138 build_alias = @build_alias@
139 build_cpu = @build_cpu@
140 build_os = @build_os@
141 build_vendor = @build_vendor@
142 datadir = @datadir@
143 datarootdir = @datarootdir@
144 docdir = @docdir@
145 dvidir = @dvidir@
146 exec_prefix = @exec_prefix@
147 host = @host@
148 host_alias = @host_alias@
149 host_cpu = @host_cpu@
150 host_os = @host_os@
151 host_vendor = @host_vendor@
152 htmldir = @htmldir@
153 includedir = @includedir@
154 infodir = @infodir@
155 install_sh = @install_sh@
156 libdir = @libdir@
157 libexecdir = @libexecdir@
158 localedir = @localedir@
159 localstatedir = @localstatedir@
160 mandir = @mandir@
161 mkdir_p = @mkdir_p@
162 oldincludedir = @oldincludedir@
163 pdfdir = @pdfdir@
164 prefix = @prefix@
165 program_transform_name = @program_transform_name@
166 psdir = @psdir@
167 sbindir = @sbindir@
168 sharedstatedir = @sharedstatedir@
169 sysconfdir = @sysconfdir@
170 target_alias = @target_alias@
171 themesfiles = \
172 generic_gradient/pattern.png \
173 generic_gradient/theme.conf \
174 generic_gradient/stars_m.png \
175 generic_gradient/tokens.png \
176 generic_gradient/cards.png \
177 generic_gradient/stars.png \
178 generic_gradient/preview.png \
179 generic_gradient/houses.png \
180 generic_gradient/estates.png
181
182 themesdir = $(pkgdatadir)/themes
183 nobase_dist_themes_DATA = $(themesfiles)
184 all: all-am
185
186 .SUFFIXES:
187 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
188 @for dep in $?; do \
189 case '$(am__configure_deps)' in \
190 *$$dep*) \
191 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
192 && exit 0; \
193 exit 1;; \
194 esac; \
195 done; \
196 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu data/themes/Makefile'; \
197 cd $(top_srcdir) && \
198 $(AUTOMAKE) --gnu data/themes/Makefile
199 .PRECIOUS: Makefile
200 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
201 @case '$?' in \
202 *config.status*) \
203 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
204 *) \
205 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
206 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
207 esac;
208
209 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
210 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
211
212 $(top_srcdir)/configure: $(am__configure_deps)
213 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
214 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
215 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
216
217 mostlyclean-libtool:
218 -rm -f *.lo
219
220 clean-libtool:
221 -rm -rf .libs _libs
222
223 distclean-libtool:
224 -rm -f libtool
225 uninstall-info-am:
226 install-nobase_dist_themesDATA: $(nobase_dist_themes_DATA)
227 @$(NORMAL_INSTALL)
228 test -z "$(themesdir)" || $(mkdir_p) "$(DESTDIR)$(themesdir)"
229 @$(am__vpath_adj_setup) \
230 list='$(nobase_dist_themes_DATA)'; for p in $$list; do \
231 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
232 $(am__vpath_adj) \
233 echo " $(nobase_dist_themesDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(themesdir)/$$f'"; \
234 $(nobase_dist_themesDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(themesdir)/$$f"; \
235 done
236
237 uninstall-nobase_dist_themesDATA:
238 @$(NORMAL_UNINSTALL)
239 @$(am__vpath_adj_setup) \
240 list='$(nobase_dist_themes_DATA)'; for p in $$list; do \
241 $(am__vpath_adj) \
242 echo " rm -f '$(DESTDIR)$(themesdir)/$$f'"; \
243 rm -f "$(DESTDIR)$(themesdir)/$$f"; \
244 done
245 tags: TAGS
246 TAGS:
247
248 ctags: CTAGS
249 CTAGS:
250
251
252 distdir: $(DISTFILES)
253 $(mkdir_p) $(distdir)/generic_gradient
254 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
255 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
256 list='$(DISTFILES)'; for file in $$list; do \
257 case $$file in \
258 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
259 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
260 esac; \
261 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
262 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
263 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
264 dir="/$$dir"; \
265 $(mkdir_p) "$(distdir)$$dir"; \
266 else \
267 dir=''; \
268 fi; \
269 if test -d $$d/$$file; then \
270 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
271 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
272 fi; \
273 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
274 else \
275 test -f $(distdir)/$$file \
276 || cp -p $$d/$$file $(distdir)/$$file \
277 || exit 1; \
278 fi; \
279 done
280 check-am: all-am
281 check: check-am
282 all-am: Makefile $(DATA)
283 installdirs:
284 for dir in "$(DESTDIR)$(themesdir)"; do \
285 test -z "$$dir" || $(mkdir_p) "$$dir"; \
286 done
287 install: install-am
288 install-exec: install-exec-am
289 install-data: install-data-am
290 uninstall: uninstall-am
291
292 install-am: all-am
293 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
294
295 installcheck: installcheck-am
296 install-strip:
297 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
298 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
299 `test -z '$(STRIP)' || \
300 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
301 mostlyclean-generic:
302
303 clean-generic:
304
305 distclean-generic:
306 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
307
308 maintainer-clean-generic:
309 @echo "This command is intended for maintainers to use"
310 @echo "it deletes files that may require special tools to rebuild."
311 clean: clean-am
312
313 clean-am: clean-generic clean-libtool mostlyclean-am
314
315 distclean: distclean-am
316 -rm -f Makefile
317 distclean-am: clean-am distclean-generic distclean-libtool
318
319 dvi: dvi-am
320
321 dvi-am:
322
323 html: html-am
324
325 info: info-am
326
327 info-am:
328
329 install-data-am: install-nobase_dist_themesDATA
330
331 install-exec-am:
332
333 install-info: install-info-am
334
335 install-man:
336
337 installcheck-am:
338
339 maintainer-clean: maintainer-clean-am
340 -rm -f Makefile
341 maintainer-clean-am: distclean-am maintainer-clean-generic
342
343 mostlyclean: mostlyclean-am
344
345 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
346
347 pdf: pdf-am
348
349 pdf-am:
350
351 ps: ps-am
352
353 ps-am:
354
355 uninstall-am: uninstall-info-am uninstall-nobase_dist_themesDATA
356
357 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
358 distclean distclean-generic distclean-libtool distdir dvi \
359 dvi-am html html-am info info-am install install-am \
360 install-data install-data-am install-exec install-exec-am \
361 install-info install-info-am install-man \
362 install-nobase_dist_themesDATA install-strip installcheck \
363 installcheck-am installdirs maintainer-clean \
364 maintainer-clean-generic mostlyclean mostlyclean-generic \
365 mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
366 uninstall-info-am uninstall-nobase_dist_themesDATA
367
368 # Tell versions [3.59,3.63) of GNU make to not export all variables.
369 # Otherwise a system limit (for SysV at least) may be exceeded.
370 .NOEXPORT:
0 [general]
1 theme name="Generic Gradient" type="generic" version="0.1.0"
2 author name="Sylvain Rochet" email="gradator@gradator.net"
3 misc preview="preview.png"
4
5 [cards]
6 unmortgaged file="cards.png" x="0" y="0" width="13" height="20"
7 mortgaged file="cards.png" x="13" y="0" width="13" height="20"
8 area border="#0000ff" tab="#00ff00" separator="#ff0000"
9 color border="#000000"
10
11 [token_group]
12 general name="tokens"
13 player0 file="tokens.png" x="0" y="0" width="20" height="20"
14 player1 file="tokens.png" x="20" y="0" width="20" height="20"
15 player2 file="tokens.png" x="40" y="0" width="20" height="20"
16 player3 file="tokens.png" x="60" y="0" width="20" height="20"
17 player4 file="tokens.png" x="80" y="0" width="20" height="20"
18 player5 file="tokens.png" x="100" y="0" width="20" height="20"
19 player6 file="tokens.png" x="120" y="0" width="20" height="20"
20 player7 file="tokens.png" x="140" y="0" width="20" height="20"
21 player8 file="tokens.png" x="160" y="0" width="20" height="20"
22
23 [house_group]
24 general name="horizontal"
25 house0 file="houses.png" x="0" y="0" width="36" height="15"
26 house1 file="houses.png" x="0" y="15" width="36" height="15"
27 house2 file="houses.png" x="0" y="30" width="36" height="15"
28 house3 file="houses.png" x="0" y="45" width="36" height="15"
29 house4 file="houses.png" x="0" y="60" width="36" height="15"
30 house5 file="houses.png" x="0" y="75" width="36" height="15"
31
32 [house_group]
33 general name="vertical"
34 house0 file="houses.png" x="36" y="0" width="15" height="36"
35 house1 file="houses.png" x="51" y="0" width="15" height="36"
36 house2 file="houses.png" x="66" y="0" width="15" height="36"
37 house3 file="houses.png" x="81" y="0" width="15" height="36"
38 house4 file="houses.png" x="96" y="0" width="15" height="36"
39 house5 file="houses.png" x="111" y="0" width="15" height="36"
40
41 [star_group]
42 general name="stars"
43 player0 file="stars.png" x="0" y="0" width="19" height="20"
44 player1 file="stars.png" x="20" y="0" width="19" height="20"
45 player2 file="stars.png" x="40" y="0" width="19" height="20"
46 player3 file="stars.png" x="60" y="0" width="19" height="20"
47 player4 file="stars.png" x="80" y="0" width="19" height="20"
48 player5 file="stars.png" x="100" y="0" width="19" height="20"
49 player6 file="stars.png" x="120" y="0" width="19" height="20"
50 player7 file="stars.png" x="140" y="0" width="19" height="20"
51 player8 file="stars.png" x="160" y="0" width="19" height="20"
52
53 [star_group]
54 general name="stars_m"
55 player0 file="stars_m.png" x="0" y="0" width="19" height="20"
56 player1 file="stars_m.png" x="20" y="0" width="19" height="20"
57 player2 file="stars_m.png" x="40" y="0" width="19" height="20"
58 player3 file="stars_m.png" x="60" y="0" width="19" height="20"
59 player4 file="stars_m.png" x="80" y="0" width="19" height="20"
60 player5 file="stars_m.png" x="100" y="0" width="19" height="20"
61 player6 file="stars_m.png" x="120" y="0" width="19" height="20"
62 player7 file="stars_m.png" x="140" y="0" width="19" height="20"
63 player8 file="stars_m.png" x="160" y="0" width="19" height="20"
64
65 [board]
66 pattern file="pattern.png" x="0" y="0" width="108" height="108"
67
68 [estate]
69 general id="0"
70 data file="estates.png" x="72" y="0" width="59" height="59"
71 area border="#0000ff" tab="#00ff00" separator="#ff0000"
72 color border="#000000"
73 token_normal group="tokens" x1="4" y1="37" x2="37" y2="37"
74 token_jail group="tokens" x1="4" y1="4" x2="21" y2="21"
75 house group="horizontal" offset_x="0" offset_y="0"
76 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="37" offset_y="7"
77
78 [estate]
79 general id="1"
80 data file="estates.png" x="0" y="0" width="35" height="59"
81 area border="#0000ff" tab="#00ff00" separator="#ff0000"
82 color border="#000000"
83 token_normal group="tokens" x1="3" y1="37" x2="13" y2="37"
84 token_jail group="tokens" x1="3" y1="28" x2="13" y2="28"
85 house group="horizontal" offset_x="0" offset_y="0"
86 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="15"
87
88 [estate]
89 general id="2"
90 data file="estates.png" x="0" y="0" width="36" height="59"
91 area border="#0000ff" tab="#00ff00" separator="#ff0000"
92 color border="#000000"
93 token_normal group="tokens" x1="3" y1="37" x2="13" y2="37"
94 token_jail group="tokens" x1="3" y1="28" x2="13" y2="28"
95 house group="horizontal" offset_x="0" offset_y="0"
96 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="15"
97
98 [estate]
99 general id="3"
100 data file="estates.png" x="0" y="0" width="36" height="59"
101 area border="#0000ff" tab="#00ff00" separator="#ff0000"
102 color border="#000000"
103 token_normal group="tokens" x1="3" y1="37" x2="13" y2="37"
104 token_jail group="tokens" x1="3" y1="28" x2="13" y2="28"
105 house group="horizontal" offset_x="0" offset_y="0"
106 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="15"
107
108 [estate]
109 general id="4"
110 data file="estates.png" x="0" y="0" width="36" height="59"
111 area border="#0000ff" tab="#00ff00" separator="#ff0000"
112 color border="#000000"
113 token_normal group="tokens" x1="3" y1="37" x2="13" y2="37"
114 token_jail group="tokens" x1="3" y1="28" x2="13" y2="28"
115 house group="horizontal" offset_x="0" offset_y="0"
116 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="15"
117
118 [estate]
119 general id="5"
120 data file="estates.png" x="0" y="0" width="36" height="59"
121 area border="#0000ff" tab="#00ff00" separator="#ff0000"
122 color border="#000000"
123 token_normal group="tokens" x1="3" y1="37" x2="13" y2="37"
124 token_jail group="tokens" x1="3" y1="28" x2="13" y2="28"
125 house group="horizontal" offset_x="0" offset_y="0"
126 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="15"
127
128 [estate]
129 general id="6"
130 data file="estates.png" x="0" y="0" width="36" height="59"
131 area border="#0000ff" tab="#00ff00" separator="#ff0000"
132 color border="#000000"
133 token_normal group="tokens" x1="3" y1="37" x2="13" y2="37"
134 token_jail group="tokens" x1="3" y1="28" x2="13" y2="28"
135 house group="horizontal" offset_x="0" offset_y="0"
136 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="15"
137
138 [estate]
139 general id="7"
140 data file="estates.png" x="0" y="0" width="36" height="59"
141 area border="#0000ff" tab="#00ff00" separator="#ff0000"
142 color border="#000000"
143 token_normal group="tokens" x1="3" y1="37" x2="13" y2="37"
144 token_jail group="tokens" x1="3" y1="28" x2="13" y2="28"
145 house group="horizontal" offset_x="0" offset_y="0"
146 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="15"
147
148 [estate]
149 general id="8"
150 data file="estates.png" x="0" y="0" width="36" height="59"
151 area border="#0000ff" tab="#00ff00" separator="#ff0000"
152 color border="#000000"
153 token_normal group="tokens" x1="3" y1="37" x2="13" y2="37"
154 token_jail group="tokens" x1="3" y1="28" x2="13" y2="28"
155 house group="horizontal" offset_x="0" offset_y="0"
156 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="15"
157
158 [estate]
159 general id="9"
160 data file="estates.png" x="1" y="0" width="35" height="59"
161 area border="#0000ff" tab="#00ff00" separator="#ff0000"
162 color border="#000000"
163 token_normal group="tokens" x1="2" y1="37" x2="12" y2="37"
164 token_jail group="tokens" x1="2" y1="28" x2="12" y2="28"
165 house group="horizontal" offset_x="-1" offset_y="0"
166 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="7" offset_y="15"
167
168 [estate]
169 general id="10"
170 data file="estates.png" x="131" y="0" width="59" height="59"
171 area border="#0000ff" tab="#00ff00" separator="#ff0000"
172 color border="#000000"
173 token_normal group="tokens" x1="2" y1="4" x2="2" y2="37"
174 token_jail group="tokens" x1="35" y1="4" x2="18" y2="21"
175 house group="vertical" offset_x="0" offset_y="0"
176 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="32" offset_y="7"
177
178 [estate]
179 general id="11"
180 data file="estates.png" x="0" y="59" width="59" height="35"
181 area border="#0000ff" tab="#00ff00" separator="#ff0000"
182 color border="#000000"
183 token_normal group="tokens" x1="2" y1="3" x2="2" y2="13"
184 token_jail group="tokens" x1="11" y1="3" x2="11" y2="13"
185 house group="vertical" offset_x="44" offset_y="0"
186 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="23" offset_y="8"
187
188 [estate]
189 general id="12"
190 data file="estates.png" x="0" y="59" width="59" height="36"
191 area border="#0000ff" tab="#00ff00" separator="#ff0000"
192 color border="#000000"
193 token_normal group="tokens" x1="2" y1="3" x2="2" y2="13"
194 token_jail group="tokens" x1="11" y1="3" x2="11" y2="13"
195 house group="vertical" offset_x="44" offset_y="0"
196 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="23" offset_y="8"
197
198 [estate]
199 general id="13"
200 data file="estates.png" x="0" y="59" width="59" height="36"
201 area border="#0000ff" tab="#00ff00" separator="#ff0000"
202 color border="#000000"
203 token_normal group="tokens" x1="2" y1="3" x2="2" y2="13"
204 token_jail group="tokens" x1="11" y1="3" x2="11" y2="13"
205 house group="vertical" offset_x="44" offset_y="0"
206 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="23" offset_y="8"
207
208 [estate]
209 general id="14"
210 data file="estates.png" x="0" y="59" width="59" height="36"
211 area border="#0000ff" tab="#00ff00" separator="#ff0000"
212 color border="#000000"
213 token_normal group="tokens" x1="2" y1="3" x2="2" y2="13"
214 token_jail group="tokens" x1="11" y1="3" x2="11" y2="13"
215 house group="vertical" offset_x="44" offset_y="0"
216 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="23" offset_y="8"
217
218 [estate]
219 general id="15"
220 data file="estates.png" x="0" y="59" width="59" height="36"
221 area border="#0000ff" tab="#00ff00" separator="#ff0000"
222 color border="#000000"
223 token_normal group="tokens" x1="2" y1="3" x2="2" y2="13"
224 token_jail group="tokens" x1="11" y1="3" x2="11" y2="13"
225 house group="vertical" offset_x="44" offset_y="0"
226 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="23" offset_y="8"
227
228 [estate]
229 general id="16"
230 data file="estates.png" x="0" y="59" width="59" height="36"
231 area border="#0000ff" tab="#00ff00" separator="#ff0000"
232 color border="#000000"
233 token_normal group="tokens" x1="2" y1="3" x2="2" y2="13"
234 token_jail group="tokens" x1="11" y1="3" x2="11" y2="13"
235 house group="vertical" offset_x="44" offset_y="0"
236 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="23" offset_y="8"
237
238 [estate]
239 general id="17"
240 data file="estates.png" x="0" y="59" width="59" height="36"
241 area border="#0000ff" tab="#00ff00" separator="#ff0000"
242 color border="#000000"
243 token_normal group="tokens" x1="2" y1="3" x2="2" y2="13"
244 token_jail group="tokens" x1="11" y1="3" x2="11" y2="13"
245 house group="vertical" offset_x="44" offset_y="0"
246 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="23" offset_y="8"
247
248 [estate]
249 general id="18"
250 data file="estates.png" x="0" y="59" width="59" height="36"
251 area border="#0000ff" tab="#00ff00" separator="#ff0000"
252 color border="#000000"
253 token_normal group="tokens" x1="2" y1="3" x2="2" y2="13"
254 token_jail group="tokens" x1="11" y1="3" x2="11" y2="13"
255 house group="vertical" offset_x="44" offset_y="0"
256 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="23" offset_y="8"
257
258 [estate]
259 general id="19"
260 data file="estates.png" x="0" y="60" width="59" height="35"
261 area border="#0000ff" tab="#00ff00" separator="#ff0000"
262 color border="#000000"
263 token_normal group="tokens" x1="2" y1="2" x2="2" y2="12"
264 token_jail group="tokens" x1="11" y1="2" x2="11" y2="12"
265 house group="vertical" offset_x="44" offset_y="-1"
266 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="23" offset_y="7"
267
268 [estate]
269 general id="20"
270 data file="estates.png" x="72" y="59" width="59" height="59"
271 area border="#0000ff" tab="#00ff00" separator="#ff0000"
272 color border="#000000"
273 token_normal group="tokens" x1="35" y1="2" x2="2" y2="2"
274 token_jail group="tokens" x1="35" y1="35" x2="18" y2="18"
275 house group="horizontal" offset_x="0" offset_y="0"
276 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="32" offset_y="33"
277
278 [estate]
279 general id="21"
280 data file="estates.png" x="37" y="0" width="35" height="59"
281 area border="#0000ff" tab="#00ff00" separator="#ff0000"
282 color border="#000000"
283 token_normal group="tokens" x1="12" y1="2" x2="2" y2="2"
284 token_jail group="tokens" x1="12" y1="11" x2="2" y2="11"
285 house group="horizontal" offset_x="-1" offset_y="44"
286 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="7" offset_y="24"
287
288 [estate]
289 general id="22"
290 data file="estates.png" x="36" y="0" width="36" height="59"
291 area border="#0000ff" tab="#00ff00" separator="#ff0000"
292 color border="#000000"
293 token_normal group="tokens" x1="13" y1="2" x2="3" y2="2"
294 token_jail group="tokens" x1="13" y1="11" x2="3" y2="11"
295 house group="horizontal" offset_x="0" offset_y="44"
296 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="24"
297
298 [estate]
299 general id="23"
300 data file="estates.png" x="36" y="0" width="36" height="59"
301 area border="#0000ff" tab="#00ff00" separator="#ff0000"
302 color border="#000000"
303 token_normal group="tokens" x1="13" y1="2" x2="3" y2="2"
304 token_jail group="tokens" x1="13" y1="11" x2="3" y2="11"
305 house group="horizontal" offset_x="0" offset_y="44"
306 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="24"
307
308 [estate]
309 general id="24"
310 data file="estates.png" x="36" y="0" width="36" height="59"
311 area border="#0000ff" tab="#00ff00" separator="#ff0000"
312 color border="#000000"
313 token_normal group="tokens" x1="13" y1="2" x2="3" y2="2"
314 token_jail group="tokens" x1="13" y1="11" x2="3" y2="11"
315 house group="horizontal" offset_x="0" offset_y="44"
316 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="24"
317
318 [estate]
319 general id="25"
320 data file="estates.png" x="36" y="0" width="36" height="59"
321 area border="#0000ff" tab="#00ff00" separator="#ff0000"
322 color border="#000000"
323 token_normal group="tokens" x1="13" y1="2" x2="3" y2="2"
324 token_jail group="tokens" x1="13" y1="11" x2="3" y2="11"
325 house group="horizontal" offset_x="0" offset_y="44"
326 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="24"
327
328 [estate]
329 general id="26"
330 data file="estates.png" x="36" y="0" width="36" height="59"
331 area border="#0000ff" tab="#00ff00" separator="#ff0000"
332 color border="#000000"
333 token_normal group="tokens" x1="13" y1="2" x2="3" y2="2"
334 token_jail group="tokens" x1="13" y1="11" x2="3" y2="11"
335 house group="horizontal" offset_x="0" offset_y="44"
336 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="24"
337
338 [estate]
339 general id="27"
340 data file="estates.png" x="36" y="0" width="36" height="59"
341 area border="#0000ff" tab="#00ff00" separator="#ff0000"
342 color border="#000000"
343 token_normal group="tokens" x1="13" y1="2" x2="3" y2="2"
344 token_jail group="tokens" x1="13" y1="11" x2="3" y2="11"
345 house group="horizontal" offset_x="0" offset_y="44"
346 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="24"
347
348 [estate]
349 general id="28"
350 data file="estates.png" x="36" y="0" width="36" height="59"
351 area border="#0000ff" tab="#00ff00" separator="#ff0000"
352 color border="#000000"
353 token_normal group="tokens" x1="13" y1="2" x2="3" y2="2"
354 token_jail group="tokens" x1="13" y1="11" x2="3" y2="11"
355 house group="horizontal" offset_x="0" offset_y="44"
356 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="24"
357
358 [estate]
359 general id="29"
360 data file="estates.png" x="36" y="0" width="35" height="59"
361 area border="#0000ff" tab="#00ff00" separator="#ff0000"
362 color border="#000000"
363 token_normal group="tokens" x1="13" y1="2" x2="3" y2="2"
364 token_jail group="tokens" x1="13" y1="11" x2="3" y2="11"
365 house group="horizontal" offset_x="0" offset_y="44"
366 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="24"
367
368 [estate]
369 general id="30"
370 data file="estates.png" x="131" y="59" width="59" height="59"
371 area border="#0000ff" tab="#00ff00" separator="#ff0000"
372 color border="#000000"
373 token_normal group="tokens" x1="37" y1="35" x2="37" y2="2"
374 token_jail group="tokens" x1="4" y1="35" x2="21" y2="18"
375 house group="vertical" offset_x="0" offset_y="0"
376 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="7" offset_y="33"
377
378 [estate]
379 general id="31"
380 data file="estates.png" x="0" y="96" width="59" height="35"
381 area border="#0000ff" tab="#00ff00" separator="#ff0000"
382 color border="#000000"
383 token_normal group="tokens" x1="37" y1="12" x2="37" y2="2"
384 token_jail group="tokens" x1="28" y1="12" x2="28" y2="2"
385 house group="vertical" offset_x="0" offset_y="-1"
386 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="16" offset_y="7"
387
388 [estate]
389 general id="32"
390 data file="estates.png" x="0" y="95" width="59" height="36"
391 area border="#0000ff" tab="#00ff00" separator="#ff0000"
392 color border="#000000"
393 token_normal group="tokens" x1="37" y1="13" x2="37" y2="3"
394 token_jail group="tokens" x1="28" y1="13" x2="28" y2="3"
395 house group="vertical" offset_x="0" offset_y="0"
396 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="16" offset_y="8"
397
398 [estate]
399 general id="33"
400 data file="estates.png" x="0" y="95" width="59" height="36"
401 area border="#0000ff" tab="#00ff00" separator="#ff0000"
402 color border="#000000"
403 token_normal group="tokens" x1="37" y1="13" x2="37" y2="3"
404 token_jail group="tokens" x1="28" y1="13" x2="28" y2="3"
405 house group="vertical" offset_x="0" offset_y="0"
406 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="16" offset_y="8"
407
408 [estate]
409 general id="34"
410 data file="estates.png" x="0" y="95" width="59" height="36"
411 area border="#0000ff" tab="#00ff00" separator="#ff0000"
412 color border="#000000"
413 token_normal group="tokens" x1="37" y1="13" x2="37" y2="3"
414 token_jail group="tokens" x1="28" y1="13" x2="28" y2="3"
415 house group="vertical" offset_x="0" offset_y="0"
416 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="16" offset_y="8"
417
418 [estate]
419 general id="35"
420 data file="estates.png" x="0" y="95" width="59" height="36"
421 area border="#0000ff" tab="#00ff00" separator="#ff0000"
422 color border="#000000"
423 token_normal group="tokens" x1="37" y1="13" x2="37" y2="3"
424 token_jail group="tokens" x1="28" y1="13" x2="28" y2="3"
425 house group="vertical" offset_x="0" offset_y="0"
426 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="16" offset_y="8"
427
428 [estate]
429 general id="36"
430 data file="estates.png" x="0" y="95" width="59" height="36"
431 area border="#0000ff" tab="#00ff00" separator="#ff0000"
432 color border="#000000"
433 token_normal group="tokens" x1="37" y1="13" x2="37" y2="3"
434 token_jail group="tokens" x1="28" y1="13" x2="28" y2="3"
435 house group="vertical" offset_x="0" offset_y="0"
436 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="16" offset_y="8"
437
438 [estate]
439 general id="37"
440 data file="estates.png" x="0" y="95" width="59" height="36"
441 area border="#0000ff" tab="#00ff00" separator="#ff0000"
442 color border="#000000"
443 token_normal group="tokens" x1="37" y1="13" x2="37" y2="3"
444 token_jail group="tokens" x1="28" y1="13" x2="28" y2="3"
445 house group="vertical" offset_x="0" offset_y="0"
446 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="16" offset_y="8"
447
448 [estate]
449 general id="38"
450 data file="estates.png" x="0" y="95" width="59" height="36"
451 area border="#0000ff" tab="#00ff00" separator="#ff0000"
452 color border="#000000"
453 token_normal group="tokens" x1="37" y1="13" x2="37" y2="3"
454 token_jail group="tokens" x1="28" y1="13" x2="28" y2="3"
455 house group="vertical" offset_x="0" offset_y="0"
456 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="16" offset_y="8"
457
458 [estate]
459 general id="39"
460 data file="estates.png" x="0" y="95" width="59" height="35"
461 area border="#0000ff" tab="#00ff00" separator="#ff0000"
462 color border="#000000"
463 token_normal group="tokens" x1="37" y1="13" x2="37" y2="3"
464 token_jail group="tokens" x1="28" y1="13" x2="28" y2="3"
465 house group="vertical" offset_x="0" offset_y="0"
466 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="16" offset_y="8"
467
468
0 [Desktop Entry]
1 Type=Application
2 Name=GtkAtlantic
3 GenericName=Monopd network client
4 Comment=Connect to a Monopd server
5 Comment[de]=Verbinde dich zu einem Monopd-Server
6 Exec=gtkatlantic
7 Icon=gtkatlantic
8 Categories=Game;BoardGame;
9 Keywords=monopoly;board;game;money;network;multiplayer;client;server;
0 /* XPM */
1 static char * gtkatlantic_xpm[] = {
2 "32 32 510 2",
3 " c None",
4 ". c #000000",
5 "+ c #7F0000",
6 "@ c #530000",
7 "# c #7F7F1C",
8 "$ c #535312",
9 "% c #8DC0FB",
10 "& c #8BC1FD",
11 "* c #91C5FE",
12 "= c #9FCBFE",
13 "- c #98C7FB",
14 "; c #FF0000",
15 "> c #A80000",
16 ", c #AAD4FF",
17 "' c #A0C9FE",
18 ") c #94C3FF",
19 "! c #90C1FF",
20 "~ c #FFFF39",
21 "{ c #A8A825",
22 "] c #91C2FA",
23 "^ c #8EC1FA",
24 "/ c #84BBF9",
25 "( c #93C9FE",
26 "_ c #92C4FC",
27 ": c #A4D2FF",
28 "< c #8CBFF7",
29 "[ c #88BAFC",
30 "} c #89C1FF",
31 "| c #87BFFC",
32 "1 c #94C6FB",
33 "2 c #99CBFE",
34 "3 c #9CCBFD",
35 "4 c #9FCCFE",
36 "5 c #94C7FF",
37 "6 c #86BBF9",
38 "7 c #97C8FE",
39 "8 c #96C9FF",
40 "9 c #8BBEFA",
41 "0 c #90C3FC",
42 "a c #9BCCFF",
43 "b c #95C7FE",
44 "c c #8DC1FE",
45 "d c #7EB8FC",
46 "e c #7EB9FC",
47 "f c #8CC5FF",
48 "g c #95C8FF",
49 "h c #8CC3FE",
50 "i c #90C5FF",
51 "j c #98CFFF",
52 "k c #7CB6F7",
53 "l c #9ACDFF",
54 "m c #95C6FC",
55 "n c #93C3FA",
56 "o c #94C3FA",
57 "p c #8FC3FC",
58 "q c #88BCF8",
59 "r c #98CCFF",
60 "s c #8CC2FC",
61 "t c #7BB7FB",
62 "u c #73B2FF",
63 "v c #77B2FE",
64 "w c #81B5FC",
65 "x c #72B0FB",
66 "y c #70ADFA",
67 "z c #89C4FC",
68 "A c #83BDFE",
69 "B c #94C6FE",
70 "C c #98C7FC",
71 "D c #A4D1FF",
72 "E c #9ECAFD",
73 "F c #8DC1F9",
74 "G c #85BDFB",
75 "H c #91C6FD",
76 "I c #91C4FC",
77 "J c #81BFFD",
78 "K c #69ADF9",
79 "L c #6CAFFF",
80 "M c #454545",
81 "N c #9CC6FF",
82 "O c #9ED0FF",
83 "P c #85BBFE",
84 "Q c #80B9FF",
85 "R c #533100",
86 "S c #A86400",
87 "T c #FF9900",
88 "U c #75B5FF",
89 "V c #73B3FF",
90 "W c #6DB0FD",
91 "X c #68AEFF",
92 "Y c #509EF7",
93 "Z c #68BCFF",
94 "` c #4EA2F6",
95 " . c #61A8F9",
96 ".. c #7FB9FE",
97 "+. c #90C3FE",
98 "@. c #87C1FC",
99 "#. c #77B3F6",
100 "$. c #8DC4FF",
101 "%. c #84BCFC",
102 "&. c #97CAFF",
103 "*. c #A1CDFF",
104 "=. c #9BCAFF",
105 "-. c #9ECCFB",
106 ";. c #006400",
107 ">. c #009900",
108 ",. c #004C00",
109 "'. c #7F4C00",
110 "). c #70B1FC",
111 "!. c #73B5FE",
112 "~. c #7EC0FF",
113 "{. c #71B3FC",
114 "]. c #6AAFFE",
115 "^. c #59A2F5",
116 "/. c #69B0F7",
117 "(. c #6DACF6",
118 "_. c #87BFFE",
119 ":. c #89BDF8",
120 "<. c #9ACFFE",
121 "[. c #8BBFF5",
122 "}. c #8FC1FF",
123 "|. c #92C6FF",
124 "1. c #9ECCFF",
125 "2. c #ABD4FF",
126 "3. c #A0CAFB",
127 "4. c #A9D2FE",
128 "5. c #003100",
129 "6. c #79B5F4",
130 "7. c #88C4FF",
131 "8. c #84BBFB",
132 "9. c #87BDFA",
133 "0. c #88C1FF",
134 "a. c #73ACF7",
135 "b. c #8FC5FF",
136 "c. c #86BCF8",
137 "d. c #88C0F9",
138 "e. c #91C4FA",
139 "f. c #9FCEFE",
140 "g. c #9FCEFD",
141 "h. c #96C6FB",
142 "i. c #9DCFFF",
143 "j. c #A3D0FA",
144 "k. c #B0D6FB",
145 "l. c #B5DDFF",
146 "m. c #B0D5FF",
147 "n. c #94CAFE",
148 "o. c #85BBF6",
149 "p. c #8ABEFB",
150 "q. c #92C5FF",
151 "r. c #8EC0FE",
152 "s. c #8FC2FB",
153 "t. c #97C9FE",
154 "u. c #98C9FF",
155 "v. c #98C6FF",
156 "w. c #9DCCFC",
157 "x. c #AFDBFE",
158 "y. c #A9D5FD",
159 "z. c #A4CFFD",
160 "A. c #A9D4FD",
161 "B. c #B8E3FF",
162 "C. c #C0E9FF",
163 "D. c #B5DEFC",
164 "E. c #AFD4FF",
165 "F. c #ACD7FB",
166 "G. c #B2DFFE",
167 "H. c #ABD9FD",
168 "I. c #9ED2FF",
169 "J. c #8ABDF6",
170 "K. c #98CAFF",
171 "L. c #96C7FD",
172 "M. c #97C8FF",
173 "N. c #A1D1FF",
174 "O. c #A1D0FD",
175 "P. c #9AC8FD",
176 "Q. c #A8D5FF",
177 "R. c #A9D5FB",
178 "S. c #A8D3FB",
179 "T. c #ADD9FF",
180 "U. c #B0DBFC",
181 "V. c #BDE2FD",
182 "W. c #C3E9FF",
183 "X. c #BDE2FE",
184 "Y. c #BBDDFF",
185 "Z. c #BFE5FF",
186 "`. c #AED8FC",
187 " + c #A5D0FB",
188 ".+ c #AED9FD",
189 "++ c #A9D5F7",
190 "@+ c #B6E2FF",
191 "#+ c #96C8FB",
192 "$+ c #96C8FC",
193 "%+ c #92C4FB",
194 "&+ c #9ACBFA",
195 "*+ c #99C8FB",
196 "=+ c #9AC9FF",
197 "-+ c #9DCDFD",
198 ";+ c #A7D4FE",
199 ">+ c #A7D1FB",
200 ",+ c #AAD5FF",
201 "'+ c #98C6FA",
202 ")+ c #A0CDFD",
203 "!+ c #B1DDFE",
204 "~+ c #AFDBFD",
205 "{+ c #A7D3F7",
206 "]+ c #ADD7FD",
207 "^+ c #BBDEFF",
208 "/+ c #BDE1FF",
209 "(+ c #BBDFFD",
210 "_+ c #B6DEFF",
211 ":+ c #AED6FD",
212 "<+ c #AFDAFB",
213 "[+ c #94C4F2",
214 "}+ c #A0D0FE",
215 "|+ c #95C4F8",
216 "1+ c #9ECDF9",
217 "2+ c #A3D1FF",
218 "3+ c #9ECCFE",
219 "4+ c #ACD3FE",
220 "5+ c #B1D6FC",
221 "6+ c #ADD8FD",
222 "7+ c #A0CFFC",
223 "8+ c #9ECBFE",
224 "9+ c #AAD4FE",
225 "0+ c #A2CDF7",
226 "a+ c #ADD6FF",
227 "b+ c #A6CEFE",
228 "c+ c #B1DBFF",
229 "d+ c #A1CFFB",
230 "e+ c #9BCDFD",
231 "f+ c #9BCAFC",
232 "g+ c #A6D3FE",
233 "h+ c #AEDBFF",
234 "i+ c #A2CFFA",
235 "j+ c #A3D0FC",
236 "k+ c #B0D8FF",
237 "l+ c #B7DCFF",
238 "m+ c #ACD4FC",
239 "n+ c #ABD7FF",
240 "o+ c #9FCBFD",
241 "p+ c #A1CCFD",
242 "q+ c #B1DDFF",
243 "r+ c #A1D0FF",
244 "s+ c #A8D5FC",
245 "t+ c #9FCBFB",
246 "u+ c #A1CCFF",
247 "v+ c #A2CEFE",
248 "w+ c #A9D4FC",
249 "x+ c #9FCDFA",
250 "y+ c #A6D2FF",
251 "z+ c #AAD1FD",
252 "A+ c #B3DCFE",
253 "B+ c #AED5FB",
254 "C+ c #B4DBFD",
255 "D+ c #B2DCFF",
256 "E+ c #A8D2FD",
257 "F+ c #A0CBFD",
258 "G+ c #A7D3FB",
259 "H+ c #A4D3FE",
260 "I+ c #90C3F8",
261 "J+ c #A2D2FF",
262 "K+ c #90BFF7",
263 "L+ c #A2CFF9",
264 "M+ c #96C5F9",
265 "N+ c #A4D0FC",
266 "O+ c #A7D3FF",
267 "P+ c #A8D4FF",
268 "Q+ c #A1CBFE",
269 "R+ c #AFD8FF",
270 "S+ c #A4CCFD",
271 "T+ c #A4CAFA",
272 "U+ c #B2D8FD",
273 "V+ c #B6DDFF",
274 "W+ c #ACD2FA",
275 "X+ c #ADD5FC",
276 "Y+ c #ADD9FE",
277 "Z+ c #A8D5FB",
278 "`+ c #A1CFFE",
279 " @ c #A2CDFA",
280 ".@ c #AFDCFF",
281 "+@ c #91C2F2",
282 "@@ c #99CCFD",
283 "#@ c #95C8FB",
284 "$@ c #A7D2FF",
285 "%@ c #A1CEFE",
286 "&@ c #9DCCFE",
287 "*@ c #32001F",
288 "=@ c #660040",
289 "-@ c #9C0062",
290 ";@ c #A6D4FF",
291 ">@ c #A5CEFB",
292 ",@ c #9BC6FD",
293 "'@ c #A8D5FE",
294 ")@ c #A9D6FF",
295 "!@ c #A6D0FE",
296 "~@ c #A7D0FE",
297 "{@ c #A2CCFC",
298 "]@ c #A6D6FF",
299 "^@ c #96C7F7",
300 "/@ c #97C8FC",
301 "(@ c #A3CCFD",
302 "_@ c #A8D3FD",
303 ":@ c #A4D4FD",
304 "<@ c #99CCFF",
305 "[@ c #9FCAFE",
306 "}@ c #9ECBFD",
307 "|@ c #9ECDFE",
308 "1@ c #4D0030",
309 "2@ c #9A2F72",
310 "3@ c #97788B",
311 "4@ c #7D777B",
312 "5@ c #7F6776",
313 "6@ c #91A7BF",
314 "7@ c #9BB9D6",
315 "8@ c #9DC3ED",
316 "9@ c #91C1FC",
317 "0@ c #92C3FB",
318 "a@ c #98C9FD",
319 "b@ c #9DCDFE",
320 "c@ c #9FCDFF",
321 "d@ c #9EC9FE",
322 "e@ c #9CC9FC",
323 "f@ c #96C5FA",
324 "g@ c #99CDFC",
325 "h@ c #91C5F9",
326 "i@ c #9CCAF8",
327 "j@ c #ABDAFF",
328 "k@ c #8DBFF8",
329 "l@ c #90C7FA",
330 "m@ c #93C6FC",
331 "n@ c #A0CBFF",
332 "o@ c #9CCAFD",
333 "p@ c #9BCCFB",
334 "q@ c #523045",
335 "r@ c #968E93",
336 "s@ c #808080",
337 "t@ c #5C5C5C",
338 "u@ c #797979",
339 "v@ c #9A9A9A",
340 "w@ c #979797",
341 "x@ c #333333",
342 "y@ c #959595",
343 "z@ c #999CA0",
344 "A@ c #8FB8E8",
345 "B@ c #90C4FF",
346 "C@ c #92C5FE",
347 "D@ c #95C6FA",
348 "E@ c #98C7FE",
349 "F@ c #85BAF9",
350 "G@ c #91C9FF",
351 "H@ c #85BCF4",
352 "I@ c #8CBFF9",
353 "J@ c #97C9FD",
354 "K@ c #A1D2FE",
355 "L@ c #9ECEFD",
356 "M@ c #87BEF6",
357 "N@ c #0000A8",
358 "O@ c #0000FF",
359 "P@ c #00007F",
360 "Q@ c #939393",
361 "R@ c #838383",
362 "S@ c #1F1F1F",
363 "T@ c #949494",
364 "U@ c #969696",
365 "V@ c #161616",
366 "W@ c #929292",
367 "X@ c #AAAAAA",
368 "Y@ c #C1C1C1",
369 "Z@ c #95BBE7",
370 "`@ c #7DB6FA",
371 " # c #83BBFA",
372 ".# c #8DBFF9",
373 "+# c #8ABBF2",
374 "@# c #85B2E4",
375 "## c #94AFCB",
376 "$# c #7C8793",
377 "%# c #90A5BC",
378 "&# c #93C1F3",
379 "*# c #A1D3FF",
380 "=# c #92C5FD",
381 "-# c #000053",
382 ";# c #F5F5F5",
383 "># c #EEEEEE",
384 ",# c #D9D9D9",
385 "'# c #B8B8B8",
386 ")# c #9E9E9E",
387 "!# c #999999",
388 "~# c #505050",
389 "{# c #0F0F0F",
390 "]# c #9C9C9C",
391 "^# c #9D9D9D",
392 "/# c #C0C0C0",
393 "(# c #9FC3E9",
394 "_# c #7FB2EF",
395 ":# c #91AAC6",
396 "<# c #93989E",
397 "[# c #6B6B6B",
398 "}# c #1D1D1D",
399 "|# c #737373",
400 "1# c #97A8BA",
401 "2# c #96C1F3",
402 "3# c #91C4FE",
403 "4# c #97CAFE",
404 "5# c #9CCCFF",
405 "6# c #5A5A5A",
406 "7# c #3E3E3E",
407 "8# c #FFFFFF",
408 "9# c #F7F7F7",
409 "0# c #CACACA",
410 "a# c #BABABA",
411 "b# c #BBBBBB",
412 "c# c #A1C3E7",
413 "d# c #C8E3FD",
414 "e# c #FCFCFC",
415 "f# c #A2A2A2",
416 "g# c #575757",
417 "h# c #414141",
418 "i# c #666666",
419 "j# c #85BCF7",
420 "k# c #87BBFE",
421 "l# c #93C7FE",
422 "m# c #9ACBFF",
423 "n# c #FEFEFE",
424 "o# c #B0B0B0",
425 "p# c #A6C7E5",
426 "q# c #D3EAFF",
427 "r# c #E4E4E4",
428 "s# c #6F6F6F",
429 "t# c #0E0E0E",
430 "u# c #9B9B9B",
431 "v# c #A3A3A3",
432 "w# c #B5B5B5",
433 "x# c #BCBCBC",
434 "y# c #B1CBE4",
435 "z# c #D6E9FE",
436 "A# c #C4C4C4",
437 "B# c #AEAEAE",
438 "C# c #BDBDBD",
439 "D# c #BFBFBF",
440 "E# c #050505",
441 "F# c #777777",
442 "G# c #262626",
443 "H# c #C2C2C2",
444 "I# c #909090",
445 "J# c #717171",
446 "K# c #B2C2D3",
447 "L# c #FDFDFD",
448 "M# c #B9B9B9",
449 "N# c #242424",
450 "O# c #C3C3C3",
451 "P# c #ACACAC",
452 "Q# c #7BB7F6",
453 "R# c #8EC6FF",
454 "S# c #88BCFA",
455 "T# c #E5E5E5",
456 "U# c #C9C9C9",
457 "V# c #090909",
458 "W# c #C0D8EB",
459 "X# c #CDE6FF",
460 "Y# c #D0D0D0",
461 "Z# c #A4A4A4",
462 "`# c #B6B6B6",
463 " $ c #313131",
464 ".$ c #C5C5C5",
465 "+$ c #7DBAF6",
466 "@$ c #86C0FD",
467 "#$ c #90C4FE",
468 "$$ c #B7D1EA",
469 "%$ c #B1DBFE",
470 "&$ c #B3C3D4",
471 "*$ c #D8D8D8",
472 "=$ c #2B2B2B",
473 "-$ c #94C8F8",
474 ";$ c #82B6FC",
475 ">$ c #96CCFE",
476 ",$ c #8C8C8C",
477 "'$ c #ECECEC",
478 ")$ c #B8BBBD",
479 "!$ c #A1CBF5",
480 "~$ c #9AC6FB",
481 "{$ c #98C5F9",
482 "]$ c #B6C6D5",
483 "^$ c #5E5E5E",
484 "/$ c #C6C6C6",
485 "($ c #A3D5FF",
486 "_$ c #83B8F6",
487 ":$ c #8EC5FD",
488 "<$ c #DDEEFE",
489 "[$ c #F2F7FE",
490 "}$ c #B1B1B1",
491 "|$ c #B2C5D7",
492 "1$ c #6687A8",
493 "2$ c #9CCEFF",
494 "3$ c #97C7FD",
495 "4$ c #8FC3FD",
496 "5$ c #7492B0",
497 "6$ c #EEF6FF",
498 "7$ c #393939",
499 "8$ c #B3B3B3",
500 "9$ c #A0CDFE",
501 "0$ c #96CBFB",
502 "a$ c #85BCFC",
503 "b$ c #A0A0A0",
504 "c$ c #596571",
505 "d$ c #4D667F",
506 "e$ c #324353",
507 "f$ c #8A8A8A",
508 "g$ c #3B3B3B",
509 "h$ c #B4B4B4",
510 "i$ c #AFAFAF",
511 "j$ c #A5A5A5",
512 "k$ c #FBFBFB",
513 " . . . . . . + @ . . + @ + @ . . # $ # $ . . # $ . . . . . . ",
514 " . % & * = - ; > , ' ; > ; > ) ! ~ { ~ { ] ^ ~ { / ( _ : < . ",
515 " . [ } | 1 2 ; > 3 4 ; > ; > 5 6 ~ { ~ { 7 8 ~ { 9 ^ 0 a b . ",
516 " . c d e f g ; > h i ; > ; > j k ~ { ~ { l m ~ { n o p q r . ",
517 " . s t u v w ; ; x y ; ; ; ; z A ~ ~ ~ ~ B C ~ ~ D E F G H . ",
518 " . I J K L M > > M M > > > > M M { { { { M M { { M N O P Q . ",
519 " R S S S T S U V W X Y Z ` ...+.@.#.$.%.&.*.=.-.;.>.>.>.>.,.",
520 " '.T T T T S ).!.~.{.].^./.(._.:.<.[.}.|.1.2.3.4.;.>.;.;.;.5.",
521 " R S S S T S 6.7.8.9.0.a.b.c.d.e.f.g.h.i.j.k.l.m.;.>.>.>.>.,.",
522 " '.T T T T S n.o.p.l q.r.s.t.u.v.w.x.y.z.A.B.C.D.;.>.;.;.;.5.",
523 " . E.F.G.H.M I.J.K.t.L.M.b N.O.P.1.Q.R.S.T.U.V.W.M X.Y.Z.`.. ",
524 " . +.+++@+M #+$+%+&+*+=+-+;+>+,+'+)+!+~+{+]+^+/+M (+_+:+<+. ",
525 " R S S S T S [+}+|+1+2+3+O.4+5+6+7+8+9+,+0+a+b+c+;.>.>.>.>.,.",
526 " '.T T T T S d+e+f+g+h+i+j+k+l+m+n+o+p+q+O.a r+4 ;.>.;.;.;.5.",
527 " . s+t+u+v+M w+x+y+z+:+A+m+B+C+D+E+F+p+G+H+I+J+K+M w.L+D M+. ",
528 " . N+O+P+Q+M D+R+S+T+U+V+W+X+]+Y+Z+O.`+ @.@+@t.@@M #@$@%@&@. ",
529 " *@=@=@=@-@=@;@>@,@u+F+'@)@!@~@{@]@^@/@(@_@:@^ I.M <@[@}@|@. ",
530 " 1@-@2@3@4@5@6@7@8@9@0@a@b@c@d@e@f@g@h@`+i@j@k@l@M m@n@o@p@. ",
531 " q@r@s@t@t@u@v@w@x@y@z@A@B@C@D@E@F@G@H@I@J@K@L@M@N@O@O@O@O@P@",
532 " Q@R@S@T@s@U@y@V@W@w@X@Y@Z@`@ #8 .#+#@###$#%#&#*#=#N@O@N@N@N@-#",
533 ";#>#,#'#)#!#~#{#]#^#/#/#/#(#_#:#<#[#U@y@!#}#|#y@1#2#M } 3#4#5#. ",
534 "6#7#8#8#8#8#9#0#a#b#/#/#/#c#d#e#f#g#!#y@T@y@y@U@h#i#s@j#k#l#m#. ",
535 "8#8#8#8#8#8#8#n#o#. /#/#/#p#q#8#8#r#Q@s#t#u#y@y@y@v#w#/#O@O@O@P@",
536 "8#8#8#8#8#8#8#n#/#x#/#/#/#y#z#8#8#8#n#A#w@B#C#D#/#D#E#F#N@N@N@-#",
537 "8#8#8#G#[#8#8#n#/#/#/#H#I#J#K#8#8#8#8#L#M#N#O#/#/#/#P#C#Q#R#S#. ",
538 "8#8#8#0#T#8#8#n#/#/#/#U#V#W#X#8#Y#Z#8#e#`# $x#/#.$/#/#/#+$@$#$. ",
539 "8#8#8#8#8#8#8#n#/#/#/#/#$$%$&$8#*$a#8#e#C#.$/#w#=$Y@/#/#-$;$>$. ",
540 "8#8#8#8#8#8#,$'$/#/#)$!$~${$]$8#8#8#8#e#x#/#/#M#^$/#/$/#($_$:$. ",
541 " |#<$[$L#=$}$/#|$1$2$3$4$5$6$8#8#8#e#x#/#/#/#Y@/#7$8$9$0$a$. ",
542 " . . . . ~#b$c$d$e$d$. . e$d$f$8#8#e#C#I#H#/#/#/#g$h$. . . . ",
543 " 8#e#i$. j$/#/#/# ",
544 " k$C#0# "};
6969 # compiler: $LTCC
7070 # compiler flags: $LTCFLAGS
7171 # linker: $LD (gnu? $with_gnu_ld)
72 # $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1.7
72 # $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1.11
7373 # automake: $automake_version
7474 # autoconf: $autoconf_version
7575 #
7979
8080 PROGRAM=libtool
8181 PACKAGE=libtool
82 VERSION="2.4.2 Debian-2.4.2-1.7"
82 VERSION="2.4.2 Debian-2.4.2-1.11"
8383 TIMESTAMP=""
8484 package_revision=1.3337
8585
+0
-7997
m4/libtool.m4 less more
0 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1 #
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
4 # Foundation, Inc.
5 # Written by Gordon Matzigkeit, 1996
6 #
7 # This file is free software; the Free Software Foundation gives
8 # unlimited permission to copy and/or distribute it, with or without
9 # modifications, as long as this notice is preserved.
10
11 m4_define([_LT_COPYING], [dnl
12 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14 # Foundation, Inc.
15 # Written by Gordon Matzigkeit, 1996
16 #
17 # This file is part of GNU Libtool.
18 #
19 # GNU Libtool is free software; you can redistribute it and/or
20 # modify it under the terms of the GNU General Public License as
21 # published by the Free Software Foundation; either version 2 of
22 # the License, or (at your option) any later version.
23 #
24 # As a special exception to the GNU General Public License,
25 # if you distribute this file as part of a program or library that
26 # is built using GNU Libtool, you may include this file under the
27 # same distribution terms that you use for the rest of that program.
28 #
29 # GNU Libtool is distributed in the hope that it will be useful,
30 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 # GNU General Public License for more details.
33 #
34 # You should have received a copy of the GNU General Public License
35 # along with GNU Libtool; see the file COPYING. If not, a copy
36 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37 # obtained by writing to the Free Software Foundation, Inc.,
38 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
39 ])
40
41 # serial 57 LT_INIT
42
43
44 # LT_PREREQ(VERSION)
45 # ------------------
46 # Complain and exit if this libtool version is less that VERSION.
47 m4_defun([LT_PREREQ],
48 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
49 [m4_default([$3],
50 [m4_fatal([Libtool version $1 or higher is required],
51 63)])],
52 [$2])])
53
54
55 # _LT_CHECK_BUILDDIR
56 # ------------------
57 # Complain if the absolute build directory name contains unusual characters
58 m4_defun([_LT_CHECK_BUILDDIR],
59 [case `pwd` in
60 *\ * | *\ *)
61 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
62 esac
63 ])
64
65
66 # LT_INIT([OPTIONS])
67 # ------------------
68 AC_DEFUN([LT_INIT],
69 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
70 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
71 AC_BEFORE([$0], [LT_LANG])dnl
72 AC_BEFORE([$0], [LT_OUTPUT])dnl
73 AC_BEFORE([$0], [LTDL_INIT])dnl
74 m4_require([_LT_CHECK_BUILDDIR])dnl
75
76 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
77 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
78 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
79 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
80 dnl unless we require an AC_DEFUNed macro:
81 AC_REQUIRE([LTOPTIONS_VERSION])dnl
82 AC_REQUIRE([LTSUGAR_VERSION])dnl
83 AC_REQUIRE([LTVERSION_VERSION])dnl
84 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
85 m4_require([_LT_PROG_LTMAIN])dnl
86
87 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
88
89 dnl Parse OPTIONS
90 _LT_SET_OPTIONS([$0], [$1])
91
92 # This can be used to rebuild libtool when needed
93 LIBTOOL_DEPS="$ltmain"
94
95 # Always use our own libtool.
96 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
97 AC_SUBST(LIBTOOL)dnl
98
99 _LT_SETUP
100
101 # Only expand once:
102 m4_define([LT_INIT])
103 ])# LT_INIT
104
105 # Old names:
106 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
107 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
108 dnl aclocal-1.4 backwards compatibility:
109 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
110 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
111
112
113 # _LT_CC_BASENAME(CC)
114 # -------------------
115 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
116 m4_defun([_LT_CC_BASENAME],
117 [for cc_temp in $1""; do
118 case $cc_temp in
119 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
120 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
121 \-*) ;;
122 *) break;;
123 esac
124 done
125 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
126 ])
127
128
129 # _LT_FILEUTILS_DEFAULTS
130 # ----------------------
131 # It is okay to use these file commands and assume they have been set
132 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
133 m4_defun([_LT_FILEUTILS_DEFAULTS],
134 [: ${CP="cp -f"}
135 : ${MV="mv -f"}
136 : ${RM="rm -f"}
137 ])# _LT_FILEUTILS_DEFAULTS
138
139
140 # _LT_SETUP
141 # ---------
142 m4_defun([_LT_SETUP],
143 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
144 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
145 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
146 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
147
148 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
149 dnl
150 _LT_DECL([], [host_alias], [0], [The host system])dnl
151 _LT_DECL([], [host], [0])dnl
152 _LT_DECL([], [host_os], [0])dnl
153 dnl
154 _LT_DECL([], [build_alias], [0], [The build system])dnl
155 _LT_DECL([], [build], [0])dnl
156 _LT_DECL([], [build_os], [0])dnl
157 dnl
158 AC_REQUIRE([AC_PROG_CC])dnl
159 AC_REQUIRE([LT_PATH_LD])dnl
160 AC_REQUIRE([LT_PATH_NM])dnl
161 dnl
162 AC_REQUIRE([AC_PROG_LN_S])dnl
163 test -z "$LN_S" && LN_S="ln -s"
164 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
165 dnl
166 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
167 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
168 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
169 dnl
170 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
171 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
172 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
173 m4_require([_LT_CMD_RELOAD])dnl
174 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
175 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
176 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
177 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
178 m4_require([_LT_WITH_SYSROOT])dnl
179
180 _LT_CONFIG_LIBTOOL_INIT([
181 # See if we are running on zsh, and set the options which allow our
182 # commands through without removal of \ escapes INIT.
183 if test -n "\${ZSH_VERSION+set}" ; then
184 setopt NO_GLOB_SUBST
185 fi
186 ])
187 if test -n "${ZSH_VERSION+set}" ; then
188 setopt NO_GLOB_SUBST
189 fi
190
191 _LT_CHECK_OBJDIR
192
193 m4_require([_LT_TAG_COMPILER])dnl
194
195 case $host_os in
196 aix3*)
197 # AIX sometimes has problems with the GCC collect2 program. For some
198 # reason, if we set the COLLECT_NAMES environment variable, the problems
199 # vanish in a puff of smoke.
200 if test "X${COLLECT_NAMES+set}" != Xset; then
201 COLLECT_NAMES=
202 export COLLECT_NAMES
203 fi
204 ;;
205 esac
206
207 # Global variables:
208 ofile=libtool
209 can_build_shared=yes
210
211 # All known linkers require a `.a' archive for static linking (except MSVC,
212 # which needs '.lib').
213 libext=a
214
215 with_gnu_ld="$lt_cv_prog_gnu_ld"
216
217 old_CC="$CC"
218 old_CFLAGS="$CFLAGS"
219
220 # Set sane defaults for various variables
221 test -z "$CC" && CC=cc
222 test -z "$LTCC" && LTCC=$CC
223 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
224 test -z "$LD" && LD=ld
225 test -z "$ac_objext" && ac_objext=o
226
227 _LT_CC_BASENAME([$compiler])
228
229 # Only perform the check for file, if the check method requires it
230 test -z "$MAGIC_CMD" && MAGIC_CMD=file
231 case $deplibs_check_method in
232 file_magic*)
233 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
234 _LT_PATH_MAGIC
235 fi
236 ;;
237 esac
238
239 # Use C for the default configuration in the libtool script
240 LT_SUPPORTED_TAG([CC])
241 _LT_LANG_C_CONFIG
242 _LT_LANG_DEFAULT_CONFIG
243 _LT_CONFIG_COMMANDS
244 ])# _LT_SETUP
245
246
247 # _LT_PREPARE_SED_QUOTE_VARS
248 # --------------------------
249 # Define a few sed substitution that help us do robust quoting.
250 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
251 [# Backslashify metacharacters that are still active within
252 # double-quoted strings.
253 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
254
255 # Same as above, but do not quote variable references.
256 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
257
258 # Sed substitution to delay expansion of an escaped shell variable in a
259 # double_quote_subst'ed string.
260 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
261
262 # Sed substitution to delay expansion of an escaped single quote.
263 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
264
265 # Sed substitution to avoid accidental globbing in evaled expressions
266 no_glob_subst='s/\*/\\\*/g'
267 ])
268
269 # _LT_PROG_LTMAIN
270 # ---------------
271 # Note that this code is called both from `configure', and `config.status'
272 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
273 # `config.status' has no value for ac_aux_dir unless we are using Automake,
274 # so we pass a copy along to make sure it has a sensible value anyway.
275 m4_defun([_LT_PROG_LTMAIN],
276 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
277 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
278 ltmain="$ac_aux_dir/ltmain.sh"
279 ])# _LT_PROG_LTMAIN
280
281
282 ## ------------------------------------- ##
283 ## Accumulate code for creating libtool. ##
284 ## ------------------------------------- ##
285
286 # So that we can recreate a full libtool script including additional
287 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
288 # in macros and then make a single call at the end using the `libtool'
289 # label.
290
291
292 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
293 # ----------------------------------------
294 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
295 m4_define([_LT_CONFIG_LIBTOOL_INIT],
296 [m4_ifval([$1],
297 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
298 [$1
299 ])])])
300
301 # Initialize.
302 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
303
304
305 # _LT_CONFIG_LIBTOOL([COMMANDS])
306 # ------------------------------
307 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
308 m4_define([_LT_CONFIG_LIBTOOL],
309 [m4_ifval([$1],
310 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
311 [$1
312 ])])])
313
314 # Initialize.
315 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
316
317
318 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
319 # -----------------------------------------------------
320 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
321 [_LT_CONFIG_LIBTOOL([$1])
322 _LT_CONFIG_LIBTOOL_INIT([$2])
323 ])
324
325
326 # _LT_FORMAT_COMMENT([COMMENT])
327 # -----------------------------
328 # Add leading comment marks to the start of each line, and a trailing
329 # full-stop to the whole comment if one is not present already.
330 m4_define([_LT_FORMAT_COMMENT],
331 [m4_ifval([$1], [
332 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
333 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
334 )])
335
336
337
338 ## ------------------------ ##
339 ## FIXME: Eliminate VARNAME ##
340 ## ------------------------ ##
341
342
343 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
344 # -------------------------------------------------------------------
345 # CONFIGNAME is the name given to the value in the libtool script.
346 # VARNAME is the (base) name used in the configure script.
347 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
348 # VARNAME. Any other value will be used directly.
349 m4_define([_LT_DECL],
350 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
351 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
352 [m4_ifval([$1], [$1], [$2])])
353 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
354 m4_ifval([$4],
355 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
356 lt_dict_add_subkey([lt_decl_dict], [$2],
357 [tagged?], [m4_ifval([$5], [yes], [no])])])
358 ])
359
360
361 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
362 # --------------------------------------------------------
363 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
364
365
366 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
367 # ------------------------------------------------
368 m4_define([lt_decl_tag_varnames],
369 [_lt_decl_filter([tagged?], [yes], $@)])
370
371
372 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
373 # ---------------------------------------------------------
374 m4_define([_lt_decl_filter],
375 [m4_case([$#],
376 [0], [m4_fatal([$0: too few arguments: $#])],
377 [1], [m4_fatal([$0: too few arguments: $#: $1])],
378 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
379 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
380 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
381 ])
382
383
384 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
385 # --------------------------------------------------
386 m4_define([lt_decl_quote_varnames],
387 [_lt_decl_filter([value], [1], $@)])
388
389
390 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
391 # ---------------------------------------------------
392 m4_define([lt_decl_dquote_varnames],
393 [_lt_decl_filter([value], [2], $@)])
394
395
396 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
397 # ---------------------------------------------------
398 m4_define([lt_decl_varnames_tagged],
399 [m4_assert([$# <= 2])dnl
400 _$0(m4_quote(m4_default([$1], [[, ]])),
401 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
402 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
403 m4_define([_lt_decl_varnames_tagged],
404 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
405
406
407 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
408 # ------------------------------------------------
409 m4_define([lt_decl_all_varnames],
410 [_$0(m4_quote(m4_default([$1], [[, ]])),
411 m4_if([$2], [],
412 m4_quote(lt_decl_varnames),
413 m4_quote(m4_shift($@))))[]dnl
414 ])
415 m4_define([_lt_decl_all_varnames],
416 [lt_join($@, lt_decl_varnames_tagged([$1],
417 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
418 ])
419
420
421 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
422 # ------------------------------------
423 # Quote a variable value, and forward it to `config.status' so that its
424 # declaration there will have the same value as in `configure'. VARNAME
425 # must have a single quote delimited value for this to work.
426 m4_define([_LT_CONFIG_STATUS_DECLARE],
427 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
428
429
430 # _LT_CONFIG_STATUS_DECLARATIONS
431 # ------------------------------
432 # We delimit libtool config variables with single quotes, so when
433 # we write them to config.status, we have to be sure to quote all
434 # embedded single quotes properly. In configure, this macro expands
435 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
436 #
437 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
438 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
439 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
440 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
441
442
443 # _LT_LIBTOOL_TAGS
444 # ----------------
445 # Output comment and list of tags supported by the script
446 m4_defun([_LT_LIBTOOL_TAGS],
447 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
448 available_tags="_LT_TAGS"dnl
449 ])
450
451
452 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
453 # -----------------------------------
454 # Extract the dictionary values for VARNAME (optionally with TAG) and
455 # expand to a commented shell variable setting:
456 #
457 # # Some comment about what VAR is for.
458 # visible_name=$lt_internal_name
459 m4_define([_LT_LIBTOOL_DECLARE],
460 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
461 [description])))[]dnl
462 m4_pushdef([_libtool_name],
463 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
464 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
465 [0], [_libtool_name=[$]$1],
466 [1], [_libtool_name=$lt_[]$1],
467 [2], [_libtool_name=$lt_[]$1],
468 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
469 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
470 ])
471
472
473 # _LT_LIBTOOL_CONFIG_VARS
474 # -----------------------
475 # Produce commented declarations of non-tagged libtool config variables
476 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
477 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
478 # section) are produced by _LT_LIBTOOL_TAG_VARS.
479 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
480 [m4_foreach([_lt_var],
481 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
482 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
483
484
485 # _LT_LIBTOOL_TAG_VARS(TAG)
486 # -------------------------
487 m4_define([_LT_LIBTOOL_TAG_VARS],
488 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
489 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
490
491
492 # _LT_TAGVAR(VARNAME, [TAGNAME])
493 # ------------------------------
494 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
495
496
497 # _LT_CONFIG_COMMANDS
498 # -------------------
499 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
500 # variables for single and double quote escaping we saved from calls
501 # to _LT_DECL, we can put quote escaped variables declarations
502 # into `config.status', and then the shell code to quote escape them in
503 # for loops in `config.status'. Finally, any additional code accumulated
504 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
505 m4_defun([_LT_CONFIG_COMMANDS],
506 [AC_PROVIDE_IFELSE([LT_OUTPUT],
507 dnl If the libtool generation code has been placed in $CONFIG_LT,
508 dnl instead of duplicating it all over again into config.status,
509 dnl then we will have config.status run $CONFIG_LT later, so it
510 dnl needs to know what name is stored there:
511 [AC_CONFIG_COMMANDS([libtool],
512 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
513 dnl If the libtool generation code is destined for config.status,
514 dnl expand the accumulated commands and init code now:
515 [AC_CONFIG_COMMANDS([libtool],
516 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
517 ])#_LT_CONFIG_COMMANDS
518
519
520 # Initialize.
521 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
522 [
523
524 # The HP-UX ksh and POSIX shell print the target directory to stdout
525 # if CDPATH is set.
526 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
527
528 sed_quote_subst='$sed_quote_subst'
529 double_quote_subst='$double_quote_subst'
530 delay_variable_subst='$delay_variable_subst'
531 _LT_CONFIG_STATUS_DECLARATIONS
532 LTCC='$LTCC'
533 LTCFLAGS='$LTCFLAGS'
534 compiler='$compiler_DEFAULT'
535
536 # A function that is used when there is no print builtin or printf.
537 func_fallback_echo ()
538 {
539 eval 'cat <<_LTECHO_EOF
540 \$[]1
541 _LTECHO_EOF'
542 }
543
544 # Quote evaled strings.
545 for var in lt_decl_all_varnames([[ \
546 ]], lt_decl_quote_varnames); do
547 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
548 *[[\\\\\\\`\\"\\\$]]*)
549 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
550 ;;
551 *)
552 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
553 ;;
554 esac
555 done
556
557 # Double-quote double-evaled strings.
558 for var in lt_decl_all_varnames([[ \
559 ]], lt_decl_dquote_varnames); do
560 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
561 *[[\\\\\\\`\\"\\\$]]*)
562 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
563 ;;
564 *)
565 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
566 ;;
567 esac
568 done
569
570 _LT_OUTPUT_LIBTOOL_INIT
571 ])
572
573 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
574 # ------------------------------------
575 # Generate a child script FILE with all initialization necessary to
576 # reuse the environment learned by the parent script, and make the
577 # file executable. If COMMENT is supplied, it is inserted after the
578 # `#!' sequence but before initialization text begins. After this
579 # macro, additional text can be appended to FILE to form the body of
580 # the child script. The macro ends with non-zero status if the
581 # file could not be fully written (such as if the disk is full).
582 m4_ifdef([AS_INIT_GENERATED],
583 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
584 [m4_defun([_LT_GENERATED_FILE_INIT],
585 [m4_require([AS_PREPARE])]dnl
586 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
587 [lt_write_fail=0
588 cat >$1 <<_ASEOF || lt_write_fail=1
589 #! $SHELL
590 # Generated by $as_me.
591 $2
592 SHELL=\${CONFIG_SHELL-$SHELL}
593 export SHELL
594 _ASEOF
595 cat >>$1 <<\_ASEOF || lt_write_fail=1
596 AS_SHELL_SANITIZE
597 _AS_PREPARE
598 exec AS_MESSAGE_FD>&1
599 _ASEOF
600 test $lt_write_fail = 0 && chmod +x $1[]dnl
601 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
602
603 # LT_OUTPUT
604 # ---------
605 # This macro allows early generation of the libtool script (before
606 # AC_OUTPUT is called), incase it is used in configure for compilation
607 # tests.
608 AC_DEFUN([LT_OUTPUT],
609 [: ${CONFIG_LT=./config.lt}
610 AC_MSG_NOTICE([creating $CONFIG_LT])
611 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
612 [# Run this file to recreate a libtool stub with the current configuration.])
613
614 cat >>"$CONFIG_LT" <<\_LTEOF
615 lt_cl_silent=false
616 exec AS_MESSAGE_LOG_FD>>config.log
617 {
618 echo
619 AS_BOX([Running $as_me.])
620 } >&AS_MESSAGE_LOG_FD
621
622 lt_cl_help="\
623 \`$as_me' creates a local libtool stub from the current configuration,
624 for use in further configure time tests before the real libtool is
625 generated.
626
627 Usage: $[0] [[OPTIONS]]
628
629 -h, --help print this help, then exit
630 -V, --version print version number, then exit
631 -q, --quiet do not print progress messages
632 -d, --debug don't remove temporary files
633
634 Report bugs to <bug-libtool@gnu.org>."
635
636 lt_cl_version="\
637 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
638 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
639 configured by $[0], generated by m4_PACKAGE_STRING.
640
641 Copyright (C) 2011 Free Software Foundation, Inc.
642 This config.lt script is free software; the Free Software Foundation
643 gives unlimited permision to copy, distribute and modify it."
644
645 while test $[#] != 0
646 do
647 case $[1] in
648 --version | --v* | -V )
649 echo "$lt_cl_version"; exit 0 ;;
650 --help | --h* | -h )
651 echo "$lt_cl_help"; exit 0 ;;
652 --debug | --d* | -d )
653 debug=: ;;
654 --quiet | --q* | --silent | --s* | -q )
655 lt_cl_silent=: ;;
656
657 -*) AC_MSG_ERROR([unrecognized option: $[1]
658 Try \`$[0] --help' for more information.]) ;;
659
660 *) AC_MSG_ERROR([unrecognized argument: $[1]
661 Try \`$[0] --help' for more information.]) ;;
662 esac
663 shift
664 done
665
666 if $lt_cl_silent; then
667 exec AS_MESSAGE_FD>/dev/null
668 fi
669 _LTEOF
670
671 cat >>"$CONFIG_LT" <<_LTEOF
672 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
673 _LTEOF
674
675 cat >>"$CONFIG_LT" <<\_LTEOF
676 AC_MSG_NOTICE([creating $ofile])
677 _LT_OUTPUT_LIBTOOL_COMMANDS
678 AS_EXIT(0)
679 _LTEOF
680 chmod +x "$CONFIG_LT"
681
682 # configure is writing to config.log, but config.lt does its own redirection,
683 # appending to config.log, which fails on DOS, as config.log is still kept
684 # open by configure. Here we exec the FD to /dev/null, effectively closing
685 # config.log, so it can be properly (re)opened and appended to by config.lt.
686 lt_cl_success=:
687 test "$silent" = yes &&
688 lt_config_lt_args="$lt_config_lt_args --quiet"
689 exec AS_MESSAGE_LOG_FD>/dev/null
690 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
691 exec AS_MESSAGE_LOG_FD>>config.log
692 $lt_cl_success || AS_EXIT(1)
693 ])# LT_OUTPUT
694
695
696 # _LT_CONFIG(TAG)
697 # ---------------
698 # If TAG is the built-in tag, create an initial libtool script with a
699 # default configuration from the untagged config vars. Otherwise add code
700 # to config.status for appending the configuration named by TAG from the
701 # matching tagged config vars.
702 m4_defun([_LT_CONFIG],
703 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
704 _LT_CONFIG_SAVE_COMMANDS([
705 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
706 m4_if(_LT_TAG, [C], [
707 # See if we are running on zsh, and set the options which allow our
708 # commands through without removal of \ escapes.
709 if test -n "${ZSH_VERSION+set}" ; then
710 setopt NO_GLOB_SUBST
711 fi
712
713 cfgfile="${ofile}T"
714 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
715 $RM "$cfgfile"
716
717 cat <<_LT_EOF >> "$cfgfile"
718 #! $SHELL
719
720 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
721 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
722 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
723 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
724 #
725 _LT_COPYING
726 _LT_LIBTOOL_TAGS
727
728 # ### BEGIN LIBTOOL CONFIG
729 _LT_LIBTOOL_CONFIG_VARS
730 _LT_LIBTOOL_TAG_VARS
731 # ### END LIBTOOL CONFIG
732
733 _LT_EOF
734
735 case $host_os in
736 aix3*)
737 cat <<\_LT_EOF >> "$cfgfile"
738 # AIX sometimes has problems with the GCC collect2 program. For some
739 # reason, if we set the COLLECT_NAMES environment variable, the problems
740 # vanish in a puff of smoke.
741 if test "X${COLLECT_NAMES+set}" != Xset; then
742 COLLECT_NAMES=
743 export COLLECT_NAMES
744 fi
745 _LT_EOF
746 ;;
747 esac
748
749 _LT_PROG_LTMAIN
750
751 # We use sed instead of cat because bash on DJGPP gets confused if
752 # if finds mixed CR/LF and LF-only lines. Since sed operates in
753 # text mode, it properly converts lines to CR/LF. This bash problem
754 # is reportedly fixed, but why not run on old versions too?
755 sed '$q' "$ltmain" >> "$cfgfile" \
756 || (rm -f "$cfgfile"; exit 1)
757
758 _LT_PROG_REPLACE_SHELLFNS
759
760 mv -f "$cfgfile" "$ofile" ||
761 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
762 chmod +x "$ofile"
763 ],
764 [cat <<_LT_EOF >> "$ofile"
765
766 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
767 dnl in a comment (ie after a #).
768 # ### BEGIN LIBTOOL TAG CONFIG: $1
769 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
770 # ### END LIBTOOL TAG CONFIG: $1
771 _LT_EOF
772 ])dnl /m4_if
773 ],
774 [m4_if([$1], [], [
775 PACKAGE='$PACKAGE'
776 VERSION='$VERSION'
777 TIMESTAMP='$TIMESTAMP'
778 RM='$RM'
779 ofile='$ofile'], [])
780 ])dnl /_LT_CONFIG_SAVE_COMMANDS
781 ])# _LT_CONFIG
782
783
784 # LT_SUPPORTED_TAG(TAG)
785 # ---------------------
786 # Trace this macro to discover what tags are supported by the libtool
787 # --tag option, using:
788 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
789 AC_DEFUN([LT_SUPPORTED_TAG], [])
790
791
792 # C support is built-in for now
793 m4_define([_LT_LANG_C_enabled], [])
794 m4_define([_LT_TAGS], [])
795
796
797 # LT_LANG(LANG)
798 # -------------
799 # Enable libtool support for the given language if not already enabled.
800 AC_DEFUN([LT_LANG],
801 [AC_BEFORE([$0], [LT_OUTPUT])dnl
802 m4_case([$1],
803 [C], [_LT_LANG(C)],
804 [C++], [_LT_LANG(CXX)],
805 [Go], [_LT_LANG(GO)],
806 [Java], [_LT_LANG(GCJ)],
807 [Fortran 77], [_LT_LANG(F77)],
808 [Fortran], [_LT_LANG(FC)],
809 [Windows Resource], [_LT_LANG(RC)],
810 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
811 [_LT_LANG($1)],
812 [m4_fatal([$0: unsupported language: "$1"])])])dnl
813 ])# LT_LANG
814
815
816 # _LT_LANG(LANGNAME)
817 # ------------------
818 m4_defun([_LT_LANG],
819 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
820 [LT_SUPPORTED_TAG([$1])dnl
821 m4_append([_LT_TAGS], [$1 ])dnl
822 m4_define([_LT_LANG_]$1[_enabled], [])dnl
823 _LT_LANG_$1_CONFIG($1)])dnl
824 ])# _LT_LANG
825
826
827 m4_ifndef([AC_PROG_GO], [
828 ############################################################
829 # NOTE: This macro has been submitted for inclusion into #
830 # GNU Autoconf as AC_PROG_GO. When it is available in #
831 # a released version of Autoconf we should remove this #
832 # macro and use it instead. #
833 ############################################################
834 m4_defun([AC_PROG_GO],
835 [AC_LANG_PUSH(Go)dnl
836 AC_ARG_VAR([GOC], [Go compiler command])dnl
837 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
838 _AC_ARG_VAR_LDFLAGS()dnl
839 AC_CHECK_TOOL(GOC, gccgo)
840 if test -z "$GOC"; then
841 if test -n "$ac_tool_prefix"; then
842 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
843 fi
844 fi
845 if test -z "$GOC"; then
846 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
847 fi
848 ])#m4_defun
849 ])#m4_ifndef
850
851
852 # _LT_LANG_DEFAULT_CONFIG
853 # -----------------------
854 m4_defun([_LT_LANG_DEFAULT_CONFIG],
855 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
856 [LT_LANG(CXX)],
857 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
858
859 AC_PROVIDE_IFELSE([AC_PROG_F77],
860 [LT_LANG(F77)],
861 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
862
863 AC_PROVIDE_IFELSE([AC_PROG_FC],
864 [LT_LANG(FC)],
865 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
866
867 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
868 dnl pulling things in needlessly.
869 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
870 [LT_LANG(GCJ)],
871 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
872 [LT_LANG(GCJ)],
873 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
874 [LT_LANG(GCJ)],
875 [m4_ifdef([AC_PROG_GCJ],
876 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
877 m4_ifdef([A][M_PROG_GCJ],
878 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
879 m4_ifdef([LT_PROG_GCJ],
880 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
881
882 AC_PROVIDE_IFELSE([AC_PROG_GO],
883 [LT_LANG(GO)],
884 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
885
886 AC_PROVIDE_IFELSE([LT_PROG_RC],
887 [LT_LANG(RC)],
888 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
889 ])# _LT_LANG_DEFAULT_CONFIG
890
891 # Obsolete macros:
892 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
893 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
894 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
895 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
896 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
897 dnl aclocal-1.4 backwards compatibility:
898 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
899 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
900 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
901 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
902 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
903
904
905 # _LT_TAG_COMPILER
906 # ----------------
907 m4_defun([_LT_TAG_COMPILER],
908 [AC_REQUIRE([AC_PROG_CC])dnl
909
910 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
911 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
912 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
913 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
914
915 # If no C compiler was specified, use CC.
916 LTCC=${LTCC-"$CC"}
917
918 # If no C compiler flags were specified, use CFLAGS.
919 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
920
921 # Allow CC to be a program name with arguments.
922 compiler=$CC
923 ])# _LT_TAG_COMPILER
924
925
926 # _LT_COMPILER_BOILERPLATE
927 # ------------------------
928 # Check for compiler boilerplate output or warnings with
929 # the simple compiler test code.
930 m4_defun([_LT_COMPILER_BOILERPLATE],
931 [m4_require([_LT_DECL_SED])dnl
932 ac_outfile=conftest.$ac_objext
933 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
934 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
935 _lt_compiler_boilerplate=`cat conftest.err`
936 $RM conftest*
937 ])# _LT_COMPILER_BOILERPLATE
938
939
940 # _LT_LINKER_BOILERPLATE
941 # ----------------------
942 # Check for linker boilerplate output or warnings with
943 # the simple link test code.
944 m4_defun([_LT_LINKER_BOILERPLATE],
945 [m4_require([_LT_DECL_SED])dnl
946 ac_outfile=conftest.$ac_objext
947 echo "$lt_simple_link_test_code" >conftest.$ac_ext
948 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
949 _lt_linker_boilerplate=`cat conftest.err`
950 $RM -r conftest*
951 ])# _LT_LINKER_BOILERPLATE
952
953 # _LT_REQUIRED_DARWIN_CHECKS
954 # -------------------------
955 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
956 case $host_os in
957 rhapsody* | darwin*)
958 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
959 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
960 AC_CHECK_TOOL([LIPO], [lipo], [:])
961 AC_CHECK_TOOL([OTOOL], [otool], [:])
962 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
963 _LT_DECL([], [DSYMUTIL], [1],
964 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
965 _LT_DECL([], [NMEDIT], [1],
966 [Tool to change global to local symbols on Mac OS X])
967 _LT_DECL([], [LIPO], [1],
968 [Tool to manipulate fat objects and archives on Mac OS X])
969 _LT_DECL([], [OTOOL], [1],
970 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
971 _LT_DECL([], [OTOOL64], [1],
972 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
973
974 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
975 [lt_cv_apple_cc_single_mod=no
976 if test -z "${LT_MULTI_MODULE}"; then
977 # By default we will add the -single_module flag. You can override
978 # by either setting the environment variable LT_MULTI_MODULE
979 # non-empty at configure time, or by adding -multi_module to the
980 # link flags.
981 rm -rf libconftest.dylib*
982 echo "int foo(void){return 1;}" > conftest.c
983 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
984 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
985 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
986 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
987 _lt_result=$?
988 # If there is a non-empty error log, and "single_module"
989 # appears in it, assume the flag caused a linker warning
990 if test -s conftest.err && $GREP single_module conftest.err; then
991 cat conftest.err >&AS_MESSAGE_LOG_FD
992 # Otherwise, if the output was created with a 0 exit code from
993 # the compiler, it worked.
994 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
995 lt_cv_apple_cc_single_mod=yes
996 else
997 cat conftest.err >&AS_MESSAGE_LOG_FD
998 fi
999 rm -rf libconftest.dylib*
1000 rm -f conftest.*
1001 fi])
1002
1003 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1004 [lt_cv_ld_exported_symbols_list],
1005 [lt_cv_ld_exported_symbols_list=no
1006 save_LDFLAGS=$LDFLAGS
1007 echo "_main" > conftest.sym
1008 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1009 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1010 [lt_cv_ld_exported_symbols_list=yes],
1011 [lt_cv_ld_exported_symbols_list=no])
1012 LDFLAGS="$save_LDFLAGS"
1013 ])
1014
1015 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1016 [lt_cv_ld_force_load=no
1017 cat > conftest.c << _LT_EOF
1018 int forced_loaded() { return 2;}
1019 _LT_EOF
1020 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1021 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1022 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1023 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1024 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1025 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1026 cat > conftest.c << _LT_EOF
1027 int main() { return 0;}
1028 _LT_EOF
1029 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1030 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1031 _lt_result=$?
1032 if test -s conftest.err && $GREP force_load conftest.err; then
1033 cat conftest.err >&AS_MESSAGE_LOG_FD
1034 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1035 lt_cv_ld_force_load=yes
1036 else
1037 cat conftest.err >&AS_MESSAGE_LOG_FD
1038 fi
1039 rm -f conftest.err libconftest.a conftest conftest.c
1040 rm -rf conftest.dSYM
1041 ])
1042 case $host_os in
1043 rhapsody* | darwin1.[[012]])
1044 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1045 darwin1.*)
1046 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1047 darwin*) # darwin 5.x on
1048 # if running on 10.5 or later, the deployment target defaults
1049 # to the OS version, if on x86, and 10.4, the deployment
1050 # target defaults to 10.4. Don't you love it?
1051 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1052 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1053 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1054 10.[[012]]*)
1055 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1056 10.*)
1057 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1058 esac
1059 ;;
1060 esac
1061 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1062 _lt_dar_single_mod='$single_module'
1063 fi
1064 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1065 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1066 else
1067 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1068 fi
1069 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1070 _lt_dsymutil='~$DSYMUTIL $lib || :'
1071 else
1072 _lt_dsymutil=
1073 fi
1074 ;;
1075 esac
1076 ])
1077
1078
1079 # _LT_DARWIN_LINKER_FEATURES([TAG])
1080 # ---------------------------------
1081 # Checks for linker and compiler features on darwin
1082 m4_defun([_LT_DARWIN_LINKER_FEATURES],
1083 [
1084 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1085 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1086 _LT_TAGVAR(hardcode_direct, $1)=no
1087 _LT_TAGVAR(hardcode_automatic, $1)=yes
1088 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1089 if test "$lt_cv_ld_force_load" = "yes"; then
1090 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1091 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1092 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1093 else
1094 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1095 fi
1096 _LT_TAGVAR(link_all_deplibs, $1)=yes
1097 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1098 case $cc_basename in
1099 ifort*) _lt_dar_can_shared=yes ;;
1100 *) _lt_dar_can_shared=$GCC ;;
1101 esac
1102 if test "$_lt_dar_can_shared" = "yes"; then
1103 output_verbose_link_cmd=func_echo_all
1104 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1105 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1106 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1107 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1108 m4_if([$1], [CXX],
1109 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1110 _LT_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${_lt_dsymutil}"
1111 _LT_TAGVAR(archive_expsym_cmds, $1)="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
1112 fi
1113 ],[])
1114 else
1115 _LT_TAGVAR(ld_shlibs, $1)=no
1116 fi
1117 ])
1118
1119 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1120 # ----------------------------------
1121 # Links a minimal program and checks the executable
1122 # for the system default hardcoded library path. In most cases,
1123 # this is /usr/lib:/lib, but when the MPI compilers are used
1124 # the location of the communication and MPI libs are included too.
1125 # If we don't find anything, use the default library path according
1126 # to the aix ld manual.
1127 # Store the results from the different compilers for each TAGNAME.
1128 # Allow to override them for all tags through lt_cv_aix_libpath.
1129 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1130 [m4_require([_LT_DECL_SED])dnl
1131 if test "${lt_cv_aix_libpath+set}" = set; then
1132 aix_libpath=$lt_cv_aix_libpath
1133 else
1134 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1135 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1136 lt_aix_libpath_sed='[
1137 /Import File Strings/,/^$/ {
1138 /^0/ {
1139 s/^0 *\([^ ]*\) *$/\1/
1140 p
1141 }
1142 }]'
1143 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1144 # Check for a 64-bit object if we didn't find anything.
1145 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1146 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1147 fi],[])
1148 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1149 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1150 fi
1151 ])
1152 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1153 fi
1154 ])# _LT_SYS_MODULE_PATH_AIX
1155
1156
1157 # _LT_SHELL_INIT(ARG)
1158 # -------------------
1159 m4_define([_LT_SHELL_INIT],
1160 [m4_divert_text([M4SH-INIT], [$1
1161 ])])# _LT_SHELL_INIT
1162
1163
1164
1165 # _LT_PROG_ECHO_BACKSLASH
1166 # -----------------------
1167 # Find how we can fake an echo command that does not interpret backslash.
1168 # In particular, with Autoconf 2.60 or later we add some code to the start
1169 # of the generated configure script which will find a shell with a builtin
1170 # printf (which we can use as an echo command).
1171 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1172 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1173 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1174 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1175
1176 AC_MSG_CHECKING([how to print strings])
1177 # Test print first, because it will be a builtin if present.
1178 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1179 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1180 ECHO='print -r --'
1181 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1182 ECHO='printf %s\n'
1183 else
1184 # Use this function as a fallback that always works.
1185 func_fallback_echo ()
1186 {
1187 eval 'cat <<_LTECHO_EOF
1188 $[]1
1189 _LTECHO_EOF'
1190 }
1191 ECHO='func_fallback_echo'
1192 fi
1193
1194 # func_echo_all arg...
1195 # Invoke $ECHO with all args, space-separated.
1196 func_echo_all ()
1197 {
1198 $ECHO "$*"
1199 }
1200
1201 case "$ECHO" in
1202 printf*) AC_MSG_RESULT([printf]) ;;
1203 print*) AC_MSG_RESULT([print -r]) ;;
1204 *) AC_MSG_RESULT([cat]) ;;
1205 esac
1206
1207 m4_ifdef([_AS_DETECT_SUGGESTED],
1208 [_AS_DETECT_SUGGESTED([
1209 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1210 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1211 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1212 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1213 PATH=/empty FPATH=/empty; export PATH FPATH
1214 test "X`printf %s $ECHO`" = "X$ECHO" \
1215 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1216
1217 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1218 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1219 ])# _LT_PROG_ECHO_BACKSLASH
1220
1221
1222 # _LT_WITH_SYSROOT
1223 # ----------------
1224 AC_DEFUN([_LT_WITH_SYSROOT],
1225 [AC_MSG_CHECKING([for sysroot])
1226 AC_ARG_WITH([sysroot],
1227 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1228 (or the compiler's sysroot if not specified).],
1229 [], [with_sysroot=no])
1230
1231 dnl lt_sysroot will always be passed unquoted. We quote it here
1232 dnl in case the user passed a directory name.
1233 lt_sysroot=
1234 case ${with_sysroot} in #(
1235 yes)
1236 if test "$GCC" = yes; then
1237 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1238 fi
1239 ;; #(
1240 /*)
1241 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1242 ;; #(
1243 no|'')
1244 ;; #(
1245 *)
1246 AC_MSG_RESULT([${with_sysroot}])
1247 AC_MSG_ERROR([The sysroot must be an absolute path.])
1248 ;;
1249 esac
1250
1251 AC_MSG_RESULT([${lt_sysroot:-no}])
1252 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1253 [dependent libraries, and in which our libraries should be installed.])])
1254
1255 # _LT_ENABLE_LOCK
1256 # ---------------
1257 m4_defun([_LT_ENABLE_LOCK],
1258 [AC_ARG_ENABLE([libtool-lock],
1259 [AS_HELP_STRING([--disable-libtool-lock],
1260 [avoid locking (might break parallel builds)])])
1261 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1262
1263 # Some flags need to be propagated to the compiler or linker for good
1264 # libtool support.
1265 case $host in
1266 ia64-*-hpux*)
1267 # Find out which ABI we are using.
1268 echo 'int i;' > conftest.$ac_ext
1269 if AC_TRY_EVAL(ac_compile); then
1270 case `/usr/bin/file conftest.$ac_objext` in
1271 *ELF-32*)
1272 HPUX_IA64_MODE="32"
1273 ;;
1274 *ELF-64*)
1275 HPUX_IA64_MODE="64"
1276 ;;
1277 esac
1278 fi
1279 rm -rf conftest*
1280 ;;
1281 *-*-irix6*)
1282 # Find out which ABI we are using.
1283 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1284 if AC_TRY_EVAL(ac_compile); then
1285 if test "$lt_cv_prog_gnu_ld" = yes; then
1286 case `/usr/bin/file conftest.$ac_objext` in
1287 *32-bit*)
1288 LD="${LD-ld} -melf32bsmip"
1289 ;;
1290 *N32*)
1291 LD="${LD-ld} -melf32bmipn32"
1292 ;;
1293 *64-bit*)
1294 LD="${LD-ld} -melf64bmip"
1295 ;;
1296 esac
1297 else
1298 case `/usr/bin/file conftest.$ac_objext` in
1299 *32-bit*)
1300 LD="${LD-ld} -32"
1301 ;;
1302 *N32*)
1303 LD="${LD-ld} -n32"
1304 ;;
1305 *64-bit*)
1306 LD="${LD-ld} -64"
1307 ;;
1308 esac
1309 fi
1310 fi
1311 rm -rf conftest*
1312 ;;
1313
1314 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1315 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1316 # Find out which ABI we are using.
1317 echo 'int i;' > conftest.$ac_ext
1318 if AC_TRY_EVAL(ac_compile); then
1319 case `/usr/bin/file conftest.o` in
1320 *32-bit*)
1321 case $host in
1322 x86_64-*kfreebsd*-gnu)
1323 LD="${LD-ld} -m elf_i386_fbsd"
1324 ;;
1325 x86_64-*linux*)
1326 case `/usr/bin/file conftest.o` in
1327 *x86-64*)
1328 LD="${LD-ld} -m elf32_x86_64"
1329 ;;
1330 *)
1331 LD="${LD-ld} -m elf_i386"
1332 ;;
1333 esac
1334 ;;
1335 powerpc64le-*)
1336 LD="${LD-ld} -m elf32lppclinux"
1337 ;;
1338 powerpc64-*)
1339 LD="${LD-ld} -m elf32ppclinux"
1340 ;;
1341 s390x-*linux*)
1342 LD="${LD-ld} -m elf_s390"
1343 ;;
1344 sparc64-*linux*)
1345 LD="${LD-ld} -m elf32_sparc"
1346 ;;
1347 esac
1348 ;;
1349 *64-bit*)
1350 case $host in
1351 x86_64-*kfreebsd*-gnu)
1352 LD="${LD-ld} -m elf_x86_64_fbsd"
1353 ;;
1354 x86_64-*linux*)
1355 LD="${LD-ld} -m elf_x86_64"
1356 ;;
1357 powerpcle-*)
1358 LD="${LD-ld} -m elf64lppc"
1359 ;;
1360 powerpc-*)
1361 LD="${LD-ld} -m elf64ppc"
1362 ;;
1363 s390*-*linux*|s390*-*tpf*)
1364 LD="${LD-ld} -m elf64_s390"
1365 ;;
1366 sparc*-*linux*)
1367 LD="${LD-ld} -m elf64_sparc"
1368 ;;
1369 esac
1370 ;;
1371 esac
1372 fi
1373 rm -rf conftest*
1374 ;;
1375
1376 *-*-sco3.2v5*)
1377 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1378 SAVE_CFLAGS="$CFLAGS"
1379 CFLAGS="$CFLAGS -belf"
1380 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1381 [AC_LANG_PUSH(C)
1382 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1383 AC_LANG_POP])
1384 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1385 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1386 CFLAGS="$SAVE_CFLAGS"
1387 fi
1388 ;;
1389 *-*solaris*)
1390 # Find out which ABI we are using.
1391 echo 'int i;' > conftest.$ac_ext
1392 if AC_TRY_EVAL(ac_compile); then
1393 case `/usr/bin/file conftest.o` in
1394 *64-bit*)
1395 case $lt_cv_prog_gnu_ld in
1396 yes*)
1397 case $host in
1398 i?86-*-solaris*)
1399 LD="${LD-ld} -m elf_x86_64"
1400 ;;
1401 sparc*-*-solaris*)
1402 LD="${LD-ld} -m elf64_sparc"
1403 ;;
1404 esac
1405 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1406 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1407 LD="${LD-ld}_sol2"
1408 fi
1409 ;;
1410 *)
1411 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1412 LD="${LD-ld} -64"
1413 fi
1414 ;;
1415 esac
1416 ;;
1417 esac
1418 fi
1419 rm -rf conftest*
1420 ;;
1421 esac
1422
1423 need_locks="$enable_libtool_lock"
1424 ])# _LT_ENABLE_LOCK
1425
1426
1427 # _LT_PROG_AR
1428 # -----------
1429 m4_defun([_LT_PROG_AR],
1430 [AC_CHECK_TOOLS(AR, [ar], false)
1431 : ${AR=ar}
1432 : ${AR_FLAGS=cru}
1433 _LT_DECL([], [AR], [1], [The archiver])
1434 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1435
1436 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1437 [lt_cv_ar_at_file=no
1438 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1439 [echo conftest.$ac_objext > conftest.lst
1440 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1441 AC_TRY_EVAL([lt_ar_try])
1442 if test "$ac_status" -eq 0; then
1443 # Ensure the archiver fails upon bogus file names.
1444 rm -f conftest.$ac_objext libconftest.a
1445 AC_TRY_EVAL([lt_ar_try])
1446 if test "$ac_status" -ne 0; then
1447 lt_cv_ar_at_file=@
1448 fi
1449 fi
1450 rm -f conftest.* libconftest.a
1451 ])
1452 ])
1453
1454 if test "x$lt_cv_ar_at_file" = xno; then
1455 archiver_list_spec=
1456 else
1457 archiver_list_spec=$lt_cv_ar_at_file
1458 fi
1459 _LT_DECL([], [archiver_list_spec], [1],
1460 [How to feed a file listing to the archiver])
1461 ])# _LT_PROG_AR
1462
1463
1464 # _LT_CMD_OLD_ARCHIVE
1465 # -------------------
1466 m4_defun([_LT_CMD_OLD_ARCHIVE],
1467 [_LT_PROG_AR
1468
1469 AC_CHECK_TOOL(STRIP, strip, :)
1470 test -z "$STRIP" && STRIP=:
1471 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1472
1473 AC_CHECK_TOOL(RANLIB, ranlib, :)
1474 test -z "$RANLIB" && RANLIB=:
1475 _LT_DECL([], [RANLIB], [1],
1476 [Commands used to install an old-style archive])
1477
1478 # Determine commands to create old-style static archives.
1479 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1480 old_postinstall_cmds='chmod 644 $oldlib'
1481 old_postuninstall_cmds=
1482
1483 if test -n "$RANLIB"; then
1484 case $host_os in
1485 openbsd*)
1486 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1487 ;;
1488 *)
1489 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1490 ;;
1491 esac
1492 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1493 fi
1494
1495 case $host_os in
1496 darwin*)
1497 lock_old_archive_extraction=yes ;;
1498 *)
1499 lock_old_archive_extraction=no ;;
1500 esac
1501 _LT_DECL([], [old_postinstall_cmds], [2])
1502 _LT_DECL([], [old_postuninstall_cmds], [2])
1503 _LT_TAGDECL([], [old_archive_cmds], [2],
1504 [Commands used to build an old-style archive])
1505 _LT_DECL([], [lock_old_archive_extraction], [0],
1506 [Whether to use a lock for old archive extraction])
1507 ])# _LT_CMD_OLD_ARCHIVE
1508
1509
1510 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1511 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1512 # ----------------------------------------------------------------
1513 # Check whether the given compiler option works
1514 AC_DEFUN([_LT_COMPILER_OPTION],
1515 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1516 m4_require([_LT_DECL_SED])dnl
1517 AC_CACHE_CHECK([$1], [$2],
1518 [$2=no
1519 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1520 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1521 lt_compiler_flag="$3"
1522 # Insert the option either (1) after the last *FLAGS variable, or
1523 # (2) before a word containing "conftest.", or (3) at the end.
1524 # Note that $ac_compile itself does not contain backslashes and begins
1525 # with a dollar sign (not a hyphen), so the echo should work correctly.
1526 # The option is referenced via a variable to avoid confusing sed.
1527 lt_compile=`echo "$ac_compile" | $SED \
1528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1529 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1530 -e 's:$: $lt_compiler_flag:'`
1531 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1532 (eval "$lt_compile" 2>conftest.err)
1533 ac_status=$?
1534 cat conftest.err >&AS_MESSAGE_LOG_FD
1535 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1536 if (exit $ac_status) && test -s "$ac_outfile"; then
1537 # The compiler can only warn and ignore the option if not recognized
1538 # So say no if there are warnings other than the usual output.
1539 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1540 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1541 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1542 $2=yes
1543 fi
1544 fi
1545 $RM conftest*
1546 ])
1547
1548 if test x"[$]$2" = xyes; then
1549 m4_if([$5], , :, [$5])
1550 else
1551 m4_if([$6], , :, [$6])
1552 fi
1553 ])# _LT_COMPILER_OPTION
1554
1555 # Old name:
1556 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1557 dnl aclocal-1.4 backwards compatibility:
1558 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1559
1560
1561 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1562 # [ACTION-SUCCESS], [ACTION-FAILURE])
1563 # ----------------------------------------------------
1564 # Check whether the given linker option works
1565 AC_DEFUN([_LT_LINKER_OPTION],
1566 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1567 m4_require([_LT_DECL_SED])dnl
1568 AC_CACHE_CHECK([$1], [$2],
1569 [$2=no
1570 save_LDFLAGS="$LDFLAGS"
1571 LDFLAGS="$LDFLAGS $3"
1572 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1573 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1574 # The linker can only warn and ignore the option if not recognized
1575 # So say no if there are warnings
1576 if test -s conftest.err; then
1577 # Append any errors to the config.log.
1578 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1579 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1580 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1581 if diff conftest.exp conftest.er2 >/dev/null; then
1582 $2=yes
1583 fi
1584 else
1585 $2=yes
1586 fi
1587 fi
1588 $RM -r conftest*
1589 LDFLAGS="$save_LDFLAGS"
1590 ])
1591
1592 if test x"[$]$2" = xyes; then
1593 m4_if([$4], , :, [$4])
1594 else
1595 m4_if([$5], , :, [$5])
1596 fi
1597 ])# _LT_LINKER_OPTION
1598
1599 # Old name:
1600 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1601 dnl aclocal-1.4 backwards compatibility:
1602 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1603
1604
1605 # LT_CMD_MAX_LEN
1606 #---------------
1607 AC_DEFUN([LT_CMD_MAX_LEN],
1608 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1609 # find the maximum length of command line arguments
1610 AC_MSG_CHECKING([the maximum length of command line arguments])
1611 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1612 i=0
1613 teststring="ABCD"
1614
1615 case $build_os in
1616 msdosdjgpp*)
1617 # On DJGPP, this test can blow up pretty badly due to problems in libc
1618 # (any single argument exceeding 2000 bytes causes a buffer overrun
1619 # during glob expansion). Even if it were fixed, the result of this
1620 # check would be larger than it should be.
1621 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1622 ;;
1623
1624 gnu*)
1625 # Under GNU Hurd, this test is not required because there is
1626 # no limit to the length of command line arguments.
1627 # Libtool will interpret -1 as no limit whatsoever
1628 lt_cv_sys_max_cmd_len=-1;
1629 ;;
1630
1631 cygwin* | mingw* | cegcc*)
1632 # On Win9x/ME, this test blows up -- it succeeds, but takes
1633 # about 5 minutes as the teststring grows exponentially.
1634 # Worse, since 9x/ME are not pre-emptively multitasking,
1635 # you end up with a "frozen" computer, even though with patience
1636 # the test eventually succeeds (with a max line length of 256k).
1637 # Instead, let's just punt: use the minimum linelength reported by
1638 # all of the supported platforms: 8192 (on NT/2K/XP).
1639 lt_cv_sys_max_cmd_len=8192;
1640 ;;
1641
1642 mint*)
1643 # On MiNT this can take a long time and run out of memory.
1644 lt_cv_sys_max_cmd_len=8192;
1645 ;;
1646
1647 amigaos*)
1648 # On AmigaOS with pdksh, this test takes hours, literally.
1649 # So we just punt and use a minimum line length of 8192.
1650 lt_cv_sys_max_cmd_len=8192;
1651 ;;
1652
1653 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1654 # This has been around since 386BSD, at least. Likely further.
1655 if test -x /sbin/sysctl; then
1656 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1657 elif test -x /usr/sbin/sysctl; then
1658 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1659 else
1660 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1661 fi
1662 # And add a safety zone
1663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1664 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1665 ;;
1666
1667 interix*)
1668 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1669 lt_cv_sys_max_cmd_len=196608
1670 ;;
1671
1672 os2*)
1673 # The test takes a long time on OS/2.
1674 lt_cv_sys_max_cmd_len=8192
1675 ;;
1676
1677 osf*)
1678 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1679 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1680 # nice to cause kernel panics so lets avoid the loop below.
1681 # First set a reasonable default.
1682 lt_cv_sys_max_cmd_len=16384
1683 #
1684 if test -x /sbin/sysconfig; then
1685 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1686 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1687 esac
1688 fi
1689 ;;
1690 sco3.2v5*)
1691 lt_cv_sys_max_cmd_len=102400
1692 ;;
1693 sysv5* | sco5v6* | sysv4.2uw2*)
1694 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1695 if test -n "$kargmax"; then
1696 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1697 else
1698 lt_cv_sys_max_cmd_len=32768
1699 fi
1700 ;;
1701 *)
1702 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1703 if test -n "$lt_cv_sys_max_cmd_len" && \
1704 test undefined != "$lt_cv_sys_max_cmd_len"; then
1705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1707 else
1708 # Make teststring a little bigger before we do anything with it.
1709 # a 1K string should be a reasonable start.
1710 for i in 1 2 3 4 5 6 7 8 ; do
1711 teststring=$teststring$teststring
1712 done
1713 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1714 # If test is not a shell built-in, we'll probably end up computing a
1715 # maximum length that is only half of the actual maximum length, but
1716 # we can't tell.
1717 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1718 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1719 test $i != 17 # 1/2 MB should be enough
1720 do
1721 i=`expr $i + 1`
1722 teststring=$teststring$teststring
1723 done
1724 # Only check the string length outside the loop.
1725 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1726 teststring=
1727 # Add a significant safety factor because C++ compilers can tack on
1728 # massive amounts of additional arguments before passing them to the
1729 # linker. It appears as though 1/2 is a usable value.
1730 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1731 fi
1732 ;;
1733 esac
1734 ])
1735 if test -n $lt_cv_sys_max_cmd_len ; then
1736 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1737 else
1738 AC_MSG_RESULT(none)
1739 fi
1740 max_cmd_len=$lt_cv_sys_max_cmd_len
1741 _LT_DECL([], [max_cmd_len], [0],
1742 [What is the maximum length of a command?])
1743 ])# LT_CMD_MAX_LEN
1744
1745 # Old name:
1746 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1747 dnl aclocal-1.4 backwards compatibility:
1748 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1749
1750
1751 # _LT_HEADER_DLFCN
1752 # ----------------
1753 m4_defun([_LT_HEADER_DLFCN],
1754 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1755 ])# _LT_HEADER_DLFCN
1756
1757
1758 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1759 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1760 # ----------------------------------------------------------------
1761 m4_defun([_LT_TRY_DLOPEN_SELF],
1762 [m4_require([_LT_HEADER_DLFCN])dnl
1763 if test "$cross_compiling" = yes; then :
1764 [$4]
1765 else
1766 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1767 lt_status=$lt_dlunknown
1768 cat > conftest.$ac_ext <<_LT_EOF
1769 [#line $LINENO "configure"
1770 #include "confdefs.h"
1771
1772 #if HAVE_DLFCN_H
1773 #include <dlfcn.h>
1774 #endif
1775
1776 #include <stdio.h>
1777
1778 #ifdef RTLD_GLOBAL
1779 # define LT_DLGLOBAL RTLD_GLOBAL
1780 #else
1781 # ifdef DL_GLOBAL
1782 # define LT_DLGLOBAL DL_GLOBAL
1783 # else
1784 # define LT_DLGLOBAL 0
1785 # endif
1786 #endif
1787
1788 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1789 find out it does not work in some platform. */
1790 #ifndef LT_DLLAZY_OR_NOW
1791 # ifdef RTLD_LAZY
1792 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1793 # else
1794 # ifdef DL_LAZY
1795 # define LT_DLLAZY_OR_NOW DL_LAZY
1796 # else
1797 # ifdef RTLD_NOW
1798 # define LT_DLLAZY_OR_NOW RTLD_NOW
1799 # else
1800 # ifdef DL_NOW
1801 # define LT_DLLAZY_OR_NOW DL_NOW
1802 # else
1803 # define LT_DLLAZY_OR_NOW 0
1804 # endif
1805 # endif
1806 # endif
1807 # endif
1808 #endif
1809
1810 /* When -fvisbility=hidden is used, assume the code has been annotated
1811 correspondingly for the symbols needed. */
1812 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1813 int fnord () __attribute__((visibility("default")));
1814 #endif
1815
1816 int fnord () { return 42; }
1817 int main ()
1818 {
1819 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1820 int status = $lt_dlunknown;
1821
1822 if (self)
1823 {
1824 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1825 else
1826 {
1827 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1828 else puts (dlerror ());
1829 }
1830 /* dlclose (self); */
1831 }
1832 else
1833 puts (dlerror ());
1834
1835 return status;
1836 }]
1837 _LT_EOF
1838 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1839 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1840 lt_status=$?
1841 case x$lt_status in
1842 x$lt_dlno_uscore) $1 ;;
1843 x$lt_dlneed_uscore) $2 ;;
1844 x$lt_dlunknown|x*) $3 ;;
1845 esac
1846 else :
1847 # compilation failed
1848 $3
1849 fi
1850 fi
1851 rm -fr conftest*
1852 ])# _LT_TRY_DLOPEN_SELF
1853
1854
1855 # LT_SYS_DLOPEN_SELF
1856 # ------------------
1857 AC_DEFUN([LT_SYS_DLOPEN_SELF],
1858 [m4_require([_LT_HEADER_DLFCN])dnl
1859 if test "x$enable_dlopen" != xyes; then
1860 enable_dlopen=unknown
1861 enable_dlopen_self=unknown
1862 enable_dlopen_self_static=unknown
1863 else
1864 lt_cv_dlopen=no
1865 lt_cv_dlopen_libs=
1866
1867 case $host_os in
1868 beos*)
1869 lt_cv_dlopen="load_add_on"
1870 lt_cv_dlopen_libs=
1871 lt_cv_dlopen_self=yes
1872 ;;
1873
1874 mingw* | pw32* | cegcc*)
1875 lt_cv_dlopen="LoadLibrary"
1876 lt_cv_dlopen_libs=
1877 ;;
1878
1879 cygwin*)
1880 lt_cv_dlopen="dlopen"
1881 lt_cv_dlopen_libs=
1882 ;;
1883
1884 darwin*)
1885 # if libdl is installed we need to link against it
1886 AC_CHECK_LIB([dl], [dlopen],
1887 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1888 lt_cv_dlopen="dyld"
1889 lt_cv_dlopen_libs=
1890 lt_cv_dlopen_self=yes
1891 ])
1892 ;;
1893
1894 *)
1895 AC_CHECK_FUNC([shl_load],
1896 [lt_cv_dlopen="shl_load"],
1897 [AC_CHECK_LIB([dld], [shl_load],
1898 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1899 [AC_CHECK_FUNC([dlopen],
1900 [lt_cv_dlopen="dlopen"],
1901 [AC_CHECK_LIB([dl], [dlopen],
1902 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1903 [AC_CHECK_LIB([svld], [dlopen],
1904 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1905 [AC_CHECK_LIB([dld], [dld_link],
1906 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1907 ])
1908 ])
1909 ])
1910 ])
1911 ])
1912 ;;
1913 esac
1914
1915 if test "x$lt_cv_dlopen" != xno; then
1916 enable_dlopen=yes
1917 else
1918 enable_dlopen=no
1919 fi
1920
1921 case $lt_cv_dlopen in
1922 dlopen)
1923 save_CPPFLAGS="$CPPFLAGS"
1924 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1925
1926 save_LDFLAGS="$LDFLAGS"
1927 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1928
1929 save_LIBS="$LIBS"
1930 LIBS="$lt_cv_dlopen_libs $LIBS"
1931
1932 AC_CACHE_CHECK([whether a program can dlopen itself],
1933 lt_cv_dlopen_self, [dnl
1934 _LT_TRY_DLOPEN_SELF(
1935 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1936 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1937 ])
1938
1939 if test "x$lt_cv_dlopen_self" = xyes; then
1940 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1941 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1942 lt_cv_dlopen_self_static, [dnl
1943 _LT_TRY_DLOPEN_SELF(
1944 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1945 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1946 ])
1947 fi
1948
1949 CPPFLAGS="$save_CPPFLAGS"
1950 LDFLAGS="$save_LDFLAGS"
1951 LIBS="$save_LIBS"
1952 ;;
1953 esac
1954
1955 case $lt_cv_dlopen_self in
1956 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1957 *) enable_dlopen_self=unknown ;;
1958 esac
1959
1960 case $lt_cv_dlopen_self_static in
1961 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1962 *) enable_dlopen_self_static=unknown ;;
1963 esac
1964 fi
1965 _LT_DECL([dlopen_support], [enable_dlopen], [0],
1966 [Whether dlopen is supported])
1967 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
1968 [Whether dlopen of programs is supported])
1969 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
1970 [Whether dlopen of statically linked programs is supported])
1971 ])# LT_SYS_DLOPEN_SELF
1972
1973 # Old name:
1974 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
1975 dnl aclocal-1.4 backwards compatibility:
1976 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
1977
1978
1979 # _LT_COMPILER_C_O([TAGNAME])
1980 # ---------------------------
1981 # Check to see if options -c and -o are simultaneously supported by compiler.
1982 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
1983 m4_defun([_LT_COMPILER_C_O],
1984 [m4_require([_LT_DECL_SED])dnl
1985 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1986 m4_require([_LT_TAG_COMPILER])dnl
1987 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1988 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1989 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1990 $RM -r conftest 2>/dev/null
1991 mkdir conftest
1992 cd conftest
1993 mkdir out
1994 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1995
1996 lt_compiler_flag="-o out/conftest2.$ac_objext"
1997 # Insert the option either (1) after the last *FLAGS variable, or
1998 # (2) before a word containing "conftest.", or (3) at the end.
1999 # Note that $ac_compile itself does not contain backslashes and begins
2000 # with a dollar sign (not a hyphen), so the echo should work correctly.
2001 lt_compile=`echo "$ac_compile" | $SED \
2002 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2003 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2004 -e 's:$: $lt_compiler_flag:'`
2005 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2006 (eval "$lt_compile" 2>out/conftest.err)
2007 ac_status=$?
2008 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2010 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2011 then
2012 # The compiler can only warn and ignore the option if not recognized
2013 # So say no if there are warnings
2014 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2015 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2016 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2017 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2018 fi
2019 fi
2020 chmod u+w . 2>&AS_MESSAGE_LOG_FD
2021 $RM conftest*
2022 # SGI C++ compiler will create directory out/ii_files/ for
2023 # template instantiation
2024 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2025 $RM out/* && rmdir out
2026 cd ..
2027 $RM -r conftest
2028 $RM conftest*
2029 ])
2030 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2031 [Does compiler simultaneously support -c and -o options?])
2032 ])# _LT_COMPILER_C_O
2033
2034
2035 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
2036 # ----------------------------------
2037 # Check to see if we can do hard links to lock some files if needed
2038 m4_defun([_LT_COMPILER_FILE_LOCKS],
2039 [m4_require([_LT_ENABLE_LOCK])dnl
2040 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2041 _LT_COMPILER_C_O([$1])
2042
2043 hard_links="nottested"
2044 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2045 # do not overwrite the value of need_locks provided by the user
2046 AC_MSG_CHECKING([if we can lock with hard links])
2047 hard_links=yes
2048 $RM conftest*
2049 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2050 touch conftest.a
2051 ln conftest.a conftest.b 2>&5 || hard_links=no
2052 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2053 AC_MSG_RESULT([$hard_links])
2054 if test "$hard_links" = no; then
2055 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2056 need_locks=warn
2057 fi
2058 else
2059 need_locks=no
2060 fi
2061 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2062 ])# _LT_COMPILER_FILE_LOCKS
2063
2064
2065 # _LT_CHECK_OBJDIR
2066 # ----------------
2067 m4_defun([_LT_CHECK_OBJDIR],
2068 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2069 [rm -f .libs 2>/dev/null
2070 mkdir .libs 2>/dev/null
2071 if test -d .libs; then
2072 lt_cv_objdir=.libs
2073 else
2074 # MS-DOS does not allow filenames that begin with a dot.
2075 lt_cv_objdir=_libs
2076 fi
2077 rmdir .libs 2>/dev/null])
2078 objdir=$lt_cv_objdir
2079 _LT_DECL([], [objdir], [0],
2080 [The name of the directory that contains temporary libtool files])dnl
2081 m4_pattern_allow([LT_OBJDIR])dnl
2082 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2083 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2084 ])# _LT_CHECK_OBJDIR
2085
2086
2087 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2088 # --------------------------------------
2089 # Check hardcoding attributes.
2090 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2091 [AC_MSG_CHECKING([how to hardcode library paths into programs])
2092 _LT_TAGVAR(hardcode_action, $1)=
2093 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2094 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2095 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2096
2097 # We can hardcode non-existent directories.
2098 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2099 # If the only mechanism to avoid hardcoding is shlibpath_var, we
2100 # have to relink, otherwise we might link with an installed library
2101 # when we should be linking with a yet-to-be-installed one
2102 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2103 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2104 # Linking always hardcodes the temporary library directory.
2105 _LT_TAGVAR(hardcode_action, $1)=relink
2106 else
2107 # We can link without hardcoding, and we can hardcode nonexisting dirs.
2108 _LT_TAGVAR(hardcode_action, $1)=immediate
2109 fi
2110 else
2111 # We cannot hardcode anything, or else we can only hardcode existing
2112 # directories.
2113 _LT_TAGVAR(hardcode_action, $1)=unsupported
2114 fi
2115 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2116
2117 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2118 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2119 # Fast installation is not supported
2120 enable_fast_install=no
2121 elif test "$shlibpath_overrides_runpath" = yes ||
2122 test "$enable_shared" = no; then
2123 # Fast installation is not necessary
2124 enable_fast_install=needless
2125 fi
2126 _LT_TAGDECL([], [hardcode_action], [0],
2127 [How to hardcode a shared library path into an executable])
2128 ])# _LT_LINKER_HARDCODE_LIBPATH
2129
2130
2131 # _LT_CMD_STRIPLIB
2132 # ----------------
2133 m4_defun([_LT_CMD_STRIPLIB],
2134 [m4_require([_LT_DECL_EGREP])
2135 striplib=
2136 old_striplib=
2137 AC_MSG_CHECKING([whether stripping libraries is possible])
2138 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2139 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2140 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2141 AC_MSG_RESULT([yes])
2142 else
2143 # FIXME - insert some real tests, host_os isn't really good enough
2144 case $host_os in
2145 darwin*)
2146 if test -n "$STRIP" ; then
2147 striplib="$STRIP -x"
2148 old_striplib="$STRIP -S"
2149 AC_MSG_RESULT([yes])
2150 else
2151 AC_MSG_RESULT([no])
2152 fi
2153 ;;
2154 *)
2155 AC_MSG_RESULT([no])
2156 ;;
2157 esac
2158 fi
2159 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2160 _LT_DECL([], [striplib], [1])
2161 ])# _LT_CMD_STRIPLIB
2162
2163
2164 # _LT_SYS_DYNAMIC_LINKER([TAG])
2165 # -----------------------------
2166 # PORTME Fill in your ld.so characteristics
2167 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2168 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2169 m4_require([_LT_DECL_EGREP])dnl
2170 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2171 m4_require([_LT_DECL_OBJDUMP])dnl
2172 m4_require([_LT_DECL_SED])dnl
2173 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2174 AC_MSG_CHECKING([dynamic linker characteristics])
2175 m4_if([$1],
2176 [], [
2177 if test "$GCC" = yes; then
2178 case $host_os in
2179 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2180 *) lt_awk_arg="/^libraries:/" ;;
2181 esac
2182 case $host_os in
2183 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2184 *) lt_sed_strip_eq="s,=/,/,g" ;;
2185 esac
2186 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2187 case $lt_search_path_spec in
2188 *\;*)
2189 # if the path contains ";" then we assume it to be the separator
2190 # otherwise default to the standard path separator (i.e. ":") - it is
2191 # assumed that no part of a normal pathname contains ";" but that should
2192 # okay in the real world where ";" in dirpaths is itself problematic.
2193 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2194 ;;
2195 *)
2196 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2197 ;;
2198 esac
2199 # Ok, now we have the path, separated by spaces, we can step through it
2200 # and add multilib dir if necessary.
2201 lt_tmp_lt_search_path_spec=
2202 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2203 for lt_sys_path in $lt_search_path_spec; do
2204 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2205 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2206 else
2207 test -d "$lt_sys_path" && \
2208 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2209 fi
2210 done
2211 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2212 BEGIN {RS=" "; FS="/|\n";} {
2213 lt_foo="";
2214 lt_count=0;
2215 for (lt_i = NF; lt_i > 0; lt_i--) {
2216 if ($lt_i != "" && $lt_i != ".") {
2217 if ($lt_i == "..") {
2218 lt_count++;
2219 } else {
2220 if (lt_count == 0) {
2221 lt_foo="/" $lt_i lt_foo;
2222 } else {
2223 lt_count--;
2224 }
2225 }
2226 }
2227 }
2228 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2229 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2230 }'`
2231 # AWK program above erroneously prepends '/' to C:/dos/paths
2232 # for these hosts.
2233 case $host_os in
2234 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2235 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2236 esac
2237 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2238 else
2239 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2240 fi])
2241 library_names_spec=
2242 libname_spec='lib$name'
2243 soname_spec=
2244 shrext_cmds=".so"
2245 postinstall_cmds=
2246 postuninstall_cmds=
2247 finish_cmds=
2248 finish_eval=
2249 shlibpath_var=
2250 shlibpath_overrides_runpath=unknown
2251 version_type=none
2252 dynamic_linker="$host_os ld.so"
2253 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2254 need_lib_prefix=unknown
2255 hardcode_into_libs=no
2256
2257 # when you set need_version to no, make sure it does not cause -set_version
2258 # flags to be left without arguments
2259 need_version=unknown
2260
2261 case $host_os in
2262 aix3*)
2263 version_type=linux # correct to gnu/linux during the next big refactor
2264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2265 shlibpath_var=LIBPATH
2266
2267 # AIX 3 has no versioning support, so we append a major version to the name.
2268 soname_spec='${libname}${release}${shared_ext}$major'
2269 ;;
2270
2271 aix[[4-9]]*)
2272 version_type=linux # correct to gnu/linux during the next big refactor
2273 need_lib_prefix=no
2274 need_version=no
2275 hardcode_into_libs=yes
2276 if test "$host_cpu" = ia64; then
2277 # AIX 5 supports IA64
2278 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2279 shlibpath_var=LD_LIBRARY_PATH
2280 else
2281 # With GCC up to 2.95.x, collect2 would create an import file
2282 # for dependence libraries. The import file would start with
2283 # the line `#! .'. This would cause the generated library to
2284 # depend on `.', always an invalid library. This was fixed in
2285 # development snapshots of GCC prior to 3.0.
2286 case $host_os in
2287 aix4 | aix4.[[01]] | aix4.[[01]].*)
2288 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2289 echo ' yes '
2290 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2291 :
2292 else
2293 can_build_shared=no
2294 fi
2295 ;;
2296 esac
2297 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2298 # soname into executable. Probably we can add versioning support to
2299 # collect2, so additional links can be useful in future.
2300 if test "$aix_use_runtimelinking" = yes; then
2301 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2302 # instead of lib<name>.a to let people know that these are not
2303 # typical AIX shared libraries.
2304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2305 else
2306 # We preserve .a as extension for shared libraries through AIX4.2
2307 # and later when we are not doing run time linking.
2308 library_names_spec='${libname}${release}.a $libname.a'
2309 soname_spec='${libname}${release}${shared_ext}$major'
2310 fi
2311 shlibpath_var=LIBPATH
2312 fi
2313 ;;
2314
2315 amigaos*)
2316 case $host_cpu in
2317 powerpc)
2318 # Since July 2007 AmigaOS4 officially supports .so libraries.
2319 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2321 ;;
2322 m68k)
2323 library_names_spec='$libname.ixlibrary $libname.a'
2324 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2325 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
2326 ;;
2327 esac
2328 ;;
2329
2330 beos*)
2331 library_names_spec='${libname}${shared_ext}'
2332 dynamic_linker="$host_os ld.so"
2333 shlibpath_var=LIBRARY_PATH
2334 ;;
2335
2336 bsdi[[45]]*)
2337 version_type=linux # correct to gnu/linux during the next big refactor
2338 need_version=no
2339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2340 soname_spec='${libname}${release}${shared_ext}$major'
2341 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2342 shlibpath_var=LD_LIBRARY_PATH
2343 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2344 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2345 # the default ld.so.conf also contains /usr/contrib/lib and
2346 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2347 # libtool to hard-code these into programs
2348 ;;
2349
2350 cygwin* | mingw* | pw32* | cegcc*)
2351 version_type=windows
2352 shrext_cmds=".dll"
2353 need_version=no
2354 need_lib_prefix=no
2355
2356 case $GCC,$cc_basename in
2357 yes,*)
2358 # gcc
2359 library_names_spec='$libname.dll.a'
2360 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2361 postinstall_cmds='base_file=`basename \${file}`~
2362 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2363 dldir=$destdir/`dirname \$dlpath`~
2364 test -d \$dldir || mkdir -p \$dldir~
2365 $install_prog $dir/$dlname \$dldir/$dlname~
2366 chmod a+x \$dldir/$dlname~
2367 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2368 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2369 fi'
2370 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2371 dlpath=$dir/\$dldll~
2372 $RM \$dlpath'
2373 shlibpath_overrides_runpath=yes
2374
2375 case $host_os in
2376 cygwin*)
2377 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2378 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2379 m4_if([$1], [],[
2380 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2381 ;;
2382 mingw* | cegcc*)
2383 # MinGW DLLs use traditional 'lib' prefix
2384 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2385 ;;
2386 pw32*)
2387 # pw32 DLLs use 'pw' prefix rather than 'lib'
2388 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2389 ;;
2390 esac
2391 dynamic_linker='Win32 ld.exe'
2392 ;;
2393
2394 *,cl*)
2395 # Native MSVC
2396 libname_spec='$name'
2397 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2398 library_names_spec='${libname}.dll.lib'
2399
2400 case $build_os in
2401 mingw*)
2402 sys_lib_search_path_spec=
2403 lt_save_ifs=$IFS
2404 IFS=';'
2405 for lt_path in $LIB
2406 do
2407 IFS=$lt_save_ifs
2408 # Let DOS variable expansion print the short 8.3 style file name.
2409 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2410 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2411 done
2412 IFS=$lt_save_ifs
2413 # Convert to MSYS style.
2414 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2415 ;;
2416 cygwin*)
2417 # Convert to unix form, then to dos form, then back to unix form
2418 # but this time dos style (no spaces!) so that the unix form looks
2419 # like /cygdrive/c/PROGRA~1:/cygdr...
2420 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2421 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2422 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2423 ;;
2424 *)
2425 sys_lib_search_path_spec="$LIB"
2426 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2427 # It is most probably a Windows format PATH.
2428 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2429 else
2430 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2431 fi
2432 # FIXME: find the short name or the path components, as spaces are
2433 # common. (e.g. "Program Files" -> "PROGRA~1")
2434 ;;
2435 esac
2436
2437 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2438 postinstall_cmds='base_file=`basename \${file}`~
2439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2440 dldir=$destdir/`dirname \$dlpath`~
2441 test -d \$dldir || mkdir -p \$dldir~
2442 $install_prog $dir/$dlname \$dldir/$dlname'
2443 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2444 dlpath=$dir/\$dldll~
2445 $RM \$dlpath'
2446 shlibpath_overrides_runpath=yes
2447 dynamic_linker='Win32 link.exe'
2448 ;;
2449
2450 *)
2451 # Assume MSVC wrapper
2452 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2453 dynamic_linker='Win32 ld.exe'
2454 ;;
2455 esac
2456 # FIXME: first we should search . and the directory the executable is in
2457 shlibpath_var=PATH
2458 ;;
2459
2460 darwin* | rhapsody*)
2461 dynamic_linker="$host_os dyld"
2462 version_type=darwin
2463 need_lib_prefix=no
2464 need_version=no
2465 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2466 soname_spec='${libname}${release}${major}$shared_ext'
2467 shlibpath_overrides_runpath=yes
2468 shlibpath_var=DYLD_LIBRARY_PATH
2469 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2470 m4_if([$1], [],[
2471 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2472 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2473 ;;
2474
2475 dgux*)
2476 version_type=linux # correct to gnu/linux during the next big refactor
2477 need_lib_prefix=no
2478 need_version=no
2479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2480 soname_spec='${libname}${release}${shared_ext}$major'
2481 shlibpath_var=LD_LIBRARY_PATH
2482 ;;
2483
2484 freebsd* | dragonfly*)
2485 # DragonFly does not have aout. When/if they implement a new
2486 # versioning mechanism, adjust this.
2487 if test -x /usr/bin/objformat; then
2488 objformat=`/usr/bin/objformat`
2489 else
2490 case $host_os in
2491 freebsd[[23]].*) objformat=aout ;;
2492 *) objformat=elf ;;
2493 esac
2494 fi
2495 version_type=freebsd-$objformat
2496 case $version_type in
2497 freebsd-elf*)
2498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2499 need_version=no
2500 need_lib_prefix=no
2501 ;;
2502 freebsd-*)
2503 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2504 need_version=yes
2505 ;;
2506 esac
2507 shlibpath_var=LD_LIBRARY_PATH
2508 case $host_os in
2509 freebsd2.*)
2510 shlibpath_overrides_runpath=yes
2511 ;;
2512 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2513 shlibpath_overrides_runpath=yes
2514 hardcode_into_libs=yes
2515 ;;
2516 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2517 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2518 shlibpath_overrides_runpath=no
2519 hardcode_into_libs=yes
2520 ;;
2521 *) # from 4.6 on, and DragonFly
2522 shlibpath_overrides_runpath=yes
2523 hardcode_into_libs=yes
2524 ;;
2525 esac
2526 ;;
2527
2528 haiku*)
2529 version_type=linux # correct to gnu/linux during the next big refactor
2530 need_lib_prefix=no
2531 need_version=no
2532 dynamic_linker="$host_os runtime_loader"
2533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2534 soname_spec='${libname}${release}${shared_ext}$major'
2535 shlibpath_var=LIBRARY_PATH
2536 shlibpath_overrides_runpath=yes
2537 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2538 hardcode_into_libs=yes
2539 ;;
2540
2541 hpux9* | hpux10* | hpux11*)
2542 # Give a soname corresponding to the major version so that dld.sl refuses to
2543 # link against other versions.
2544 version_type=sunos
2545 need_lib_prefix=no
2546 need_version=no
2547 case $host_cpu in
2548 ia64*)
2549 shrext_cmds='.so'
2550 hardcode_into_libs=yes
2551 dynamic_linker="$host_os dld.so"
2552 shlibpath_var=LD_LIBRARY_PATH
2553 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2555 soname_spec='${libname}${release}${shared_ext}$major'
2556 if test "X$HPUX_IA64_MODE" = X32; then
2557 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2558 else
2559 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2560 fi
2561 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2562 ;;
2563 hppa*64*)
2564 shrext_cmds='.sl'
2565 hardcode_into_libs=yes
2566 dynamic_linker="$host_os dld.sl"
2567 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2568 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2570 soname_spec='${libname}${release}${shared_ext}$major'
2571 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2572 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2573 ;;
2574 *)
2575 shrext_cmds='.sl'
2576 dynamic_linker="$host_os dld.sl"
2577 shlibpath_var=SHLIB_PATH
2578 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2580 soname_spec='${libname}${release}${shared_ext}$major'
2581 ;;
2582 esac
2583 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2584 postinstall_cmds='chmod 555 $lib'
2585 # or fails outright, so override atomically:
2586 install_override_mode=555
2587 ;;
2588
2589 interix[[3-9]]*)
2590 version_type=linux # correct to gnu/linux during the next big refactor
2591 need_lib_prefix=no
2592 need_version=no
2593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2594 soname_spec='${libname}${release}${shared_ext}$major'
2595 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2596 shlibpath_var=LD_LIBRARY_PATH
2597 shlibpath_overrides_runpath=no
2598 hardcode_into_libs=yes
2599 ;;
2600
2601 irix5* | irix6* | nonstopux*)
2602 case $host_os in
2603 nonstopux*) version_type=nonstopux ;;
2604 *)
2605 if test "$lt_cv_prog_gnu_ld" = yes; then
2606 version_type=linux # correct to gnu/linux during the next big refactor
2607 else
2608 version_type=irix
2609 fi ;;
2610 esac
2611 need_lib_prefix=no
2612 need_version=no
2613 soname_spec='${libname}${release}${shared_ext}$major'
2614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2615 case $host_os in
2616 irix5* | nonstopux*)
2617 libsuff= shlibsuff=
2618 ;;
2619 *)
2620 case $LD in # libtool.m4 will add one of these switches to LD
2621 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2622 libsuff= shlibsuff= libmagic=32-bit;;
2623 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2624 libsuff=32 shlibsuff=N32 libmagic=N32;;
2625 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2626 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2627 *) libsuff= shlibsuff= libmagic=never-match;;
2628 esac
2629 ;;
2630 esac
2631 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2632 shlibpath_overrides_runpath=no
2633 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2634 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2635 hardcode_into_libs=yes
2636 ;;
2637
2638 # No shared lib support for Linux oldld, aout, or coff.
2639 linux*oldld* | linux*aout* | linux*coff*)
2640 dynamic_linker=no
2641 ;;
2642
2643 # This must be glibc/ELF.
2644 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
2645 version_type=linux # correct to gnu/linux during the next big refactor
2646 need_lib_prefix=no
2647 need_version=no
2648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2649 soname_spec='${libname}${release}${shared_ext}$major'
2650 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2651 shlibpath_var=LD_LIBRARY_PATH
2652 shlibpath_overrides_runpath=no
2653
2654 # Some binutils ld are patched to set DT_RUNPATH
2655 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2656 [lt_cv_shlibpath_overrides_runpath=no
2657 save_LDFLAGS=$LDFLAGS
2658 save_libdir=$libdir
2659 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2660 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2661 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2662 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2663 [lt_cv_shlibpath_overrides_runpath=yes])])
2664 LDFLAGS=$save_LDFLAGS
2665 libdir=$save_libdir
2666 ])
2667 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2668
2669 # This implies no fast_install, which is unacceptable.
2670 # Some rework will be needed to allow for fast_install
2671 # before this can be enabled.
2672 hardcode_into_libs=yes
2673
2674 # Append ld.so.conf contents to the search path
2675 if test -f /etc/ld.so.conf; then
2676 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
2677 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2678 fi
2679
2680 # We used to test for /lib/ld.so.1 and disable shared libraries on
2681 # powerpc, because MkLinux only supported shared libraries with the
2682 # GNU dynamic linker. Since this was broken with cross compilers,
2683 # most powerpc-linux boxes support dynamic linking these days and
2684 # people can always --disable-shared, the test was removed, and we
2685 # assume the GNU/Linux dynamic linker is in use.
2686 dynamic_linker='GNU/Linux ld.so'
2687 ;;
2688
2689 netbsdelf*-gnu)
2690 version_type=linux
2691 need_lib_prefix=no
2692 need_version=no
2693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2694 soname_spec='${libname}${release}${shared_ext}$major'
2695 shlibpath_var=LD_LIBRARY_PATH
2696 shlibpath_overrides_runpath=no
2697 hardcode_into_libs=yes
2698 dynamic_linker='NetBSD ld.elf_so'
2699 ;;
2700
2701 netbsd*)
2702 version_type=sunos
2703 need_lib_prefix=no
2704 need_version=no
2705 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2708 dynamic_linker='NetBSD (a.out) ld.so'
2709 else
2710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2711 soname_spec='${libname}${release}${shared_ext}$major'
2712 dynamic_linker='NetBSD ld.elf_so'
2713 fi
2714 shlibpath_var=LD_LIBRARY_PATH
2715 shlibpath_overrides_runpath=yes
2716 hardcode_into_libs=yes
2717 ;;
2718
2719 newsos6)
2720 version_type=linux # correct to gnu/linux during the next big refactor
2721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2722 shlibpath_var=LD_LIBRARY_PATH
2723 shlibpath_overrides_runpath=yes
2724 ;;
2725
2726 *nto* | *qnx*)
2727 version_type=qnx
2728 need_lib_prefix=no
2729 need_version=no
2730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2731 soname_spec='${libname}${release}${shared_ext}$major'
2732 shlibpath_var=LD_LIBRARY_PATH
2733 shlibpath_overrides_runpath=no
2734 hardcode_into_libs=yes
2735 dynamic_linker='ldqnx.so'
2736 ;;
2737
2738 openbsd*)
2739 version_type=sunos
2740 sys_lib_dlsearch_path_spec="/usr/lib"
2741 need_lib_prefix=no
2742 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2743 case $host_os in
2744 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2745 *) need_version=no ;;
2746 esac
2747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2749 shlibpath_var=LD_LIBRARY_PATH
2750 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2751 case $host_os in
2752 openbsd2.[[89]] | openbsd2.[[89]].*)
2753 shlibpath_overrides_runpath=no
2754 ;;
2755 *)
2756 shlibpath_overrides_runpath=yes
2757 ;;
2758 esac
2759 else
2760 shlibpath_overrides_runpath=yes
2761 fi
2762 ;;
2763
2764 os2*)
2765 libname_spec='$name'
2766 shrext_cmds=".dll"
2767 need_lib_prefix=no
2768 library_names_spec='$libname${shared_ext} $libname.a'
2769 dynamic_linker='OS/2 ld.exe'
2770 shlibpath_var=LIBPATH
2771 ;;
2772
2773 osf3* | osf4* | osf5*)
2774 version_type=osf
2775 need_lib_prefix=no
2776 need_version=no
2777 soname_spec='${libname}${release}${shared_ext}$major'
2778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2779 shlibpath_var=LD_LIBRARY_PATH
2780 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2781 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2782 ;;
2783
2784 rdos*)
2785 dynamic_linker=no
2786 ;;
2787
2788 solaris*)
2789 version_type=linux # correct to gnu/linux during the next big refactor
2790 need_lib_prefix=no
2791 need_version=no
2792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2793 soname_spec='${libname}${release}${shared_ext}$major'
2794 shlibpath_var=LD_LIBRARY_PATH
2795 shlibpath_overrides_runpath=yes
2796 hardcode_into_libs=yes
2797 # ldd complains unless libraries are executable
2798 postinstall_cmds='chmod +x $lib'
2799 ;;
2800
2801 sunos4*)
2802 version_type=sunos
2803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2804 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2805 shlibpath_var=LD_LIBRARY_PATH
2806 shlibpath_overrides_runpath=yes
2807 if test "$with_gnu_ld" = yes; then
2808 need_lib_prefix=no
2809 fi
2810 need_version=yes
2811 ;;
2812
2813 sysv4 | sysv4.3*)
2814 version_type=linux # correct to gnu/linux during the next big refactor
2815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2816 soname_spec='${libname}${release}${shared_ext}$major'
2817 shlibpath_var=LD_LIBRARY_PATH
2818 case $host_vendor in
2819 sni)
2820 shlibpath_overrides_runpath=no
2821 need_lib_prefix=no
2822 runpath_var=LD_RUN_PATH
2823 ;;
2824 siemens)
2825 need_lib_prefix=no
2826 ;;
2827 motorola)
2828 need_lib_prefix=no
2829 need_version=no
2830 shlibpath_overrides_runpath=no
2831 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2832 ;;
2833 esac
2834 ;;
2835
2836 sysv4*MP*)
2837 if test -d /usr/nec ;then
2838 version_type=linux # correct to gnu/linux during the next big refactor
2839 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2840 soname_spec='$libname${shared_ext}.$major'
2841 shlibpath_var=LD_LIBRARY_PATH
2842 fi
2843 ;;
2844
2845 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2846 version_type=freebsd-elf
2847 need_lib_prefix=no
2848 need_version=no
2849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2850 soname_spec='${libname}${release}${shared_ext}$major'
2851 shlibpath_var=LD_LIBRARY_PATH
2852 shlibpath_overrides_runpath=yes
2853 hardcode_into_libs=yes
2854 if test "$with_gnu_ld" = yes; then
2855 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2856 else
2857 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2858 case $host_os in
2859 sco3.2v5*)
2860 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2861 ;;
2862 esac
2863 fi
2864 sys_lib_dlsearch_path_spec='/usr/lib'
2865 ;;
2866
2867 tpf*)
2868 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2869 version_type=linux # correct to gnu/linux during the next big refactor
2870 need_lib_prefix=no
2871 need_version=no
2872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2873 shlibpath_var=LD_LIBRARY_PATH
2874 shlibpath_overrides_runpath=no
2875 hardcode_into_libs=yes
2876 ;;
2877
2878 uts4*)
2879 version_type=linux # correct to gnu/linux during the next big refactor
2880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2881 soname_spec='${libname}${release}${shared_ext}$major'
2882 shlibpath_var=LD_LIBRARY_PATH
2883 ;;
2884
2885 *)
2886 dynamic_linker=no
2887 ;;
2888 esac
2889 AC_MSG_RESULT([$dynamic_linker])
2890 test "$dynamic_linker" = no && can_build_shared=no
2891
2892 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2893 if test "$GCC" = yes; then
2894 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2895 fi
2896
2897 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2898 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2899 fi
2900 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2901 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2902 fi
2903
2904 _LT_DECL([], [variables_saved_for_relink], [1],
2905 [Variables whose values should be saved in libtool wrapper scripts and
2906 restored at link time])
2907 _LT_DECL([], [need_lib_prefix], [0],
2908 [Do we need the "lib" prefix for modules?])
2909 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
2910 _LT_DECL([], [version_type], [0], [Library versioning type])
2911 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
2912 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
2913 _LT_DECL([], [shlibpath_overrides_runpath], [0],
2914 [Is shlibpath searched before the hard-coded library search path?])
2915 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
2916 _LT_DECL([], [library_names_spec], [1],
2917 [[List of archive names. First name is the real one, the rest are links.
2918 The last name is the one that the linker finds with -lNAME]])
2919 _LT_DECL([], [soname_spec], [1],
2920 [[The coded name of the library, if different from the real name]])
2921 _LT_DECL([], [install_override_mode], [1],
2922 [Permission mode override for installation of shared libraries])
2923 _LT_DECL([], [postinstall_cmds], [2],
2924 [Command to use after installation of a shared archive])
2925 _LT_DECL([], [postuninstall_cmds], [2],
2926 [Command to use after uninstallation of a shared archive])
2927 _LT_DECL([], [finish_cmds], [2],
2928 [Commands used to finish a libtool library installation in a directory])
2929 _LT_DECL([], [finish_eval], [1],
2930 [[As "finish_cmds", except a single script fragment to be evaled but
2931 not shown]])
2932 _LT_DECL([], [hardcode_into_libs], [0],
2933 [Whether we should hardcode library paths into libraries])
2934 _LT_DECL([], [sys_lib_search_path_spec], [2],
2935 [Compile-time system search path for libraries])
2936 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2937 [Run-time system search path for libraries])
2938 ])# _LT_SYS_DYNAMIC_LINKER
2939
2940
2941 # _LT_PATH_TOOL_PREFIX(TOOL)
2942 # --------------------------
2943 # find a file program which can recognize shared library
2944 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
2945 [m4_require([_LT_DECL_EGREP])dnl
2946 AC_MSG_CHECKING([for $1])
2947 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2948 [case $MAGIC_CMD in
2949 [[\\/*] | ?:[\\/]*])
2950 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2951 ;;
2952 *)
2953 lt_save_MAGIC_CMD="$MAGIC_CMD"
2954 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2955 dnl $ac_dummy forces splitting on constant user-supplied paths.
2956 dnl POSIX.2 word splitting is done only on the output of word expansions,
2957 dnl not every word. This closes a longstanding sh security hole.
2958 ac_dummy="m4_if([$2], , $PATH, [$2])"
2959 for ac_dir in $ac_dummy; do
2960 IFS="$lt_save_ifs"
2961 test -z "$ac_dir" && ac_dir=.
2962 if test -f $ac_dir/$1; then
2963 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2964 if test -n "$file_magic_test_file"; then
2965 case $deplibs_check_method in
2966 "file_magic "*)
2967 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2968 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2969 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2970 $EGREP "$file_magic_regex" > /dev/null; then
2971 :
2972 else
2973 cat <<_LT_EOF 1>&2
2974
2975 *** Warning: the command libtool uses to detect shared libraries,
2976 *** $file_magic_cmd, produces output that libtool cannot recognize.
2977 *** The result is that libtool may fail to recognize shared libraries
2978 *** as such. This will affect the creation of libtool libraries that
2979 *** depend on shared libraries, but programs linked with such libtool
2980 *** libraries will work regardless of this problem. Nevertheless, you
2981 *** may want to report the problem to your system manager and/or to
2982 *** bug-libtool@gnu.org
2983
2984 _LT_EOF
2985 fi ;;
2986 esac
2987 fi
2988 break
2989 fi
2990 done
2991 IFS="$lt_save_ifs"
2992 MAGIC_CMD="$lt_save_MAGIC_CMD"
2993 ;;
2994 esac])
2995 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2996 if test -n "$MAGIC_CMD"; then
2997 AC_MSG_RESULT($MAGIC_CMD)
2998 else
2999 AC_MSG_RESULT(no)
3000 fi
3001 _LT_DECL([], [MAGIC_CMD], [0],
3002 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3003 ])# _LT_PATH_TOOL_PREFIX
3004
3005 # Old name:
3006 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3007 dnl aclocal-1.4 backwards compatibility:
3008 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3009
3010
3011 # _LT_PATH_MAGIC
3012 # --------------
3013 # find a file program which can recognize a shared library
3014 m4_defun([_LT_PATH_MAGIC],
3015 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3016 if test -z "$lt_cv_path_MAGIC_CMD"; then
3017 if test -n "$ac_tool_prefix"; then
3018 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3019 else
3020 MAGIC_CMD=:
3021 fi
3022 fi
3023 ])# _LT_PATH_MAGIC
3024
3025
3026 # LT_PATH_LD
3027 # ----------
3028 # find the pathname to the GNU or non-GNU linker
3029 AC_DEFUN([LT_PATH_LD],
3030 [AC_REQUIRE([AC_PROG_CC])dnl
3031 AC_REQUIRE([AC_CANONICAL_HOST])dnl
3032 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3033 m4_require([_LT_DECL_SED])dnl
3034 m4_require([_LT_DECL_EGREP])dnl
3035 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3036
3037 AC_ARG_WITH([gnu-ld],
3038 [AS_HELP_STRING([--with-gnu-ld],
3039 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3040 [test "$withval" = no || with_gnu_ld=yes],
3041 [with_gnu_ld=no])dnl
3042
3043 ac_prog=ld
3044 if test "$GCC" = yes; then
3045 # Check if gcc -print-prog-name=ld gives a path.
3046 AC_MSG_CHECKING([for ld used by $CC])
3047 case $host in
3048 *-*-mingw*)
3049 # gcc leaves a trailing carriage return which upsets mingw
3050 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3051 *)
3052 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3053 esac
3054 case $ac_prog in
3055 # Accept absolute paths.
3056 [[\\/]]* | ?:[[\\/]]*)
3057 re_direlt='/[[^/]][[^/]]*/\.\./'
3058 # Canonicalize the pathname of ld
3059 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3060 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3061 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3062 done
3063 test -z "$LD" && LD="$ac_prog"
3064 ;;
3065 "")
3066 # If it fails, then pretend we aren't using GCC.
3067 ac_prog=ld
3068 ;;
3069 *)
3070 # If it is relative, then search for the first ld in PATH.
3071 with_gnu_ld=unknown
3072 ;;
3073 esac
3074 elif test "$with_gnu_ld" = yes; then
3075 AC_MSG_CHECKING([for GNU ld])
3076 else
3077 AC_MSG_CHECKING([for non-GNU ld])
3078 fi
3079 AC_CACHE_VAL(lt_cv_path_LD,
3080 [if test -z "$LD"; then
3081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3082 for ac_dir in $PATH; do
3083 IFS="$lt_save_ifs"
3084 test -z "$ac_dir" && ac_dir=.
3085 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3086 lt_cv_path_LD="$ac_dir/$ac_prog"
3087 # Check to see if the program is GNU ld. I'd rather use --version,
3088 # but apparently some variants of GNU ld only accept -v.
3089 # Break only if it was the GNU/non-GNU ld that we prefer.
3090 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3091 *GNU* | *'with BFD'*)
3092 test "$with_gnu_ld" != no && break
3093 ;;
3094 *)
3095 test "$with_gnu_ld" != yes && break
3096 ;;
3097 esac
3098 fi
3099 done
3100 IFS="$lt_save_ifs"
3101 else
3102 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3103 fi])
3104 LD="$lt_cv_path_LD"
3105 if test -n "$LD"; then
3106 AC_MSG_RESULT($LD)
3107 else
3108 AC_MSG_RESULT(no)
3109 fi
3110 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3111 _LT_PATH_LD_GNU
3112 AC_SUBST([LD])
3113
3114 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3115 ])# LT_PATH_LD
3116
3117 # Old names:
3118 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3119 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3120 dnl aclocal-1.4 backwards compatibility:
3121 dnl AC_DEFUN([AM_PROG_LD], [])
3122 dnl AC_DEFUN([AC_PROG_LD], [])
3123
3124
3125 # _LT_PATH_LD_GNU
3126 #- --------------
3127 m4_defun([_LT_PATH_LD_GNU],
3128 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3129 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3130 case `$LD -v 2>&1 </dev/null` in
3131 *GNU* | *'with BFD'*)
3132 lt_cv_prog_gnu_ld=yes
3133 ;;
3134 *)
3135 lt_cv_prog_gnu_ld=no
3136 ;;
3137 esac])
3138 with_gnu_ld=$lt_cv_prog_gnu_ld
3139 ])# _LT_PATH_LD_GNU
3140
3141
3142 # _LT_CMD_RELOAD
3143 # --------------
3144 # find reload flag for linker
3145 # -- PORTME Some linkers may need a different reload flag.
3146 m4_defun([_LT_CMD_RELOAD],
3147 [AC_CACHE_CHECK([for $LD option to reload object files],
3148 lt_cv_ld_reload_flag,
3149 [lt_cv_ld_reload_flag='-r'])
3150 reload_flag=$lt_cv_ld_reload_flag
3151 case $reload_flag in
3152 "" | " "*) ;;
3153 *) reload_flag=" $reload_flag" ;;
3154 esac
3155 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3156 case $host_os in
3157 cygwin* | mingw* | pw32* | cegcc*)
3158 if test "$GCC" != yes; then
3159 reload_cmds=false
3160 fi
3161 ;;
3162 darwin*)
3163 if test "$GCC" = yes; then
3164 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3165 else
3166 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3167 fi
3168 ;;
3169 esac
3170 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3171 _LT_TAGDECL([], [reload_cmds], [2])dnl
3172 ])# _LT_CMD_RELOAD
3173
3174
3175 # _LT_CHECK_MAGIC_METHOD
3176 # ----------------------
3177 # how to check for library dependencies
3178 # -- PORTME fill in with the dynamic library characteristics
3179 m4_defun([_LT_CHECK_MAGIC_METHOD],
3180 [m4_require([_LT_DECL_EGREP])
3181 m4_require([_LT_DECL_OBJDUMP])
3182 AC_CACHE_CHECK([how to recognize dependent libraries],
3183 lt_cv_deplibs_check_method,
3184 [lt_cv_file_magic_cmd='$MAGIC_CMD'
3185 lt_cv_file_magic_test_file=
3186 lt_cv_deplibs_check_method='unknown'
3187 # Need to set the preceding variable on all platforms that support
3188 # interlibrary dependencies.
3189 # 'none' -- dependencies not supported.
3190 # `unknown' -- same as none, but documents that we really don't know.
3191 # 'pass_all' -- all dependencies passed with no checks.
3192 # 'test_compile' -- check by making test program.
3193 # 'file_magic [[regex]]' -- check by looking for files in library path
3194 # which responds to the $file_magic_cmd with a given extended regex.
3195 # If you have `file' or equivalent on your system and you're not sure
3196 # whether `pass_all' will *always* work, you probably want this one.
3197
3198 case $host_os in
3199 aix[[4-9]]*)
3200 lt_cv_deplibs_check_method=pass_all
3201 ;;
3202
3203 beos*)
3204 lt_cv_deplibs_check_method=pass_all
3205 ;;
3206
3207 bsdi[[45]]*)
3208 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3209 lt_cv_file_magic_cmd='/usr/bin/file -L'
3210 lt_cv_file_magic_test_file=/shlib/libc.so
3211 ;;
3212
3213 cygwin*)
3214 # func_win32_libid is a shell function defined in ltmain.sh
3215 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3216 lt_cv_file_magic_cmd='func_win32_libid'
3217 ;;
3218
3219 mingw* | pw32*)
3220 # Base MSYS/MinGW do not provide the 'file' command needed by
3221 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3222 # unless we find 'file', for example because we are cross-compiling.
3223 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3224 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3225 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3226 lt_cv_file_magic_cmd='func_win32_libid'
3227 else
3228 # Keep this pattern in sync with the one in func_win32_libid.
3229 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3230 lt_cv_file_magic_cmd='$OBJDUMP -f'
3231 fi
3232 ;;
3233
3234 cegcc*)
3235 # use the weaker test based on 'objdump'. See mingw*.
3236 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3237 lt_cv_file_magic_cmd='$OBJDUMP -f'
3238 ;;
3239
3240 darwin* | rhapsody*)
3241 lt_cv_deplibs_check_method=pass_all
3242 ;;
3243
3244 freebsd* | dragonfly*)
3245 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3246 case $host_cpu in
3247 i*86 )
3248 # Not sure whether the presence of OpenBSD here was a mistake.
3249 # Let's accept both of them until this is cleared up.
3250 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3251 lt_cv_file_magic_cmd=/usr/bin/file
3252 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3253 ;;
3254 esac
3255 else
3256 lt_cv_deplibs_check_method=pass_all
3257 fi
3258 ;;
3259
3260 haiku*)
3261 lt_cv_deplibs_check_method=pass_all
3262 ;;
3263
3264 hpux10.20* | hpux11*)
3265 lt_cv_file_magic_cmd=/usr/bin/file
3266 case $host_cpu in
3267 ia64*)
3268 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3269 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3270 ;;
3271 hppa*64*)
3272 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
3273 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3274 ;;
3275 *)
3276 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3277 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3278 ;;
3279 esac
3280 ;;
3281
3282 interix[[3-9]]*)
3283 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3284 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3285 ;;
3286
3287 irix5* | irix6* | nonstopux*)
3288 case $LD in
3289 *-32|*"-32 ") libmagic=32-bit;;
3290 *-n32|*"-n32 ") libmagic=N32;;
3291 *-64|*"-64 ") libmagic=64-bit;;
3292 *) libmagic=never-match;;
3293 esac
3294 lt_cv_deplibs_check_method=pass_all
3295 ;;
3296
3297 # This must be glibc/ELF.
3298 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3299 lt_cv_deplibs_check_method=pass_all
3300 ;;
3301
3302 netbsd* | netbsdelf*-gnu)
3303 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3304 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3305 else
3306 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3307 fi
3308 ;;
3309
3310 newos6*)
3311 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3312 lt_cv_file_magic_cmd=/usr/bin/file
3313 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3314 ;;
3315
3316 *nto* | *qnx*)
3317 lt_cv_deplibs_check_method=pass_all
3318 ;;
3319
3320 openbsd*)
3321 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3322 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3323 else
3324 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3325 fi
3326 ;;
3327
3328 osf3* | osf4* | osf5*)
3329 lt_cv_deplibs_check_method=pass_all
3330 ;;
3331
3332 rdos*)
3333 lt_cv_deplibs_check_method=pass_all
3334 ;;
3335
3336 solaris*)
3337 lt_cv_deplibs_check_method=pass_all
3338 ;;
3339
3340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3341 lt_cv_deplibs_check_method=pass_all
3342 ;;
3343
3344 sysv4 | sysv4.3*)
3345 case $host_vendor in
3346 motorola)
3347 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]]'
3348 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3349 ;;
3350 ncr)
3351 lt_cv_deplibs_check_method=pass_all
3352 ;;
3353 sequent)
3354 lt_cv_file_magic_cmd='/bin/file'
3355 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3356 ;;
3357 sni)
3358 lt_cv_file_magic_cmd='/bin/file'
3359 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3360 lt_cv_file_magic_test_file=/lib/libc.so
3361 ;;
3362 siemens)
3363 lt_cv_deplibs_check_method=pass_all
3364 ;;
3365 pc)
3366 lt_cv_deplibs_check_method=pass_all
3367 ;;
3368 esac
3369 ;;
3370
3371 tpf*)
3372 lt_cv_deplibs_check_method=pass_all
3373 ;;
3374 esac
3375 ])
3376
3377 file_magic_glob=
3378 want_nocaseglob=no
3379 if test "$build" = "$host"; then
3380 case $host_os in
3381 mingw* | pw32*)
3382 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3383 want_nocaseglob=yes
3384 else
3385 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3386 fi
3387 ;;
3388 esac
3389 fi
3390
3391 file_magic_cmd=$lt_cv_file_magic_cmd
3392 deplibs_check_method=$lt_cv_deplibs_check_method
3393 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3394
3395 _LT_DECL([], [deplibs_check_method], [1],
3396 [Method to check whether dependent libraries are shared objects])
3397 _LT_DECL([], [file_magic_cmd], [1],
3398 [Command to use when deplibs_check_method = "file_magic"])
3399 _LT_DECL([], [file_magic_glob], [1],
3400 [How to find potential files when deplibs_check_method = "file_magic"])
3401 _LT_DECL([], [want_nocaseglob], [1],
3402 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3403 ])# _LT_CHECK_MAGIC_METHOD
3404
3405
3406 # LT_PATH_NM
3407 # ----------
3408 # find the pathname to a BSD- or MS-compatible name lister
3409 AC_DEFUN([LT_PATH_NM],
3410 [AC_REQUIRE([AC_PROG_CC])dnl
3411 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3412 [if test -n "$NM"; then
3413 # Let the user override the test.
3414 lt_cv_path_NM="$NM"
3415 else
3416 lt_nm_to_check="${ac_tool_prefix}nm"
3417 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3418 lt_nm_to_check="$lt_nm_to_check nm"
3419 fi
3420 for lt_tmp_nm in $lt_nm_to_check; do
3421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3422 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3423 IFS="$lt_save_ifs"
3424 test -z "$ac_dir" && ac_dir=.
3425 tmp_nm="$ac_dir/$lt_tmp_nm"
3426 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3427 # Check to see if the nm accepts a BSD-compat flag.
3428 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3429 # nm: unknown option "B" ignored
3430 # Tru64's nm complains that /dev/null is an invalid object file
3431 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3432 */dev/null* | *'Invalid file or object type'*)
3433 lt_cv_path_NM="$tmp_nm -B"
3434 break
3435 ;;
3436 *)
3437 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3438 */dev/null*)
3439 lt_cv_path_NM="$tmp_nm -p"
3440 break
3441 ;;
3442 *)
3443 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3444 continue # so that we can try to find one that supports BSD flags
3445 ;;
3446 esac
3447 ;;
3448 esac
3449 fi
3450 done
3451 IFS="$lt_save_ifs"
3452 done
3453 : ${lt_cv_path_NM=no}
3454 fi])
3455 if test "$lt_cv_path_NM" != "no"; then
3456 NM="$lt_cv_path_NM"
3457 else
3458 # Didn't find any BSD compatible name lister, look for dumpbin.
3459 if test -n "$DUMPBIN"; then :
3460 # Let the user override the test.
3461 else
3462 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3463 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3464 *COFF*)
3465 DUMPBIN="$DUMPBIN -symbols"
3466 ;;
3467 *)
3468 DUMPBIN=:
3469 ;;
3470 esac
3471 fi
3472 AC_SUBST([DUMPBIN])
3473 if test "$DUMPBIN" != ":"; then
3474 NM="$DUMPBIN"
3475 fi
3476 fi
3477 test -z "$NM" && NM=nm
3478 AC_SUBST([NM])
3479 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3480
3481 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3482 [lt_cv_nm_interface="BSD nm"
3483 echo "int some_variable = 0;" > conftest.$ac_ext
3484 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3485 (eval "$ac_compile" 2>conftest.err)
3486 cat conftest.err >&AS_MESSAGE_LOG_FD
3487 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3488 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3489 cat conftest.err >&AS_MESSAGE_LOG_FD
3490 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3491 cat conftest.out >&AS_MESSAGE_LOG_FD
3492 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3493 lt_cv_nm_interface="MS dumpbin"
3494 fi
3495 rm -f conftest*])
3496 ])# LT_PATH_NM
3497
3498 # Old names:
3499 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3500 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3501 dnl aclocal-1.4 backwards compatibility:
3502 dnl AC_DEFUN([AM_PROG_NM], [])
3503 dnl AC_DEFUN([AC_PROG_NM], [])
3504
3505 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3506 # --------------------------------
3507 # how to determine the name of the shared library
3508 # associated with a specific link library.
3509 # -- PORTME fill in with the dynamic library characteristics
3510 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3511 [m4_require([_LT_DECL_EGREP])
3512 m4_require([_LT_DECL_OBJDUMP])
3513 m4_require([_LT_DECL_DLLTOOL])
3514 AC_CACHE_CHECK([how to associate runtime and link libraries],
3515 lt_cv_sharedlib_from_linklib_cmd,
3516 [lt_cv_sharedlib_from_linklib_cmd='unknown'
3517
3518 case $host_os in
3519 cygwin* | mingw* | pw32* | cegcc*)
3520 # two different shell functions defined in ltmain.sh
3521 # decide which to use based on capabilities of $DLLTOOL
3522 case `$DLLTOOL --help 2>&1` in
3523 *--identify-strict*)
3524 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3525 ;;
3526 *)
3527 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3528 ;;
3529 esac
3530 ;;
3531 *)
3532 # fallback: assume linklib IS sharedlib
3533 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3534 ;;
3535 esac
3536 ])
3537 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3538 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3539
3540 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3541 [Command to associate shared and link libraries])
3542 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3543
3544
3545 # _LT_PATH_MANIFEST_TOOL
3546 # ----------------------
3547 # locate the manifest tool
3548 m4_defun([_LT_PATH_MANIFEST_TOOL],
3549 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3550 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3551 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3552 [lt_cv_path_mainfest_tool=no
3553 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3554 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3555 cat conftest.err >&AS_MESSAGE_LOG_FD
3556 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3557 lt_cv_path_mainfest_tool=yes
3558 fi
3559 rm -f conftest*])
3560 if test "x$lt_cv_path_mainfest_tool" != xyes; then
3561 MANIFEST_TOOL=:
3562 fi
3563 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3564 ])# _LT_PATH_MANIFEST_TOOL
3565
3566
3567 # LT_LIB_M
3568 # --------
3569 # check for math library
3570 AC_DEFUN([LT_LIB_M],
3571 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3572 LIBM=
3573 case $host in
3574 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3575 # These system don't have libm, or don't need it
3576 ;;
3577 *-ncr-sysv4.3*)
3578 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3579 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3580 ;;
3581 *)
3582 AC_CHECK_LIB(m, cos, LIBM="-lm")
3583 ;;
3584 esac
3585 AC_SUBST([LIBM])
3586 ])# LT_LIB_M
3587
3588 # Old name:
3589 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3590 dnl aclocal-1.4 backwards compatibility:
3591 dnl AC_DEFUN([AC_CHECK_LIBM], [])
3592
3593
3594 # _LT_COMPILER_NO_RTTI([TAGNAME])
3595 # -------------------------------
3596 m4_defun([_LT_COMPILER_NO_RTTI],
3597 [m4_require([_LT_TAG_COMPILER])dnl
3598
3599 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3600
3601 if test "$GCC" = yes; then
3602 case $cc_basename in
3603 nvcc*)
3604 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3605 *)
3606 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3607 esac
3608
3609 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3610 lt_cv_prog_compiler_rtti_exceptions,
3611 [-fno-rtti -fno-exceptions], [],
3612 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3613 fi
3614 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3615 [Compiler flag to turn off builtin functions])
3616 ])# _LT_COMPILER_NO_RTTI
3617
3618
3619 # _LT_CMD_GLOBAL_SYMBOLS
3620 # ----------------------
3621 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3622 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3623 AC_REQUIRE([AC_PROG_CC])dnl
3624 AC_REQUIRE([AC_PROG_AWK])dnl
3625 AC_REQUIRE([LT_PATH_NM])dnl
3626 AC_REQUIRE([LT_PATH_LD])dnl
3627 m4_require([_LT_DECL_SED])dnl
3628 m4_require([_LT_DECL_EGREP])dnl
3629 m4_require([_LT_TAG_COMPILER])dnl
3630
3631 # Check for command to grab the raw symbol name followed by C symbol from nm.
3632 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3633 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3634 [
3635 # These are sane defaults that work on at least a few old systems.
3636 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3637
3638 # Character class describing NM global symbol codes.
3639 symcode='[[BCDEGRST]]'
3640
3641 # Regexp to match symbols that can be accessed directly from C.
3642 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3643
3644 # Define system-specific variables.
3645 case $host_os in
3646 aix*)
3647 symcode='[[BCDT]]'
3648 ;;
3649 cygwin* | mingw* | pw32* | cegcc*)
3650 symcode='[[ABCDGISTW]]'
3651 ;;
3652 hpux*)
3653 if test "$host_cpu" = ia64; then
3654 symcode='[[ABCDEGRST]]'
3655 fi
3656 ;;
3657 irix* | nonstopux*)
3658 symcode='[[BCDEGRST]]'
3659 ;;
3660 osf*)
3661 symcode='[[BCDEGQRST]]'
3662 ;;
3663 solaris*)
3664 symcode='[[BDRT]]'
3665 ;;
3666 sco3.2v5*)
3667 symcode='[[DT]]'
3668 ;;
3669 sysv4.2uw2*)
3670 symcode='[[DT]]'
3671 ;;
3672 sysv5* | sco5v6* | unixware* | OpenUNIX*)
3673 symcode='[[ABDT]]'
3674 ;;
3675 sysv4)
3676 symcode='[[DFNSTU]]'
3677 ;;
3678 esac
3679
3680 # If we're using GNU nm, then use its standard symbol codes.
3681 case `$NM -V 2>&1` in
3682 *GNU* | *'with BFD'*)
3683 symcode='[[ABCDGIRSTW]]' ;;
3684 esac
3685
3686 # Transform an extracted symbol line into a proper C declaration.
3687 # Some systems (esp. on ia64) link data and code symbols differently,
3688 # so use this general approach.
3689 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3690
3691 # Transform an extracted symbol line into symbol name and symbol address
3692 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3693 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
3694
3695 # Handle CRLF in mingw tool chain
3696 opt_cr=
3697 case $build_os in
3698 mingw*)
3699 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3700 ;;
3701 esac
3702
3703 # Try without a prefix underscore, then with it.
3704 for ac_symprfx in "" "_"; do
3705
3706 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3707 symxfrm="\\1 $ac_symprfx\\2 \\2"
3708
3709 # Write the raw and C identifiers.
3710 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3711 # Fake it for dumpbin and say T for any non-static function
3712 # and D for any global variable.
3713 # Also find C++ and __fastcall symbols from MSVC++,
3714 # which start with @ or ?.
3715 lt_cv_sys_global_symbol_pipe="$AWK ['"\
3716 " {last_section=section; section=\$ 3};"\
3717 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
3718 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3719 " \$ 0!~/External *\|/{next};"\
3720 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3721 " {if(hide[section]) next};"\
3722 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3723 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3724 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
3725 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3726 " ' prfx=^$ac_symprfx]"
3727 else
3728 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3729 fi
3730 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
3731
3732 # Check to see that the pipe works correctly.
3733 pipe_works=no
3734
3735 rm -f conftest*
3736 cat > conftest.$ac_ext <<_LT_EOF
3737 #ifdef __cplusplus
3738 extern "C" {
3739 #endif
3740 char nm_test_var;
3741 void nm_test_func(void);
3742 void nm_test_func(void){}
3743 #ifdef __cplusplus
3744 }
3745 #endif
3746 int main(){nm_test_var='a';nm_test_func();return(0);}
3747 _LT_EOF
3748
3749 if AC_TRY_EVAL(ac_compile); then
3750 # Now try to grab the symbols.
3751 nlist=conftest.nm
3752 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
3753 # Try sorting and uniquifying the output.
3754 if sort "$nlist" | uniq > "$nlist"T; then
3755 mv -f "$nlist"T "$nlist"
3756 else
3757 rm -f "$nlist"T
3758 fi
3759
3760 # Make sure that we snagged all the symbols we need.
3761 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3762 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3763 cat <<_LT_EOF > conftest.$ac_ext
3764 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3765 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3766 /* DATA imports from DLLs on WIN32 con't be const, because runtime
3767 relocations are performed -- see ld's documentation on pseudo-relocs. */
3768 # define LT@&t@_DLSYM_CONST
3769 #elif defined(__osf__)
3770 /* This system does not cope well with relocations in const data. */
3771 # define LT@&t@_DLSYM_CONST
3772 #else
3773 # define LT@&t@_DLSYM_CONST const
3774 #endif
3775
3776 #ifdef __cplusplus
3777 extern "C" {
3778 #endif
3779
3780 _LT_EOF
3781 # Now generate the symbol file.
3782 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3783
3784 cat <<_LT_EOF >> conftest.$ac_ext
3785
3786 /* The mapping between symbol names and symbols. */
3787 LT@&t@_DLSYM_CONST struct {
3788 const char *name;
3789 void *address;
3790 }
3791 lt__PROGRAM__LTX_preloaded_symbols[[]] =
3792 {
3793 { "@PROGRAM@", (void *) 0 },
3794 _LT_EOF
3795 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3796 cat <<\_LT_EOF >> conftest.$ac_ext
3797 {0, (void *) 0}
3798 };
3799
3800 /* This works around a problem in FreeBSD linker */
3801 #ifdef FREEBSD_WORKAROUND
3802 static const void *lt_preloaded_setup() {
3803 return lt__PROGRAM__LTX_preloaded_symbols;
3804 }
3805 #endif
3806
3807 #ifdef __cplusplus
3808 }
3809 #endif
3810 _LT_EOF
3811 # Now try linking the two files.
3812 mv conftest.$ac_objext conftstm.$ac_objext
3813 lt_globsym_save_LIBS=$LIBS
3814 lt_globsym_save_CFLAGS=$CFLAGS
3815 LIBS="conftstm.$ac_objext"
3816 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3817 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3818 pipe_works=yes
3819 fi
3820 LIBS=$lt_globsym_save_LIBS
3821 CFLAGS=$lt_globsym_save_CFLAGS
3822 else
3823 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3824 fi
3825 else
3826 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
3827 fi
3828 else
3829 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
3830 fi
3831 else
3832 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
3833 cat conftest.$ac_ext >&5
3834 fi
3835 rm -rf conftest* conftst*
3836
3837 # Do not use the global_symbol_pipe unless it works.
3838 if test "$pipe_works" = yes; then
3839 break
3840 else
3841 lt_cv_sys_global_symbol_pipe=
3842 fi
3843 done
3844 ])
3845 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3846 lt_cv_sys_global_symbol_to_cdecl=
3847 fi
3848 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3849 AC_MSG_RESULT(failed)
3850 else
3851 AC_MSG_RESULT(ok)
3852 fi
3853
3854 # Response file support.
3855 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3856 nm_file_list_spec='@'
3857 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
3858 nm_file_list_spec='@'
3859 fi
3860
3861 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3862 [Take the output of nm and produce a listing of raw symbols and C names])
3863 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3864 [Transform the output of nm in a proper C declaration])
3865 _LT_DECL([global_symbol_to_c_name_address],
3866 [lt_cv_sys_global_symbol_to_c_name_address], [1],
3867 [Transform the output of nm in a C name address pair])
3868 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3869 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3870 [Transform the output of nm in a C name address pair when lib prefix is needed])
3871 _LT_DECL([], [nm_file_list_spec], [1],
3872 [Specify filename containing input files for $NM])
3873 ]) # _LT_CMD_GLOBAL_SYMBOLS
3874
3875
3876 # _LT_COMPILER_PIC([TAGNAME])
3877 # ---------------------------
3878 m4_defun([_LT_COMPILER_PIC],
3879 [m4_require([_LT_TAG_COMPILER])dnl
3880 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
3881 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3882 _LT_TAGVAR(lt_prog_compiler_static, $1)=
3883
3884 m4_if([$1], [CXX], [
3885 # C++ specific cases for pic, static, wl, etc.
3886 if test "$GXX" = yes; then
3887 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3888 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3889
3890 case $host_os in
3891 aix*)
3892 # All AIX code is PIC.
3893 if test "$host_cpu" = ia64; then
3894 # AIX 5 now supports IA64 processor
3895 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3896 fi
3897 ;;
3898
3899 amigaos*)
3900 case $host_cpu in
3901 powerpc)
3902 # see comment about AmigaOS4 .so support
3903 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3904 ;;
3905 m68k)
3906 # FIXME: we need at least 68020 code to build shared libraries, but
3907 # adding the `-m68020' flag to GCC prevents building anything better,
3908 # like `-m68040'.
3909 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3910 ;;
3911 esac
3912 ;;
3913
3914 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3915 # PIC is the default for these OSes.
3916 ;;
3917 mingw* | cygwin* | os2* | pw32* | cegcc*)
3918 # This hack is so that the source file can tell whether it is being
3919 # built for inclusion in a dll (and should export symbols for example).
3920 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3921 # (--disable-auto-import) libraries
3922 m4_if([$1], [GCJ], [],
3923 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3924 ;;
3925 darwin* | rhapsody*)
3926 # PIC is the default on this platform
3927 # Common symbols not allowed in MH_DYLIB files
3928 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3929 ;;
3930 *djgpp*)
3931 # DJGPP does not support shared libraries at all
3932 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3933 ;;
3934 haiku*)
3935 # PIC is the default for Haiku.
3936 # The "-static" flag exists, but is broken.
3937 _LT_TAGVAR(lt_prog_compiler_static, $1)=
3938 ;;
3939 interix[[3-9]]*)
3940 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3941 # Instead, we relocate shared libraries at runtime.
3942 ;;
3943 sysv4*MP*)
3944 if test -d /usr/nec; then
3945 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3946 fi
3947 ;;
3948 hpux*)
3949 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3950 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3951 # sets the default TLS model and affects inlining.
3952 case $host_cpu in
3953 hppa*64*)
3954 ;;
3955 *)
3956 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3957 ;;
3958 esac
3959 ;;
3960 *qnx* | *nto*)
3961 # QNX uses GNU C++, but need to define -shared option too, otherwise
3962 # it will coredump.
3963 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3964 ;;
3965 *)
3966 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3967 ;;
3968 esac
3969 else
3970 case $host_os in
3971 aix[[4-9]]*)
3972 # All AIX code is PIC.
3973 if test "$host_cpu" = ia64; then
3974 # AIX 5 now supports IA64 processor
3975 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3976 else
3977 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3978 fi
3979 ;;
3980 chorus*)
3981 case $cc_basename in
3982 cxch68*)
3983 # Green Hills C++ Compiler
3984 # _LT_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"
3985 ;;
3986 esac
3987 ;;
3988 mingw* | cygwin* | os2* | pw32* | cegcc*)
3989 # This hack is so that the source file can tell whether it is being
3990 # built for inclusion in a dll (and should export symbols for example).
3991 m4_if([$1], [GCJ], [],
3992 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3993 ;;
3994 dgux*)
3995 case $cc_basename in
3996 ec++*)
3997 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3998 ;;
3999 ghcx*)
4000 # Green Hills C++ Compiler
4001 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4002 ;;
4003 *)
4004 ;;
4005 esac
4006 ;;
4007 freebsd* | dragonfly*)
4008 # FreeBSD uses GNU C++
4009 ;;
4010 hpux9* | hpux10* | hpux11*)
4011 case $cc_basename in
4012 CC*)
4013 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4014 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4015 if test "$host_cpu" != ia64; then
4016 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4017 fi
4018 ;;
4019 aCC*)
4020 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4021 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4022 case $host_cpu in
4023 hppa*64*|ia64*)
4024 # +Z the default
4025 ;;
4026 *)
4027 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4028 ;;
4029 esac
4030 ;;
4031 *)
4032 ;;
4033 esac
4034 ;;
4035 interix*)
4036 # This is c89, which is MS Visual C++ (no shared libs)
4037 # Anyone wants to do a port?
4038 ;;
4039 irix5* | irix6* | nonstopux*)
4040 case $cc_basename in
4041 CC*)
4042 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4043 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4044 # CC pic flag -KPIC is the default.
4045 ;;
4046 *)
4047 ;;
4048 esac
4049 ;;
4050 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4051 case $cc_basename in
4052 KCC*)
4053 # KAI C++ Compiler
4054 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4055 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4056 ;;
4057 ecpc* )
4058 # old Intel C++ for x86_64 which still supported -KPIC.
4059 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4060 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4061 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4062 ;;
4063 icpc* )
4064 # Intel C++, used to be incompatible with GCC.
4065 # ICC 10 doesn't accept -KPIC any more.
4066 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4067 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4068 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4069 ;;
4070 pgCC* | pgcpp*)
4071 # Portland Group C++ compiler
4072 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4073 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4074 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4075 ;;
4076 cxx*)
4077 # Compaq C++
4078 # Make sure the PIC flag is empty. It appears that all Alpha
4079 # Linux and Compaq Tru64 Unix objects are PIC.
4080 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4081 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4082 ;;
4083 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4084 # IBM XL 8.0, 9.0 on PPC and BlueGene
4085 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4086 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4087 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4088 ;;
4089 *)
4090 case `$CC -V 2>&1 | sed 5q` in
4091 *Sun\ C*)
4092 # Sun C++ 5.9
4093 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4094 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4095 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4096 ;;
4097 esac
4098 ;;
4099 esac
4100 ;;
4101 lynxos*)
4102 ;;
4103 m88k*)
4104 ;;
4105 mvs*)
4106 case $cc_basename in
4107 cxx*)
4108 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4109 ;;
4110 *)
4111 ;;
4112 esac
4113 ;;
4114 netbsd* | netbsdelf*-gnu)
4115 ;;
4116 *qnx* | *nto*)
4117 # QNX uses GNU C++, but need to define -shared option too, otherwise
4118 # it will coredump.
4119 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4120 ;;
4121 osf3* | osf4* | osf5*)
4122 case $cc_basename in
4123 KCC*)
4124 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4125 ;;
4126 RCC*)
4127 # Rational C++ 2.4.1
4128 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4129 ;;
4130 cxx*)
4131 # Digital/Compaq C++
4132 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4133 # Make sure the PIC flag is empty. It appears that all Alpha
4134 # Linux and Compaq Tru64 Unix objects are PIC.
4135 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4136 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4137 ;;
4138 *)
4139 ;;
4140 esac
4141 ;;
4142 psos*)
4143 ;;
4144 solaris*)
4145 case $cc_basename in
4146 CC* | sunCC*)
4147 # Sun C++ 4.2, 5.x and Centerline C++
4148 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4149 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4150 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4151 ;;
4152 gcx*)
4153 # Green Hills C++ Compiler
4154 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4155 ;;
4156 *)
4157 ;;
4158 esac
4159 ;;
4160 sunos4*)
4161 case $cc_basename in
4162 CC*)
4163 # Sun C++ 4.x
4164 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4165 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4166 ;;
4167 lcc*)
4168 # Lucid
4169 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4170 ;;
4171 *)
4172 ;;
4173 esac
4174 ;;
4175 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4176 case $cc_basename in
4177 CC*)
4178 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4179 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4180 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4181 ;;
4182 esac
4183 ;;
4184 tandem*)
4185 case $cc_basename in
4186 NCC*)
4187 # NonStop-UX NCC 3.20
4188 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4189 ;;
4190 *)
4191 ;;
4192 esac
4193 ;;
4194 vxworks*)
4195 ;;
4196 *)
4197 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4198 ;;
4199 esac
4200 fi
4201 ],
4202 [
4203 if test "$GCC" = yes; then
4204 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4205 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4206
4207 case $host_os in
4208 aix*)
4209 # All AIX code is PIC.
4210 if test "$host_cpu" = ia64; then
4211 # AIX 5 now supports IA64 processor
4212 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4213 fi
4214 ;;
4215
4216 amigaos*)
4217 case $host_cpu in
4218 powerpc)
4219 # see comment about AmigaOS4 .so support
4220 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4221 ;;
4222 m68k)
4223 # FIXME: we need at least 68020 code to build shared libraries, but
4224 # adding the `-m68020' flag to GCC prevents building anything better,
4225 # like `-m68040'.
4226 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4227 ;;
4228 esac
4229 ;;
4230
4231 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4232 # PIC is the default for these OSes.
4233 ;;
4234
4235 mingw* | cygwin* | pw32* | os2* | cegcc*)
4236 # This hack is so that the source file can tell whether it is being
4237 # built for inclusion in a dll (and should export symbols for example).
4238 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4239 # (--disable-auto-import) libraries
4240 m4_if([$1], [GCJ], [],
4241 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4242 ;;
4243
4244 darwin* | rhapsody*)
4245 # PIC is the default on this platform
4246 # Common symbols not allowed in MH_DYLIB files
4247 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4248 ;;
4249
4250 haiku*)
4251 # PIC is the default for Haiku.
4252 # The "-static" flag exists, but is broken.
4253 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4254 ;;
4255
4256 hpux*)
4257 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4258 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4259 # sets the default TLS model and affects inlining.
4260 case $host_cpu in
4261 hppa*64*)
4262 # +Z the default
4263 ;;
4264 *)
4265 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4266 ;;
4267 esac
4268 ;;
4269
4270 interix[[3-9]]*)
4271 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4272 # Instead, we relocate shared libraries at runtime.
4273 ;;
4274
4275 msdosdjgpp*)
4276 # Just because we use GCC doesn't mean we suddenly get shared libraries
4277 # on systems that don't support them.
4278 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4279 enable_shared=no
4280 ;;
4281
4282 *nto* | *qnx*)
4283 # QNX uses GNU C++, but need to define -shared option too, otherwise
4284 # it will coredump.
4285 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4286 ;;
4287
4288 sysv4*MP*)
4289 if test -d /usr/nec; then
4290 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4291 fi
4292 ;;
4293
4294 *)
4295 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4296 ;;
4297 esac
4298
4299 case $cc_basename in
4300 nvcc*) # Cuda Compiler Driver 2.2
4301 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4302 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4303 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4304 fi
4305 ;;
4306 esac
4307 else
4308 # PORTME Check for flag to pass linker flags through the system compiler.
4309 case $host_os in
4310 aix*)
4311 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4312 if test "$host_cpu" = ia64; then
4313 # AIX 5 now supports IA64 processor
4314 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4315 else
4316 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4317 fi
4318 ;;
4319
4320 mingw* | cygwin* | pw32* | os2* | cegcc*)
4321 # This hack is so that the source file can tell whether it is being
4322 # built for inclusion in a dll (and should export symbols for example).
4323 m4_if([$1], [GCJ], [],
4324 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4325 ;;
4326
4327 hpux9* | hpux10* | hpux11*)
4328 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4329 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4330 # not for PA HP-UX.
4331 case $host_cpu in
4332 hppa*64*|ia64*)
4333 # +Z the default
4334 ;;
4335 *)
4336 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4337 ;;
4338 esac
4339 # Is there a better lt_prog_compiler_static that works with the bundled CC?
4340 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4341 ;;
4342
4343 irix5* | irix6* | nonstopux*)
4344 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4345 # PIC (with -KPIC) is the default.
4346 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4347 ;;
4348
4349 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4350 case $cc_basename in
4351 # old Intel for x86_64 which still supported -KPIC.
4352 ecc*)
4353 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4354 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4355 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4356 ;;
4357 # icc used to be incompatible with GCC.
4358 # ICC 10 doesn't accept -KPIC any more.
4359 icc* | ifort*)
4360 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4361 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4362 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4363 ;;
4364 # Lahey Fortran 8.1.
4365 lf95*)
4366 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4367 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4368 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4369 ;;
4370 nagfor*)
4371 # NAG Fortran compiler
4372 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4373 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4374 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4375 ;;
4376 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4377 # Portland Group compilers (*not* the Pentium gcc compiler,
4378 # which looks to be a dead project)
4379 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4380 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4381 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4382 ;;
4383 ccc*)
4384 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4385 # All Alpha code is PIC.
4386 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4387 ;;
4388 xl* | bgxl* | bgf* | mpixl*)
4389 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4390 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4391 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4392 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4393 ;;
4394 *)
4395 case `$CC -V 2>&1 | sed 5q` in
4396 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4397 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4398 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4399 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4400 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4401 ;;
4402 *Sun\ F* | *Sun*Fortran*)
4403 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4404 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4405 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4406 ;;
4407 *Sun\ C*)
4408 # Sun C 5.9
4409 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4410 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4411 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4412 ;;
4413 *Intel*\ [[CF]]*Compiler*)
4414 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4415 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4416 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4417 ;;
4418 *Portland\ Group*)
4419 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4420 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4421 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4422 ;;
4423 esac
4424 ;;
4425 esac
4426 ;;
4427
4428 newsos6)
4429 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4430 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4431 ;;
4432
4433 *nto* | *qnx*)
4434 # QNX uses GNU C++, but need to define -shared option too, otherwise
4435 # it will coredump.
4436 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4437 ;;
4438
4439 osf3* | osf4* | osf5*)
4440 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4441 # All OSF/1 code is PIC.
4442 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4443 ;;
4444
4445 rdos*)
4446 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4447 ;;
4448
4449 solaris*)
4450 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4451 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4452 case $cc_basename in
4453 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4454 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4455 *)
4456 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4457 esac
4458 ;;
4459
4460 sunos4*)
4461 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4462 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4463 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4464 ;;
4465
4466 sysv4 | sysv4.2uw2* | sysv4.3*)
4467 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4468 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4469 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4470 ;;
4471
4472 sysv4*MP*)
4473 if test -d /usr/nec ;then
4474 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4475 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4476 fi
4477 ;;
4478
4479 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4480 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4481 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4482 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4483 ;;
4484
4485 unicos*)
4486 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4487 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4488 ;;
4489
4490 uts4*)
4491 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4492 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4493 ;;
4494
4495 *)
4496 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4497 ;;
4498 esac
4499 fi
4500 ])
4501 case $host_os in
4502 # For platforms which do not support PIC, -DPIC is meaningless:
4503 *djgpp*)
4504 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4505 ;;
4506 *)
4507 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4508 ;;
4509 esac
4510
4511 AC_CACHE_CHECK([for $compiler option to produce PIC],
4512 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4513 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4514 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4515
4516 #
4517 # Check to make sure the PIC flag actually works.
4518 #
4519 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4520 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4521 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4522 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4523 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4524 "" | " "*) ;;
4525 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4526 esac],
4527 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4528 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4529 fi
4530 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4531 [Additional compiler flags for building library objects])
4532
4533 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4534 [How to pass a linker flag through the compiler])
4535 #
4536 # Check to make sure the static flag actually works.
4537 #
4538 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4539 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4540 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4541 $lt_tmp_static_flag,
4542 [],
4543 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4544 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4545 [Compiler flag to prevent dynamic linking])
4546 ])# _LT_COMPILER_PIC
4547
4548
4549 # _LT_LINKER_SHLIBS([TAGNAME])
4550 # ----------------------------
4551 # See if the linker supports building shared libraries.
4552 m4_defun([_LT_LINKER_SHLIBS],
4553 [AC_REQUIRE([LT_PATH_LD])dnl
4554 AC_REQUIRE([LT_PATH_NM])dnl
4555 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4556 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4557 m4_require([_LT_DECL_EGREP])dnl
4558 m4_require([_LT_DECL_SED])dnl
4559 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4560 m4_require([_LT_TAG_COMPILER])dnl
4561 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4562 m4_if([$1], [CXX], [
4563 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4564 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4565 case $host_os in
4566 aix[[4-9]]*)
4567 # If we're using GNU nm, then we don't want the "-C" option.
4568 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4569 # Also, AIX nm treats weak defined symbols like other global defined
4570 # symbols, whereas GNU nm marks them as "W".
4571 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4572 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4573 else
4574 _LT_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'
4575 fi
4576 ;;
4577 pw32*)
4578 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4579 ;;
4580 cygwin* | mingw* | cegcc*)
4581 case $cc_basename in
4582 cl*)
4583 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4584 ;;
4585 *)
4586 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4587 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4588 ;;
4589 esac
4590 ;;
4591 linux* | k*bsd*-gnu | gnu*)
4592 _LT_TAGVAR(link_all_deplibs, $1)=no
4593 ;;
4594 *)
4595 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4596 ;;
4597 esac
4598 ], [
4599 runpath_var=
4600 _LT_TAGVAR(allow_undefined_flag, $1)=
4601 _LT_TAGVAR(always_export_symbols, $1)=no
4602 _LT_TAGVAR(archive_cmds, $1)=
4603 _LT_TAGVAR(archive_expsym_cmds, $1)=
4604 _LT_TAGVAR(compiler_needs_object, $1)=no
4605 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4606 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4607 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4608 _LT_TAGVAR(hardcode_automatic, $1)=no
4609 _LT_TAGVAR(hardcode_direct, $1)=no
4610 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4611 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4612 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4613 _LT_TAGVAR(hardcode_minus_L, $1)=no
4614 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4615 _LT_TAGVAR(inherit_rpath, $1)=no
4616 _LT_TAGVAR(link_all_deplibs, $1)=unknown
4617 _LT_TAGVAR(module_cmds, $1)=
4618 _LT_TAGVAR(module_expsym_cmds, $1)=
4619 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4620 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4621 _LT_TAGVAR(thread_safe_flag_spec, $1)=
4622 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4623 # include_expsyms should be a list of space-separated symbols to be *always*
4624 # included in the symbol list
4625 _LT_TAGVAR(include_expsyms, $1)=
4626 # exclude_expsyms can be an extended regexp of symbols to exclude
4627 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4628 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4629 # as well as any symbol that contains `d'.
4630 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4631 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4632 # platforms (ab)use it in PIC code, but their linkers get confused if
4633 # the symbol is explicitly referenced. Since portable code cannot
4634 # rely on this symbol name, it's probably fine to never include it in
4635 # preloaded symbol tables.
4636 # Exclude shared library initialization/finalization symbols.
4637 dnl Note also adjust exclude_expsyms for C++ above.
4638 extract_expsyms_cmds=
4639
4640 case $host_os in
4641 cygwin* | mingw* | pw32* | cegcc*)
4642 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4643 # When not using gcc, we currently assume that we are using
4644 # Microsoft Visual C++.
4645 if test "$GCC" != yes; then
4646 with_gnu_ld=no
4647 fi
4648 ;;
4649 interix*)
4650 # we just hope/assume this is gcc and not c89 (= MSVC++)
4651 with_gnu_ld=yes
4652 ;;
4653 openbsd*)
4654 with_gnu_ld=no
4655 ;;
4656 linux* | k*bsd*-gnu | gnu*)
4657 _LT_TAGVAR(link_all_deplibs, $1)=no
4658 ;;
4659 esac
4660
4661 _LT_TAGVAR(ld_shlibs, $1)=yes
4662
4663 # On some targets, GNU ld is compatible enough with the native linker
4664 # that we're better off using the native interface for both.
4665 lt_use_gnu_ld_interface=no
4666 if test "$with_gnu_ld" = yes; then
4667 case $host_os in
4668 aix*)
4669 # The AIX port of GNU ld has always aspired to compatibility
4670 # with the native linker. However, as the warning in the GNU ld
4671 # block says, versions before 2.19.5* couldn't really create working
4672 # shared libraries, regardless of the interface used.
4673 case `$LD -v 2>&1` in
4674 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4675 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4676 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4677 *)
4678 lt_use_gnu_ld_interface=yes
4679 ;;
4680 esac
4681 ;;
4682 *)
4683 lt_use_gnu_ld_interface=yes
4684 ;;
4685 esac
4686 fi
4687
4688 if test "$lt_use_gnu_ld_interface" = yes; then
4689 # If archive_cmds runs LD, not CC, wlarc should be empty
4690 wlarc='${wl}'
4691
4692 # Set some defaults for GNU ld with shared library support. These
4693 # are reset later if shared libraries are not supported. Putting them
4694 # here allows them to be overridden if necessary.
4695 runpath_var=LD_RUN_PATH
4696 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4697 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4698 # ancient GNU ld didn't support --whole-archive et. al.
4699 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4700 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4701 else
4702 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4703 fi
4704 supports_anon_versioning=no
4705 case `$LD -v 2>&1` in
4706 *GNU\ gold*) supports_anon_versioning=yes ;;
4707 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4708 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4709 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4710 *\ 2.11.*) ;; # other 2.11 versions
4711 *) supports_anon_versioning=yes ;;
4712 esac
4713
4714 # See if GNU ld supports shared libraries.
4715 case $host_os in
4716 aix[[3-9]]*)
4717 # On AIX/PPC, the GNU linker is very broken
4718 if test "$host_cpu" != ia64; then
4719 _LT_TAGVAR(ld_shlibs, $1)=no
4720 cat <<_LT_EOF 1>&2
4721
4722 *** Warning: the GNU linker, at least up to release 2.19, is reported
4723 *** to be unable to reliably create shared libraries on AIX.
4724 *** Therefore, libtool is disabling shared libraries support. If you
4725 *** really care for shared libraries, you may want to install binutils
4726 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4727 *** You will then need to restart the configuration process.
4728
4729 _LT_EOF
4730 fi
4731 ;;
4732
4733 amigaos*)
4734 case $host_cpu in
4735 powerpc)
4736 # see comment about AmigaOS4 .so support
4737 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4738 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4739 ;;
4740 m68k)
4741 _LT_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)'
4742 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4743 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4744 ;;
4745 esac
4746 ;;
4747
4748 beos*)
4749 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4750 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4751 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4752 # support --undefined. This deserves some investigation. FIXME
4753 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4754 else
4755 _LT_TAGVAR(ld_shlibs, $1)=no
4756 fi
4757 ;;
4758
4759 cygwin* | mingw* | pw32* | cegcc*)
4760 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4761 # as there is no search path for DLLs.
4762 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4763 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4764 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4765 _LT_TAGVAR(always_export_symbols, $1)=no
4766 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4767 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4768 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4769
4770 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4771 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4772 # If the export-symbols file already is a .def file (1st line
4773 # is EXPORTS), use it as is; otherwise, prepend...
4774 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4775 cp $export_symbols $output_objdir/$soname.def;
4776 else
4777 echo EXPORTS > $output_objdir/$soname.def;
4778 cat $export_symbols >> $output_objdir/$soname.def;
4779 fi~
4780 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4781 else
4782 _LT_TAGVAR(ld_shlibs, $1)=no
4783 fi
4784 ;;
4785
4786 haiku*)
4787 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4788 _LT_TAGVAR(link_all_deplibs, $1)=yes
4789 ;;
4790
4791 interix[[3-9]]*)
4792 _LT_TAGVAR(hardcode_direct, $1)=no
4793 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4794 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4795 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4796 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4797 # Instead, shared libraries are loaded at an image base (0x10000000 by
4798 # default) and relocated if they conflict, which is a slow very memory
4799 # consuming and fragmenting process. To avoid this, we pick a random,
4800 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4801 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4802 _LT_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'
4803 _LT_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'
4804 ;;
4805
4806 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4807 tmp_diet=no
4808 if test "$host_os" = linux-dietlibc; then
4809 case $cc_basename in
4810 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4811 esac
4812 fi
4813 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4814 && test "$tmp_diet" = no
4815 then
4816 tmp_addflag=' $pic_flag'
4817 tmp_sharedflag='-shared'
4818 case $cc_basename,$host_cpu in
4819 pgcc*) # Portland Group C compiler
4820 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4821 tmp_addflag=' $pic_flag'
4822 ;;
4823 pgf77* | pgf90* | pgf95* | pgfortran*)
4824 # Portland Group f77 and f90 compilers
4825 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4826 tmp_addflag=' $pic_flag -Mnomain' ;;
4827 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4828 tmp_addflag=' -i_dynamic' ;;
4829 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
4830 tmp_addflag=' -i_dynamic -nofor_main' ;;
4831 ifc* | ifort*) # Intel Fortran compiler
4832 tmp_addflag=' -nofor_main' ;;
4833 lf95*) # Lahey Fortran 8.1
4834 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4835 tmp_sharedflag='--shared' ;;
4836 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4837 tmp_sharedflag='-qmkshrobj'
4838 tmp_addflag= ;;
4839 nvcc*) # Cuda Compiler Driver 2.2
4840 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4841 _LT_TAGVAR(compiler_needs_object, $1)=yes
4842 ;;
4843 esac
4844 case `$CC -V 2>&1 | sed 5q` in
4845 *Sun\ C*) # Sun C 5.9
4846 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4847 _LT_TAGVAR(compiler_needs_object, $1)=yes
4848 tmp_sharedflag='-G' ;;
4849 *Sun\ F*) # Sun Fortran 8.3
4850 tmp_sharedflag='-G' ;;
4851 esac
4852 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4853
4854 if test "x$supports_anon_versioning" = xyes; then
4855 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4856 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4857 echo "local: *; };" >> $output_objdir/$libname.ver~
4858 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4859 fi
4860
4861 case $cc_basename in
4862 xlf* | bgf* | bgxlf* | mpixlf*)
4863 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4864 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4865 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4866 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4867 if test "x$supports_anon_versioning" = xyes; then
4868 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4869 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4870 echo "local: *; };" >> $output_objdir/$libname.ver~
4871 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4872 fi
4873 ;;
4874 esac
4875 else
4876 _LT_TAGVAR(ld_shlibs, $1)=no
4877 fi
4878 ;;
4879
4880 netbsd* | netbsdelf*-gnu)
4881 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4882 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4883 wlarc=
4884 else
4885 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4886 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4887 fi
4888 ;;
4889
4890 solaris*)
4891 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4892 _LT_TAGVAR(ld_shlibs, $1)=no
4893 cat <<_LT_EOF 1>&2
4894
4895 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4896 *** create shared libraries on Solaris systems. Therefore, libtool
4897 *** is disabling shared libraries support. We urge you to upgrade GNU
4898 *** binutils to release 2.9.1 or newer. Another option is to modify
4899 *** your PATH or compiler configuration so that the native linker is
4900 *** used, and then restart.
4901
4902 _LT_EOF
4903 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4904 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4905 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4906 else
4907 _LT_TAGVAR(ld_shlibs, $1)=no
4908 fi
4909 ;;
4910
4911 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
4912 case `$LD -v 2>&1` in
4913 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
4914 _LT_TAGVAR(ld_shlibs, $1)=no
4915 cat <<_LT_EOF 1>&2
4916
4917 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
4918 *** reliably create shared libraries on SCO systems. Therefore, libtool
4919 *** is disabling shared libraries support. We urge you to upgrade GNU
4920 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
4921 *** your PATH or compiler configuration so that the native linker is
4922 *** used, and then restart.
4923
4924 _LT_EOF
4925 ;;
4926 *)
4927 # For security reasons, it is highly recommended that you always
4928 # use absolute paths for naming shared libraries, and exclude the
4929 # DT_RUNPATH tag from executables and libraries. But doing so
4930 # requires that you compile everything twice, which is a pain.
4931 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4932 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4933 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4934 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4935 else
4936 _LT_TAGVAR(ld_shlibs, $1)=no
4937 fi
4938 ;;
4939 esac
4940 ;;
4941
4942 sunos4*)
4943 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4944 wlarc=
4945 _LT_TAGVAR(hardcode_direct, $1)=yes
4946 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4947 ;;
4948
4949 *)
4950 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4951 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4952 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4953 else
4954 _LT_TAGVAR(ld_shlibs, $1)=no
4955 fi
4956 ;;
4957 esac
4958
4959 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
4960 runpath_var=
4961 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4962 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4963 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4964 fi
4965 else
4966 # PORTME fill in a description of your system's linker (not GNU ld)
4967 case $host_os in
4968 aix3*)
4969 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4970 _LT_TAGVAR(always_export_symbols, $1)=yes
4971 _LT_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'
4972 # Note: this linker hardcodes the directories in LIBPATH if there
4973 # are no directories specified by -L.
4974 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4975 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
4976 # Neither direct hardcoding nor static linking is supported with a
4977 # broken collect2.
4978 _LT_TAGVAR(hardcode_direct, $1)=unsupported
4979 fi
4980 ;;
4981
4982 aix[[4-9]]*)
4983 if test "$host_cpu" = ia64; then
4984 # On IA64, the linker does run time linking by default, so we don't
4985 # have to do anything special.
4986 aix_use_runtimelinking=no
4987 exp_sym_flag='-Bexport'
4988 no_entry_flag=""
4989 else
4990 # If we're using GNU nm, then we don't want the "-C" option.
4991 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4992 # Also, AIX nm treats weak defined symbols like other global
4993 # defined symbols, whereas GNU nm marks them as "W".
4994 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4995 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4996 else
4997 _LT_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'
4998 fi
4999 aix_use_runtimelinking=no
5000
5001 # Test if we are trying to use run time linking or normal
5002 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5003 # need to do runtime linking.
5004 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5005 for ld_flag in $LDFLAGS; do
5006 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5007 aix_use_runtimelinking=yes
5008 break
5009 fi
5010 done
5011 ;;
5012 esac
5013
5014 exp_sym_flag='-bexport'
5015 no_entry_flag='-bnoentry'
5016 fi
5017
5018 # When large executables or shared objects are built, AIX ld can
5019 # have problems creating the table of contents. If linking a library
5020 # or program results in "error TOC overflow" add -mminimal-toc to
5021 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5022 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5023
5024 _LT_TAGVAR(archive_cmds, $1)=''
5025 _LT_TAGVAR(hardcode_direct, $1)=yes
5026 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5027 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5028 _LT_TAGVAR(link_all_deplibs, $1)=yes
5029 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5030
5031 if test "$GCC" = yes; then
5032 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5033 # We only want to do this on AIX 4.2 and lower, the check
5034 # below for broken collect2 doesn't work under 4.3+
5035 collect2name=`${CC} -print-prog-name=collect2`
5036 if test -f "$collect2name" &&
5037 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5038 then
5039 # We have reworked collect2
5040 :
5041 else
5042 # We have old collect2
5043 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5044 # It fails to find uninstalled libraries when the uninstalled
5045 # path is not listed in the libpath. Setting hardcode_minus_L
5046 # to unsupported forces relinking
5047 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5048 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5049 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5050 fi
5051 ;;
5052 esac
5053 shared_flag='-shared'
5054 if test "$aix_use_runtimelinking" = yes; then
5055 shared_flag="$shared_flag "'${wl}-G'
5056 fi
5057 _LT_TAGVAR(link_all_deplibs, $1)=no
5058 else
5059 # not using gcc
5060 if test "$host_cpu" = ia64; then
5061 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5062 # chokes on -Wl,-G. The following line is correct:
5063 shared_flag='-G'
5064 else
5065 if test "$aix_use_runtimelinking" = yes; then
5066 shared_flag='${wl}-G'
5067 else
5068 shared_flag='${wl}-bM:SRE'
5069 fi
5070 fi
5071 fi
5072
5073 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5074 # It seems that -bexpall does not export symbols beginning with
5075 # underscore (_), so it is better to generate a list of symbols to export.
5076 _LT_TAGVAR(always_export_symbols, $1)=yes
5077 if test "$aix_use_runtimelinking" = yes; then
5078 # Warning - without using the other runtime loading flags (-brtl),
5079 # -berok will link without error, but may produce a broken library.
5080 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5081 # Determine the default libpath from the value encoded in an
5082 # empty executable.
5083 _LT_SYS_MODULE_PATH_AIX([$1])
5084 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5085 _LT_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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5086 else
5087 if test "$host_cpu" = ia64; then
5088 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5089 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5090 _LT_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"
5091 else
5092 # Determine the default libpath from the value encoded in an
5093 # empty executable.
5094 _LT_SYS_MODULE_PATH_AIX([$1])
5095 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5096 # Warning - without using the other run time loading flags,
5097 # -berok will link without error, but may produce a broken library.
5098 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5099 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5100 if test "$with_gnu_ld" = yes; then
5101 # We only use this code for GNU lds that support --whole-archive.
5102 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5103 else
5104 # Exported symbols can be pulled into shared objects from archives
5105 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5106 fi
5107 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5108 # This is similar to how AIX traditionally builds its shared libraries.
5109 _LT_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'
5110 fi
5111 fi
5112 ;;
5113
5114 amigaos*)
5115 case $host_cpu in
5116 powerpc)
5117 # see comment about AmigaOS4 .so support
5118 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5119 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5120 ;;
5121 m68k)
5122 _LT_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)'
5123 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5124 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5125 ;;
5126 esac
5127 ;;
5128
5129 bsdi[[45]]*)
5130 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5131 ;;
5132
5133 cygwin* | mingw* | pw32* | cegcc*)
5134 # When not using gcc, we currently assume that we are using
5135 # Microsoft Visual C++.
5136 # hardcode_libdir_flag_spec is actually meaningless, as there is
5137 # no search path for DLLs.
5138 case $cc_basename in
5139 cl*)
5140 # Native MSVC
5141 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5142 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5143 _LT_TAGVAR(always_export_symbols, $1)=yes
5144 _LT_TAGVAR(file_list_spec, $1)='@'
5145 # Tell ltmain to make .lib files, not .a files.
5146 libext=lib
5147 # Tell ltmain to make .dll files, not .so files.
5148 shrext_cmds=".dll"
5149 # FIXME: Setting linknames here is a bad hack.
5150 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5151 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5152 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5153 else
5154 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5155 fi~
5156 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5157 linknames='
5158 # The linker will not automatically build a static lib if we build a DLL.
5159 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5160 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5161 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5162 _LT_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'
5163 # Don't use ranlib
5164 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5165 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5166 lt_tool_outputfile="@TOOL_OUTPUT@"~
5167 case $lt_outputfile in
5168 *.exe|*.EXE) ;;
5169 *)
5170 lt_outputfile="$lt_outputfile.exe"
5171 lt_tool_outputfile="$lt_tool_outputfile.exe"
5172 ;;
5173 esac~
5174 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5175 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5176 $RM "$lt_outputfile.manifest";
5177 fi'
5178 ;;
5179 *)
5180 # Assume MSVC wrapper
5181 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5182 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5183 # Tell ltmain to make .lib files, not .a files.
5184 libext=lib
5185 # Tell ltmain to make .dll files, not .so files.
5186 shrext_cmds=".dll"
5187 # FIXME: Setting linknames here is a bad hack.
5188 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5189 # The linker will automatically build a .lib file if we build a DLL.
5190 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5191 # FIXME: Should let the user specify the lib program.
5192 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5193 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5194 ;;
5195 esac
5196 ;;
5197
5198 darwin* | rhapsody*)
5199 _LT_DARWIN_LINKER_FEATURES($1)
5200 ;;
5201
5202 dgux*)
5203 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5204 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5205 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5206 ;;
5207
5208 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5209 # support. Future versions do this automatically, but an explicit c++rt0.o
5210 # does not break anything, and helps significantly (at the cost of a little
5211 # extra space).
5212 freebsd2.2*)
5213 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5214 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5215 _LT_TAGVAR(hardcode_direct, $1)=yes
5216 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5217 ;;
5218
5219 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5220 freebsd2.*)
5221 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5222 _LT_TAGVAR(hardcode_direct, $1)=yes
5223 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5224 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5225 ;;
5226
5227 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5228 freebsd* | dragonfly*)
5229 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5230 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5231 _LT_TAGVAR(hardcode_direct, $1)=yes
5232 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5233 ;;
5234
5235 hpux9*)
5236 if test "$GCC" = yes; then
5237 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5238 else
5239 _LT_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'
5240 fi
5241 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5242 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5243 _LT_TAGVAR(hardcode_direct, $1)=yes
5244
5245 # hardcode_minus_L: Not really in the search PATH,
5246 # but as the default location of the library.
5247 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5248 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5249 ;;
5250
5251 hpux10*)
5252 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5253 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5254 else
5255 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5256 fi
5257 if test "$with_gnu_ld" = no; then
5258 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5259 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5260 _LT_TAGVAR(hardcode_direct, $1)=yes
5261 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5262 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5263 # hardcode_minus_L: Not really in the search PATH,
5264 # but as the default location of the library.
5265 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5266 fi
5267 ;;
5268
5269 hpux11*)
5270 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5271 case $host_cpu in
5272 hppa*64*)
5273 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5274 ;;
5275 ia64*)
5276 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5277 ;;
5278 *)
5279 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5280 ;;
5281 esac
5282 else
5283 case $host_cpu in
5284 hppa*64*)
5285 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5286 ;;
5287 ia64*)
5288 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5289 ;;
5290 *)
5291 m4_if($1, [], [
5292 # Older versions of the 11.00 compiler do not understand -b yet
5293 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5294 _LT_LINKER_OPTION([if $CC understands -b],
5295 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5296 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5297 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5298 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5299 ;;
5300 esac
5301 fi
5302 if test "$with_gnu_ld" = no; then
5303 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5304 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5305
5306 case $host_cpu in
5307 hppa*64*|ia64*)
5308 _LT_TAGVAR(hardcode_direct, $1)=no
5309 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5310 ;;
5311 *)
5312 _LT_TAGVAR(hardcode_direct, $1)=yes
5313 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5314 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5315
5316 # hardcode_minus_L: Not really in the search PATH,
5317 # but as the default location of the library.
5318 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5319 ;;
5320 esac
5321 fi
5322 ;;
5323
5324 irix5* | irix6* | nonstopux*)
5325 if test "$GCC" = yes; then
5326 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5327 # Try to use the -exported_symbol ld option, if it does not
5328 # work, assume that -exports_file does not work either and
5329 # implicitly export all symbols.
5330 # This should be the same for all languages, so no per-tag cache variable.
5331 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5332 [lt_cv_irix_exported_symbol],
5333 [save_LDFLAGS="$LDFLAGS"
5334 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5335 AC_LINK_IFELSE(
5336 [AC_LANG_SOURCE(
5337 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5338 [C++], [[int foo (void) { return 0; }]],
5339 [Fortran 77], [[
5340 subroutine foo
5341 end]],
5342 [Fortran], [[
5343 subroutine foo
5344 end]])])],
5345 [lt_cv_irix_exported_symbol=yes],
5346 [lt_cv_irix_exported_symbol=no])
5347 LDFLAGS="$save_LDFLAGS"])
5348 if test "$lt_cv_irix_exported_symbol" = yes; then
5349 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5350 fi
5351 else
5352 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5353 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5354 fi
5355 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5356 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5357 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5358 _LT_TAGVAR(inherit_rpath, $1)=yes
5359 _LT_TAGVAR(link_all_deplibs, $1)=yes
5360 ;;
5361
5362 netbsd* | netbsdelf*-gnu)
5363 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5364 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5365 else
5366 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5367 fi
5368 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5369 _LT_TAGVAR(hardcode_direct, $1)=yes
5370 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5371 ;;
5372
5373 newsos6)
5374 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5375 _LT_TAGVAR(hardcode_direct, $1)=yes
5376 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5377 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5378 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5379 ;;
5380
5381 *nto* | *qnx*)
5382 ;;
5383
5384 openbsd*)
5385 if test -f /usr/libexec/ld.so; then
5386 _LT_TAGVAR(hardcode_direct, $1)=yes
5387 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5388 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5389 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5390 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5391 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5392 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5393 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5394 else
5395 case $host_os in
5396 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5397 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5398 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5399 ;;
5400 *)
5401 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5402 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5403 ;;
5404 esac
5405 fi
5406 else
5407 _LT_TAGVAR(ld_shlibs, $1)=no
5408 fi
5409 ;;
5410
5411 os2*)
5412 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5413 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5414 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5415 _LT_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'
5416 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5417 ;;
5418
5419 osf3*)
5420 if test "$GCC" = yes; then
5421 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5422 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5423 else
5424 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5425 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5426 fi
5427 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5428 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5429 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5430 ;;
5431
5432 osf4* | osf5*) # as osf3* with the addition of -msym flag
5433 if test "$GCC" = yes; then
5434 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5435 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5436 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5437 else
5438 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5439 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5440 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
5441 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5442
5443 # Both c and cxx compiler support -rpath directly
5444 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5445 fi
5446 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5447 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5448 ;;
5449
5450 solaris*)
5451 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5452 if test "$GCC" = yes; then
5453 wlarc='${wl}'
5454 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5455 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5456 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5457 else
5458 case `$CC -V 2>&1` in
5459 *"Compilers 5.0"*)
5460 wlarc=''
5461 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5462 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5463 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5464 ;;
5465 *)
5466 wlarc='${wl}'
5467 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5468 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5469 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5470 ;;
5471 esac
5472 fi
5473 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5474 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5475 case $host_os in
5476 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5477 *)
5478 # The compiler driver will combine and reorder linker options,
5479 # but understands `-z linker_flag'. GCC discards it without `$wl',
5480 # but is careful enough not to reorder.
5481 # Supported since Solaris 2.6 (maybe 2.5.1?)
5482 if test "$GCC" = yes; then
5483 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5484 else
5485 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5486 fi
5487 ;;
5488 esac
5489 _LT_TAGVAR(link_all_deplibs, $1)=yes
5490 ;;
5491
5492 sunos4*)
5493 if test "x$host_vendor" = xsequent; then
5494 # Use $CC to link under sequent, because it throws in some extra .o
5495 # files that make .init and .fini sections work.
5496 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5497 else
5498 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5499 fi
5500 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5501 _LT_TAGVAR(hardcode_direct, $1)=yes
5502 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5503 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5504 ;;
5505
5506 sysv4)
5507 case $host_vendor in
5508 sni)
5509 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5510 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5511 ;;
5512 siemens)
5513 ## LD is ld it makes a PLAMLIB
5514 ## CC just makes a GrossModule.
5515 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5516 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5517 _LT_TAGVAR(hardcode_direct, $1)=no
5518 ;;
5519 motorola)
5520 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5521 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5522 ;;
5523 esac
5524 runpath_var='LD_RUN_PATH'
5525 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5526 ;;
5527
5528 sysv4.3*)
5529 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5530 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5531 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5532 ;;
5533
5534 sysv4*MP*)
5535 if test -d /usr/nec; then
5536 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5537 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5538 runpath_var=LD_RUN_PATH
5539 hardcode_runpath_var=yes
5540 _LT_TAGVAR(ld_shlibs, $1)=yes
5541 fi
5542 ;;
5543
5544 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5545 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5546 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5547 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5548 runpath_var='LD_RUN_PATH'
5549
5550 if test "$GCC" = yes; then
5551 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5552 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5553 else
5554 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5555 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5556 fi
5557 ;;
5558
5559 sysv5* | sco3.2v5* | sco5v6*)
5560 # Note: We can NOT use -z defs as we might desire, because we do not
5561 # link with -lc, and that would cause any symbols used from libc to
5562 # always be unresolved, which means just about no library would
5563 # ever link correctly. If we're not using GNU ld we use -z text
5564 # though, which does catch some bad symbols but isn't as heavy-handed
5565 # as -z defs.
5566 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5567 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5568 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5569 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5570 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5571 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5572 _LT_TAGVAR(link_all_deplibs, $1)=yes
5573 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5574 runpath_var='LD_RUN_PATH'
5575
5576 if test "$GCC" = yes; then
5577 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5578 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5579 else
5580 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5581 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5582 fi
5583 ;;
5584
5585 uts4*)
5586 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5587 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5588 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5589 ;;
5590
5591 *)
5592 _LT_TAGVAR(ld_shlibs, $1)=no
5593 ;;
5594 esac
5595
5596 if test x$host_vendor = xsni; then
5597 case $host in
5598 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5599 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5600 ;;
5601 esac
5602 fi
5603 fi
5604 ])
5605 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5606 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5607
5608 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5609
5610 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5611 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5612 _LT_DECL([], [extract_expsyms_cmds], [2],
5613 [The commands to extract the exported symbol list from a shared archive])
5614
5615 #
5616 # Do we need to explicitly link libc?
5617 #
5618 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5619 x|xyes)
5620 # Assume -lc should be added
5621 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5622
5623 if test "$enable_shared" = yes && test "$GCC" = yes; then
5624 case $_LT_TAGVAR(archive_cmds, $1) in
5625 *'~'*)
5626 # FIXME: we may have to deal with multi-command sequences.
5627 ;;
5628 '$CC '*)
5629 # Test whether the compiler implicitly links with -lc since on some
5630 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5631 # to ld, don't add -lc before -lgcc.
5632 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5633 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5634 [$RM conftest*
5635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5636
5637 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5638 soname=conftest
5639 lib=conftest
5640 libobjs=conftest.$ac_objext
5641 deplibs=
5642 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5643 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5644 compiler_flags=-v
5645 linker_flags=-v
5646 verstring=
5647 output_objdir=.
5648 libname=conftest
5649 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5650 _LT_TAGVAR(allow_undefined_flag, $1)=
5651 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5652 then
5653 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5654 else
5655 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5656 fi
5657 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5658 else
5659 cat conftest.err 1>&5
5660 fi
5661 $RM conftest*
5662 ])
5663 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5664 ;;
5665 esac
5666 fi
5667 ;;
5668 esac
5669
5670 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5671 [Whether or not to add -lc for building shared libraries])
5672 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5673 [enable_shared_with_static_runtimes], [0],
5674 [Whether or not to disallow shared libs when runtime libs are static])
5675 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5676 [Compiler flag to allow reflexive dlopens])
5677 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
5678 [Compiler flag to generate shared objects directly from archives])
5679 _LT_TAGDECL([], [compiler_needs_object], [1],
5680 [Whether the compiler copes with passing no objects directly])
5681 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5682 [Create an old-style archive from a shared archive])
5683 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5684 [Create a temporary old-style archive to link instead of a shared archive])
5685 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5686 _LT_TAGDECL([], [archive_expsym_cmds], [2])
5687 _LT_TAGDECL([], [module_cmds], [2],
5688 [Commands used to build a loadable module if different from building
5689 a shared archive.])
5690 _LT_TAGDECL([], [module_expsym_cmds], [2])
5691 _LT_TAGDECL([], [with_gnu_ld], [1],
5692 [Whether we are building with GNU ld or not])
5693 _LT_TAGDECL([], [allow_undefined_flag], [1],
5694 [Flag that allows shared libraries with undefined symbols to be built])
5695 _LT_TAGDECL([], [no_undefined_flag], [1],
5696 [Flag that enforces no undefined symbols])
5697 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5698 [Flag to hardcode $libdir into a binary during linking.
5699 This must work even if $libdir does not exist])
5700 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
5701 [Whether we need a single "-rpath" flag with a separated argument])
5702 _LT_TAGDECL([], [hardcode_direct], [0],
5703 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5704 DIR into the resulting binary])
5705 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5706 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5707 DIR into the resulting binary and the resulting library dependency is
5708 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5709 library is relocated])
5710 _LT_TAGDECL([], [hardcode_minus_L], [0],
5711 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5712 into the resulting binary])
5713 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5714 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5715 into the resulting binary])
5716 _LT_TAGDECL([], [hardcode_automatic], [0],
5717 [Set to "yes" if building a shared library automatically hardcodes DIR
5718 into the library and all subsequent libraries and executables linked
5719 against it])
5720 _LT_TAGDECL([], [inherit_rpath], [0],
5721 [Set to yes if linker adds runtime paths of dependent libraries
5722 to runtime path list])
5723 _LT_TAGDECL([], [link_all_deplibs], [0],
5724 [Whether libtool must link a program against all its dependency libraries])
5725 _LT_TAGDECL([], [always_export_symbols], [0],
5726 [Set to "yes" if exported symbols are required])
5727 _LT_TAGDECL([], [export_symbols_cmds], [2],
5728 [The commands to list exported symbols])
5729 _LT_TAGDECL([], [exclude_expsyms], [1],
5730 [Symbols that should not be listed in the preloaded symbols])
5731 _LT_TAGDECL([], [include_expsyms], [1],
5732 [Symbols that must always be exported])
5733 _LT_TAGDECL([], [prelink_cmds], [2],
5734 [Commands necessary for linking programs (against libraries) with templates])
5735 _LT_TAGDECL([], [postlink_cmds], [2],
5736 [Commands necessary for finishing linking programs])
5737 _LT_TAGDECL([], [file_list_spec], [1],
5738 [Specify filename containing input files])
5739 dnl FIXME: Not yet implemented
5740 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5741 dnl [Compiler flag to generate thread safe objects])
5742 ])# _LT_LINKER_SHLIBS
5743
5744
5745 # _LT_LANG_C_CONFIG([TAG])
5746 # ------------------------
5747 # Ensure that the configuration variables for a C compiler are suitably
5748 # defined. These variables are subsequently used by _LT_CONFIG to write
5749 # the compiler configuration to `libtool'.
5750 m4_defun([_LT_LANG_C_CONFIG],
5751 [m4_require([_LT_DECL_EGREP])dnl
5752 lt_save_CC="$CC"
5753 AC_LANG_PUSH(C)
5754
5755 # Source file extension for C test sources.
5756 ac_ext=c
5757
5758 # Object file extension for compiled C test sources.
5759 objext=o
5760 _LT_TAGVAR(objext, $1)=$objext
5761
5762 # Code to be used in simple compile tests
5763 lt_simple_compile_test_code="int some_variable = 0;"
5764
5765 # Code to be used in simple link tests
5766 lt_simple_link_test_code='int main(){return(0);}'
5767
5768 _LT_TAG_COMPILER
5769 # Save the default compiler, since it gets overwritten when the other
5770 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5771 compiler_DEFAULT=$CC
5772
5773 # save warnings/boilerplate of simple test code
5774 _LT_COMPILER_BOILERPLATE
5775 _LT_LINKER_BOILERPLATE
5776
5777 ## CAVEAT EMPTOR:
5778 ## There is no encapsulation within the following macros, do not change
5779 ## the running order or otherwise move them around unless you know exactly
5780 ## what you are doing...
5781 if test -n "$compiler"; then
5782 _LT_COMPILER_NO_RTTI($1)
5783 _LT_COMPILER_PIC($1)
5784 _LT_COMPILER_C_O($1)
5785 _LT_COMPILER_FILE_LOCKS($1)
5786 _LT_LINKER_SHLIBS($1)
5787 _LT_SYS_DYNAMIC_LINKER($1)
5788 _LT_LINKER_HARDCODE_LIBPATH($1)
5789 LT_SYS_DLOPEN_SELF
5790 _LT_CMD_STRIPLIB
5791
5792 # Report which library types will actually be built
5793 AC_MSG_CHECKING([if libtool supports shared libraries])
5794 AC_MSG_RESULT([$can_build_shared])
5795
5796 AC_MSG_CHECKING([whether to build shared libraries])
5797 test "$can_build_shared" = "no" && enable_shared=no
5798
5799 # On AIX, shared libraries and static libraries use the same namespace, and
5800 # are all built from PIC.
5801 case $host_os in
5802 aix3*)
5803 test "$enable_shared" = yes && enable_static=no
5804 if test -n "$RANLIB"; then
5805 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5806 postinstall_cmds='$RANLIB $lib'
5807 fi
5808 ;;
5809
5810 aix[[4-9]]*)
5811 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5812 test "$enable_shared" = yes && enable_static=no
5813 fi
5814 ;;
5815 esac
5816 AC_MSG_RESULT([$enable_shared])
5817
5818 AC_MSG_CHECKING([whether to build static libraries])
5819 # Make sure either enable_shared or enable_static is yes.
5820 test "$enable_shared" = yes || enable_static=yes
5821 AC_MSG_RESULT([$enable_static])
5822
5823 _LT_CONFIG($1)
5824 fi
5825 AC_LANG_POP
5826 CC="$lt_save_CC"
5827 ])# _LT_LANG_C_CONFIG
5828
5829
5830 # _LT_LANG_CXX_CONFIG([TAG])
5831 # --------------------------
5832 # Ensure that the configuration variables for a C++ compiler are suitably
5833 # defined. These variables are subsequently used by _LT_CONFIG to write
5834 # the compiler configuration to `libtool'.
5835 m4_defun([_LT_LANG_CXX_CONFIG],
5836 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5837 m4_require([_LT_DECL_EGREP])dnl
5838 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5839 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5840 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5841 (test "X$CXX" != "Xg++"))) ; then
5842 AC_PROG_CXXCPP
5843 else
5844 _lt_caught_CXX_error=yes
5845 fi
5846
5847 AC_LANG_PUSH(C++)
5848 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5849 _LT_TAGVAR(allow_undefined_flag, $1)=
5850 _LT_TAGVAR(always_export_symbols, $1)=no
5851 _LT_TAGVAR(archive_expsym_cmds, $1)=
5852 _LT_TAGVAR(compiler_needs_object, $1)=no
5853 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5854 _LT_TAGVAR(hardcode_direct, $1)=no
5855 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5856 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5857 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5858 _LT_TAGVAR(hardcode_minus_L, $1)=no
5859 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5860 _LT_TAGVAR(hardcode_automatic, $1)=no
5861 _LT_TAGVAR(inherit_rpath, $1)=no
5862 _LT_TAGVAR(module_cmds, $1)=
5863 _LT_TAGVAR(module_expsym_cmds, $1)=
5864 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5865 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5866 _LT_TAGVAR(reload_flag, $1)=$reload_flag
5867 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
5868 _LT_TAGVAR(no_undefined_flag, $1)=
5869 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5870 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5871
5872 # Source file extension for C++ test sources.
5873 ac_ext=cpp
5874
5875 # Object file extension for compiled C++ test sources.
5876 objext=o
5877 _LT_TAGVAR(objext, $1)=$objext
5878
5879 # No sense in running all these tests if we already determined that
5880 # the CXX compiler isn't working. Some variables (like enable_shared)
5881 # are currently assumed to apply to all compilers on this platform,
5882 # and will be corrupted by setting them based on a non-working compiler.
5883 if test "$_lt_caught_CXX_error" != yes; then
5884 # Code to be used in simple compile tests
5885 lt_simple_compile_test_code="int some_variable = 0;"
5886
5887 # Code to be used in simple link tests
5888 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5889
5890 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5891 _LT_TAG_COMPILER
5892
5893 # save warnings/boilerplate of simple test code
5894 _LT_COMPILER_BOILERPLATE
5895 _LT_LINKER_BOILERPLATE
5896
5897 # Allow CC to be a program name with arguments.
5898 lt_save_CC=$CC
5899 lt_save_CFLAGS=$CFLAGS
5900 lt_save_LD=$LD
5901 lt_save_GCC=$GCC
5902 GCC=$GXX
5903 lt_save_with_gnu_ld=$with_gnu_ld
5904 lt_save_path_LD=$lt_cv_path_LD
5905 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5906 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5907 else
5908 $as_unset lt_cv_prog_gnu_ld
5909 fi
5910 if test -n "${lt_cv_path_LDCXX+set}"; then
5911 lt_cv_path_LD=$lt_cv_path_LDCXX
5912 else
5913 $as_unset lt_cv_path_LD
5914 fi
5915 test -z "${LDCXX+set}" || LD=$LDCXX
5916 CC=${CXX-"c++"}
5917 CFLAGS=$CXXFLAGS
5918 compiler=$CC
5919 _LT_TAGVAR(compiler, $1)=$CC
5920 _LT_CC_BASENAME([$compiler])
5921
5922 if test -n "$compiler"; then
5923 # We don't want -fno-exception when compiling C++ code, so set the
5924 # no_builtin_flag separately
5925 if test "$GXX" = yes; then
5926 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5927 else
5928 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5929 fi
5930
5931 if test "$GXX" = yes; then
5932 # Set up default GNU C++ configuration
5933
5934 LT_PATH_LD
5935
5936 # Check if GNU C++ uses GNU ld as the underlying linker, since the
5937 # archiving commands below assume that GNU ld is being used.
5938 if test "$with_gnu_ld" = yes; then
5939 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5940 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5941
5942 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5943 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5944
5945 # If archive_cmds runs LD, not CC, wlarc should be empty
5946 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5947 # investigate it a little bit more. (MM)
5948 wlarc='${wl}'
5949
5950 # ancient GNU ld didn't support --whole-archive et. al.
5951 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5952 $GREP 'no-whole-archive' > /dev/null; then
5953 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5954 else
5955 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5956 fi
5957 else
5958 with_gnu_ld=no
5959 wlarc=
5960
5961 # A generic and very simple default shared library creation
5962 # command for GNU C++ for the case where it uses the native
5963 # linker, instead of GNU ld. If possible, this setting should
5964 # overridden to take advantage of the native linker features on
5965 # the platform it is being used on.
5966 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5967 fi
5968
5969 # Commands to make compiler produce verbose output that lists
5970 # what "hidden" libraries, object files and flags are used when
5971 # linking a shared library.
5972 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
5973
5974 else
5975 GXX=no
5976 with_gnu_ld=no
5977 wlarc=
5978 fi
5979
5980 # PORTME: fill in a description of your system's C++ link characteristics
5981 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5982 _LT_TAGVAR(ld_shlibs, $1)=yes
5983 case $host_os in
5984 aix3*)
5985 # FIXME: insert proper C++ library support
5986 _LT_TAGVAR(ld_shlibs, $1)=no
5987 ;;
5988 aix[[4-9]]*)
5989 if test "$host_cpu" = ia64; then
5990 # On IA64, the linker does run time linking by default, so we don't
5991 # have to do anything special.
5992 aix_use_runtimelinking=no
5993 exp_sym_flag='-Bexport'
5994 no_entry_flag=""
5995 else
5996 aix_use_runtimelinking=no
5997
5998 # Test if we are trying to use run time linking or normal
5999 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6000 # need to do runtime linking.
6001 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6002 for ld_flag in $LDFLAGS; do
6003 case $ld_flag in
6004 *-brtl*)
6005 aix_use_runtimelinking=yes
6006 break
6007 ;;
6008 esac
6009 done
6010 ;;
6011 esac
6012
6013 exp_sym_flag='-bexport'
6014 no_entry_flag='-bnoentry'
6015 fi
6016
6017 # When large executables or shared objects are built, AIX ld can
6018 # have problems creating the table of contents. If linking a library
6019 # or program results in "error TOC overflow" add -mminimal-toc to
6020 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6021 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6022
6023 _LT_TAGVAR(archive_cmds, $1)=''
6024 _LT_TAGVAR(hardcode_direct, $1)=yes
6025 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6026 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6027 _LT_TAGVAR(link_all_deplibs, $1)=yes
6028 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6029
6030 if test "$GXX" = yes; then
6031 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6032 # We only want to do this on AIX 4.2 and lower, the check
6033 # below for broken collect2 doesn't work under 4.3+
6034 collect2name=`${CC} -print-prog-name=collect2`
6035 if test -f "$collect2name" &&
6036 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6037 then
6038 # We have reworked collect2
6039 :
6040 else
6041 # We have old collect2
6042 _LT_TAGVAR(hardcode_direct, $1)=unsupported
6043 # It fails to find uninstalled libraries when the uninstalled
6044 # path is not listed in the libpath. Setting hardcode_minus_L
6045 # to unsupported forces relinking
6046 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6047 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6048 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6049 fi
6050 esac
6051 shared_flag='-shared'
6052 if test "$aix_use_runtimelinking" = yes; then
6053 shared_flag="$shared_flag "'${wl}-G'
6054 fi
6055 else
6056 # not using gcc
6057 if test "$host_cpu" = ia64; then
6058 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6059 # chokes on -Wl,-G. The following line is correct:
6060 shared_flag='-G'
6061 else
6062 if test "$aix_use_runtimelinking" = yes; then
6063 shared_flag='${wl}-G'
6064 else
6065 shared_flag='${wl}-bM:SRE'
6066 fi
6067 fi
6068 fi
6069
6070 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6071 # It seems that -bexpall does not export symbols beginning with
6072 # underscore (_), so it is better to generate a list of symbols to
6073 # export.
6074 _LT_TAGVAR(always_export_symbols, $1)=yes
6075 if test "$aix_use_runtimelinking" = yes; then
6076 # Warning - without using the other runtime loading flags (-brtl),
6077 # -berok will link without error, but may produce a broken library.
6078 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6079 # Determine the default libpath from the value encoded in an empty
6080 # executable.
6081 _LT_SYS_MODULE_PATH_AIX([$1])
6082 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6083
6084 _LT_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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6085 else
6086 if test "$host_cpu" = ia64; then
6087 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6088 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6089 _LT_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"
6090 else
6091 # Determine the default libpath from the value encoded in an
6092 # empty executable.
6093 _LT_SYS_MODULE_PATH_AIX([$1])
6094 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6095 # Warning - without using the other run time loading flags,
6096 # -berok will link without error, but may produce a broken library.
6097 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6098 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6099 if test "$with_gnu_ld" = yes; then
6100 # We only use this code for GNU lds that support --whole-archive.
6101 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6102 else
6103 # Exported symbols can be pulled into shared objects from archives
6104 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6105 fi
6106 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6107 # This is similar to how AIX traditionally builds its shared
6108 # libraries.
6109 _LT_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'
6110 fi
6111 fi
6112 ;;
6113
6114 beos*)
6115 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6116 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6117 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6118 # support --undefined. This deserves some investigation. FIXME
6119 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6120 else
6121 _LT_TAGVAR(ld_shlibs, $1)=no
6122 fi
6123 ;;
6124
6125 chorus*)
6126 case $cc_basename in
6127 *)
6128 # FIXME: insert proper C++ library support
6129 _LT_TAGVAR(ld_shlibs, $1)=no
6130 ;;
6131 esac
6132 ;;
6133
6134 cygwin* | mingw* | pw32* | cegcc*)
6135 case $GXX,$cc_basename in
6136 ,cl* | no,cl*)
6137 # Native MSVC
6138 # hardcode_libdir_flag_spec is actually meaningless, as there is
6139 # no search path for DLLs.
6140 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6141 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6142 _LT_TAGVAR(always_export_symbols, $1)=yes
6143 _LT_TAGVAR(file_list_spec, $1)='@'
6144 # Tell ltmain to make .lib files, not .a files.
6145 libext=lib
6146 # Tell ltmain to make .dll files, not .so files.
6147 shrext_cmds=".dll"
6148 # FIXME: Setting linknames here is a bad hack.
6149 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6150 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6151 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6152 else
6153 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6154 fi~
6155 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6156 linknames='
6157 # The linker will not automatically build a static lib if we build a DLL.
6158 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6159 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6160 # Don't use ranlib
6161 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6162 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6163 lt_tool_outputfile="@TOOL_OUTPUT@"~
6164 case $lt_outputfile in
6165 *.exe|*.EXE) ;;
6166 *)
6167 lt_outputfile="$lt_outputfile.exe"
6168 lt_tool_outputfile="$lt_tool_outputfile.exe"
6169 ;;
6170 esac~
6171 func_to_tool_file "$lt_outputfile"~
6172 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6173 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6174 $RM "$lt_outputfile.manifest";
6175 fi'
6176 ;;
6177 *)
6178 # g++
6179 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6180 # as there is no search path for DLLs.
6181 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6182 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6183 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6184 _LT_TAGVAR(always_export_symbols, $1)=no
6185 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6186
6187 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6188 _LT_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'
6189 # If the export-symbols file already is a .def file (1st line
6190 # is EXPORTS), use it as is; otherwise, prepend...
6191 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6192 cp $export_symbols $output_objdir/$soname.def;
6193 else
6194 echo EXPORTS > $output_objdir/$soname.def;
6195 cat $export_symbols >> $output_objdir/$soname.def;
6196 fi~
6197 $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'
6198 else
6199 _LT_TAGVAR(ld_shlibs, $1)=no
6200 fi
6201 ;;
6202 esac
6203 ;;
6204 darwin* | rhapsody*)
6205 _LT_DARWIN_LINKER_FEATURES($1)
6206 ;;
6207
6208 dgux*)
6209 case $cc_basename in
6210 ec++*)
6211 # FIXME: insert proper C++ library support
6212 _LT_TAGVAR(ld_shlibs, $1)=no
6213 ;;
6214 ghcx*)
6215 # Green Hills C++ Compiler
6216 # FIXME: insert proper C++ library support
6217 _LT_TAGVAR(ld_shlibs, $1)=no
6218 ;;
6219 *)
6220 # FIXME: insert proper C++ library support
6221 _LT_TAGVAR(ld_shlibs, $1)=no
6222 ;;
6223 esac
6224 ;;
6225
6226 freebsd2.*)
6227 # C++ shared libraries reported to be fairly broken before
6228 # switch to ELF
6229 _LT_TAGVAR(ld_shlibs, $1)=no
6230 ;;
6231
6232 freebsd-elf*)
6233 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6234 ;;
6235
6236 freebsd* | dragonfly*)
6237 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6238 # conventions
6239 _LT_TAGVAR(ld_shlibs, $1)=yes
6240 ;;
6241
6242 haiku*)
6243 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6244 _LT_TAGVAR(link_all_deplibs, $1)=yes
6245 ;;
6246
6247 hpux9*)
6248 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6249 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6250 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6251 _LT_TAGVAR(hardcode_direct, $1)=yes
6252 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6253 # but as the default
6254 # location of the library.
6255
6256 case $cc_basename in
6257 CC*)
6258 # FIXME: insert proper C++ library support
6259 _LT_TAGVAR(ld_shlibs, $1)=no
6260 ;;
6261 aCC*)
6262 _LT_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'
6263 # Commands to make compiler produce verbose output that lists
6264 # what "hidden" libraries, object files and flags are used when
6265 # linking a shared library.
6266 #
6267 # There doesn't appear to be a way to prevent this compiler from
6268 # explicitly linking system object files so we need to strip them
6269 # from the output so that they don't get included in the library
6270 # dependencies.
6271 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6272 ;;
6273 *)
6274 if test "$GXX" = yes; then
6275 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
6276 else
6277 # FIXME: insert proper C++ library support
6278 _LT_TAGVAR(ld_shlibs, $1)=no
6279 fi
6280 ;;
6281 esac
6282 ;;
6283
6284 hpux10*|hpux11*)
6285 if test $with_gnu_ld = no; then
6286 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6287 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6288
6289 case $host_cpu in
6290 hppa*64*|ia64*)
6291 ;;
6292 *)
6293 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6294 ;;
6295 esac
6296 fi
6297 case $host_cpu in
6298 hppa*64*|ia64*)
6299 _LT_TAGVAR(hardcode_direct, $1)=no
6300 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6301 ;;
6302 *)
6303 _LT_TAGVAR(hardcode_direct, $1)=yes
6304 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6305 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6306 # but as the default
6307 # location of the library.
6308 ;;
6309 esac
6310
6311 case $cc_basename in
6312 CC*)
6313 # FIXME: insert proper C++ library support
6314 _LT_TAGVAR(ld_shlibs, $1)=no
6315 ;;
6316 aCC*)
6317 case $host_cpu in
6318 hppa*64*)
6319 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6320 ;;
6321 ia64*)
6322 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6323 ;;
6324 *)
6325 _LT_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'
6326 ;;
6327 esac
6328 # Commands to make compiler produce verbose output that lists
6329 # what "hidden" libraries, object files and flags are used when
6330 # linking a shared library.
6331 #
6332 # There doesn't appear to be a way to prevent this compiler from
6333 # explicitly linking system object files so we need to strip them
6334 # from the output so that they don't get included in the library
6335 # dependencies.
6336 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; func_echo_all "$list"'
6337 ;;
6338 *)
6339 if test "$GXX" = yes; then
6340 if test $with_gnu_ld = no; then
6341 case $host_cpu in
6342 hppa*64*)
6343 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6344 ;;
6345 ia64*)
6346 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6347 ;;
6348 *)
6349 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6350 ;;
6351 esac
6352 fi
6353 else
6354 # FIXME: insert proper C++ library support
6355 _LT_TAGVAR(ld_shlibs, $1)=no
6356 fi
6357 ;;
6358 esac
6359 ;;
6360
6361 interix[[3-9]]*)
6362 _LT_TAGVAR(hardcode_direct, $1)=no
6363 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6364 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6365 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6366 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6367 # Instead, shared libraries are loaded at an image base (0x10000000 by
6368 # default) and relocated if they conflict, which is a slow very memory
6369 # consuming and fragmenting process. To avoid this, we pick a random,
6370 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6371 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6372 _LT_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'
6373 _LT_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'
6374 ;;
6375 irix5* | irix6*)
6376 case $cc_basename in
6377 CC*)
6378 # SGI C++
6379 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6380
6381 # Archives containing C++ object files must be created using
6382 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6383 # necessary to make sure instantiated templates are included
6384 # in the archive.
6385 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6386 ;;
6387 *)
6388 if test "$GXX" = yes; then
6389 if test "$with_gnu_ld" = no; then
6390 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6391 else
6392 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
6393 fi
6394 fi
6395 _LT_TAGVAR(link_all_deplibs, $1)=yes
6396 ;;
6397 esac
6398 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6399 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6400 _LT_TAGVAR(inherit_rpath, $1)=yes
6401 ;;
6402
6403 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6404 case $cc_basename in
6405 KCC*)
6406 # Kuck and Associates, Inc. (KAI) C++ Compiler
6407
6408 # KCC will only create a shared library if the output file
6409 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6410 # to its proper name (with version) after linking.
6411 _LT_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'
6412 _LT_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'
6413 # Commands to make compiler produce verbose output that lists
6414 # what "hidden" libraries, object files and flags are used when
6415 # linking a shared library.
6416 #
6417 # There doesn't appear to be a way to prevent this compiler from
6418 # explicitly linking system object files so we need to strip them
6419 # from the output so that they don't get included in the library
6420 # dependencies.
6421 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; func_echo_all "$list"'
6422
6423 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6424 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6425
6426 # Archives containing C++ object files must be created using
6427 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6428 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6429 ;;
6430 icpc* | ecpc* )
6431 # Intel C++
6432 with_gnu_ld=yes
6433 # version 8.0 and above of icpc choke on multiply defined symbols
6434 # if we add $predep_objects and $postdep_objects, however 7.1 and
6435 # earlier do not add the objects themselves.
6436 case `$CC -V 2>&1` in
6437 *"Version 7."*)
6438 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6439 _LT_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'
6440 ;;
6441 *) # Version 8.0 or newer
6442 tmp_idyn=
6443 case $host_cpu in
6444 ia64*) tmp_idyn=' -i_dynamic';;
6445 esac
6446 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6447 _LT_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'
6448 ;;
6449 esac
6450 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6451 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6452 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6453 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6454 ;;
6455 pgCC* | pgcpp*)
6456 # Portland Group C++ compiler
6457 case `$CC -V` in
6458 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6459 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6460 rm -rf $tpldir~
6461 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6462 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6463 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6464 rm -rf $tpldir~
6465 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6466 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6467 $RANLIB $oldlib'
6468 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6469 rm -rf $tpldir~
6470 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6471 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6472 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6473 rm -rf $tpldir~
6474 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6475 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6476 ;;
6477 *) # Version 6 and above use weak symbols
6478 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6479 _LT_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'
6480 ;;
6481 esac
6482
6483 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6484 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6485 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6486 ;;
6487 cxx*)
6488 # Compaq C++
6489 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6490 _LT_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'
6491
6492 runpath_var=LD_RUN_PATH
6493 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6494 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6495
6496 # Commands to make compiler produce verbose output that lists
6497 # what "hidden" libraries, object files and flags are used when
6498 # linking a shared library.
6499 #
6500 # There doesn't appear to be a way to prevent this compiler from
6501 # explicitly linking system object files so we need to strip them
6502 # from the output so that they don't get included in the library
6503 # dependencies.
6504 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
6505 ;;
6506 xl* | mpixl* | bgxl*)
6507 # IBM XL 8.0 on PPC, with GNU ld
6508 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6509 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6510 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6511 if test "x$supports_anon_versioning" = xyes; then
6512 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6513 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6514 echo "local: *; };" >> $output_objdir/$libname.ver~
6515 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6516 fi
6517 ;;
6518 *)
6519 case `$CC -V 2>&1 | sed 5q` in
6520 *Sun\ C*)
6521 # Sun C++ 5.9
6522 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6523 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6524 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
6525 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6526 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6527 _LT_TAGVAR(compiler_needs_object, $1)=yes
6528
6529 # Not sure whether something based on
6530 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6531 # would be better.
6532 output_verbose_link_cmd='func_echo_all'
6533
6534 # Archives containing C++ object files must be created using
6535 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6536 # necessary to make sure instantiated templates are included
6537 # in the archive.
6538 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6539 ;;
6540 esac
6541 ;;
6542 esac
6543 ;;
6544
6545 lynxos*)
6546 # FIXME: insert proper C++ library support
6547 _LT_TAGVAR(ld_shlibs, $1)=no
6548 ;;
6549
6550 m88k*)
6551 # FIXME: insert proper C++ library support
6552 _LT_TAGVAR(ld_shlibs, $1)=no
6553 ;;
6554
6555 mvs*)
6556 case $cc_basename in
6557 cxx*)
6558 # FIXME: insert proper C++ library support
6559 _LT_TAGVAR(ld_shlibs, $1)=no
6560 ;;
6561 *)
6562 # FIXME: insert proper C++ library support
6563 _LT_TAGVAR(ld_shlibs, $1)=no
6564 ;;
6565 esac
6566 ;;
6567
6568 netbsd*)
6569 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6570 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6571 wlarc=
6572 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6573 _LT_TAGVAR(hardcode_direct, $1)=yes
6574 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6575 fi
6576 # Workaround some broken pre-1.5 toolchains
6577 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6578 ;;
6579
6580 *nto* | *qnx*)
6581 _LT_TAGVAR(ld_shlibs, $1)=yes
6582 ;;
6583
6584 openbsd2*)
6585 # C++ shared libraries are fairly broken
6586 _LT_TAGVAR(ld_shlibs, $1)=no
6587 ;;
6588
6589 openbsd*)
6590 if test -f /usr/libexec/ld.so; then
6591 _LT_TAGVAR(hardcode_direct, $1)=yes
6592 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6593 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6594 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6595 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6596 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6597 _LT_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'
6598 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6599 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6600 fi
6601 output_verbose_link_cmd=func_echo_all
6602 else
6603 _LT_TAGVAR(ld_shlibs, $1)=no
6604 fi
6605 ;;
6606
6607 osf3* | osf4* | osf5*)
6608 case $cc_basename in
6609 KCC*)
6610 # Kuck and Associates, Inc. (KAI) C++ Compiler
6611
6612 # KCC will only create a shared library if the output file
6613 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6614 # to its proper name (with version) after linking.
6615 _LT_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'
6616
6617 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6618 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6619
6620 # Archives containing C++ object files must be created using
6621 # the KAI C++ compiler.
6622 case $host in
6623 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6624 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6625 esac
6626 ;;
6627 RCC*)
6628 # Rational C++ 2.4.1
6629 # FIXME: insert proper C++ library support
6630 _LT_TAGVAR(ld_shlibs, $1)=no
6631 ;;
6632 cxx*)
6633 case $host in
6634 osf3*)
6635 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6636 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6637 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6638 ;;
6639 *)
6640 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6641 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6642 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6643 echo "-hidden">> $lib.exp~
6644 $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~
6645 $RM $lib.exp'
6646 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6647 ;;
6648 esac
6649
6650 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6651
6652 # Commands to make compiler produce verbose output that lists
6653 # what "hidden" libraries, object files and flags are used when
6654 # linking a shared library.
6655 #
6656 # There doesn't appear to be a way to prevent this compiler from
6657 # explicitly linking system object files so we need to strip them
6658 # from the output so that they don't get included in the library
6659 # dependencies.
6660 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
6661 ;;
6662 *)
6663 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6664 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6665 case $host in
6666 osf3*)
6667 _LT_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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6668 ;;
6669 *)
6670 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6671 ;;
6672 esac
6673
6674 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6675 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6676
6677 # Commands to make compiler produce verbose output that lists
6678 # what "hidden" libraries, object files and flags are used when
6679 # linking a shared library.
6680 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6681
6682 else
6683 # FIXME: insert proper C++ library support
6684 _LT_TAGVAR(ld_shlibs, $1)=no
6685 fi
6686 ;;
6687 esac
6688 ;;
6689
6690 psos*)
6691 # FIXME: insert proper C++ library support
6692 _LT_TAGVAR(ld_shlibs, $1)=no
6693 ;;
6694
6695 sunos4*)
6696 case $cc_basename in
6697 CC*)
6698 # Sun C++ 4.x
6699 # FIXME: insert proper C++ library support
6700 _LT_TAGVAR(ld_shlibs, $1)=no
6701 ;;
6702 lcc*)
6703 # Lucid
6704 # FIXME: insert proper C++ library support
6705 _LT_TAGVAR(ld_shlibs, $1)=no
6706 ;;
6707 *)
6708 # FIXME: insert proper C++ library support
6709 _LT_TAGVAR(ld_shlibs, $1)=no
6710 ;;
6711 esac
6712 ;;
6713
6714 solaris*)
6715 case $cc_basename in
6716 CC* | sunCC*)
6717 # Sun C++ 4.2, 5.x and Centerline C++
6718 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6719 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6720 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6721 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6722 $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'
6723
6724 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6725 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6726 case $host_os in
6727 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6728 *)
6729 # The compiler driver will combine and reorder linker options,
6730 # but understands `-z linker_flag'.
6731 # Supported since Solaris 2.6 (maybe 2.5.1?)
6732 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6733 ;;
6734 esac
6735 _LT_TAGVAR(link_all_deplibs, $1)=yes
6736
6737 output_verbose_link_cmd='func_echo_all'
6738
6739 # Archives containing C++ object files must be created using
6740 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6741 # necessary to make sure instantiated templates are included
6742 # in the archive.
6743 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6744 ;;
6745 gcx*)
6746 # Green Hills C++ Compiler
6747 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6748
6749 # The C++ compiler must be used to create the archive.
6750 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6751 ;;
6752 *)
6753 # GNU C++ compiler with Solaris linker
6754 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6755 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6756 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6757 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6758 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6759 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6760
6761 # Commands to make compiler produce verbose output that lists
6762 # what "hidden" libraries, object files and flags are used when
6763 # linking a shared library.
6764 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6765 else
6766 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6767 # platform.
6768 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6769 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6770 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6771
6772 # Commands to make compiler produce verbose output that lists
6773 # what "hidden" libraries, object files and flags are used when
6774 # linking a shared library.
6775 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6776 fi
6777
6778 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6779 case $host_os in
6780 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6781 *)
6782 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6783 ;;
6784 esac
6785 fi
6786 ;;
6787 esac
6788 ;;
6789
6790 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6791 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6792 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6793 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6794 runpath_var='LD_RUN_PATH'
6795
6796 case $cc_basename in
6797 CC*)
6798 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6799 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6800 ;;
6801 *)
6802 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6803 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6804 ;;
6805 esac
6806 ;;
6807
6808 sysv5* | sco3.2v5* | sco5v6*)
6809 # Note: We can NOT use -z defs as we might desire, because we do not
6810 # link with -lc, and that would cause any symbols used from libc to
6811 # always be unresolved, which means just about no library would
6812 # ever link correctly. If we're not using GNU ld we use -z text
6813 # though, which does catch some bad symbols but isn't as heavy-handed
6814 # as -z defs.
6815 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6816 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6817 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6818 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6819 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6820 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6821 _LT_TAGVAR(link_all_deplibs, $1)=yes
6822 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6823 runpath_var='LD_RUN_PATH'
6824
6825 case $cc_basename in
6826 CC*)
6827 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6828 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6829 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6830 '"$_LT_TAGVAR(old_archive_cmds, $1)"
6831 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6832 '"$_LT_TAGVAR(reload_cmds, $1)"
6833 ;;
6834 *)
6835 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6836 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6837 ;;
6838 esac
6839 ;;
6840
6841 tandem*)
6842 case $cc_basename in
6843 NCC*)
6844 # NonStop-UX NCC 3.20
6845 # FIXME: insert proper C++ library support
6846 _LT_TAGVAR(ld_shlibs, $1)=no
6847 ;;
6848 *)
6849 # FIXME: insert proper C++ library support
6850 _LT_TAGVAR(ld_shlibs, $1)=no
6851 ;;
6852 esac
6853 ;;
6854
6855 vxworks*)
6856 # FIXME: insert proper C++ library support
6857 _LT_TAGVAR(ld_shlibs, $1)=no
6858 ;;
6859
6860 *)
6861 # FIXME: insert proper C++ library support
6862 _LT_TAGVAR(ld_shlibs, $1)=no
6863 ;;
6864 esac
6865
6866 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6867 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6868
6869 _LT_TAGVAR(GCC, $1)="$GXX"
6870 _LT_TAGVAR(LD, $1)="$LD"
6871
6872 ## CAVEAT EMPTOR:
6873 ## There is no encapsulation within the following macros, do not change
6874 ## the running order or otherwise move them around unless you know exactly
6875 ## what you are doing...
6876 _LT_SYS_HIDDEN_LIBDEPS($1)
6877 _LT_COMPILER_PIC($1)
6878 _LT_COMPILER_C_O($1)
6879 _LT_COMPILER_FILE_LOCKS($1)
6880 _LT_LINKER_SHLIBS($1)
6881 _LT_SYS_DYNAMIC_LINKER($1)
6882 _LT_LINKER_HARDCODE_LIBPATH($1)
6883
6884 _LT_CONFIG($1)
6885 fi # test -n "$compiler"
6886
6887 CC=$lt_save_CC
6888 CFLAGS=$lt_save_CFLAGS
6889 LDCXX=$LD
6890 LD=$lt_save_LD
6891 GCC=$lt_save_GCC
6892 with_gnu_ld=$lt_save_with_gnu_ld
6893 lt_cv_path_LDCXX=$lt_cv_path_LD
6894 lt_cv_path_LD=$lt_save_path_LD
6895 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6896 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6897 fi # test "$_lt_caught_CXX_error" != yes
6898
6899 AC_LANG_POP
6900 ])# _LT_LANG_CXX_CONFIG
6901
6902
6903 # _LT_FUNC_STRIPNAME_CNF
6904 # ----------------------
6905 # func_stripname_cnf prefix suffix name
6906 # strip PREFIX and SUFFIX off of NAME.
6907 # PREFIX and SUFFIX must not contain globbing or regex special
6908 # characters, hashes, percent signs, but SUFFIX may contain a leading
6909 # dot (in which case that matches only a dot).
6910 #
6911 # This function is identical to the (non-XSI) version of func_stripname,
6912 # except this one can be used by m4 code that may be executed by configure,
6913 # rather than the libtool script.
6914 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
6915 AC_REQUIRE([_LT_DECL_SED])
6916 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
6917 func_stripname_cnf ()
6918 {
6919 case ${2} in
6920 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
6921 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
6922 esac
6923 } # func_stripname_cnf
6924 ])# _LT_FUNC_STRIPNAME_CNF
6925
6926 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6927 # ---------------------------------
6928 # Figure out "hidden" library dependencies from verbose
6929 # compiler output when linking a shared library.
6930 # Parse the compiler output and extract the necessary
6931 # objects, libraries and library flags.
6932 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6933 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6934 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
6935 # Dependencies to place before and after the object being linked:
6936 _LT_TAGVAR(predep_objects, $1)=
6937 _LT_TAGVAR(postdep_objects, $1)=
6938 _LT_TAGVAR(predeps, $1)=
6939 _LT_TAGVAR(postdeps, $1)=
6940 _LT_TAGVAR(compiler_lib_search_path, $1)=
6941
6942 dnl we can't use the lt_simple_compile_test_code here,
6943 dnl because it contains code intended for an executable,
6944 dnl not a library. It's possible we should let each
6945 dnl tag define a new lt_????_link_test_code variable,
6946 dnl but it's only used here...
6947 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6948 int a;
6949 void foo (void) { a = 0; }
6950 _LT_EOF
6951 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6952 class Foo
6953 {
6954 public:
6955 Foo (void) { a = 0; }
6956 private:
6957 int a;
6958 };
6959 _LT_EOF
6960 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6961 subroutine foo
6962 implicit none
6963 integer*4 a
6964 a=0
6965 return
6966 end
6967 _LT_EOF
6968 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6969 subroutine foo
6970 implicit none
6971 integer a
6972 a=0
6973 return
6974 end
6975 _LT_EOF
6976 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6977 public class foo {
6978 private int a;
6979 public void bar (void) {
6980 a = 0;
6981 }
6982 };
6983 _LT_EOF
6984 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
6985 package foo
6986 func foo() {
6987 }
6988 _LT_EOF
6989 ])
6990
6991 _lt_libdeps_save_CFLAGS=$CFLAGS
6992 case "$CC $CFLAGS " in #(
6993 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
6994 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
6995 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
6996 esac
6997
6998 dnl Parse the compiler output and extract the necessary
6999 dnl objects, libraries and library flags.
7000 if AC_TRY_EVAL(ac_compile); then
7001 # Parse the compiler output and extract the necessary
7002 # objects, libraries and library flags.
7003
7004 # Sentinel used to keep track of whether or not we are before
7005 # the conftest object file.
7006 pre_test_object_deps_done=no
7007
7008 for p in `eval "$output_verbose_link_cmd"`; do
7009 case ${prev}${p} in
7010
7011 -L* | -R* | -l*)
7012 # Some compilers place space between "-{L,R}" and the path.
7013 # Remove the space.
7014 if test $p = "-L" ||
7015 test $p = "-R"; then
7016 prev=$p
7017 continue
7018 fi
7019
7020 # Expand the sysroot to ease extracting the directories later.
7021 if test -z "$prev"; then
7022 case $p in
7023 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7024 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7025 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7026 esac
7027 fi
7028 case $p in
7029 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7030 esac
7031 if test "$pre_test_object_deps_done" = no; then
7032 case ${prev} in
7033 -L | -R)
7034 # Internal compiler library paths should come after those
7035 # provided the user. The postdeps already come after the
7036 # user supplied libs so there is no need to process them.
7037 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7038 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7039 else
7040 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7041 fi
7042 ;;
7043 # The "-l" case would never come before the object being
7044 # linked, so don't bother handling this case.
7045 esac
7046 else
7047 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7048 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7049 else
7050 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7051 fi
7052 fi
7053 prev=
7054 ;;
7055
7056 *.lto.$objext) ;; # Ignore GCC LTO objects
7057 *.$objext)
7058 # This assumes that the test object file only shows up
7059 # once in the compiler output.
7060 if test "$p" = "conftest.$objext"; then
7061 pre_test_object_deps_done=yes
7062 continue
7063 fi
7064
7065 if test "$pre_test_object_deps_done" = no; then
7066 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7067 _LT_TAGVAR(predep_objects, $1)="$p"
7068 else
7069 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7070 fi
7071 else
7072 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7073 _LT_TAGVAR(postdep_objects, $1)="$p"
7074 else
7075 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7076 fi
7077 fi
7078 ;;
7079
7080 *) ;; # Ignore the rest.
7081
7082 esac
7083 done
7084
7085 # Clean up.
7086 rm -f a.out a.exe
7087 else
7088 echo "libtool.m4: error: problem compiling $1 test program"
7089 fi
7090
7091 $RM -f confest.$objext
7092 CFLAGS=$_lt_libdeps_save_CFLAGS
7093
7094 # PORTME: override above test on systems where it is broken
7095 m4_if([$1], [CXX],
7096 [case $host_os in
7097 interix[[3-9]]*)
7098 # Interix 3.5 installs completely hosed .la files for C++, so rather than
7099 # hack all around it, let's just trust "g++" to DTRT.
7100 _LT_TAGVAR(predep_objects,$1)=
7101 _LT_TAGVAR(postdep_objects,$1)=
7102 _LT_TAGVAR(postdeps,$1)=
7103 ;;
7104
7105 linux*)
7106 case `$CC -V 2>&1 | sed 5q` in
7107 *Sun\ C*)
7108 # Sun C++ 5.9
7109
7110 # The more standards-conforming stlport4 library is
7111 # incompatible with the Cstd library. Avoid specifying
7112 # it if it's in CXXFLAGS. Ignore libCrun as
7113 # -library=stlport4 depends on it.
7114 case " $CXX $CXXFLAGS " in
7115 *" -library=stlport4 "*)
7116 solaris_use_stlport4=yes
7117 ;;
7118 esac
7119
7120 if test "$solaris_use_stlport4" != yes; then
7121 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7122 fi
7123 ;;
7124 esac
7125 ;;
7126
7127 solaris*)
7128 case $cc_basename in
7129 CC* | sunCC*)
7130 # The more standards-conforming stlport4 library is
7131 # incompatible with the Cstd library. Avoid specifying
7132 # it if it's in CXXFLAGS. Ignore libCrun as
7133 # -library=stlport4 depends on it.
7134 case " $CXX $CXXFLAGS " in
7135 *" -library=stlport4 "*)
7136 solaris_use_stlport4=yes
7137 ;;
7138 esac
7139
7140 # Adding this requires a known-good setup of shared libraries for
7141 # Sun compiler versions before 5.6, else PIC objects from an old
7142 # archive will be linked into the output, leading to subtle bugs.
7143 if test "$solaris_use_stlport4" != yes; then
7144 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7145 fi
7146 ;;
7147 esac
7148 ;;
7149 esac
7150 ])
7151
7152 case " $_LT_TAGVAR(postdeps, $1) " in
7153 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7154 esac
7155 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7156 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7157 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7158 fi
7159 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7160 [The directories searched by this compiler when creating a shared library])
7161 _LT_TAGDECL([], [predep_objects], [1],
7162 [Dependencies to place before and after the objects being linked to
7163 create a shared library])
7164 _LT_TAGDECL([], [postdep_objects], [1])
7165 _LT_TAGDECL([], [predeps], [1])
7166 _LT_TAGDECL([], [postdeps], [1])
7167 _LT_TAGDECL([], [compiler_lib_search_path], [1],
7168 [The library search path used internally by the compiler when linking
7169 a shared library])
7170 ])# _LT_SYS_HIDDEN_LIBDEPS
7171
7172
7173 # _LT_LANG_F77_CONFIG([TAG])
7174 # --------------------------
7175 # Ensure that the configuration variables for a Fortran 77 compiler are
7176 # suitably defined. These variables are subsequently used by _LT_CONFIG
7177 # to write the compiler configuration to `libtool'.
7178 m4_defun([_LT_LANG_F77_CONFIG],
7179 [AC_LANG_PUSH(Fortran 77)
7180 if test -z "$F77" || test "X$F77" = "Xno"; then
7181 _lt_disable_F77=yes
7182 fi
7183
7184 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7185 _LT_TAGVAR(allow_undefined_flag, $1)=
7186 _LT_TAGVAR(always_export_symbols, $1)=no
7187 _LT_TAGVAR(archive_expsym_cmds, $1)=
7188 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7189 _LT_TAGVAR(hardcode_direct, $1)=no
7190 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7191 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7192 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7193 _LT_TAGVAR(hardcode_minus_L, $1)=no
7194 _LT_TAGVAR(hardcode_automatic, $1)=no
7195 _LT_TAGVAR(inherit_rpath, $1)=no
7196 _LT_TAGVAR(module_cmds, $1)=
7197 _LT_TAGVAR(module_expsym_cmds, $1)=
7198 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7199 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7200 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7201 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7202 _LT_TAGVAR(no_undefined_flag, $1)=
7203 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7204 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7205
7206 # Source file extension for f77 test sources.
7207 ac_ext=f
7208
7209 # Object file extension for compiled f77 test sources.
7210 objext=o
7211 _LT_TAGVAR(objext, $1)=$objext
7212
7213 # No sense in running all these tests if we already determined that
7214 # the F77 compiler isn't working. Some variables (like enable_shared)
7215 # are currently assumed to apply to all compilers on this platform,
7216 # and will be corrupted by setting them based on a non-working compiler.
7217 if test "$_lt_disable_F77" != yes; then
7218 # Code to be used in simple compile tests
7219 lt_simple_compile_test_code="\
7220 subroutine t
7221 return
7222 end
7223 "
7224
7225 # Code to be used in simple link tests
7226 lt_simple_link_test_code="\
7227 program t
7228 end
7229 "
7230
7231 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7232 _LT_TAG_COMPILER
7233
7234 # save warnings/boilerplate of simple test code
7235 _LT_COMPILER_BOILERPLATE
7236 _LT_LINKER_BOILERPLATE
7237
7238 # Allow CC to be a program name with arguments.
7239 lt_save_CC="$CC"
7240 lt_save_GCC=$GCC
7241 lt_save_CFLAGS=$CFLAGS
7242 CC=${F77-"f77"}
7243 CFLAGS=$FFLAGS
7244 compiler=$CC
7245 _LT_TAGVAR(compiler, $1)=$CC
7246 _LT_CC_BASENAME([$compiler])
7247 GCC=$G77
7248 if test -n "$compiler"; then
7249 AC_MSG_CHECKING([if libtool supports shared libraries])
7250 AC_MSG_RESULT([$can_build_shared])
7251
7252 AC_MSG_CHECKING([whether to build shared libraries])
7253 test "$can_build_shared" = "no" && enable_shared=no
7254
7255 # On AIX, shared libraries and static libraries use the same namespace, and
7256 # are all built from PIC.
7257 case $host_os in
7258 aix3*)
7259 test "$enable_shared" = yes && enable_static=no
7260 if test -n "$RANLIB"; then
7261 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7262 postinstall_cmds='$RANLIB $lib'
7263 fi
7264 ;;
7265 aix[[4-9]]*)
7266 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7267 test "$enable_shared" = yes && enable_static=no
7268 fi
7269 ;;
7270 esac
7271 AC_MSG_RESULT([$enable_shared])
7272
7273 AC_MSG_CHECKING([whether to build static libraries])
7274 # Make sure either enable_shared or enable_static is yes.
7275 test "$enable_shared" = yes || enable_static=yes
7276 AC_MSG_RESULT([$enable_static])
7277
7278 _LT_TAGVAR(GCC, $1)="$G77"
7279 _LT_TAGVAR(LD, $1)="$LD"
7280
7281 ## CAVEAT EMPTOR:
7282 ## There is no encapsulation within the following macros, do not change
7283 ## the running order or otherwise move them around unless you know exactly
7284 ## what you are doing...
7285 _LT_COMPILER_PIC($1)
7286 _LT_COMPILER_C_O($1)
7287 _LT_COMPILER_FILE_LOCKS($1)
7288 _LT_LINKER_SHLIBS($1)
7289 _LT_SYS_DYNAMIC_LINKER($1)
7290 _LT_LINKER_HARDCODE_LIBPATH($1)
7291
7292 _LT_CONFIG($1)
7293 fi # test -n "$compiler"
7294
7295 GCC=$lt_save_GCC
7296 CC="$lt_save_CC"
7297 CFLAGS="$lt_save_CFLAGS"
7298 fi # test "$_lt_disable_F77" != yes
7299
7300 AC_LANG_POP
7301 ])# _LT_LANG_F77_CONFIG
7302
7303
7304 # _LT_LANG_FC_CONFIG([TAG])
7305 # -------------------------
7306 # Ensure that the configuration variables for a Fortran compiler are
7307 # suitably defined. These variables are subsequently used by _LT_CONFIG
7308 # to write the compiler configuration to `libtool'.
7309 m4_defun([_LT_LANG_FC_CONFIG],
7310 [AC_LANG_PUSH(Fortran)
7311
7312 if test -z "$FC" || test "X$FC" = "Xno"; then
7313 _lt_disable_FC=yes
7314 fi
7315
7316 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7317 _LT_TAGVAR(allow_undefined_flag, $1)=
7318 _LT_TAGVAR(always_export_symbols, $1)=no
7319 _LT_TAGVAR(archive_expsym_cmds, $1)=
7320 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7321 _LT_TAGVAR(hardcode_direct, $1)=no
7322 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7323 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7324 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7325 _LT_TAGVAR(hardcode_minus_L, $1)=no
7326 _LT_TAGVAR(hardcode_automatic, $1)=no
7327 _LT_TAGVAR(inherit_rpath, $1)=no
7328 _LT_TAGVAR(module_cmds, $1)=
7329 _LT_TAGVAR(module_expsym_cmds, $1)=
7330 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7331 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7332 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7333 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7334 _LT_TAGVAR(no_undefined_flag, $1)=
7335 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7336 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7337
7338 # Source file extension for fc test sources.
7339 ac_ext=${ac_fc_srcext-f}
7340
7341 # Object file extension for compiled fc test sources.
7342 objext=o
7343 _LT_TAGVAR(objext, $1)=$objext
7344
7345 # No sense in running all these tests if we already determined that
7346 # the FC compiler isn't working. Some variables (like enable_shared)
7347 # are currently assumed to apply to all compilers on this platform,
7348 # and will be corrupted by setting them based on a non-working compiler.
7349 if test "$_lt_disable_FC" != yes; then
7350 # Code to be used in simple compile tests
7351 lt_simple_compile_test_code="\
7352 subroutine t
7353 return
7354 end
7355 "
7356
7357 # Code to be used in simple link tests
7358 lt_simple_link_test_code="\
7359 program t
7360 end
7361 "
7362
7363 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7364 _LT_TAG_COMPILER
7365
7366 # save warnings/boilerplate of simple test code
7367 _LT_COMPILER_BOILERPLATE
7368 _LT_LINKER_BOILERPLATE
7369
7370 # Allow CC to be a program name with arguments.
7371 lt_save_CC="$CC"
7372 lt_save_GCC=$GCC
7373 lt_save_CFLAGS=$CFLAGS
7374 CC=${FC-"f95"}
7375 CFLAGS=$FCFLAGS
7376 compiler=$CC
7377 GCC=$ac_cv_fc_compiler_gnu
7378
7379 _LT_TAGVAR(compiler, $1)=$CC
7380 _LT_CC_BASENAME([$compiler])
7381
7382 if test -n "$compiler"; then
7383 AC_MSG_CHECKING([if libtool supports shared libraries])
7384 AC_MSG_RESULT([$can_build_shared])
7385
7386 AC_MSG_CHECKING([whether to build shared libraries])
7387 test "$can_build_shared" = "no" && enable_shared=no
7388
7389 # On AIX, shared libraries and static libraries use the same namespace, and
7390 # are all built from PIC.
7391 case $host_os in
7392 aix3*)
7393 test "$enable_shared" = yes && enable_static=no
7394 if test -n "$RANLIB"; then
7395 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7396 postinstall_cmds='$RANLIB $lib'
7397 fi
7398 ;;
7399 aix[[4-9]]*)
7400 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7401 test "$enable_shared" = yes && enable_static=no
7402 fi
7403 ;;
7404 esac
7405 AC_MSG_RESULT([$enable_shared])
7406
7407 AC_MSG_CHECKING([whether to build static libraries])
7408 # Make sure either enable_shared or enable_static is yes.
7409 test "$enable_shared" = yes || enable_static=yes
7410 AC_MSG_RESULT([$enable_static])
7411
7412 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7413 _LT_TAGVAR(LD, $1)="$LD"
7414
7415 ## CAVEAT EMPTOR:
7416 ## There is no encapsulation within the following macros, do not change
7417 ## the running order or otherwise move them around unless you know exactly
7418 ## what you are doing...
7419 _LT_SYS_HIDDEN_LIBDEPS($1)
7420 _LT_COMPILER_PIC($1)
7421 _LT_COMPILER_C_O($1)
7422 _LT_COMPILER_FILE_LOCKS($1)
7423 _LT_LINKER_SHLIBS($1)
7424 _LT_SYS_DYNAMIC_LINKER($1)
7425 _LT_LINKER_HARDCODE_LIBPATH($1)
7426
7427 _LT_CONFIG($1)
7428 fi # test -n "$compiler"
7429
7430 GCC=$lt_save_GCC
7431 CC=$lt_save_CC
7432 CFLAGS=$lt_save_CFLAGS
7433 fi # test "$_lt_disable_FC" != yes
7434
7435 AC_LANG_POP
7436 ])# _LT_LANG_FC_CONFIG
7437
7438
7439 # _LT_LANG_GCJ_CONFIG([TAG])
7440 # --------------------------
7441 # Ensure that the configuration variables for the GNU Java Compiler compiler
7442 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7443 # to write the compiler configuration to `libtool'.
7444 m4_defun([_LT_LANG_GCJ_CONFIG],
7445 [AC_REQUIRE([LT_PROG_GCJ])dnl
7446 AC_LANG_SAVE
7447
7448 # Source file extension for Java test sources.
7449 ac_ext=java
7450
7451 # Object file extension for compiled Java test sources.
7452 objext=o
7453 _LT_TAGVAR(objext, $1)=$objext
7454
7455 # Code to be used in simple compile tests
7456 lt_simple_compile_test_code="class foo {}"
7457
7458 # Code to be used in simple link tests
7459 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7460
7461 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7462 _LT_TAG_COMPILER
7463
7464 # save warnings/boilerplate of simple test code
7465 _LT_COMPILER_BOILERPLATE
7466 _LT_LINKER_BOILERPLATE
7467
7468 # Allow CC to be a program name with arguments.
7469 lt_save_CC=$CC
7470 lt_save_CFLAGS=$CFLAGS
7471 lt_save_GCC=$GCC
7472 GCC=yes
7473 CC=${GCJ-"gcj"}
7474 CFLAGS=$GCJFLAGS
7475 compiler=$CC
7476 _LT_TAGVAR(compiler, $1)=$CC
7477 _LT_TAGVAR(LD, $1)="$LD"
7478 _LT_CC_BASENAME([$compiler])
7479
7480 # GCJ did not exist at the time GCC didn't implicitly link libc in.
7481 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7482
7483 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7484 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7485 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7486
7487 ## CAVEAT EMPTOR:
7488 ## There is no encapsulation within the following macros, do not change
7489 ## the running order or otherwise move them around unless you know exactly
7490 ## what you are doing...
7491 if test -n "$compiler"; then
7492 _LT_COMPILER_NO_RTTI($1)
7493 _LT_COMPILER_PIC($1)
7494 _LT_COMPILER_C_O($1)
7495 _LT_COMPILER_FILE_LOCKS($1)
7496 _LT_LINKER_SHLIBS($1)
7497 _LT_LINKER_HARDCODE_LIBPATH($1)
7498
7499 _LT_CONFIG($1)
7500 fi
7501
7502 AC_LANG_RESTORE
7503
7504 GCC=$lt_save_GCC
7505 CC=$lt_save_CC
7506 CFLAGS=$lt_save_CFLAGS
7507 ])# _LT_LANG_GCJ_CONFIG
7508
7509
7510 # _LT_LANG_GO_CONFIG([TAG])
7511 # --------------------------
7512 # Ensure that the configuration variables for the GNU Go compiler
7513 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7514 # to write the compiler configuration to `libtool'.
7515 m4_defun([_LT_LANG_GO_CONFIG],
7516 [AC_REQUIRE([LT_PROG_GO])dnl
7517 AC_LANG_SAVE
7518
7519 # Source file extension for Go test sources.
7520 ac_ext=go
7521
7522 # Object file extension for compiled Go test sources.
7523 objext=o
7524 _LT_TAGVAR(objext, $1)=$objext
7525
7526 # Code to be used in simple compile tests
7527 lt_simple_compile_test_code="package main; func main() { }"
7528
7529 # Code to be used in simple link tests
7530 lt_simple_link_test_code='package main; func main() { }'
7531
7532 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7533 _LT_TAG_COMPILER
7534
7535 # save warnings/boilerplate of simple test code
7536 _LT_COMPILER_BOILERPLATE
7537 _LT_LINKER_BOILERPLATE
7538
7539 # Allow CC to be a program name with arguments.
7540 lt_save_CC=$CC
7541 lt_save_CFLAGS=$CFLAGS
7542 lt_save_GCC=$GCC
7543 GCC=yes
7544 CC=${GOC-"gccgo"}
7545 CFLAGS=$GOFLAGS
7546 compiler=$CC
7547 _LT_TAGVAR(compiler, $1)=$CC
7548 _LT_TAGVAR(LD, $1)="$LD"
7549 _LT_CC_BASENAME([$compiler])
7550
7551 # Go did not exist at the time GCC didn't implicitly link libc in.
7552 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7553
7554 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7555 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7556 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7557
7558 ## CAVEAT EMPTOR:
7559 ## There is no encapsulation within the following macros, do not change
7560 ## the running order or otherwise move them around unless you know exactly
7561 ## what you are doing...
7562 if test -n "$compiler"; then
7563 _LT_COMPILER_NO_RTTI($1)
7564 _LT_COMPILER_PIC($1)
7565 _LT_COMPILER_C_O($1)
7566 _LT_COMPILER_FILE_LOCKS($1)
7567 _LT_LINKER_SHLIBS($1)
7568 _LT_LINKER_HARDCODE_LIBPATH($1)
7569
7570 _LT_CONFIG($1)
7571 fi
7572
7573 AC_LANG_RESTORE
7574
7575 GCC=$lt_save_GCC
7576 CC=$lt_save_CC
7577 CFLAGS=$lt_save_CFLAGS
7578 ])# _LT_LANG_GO_CONFIG
7579
7580
7581 # _LT_LANG_RC_CONFIG([TAG])
7582 # -------------------------
7583 # Ensure that the configuration variables for the Windows resource compiler
7584 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7585 # to write the compiler configuration to `libtool'.
7586 m4_defun([_LT_LANG_RC_CONFIG],
7587 [AC_REQUIRE([LT_PROG_RC])dnl
7588 AC_LANG_SAVE
7589
7590 # Source file extension for RC test sources.
7591 ac_ext=rc
7592
7593 # Object file extension for compiled RC test sources.
7594 objext=o
7595 _LT_TAGVAR(objext, $1)=$objext
7596
7597 # Code to be used in simple compile tests
7598 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7599
7600 # Code to be used in simple link tests
7601 lt_simple_link_test_code="$lt_simple_compile_test_code"
7602
7603 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7604 _LT_TAG_COMPILER
7605
7606 # save warnings/boilerplate of simple test code
7607 _LT_COMPILER_BOILERPLATE
7608 _LT_LINKER_BOILERPLATE
7609
7610 # Allow CC to be a program name with arguments.
7611 lt_save_CC="$CC"
7612 lt_save_CFLAGS=$CFLAGS
7613 lt_save_GCC=$GCC
7614 GCC=
7615 CC=${RC-"windres"}
7616 CFLAGS=
7617 compiler=$CC
7618 _LT_TAGVAR(compiler, $1)=$CC
7619 _LT_CC_BASENAME([$compiler])
7620 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7621
7622 if test -n "$compiler"; then
7623 :
7624 _LT_CONFIG($1)
7625 fi
7626
7627 GCC=$lt_save_GCC
7628 AC_LANG_RESTORE
7629 CC=$lt_save_CC
7630 CFLAGS=$lt_save_CFLAGS
7631 ])# _LT_LANG_RC_CONFIG
7632
7633
7634 # LT_PROG_GCJ
7635 # -----------
7636 AC_DEFUN([LT_PROG_GCJ],
7637 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7638 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7639 [AC_CHECK_TOOL(GCJ, gcj,)
7640 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7641 AC_SUBST(GCJFLAGS)])])[]dnl
7642 ])
7643
7644 # Old name:
7645 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7646 dnl aclocal-1.4 backwards compatibility:
7647 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7648
7649
7650 # LT_PROG_GO
7651 # ----------
7652 AC_DEFUN([LT_PROG_GO],
7653 [AC_CHECK_TOOL(GOC, gccgo,)
7654 ])
7655
7656
7657 # LT_PROG_RC
7658 # ----------
7659 AC_DEFUN([LT_PROG_RC],
7660 [AC_CHECK_TOOL(RC, windres,)
7661 ])
7662
7663 # Old name:
7664 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7665 dnl aclocal-1.4 backwards compatibility:
7666 dnl AC_DEFUN([LT_AC_PROG_RC], [])
7667
7668
7669 # _LT_DECL_EGREP
7670 # --------------
7671 # If we don't have a new enough Autoconf to choose the best grep
7672 # available, choose the one first in the user's PATH.
7673 m4_defun([_LT_DECL_EGREP],
7674 [AC_REQUIRE([AC_PROG_EGREP])dnl
7675 AC_REQUIRE([AC_PROG_FGREP])dnl
7676 test -z "$GREP" && GREP=grep
7677 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7678 _LT_DECL([], [EGREP], [1], [An ERE matcher])
7679 _LT_DECL([], [FGREP], [1], [A literal string matcher])
7680 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7681 AC_SUBST([GREP])
7682 ])
7683
7684
7685 # _LT_DECL_OBJDUMP
7686 # --------------
7687 # If we don't have a new enough Autoconf to choose the best objdump
7688 # available, choose the one first in the user's PATH.
7689 m4_defun([_LT_DECL_OBJDUMP],
7690 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
7691 test -z "$OBJDUMP" && OBJDUMP=objdump
7692 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7693 AC_SUBST([OBJDUMP])
7694 ])
7695
7696 # _LT_DECL_DLLTOOL
7697 # ----------------
7698 # Ensure DLLTOOL variable is set.
7699 m4_defun([_LT_DECL_DLLTOOL],
7700 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7701 test -z "$DLLTOOL" && DLLTOOL=dlltool
7702 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
7703 AC_SUBST([DLLTOOL])
7704 ])
7705
7706 # _LT_DECL_SED
7707 # ------------
7708 # Check for a fully-functional sed program, that truncates
7709 # as few characters as possible. Prefer GNU sed if found.
7710 m4_defun([_LT_DECL_SED],
7711 [AC_PROG_SED
7712 test -z "$SED" && SED=sed
7713 Xsed="$SED -e 1s/^X//"
7714 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7715 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7716 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7717 ])# _LT_DECL_SED
7718
7719 m4_ifndef([AC_PROG_SED], [
7720 ############################################################
7721 # NOTE: This macro has been submitted for inclusion into #
7722 # GNU Autoconf as AC_PROG_SED. When it is available in #
7723 # a released version of Autoconf we should remove this #
7724 # macro and use it instead. #
7725 ############################################################
7726
7727 m4_defun([AC_PROG_SED],
7728 [AC_MSG_CHECKING([for a sed that does not truncate output])
7729 AC_CACHE_VAL(lt_cv_path_SED,
7730 [# Loop through the user's path and test for sed and gsed.
7731 # Then use that list of sed's as ones to test for truncation.
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 for as_dir in $PATH
7734 do
7735 IFS=$as_save_IFS
7736 test -z "$as_dir" && as_dir=.
7737 for lt_ac_prog in sed gsed; do
7738 for ac_exec_ext in '' $ac_executable_extensions; do
7739 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7740 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7741 fi
7742 done
7743 done
7744 done
7745 IFS=$as_save_IFS
7746 lt_ac_max=0
7747 lt_ac_count=0
7748 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7749 # along with /bin/sed that truncates output.
7750 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7751 test ! -f $lt_ac_sed && continue
7752 cat /dev/null > conftest.in
7753 lt_ac_count=0
7754 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7755 # Check for GNU sed and select it if it is found.
7756 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7757 lt_cv_path_SED=$lt_ac_sed
7758 break
7759 fi
7760 while true; do
7761 cat conftest.in conftest.in >conftest.tmp
7762 mv conftest.tmp conftest.in
7763 cp conftest.in conftest.nl
7764 echo >>conftest.nl
7765 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7766 cmp -s conftest.out conftest.nl || break
7767 # 10000 chars as input seems more than enough
7768 test $lt_ac_count -gt 10 && break
7769 lt_ac_count=`expr $lt_ac_count + 1`
7770 if test $lt_ac_count -gt $lt_ac_max; then
7771 lt_ac_max=$lt_ac_count
7772 lt_cv_path_SED=$lt_ac_sed
7773 fi
7774 done
7775 done
7776 ])
7777 SED=$lt_cv_path_SED
7778 AC_SUBST([SED])
7779 AC_MSG_RESULT([$SED])
7780 ])#AC_PROG_SED
7781 ])#m4_ifndef
7782
7783 # Old name:
7784 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7785 dnl aclocal-1.4 backwards compatibility:
7786 dnl AC_DEFUN([LT_AC_PROG_SED], [])
7787
7788
7789 # _LT_CHECK_SHELL_FEATURES
7790 # ------------------------
7791 # Find out whether the shell is Bourne or XSI compatible,
7792 # or has some other useful features.
7793 m4_defun([_LT_CHECK_SHELL_FEATURES],
7794 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7795 # Try some XSI features
7796 xsi_shell=no
7797 ( _lt_dummy="a/b/c"
7798 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7799 = c,a/b,b/c, \
7800 && eval 'test $(( 1 + 1 )) -eq 2 \
7801 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7802 && xsi_shell=yes
7803 AC_MSG_RESULT([$xsi_shell])
7804 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7805
7806 AC_MSG_CHECKING([whether the shell understands "+="])
7807 lt_shell_append=no
7808 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7809 >/dev/null 2>&1 \
7810 && lt_shell_append=yes
7811 AC_MSG_RESULT([$lt_shell_append])
7812 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7813
7814 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7815 lt_unset=unset
7816 else
7817 lt_unset=false
7818 fi
7819 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7820
7821 # test EBCDIC or ASCII
7822 case `echo X|tr X '\101'` in
7823 A) # ASCII based system
7824 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7825 lt_SP2NL='tr \040 \012'
7826 lt_NL2SP='tr \015\012 \040\040'
7827 ;;
7828 *) # EBCDIC based system
7829 lt_SP2NL='tr \100 \n'
7830 lt_NL2SP='tr \r\n \100\100'
7831 ;;
7832 esac
7833 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7834 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7835 ])# _LT_CHECK_SHELL_FEATURES
7836
7837
7838 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7839 # ------------------------------------------------------
7840 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7841 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7842 m4_defun([_LT_PROG_FUNCTION_REPLACE],
7843 [dnl {
7844 sed -e '/^$1 ()$/,/^} # $1 /c\
7845 $1 ()\
7846 {\
7847 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7848 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7849 && mv -f "$cfgfile.tmp" "$cfgfile" \
7850 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7851 test 0 -eq $? || _lt_function_replace_fail=:
7852 ])
7853
7854
7855 # _LT_PROG_REPLACE_SHELLFNS
7856 # -------------------------
7857 # Replace existing portable implementations of several shell functions with
7858 # equivalent extended shell implementations where those features are available..
7859 m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7860 [if test x"$xsi_shell" = xyes; then
7861 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7862 case ${1} in
7863 */*) func_dirname_result="${1%/*}${2}" ;;
7864 * ) func_dirname_result="${3}" ;;
7865 esac])
7866
7867 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7868 func_basename_result="${1##*/}"])
7869
7870 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7871 case ${1} in
7872 */*) func_dirname_result="${1%/*}${2}" ;;
7873 * ) func_dirname_result="${3}" ;;
7874 esac
7875 func_basename_result="${1##*/}"])
7876
7877 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7878 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7879 # positional parameters, so assign one to ordinary parameter first.
7880 func_stripname_result=${3}
7881 func_stripname_result=${func_stripname_result#"${1}"}
7882 func_stripname_result=${func_stripname_result%"${2}"}])
7883
7884 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7885 func_split_long_opt_name=${1%%=*}
7886 func_split_long_opt_arg=${1#*=}])
7887
7888 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7889 func_split_short_opt_arg=${1#??}
7890 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7891
7892 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7893 case ${1} in
7894 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7895 *) func_lo2o_result=${1} ;;
7896 esac])
7897
7898 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7899
7900 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7901
7902 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7903 fi
7904
7905 if test x"$lt_shell_append" = xyes; then
7906 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7907
7908 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7909 func_quote_for_eval "${2}"
7910 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7911 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7912
7913 # Save a `func_append' function call where possible by direct use of '+='
7914 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7915 && mv -f "$cfgfile.tmp" "$cfgfile" \
7916 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7917 test 0 -eq $? || _lt_function_replace_fail=:
7918 else
7919 # Save a `func_append' function call even when '+=' is not available
7920 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7921 && mv -f "$cfgfile.tmp" "$cfgfile" \
7922 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7923 test 0 -eq $? || _lt_function_replace_fail=:
7924 fi
7925
7926 if test x"$_lt_function_replace_fail" = x":"; then
7927 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7928 fi
7929 ])
7930
7931 # _LT_PATH_CONVERSION_FUNCTIONS
7932 # -----------------------------
7933 # Determine which file name conversion functions should be used by
7934 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
7935 # for certain cross-compile configurations and native mingw.
7936 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
7937 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
7938 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
7939 AC_MSG_CHECKING([how to convert $build file names to $host format])
7940 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
7941 [case $host in
7942 *-*-mingw* )
7943 case $build in
7944 *-*-mingw* ) # actually msys
7945 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7946 ;;
7947 *-*-cygwin* )
7948 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7949 ;;
7950 * ) # otherwise, assume *nix
7951 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7952 ;;
7953 esac
7954 ;;
7955 *-*-cygwin* )
7956 case $build in
7957 *-*-mingw* ) # actually msys
7958 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7959 ;;
7960 *-*-cygwin* )
7961 lt_cv_to_host_file_cmd=func_convert_file_noop
7962 ;;
7963 * ) # otherwise, assume *nix
7964 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7965 ;;
7966 esac
7967 ;;
7968 * ) # unhandled hosts (and "normal" native builds)
7969 lt_cv_to_host_file_cmd=func_convert_file_noop
7970 ;;
7971 esac
7972 ])
7973 to_host_file_cmd=$lt_cv_to_host_file_cmd
7974 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
7975 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
7976 [0], [convert $build file names to $host format])dnl
7977
7978 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
7979 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
7980 [#assume ordinary cross tools, or native build.
7981 lt_cv_to_tool_file_cmd=func_convert_file_noop
7982 case $host in
7983 *-*-mingw* )
7984 case $build in
7985 *-*-mingw* ) # actually msys
7986 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7987 ;;
7988 esac
7989 ;;
7990 esac
7991 ])
7992 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7993 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
7994 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
7995 [0], [convert $build files to toolchain format])dnl
7996 ])# _LT_PATH_CONVERSION_FUNCTIONS
+0
-384
m4/ltoptions.m4 less more
0 # Helper functions for option handling. -*- Autoconf -*-
1 #
2 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3 # Inc.
4 # Written by Gary V. Vaughan, 2004
5 #
6 # This file is free software; the Free Software Foundation gives
7 # unlimited permission to copy and/or distribute it, with or without
8 # modifications, as long as this notice is preserved.
9
10 # serial 7 ltoptions.m4
11
12 # This is to help aclocal find these macros, as it can't see m4_define.
13 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
14
15
16 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
17 # ------------------------------------------
18 m4_define([_LT_MANGLE_OPTION],
19 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
20
21
22 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
23 # ---------------------------------------
24 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
25 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
26 # saved as a flag.
27 m4_define([_LT_SET_OPTION],
28 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
29 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
30 _LT_MANGLE_DEFUN([$1], [$2]),
31 [m4_warning([Unknown $1 option `$2'])])[]dnl
32 ])
33
34
35 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
36 # ------------------------------------------------------------
37 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
38 m4_define([_LT_IF_OPTION],
39 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
40
41
42 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
43 # -------------------------------------------------------
44 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
45 # are set.
46 m4_define([_LT_UNLESS_OPTIONS],
47 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
48 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
49 [m4_define([$0_found])])])[]dnl
50 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
51 ])[]dnl
52 ])
53
54
55 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
56 # ----------------------------------------
57 # OPTION-LIST is a space-separated list of Libtool options associated
58 # with MACRO-NAME. If any OPTION has a matching handler declared with
59 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
60 # the unknown option and exit.
61 m4_defun([_LT_SET_OPTIONS],
62 [# Set options
63 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
64 [_LT_SET_OPTION([$1], _LT_Option)])
65
66 m4_if([$1],[LT_INIT],[
67 dnl
68 dnl Simply set some default values (i.e off) if boolean options were not
69 dnl specified:
70 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
71 ])
72 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
73 ])
74 dnl
75 dnl If no reference was made to various pairs of opposing options, then
76 dnl we run the default mode handler for the pair. For example, if neither
77 dnl `shared' nor `disable-shared' was passed, we enable building of shared
78 dnl archives by default:
79 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
80 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
81 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
82 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
83 [_LT_ENABLE_FAST_INSTALL])
84 ])
85 ])# _LT_SET_OPTIONS
86
87
88 ## --------------------------------- ##
89 ## Macros to handle LT_INIT options. ##
90 ## --------------------------------- ##
91
92 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
93 # -----------------------------------------
94 m4_define([_LT_MANGLE_DEFUN],
95 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
96
97
98 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
99 # -----------------------------------------------
100 m4_define([LT_OPTION_DEFINE],
101 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
102 ])# LT_OPTION_DEFINE
103
104
105 # dlopen
106 # ------
107 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
108 ])
109
110 AU_DEFUN([AC_LIBTOOL_DLOPEN],
111 [_LT_SET_OPTION([LT_INIT], [dlopen])
112 AC_DIAGNOSE([obsolete],
113 [$0: Remove this warning and the call to _LT_SET_OPTION when you
114 put the `dlopen' option into LT_INIT's first parameter.])
115 ])
116
117 dnl aclocal-1.4 backwards compatibility:
118 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
119
120
121 # win32-dll
122 # ---------
123 # Declare package support for building win32 dll's.
124 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
125 [enable_win32_dll=yes
126
127 case $host in
128 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
129 AC_CHECK_TOOL(AS, as, false)
130 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
131 AC_CHECK_TOOL(OBJDUMP, objdump, false)
132 ;;
133 esac
134
135 test -z "$AS" && AS=as
136 _LT_DECL([], [AS], [1], [Assembler program])dnl
137
138 test -z "$DLLTOOL" && DLLTOOL=dlltool
139 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
140
141 test -z "$OBJDUMP" && OBJDUMP=objdump
142 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
143 ])# win32-dll
144
145 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
146 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
147 _LT_SET_OPTION([LT_INIT], [win32-dll])
148 AC_DIAGNOSE([obsolete],
149 [$0: Remove this warning and the call to _LT_SET_OPTION when you
150 put the `win32-dll' option into LT_INIT's first parameter.])
151 ])
152
153 dnl aclocal-1.4 backwards compatibility:
154 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
155
156
157 # _LT_ENABLE_SHARED([DEFAULT])
158 # ----------------------------
159 # implement the --enable-shared flag, and supports the `shared' and
160 # `disable-shared' LT_INIT options.
161 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
162 m4_define([_LT_ENABLE_SHARED],
163 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
164 AC_ARG_ENABLE([shared],
165 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
166 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
167 [p=${PACKAGE-default}
168 case $enableval in
169 yes) enable_shared=yes ;;
170 no) enable_shared=no ;;
171 *)
172 enable_shared=no
173 # Look at the argument we got. We use all the common list separators.
174 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
175 for pkg in $enableval; do
176 IFS="$lt_save_ifs"
177 if test "X$pkg" = "X$p"; then
178 enable_shared=yes
179 fi
180 done
181 IFS="$lt_save_ifs"
182 ;;
183 esac],
184 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
185
186 _LT_DECL([build_libtool_libs], [enable_shared], [0],
187 [Whether or not to build shared libraries])
188 ])# _LT_ENABLE_SHARED
189
190 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
191 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
192
193 # Old names:
194 AC_DEFUN([AC_ENABLE_SHARED],
195 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
196 ])
197
198 AC_DEFUN([AC_DISABLE_SHARED],
199 [_LT_SET_OPTION([LT_INIT], [disable-shared])
200 ])
201
202 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
203 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
204
205 dnl aclocal-1.4 backwards compatibility:
206 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
207 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
208
209
210
211 # _LT_ENABLE_STATIC([DEFAULT])
212 # ----------------------------
213 # implement the --enable-static flag, and support the `static' and
214 # `disable-static' LT_INIT options.
215 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
216 m4_define([_LT_ENABLE_STATIC],
217 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
218 AC_ARG_ENABLE([static],
219 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
220 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
221 [p=${PACKAGE-default}
222 case $enableval in
223 yes) enable_static=yes ;;
224 no) enable_static=no ;;
225 *)
226 enable_static=no
227 # Look at the argument we got. We use all the common list separators.
228 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
229 for pkg in $enableval; do
230 IFS="$lt_save_ifs"
231 if test "X$pkg" = "X$p"; then
232 enable_static=yes
233 fi
234 done
235 IFS="$lt_save_ifs"
236 ;;
237 esac],
238 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
239
240 _LT_DECL([build_old_libs], [enable_static], [0],
241 [Whether or not to build static libraries])
242 ])# _LT_ENABLE_STATIC
243
244 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
245 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
246
247 # Old names:
248 AC_DEFUN([AC_ENABLE_STATIC],
249 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
250 ])
251
252 AC_DEFUN([AC_DISABLE_STATIC],
253 [_LT_SET_OPTION([LT_INIT], [disable-static])
254 ])
255
256 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
257 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
258
259 dnl aclocal-1.4 backwards compatibility:
260 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
261 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
262
263
264
265 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
266 # ----------------------------------
267 # implement the --enable-fast-install flag, and support the `fast-install'
268 # and `disable-fast-install' LT_INIT options.
269 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
270 m4_define([_LT_ENABLE_FAST_INSTALL],
271 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
272 AC_ARG_ENABLE([fast-install],
273 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
274 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
275 [p=${PACKAGE-default}
276 case $enableval in
277 yes) enable_fast_install=yes ;;
278 no) enable_fast_install=no ;;
279 *)
280 enable_fast_install=no
281 # Look at the argument we got. We use all the common list separators.
282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
283 for pkg in $enableval; do
284 IFS="$lt_save_ifs"
285 if test "X$pkg" = "X$p"; then
286 enable_fast_install=yes
287 fi
288 done
289 IFS="$lt_save_ifs"
290 ;;
291 esac],
292 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
293
294 _LT_DECL([fast_install], [enable_fast_install], [0],
295 [Whether or not to optimize for fast installation])dnl
296 ])# _LT_ENABLE_FAST_INSTALL
297
298 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
299 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
300
301 # Old names:
302 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
303 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
304 AC_DIAGNOSE([obsolete],
305 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
306 the `fast-install' option into LT_INIT's first parameter.])
307 ])
308
309 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
310 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
311 AC_DIAGNOSE([obsolete],
312 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
313 the `disable-fast-install' option into LT_INIT's first parameter.])
314 ])
315
316 dnl aclocal-1.4 backwards compatibility:
317 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
318 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
319
320
321 # _LT_WITH_PIC([MODE])
322 # --------------------
323 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
324 # LT_INIT options.
325 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
326 m4_define([_LT_WITH_PIC],
327 [AC_ARG_WITH([pic],
328 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
329 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
330 [lt_p=${PACKAGE-default}
331 case $withval in
332 yes|no) pic_mode=$withval ;;
333 *)
334 pic_mode=default
335 # Look at the argument we got. We use all the common list separators.
336 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
337 for lt_pkg in $withval; do
338 IFS="$lt_save_ifs"
339 if test "X$lt_pkg" = "X$lt_p"; then
340 pic_mode=yes
341 fi
342 done
343 IFS="$lt_save_ifs"
344 ;;
345 esac],
346 [pic_mode=default])
347
348 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
349
350 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
351 ])# _LT_WITH_PIC
352
353 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
354 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
355
356 # Old name:
357 AU_DEFUN([AC_LIBTOOL_PICMODE],
358 [_LT_SET_OPTION([LT_INIT], [pic-only])
359 AC_DIAGNOSE([obsolete],
360 [$0: Remove this warning and the call to _LT_SET_OPTION when you
361 put the `pic-only' option into LT_INIT's first parameter.])
362 ])
363
364 dnl aclocal-1.4 backwards compatibility:
365 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
366
367 ## ----------------- ##
368 ## LTDL_INIT Options ##
369 ## ----------------- ##
370
371 m4_define([_LTDL_MODE], [])
372 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
373 [m4_define([_LTDL_MODE], [nonrecursive])])
374 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
375 [m4_define([_LTDL_MODE], [recursive])])
376 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
377 [m4_define([_LTDL_MODE], [subproject])])
378
379 m4_define([_LTDL_TYPE], [])
380 LT_OPTION_DEFINE([LTDL_INIT], [installable],
381 [m4_define([_LTDL_TYPE], [installable])])
382 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
383 [m4_define([_LTDL_TYPE], [convenience])])
+0
-123
m4/ltsugar.m4 less more
0 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
1 #
2 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3 # Written by Gary V. Vaughan, 2004
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # serial 6 ltsugar.m4
10
11 # This is to help aclocal find these macros, as it can't see m4_define.
12 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
13
14
15 # lt_join(SEP, ARG1, [ARG2...])
16 # -----------------------------
17 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
18 # associated separator.
19 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
20 # versions in m4sugar had bugs.
21 m4_define([lt_join],
22 [m4_if([$#], [1], [],
23 [$#], [2], [[$2]],
24 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
25 m4_define([_lt_join],
26 [m4_if([$#$2], [2], [],
27 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
28
29
30 # lt_car(LIST)
31 # lt_cdr(LIST)
32 # ------------
33 # Manipulate m4 lists.
34 # These macros are necessary as long as will still need to support
35 # Autoconf-2.59 which quotes differently.
36 m4_define([lt_car], [[$1]])
37 m4_define([lt_cdr],
38 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
39 [$#], 1, [],
40 [m4_dquote(m4_shift($@))])])
41 m4_define([lt_unquote], $1)
42
43
44 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
45 # ------------------------------------------
46 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
47 # Note that neither SEPARATOR nor STRING are expanded; they are appended
48 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
49 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
50 # than defined and empty).
51 #
52 # This macro is needed until we can rely on Autoconf 2.62, since earlier
53 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
54 m4_define([lt_append],
55 [m4_define([$1],
56 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
57
58
59
60 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
61 # ----------------------------------------------------------
62 # Produce a SEP delimited list of all paired combinations of elements of
63 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
64 # has the form PREFIXmINFIXSUFFIXn.
65 # Needed until we can rely on m4_combine added in Autoconf 2.62.
66 m4_define([lt_combine],
67 [m4_if(m4_eval([$# > 3]), [1],
68 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
69 [[m4_foreach([_Lt_prefix], [$2],
70 [m4_foreach([_Lt_suffix],
71 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
72 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
73
74
75 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
76 # -----------------------------------------------------------------------
77 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
78 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
79 m4_define([lt_if_append_uniq],
80 [m4_ifdef([$1],
81 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
82 [lt_append([$1], [$2], [$3])$4],
83 [$5])],
84 [lt_append([$1], [$2], [$3])$4])])
85
86
87 # lt_dict_add(DICT, KEY, VALUE)
88 # -----------------------------
89 m4_define([lt_dict_add],
90 [m4_define([$1($2)], [$3])])
91
92
93 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
94 # --------------------------------------------
95 m4_define([lt_dict_add_subkey],
96 [m4_define([$1($2:$3)], [$4])])
97
98
99 # lt_dict_fetch(DICT, KEY, [SUBKEY])
100 # ----------------------------------
101 m4_define([lt_dict_fetch],
102 [m4_ifval([$3],
103 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
104 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
105
106
107 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
108 # -----------------------------------------------------------------
109 m4_define([lt_if_dict_fetch],
110 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
111 [$5],
112 [$6])])
113
114
115 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
116 # --------------------------------------------------------------
117 m4_define([lt_dict_filter],
118 [m4_if([$5], [], [],
119 [lt_join(m4_quote(m4_default([$4], [[, ]])),
120 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
121 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
122 ])
+0
-23
m4/ltversion.m4 less more
0 # ltversion.m4 -- version numbers -*- Autoconf -*-
1 #
2 # Copyright (C) 2004 Free Software Foundation, Inc.
3 # Written by Scott James Remnant, 2004
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # @configure_input@
10
11 # serial 3337 ltversion.m4
12 # This file is part of GNU Libtool
13
14 m4_define([LT_PACKAGE_VERSION], [2.4.2])
15 m4_define([LT_PACKAGE_REVISION], [1.3337])
16
17 AC_DEFUN([LTVERSION_VERSION],
18 [macro_version='2.4.2'
19 macro_revision='1.3337'
20 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
21 _LT_DECL(, macro_revision, 0)
22 ])
+0
-98
m4/lt~obsolete.m4 less more
0 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
1 #
2 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3 # Written by Scott James Remnant, 2004.
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # serial 5 lt~obsolete.m4
10
11 # These exist entirely to fool aclocal when bootstrapping libtool.
12 #
13 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
14 # which have later been changed to m4_define as they aren't part of the
15 # exported API, or moved to Autoconf or Automake where they belong.
16 #
17 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
18 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
19 # using a macro with the same name in our local m4/libtool.m4 it'll
20 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
21 # and doesn't know about Autoconf macros at all.)
22 #
23 # So we provide this file, which has a silly filename so it's always
24 # included after everything else. This provides aclocal with the
25 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
26 # because those macros already exist, or will be overwritten later.
27 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
28 #
29 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
30 # Yes, that means every name once taken will need to remain here until
31 # we give up compatibility with versions before 1.7, at which point
32 # we need to keep only those names which we still refer to.
33
34 # This is to help aclocal find these macros, as it can't see m4_define.
35 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
36
37 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
38 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
39 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
40 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
41 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
42 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
43 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
44 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
45 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
46 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
47 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
48 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
49 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
50 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
51 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
52 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
53 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
54 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
55 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
56 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
57 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
58 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
59 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
60 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
61 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
62 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
63 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
64 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
65 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
66 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
67 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
68 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
69 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
70 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
71 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
72 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
73 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
74 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
75 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
76 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
77 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
78 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
79 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
80 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
81 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
82 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
83 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
84 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
85 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
86 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
87 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
88 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
89 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
90 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
91 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
92 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
93 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
94 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
95 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
96 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
97 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
33
44 bin_PROGRAMS = gtkatlantic
55
6 gtkatlantic_SOURCES = callback.c client.c eng_frame.c \
7 eng_main.c eng_list.c game.c interface.c load.c \
8 main.c readpng.c xmlparse.c display.c trade.c \
9 theme.c parser.c
6 gtkatlantic_SOURCES = \
7 callback.c \
8 client.c \
9 display.c \
10 eng_frame.c \
11 eng_list.c \
12 eng_main.c \
13 game.c \
14 interface.c \
15 load.c \
16 main.c \
17 parser.c \
18 readpng.c \
19 theme.c \
20 trade.c \
21 xmlparse.c
1022
23 noinst_HEADERS = \
24 callback.h \
25 client.h \
26 display.h \
27 eng_frame.h \
28 engine.h \
29 eng_list.h \
30 eng_main.h \
31 game.h \
32 global.h \
33 interface.h \
34 load.h \
35 parser.h \
36 readpng.h \
37 theme.h \
38 trade.h \
39 xmlparse.h
1140
1241 gtkatlantic_LDADD = $(GTK_LIBS) -lpng
1342
1212 # PARTICULAR PURPOSE.
1313
1414 @SET_MAKE@
15
1516
1617 srcdir = @srcdir@
1718 top_srcdir = @top_srcdir@
3738 host_triplet = @host@
3839 bin_PROGRAMS = gtkatlantic$(EXEEXT)
3940 subdir = src
40 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
41 DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \
42 $(srcdir)/Makefile.in
4143 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
4244 am__aclocal_m4_deps = $(top_srcdir)/configure.in
4345 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4951 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
5052 PROGRAMS = $(bin_PROGRAMS)
5153 am_gtkatlantic_OBJECTS = callback.$(OBJEXT) client.$(OBJEXT) \
52 eng_frame.$(OBJEXT) eng_main.$(OBJEXT) eng_list.$(OBJEXT) \
53 game.$(OBJEXT) interface.$(OBJEXT) load.$(OBJEXT) \
54 main.$(OBJEXT) readpng.$(OBJEXT) xmlparse.$(OBJEXT) \
55 display.$(OBJEXT) trade.$(OBJEXT) theme.$(OBJEXT) \
56 parser.$(OBJEXT)
54 display.$(OBJEXT) eng_frame.$(OBJEXT) eng_list.$(OBJEXT) \
55 eng_main.$(OBJEXT) game.$(OBJEXT) interface.$(OBJEXT) \
56 load.$(OBJEXT) main.$(OBJEXT) parser.$(OBJEXT) \
57 readpng.$(OBJEXT) theme.$(OBJEXT) trade.$(OBJEXT) \
58 xmlparse.$(OBJEXT)
5759 gtkatlantic_OBJECTS = $(am_gtkatlantic_OBJECTS)
5860 am__DEPENDENCIES_1 =
5961 gtkatlantic_DEPENDENCIES = $(am__DEPENDENCIES_1)
7072 $(AM_LDFLAGS) $(LDFLAGS) -o $@
7173 SOURCES = $(gtkatlantic_SOURCES)
7274 DIST_SOURCES = $(gtkatlantic_SOURCES)
75 HEADERS = $(noinst_HEADERS)
7376 ETAGS = etags
7477 CTAGS = ctags
7578 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
185188 sysconfdir = @sysconfdir@
186189 target_alias = @target_alias@
187190 INCLUDES = $(GTK_CFLAGS)
188 gtkatlantic_SOURCES = callback.c client.c eng_frame.c \
189 eng_main.c eng_list.c game.c interface.c load.c \
190 main.c readpng.c xmlparse.c display.c trade.c \
191 theme.c parser.c
191 gtkatlantic_SOURCES = \
192 callback.c \
193 client.c \
194 display.c \
195 eng_frame.c \
196 eng_list.c \
197 eng_main.c \
198 game.c \
199 interface.c \
200 load.c \
201 main.c \
202 parser.c \
203 readpng.c \
204 theme.c \
205 trade.c \
206 xmlparse.c
207
208 noinst_HEADERS = \
209 callback.h \
210 client.h \
211 display.h \
212 eng_frame.h \
213 engine.h \
214 eng_list.h \
215 eng_main.h \
216 game.h \
217 global.h \
218 interface.h \
219 load.h \
220 parser.h \
221 readpng.h \
222 theme.h \
223 trade.h \
224 xmlparse.h
192225
193226 gtkatlantic_LDADD = $(GTK_LIBS) -lpng
194227 all: all-am
386419 done
387420 check-am: all-am
388421 check: check-am
389 all-am: Makefile $(PROGRAMS)
422 all-am: Makefile $(PROGRAMS) $(HEADERS)
390423 installdirs:
391424 for dir in "$(DESTDIR)$(bindir)"; do \
392425 test -z "$$dir" || $(mkdir_p) "$$dir"; \
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
20
21 #include "config.h"
2022
2123 #include <stdio.h>
2224 #include <stdlib.h>
2325 #include <gtk/gtk.h>
2426 #include <string.h>
25
26 #include "config.h"
2727
2828 #include "global.h"
2929 #include "callback.h"
4646 }
4747
4848
49 /* **** Show all monopd servers */
50 void Callback_ShowMetaServer(GtkWidget* button) {
49 /* **** Get games from all monopd server */
50 void Callback_ConnectMetaServer(GtkWidget* button) {
5151 (void)button;
5252
53 create_connection_metaserver(CONNECT_TYPE_META_GETLIST);
54 }
55
56
57 /* **** Get games from all monopd server */
58 void Callback_RefreshGameMetaServer(GtkWidget* button) {
59 (void)button;
60
61 create_connection_metaserver(CONNECT_TYPE_META_GETGAME);
62 }
63
64
65 /* **** Get games from custom server */
66 void Callback_GetgamesButton(GtkWidget* button) {
67
68 guint32 port;
69 gchar *host;
70
71 host = g_strstrip( g_strdup( gtk_entry_get_text( GTK_ENTRY( g_object_get_data(G_OBJECT(button), "host") ) ) ) );
72 port = atoi( gtk_entry_get_text( GTK_ENTRY( g_object_get_data(G_OBJECT(button), "port") ) ) );
73
74 create_connection_get_games(host, port);
75 g_free(host);
53 if (global->phase < PHASE_GAMECREATE) {
54 if (global->phase < PHASE_GETGAMES) {
55 interface_create_getgamespage(false);
56 }
57 create_connection_metaserver();
58 }
7659 }
7760
7861
7962 /* get games: event "row_select" */
8063 void Callback_GetGame_Select(GtkTreeSelection *selection, gpointer data) {
81 GtkTreeIter iter;
8264 GtkTreeModel *model;
83 gchar *host, *gametype;
84 gint32 port, gameid;
65 gint32 gameid, canbejoined, canbewatched;
8566 (void)data;
8667
87 if (!gtk_tree_selection_get_selected(selection, &model, &iter)) {
88 if(global->selected_host) g_free(global->selected_host);
89 global->selected_host = NULL;
90 global->selected_port = 0;
91 if(global->selected_gametype) g_free(global->selected_gametype);
92 global->selected_gametype = NULL;
93 global->selected_gameid = 0;
94 return;
95 }
96
97 gtk_tree_model_get(model, &iter, GAMELIST_COLUMN_HOST, &host, GAMELIST_COLUMN_PORT, &port, GAMELIST_COLUMN_GAMETYPE, &gametype, GAMELIST_COLUMN_ID, &gameid, -1);
98
99 if(global->selected_host) g_free(global->selected_host);
100 global->selected_host = host;
101 global->selected_port = port;
102 if(global->selected_gametype) g_free(global->selected_gametype);
103 global->selected_gametype = gametype;
104 global->selected_gameid = gameid;
68 GtkWidget *button = g_object_get_data(G_OBJECT(global->MainVerticalBox), "connect_button");
69
70 if (!gtk_tree_selection_get_selected(selection, &model, &global->selected_game)) {
71 if (button) {
72 gtk_button_set_label(GTK_BUTTON(button), "Select a game");
73 gtk_widget_set_sensitive(button, FALSE);
74 }
75 return;
76 }
77
78 gtk_tree_model_get(model, &global->selected_game, GAMELIST_COLUMN_GAMEID, &gameid, GAMELIST_COLUMN_CANBEJOINED, &canbejoined, GAMELIST_COLUMN_CANBEWATCHED, &canbewatched, -1);
79
80 if (button) {
81 if (gameid < 0) {
82 gtk_button_set_label(GTK_BUTTON(button), "Create game");
83 gtk_widget_set_sensitive(button, TRUE);
84 } else {
85 if (canbejoined) {
86 gtk_button_set_label(GTK_BUTTON(button), "Join game");
87 gtk_widget_set_sensitive(button, TRUE);
88 } else if (canbewatched) {
89 gtk_button_set_label(GTK_BUTTON(button), "Watch game");
90 gtk_widget_set_sensitive(button, TRUE);
91 } else {
92 gtk_button_set_label(GTK_BUTTON(button), "This game does not allow spectators");
93 gtk_widget_set_sensitive(button, FALSE);
94 }
95 }
96 }
10597 }
10698
10799
108100 /* **** Join/create a game */
109101 void Callback_ConnectButton(GtkWidget* button) {
110102 (void)button;
111 gint32 connectid;
112 gchar *text;
113
114 if (global->game_connectid) {
115 return;
116 }
117
118 if(!global->selected_host) return;
119 if(!global->selected_port) return;
120 if(!global->selected_gameid) return;
121 if(global->selected_gameid < 0 && !global->selected_gametype) return;
122
123 /* close custom server connection */
124 if (global->customserver_connectid) {
125 client_disconnect(global->customserver_connectid);
126 global->customserver_connectid = 0;
127 }
128 /* close meta server connection */
129 if (global->metaserver_connectid) {
130 client_disconnect(global->metaserver_connectid);
131 global->metaserver_connectid = 0;
132 }
133
134 if(! client_connect(&connectid, global->selected_host, global->selected_port) ) return;
135 connection[connectid]->type = CONNECT_TYPE_MONOPD_GAME;
136
137 /* set client protocol */
138 text = g_strdup_printf("client name=\"gtkAtlantic\" version=\"%s\" protocol=\"monopd\"\n", VERSION);
139 client_send(connectid, text, strlen(text));
140 g_free(text);
141
142 /* set nickname */
143 text = g_strdup_printf(".n%s\n", config->nickname);
144 client_send(connectid, text, strlen(text));
145 g_free(text);
146
147 global->game_connectid = connectid;
103 gchar *cmd;
104 gchar *host, *gametype;
105 gint32 port, gameid, canbejoined, canbewatched;
106
107 gtk_tree_model_get(GTK_TREE_MODEL(global->game_store), &global->selected_game, GAMELIST_COLUMN_HOST, &host, GAMELIST_COLUMN_PORT, &port, GAMELIST_COLUMN_GAMETYPE, &gametype, GAMELIST_COLUMN_GAMEID, &gameid,
108 GAMELIST_COLUMN_CANBEJOINED, &canbejoined, GAMELIST_COLUMN_CANBEWATCHED, &canbewatched, -1);
109
110 if (! (gameid < 0 || canbejoined || canbewatched)) {
111 return;
112 }
113
114 /* create a game */
115 if (gameid < 0) {
116 cmd = g_strdup_printf(".n%s\n.gn%s\n", config->nickname, gametype);
117 }
118 /* join a game */
119 else if (canbejoined) {
120 cmd = g_strdup_printf(".n%s\n.gj%d\n", config->nickname, gameid);
121 }
122 /* watch a game */
123 else {
124 cmd = g_strdup_printf(".n%s\n.gS%d\n", config->nickname, gameid);
125 }
126
148127 global->reconnected = FALSE;
149
150 /* create a game */
151 if(global->selected_gameid < 0) {
152 text = g_strdup_printf(".gn%s\n", global->selected_gametype);
153 client_send(connectid, text, strlen(text));
154 g_free(text);
155 }
156
157 /* join a game */
158 if(global->selected_gameid > 0) {
159 text = g_strdup_printf(".gj%d\n", global->selected_gameid);
160 client_send(connectid, text, strlen(text));
161 g_free(text);
162 }
163
164 g_free(global->selected_host);
165 g_free(global->selected_gametype);
166 global->selected_host = 0;
167 global->selected_port = 0;
168 global->selected_gametype = 0;
169 global->selected_gameid = 0;
128 client_connect(CONNECT_TYPE_MONOPD_GAME, host, port, cmd);
170129 }
171130
172131
174133 void Callback_StartButton(GtkWidget* button) {
175134 (void)button;
176135
177 client_send(global->game_connectid, ".gs\n", 4);
178 }
179
180
181 /* **** Enter in the real program */
182 void Callback_EnterButton(GtkWidget* button) {
183 (void)button;
184
185 interface_create_getgamespage();
136 client_send(global->game_connect, ".gs\n");
186137 }
187138
188139
200151 tmp2 = g_strconcat(tmp, "\n", NULL);
201152 g_free(tmp);
202153 tmp = tmp2;
203 client_send(global->game_connectid, tmp, strlen(tmp) );
154 client_send(global->game_connect, tmp);
204155 }
205156 else
206157 parse_specific_send_message(tmp);
210161 }
211162
212163
213 /* *** Un/Float Server Message Box*/
214 void CallBack_toggle_float_message(GtkWidget* widget) {
215 (void)widget;
216
217 if(global->phase != PHASE_GAMEPLAY) return;
218
219 currentgame->message_float = !currentgame->message_float;
220 interface_message_and_chat_float_unfloat();
221 }
222
223
224 /* *** Un/Float Chat Box*/
225 void CallBack_toggle_float_chat(GtkWidget* widget) {
226 (void)widget;
227
228 if(global->phase != PHASE_GAMEPLAY) return;
229
230 currentgame->chat_float = !currentgame->chat_float;
231 interface_message_and_chat_float_unfloat();
232 }
233
234
235 /* *** "delete_event" signal window message */
236 void CallBack_delete_window_message(GtkWidget* widget) {
237
238 gtk_widget_hide( GTK_WIDGET(global->MessageBox) );
239 gtk_widget_reparent(GTK_WIDGET(global->MessageBox), global->Trick);
240 gtk_widget_destroy(widget);
241 widget = 0;
242 currentgame->message_float = 0;
243 interface_message_and_chat_float_unfloat();
244 }
245
246
247 /* *** "delete_event" signal window chat */
248 void CallBack_delete_window_chat(GtkWidget* widget) {
249
250 gtk_widget_hide( GTK_WIDGET(currentgame->ChatBox) );
251 gtk_widget_reparent(GTK_WIDGET(currentgame->ChatBox), global->Trick);
252 gtk_widget_destroy(widget);
253 widget = 0;
254 currentgame->chat_float = 0;
255 interface_message_and_chat_float_unfloat();
256 }
257
258
259 /* *** "destroy" signal window message */
260 void CallBack_destroy_window_message(GtkWidget* widget) {
261 (void)widget;
262 }
263
264
265 /* *** "destroy" signal window chat */
266 void CallBack_destroy_window_chat(GtkWidget* widget) {
267 (void)widget;
268 }
269
270
271164 /* *** save and apply the config */
272165 void CallBack_ok_button_configwindow(GtkWidget* widget) {
273166 (void)widget;
274167
275168 gchar *filename, *errormsg;
276169 FILE *file;
277 guint32 token_animate_speed;
278
279 token_animate_speed = (guint32) gtk_adjustment_get_value(GTK_ADJUSTMENT( g_object_get_data(G_OBJECT(global->ConfigWin), "config_gameinterface_tokenanimatespeed") ) );
280
281 filename = g_strconcat(global->path_home, "gtkatlantic.conf", NULL);
170
171 if (!global->path_home) {
172 return;
173 }
174 filename = g_strconcat(global->path_home, "/gtkatlantic.conf", NULL);
282175
283176 file = fopen(filename, "wt");
284 if(!file) {
285
286 errormsg = g_strdup_printf("[ERROR] Can't write config file at \"%s\"", filename);
287 text_insert_message(errormsg, strlen(errormsg));
177 if (!file) {
178 errormsg = g_strdup_printf("Can't write config file at \"%s\"", filename);
179 interface_set_infolabel(errormsg, "b00000", false);
288180 g_free(errormsg);
289181 g_free(filename);
290182 return;
293185
294186 fprintf(file, "player nickname=\"%s\"\n",
295187 gtk_entry_get_text( GTK_ENTRY( g_object_get_data(G_OBJECT(global->ConfigWin), "config_player_nickname") ) ) );
296 fprintf(file, "metaserver autogetgames=\"%d\" autogetlist=\"%d\" sendclientversion=\"%d\"\n",
297 gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( g_object_get_data(G_OBJECT(global->ConfigWin), "config_metaserver_autogetgames") ) ),
298 gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( g_object_get_data(G_OBJECT(global->ConfigWin), "config_metaserver_autogetlist") ) ),
188 fprintf(file, "metaserver autoconnect=\"%d\" sendclientversion=\"%d\"\n",
189 gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( g_object_get_data(G_OBJECT(global->ConfigWin), "config_metaserver_autoconnect") ) ),
299190 gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( g_object_get_data(G_OBJECT(global->ConfigWin), "config_metaserver_sendclientversion") ) ) );
300 fprintf(file, "customserver host=\"%s\" port=\"%d\" autogetgames=\"%d\"\n",
191 fprintf(file, "customserver host=\"%s\" port=\"%d\" autoconnect=\"%d\"\n",
301192 gtk_entry_get_text( GTK_ENTRY( g_object_get_data(G_OBJECT(global->ConfigWin), "config_customserver_host") ) ),
302193 atoi( gtk_entry_get_text( GTK_ENTRY( g_object_get_data(G_OBJECT(global->ConfigWin), "config_customserver_port") ) ) ),
303 gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( g_object_get_data(G_OBJECT(global->ConfigWin), "config_customserver_autogetgames") ) ) );
304 fprintf(file, "buffer message=\"%d\" chat=\"%d\"\n",
305 atoi( gtk_entry_get_text( GTK_ENTRY( g_object_get_data(G_OBJECT(global->ConfigWin), "config_buffersize_servermessages") ) ) ),
306 atoi( gtk_entry_get_text( GTK_ENTRY( g_object_get_data(G_OBJECT(global->ConfigWin), "config_buffersize_chat") ) ) ) );
194 gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( g_object_get_data(G_OBJECT(global->ConfigWin), "config_customserver_autoconnect") ) ) );
307195 fprintf(file, "interface playerlist=\"%s\" token_speed=\"%d\" token_transparency=\"%d\"\n",
308196 gtk_combo_box_text_get_active_text( GTK_COMBO_BOX_TEXT( g_object_get_data(G_OBJECT(global->ConfigWin), "config_gameinterface_playerlistposition") ) ),
309 token_animate_speed,
197 (guint32)gtk_adjustment_get_value(GTK_ADJUSTMENT( g_object_get_data(G_OBJECT(global->ConfigWin), "config_gameinterface_tokenanimatespeed") ) ),
310198 gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON( g_object_get_data(G_OBJECT(global->ConfigWin), "config_gameinterface_tokentransparency") ) ) );
311199
312200 fclose(file);
329217 void CallBack_button_command_pressed(GtkWidget* button) {
330218
331219 gchar *ptr = g_object_get_data(G_OBJECT(button), "command");
332 client_send(global->game_connectid, ptr, strlen(ptr) );
333
334 if(! strcmp(ptr, ".E\n") )
335 display_clear_buttons();
220 client_send(global->game_connect, ptr);
336221 }
337222
338223
339224 /* *** button command pressed */
340225 void Callback_AuctionButton_Absolute(GtkWidget* button, GtkWidget* entry) {
341 (void)button;
342
343 gchar *tosend, *auction, *money;
344
345 auction = g_object_get_data(G_OBJECT(entry), "auctionid");
346
347 money = g_strdup( gtk_entry_get_text( GTK_ENTRY(entry) ) );
348 g_strstrip(money);
349
350 tosend = g_strconcat(".ab", auction, ":", money, "\n", NULL);
351
352 client_send(global->game_connectid, tosend, strlen(tosend) );
353
354 g_free(money);
226 gchar *tosend;
227 gint32 auction, money;
228
229 auction = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(button), "auctionid"));
230 money = atoi(gtk_entry_get_text(GTK_ENTRY(entry)));
231 gtk_entry_set_text(GTK_ENTRY(entry), "");
232
233 tosend = g_strdup_printf(".ab%d:%d\n", auction, money);
234 client_send(global->game_connect, tosend);
355235 g_free(tosend);
356
357 gtk_entry_set_text(GTK_ENTRY(entry), "");
358236 }
359237
360238
361239 /* *** button command pressed */
362240 void Callback_AuctionButton_Relative(GtkWidget* button) {
363
364 gchar *tosend, *auction;
365 gint32 money;
366
367 money = GPOINTER_TO_INT( g_object_get_data(G_OBJECT(currentgame->BoardCenter), "auction_highbid") )
368 + GPOINTER_TO_INT( g_object_get_data(G_OBJECT(button), "value_add") );
369 auction = g_object_get_data(G_OBJECT( g_object_get_data(G_OBJECT(button), "auction_entry") ), "auctionid");
370
371 tosend = g_strdup_printf(".ab%s:%d\n", auction, money);
372 client_send(global->game_connectid, tosend, strlen(tosend) );
241 gchar *tosend;
242 gint32 auction, money;
243
244 auction = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(button), "auctionid"));
245 money = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(currentgame->BoardCenter), "auction_highbid"))
246 + GPOINTER_TO_INT(g_object_get_data(G_OBJECT(button), "value_add"));
247
248 tosend = g_strdup_printf(".ab%d:%d\n", auction, money);
249 client_send(global->game_connect, tosend);
373250 g_free(tosend);
374251 }
375252
409286 }
410287
411288 if (cmd) {
412 client_send(global->game_connectid, cmd, strlen(cmd));
289 client_send(global->game_connect, cmd);
413290 g_free(cmd);
414291 }
415292 }
454331
455332 /* *** callback clic on player */
456333 void CallBack_PopupMenuPlayer(GtkWidget* widget) {
457 guint32 id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(gtk_widget_get_parent(widget)), "playerid"));
334 player *p = g_object_get_data(G_OBJECT(gtk_widget_get_parent(widget)), "player");
458335 gint32 action = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(widget), "action"));
459336 gchar *cmd = NULL;
460337
461338 switch (action) {
462339 case PLAYER_ACTION_TRADE:
463 cmd = g_strdup_printf(".Tn%d\n", id);
340 cmd = g_strdup_printf(".Tn%d\n", p->playerid);
464341 break;
465342 case PLAYER_ACTION_VERSION:
466 cmd = g_strdup_printf("!version %s\n", global->player[ get_player_slot_with_playerid(id) ].name);
343 cmd = g_strdup_printf("!version %s\n", p->name);
467344 break;
468345 case PLAYER_ACTION_DATE:
469 cmd = g_strdup_printf("!date %s\n", global->player[ get_player_slot_with_playerid(id) ].name);
346 cmd = g_strdup_printf("!date %s\n", p->name);
470347 break;
471348 case PLAYER_ACTION_PING:
472 cmd = g_strdup_printf("!ping %s\n", global->player[ get_player_slot_with_playerid(id) ].name);
349 cmd = g_strdup_printf("!ping %s\n", p->name);
473350 break;
474351 }
475352
476353 if (cmd) {
477 client_send(global->game_connectid, cmd, strlen(cmd));
354 client_send(global->game_connect, cmd);
478355 g_free(cmd);
479356 }
480357 }
489366 id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(widget), "id"));
490367 if (id > 0) {
491368 text = g_strdup_printf(".gc%d:%d\n", id, gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(widget) ) );
492 client_send(global->game_connectid, text, strlen(text) );
369 client_send(global->game_connect, text);
493370 g_free(text);
494371 return;
495372 }
498375 cmd = g_object_get_data(G_OBJECT(widget), "command");
499376 if (cmd) {
500377 text = g_strdup_printf("%s%d\n", cmd, gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(widget) ) );
501 client_send(global->game_connectid, text, strlen(text) );
378 client_send(global->game_connect, text);
502379 g_free(text);
503380 }
381 }
382
383
384 /* *** callback for the entry menu connect to server */
385 void CallBack_menu_connect_to_server(GtkWidget* widget) {
386 (void)widget;
387
388 if (global->phase < PHASE_GAMECREATE)
389 interface_create_connectoserver();
390 }
391
392
393 /* *** callback for the connect to server menu entry */
394 void CallBack_response_connect_to_server_window(GtkWidget* widget, gint response, GtkWidget *Win) {
395 (void)widget;
396
397 if (global->phase < PHASE_GAMECREATE && response == GTK_RESPONSE_OK) {
398 GtkWidget *host = g_object_get_data(G_OBJECT(Win), "host");
399 GtkWidget *port = g_object_get_data(G_OBJECT(Win), "port");
400
401 if (global->phase < PHASE_GETGAMES) {
402 interface_create_getgamespage(false);
403 }
404
405 create_connection_get_games((gchar*)gtk_entry_get_text(GTK_ENTRY(host)),
406 atoi(gtk_entry_get_text(GTK_ENTRY(port))));
407 }
408
409 gtk_widget_destroy(Win);
410 }
411
412
413 /* *** callback for the entry menu connect to server */
414 void CallBack_menu_public_server_list(GtkWidget* widget) {
415 (void)widget;
416
417 if (global->phase == PHASE_GETGAMES)
418 interface_create_publicserverlist();
504419 }
505420
506421
524439
525440 nickname = g_strdup( gtk_entry_get_text(GTK_ENTRY( Entry ) ) );
526441
527 if(strcmp(global->player[ get_player_slot_with_playerid(global->my_playerid) ].name, nickname) )
528 {
442 if (strcmp(player_from_id(global->my_playerid)->name, nickname)) {
529443 sendstr = g_strdup_printf(".n%s\n", nickname);
530 client_send(global->game_connectid, sendstr, strlen(sendstr) );
444 client_send(global->game_connect, sendstr);
531445 g_free(sendstr);
532446 }
533447
541455 /* *** callback for the entry menu reconnect */
542456 void CallBack_menu_reconnect(GtkWidget* widget) {
543457 (void)widget;
544 gchar *host, *tmp, *cookie, *filename;
458 gchar buf[64];
459 gchar *filename, *host, *cmd;
545460 guint32 port;
546461 FILE *file;
547 gint32 connectid;
548 gchar *text;
549
550 if (global->game_connectid) {
551 return;
552 }
553
554 if(global->phase > PHASE_GETGAMES) return;
462
463 if (global->phase > PHASE_GETGAMES) {
464 return;
465 }
466
467 if (!global->path_home) {
468 return;
469 }
555470
556471 /* read cookie file */
557 filename = g_strconcat(global->path_home, "cookie", NULL);
472 filename = g_strconcat(global->path_home, "/cookie", NULL);
558473 file = fopen(filename, "rt");
559474 g_free(filename);
560475
561 if(!file) return;
562
563 host = g_malloc0(4096);
564 fscanf(file, "%s\n", host);
565
566 tmp = g_malloc0(4096);
567 fscanf(file, "%s\n", tmp);
568 port = atoi(tmp);
569 g_free(tmp);
570
571 cookie = g_malloc0(4096);
572 fscanf(file, "%s\n", cookie);
476 if (!file) {
477 return;
478 }
479
480 fscanf(file, "%s\n", buf);
481 host = g_strdup(buf);
482
483 fscanf(file, "%s\n", buf);
484 port = atoi(buf);
485
486 fscanf(file, "%s\n", buf);
487 cmd = g_strdup_printf(".R%s\n", buf);
573488
574489 fclose(file);
575490
576 /* close custom server connection */
577 if (global->customserver_connectid) {
578 client_disconnect(global->customserver_connectid);
579 global->customserver_connectid = 0;
580 }
581 /* close meta server connection */
582 if (global->metaserver_connectid) {
583 client_disconnect(global->metaserver_connectid);
584 global->metaserver_connectid = 0;
585 }
586
587491 /* rejoin game */
588 if(! client_connect(&connectid, host, port) ) {
589
590 g_free(host);
591 g_free(cookie);
592 return;
593 }
594
492 global->reconnected = TRUE;
493 client_connect(CONNECT_TYPE_MONOPD_GAME, host, port, cmd);
595494 g_free(host);
596 connection[connectid]->type = CONNECT_TYPE_MONOPD_GAME;
597 global->game_connectid = connectid;
598 global->reconnected = TRUE;
599
600 /* send cookie */
601 text = g_strdup_printf(".R%s\n", cookie);
602 client_send(connectid, text, strlen(text));
603 g_free(text);
604
605
606 g_free(cookie);
495 }
496
497
498 void CallBack_menu_AddPlayer(GtkWidget *widget) {
499 player *p = g_object_get_data(G_OBJECT(widget), "player");
500 if (!p) {
501 return;
502 }
503
504 gchar *cmd = g_strdup_printf(".gu%d\n", p->playerid);
505 client_send(global->game_connect, cmd);
506 g_free(cmd);
607507 }
608508
609509
618518 switch(command) {
619519 case TRADE_ACTION_REJECT:
620520 sendstr = g_strdup_printf(".Tr%d\n", tradeid);
621 client_send(global->game_connectid, sendstr, strlen(sendstr));
521 client_send(global->game_connect, sendstr);
622522 g_free(sendstr);
623523 break;
624524
625525 case TRADE_ACTION_ACCEPT:
626526 sendstr = g_strdup_printf(".Ta%d:%d\n", tradeid, currentgame->trade[tradeslot].revision);
627 client_send(global->game_connectid, sendstr, strlen(sendstr));
527 client_send(global->game_connect, sendstr);
628528 g_free(sendstr);
629529 break;
630530
639539 sendstr = g_strdup_printf(".Tc%d:%d:%d\n", tradeid, currentgame->trade[tradeslot].select_aux, currentgame->trade[tradeslot].select_from);
640540
641541 if(sendstr) {
642 client_send(global->game_connectid, sendstr, strlen(sendstr));
542 client_send(global->game_connect, sendstr);
643543 g_free(sendstr);
644544 }
645545 break;
673573 void CallBack_trade_update_component(GtkWidget *button) {
674574
675575 gchar *sendstr;
676 guint32 tradeid, estateid, cardid, target, from, to, tradeslot, money;
576 guint32 tradeid, estateid, cardid, tradeslot, money;
577 player *target, *from, *to;
677578
678579 tradeslot = get_trade_slot_with_tradeid( GPOINTER_TO_INT( g_object_get_data( G_OBJECT(button), "tradeid" ) ) );
679580 tradeid = currentgame->trade[tradeslot].tradeid;
683584 case TRADE_TYPE_ESTATE:
684585
685586 estateid = get_estateid_by_estatename( (gchar*)gtk_combo_box_text_get_active_text( GTK_COMBO_BOX_TEXT(g_object_get_data( G_OBJECT(button), "name_estate" ) )) );
686 target = get_playerid_by_playername( (gchar*)gtk_combo_box_text_get_active_text( GTK_COMBO_BOX_TEXT(g_object_get_data( G_OBJECT(button), "name_target_player" ) )) );
687
688 sendstr = g_strdup_printf(".Te%d:%d:%d\n", tradeid, estateid, target);
689 client_send(global->game_connectid, sendstr, strlen(sendstr));
587 target = player_from_name((gchar*)gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(g_object_get_data(G_OBJECT(button), "name_target_player"))));
588
589 sendstr = g_strdup_printf(".Te%d:%d:%d\n", tradeid, estateid, target->playerid);
590 client_send(global->game_connect, sendstr);
690591 g_free(sendstr);
691592 break;
692593
693594 case TRADE_TYPE_MONEY:
694595
695 from = get_playerid_by_playername( (gchar*)gtk_combo_box_text_get_active_text( GTK_COMBO_BOX_TEXT(g_object_get_data( G_OBJECT(button), "name_from_player" ) )) );
696 to = get_playerid_by_playername( (gchar*) gtk_combo_box_text_get_active_text( GTK_COMBO_BOX_TEXT(g_object_get_data( G_OBJECT(button), "name_to_player" ) )) );
596 from = player_from_name((gchar*)gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(g_object_get_data(G_OBJECT(button), "name_from_player"))));
597 to = player_from_name((gchar*)gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(g_object_get_data(G_OBJECT(button), "name_to_player"))));
697598 money = atoi( gtk_entry_get_text( g_object_get_data( G_OBJECT(button), "amount_money" ) ) );
698599
699 sendstr = g_strdup_printf(".Tm%d:%d:%d:%d\n", tradeid, from, to, money);
700 client_send(global->game_connectid, sendstr, strlen(sendstr));
600 sendstr = g_strdup_printf(".Tm%d:%d:%d:%d\n", tradeid, from->playerid, to->playerid, money);
601 client_send(global->game_connect, sendstr);
701602 g_free(sendstr);
702603 break;
703604
704605 case TRADE_TYPE_CARD:
705606
706607 cardid = atoi( gtk_combo_box_text_get_active_text( GTK_COMBO_BOX_TEXT(g_object_get_data( G_OBJECT(button), "name_card" ) )) );
707 target = get_playerid_by_playername( (gchar*) gtk_combo_box_text_get_active_text( GTK_COMBO_BOX_TEXT(g_object_get_data( G_OBJECT(button), "name_target_player" ) )) );
708 sendstr = g_strdup_printf(".Tc%d:%d:%d\n", tradeid, cardid, target);
709 client_send(global->game_connectid, sendstr, strlen(sendstr));
608 target = player_from_name((gchar*)gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(g_object_get_data(G_OBJECT(button), "name_target_player"))));
609 sendstr = g_strdup_printf(".Tc%d:%d:%d\n", tradeid, cardid, target->playerid);
610 client_send(global->game_connect, sendstr);
710611 g_free(sendstr);
711612 break;
712613 }
713614 }
714615
715616
716 void CallBack_logo_page_destroyed(GtkWidget *widget) {
717 (void)widget;
718
719 eng_frame_destroy(global->logo_frame);
720 intro_free_pngs();
617 void CallBack_get_games_page_destroyed(GtkWidget *widget) {
618 (void)widget;
619
620 g_object_unref(global->server_store);
621 global->game_store = NULL;
622 global->server_store = NULL;
721623 }
722624
723625
725627 void CallBack_menu_LeaveGame(GtkWidget* widget) {
726628 (void)widget;
727629
728 gchar *sendstr;
729
730 if(global->phase < PHASE_GAMECREATE) return;
731
732 if(global->phase >= PHASE_GAMEPLAY) {
733
734 sendstr = g_strdup_printf(".gx\n");
735 client_send(global->game_connectid, sendstr, strlen(sendstr));
736 g_free(sendstr);
737 }
738
630 if (global->phase < PHASE_GAMECREATE) {
631 return;
632 }
633
634 client_send(global->game_connect, ".gx\n");
739635 game_quit();
740636 }
741637
750646 }
751647
752648
753 /* *** callback for the entry menu declare bankrupcy */
754 void CallBack_menu_DeclareBankrupcy(GtkWidget* widget) {
755 (void)widget;
756
757 gchar *sendstr;
758
759 if(global->phase < PHASE_GAMEPLAY) return;
760
761 sendstr = g_strdup_printf(".D\n");
762 client_send(global->game_connectid, sendstr, strlen(sendstr));
763 g_free(sendstr);
764 }
765649
766650
767651 void CallBack_EstateTree_SelectRow(GtkTreeSelection *selection, gpointer data) {
768652 GtkTreeIter iter;
769653 GtkTreeModel *model;
770654 gint32 id = -1;
771 GtkWidget *parent, *info, *Alignment, *Label;
655 GtkWidget *parent, *info, *Label;
772656 gchar *Text;
773657
774658 (void)data;
797681 gtk_box_pack_start(GTK_BOX(parent), info, TRUE, TRUE, 0);
798682
799683 /* default text */
800 Alignment = gtk_alignment_new(0.0, 0.0, 0.0, 0.0);
801 gtk_box_pack_start(GTK_BOX(info), Alignment, FALSE, TRUE, 0);
802684 Label = gtk_label_new("Select an estate...");
803 gtk_container_add(GTK_CONTAINER(Alignment), Label);
685 gtk_widget_set_halign(Label, GTK_ALIGN_START);
686 gtk_widget_set_valign(Label, GTK_ALIGN_START);
687 gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0);
804688
805689 gtk_widget_show_all(info);
806690 return;
809693 /* name */
810694 Text = g_strdup_printf("%s", currentgame->estate[id].name);
811695
812 Alignment = gtk_alignment_new(0.0, 0.0, 0.0, 0.0);
813 gtk_box_pack_start(GTK_BOX(info), Alignment, FALSE, TRUE, 0);
814696 Label = gtk_label_new(Text);
815 gtk_container_add(GTK_CONTAINER(Alignment), Label);
697 gtk_widget_set_halign(Label, GTK_ALIGN_START);
698 gtk_widget_set_valign(Label, GTK_ALIGN_START);
699 gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0);
816700
817701 g_free(Text);
818702
821705 if(currentgame->estate[id].group >= 0) Text = g_strdup_printf("%s\n", currentgame->group[ currentgame->estate[id].group ].name);
822706 else Text = g_strdup("\n");
823707
824 Alignment = gtk_alignment_new(0.0, 0.0, 0.0, 0.0);
825 gtk_box_pack_start(GTK_BOX(info), Alignment, FALSE, TRUE, 0);
826708 Label = gtk_label_new(Text);
827 gtk_container_add(GTK_CONTAINER(Alignment), Label);
709 gtk_widget_set_halign(Label, GTK_ALIGN_START);
710 gtk_widget_set_valign(Label, GTK_ALIGN_START);
711 gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0);
828712
829713 g_free(Text);
830714
836720 else if(currentgame->estate[id].owner > 0) Text = g_strdup("State: owned");
837721 else Text = g_strdup("State: unknow");
838722
839 Alignment = gtk_alignment_new(0.0, 0.0, 0.0, 0.0);
840 gtk_box_pack_start(GTK_BOX(info), Alignment, FALSE, TRUE, 0);
841 Label = gtk_label_new(Text);
842 gtk_container_add(GTK_CONTAINER(Alignment), Label);
723 Label = gtk_label_new(Text);
724 gtk_widget_set_halign(Label, GTK_ALIGN_START);
725 gtk_widget_set_valign(Label, GTK_ALIGN_START);
726 gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0);
843727
844728 g_free(Text);
845729 }
848732 if(currentgame->estate[id].price) {
849733
850734 if(currentgame->estate[id].owner <= 0) Text = g_strdup("Owner: no");
851 else Text = g_strdup_printf("Owner: %s", global->player[ get_player_slot_with_playerid( currentgame->estate[id].owner ) ].name);
852
853 Alignment = gtk_alignment_new(0.0, 0.0, 0.0, 0.0);
854 gtk_box_pack_start(GTK_BOX(info), Alignment, FALSE, TRUE, 0);
855 Label = gtk_label_new(Text);
856 gtk_container_add(GTK_CONTAINER(Alignment), Label);
735 else Text = g_strdup_printf("Owner: %s", player_from_id(currentgame->estate[id].owner)->name);
736
737 Label = gtk_label_new(Text);
738 gtk_widget_set_halign(Label, GTK_ALIGN_START);
739 gtk_widget_set_valign(Label, GTK_ALIGN_START);
740 gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0);
857741
858742 g_free(Text);
859743 }
863747
864748 Text = g_strdup_printf("\nPrice: %d", currentgame->estate[id].price);
865749
866 Alignment = gtk_alignment_new(0.0, 0.0, 0.0, 0.0);
867 gtk_box_pack_start(GTK_BOX(info), Alignment, FALSE, TRUE, 0);
868 Label = gtk_label_new(Text);
869 gtk_container_add(GTK_CONTAINER(Alignment), Label);
750 Label = gtk_label_new(Text);
751 gtk_widget_set_halign(Label, GTK_ALIGN_START);
752 gtk_widget_set_valign(Label, GTK_ALIGN_START);
753 gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0);
870754
871755 g_free(Text);
872756 }
876760
877761 Text = g_strdup_printf("Money: %d", currentgame->estate[id].money);
878762
879 Alignment = gtk_alignment_new(0.0, 0.0, 0.0, 0.0);
880 gtk_box_pack_start(GTK_BOX(info), Alignment, FALSE, TRUE, 0);
881 Label = gtk_label_new(Text);
882 gtk_container_add(GTK_CONTAINER(Alignment), Label);
763 Label = gtk_label_new(Text);
764 gtk_widget_set_halign(Label, GTK_ALIGN_START);
765 gtk_widget_set_valign(Label, GTK_ALIGN_START);
766 gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0);
883767
884768 g_free(Text);
885769 }
889773
890774 Text = g_strdup_printf("\nRent with no house: %d", currentgame->estate[id].rent[0]);
891775
892 Alignment = gtk_alignment_new(0.0, 0.0, 0.0, 0.0);
893 gtk_box_pack_start(GTK_BOX(info), Alignment, FALSE, TRUE, 0);
894 Label = gtk_label_new(Text);
895 gtk_container_add(GTK_CONTAINER(Alignment), Label);
776 Label = gtk_label_new(Text);
777 gtk_widget_set_halign(Label, GTK_ALIGN_START);
778 gtk_widget_set_valign(Label, GTK_ALIGN_START);
779 gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0);
896780
897781 g_free(Text);
898782
899783
900784 Text = g_strdup_printf("Rent with 1 house: %d", currentgame->estate[id].rent[1]);
901785
902 Alignment = gtk_alignment_new(0.0, 0.0, 0.0, 0.0);
903 gtk_box_pack_start(GTK_BOX(info), Alignment, FALSE, TRUE, 0);
904 Label = gtk_label_new(Text);
905 gtk_container_add(GTK_CONTAINER(Alignment), Label);
786 Label = gtk_label_new(Text);
787 gtk_widget_set_halign(Label, GTK_ALIGN_START);
788 gtk_widget_set_valign(Label, GTK_ALIGN_START);
789 gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0);
906790
907791 g_free(Text);
908792
909793
910794 Text = g_strdup_printf("Rent with 2 houses: %d", currentgame->estate[id].rent[2]);
911795
912 Alignment = gtk_alignment_new(0.0, 0.0, 0.0, 0.0);
913 gtk_box_pack_start(GTK_BOX(info), Alignment, FALSE, TRUE, 0);
914 Label = gtk_label_new(Text);
915 gtk_container_add(GTK_CONTAINER(Alignment), Label);
796 Label = gtk_label_new(Text);
797 gtk_widget_set_halign(Label, GTK_ALIGN_START);
798 gtk_widget_set_valign(Label, GTK_ALIGN_START);
799 gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0);
916800
917801 g_free(Text);
918802
919803
920804 Text = g_strdup_printf("Rent with 3 houses: %d", currentgame->estate[id].rent[3]);
921805
922 Alignment = gtk_alignment_new(0.0, 0.0, 0.0, 0.0);
923 gtk_box_pack_start(GTK_BOX(info), Alignment, FALSE, TRUE, 0);
924 Label = gtk_label_new(Text);
925 gtk_container_add(GTK_CONTAINER(Alignment), Label);
806 Label = gtk_label_new(Text);
807 gtk_widget_set_halign(Label, GTK_ALIGN_START);
808 gtk_widget_set_valign(Label, GTK_ALIGN_START);
809 gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0);
926810
927811 g_free(Text);
928812
929813
930814 Text = g_strdup_printf("Rent with 4 houses: %d", currentgame->estate[id].rent[4]);
931815
932 Alignment = gtk_alignment_new(0.0, 0.0, 0.0, 0.0);
933 gtk_box_pack_start(GTK_BOX(info), Alignment, FALSE, TRUE, 0);
934 Label = gtk_label_new(Text);
935 gtk_container_add(GTK_CONTAINER(Alignment), Label);
816 Label = gtk_label_new(Text);
817 gtk_widget_set_halign(Label, GTK_ALIGN_START);
818 gtk_widget_set_valign(Label, GTK_ALIGN_START);
819 gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0);
936820
937821 g_free(Text);
938822
939823
940824 Text = g_strdup_printf("Rent with a hotel: %d", currentgame->estate[id].rent[5]);
941825
942 Alignment = gtk_alignment_new(0.0, 0.0, 0.0, 0.0);
943 gtk_box_pack_start(GTK_BOX(info), Alignment, FALSE, TRUE, 0);
944 Label = gtk_label_new(Text);
945 gtk_container_add(GTK_CONTAINER(Alignment), Label);
826 Label = gtk_label_new(Text);
827 gtk_widget_set_halign(Label, GTK_ALIGN_START);
828 gtk_widget_set_valign(Label, GTK_ALIGN_START);
829 gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0);
946830
947831 g_free(Text);
948832 }
952836
953837 Text = g_strdup_printf("\nBuy house price: %d", currentgame->estate[id].houseprice);
954838
955 Alignment = gtk_alignment_new(0.0, 0.0, 0.0, 0.0);
956 gtk_box_pack_start(GTK_BOX(info), Alignment, FALSE, TRUE, 0);
957 Label = gtk_label_new(Text);
958 gtk_container_add(GTK_CONTAINER(Alignment), Label);
839 Label = gtk_label_new(Text);
840 gtk_widget_set_halign(Label, GTK_ALIGN_START);
841 gtk_widget_set_valign(Label, GTK_ALIGN_START);
842 gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0);
959843
960844 g_free(Text);
961845 }
964848
965849 Text = g_strdup_printf("Sell house price: %d", currentgame->estate[id].sellhouseprice);
966850
967 Alignment = gtk_alignment_new(0.0, 0.0, 0.0, 0.0);
968 gtk_box_pack_start(GTK_BOX(info), Alignment, FALSE, TRUE, 0);
969 Label = gtk_label_new(Text);
970 gtk_container_add(GTK_CONTAINER(Alignment), Label);
851 Label = gtk_label_new(Text);
852 gtk_widget_set_halign(Label, GTK_ALIGN_START);
853 gtk_widget_set_valign(Label, GTK_ALIGN_START);
854 gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0);
971855
972856 g_free(Text);
973857 }
977861
978862 Text = g_strdup_printf("Number of houses: %d", currentgame->estate[id].houses);
979863
980 Alignment = gtk_alignment_new(0.0, 0.0, 0.0, 0.0);
981 gtk_box_pack_start(GTK_BOX(info), Alignment, FALSE, TRUE, 0);
982 Label = gtk_label_new(Text);
983 gtk_container_add(GTK_CONTAINER(Alignment), Label);
864 Label = gtk_label_new(Text);
865 gtk_widget_set_halign(Label, GTK_ALIGN_START);
866 gtk_widget_set_valign(Label, GTK_ALIGN_START);
867 gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0);
984868
985869 g_free(Text);
986870 }
990874
991875 Text = g_strdup_printf("\nMortgage price: %d", currentgame->estate[id].mortgageprice);
992876
993 Alignment = gtk_alignment_new(0.0, 0.0, 0.0, 0.0);
994 gtk_box_pack_start(GTK_BOX(info), Alignment, FALSE, TRUE, 0);
995 Label = gtk_label_new(Text);
996 gtk_container_add(GTK_CONTAINER(Alignment), Label);
877 Label = gtk_label_new(Text);
878 gtk_widget_set_halign(Label, GTK_ALIGN_START);
879 gtk_widget_set_valign(Label, GTK_ALIGN_START);
880 gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0);
997881
998882 g_free(Text);
999883 }
1002886
1003887 Text = g_strdup_printf("Unmortgage price: %d", currentgame->estate[id].unmortgageprice);
1004888
1005 Alignment = gtk_alignment_new(0.0, 0.0, 0.0, 0.0);
1006 gtk_box_pack_start(GTK_BOX(info), Alignment, FALSE, TRUE, 0);
1007 Label = gtk_label_new(Text);
1008 gtk_container_add(GTK_CONTAINER(Alignment), Label);
889 Label = gtk_label_new(Text);
890 gtk_widget_set_halign(Label, GTK_ALIGN_START);
891 gtk_widget_set_valign(Label, GTK_ALIGN_START);
892 gtk_box_pack_start(GTK_BOX(info), Label, FALSE, TRUE, 0);
1009893
1010894 g_free(Text);
1011895 }
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
2020
21 #ifndef CALLBACK_H
22 #define CALLBACK_H
23
2124 void Callback_ShowConfiguration(GtkWidget* menuitem);
22 void Callback_ShowMetaServer(GtkWidget* button);
23 void Callback_RefreshGameMetaServer(GtkWidget* button);
24 void Callback_GetgamesButton(GtkWidget* button);
25 void Callback_ConnectMetaServer(GtkWidget* button);
2526 void Callback_GetGame_Select(GtkTreeSelection *selection, gpointer data);
2627 void Callback_ConnectButton(GtkWidget* clist);
2728 void Callback_StartButton(GtkWidget* button);
28 void Callback_EnterButton(GtkWidget* button);
2929 void Callback_SendButton(GtkWidget* Button, GtkWidget *entry);
30 void CallBack_toggle_float_message(GtkWidget* widget);
31 void CallBack_toggle_float_chat(GtkWidget* widget);
32 void CallBack_destroy_window_message(GtkWidget* widget);
33 void CallBack_destroy_window_chat(GtkWidget* widget);
34 void CallBack_delete_window_message(GtkWidget* widget);
35 void CallBack_delete_window_chat(GtkWidget* widget);
3630 void CallBack_ok_button_configwindow(GtkWidget* widget);
3731 void CallBack_configwindow_destroyed(GtkWidget* widget);
3832 void CallBack_button_command_pressed(GtkWidget* button);
4539 void Callback_ClicOnPlayer(GtkWidget* widget, GdkEvent *event);
4640 void CallBack_PopupMenuPlayer(GtkWidget* widget);
4741 void Callback_toggle_boolean_gameoption(GtkWidget* widget);
42 void CallBack_menu_connect_to_server(GtkWidget* widget);
43 void CallBack_response_connect_to_server_window(GtkWidget* widget, gint response, GtkWidget *Win);
44 void CallBack_menu_public_server_list(GtkWidget* widget);
4845 void CallBack_menu_change_nickname(GtkWidget* widget);
4946 void CallBack_response_changenick_window(GtkWidget* widget, gint response,
5047 GtkWidget *Win);
5148 void CallBack_menu_reconnect(GtkWidget* widget);
49 void CallBack_menu_AddPlayer(GtkWidget *widget);
5250 void CallBack_trade_button(GtkWidget *button);
5351 void CallBack_trade_sub_component(GtkWidget *combo);
5452 void CallBack_trade_update_component(GtkWidget *button);
55 void CallBack_logo_page_destroyed(GtkWidget *widget);
53 void CallBack_get_games_page_destroyed(GtkWidget *widget);
5654 void CallBack_menu_LeaveGame(GtkWidget* widget);
5755 void CallBack_estates_tree(GtkWidget* widget);
58 void CallBack_menu_DeclareBankrupcy(GtkWidget* widget);
5956 void CallBack_EstateTree_SelectRow(GtkTreeSelection *selection, gpointer data);
6057 void CallBack_EstateTree_Destroyed(GtkWidget *widget);
6158 void Callback_ProposalList_Select(GtkTreeSelection *selection, gpointer data);
6663 void Callback_ThemeList_Select(GtkTreeSelection *selection, gpointer data);
6764 void CallBack_Theme_Apply(GtkWidget* button);
6865
69
66 #endif /* CALLBACK_H */
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
2020
2121 /* ** functions for connect/disconnect server, receive/send data to/from server */
22
23 #include "config.h"
2224
2325 #include <stdio.h>
2426 #include <stdlib.h>
2527 #include <unistd.h>
2628 #include <string.h>
29 #include <errno.h>
2730
2831 #ifndef WIN32
32
2933 #include <netdb.h>
3034 #include <sys/socket.h>
3135 #include <arpa/inet.h>
3236 #include <netinet/in.h>
37 #include <netinet/tcp.h>
3338 #include <fcntl.h>
34
3539 #define closesocket close
3640 #define my_io_channel_socket_new g_io_channel_unix_new
37 #else
41
42 #else /* WIN32 */
43
44 #undef _WIN32_WINNT
45 #define _WIN32_WINNT _WIN32_WINNT_WINXP /* getaddrinfo() is only supported since WinXP */
3846 #include <winsock2.h>
39
47 #include <ws2tcpip.h>
4048 #define my_io_channel_socket_new g_io_channel_win32_new_socket
41 #endif
49 #ifndef SHUT_RDWR
50 #define SHUT_RDWR SD_BOTH
51 #endif /* SHUT_RDWR */
52
53 #endif /* WIN32 */
4254
4355 #include <sys/time.h>
4456 #include <sys/types.h>
4557 #include <time.h>
4658
47 #include "config.h"
4859 #include "xmlparse.h"
4960 #include "global.h"
5061 #include "client.h"
5162 #include "game.h"
52
53 #if !defined(HAVE_INET_ATON) || defined(WIN32)
54 #ifndef INADDR_NONE
55 #define INADDR_NONE 0xffffffff
56 #endif
57
58 int inet_aton(const char *cp, struct in_addr *addr) {
59
60 addr->s_addr = inet_addr(cp);
61 return addr->s_addr != INADDR_NONE;
62 }
63 #endif
64
63 #include "interface.h"
64
65 static void client_connect_async(connection *c);
66 static gboolean client_connect_finish(connection *c);
67 static gboolean client_connect_failed(gchar *msg);
68 static void client_connect_free(connection *c);
6569
6670 /* -- connect to server
6771 >
7074 > - can't resolve host
7175 > - can't open port or socket
7276 */
73 gboolean client_connect(gint32 *idconnect, gchar* host, gint32 port) {
74
75 struct sockaddr_in addr;
76 struct hostent *ent;
77 struct in_addr in;
78 gint32 addr_len, test;
79 gpointer errormsg;
80 gchar *text;
81 gint32 idcon;
82 socket_t sock;
83 GIOChannel *channel;
84
85
86 if( !connect_get_valid_id(&idcon) ) {
87
88 errormsg = g_strdup("[ERROR] Max number of connections reached");
89 text_insert_message(errormsg, strlen(errormsg));
90 g_free(errormsg);
91 return(FALSE);
92 }
93
94 /** resolve an address */
95 if (!inet_aton(host, &in) ) {
96
97 if (! (ent = gethostbyname(host)) ) {
98
99 errormsg = g_strdup_printf("[ERROR] Can't resolve host \"%s\"", host);
100 text_insert_message(errormsg, strlen(errormsg));
101 g_free(errormsg);
102 return(FALSE);
103
104 } else {
105
106 in = *(struct in_addr *)ent->h_addr;
107 addr.sin_family = ent->h_addrtype;
108 }
109 }
110 else addr.sin_family = AF_INET;
111
112 addr.sin_addr = in;
113 addr.sin_port = htons(port);
114 addr_len = sizeof(addr);
115
116 /* -- now host is resolved, continue connection */
117 sock = socket(addr.sin_family, SOCK_STREAM, IPPROTO_IP);
118 // see /usr/include/netinet/in.h for IPPROTO_x
119 channel = my_io_channel_socket_new(sock);
120 g_io_channel_set_encoding(channel, NULL, NULL);
121
122 test = connect(sock, (struct sockaddr*) &addr, addr_len);
123
124 if(test < 0) {
125
126 errormsg = g_strdup_printf("[ERROR] Host \"%s\" resolved but can't open port \"%d\" or socket", host, port);
127 text_insert_message(errormsg, strlen(errormsg));
128 g_free(errormsg);
129 g_io_channel_unref(channel);
130 return(FALSE);
77 #if DEBUG
78 static guint32 nextid;
79 #endif /* DEBUG */
80 void client_connect(guint8 type, gchar* host, gint32 port, gchar *cmd) {
81 connection *c;
82 GThread *t;
83 gchar *msg;
84
85 switch (type) {
86 case CONNECT_TYPE_MONOPD_GETGAME:
87 client_disconnect(global->customserver_connect);
88 break;
89 case CONNECT_TYPE_MONOPD_GAME:
90 client_disconnect(global->game_connect);
91 break;
92 case CONNECT_TYPE_METASERVER:
93 client_disconnect(global->metaserver_connect);
94 break;
95 }
96
97 c = g_malloc0(sizeof(connection));
98 #if DEBUG
99 c->id = nextid++;
100 #endif /* DEBUG */
101 c->type = type;
102 c->host = g_strdup(host);
103 c->port = port;
104 c->buffer_out = cmd;
105
106 msg = g_strdup_printf("Connecting to %s:%d…", c->host, c->port);
107 interface_set_infolabel(msg, "008000", true);
108 g_free(msg);
109
110 t = g_thread_new("connect", (GThreadFunc)client_connect_async, c);
111 g_thread_unref(t);
112 }
113
114 static void client_connect_async(connection *c) {
115 struct addrinfo hints;
116 struct addrinfo *result, *addrinfo;
117 char port_str[6];
118 int r;
119 char ip_str[INET6_ADDRSTRLEN];
120 int sock;
121
122 memset(&hints, 0, sizeof(struct addrinfo));
123 hints.ai_family = AF_UNSPEC;
124 hints.ai_socktype = SOCK_STREAM;
125 snprintf(port_str, sizeof(port_str), "%d", c->port);
126
127 r = getaddrinfo(c->host, port_str, &hints, &result);
128 if (r != 0) {
129 gchar *msg = g_strdup_printf("Can't resolve host %s:%d: %s", c->host, c->port, gai_strerror(r));
130 g_idle_add((GSourceFunc)client_connect_failed, msg);
131 goto failed;
132 }
133
134 for (addrinfo = result; addrinfo != NULL; addrinfo = addrinfo->ai_next) {
135 sock = socket(addrinfo->ai_family, addrinfo->ai_socktype, addrinfo->ai_protocol);
136 if (sock < 0) {
137 gchar *msg = g_strdup_printf("Socket failed %s:%d: %s", c->host, c->port, strerror(errno));
138 g_idle_add((GSourceFunc)client_connect_failed, msg);
139 continue;
140 }
141
142 ip_str[0] = '\0';
143 #ifndef WIN32
144 if (addrinfo->ai_family == AF_INET) {
145 inet_ntop(addrinfo->ai_family, &(((struct sockaddr_in *)addrinfo->ai_addr)->sin_addr), ip_str, INET6_ADDRSTRLEN);
146 } else if (addrinfo->ai_family == AF_INET6) {
147 inet_ntop(addrinfo->ai_family, &(((struct sockaddr_in6 *)addrinfo->ai_addr)->sin6_addr), ip_str, INET6_ADDRSTRLEN);
148 }
149 #else /* WIN32 */
150 if (addrinfo->ai_family == AF_INET) {
151 DWORD len = INET6_ADDRSTRLEN;
152 WSAAddressToString(addrinfo->ai_addr, (DWORD)sizeof(struct sockaddr_in), NULL, ip_str, &len);
153 } else if (addrinfo->ai_family == AF_INET6) {
154 DWORD len = INET6_ADDRSTRLEN;
155 WSAAddressToString(addrinfo->ai_addr, (DWORD)sizeof(struct sockaddr_in6), NULL, ip_str, &len);
156 }
157 #endif /* WIN32 */
158
159 r = connect(sock, addrinfo->ai_addr, addrinfo->ai_addrlen);
160 if (r < 0) {
161 gchar *msg = g_strdup_printf("Connect failed to %s:%d, %s: %s", c->host, c->port, ip_str, strerror(errno));
162 g_idle_add((GSourceFunc)client_connect_failed, msg);
163 close(sock);
164 continue;
165 }
166 break;
167 }
168
169 freeaddrinfo(result);
170
171 if (addrinfo == NULL) {
172 goto failed;
131173 }
132174
133175 #ifndef WIN32
134176 /* set socket to non-blocking */
135177 int flags = fcntl(sock, F_GETFL);
136 if(flags >= 0) {
178 if (flags >= 0) {
137179 flags |= O_NONBLOCK;
138180 fcntl(sock, F_SETFL, flags);
139181 }
140 #else
182 #else /* WIN32 */
141183 u_long on = 1;
142184 ioctlsocket(sock, FIONBIO, &on);
143 #endif
144
145 /* -- connection established :), finishing it */
146 connection[idcon] = g_malloc0(sizeof (_connect) );
147 connection_is_open[idcon] = TRUE;
148
149 connection[idcon]->socket = sock;
150 connection[idcon]->host = g_strdup(host);
151 connection[idcon]->port = port;
152 connection[idcon]->channel = channel;
153 connection[idcon]->connected = TRUE;
154 *idconnect = idcon;
155
156 connection[idcon]->event_source_id = g_io_add_watch(channel, G_IO_IN|G_IO_ERR|G_IO_HUP, (GIOFunc)client_event, GINT_TO_POINTER(idcon));
157
158 text = g_strdup_printf("[CONNECT %d] connected on \"%s:%d\", use socket %d", idcon, host, port, sock);
159 text_insert_message(text, strlen(text));
160 g_free(text);
161
162 return(TRUE);
163 }
164
185 #endif /* WIN32 */
186
187 /* Disable Nagle's algorithm */
188 #ifndef WIN32
189 int flag = 1;
190 #else /* WIN32 */
191 char flag = 1;
192 #endif /* WIN32 */
193 setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, &flag, sizeof(int));
194
195 c->ip = g_strdup(ip_str);
196 c->socket = sock;
197 g_idle_add((GSourceFunc)client_connect_finish, c);
198 return;
199
200 failed:
201 g_free(c->host);
202 if (c->buffer_out) {
203 g_free(c->buffer_out);
204 }
205 g_free(c);
206 }
207
208 static gboolean client_connect_finish(connection *c) {
209 GIOChannel *channel;
210 gchar *msg;
211
212 /* we are a bit too late */
213 if ( (c->type == CONNECT_TYPE_MONOPD_GETGAME && global->customserver_connect)
214 || (c->type == CONNECT_TYPE_MONOPD_GETGAME && global->phase != PHASE_GETGAMES)
215 || (c->type == CONNECT_TYPE_METASERVER && global->metaserver_connect)
216 || (c->type == CONNECT_TYPE_METASERVER && global->phase != PHASE_GETGAMES)
217 || (c->type == CONNECT_TYPE_MONOPD_GAME && global->game_connect)
218 ) {
219 client_connect_free(c);
220 return G_SOURCE_REMOVE;
221 }
222
223 channel = my_io_channel_socket_new(c->socket);
224 g_io_channel_set_encoding(channel, NULL, NULL);
225 c->channel = channel;
226 c->event_source_id = g_io_add_watch(channel, G_IO_IN|G_IO_ERR|G_IO_HUP, (GIOFunc)client_event, c);
227
228 msg = g_strdup_printf("Connected to %s:%d, using %s", c->host, c->port, c->ip);
229 interface_set_infolabel(msg, "008000", false);
230 g_free(msg);
231
232 if (c->buffer_out) {
233 client_send(c, c->buffer_out);
234 g_free(c->buffer_out);
235 c->buffer_out = NULL;
236 }
237
238 switch (c->type) {
239 case CONNECT_TYPE_MONOPD_GETGAME:
240 global->customserver_connect = c;
241 break;
242 case CONNECT_TYPE_MONOPD_GAME:
243 global->game_connect = c;
244 break;
245 case CONNECT_TYPE_METASERVER:
246 global->metaserver_connect = c;
247 break;
248 }
249
250 return G_SOURCE_REMOVE;
251 }
252
253 static gboolean client_connect_failed(gchar *msg) {
254 interface_set_infolabel(msg, "b00000", true);
255 g_free(msg);
256 return G_SOURCE_REMOVE;
257 }
165258
166259 /* -- close the connection */
167 gboolean client_disconnect(gint32 idconnect) {
168
169 gpointer errormsg;
170 gchar *text;
171
172 if(!connection_is_open[idconnect]) return(FALSE);
173 if(!connection[idconnect]->connected) return(FALSE);
174
175 shutdown (connection[idconnect]->socket, 2);
176
177 if(closesocket(connection[idconnect]->socket)) {
178
179 errormsg = g_strdup_printf("[ERROR] Connection \"%d\" : can't close socket", idconnect);
180 text_insert_message(errormsg, strlen(errormsg));
181 g_free(errormsg);
182 return(FALSE);
183 }
184
185 g_source_remove(connection[idconnect]->event_source_id);
186 g_io_channel_unref(connection[idconnect]->channel);
187
188 text = g_strdup_printf("[CONNECT %d] socket %d closed", idconnect, connection[idconnect]->socket);
189 text_insert_message(text, strlen(text));
190 g_free(text);
191
192 if(connection[idconnect]->buffer_in)
193 g_free(connection[idconnect]->buffer_in);
194
195 g_free(connection[idconnect]->host);
196 g_free(connection[idconnect]->server_version);
197
198 g_free( connection[idconnect] );
199 connection_is_open[idconnect] = FALSE;
200
201 return(TRUE);
202 }
203
204
205 gboolean client_event(GIOChannel *channel, GIOCondition condition, gpointer data) {
206 gint32 connect_id = GPOINTER_TO_INT(data);
207 _connect *connect = connection[connect_id];
260 void client_disconnect(connection *c) {
261 if (!c) return;
262
263 switch (c->type) {
264 case CONNECT_TYPE_MONOPD_GETGAME:
265 global->customserver_connect = NULL;
266 break;
267 case CONNECT_TYPE_MONOPD_GAME:
268 global->game_connect = NULL;
269 break;
270 case CONNECT_TYPE_METASERVER:
271 global->metaserver_connect = NULL;
272 break;
273 }
274
275 client_connect_free(c);
276 }
277
278 static void client_connect_free(connection *c) {
279 if (c->event_source_id) g_source_remove(c->event_source_id);
280 if (c->channel) g_io_channel_unref(c->channel);
281 shutdown(c->socket, SHUT_RDWR);
282 closesocket(c->socket);
283 if (c->buffer_in) {
284 g_free(c->buffer_in);
285 }
286 g_free(c->host);
287 g_free(c->ip);
288 g_free(c->server_version);
289 g_free(c);
290 }
291
292 gboolean client_event(GIOChannel *channel, GIOCondition condition, connection *c) {
208293
209294 if (condition == G_IO_IN) {
210295 GIOStatus status;
223308
224309 case G_IO_STATUS_ERROR:
225310 case G_IO_STATUS_EOF:
226 client_disconnect(connect_id);
227 /* FIXME: we need a callback here, so the upper level protocol know the connection is closed */
311 client_disconnect(c);
312 interface_set_infolabel("Connection to server lost.", "b00000", true);
228313 return TRUE;
229314 }
230315
231316 chunk[bytes_read] = '\0';
232317
233 if(connect->buffer_in == NULL) {
318 if(c->buffer_in == NULL) {
234319 buffer = g_strdup(chunk);
235320 } else {
236 buffer = g_strconcat(connect->buffer_in, chunk, NULL);
237 g_free(connect->buffer_in);
238 connect->buffer_in = NULL;
321 buffer = g_strconcat(c->buffer_in, chunk, NULL);
322 g_free(c->buffer_in);
323 c->buffer_in = NULL;
239324 }
240325
241326 /* parse data */
243328 if( *cur == '\n') {
244329 *cur = '\0';
245330 #if DEBUG
246 fprintf(stdout, "\033[32mID(%.2d): GET(%.4d): [%s]\033[m\n", connect_id, (int)strlen(beg), beg);
247 #endif
248 switch(connect->type) {
331 fprintf(stdout, "\033[32mID(%.2d): RECV(%.4d): [%s]\033[m\n", c->id, (int)strlen(beg), beg);
332 #endif /* DEBUG */
333 switch(c->type) {
249334
250335 case CONNECT_TYPE_MONOPD_GETGAME:
251 xmlparse_getgamelist_plugger(connect_id, beg);
336 xmlparse_getgamelist_plugger(c, beg);
252337 break;
253338 case CONNECT_TYPE_MONOPD_GAME:
254 xmlparse_game_plugger(connect_id, beg);
339 xmlparse_game_plugger(c, beg);
255340 break;
256341
257 case CONNECT_TYPE_META_GETLIST:
258 case CONNECT_TYPE_META_GETGAME:
259 xmlparse_metaserver(connect_id, beg);
342 case CONNECT_TYPE_METASERVER:
343 xmlparse_metaserver(c, beg);
260344 break;
261345 }
262346
266350
267351 /* bufferise remaining data */
268352 if (beg != cur) {
269 connect->buffer_in = g_strdup(beg);
353 c->buffer_in = g_strdup(beg);
270354 }
271355
272356 g_free(buffer);
273357 }
274358
275359 else /* if (condition == G_IO_ERR || condition == G_IO_HUP) */ {
276 client_disconnect(connect_id);
277 /* FIXME: we need a callback here, so the upper level protocol know the connection is closed */
360 client_disconnect(c);
361 interface_set_infolabel("Connection to server lost.", "b00000", true);
278362 return TRUE;
279363 }
280364
285369 /* -- send data to server
286370 >> get from send_tmp buffer
287371 >> flush send_tmp buffer */
288 gboolean client_send(gint32 id, gchar *data, gint32 lenght_data) {
289
290 gint32 t;
291 gpointer errormsg;
292
293 if(!connection_is_open[id]) return(TRUE);
294 if(!connection[id]->connected) return(TRUE);
295
296 t = send(connection[id]->socket, data, lenght_data, 0);
297
298 if(t != lenght_data) {
299
300 errormsg = g_strdup("[ERROR] Can't send data to server");
301 text_insert_message(errormsg, strlen(errormsg));
302 g_free(errormsg);
303 return(FALSE);
372 void client_send(connection *c, gchar *data) {
373 size_t len;
374 ssize_t s;
375
376 if (!c) return;
377
378 len = strlen(data);
379 s = send(c->socket, data, len, 0);
380 if (s < 0 || (size_t)s != len) {
381 return;
304382 }
305383
306384 #if DEBUG
307 fprintf(stdout, "\033[31mID(%.2d): SEND(%.4d): [%s]\033[m\n", id, lenght_data, data);
308 #endif
309
310 return(TRUE);
311 }
385 fprintf(stdout, "\033[31mID(%.2d): SEND(%.4d): [%s]\033[m\n", c->id, (int)len, data);
386 #endif /* DEBUG */
387 }
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
2020
21 #ifndef CLIENT_H
22 #define CLIENT_H
23
24 #include <global.h>
25
2126 /* ** prototypes for connect/disconnect to server */
22 gboolean client_connect(gint32 *idconnect, gchar* host, gint32 port);
23 gboolean client_disconnect(gint32 id);
24 gboolean client_event(GIOChannel *channel, GIOCondition condition, gpointer data);
25 gboolean client_send(gint32 id, gchar *data, gint32 lenght_data);
27 void client_connect(guint8 type, gchar* host, gint32 port, gchar *cmd);
28 void client_disconnect(connection *c);
29 gboolean client_event(GIOChannel *channel, GIOCondition condition, connection *c);
30 void client_send(connection *c, gchar *data);
31
32 #endif /* CLIENT_H */
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
20
21 #include "config.h"
2022
2123 #include <stdio.h>
2224 #include <stdlib.h>
3436 void display_init() {
3537
3638 GtkWidget *vbox;
37 GtkWidget *alignment;
38 GtkWidget *label;
3939 GtkWidget *text;
4040 GtkTextBuffer *textbuff;
4141 GtkTextIter textiter;
4242 GtkWidget *scrolledwin;
43 GtkWidget *buttonsbox;
4443
4544 vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 15);
4645 gtk_container_set_border_width(GTK_CONTAINER(vbox), 15);
4746 g_object_set_data(G_OBJECT(currentgame->BoardCenter), "boardcenter", vbox);
4847 gtk_box_pack_start(GTK_BOX(currentgame->BoardCenter), vbox, TRUE, TRUE, 0);
49
50 /* create title */
51 alignment = gtk_alignment_new(0.5, 0.5, 1.0, 1.0);
52 gtk_box_pack_start(GTK_BOX(vbox), alignment, FALSE, FALSE, 0);
53
54 label = gtk_label_new(NULL);
55 g_object_set_data(G_OBJECT(currentgame->BoardCenter), "boardcenter_title", label);
56 gtk_label_set_use_markup(GTK_LABEL(label), TRUE);
57 gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
58 gtk_container_add(GTK_CONTAINER(alignment), label);
5948
6049 /* create text view */
6150 scrolledwin = gtk_scrolled_window_new(NULL,NULL);
7160 g_object_set_data(G_OBJECT(currentgame->BoardCenter), "boardcenter_text", text);
7261 gtk_container_add(GTK_CONTAINER(scrolledwin), text);
7362
74 /* buttons box */
75 buttonsbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 15);
76 g_object_set_data(G_OBJECT(currentgame->BoardCenter), "boardcenter_buttons", buttonsbox);
77 gtk_box_pack_start(GTK_BOX(vbox), buttonsbox, FALSE, FALSE, 0);
78
7963 gtk_widget_show_all(vbox);
80 gtk_widget_hide(label);
81 gtk_widget_hide(buttonsbox);
8264 }
8365
8466
10688 }
10789
10890
109 void display_clear_buttons() {
91 void display_clear_buttons() {
11092 GtkWidget *buttonsbox = g_object_get_data(G_OBJECT(currentgame->BoardCenter), "boardcenter_buttons");
111 GList *list = gtk_container_get_children(GTK_CONTAINER(buttonsbox));
112 for (list = g_list_first(list); list; list = g_list_next(list)) {
113 gtk_widget_destroy(GTK_WIDGET(list->data));
93 if (buttonsbox) {
94 gtk_widget_destroy(buttonsbox);
95 g_object_set_data(G_OBJECT(currentgame->BoardCenter), "boardcenter_buttons", NULL);
11496 }
115 g_list_free(list);
116 gtk_widget_hide(buttonsbox);
11797 }
11898
11999
120100 void display_estate(gint32 estateid) {
121 GtkWidget *title = g_object_get_data(G_OBJECT(currentgame->BoardCenter), "boardcenter_title");
122
123 if (estateid < 0) {
124 gtk_widget_hide(title);
125 return;
126 }
127 display_title(currentgame->estate[estateid].name);
101 display_title(estateid < 0 ? NULL : currentgame->estate[estateid].name);
128102 }
129103
130104
131105 void display_title(gchar *title) {
132 GtkWidget *label;
133 gchar *tmp;
134106
135 label = g_object_get_data(G_OBJECT(currentgame->BoardCenter), "boardcenter_title");
136 tmp = g_markup_printf_escaped("<span size=\"xx-large\"><b>%s</b></span>", title);
107 GtkWidget *label = g_object_get_data(G_OBJECT(currentgame->BoardCenter), "boardcenter_title");
108
109 if (!title) {
110 if (label) {
111 gtk_widget_destroy(label);
112 g_object_set_data(G_OBJECT(currentgame->BoardCenter), "boardcenter_title", NULL);
113 }
114 return;
115 }
116
117 if (!label) {
118 GtkWidget *vbox = g_object_get_data(G_OBJECT(currentgame->BoardCenter), "boardcenter");
119 label = gtk_label_new(NULL);
120 gtk_label_set_use_markup(GTK_LABEL(label), TRUE);
121 gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
122 gtk_widget_set_halign(label, GTK_ALIGN_CENTER);
123 gtk_widget_set_valign(label, GTK_ALIGN_CENTER);
124 gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
125 gtk_box_reorder_child(GTK_BOX(vbox), label, 0);
126 g_object_set_data(G_OBJECT(currentgame->BoardCenter), "boardcenter_title", label);
127 gtk_widget_show(label);
128 }
129
130 gchar *tmp = g_markup_printf_escaped("<span size=\"xx-large\"><b>%s</b></span>", title);
137131 gtk_label_set_markup(GTK_LABEL(label), tmp);
138132 g_free(tmp);
139 gtk_widget_show(label);
140133 }
141134
142135
145138 GtkWidget *text;
146139 GtkTextBuffer *textbuff;
147140 GtkTextIter textiter;
141 GtkTextMark *textmark;
148142
149143 text = g_object_get_data(G_OBJECT(currentgame->BoardCenter), "boardcenter_text");
150144 textbuff = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text));
153147 gtk_text_buffer_insert(textbuff, &textiter, "\n", 1);
154148 }
155149 gtk_text_buffer_insert(textbuff, &textiter, message, strlen(message));
150
151 /* Scroll to the end mark */
152 textmark = gtk_text_buffer_get_mark(textbuff, "endmark");
153 gtk_text_view_scroll_to_mark(GTK_TEXT_VIEW(text), textmark,
154 0.0, FALSE, 0.0, 0.0);
156155 }
157156
158157
163162 gchar *text;
164163
165164 buttonsbox = g_object_get_data(G_OBJECT(currentgame->BoardCenter), "boardcenter_buttons");
165 if (!buttonsbox) {
166 GtkWidget *vbox = g_object_get_data(G_OBJECT(currentgame->BoardCenter), "boardcenter");
167 buttonsbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 15);
168 gtk_box_pack_start(GTK_BOX(vbox), buttonsbox, FALSE, FALSE, 0);
169 g_object_set_data(G_OBJECT(currentgame->BoardCenter), "boardcenter_buttons", buttonsbox);
170 gtk_widget_show(buttonsbox);
171 }
166172
167 /* build button */
168173 button = gtk_button_new_with_label(caption);
169174 gtk_box_pack_start(GTK_BOX(buttonsbox), button, TRUE, TRUE, 0);
170175
173178 g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(CallBack_button_command_pressed), NULL);
174179 gtk_widget_set_sensitive(button, enabled);
175180
176 gtk_widget_show_all(buttonsbox);
181 gtk_widget_show(button);
177182 }
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
20
21 #ifndef DISPLAY_H
22 #define DISPLAY_H
2023
2124 #include <gtk/gtk.h>
2225
2932 void display_title(gchar *text);
3033 void display_text(gchar *message);
3134 void display_add_button(gchar *caption, gchar *command, gboolean enabled);
35
36 #endif /* DISPLAY_H */
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
20
21 #include "config.h"
2022
2123 #include <stdlib.h>
2224 #include <stdio.h>
293295 /* update bufout in selected zone */
294296 void eng_update_bufout(eng_frame *f, eng_coord *zone, eng_list *obj_show) {
295297
296 eng_list *obj_in_zone;
297 eng_list_e *lst, *lst2;
298
299 obj_in_zone = eng_list_new();
298 eng_list *obj_in_zone, *obj_in_zone_unsorted;
299 eng_list_e *lst;
300
301 obj_in_zone_unsorted = eng_list_new();
300302 eng_clear_bufout(f, zone);
301303
302304 /* search obj in zone to update */
311313 && c->y1 <= zone->y2
312314 && c->y2 >= zone->y1) {
313315
314 o->entry_zone = eng_list_append(obj_in_zone, o);
316 o->entry_zone = eng_list_append(obj_in_zone_unsorted, o);
315317 }
316318 g_free(c);
317319 }
318320 /*
319 printf("--- IN ZONE (CHAOS) : %d, %d - %d, %d \n", zone->x1, zone->y1, zone->x2, zone->y2);
320 for(lst = eng_list_first(obj_in_zone) ; lst ; lst=lst->next) {
321 printf("--- IN ZONE (UNSORTED) : %d, %d - %d, %d \n", zone->x1, zone->y1, zone->x2, zone->y2);
322 for(lst = eng_list_first(obj_in_zone_unsorted) ; lst ; lst=lst->next) {
321323
322324 eng_obj *o = lst->data;
323325 printf(" %3d = %3d, %3d, %3d, %3d\n", o->z, o->x, o->y, o->x + o->width -1, o->y + o->height -1);
324326 }
325327 */
326328 /* sort table : ground min > max */
327 for(lst = eng_list_first(obj_in_zone) ; lst ; lst=lst->next) {
328
329 eng_obj *obj_1 = lst->data;
330 for(lst2=lst->next ; lst2 ; lst2=lst2->next) {
331
332 eng_obj *obj_2 = lst2->data;
333 if(obj_1->z > obj_2->z) {
334
335 eng_list_remove_fast(obj_1->entry_zone);
336 obj_1->entry_zone = eng_list_append(obj_in_zone, obj_1);
329 obj_in_zone = eng_list_new();
330 while (eng_list_length(obj_in_zone_unsorted)) {
331 eng_obj *a, *b;
332 lst = eng_list_first(obj_in_zone_unsorted);
333 a = lst->data;
334 for (; lst; lst=lst->next) {
335 b = lst->data;
336 if (a->z > b->z) {
337 a = b;
337338 }
338339 }
339 }
340 eng_list_remove_fast(a->entry_zone);
341 a->entry_zone = eng_list_append(obj_in_zone, a);
342 }
343 eng_list_destroy(obj_in_zone_unsorted);
340344 /*
341345 printf("--- IN ZONE (SORT) : %d, %d - %d, %d \n", zone->x1, zone->y1, zone->x2, zone->y2);
342346 for(lst = eng_list_first(obj_in_zone) ; lst ; lst=lst->next) {
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
2020
21
22 #ifndef _ENG_FRAME_H
23 #define _ENG_FRAME_H
24
25 #ifdef __cplusplus
26 extern "C"
27 {
28 #endif
29
21 #ifndef ENG_FRAME_H
22 #define ENG_FRAME_H
3023
3124 #include <glib.h>
3225
4639
4740 /* -- end of prototypes -- */
4841
49
50 #ifdef __cplusplus
51 }
52 #endif
53 #endif /* _ENG_FRAME_H */
42 #endif /* ENG_FRAME_H */
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
20
21 #include "config.h"
2022
2123 #include <glib.h>
2224
2527 #include <unistd.h>
2628 #include <string.h>
2729
28 #include "config.h"
2930 #include "eng_list.h"
3031
3132
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
2020
21 #ifndef _ENG_LIST_H
22 #define _ENG_LIST_H
23
24 #ifdef __cplusplus
25 extern "C"
26 {
27 #endif
21 #ifndef ENG_LIST_H
22 #define ENG_LIST_H
2823
2924 #include <glib.h>
3025
6459 GList *eng_list_libevlist_to_glist(eng_list *l);
6560 eng_list *eng_list_glist_to_libevlist(GList *gl);
6661
67 #ifdef __cplusplus
68 }
69 #endif
70 #endif /* _ENG_LIST_H */
62 #endif /* ENG_LIST_H */
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
20
21 #include "config.h"
2022
2123 #include <stdlib.h>
2224 #include <stdio.h>
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
19 */
20
21 #ifndef ENG_MAIN_H
22 #define ENG_MAIN_H
2123
2224 /* ENG_MAIN: main functions for engine
2325 *
5153 * |-> eng_zone_upd > display zone to update (x1, y1, x2, y1)
5254 * `-> eng_obj > property of pictures (x, y, height, width, ...)
5355 */
54
55
56 #ifndef _ENG_MAIN_H
57 #define _ENG_MAIN_H
58
59 #ifdef __cplusplus
60 extern "C"
61 {
62 #endif
63
6456
6557 #include <glib.h>
6658 #include "eng_list.h"
227219 guchar *aux;
228220 };
229221
230
231 #ifdef __cplusplus
232 }
233 #endif
234 #endif /* _ENG_MAIN_H */
222 #endif /* ENG_MAIN_H */
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
2020
21 #ifndef ENGINE_H
22 #define ENGINE_H
2123
2224 /* all includes of engine */
23
24 #ifndef _ENG_H
25 #define _ENG_H
26
27 #ifdef __cplusplus
28 extern "C"
29 {
30 #endif
31
3225
3326 #include "eng_main.h"
3427 #include "eng_frame.h"
3528
29 #endif /* ENGINE_H */
3630
37 #ifdef __cplusplus
38 }
39 #endif
40 #endif /* _ENG_H */
41
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
20
21 #include "config.h"
2022
2123 #include <stdio.h>
2224 #include <stdlib.h>
3032
3133 #include <libxml/parser.h>
3234
33 #include "config.h"
34
3535 #include "global.h"
3636 #include "game.h"
3737 #include "load.h"
3939 #include "client.h"
4040 #include "trade.h"
4141 #include "engine.h"
42 #include "callback.h"
4243
4344 #ifdef WIN32
4445 #include <windows.h>
4546 #include <io.h>
47 #include <shlobj.h>
4648 #define mkdir(p, m) _mkdir(p)
47 #undef PACKAGE_DATA_DIR
48 #define PACKAGE_DATA_DIR "./data"
4949 #endif
5050
5151 /* create home directory (~/.gtkatlantic) *
5252 * return TRUE if exist/created, return FALSE if cannot be created */
53 gboolean create_home_directory() {
54
53 void create_home_directory(void) {
5554 gchar *path;
5655 struct stat s;
5756
5857 #ifndef WIN32
59 path = g_strconcat( getenv("HOME"), "/", ".", PACKAGE, "/", NULL);
60 #else
61 HKEY hKey;
62 TCHAR home[PATH_MAX];
63 DWORD size = PATH_MAX;
64
65 if (RegOpenKeyEx(HKEY_CURRENT_USER,
66 "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders",
67 0, KEY_READ, &hKey) != ERROR_SUCCESS ||
68 RegQueryValueEx(hKey, "Personal", NULL, NULL, (LPBYTE)home, &size) != ERROR_SUCCESS ||
69 RegCloseKey(hKey) != ERROR_SUCCESS) {
70 path = g_strconcat(PACKAGE, "/", NULL);
71 } else {
72 path = g_strconcat(home, "/", PACKAGE, "/", NULL);
73 }
58 path = g_strconcat(getenv("HOME"), "/", ".", PACKAGE, NULL);
59 #else /* WIN32 */
60 TCHAR home[MAX_PATH];
61 if (FAILED(SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, 0, home))) {
62 return;
63 }
64 path = g_strconcat(home, "/", PACKAGE, NULL);
7465 #endif /* WIN32 */
75 global->path_home = g_strdup(path);
76 if(stat(path, &s) < 0) {
77
66 if (stat(path, &s) < 0) {
7867 mkdir(path, 0777);
79 if(stat(path, &s) < 0) {
80
68 if (stat(path, &s) < 0) {
8169 g_free(path);
82 return FALSE;
83 }
70 return;
71 }
72 }
73
74 global->path_home = path;
75
76 path = g_strconcat(global->path_home, "/themes", NULL);
77 if (stat(path, &s) < 0) {
78 mkdir(path, 0777);
8479 }
8580 g_free(path);
86
87 path = g_strconcat( global->path_home, "themes/", NULL);
88 if(stat(path, &s) < 0) {
89
90 mkdir(path, 0777);
91 if(stat(path, &s) < 0) {
92
93 g_free(path);
94 return FALSE;
95 }
96 }
97 g_free(path);
98
99 return TRUE;
10081 }
10182
10283
10889 /* Default configuration */
10990 config->nickname = g_strdup("anonymous");
11091
111 config->metaserver_autogetlist = FALSE;
112 config->metaserver_autogetgames = TRUE;
92 config->metaserver_autoconnect = TRUE;
11393 config->metaserver_sendclientversion = TRUE;
11494
11595 config->getgames_host = g_strdup("localhost");
11696 config->getgames_port = 1234;
117 config->getgames_autogetgames = TRUE;
118
119 config->message_max_lines = 40;
120 config->chat_max_lines = 80;
97 config->getgames_autoconnect = FALSE;
12198
12299 config->game_playerlist_position = GAME_PLAYERLIST_POS_LEFT;
123100 config->game_token_animation_speed = 300;
124101 config->game_token_transparency = FALSE;
125102
126103 /* read user config file */
127 filename = g_strconcat(global->path_home, "gtkatlantic.conf", NULL);
128 parse_file_config(filename);
129 g_free(filename);
130 }
131
132
133 /* return a valid slot for a connection *
134 * else return FALSE */
135 gboolean connect_get_valid_id(gint32 *idconnect) {
136
137 gint32 i;
138
139 for(i = 1; i < MAX_CONNECTION; i++)
140 if(!connection_is_open[i]) {
141
142 *idconnect = i;
143 return(TRUE);
144 }
145
146 return(FALSE);
104 if (global->path_home) {
105 filename = g_strconcat(global->path_home, "/gtkatlantic.conf", NULL);
106 parse_file_config(filename);
107 g_free(filename);
108 }
147109 }
148110
149111
150112 /* this function made a new connection for metaserver (list & games) */
151 void create_connection_metaserver(gint32 gametype) {
152
153 gint32 connectid;
154 gchar *sendstr;
155
156 /* close previously opened connection */
157 if (global->metaserver_connectid) {
158 client_disconnect(global->metaserver_connectid);
159 global->metaserver_connectid = 0;
160 }
161
162 if(! client_connect(&connectid, METASERVER_HOST, METASERVER_PORT) ) return;
163 connection[connectid]->type = gametype;
164 global->metaserver_connectid = connectid;
165
166 /* send client version (to retrieve info about release) */
167 if(config->metaserver_sendclientversion) {
168
169 sendstr = g_strconcat("CHECKCLIENT", PACKAGE, VERSION, "\n", NULL);
170 client_send(connectid, sendstr, strlen(sendstr));
171 g_free(sendstr);
172 }
173
174 if(gametype == CONNECT_TYPE_META_GETLIST) {
175 sendstr = g_strdup("SERVERLIST\n");
176 client_send(connectid, sendstr, strlen(sendstr));
177 g_free(sendstr);
178 }
179 else {
180 sendstr = g_strdup("GAMELIST\n");
181 client_send(connectid, sendstr, strlen(sendstr));
182 g_free(sendstr);
183 }
113 void create_connection_metaserver() {
114 GtkTreeIter iter;
115 gboolean valid;
116 gchar *cmd;
117
118 /* already connected */
119 if (global->metaserver_connect) {
120 return;
121 }
122
123 /* remove all servers */
124 gtk_list_store_clear(global->server_store);
125
126 /* remove all games previously fetched from metaserver */
127 valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(global->game_store), &iter);
128 while (valid) {
129 gint32 source;
130 GtkTreeIter curiter = iter;
131
132 valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(global->game_store), &iter); /* get next iter so we can safely remove the current entry */
133
134 gtk_tree_model_get(GTK_TREE_MODEL(global->game_store), &curiter, GAMELIST_COLUMN_SOURCE, &source, -1);
135 if (source == GAMELIST_SOURCE_METASERVER) {
136 gtk_list_store_remove(global->game_store, &curiter);
137 }
138 }
139
140 GtkWidget *MenuItem = g_object_get_data(G_OBJECT(global->Menu), "connect_to_metaserver");
141 gtk_widget_set_sensitive(MenuItem, FALSE);
142 MenuItem = g_object_get_data(G_OBJECT(global->Menu), "public_server_list");
143 gtk_widget_set_sensitive(MenuItem, TRUE);
144
145 if (config->metaserver_sendclientversion) {
146 cmd = g_strdup("CHECKCLIENT " PACKAGE " " VERSION "\nFOLLOW\n");
147 } else {
148 cmd = g_strdup("FOLLOW\n");
149 }
150
151 client_connect(CONNECT_TYPE_METASERVER, METASERVER_HOST, METASERVER_PORT, cmd);
184152 }
185153
186154
187155 /* this function create a new connection to get games list */
188156 void create_connection_get_games(gchar *host, gint32 port) {
189157
190 gint32 connectid;
191 gchar *sendstr;
192 GtkListStore *store;
193
194 /* close previously opened connection */
195 if (global->customserver_connectid) {
196 client_disconnect(global->customserver_connectid);
197 global->customserver_connectid = 0;
198 }
199
200158 /* remove all games previously fetched from custom server */
201 store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(global->GameList)));
202 if (store) {
159 if (global->game_store) {
203160 GtkTreeIter iter;
204 gboolean valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(store), &iter);
161 gboolean valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(global->game_store), &iter);
205162 while (valid) {
206163 gint32 source;
207164 GtkTreeIter curiter = iter;
208165
209 valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(store), &iter); /* get next iter so we can remove the current entry safely */
210
211 gtk_tree_model_get(GTK_TREE_MODEL(store), &curiter, GAMELIST_COLUMN_SOURCE, &source, -1);
166 valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(global->game_store), &iter); /* get next iter so we can remove the current entry safely */
167
168 gtk_tree_model_get(GTK_TREE_MODEL(global->game_store), &curiter, GAMELIST_COLUMN_SOURCE, &source, -1);
212169 if (source == GAMELIST_SOURCE_CUSTOM) {
213 gtk_list_store_remove(store, &curiter);
214 }
215 }
216 }
217
218 if(! client_connect(&connectid, host, port) ) return;
219 connection[connectid]->type = CONNECT_TYPE_MONOPD_GETGAME;
220 global->customserver_connectid = connectid;
221
222 /* FIXME: wait for server banner */
223 sendstr = g_strdup(".n_client_\n");
224 client_send(connectid, sendstr, strlen(sendstr));
225 g_free(sendstr);
226 }
227
228
229 /* insert test in Message Box */
230 void text_insert_message(gchar* text, gint32 length) {
231
232 GtkTextBuffer *textbuff;
233 GtkTextIter textiter;
234 GtkTextMark *textmark;
235
236 // gint32 i, len;
237
238 if(global->phase < PHASE_GETGAMES) return;
239
240 textbuff = gtk_text_view_get_buffer(GTK_TEXT_VIEW(global->Message));
241 gtk_text_buffer_get_end_iter(textbuff, &textiter);
242 if (gtk_text_iter_get_offset(&textiter)) {
243 gtk_text_buffer_insert(textbuff, &textiter, "\n", -1);
244 }
245 gtk_text_buffer_insert(textbuff, &textiter, text, length);
246
247 /* Scroll the text */
248 textmark = gtk_text_buffer_get_mark(textbuff, "endmark");
249 gtk_text_view_scroll_to_mark(GTK_TEXT_VIEW(global->Message), textmark,
250 0.0, FALSE, 0.0, 0.0);
251
252 global->message_nb_lines++;
253
254 // while(global->message_nb_lines > config->message_max_lines) {
255
256 // if unlimited
257 /* if(config->message_max_lines <= 0) break;
258
259 len = gtk_text_get_length( GTK_TEXT(global->Message) );
260
261 for(i = 0 ; GTK_TEXT_INDEX( GTK_TEXT(global->Message), i) != '\n' ; i++) {
262
263 if(i >= len) { // argl... no CR found
264
265 gtk_text_set_point( GTK_TEXT(global->Message), 0);
266 gtk_text_forward_delete( GTK_TEXT(global->Message), len);
267 global->message_nb_lines = 0;
268 break;
269 }
270 }
271
272 if(global->message_nb_lines) {
273
274 i++;
275 gtk_text_set_point( GTK_TEXT(global->Message), 0);
276 gtk_text_forward_delete( GTK_TEXT(global->Message), i);
277 global->message_nb_lines--;
278 }
279 }
280
281 len = gtk_text_get_length( GTK_TEXT(global->Message) );
282 gtk_text_set_point( GTK_TEXT(global->Message), len);
283
284 gtk_text_thaw( GTK_TEXT(global->Message) );
285
286 gtk_adjustment_set_value( GTK_ADJUSTMENT( GTK_TEXT( global->Message )->vadj ), GTK_ADJUSTMENT( GTK_TEXT( global->Message )->vadj )->upper );
287 */
170 gtk_list_store_remove(global->game_store, &curiter);
171 }
172 }
173 }
174
175 client_connect(CONNECT_TYPE_MONOPD_GETGAME, host, port, NULL);
288176 }
289177
290178
295183 GtkTextIter textiter;
296184 GtkTextMark *textmark;
297185
298 // gint32 i, len;
299
300186 if(global->phase < PHASE_GAMECREATE)
301187 return;
302188
311197 textmark = gtk_text_buffer_get_mark(textbuff, "endmark");
312198 gtk_text_view_scroll_to_mark(GTK_TEXT_VIEW(currentgame->Chat), textmark,
313199 0.0, FALSE, 0.0, 0.0);
314
315 currentgame->chat_nb_lines++;
316
317 /* while(currentgame->chat_nb_lines > config->chat_max_lines) {
318
319 // if unlimited
320 if(config->chat_max_lines <= 0) break;
321
322 len = gtk_text_get_length( GTK_TEXT(currentgame->Chat) );
323
324 for(i = 0 ; GTK_TEXT_INDEX( GTK_TEXT(currentgame->Chat), i) != '\n' ; i++) {
325
326 if(i >= len) { // argl... no CR found
327
328 gtk_text_set_point( GTK_TEXT(currentgame->Chat), 0);
329 gtk_text_forward_delete( GTK_TEXT(currentgame->Chat), len);
330 currentgame->chat_nb_lines = 0;
331 break;
332 }
333 }
334
335 if(currentgame->chat_nb_lines) {
336
337 i++;
338 gtk_text_set_point( GTK_TEXT(currentgame->Chat), 0);
339 gtk_text_forward_delete( GTK_TEXT(currentgame->Chat), i);
340 currentgame->chat_nb_lines--;
341 }
342 }
343
344 len = gtk_text_get_length( GTK_TEXT(currentgame->Chat) );
345 gtk_text_set_point( GTK_TEXT(currentgame->Chat), len);
346
347 gtk_text_thaw( GTK_TEXT(currentgame->Chat) );
348
349 // gtk_adjustment_set_value( GTK_ADJUSTMENT( GTK_TEXT( currentgame->Chat )->vadj ), GTK_ADJUSTMENT( GTK_TEXT( currentgame->Chat )->vadj )->upper );
350
351 */
352200 }
353201
354202
355203 game *game_new(gint32 id) {
356204 game *game;
357205
358 game = g_malloc0(sizeof(struct game_s));
206 game = g_malloc0(sizeof(*game));
359207 game->gameid = id;
360208 printf("New game: %d\n", game->gameid);
361209
366214
367215
368216 void game_free(gint32 id) {
369 game **prevp, *game;
370
371 for (prevp = &game_h; (game = *prevp); prevp = &game->next) {
372 if (game->gameid == id) {
373 *prevp = game->next;
374 printf("Deleted game: %d\n", game->gameid);
375 g_free(game);
217 game **prevp, *g;
218
219 for (prevp = &game_h; (g = *prevp); prevp = &g->next) {
220 if (g->gameid == id) {
221 *prevp = g->next;
222 printf("Deleted game: %d\n", g->gameid);
223 g_free(g);
376224 break;
377225 }
378226 }
380228
381229
382230 game *game_find(gint32 id) {
383 game *game;
384
385 for (game = game_h; game; game = game->next) {
386 if (game->gameid == id) {
387 return game;
231 game *g;
232
233 for (g = game_h; g; g = g->next) {
234 if (g->gameid == id) {
235 return g;
388236 }
389237 }
390238 return NULL;
394242 /* free all game ressources, return to get games page */
395243 void game_quit() {
396244 gint32 i;
397 game *game, *cur;
398
399 client_disconnect(global->game_connectid);
400 global->game_connectid = 0;
401
402 interface_destroy_message();
403 interface_destroy_chat();
245 game *g;
246
247 client_disconnect(global->game_connect);
248
249 currentgame->ChatBox = NULL;
250 currentgame->Chat = NULL;
251
404252 if(currentgame->WinEstateTree) gtk_widget_destroy(currentgame->WinEstateTree);
405253
406254 if(currentgame->timeout_token) g_source_remove(currentgame->timeout_token);
407255
408 interface_create_getgamespage();
409
410 for(i = 0 ; i < MAX_PLAYERS ; i++) {
411
412 if(! global->player[i].playerid) continue;
413 game_free_player(i);
256 game_delete_cookie();
257
258 /* remove all players */
259 while (player_h) {
260 game_free_player(player_h);
414261 }
415262
416263 for(i = 0 ; i < data->number_estates ; i++) {
434281 g_free(currentgame->command[i].command);
435282 }
436283
284 for(i = 0 ; i < MAX_CARDS ; i++) {
285
286 if (currentgame->card[i].title) {
287 g_free(currentgame->card[i].title);
288 }
289 }
290
437291 eng_frame_destroy( currentgame->board_frame );
438292
439293 game_free_pngs();
440294
441295 /* remove all games */
442 game = game_h;
443 while (game) {
444 cur = game;
445 game = game->next;
296 g = game_h;
297 while (g) {
298 game *cur = g;
299 g = g->next;
446300 printf("Deleted game: %d\n", cur->gameid);
447301 g_free(cur);
448302 }
449303 game_h = NULL;
450304
451305 currentgame = NULL;
306
307 interface_create_getgamespage(true);
452308 }
453309
454310
455311 /* create a new player slot */
456 gint32 game_new_player_slot(gint32 playerid) {
457
458 gint32 i;
459
460 for (i = 0; i < MAX_PLAYERS; i++) {
461 if (!global->player[i].playerid) {
462 memset(&(global->player[i]), 0, sizeof(_player));
463 global->player[i].playerid = playerid;
464 return i;
465 }
466 }
467
468 return -1;
469 }
470
471
472 /* return the player slot of playerid */
473 gint32 get_player_slot_with_playerid(gint32 playerid) {
474
475 gint32 i;
476
477 for(i = 0 ; i < MAX_PLAYERS ; i++) {
478
479 if((gint32)global->player[i].playerid == playerid) {
480
481 return(i);
482 break;
483 }
484 }
485
486 return(-1);
312 player *game_new_player(guint32 id) {
313 player *player;
314
315 player = g_malloc0(sizeof(*player));
316 player->playerid = id;
317 player->tokenid = -1;
318 printf("New player: %d\n", player->playerid);
319
320 player->next = player_h;
321 player_h = player;
322 return player;
323 }
324
325
326 player *player_from_id(gint32 playerid) {
327 player *p;
328
329 for (p = player_h; p; p = p->next) {
330 if ((gint32)p->playerid == playerid) {
331 return p;
332 }
333 }
334 return NULL;
335 }
336
337
338 player *player_from_name(gchar *name) {
339 player *p;
340
341 if (!name) return NULL;
342 if (strlen(name) <= 0) return NULL;
343
344 for (p = player_h; p; p = p->next) {
345 if (!p->name) continue;
346
347 if (!strcmp(p->name, name)) {
348 return p;
349 }
350 }
351 return NULL;
487352 }
488353
489354
543408 void parse_specific_chat_message(gchar *message) {
544409
545410 gchar *msg, *sendstr;
546 gint32 pslot;
411 player *my_player;
547412
548413 struct timeval tv;
549414 time_t t_now;
550415
551 pslot = get_player_slot_with_playerid( global->my_playerid );
416 my_player = player_from_id(global->my_playerid);
552417
553418 if(message[0] != '!') return;
554419
564429 else msg++;
565430 }
566431
567 if(strlen(msg) == 0 || !strcmp(msg, global->player[pslot].name) ) {
432 if (strlen(msg) == 0 || !strcmp(msg, my_player->name)) {
568433
569434 sendstr = g_strdup_printf("GtkAtlantic %s\n", VERSION);
570 client_send(global->game_connectid, sendstr, strlen(sendstr));
435 client_send(global->game_connect, sendstr);
571436 g_free(sendstr);
572437 }
573438 }
582447 else msg++;
583448 }
584449
585 if(strlen(msg) == 0 || !strcmp(msg, global->player[pslot].name) ) {
450 if (strlen(msg) == 0 || !strcmp(msg, my_player->name)) {
586451
587452 gettimeofday(&tv, NULL);
588453 t_now = tv.tv_sec;
589454 sendstr = g_strdup_printf("%s", ctime(&t_now) );
590 client_send(global->game_connectid, sendstr, strlen(sendstr));
455 client_send(global->game_connect, sendstr);
591456 g_free(sendstr);
592457 }
593458 }
601466 else msg++;
602467 }
603468
604 if(strlen(msg) == 0 || !strcmp(msg, global->player[pslot].name) ) {
469 if (strlen(msg) == 0 || !strcmp(msg, my_player->name)) {
605470
606471 sendstr = g_strdup_printf("pong\n");
607 client_send(global->game_connectid, sendstr, strlen(sendstr));
472 client_send(global->game_connect, sendstr);
608473 g_free(sendstr);
609474 }
610475 }
615480 void parse_specific_send_message(gchar *message) {
616481
617482 gchar *msg, *tmp;
618 gint32 i, playerid, pslot;
483 gint32 i;
619484
620485 struct timeval tv;
621486 struct tm *local_tm;
636501 }
637502
638503 if(strlen(msg) == 0) {
639
640 for(i = 0 ; i < MAX_PLAYERS ; i++) {
641
642 if(! global->player[i].playerid) continue;
643 if (global->player[i].spectator) continue;
644 if(global->player[i].game != currentgame->gameid) continue;
645
646 tmp = g_strdup_printf("<%s> %d", global->player[i].name, game_get_assets_player(global->player[i].playerid) );
647 text_insert_message(tmp, strlen(tmp) );
504 player *p;
505 for (p = player_h; p; p = p->next) {
506 if (p->spectator) continue;
507 if (p->game != currentgame->gameid) continue;
508
509 tmp = g_strdup_printf("<%s> %d", p->name, game_get_assets_player(p->playerid) );
510 text_insert_chat(tmp, strlen(tmp) );
648511 g_free(tmp);
649512 }
650513 }
651514
652 if( (playerid = get_playerid_by_playername(msg)) > 0) {
653
654 pslot = get_player_slot_with_playerid(playerid);
655
656 tmp = g_strdup_printf("<%s> %d", global->player[pslot].name, game_get_assets_player(global->player[pslot].playerid) );
657 text_insert_message(tmp, strlen(tmp) );
515 player *p;
516 if ((p = player_from_name(msg))) {
517 tmp = g_strdup_printf("<%s> %d", p->name, game_get_assets_player(p->playerid) );
518 text_insert_chat(tmp, strlen(tmp));
658519 g_free(tmp);
659520 }
660521 }
669530 else msg++;
670531 }
671532
672 if(strlen(msg) != 0 && strcmp(global->player[ get_player_slot_with_playerid(global->my_playerid) ].name, msg) ) {
533 if (strlen(msg) != 0 && strcmp(player_from_id(global->my_playerid)->name, msg)) {
673534
674535 tmp = g_strdup_printf(".n%s\n", msg);
675 client_send(global->game_connectid, tmp, strlen(tmp));
536 client_send(global->game_connect, tmp);
676537 g_free(tmp);
677538 }
678539 }
694555 break;
695556 }
696557 }
697 text_insert_message(tmp, strlen(tmp) );
558 text_insert_chat(tmp, strlen(tmp) );
698559 g_free(tmp);
699560 }
700561
711572 local_tm = gmtime(&t_now);
712573
713574 tmp = g_strdup_printf("%.2d:%.2d:%.2d", local_tm->tm_hour, local_tm->tm_min, local_tm->tm_sec);
714 text_insert_message(tmp, strlen(tmp) );
575 text_insert_chat(tmp, strlen(tmp) );
715576 g_free(tmp);
716577 }
717578
727588 if(strlen(msg) != 0) {
728589
729590 tmp = g_strdup_printf("[ACTION] %s\n", msg);
730 client_send(global->game_connectid, tmp, strlen(tmp));
591 client_send(global->game_connect, tmp);
731592 g_free(tmp);
732593 }
733594 }
734595 }
735596
736597
737 /* sort playerlist by playerid (ascending) */ /* FIXME: remove that */
738 void game_sort_playerlist_by_playerid() {
739
740 gint32 i, j;
741 _player playertmp;
742
743 for(i = 0 ; i < MAX_PLAYERS ; i++) {
744
745 if(! global->player[i].playerid) continue;
746
747 for(j = i+1 ; j < MAX_PLAYERS ; j++) {
748
749 if(! global->player[j].playerid) continue;
750
751 if(global->player[j].playerid < global->player[i].playerid) {
752
753 memcpy(&playertmp, &(global->player[i]), sizeof(_player) );
754 memcpy(&(global->player[i]), &(global->player[j]), sizeof(_player) );
755 memcpy(&(global->player[j]), &playertmp, sizeof(_player) );
756 }
757 }
758 }
598 /* sort playerlist by playerid (ascending) */
599 void game_sort_playerlist_by_playerid(void) {
600 player *sorted_h = NULL;
601 while (player_h) {
602 player **pp, *p, **spp, *sp;
603 for (pp = &player_h, sp = *pp, spp = pp; (p = *pp); pp = &p->next) {
604 if (sp->playerid < p->playerid) {
605 sp = p;
606 spp = pp;
607 }
608 }
609 *spp = sp->next; /* remove from list */
610 sp->next = sorted_h;
611 sorted_h = sp;
612 }
613 player_h = sorted_h;
614 }
615
616
617 /* sort playerlist by turnorder (ascending) */
618 void game_sort_playerlist_by_turnorder(void) {
619 player *sorted_h = NULL;
620 while (player_h) {
621 player **pp, *p, **spp, *sp;
622 for (pp = &player_h, sp = *pp, spp = pp; (p = *pp); pp = &p->next) {
623 if (sp->turnorder < p->turnorder) {
624 sp = p;
625 spp = pp;
626 }
627 }
628 *spp = sp->next; /* remove from list */
629 sp->next = sorted_h;
630 sorted_h = sp;
631 }
632 player_h = sorted_h;
759633 }
760634
761635
762636 void game_switch_status() {
763637 guint32 i;
638
639 client_disconnect(global->customserver_connect);
640 client_disconnect(global->metaserver_connect);
764641
765642 switch (currentgame->status) {
766643 case GAME_STATUS_CONFIG:
768645 break;
769646
770647 case GAME_STATUS_INIT:
648 interface_create_gameinitpage();
649 if (game_load_pngs()) exit(-1);
650 break;
651
652 case GAME_STATUS_RUN:
653 if (game_load_pngs()) exit(-1);
654 interface_create_gameboardpage();
771655 game_write_cookie();
772 interface_create_gameinitpage();
773 if( game_load_pngs() ) exit(-1);
774656 break;
775
776 case GAME_STATUS_RUN:
777 interface_create_gameboardpage();
778 break;
779657
780658 case GAME_STATUS_END:
781 /* remove all commands */
782 if(currentgame->CommandsBox) gtk_widget_destroy(currentgame->CommandsBox);
783 currentgame->CommandsBox = NULL;
784
659 game_delete_cookie();
660 if (currentgame->timeout_token) {
661 g_source_remove(currentgame->timeout_token);
662 currentgame->timeout_token = 0;
663 }
785664 /* destroy all open trades */
786665 for(i = 0 ; i < MAX_TRADES ; i++) {
787666 trade_destroy_slot(i);
800679 gchar *filename, *errormsg;
801680 FILE *file;
802681
803 filename = g_strconcat(global->path_home, "cookie", NULL);
682 if (!global->path_home) {
683 return;
684 }
685
686 filename = g_strconcat(global->path_home, "/cookie", NULL);
804687
805688 file = fopen(filename, "wt");
806 if(!file) {
807 errormsg = g_strdup_printf("[ERROR] Can't write cookie file at \"%s\"", filename);
808 text_insert_message(errormsg, strlen(errormsg));
689 if (!file) {
690 errormsg = g_strdup_printf("Can't write cookie file at \"%s\"", filename);
691 interface_set_infolabel(errormsg, "b00000", false);
809692 g_free(errormsg);
810693 g_free(filename);
811694 return;
812695 }
813696
814 fprintf(file, "%s\n", connection[ global->game_connectid ]->host);
815 fprintf(file, "%d\n", connection[ global->game_connectid ]->port);
816 fprintf(file, "%s\n", global->cookie);
697 fprintf(file, "%s\n%d\n%s\n",
698 global->game_connect->host,
699 global->game_connect->port,
700 global->cookie);
817701
818702 g_free(filename);
819703 fclose(file);
820704 }
821705
822706
707 void game_delete_cookie(void) {
708 if (!global->path_home) {
709 return;
710 }
711
712 gchar *filename = g_strconcat(global->path_home, "/cookie", NULL);
713 unlink(filename);
714 g_free(filename);
715 }
716
717
718 gboolean game_cookie_available(void) {
719 struct stat st;
720 int r;
721
722 if (!global->path_home) {
723 return false;
724 }
725
726 gchar *filename = g_strconcat(global->path_home, "/cookie", NULL);
727 r = stat(filename, &st);
728 g_free(filename);
729
730 return (r == 0);
731 }
732
733
823734 /* return a valid card slotid */
824735 gboolean game_get_valid_card_slot(gint32 *cardslot) {
825736
854765 }
855766
856767
857 /* return player identifier by name of this player */
858 gint32 get_playerid_by_playername(gchar *name) {
859
860 gint32 i;
861
862 if(!name) return(-1);
863 if(strlen(name) <= 0) return(-1);
864
865 for(i = 0 ; i < MAX_PLAYERS ; i++) {
866
867 if(! global->player[i].playerid) continue;
868 if(!global->player[i].name) continue;
869
870 if(! strcmp(global->player[i].name, name) ) {
871
872 return( global->player[i].playerid );
873 break;
874 }
875 }
876
877 return(-1);
878 }
879
880
881768 gint32 game_nb_players() {
882 gint32 i, c = 0;
883
884 for(i = 0 ; i < MAX_PLAYERS ; i++) {
885
886 if(!global->player[i].playerid) continue;
887 if (global->player[i].spectator) continue;
888 if(global->player[i].game != currentgame->gameid) continue;
769 gint32 c = 0;
770 player *p;
771
772 for (p = player_h; p; p = p->next) {
773 if (p->spectator) continue;
774 if (p->game != currentgame->gameid) continue;
889775 c++;
890776 }
891777 return c;
953839 return;
954840 }
955841
956 if (currentgame->status < GAME_STATUS_RUN) {
957 game_sort_playerlist_by_playerid();
842 if (global->my_playerid == currentgame->master) {
843 GtkWidget *MenuItem = g_object_get_data(G_OBJECT(global->Menu), "upgrade_spectator");
844 gtk_widget_destroy(gtk_menu_item_get_submenu(GTK_MENU_ITEM(MenuItem)));
845 GtkWidget *SubMenu = gtk_menu_new();
846 gtk_menu_item_set_submenu(GTK_MENU_ITEM(MenuItem), SubMenu);
847
848 gtk_widget_set_sensitive(MenuItem, FALSE);
849 player *p;
850 for (p = player_h; p; p = p->next) {
851 if (!p->spectator) continue;
852 if (p->game != currentgame->gameid) continue;
853
854 GtkWidget *item = gtk_menu_item_new_with_label(p->name);
855 g_object_set_data(G_OBJECT(item), "player", p);
856 g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(CallBack_menu_AddPlayer), NULL);
857 gtk_menu_shell_append(GTK_MENU_SHELL(SubMenu), item);
858 gtk_widget_set_sensitive(MenuItem, TRUE);
859 }
860 gtk_widget_show_all(SubMenu);
958861 }
959862
960863 /* build player list */
961864 if (global->phase == PHASE_GAMECREATE) {
962865 GtkListStore *store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(currentgame->PlayerList)));
963866 GtkTreeIter iter;
964 gint32 i;
867 player *p;
965868
966869 gtk_list_store_clear(store);
967
968 for(i = 0 ; i < MAX_PLAYERS ; i++) {
969 if (! global->player[i].playerid) continue;
970 if (global->player[i].spectator) continue;
971 if (global->player[i].game != currentgame->gameid) continue;
972
870 game_sort_playerlist_by_playerid();
871
872 for (p = player_h; p; p = p->next) {
873 if (p->spectator) continue;
874 if (p->game != currentgame->gameid) continue;
875
973876 gtk_list_store_append(store, &iter);
974877 gtk_list_store_set(store, &iter,
975 PLAYERLIST_COLUMN_NAME, global->player[i].name,
976 PLAYERLIST_COLUMN_HOST, global->player[i].host,
977 -1);
878 PLAYERLIST_COLUMN_NAME, p->name,
879 PLAYERLIST_COLUMN_HOST, p->host,
880 -1);
978881 }
979882 }
980883 }
984887 * assets is: money + sale price of houses + unmortgaged value of estates
985888 */
986889 gint32 game_get_assets_player(gint32 playerid) {
987
988 gint32 i, pslot, assets;
989
990 pslot = get_player_slot_with_playerid( playerid );
991 if(pslot < 0) return 0;
890 gint32 i, assets;
891
892 player *p = player_from_id(playerid);
893 if (p == NULL) return 0;
992894
993895 /* money */
994 assets = global->player[pslot].money;
896 assets = p->money;
995897
996898 /* estates + houses */
997 for(i = 0 ; i < data->number_estates ; i++) {
998
999 if(currentgame->estate[i].owner != playerid) continue;
899 for (i = 0; i < data->number_estates; i++) {
900
901 if (currentgame->estate[i].owner != playerid) continue;
1000902
1001903 /* estates */
1002 if(! currentgame->estate[i].mortgaged)
904 if (!currentgame->estate[i].mortgaged)
1003905 assets += currentgame->estate[i].mortgageprice;
1004906
1005907 /* houses */
1006 if(currentgame->estate[i].houses <= 0) continue;
908 if (currentgame->estate[i].houses <= 0) continue;
1007909
1008910 assets += currentgame->estate[i].houses * currentgame->estate[i].sellhouseprice;
1009911 }
1015917 /* update token position, handle superposed token */
1016918 void game_update_tokens() {
1017919
1018 gint32 i, j, nb_tokens, x1, y1, x2, y2, xs, ys, xp, yp, pp, k;
920 gint32 i, nb_tokens, x1, y1, x2, y2, xs, ys, xp, yp, k;
921 player *p, *pp;
1019922
1020923
1021924 /* === UNJAILED === */
1022925
1023 for(i = 0 ; i < data->number_estates ; i++) {
926 for (i = 0; i < data->number_estates; i++) {
1024927
1025928 /* search number of unjailed tokens on this estate */
1026 for(j = 0, nb_tokens = 0 ; j < MAX_PLAYERS ; j++) {
1027
1028 if(! global->player[j].playerid) continue;
1029 if(global->player[j].spectator) continue;
1030 if(global->player[j].game != currentgame->gameid) continue;
1031 if(global->player[j].bankrupt) continue;
1032 if(global->player[j].jailed) continue;
1033 if(global->player[j].location != i) continue;
929 for (nb_tokens = 0, p = player_h; p; p = p->next) {
930 if (p->spectator) continue;
931 if (p->game != currentgame->gameid) continue;
932 if (p->bankrupt) continue;
933 if (p->jailed) continue;
934 if (p->location != i) continue;
1034935
1035936 nb_tokens++;
1036937 }
1037938
1038939 /* move token */
1039 if(nb_tokens == 0) continue;
1040
1041 for(j = 0, k = 0, xp = -1, yp = -1, pp = -1 ; j < MAX_PLAYERS ; j++) {
1042
1043 if(! global->player[j].playerid) continue;
1044 if(global->player[j].spectator) continue;
1045 if(global->player[j].game != currentgame->gameid) continue;
1046 if(global->player[j].bankrupt) continue;
1047 if(global->player[j].jailed) continue;
1048 if(global->player[j].location != i) continue;
1049
1050 x1 = data->estate[ global->player[j].location ].x1token;
1051 x2 = data->estate[ global->player[j].location ].x2token;
1052 y1 = data->estate[ global->player[j].location ].y1token;
1053 y2 = data->estate[ global->player[j].location ].y2token;
940 if (nb_tokens == 0) continue;
941
942 for (k = 0, xp = -1, yp = -1, pp = NULL, p = player_h; p; p = p->next) {
943 if (p->spectator) continue;
944 if (p->game != currentgame->gameid) continue;
945 if (p->bankrupt) continue;
946 if (p->jailed) continue;
947 if (p->location != i) continue;
948
949 x1 = data->estate[p->location].x1token;
950 x2 = data->estate[p->location].x2token;
951 y1 = data->estate[p->location].y1token;
952 y2 = data->estate[p->location].y2token;
1054953
1055954 if(nb_tokens == 1) {
1056955
1057 eng_pic_set_x(global->player[j].token_pic, x1);
1058 eng_pic_set_y(global->player[j].token_pic, y1);
956 eng_pic_set_x(p->token_pic, x1);
957 eng_pic_set_y(p->token_pic, y1);
1059958
1060959 break;
1061960 }
1062961
1063962 xs = ( ( (x2 - x1) * k) / (nb_tokens -1) ) + x1;
1064 if(pp >= 0 && abs(xs - xp) > (data->pngfile_token_width[ global->player[pp].buffer_token ] + 2) ) {
963 if(pp && abs(xs - xp) > (data->pngfile_token_width[pp->tokenid] + 2) ) {
1065964
1066965 if(xs - xp > 0)
1067 xs = xp + data->pngfile_token_width[ global->player[pp].buffer_token ] + 2;
966 xs = xp + data->pngfile_token_width[pp->tokenid] + 2;
1068967 else
1069 xs = xp - data->pngfile_token_width[ global->player[pp].buffer_token ] - 2;
968 xs = xp - data->pngfile_token_width[pp->tokenid] - 2;
1070969 }
1071970
1072971 ys = ( ( (y2 - y1) * k) / (nb_tokens -1) ) + y1;
1073 if(pp >= 0 && abs(ys - yp) > (data->pngfile_token_height[ global->player[pp].buffer_token ] + 2) ) {
972 if(pp && abs(ys - yp) > (data->pngfile_token_height[pp->tokenid] + 2) ) {
1074973
1075974 if(ys - yp > 0)
1076 ys = yp + data->pngfile_token_height[ global->player[pp].buffer_token ] + 2;
975 ys = yp + data->pngfile_token_height[pp->tokenid] + 2;
1077976 else
1078 ys = yp - data->pngfile_token_height[ global->player[pp].buffer_token ] - 2;
1079 }
1080
1081 eng_pic_set_x(global->player[j].token_pic, xs);
1082 eng_pic_set_y(global->player[j].token_pic, ys);
977 ys = yp - data->pngfile_token_height[pp->tokenid] - 2;
978 }
979
980 eng_pic_set_x(p->token_pic, xs);
981 eng_pic_set_y(p->token_pic, ys);
1083982
1084983 xp = xs;
1085984 yp = ys;
1086 pp = j;
985 pp = p;
1087986
1088987 k++;
1089988 }
1092991
1093992 /* === JAILED === */
1094993
1095 for(i = 0 ; i < data->number_estates ; i++) {
994 for (i = 0; i < data->number_estates; i++) {
1096995
1097996 /* search number of jailed tokens on this estate */
1098 for(j = 0, nb_tokens = 0 ; j < MAX_PLAYERS ; j++) {
1099
1100 if(! global->player[j].playerid) continue;
1101 if(global->player[j].spectator) continue;
1102 if(global->player[j].game != currentgame->gameid) continue;
1103 if(global->player[j].bankrupt) continue;
1104 if(! global->player[j].jailed) continue;
1105 if(global->player[j].location != i) continue;
997 for (nb_tokens = 0, p = player_h; p; p = p->next) {
998 if (p->spectator) continue;
999 if (p->game != currentgame->gameid) continue;
1000 if (p->bankrupt) continue;
1001 if (!p->jailed) continue;
1002 if (p->location != i) continue;
11061003
11071004 nb_tokens++;
11081005 }
11091006
11101007 /* move token */
1111 if(nb_tokens == 0) continue;
1112
1113 for(j = 0, k = 0, xp = -1, yp = -1, pp = -1 ; j < MAX_PLAYERS ; j++) {
1114
1115 if(! global->player[j].playerid) continue;
1116 if(global->player[j].spectator) continue;
1117 if(global->player[j].game != currentgame->gameid) continue;
1118 if(global->player[j].bankrupt) continue;
1119 if(! global->player[j].jailed) continue;
1120 if(global->player[j].location != i) continue;
1121
1122 x1 = data->estate[ global->player[j].location ].x1jail;
1123 x2 = data->estate[ global->player[j].location ].x2jail;
1124 y1 = data->estate[ global->player[j].location ].y1jail;
1125 y2 = data->estate[ global->player[j].location ].y2jail;
1008 if (nb_tokens == 0) continue;
1009
1010 for (k = 0, xp = -1, yp = -1, pp = NULL, p = player_h; p; p = p->next) {
1011 if (p->spectator) continue;
1012 if (p->game != currentgame->gameid) continue;
1013 if (p->bankrupt) continue;
1014 if (!p->jailed) continue;
1015 if (p->location != i) continue;
1016
1017 x1 = data->estate[p->location].x1jail;
1018 x2 = data->estate[p->location].x2jail;
1019 y1 = data->estate[p->location].y1jail;
1020 y2 = data->estate[p->location].y2jail;
11261021
11271022 if(nb_tokens == 1) {
11281023
1129 eng_pic_set_x(global->player[j].token_pic, x1);
1130 eng_pic_set_y(global->player[j].token_pic, y1);
1024 eng_pic_set_x(p->token_pic, x1);
1025 eng_pic_set_y(p->token_pic, y1);
11311026
11321027 break;
11331028 }
11341029
11351030 xs = ( ( (x2 - x1) * k) / (nb_tokens -1) ) + x1;
1136 if(pp >= 0 && abs(xs - xp) > (data->pngfile_token_width[ global->player[pp].buffer_token ] + 2) ) {
1031 if(pp && abs(xs - xp) > (data->pngfile_token_width[pp->tokenid] + 2) ) {
11371032
11381033 if(xs - xp > 0)
1139 xs = xp + data->pngfile_token_width[ global->player[pp].buffer_token ] + 2;
1034 xs = xp + data->pngfile_token_width[pp->tokenid] + 2;
11401035 else
1141 xs = xp - data->pngfile_token_width[ global->player[pp].buffer_token ] - 2;
1036 xs = xp - data->pngfile_token_width[pp->tokenid] - 2;
11421037 }
11431038
11441039 ys = ( ( (y2 - y1) * k) / (nb_tokens -1) ) + y1;
1145 if(pp >= 0 && abs(ys - yp) > (data->pngfile_token_height[ global->player[pp].buffer_token ] + 2) ) {
1040 if(pp && abs(ys - yp) > (data->pngfile_token_height[pp->tokenid] + 2) ) {
11461041
11471042 if(ys - yp > 0)
1148 ys = yp + data->pngfile_token_height[ global->player[pp].buffer_token ] + 2;
1043 ys = yp + data->pngfile_token_height[pp->tokenid] + 2;
11491044 else
1150 ys = yp - data->pngfile_token_height[ global->player[pp].buffer_token ] - 2;
1151 }
1152
1153 eng_pic_set_x(global->player[j].token_pic, xs);
1154 eng_pic_set_y(global->player[j].token_pic, ys);
1045 ys = yp - data->pngfile_token_height[pp->tokenid] - 2;
1046 }
1047
1048 eng_pic_set_x(p->token_pic, xs);
1049 eng_pic_set_y(p->token_pic, ys);
11551050
11561051 xp = xs;
11571052 yp = ys;
1158 pp = j;
1053 pp = p;
11591054
11601055 k++;
11611056 }
11691064 void game_initiate_token_movement() {
11701065
11711066 if (global->phase != PHASE_GAMEPLAY) {
1067 return;
1068 }
1069 if (currentgame->status != GAME_STATUS_RUN) {
11721070 return;
11731071 }
11741072
11771075 return;
11781076 }
11791077
1180 game_move_tokens();
1078 game_move_tokens(NULL);
11811079 }
11821080
11831081
11841082 /* animate token movement */
1185 gboolean game_move_tokens() {
1186
1187 gint32 i;
1083 gboolean game_move_tokens(gpointer ptr) {
11881084 gchar *sendstr;
11891085 gboolean update = FALSE, more = FALSE;
1190
1191 for (i = 0 ; i < MAX_PLAYERS ; i++) {
1192
1193 if (! global->player[i].playerid) continue;
1194 if (global->player[i].spectator) continue;
1195 if (global->player[i].game != currentgame->gameid) continue;
1196
1197 if (global->player[i].directmove) {
1198 global->player[i].location = global->player[i].location_to;
1199 global->player[i].directmove = 0;
1200 } else if (global->player[i].location != global->player[i].location_to) {
1201 global->player[i].location++;
1202 if (global->player[i].location >= data->number_estates) {
1203 global->player[i].location = 0;
1204 }
1205 if (global->player[i].location != global->player[i].location_to) {
1086 player *p;
1087 (void)ptr;
1088
1089 for (p = player_h; p; p = p->next) {
1090 if (p->spectator) continue;
1091 if (p->game != currentgame->gameid) continue;
1092
1093 if (p->directmove) {
1094 p->location = p->location_to;
1095 p->directmove = 0;
1096 } else if (p->location != p->location_to) {
1097 p->location++;
1098 if (p->location >= data->number_estates) {
1099 p->location = 0;
1100 }
1101 if (p->location != p->location_to) {
12061102 more = TRUE;
12071103 }
12081104 } else {
12091105 continue;
12101106 }
12111107
1212 sendstr = g_strdup_printf(".t%d\n", global->player[i].location);
1213 client_send(global->game_connectid, sendstr, strlen(sendstr));
1108 sendstr = g_strdup_printf(".t%d\n", p->location);
1109 client_send(global->game_connect, sendstr);
12141110 g_free(sendstr);
12151111
12161112 update = TRUE;
12321128 }
12331129
12341130
1235 void game_free_player(gint32 id) {
1236
1237 /* delete a player */
1238 eng_frame_destroy( global->player[id].playerlist_token_frame );
1239 eng_frame_destroy( global->player[id].playerlist_cards_frame );
1240
1241 if(global->player[id].name) g_free(global->player[id].name);
1242 if(global->player[id].host) g_free(global->player[id].host);
1243 if(global->player[id].image) g_free(global->player[id].image);
1244
1245 memset(&(global->player[id]), 0, sizeof(_player) );
1246 }
1131 void game_free_player(player *p) {
1132 player **prevp, *pl;
1133
1134 for (prevp = &player_h; (pl = *prevp); prevp = &pl->next) {
1135 if (pl != p) {
1136 continue;
1137 }
1138
1139 *prevp = p->next;
1140
1141 /* delete a player */
1142 eng_frame_destroy(p->playerlist_token_frame);
1143 eng_frame_destroy(p->playerlist_cards_frame);
1144
1145 if (p->name) g_free(p->name);
1146 if (p->host) g_free(p->host);
1147 if (p->image) g_free(p->image);
1148
1149 printf("Deleted player: %d\n", p->playerid);
1150 g_free(p);
1151 return;
1152 }
1153 }
1154
1155 void game_exit(void) {
1156
1157 if (global->phase >= PHASE_GAMECREATE) {
1158 client_send(global->game_connect, ".gx\n");
1159 }
1160
1161 game_delete_cookie();
1162 game_free_pngs();
1163 }
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
20
21 #ifndef GAME_H
22 #define GAME_H
2023
2124 #include "global.h"
2225
23 gboolean create_home_directory();
26 void create_home_directory(void);
2427 void read_config_files();
25 gboolean connect_get_valid_id(gint32 *idconnect);
26 void create_connection_metaserver(gint32 gametype);
28 void create_connection_metaserver(void);
2729 void create_connection_get_games(gchar *host, gint32 port);
28 void text_insert_message(gchar* text, gint32 lenght);
2930 void text_insert_chat(gchar* text, gint32 lenght);
3031 game *game_new(gint32 id);
3132 void game_free(gint32 id);
3233 game *game_find(gint32 id);
3334 void game_quit();
34 gint32 game_new_player_slot(gint32 playerid);
35 gint32 get_player_slot_with_playerid(gint32 playerid);
35 player *game_new_player(guint32 id);
36 player *player_from_id(gint32 playerid);
37 player *player_from_name(gchar *name);
3638 gint32 get_playerlistcard_id_with_estate(gint32 estate);
3739 gboolean game_get_valid_command_slot(gint32 *commandslot);
3840 gint32 get_command_button_slot_with_command(gchar *command);
3941 void parse_specific_chat_message(gchar *message);
4042 void parse_specific_send_message(gchar *message);
41 void game_sort_playerlist_by_playerid();
43 void game_sort_playerlist_by_playerid(void);
44 void game_sort_playerlist_by_turnorder(void);
4245 void game_switch_status();
4346 void game_write_cookie();
47 void game_delete_cookie(void);
48 gboolean game_cookie_available(void);
4449 gboolean game_get_valid_card_slot(gint32 *cardslot);
4550 gint32 get_card_slot_with_cardid(gint32 cardid);
46 gint32 get_playerid_by_playername(gchar *name);
4751 gint32 game_nb_players();
4852 gboolean game_get_valid_trade_slot(gint32 *tradeslot);
4953 gint32 get_trade_slot_with_tradeid(gint32 tradeid);
5256 gint32 game_get_assets_player(gint32 playerid);
5357 void game_update_tokens();
5458 void game_initiate_token_movement();
55 gboolean game_move_tokens();
56 void game_free_player(gint32 id);
59 gboolean game_move_tokens(gpointer data);
60 void game_free_player(player *p);
61 void game_exit(void);
62
63 #endif /* GAME_H */
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
2020
2121 #ifndef GLOBAL_H
2222 #define GLOBAL_H
2323
2424 /* ** contain global variables */
25
2625 #include <gtk/gtk.h>
2726 #include <time.h>
2827 #include <sys/time.h>
3433 #else
3534 #include <winsock2.h>
3635 typedef SOCKET socket_t;
36 #undef PACKAGE_DATA_DIR
37 #define PACKAGE_DATA_DIR "./data"
3738 #endif
3839
3940 /* -- hierarchy
4041 *
41 * connection[] > connections status
4242 * player[] > player game data
4343 * game[] > game data
4444 * |-> estate[] > estate game data
5151 * |-> playerlist_card[] > interface playerlist cards data (tablepos, sizes, ...)
5252 * `-> theme[] > themes database
5353 * global > main data
54 * `-> connection > connections status
5455 * config > config data
5556 */
5657
5758 /* -- game data */
5859 #define MAX_ESTATES 50
5960 #define MAX_GROUPS 50
60 #define MAX_PLAYERS 400
6161 #define MAX_CARDS 16
6262 #define MAX_TRADES 64
6363 #define MAX_COMMANDS 20
64 #define MAX_LENGTH_NICK 16
6564 #define MAX_PLAYERLIST_CARDS 30
6665
6766 /* -- player data */
6968 #define PLAYER_ACTION_VERSION 1
7069 #define PLAYER_ACTION_DATE 2
7170 #define PLAYER_ACTION_PING 3
72 typedef struct {
71 struct player_ {
72 struct player_ *next;
7373
7474 guint32 playerid;
7575 gint32 game;
7676 gchar *image;
7777 gchar *name;
7878 gchar *host;
79 gboolean master;
8079 gint32 money;
8180 guint16 location;
8281 gboolean jailed;
8685 gboolean can_roll;
8786 gboolean can_buyestate;
8887 gboolean spectator;
88 gint32 turnorder;
8989
9090 guint16 location_to;
9191
9292 /* playerlist */
93 GtkWidget *playerlist_AlignementNamePlayer;
93 GtkWidget *playerlist_box;
94
9495 GtkWidget *playerlist_LabelNamePlayer;
95 GtkWidget *playerlist_AlignementMoneyPlayer;
9696 GtkWidget *playerlist_LabelMoneyPlayer;
9797
9898 GtkWidget *playerlist_cards_gdkrgb;
104104 eng_obj *playerlist_token_pic;
105105
106106 /* board */
107 guint32 buffer_token;
108 guint32 buffer_star;
107 gint32 tokenid;
109108 eng_obj *token_pic;
110
111 } _player;
112
109 };
110 typedef struct player_ player;
111
112 player *player_h; /* Player list */
113113
114114 /* -- estate data */
115115 #define ESTATE_ACTION_BUILDHOUSE 0
159159
160160 gint32 cardid;
161161 gint32 owner;
162 gchar *title;
162163
163164 } _card;
164165
165166
166 #define TRADE_PLAYER_PARTICIPATE 0
167 #define TRADE_PLAYER_ACCEPT 1
167 #define TRADE_MAX_PLAYER 9
168168
169169 #define TRADE_ACTION_REJECT 0
170170 #define TRADE_ACTION_ACCEPT 1
192192 TRADEPLAYERLIST_COLUMN_NUM
193193 };
194194 /* -- trade data */
195 struct trade_player_ {
196 player *player;
197 gboolean accept;
198 };
199 typedef struct trade_player_ trade_player;
200
195201 typedef struct {
196202
197203 gboolean open;
198204
199205 gint32 tradeid;
200206 gint32 revision;
201 gboolean player[MAX_PLAYERS][2];
207 trade_player player[TRADE_MAX_PLAYER];
202208 guint8 current_component;
203209
204210 GtkWidget *TradeWin;
240246 PLAYERLIST_COLUMN_HOST,
241247 PLAYERLIST_COLUMN_NUM
242248 };
243
244 typedef struct game_s game;
245 struct game_s {
246 game *next;
249 enum {
250 AUCTIONPLAYERLIST_COLUMN_NAME,
251 AUCTIONPLAYERLIST_COLUMN_BID,
252 AUCTIONPLAYERLIST_COLUMN_PLAYERID,
253 AUCTIONPLAYERLIST_WEIGHT,
254 AUCTIONPLAYERLIST_WEIGHTSET,
255 AUCTIONPLAYERLIST_COLUMN_NUM
256 };
257
258 struct game_ {
259 struct game_ *next;
247260
248261 guint8 status;
249262 gint32 gameid;
260273
261274 GtkWidget *PlayerList;
262275
263 GtkWidget *BoxMessageAndChat;
264 gboolean chat_float, message_float; // 0 = fixed, 1 = float
265 GtkWidget *ChatFrame, *ChatWindow, *ChatBox, *Chat;
266 guint32 chat_nb_lines;
276 GtkWidget *ChatBox, *Chat;
267277
268278 GtkWidget *GameConfigBox;
269 GtkWidget *CommandsBox;
270279 GtkWidget *BoardCenter;
271280 GtkWidget *WinEstateTree;
272281
273282 guint32 timeout_token;
274283
275284 };
285 typedef struct game_ game;
276286
277287 game *currentgame; /* Currently played game entry */
278288 game *game_h; /* Game list */
279289
280290
281291 /* -- connect data */
282 #define MAX_CONNECTION 128
283292 #define CONNECT_TYPE_MONOPD_GETGAME 1
284293 #define CONNECT_TYPE_MONOPD_GAME 2
285 #define CONNECT_TYPE_META_GETLIST 3
286 #define CONNECT_TYPE_META_GETGAME 4
287 typedef struct {
288
289 // connection setting
290 guint8 type; // type of connection
291 gboolean connected;
294 #define CONNECT_TYPE_METASERVER 3
295 struct connection_ {
296 #if DEBUG
297 guint32 id;
298 #endif /* DEBUG */
299
300 guint8 type;
292301
293302 gchar *host;
303 gchar *ip;
294304 gint32 port;
295305 socket_t socket;
296306 GIOChannel *channel;
299309 gchar *server_version;
300310
301311 gchar *buffer_in;
302
303 } _connect;
304
305 gboolean connection_is_open[MAX_CONNECTION];
306 _connect *connection[MAX_CONNECTION];
307
312 gchar *buffer_out;
313
314 };
315 typedef struct connection_ connection;
308316
309317
310318 /* interface card */
375383
376384
377385 /* interface / pngfiles */
386 #define MAX_PLAYERS 20
378387 #define MAX_COMMANDS 20
379388 #define MAX_HOUSES 10
380389 #define MAX_THEMES 256
381390 typedef struct {
382
383 /* pngfile logo */
384 gchar *pngfile_logo_filename;
385 guint8 *pngfile_logo_buf;
386391
387392 /* pngfile board */
388393 gchar *pngfile_board_filename;
437442 gboolean png_game_loaded;
438443
439444
440 /* interface logo */
441 guint16 logo_width, logo_height;
442
443445 /* interface estate */
444446 guint16 board_height, board_width;
445447 guint16 board_center_x, board_center_y, board_center_width, board_center_height;
448450
449451 /* interface playerlist token */
450452 guint16 playerlist_token_width, playerlist_token_height;
453 guint8 token_max;
451454
452455 /* interface playerlist cards */
453456 guint16 playerlist_cards_width, playerlist_cards_height;
466469
467470
468471 /* -- main data */
469 #define PHASE_LOGO 1
470 #define PHASE_GETGAMES 2
471 #define PHASE_GAMECREATE 3
472 #define PHASE_GAMEINIT 4
473 #define PHASE_GAMEPLAY 5
472 #define PHASE_GETGAMES 1
473 #define PHASE_GAMECREATE 2
474 #define PHASE_GAMEINIT 3
475 #define PHASE_GAMEPLAY 4
474476 enum {
475477 GAMELIST_COLUMN_HOST,
476478 GAMELIST_COLUMN_VERSION,
477479 GAMELIST_COLUMN_GAME,
478 GAMELIST_COLUMN_DESCRIPTION,
480 GAMELIST_COLUMN_STATUS,
479481 GAMELIST_COLUMN_PLAYERS,
480482 GAMELIST_COLUMN_PORT,
481483 GAMELIST_COLUMN_GAMETYPE,
482 GAMELIST_COLUMN_ID,
484 GAMELIST_COLUMN_GAMEID,
485 GAMELIST_COLUMN_SERVERID,
486 GAMELIST_COLUMN_CANBEJOINED,
487 GAMELIST_COLUMN_CANBEWATCHED,
488 GAMELIST_COLUMN_BGCOLOR,
483489 GAMELIST_COLUMN_SOURCE,
484490 GAMELIST_COLUMN_NUM
485491 };
492498 SERVERLIST_COLUMN_PORT,
493499 SERVERLIST_COLUMN_VERSION,
494500 SERVERLIST_COLUMN_USERS,
501 SERVERLIST_COLUMN_SERVERID,
495502 SERVERLIST_COLUMN_NUM
496503 };
497504 typedef struct {
502509
503510 GtkWidget *MainWin;
504511 GtkWidget *MainBox;
512 GtkWidget *Menu;
505513 GtkWidget *MainVerticalBox;
506
507 GdkPixbuf *icon_pixbuf;
508
509 guint16 customserver_connectid;
510 guint16 metaserver_connectid;
511
512 GtkWidget *GameList;
513 GtkWidget *ServerList;
514 gchar *selected_host;
515 guint32 selected_port;
516 gchar *selected_gametype;
517 gint32 selected_gameid;
514 GtkWidget *InfoLabel;
515 guint32 timeout_InfoLabel;
516
517 connection *customserver_connect;
518 connection *metaserver_connect;
519 connection *game_connect;
520
521 GtkListStore *game_store;
522 GtkListStore *server_store;
523 GtkTreeIter selected_game;
518524
519525 GtkWidget *ConfigWin;
520526 GtkWidget *HelpWin;
521
522527 GtkWidget *ThemeWin;
523528
524 GtkWidget *Trick; //used for reparent some widgets shouldn't be displayed
525
526 GtkWidget *MessageFrame, *MessageWindow, *MessageBox, *Message;
527 guint32 message_nb_lines;
528
529 _player player[MAX_PLAYERS];
530
531 /* logo */
532 GtkWidget *gdkrgb_logo;
533 eng_frame *logo_frame;
534 eng_obj *logo_pic;
535
536529 gboolean reconnected; /* whether we are reconnecting */
537 guint16 game_connectid;
538530 gint32 my_playerid;
539531 gchar *cookie;
540532 } _global;
543535
544536
545537 /* all configuration */
546 #define METASERVER_HOST "meta.gradator.net"
538 #define METASERVER_HOST "meta.atlanticd.net"
547539 #define METASERVER_PORT 1240
548540
549541 #define GAME_PLAYERLIST_POS_LEFT 0
552544
553545 gchar *nickname;
554546
555 gboolean metaserver_autogetlist;
556 gboolean metaserver_autogetgames;
547 gboolean metaserver_autoconnect;
557548 gboolean metaserver_sendclientversion;
558549
559550 gchar *getgames_host;
560551 guint32 getgames_port;
561 gboolean getgames_autogetgames;
562
563 guint32 message_max_lines;
552 gboolean getgames_autoconnect;
553
564554 guint32 chat_max_lines;
565555
566556 guint8 game_playerlist_position;
+0
-169
src/icon.xpm less more
0 /* XPM */
1 static char * icon_xpm[] = {
2 "32 32 134 2",
3 " c None",
4 ". c #000000",
5 "+ c #92C4FB",
6 "@ c #BD0000",
7 "# c #CCCC00",
8 "$ c #F00000",
9 "% c #FFFF00",
10 "& c #BD6611",
11 "* c #25571B",
12 "= c #F18216",
13 "- c #3B892B",
14 "; c #4F0043",
15 "> c #030666",
16 ", c #010100",
17 "' c #82006E",
18 ") c #060A9A",
19 "! c #959595",
20 "~ c #797979",
21 "{ c #7A7C7E",
22 "] c #85909C",
23 "^ c #93A7BE",
24 "/ c #893C7D",
25 "( c #5E2054",
26 "_ c #92C1F6",
27 ": c #757575",
28 "< c #616161",
29 "[ c #676767",
30 "} c #787878",
31 "| c #858585",
32 "1 c #434343",
33 "2 c #949596",
34 "3 c #9BA2AB",
35 "4 c #9DBFE5",
36 "5 c #A2A2A2",
37 "6 c #7E7E7E",
38 "7 c #313131",
39 "8 c #868686",
40 "9 c #7C7C7C",
41 "0 c #343434",
42 "a c #ACACAC",
43 "b c #BFBFBF",
44 "c c #A6C2E0",
45 "d c #92C3FA",
46 "e c #92BCEB",
47 "f c #93B3D8",
48 "g c #93AAC4",
49 "h c #758392",
50 "i c #8A9FB6",
51 "j c #92BDED",
52 "k c #E1E1E1",
53 "l c #CBCBCB",
54 "m c #D5D5D5",
55 "n c #B0B0B0",
56 "o c #A7A7A7",
57 "p c #969696",
58 "q c #5A5A5A",
59 "r c #3B3B3B",
60 "s c #8F8F8F",
61 "t c #BBBBBB",
62 "u c #C0C0C0",
63 "v c #9FC7F4",
64 "w c #95ABC3",
65 "x c #8E9AA7",
66 "y c #595C5F",
67 "z c #939393",
68 "A c #444444",
69 "B c #949597",
70 "C c #93A6BB",
71 "D c #191B6D",
72 "E c #646464",
73 "F c #555555",
74 "G c #FFFFFF",
75 "H c #F9F9F9",
76 "I c #E2E2E2",
77 "J c #B3B3B3",
78 "K c #B4B4B4",
79 "L c #6A83A7",
80 "M c #879FC4",
81 "N c #EDEDED",
82 "O c #585858",
83 "P c #929292",
84 "Q c #4F4F4F",
85 "R c #636485",
86 "S c #1D206E",
87 "T c #F7F7F7",
88 "U c #F6F6F6",
89 "V c #FEFEFE",
90 "W c #2F2F2F",
91 "X c #8EAFE0",
92 "Y c #D9D9D9",
93 "Z c #A0A0A0",
94 "` c #717171",
95 " . c #292929",
96 ".. c #8A8A8A",
97 "+. c #9A9A9A",
98 "@. c #B5B8BC",
99 "#. c #BEBEBE",
100 "$. c #C3DEFC",
101 "%. c #C3C3C3",
102 "&. c #ABABAB",
103 "*. c #B5B5B5",
104 "=. c #1B1B1B",
105 "-. c #6D7074",
106 ";. c #4A4A4A",
107 ">. c #BDBDBD",
108 ",. c #FCFCFC",
109 "'. c #B9B9B9",
110 "). c #AEAEAE",
111 "!. c #9D9D9D",
112 "~. c #B1B5B8",
113 "{. c #B7B7B7",
114 "]. c #D6D6D6",
115 "^. c #6680A6",
116 "/. c #D2D2D2",
117 "(. c #B6B6B6",
118 "_. c #414141",
119 ":. c #A8A8A8",
120 "<. c #BDC0C3",
121 "[. c #5B5B5B",
122 "}. c #010101",
123 "|. c #737373",
124 "1. c #A3A3A3",
125 "2. c #3E3E3E",
126 "3. c #9E9E9E",
127 "4. c #DBDBDB",
128 "5. c #636363",
129 "6. c #454545",
130 "7. c #484848",
131 "8. c #BCBCBC",
132 "9. c #535353",
133 "0. c #9F9F9F",
134 "a. c #080808",
135 "b. c #999999",
136 "c. c #FBFBFB",
137 " . . . . . . . . . . . . . . . . . . . . . . ",
138 " . + + + @ + + @ + + @ + + # + + # + + # + + + . ",
139 " . + + + + @ + + @ + + @ + + # + + # + + # + + + + . ",
140 " . + + + + @ + + @ + + @ + + # + + # + + # + + + + . ",
141 " . + + + + @ $ $ @ $ $ @ + + # % % # % % # + + + + . ",
142 " . & & & & . @ @ @ @ @ @ . . # # # # # # . * * * * . ",
143 " . + + + = & + + + + + + + + + + + + + + * - + + + . ",
144 " . + + + = & + + + + + + + + + + + + + + * - + + + . ",
145 " . & & & & & + + + + + + + + + + + + + + * * * * * . ",
146 " . + + + = & + + + + + + + + + + + + + + * - + + + . ",
147 " . + + + = & + + + + + + + + + + + + + + * - + + + . ",
148 " . & & & & & + + + + + + + + + + + + + + * * * * * . ",
149 " . + + + + . + + + + + + + + + + + + + + . + + + + . ",
150 " . + + + + . + + + + + + + + + + + + + + . + + + + . ",
151 " . ; ; ; ; ; + + + + + + + + + + + + + + > > > > > . ",
152 " , . + + + ' ; + + + + + + + + + + + + + + > ) + + + . ",
153 " , , ! ~ { ] ^ / ( _ + + + + + + + + + + + + + > ) + + + . ",
154 " , , ! ! : < [ } ! | 1 2 3 4 + + + + + + + + + + + > > > > > . ",
155 ", 5 ! 6 7 8 9 ! ! 0 6 8 a b c + + + d e f g h i j + > ) + + + . ",
156 ", k l m n o p q r s 5 t u u c v w x y z ! ! A : B C D ) + + + . ",
157 ", E F G G G H I l J K u u u L M N o O P ! ! ! ! ! Q < R S > > . ",
158 ", T U G G G G G V ! W u u u L X G G Y Z ` .! ! p ..+.o @.+ + . ",
159 ", G G G G G G G V u #.u u u L $.G G G H %.+.&.*.#.u u =.-.+ + . ",
160 ", G G G ;.s G G V u u u >...L $.G G G G ,.'.Q ).u u u !.~.+ + . ",
161 ", G G G {.].G G V u u u ).0 ^.$.G /.(.G ,.(._.:.u u u u <.+ . ",
162 ", G G G G G G G V u u u t [.}.|.G /.'.G ,.u u u 1.2.#.u J . ",
163 ", G G G G G G 3.4.u u u u , , G G G G G ,.u u u a 5.b u u , ",
164 " , G G G G G 6.).u u , , , G G G G ,.u u u u u u 7.!., ",
165 " , , , , , G V #., , G G G ,.u ..8.u u u 9.0., ",
166 " , , , , G G ,.{.a.b.u u u u , ",
167 " , , c.u >.u , , , , ",
168 " , , , , "};
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
20
21 #include "config.h"
2022
2123 #include <stdio.h>
2224 #include <stdlib.h>
2325 #include <string.h>
2426 #include <gtk/gtk.h>
2527 #include <cairo.h>
26
27 #include "config.h"
2828
2929 #include "global.h"
3030 #include "interface.h"
3535
3636 #include "engine.h"
3737
38 #include "icon.xpm"
39
40 #ifdef WIN32
41 #undef PACKAGE_DATA_DIR
42 #define PACKAGE_DATA_DIR "./data"
43 #endif
44
4538 void interface_create_mainwindow() {
4639
47 global->MainWin = gtk_window_new(GTK_WINDOW_TOPLEVEL);
48 gtk_window_set_title(GTK_WINDOW(global->MainWin), "GtkAtlantic");
49 gtk_widget_set_size_request(global->MainWin, 700, 500);
50
51 g_signal_connect(G_OBJECT(global->MainWin), "delete-event", G_CALLBACK(gtk_main_quit), NULL);
52
53 global->MainBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
54 gtk_container_add(GTK_CONTAINER(global->MainWin), global->MainBox);
55
56 /* icon */
57 global->icon_pixbuf = gdk_pixbuf_new_from_xpm_data((const char **)icon_xpm);
58 gtk_window_set_icon(GTK_WINDOW(global->MainWin), global->icon_pixbuf);
59
60 /* used for reparent some widgets shouldn't be displayed */
61 global->Trick = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
62
63 gtk_widget_show_all(global->MainWin);
64 }
65
66
67 void interface_create_menubar() {
68
6940 // GtkWidget *HandleBar;
70 GtkWidget *MenuBar;
41 //global->Menu
7142 GtkWidget *Button;
7243 GtkWidget *Menu;
7344 GtkWidget *MenuItem;
7445
75 MenuBar = gtk_menu_bar_new();
76 gtk_box_pack_start(GTK_BOX(global->MainBox), MenuBar, FALSE, FALSE, 0);
46 GdkPixbuf *pixbuf;
47
48 global->MainWin = gtk_window_new(GTK_WINDOW_TOPLEVEL);
49 gtk_window_set_title(GTK_WINDOW(global->MainWin), "GtkAtlantic");
50 gtk_widget_set_size_request(global->MainWin, 700, 487);
51
52 /* icons */
53 GList *iconlist = NULL;
54 pixbuf = gdk_pixbuf_new_from_file (PACKAGE_DATA_DIR "/icon_128x128.png", NULL);
55 if (pixbuf) iconlist = g_list_append(iconlist, pixbuf);
56 pixbuf = gdk_pixbuf_new_from_file (PACKAGE_DATA_DIR "/icon_64x64.png", NULL);
57 if (pixbuf) iconlist = g_list_append(iconlist, pixbuf);
58 pixbuf = gdk_pixbuf_new_from_file (PACKAGE_DATA_DIR "/icon_48x48.png", NULL);
59 if (pixbuf) iconlist = g_list_append(iconlist, pixbuf);
60 pixbuf = gdk_pixbuf_new_from_file (PACKAGE_DATA_DIR "/icon_32x32.png", NULL);
61 if (pixbuf) iconlist = g_list_append(iconlist, pixbuf);
62 pixbuf = gdk_pixbuf_new_from_file (PACKAGE_DATA_DIR "/icon_16x16.png", NULL);
63 if (pixbuf) iconlist = g_list_append(iconlist, pixbuf);
64 gtk_window_set_default_icon_list(iconlist);
65
66 g_signal_connect(G_OBJECT(global->MainWin), "delete-event", G_CALLBACK(gtk_main_quit), NULL);
67
68 global->MainBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
69 gtk_container_add(GTK_CONTAINER(global->MainWin), global->MainBox);
70
71 global->Menu = gtk_menu_bar_new();
72 gtk_box_pack_start(GTK_BOX(global->MainBox), global->Menu, FALSE, FALSE, 0);
7773
7874 /* GAME MENU */
7975 Button = gtk_menu_item_new_with_label("Game");
80 gtk_menu_shell_append(GTK_MENU_SHELL(MenuBar), Button);
76 gtk_menu_shell_append(GTK_MENU_SHELL(global->Menu), Button);
8177
8278 Menu = gtk_menu_new();
8379 gtk_menu_item_set_submenu(GTK_MENU_ITEM(Button), Menu);
8480
85 MenuItem = gtk_menu_item_new_with_label("Change nickname");
81 MenuItem = gtk_menu_item_new_with_label("Connect to server...");
8682 gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem);
87 g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_menu_change_nickname), NULL);
88
89 MenuItem = gtk_menu_item_new_with_label("Show estates tree");
83 g_object_set_data(G_OBJECT(global->Menu), "connect_to_server", MenuItem);
84 g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_menu_connect_to_server), NULL);
85
86 MenuItem = gtk_menu_item_new_with_label("Connect to metaserver");
9087 gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem);
91 g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_estates_tree), NULL);
88 g_object_set_data(G_OBJECT(global->Menu), "connect_to_metaserver", MenuItem);
89 g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(Callback_ConnectMetaServer), NULL);
90
91 MenuItem = gtk_menu_item_new_with_label("Public server list...");
92 gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem);
93 g_object_set_data(G_OBJECT(global->Menu), "public_server_list", MenuItem);
94 g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_menu_public_server_list), NULL);
9295
9396 MenuItem = gtk_menu_item_new();
9497 gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem);
9598
96 MenuItem = gtk_menu_item_new_with_label("(Un)dock Server messages");
99 MenuItem = gtk_menu_item_new_with_label("Change nickname...");
97100 gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem);
98 g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_toggle_float_message), NULL);
99
100 MenuItem = gtk_menu_item_new_with_label("(Un)dock Chat");
101 g_object_set_data(G_OBJECT(global->Menu), "change_nickname", MenuItem);
102 g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_menu_change_nickname), NULL);
103
104 MenuItem = gtk_menu_item_new_with_label("Show estates tree...");
101105 gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem);
102 g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_toggle_float_chat), NULL);
106 g_object_set_data(G_OBJECT(global->Menu), "show_estate_tree", MenuItem);
107 g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_estates_tree), NULL);
108
109 MenuItem = gtk_menu_item_new_with_label("Add player");
110 g_object_set_data(G_OBJECT(global->Menu), "upgrade_spectator", MenuItem);
111 gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem);
112 GtkWidget *SubMenu = gtk_menu_new();
113 gtk_menu_item_set_submenu(GTK_MENU_ITEM(MenuItem), SubMenu);
103114
104115 MenuItem = gtk_menu_item_new();
105116 gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem);
106117
107 MenuItem = gtk_menu_item_new_with_label("Declare bankrupcy");
108 gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem);
109 g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_menu_DeclareBankrupcy), NULL);
110
111 MenuItem = gtk_menu_item_new();
112 gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem);
113
114118 MenuItem = gtk_menu_item_new_with_label("Reconnect (after client crash)");
115119 gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem);
120 g_object_set_data(G_OBJECT(global->Menu), "reconnect", MenuItem);
116121 g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_menu_reconnect), NULL);
117122
118123 MenuItem = gtk_menu_item_new_with_label("Leave game (disconnect)");
119124 gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem);
125 g_object_set_data(G_OBJECT(global->Menu), "leave_game", MenuItem);
120126 g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_menu_LeaveGame), NULL);
121127
122128 MenuItem = gtk_menu_item_new();
128134
129135 /* CONFIG MENU */
130136 Button = gtk_menu_item_new_with_label("Settings");
131 gtk_menu_shell_append(GTK_MENU_SHELL(MenuBar), Button);
137 gtk_menu_shell_append(GTK_MENU_SHELL(global->Menu), Button);
132138
133139 Menu = gtk_menu_new();
134140 gtk_menu_item_set_submenu(GTK_MENU_ITEM(Button), Menu);
135141
136 MenuItem = gtk_menu_item_new_with_label("Preferences");
142 MenuItem = gtk_menu_item_new_with_label("Preferences...");
137143 gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem);
138144 g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(Callback_ShowConfiguration), NULL);
139145
143149
144150 /* HELP MENU */
145151 Button = gtk_menu_item_new_with_label("Help");
146 gtk_menu_shell_append(GTK_MENU_SHELL(MenuBar), Button);
152 gtk_menu_shell_append(GTK_MENU_SHELL(global->Menu), Button);
147153
148154 Menu = gtk_menu_new();
149155 gtk_menu_item_set_submenu(GTK_MENU_ITEM(Button), Menu);
150156
151 MenuItem = gtk_menu_item_new_with_label("Index");
157 MenuItem = gtk_menu_item_new_with_label("Index...");
152158 gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem);
153159 g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(interface_create_helpwin), NULL);
154160
155 MenuItem = gtk_menu_item_new_with_label("About");
161 MenuItem = gtk_menu_item_new_with_label("About...");
156162 gtk_menu_shell_append(GTK_MENU_SHELL(Menu), MenuItem);
157163 g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(interface_create_aboutwin), NULL);
158164
159 gtk_widget_show_all(MenuBar);
160 }
161
162
163 void interface_create_logo() {
164
165 //global->MainBox
166 //global->MainVerticalBox
167 GtkWidget *FrameLogo;
168 GtkWidget *AlignementLogo;
169 //global->gdkrgb_logo
170 //global->pixmap_logo
171 //global->mask_logo
172 GtkWidget *AlignementEnterButton;
173 GtkWidget *EnterButton;
174
175 eng_frame *frame;
176 eng_obj *pic;
177
178 interface_unparent_message();
179 interface_unparent_chat();
180
181 global->phase = PHASE_LOGO;
182
183 global->MainVerticalBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
184 gtk_box_pack_start(GTK_BOX(global->MainBox), global->MainVerticalBox, TRUE, TRUE, 0);
185 g_signal_connect(G_OBJECT(global->MainVerticalBox), "destroy", G_CALLBACK(CallBack_logo_page_destroyed), NULL);
186
187 /* logo */
188 AlignementLogo = gtk_alignment_new(0.5, 0.5, 0.0, 0.0);
189 gtk_box_pack_start(GTK_BOX(global->MainVerticalBox), AlignementLogo, TRUE, TRUE, 0);
190
191 FrameLogo = gtk_frame_new(NULL);
192 gtk_container_add(GTK_CONTAINER(AlignementLogo), FrameLogo);
193
194 global->gdkrgb_logo = gtk_drawing_area_new();
195 gtk_widget_set_size_request( GTK_WIDGET(global->gdkrgb_logo), data->logo_width +20, data->logo_height +20);
196 gtk_container_add(GTK_CONTAINER(FrameLogo), global->gdkrgb_logo);
197 g_signal_connect(G_OBJECT( global->gdkrgb_logo), "draw", G_CALLBACK(on_logo_draw), NULL);
198
199 /* enter button */
200 AlignementEnterButton = gtk_alignment_new(0.9, 0.5, 0.0, 0.0);
201 gtk_widget_set_size_request(AlignementEnterButton, -1, 100);
202 gtk_box_pack_start(GTK_BOX(global->MainVerticalBox), AlignementEnterButton, FALSE, FALSE, 0);
203
204 EnterButton = gtk_button_new_with_label("Enter");
205 gtk_widget_set_size_request(EnterButton, 150, 30);
206 gtk_container_add(GTK_CONTAINER(AlignementEnterButton), EnterButton);
207 g_signal_connect(G_OBJECT(EnterButton), "clicked", G_CALLBACK(Callback_EnterButton), NULL);
208
209 /* frame */
210 frame = global->logo_frame = eng_frame_create();
211 eng_frame_set_width(frame, data->logo_width + 20);
212 eng_frame_set_height(frame, data->logo_height + 20);
213
214 /* logo */
215 pic = global->logo_pic = eng_pic_create(frame);
216 eng_pic_set_x(pic, 10);
217 eng_pic_set_y(pic, 10);
218 eng_pic_set_z(pic, 0);
219 eng_pic_set_width(pic, data->logo_width);
220 eng_pic_set_height(pic, data->logo_height);
221 eng_pic_set_buf(pic, data->pngfile_logo_buf);
222
223 /* draw logo frame */
224 eng_create_frame(frame);
225
226 gtk_widget_show_all(global->MainVerticalBox);
227 }
228
229
230 void interface_create_getgamespage() {
165
166 global->InfoLabel = gtk_label_new(NULL);
167 gtk_widget_set_margin_top(global->InfoLabel, 0);
168 gtk_widget_set_margin_bottom(global->InfoLabel, 3);
169 #if GTK_CHECK_VERSION(3,12,0)
170 gtk_widget_set_margin_start(global->InfoLabel, 3);
171 gtk_widget_set_margin_end(global->InfoLabel, 3);
172 #else /* GTK_CHECK_VERSION(3,12,0) */
173 gtk_widget_set_margin_left(global->InfoLabel, 3);
174 gtk_widget_set_margin_right(global->InfoLabel, 3);
175 #endif /* GTK_CHECK_VERSION(3,12,0) */
176 gtk_widget_set_halign(global->InfoLabel, GTK_ALIGN_START);
177 gtk_widget_set_valign(global->InfoLabel, GTK_ALIGN_CENTER);
178 gtk_box_pack_end(GTK_BOX(global->MainBox), global->InfoLabel, FALSE, FALSE, 0);
179
180 gtk_widget_show_all(global->MainWin);
181 }
182
183
184 void interface_create_getgamespage(bool autoconnect) {
231185
232186 //global->MainBox
233187 //global->MainVerticalBox
234188 GtkWidget *GameFrame;
235 GtkWidget *GameScrollwin;
236 GtkWidget *GameVbox;
237 //GameList
238 GtkWidget *ButtonAndEntryHorizontalBox;
239 GtkWidget *MetaServerFrame;
240 GtkWidget *MetaServerHorizontalBox;
241 GtkWidget *RefreshGameButton;
242 GtkWidget *ShowServerButton;
243 GtkWidget *CustomServerFrame;
244 GtkWidget *CustomServerHorizontalBox;
245 GtkWidget *HostLabel;
246 GtkWidget *HostEntry;
247 GtkWidget *PortEntry;
248 GtkWidget *GetgameButton;
249 GtkWidget *ConnectButton;
250 GtkWidget *MessageFrame;
251
252 gchar *text;
189 GtkWidget *GameListVBox;
190 GtkWidget *GameScrollwin;
191 GtkWidget *GameList;
192 GtkWidget *ConnectButton;
193
194 GtkTreeSelection *select;
195 GtkCellRenderer *renderer;
196 GtkTreeViewColumn *column;
197
198 global->phase = PHASE_GETGAMES;
199
200 interface_unparent_chat();
201
202 if (global->MainVerticalBox) gtk_widget_destroy(global->MainVerticalBox);
203 global->MainVerticalBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 3);
204 gtk_container_set_border_width(GTK_CONTAINER(global->MainVerticalBox), 3);
205 gtk_box_pack_start(GTK_BOX(global->MainBox), global->MainVerticalBox, TRUE, TRUE, 0);
206 g_signal_connect(G_OBJECT(global->MainVerticalBox), "destroy", G_CALLBACK(CallBack_get_games_page_destroyed), NULL);
207
208 /* list of open game & gametype */
209 GameFrame = gtk_frame_new("Create or join a monopd game");
210 gtk_box_pack_start(GTK_BOX(global->MainVerticalBox), GameFrame, TRUE, TRUE, 0);
211
212 GameListVBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
213 gtk_container_add(GTK_CONTAINER(GameFrame), GameListVBox);
214
215 /* Game list container */
216 GameScrollwin = gtk_scrolled_window_new(NULL, NULL);
217 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(GameScrollwin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
218 gtk_container_set_border_width(GTK_CONTAINER(GameScrollwin), 2);
219 gtk_box_pack_start(GTK_BOX(GameListVBox), GameScrollwin, TRUE, TRUE, 0);
220
221 /* Game list */
222 GameList = gtk_tree_view_new();
223 gtk_container_add(GTK_CONTAINER(GameScrollwin), GameList);
224 select = gtk_tree_view_get_selection(GTK_TREE_VIEW(GameList));
225 gtk_tree_selection_set_mode(select, GTK_SELECTION_SINGLE);
226 g_signal_connect(G_OBJECT(select), "changed", G_CALLBACK(Callback_GetGame_Select), NULL);
227
228 renderer = gtk_cell_renderer_text_new();
229 column = gtk_tree_view_column_new_with_attributes("Host", renderer, "text", GAMELIST_COLUMN_HOST, "cell-background", GAMELIST_COLUMN_BGCOLOR, NULL);
230 gtk_tree_view_append_column(GTK_TREE_VIEW(GameList), column);
231 column = gtk_tree_view_column_new_with_attributes("Version", renderer, "text", GAMELIST_COLUMN_VERSION, "cell-background", GAMELIST_COLUMN_BGCOLOR, NULL);
232 gtk_tree_view_append_column(GTK_TREE_VIEW(GameList), column);
233 column = gtk_tree_view_column_new_with_attributes("Game", renderer, "text", GAMELIST_COLUMN_GAME, "cell-background", GAMELIST_COLUMN_BGCOLOR, NULL);
234 gtk_tree_view_append_column(GTK_TREE_VIEW(GameList), column);
235 column = gtk_tree_view_column_new_with_attributes("Status", renderer, "text", GAMELIST_COLUMN_STATUS, "cell-background", GAMELIST_COLUMN_BGCOLOR, NULL);
236 gtk_tree_view_append_column(GTK_TREE_VIEW(GameList), column);
237 column = gtk_tree_view_column_new_with_attributes("Players", renderer, "text", GAMELIST_COLUMN_PLAYERS, "cell-background", GAMELIST_COLUMN_BGCOLOR, NULL);
238 gtk_tree_view_append_column(GTK_TREE_VIEW(GameList), column);
239
240 global->game_store = gtk_list_store_new(GAMELIST_COLUMN_NUM, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INT, G_TYPE_STRING, G_TYPE_INT, G_TYPE_INT, G_TYPE_INT, G_TYPE_INT, G_TYPE_STRING, G_TYPE_INT);
241 gtk_tree_view_set_model(GTK_TREE_VIEW(GameList), GTK_TREE_MODEL(global->game_store));
242 g_object_unref(global->game_store);
243
244 /* Server list */
245 global->server_store = gtk_list_store_new(SERVERLIST_COLUMN_NUM, G_TYPE_STRING, G_TYPE_INT, G_TYPE_STRING, G_TYPE_INT, G_TYPE_INT);
246
247 /* big connect button */
248 ConnectButton = gtk_button_new_with_label("Select a game");
249 gtk_widget_set_size_request(ConnectButton, 150, -1);
250 gtk_container_set_border_width(GTK_CONTAINER(ConnectButton), 3);
251 gtk_widget_set_sensitive(ConnectButton, FALSE);
252 gtk_box_pack_start(GTK_BOX(GameListVBox), ConnectButton, FALSE, FALSE, 0);
253 g_signal_connect(G_OBJECT(ConnectButton), "clicked", G_CALLBACK(Callback_ConnectButton), NULL);
254 g_object_set_data(G_OBJECT(global->MainVerticalBox), "connect_button", ConnectButton);
255
256 GtkWidget *MenuItem;
257 MenuItem = g_object_get_data(G_OBJECT(global->Menu), "connect_to_server");
258 gtk_widget_set_sensitive(MenuItem, TRUE);
259 MenuItem = g_object_get_data(G_OBJECT(global->Menu), "connect_to_metaserver");
260 gtk_widget_set_sensitive(MenuItem, TRUE);
261 MenuItem = g_object_get_data(G_OBJECT(global->Menu), "public_server_list");
262 gtk_widget_set_sensitive(MenuItem, FALSE);
263 MenuItem = g_object_get_data(G_OBJECT(global->Menu), "change_nickname");
264 gtk_widget_set_sensitive(MenuItem, FALSE);
265 MenuItem = g_object_get_data(G_OBJECT(global->Menu), "show_estate_tree");
266 gtk_widget_set_sensitive(MenuItem, FALSE);
267 MenuItem = g_object_get_data(G_OBJECT(global->Menu), "upgrade_spectator");
268 gtk_widget_set_sensitive(MenuItem, FALSE);
269 MenuItem = g_object_get_data(G_OBJECT(global->Menu), "reconnect");
270 gtk_widget_set_sensitive(MenuItem, game_cookie_available());
271 MenuItem = g_object_get_data(G_OBJECT(global->Menu), "leave_game");
272 gtk_widget_set_sensitive(MenuItem, FALSE);
273
274 gtk_widget_show_all(global->MainVerticalBox);
275
276 /* autoconnect to server */
277 if (autoconnect) {
278 if (config->metaserver_autoconnect) {
279 create_connection_metaserver();
280 }
281
282 if (config->getgames_autoconnect) {
283 create_connection_get_games(config->getgames_host, config->getgames_port);
284 }
285 }
286 }
287
288
289 void interface_create_gameconfigpage() {
290
291 //global->MainBox
292 //global->MainVerticalBox
293 GtkWidget *HorizontalBox;
294 GtkWidget *VerticalBoxLeft;
295 GtkWidget *ChatFrame;
296 //currentgame->ChatBox
297 GtkWidget *VerticalBoxRight;
298 GtkWidget *PlayerScrollwin;
299 GtkWidget *PlayerListFrame;
300 GtkWidget *ConfigurationFrame;
301 //currentgame->GameConfigBox
302 GtkWidget *HorizontalBoxButton;
303 GtkWidget *StartButton;
304 GtkWidget *LeaveButton;
305
306
253307 GtkTreeSelection *select;
254308 GtkCellRenderer *renderer;
255309 GtkTreeViewColumn *column;
256310 GtkListStore *store;
257311
258 global->phase = PHASE_GETGAMES;
259
260 interface_unparent_message();
312 global->phase = PHASE_GAMECREATE;
313
261314 interface_unparent_chat();
262315
263316 gtk_widget_destroy(global->MainVerticalBox);
264317 global->MainVerticalBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
318 gtk_container_set_border_width(GTK_CONTAINER(global->MainVerticalBox), 3);
265319 gtk_box_pack_start(GTK_BOX(global->MainBox), global->MainVerticalBox, TRUE, TRUE, 0);
266320
267 /* list of open game & gametype */
268 GameFrame = gtk_frame_new("Start or Select a monopd game");
269 gtk_container_set_border_width(GTK_CONTAINER(GameFrame), 15);
270 gtk_box_pack_start(GTK_BOX(global->MainVerticalBox), GameFrame, TRUE, TRUE, 0);
271
272 /* Game and server list container */
273 GameScrollwin = gtk_scrolled_window_new(NULL, NULL);
274 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(GameScrollwin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
275 gtk_container_set_border_width(GTK_CONTAINER(GameScrollwin), 10);
276 gtk_container_add(GTK_CONTAINER(GameFrame), GameScrollwin);
277
278 GameVbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
279 gtk_container_add(GTK_CONTAINER(GameScrollwin), GameVbox);
280
281 /* Game list */
282 global->GameList = gtk_tree_view_new();
283 gtk_box_pack_start(GTK_BOX(GameVbox), global->GameList, TRUE, TRUE, 0);
284 select = gtk_tree_view_get_selection(GTK_TREE_VIEW(global->GameList));
285 gtk_tree_selection_set_mode(select, GTK_SELECTION_SINGLE);
286 g_signal_connect(G_OBJECT(select), "changed", G_CALLBACK(Callback_GetGame_Select), NULL);
287
288 renderer = gtk_cell_renderer_text_new();
289 column = gtk_tree_view_column_new_with_attributes("Host", renderer, "text", GAMELIST_COLUMN_HOST, NULL);
290 gtk_tree_view_append_column(GTK_TREE_VIEW(global->GameList), column);
291 column = gtk_tree_view_column_new_with_attributes("Version", renderer, "text", GAMELIST_COLUMN_VERSION, NULL);
292 gtk_tree_view_append_column(GTK_TREE_VIEW(global->GameList), column);
293 column = gtk_tree_view_column_new_with_attributes("Game", renderer, "text", GAMELIST_COLUMN_GAME, NULL);
294 gtk_tree_view_append_column(GTK_TREE_VIEW(global->GameList), column);
295 column = gtk_tree_view_column_new_with_attributes("Description", renderer, "text", GAMELIST_COLUMN_DESCRIPTION, NULL);
296 gtk_tree_view_append_column(GTK_TREE_VIEW(global->GameList), column);
297 column = gtk_tree_view_column_new_with_attributes("Players", renderer, "text", GAMELIST_COLUMN_PLAYERS, NULL);
298 gtk_tree_view_append_column(GTK_TREE_VIEW(global->GameList), column);
299
300 store = gtk_list_store_new(GAMELIST_COLUMN_NUM, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INT, G_TYPE_STRING, G_TYPE_INT, G_TYPE_INT);
301 gtk_tree_view_set_model(GTK_TREE_VIEW(global->GameList), GTK_TREE_MODEL(store));
302 g_object_unref(store);
303
304 /* Server list */
305 global->ServerList = gtk_tree_view_new();
306 gtk_box_pack_start(GTK_BOX(GameVbox), global->ServerList, TRUE, TRUE, 0);
307 select = gtk_tree_view_get_selection(GTK_TREE_VIEW(global->ServerList));
308 gtk_tree_selection_set_mode(select, GTK_SELECTION_NONE);
309
310 renderer = gtk_cell_renderer_text_new();
311 column = gtk_tree_view_column_new_with_attributes("Host", renderer, "text", SERVERLIST_COLUMN_HOST, NULL);
312 gtk_tree_view_append_column(GTK_TREE_VIEW(global->ServerList), column);
313 column = gtk_tree_view_column_new_with_attributes("Port", renderer, "text", SERVERLIST_COLUMN_PORT, NULL);
314 gtk_tree_view_append_column(GTK_TREE_VIEW(global->ServerList), column);
315 column = gtk_tree_view_column_new_with_attributes("Version", renderer, "text", SERVERLIST_COLUMN_VERSION, NULL);
316 gtk_tree_view_append_column(GTK_TREE_VIEW(global->ServerList), column);
317 column = gtk_tree_view_column_new_with_attributes("Users", renderer, "text", SERVERLIST_COLUMN_USERS, NULL);
318 gtk_tree_view_append_column(GTK_TREE_VIEW(global->ServerList), column);
319
320 store = gtk_list_store_new(SERVERLIST_COLUMN_NUM, G_TYPE_STRING, G_TYPE_INT, G_TYPE_STRING, G_TYPE_INT);
321 gtk_tree_view_set_model(GTK_TREE_VIEW(global->ServerList), GTK_TREE_MODEL(store));
322 g_object_unref(store);
323
324 /* horizontal box for button / entry */
325 ButtonAndEntryHorizontalBox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
326 gtk_box_pack_start(GTK_BOX(global->MainVerticalBox), ButtonAndEntryHorizontalBox, FALSE, FALSE, 0);
327
328 /* meta server frame */
329 MetaServerFrame = gtk_frame_new("Meta server");
330 gtk_box_pack_start(GTK_BOX(ButtonAndEntryHorizontalBox), MetaServerFrame, FALSE, FALSE, 0);
331 gtk_container_set_border_width(GTK_CONTAINER(MetaServerFrame), BORDER);
332
333 /* meta server horizontal box */
334 MetaServerHorizontalBox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, BORDER);
335 gtk_container_set_border_width(GTK_CONTAINER(MetaServerHorizontalBox), BORDER);
336 gtk_container_add(GTK_CONTAINER(MetaServerFrame), MetaServerHorizontalBox);
337
338 /* refresh button */
339 ShowServerButton = gtk_button_new_with_label("Servers list");
340 // gtk_widget_set_size_request(ShowServerButton, 120, -1);
341 gtk_box_pack_start(GTK_BOX(MetaServerHorizontalBox), ShowServerButton, FALSE, FALSE, 0);
342 g_signal_connect(G_OBJECT(ShowServerButton), "clicked", G_CALLBACK(Callback_ShowMetaServer), NULL);
343
344 /* refresh button */
345 RefreshGameButton = gtk_button_new_with_label("Refresh games");
346 // gtk_widget_set_size_request(RefreshGameButton, 120, -1);
347 gtk_box_pack_start(GTK_BOX(MetaServerHorizontalBox), RefreshGameButton, FALSE, FALSE, 0);
348 g_signal_connect(G_OBJECT(RefreshGameButton), "clicked", G_CALLBACK(Callback_RefreshGameMetaServer), NULL);
349
350 /* custom server frame */
351 CustomServerFrame = gtk_frame_new("Custom server");
352 gtk_box_pack_start(GTK_BOX(ButtonAndEntryHorizontalBox), CustomServerFrame, TRUE, TRUE, 0);
353 gtk_container_set_border_width(GTK_CONTAINER(CustomServerFrame), BORDER);
354
355 /* Custom server horizontal box */
356 CustomServerHorizontalBox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, BORDER);
357 gtk_container_set_border_width(GTK_CONTAINER(CustomServerHorizontalBox), BORDER);
358 gtk_container_add(GTK_CONTAINER(CustomServerFrame), CustomServerHorizontalBox);
359
360 /* label/entry host, label/entry port, get games button */
361 HostLabel = gtk_label_new("host/port");
362 gtk_box_pack_start(GTK_BOX(CustomServerHorizontalBox), HostLabel, FALSE, FALSE, 0);
363
364 HostEntry = gtk_entry_new();
365 gtk_entry_set_width_chars(GTK_ENTRY(HostEntry), 10);
366 gtk_box_pack_start(GTK_BOX(CustomServerHorizontalBox), HostEntry, TRUE, TRUE, 0);
367 gtk_entry_set_text(GTK_ENTRY(HostEntry), config->getgames_host);
368
369 PortEntry = gtk_entry_new();
370 gtk_entry_set_width_chars(GTK_ENTRY(PortEntry), 4);
371 gtk_box_pack_start(GTK_BOX(CustomServerHorizontalBox), PortEntry, FALSE, FALSE, 0);
372 text = g_strdup_printf("%d", config->getgames_port);
373 gtk_entry_set_text(GTK_ENTRY(PortEntry), text);
374 g_free(text);
375
376 GetgameButton = gtk_button_new_with_label("Get games");
377 gtk_box_pack_start(GTK_BOX(CustomServerHorizontalBox), GetgameButton, FALSE, FALSE, 0);
378 g_object_set_data(G_OBJECT(GetgameButton), "host", HostEntry);
379 g_object_set_data(G_OBJECT(GetgameButton), "port", PortEntry);
380 g_signal_connect(G_OBJECT(GetgameButton), "clicked", G_CALLBACK(Callback_GetgamesButton), NULL);
381
382 /* big connect button */
383 ConnectButton = gtk_button_new_with_label("CREATE/JOIN GAME");
384 gtk_widget_set_size_request(ConnectButton, 150, -1);
385 gtk_container_set_border_width(GTK_CONTAINER(ConnectButton), BORDER);
386 gtk_box_pack_start(GTK_BOX(ButtonAndEntryHorizontalBox), ConnectButton, FALSE, TRUE, 0);
387 g_signal_connect(G_OBJECT(ConnectButton), "clicked", G_CALLBACK(Callback_ConnectButton), NULL);
388
389 /* message text */
390 MessageFrame = gtk_frame_new("Messages");
391 gtk_container_set_border_width(GTK_CONTAINER(MessageFrame), BORDER);
392 gtk_widget_set_size_request(MessageFrame, -1, 125);
393 gtk_box_pack_start(GTK_BOX(global->MainVerticalBox), MessageFrame, FALSE, FALSE, 0);
394
395 interface_create_message(MessageFrame);
396
397 gtk_widget_show_all(global->MainVerticalBox);
398 gtk_widget_hide(global->ServerList);
399
400 /* autoconnect to server (getgamelist / getserverlist) */
401 if(config->metaserver_autogetlist) {
402
403 create_connection_metaserver(CONNECT_TYPE_META_GETLIST);
404 return;
405 }
406
407 if(config->metaserver_autogetgames)
408 create_connection_metaserver(CONNECT_TYPE_META_GETGAME);
409
410 if(config->getgames_autogetgames)
411 create_connection_get_games(config->getgames_host, config->getgames_port);
412 }
413
414
415 void interface_create_gameconfigpage() {
416
417 //global->MainBox
418 //global->MainVerticalBox
419 GtkWidget *HorizontalBox;
420 GtkWidget *VerticalBoxLeft;
421 GtkWidget *MessageFrame;
422 //global->MessageBox;
423 GtkWidget *ChatFrame;
424 //currentgame->ChatBox
425 GtkWidget *VerticalBoxRight;
426 GtkWidget *AlignementListFrame;
427 GtkWidget *PlayerScrollwin;
428 GtkWidget *PlayerListFrame;
429 GtkWidget *ConfigurationFrame;
430 GtkWidget *ConfigurationScrolledWin;
431 //currentgame->GameConfigBox
432 GtkWidget *HorizontalBoxButton;
433 GtkWidget *StartButton;
434 GtkWidget *LeaveButton;
435
436
437 GtkTreeSelection *select;
438 GtkCellRenderer *renderer;
439 GtkTreeViewColumn *column;
440 GtkListStore *store;
441
442 global->phase = PHASE_GAMECREATE;
443
444 interface_unparent_message();
445 interface_unparent_chat();
446
447 gtk_widget_destroy(global->MainVerticalBox);
448 global->MainVerticalBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
449 gtk_box_pack_start(GTK_BOX(global->MainBox), global->MainVerticalBox, TRUE, TRUE, 0);
450
451321 /* main horizontal box */
452 HorizontalBox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
322 HorizontalBox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 3);
453323 gtk_box_pack_start(GTK_BOX(global->MainVerticalBox), HorizontalBox, TRUE, TRUE, 0);
454324
455 /* vertical box for messages */
456 VerticalBoxLeft = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
325 VerticalBoxLeft = gtk_box_new(GTK_ORIENTATION_VERTICAL, 3);
457326 gtk_box_pack_start(GTK_BOX(HorizontalBox), VerticalBoxLeft, TRUE, TRUE, 0);
458
459 /* message frame */
460 MessageFrame = gtk_frame_new("Server Messages");
461 gtk_container_set_border_width(GTK_CONTAINER(MessageFrame), 10);
462 gtk_widget_set_size_request(MessageFrame , -1, 130);
463 gtk_box_pack_start(GTK_BOX(VerticalBoxLeft), MessageFrame, FALSE, TRUE, 0);
464
465 // gtk_text_set_point(GTK_TEXT(global->Message), 0);
466 // gtk_text_forward_delete(GTK_TEXT(global->Message), gtk_text_get_length(GTK_TEXT(global->Message)) );
467 global->message_nb_lines = 0;
468 interface_create_message(MessageFrame);
469
470 /* chat frame */
471 ChatFrame = gtk_frame_new("Chat");
472 gtk_container_set_border_width(GTK_CONTAINER(ChatFrame), 10);
473 gtk_box_pack_start(GTK_BOX(VerticalBoxLeft), ChatFrame, TRUE, TRUE, 0);
474 interface_create_chat(ChatFrame);
475
476
477 /* vertical box right */
478 VerticalBoxRight = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
479 gtk_box_pack_start(GTK_BOX(HorizontalBox), VerticalBoxRight, FALSE, TRUE, 0);
480327
481328 /* player list frame */
482329 PlayerListFrame = gtk_frame_new("Players");
483 gtk_container_set_border_width(GTK_CONTAINER(PlayerListFrame), 10);
484 gtk_widget_set_size_request(PlayerListFrame, 380, 240);
485 gtk_box_pack_start(GTK_BOX(VerticalBoxRight), PlayerListFrame, FALSE, TRUE, 0);
486
487 AlignementListFrame = gtk_alignment_new(0.0, 0.0, 1.0, 1.0);
488 gtk_container_set_border_width(GTK_CONTAINER(AlignementListFrame), 10);
489 gtk_container_add(GTK_CONTAINER(PlayerListFrame), AlignementListFrame);
330 gtk_widget_set_size_request(PlayerListFrame, -1, 180);
331 gtk_box_pack_start(GTK_BOX(VerticalBoxLeft), PlayerListFrame, FALSE, FALSE, 0);
490332
491333 PlayerScrollwin = gtk_scrolled_window_new(NULL, NULL);
334 gtk_container_set_border_width(GTK_CONTAINER(PlayerScrollwin), 2);
492335 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(PlayerScrollwin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
493 gtk_container_add(GTK_CONTAINER(AlignementListFrame), PlayerScrollwin);
336 gtk_container_add(GTK_CONTAINER(PlayerListFrame), PlayerScrollwin);
494337
495338 /* player list */
496339 currentgame->PlayerList = gtk_tree_view_new();
508351 gtk_tree_view_set_model(GTK_TREE_VIEW(currentgame->PlayerList), GTK_TREE_MODEL(store));
509352 g_object_unref(store);
510353
354 /* chat frame */
355 ChatFrame = gtk_frame_new("Chat");
356 gtk_box_pack_start(GTK_BOX(VerticalBoxLeft), ChatFrame, TRUE, TRUE, 0);
357 interface_create_chat(ChatFrame);
358
359
360 /* vertical box right */
361 VerticalBoxRight = gtk_box_new(GTK_ORIENTATION_VERTICAL, 3);
362 gtk_box_pack_start(GTK_BOX(HorizontalBox), VerticalBoxRight, FALSE, FALSE, 0);
363
511364 /* game configuration frame */
512 ConfigurationFrame = gtk_frame_new("Game Configuration");
513 gtk_container_set_border_width(GTK_CONTAINER(ConfigurationFrame), 10);
514 gtk_box_pack_start(GTK_BOX(VerticalBoxRight), ConfigurationFrame, TRUE, TRUE, 0);
515
516 ConfigurationScrolledWin = gtk_scrolled_window_new(NULL, NULL);
517 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(ConfigurationScrolledWin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
518 gtk_container_add(GTK_CONTAINER(ConfigurationFrame), ConfigurationScrolledWin);
365 ConfigurationFrame = gtk_frame_new("Game configuration");
366 gtk_box_pack_start(GTK_BOX(VerticalBoxRight), ConfigurationFrame, FALSE, FALSE, 0);
519367
520368 /* config box might already been created by <configupdate/> early events */
521369 if (!currentgame->GameConfigBox) {
522370 currentgame->GameConfigBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
523371 }
524 gtk_container_set_border_width(GTK_CONTAINER(currentgame->GameConfigBox), 10);
525 gtk_container_add(GTK_CONTAINER(ConfigurationScrolledWin), currentgame->GameConfigBox);
372 gtk_container_set_border_width(GTK_CONTAINER(currentgame->GameConfigBox), 5);
373 gtk_container_add(GTK_CONTAINER(ConfigurationFrame), currentgame->GameConfigBox);
526374
527375 /* horizontal box button */
528 HorizontalBoxButton = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
529 gtk_container_set_border_width(GTK_CONTAINER(HorizontalBoxButton), 30);
530 gtk_box_set_spacing(GTK_BOX(HorizontalBoxButton), 30);
531 gtk_box_pack_start(GTK_BOX(VerticalBoxRight), HorizontalBoxButton, FALSE, TRUE, 0);
376 HorizontalBoxButton = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 3);
377 gtk_box_pack_end(GTK_BOX(VerticalBoxRight), HorizontalBoxButton, FALSE, FALSE, 0);
532378
533379 /* leave button */
534 LeaveButton = gtk_button_new_with_label("LEAVE GAME");
535 gtk_widget_set_size_request(LeaveButton, -1, 30);
380 LeaveButton = gtk_button_new_with_label("Leave game");
536381 gtk_box_pack_start(GTK_BOX(HorizontalBoxButton), LeaveButton, TRUE, TRUE, 0);
537382 g_signal_connect(G_OBJECT(LeaveButton), "clicked", G_CALLBACK(CallBack_menu_LeaveGame), NULL);
538383
539384 /* start button */
540 StartButton = gtk_button_new_with_label("START GAME");
541 gtk_widget_set_size_request(StartButton, -1, 30);
385 StartButton = gtk_button_new_with_label("Start game");
542386 gtk_widget_set_sensitive(StartButton, (global->my_playerid == currentgame->master));
543387 gtk_box_pack_start(GTK_BOX(HorizontalBoxButton), StartButton, TRUE, TRUE, 0);
544388 g_signal_connect(G_OBJECT(StartButton), "clicked", G_CALLBACK(Callback_StartButton), NULL);
545389 g_object_set_data(G_OBJECT(global->MainVerticalBox), "start_button", StartButton);
546390
391 GtkWidget *MenuItem;
392 MenuItem = g_object_get_data(G_OBJECT(global->Menu), "connect_to_server");
393 gtk_widget_set_sensitive(MenuItem, FALSE);
394 MenuItem = g_object_get_data(G_OBJECT(global->Menu), "connect_to_metaserver");
395 gtk_widget_set_sensitive(MenuItem, FALSE);
396 MenuItem = g_object_get_data(G_OBJECT(global->Menu), "public_server_list");
397 gtk_widget_set_sensitive(MenuItem, FALSE);
398 MenuItem = g_object_get_data(G_OBJECT(global->Menu), "change_nickname");
399 gtk_widget_set_sensitive(MenuItem, TRUE);
400 MenuItem = g_object_get_data(G_OBJECT(global->Menu), "show_estate_tree");
401 gtk_widget_set_sensitive(MenuItem, FALSE);
402 MenuItem = g_object_get_data(G_OBJECT(global->Menu), "upgrade_spectator");
403 gtk_widget_set_sensitive(MenuItem, FALSE);
404 MenuItem = g_object_get_data(G_OBJECT(global->Menu), "reconnect");
405 gtk_widget_set_sensitive(MenuItem, FALSE);
406 MenuItem = g_object_get_data(G_OBJECT(global->Menu), "leave_game");
407 gtk_widget_set_sensitive(MenuItem, TRUE);
408
547409 gtk_widget_show_all(global->MainVerticalBox);
548410 }
549411
552414
553415 //global->MainBox
554416 //global->MainVerticalBox
555 GtkWidget *Alignment;
556 GtkWidget *Label;
417 GtkWidget *Label;
557418
558419 global->phase = PHASE_GAMEINIT;
559420
560 interface_unparent_message();
561421 interface_unparent_chat();
562422
563423 gtk_widget_destroy(global->MainVerticalBox);
565425 gtk_box_pack_start(GTK_BOX(global->MainBox), global->MainVerticalBox, TRUE, TRUE, 0);
566426
567427 /* text */
568 Alignment = gtk_alignment_new(0.5, 0.5, 0.0, 0.0);
569 gtk_box_pack_start(GTK_BOX(global->MainVerticalBox), Alignment, TRUE, TRUE, 0);
570
571428 Label = gtk_label_new("Please wait while loading...");
572 gtk_container_add(GTK_CONTAINER(Alignment), Label);
429 gtk_widget_set_halign(Label, GTK_ALIGN_CENTER);
430 gtk_widget_set_valign(Label, GTK_ALIGN_CENTER);
431 gtk_box_pack_start(GTK_BOX(global->MainVerticalBox), Label, TRUE, TRUE, 0);
573432
574433 gtk_widget_show_all(global->MainVerticalBox);
575434
586445 //global->MainBox
587446 //global->MainVerticalBox
588447 GtkWidget *MainHorizontalBox;
589 GtkWidget *VerticalBoxPlayerlistMessageChat;
590 GtkWidget *PlayerVerticalBox;
591 GtkWidget *PlayerHorizontalBox;
592 GtkWidget *AlignementTokenPlayer;
593 //global->player[].playerlist_token_gdkrgb
594 GtkWidget *PlayerGrid;
595 //global->player[i].playerlist_AlignementNamePlayer;
596 //global->player[].playerlist_LabelNamePlayer
597 //global->player[i].playerlist_AlignementMoneyPlayer;
598 //global->player[].playerlist_LabelMoneyPlayer
599 //global->player[].playerlist_cards_gdkrgb
600 GtkWidget *PlayerPopupMenu;
448 GtkWidget *VerticalBoxPlayerlistChat;
449 //currentgame->PlayerList
601450 GtkWidget *PlayerSeparator;
602 //currentgame->BoxMessageAndChat
603 //call interface_message_and_chat_float_unfloat
604 GtkWidget *VerticalBoxBoard;
605 GtkWidget *FixedBoard;
606 GtkWidget *EventBox;
607 //currentgame->BoardCenter;
608 //currentgame->estate[].gdkrgb
609 GtkWidget *EstatePopupMenu;
610 GtkWidget *CmdButton;
611
612 GtkWidget *Alignment;
613
614 eng_frame *frame;
451 GtkWidget *ChatFrame;
452 //call interface_create_chat
453 GtkWidget *FixedBoard;
454 GtkWidget *EventBox;
455 //currentgame->BoardCenter;
456 //currentgame->estate[].gdkrgb
457 GtkWidget *EstatePopupMenu;
458
459 eng_frame *board_frame;
615460 eng_obj *pic;
616 gint32 i, j, t, token, star, houses;
461 gint32 i, j, star, houses;
617462 gchar *text, *tmp1, *tmp2;
463 player *p;
618464
619465 GtkWidget *MenuItem;
620 gint32 nb_players;
621466
622467 global->phase = PHASE_GAMEPLAY;
623 game_sort_playerlist_by_playerid();
624
625 interface_unparent_message();
468
626469 interface_unparent_chat();
627470
628471 gtk_widget_destroy(global->MainVerticalBox);
629 global->MainVerticalBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
472 global->MainVerticalBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 3);
473 gtk_container_set_border_width(GTK_CONTAINER(global->MainVerticalBox), 3);
630474 gtk_box_pack_start(GTK_BOX(global->MainBox), global->MainVerticalBox, TRUE, TRUE, 0);
631475
632476 /* horizontal box for board / player status */
633 MainHorizontalBox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
477 MainHorizontalBox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 3);
634478 gtk_box_pack_start(GTK_BOX(global->MainVerticalBox), MainHorizontalBox, TRUE, TRUE, 0);
635479
636 /* vertical box for player / messages / chat */
637 VerticalBoxPlayerlistMessageChat = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
480 /* vertical box for player and chat */
481 VerticalBoxPlayerlistChat = gtk_box_new(GTK_ORIENTATION_VERTICAL, 3);
638482 if(config->game_playerlist_position == GAME_PLAYERLIST_POS_RIGHT)
639 gtk_box_pack_end(GTK_BOX(MainHorizontalBox), VerticalBoxPlayerlistMessageChat, TRUE, TRUE, 0);
483 gtk_box_pack_end(GTK_BOX(MainHorizontalBox), VerticalBoxPlayerlistChat, TRUE, FALSE, 0);
640484 else /* left (default) */
641 gtk_box_pack_start(GTK_BOX(MainHorizontalBox), VerticalBoxPlayerlistMessageChat, TRUE, TRUE, 0);
642 gtk_widget_set_hexpand(VerticalBoxPlayerlistMessageChat, TRUE);
643 gtk_widget_set_vexpand(VerticalBoxPlayerlistMessageChat, TRUE);
644
645 /* player status */
646 PlayerVerticalBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
647 gtk_container_set_border_width(GTK_CONTAINER(PlayerVerticalBox), BORDER);
648 gtk_box_pack_start(GTK_BOX(VerticalBoxPlayerlistMessageChat), PlayerVerticalBox, FALSE, FALSE, 0);
649
650 /* player list game */
651 for(i = 0, token = 0; i < MAX_PLAYERS ; i++) {
652
653 if(! global->player[i].playerid) continue;
654 if (global->player[i].spectator) continue;
655 if(global->player[i].game != currentgame->gameid) continue;
656
657 global->player[i].buffer_token = token;
658 global->player[i].buffer_star = token;
659
660 /* separator */
661 PlayerSeparator = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL);
662 gtk_box_pack_start(GTK_BOX(PlayerVerticalBox), PlayerSeparator, FALSE, FALSE, 0);
663
664 /* alignment */
665 Alignment = gtk_alignment_new(0.0, 0.5, 0.0, 1.0);
666 gtk_box_pack_start(GTK_BOX(PlayerVerticalBox), Alignment, FALSE, TRUE, 0);
667
668 /* event box */
669 EventBox = gtk_event_box_new();
670 g_signal_connect(G_OBJECT(EventBox), "button_press_event", G_CALLBACK(Callback_ClicOnPlayer), NULL);
671 gtk_container_add(GTK_CONTAINER(Alignment), EventBox);
672
673 /* box which contain all widgets for a player */
674 PlayerHorizontalBox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
675 gtk_container_add(GTK_CONTAINER(EventBox), PlayerHorizontalBox);
676
677 /* building popup player menu */
678 PlayerPopupMenu = gtk_menu_new();
679 g_object_set_data(G_OBJECT(PlayerPopupMenu), "playerid", GINT_TO_POINTER(global->player[i].playerid));
680 g_object_set_data(G_OBJECT(EventBox), "menu", PlayerPopupMenu);
681
682 MenuItem = gtk_menu_item_new_with_label("Initiate a trade");
683 gtk_menu_shell_append(GTK_MENU_SHELL(PlayerPopupMenu), MenuItem);
684 g_object_set_data(G_OBJECT(MenuItem), "action", GINT_TO_POINTER(PLAYER_ACTION_TRADE));
685 g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_PopupMenuPlayer), NULL);
686 gtk_widget_show(MenuItem);
687
688 MenuItem = gtk_menu_item_new();
689 gtk_menu_shell_append(GTK_MENU_SHELL(PlayerPopupMenu), MenuItem);
690 gtk_widget_show(MenuItem);
691
692 MenuItem = gtk_menu_item_new_with_label("Request version");
693 gtk_menu_shell_append(GTK_MENU_SHELL(PlayerPopupMenu), MenuItem);
694 g_object_set_data(G_OBJECT(MenuItem), "action", GINT_TO_POINTER(PLAYER_ACTION_VERSION));
695 g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_PopupMenuPlayer), NULL);
696 gtk_widget_show(MenuItem);
697
698 MenuItem = gtk_menu_item_new_with_label("Request date");
699 gtk_menu_shell_append(GTK_MENU_SHELL(PlayerPopupMenu), MenuItem);
700 g_object_set_data(G_OBJECT(MenuItem), "action", GINT_TO_POINTER(PLAYER_ACTION_DATE));
701 g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_PopupMenuPlayer), NULL);
702 gtk_widget_show(MenuItem);
703
704 MenuItem = gtk_menu_item_new_with_label("Request ping");
705 gtk_menu_shell_append(GTK_MENU_SHELL(PlayerPopupMenu), MenuItem);
706 g_object_set_data(G_OBJECT(MenuItem), "action", GINT_TO_POINTER(PLAYER_ACTION_PING));
707 g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_PopupMenuPlayer), NULL);
708 gtk_widget_show(MenuItem);
709
710 /* token player in playerlist */
711 AlignementTokenPlayer = gtk_alignment_new(1.0, 1.0, 0.0, 0.0);
712 gtk_box_pack_start(GTK_BOX(PlayerHorizontalBox), AlignementTokenPlayer, TRUE, TRUE, 0);
713 global->player[i].playerlist_token_gdkrgb = gtk_drawing_area_new();
714 gtk_widget_set_size_request( GTK_WIDGET(global->player[i].playerlist_token_gdkrgb), data->playerlist_token_width, data->playerlist_token_height );
715 gtk_container_add(GTK_CONTAINER(AlignementTokenPlayer), global->player[i].playerlist_token_gdkrgb);
716 g_signal_connect(G_OBJECT(global->player[i].playerlist_token_gdkrgb), "draw", G_CALLBACK(on_playertoken_draw), NULL);
717 g_object_set_data(G_OBJECT(global->player[i].playerlist_token_gdkrgb), "playerid", GINT_TO_POINTER(i));
718
719 /* name, money, cards owned by player */
720 PlayerGrid = gtk_grid_new();
721 gtk_grid_set_row_spacing(GTK_GRID(PlayerGrid), 0);
722 gtk_grid_set_column_spacing(GTK_GRID(PlayerGrid), 0);
723 gtk_box_pack_start(GTK_BOX(PlayerHorizontalBox), PlayerGrid, FALSE, FALSE, 0);
724
725 /* cards */
726 global->player[i].playerlist_cards_gdkrgb = gtk_drawing_area_new();
727 gtk_widget_set_size_request( GTK_WIDGET(global->player[i].playerlist_cards_gdkrgb), data->playerlist_cards_width, data->playerlist_cards_height );
728 gtk_grid_attach(GTK_GRID(PlayerGrid), global->player[i].playerlist_cards_gdkrgb, 0, 1, 2, 1);
729 g_signal_connect(G_OBJECT(global->player[i].playerlist_cards_gdkrgb), "draw", G_CALLBACK(on_playercards_draw), NULL);
730 g_object_set_data(G_OBJECT(global->player[i].playerlist_cards_gdkrgb), "playerid", GINT_TO_POINTER(i));
731
732 /* name */
733 global->player[i].playerlist_AlignementNamePlayer = gtk_alignment_new(0.0, 0.0, 0.0, 0.0);
734 gtk_grid_attach(GTK_GRID(PlayerGrid), global->player[i].playerlist_AlignementNamePlayer, 0, 0, 1, 1);
735 global->player[i].playerlist_LabelNamePlayer = gtk_label_new(NULL);
736 g_object_set_data(G_OBJECT(global->player[i].playerlist_AlignementNamePlayer), "namelabel", global->player[i].playerlist_LabelNamePlayer);
737 gtk_container_add(GTK_CONTAINER(global->player[i].playerlist_AlignementNamePlayer), global->player[i].playerlist_LabelNamePlayer);
738
739 if(global->player[i].hasturn) {
740 gchar *tmp = g_markup_printf_escaped("<span foreground=\"#ff0000\">%s</span>", global->player[i].name);
741 gtk_label_set_markup(GTK_LABEL(global->player[i].playerlist_LabelNamePlayer), tmp);
742 g_free(tmp);
743 } else {
744 gchar *tmp = g_markup_printf_escaped("<span foreground=\"#000000\">%s</span>", global->player[i].name);
745 gtk_label_set_markup(GTK_LABEL(global->player[i].playerlist_LabelNamePlayer), tmp);
746 g_free(tmp);
747 }
748
749 /* money */
750 global->player[i].playerlist_AlignementMoneyPlayer = gtk_alignment_new(1.0, 0.0, 0.0, 0.0);
751 gtk_grid_attach(GTK_GRID(PlayerGrid), global->player[i].playerlist_AlignementMoneyPlayer, 1, 0, 1, 1);
752 global->player[i].playerlist_LabelMoneyPlayer = gtk_label_new(NULL);
753 g_object_set_data(G_OBJECT(global->player[i].playerlist_AlignementMoneyPlayer), "moneylabel", global->player[i].playerlist_LabelMoneyPlayer);
754 gtk_container_add(GTK_CONTAINER(global->player[i].playerlist_AlignementMoneyPlayer), global->player[i].playerlist_LabelMoneyPlayer);
755
756 if(global->player[i].hasturn) {
757 gchar *tmp = g_markup_printf_escaped("<span foreground=\"#ff0000\">%d</span>", global->player[i].money);
758 gtk_label_set_markup(GTK_LABEL(global->player[i].playerlist_LabelMoneyPlayer), tmp);
759 g_free(tmp);
760 } else {
761 gchar *tmp = g_markup_printf_escaped("<span foreground=\"#000000\">%d</span>", global->player[i].money);
762 gtk_label_set_markup(GTK_LABEL(global->player[i].playerlist_LabelMoneyPlayer), tmp);
763 g_free(tmp);
764 }
765
766 /* playerlist token frame */
767 frame = global->player[i].playerlist_token_frame = eng_frame_create();
768 eng_frame_set_width(frame, data->playerlist_token_width);
769 eng_frame_set_height(frame, data->playerlist_token_height);
770
771 /* playerlist token pic */
772 pic = global->player[i].playerlist_token_pic = eng_pic_create(frame);
773 eng_pic_set_x(pic, (data->playerlist_token_width - data->pngfile_token_width[token]) / 2);
774 eng_pic_set_y(pic, (data->playerlist_token_height - data->pngfile_token_height[token]) / 2);
775 eng_pic_set_z(pic, 0);
776 eng_pic_set_width(pic, data->pngfile_token_width[token]);
777 eng_pic_set_height(pic, data->pngfile_token_height[token]);
778 eng_pic_set_buf(pic, data->pngfile_token_buf[token]);
779
780 /* playerlist first draw */
781 eng_create_frame(frame);
782
783 /* engine frame cards */
784 frame = global->player[i].playerlist_cards_frame = eng_frame_create();
785 eng_frame_set_width(frame, data->playerlist_cards_width);
786 eng_frame_set_height(frame, data->playerlist_cards_height);
787
788 /* cards */
789 for(j = 0 ; j < data->number_playerlist_card ; j++) {
790
791 pic = global->player[i].playerlist_cards_pic[j] = eng_pic_create(frame);
792 eng_pic_set_x(pic, data->playerlist_card[j].x);
793 eng_pic_set_y(pic, data->playerlist_card[j].y);
794 eng_pic_set_z(pic, data->playerlist_card[j].z);
795 t = data->playerlist_card[j].buffer_card;
796 eng_pic_set_width(pic, data->pngfile_card_width[t]);
797 eng_pic_set_height(pic, data->pngfile_card_height[t]);
798
799 if(currentgame->estate[ data->playerlist_card[j].estateid ].owner == (gint32)global->player[i].playerid) {
800
801 if(currentgame->estate[ data->playerlist_card[j].estateid ].mortgaged) {
802
803 eng_pic_set_alpha(pic, data->playerlist_cards_alphamortgage);
804 eng_pic_set_bgcolor(pic, data->playerlist_cards_cardbgcolormortgage);
805 }
806 else {
807
808 eng_pic_set_alpha(pic, data->playerlist_cards_alphaowned);
809 eng_pic_set_bgcolor(pic, data->playerlist_cards_cardbgcolor);
810 }
811 }
812 else {
813
814 eng_pic_set_alpha(pic, data->playerlist_cards_alphaunowned);
815 eng_pic_set_bgcolor(pic, data->playerlist_cards_cardbgcolor);
816 }
817
818 eng_pic_set_buf(pic, data->pngfile_card_buf[t]);
819 }
820
821 /* Next token */
822 token++;
823
824 /* cards first draw */
825 eng_create_frame(frame);
826 }
827
828 /* last separator */
485 gtk_box_pack_start(GTK_BOX(MainHorizontalBox), VerticalBoxPlayerlistChat, TRUE, TRUE, 0);
486 gtk_widget_set_hexpand(VerticalBoxPlayerlistChat, TRUE);
487 gtk_widget_set_vexpand(VerticalBoxPlayerlistChat, TRUE);
488
489 /* players */
490 currentgame->PlayerList = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
491 gtk_box_pack_start(GTK_BOX(VerticalBoxPlayerlistChat), currentgame->PlayerList, FALSE, FALSE, 0);
492
493 /* first player separator */
829494 PlayerSeparator = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL);
830 gtk_box_pack_start(GTK_BOX(PlayerVerticalBox), PlayerSeparator, FALSE, FALSE, 0);
831
832 /* message and chat box */
833 currentgame->BoxMessageAndChat = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
834 gtk_box_pack_start(GTK_BOX(VerticalBoxPlayerlistMessageChat), currentgame->BoxMessageAndChat, TRUE, TRUE, 0);
835
836 nb_players = game_nb_players();
837 if(nb_players <= 5) {
838
839 currentgame->message_float = 0;
840 currentgame->chat_float = 0;
841 }
842 else if(nb_players <= 7) {
843
844 currentgame->message_float = 0;
845 currentgame->chat_float = 1;
846 }
847 else {
848
849 currentgame->message_float = 1;
850 currentgame->chat_float = 1;
851 }
852 interface_message_and_chat_float_unfloat();
853
854
855 /* vertical box for board / left space */
856 VerticalBoxBoard = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
857 gtk_box_pack_start(GTK_BOX(MainHorizontalBox), VerticalBoxBoard, FALSE, FALSE, 0);
858
859 Alignment = gtk_alignment_new(0.0, 0.0, 1.0, 1.0);
860 gtk_box_pack_start(GTK_BOX(VerticalBoxBoard), Alignment, TRUE, TRUE, 0);
495 gtk_box_pack_start(GTK_BOX(currentgame->PlayerList), PlayerSeparator, FALSE, FALSE, 0);
496
497 /* chat */
498 ChatFrame = gtk_frame_new("Chat");
499 gtk_box_pack_start(GTK_BOX(VerticalBoxPlayerlistChat), ChatFrame, TRUE, TRUE, 0);
500 interface_create_chat(ChatFrame);
501
502 /* board */
503 board_frame = currentgame->board_frame = eng_frame_create();
504 eng_frame_set_width(board_frame, data->board_width);
505 eng_frame_set_height(board_frame, data->board_height);
506
507 /* add players */
508 game_sort_playerlist_by_turnorder();
509 for (p = player_h; p; p = p->next) {
510 if (p->spectator) continue;
511 if (p->game != currentgame->gameid) continue;
512 interface_gameboard_add_player(p);
513 }
514 game_update_tokens();
861515
862516 FixedBoard = gtk_fixed_new();
863 gtk_container_add(GTK_CONTAINER(Alignment), FixedBoard);
864 gtk_container_set_border_width(GTK_CONTAINER(FixedBoard), BORDER);
865
866 /* board estates - drawing area */
517 gtk_box_pack_start(GTK_BOX(MainHorizontalBox), FixedBoard, FALSE, FALSE, 0);
518
519 /* board center */
520 if (!currentgame->BoardCenter) {
521 currentgame->BoardCenter = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
522 display_init();
523 }
524 gtk_container_set_border_width(GTK_CONTAINER(currentgame->BoardCenter), 0);
525 gtk_widget_set_size_request( GTK_WIDGET(currentgame->BoardCenter), data->board_center_width, data->board_center_height);
526 gtk_fixed_put(GTK_FIXED(FixedBoard), currentgame->BoardCenter, data->board_center_x, data->board_center_y);
527
528 /* board estates */
867529 for(i = 0 ; i < data->number_estates ; i++) {
868530
869531 j = data->estate[i].buffer_board;
956618
957619 gtk_widget_set_tooltip_text(EventBox, text);
958620 g_free(text);
959 }
960
961 gtk_container_set_border_width(GTK_CONTAINER(currentgame->BoardCenter), 0);
962 gtk_widget_set_size_request( GTK_WIDGET(currentgame->BoardCenter), data->board_center_width, data->board_center_height);
963 gtk_fixed_put(GTK_FIXED(FixedBoard), currentgame->BoardCenter, data->board_center_x, data->board_center_y);
964
965
966 /* command box */
967 currentgame->CommandsBox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 10);
968 gtk_container_set_border_width(GTK_CONTAINER(currentgame->CommandsBox), BORDER);
969 gtk_box_pack_start(GTK_BOX(VerticalBoxBoard), currentgame->CommandsBox, FALSE, TRUE, 0);
970
971 /* roll button */
972 CmdButton = gtk_button_new_with_label("Roll");
973 g_object_set_data(G_OBJECT(currentgame->CommandsBox), "roll_button", CmdButton);
974 gtk_widget_set_size_request(CmdButton, 60, -1);
975 g_object_set_data(G_OBJECT(CmdButton), "command", ".r\n");
976 gtk_box_pack_start(GTK_BOX(currentgame->CommandsBox), CmdButton, FALSE, FALSE, 0);
977 g_signal_connect(G_OBJECT(CmdButton), "clicked", G_CALLBACK(CallBack_button_command_pressed), NULL);
978
979 /* how to play in center */
980 if (!global->reconnected) {
981 display_title("How to Play");
982 display_text("Estate houses or mortgage: Press left or right button on estate\n\n"
983 "Trade: press left or right button on the player you want to trade with, then select \"Initiate a trade\"\n\n"
984 "Please read help for more informations");
985 }
986
987
988 /* ==== GRAPHIC ENGINE IMAGES ==== */
989
990 /* board frame */
991 frame = currentgame->board_frame = eng_frame_create();
992 eng_frame_set_width(frame, data->board_width);
993 eng_frame_set_height(frame, data->board_height);
994
995 /* pic for estates / stars / houses */
996 for(i = 0 ; i < data->number_estates ; i++) {
997
998 j = data->estate[i].buffer_board;
999
621
622 /* pic for estates / stars / houses */
1000623
1001624 /* estate */
1002 pic = currentgame->estate[i].pic = eng_pic_create(frame);
625 pic = currentgame->estate[i].pic = eng_pic_create(board_frame);
1003626 eng_pic_set_x(pic, data->estate[i].x);
1004627 eng_pic_set_y(pic, data->estate[i].y);
1005628 eng_pic_set_z(pic, 0);
1008631 eng_pic_set_buf(pic, data->pngfile_board_buf[j]);
1009632
1010633 /* star */
1011 pic = currentgame->estate[i].star_pic = eng_pic_create(frame);
634 pic = currentgame->estate[i].star_pic = eng_pic_create(board_frame);
1012635 eng_pic_set_x(pic, data->estate[i].xstar);
1013636 eng_pic_set_y(pic, data->estate[i].ystar);
1014637 eng_pic_set_z(pic, 1);
1016639 /* if estate owned && not mortgaged */
1017640 if(currentgame->estate[i].owner > 0 && !currentgame->estate[i].mortgaged) {
1018641
1019 star = global->player[ get_player_slot_with_playerid( currentgame->estate[i].owner ) ].buffer_star;
642 star = player_from_id(currentgame->estate[i].owner)->tokenid;
1020643
1021644 pic = currentgame->estate[i].star_pic;
1022645 eng_pic_set_width(pic, data->pngfile_star_width[star]);
1028651 /* if estate owned && mortgaged */
1029652 else if(currentgame->estate[i].owner > 0 && currentgame->estate[i].mortgaged) {
1030653
1031 star = global->player[ get_player_slot_with_playerid( currentgame->estate[i].owner ) ].buffer_star;
654 star = player_from_id(currentgame->estate[i].owner )->tokenid;
1032655
1033656 pic = currentgame->estate[i].star_pic;
1034657 eng_pic_set_width(pic, data->pngfile_star_m_width[star]);
1045668 }
1046669
1047670 /* house image */
1048 pic = currentgame->estate[i].house_pic = eng_pic_create(frame);
671 pic = currentgame->estate[i].house_pic = eng_pic_create(board_frame);
1049672 eng_pic_set_x(pic, data->estate[i].xhouse);
1050673 eng_pic_set_y(pic, data->estate[i].yhouse);
1051674 eng_pic_set_z(pic, 1);
1075698 }
1076699 }
1077700
1078
1079 /* pic for tokens */
1080 for(i = 0 ; i < MAX_PLAYERS ; i++) {
1081
1082 if(! global->player[i].playerid) continue;
1083 if (global->player[i].spectator) continue;
1084 if(global->player[i].game != currentgame->gameid) continue;
1085
1086 token = global->player[i].buffer_token;
1087
1088 /* token */
1089 pic = global->player[i].token_pic = eng_pic_create(frame);
1090 eng_pic_set_z(pic, 1);
1091 eng_pic_set_width(pic, data->pngfile_token_width[token]);
1092 eng_pic_set_height(pic, data->pngfile_token_height[token]);
1093 eng_pic_set_buf(pic, data->pngfile_token_buf[token]);
1094 if(global->player[i].bankrupt)
1095 eng_pic_unshow(pic);
1096
1097 /* set token location to target location */
1098 global->player[i].location = global->player[i].location_to;
1099 }
1100 game_update_tokens();
1101
1102701 /* board first draw */
1103 eng_create_frame(frame);
702 eng_create_frame(board_frame);
703
704 MenuItem = g_object_get_data(G_OBJECT(global->Menu), "connect_to_server");
705 gtk_widget_set_sensitive(MenuItem, FALSE);
706 MenuItem = g_object_get_data(G_OBJECT(global->Menu), "connect_to_metaserver");
707 gtk_widget_set_sensitive(MenuItem, FALSE);
708 MenuItem = g_object_get_data(G_OBJECT(global->Menu), "public_server_list");
709 gtk_widget_set_sensitive(MenuItem, FALSE);
710 MenuItem = g_object_get_data(G_OBJECT(global->Menu), "change_nickname");
711 gtk_widget_set_sensitive(MenuItem, TRUE);
712 MenuItem = g_object_get_data(G_OBJECT(global->Menu), "show_estate_tree");
713 gtk_widget_set_sensitive(MenuItem, TRUE);
714 MenuItem = g_object_get_data(G_OBJECT(global->Menu), "reconnect");
715 gtk_widget_set_sensitive(MenuItem, FALSE);
716 MenuItem = g_object_get_data(G_OBJECT(global->Menu), "leave_game");
717 gtk_widget_set_sensitive(MenuItem, TRUE);
1104718
1105719 gtk_widget_show_all(global->MainVerticalBox);
1106
1107 if(global->player[ get_player_slot_with_playerid(global->my_playerid) ].can_roll)
1108 gtk_widget_show(CmdButton);
1109 else
1110 gtk_widget_hide(CmdButton);
1111 }
1112
1113
1114 /* create message box, chat box fixed or floating */
1115 void interface_message_and_chat_float_unfloat() {
1116
1117 //currentgame->BoxMessageAndChat
1118 //global->MessageFrame
1119 //global->MessageWindow
1120 //global->MessageBox
1121 //global->ChatFrame
1122 //global->ChatWindow
1123 //currentgame->ChatBox
1124
1125 /* message is fixed and not created */
1126 if(!currentgame->message_float && !global->MessageFrame) {
1127
1128 /* if message window is created */
1129 if(global->MessageWindow) {
1130
1131 interface_unparent_message();
1132 gtk_widget_destroy(global->MessageWindow);
1133 global->MessageWindow = 0;
1134 }
1135 global->MessageFrame = gtk_frame_new("Server Messages");
1136 gtk_container_set_border_width(GTK_CONTAINER(global->MessageFrame), BORDER);
1137 gtk_widget_set_size_request(global->MessageFrame, -1, 100);
1138 gtk_box_pack_start(GTK_BOX(currentgame->BoxMessageAndChat), global->MessageFrame, FALSE, FALSE, 0);
1139
1140 interface_create_message(global->MessageFrame);
1141 gtk_widget_show_all(global->MessageFrame);
1142 }
1143
1144 /* message is float and not created */
1145 if(currentgame->message_float && !global->MessageWindow) {
1146
1147 /* if message fixed is created */
1148 if(global->MessageFrame) {
1149
1150 interface_unparent_message();
1151 gtk_widget_destroy(global->MessageFrame);
1152 global->MessageFrame = 0;
1153 while(gtk_events_pending()) gtk_main_iteration();
1154 }
1155 global->MessageWindow = gtk_window_new(GTK_WINDOW_TOPLEVEL);
1156 gtk_window_set_title(GTK_WINDOW(global->MessageWindow), "GtkAtlantic: Server Messages");
1157 gtk_widget_set_size_request(global->MessageWindow, 300, 230);
1158 gtk_window_set_icon(GTK_WINDOW(global->MainWin), global->icon_pixbuf);
1159 g_signal_connect(G_OBJECT(global->MessageWindow), "delete_event", G_CALLBACK(CallBack_delete_window_message), NULL);
1160 g_signal_connect(G_OBJECT(global->MessageWindow), "destroy", G_CALLBACK(CallBack_destroy_window_message), NULL);
1161
1162 interface_create_message(global->MessageWindow);
1163 gtk_widget_show_all(global->MessageWindow);
1164 }
1165
1166
1167 /* chat is fixed and not created */
1168 if(!currentgame->chat_float && !currentgame->ChatFrame) {
1169
1170 /* if chat window is created */
1171 if(currentgame->ChatWindow) {
1172
1173 interface_unparent_chat();
1174 gtk_widget_destroy(currentgame->ChatWindow);
1175 currentgame->ChatWindow = 0;
1176 }
1177 currentgame->ChatFrame = gtk_frame_new("Chat");
1178 gtk_container_set_border_width(GTK_CONTAINER(currentgame->ChatFrame), BORDER);
1179 gtk_box_pack_end(GTK_BOX(currentgame->BoxMessageAndChat), currentgame->ChatFrame, TRUE, TRUE, 0);
1180
1181 interface_create_chat(currentgame->ChatFrame);
1182 gtk_widget_show_all(currentgame->ChatFrame);
1183 }
1184
1185 /* chat is float and not created */
1186 if(currentgame->chat_float && !currentgame->ChatWindow) {
1187
1188 /* if chat fixed is created */
1189 if(currentgame->ChatFrame) {
1190
1191 interface_unparent_chat();
1192 gtk_widget_destroy(currentgame->ChatFrame);
1193 currentgame->ChatFrame = 0;
1194 while(gtk_events_pending()) gtk_main_iteration();
1195 }
1196 currentgame->ChatWindow = gtk_window_new(GTK_WINDOW_TOPLEVEL);
1197 gtk_window_set_title(GTK_WINDOW(currentgame->ChatWindow), "GtkAtlantic: Chat");
1198 gtk_widget_set_size_request(currentgame->ChatWindow, 300, 230);
1199 gtk_window_set_icon(GTK_WINDOW(global->MainWin), global->icon_pixbuf);
1200 g_signal_connect(G_OBJECT(currentgame->ChatWindow), "delete_event", G_CALLBACK(CallBack_delete_window_chat), NULL);
1201 g_signal_connect(G_OBJECT(currentgame->ChatWindow), "destroy", G_CALLBACK(CallBack_destroy_window_chat), NULL);
1202
1203 interface_create_chat(currentgame->ChatWindow);
1204 gtk_widget_show_all(currentgame->ChatWindow);
1205 }
1206 }
1207
1208
1209 void interface_create_message(GtkWidget *container) {
1210
1211 //global->MessageBox;
1212 //global->Message
1213 //GtkWidget* MessageVerticalScrollbar;
1214
1215 GtkTextBuffer *textbuff;
1216 GtkTextIter textiter;
1217
1218 /* already created, just reparent */
1219 if(global->MessageBox) {
1220 gtk_widget_reparent(GTK_WIDGET(global->MessageBox), container);
1221 /* This is a bit ugly but I could not find a better way */
1222 g_timeout_add(100, interface_message_and_chat_scroll_to_the_end, global->Message);
720 }
721
722
723 void interface_gameboard_add_player(player *p) {
724 GtkWidget *PlayerHorizontalBox;
725 GtkWidget *PlayerGrid;
726 GtkWidget *PlayerPopupMenu;
727 GtkWidget *PlayerSeparator;
728 GtkWidget *EventBox;
729 GtkWidget *MenuItem;
730 gint32 i;
731 eng_obj *pic;
732
733 if (global->phase < PHASE_GAMEPLAY) return;
734 if (p->spectator) return;
735 if (p->game != currentgame->gameid) return;
736 if (p->playerlist_LabelNamePlayer) return; /* already created */
737
738 /* select a token which is not already chosen */
739 for (i = 0; i <= data->token_max; i++) {
740 player *q;
741 for (q = player_h; q; q = q->next) {
742 if (q->spectator) continue;
743 if (q->game != currentgame->gameid) continue;
744 if (q->tokenid == i) break;
745 }
746 if (!q) {
747 p->tokenid = i;
748 break;
749 }
750 }
751 if (p->tokenid < 0) {
1223752 return;
1224753 }
1225754
1226 global->MessageBox = gtk_scrolled_window_new(NULL, NULL);
1227 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(global->MessageBox),
1228 GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
1229 gtk_container_add(GTK_CONTAINER(container), global->MessageBox);
1230
1231 /* Create the text view */
1232 global->Message = gtk_text_view_new();
1233 gtk_text_view_set_editable(GTK_TEXT_VIEW(global->Message), FALSE);
1234 gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(global->Message), GTK_WRAP_CHAR);
1235 textbuff = gtk_text_view_get_buffer(GTK_TEXT_VIEW(global->Message));
1236 gtk_text_buffer_get_end_iter(textbuff, &textiter);
1237 gtk_text_buffer_create_mark(textbuff, "endmark", &textiter, FALSE);
1238 gtk_container_add(GTK_CONTAINER(global->MessageBox), global->Message);
1239
1240 global->message_nb_lines = 0;
1241 }
1242
1243
1244 gboolean interface_message_and_chat_scroll_to_the_end(gpointer data) {
755 p->playerlist_box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
756 gtk_box_pack_start(GTK_BOX(currentgame->PlayerList), p->playerlist_box, FALSE, FALSE, 0);
757
758 /* event box */
759 EventBox = gtk_event_box_new();
760 gtk_widget_set_halign(EventBox, GTK_ALIGN_START);
761 gtk_widget_set_valign(EventBox, GTK_ALIGN_CENTER);
762 g_signal_connect(G_OBJECT(EventBox), "button_press_event", G_CALLBACK(Callback_ClicOnPlayer), NULL);
763 gtk_box_pack_start(GTK_BOX(p->playerlist_box), EventBox, FALSE, FALSE, 0);
764
765 /* box which contain all widgets for a player */
766 PlayerHorizontalBox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
767 gtk_container_add(GTK_CONTAINER(EventBox), PlayerHorizontalBox);
768
769 /* building popup player menu */
770 PlayerPopupMenu = gtk_menu_new();
771 g_object_set_data(G_OBJECT(PlayerPopupMenu), "player", p);
772 g_object_set_data(G_OBJECT(EventBox), "menu", PlayerPopupMenu);
773
774 MenuItem = gtk_menu_item_new_with_label("Initiate a trade");
775 gtk_menu_shell_append(GTK_MENU_SHELL(PlayerPopupMenu), MenuItem);
776 g_object_set_data(G_OBJECT(MenuItem), "action", GINT_TO_POINTER(PLAYER_ACTION_TRADE));
777 g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_PopupMenuPlayer), NULL);
778 gtk_widget_show(MenuItem);
779
780 MenuItem = gtk_menu_item_new();
781 gtk_menu_shell_append(GTK_MENU_SHELL(PlayerPopupMenu), MenuItem);
782 gtk_widget_show(MenuItem);
783
784 MenuItem = gtk_menu_item_new_with_label("Request version");
785 gtk_menu_shell_append(GTK_MENU_SHELL(PlayerPopupMenu), MenuItem);
786 g_object_set_data(G_OBJECT(MenuItem), "action", GINT_TO_POINTER(PLAYER_ACTION_VERSION));
787 g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_PopupMenuPlayer), NULL);
788 gtk_widget_show(MenuItem);
789
790 MenuItem = gtk_menu_item_new_with_label("Request date");
791 gtk_menu_shell_append(GTK_MENU_SHELL(PlayerPopupMenu), MenuItem);
792 g_object_set_data(G_OBJECT(MenuItem), "action", GINT_TO_POINTER(PLAYER_ACTION_DATE));
793 g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_PopupMenuPlayer), NULL);
794 gtk_widget_show(MenuItem);
795
796 MenuItem = gtk_menu_item_new_with_label("Request ping");
797 gtk_menu_shell_append(GTK_MENU_SHELL(PlayerPopupMenu), MenuItem);
798 g_object_set_data(G_OBJECT(MenuItem), "action", GINT_TO_POINTER(PLAYER_ACTION_PING));
799 g_signal_connect(G_OBJECT(MenuItem), "activate", G_CALLBACK(CallBack_PopupMenuPlayer), NULL);
800 gtk_widget_show(MenuItem);
801
802 /* token player in playerlist */
803 p->playerlist_token_gdkrgb = gtk_drawing_area_new();
804 gtk_widget_set_size_request(p->playerlist_token_gdkrgb, data->playerlist_token_width, data->playerlist_token_height );
805 gtk_widget_set_halign(p->playerlist_token_gdkrgb, GTK_ALIGN_CENTER);
806 gtk_widget_set_valign(p->playerlist_token_gdkrgb, GTK_ALIGN_CENTER);
807 gtk_box_pack_start(GTK_BOX(PlayerHorizontalBox), p->playerlist_token_gdkrgb, TRUE, TRUE, 0);
808 g_signal_connect(G_OBJECT(p->playerlist_token_gdkrgb), "draw", G_CALLBACK(on_playertoken_draw), NULL);
809 g_object_set_data(G_OBJECT(p->playerlist_token_gdkrgb), "player", p);
810
811 /* name, money, cards owned by player */
812 PlayerGrid = gtk_grid_new();
813 gtk_grid_set_row_spacing(GTK_GRID(PlayerGrid), 0);
814 gtk_grid_set_column_spacing(GTK_GRID(PlayerGrid), 0);
815 gtk_box_pack_start(GTK_BOX(PlayerHorizontalBox), PlayerGrid, FALSE, FALSE, 0);
816
817 /* cards */
818 p->playerlist_cards_gdkrgb = gtk_drawing_area_new();
819 gtk_widget_set_size_request( GTK_WIDGET(p->playerlist_cards_gdkrgb), data->playerlist_cards_width, data->playerlist_cards_height );
820 gtk_grid_attach(GTK_GRID(PlayerGrid), p->playerlist_cards_gdkrgb, 0, 1, 2, 1);
821 g_signal_connect(G_OBJECT(p->playerlist_cards_gdkrgb), "draw", G_CALLBACK(on_playercards_draw), NULL);
822 g_object_set_data(G_OBJECT(p->playerlist_cards_gdkrgb), "player", p);
823
824 /* name */
825 p->playerlist_LabelNamePlayer = gtk_label_new(NULL);
826 gtk_widget_set_halign(p->playerlist_LabelNamePlayer, GTK_ALIGN_START);
827 gtk_widget_set_valign(p->playerlist_LabelNamePlayer, GTK_ALIGN_CENTER);
828 gtk_grid_attach(GTK_GRID(PlayerGrid), p->playerlist_LabelNamePlayer, 0, 0, 1, 1);
829
830 if(p->hasturn) {
831 gchar *tmp = g_markup_printf_escaped("<span foreground=\"#ff0000\">%s</span>", p->name);
832 gtk_label_set_markup(GTK_LABEL(p->playerlist_LabelNamePlayer), tmp);
833 g_free(tmp);
834 } else {
835 gchar *tmp = g_markup_printf_escaped("<span foreground=\"#000000\">%s</span>", p->name);
836 gtk_label_set_markup(GTK_LABEL(p->playerlist_LabelNamePlayer), tmp);
837 g_free(tmp);
838 }
839
840 /* money */
841 p->playerlist_LabelMoneyPlayer = gtk_label_new(NULL);
842 gtk_widget_set_halign(p->playerlist_LabelMoneyPlayer, GTK_ALIGN_END);
843 gtk_widget_set_valign(p->playerlist_LabelMoneyPlayer, GTK_ALIGN_CENTER);
844 gtk_grid_attach(GTK_GRID(PlayerGrid), p->playerlist_LabelMoneyPlayer, 1, 0, 1, 1);
845
846 if(p->hasturn) {
847 gchar *tmp = g_markup_printf_escaped("<span foreground=\"#ff0000\">%d</span>", p->money);
848 gtk_label_set_markup(GTK_LABEL(p->playerlist_LabelMoneyPlayer), tmp);
849 g_free(tmp);
850 } else {
851 gchar *tmp = g_markup_printf_escaped("<span foreground=\"#000000\">%d</span>", p->money);
852 gtk_label_set_markup(GTK_LABEL(p->playerlist_LabelMoneyPlayer), tmp);
853 g_free(tmp);
854 }
855
856 /* playerlist token frame */
857 eng_frame *token_frame = p->playerlist_token_frame = eng_frame_create();
858 eng_frame_set_width(token_frame, data->playerlist_token_width);
859 eng_frame_set_height(token_frame, data->playerlist_token_height);
860
861 /* playerlist token pic */
862 pic = p->playerlist_token_pic = eng_pic_create(token_frame);
863 eng_pic_set_x(pic, (data->playerlist_token_width - data->pngfile_token_width[p->tokenid]) / 2);
864 eng_pic_set_y(pic, (data->playerlist_token_height - data->pngfile_token_height[p->tokenid]) / 2);
865 eng_pic_set_z(pic, 0);
866 eng_pic_set_width(pic, data->pngfile_token_width[p->tokenid]);
867 eng_pic_set_height(pic, data->pngfile_token_height[p->tokenid]);
868 eng_pic_set_buf(pic, data->pngfile_token_buf[p->tokenid]);
869
870 /* draw token */
871 eng_create_frame(token_frame);
872
873 /* engine frame cards */
874 eng_frame *card_frame = p->playerlist_cards_frame = eng_frame_create();
875 eng_frame_set_width(card_frame, data->playerlist_cards_width);
876 eng_frame_set_height(card_frame, data->playerlist_cards_height);
877
878 /* cards */
879 for(i = 0; i < data->number_playerlist_card; i++) {
880 gint32 t;
881
882 pic = p->playerlist_cards_pic[i] = eng_pic_create(card_frame);
883 eng_pic_set_x(pic, data->playerlist_card[i].x);
884 eng_pic_set_y(pic, data->playerlist_card[i].y);
885 eng_pic_set_z(pic, data->playerlist_card[i].z);
886 t = data->playerlist_card[i].buffer_card;
887 eng_pic_set_width(pic, data->pngfile_card_width[t]);
888 eng_pic_set_height(pic, data->pngfile_card_height[t]);
889
890 if(currentgame->estate[ data->playerlist_card[i].estateid ].owner == (gint32)p->playerid) {
891
892 if(currentgame->estate[ data->playerlist_card[i].estateid ].mortgaged) {
893
894 eng_pic_set_alpha(pic, data->playerlist_cards_alphamortgage);
895 eng_pic_set_bgcolor(pic, data->playerlist_cards_cardbgcolormortgage);
896 }
897 else {
898
899 eng_pic_set_alpha(pic, data->playerlist_cards_alphaowned);
900 eng_pic_set_bgcolor(pic, data->playerlist_cards_cardbgcolor);
901 }
902 }
903 else {
904
905 eng_pic_set_alpha(pic, data->playerlist_cards_alphaunowned);
906 eng_pic_set_bgcolor(pic, data->playerlist_cards_cardbgcolor);
907 }
908
909 eng_pic_set_buf(pic, data->pngfile_card_buf[t]);
910 }
911 /* draw cards */
912 eng_create_frame(card_frame);
913
914 /* token on board */
915 pic = p->token_pic = eng_pic_create(currentgame->board_frame);
916 eng_pic_set_z(pic, 1);
917 eng_pic_set_width(pic, data->pngfile_token_width[p->tokenid]);
918 eng_pic_set_height(pic, data->pngfile_token_height[p->tokenid]);
919 eng_pic_set_buf(pic, data->pngfile_token_buf[p->tokenid]);
920 if (p->bankrupt) {
921 eng_pic_unshow(pic);
922 }
923
924 /* set token location to target location */
925 p->location = p->location_to;
926
927 /* separator */
928 PlayerSeparator = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL);
929 gtk_box_pack_start(GTK_BOX(p->playerlist_box), PlayerSeparator, FALSE, FALSE, 0);
930
931 gtk_widget_show_all(p->playerlist_box);
932 }
933
934 void interface_gameboard_remove_player(player *p) {
935 gint32 i;
936
937 if (global->phase < PHASE_GAMEPLAY) return;
938 if (p->spectator) return;
939
940 eng_pic_destroy(p->token_pic);
941 p->token_pic = NULL;
942 p->tokenid = -1;
943
944 if (p->playerlist_box) {
945 gtk_widget_destroy(p->playerlist_box);
946 p->playerlist_box = NULL;
947 p->playerlist_LabelNamePlayer = NULL;
948 p->playerlist_LabelMoneyPlayer = NULL;
949 p->playerlist_cards_gdkrgb = NULL;
950 p->playerlist_token_gdkrgb = NULL;
951 }
952
953 eng_frame_destroy(p->playerlist_token_frame);
954 p->playerlist_token_frame = NULL;
955 p->playerlist_token_pic = NULL;
956
957 eng_frame_destroy(p->playerlist_cards_frame);
958 p->playerlist_cards_frame = NULL;
959 for (i = 0; i < MAX_PLAYERLIST_CARDS; i++) {
960 p->playerlist_cards_pic[i] = NULL;
961 }
962 }
963
964
965 gboolean interface_chat_scroll_to_the_end(gpointer data) {
1245966 GtkWidget *widget = GTK_WIDGET(data);
1246967 GtkTextBuffer *textbuff = gtk_text_view_get_buffer(GTK_TEXT_VIEW(widget));
1247968 GtkTextMark *textmark = gtk_text_buffer_get_mark(textbuff, "endmark");
1250971 }
1251972
1252973
1253 void interface_unparent_message() {
1254
1255 if(!global->MessageBox) return;
1256
1257 gtk_widget_hide( GTK_WIDGET(global->MessageBox) );
1258 gtk_widget_reparent(GTK_WIDGET(global->MessageBox), global->Trick);
1259 }
1260
1261
1262 void interface_destroy_message() {
1263
1264 if(!global->MessageBox) return;
1265
1266 if(global->MessageFrame)
1267 gtk_widget_destroy( GTK_WIDGET(global->MessageFrame) );
1268
1269 if(global->MessageWindow)
1270 gtk_widget_destroy( GTK_WIDGET(global->MessageWindow) );
1271
1272 global->MessageWindow = 0;
1273 global->MessageFrame = 0;
1274 global->MessageBox = 0;
1275 global->Message = 0;
1276 }
1277
1278
1279974 void interface_create_chat(GtkWidget *container) {
1280975
1281976 //currentgame->ChatBox
1288983
1289984 if(! currentgame) return;
1290985
1291 /* already created, just reparent */
986 /* already created */
1292987 if(currentgame->ChatBox) {
1293 gtk_widget_reparent(GTK_WIDGET(currentgame->ChatBox), container);
988 gtk_container_add(GTK_CONTAINER(container), currentgame->ChatBox);
989 g_object_unref(G_OBJECT(currentgame->ChatBox));
1294990 /* This is a bit ugly but I could not find a better way */
1295 g_timeout_add(100, interface_message_and_chat_scroll_to_the_end, currentgame->Chat);
991 g_timeout_add(100, interface_chat_scroll_to_the_end, currentgame->Chat);
1296992 return;
1297993 }
1298994
1299995 currentgame->ChatBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
996 gtk_widget_set_size_request(currentgame->ChatBox, -1, 160);
1300997 gtk_container_add(GTK_CONTAINER(container), currentgame->ChatBox);
1301998
1302999 /* Create a scrolled window and put the textview in it */
13111008 textbuff = gtk_text_view_get_buffer(GTK_TEXT_VIEW(currentgame->Chat));
13121009 gtk_text_buffer_get_end_iter(textbuff, &textiter);
13131010 gtk_text_buffer_create_mark(textbuff, "endmark", &textiter, FALSE);
1314 currentgame->chat_nb_lines = 0;
13151011 gtk_container_add(GTK_CONTAINER(ChatScrolledWindow), currentgame->Chat);
13161012
13171013 /* send entry */
13261022 if(! currentgame) return;
13271023 if(! currentgame->ChatBox) return;
13281024
1329 gtk_widget_hide( GTK_WIDGET(currentgame->ChatBox) );
1330 gtk_widget_reparent(GTK_WIDGET(currentgame->ChatBox), global->Trick);
1331 }
1332
1333
1334 void interface_destroy_chat() {
1335
1336 if(! currentgame) return;
1337 if(! currentgame->ChatBox) return;
1338
1339 if(currentgame->ChatFrame)
1340 gtk_widget_destroy( GTK_WIDGET(currentgame->ChatFrame) );
1341
1342 if(currentgame->ChatWindow)
1343 gtk_widget_destroy( GTK_WIDGET(currentgame->ChatWindow) );
1344
1345 currentgame->ChatWindow = 0;
1346 currentgame->ChatFrame = 0;
1347 currentgame->ChatBox = 0;
1348 currentgame->Chat = 0;
1349 }
1350
1351
1352 void interface_create_auctionbox() {
1025 GtkWidget *parent = gtk_widget_get_parent(currentgame->ChatBox);
1026 if (parent == NULL) {
1027 return;
1028 }
1029
1030 g_object_ref(G_OBJECT(currentgame->ChatBox));
1031 gtk_container_remove(GTK_CONTAINER(parent), currentgame->ChatBox);
1032 }
1033
1034
1035 void interface_create_auctionbox(gint32 auctionid, gint32 estateid) {
13531036
13541037 GtkWidget *vbox;
1355 GtkWidget *scrolledwindow;
1356 GtkWidget *text;
1357 GtkTextBuffer *textbuff;
1358 GtkTextIter textiter;
1038 GtkWidget *PlayerScrollwin;
1039 GtkWidget *PlayerList;
13591040 GtkWidget *hbox_entry;
13601041 GtkWidget *entry;
1361 GtkWidget *Alignment;
1362 GtkWidget *hbox_buttons;
1363 GtkWidget *button;
1042 GtkWidget *hbox_buttons;
1043 GtkWidget *button;
1044
1045 GtkWidget *label;
1046 GtkTreeIter iter;
1047 GtkTreeSelection *select;
1048 GtkCellRenderer *renderer;
1049 GtkTreeViewColumn *column;
1050 GtkListStore *store;
13641051
13651052 vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
1366 gtk_widget_set_hexpand(vbox, TRUE);
1367 gtk_widget_set_vexpand(vbox, TRUE);
13681053 gtk_container_set_border_width(GTK_CONTAINER(vbox), 15);
13691054 g_object_set_data(G_OBJECT(currentgame->BoardCenter), "auctionbox", vbox);
13701055 gtk_box_pack_start(GTK_BOX(currentgame->BoardCenter), vbox, TRUE, TRUE, 0);
13711056
1372 // hbox_text = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
1373 // gtk_box_pack_start(GTK_BOX(vbox), hbox_text, TRUE, TRUE, 0);
1374
1375 /* text box */
1376 scrolledwindow = gtk_scrolled_window_new(NULL, NULL);
1377 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolledwindow),
1378 GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
1379
1380 text = gtk_text_view_new();
1381 gtk_text_view_set_editable(GTK_TEXT_VIEW(text), FALSE);
1382 gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(text), GTK_WRAP_WORD);
1383
1384 textbuff = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text));
1385 gtk_text_buffer_get_end_iter(textbuff, &textiter);
1386 gtk_text_buffer_create_mark(textbuff, "endmark", &textiter, FALSE);
1387
1388 g_object_set_data(G_OBJECT(currentgame->BoardCenter), "auction_text", text);
1389 gtk_container_add(GTK_CONTAINER(scrolledwindow), text);
1390 gtk_box_pack_start(GTK_BOX(vbox), scrolledwindow, TRUE, TRUE, 0);
1057 label = gtk_label_new(NULL);
1058 gtk_label_set_use_markup(GTK_LABEL(label), TRUE);
1059 gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
1060 gtk_widget_set_halign(label, GTK_ALIGN_CENTER);
1061 gtk_widget_set_valign(label, GTK_ALIGN_CENTER);
1062 gtk_widget_set_margin_bottom(label, 15);
1063 gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
1064 gchar *tmp = g_markup_printf_escaped("<span size=\"xx-large\"><b>%s</b></span>", currentgame->estate[estateid].name);
1065 gtk_label_set_markup(GTK_LABEL(label), tmp);
1066 g_free(tmp);
1067
1068 /* player list */
1069 PlayerScrollwin = gtk_scrolled_window_new(NULL, NULL);
1070 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(PlayerScrollwin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
1071 gtk_box_pack_start(GTK_BOX(vbox), PlayerScrollwin, TRUE, TRUE, 0);
1072
1073 PlayerList = gtk_tree_view_new();
1074 gtk_container_add(GTK_CONTAINER(PlayerScrollwin), PlayerList);
1075 select = gtk_tree_view_get_selection(GTK_TREE_VIEW(PlayerList));
1076 gtk_tree_selection_set_mode(select, GTK_SELECTION_NONE);
1077
1078 renderer = gtk_cell_renderer_text_new();
1079 column = gtk_tree_view_column_new_with_attributes("Player", renderer, "text", AUCTIONPLAYERLIST_COLUMN_NAME, "weight", AUCTIONPLAYERLIST_WEIGHT, "weight-set", AUCTIONPLAYERLIST_WEIGHTSET, NULL);
1080 gtk_tree_view_append_column(GTK_TREE_VIEW(PlayerList), column);
1081 column = gtk_tree_view_column_new_with_attributes("Bid", renderer, "text", AUCTIONPLAYERLIST_COLUMN_BID, "weight", AUCTIONPLAYERLIST_WEIGHT, "weight-set", AUCTIONPLAYERLIST_WEIGHTSET, NULL);
1082 gtk_tree_view_append_column(GTK_TREE_VIEW(PlayerList), column);
1083
1084 store = gtk_list_store_new(AUCTIONPLAYERLIST_COLUMN_NUM, G_TYPE_STRING, G_TYPE_INT, G_TYPE_INT, G_TYPE_INT, G_TYPE_INT);
1085 g_object_set_data(G_OBJECT(currentgame->BoardCenter), "auction_store", store);
1086 gtk_tree_view_set_model(GTK_TREE_VIEW(PlayerList), GTK_TREE_MODEL(store));
1087 g_object_unref(store);
1088
1089 player *p;
1090 for (p = player_h; p; p = p->next) {
1091 if (p->spectator) continue;
1092 if (p->game != currentgame->gameid) continue;
1093
1094 gtk_list_store_append(store, &iter);
1095 gtk_list_store_set(store, &iter,
1096 AUCTIONPLAYERLIST_COLUMN_NAME, p->name,
1097 AUCTIONPLAYERLIST_COLUMN_BID, 0,
1098 AUCTIONPLAYERLIST_COLUMN_PLAYERID, p->playerid,
1099 AUCTIONPLAYERLIST_WEIGHT, PANGO_WEIGHT_NORMAL,
1100 AUCTIONPLAYERLIST_WEIGHTSET, TRUE,
1101 -1);
1102 }
1103
1104 /* Status label */
1105 label = gtk_label_new(NULL);
1106 gtk_widget_set_halign(label, GTK_ALIGN_START);
1107 gtk_widget_set_valign(label, GTK_ALIGN_CENTER);
1108 gtk_widget_set_margin_top(label, 2);
1109 gtk_widget_set_margin_bottom(label, 2);
1110 g_object_set_data(G_OBJECT(currentgame->BoardCenter), "auction_statuslabel", label);
1111 gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
13911112
13921113 /* commands */
13931114 hbox_entry = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
1394 gtk_box_pack_start(GTK_BOX(vbox), hbox_entry, FALSE, TRUE, 0);
13951115
13961116 /* send entry */
13971117 entry = gtk_entry_new();
1398 g_object_set_data(G_OBJECT(currentgame->BoardCenter), "auction_entry", entry);
13991118 gtk_box_pack_start(GTK_BOX(hbox_entry), entry, FALSE, FALSE, 0);
14001119 gtk_entry_set_width_chars(GTK_ENTRY(entry), 4);
1120 g_object_set_data(G_OBJECT(entry), "auctionid", GINT_TO_POINTER(auctionid));
14011121 g_signal_connect(G_OBJECT(entry), "activate", G_CALLBACK(Callback_AuctionButton_Absolute), (gpointer)entry);
14021122
14031123 button = gtk_button_new_with_label("Bid");
1404 gtk_widget_set_size_request(button, 40, -1);
14051124 gtk_box_pack_start(GTK_BOX(hbox_entry), button, FALSE, FALSE, 0);
1125 g_object_set_data(G_OBJECT(button), "auctionid", GINT_TO_POINTER(auctionid));
14061126 g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(Callback_AuctionButton_Absolute), (gpointer)entry);
14071127
1408 /* buttons entry */
1409 Alignment = gtk_alignment_new(1.0, 0.5, 0.0, 1.0);
1410 gtk_box_pack_start(GTK_BOX(hbox_entry), Alignment, TRUE, TRUE, 0);
1128 /* quick button */
14111129 hbox_buttons = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
1412 gtk_container_add(GTK_CONTAINER(Alignment), hbox_buttons);
14131130
14141131 button = gtk_button_new_with_label("+1");
1415 g_object_set_data(G_OBJECT(button), "auction_entry", entry);
14161132 g_object_set_data(G_OBJECT(button), "value_add", GINT_TO_POINTER(1));
1133 g_object_set_data(G_OBJECT(button), "auctionid", GINT_TO_POINTER(auctionid));
14171134 gtk_box_pack_start(GTK_BOX(hbox_buttons), button, FALSE, FALSE, 0);
14181135 g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(Callback_AuctionButton_Relative), NULL);
14191136
14201137 button = gtk_button_new_with_label("+10");
1421 g_object_set_data(G_OBJECT(button), "auction_entry", entry);
14221138 g_object_set_data(G_OBJECT(button), "value_add", GINT_TO_POINTER(10));
1139 g_object_set_data(G_OBJECT(button), "auctionid", GINT_TO_POINTER(auctionid));
14231140 gtk_box_pack_start(GTK_BOX(hbox_buttons), button, FALSE, FALSE, 0);
14241141 g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(Callback_AuctionButton_Relative), NULL);
14251142
14261143 button = gtk_button_new_with_label("+50");
1427 g_object_set_data(G_OBJECT(button), "auction_entry", entry);
14281144 g_object_set_data(G_OBJECT(button), "value_add", GINT_TO_POINTER(50));
1145 g_object_set_data(G_OBJECT(button), "auctionid", GINT_TO_POINTER(auctionid));
14291146 gtk_box_pack_start(GTK_BOX(hbox_buttons), button, FALSE, FALSE, 0);
14301147 g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(Callback_AuctionButton_Relative), NULL);
14311148
14321149 button = gtk_button_new_with_label("+100");
1433 g_object_set_data(G_OBJECT(button), "auction_entry", entry);
14341150 g_object_set_data(G_OBJECT(button), "value_add", GINT_TO_POINTER(100));
1151 g_object_set_data(G_OBJECT(button), "auctionid", GINT_TO_POINTER(auctionid));
14351152 gtk_box_pack_start(GTK_BOX(hbox_buttons), button, FALSE, FALSE, 0);
14361153 g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(Callback_AuctionButton_Relative), NULL);
1154
1155
1156 gtk_box_pack_start(GTK_BOX(vbox), hbox_buttons, FALSE, FALSE, 0);
1157 gtk_box_pack_start(GTK_BOX(vbox), hbox_entry, FALSE, FALSE, 0);
14371158
14381159 gtk_widget_show_all(vbox);
14391160 }
14521173 GTK_DIALOG_MODAL, "_OK", GTK_RESPONSE_ACCEPT,
14531174 NULL);
14541175 gtk_window_set_default_size(GTK_WINDOW(AboutDlg), 200, 0);
1455 // gtk_window_set_icon(GTK_WINDOW(global->MainWin), global->icon_pixbuf);
1176 gtk_window_set_transient_for(GTK_WINDOW(AboutDlg), GTK_WINDOW(global->MainWin));
14561177 g_signal_connect_swapped(G_OBJECT(AboutDlg), "response",
14571178 G_CALLBACK(gtk_widget_destroy), G_OBJECT(AboutDlg));
14581179
15211242
15221243 global->ConfigWin = gtk_window_new(GTK_WINDOW_TOPLEVEL);
15231244 gtk_window_set_title(GTK_WINDOW(global->ConfigWin), "GtkAtlantic: Configuration");
1524 gtk_window_set_icon(GTK_WINDOW(global->MainWin), global->icon_pixbuf);
15251245 g_signal_connect(G_OBJECT(global->ConfigWin), "delete_event", G_CALLBACK(gtk_widget_destroy), NULL);
15261246 g_signal_connect(G_OBJECT(global->ConfigWin), "destroy", G_CALLBACK(CallBack_configwindow_destroyed), NULL);
15271247
15501270 g_object_set_data(G_OBJECT(global->ConfigWin), "config_player_nickname", Entry);
15511271 gtk_entry_set_text(GTK_ENTRY(Entry), config->nickname);
15521272
1553 /* horizontal box for metaserver & custom server */
1554 hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
1555 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, TRUE, 0);
1556
15571273
15581274 /* METASERVER */
15591275 Frame = gtk_frame_new("Meta server");
15601276 gtk_container_set_border_width(GTK_CONTAINER(Frame), BORDER);
1561 gtk_box_pack_start(GTK_BOX(hbox), Frame, TRUE, TRUE, 0);
1277 gtk_box_pack_start(GTK_BOX(vbox), Frame, TRUE, TRUE, 0);
15621278
15631279 vboxFrame = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
15641280 gtk_container_set_border_width(GTK_CONTAINER(vboxFrame), BORDER);
15691285 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(CButton), config->metaserver_sendclientversion);
15701286 gtk_box_pack_start(GTK_BOX(vboxFrame), CButton, FALSE, FALSE, 0);
15711287
1572 CButton = gtk_check_button_new_with_label("Get servers list automatically");
1573 g_object_set_data(G_OBJECT(global->ConfigWin), "config_metaserver_autogetlist", CButton);
1574 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(CButton), config->metaserver_autogetlist);
1288 CButton = gtk_check_button_new_with_label("Autoconnect");
1289 g_object_set_data(G_OBJECT(global->ConfigWin), "config_metaserver_autoconnect", CButton);
1290 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(CButton), config->metaserver_autoconnect);
15751291 gtk_box_pack_start(GTK_BOX(vboxFrame), CButton, FALSE, FALSE, 0);
15761292
1577 CButton = gtk_check_button_new_with_label("Get games list automatically");
1578 g_object_set_data(G_OBJECT(global->ConfigWin), "config_metaserver_autogetgames", CButton);
1579 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(CButton), config->metaserver_autogetgames);
1580 gtk_box_pack_start(GTK_BOX(vboxFrame), CButton, FALSE, FALSE, 0);
1581
15821293
15831294 /* DEFAULT CUSTOM SERVER */
1584 Frame = gtk_frame_new("Default custom server");
1295 Frame = gtk_frame_new("Default server");
15851296 gtk_container_set_border_width(GTK_CONTAINER(Frame), BORDER);
1586 gtk_box_pack_start(GTK_BOX(hbox), Frame, TRUE, TRUE, 0);
1297 gtk_box_pack_start(GTK_BOX(vbox), Frame, TRUE, TRUE, 0);
15871298
15881299 vboxFrame = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
15891300 gtk_container_set_border_width(GTK_CONTAINER(vboxFrame), BORDER);
15901301 gtk_container_add(GTK_CONTAINER(Frame), vboxFrame);
15911302
15921303 hboxFrame = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, BORDER);
1593 gtk_box_pack_start(GTK_BOX(vboxFrame), hboxFrame, FALSE, TRUE, 0);
1594
1595 Label = gtk_label_new("host/port");
1304 gtk_box_pack_start(GTK_BOX(vboxFrame), hboxFrame, FALSE, FALSE, 0);
1305
1306 Label = gtk_label_new("Host");
15961307 gtk_box_pack_start(GTK_BOX(hboxFrame), Label, FALSE, FALSE, 0);
15971308
15981309 Entry = gtk_entry_new();
15991310 g_object_set_data(G_OBJECT(global->ConfigWin), "config_customserver_host", Entry);
16001311 gtk_entry_set_text(GTK_ENTRY(Entry), config->getgames_host);
1601 gtk_box_pack_start(GTK_BOX(hboxFrame), Entry, TRUE, TRUE, 0);
1312 gtk_box_pack_start(GTK_BOX(hboxFrame), Entry, FALSE, FALSE, 0);
1313
1314 hboxFrame = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, BORDER);
1315 gtk_box_pack_start(GTK_BOX(vboxFrame), hboxFrame, FALSE, FALSE, 0);
1316
1317 Label = gtk_label_new("Port");
1318 gtk_box_pack_start(GTK_BOX(hboxFrame), Label, FALSE, FALSE, 0);
16021319
16031320 Entry = gtk_entry_new();
16041321 g_object_set_data(G_OBJECT(global->ConfigWin), "config_customserver_port", Entry);
16081325 gtk_widget_set_size_request(Entry, 45, -1);
16091326 gtk_box_pack_start(GTK_BOX(hboxFrame), Entry, FALSE, FALSE, 0);
16101327
1611 CButton = gtk_check_button_new_with_label("Get games list automatically");
1612 g_object_set_data(G_OBJECT(global->ConfigWin), "config_customserver_autogetgames", CButton);
1613 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(CButton), config->getgames_autogetgames);
1328 CButton = gtk_check_button_new_with_label("Autoconnect");
1329 g_object_set_data(G_OBJECT(global->ConfigWin), "config_customserver_autoconnect", CButton);
1330 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(CButton), config->getgames_autoconnect);
16141331 gtk_box_pack_start(GTK_BOX(vboxFrame), CButton, FALSE, FALSE, 0);
1615
1616
1617 /* SERVER MESSAGE BUFFER SIZE */
1618 Frame = gtk_frame_new("Buffer sizes");
1619 gtk_container_set_border_width(GTK_CONTAINER(Frame), BORDER);
1620 gtk_box_pack_start(GTK_BOX(vbox), Frame, FALSE, TRUE, 0);
1621
1622 vboxFrame = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
1623 gtk_container_set_border_width(GTK_CONTAINER(vboxFrame), BORDER);
1624 gtk_container_add(GTK_CONTAINER(Frame), vboxFrame);
1625
1626 hboxFrame = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, BORDER);
1627 gtk_box_pack_start(GTK_BOX(vboxFrame), hboxFrame, FALSE, FALSE, 0);
1628
1629 Label = gtk_label_new("Server messages : ");
1630 gtk_box_pack_start(GTK_BOX(hboxFrame), Label, FALSE, FALSE, 0);
1631
1632 Entry = gtk_entry_new();
1633 g_object_set_data(G_OBJECT(global->ConfigWin), "config_buffersize_servermessages", Entry);
1634 text = g_strdup_printf("%d", config->message_max_lines);
1635 gtk_entry_set_text(GTK_ENTRY(Entry), text);
1636 g_free(text);
1637 gtk_widget_set_size_request(Entry, 45, -1);
1638 gtk_box_pack_start(GTK_BOX(hboxFrame), Entry, FALSE, FALSE, 0);
1639
1640 Label = gtk_label_new("lines (0=Unlimited)");
1641 gtk_box_pack_start(GTK_BOX(hboxFrame), Label, FALSE, FALSE, 0);
1642
1643 hboxFrame = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, BORDER);
1644 gtk_box_pack_start(GTK_BOX(vboxFrame), hboxFrame, FALSE, FALSE, 0);
1645
1646 Label = gtk_label_new("Chat : ");
1647 gtk_box_pack_start(GTK_BOX(hboxFrame), Label, FALSE, FALSE, 0);
1648
1649 Entry = gtk_entry_new();
1650 g_object_set_data(G_OBJECT(global->ConfigWin), "config_buffersize_chat", Entry);
1651 text = g_strdup_printf("%d", config->chat_max_lines);
1652 gtk_entry_set_text(GTK_ENTRY(Entry), text);
1653 g_free(text);
1654 gtk_widget_set_size_request(Entry, 45, -1);
1655 gtk_box_pack_start(GTK_BOX(hboxFrame), Entry, FALSE, FALSE, 0);
1656
1657 Label = gtk_label_new("lines (0=Unlimited)");
1658 gtk_box_pack_start(GTK_BOX(hboxFrame), Label, FALSE, FALSE, 0);
16591332
16601333
16611334 /* INTERFACE GAME CONFIG */
17091382 /* CANCEL/OK BUTTON */
17101383 /* horizontal box buttons */
17111384 hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
1712 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, TRUE, 0);
1385 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
17131386
17141387 Button = gtk_button_new_with_label("CANCEL");
17151388 gtk_widget_set_size_request(Button, 130, 45);
17271400 }
17281401
17291402
1403 /* create the little window connect to server */
1404 void interface_create_connectoserver(void) {
1405
1406 GtkWidget *win;
1407 GtkWidget *grid;
1408 GtkWidget *Entry;
1409 GtkWidget *Label;
1410
1411 gchar *text;
1412
1413 win = gtk_dialog_new_with_buttons("GtkAtlantic: Connect to server",
1414 GTK_WINDOW(global->MainWin), GTK_DIALOG_MODAL,
1415 "Close", GTK_RESPONSE_CLOSE, "Connect", GTK_RESPONSE_OK, NULL);
1416
1417 grid = gtk_grid_new();
1418 gtk_grid_set_column_spacing(GTK_GRID(grid), 5);
1419 gtk_grid_set_row_spacing(GTK_GRID(grid), 2);
1420 gtk_container_set_border_width(GTK_CONTAINER(grid), 10);
1421 gtk_container_add(GTK_CONTAINER(gtk_dialog_get_content_area(GTK_DIALOG(win))), grid);
1422
1423 Label = gtk_label_new("Hostname:");
1424 gtk_widget_set_halign(Label, GTK_ALIGN_START);
1425 gtk_widget_set_valign(Label, GTK_ALIGN_CENTER);
1426 gtk_grid_attach(GTK_GRID(grid), Label, 0, 0, 1, 1);
1427
1428 Entry = gtk_entry_new();
1429 gtk_widget_set_size_request(Entry, 150, -1);
1430 g_object_set_data(G_OBJECT(win), "host", Entry);
1431 gtk_entry_set_text(GTK_ENTRY(Entry), config->getgames_host);
1432 gtk_grid_attach(GTK_GRID(grid), Entry, 1, 0, 1, 1);
1433
1434 Label = gtk_label_new("Port:");
1435 gtk_widget_set_halign(Label, GTK_ALIGN_END);
1436 gtk_widget_set_valign(Label, GTK_ALIGN_CENTER);
1437 gtk_grid_attach(GTK_GRID(grid), Label, 0, 1, 1, 1);
1438
1439 Entry = gtk_entry_new();
1440 gtk_widget_set_size_request(Entry, 150, -1);
1441 g_object_set_data(G_OBJECT(win), "port", Entry);
1442 text = g_strdup_printf("%d", config->getgames_port);
1443 gtk_entry_set_text(GTK_ENTRY(Entry), text);
1444 g_free(text);
1445 gtk_grid_attach(GTK_GRID(grid), Entry, 1, 1, 1, 1);
1446
1447 g_signal_connect(G_OBJECT(win), "response", G_CALLBACK(CallBack_response_connect_to_server_window), win);
1448
1449 gtk_widget_show_all(win);
1450 }
1451
1452
1453 /* create the public server list window */
1454 void interface_create_publicserverlist(void) {
1455
1456 GtkWidget *win;
1457 GtkWidget *frame;
1458 GtkWidget *scrollwin;
1459 GtkWidget *ServerList;
1460
1461 GtkCellRenderer *renderer;
1462 GtkTreeSelection *select;
1463 GtkTreeViewColumn *column;
1464
1465 win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
1466 gtk_widget_set_size_request(win, 700, 300);
1467 gtk_window_set_title(GTK_WINDOW(win), "GtkAtlantic: Public server list");
1468 g_signal_connect(G_OBJECT(win), "delete_event", G_CALLBACK(gtk_widget_destroy), NULL);
1469
1470 frame = gtk_frame_new("Public server list");
1471 gtk_container_set_border_width(GTK_CONTAINER(frame), 5);
1472 gtk_container_add(GTK_CONTAINER(win), frame);
1473
1474 scrollwin = gtk_scrolled_window_new(NULL, NULL);
1475 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrollwin), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
1476 gtk_container_set_border_width(GTK_CONTAINER(scrollwin), 5);
1477 gtk_container_add(GTK_CONTAINER(frame), scrollwin);
1478
1479 ServerList = gtk_tree_view_new();
1480 gtk_container_add(GTK_CONTAINER(scrollwin), ServerList);
1481 select = gtk_tree_view_get_selection(GTK_TREE_VIEW(ServerList));
1482 gtk_tree_selection_set_mode(select, GTK_SELECTION_NONE);
1483
1484 renderer = gtk_cell_renderer_text_new();
1485 column = gtk_tree_view_column_new_with_attributes("Host", renderer, "text", SERVERLIST_COLUMN_HOST, NULL);
1486 gtk_tree_view_append_column(GTK_TREE_VIEW(ServerList), column);
1487 column = gtk_tree_view_column_new_with_attributes("Port", renderer, "text", SERVERLIST_COLUMN_PORT, NULL);
1488 gtk_tree_view_append_column(GTK_TREE_VIEW(ServerList), column);
1489 column = gtk_tree_view_column_new_with_attributes("Version", renderer, "text", SERVERLIST_COLUMN_VERSION, NULL);
1490 gtk_tree_view_append_column(GTK_TREE_VIEW(ServerList), column);
1491 column = gtk_tree_view_column_new_with_attributes("Users", renderer, "text", SERVERLIST_COLUMN_USERS, NULL);
1492 gtk_tree_view_append_column(GTK_TREE_VIEW(ServerList), column);
1493
1494 gtk_tree_view_set_model(GTK_TREE_VIEW(ServerList), GTK_TREE_MODEL(global->server_store));
1495
1496 gtk_widget_show_all(win);
1497 }
1498
1499
17301500 /* create the little window change nickname */
17311501 void interface_create_nicknamewin() {
17321502
17391509 GTK_WINDOW(global->MainWin), GTK_DIALOG_MODAL,
17401510 "_OK", GTK_RESPONSE_OK, NULL);
17411511
1742 // gtk_window_set_icon(GTK_WINDOW(global->MainWin), global->icon_pixbuf);
1743 // g_signal_connect(G_OBJECT(NicknameWin), "delete_event", G_CALLBACK(gtk_widget_destroy, NULL);
1744
17451512 HBox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
17461513 gtk_container_set_border_width(GTK_CONTAINER(HBox), 10);
17471514 gtk_container_add(GTK_CONTAINER(gtk_dialog_get_content_area(GTK_DIALOG(NicknameWin))), HBox);
17521519 Entry = gtk_entry_new();
17531520 gtk_widget_set_size_request(Entry, 150, -1);
17541521 g_object_set_data(G_OBJECT(NicknameWin), "nickname", Entry);
1755 gtk_entry_set_text(GTK_ENTRY(Entry), global->player[ get_player_slot_with_playerid(global->my_playerid) ].name);
1522 gtk_entry_set_text(GTK_ENTRY(Entry), player_from_id(global->my_playerid)->name);
17561523 gtk_box_pack_start(GTK_BOX(HBox), Entry, TRUE, TRUE, 0);
17571524
17581525 g_signal_connect(G_OBJECT(NicknameWin), "response", G_CALLBACK(CallBack_response_changenick_window), NicknameWin);
17691536 GtkWidget *ScrollWin;
17701537 GtkWidget *EstateTree;
17711538 GtkWidget *VBox;
1772 GtkWidget *Alignment;
1773 GtkWidget *Label;
1539 GtkWidget *Label;
17741540
17751541 GtkTreeViewColumn *estateTreeCol;
17761542 GtkCellRenderer *estateTreeRenderer;
17841550 currentgame->WinEstateTree = EstateWin = gtk_window_new(GTK_WINDOW_TOPLEVEL);
17851551 gtk_widget_set_size_request(EstateWin, 450, 400);
17861552 gtk_window_set_title(GTK_WINDOW(EstateWin), "GtkAtlantic: Estates Tree");
1787 gtk_window_set_icon(GTK_WINDOW(global->MainWin), global->icon_pixbuf);
17881553 g_signal_connect(G_OBJECT(EstateWin), "delete_event", G_CALLBACK(gtk_widget_destroy), NULL);
17891554 g_signal_connect(G_OBJECT(EstateWin), "destroy", G_CALLBACK(CallBack_EstateTree_Destroyed), NULL);
17901555
18611626 gtk_box_pack_start(GTK_BOX(HBox), VBox, TRUE, TRUE, 0);
18621627
18631628 /* default text */
1864 Alignment = gtk_alignment_new(0.0, 0.0, 0.0, 0.0);
1865 gtk_box_pack_start(GTK_BOX(VBox), Alignment, FALSE, TRUE, 0);
18661629 Label = gtk_label_new("Select an estate...");
1867 gtk_container_add(GTK_CONTAINER(Alignment), Label);
1630 gtk_widget_set_halign(Label, GTK_ALIGN_START);
1631 gtk_widget_set_valign(Label, GTK_ALIGN_START);
1632 gtk_box_pack_start(GTK_BOX(VBox), Label, FALSE, TRUE, 0);
18681633
18691634
18701635 gtk_widget_show_all(EstateWin);
18831648 global->HelpWin = HelpWin = gtk_window_new(GTK_WINDOW_TOPLEVEL);
18841649 gtk_widget_set_size_request(HelpWin, 700, 500);
18851650 gtk_window_set_title(GTK_WINDOW(HelpWin), "GtkAtlantic: Help");
1886 gtk_window_set_icon(GTK_WINDOW(global->MainWin), global->icon_pixbuf);
18871651 g_signal_connect(G_OBJECT(HelpWin), "delete_event", G_CALLBACK(gtk_widget_destroy), NULL);
18881652 g_signal_connect(G_OBJECT(HelpWin), "destroy", G_CALLBACK(CallBack_HelpWin_Destroyed), NULL);
18891653
19911755 }
19921756
19931757
1758 static gboolean infolabel_timeout(gpointer data) {
1759 (void)data;
1760
1761 gtk_label_set_text(GTK_LABEL(global->InfoLabel), NULL);
1762 global->timeout_InfoLabel = 0;
1763 return FALSE;
1764 }
1765
1766 void interface_set_infolabel(gchar *text, gchar *color, gboolean eternal) {
1767 gchar *tmp = g_markup_printf_escaped("<span foreground=\"#%s\">%s</span>", color, text);
1768 gtk_label_set_markup(GTK_LABEL(global->InfoLabel), tmp);
1769 g_free(tmp);
1770 if (global->timeout_InfoLabel) {
1771 g_source_remove(global->timeout_InfoLabel);
1772 global->timeout_InfoLabel = 0;
1773 }
1774 if (!eternal) {
1775 global->timeout_InfoLabel = g_timeout_add_seconds(5, infolabel_timeout, NULL);
1776 }
1777 }
1778
1779
19941780 /* generic window with a label into */
19951781 void interface_create_messagewin(gchar *msg) {
19961782 (void)msg;
1997
1998 /* GtkWidget *MessageWin;
1783 #if 0
1784 GtkWidget *MessageWin;
19991785 GtkWidget *VBox;
2000 GtkWidget *Alignment;
2001 GtkWidget *Label;
2002 GtkWidget *Button;
1786 GtkWidget *Label;
1787 GtkWidget *Button;
20031788
20041789
20051790 MessageWin = gtk_window_new(GTK_WINDOW_DIALOG);
20131798 VBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
20141799 gtk_container_set_border_width(GTK_CONTAINER(VBox), 10);
20151800 gtk_container_add(GTK_CONTAINER(MessageWin), VBox);
2016 */
1801
20171802 /* text */
2018 /* Label = gtk_label_new(msg);
1803 Label = gtk_label_new(msg);
20191804 gtk_label_set_line_wrap(GTK_LABEL(Label), TRUE);
20201805 gtk_box_pack_start(GTK_BOX(VBox), Label, TRUE, TRUE, 0);
2021 */
1806
20221807 /* ok button */
2023 /* Alignment = gtk_alignment_new(0.5, 0.5, 0.0, 0.0);
2024 gtk_widget_set_size_request(Alignment, -1, 50);
2025 gtk_box_pack_start(GTK_BOX(VBox), Alignment, FALSE, FALSE, 0);
2026
20271808 Button = gtk_button_new_with_label("OK");
1809 gtk_widget_set_halign(Button, GTK_ALIGN_CENTER);
1810 gtk_widget_set_valign(Button, GTK_ALIGN_CENTER);
20281811 gtk_widget_set_size_request(Button, 70, -1);
2029 gtk_container_add(GTK_CONTAINER(Alignment), Button);
1812 gtk_box_pack_start(GTK_BOX(VBox), Button, FALSE, FALSE, 0);
20301813
20311814 g_signal_connect_object(G_OBJECT(Button), "clicked", G_CALLBACK(gtk_widget_destroy), MessageWin, G_CONNECT_SWAPPED);
20321815
20331816 gtk_widget_show_all(MessageWin);
2034 */
1817 #endif
20351818 }
20361819
20371820
20711854 /* when receive event: redraw player token */
20721855 void on_playertoken_draw(GtkWidget *widget, cairo_t *cr, gpointer d) {
20731856 (void)d;
2074 gint32 id;
20751857 eng_frame *frame;
20761858 gint32 width, height, stride;
20771859 eng_coord coord;
20781860 cairo_surface_t *surface;
20791861 guint8 *buf;
20801862
2081 id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(widget), "playerid"));
2082 frame = global->player[id].playerlist_token_frame;
1863 player *p = g_object_get_data(G_OBJECT(widget), "player");
1864 frame = p->playerlist_token_frame;
20831865
20841866 width = data->playerlist_token_width;
20851867 height = data->playerlist_token_height;
21011883 /* when receive event: redraw player cards */
21021884 void on_playercards_draw(GtkWidget *widget, cairo_t *cr, gpointer d) {
21031885 (void)d;
2104 gint32 id;
21051886 eng_frame *frame;
21061887 gint32 width, height, stride;
21071888 eng_coord coord;
21081889 cairo_surface_t *surface;
21091890 guint8 *buf;
21101891
2111 id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(widget), "playerid"));
2112 frame = global->player[id].playerlist_cards_frame;
1892 player *p = g_object_get_data(G_OBJECT(widget), "player");
1893 frame = p->playerlist_cards_frame;
21131894
21141895 width = data->playerlist_cards_width;
21151896 height = data->playerlist_cards_height;
21291910 }
21301911
21311912
2132 /* when receive event: redraw logo */
2133 void on_logo_draw(GtkWidget *widget, cairo_t *cr, gpointer d) {
2134 (void)d;
2135 gint32 height, width, stride;
2136 cairo_surface_t *surface;
2137 guint8 *buf;
2138 eng_coord coord;
2139
2140 width = gtk_widget_get_allocated_width(widget);
2141 height = gtk_widget_get_allocated_height(widget);
2142 stride = cairo_format_stride_for_width(CAIRO_FORMAT_ARGB32, width);
2143 coord.x = 0;
2144 coord.y = 0;
2145 coord.width = width;
2146 coord.height = height;
2147 coord.stride = stride;
2148
2149 buf = eng_get_zone(global->logo_frame, &coord);
2150 surface = cairo_image_surface_create_for_data((unsigned char*)buf, CAIRO_FORMAT_ARGB32, width, height, stride);
2151 cairo_set_source_surface(cr, surface, 0, 0);
2152 cairo_paint(cr);
2153 cairo_surface_destroy(surface);
2154 g_free(buf);
2155 }
2156
2157
21581913 /* update display */
21591914 void update_display() {
21601915 guint32 i;
21931948
21941949
21951950 /* draw playerlist */
2196 for(i = 0 ; i < MAX_PLAYERS ; i++) {
1951 player *p;
1952 for (p = player_h; p; p = p->next) {
21971953 eng_frame *frame;
21981954 gint32 width, height;
21991955 eng_coord coord;
22001956
2201 if(! global->player[i].playerid) continue;
2202 if (global->player[i].spectator) continue;
2203 if(global->player[i].game != currentgame->gameid) continue;
2204 if(! global->player[i].playerlist_cards_gdkrgb) continue;
1957 if (p->spectator) continue;
1958 if (p->game != currentgame->gameid) continue;
1959 if (!p->playerlist_cards_gdkrgb) continue;
22051960
22061961 /* playerlist cards */
2207 frame = global->player[i].playerlist_cards_frame;
1962 frame = p->playerlist_cards_frame;
22081963 eng_create_frame(frame);
22091964
22101965 width = data->playerlist_cards_width;
22161971
22171972 /* force draw event */
22181973 if ( eng_zone_is_modified(frame, &coord) ) {
2219 gtk_widget_queue_draw_area(global->player[i].playerlist_cards_gdkrgb, 0, 0, width, height);
1974 gtk_widget_queue_draw_area(p->playerlist_cards_gdkrgb, 0, 0, width, height);
22201975 }
22211976
22221977 /* playerlist token */
2223 frame = global->player[i].playerlist_token_frame;
1978 frame = p->playerlist_token_frame;
22241979 eng_create_frame(frame);
22251980
22261981 width = data->playerlist_token_width;
22321987
22331988 /* force draw event */
22341989 if ( eng_zone_is_modified(frame, &coord) ) {
2235 gtk_widget_queue_draw_area(global->player[i].playerlist_token_gdkrgb, 0, 0, width, height);
2236 }
2237 }
2238 }
1990 gtk_widget_queue_draw_area(p->playerlist_token_gdkrgb, 0, 0, width, height);
1991 }
1992 }
1993 }
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
20
21 #ifndef INTERFACE_H
22 #define INTERFACE_H
23
24 #include <stdbool.h>
2025
2126 #define BORDER 3
2227
2328 /* prototypes of interface.c */
2429
2530 void interface_create_mainwindow();
26 void interface_create_menubar();
27 void interface_create_logo();
28 void interface_create_getgamespage();
31 void interface_create_getgamespage(bool autoconnect);
2932 void interface_create_gameconfigpage();
3033 void interface_create_gameinitpage();
3134 void interface_create_gameboardpage();
32 void interface_message_and_chat_float_unfloat();
33 void interface_create_message(GtkWidget *container);
34 gboolean interface_message_and_chat_scroll_to_the_end(gpointer data);
35 void interface_unparent_message();
36 void interface_destroy_message();
35 void interface_gameboard_add_player(player *p);
36 void interface_gameboard_remove_player(player *p);
37 gboolean interface_chat_scroll_to_the_end(gpointer data);
3738 void interface_create_chat(GtkWidget *container);
3839 void interface_unparent_chat();
39 void interface_destroy_chat();
40 void interface_create_auctionbox();
40 void interface_create_auctionbox(gint32 auctionid, gint32 estateid);
4141 void interface_create_aboutwin();
4242 void interface_create_config_panel();
43 void interface_create_connectoserver(void);
44 void interface_create_publicserverlist(void);
4345 void interface_create_nicknamewin();
4446 void interface_create_estates_tree();
4547 void interface_create_helpwin();
4648
49 void interface_set_infolabel(gchar *text, gchar *color, gboolean eternal);
4750 void interface_create_messagewin(gchar *msg);
4851
4952 void on_board_draw(GtkWidget *widget, cairo_t *cr, gpointer data);
5053 void on_playertoken_draw(GtkWidget *widget, cairo_t *cr, gpointer data);
5154 void on_playercards_draw(GtkWidget *widget, cairo_t *cr, gpointer data);
52 void on_logo_draw(GtkWidget *widget, cairo_t *cr, gpointer data);
5355 void update_display();
56
57 #endif /* INTERFACE_H */
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
20
21 #include "config.h"
2022
2123 #include <stdio.h>
2224 #include <stdlib.h>
2931
3032 #include <libxml/parser.h>
3133
32 #include "config.h"
33
3434 #include "load.h"
3535 #include "global.h"
3636 #include "readpng.h"
3737 #include "parser.h"
3838
39 #ifdef WIN32
40 #undef PACKAGE_DATA_DIR
41 #define PACKAGE_DATA_DIR "./data"
42 #endif
43
4439 /* parse a config file */
4540 gint8 parse_file_config(gchar *filename) {
4641
6156 if(! strcmp(ident, "player") ) {
6257
6358 tmp = parser_get_data(str, "nickname");
64 if(config->nickname) g_free(config->nickname);
65 config->nickname = tmp;
59 if (tmp) {
60 if(config->nickname) g_free(config->nickname);
61 config->nickname = tmp;
62 }
6663
6764 } else if(! strcmp(ident, "metaserver") ) {
6865
69 tmp = parser_get_data(str, "autogetgames");
70 config->metaserver_autogetgames = atoi( (gchar*)tmp );
71 g_free(tmp);
72
73 tmp = parser_get_data(str, "autogetlist");
74 config->metaserver_autogetlist = atoi( (gchar*)tmp );
75 g_free(tmp);
66 tmp = parser_get_data(str, "autoconnect");
67 if (tmp) {
68 config->metaserver_autoconnect = atoi( (gchar*)tmp );
69 g_free(tmp);
70 }
7671
7772 tmp = parser_get_data(str, "sendclientversion");
78 config->metaserver_sendclientversion = atoi( (gchar*)tmp );
79 g_free(tmp);
73 if (tmp) {
74 config->metaserver_sendclientversion = atoi( (gchar*)tmp );
75 g_free(tmp);
76 }
8077
8178 } else if(! strcmp(ident, "customserver") ) {
8279
8380 tmp = parser_get_data(str, "host");
84 if(config->getgames_host) g_free(config->getgames_host);
85 config->getgames_host = tmp;
81 if (tmp) {
82 if(config->getgames_host) g_free(config->getgames_host);
83 config->getgames_host = tmp;
84 }
8685
8786 tmp = parser_get_data(str, "port");
88 config->getgames_port = atoi( (gchar*)tmp );
89 g_free(tmp);
90
91 tmp = parser_get_data(str, "autogetgames");
92 config->getgames_autogetgames = atoi( (gchar*)tmp );
93 g_free(tmp);
94
95 } else if(! strcmp(ident, "buffer") ) {
96
97 tmp = parser_get_data(str, "message");
98 config->message_max_lines = atoi( (gchar*)tmp );
99 g_free(tmp);
100
101 tmp = parser_get_data(str, "chat");
102 config->chat_max_lines = atoi( (gchar*)tmp );
103 g_free(tmp);
87 if (tmp) {
88 config->getgames_port = atoi( (gchar*)tmp );
89 g_free(tmp);
90 }
91
92 tmp = parser_get_data(str, "autoconnect");
93 if (tmp) {
94 config->getgames_autoconnect = atoi( (gchar*)tmp );
95 g_free(tmp);
96 }
10497
10598 } else if(! strcmp(ident, "interface") ) {
10699
107100 tmp = parser_get_data(str, "playerlist");
108 if(! strcmp( tmp, "left") )
109 config->game_playerlist_position = GAME_PLAYERLIST_POS_LEFT;
110 if(! strcmp( tmp, "right") )
111 config->game_playerlist_position = GAME_PLAYERLIST_POS_RIGHT;
112 g_free(tmp);
101 if (tmp) {
102 if(! strcmp( tmp, "left") )
103 config->game_playerlist_position = GAME_PLAYERLIST_POS_LEFT;
104 if(! strcmp( tmp, "right") )
105 config->game_playerlist_position = GAME_PLAYERLIST_POS_RIGHT;
106 g_free(tmp);
107 }
113108
114109 tmp = parser_get_data(str, "token_speed");
115 config->game_token_animation_speed = atoi( (gchar*)tmp );
116 g_free(tmp);
110 if (tmp) {
111 config->game_token_animation_speed = atoi( (gchar*)tmp );
112 g_free(tmp);
113 }
117114
118115 tmp = parser_get_data(str, "token_transparency");
119 config->game_token_transparency = atoi( (gchar*)tmp );
120 g_free(tmp);
116 if (tmp) {
117 config->game_token_transparency = atoi( (gchar*)tmp );
118 g_free(tmp);
119 }
121120 }
122121
123122 g_free(ident);
135134
136135 xmlDocPtr doc;
137136 xmlNodePtr cur, cur2;
138 guint8 ident = 0xff;
137 guint8 ident;
139138 guint32 color;
140139 gint32 xoffset, yoffset;
141 gchar *filename;
142140 xmlChar *tmp;
143141
144 filename = g_strconcat(PACKAGE_DATA_DIR, "/interface.xml", NULL);
145 doc = xmlParseFile(filename);
146 g_free(filename);
147
148 if(doc == NULL) return -1;
142 doc = xmlParseFile(PACKAGE_DATA_DIR "/interface.xml");
143 if (doc == NULL) return -1;
149144
150145 cur = xmlDocGetRootElement(doc);
151146 if (cur == NULL) {
164159 /* ===== PNGFILES ===== */
165160 /* ==================== */
166161
167 /* parse pngfile_logo */
168 if(! xmlStrcmp(cur->name, (xmlChar*)"pngfile_logo") ) {
169
170 data->pngfile_logo_filename = (gchar*)xmlGetProp(cur, (xmlChar*)"filename");
171
172 cur2 = cur->xmlChildrenNode;
173 do {
174
175 if(! xmlStrcmp(cur2->name, (xmlChar*)"buffer") ) {
176
177 tmp = xmlGetProp(cur2, (xmlChar*)"id");
178 if( xmlStrcmp(tmp, (xmlChar*)"full") ) g_free(data->pngfile_logo_filename);
179 g_free(tmp);
180 }
181
182 cur2 = cur2 -> next;
183 } while(cur2 != NULL);
184 }
185
186162 /* parse pngfile_board */
187163 if(! xmlStrcmp(cur->name, (xmlChar*)"pngfile_board") ) {
188164
231207 tmp = xmlGetProp(cur2, (xmlChar*)"id");
232208 ident = atoi( (gchar*)tmp );
233209 g_free(tmp);
210 if (ident > data->token_max) {
211 data->token_max = ident;
212 }
234213
235214 tmp = xmlGetProp(cur2, (xmlChar*)"x");
236215 data->pngfile_token_x[ident] = atoi( (gchar*)tmp );
698677 }
699678
700679
701 /* read all intro pngs images */
702 gint8 intro_load_pngs() {
703 _png_imagedata png_imagedata;
704 gchar *filename;
705 gint8 ret = 0;
706
707 memset(&png_imagedata, 0, sizeof(_png_imagedata));
708
709 /* ---- load logo file */
710 filename = g_strconcat(PACKAGE_DATA_DIR, "/", data->pngfile_logo_filename, NULL);
711 if (readpng_read(filename, &png_imagedata)) {
712 ret = -1;
713 goto free_and_return;
714 }
715
716 data->logo_width = readpng_get_width(&png_imagedata);
717 data->logo_height = readpng_get_height(&png_imagedata);
718 data->pngfile_logo_buf = readpng_get_rgba(&png_imagedata);
719
720 free_and_return:
721 g_free(filename);
722 readpng_cleanup(&png_imagedata);
723 return ret;
724 }
725
726
727 /* free all intro pngs images */
728 void intro_free_pngs() {
729
730 if (data->pngfile_logo_buf) {
731 g_free(data->pngfile_logo_buf);
732 data->pngfile_logo_buf = NULL;
733 }
734 }
735
736
737680 /* read all game pngs images */
738681 gint8 game_load_pngs() {
739682 _png_imagedata png_imagedata;
746689 }
747690
748691 /* ---- load board file */
749 filename = g_strconcat(PACKAGE_DATA_DIR, "/", data->pngfile_board_filename, NULL);
692 filename = g_strconcat(PACKAGE_DATA_DIR "/", data->pngfile_board_filename, NULL);
750693 if (readpng_read(filename, &png_imagedata)) {
751694 ret = -1;
752695 goto free_and_return;
761704
762705
763706 /* ---- load token file */
764 filename = g_strconcat(PACKAGE_DATA_DIR, "/", data->pngfile_token_filename, NULL);
707 filename = g_strconcat(PACKAGE_DATA_DIR "/", data->pngfile_token_filename, NULL);
765708 if (readpng_read(filename, &png_imagedata)) {
766709 ret = -1;
767710 goto free_and_return;
776719
777720
778721 /* ---- load star file */
779 filename = g_strconcat(PACKAGE_DATA_DIR, "/", data->pngfile_star_filename, NULL);
722 filename = g_strconcat(PACKAGE_DATA_DIR "/", data->pngfile_star_filename, NULL);
780723 if (readpng_read(filename, &png_imagedata)) {
781724 ret = -1;
782725 goto free_and_return;
791734
792735
793736 /* ---- load star_m file (mortgaged) */
794 filename = g_strconcat(PACKAGE_DATA_DIR, "/", data->pngfile_star_m_filename, NULL);
737 filename = g_strconcat(PACKAGE_DATA_DIR "/", data->pngfile_star_m_filename, NULL);
795738 if (readpng_read(filename, &png_imagedata)) {
796739 ret = -1;
797740 goto free_and_return;
806749
807750
808751 /* ---- load cards file */
809 filename = g_strconcat(PACKAGE_DATA_DIR, "/", data->pngfile_card_filename, NULL);
752 filename = g_strconcat(PACKAGE_DATA_DIR "/", data->pngfile_card_filename, NULL);
810753 if (readpng_read(filename, &png_imagedata)) {
811754 ret = -1;
812755 goto free_and_return;
822765
823766
824767 /* ---- load command file */
825 filename = g_strconcat(PACKAGE_DATA_DIR, "/", data->pngfile_command_filename, NULL);
768 filename = g_strconcat(PACKAGE_DATA_DIR "/", data->pngfile_command_filename, NULL);
826769 if (readpng_read(filename, &png_imagedata)) {
827770 ret = -1;
828771 goto free_and_return;
837780
838781
839782 /* ---- load horiz_houses file */
840 filename = g_strconcat(PACKAGE_DATA_DIR, "/", data->pngfile_horiz_house_filename, NULL);
783 filename = g_strconcat(PACKAGE_DATA_DIR "/", data->pngfile_horiz_house_filename, NULL);
841784 if (readpng_read(filename, &png_imagedata)) {
842785 ret = -1;
843786 goto free_and_return;
852795
853796
854797 /* ---- load vert_houses file */
855 filename = g_strconcat(PACKAGE_DATA_DIR, "/", data->pngfile_vert_house_filename, NULL);
798 filename = g_strconcat(PACKAGE_DATA_DIR "/", data->pngfile_vert_house_filename, NULL);
856799 if (readpng_read(filename, &png_imagedata)) {
857800 ret = -1;
858801 goto free_and_return;
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
20
21 #ifndef LOAD_H
22 #define LOAD_H
2023
2124 #include <gtk/gtk.h>
2225
2528
2629 gint8 parse_file_config(gchar *filename);
2730 gint8 xmlparse_file_interface();
28 gint8 intro_load_pngs();
29 void intro_free_pngs();
3031 gint8 game_load_pngs();
3132 void game_free_pngs();
33
34 #endif /* LOAD_H */
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
20
21 #include "config.h"
2022
2123 #include <stdio.h>
2224 #include <stdlib.h>
2325 #include <unistd.h>
26 #include <stdbool.h>
2427
2528 #include <gtk/gtk.h>
2629 #include <gdk/gdk.h>
27
28 #include "config.h"
2930
3031 #include "global.h"
3132 #include "interface.h"
6061 eng_init();
6162
6263 if( xmlparse_file_interface() ) exit(-1);
63 if( intro_load_pngs() ) exit(-1);
6464
6565 interface_create_mainwindow();
66 interface_create_menubar();
67 interface_create_logo();
66 interface_create_getgamespage(true);
6867
6968 gtk_main();
7069
71 /* cleanup */
72 intro_free_pngs();
73 game_free_pngs();
70 game_exit();
7471 #ifdef WIN32
7572 WSACleanup();
7673 #endif
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
20
21 #include "config.h"
2022
2123 #include <stdio.h>
2224 #include <stdlib.h>
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
20
21 #ifndef PARSER_H
22 #define PARSER_H
2023
2124 #include <gtk/gtk.h>
2225
2326 gchar *parser_get_identifier(gchar *str);
2427 gchar *parser_get_data(gchar *str, gchar *key);
28
29 #endif /* PARSER_H */
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
20
21 #include "config.h"
2022
2123 #include <stdio.h>
2224 #include <stdlib.h>
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
20
21 #ifndef READPNG_H
22 #define READPNG_H
2023
2124 #include <glib.h>
2225 #include <png.h>
3538 guint8 *readpng_get_rgba(_png_imagedata *png_imagedata);
3639 guint8 *readpng_get_rgba_crop(_png_imagedata *png_imagedata, gint32 x, gint32 y, gint32 width, gint32 height);
3740 void readpng_cleanup(_png_imagedata *png_imagedata);
41
42 #endif /* READPNG_H */
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
20
21 #include "config.h"
2022
2123 #include <stdio.h>
2224 #include <stdlib.h>
3537 #include "callback.h"
3638 #include "readpng.h"
3739
38 #include "config.h"
39
4040
4141 /* refresh themes database */
4242 void theme_build_database() {
5454 }
5555
5656 /* user home theme */
57 path = g_strconcat(global->path_home, "themes/", NULL);
58 d = opendir (path);
59
60 if(d) {
57 if (global->path_home) {
58 path = g_strconcat(global->path_home, "/themes", NULL);
59 d = opendir (path);
60
61 if(d) {
62
63 while (1) {
64
65 dir = readdir(d);
66 if(!dir) break;
67
68 if(dir->d_name[0] == '.') continue;
69
70 path2 = g_strconcat(path, "/", dir->d_name, "/", NULL);
71 theme_add_entry(path2);
72 g_free(path2);
73 }
74 closedir (d);
75 }
76 g_free(path);
77 }
78
79 /* global theme */
80 d = opendir (PACKAGE_DATA_DIR "/themes");
81 if (d) {
6182
6283 while (1) {
6384
6687
6788 if(dir->d_name[0] == '.') continue;
6889
69 path2 = g_strconcat(path, dir->d_name, "/", NULL);
90 path2 = g_strconcat(PACKAGE_DATA_DIR "/themes/", dir->d_name, "/", NULL);
7091 theme_add_entry(path2);
7192 g_free(path2);
7293 }
7394 closedir (d);
7495 }
75 g_free(path);
76
77 /* global theme */
78 path = g_strconcat(PACKAGE_DATA_DIR, "/themes/", NULL);
79 d = opendir (path);
80
81 if(d) {
82
83 while (1) {
84
85 dir = readdir(d);
86 if(!dir) break;
87
88 if(dir->d_name[0] == '.') continue;
89
90 path2 = g_strconcat(path, dir->d_name, "/", NULL);
91 theme_add_entry(path2);
92 g_free(path2);
93 }
94 closedir (d);
95 }
96 g_free(path);
9796 }
9897
9998
228227 GtkWidget *Button;
229228 GtkWidget *VBoxInfo;
230229 GtkWidget *GridInfo;
231 GtkWidget *Alignment;
232 GtkWidget *Label;
230 GtkWidget *Label;
233231 GtkWidget *PreviewFrame;
234232
235233 GtkWidget *tmp;
243241
244242 global->ThemeWin = ThemeWin = gtk_window_new(GTK_WINDOW_TOPLEVEL);
245243 gtk_window_set_title(GTK_WINDOW(ThemeWin), "GtkAtlantic: Theme Selection");
246 gtk_window_set_icon(GTK_WINDOW(global->MainWin), global->icon_pixbuf);
247244 g_signal_connect(G_OBJECT(ThemeWin), "delete_event", G_CALLBACK(CallBack_ThemeWin_Delete), NULL);
248245 g_signal_connect(G_OBJECT(ThemeWin), "destroy", G_CALLBACK(CallBack_ThemeWin_Destroyed), NULL);
249246
301298 gtk_grid_set_row_spacing(GTK_GRID(GridInfo), 2);
302299 gtk_box_pack_start(GTK_BOX(VBoxInfo), GridInfo, FALSE, FALSE, 0);
303300
304 Alignment = gtk_alignment_new(0.0, 0.5, 0.0, 0.0);
305 gtk_grid_attach(GTK_GRID(GridInfo), Alignment, 0, 0, 1, 1);
306301 Label = gtk_label_new("Name:");
307 gtk_container_add(GTK_CONTAINER(Alignment), Label);
308
309 Alignment = gtk_alignment_new(0.0, 0.5, 0.0, 0.0);
310 gtk_grid_attach(GTK_GRID(GridInfo), Alignment, 1, 0, 1, 1);
302 gtk_widget_set_halign(Label, GTK_ALIGN_START);
303 gtk_widget_set_valign(Label, GTK_ALIGN_CENTER);
304 gtk_grid_attach(GTK_GRID(GridInfo), Label, 0, 0, 1, 1);
305
311306 Label = gtk_label_new("");
307 gtk_widget_set_halign(Label, GTK_ALIGN_START);
308 gtk_widget_set_valign(Label, GTK_ALIGN_CENTER);
312309 g_object_set_data(G_OBJECT(ThemeWin), "theme_name", Label);
313 gtk_container_add(GTK_CONTAINER(Alignment), Label);
314
315 Alignment = gtk_alignment_new(0.0, 0.5, 0.0, 0.0);
316 gtk_grid_attach(GTK_GRID(GridInfo), Alignment, 0, 1, 1, 1);
310 gtk_grid_attach(GTK_GRID(GridInfo), Label, 1, 0, 1, 1);
311
317312 Label = gtk_label_new("Type:");
318 gtk_container_add(GTK_CONTAINER(Alignment), Label);
319
320 Alignment = gtk_alignment_new(0.0, 0.5, 0.0, 0.0);
321 gtk_grid_attach(GTK_GRID(GridInfo), Alignment, 1, 1, 1, 1);
313 gtk_widget_set_halign(Label, GTK_ALIGN_START);
314 gtk_widget_set_valign(Label, GTK_ALIGN_CENTER);
315 gtk_grid_attach(GTK_GRID(GridInfo), Label, 0, 1, 1, 1);
316
322317 Label = gtk_label_new("");
318 gtk_widget_set_halign(Label, GTK_ALIGN_START);
319 gtk_widget_set_valign(Label, GTK_ALIGN_CENTER);
323320 g_object_set_data(G_OBJECT(ThemeWin), "theme_type", Label);
324 gtk_container_add(GTK_CONTAINER(Alignment), Label);
325
326 Alignment = gtk_alignment_new(0.0, 0.5, 0.0, 0.0);
327 gtk_grid_attach(GTK_GRID(GridInfo), Alignment, 0, 2, 1, 1);
321 gtk_grid_attach(GTK_GRID(GridInfo), Label, 1, 1, 1, 1);
322
328323 Label = gtk_label_new("Version:");
329 gtk_container_add(GTK_CONTAINER(Alignment), Label);
330
331 Alignment = gtk_alignment_new(0.0, 0.5, 0.0, 0.0);
332 gtk_grid_attach(GTK_GRID(GridInfo), Alignment, 1, 2, 1, 1);
324 gtk_widget_set_halign(Label, GTK_ALIGN_START);
325 gtk_widget_set_valign(Label, GTK_ALIGN_CENTER);
326 gtk_grid_attach(GTK_GRID(GridInfo), Label, 0, 2, 1, 1);
327
333328 Label = gtk_label_new("");
329 gtk_widget_set_halign(Label, GTK_ALIGN_START);
330 gtk_widget_set_valign(Label, GTK_ALIGN_CENTER);
334331 g_object_set_data(G_OBJECT(ThemeWin), "theme_version", Label);
335 gtk_container_add(GTK_CONTAINER(Alignment), Label);
336
337 Alignment = gtk_alignment_new(0.0, 0.5, 0.0, 0.0);
338 gtk_grid_attach(GTK_GRID(GridInfo), Alignment, 0, 3, 1, 1);
332 gtk_grid_attach(GTK_GRID(GridInfo), Label, 1, 2, 1, 1);
333
339334 Label = gtk_label_new("Author:");
340 gtk_container_add(GTK_CONTAINER(Alignment), Label);
341
342 Alignment = gtk_alignment_new(0.0, 0.5, 0.0, 0.0);
343 gtk_grid_attach(GTK_GRID(GridInfo), Alignment, 1, 3, 1, 1);
335 gtk_widget_set_halign(Label, GTK_ALIGN_START);
336 gtk_widget_set_valign(Label, GTK_ALIGN_CENTER);
337 gtk_grid_attach(GTK_GRID(GridInfo), Label, 0, 3, 1, 1);
338
344339 Label = gtk_label_new("");
340 gtk_widget_set_halign(Label, GTK_ALIGN_START);
341 gtk_widget_set_valign(Label, GTK_ALIGN_CENTER);
345342 g_object_set_data(G_OBJECT(ThemeWin), "theme_author", Label);
346 gtk_container_add(GTK_CONTAINER(Alignment), Label);
347
348 Alignment = gtk_alignment_new(0.0, 0.5, 0.0, 0.0);
349 gtk_grid_attach(GTK_GRID(GridInfo), Alignment, 0, 4, 1, 1);
343 gtk_grid_attach(GTK_GRID(GridInfo), Label, 1, 3, 1, 1);
344
350345 Label = gtk_label_new("Email:");
351 gtk_container_add(GTK_CONTAINER(Alignment), Label);
352
353 Alignment = gtk_alignment_new(0.0, 0.5, 0.0, 0.0);
354 gtk_grid_attach(GTK_GRID(GridInfo), Alignment, 1, 4, 1, 1);
346 gtk_widget_set_halign(Label, GTK_ALIGN_START);
347 gtk_widget_set_valign(Label, GTK_ALIGN_CENTER);
348 gtk_grid_attach(GTK_GRID(GridInfo), Label, 0, 4, 1, 1);
349
355350 Label = gtk_label_new("");
351 gtk_widget_set_halign(Label, GTK_ALIGN_START);
352 gtk_widget_set_valign(Label, GTK_ALIGN_CENTER);
356353 g_object_set_data(G_OBJECT(ThemeWin), "theme_email", Label);
357 gtk_container_add(GTK_CONTAINER(Alignment), Label);
358
359 Alignment = gtk_alignment_new(0.0, 0.5, 0.0, 0.0);
360 gtk_grid_attach(GTK_GRID(GridInfo), Alignment, 0, 5, 1, 1);
354 gtk_grid_attach(GTK_GRID(GridInfo), Label, 1, 4, 1, 1);
355
361356 Label = gtk_label_new("Location:");
362 gtk_container_add(GTK_CONTAINER(Alignment), Label);
363
364 Alignment = gtk_alignment_new(0.0, 0.5, 0.0, 0.0);
365 gtk_grid_attach(GTK_GRID(GridInfo), Alignment, 1, 5, 1, 1);
357 gtk_widget_set_halign(Label, GTK_ALIGN_START);
358 gtk_widget_set_valign(Label, GTK_ALIGN_CENTER);
359 gtk_grid_attach(GTK_GRID(GridInfo), Label, 0, 5, 1, 1);
360
366361 Label = gtk_label_new("");
362 gtk_widget_set_halign(Label, GTK_ALIGN_START);
363 gtk_widget_set_valign(Label, GTK_ALIGN_CENTER);
367364 g_object_set_data(G_OBJECT(ThemeWin), "theme_location", Label);
368 gtk_container_add(GTK_CONTAINER(Alignment), Label);
365 gtk_grid_attach(GTK_GRID(GridInfo), Label, 1, 5, 1, 1);
369366
370367 /* preview */
371368 PreviewFrame = gtk_frame_new("Preview");
372369 gtk_box_pack_start(GTK_BOX(VBoxInfo), PreviewFrame, TRUE, TRUE, 0);
373
374 Alignment = gtk_alignment_new(0.5, 0.5, 0.0, 0.0);
375 g_object_set_data(G_OBJECT(ThemeWin), "theme_preview_container", Alignment);
376 gtk_widget_set_size_request(Alignment, 400, 245);
377 gtk_container_add(GTK_CONTAINER(PreviewFrame), Alignment);
370 gtk_widget_set_size_request(PreviewFrame, 400, 245);
371 g_object_set_data(G_OBJECT(ThemeWin), "theme_preview_container", PreviewFrame);
378372
379373 tmp = gtk_label_new("No preview available");
374 gtk_widget_set_halign(tmp, GTK_ALIGN_CENTER);
375 gtk_widget_set_valign(tmp, GTK_ALIGN_CENTER);
380376 g_object_set_data(G_OBJECT(ThemeWin), "theme_preview_data", tmp);
381 gtk_container_add(GTK_CONTAINER(Alignment), tmp);
377 gtk_container_add(GTK_CONTAINER(PreviewFrame), tmp);
382378
383379 g_object_set_data(G_OBJECT(global->ThemeWin), "theme_preview_image", NULL);
384380 str = g_strdup_printf("%d", -1);
436432 void theme_display(gint32 themeid) {
437433
438434 GtkWidget *Label;
439 GtkWidget *Alignment;
435 GtkWidget *Frame;
440436 GtkWidget *Preview;
441437 guint8 *buf = 0;
442438 gchar *tmp;
468464 /* free all preview data */
469465 theme_preview_free();
470466
471 Alignment = g_object_get_data(G_OBJECT(global->ThemeWin), "theme_preview_container");
467 Frame = g_object_get_data(G_OBJECT(global->ThemeWin), "theme_preview_container");
472468
473469 /* put new preview data */
474470 if(! (buf = theme_preview_read(themeid, &width, &height)) ) {
475471
476472 Preview = gtk_label_new("No preview available");
477473 g_object_set_data(G_OBJECT(global->ThemeWin), "theme_preview_data", Preview);
478 gtk_container_add(GTK_CONTAINER(Alignment), Preview);
479 gtk_widget_show_all(Alignment);
474 gtk_container_add(GTK_CONTAINER(Frame), Preview);
475 gtk_widget_show_all(Frame);
480476 return;
481477 }
482478
485481
486482 Preview = gtk_drawing_area_new();
487483 gtk_widget_set_size_request( GTK_WIDGET(Preview), width, height);
484 gtk_widget_set_halign(Preview, GTK_ALIGN_CENTER);
485 gtk_widget_set_valign(Preview, GTK_ALIGN_CENTER);
488486 g_object_set_data(G_OBJECT(global->ThemeWin), "theme_preview_data", Preview);
489 gtk_container_add(GTK_CONTAINER(Alignment), Preview);
487 gtk_container_add(GTK_CONTAINER(Frame), Preview);
490488 g_signal_connect(G_OBJECT (Preview), "draw", G_CALLBACK(on_theme_preview_draw), NULL);
491 gtk_widget_show_all(Alignment);
489 gtk_widget_show_all(Frame);
492490 }
493491
494492
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
20
21 #ifndef THEME_H
22 #define THEME_H
2023
2124 #include <gtk/gtk.h>
2225 #include <libxml/parser.h>
4144 guint8* theme_preview_read(gint32 themeid, guint32 *width, guint32 *height);
4245 void theme_load(gint32 themeid);
4346 void on_theme_preview_draw(GtkWidget *widget, cairo_t *cr, gpointer data);
47
48 #endif /* THEME_H */
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
20
21 #include "config.h"
2022
2123 #include <stdio.h>
2224 #include <stdlib.h>
4547
4648 /* no trade slot valid -> reject trade */
4749 sendstr = g_strdup_printf(".Tr%d\n", tradeid);
48 client_send(global->game_connectid, sendstr, strlen(sendstr));
50 client_send(global->game_connect, sendstr);
4951 g_free(sendstr);
5052 return;
5153 }
99101 TradeWin = currentgame->trade[tradeslot].TradeWin = gtk_window_new(GTK_WINDOW_TOPLEVEL);
100102 gtk_widget_set_size_request(TradeWin, 600, 220);
101103 gtk_window_set_title(GTK_WINDOW(TradeWin), "GtkAtlantic: Trade");
102 gtk_window_set_icon(GTK_WINDOW(global->MainWin), global->icon_pixbuf);
103104 g_object_set_data(G_OBJECT(TradeWin), "command", GINT_TO_POINTER(TRADE_ACTION_REJECT));
104105 g_object_set_data(G_OBJECT(TradeWin), "tradeid", GINT_TO_POINTER(currentgame->trade[tradeslot].tradeid));
105106 g_signal_connect(G_OBJECT(TradeWin), "delete_event", G_CALLBACK(CallBack_trade_button), NULL);
223224 store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(PlayerList)));
224225 gtk_list_store_clear(store);
225226
226 for(i = 0 ; i < MAX_PLAYERS ; i++) {
227 for (i = 0; i < TRADE_MAX_PLAYER; i++) {
228 trade_player *p = &currentgame->trade[tradeslot].player[i];
227229 GtkTreeIter iter;
228
229 if(! global->player[i].playerid) continue;
230 if (global->player[i].spectator) continue;
231 if(global->player[i].game != currentgame->gameid) continue;
232 if(! currentgame->trade[tradeslot].player[i][TRADE_PLAYER_PARTICIPATE]) continue;
230 if (!p->player) continue;
233231
234232 gtk_list_store_append(store, &iter);
235233 gtk_list_store_set(store, &iter,
236 TRADEPLAYERLIST_COLUMN_NAME, global->player[i].name,
237 TRADEPLAYERLIST_BGCOLOR_NAME, currentgame->trade[tradeslot].player[i][TRADE_PLAYER_ACCEPT] ? "green" : "red",
234 TRADEPLAYERLIST_COLUMN_NAME, p->player->name,
235 TRADEPLAYERLIST_BGCOLOR_NAME, p->accept ? "#c8ffc8" : "#ffc8c8",
238236 -1);
239237 }
240238 }
292290 GtkWidget *Label;
293291 GtkWidget *Entry;
294292 GtkWidget *Combo;
295 GtkWidget *Alignment;
296 GtkWidget *Button;
293 GtkWidget *Button;
297294
298295 guint32 i;
296 player *p;
299297
300298 if(!currentgame->trade[tradeslot].ComponentBox) return;
301299
312310 case TRADE_TYPE_ESTATE:
313311
314312 /* update button */
315 Alignment = gtk_alignment_new(0.5, 0.5, 0.0, 0.0);
316 gtk_box_pack_end(GTK_BOX(box), Alignment, FALSE, FALSE, 0);
317
318313 Button = gtk_button_new_with_label("Update");
319314 g_object_set_data(G_OBJECT(Button), "tradeid", GINT_TO_POINTER(currentgame->trade[tradeslot].tradeid));
320
321315 g_signal_connect(G_OBJECT(Button), "clicked", G_CALLBACK(CallBack_trade_update_component), NULL);
322 gtk_container_add(GTK_CONTAINER(Alignment), Button);
316 gtk_widget_set_halign(Button, GTK_ALIGN_CENTER);
317 gtk_widget_set_valign(Button, GTK_ALIGN_CENTER);
318 gtk_box_pack_end(GTK_BOX(box), Button, FALSE, FALSE, 0);
323319
324320 /* valid estates */
325321 Combo = gtk_combo_box_text_new();
344340 g_object_set_data(G_OBJECT(Button), "name_target_player", Combo);
345341 gtk_box_pack_start(GTK_BOX(box), Combo, FALSE, FALSE, 0);
346342
347 for(i = 0 ; i < MAX_PLAYERS ; i++) {
348
349 if(!global->player[i].playerid) continue;
350 if (global->player[i].spectator) continue;
351 if(global->player[i].game != currentgame->gameid) continue;
352 gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(Combo), global->player[i].name);
343 for (p = player_h; p; p = p->next) {
344 if (p->spectator) continue;
345 if (p->game != currentgame->gameid) continue;
346 gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(Combo), p->name);
353347 }
354348
355349 gtk_combo_box_set_active(GTK_COMBO_BOX(Combo), 0);
360354 case TRADE_TYPE_MONEY:
361355
362356 /* update button */
363 Alignment = gtk_alignment_new(0.5, 0.5, 0.0, 0.0);
364 gtk_box_pack_end(GTK_BOX(box), Alignment, FALSE, FALSE, 0);
365
366357 Button = gtk_button_new_with_label("Update");
367358 g_object_set_data(G_OBJECT(Button), "tradeid", GINT_TO_POINTER(currentgame->trade[tradeslot].tradeid));
368359 g_signal_connect(G_OBJECT(Button), "clicked", G_CALLBACK(CallBack_trade_update_component), NULL);
369 gtk_container_add(GTK_CONTAINER(Alignment), Button);
360 gtk_widget_set_halign(Button, GTK_ALIGN_CENTER);
361 gtk_widget_set_valign(Button, GTK_ALIGN_CENTER);
362 gtk_box_pack_end(GTK_BOX(box), Button, FALSE, FALSE, 0);
370363
371364 /* amount of money */
372365 Entry = gtk_entry_new();
383376 g_object_set_data(G_OBJECT(Button), "name_from_player", Combo);
384377 gtk_box_pack_start(GTK_BOX(box), Combo, FALSE, FALSE, 0);
385378
386 for(i = 0 ; i < MAX_PLAYERS ; i++) {
387
388 if(!global->player[i].playerid) continue;
389 if (global->player[i].spectator) continue;
390 if(global->player[i].game != currentgame->gameid) continue;
391 gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(Combo), global->player[i].name);
379 for (p = player_h; p; p = p->next) {
380 if (p->spectator) continue;
381 if (p->game != currentgame->gameid) continue;
382 gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(Combo), p->name);
392383
393384 }
394385
403394 g_object_set_data(G_OBJECT(Button), "name_to_player", Combo);
404395 gtk_box_pack_start(GTK_BOX(box), Combo, FALSE, FALSE, 0);
405396
406 for(i = 0 ; i < MAX_PLAYERS ; i++) {
407
408 if(!global->player[i].playerid) continue;
409 if (global->player[i].spectator) continue;
410 if(global->player[i].game != currentgame->gameid) continue;
411 gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(Combo), global->player[i].name);
397 for (p = player_h; p; p = p->next) {
398 if (p->spectator) continue;
399 if (p->game != currentgame->gameid) continue;
400 gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(Combo), p->name);
412401 }
413402 gtk_combo_box_set_active(GTK_COMBO_BOX(Combo), 0);
414403
418407 case TRADE_TYPE_CARD:
419408
420409 /* update button */
421 Alignment = gtk_alignment_new(0.5, 0.5, 0.0, 0.0);
422 gtk_box_pack_end(GTK_BOX(box), Alignment, FALSE, FALSE, 0);
423
424410 Button = gtk_button_new_with_label("Update");
425411 g_object_set_data(G_OBJECT(Button), "tradeid", GINT_TO_POINTER(currentgame->trade[tradeslot].tradeid));
426412 g_signal_connect(G_OBJECT(Button), "clicked", G_CALLBACK(CallBack_trade_update_component), NULL);
427 gtk_container_add(GTK_CONTAINER(Alignment), Button);
413 gtk_widget_set_halign(Button, GTK_ALIGN_CENTER);
414 gtk_widget_set_valign(Button, GTK_ALIGN_CENTER);
415 gtk_box_pack_end(GTK_BOX(box), Button, FALSE, FALSE, 0);
428416
429417 /* valid cards */
430418 Combo = gtk_combo_box_text_new();
435423 gchar *tmp;
436424
437425 if(!currentgame->card[i].owner) continue;
438 tmp = g_strdup_printf("%d", currentgame->card[i].cardid);
426 tmp = g_strdup_printf("%d: %s", currentgame->card[i].cardid, currentgame->card[i].title);
439427 gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(Combo), tmp);
440428 g_free(tmp);
441429 }
450438 g_object_set_data(G_OBJECT(Button), "name_target_player", Combo);
451439 gtk_box_pack_start(GTK_BOX(box), Combo, FALSE, FALSE, 0);
452440
453 for(i = 0 ; i < MAX_PLAYERS ; i++) {
454
455 if(!global->player[i].playerid) continue;
456 if (global->player[i].spectator) continue;
457 if(global->player[i].game != currentgame->gameid) continue;
458 gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(Combo), global->player[i].name);
441 for (p = player_h; p; p = p->next) {
442 if (p->spectator) continue;
443 if (p->game != currentgame->gameid) continue;
444 gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(Combo), p->name);
459445 }
460446 gtk_combo_box_set_active(GTK_COMBO_BOX(Combo), 0);
461447
470456 gint32 tradeslot;
471457
472458 tradeslot = get_trade_slot_with_tradeid(tradeid);
473 if(tradeslot < 0) return;
459 if (tradeslot < 0) return;
474460
475461 currentgame->trade[tradeslot].revision = revision;
476462 }
478464
479465 void trade_update_player(gint32 tradeid, gint32 playerid, gboolean accept) {
480466
481 gint32 tradeslot, playerslot;
467 gint32 tradeslot;
468 gint32 i;
482469
483470 tradeslot = get_trade_slot_with_tradeid(tradeid);
484 playerslot = get_player_slot_with_playerid(playerid);
485 if(tradeslot < 0) return;
486 if(playerslot < 0) return;
487
488 currentgame->trade[tradeslot].player[playerslot][TRADE_PLAYER_PARTICIPATE] = TRUE;
489 currentgame->trade[tradeslot].player[playerslot][TRADE_PLAYER_ACCEPT] = accept;
490 trade_rebuild_playerlist(tradeslot);
471 if (tradeslot < 0) return;
472
473 for (i = 0; i < TRADE_MAX_PLAYER; i++) {
474 trade_player *p = &currentgame->trade[tradeslot].player[i];
475 if (!p->player) continue;
476 if ((gint32)p->player->playerid != playerid) continue;
477 p->accept = accept;
478 trade_rebuild_playerlist(tradeslot);
479 return;
480 }
481
482 /* new participating player */
483 for (i = 0; i < TRADE_MAX_PLAYER; i++) {
484 trade_player *p = &currentgame->trade[tradeslot].player[i];
485 if (p->player) continue;
486 p->player = player_from_id(playerid);
487 p->accept = accept;
488 trade_rebuild_playerlist(tradeslot);
489 return;
490 }
491491 }
492492
493493
501501 gboolean valid;
502502
503503 tradeslot = get_trade_slot_with_tradeid(tradeid);
504 if (tradeslot < 0) return;
505
504506 ProposalList = currentgame->trade[tradeslot].ProposalList;
505 from = global->player[ get_player_slot_with_playerid( currentgame->card[ get_card_slot_with_cardid(cardid) ].owner ) ].name;
506 to = global->player[ get_player_slot_with_playerid(targetplayer) ].name;
507 from = player_from_id(currentgame->card[get_card_slot_with_cardid(cardid)].owner)->name;
508 to = player_from_id(targetplayer)->name;
507509 store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(ProposalList)));
508510
509511 /* remove previous cardid */
527529 return;
528530 }
529531
530 cardname = g_strdup_printf("card #%d", cardid);
532 cardname = g_strdup_printf("card %d: %s", cardid, currentgame->card[ get_card_slot_with_cardid(cardid) ].title);
531533
532534 gtk_list_store_append(store, &iter);
533535 gtk_list_store_set(store, &iter,
556558 gboolean valid;
557559
558560 tradeslot = get_trade_slot_with_tradeid(tradeid);
561 if (tradeslot < 0) return;
562
559563 ProposalList = currentgame->trade[tradeslot].ProposalList;
560 from = global->player[ get_player_slot_with_playerid(currentgame->estate[estateid].owner) ].name;
561 to = global->player[ get_player_slot_with_playerid(targetplayer) ].name;
564 from = player_from_id(currentgame->estate[estateid].owner)->name;
565 to = player_from_id(targetplayer)->name;
562566 estatename = currentgame->estate[estateid].name;
563567 store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(ProposalList)));
564568
608612 gboolean valid;
609613
610614 tradeslot = get_trade_slot_with_tradeid(tradeid);
615 if (tradeslot < 0) return;
616
611617 ProposalList = currentgame->trade[tradeslot].ProposalList;
612 from = global->player[ get_player_slot_with_playerid(playerfrom) ].name;
613 to = global->player[ get_player_slot_with_playerid(playerto) ].name;
618 from = player_from_id(playerfrom)->name;
619 to = player_from_id(playerto)->name;
614620 store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(ProposalList)));
615621
616622 /* remove all money proposal if same playerfrom and same playerto */
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
20
21 #ifndef TRADE_H
22 #define TRADE_H
2023
2124 #include <gtk/gtk.h>
2225
3437 void trade_update_estate(gint32 tradeid, gint32 estateid, gint32 targetplayer);
3538 void trade_update_money(gint32 tradeid, gint32 playerfrom, gint32 playerto, gint32 money);
3639
37
40 #endif /* TRADE_H */
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
20
21 #include "config.h"
22
2023 #include <stdio.h>
2124 #include <stdlib.h>
2225 #include <unistd.h>
2326 #include <string.h>
27 #include <stdbool.h>
2428
2529 #include <gtk/gtk.h>
2630 #include <libxml/parser.h>
110114 */
111115
112116
113 void xmlparse_getgamelist_plugger(guint32 connectid, gchar *buffer) {
117 void xmlparse_getgamelist_plugger(connection *c, gchar *buffer) {
114118
115119 xmlDocPtr doc;
116120 xmlNodePtr cur;
117121
118 doc = xmlParseMemory(buffer, strlen(buffer) );
119
120 if(doc == NULL) {
121
122 printf("XML ERROR ON: %s %d\n", connection[connectid]->host, connection[connectid]->port);
122 doc = xmlParseMemory(buffer, strlen(buffer));
123 if (doc == NULL) {
123124 return;
124125 }
125126
136137
137138 for( cur = cur->xmlChildrenNode ; cur != NULL ; cur = cur -> next) {
138139
139 if(! xmlStrcmp(cur->name, (xmlChar*)"server") ) xmlparse_server(connectid, doc, cur);
140 if(! xmlStrcmp(cur->name, (xmlChar*)"gameupdate") ) xmlparse_gamelist_gameupdate(connectid, doc, cur);
141 if(! xmlStrcmp(cur->name, (xmlChar*)"deletegame") ) xmlparse_gamelist_deletegame(connectid, doc, cur);
140 if(! xmlStrcmp(cur->name, (xmlChar*)"server") ) xmlparse_server(c, doc, cur);
141 if(! xmlStrcmp(cur->name, (xmlChar*)"gameupdate") ) xmlparse_gamelist_gameupdate(c, doc, cur);
142 if(! xmlStrcmp(cur->name, (xmlChar*)"deletegame") ) xmlparse_gamelist_deletegame(c, doc, cur);
142143 }
143144
144145 xmlFreeDoc(doc);
147148
148149
149150
150 void xmlparse_game_plugger(guint32 connectid, gchar *buffer) {
151 void xmlparse_game_plugger(connection *c, gchar *buffer) {
151152
152153 xmlDocPtr doc;
153154 xmlNodePtr cur;
154155
155 doc = xmlParseMemory(buffer, strlen(buffer) );
156
157 if(doc == NULL) return;
156 doc = xmlParseMemory(buffer, strlen(buffer));
157 if (doc == NULL) {
158 return;
159 }
158160
159161 cur = xmlDocGetRootElement(doc);
160162 if (cur == NULL) {
169171
170172 for(cur = cur->xmlChildrenNode ; cur != NULL ; cur = cur -> next) {
171173
172 if(! xmlStrcmp(cur->name, (xmlChar*)"gameupdate") ) xmlparse_gameupdate(connectid, doc, cur);
173 if(! xmlStrcmp(cur->name, (xmlChar*)"deletegame") ) xmlparse_deletegame(connectid, doc, cur);
174 if(! xmlStrcmp(cur->name, (xmlChar*)"server") ) xmlparse_server(connectid, doc, cur);
175 if(! xmlStrcmp(cur->name, (xmlChar*)"client") ) xmlparse_client(connectid, doc, cur);
176 if(! xmlStrcmp(cur->name, (xmlChar*)"msg") ) xmlparse_message(connectid, doc, cur);
177 if(! xmlStrcmp(cur->name, (xmlChar*)"estateupdate") ) xmlparse_estateupdate(connectid, doc, cur);
178 if(! xmlStrcmp(cur->name, (xmlChar*)"playerupdate") ) xmlparse_playerupdate(connectid, doc, cur);
179 if(! xmlStrcmp(cur->name, (xmlChar*)"auctionupdate") ) xmlparse_auctionupdate(connectid, doc, cur);
180 if(! xmlStrcmp(cur->name, (xmlChar*)"display") ) xmlparse_display(connectid, doc, cur);
181 if(! xmlStrcmp(cur->name, (xmlChar*)"configupdate") ) xmlparse_configupdate(connectid, doc, cur);
182 if(! xmlStrcmp(cur->name, (xmlChar*)"tradeupdate") ) xmlparse_tradeupdate(connectid, doc, cur);
183 if(! xmlStrcmp(cur->name, (xmlChar*)"cardupdate") ) xmlparse_cardupdate(connectid, doc, cur);
184 if(! xmlStrcmp(cur->name, (xmlChar*)"estategroupupdate") ) xmlparse_estategroupupdate(connectid, doc, cur);
185 if(! xmlStrcmp(cur->name, (xmlChar*)"deleteplayer") ) xmlparse_deleteplayer(connectid, doc, cur);
174 if(! xmlStrcmp(cur->name, (xmlChar*)"gameupdate") ) xmlparse_gameupdate(c, doc, cur);
175 if(! xmlStrcmp(cur->name, (xmlChar*)"deletegame") ) xmlparse_deletegame(c, doc, cur);
176 if(! xmlStrcmp(cur->name, (xmlChar*)"server") ) xmlparse_server(c, doc, cur);
177 if(! xmlStrcmp(cur->name, (xmlChar*)"client") ) xmlparse_client(c, doc, cur);
178 if(! xmlStrcmp(cur->name, (xmlChar*)"msg") ) xmlparse_message(c, doc, cur);
179 if(! xmlStrcmp(cur->name, (xmlChar*)"estateupdate") ) xmlparse_estateupdate(c, doc, cur);
180 if(! xmlStrcmp(cur->name, (xmlChar*)"playerupdate") ) xmlparse_playerupdate(c, doc, cur);
181 if(! xmlStrcmp(cur->name, (xmlChar*)"auctionupdate") ) xmlparse_auctionupdate(c, doc, cur);
182 if(! xmlStrcmp(cur->name, (xmlChar*)"display") ) xmlparse_display(c, doc, cur);
183 if(! xmlStrcmp(cur->name, (xmlChar*)"configupdate") ) xmlparse_configupdate(c, doc, cur);
184 if(! xmlStrcmp(cur->name, (xmlChar*)"tradeupdate") ) xmlparse_tradeupdate(c, doc, cur);
185 if(! xmlStrcmp(cur->name, (xmlChar*)"cardupdate") ) xmlparse_cardupdate(c, doc, cur);
186 if(! xmlStrcmp(cur->name, (xmlChar*)"estategroupupdate") ) xmlparse_estategroupupdate(c, doc, cur);
187 if(! xmlStrcmp(cur->name, (xmlChar*)"deleteplayer") ) xmlparse_deleteplayer(c, doc, cur);
186188 }
187189
188190 xmlFreeDoc(doc);
191193
192194
193195
194 void xmlparse_server(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur) {
196 void xmlparse_server(connection *c, xmlDocPtr doc, xmlNodePtr cur) {
197 (void)doc;
198
199 c->server_version = (gchar*)xmlGetProp(cur, (xmlChar*)"version");
200 }
201
202
203
204
205 void xmlparse_client(connection *c, xmlDocPtr doc, xmlNodePtr cur) {
195206
196207 xmlChar *tmp;
197 (void)doc;
198
199 tmp = xmlGetProp(cur, (xmlChar*)"version");
200 if(tmp) connection[connectid]->server_version = (gchar*)tmp;
201 }
202
203
204
205
206 void xmlparse_client(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur) {
207
208 xmlChar *tmp;
209 (void)connectid;
208 (void)c;
210209 (void)doc;
211210
212211 tmp = xmlGetProp(cur, (xmlChar*)"playerid");
225224
226225
227226
228 void xmlparse_gameupdate(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur) {
227 void xmlparse_gameupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur) {
229228 xmlChar *tmp;
230229 struct timeval tv;
231230 gint32 gameid;
232231 game *game;
233232 guint8 newstatus;
234 (void)connectid;
233 (void)c;
235234 (void)doc;
236235
237236 tmp = xmlGetProp(cur, (xmlChar*)"gameid");
294293 game->master = atoi((gchar*)tmp);
295294 g_free(tmp);
296295
296 if (game->GameConfigBox) {
297 GList *list = gtk_container_get_children(GTK_CONTAINER(game->GameConfigBox));
298 for (list = g_list_first(list); list; list = g_list_next(list)) {
299 gtk_widget_set_sensitive(GTK_WIDGET(list->data), (global->my_playerid == game->master));
300 }
301 g_list_free(list);
302 }
303
297304 /* set sensitive mode of start button */
298305 if (currentgame == game && game->status == GAME_STATUS_CONFIG) {
299306 GtkWidget *StartButton = g_object_get_data(G_OBJECT(global->MainVerticalBox), "start_button");
300307 gtk_widget_set_sensitive(StartButton, (global->my_playerid == game->master));
301
302 GList *list = gtk_container_get_children(GTK_CONTAINER(currentgame->GameConfigBox));
303 for (list = g_list_first(list); list; list = g_list_next(list)) {
304 gtk_widget_set_sensitive(GTK_WIDGET(list->data), (global->my_playerid == game->master));
305 }
306 g_list_free(list);
307308 }
308309 }
309310 }
310311
311312
312 void xmlparse_deletegame(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur) {
313 void xmlparse_deletegame(connection *c, xmlDocPtr doc, xmlNodePtr cur) {
313314 xmlChar *tmp;
314315 gint32 gameid;
315 (void)connectid;
316 (void)c;
316317 (void)doc;
317318
318319 tmp = xmlGetProp(cur, (xmlChar*)"gameid");
323324 return;
324325 }
325326
326 if (currentgame->gameid != gameid) {
327 if (!currentgame || currentgame->gameid != gameid) {
327328 game_free(gameid);
328329 }
329330 }
330331
331332
332
333 void xmlparse_message(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur) {
333 void xmlparse_message(connection *c, xmlDocPtr doc, xmlNodePtr cur) {
334334
335335 gchar *type, *text, *author, *value;
336 (void)connectid;
336 (void)c;
337337 (void)doc;
338338
339339 type = (gchar*)xmlGetProp(cur, (xmlChar*)"type");
340340
341 if(! g_ascii_strncasecmp(type, "chat", 4) ) {
341 if (!g_ascii_strncasecmp(type, "chat", 4)) {
342342
343343 author = (gchar*)xmlGetProp(cur, (xmlChar*)"author");
344344 value = (gchar*)xmlGetProp(cur, (xmlChar*)"value");
359359 if(value) g_free(value);
360360 }
361361 else {
362
363 gchar *typeup = g_utf8_strup( type, -1 );
364362 value = (gchar*)xmlGetProp(cur, (xmlChar*)"value");
365 text = g_strdup_printf("%s: %s", typeup, value);
366 text_insert_message(text, strlen(text));
367 g_free(typeup);
368 g_free(text);
363 if (!g_ascii_strncasecmp(type, "error", 5)) {
364 interface_set_infolabel(value, "b00000", false);
365 } else {
366 interface_set_infolabel(value, "808000", false);
367 }
369368 g_free(value);
370369 }
371370
375374
376375
377376
378 void xmlparse_estateupdate(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur) {
377 void xmlparse_estateupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur) {
379378
380379 guint32 color[3], i;
381380 xmlChar *tmp;
383382 gint32 star, id, t, u;
384383 gboolean refresh = FALSE;
385384 gboolean owner_mortgage_changed = FALSE;
386 (void)connectid;
385 (void)c;
387386 (void)doc;
388387
389388 if (!currentgame) {
436435 }
437436
438437 if(owner_mortgage_changed) {
438 gint32 cardid = get_playerlistcard_id_with_estate(id);
439439
440440 t = currentgame->estate[id].owner;
441441 u = currentgame->estate[id].mortgaged;
442442
443443 /* reset unowned cards of this estate to all players */
444 for(i = 0 ; i < MAX_PLAYERS ; i++) {
445
446 if(! global->player[i].playerid) continue;
447 if (global->player[i].spectator) continue;
448 if(global->player[i].game != currentgame->gameid) continue;
449
450 pic = global->player[i].playerlist_cards_pic[ get_playerlistcard_id_with_estate(id) ];
451
452 eng_pic_set_alpha(pic, data->playerlist_cards_alphaunowned);
444 if (cardid >= 0) {
445 player *p;
446 for (p = player_h; p; p = p->next) {
447 if (p->spectator) continue;
448 if (p->game != currentgame->gameid) continue;
449
450 pic = p->playerlist_cards_pic[cardid];
451 eng_pic_set_alpha(pic, data->playerlist_cards_alphaunowned);
452 }
453453 }
454454
455455 if(t > 0 && !u) {
456456
457457 /* star */
458 star = global->player[ get_player_slot_with_playerid(t) ].buffer_star;
458 star = player_from_id(t)->tokenid;
459459
460460 pic = currentgame->estate[id].star_pic;
461461 eng_pic_set_width(pic, data->pngfile_star_width[star]);
464464 eng_pic_show(pic);
465465
466466 /* playerlist card */
467 pic = global->player[ get_player_slot_with_playerid(t) ].playerlist_cards_pic[ get_playerlistcard_id_with_estate(id) ];
467 if (cardid >= 0) {
468 pic = player_from_id(t)->playerlist_cards_pic[cardid];
469 }
468470
469471 eng_pic_set_bgcolor(pic, data->playerlist_cards_cardbgcolor);
470472 eng_pic_set_alpha(pic, data->playerlist_cards_alphaowned);
472474 else if(t > 0 && u) {
473475
474476 /* star */
475 star = global->player[ get_player_slot_with_playerid(t) ].buffer_star;
477 star = player_from_id(t)->tokenid;
476478
477479 pic = currentgame->estate[id].star_pic;
478480 eng_pic_set_width(pic, data->pngfile_star_m_width[star]);
481483 eng_pic_show(pic);
482484
483485 /* playerlist card */
484 pic = global->player[ get_player_slot_with_playerid(t) ].playerlist_cards_pic[ get_playerlistcard_id_with_estate(id) ];
486 if (cardid >= 0) {
487 pic = player_from_id(t)->playerlist_cards_pic[cardid];
488 }
485489
486490 eng_pic_set_bgcolor(pic, data->playerlist_cards_cardbgcolormortgage);
487491 eng_pic_set_alpha(pic, data->playerlist_cards_alphamortgage);
624628
625629
626630
627 void xmlparse_playerupdate(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur) {
628
629 gint32 playerid, i;
630 gint32 id;
631 void xmlparse_playerupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur) {
632
633 gint32 id, i;
634 player *p;
631635 xmlChar *tmp;
632636 gboolean refresh = FALSE;
633 (void)connectid;
637 (void)c;
634638 (void)doc;
635639
636640 tmp = xmlGetProp(cur, (xmlChar*)"playerid");
637641 if(!tmp) return;
638 playerid = atoi((gchar*)tmp);
642 id = atoi((gchar*)tmp);
639643 g_free(tmp);
640 if(!playerid) return;
644 if(!id) return;
641645
642646 /* create new player */
643 id = get_player_slot_with_playerid(playerid);
644 if (id < 0) {
645 id = game_new_player_slot(playerid);
646 if (id < 0) {
647 p = player_from_id(id);
648 if (p == NULL) {
649 p = game_new_player(id);
650 if (!p) {
647651 return;
648652 }
649653 }
650654
651655 tmp = xmlGetProp(cur, (xmlChar*)"game");
652656 if(tmp) {
653 global->player[id].game = atoi((gchar*)tmp);
654 g_free(tmp);
655
656 if (playerid == global->my_playerid) {
657 if (global->player[id].game < 0) {
657 p->game = atoi((gchar*)tmp);
658 g_free(tmp);
659
660 if (id == global->my_playerid) {
661 if (p->game < 0) {
658662 if (currentgame) {
659663 game_quit();
660664 }
661665 } else {
662666 if (!currentgame) {
663 game *game = game_find(global->player[id].game);
667 game *game = game_find(p->game);
664668 if (game) {
665669 currentgame = game;
670 printf("Current game: %d\n", game->gameid);
666671 game_switch_status();
667 printf("Current game: %d\n", game->gameid);
668672 }
669673 }
670674 }
675 } else if (p->game < 0) {
676 interface_gameboard_remove_player(p);
677 refresh = TRUE;
671678 }
672679 }
673680
674681 tmp = xmlGetProp(cur, (xmlChar*)"host");
675682 if(tmp) {
676
677 if(global->player[id].host) g_free(global->player[id].host);
678 global->player[id].host = (gchar*)tmp;
683 if(p->host) g_free(p->host);
684 p->host = (gchar*)tmp;
679685 }
680686
681687 tmp = xmlGetProp(cur, (xmlChar*)"image");
682688 if(tmp) {
683
684 if(global->player[id].image) g_free(global->player[id].image);
685 global->player[id].image = (gchar*)tmp;
689 if(p->image) g_free(p->image);
690 p->image = (gchar*)tmp;
686691 }
687692
688693 tmp = xmlGetProp(cur, (xmlChar*)"name");
689694 if(tmp) {
690
691 if(global->player[id].name) g_free(global->player[id].name);
692 global->player[id].name = g_strndup((gchar*)tmp, MAX_LENGTH_NICK);
693 g_free(tmp);
694
695 if(! strcmp(global->player[id].name, "_metaserver_")) {
696 game_free_player(id);
697 return;
698 }
699
700 if (currentgame && global->player[id].game == currentgame->gameid) {
695 if(p->name) g_free(p->name);
696 p->name = (char*)tmp;
697
698 if (currentgame && p->game == currentgame->gameid) {
701699 /* playerlist name */
702700 /* FIXME: handle hasturn color */
703 if(global->player[id].playerlist_LabelNamePlayer)
704 gtk_label_set_text(GTK_LABEL(global->player[id].playerlist_LabelNamePlayer), global->player[id].name);
701 if(p->playerlist_LabelNamePlayer)
702 gtk_label_set_text(GTK_LABEL(p->playerlist_LabelNamePlayer), p->name);
705703
706704 /* playerlist in trade panel */
707705 for(i = 0 ; i < MAX_TRADES ; i++) {
723721
724722 tmp = xmlGetProp(cur, (xmlChar*)"money");
725723 if(tmp) {
726
727 global->player[id].money = atoi((gchar*)tmp);
728
729 if (currentgame && global->player[id].game == currentgame->gameid) {
730 if(global->player[id].playerlist_LabelMoneyPlayer) {
731 if(global->player[id].hasturn) {
732 gchar *tmp = g_markup_printf_escaped("<span foreground=\"#ff0000\">%d</span>", global->player[id].money);
733 gtk_label_set_markup(GTK_LABEL(global->player[id].playerlist_LabelMoneyPlayer), tmp);
724 p->money = atoi((gchar*)tmp);
725 g_free(tmp);
726
727 if (currentgame && p->game == currentgame->gameid) {
728 if(p->playerlist_LabelMoneyPlayer) {
729 if(p->hasturn) {
730 gchar *tmp = g_markup_printf_escaped("<span foreground=\"#ff0000\">%d</span>", p->money);
731 gtk_label_set_markup(GTK_LABEL(p->playerlist_LabelMoneyPlayer), tmp);
734732 g_free(tmp);
735733 } else {
736 gchar *tmp = g_markup_printf_escaped("<span foreground=\"#000000\">%d</span>", global->player[id].money);
737 gtk_label_set_markup(GTK_LABEL(global->player[id].playerlist_LabelMoneyPlayer), tmp);
734 gchar *tmp = g_markup_printf_escaped("<span foreground=\"#000000\">%d</span>", p->money);
735 gtk_label_set_markup(GTK_LABEL(p->playerlist_LabelMoneyPlayer), tmp);
738736 g_free(tmp);
739737 }
740738 }
741739 }
742 g_free(tmp);
743740 }
744741
745742 tmp = xmlGetProp(cur, (xmlChar*)"location");
746743 if(tmp) {
747 global->player[id].location_to = atoi((gchar*)tmp);
744 p->location_to = atoi((gchar*)tmp);
748745 g_free(tmp);
749746
750747 tmp = xmlGetProp(cur, (xmlChar*)"directmove");
751748 if (tmp) {
752 global->player[id].directmove = atoi((gchar*)tmp);
749 p->directmove = atoi((gchar*)tmp);
753750 g_free(tmp);
754751 }
755752
756 if (currentgame && global->player[id].game == currentgame->gameid) {
753 if (currentgame && p->game == currentgame->gameid) {
757754 refresh = TRUE;
758755 }
759756 }
760757
761758 tmp = xmlGetProp(cur, (xmlChar*)"jailed");
762759 if(tmp) {
763 gboolean jailed = atoi((gchar*)tmp);;
764 if (jailed != global->player[id].jailed) {
765 global->player[id].jailed = jailed;
766 global->player[id].directmove = TRUE; /* force directmove when player is going to or leaving jail */
767 }
768 g_free(tmp);
769
770 if (currentgame && global->player[id].game == currentgame->gameid) {
760 gboolean jailed = atoi((gchar*)tmp);
761 g_free(tmp);
762
763 if (jailed != p->jailed) {
764 p->jailed = jailed;
765 p->directmove = TRUE; /* force directmove when player is going to or leaving jail */
766 }
767
768 if (currentgame && p->game == currentgame->gameid) {
771769 refresh = TRUE;
772770 }
773771 }
774772
775773 tmp = xmlGetProp(cur, (xmlChar*)"bankrupt");
776774 if(tmp) {
777 global->player[id].bankrupt = atoi((gchar*)tmp);
778 g_free(tmp);
779
780 if (currentgame && global->player[id].game == currentgame->gameid) {
775 p->bankrupt = atoi((gchar*)tmp);
776 g_free(tmp);
777
778 if (currentgame && p->game == currentgame->gameid) {
781779 /* remove token */
782 if(global->player[id].bankrupt) {
783 eng_pic_unshow(global->player[id].token_pic);
780 if(p->bankrupt) {
781 eng_pic_unshow(p->token_pic);
784782 refresh = TRUE;
785783 }
786784 }
788786
789787 tmp = xmlGetProp(cur, (xmlChar*)"hasturn");
790788 if(tmp) {
791 global->player[id].hasturn = atoi((gchar*)tmp);
792 g_free(tmp);
793
794 if (currentgame && global->player[id].game == currentgame->gameid) {
789 p->hasturn = atoi((gchar*)tmp);
790 g_free(tmp);
791
792 if (currentgame && p->game == currentgame->gameid) {
795793 /* set has turn attributes */
796 if(global->player[id].hasturn) {
797
798 if (global->player[id].playerlist_LabelNamePlayer) {
799 gchar *tmp = g_markup_printf_escaped("<span foreground=\"#ff0000\">%s</span>", global->player[id].name);
800 gtk_label_set_markup(GTK_LABEL(global->player[id].playerlist_LabelNamePlayer), tmp);
794 if(p->hasturn) {
795
796 if (p->playerlist_LabelNamePlayer) {
797 gchar *tmp = g_markup_printf_escaped("<span foreground=\"#ff0000\">%s</span>", p->name);
798 gtk_label_set_markup(GTK_LABEL(p->playerlist_LabelNamePlayer), tmp);
801799 g_free(tmp);
802800
803 tmp = g_markup_printf_escaped("<span foreground=\"#ff0000\">%d</span>", global->player[id].money);
804 gtk_label_set_markup(GTK_LABEL(global->player[id].playerlist_LabelMoneyPlayer), tmp);
801 tmp = g_markup_printf_escaped("<span foreground=\"#ff0000\">%d</span>", p->money);
802 gtk_label_set_markup(GTK_LABEL(p->playerlist_LabelMoneyPlayer), tmp);
805803 g_free(tmp);
806804 }
807805
808 eng_pic_unset_alpha(global->player[id].token_pic);
806 eng_pic_unset_alpha(p->token_pic);
809807 }
810808 else {
811809
812 if (global->player[id].playerlist_LabelNamePlayer) {
813 gchar *tmp = g_markup_printf_escaped("<span foreground=\"#000000\">%s</span>", global->player[id].name);
814 gtk_label_set_markup(GTK_LABEL(global->player[id].playerlist_LabelNamePlayer), tmp);
810 if (p->playerlist_LabelNamePlayer) {
811 gchar *tmp = g_markup_printf_escaped("<span foreground=\"#000000\">%s</span>", p->name);
812 gtk_label_set_markup(GTK_LABEL(p->playerlist_LabelNamePlayer), tmp);
815813 g_free(tmp);
816814
817 tmp = g_markup_printf_escaped("<span foreground=\"#000000\">%d</span>", global->player[id].money);
818 gtk_label_set_markup(GTK_LABEL(global->player[id].playerlist_LabelMoneyPlayer), tmp);
815 tmp = g_markup_printf_escaped("<span foreground=\"#000000\">%d</span>", p->money);
816 gtk_label_set_markup(GTK_LABEL(p->playerlist_LabelMoneyPlayer), tmp);
819817 g_free(tmp);
820818 }
821819
822820 if(config->game_token_transparency)
823 eng_pic_set_alpha(global->player[id].token_pic, 0x7f);
821 eng_pic_set_alpha(p->token_pic, 0x7f);
824822 }
825823
826824 refresh = TRUE;
829827
830828 tmp = xmlGetProp(cur, (xmlChar*)"can_roll");
831829 if(tmp) {
832 global->player[id].can_roll = atoi((gchar*)tmp);
833 g_free(tmp);
834
835 if (currentgame && global->player[id].game == currentgame->gameid && currentgame->status == GAME_STATUS_RUN) {
836 GtkWidget *Button = g_object_get_data(G_OBJECT(currentgame->CommandsBox), "roll_button");
837
838 if(global->player[id].can_roll)
839 gtk_widget_show_all(Button);
840 else
841 gtk_widget_hide(Button);
842 }
830 p->can_roll = atoi((gchar*)tmp);
831 g_free(tmp);
843832 }
844833
845834 tmp = xmlGetProp(cur, (xmlChar*)"can_buyestate");
846835 if(tmp) {
847 global->player[id].can_buyestate = atoi((gchar*)tmp);
836 p->can_buyestate = atoi((gchar*)tmp);
837 g_free(tmp);
838 }
839
840 tmp = xmlGetProp(cur, (xmlChar*)"turnorder");
841 if(tmp) {
842 p->turnorder = atoi((gchar*)tmp);
848843 g_free(tmp);
849844 }
850845
851846 tmp = xmlGetProp(cur, (xmlChar*)"spectator");
852847 if(tmp) {
853 global->player[id].spectator = atoi((gchar*)tmp);
854 g_free(tmp);
848 p->spectator = atoi((gchar*)tmp);
849 g_free(tmp);
850 if (currentgame && p->game == currentgame->gameid && !p->spectator) {
851 /* note: turnorder must be fetched before */
852 game_sort_playerlist_by_turnorder();
853 interface_gameboard_add_player(p);
854 game_update_tokens();
855 }
855856 }
856857
857858 game_buildplayerlist();
864865
865866
866867
867 void xmlparse_auctionupdate(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur) {
868
869 GtkWidget *text, *entry, *box;
870 GtkTextBuffer *textbuff;
871 GtkTextIter textiter;
872 GtkTextMark *textmark;
873
874 guint32 actor = 0, auctionid, estateid, highbid = 0, highbidder, status;
875 gchar *ptr, *message;
876
868 void xmlparse_auctionupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur) {
869
870 guint32 auctionid, highbid = 0;
877871 xmlChar *tmp;
878
879 (void)connectid;
872 (void)c;
880873 (void)doc;
881874
882875 if (!currentgame || currentgame->status != GAME_STATUS_RUN) {
889882 g_free(tmp);
890883
891884 /* initialise auction */
892 tmp = xmlGetProp(cur, (xmlChar*)"actor");
893 if(tmp) {
894 actor = atoi((gchar*)tmp);
895 g_free(tmp);
896 }
897
898885 tmp = xmlGetProp(cur, (xmlChar*)"estateid");
899 if(tmp) {
900
901 estateid = atoi((gchar*)tmp);
886 if (tmp && g_object_get_data(G_OBJECT(currentgame->BoardCenter), "auctionbox") == NULL) {
887 guint32 estateid = atoi((gchar*)tmp);
902888 g_free(tmp);
903889
904890 display_hide();
905 interface_create_auctionbox();
891 interface_create_auctionbox(auctionid, estateid);
906892 g_object_set_data(G_OBJECT(currentgame->BoardCenter), "auction_highbid", 0);
907
908 text = g_object_get_data(G_OBJECT(currentgame->BoardCenter), "auction_text");
909 entry = g_object_get_data(G_OBJECT(currentgame->BoardCenter), "auction_entry");
910
911 ptr = g_strdup_printf("%d", auctionid);
912 g_object_set_data_full(G_OBJECT(entry), "auctionid", ptr, g_free);
913
914 message = g_strdup_printf("%s auction estate %s", global->player[ get_player_slot_with_playerid( actor ) ].name, currentgame->estate[ estateid ].name);
915
916 textbuff = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text));
917 gtk_text_buffer_get_end_iter(textbuff, &textiter);
918 gtk_text_buffer_insert(textbuff, &textiter, message, strlen(message));
919 gtk_text_buffer_insert(textbuff, &textiter, "\n", -1);
920
921
922 g_free(message);
893 }
894
895 if (g_object_get_data(G_OBJECT(currentgame->BoardCenter), "auctionbox") == NULL) {
896 return;
923897 }
924898
925899 /* bid */
926900 tmp = xmlGetProp(cur, (xmlChar*)"highbid");
927 if(tmp) {
901 if(tmp) {
928902 highbid = atoi((gchar*)tmp);
929903 g_object_set_data(G_OBJECT(currentgame->BoardCenter), "auction_highbid", GINT_TO_POINTER(highbid));
930904 g_free(tmp);
931905 }
932906
933907 tmp = xmlGetProp(cur, (xmlChar*)"highbidder");
934 if(tmp) {
935
936 highbidder = atoi((gchar*)tmp);
937 g_free(tmp);
938
939 message = g_strdup_printf("%s bid %d", global->player[ get_player_slot_with_playerid(highbidder) ].name, highbid);
940
941 text = g_object_get_data(G_OBJECT(currentgame->BoardCenter), "auction_text");
942
943 textbuff = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text));
944 gtk_text_buffer_get_end_iter(textbuff, &textiter);
945 gtk_text_buffer_insert(textbuff, &textiter, message, strlen(message));
946 gtk_text_buffer_insert(textbuff, &textiter, "\n", -1);
947
948 /* Scroll the text */
949 textmark = gtk_text_buffer_get_mark(textbuff, "endmark");
950 gtk_text_view_scroll_to_mark(GTK_TEXT_VIEW(text), textmark, 0.0, FALSE, 0.0, 0.0);
951
952 g_free(message);
908 if(tmp) {
909 guint32 highbidder = atoi((gchar*)tmp);
910 g_free(tmp);
911
912 GtkListStore *store;
913 GtkTreeIter iter;
914 gboolean valid;
915
916 store = g_object_get_data(G_OBJECT(currentgame->BoardCenter), "auction_store");
917 valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(store), &iter);
918 while (valid) {
919 guint32 eplayerid;
920
921 gtk_tree_model_get(GTK_TREE_MODEL(store), &iter, AUCTIONPLAYERLIST_COLUMN_PLAYERID, &eplayerid, -1);
922 if (eplayerid == highbidder) {
923 gtk_list_store_set(store, &iter,
924 AUCTIONPLAYERLIST_COLUMN_BID, highbid,
925 AUCTIONPLAYERLIST_WEIGHT, PANGO_WEIGHT_BOLD,
926 -1);
927 } else {
928 gtk_list_store_set(store, &iter,
929 AUCTIONPLAYERLIST_WEIGHT, PANGO_WEIGHT_NORMAL,
930 -1);
931 }
932
933 valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(store), &iter);
934 }
953935 }
954936
955937 /* status */
956938 tmp = xmlGetProp(cur, (xmlChar*)"status");
957 if(tmp) {
958
959 status = atoi((gchar*)tmp);
960 g_free(tmp);
961
962 switch( status ) {
939 if(tmp) {
940 guint32 status = atoi((gchar*)tmp);
941 g_free(tmp);
942
943 GtkWidget *label = g_object_get_data(G_OBJECT(currentgame->BoardCenter), "auction_statuslabel");
944
945 switch (status) {
946 case 0:
947 gtk_label_set_text(GTK_LABEL(label), NULL);
948 break;
963949
964950 case 1:
965 text = g_object_get_data(G_OBJECT(currentgame->BoardCenter), "auction_text");
966
967 message = g_strdup("<- going once ->");
968 textbuff = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text));
969 gtk_text_buffer_get_end_iter(textbuff, &textiter);
970 gtk_text_buffer_insert(textbuff, &textiter, message, strlen(message));
971 gtk_text_buffer_insert(textbuff, &textiter, "\n", -1);
972 /* Scroll the text */
973 textmark = gtk_text_buffer_get_mark(textbuff, "endmark");
974 gtk_text_view_scroll_to_mark(GTK_TEXT_VIEW(text), textmark, 0.0, FALSE, 0.0, 0.0);
975
976 g_free(message);
951 gtk_label_set_text(GTK_LABEL(label), "Going once…");
977952 break;
978953
979954 case 2:
980 text = g_object_get_data(G_OBJECT(currentgame->BoardCenter), "auction_text");
981
982 message = g_strdup("\n<- going twice ->");
983 textbuff = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text));
984 gtk_text_buffer_get_end_iter(textbuff, &textiter);
985 gtk_text_buffer_insert(textbuff, &textiter, message, strlen(message));
986 gtk_text_buffer_insert(textbuff, &textiter, "\n", -1);
987 /* Scroll the text */
988 textmark = gtk_text_buffer_get_mark(textbuff, "endmark");
989 gtk_text_view_scroll_to_mark(GTK_TEXT_VIEW(text), textmark, 0.0, FALSE, 0.0, 0.0);
990
991 g_free(message);
955 gtk_label_set_text(GTK_LABEL(label), "Going twice…");
992956 break;
993957
994958 case 3:
995 box = g_object_get_data(G_OBJECT(currentgame->BoardCenter), "auctionbox");
996 if(box) gtk_widget_destroy(box);
997 g_object_set_data(G_OBJECT(currentgame->BoardCenter), "auctionbox", 0);
959 gtk_widget_destroy(g_object_get_data(G_OBJECT(currentgame->BoardCenter), "auctionbox"));
960 g_object_set_data(G_OBJECT(currentgame->BoardCenter), "auctionbox", NULL);
998961 display_show();
999962 break;
1000963 }
1004967
1005968
1006969
1007 void xmlparse_display(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur) {
970 void xmlparse_display(connection *c, xmlDocPtr doc, xmlNodePtr cur) {
1008971
1009972 xmlNodePtr cur2;
1010973 gint32 estateid;
1011974 xmlChar *tmp;
1012975 gchar *caption, *command;
1013976 gboolean enable;
1014 (void)connectid;
977 (void)c;
1015978 (void)doc;
1016979
1017980 if (!currentgame || currentgame->status < GAME_STATUS_INIT) {
10661029
10671030
10681031
1069 void xmlparse_configupdate(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur) {
1032 void xmlparse_configupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur) {
10701033
10711034 GtkWidget *CButton;
1072 xmlNodePtr cur2;
1073 gchar *title, *command, *description;
1035 gchar *description;
10741036 guint32 signalid;
10751037 xmlChar *tmp;
10761038 game *game;
1077 gint32 id = 0;
1078 (void)connectid;
1039 gint32 id;
1040 (void)c;
10791041 (void)doc;
10801042
10811043 tmp = xmlGetProp(cur, (xmlChar*)"gameid");
1082 if (tmp) {
1083 game = game_find(atoi((gchar*)tmp));
1084 g_free(tmp);
1085
1086 if (!game) {
1087 return;
1088 }
1089 } else {
1044 if (!tmp) {
1045 return;
1046 }
1047
1048 game = game_find(atoi((gchar*)tmp));
1049 g_free(tmp);
1050 if (!game) {
1051 return;
1052 }
1053
1054 tmp = xmlGetProp(cur, (xmlChar*)"configid");
1055 if (!tmp) {
1056 return;
1057 }
1058
1059 id = atoi((gchar*)tmp);
1060 g_free(tmp);
1061 if (id <= 0) {
10901062 return;
10911063 }
10921064
10971069 game->GameConfigBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
10981070 }
10991071
1100 tmp = xmlGetProp(cur, (xmlChar*)"configid");
1072 /* create it if not created */
1073 gchar *strid = g_strdup_printf("%d", id);
1074 if ( !(CButton = g_object_get_data(G_OBJECT(game->GameConfigBox), strid)) ) {
1075
1076 /* We only handle boolean type for now */
1077 tmp = xmlGetProp(cur, (xmlChar*)"type");
1078 if (!tmp) {
1079 goto abort;
1080 }
1081 if(xmlStrcmp(tmp, (xmlChar*)"bool") ) {
1082 g_free(tmp);
1083 goto abort;
1084 }
1085 g_free(tmp);
1086
1087 description = (gchar*)xmlGetProp(cur, (xmlChar*)"description");
1088 if (!description) {
1089 goto abort;
1090 }
1091
1092 CButton = gtk_check_button_new_with_label(description);
1093 signalid = g_signal_connect(G_OBJECT(CButton), "toggled", G_CALLBACK(Callback_toggle_boolean_gameoption), NULL);
1094 gtk_widget_set_sensitive(CButton, (global->my_playerid == game->master));
1095 gtk_box_pack_start(GTK_BOX(game->GameConfigBox), CButton, FALSE, FALSE, 0);
1096
1097 /* store signal identifier */
1098 g_object_set_data(G_OBJECT(CButton), "signal", GINT_TO_POINTER(signalid));
1099
1100 /* store id under CButton */
1101 g_object_set_data(G_OBJECT(CButton), "id", GINT_TO_POINTER(id));
1102
1103 /* save the pointer of button to use in the future */
1104 g_object_set_data(G_OBJECT(game->GameConfigBox), strid, CButton);
1105
1106 g_free(description);
1107 }
1108
1109 /* modify */
1110 tmp = xmlGetProp(cur, (xmlChar*)"value");
11011111 if (tmp) {
1102 id = atoi((gchar*)tmp);
1103 g_free(tmp);
1104 }
1105
1106 /* commands using the new configupdate protocol */
1107 if (id > 0) {
1108 /* create it if not created */
1109 gchar *strid = g_strdup_printf("%d", id);
1110 if ( !(CButton = g_object_get_data(G_OBJECT(game->GameConfigBox), strid)) ) {
1111
1112 /* We only handle boolean type for now */
1113 tmp = xmlGetProp(cur, (xmlChar*)"type");
1114 if (!tmp) {
1115 goto abort;
1116 }
1117 if(xmlStrcmp(tmp, (xmlChar*)"bool") ) {
1118 g_free(tmp);
1119 goto abort;
1120 }
1121 g_free(tmp);
1122
1123 /* Disable spectators for now, server support is not finished yet */
1124 tmp = xmlGetProp(cur, (xmlChar*)"name");
1125 if (tmp) {
1126 if (!xmlStrcmp(tmp, (xmlChar*)"allowspectators") ) {
1127 g_free(tmp);
1128 goto abort;
1129 }
1130 g_free(tmp);
1131 }
1132
1133 description = (gchar*)xmlGetProp(cur, (xmlChar*)"description");
1134 if (!description) {
1135 goto abort;
1136 }
1137
1138 CButton = gtk_check_button_new_with_label(description);
1139 signalid = g_signal_connect(G_OBJECT(CButton), "toggled", G_CALLBACK(Callback_toggle_boolean_gameoption), NULL);
1140 gtk_widget_set_sensitive(CButton, (global->my_playerid == game->master));
1141 gtk_box_pack_start(GTK_BOX(game->GameConfigBox), CButton, FALSE, FALSE, 0);
1142
1143 /* store signal identifier */
1144 g_object_set_data(G_OBJECT(CButton), "signal", GINT_TO_POINTER(signalid));
1145
1146 /* store id under CButton */
1147 g_object_set_data(G_OBJECT(CButton), "id", GINT_TO_POINTER(id));
1148
1149 /* save the pointer of button to use in the future */
1150 g_object_set_data(G_OBJECT(game->GameConfigBox), strid, CButton);
1151
1152 g_free(description);
1153 }
1154
1155 /* modify */
1156 tmp = xmlGetProp(cur, (xmlChar*)"value");
1157 if (tmp) {
1158
1159 /* disconnect signal */
1160 signalid = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(CButton), "signal"));
1161 g_signal_handler_disconnect(G_OBJECT(CButton), signalid);
1162
1163 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(CButton), (atoi((gchar*)tmp) != 0));
1164 g_free(tmp);
1165
1166 /* reconnect signal */
1167 signalid = g_signal_connect(G_OBJECT(CButton), "toggled", G_CALLBACK(Callback_toggle_boolean_gameoption), NULL);
1168 g_object_set_data(G_OBJECT(CButton), "signal", GINT_TO_POINTER(signalid));
1169 }
1170
1171 /* tmp = xmlGetProp(cur, (xmlChar*)"edit"); USELESS */
1112
1113 /* disconnect signal */
1114 signalid = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(CButton), "signal"));
1115 g_signal_handler_disconnect(G_OBJECT(CButton), signalid);
1116
1117 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(CButton), (atoi((gchar*)tmp) != 0));
1118 g_free(tmp);
1119
1120 /* reconnect signal */
1121 signalid = g_signal_connect(G_OBJECT(CButton), "toggled", G_CALLBACK(Callback_toggle_boolean_gameoption), NULL);
1122 g_object_set_data(G_OBJECT(CButton), "signal", GINT_TO_POINTER(signalid));
1123 }
1124
1125 /* tmp = xmlGetProp(cur, (xmlChar*)"edit"); USELESS */
1126
11721127 abort:
1173 g_free(strid);
1174
1175 }
1176
1177 /* commands using the old configupdate protocol */
1178 else for( cur2 = cur->xmlChildrenNode ; cur2 != NULL ; cur2 = cur2 -> next) {
1179
1180 if(! xmlStrcmp(cur2->name, (xmlChar*)"option") ) {
1181
1182 command = (gchar*)xmlGetProp(cur2, (xmlChar*)"command");
1183 if(!command) continue;
1184
1185 /* create it if not created */
1186 if ( !(CButton = g_object_get_data(G_OBJECT(game->GameConfigBox), command)) ) {
1187
1188 tmp = xmlGetProp(cur2, (xmlChar*)"type");
1189 if (!tmp) {
1190 continue;
1191 }
1192 if(xmlStrcmp(tmp, (xmlChar*)"bool") ) {
1193 g_free(tmp);
1194 continue;
1195 }
1196 g_free(tmp);
1197
1198 title = (gchar*)xmlGetProp(cur2, (xmlChar*)"title");
1199 if (!title) {
1200 continue;
1201 }
1202
1203 CButton = gtk_check_button_new_with_label(title);
1204 signalid = g_signal_connect(G_OBJECT(CButton), "toggled", G_CALLBACK(Callback_toggle_boolean_gameoption), NULL);
1205 gtk_widget_set_sensitive(CButton, (global->my_playerid == game->master));
1206 gtk_box_pack_start(GTK_BOX(game->GameConfigBox), CButton, FALSE, FALSE, 0);
1207
1208 /* store signal identifier */
1209 g_object_set_data(G_OBJECT(CButton), "signal", GINT_TO_POINTER(signalid));
1210
1211 /* store command under CButton */
1212 g_object_set_data_full(G_OBJECT(CButton), "command", g_strdup(command), g_free);
1213
1214 /* save the pointer of button to use in the future */
1215 g_object_set_data(G_OBJECT(game->GameConfigBox), command, CButton);
1216
1217 g_free(title);
1218 }
1219
1220 /* modify */
1221 tmp = xmlGetProp(cur2, (xmlChar*)"value");
1222 if (tmp) {
1223
1224 /* disconnect signal */
1225 signalid = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(CButton), "signal"));
1226 g_signal_handler_disconnect(G_OBJECT(CButton), signalid);
1227
1228 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(CButton), (atoi((gchar*)tmp) != 0));
1229 g_free(tmp);
1230
1231 /* reconnect signal */
1232 signalid = g_signal_connect(G_OBJECT(CButton), "toggled", G_CALLBACK(Callback_toggle_boolean_gameoption), NULL);
1233 g_object_set_data(G_OBJECT(CButton), "signal", GINT_TO_POINTER(signalid));
1234 }
1235
1236 /* tmp = xmlGetProp(cur2, (xmlChar*)"edit"); USELESS */
1237
1238 g_free(command);
1239 }
1240 }
1241
1128 g_free(strid);
12421129 gtk_widget_show_all(game->GameConfigBox);
12431130 }
12441131
12451132
12461133
12471134
1248 void xmlparse_tradeupdate(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur) {
1135 void xmlparse_tradeupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur) {
12491136
12501137 xmlNodePtr cur2;
12511138 xmlChar *tmp;
12521139 guint32 tradeid = 0, playerid = 0, cardid = 0, estateid = 0;
12531140 guint32 targetplayer = 0, playerfrom = 0, playerto = 0, money = 0;
12541141 gboolean accept = FALSE;
1255 (void)connectid;
1142 (void)c;
12561143 (void)doc;
12571144
12581145 if (!currentgame || currentgame->status != GAME_STATUS_RUN) {
12731160 // }
12741161
12751162 tmp = xmlGetProp(cur, (xmlChar*)"type");
1276 if(tmp) {
1277
1278 if(! xmlStrcmp(tmp, (xmlChar*)"rejected") ) {
1163 if(tmp) {
1164 if (!xmlStrcmp(tmp, (xmlChar*)"rejected") || !xmlStrcmp(tmp, (xmlChar*)"accepted") || !xmlStrcmp(tmp, (xmlChar*)"completed")) {
12791165 trade_destroy(tradeid);
12801166 g_free(tmp);
12811167 return;
12821168 }
12831169
1284 if(! xmlStrcmp(tmp, (xmlChar*)"completed") ) {
1285 trade_destroy(tradeid);
1286 g_free(tmp);
1287 return;
1288 }
1289
1290 if(! xmlStrcmp(tmp, (xmlChar*)"accepted") ) {
1291 g_free(tmp);
1292 return;
1293 }
1294
1295 if(! xmlStrcmp(tmp, (xmlChar*)"new") ) {
1170 if (!xmlStrcmp(tmp, (xmlChar*)"new")) {
12961171 trade_initnew(tradeid);
1297 g_free(tmp);
1298 }
1172 }
1173
1174 g_free(tmp);
12991175 }
13001176
13011177 tmp = xmlGetProp(cur, (xmlChar*)"revision");
13031179 trade_update_revision(tradeid, atoi((gchar*)tmp));
13041180 g_free(tmp);
13051181 }
1306
1307 /* create trade panel if wasn't created (server bug I suppose) */
1308 trade_initnew(tradeid);
13091182
13101183 for(cur2 = cur->xmlChildrenNode ; cur2 != NULL ; cur2 = cur2 -> next) {
13111184
13931266
13941267
13951268
1396 void xmlparse_cardupdate(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur) {
1269 void xmlparse_cardupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur) {
13971270
13981271 xmlChar *tmp;
1399 gint32 cardid = 0, owner = 0, i, cardslot = 0;
1400 (void)connectid;
1272 gint32 cardid, owner, i, cardslot;
1273 (void)c;
14011274 (void)doc;
14021275
1403 /*
1404 * FIXME: this is broken when reconnecting, we discard <cardupdate/> because we don't know yet in which game we are participating
1405 * fixing that first require a server change to send playerupdate game attribute before cardupdate. Cardupdate doesn't have a gameid
1406 * attribute so we don't know for which game it applies.
1407 */
1408 if (!currentgame || currentgame->status != GAME_STATUS_RUN) {
1276 if (!currentgame || currentgame->status < GAME_STATUS_INIT) {
14091277 return;
14101278 }
14111279
14121280 tmp = xmlGetProp(cur, (xmlChar*)"cardid");
1413 if(tmp) {
1414 cardid = atoi((gchar*)tmp);
1415 g_free(tmp);
1416 }
1281 if (!tmp) {
1282 return;
1283 }
1284 cardid = atoi((gchar*)tmp);
1285 g_free(tmp);
14171286
14181287 tmp = xmlGetProp(cur, (xmlChar*)"owner");
1419 if(tmp) {
1420 owner = atoi((gchar*)tmp);
1421 g_free(tmp);
1422 }
1423
1424 /* create new card slot */
1425 if(owner >= 0) {
1426
1427 cardslot = get_card_slot_with_cardid(cardid);
1428 if(cardslot < 0) if(! game_get_valid_card_slot(&cardslot) ) return;
1288 if (!tmp) {
1289 return;
1290 }
1291 owner = atoi((gchar*)tmp);
1292 g_free(tmp);
1293
1294 cardslot = get_card_slot_with_cardid(cardid);
1295
1296 /* create new or update card slot */
1297 if (owner >= 0) {
1298 if (cardslot < 0 && !game_get_valid_card_slot(&cardslot)) {
1299 return;
1300 }
14291301
14301302 currentgame->card[cardslot].cardid = cardid;
14311303 currentgame->card[cardslot].owner = owner;
1304
1305 xmlChar *title = xmlGetProp(cur, (xmlChar*)"title");
1306 if (title) {
1307 if (currentgame->card[cardslot].title) {
1308 g_free(currentgame->card[cardslot].title);
1309 }
1310 currentgame->card[cardslot].title = (gchar*)title;
1311 }
14321312 }
14331313
14341314 /* destroy a card slot */
1435 else {
1436
1437 cardslot = get_card_slot_with_cardid(cardid);
1438 if(cardslot < 0) return;
1315 else {
1316 if (cardslot < 0) {
1317 return;
1318 }
14391319
14401320 currentgame->card[cardslot].cardid = 0;
14411321 currentgame->card[cardslot].owner = 0;
1322 if (currentgame->card[cardslot].title) {
1323 g_free(currentgame->card[cardslot].title);
1324 currentgame->card[cardslot].title = NULL;
1325 }
1326
14421327 }
14431328
14441329 /* update component list in trade panel */
14541339
14551340
14561341
1457 void xmlparse_estategroupupdate(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur) {
1342 void xmlparse_estategroupupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur) {
14581343
14591344 xmlChar *tmp;
14601345 gint32 groupid = -1;
1461 (void)connectid;
1346 (void)c;
14621347 (void)doc;
14631348
14641349 if (!currentgame) {
14811366
14821367
14831368
1484 void xmlparse_deleteplayer(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur) {
1369 void xmlparse_deleteplayer(connection *c, xmlDocPtr doc, xmlNodePtr cur) {
14851370
14861371 xmlChar *tmp;
1487 gint32 playerid = -1, id;
1488 (void)connectid;
1372 gint32 id;
1373 player *p;
1374 (void)c;
14891375 (void)doc;
14901376
14911377 tmp = xmlGetProp(cur, (xmlChar*)"playerid");
1492 if(tmp) {
1493 playerid = atoi((gchar*)tmp);
1494 g_free(tmp);
1495 }
1496
1497 if(playerid < 0) return;
1498
1499 id = get_player_slot_with_playerid(playerid);
1500 if(id < 0) return;
1501
1502 /* delete a player */
1503 if (global->player[id].playerlist_token_frame == NULL) { /* never delete a player on board */ /* FIXME: this is kind of a ugly hack, a FSM should be better */
1504 game_free_player(id);
1505 }
1378 if (!tmp) return;
1379 id = atoi((gchar*)tmp);
1380 g_free(tmp);
1381
1382 if (id < 0) return;
1383
1384 p = player_from_id(id);
1385 if (p == NULL) return;
1386
1387 interface_gameboard_remove_player(p);
1388 update_display();
1389 game_free_player(p);
15061390 game_buildplayerlist();
15071391 }
15081392
15091393
15101394
15111395
1512 void xmlparse_gamelist_gameupdate(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur) {
1396 void xmlparse_gamelist_gameupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur) {
15131397 xmlChar *tmp;
1514 gchar *game = NULL, *players = NULL, *description, *gametype;
1398 gchar *players = NULL;
15151399 gint32 id;
1516 gchar *host, *version;
1517 gint32 port;
1518 GtkListStore *store;
15191400 GtkTreeIter iter;
15201401 gboolean valid;
15211402 gboolean update = FALSE;
1403 gchar *status = NULL;
1404 gint32 canbejoined = -1, canbewatched = -1;
15221405 (void)doc;
1523
1524 if (connectid != global->customserver_connectid) {
1525 return;
1526 }
1527
1528 if (global->phase != PHASE_GETGAMES) {
1529 client_disconnect(connectid);
1530 global->customserver_connectid = 0;
1531 return;
1532 }
1533
1534 store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(global->GameList)));
1535 if (store == NULL) {
1536 return;
1537 }
15381406
15391407 tmp = xmlGetProp(cur, (xmlChar*)"gameid");
15401408 id = atoi((gchar*)tmp);
15411409 g_free(tmp);
15421410
1543 host = connection[connectid]->host;
1544 port = connection[connectid]->port;
1545
15461411 /* lookup if gameid on same server already exist */
15471412 if (id > 0) {
1548 valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(store), &iter);
1413 valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(global->game_store), &iter);
15491414 while (valid) {
1550 gchar *ehost;
1551 gint32 eport;
15521415 gint32 source;
15531416 gint32 eid;
15541417
1555 gtk_tree_model_get(GTK_TREE_MODEL(store), &iter, GAMELIST_COLUMN_ID, &eid, GAMELIST_COLUMN_HOST, &ehost, GAMELIST_COLUMN_PORT, &eport, GAMELIST_COLUMN_SOURCE, &source, -1);
1556 if ( eid == id && source == GAMELIST_SOURCE_CUSTOM && !strcmp(host, ehost) && eport == port ) {
1418 gtk_tree_model_get(GTK_TREE_MODEL(global->game_store), &iter, GAMELIST_COLUMN_GAMEID, &eid, GAMELIST_COLUMN_SOURCE, &source, -1);
1419 if (eid == id && source == GAMELIST_SOURCE_CUSTOM) {
15571420 update = TRUE;
1558 g_free(ehost);
15591421 break;
15601422 }
1561 g_free(ehost);
1562
1563 valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(store), &iter); /* get next iter so we can remove the current entry safely */
1564 }
1565 }
1566
1567 gtk_widget_hide(global->ServerList);
1568 gtk_widget_show(global->GameList);
1569
1423
1424 valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(global->game_store), &iter);
1425 }
1426 }
1427
1428 /* ONLY TEMPORARY ! */
1429 tmp = xmlGetProp(cur, (xmlChar*)"gametype");
1430 if (tmp && xmlStrcmp(tmp, (xmlChar*)"city") && xmlStrcmp(tmp, (xmlChar*)"french_city") ) {
1431 g_free(tmp);
1432 return;
1433 }
1434
1435 tmp = xmlGetProp(cur, (xmlChar*)"turn");
1436 if(tmp) {
1437 int turn = atoi((gchar*)tmp);
1438 g_free(tmp);
1439
1440 if (turn >= 1) {
1441 status = g_strdup_printf("Playing, turn %d", turn);
1442 }
1443 }
1444
1445 tmp = xmlGetProp(cur, (xmlChar*)"status");
1446 if(tmp) {
1447 if (!xmlStrcmp(tmp, (xmlChar*)"config") ) {
1448 if (status) {
1449 g_free(status);
1450 }
1451 status = g_strdup("Waiting for players");
1452 }
1453 else if (!xmlStrcmp(tmp, (xmlChar*)"end") ) {
1454 if (status) {
1455 g_free(status);
1456 }
1457 status = g_strdup("Finished");
1458 }
1459
1460 g_free(tmp);
1461 }
1462
1463 // game template
1464 if (id < 0) {
1465 canbejoined = true;
1466 canbewatched = false;
1467 }
15701468 tmp = xmlGetProp(cur, (xmlChar*)"canbejoined");
15711469 if (tmp) {
1572 if (atoi((gchar*)tmp) == 0) {
1573 if (update == TRUE) {
1574 gtk_list_store_remove(store, &iter);
1470 canbejoined = atoi((gchar*)tmp);
1471 g_free(tmp);
1472 }
1473
1474 tmp = xmlGetProp(cur, (xmlChar*)"canbewatched");
1475 if (tmp) {
1476 canbewatched = atoi((gchar*)tmp);
1477 g_free(tmp);
1478 }
1479
1480 players = (gchar*)xmlGetProp(cur, (xmlChar*)"players");
1481
1482 if (update) {
1483 if (status) {
1484 gtk_list_store_set(global->game_store, &iter,
1485 GAMELIST_COLUMN_STATUS, status,
1486 -1);
1487 }
1488
1489 if (players) {
1490 gtk_list_store_set(global->game_store, &iter,
1491 GAMELIST_COLUMN_PLAYERS, players,
1492 -1);
1493 }
1494
1495 if (canbejoined >= 0) {
1496 gtk_list_store_set(global->game_store, &iter,
1497 GAMELIST_COLUMN_CANBEJOINED, canbejoined,
1498 -1);
1499 }
1500
1501 if (canbewatched >= 0) {
1502 gtk_list_store_set(global->game_store, &iter,
1503 GAMELIST_COLUMN_CANBEWATCHED, canbewatched,
1504 -1);
1505 }
1506
1507 if (canbejoined >= 0 || canbewatched >= 0) {
1508 gint32 joined, watched;
1509
1510 gtk_tree_model_get(GTK_TREE_MODEL(global->game_store), &iter, GAMELIST_COLUMN_CANBEJOINED, &joined, GAMELIST_COLUMN_CANBEWATCHED, &watched, -1);
1511 gtk_list_store_set(global->game_store, &iter,
1512 GAMELIST_COLUMN_BGCOLOR, (joined || watched) ? "#c8ffc8" : "#ffc8c8",
1513 -1);
1514 }
1515 }
1516 else {
1517 gchar *game = NULL;
1518 gchar *gametype = (gchar*)xmlGetProp(cur, (xmlChar*)"gametype");
1519
1520 tmp = xmlGetProp(cur, (xmlChar*)"name");
1521 if (tmp) {
1522 if (id < 0) {
1523 game = g_strdup_printf("Create new %s game", (gchar*)tmp);
1524 } else {
1525 game = g_strdup_printf("%s game %d", (gchar*)tmp, id);
15751526 }
15761527 g_free(tmp);
1577 return;
1578 }
1579 g_free(tmp);
1580 }
1581
1582 tmp = xmlGetProp(cur, (xmlChar*)"name");
1583 if (tmp) {
1584 /* ONLY TEMPORARY ! */
1585 if(xmlStrcmp(tmp, (xmlChar*)"Monopoly")) {
1586 g_free(tmp);
1587 return;
1588 }
1589
1590 if (id < 0) {
1591 game = g_strdup_printf("Create a new %s game", (gchar*)tmp);
1592 } else {
1593 game = g_strdup_printf("Join %s game #%d", (gchar*)tmp, id);
1594 }
1595 g_free(tmp);
1596 }
1597
1598 description = (gchar*)xmlGetProp(cur, (xmlChar*)"description");
1599 if (update == TRUE && description) {
1600 gtk_list_store_set(store, &iter,
1601 GAMELIST_COLUMN_DESCRIPTION, description,
1602 -1);
1603 }
1604
1605 players = (gchar*)xmlGetProp(cur, (xmlChar*)"players");
1606 if (update == TRUE && players) {
1607 gtk_list_store_set(store, &iter,
1528 }
1529
1530 gtk_list_store_append(global->game_store, &iter);
1531 gtk_list_store_set(global->game_store, &iter,
1532 GAMELIST_COLUMN_HOST, c->host,
1533 GAMELIST_COLUMN_VERSION, c->server_version,
1534 GAMELIST_COLUMN_GAME, game,
1535 GAMELIST_COLUMN_STATUS, status,
16081536 GAMELIST_COLUMN_PLAYERS, players,
1609 -1);
1610 }
1611
1612 gametype = (gchar*)xmlGetProp(cur, (xmlChar*)"gametype");
1613
1614 if(update == FALSE) {
1615 version = connection[connectid]->server_version;
1616
1617 gtk_list_store_append(store, &iter);
1618 gtk_list_store_set(store, &iter,
1619 GAMELIST_COLUMN_HOST, host,
1620 GAMELIST_COLUMN_VERSION, version,
1621 GAMELIST_COLUMN_GAME, game,
1622 GAMELIST_COLUMN_DESCRIPTION, description,
1623 GAMELIST_COLUMN_PLAYERS, players,
1624 GAMELIST_COLUMN_PORT, port,
1537 GAMELIST_COLUMN_PORT, c->port,
16251538 GAMELIST_COLUMN_GAMETYPE, gametype,
1626 GAMELIST_COLUMN_ID, id,
1539 GAMELIST_COLUMN_GAMEID, id,
1540 GAMELIST_COLUMN_CANBEJOINED, canbejoined,
1541 GAMELIST_COLUMN_CANBEWATCHED, canbewatched,
1542 GAMELIST_COLUMN_BGCOLOR, (canbejoined || canbewatched) ? "#c8ffc8" : "#ffc8c8",
16271543 GAMELIST_COLUMN_SOURCE, GAMELIST_SOURCE_CUSTOM,
16281544 -1);
1629 }
1630
1631 g_free(game);
1632 g_free(description);
1545
1546 g_free(gametype);
1547 g_free(game);
1548 }
1549
16331550 if(players) g_free(players);
1634 g_free(gametype);
1551 if(status) g_free(status);
16351552 }
16361553
16371554
1638 void xmlparse_gamelist_deletegame(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur) {
1555 void xmlparse_gamelist_deletegame(connection *c, xmlDocPtr doc, xmlNodePtr cur) {
16391556 xmlChar *tmp;
16401557 gint32 id;
1641 gchar *host;
1642 gint32 port;
1643 GtkListStore *store;
16441558 GtkTreeIter iter;
16451559 gboolean valid;
16461560 (void)doc;
1647
1648 if (connectid != global->customserver_connectid) {
1649 return;
1650 }
1651
1652 if (global->phase != PHASE_GETGAMES) {
1653 client_disconnect(connectid);
1654 global->customserver_connectid = 0;
1655 return;
1656 }
1561 (void)c;
16571562
16581563 tmp = xmlGetProp(cur, (xmlChar*)"gameid");
16591564 id = atoi((gchar*)tmp);
16601565 g_free(tmp);
16611566
1662 host = connection[connectid]->host;
1663 port = connection[connectid]->port;
1664
1665 store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(global->GameList)));
1666 if (store == NULL) {
1667 return;
1668 }
1669
1670 valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(store), &iter);
1567 valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(global->game_store), &iter);
16711568 while (valid) {
1672 gchar *ehost;
1673 gint32 eport;
16741569 gint32 source;
16751570 gint32 eid;
16761571 GtkTreeIter curiter = iter;
16771572
1678 valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(store), &iter); /* get next iter so we can remove the current entry safely */
1679
1680 gtk_tree_model_get(GTK_TREE_MODEL(store), &curiter, GAMELIST_COLUMN_ID, &eid, GAMELIST_COLUMN_HOST, &ehost, GAMELIST_COLUMN_PORT, &eport, GAMELIST_COLUMN_SOURCE, &source, -1);
1681 if ( eid == id && source == GAMELIST_SOURCE_CUSTOM && !strcmp(host, ehost) && eport == port ) {
1682 gtk_list_store_remove(store, &curiter);
1683 }
1684 g_free(ehost);
1573 valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(global->game_store), &iter); /* get next iter so we can remove the current entry safely */
1574
1575 gtk_tree_model_get(GTK_TREE_MODEL(global->game_store), &curiter, GAMELIST_COLUMN_GAMEID, &eid, GAMELIST_COLUMN_SOURCE, &source, -1);
1576 if (eid == id && source == GAMELIST_SOURCE_CUSTOM) {
1577 gtk_list_store_remove(global->game_store, &curiter);
1578 }
16851579 }
16861580 }
16871581
16881582
1689 void xmlparse_metaserver(guint32 connectid, gchar *buffer) {
1583 void xmlparse_metaserver(connection *c, gchar *buffer) {
16901584
16911585 xmlChar *tmp;
16921586 xmlDocPtr doc;
16931587 xmlNodePtr cur, cur2;
1694 guint32 do_close = TRUE;
1695 GtkListStore *store;
1696
1697 if (global->phase != PHASE_GETGAMES) {
1698 client_disconnect(connectid);
1699 global->metaserver_connectid = 0;
1700 return;
1701 }
1588 (void)c;
17021589
17031590 doc = xmlParseMemory(buffer, strlen(buffer) );
17041591 if(doc == NULL) return;
17051592
17061593 cur = xmlDocGetRootElement(doc);
17071594 if (cur == NULL) {
1708
17091595 xmlFreeDoc(doc);
17101596 return;
17111597 }
17121598
17131599 if( xmlStrcmp(cur->name, METASERVER_XMLROOTELEMENT) ) {
1714
17151600 xmlFreeDoc(doc);
17161601 return;
1717 }
1718
1719 if(connection[connectid]->type == CONNECT_TYPE_META_GETLIST) {
1720 store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(global->ServerList)));
1721 if (store == NULL) {
1722 return;
1723 }
1724 gtk_list_store_clear(store);
1725 gtk_widget_hide(global->GameList);
1726 gtk_widget_show(global->ServerList);
1727 }
1728 else /* if(connection[connectid]->type == CONNECT_TYPE_META_GETGAME) */ {
1729 GtkTreeIter iter;
1730 gboolean valid;
1731
1732 store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(global->GameList)));
1733 if (store == NULL) {
1734 return;
1735 }
1736
1737 /* remove all games previously fetched from metaserver */
1738 valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(store), &iter);
1739 while (valid) {
1740 gint32 source;
1741 GtkTreeIter curiter = iter;
1742
1743 valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(store), &iter); /* get next iter so we can remove the current entry safely */
1744
1745 gtk_tree_model_get(GTK_TREE_MODEL(store), &curiter, GAMELIST_COLUMN_SOURCE, &source, -1);
1746 if (source == GAMELIST_SOURCE_METASERVER) {
1747 gtk_list_store_remove(store, &curiter);
1748 }
1749 }
1750 gtk_widget_hide(global->ServerList);
1751 gtk_widget_show(global->GameList);
17521602 }
17531603
17541604 for(cur = cur->xmlChildrenNode ; cur != NULL ; cur = cur -> next) {
17591609 tmp = xmlGetProp(cur, (xmlChar*)"version");
17601610 text = g_strdup_printf("Atlantic metaserver version %s", tmp);
17611611 g_free(tmp);
1762 text_insert_message(text, strlen(text));
1612 interface_set_infolabel(text, "008000", false);
17631613 g_free(text);
1764
1765 do_close = FALSE;
17661614 }
17671615
17681616 if(! xmlStrcmp(cur->name, (xmlChar*)"msg") ) {
17731621 g_free(tmp);
17741622 interface_create_messagewin(text);
17751623 g_free(text);
1776
1777 do_close = FALSE;
1778 }
1779
1780
1781 if(connection[connectid]->type == CONNECT_TYPE_META_GETLIST
1782 && !xmlStrcmp(cur->name, (xmlChar*)"server") ) {
1783 gchar *host, *version;
1784 gint32 port, users;
1785 GtkTreeIter iter;
1786
1787 host = (gchar*)xmlGetProp(cur, (xmlChar*)"host");
1788 tmp = xmlGetProp(cur, (xmlChar*)"port");
1789 port = atoi((gchar*)tmp);
1624 }
1625
1626 if(!xmlStrcmp(cur->name, (xmlChar*)"server") ) {
1627 gint32 serverid, users = -1;
1628 GtkTreeIter serveriter;
1629 bool valid, update = false;
1630
1631 tmp = xmlGetProp(cur, (xmlChar*)"id");
1632 if (!tmp) {
1633 continue;
1634 }
1635 serverid = atoi((gchar*)tmp);
17901636 g_free(tmp);
1791 version = (gchar*)xmlGetProp(cur, (xmlChar*)"version");
1637
1638 /* lookup if server already exist */
1639 valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(global->server_store), &serveriter);
1640 while (valid) {
1641 gint32 eid;
1642
1643 gtk_tree_model_get(GTK_TREE_MODEL(global->server_store), &serveriter, SERVERLIST_COLUMN_SERVERID, &eid, -1);
1644 if (eid == serverid) {
1645 update = true;
1646 break;
1647 }
1648
1649 valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(global->server_store), &serveriter);
1650 }
1651
17921652 tmp = xmlGetProp(cur, (xmlChar*)"users");
1793 users = atoi((gchar*)tmp);
1794 g_free(tmp);
1795
1796 gtk_list_store_append(store, &iter);
1797 gtk_list_store_set(store, &iter,
1798 SERVERLIST_COLUMN_HOST, host,
1799 SERVERLIST_COLUMN_PORT, port,
1800 SERVERLIST_COLUMN_VERSION, version,
1801 SERVERLIST_COLUMN_USERS, users,
1802 -1);
1803
1804 g_free(host);
1805 g_free(version);
1806 }
1807
1808 if(connection[connectid]->type == CONNECT_TYPE_META_GETGAME
1809 && !xmlStrcmp(cur->name, (xmlChar*)"servergamelist") ) {
1810 gchar *host, *version;
1811 gint32 port;
1812
1813 host = (gchar*)xmlGetProp(cur, (xmlChar*)"host");
1814 tmp = xmlGetProp(cur, (xmlChar*)"port");
1815 port = atoi((gchar*)tmp);
1816 g_free(tmp);
1817 version = (gchar*)xmlGetProp(cur, (xmlChar*)"version");
1653 if (tmp) {
1654 users = atoi((gchar*)tmp);
1655 g_free(tmp);
1656
1657 if (update == true) {
1658 gtk_list_store_set(global->server_store, &serveriter,
1659 SERVERLIST_COLUMN_USERS, users,
1660 -1);
1661 }
1662 }
1663
1664 if (update == false) {
1665 gchar *host, *version;
1666 gint32 port = -1;
1667
1668 host = (gchar*)xmlGetProp(cur, (xmlChar*)"host");
1669
1670 tmp = xmlGetProp(cur, (xmlChar*)"port");
1671 if (tmp) {
1672 port = atoi((gchar*)tmp);
1673 g_free(tmp);
1674 }
1675 version = (gchar*)xmlGetProp(cur, (xmlChar*)"version");
1676
1677 if (! (host && version && port >= 0 && users >= 0)) {
1678 continue;
1679 }
1680
1681 gtk_list_store_append(global->server_store, &serveriter);
1682 gtk_list_store_set(global->server_store, &serveriter,
1683 SERVERLIST_COLUMN_HOST, host,
1684 SERVERLIST_COLUMN_PORT, port,
1685 SERVERLIST_COLUMN_VERSION, version,
1686 SERVERLIST_COLUMN_USERS, users,
1687 SERVERLIST_COLUMN_SERVERID, serverid,
1688 -1);
1689
1690 g_free(host);
1691 g_free(version);
1692 }
18181693
18191694 for(cur2 = cur->xmlChildrenNode ; cur2 != NULL ; cur2 = cur2 -> next ) {
18201695
1821 if(! xmlStrcmp(cur2->name, (xmlChar*)"game") ) {
1696 if (!xmlStrcmp(cur2->name, (xmlChar*)"game") ) {
1697 gchar *players;
1698 gint32 gameid;
18221699 GtkTreeIter iter;
1823 gchar *game, *players = NULL, *description, *gametype;
1824 gint32 id;
1825
1826 tmp = xmlGetProp(cur2, (xmlChar*)"canbejoined");
1827 if(tmp && atoi((gchar*)tmp) == 0 ) {
1700 bool valid, update = false;
1701 gchar *status = NULL;
1702 gint32 canbejoined = -1, canbewatched = -1;
1703
1704 /* ONLY TEMPORARY ! */
1705 tmp = xmlGetProp(cur2, (xmlChar*)"gametype");
1706 if (tmp && xmlStrcmp(tmp, (xmlChar*)"city") && xmlStrcmp(tmp, (xmlChar*)"french_city") ) {
18281707 g_free(tmp);
18291708 continue;
18301709 }
1831 if(tmp) g_free(tmp);
1832
1833 /* ONLY TEMPORARY ! */
1834 tmp = xmlGetProp(cur2, (xmlChar*)"gametype");
1835 if(xmlStrcmp(tmp, (xmlChar*)"city") && xmlStrcmp(tmp, (xmlChar*)"french_city") ) {
1836 g_free(tmp);
1710
1711 tmp = xmlGetProp(cur2, (xmlChar*)"id");
1712 if (!tmp) {
18371713 continue;
18381714 }
1715 gameid = atoi((gchar*)tmp);
18391716 g_free(tmp);
18401717
1718 /* lookup if gameid on same server already exist */
1719 if (gameid > 0) {
1720 valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(global->game_store), &iter);
1721 while (valid) {
1722 gint32 source;
1723 gint32 egameid, eserverid;
1724
1725 gtk_tree_model_get(GTK_TREE_MODEL(global->game_store), &iter, GAMELIST_COLUMN_GAMEID, &egameid, GAMELIST_COLUMN_SERVERID, &eserverid, GAMELIST_COLUMN_SOURCE, &source, -1);
1726 if (source == GAMELIST_SOURCE_METASERVER && egameid == gameid && eserverid == serverid) {
1727 update = true;
1728 break;
1729 }
1730
1731 valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(global->game_store), &iter);
1732 }
1733 }
1734
1735 tmp = xmlGetProp(cur2, (xmlChar*)"turn");
1736 if(tmp) {
1737 int turn = atoi((gchar*)tmp);
1738 g_free(tmp);
1739
1740 if (turn >= 1) {
1741 status = g_strdup_printf("Playing, turn %d", turn);
1742 }
1743 }
1744
1745 tmp = xmlGetProp(cur2, (xmlChar*)"status");
1746 if(tmp) {
1747 if (!xmlStrcmp(tmp, (xmlChar*)"config") ) {
1748 if (status) {
1749 g_free(status);
1750 }
1751 status = g_strdup("Waiting for players");
1752 }
1753 else if (!xmlStrcmp(tmp, (xmlChar*)"end") ) {
1754 if (status) {
1755 g_free(status);
1756 }
1757 status = g_strdup("Finished");
1758 }
1759
1760 g_free(tmp);
1761 }
1762
1763 // game template
1764 if (gameid < 0) {
1765 canbejoined = true;
1766 canbewatched = false;
1767 }
1768 tmp = xmlGetProp(cur2, (xmlChar*)"canbejoined");
1769 if (tmp) {
1770 canbejoined = atoi((gchar*)tmp);
1771 g_free(tmp);
1772 }
1773
1774 tmp = xmlGetProp(cur2, (xmlChar*)"canbewatched");
1775 if (tmp) {
1776 canbewatched = atoi((gchar*)tmp);
1777 g_free(tmp);
1778 }
1779
1780 players = (gchar*)xmlGetProp(cur2, (xmlChar*)"players");
1781
1782 if (update) {
1783 if (status) {
1784 gtk_list_store_set(global->game_store, &iter,
1785 GAMELIST_COLUMN_STATUS, status,
1786 -1);
1787 }
1788
1789 if (players) {
1790 gtk_list_store_set(global->game_store, &iter,
1791 GAMELIST_COLUMN_PLAYERS, players,
1792 -1);
1793 }
1794
1795 if (canbejoined >= 0) {
1796 gtk_list_store_set(global->game_store, &iter,
1797 GAMELIST_COLUMN_CANBEJOINED, canbejoined,
1798 -1);
1799 }
1800
1801 if (canbewatched >= 0) {
1802 gtk_list_store_set(global->game_store, &iter,
1803 GAMELIST_COLUMN_CANBEWATCHED, canbewatched,
1804 -1);
1805 }
1806
1807 if (canbejoined >= 0 || canbewatched >= 0) {
1808 gint32 joined, watched;
1809
1810 gtk_tree_model_get(GTK_TREE_MODEL(global->game_store), &iter, GAMELIST_COLUMN_CANBEJOINED, &joined, GAMELIST_COLUMN_CANBEWATCHED, &watched, -1);
1811 gtk_list_store_set(global->game_store, &iter,
1812 GAMELIST_COLUMN_BGCOLOR, (joined || watched) ? "#c8ffc8" : "#ffc8c8",
1813 -1);
1814 }
1815 }
1816 else {
1817 gchar *host, *version, *game, *gametype;
1818 gint32 port;
1819
1820 tmp = xmlGetProp(cur2, (xmlChar*)"name");
1821 if (!tmp) {
1822 continue;
1823 }
1824 if(gameid < 0) {
1825 game = g_strdup_printf("Create new %s game", (gchar*)tmp);
1826 } else {
1827 game = g_strdup_printf("%s game %d", (gchar*)tmp, gameid);
1828 }
1829 g_free(tmp);
1830
1831 gametype = (gchar*)xmlGetProp(cur2, (xmlChar*)"gametype");
1832
1833 gtk_tree_model_get(GTK_TREE_MODEL(global->server_store), &serveriter,
1834 SERVERLIST_COLUMN_HOST, &host,
1835 SERVERLIST_COLUMN_PORT, &port,
1836 SERVERLIST_COLUMN_VERSION, &version,
1837 -1);
1838
1839 gtk_list_store_append(global->game_store, &iter);
1840 gtk_list_store_set(global->game_store, &iter,
1841 GAMELIST_COLUMN_HOST, host,
1842 GAMELIST_COLUMN_VERSION, version,
1843 GAMELIST_COLUMN_GAME, game,
1844 GAMELIST_COLUMN_STATUS, status,
1845 GAMELIST_COLUMN_PLAYERS, players,
1846 GAMELIST_COLUMN_PORT, port,
1847 GAMELIST_COLUMN_GAMETYPE, gametype,
1848 GAMELIST_COLUMN_GAMEID, gameid,
1849 GAMELIST_COLUMN_SERVERID, serverid,
1850 GAMELIST_COLUMN_CANBEJOINED, canbejoined,
1851 GAMELIST_COLUMN_CANBEWATCHED, canbewatched,
1852 GAMELIST_COLUMN_BGCOLOR, (canbejoined || canbewatched) ? "#c8ffc8" : "#ffc8c8",
1853 GAMELIST_COLUMN_SOURCE, GAMELIST_SOURCE_METASERVER,
1854 -1);
1855
1856 g_free(host);
1857 g_free(version);
1858 g_free(game);
1859 g_free(gametype);
1860 }
1861
1862 if (players) g_free(players);
1863 if (status) g_free(status);
1864 }
1865 else if (!xmlStrcmp(cur2->name, (xmlChar*)"deletegame") ) {
1866 gint32 gameid;
1867 GtkTreeIter iter;
1868 bool valid;
1869
18411870 tmp = xmlGetProp(cur2, (xmlChar*)"id");
1842 id = atoi((gchar*)tmp);
1871 if (!tmp) {
1872 continue;
1873 }
1874 gameid = atoi((gchar*)tmp);
18431875 g_free(tmp);
18441876
1845 tmp = xmlGetProp(cur2, (xmlChar*)"name");
1846 if(id < 0) {
1847 game = g_strdup_printf("Create a new %s game", (gchar*)tmp);
1848 } else {
1849 game = g_strdup_printf("Join %s game #%d", (gchar*)tmp, id);
1877 valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(global->game_store), &iter);
1878 while (valid) {
1879 gint32 source;
1880 gint32 egameid, eserverid;
1881
1882 gtk_tree_model_get(GTK_TREE_MODEL(global->game_store), &iter, GAMELIST_COLUMN_GAMEID, &egameid, GAMELIST_COLUMN_SERVERID, &eserverid, GAMELIST_COLUMN_SOURCE, &source, -1);
1883 if (source == GAMELIST_SOURCE_METASERVER && egameid == gameid && eserverid == serverid) {
1884 gtk_list_store_remove(global->game_store, &iter);
1885 break;
1886 }
1887
1888 valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(global->game_store), &iter);
18501889 }
1851 g_free(tmp);
1852
1853 description = (gchar*)xmlGetProp(cur2, (xmlChar*)"description");
1854 players = (gchar*)xmlGetProp(cur2, (xmlChar*)"players");
1855 gametype = (gchar*)xmlGetProp(cur2, (xmlChar*)"gametype");
1856
1857 gtk_list_store_append(store, &iter);
1858 gtk_list_store_set(store, &iter,
1859 GAMELIST_COLUMN_HOST, host,
1860 GAMELIST_COLUMN_VERSION, version,
1861 GAMELIST_COLUMN_GAME, game,
1862 GAMELIST_COLUMN_DESCRIPTION, description,
1863 GAMELIST_COLUMN_PLAYERS, players,
1864 GAMELIST_COLUMN_PORT, port,
1865 GAMELIST_COLUMN_GAMETYPE, gametype,
1866 GAMELIST_COLUMN_ID, id,
1867 GAMELIST_COLUMN_SOURCE, GAMELIST_SOURCE_METASERVER,
1868 -1);
1869
1870 g_free(game);
1871 g_free(description);
1872 if(players) g_free(players);
1873 g_free(gametype);
18741890 }
18751891 }
1876
1877 g_free(host);
1878 g_free(version);
1892 }
1893 else if(!xmlStrcmp(cur->name, (xmlChar*)"deleteserver") ) {
1894 gint32 id;
1895 GtkTreeIter iter;
1896 bool valid;
1897
1898 tmp = xmlGetProp(cur, (xmlChar*)"id");
1899 if (!tmp) {
1900 continue;
1901 }
1902 id = atoi((gchar*)tmp);
1903 g_free(tmp);
1904
1905 valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(global->server_store), &iter);
1906 while (valid) {
1907 gint32 eid;
1908
1909 gtk_tree_model_get(GTK_TREE_MODEL(global->server_store), &iter, SERVERLIST_COLUMN_SERVERID, &eid, -1);
1910 if (eid == id) {
1911 gtk_list_store_remove(global->server_store, &iter);
1912 break;
1913 }
1914
1915 valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(global->server_store), &iter);
1916 }
1917
1918 valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(global->game_store), &iter);
1919 while (valid) {
1920 gint32 source;
1921 gint32 eid;
1922 GtkTreeIter curiter = iter;
1923
1924 valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(global->game_store), &iter); /* get next iter so we can safely remove the current entry */
1925
1926 gtk_tree_model_get(GTK_TREE_MODEL(global->game_store), &curiter, GAMELIST_COLUMN_SERVERID, &eid, GAMELIST_COLUMN_SOURCE, &source, -1);
1927 if (source == GAMELIST_SOURCE_METASERVER && eid == id) {
1928 gtk_list_store_remove(global->game_store, &curiter);
1929 }
1930 }
18791931 }
18801932
18811933 }
18821934
18831935 xmlFreeDoc(doc);
1884 if (do_close) {
1885 client_disconnect(connectid);
1886 global->metaserver_connectid = 0;
1887 }
18881936 }
11 * gtkatlantic - the gtk+ monopd client, enjoy network monopoly games
22 *
33 *
4 * Copyright © 2002-2014 Sylvain Rochet
4 * Copyright © 2002-2015 Sylvain Rochet
55 *
66 * gtkatlantic is free software; you can redistribute it and/or modify
77 * it under the terms of the GNU General Public License as published by
1414 * GNU General Public License for more details.
1515 *
1616 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * along with this program; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
1919 */
20
21 #ifndef XMLPARSE_H
22 #define XMLPARSE_H
2023
2124 #include <gtk/gtk.h>
2225 #include <libxml/parser.h>
2326
27 #include "global.h"
28
2429 #define SERVER_XMLROOTELEMENT (xmlChar*)"monopd"
2530 #define METASERVER_XMLROOTELEMENT (xmlChar*)"meta_atlantic"
2631
27 void xmlparse_getgamelist_plugger(guint32 connectid, gchar *buffer);
28 void xmlparse_game_plugger(guint32 connectid, gchar *buffer);
32 void xmlparse_getgamelist_plugger(connection *c, gchar *buffer);
33 void xmlparse_game_plugger(connection *c, gchar *buffer);
2934
30 void xmlparse_server(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur);
31 void xmlparse_client(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur);
32 void xmlparse_gameupdate(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur);
33 void xmlparse_deletegame(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur);
34 void xmlparse_message(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur);
35 void xmlparse_estateupdate(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur);
36 void xmlparse_playerupdate(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur);
37 void xmlparse_auctionupdate(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur);
38 void xmlparse_display(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur);
39 void xmlparse_configupdate(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur);
40 void xmlparse_tradeupdate(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur);
41 void xmlparse_cardupdate(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur);
42 void xmlparse_estategroupupdate(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur);
43 void xmlparse_deleteplayer(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur);
35 void xmlparse_server(connection *c, xmlDocPtr doc, xmlNodePtr cur);
36 void xmlparse_client(connection *c, xmlDocPtr doc, xmlNodePtr cur);
37 void xmlparse_gameupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur);
38 void xmlparse_deletegame(connection *c, xmlDocPtr doc, xmlNodePtr cur);
39 void xmlparse_message(connection *c, xmlDocPtr doc, xmlNodePtr cur);
40 void xmlparse_estateupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur);
41 void xmlparse_playerupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur);
42 void xmlparse_auctionupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur);
43 void xmlparse_display(connection *c, xmlDocPtr doc, xmlNodePtr cur);
44 void xmlparse_configupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur);
45 void xmlparse_tradeupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur);
46 void xmlparse_cardupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur);
47 void xmlparse_estategroupupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur);
48 void xmlparse_deleteplayer(connection *c, xmlDocPtr doc, xmlNodePtr cur);
4449
45 void xmlparse_gamelist_gameupdate(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur);
46 void xmlparse_gamelist_deletegame(guint32 connectid, xmlDocPtr doc, xmlNodePtr cur);
50 void xmlparse_gamelist_gameupdate(connection *c, xmlDocPtr doc, xmlNodePtr cur);
51 void xmlparse_gamelist_deletegame(connection *c, xmlDocPtr doc, xmlNodePtr cur);
4752
48 void xmlparse_metaserver(guint32 connectid, gchar *buffer);
53 void xmlparse_metaserver(connection *c, gchar *buffer);
4954
50
55 #endif /* XMLPARSE_H */
themes/generic_gradient/cards.png less more
Binary diff not shown
themes/generic_gradient/estates.png less more
Binary diff not shown
themes/generic_gradient/houses.png less more
Binary diff not shown
themes/generic_gradient/pattern.png less more
Binary diff not shown
themes/generic_gradient/preview.png less more
Binary diff not shown
themes/generic_gradient/stars.png less more
Binary diff not shown
themes/generic_gradient/stars_m.png less more
Binary diff not shown
+0
-469
themes/generic_gradient/theme.conf less more
0 [general]
1 theme name="Generic Gradient" type="generic" version="0.1.0"
2 author name="Sylvain Rochet" email="gradator@gradator.net"
3 misc preview="preview.png"
4
5 [cards]
6 unmortgaged file="cards.png" x="0" y="0" width="13" height="20"
7 mortgaged file="cards.png" x="13" y="0" width="13" height="20"
8 area border="#0000ff" tab="#00ff00" separator="#ff0000"
9 color border="#000000"
10
11 [token_group]
12 general name="tokens"
13 player0 file="tokens.png" x="0" y="0" width="20" height="20"
14 player1 file="tokens.png" x="20" y="0" width="20" height="20"
15 player2 file="tokens.png" x="40" y="0" width="20" height="20"
16 player3 file="tokens.png" x="60" y="0" width="20" height="20"
17 player4 file="tokens.png" x="80" y="0" width="20" height="20"
18 player5 file="tokens.png" x="100" y="0" width="20" height="20"
19 player6 file="tokens.png" x="120" y="0" width="20" height="20"
20 player7 file="tokens.png" x="140" y="0" width="20" height="20"
21 player8 file="tokens.png" x="160" y="0" width="20" height="20"
22
23 [house_group]
24 general name="horizontal"
25 house0 file="houses.png" x="0" y="0" width="36" height="15"
26 house1 file="houses.png" x="0" y="15" width="36" height="15"
27 house2 file="houses.png" x="0" y="30" width="36" height="15"
28 house3 file="houses.png" x="0" y="45" width="36" height="15"
29 house4 file="houses.png" x="0" y="60" width="36" height="15"
30 house5 file="houses.png" x="0" y="75" width="36" height="15"
31
32 [house_group]
33 general name="vertical"
34 house0 file="houses.png" x="36" y="0" width="15" height="36"
35 house1 file="houses.png" x="51" y="0" width="15" height="36"
36 house2 file="houses.png" x="66" y="0" width="15" height="36"
37 house3 file="houses.png" x="81" y="0" width="15" height="36"
38 house4 file="houses.png" x="96" y="0" width="15" height="36"
39 house5 file="houses.png" x="111" y="0" width="15" height="36"
40
41 [star_group]
42 general name="stars"
43 player0 file="stars.png" x="0" y="0" width="19" height="20"
44 player1 file="stars.png" x="20" y="0" width="19" height="20"
45 player2 file="stars.png" x="40" y="0" width="19" height="20"
46 player3 file="stars.png" x="60" y="0" width="19" height="20"
47 player4 file="stars.png" x="80" y="0" width="19" height="20"
48 player5 file="stars.png" x="100" y="0" width="19" height="20"
49 player6 file="stars.png" x="120" y="0" width="19" height="20"
50 player7 file="stars.png" x="140" y="0" width="19" height="20"
51 player8 file="stars.png" x="160" y="0" width="19" height="20"
52
53 [star_group]
54 general name="stars_m"
55 player0 file="stars_m.png" x="0" y="0" width="19" height="20"
56 player1 file="stars_m.png" x="20" y="0" width="19" height="20"
57 player2 file="stars_m.png" x="40" y="0" width="19" height="20"
58 player3 file="stars_m.png" x="60" y="0" width="19" height="20"
59 player4 file="stars_m.png" x="80" y="0" width="19" height="20"
60 player5 file="stars_m.png" x="100" y="0" width="19" height="20"
61 player6 file="stars_m.png" x="120" y="0" width="19" height="20"
62 player7 file="stars_m.png" x="140" y="0" width="19" height="20"
63 player8 file="stars_m.png" x="160" y="0" width="19" height="20"
64
65 [board]
66 pattern file="pattern.png" x="0" y="0" width="108" height="108"
67
68 [estate]
69 general id="0"
70 data file="estates.png" x="72" y="0" width="59" height="59"
71 area border="#0000ff" tab="#00ff00" separator="#ff0000"
72 color border="#000000"
73 token_normal group="tokens" x1="4" y1="37" x2="37" y2="37"
74 token_jail group="tokens" x1="4" y1="4" x2="21" y2="21"
75 house group="horizontal" offset_x="0" offset_y="0"
76 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="37" offset_y="7"
77
78 [estate]
79 general id="1"
80 data file="estates.png" x="0" y="0" width="35" height="59"
81 area border="#0000ff" tab="#00ff00" separator="#ff0000"
82 color border="#000000"
83 token_normal group="tokens" x1="3" y1="37" x2="13" y2="37"
84 token_jail group="tokens" x1="3" y1="28" x2="13" y2="28"
85 house group="horizontal" offset_x="0" offset_y="0"
86 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="15"
87
88 [estate]
89 general id="2"
90 data file="estates.png" x="0" y="0" width="36" height="59"
91 area border="#0000ff" tab="#00ff00" separator="#ff0000"
92 color border="#000000"
93 token_normal group="tokens" x1="3" y1="37" x2="13" y2="37"
94 token_jail group="tokens" x1="3" y1="28" x2="13" y2="28"
95 house group="horizontal" offset_x="0" offset_y="0"
96 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="15"
97
98 [estate]
99 general id="3"
100 data file="estates.png" x="0" y="0" width="36" height="59"
101 area border="#0000ff" tab="#00ff00" separator="#ff0000"
102 color border="#000000"
103 token_normal group="tokens" x1="3" y1="37" x2="13" y2="37"
104 token_jail group="tokens" x1="3" y1="28" x2="13" y2="28"
105 house group="horizontal" offset_x="0" offset_y="0"
106 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="15"
107
108 [estate]
109 general id="4"
110 data file="estates.png" x="0" y="0" width="36" height="59"
111 area border="#0000ff" tab="#00ff00" separator="#ff0000"
112 color border="#000000"
113 token_normal group="tokens" x1="3" y1="37" x2="13" y2="37"
114 token_jail group="tokens" x1="3" y1="28" x2="13" y2="28"
115 house group="horizontal" offset_x="0" offset_y="0"
116 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="15"
117
118 [estate]
119 general id="5"
120 data file="estates.png" x="0" y="0" width="36" height="59"
121 area border="#0000ff" tab="#00ff00" separator="#ff0000"
122 color border="#000000"
123 token_normal group="tokens" x1="3" y1="37" x2="13" y2="37"
124 token_jail group="tokens" x1="3" y1="28" x2="13" y2="28"
125 house group="horizontal" offset_x="0" offset_y="0"
126 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="15"
127
128 [estate]
129 general id="6"
130 data file="estates.png" x="0" y="0" width="36" height="59"
131 area border="#0000ff" tab="#00ff00" separator="#ff0000"
132 color border="#000000"
133 token_normal group="tokens" x1="3" y1="37" x2="13" y2="37"
134 token_jail group="tokens" x1="3" y1="28" x2="13" y2="28"
135 house group="horizontal" offset_x="0" offset_y="0"
136 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="15"
137
138 [estate]
139 general id="7"
140 data file="estates.png" x="0" y="0" width="36" height="59"
141 area border="#0000ff" tab="#00ff00" separator="#ff0000"
142 color border="#000000"
143 token_normal group="tokens" x1="3" y1="37" x2="13" y2="37"
144 token_jail group="tokens" x1="3" y1="28" x2="13" y2="28"
145 house group="horizontal" offset_x="0" offset_y="0"
146 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="15"
147
148 [estate]
149 general id="8"
150 data file="estates.png" x="0" y="0" width="36" height="59"
151 area border="#0000ff" tab="#00ff00" separator="#ff0000"
152 color border="#000000"
153 token_normal group="tokens" x1="3" y1="37" x2="13" y2="37"
154 token_jail group="tokens" x1="3" y1="28" x2="13" y2="28"
155 house group="horizontal" offset_x="0" offset_y="0"
156 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="15"
157
158 [estate]
159 general id="9"
160 data file="estates.png" x="1" y="0" width="35" height="59"
161 area border="#0000ff" tab="#00ff00" separator="#ff0000"
162 color border="#000000"
163 token_normal group="tokens" x1="2" y1="37" x2="12" y2="37"
164 token_jail group="tokens" x1="2" y1="28" x2="12" y2="28"
165 house group="horizontal" offset_x="-1" offset_y="0"
166 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="7" offset_y="15"
167
168 [estate]
169 general id="10"
170 data file="estates.png" x="131" y="0" width="59" height="59"
171 area border="#0000ff" tab="#00ff00" separator="#ff0000"
172 color border="#000000"
173 token_normal group="tokens" x1="2" y1="4" x2="2" y2="37"
174 token_jail group="tokens" x1="35" y1="4" x2="18" y2="21"
175 house group="vertical" offset_x="0" offset_y="0"
176 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="32" offset_y="7"
177
178 [estate]
179 general id="11"
180 data file="estates.png" x="0" y="59" width="59" height="35"
181 area border="#0000ff" tab="#00ff00" separator="#ff0000"
182 color border="#000000"
183 token_normal group="tokens" x1="2" y1="3" x2="2" y2="13"
184 token_jail group="tokens" x1="11" y1="3" x2="11" y2="13"
185 house group="vertical" offset_x="44" offset_y="0"
186 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="23" offset_y="8"
187
188 [estate]
189 general id="12"
190 data file="estates.png" x="0" y="59" width="59" height="36"
191 area border="#0000ff" tab="#00ff00" separator="#ff0000"
192 color border="#000000"
193 token_normal group="tokens" x1="2" y1="3" x2="2" y2="13"
194 token_jail group="tokens" x1="11" y1="3" x2="11" y2="13"
195 house group="vertical" offset_x="44" offset_y="0"
196 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="23" offset_y="8"
197
198 [estate]
199 general id="13"
200 data file="estates.png" x="0" y="59" width="59" height="36"
201 area border="#0000ff" tab="#00ff00" separator="#ff0000"
202 color border="#000000"
203 token_normal group="tokens" x1="2" y1="3" x2="2" y2="13"
204 token_jail group="tokens" x1="11" y1="3" x2="11" y2="13"
205 house group="vertical" offset_x="44" offset_y="0"
206 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="23" offset_y="8"
207
208 [estate]
209 general id="14"
210 data file="estates.png" x="0" y="59" width="59" height="36"
211 area border="#0000ff" tab="#00ff00" separator="#ff0000"
212 color border="#000000"
213 token_normal group="tokens" x1="2" y1="3" x2="2" y2="13"
214 token_jail group="tokens" x1="11" y1="3" x2="11" y2="13"
215 house group="vertical" offset_x="44" offset_y="0"
216 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="23" offset_y="8"
217
218 [estate]
219 general id="15"
220 data file="estates.png" x="0" y="59" width="59" height="36"
221 area border="#0000ff" tab="#00ff00" separator="#ff0000"
222 color border="#000000"
223 token_normal group="tokens" x1="2" y1="3" x2="2" y2="13"
224 token_jail group="tokens" x1="11" y1="3" x2="11" y2="13"
225 house group="vertical" offset_x="44" offset_y="0"
226 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="23" offset_y="8"
227
228 [estate]
229 general id="16"
230 data file="estates.png" x="0" y="59" width="59" height="36"
231 area border="#0000ff" tab="#00ff00" separator="#ff0000"
232 color border="#000000"
233 token_normal group="tokens" x1="2" y1="3" x2="2" y2="13"
234 token_jail group="tokens" x1="11" y1="3" x2="11" y2="13"
235 house group="vertical" offset_x="44" offset_y="0"
236 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="23" offset_y="8"
237
238 [estate]
239 general id="17"
240 data file="estates.png" x="0" y="59" width="59" height="36"
241 area border="#0000ff" tab="#00ff00" separator="#ff0000"
242 color border="#000000"
243 token_normal group="tokens" x1="2" y1="3" x2="2" y2="13"
244 token_jail group="tokens" x1="11" y1="3" x2="11" y2="13"
245 house group="vertical" offset_x="44" offset_y="0"
246 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="23" offset_y="8"
247
248 [estate]
249 general id="18"
250 data file="estates.png" x="0" y="59" width="59" height="36"
251 area border="#0000ff" tab="#00ff00" separator="#ff0000"
252 color border="#000000"
253 token_normal group="tokens" x1="2" y1="3" x2="2" y2="13"
254 token_jail group="tokens" x1="11" y1="3" x2="11" y2="13"
255 house group="vertical" offset_x="44" offset_y="0"
256 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="23" offset_y="8"
257
258 [estate]
259 general id="19"
260 data file="estates.png" x="0" y="60" width="59" height="35"
261 area border="#0000ff" tab="#00ff00" separator="#ff0000"
262 color border="#000000"
263 token_normal group="tokens" x1="2" y1="2" x2="2" y2="12"
264 token_jail group="tokens" x1="11" y1="2" x2="11" y2="12"
265 house group="vertical" offset_x="44" offset_y="-1"
266 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="23" offset_y="7"
267
268 [estate]
269 general id="20"
270 data file="estates.png" x="72" y="59" width="59" height="59"
271 area border="#0000ff" tab="#00ff00" separator="#ff0000"
272 color border="#000000"
273 token_normal group="tokens" x1="35" y1="2" x2="2" y2="2"
274 token_jail group="tokens" x1="35" y1="35" x2="18" y2="18"
275 house group="horizontal" offset_x="0" offset_y="0"
276 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="32" offset_y="33"
277
278 [estate]
279 general id="21"
280 data file="estates.png" x="37" y="0" width="35" height="59"
281 area border="#0000ff" tab="#00ff00" separator="#ff0000"
282 color border="#000000"
283 token_normal group="tokens" x1="12" y1="2" x2="2" y2="2"
284 token_jail group="tokens" x1="12" y1="11" x2="2" y2="11"
285 house group="horizontal" offset_x="-1" offset_y="44"
286 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="7" offset_y="24"
287
288 [estate]
289 general id="22"
290 data file="estates.png" x="36" y="0" width="36" height="59"
291 area border="#0000ff" tab="#00ff00" separator="#ff0000"
292 color border="#000000"
293 token_normal group="tokens" x1="13" y1="2" x2="3" y2="2"
294 token_jail group="tokens" x1="13" y1="11" x2="3" y2="11"
295 house group="horizontal" offset_x="0" offset_y="44"
296 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="24"
297
298 [estate]
299 general id="23"
300 data file="estates.png" x="36" y="0" width="36" height="59"
301 area border="#0000ff" tab="#00ff00" separator="#ff0000"
302 color border="#000000"
303 token_normal group="tokens" x1="13" y1="2" x2="3" y2="2"
304 token_jail group="tokens" x1="13" y1="11" x2="3" y2="11"
305 house group="horizontal" offset_x="0" offset_y="44"
306 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="24"
307
308 [estate]
309 general id="24"
310 data file="estates.png" x="36" y="0" width="36" height="59"
311 area border="#0000ff" tab="#00ff00" separator="#ff0000"
312 color border="#000000"
313 token_normal group="tokens" x1="13" y1="2" x2="3" y2="2"
314 token_jail group="tokens" x1="13" y1="11" x2="3" y2="11"
315 house group="horizontal" offset_x="0" offset_y="44"
316 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="24"
317
318 [estate]
319 general id="25"
320 data file="estates.png" x="36" y="0" width="36" height="59"
321 area border="#0000ff" tab="#00ff00" separator="#ff0000"
322 color border="#000000"
323 token_normal group="tokens" x1="13" y1="2" x2="3" y2="2"
324 token_jail group="tokens" x1="13" y1="11" x2="3" y2="11"
325 house group="horizontal" offset_x="0" offset_y="44"
326 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="24"
327
328 [estate]
329 general id="26"
330 data file="estates.png" x="36" y="0" width="36" height="59"
331 area border="#0000ff" tab="#00ff00" separator="#ff0000"
332 color border="#000000"
333 token_normal group="tokens" x1="13" y1="2" x2="3" y2="2"
334 token_jail group="tokens" x1="13" y1="11" x2="3" y2="11"
335 house group="horizontal" offset_x="0" offset_y="44"
336 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="24"
337
338 [estate]
339 general id="27"
340 data file="estates.png" x="36" y="0" width="36" height="59"
341 area border="#0000ff" tab="#00ff00" separator="#ff0000"
342 color border="#000000"
343 token_normal group="tokens" x1="13" y1="2" x2="3" y2="2"
344 token_jail group="tokens" x1="13" y1="11" x2="3" y2="11"
345 house group="horizontal" offset_x="0" offset_y="44"
346 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="24"
347
348 [estate]
349 general id="28"
350 data file="estates.png" x="36" y="0" width="36" height="59"
351 area border="#0000ff" tab="#00ff00" separator="#ff0000"
352 color border="#000000"
353 token_normal group="tokens" x1="13" y1="2" x2="3" y2="2"
354 token_jail group="tokens" x1="13" y1="11" x2="3" y2="11"
355 house group="horizontal" offset_x="0" offset_y="44"
356 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="24"
357
358 [estate]
359 general id="29"
360 data file="estates.png" x="36" y="0" width="35" height="59"
361 area border="#0000ff" tab="#00ff00" separator="#ff0000"
362 color border="#000000"
363 token_normal group="tokens" x1="13" y1="2" x2="3" y2="2"
364 token_jail group="tokens" x1="13" y1="11" x2="3" y2="11"
365 house group="horizontal" offset_x="0" offset_y="44"
366 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="8" offset_y="24"
367
368 [estate]
369 general id="30"
370 data file="estates.png" x="131" y="59" width="59" height="59"
371 area border="#0000ff" tab="#00ff00" separator="#ff0000"
372 color border="#000000"
373 token_normal group="tokens" x1="37" y1="35" x2="37" y2="2"
374 token_jail group="tokens" x1="4" y1="35" x2="21" y2="18"
375 house group="vertical" offset_x="0" offset_y="0"
376 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="7" offset_y="33"
377
378 [estate]
379 general id="31"
380 data file="estates.png" x="0" y="96" width="59" height="35"
381 area border="#0000ff" tab="#00ff00" separator="#ff0000"
382 color border="#000000"
383 token_normal group="tokens" x1="37" y1="12" x2="37" y2="2"
384 token_jail group="tokens" x1="28" y1="12" x2="28" y2="2"
385 house group="vertical" offset_x="0" offset_y="-1"
386 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="16" offset_y="7"
387
388 [estate]
389 general id="32"
390 data file="estates.png" x="0" y="95" width="59" height="36"
391 area border="#0000ff" tab="#00ff00" separator="#ff0000"
392 color border="#000000"
393 token_normal group="tokens" x1="37" y1="13" x2="37" y2="3"
394 token_jail group="tokens" x1="28" y1="13" x2="28" y2="3"
395 house group="vertical" offset_x="0" offset_y="0"
396 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="16" offset_y="8"
397
398 [estate]
399 general id="33"
400 data file="estates.png" x="0" y="95" width="59" height="36"
401 area border="#0000ff" tab="#00ff00" separator="#ff0000"
402 color border="#000000"
403 token_normal group="tokens" x1="37" y1="13" x2="37" y2="3"
404 token_jail group="tokens" x1="28" y1="13" x2="28" y2="3"
405 house group="vertical" offset_x="0" offset_y="0"
406 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="16" offset_y="8"
407
408 [estate]
409 general id="34"
410 data file="estates.png" x="0" y="95" width="59" height="36"
411 area border="#0000ff" tab="#00ff00" separator="#ff0000"
412 color border="#000000"
413 token_normal group="tokens" x1="37" y1="13" x2="37" y2="3"
414 token_jail group="tokens" x1="28" y1="13" x2="28" y2="3"
415 house group="vertical" offset_x="0" offset_y="0"
416 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="16" offset_y="8"
417
418 [estate]
419 general id="35"
420 data file="estates.png" x="0" y="95" width="59" height="36"
421 area border="#0000ff" tab="#00ff00" separator="#ff0000"
422 color border="#000000"
423 token_normal group="tokens" x1="37" y1="13" x2="37" y2="3"
424 token_jail group="tokens" x1="28" y1="13" x2="28" y2="3"
425 house group="vertical" offset_x="0" offset_y="0"
426 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="16" offset_y="8"
427
428 [estate]
429 general id="36"
430 data file="estates.png" x="0" y="95" width="59" height="36"
431 area border="#0000ff" tab="#00ff00" separator="#ff0000"
432 color border="#000000"
433 token_normal group="tokens" x1="37" y1="13" x2="37" y2="3"
434 token_jail group="tokens" x1="28" y1="13" x2="28" y2="3"
435 house group="vertical" offset_x="0" offset_y="0"
436 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="16" offset_y="8"
437
438 [estate]
439 general id="37"
440 data file="estates.png" x="0" y="95" width="59" height="36"
441 area border="#0000ff" tab="#00ff00" separator="#ff0000"
442 color border="#000000"
443 token_normal group="tokens" x1="37" y1="13" x2="37" y2="3"
444 token_jail group="tokens" x1="28" y1="13" x2="28" y2="3"
445 house group="vertical" offset_x="0" offset_y="0"
446 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="16" offset_y="8"
447
448 [estate]
449 general id="38"
450 data file="estates.png" x="0" y="95" width="59" height="36"
451 area border="#0000ff" tab="#00ff00" separator="#ff0000"
452 color border="#000000"
453 token_normal group="tokens" x1="37" y1="13" x2="37" y2="3"
454 token_jail group="tokens" x1="28" y1="13" x2="28" y2="3"
455 house group="vertical" offset_x="0" offset_y="0"
456 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="16" offset_y="8"
457
458 [estate]
459 general id="39"
460 data file="estates.png" x="0" y="95" width="59" height="35"
461 area border="#0000ff" tab="#00ff00" separator="#ff0000"
462 color border="#000000"
463 token_normal group="tokens" x1="37" y1="13" x2="37" y2="3"
464 token_jail group="tokens" x1="28" y1="13" x2="28" y2="3"
465 house group="vertical" offset_x="0" offset_y="0"
466 star group_unmortgaged="stars" group_mortgaged="stars_m" offset_x="16" offset_y="8"
467
468
themes/generic_gradient/tokens.png less more
Binary diff not shown