Merge lp:~dbusmenu-team/libdbusmenu/ubuntu into lp:~ubuntu-desktop/libdbusmenu/ubuntu
- ubuntu
- Merge into ubuntu
Proposed by
Ted Gould
Status: | Merged |
---|---|
Merged at revision: | 155 |
Proposed branch: | lp:~dbusmenu-team/libdbusmenu/ubuntu |
Merge into: | lp:~ubuntu-desktop/libdbusmenu/ubuntu |
Diff against target: |
29674 lines (+20121/-8900) 80 files modified
ChangeLog (+12/-0) Makefile.in (+1/-6) aclocal.m4 (+8855/-9) configure (+11/-15) configure.ac (+3/-3) debian/changelog (+7/-0) docs/Makefile.in (+1/-6) docs/libdbusmenu-glib/Makefile.in (+1/-6) docs/libdbusmenu-glib/reference/Makefile.in (+1/-6) docs/libdbusmenu-glib/reference/html/annotation-glossary.html (+77/-0) docs/libdbusmenu-glib/reference/html/api-index-deprecated.html (+31/-0) docs/libdbusmenu-glib/reference/html/api-index-full.html (+577/-0) docs/libdbusmenu-glib/reference/html/ch01.html (+50/-0) docs/libdbusmenu-glib/reference/html/index.html (+49/-0) docs/libdbusmenu-glib/reference/html/index.sgml (+171/-0) docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuClient.html (+597/-0) docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuMenuitem.html (+1789/-0) docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuMenuitemProxy.html (+166/-0) docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuServer.html (+412/-0) docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-Types.html (+274/-0) docs/libdbusmenu-glib/reference/html/libdbusmenu-glib.devhelp (+152/-0) docs/libdbusmenu-glib/reference/html/libdbusmenu-glib.devhelp2 (+157/-0) docs/libdbusmenu-glib/reference/html/object-tree.html (+32/-0) docs/libdbusmenu-glib/reference/html/style.css (+266/-0) docs/libdbusmenu-glib/reference/tmpl/client.sgml (+221/-0) docs/libdbusmenu-glib/reference/tmpl/menuitem-proxy.sgml (+59/-0) docs/libdbusmenu-glib/reference/tmpl/menuitem.sgml (+691/-0) docs/libdbusmenu-glib/reference/tmpl/server.sgml (+171/-0) docs/libdbusmenu-glib/reference/tmpl/types.sgml (+109/-0) docs/libdbusmenu-glib/reference/version.xml (+1/-1) docs/libdbusmenu-glib/reference/xml/annotation-glossary.xml (+72/-0) docs/libdbusmenu-glib/reference/xml/api-index-deprecated.xml (+8/-0) docs/libdbusmenu-glib/reference/xml/api-index-full.xml (+149/-0) docs/libdbusmenu-glib/reference/xml/client.xml (+439/-0) docs/libdbusmenu-glib/reference/xml/menuitem-proxy.xml (+114/-0) docs/libdbusmenu-glib/reference/xml/menuitem.xml (+1259/-0) docs/libdbusmenu-glib/reference/xml/server.xml (+309/-0) docs/libdbusmenu-glib/reference/xml/types.xml (+190/-0) docs/libdbusmenu-gtk/Makefile.in (+1/-6) docs/libdbusmenu-gtk/reference/Makefile.in (+1/-6) docs/libdbusmenu-gtk/reference/html/annotation-glossary.html (+47/-0) docs/libdbusmenu-gtk/reference/html/api-index-deprecated.html (+31/-0) docs/libdbusmenu-gtk/reference/html/api-index-full.html (+119/-0) docs/libdbusmenu-gtk/reference/html/ch01.html (+45/-0) docs/libdbusmenu-gtk/reference/html/index.html (+44/-0) docs/libdbusmenu-gtk/reference/html/index.sgml (+43/-0) docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-DbusmenuGtkClient.html (+347/-0) docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-DbusmenuGtkMenu.html (+187/-0) docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-menuitem.html (+274/-0) docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-parser.html (+118/-0) docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk.devhelp (+38/-0) docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk.devhelp2 (+38/-0) docs/libdbusmenu-gtk/reference/html/object-tree.html (+32/-0) docs/libdbusmenu-gtk/reference/html/style.css (+266/-0) docs/libdbusmenu-gtk/reference/tmpl/client.sgml (+110/-0) docs/libdbusmenu-gtk/reference/tmpl/menu.sgml (+56/-0) docs/libdbusmenu-gtk/reference/tmpl/menuitem.sgml (+86/-0) docs/libdbusmenu-gtk/reference/tmpl/parser.sgml (+42/-0) docs/libdbusmenu-gtk/reference/version.xml (+1/-1) docs/libdbusmenu-gtk/reference/xml/annotation-glossary.xml (+32/-0) docs/libdbusmenu-gtk/reference/xml/api-index-deprecated.xml (+8/-0) docs/libdbusmenu-gtk/reference/xml/api-index-full.xml (+32/-0) docs/libdbusmenu-gtk/reference/xml/client.xml (+238/-0) docs/libdbusmenu-gtk/reference/xml/menu.xml (+133/-0) docs/libdbusmenu-gtk/reference/xml/menuitem.xml (+178/-0) docs/libdbusmenu-gtk/reference/xml/parser.xml (+77/-0) libdbusmenu-glib/Makefile.in (+1/-6) libdbusmenu-gtk/Makefile.in (+1/-6) libdbusmenu-gtk/genericmenuitem.c (+8/-8) m4/gnome-doc-utils.m4 (+0/-56) m4/gtk-doc.m4 (+0/-61) m4/intltool.m4 (+0/-216) m4/libtool.m4 (+0/-7851) m4/ltoptions.m4 (+0/-369) m4/ltsugar.m4 (+0/-123) m4/ltversion.m4 (+0/-23) m4/lt~obsolete.m4 (+0/-98) tests/Makefile.in (+1/-6) tools/Makefile.in (+1/-6) tools/testapp/Makefile.in (+1/-6) |
To merge this branch: | bzr merge lp:~dbusmenu-team/libdbusmenu/ubuntu |
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ken VanDine | Pending | ||
Review via email: mp+72909@code.launchpad.net |
Commit message
Description of the change
Fixing the layout of the boxes
To post a comment you must log in.
- 155. By Ken VanDine
-
* New upstream release.
* Fix packing of generic menu items to use toggle-spacing
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'ChangeLog' | |||
2 | --- ChangeLog 2011-08-24 21:12:42 +0000 | |||
3 | +++ ChangeLog 2011-08-25 14:57:24 +0000 | |||
4 | @@ -1,5 +1,17 @@ | |||
5 | 1 | # Generated by Makefile. Do not edit. | 1 | # Generated by Makefile. Do not edit. |
6 | 2 | 2 | ||
7 | 3 | 2011-08-25 Ted Gould <ted@gould.cx> | ||
8 | 4 | |||
9 | 5 | 0.4.93 | ||
10 | 6 | |||
11 | 7 | 2011-08-25 Ted Gould <ted@gould.cx> | ||
12 | 8 | |||
13 | 9 | Fix packing to use toggle spacing | ||
14 | 10 | |||
15 | 11 | 2011-08-24 Ted Gould <ted@gould.cx> | ||
16 | 12 | |||
17 | 13 | Changing from using hspace to using toggle-space | ||
18 | 14 | |||
19 | 3 | 2011-08-24 Ted Gould <ted@gould.cx> | 15 | 2011-08-24 Ted Gould <ted@gould.cx> |
20 | 4 | 16 | ||
21 | 5 | 0.4.92 | 17 | 0.4.92 |
22 | 6 | 18 | ||
23 | === modified file 'Makefile.in' | |||
24 | --- Makefile.in 2011-06-20 21:43:41 +0000 | |||
25 | +++ Makefile.in 2011-08-25 14:57:24 +0000 | |||
26 | @@ -40,12 +40,7 @@ | |||
27 | 40 | compile config.guess config.sub depcomp install-sh ltmain.sh \ | 40 | compile config.guess config.sub depcomp install-sh ltmain.sh \ |
28 | 41 | missing mkinstalldirs | 41 | missing mkinstalldirs |
29 | 42 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | 42 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
36 | 43 | am__aclocal_m4_deps = $(top_srcdir)/m4/gnome-doc-utils.m4 \ | 43 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
31 | 44 | $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/intltool.m4 \ | ||
32 | 45 | $(top_srcdir)/m4/introspection.m4 $(top_srcdir)/m4/libtool.m4 \ | ||
33 | 46 | $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ | ||
34 | 47 | $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ | ||
35 | 48 | $(top_srcdir)/configure.ac | ||
37 | 49 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | 44 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
38 | 50 | $(ACLOCAL_M4) | 45 | $(ACLOCAL_M4) |
39 | 51 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ | 46 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ |
40 | 52 | 47 | ||
41 | === modified file 'aclocal.m4' | |||
42 | --- aclocal.m4 2011-06-20 21:43:41 +0000 | |||
43 | +++ aclocal.m4 2011-08-25 14:57:24 +0000 | |||
44 | @@ -452,6 +452,8861 @@ | |||
45 | 452 | fi]) | 452 | fi]) |
46 | 453 | 453 | ||
47 | 454 | 454 | ||
48 | 455 | dnl Do not call GNOME_DOC_DEFINES directly. It is split out from | ||
49 | 456 | dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself. | ||
50 | 457 | AC_DEFUN([GNOME_DOC_DEFINES], | ||
51 | 458 | [ | ||
52 | 459 | AC_ARG_WITH([help-dir], | ||
53 | 460 | AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),, | ||
54 | 461 | [with_help_dir='${datadir}/gnome/help']) | ||
55 | 462 | HELP_DIR="$with_help_dir" | ||
56 | 463 | AC_SUBST(HELP_DIR) | ||
57 | 464 | |||
58 | 465 | AC_ARG_WITH([omf-dir], | ||
59 | 466 | AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),, | ||
60 | 467 | [with_omf_dir='${datadir}/omf']) | ||
61 | 468 | OMF_DIR="$with_omf_dir" | ||
62 | 469 | AC_SUBST(OMF_DIR) | ||
63 | 470 | |||
64 | 471 | AC_ARG_WITH([help-formats], | ||
65 | 472 | AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),, | ||
66 | 473 | [with_help_formats='']) | ||
67 | 474 | DOC_USER_FORMATS="$with_help_formats" | ||
68 | 475 | AC_SUBST(DOC_USER_FORMATS) | ||
69 | 476 | |||
70 | 477 | AC_ARG_ENABLE([scrollkeeper], | ||
71 | 478 | [AC_HELP_STRING([--disable-scrollkeeper], | ||
72 | 479 | [do not make updates to the scrollkeeper database])],, | ||
73 | 480 | enable_scrollkeeper=yes) | ||
74 | 481 | AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"]) | ||
75 | 482 | |||
76 | 483 | dnl disable scrollkeeper automatically for distcheck | ||
77 | 484 | DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS" | ||
78 | 485 | AC_SUBST(DISTCHECK_CONFIGURE_FLAGS) | ||
79 | 486 | |||
80 | 487 | AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"]) | ||
81 | 488 | ]) | ||
82 | 489 | |||
83 | 490 | # GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND]) | ||
84 | 491 | # | ||
85 | 492 | AC_DEFUN([GNOME_DOC_INIT], | ||
86 | 493 | [AC_REQUIRE([AC_PROG_LN_S])dnl | ||
87 | 494 | |||
88 | 495 | ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1]) | ||
89 | 496 | |||
90 | 497 | AC_MSG_CHECKING([gnome-doc-utils >= $gdu_cv_version_required]) | ||
91 | 498 | PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required], | ||
92 | 499 | [gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no]) | ||
93 | 500 | |||
94 | 501 | if test "$gdu_cv_have_gdu" = "yes"; then | ||
95 | 502 | AC_MSG_RESULT([yes]) | ||
96 | 503 | ifelse([$2],,[:],[$2]) | ||
97 | 504 | else | ||
98 | 505 | AC_MSG_RESULT([no]) | ||
99 | 506 | ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3]) | ||
100 | 507 | fi | ||
101 | 508 | |||
102 | 509 | GNOME_DOC_DEFINES | ||
103 | 510 | ]) | ||
104 | 511 | |||
105 | 512 | dnl -*- mode: autoconf -*- | ||
106 | 513 | |||
107 | 514 | # serial 1 | ||
108 | 515 | |||
109 | 516 | dnl Usage: | ||
110 | 517 | dnl GTK_DOC_CHECK([minimum-gtk-doc-version]) | ||
111 | 518 | AC_DEFUN([GTK_DOC_CHECK], | ||
112 | 519 | [ | ||
113 | 520 | AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first | ||
114 | 521 | AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first | ||
115 | 522 | |||
116 | 523 | dnl check for tools we added during development | ||
117 | 524 | AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check]) | ||
118 | 525 | AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true]) | ||
119 | 526 | AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf]) | ||
120 | 527 | |||
121 | 528 | dnl for overriding the documentation installation directory | ||
122 | 529 | AC_ARG_WITH([html-dir], | ||
123 | 530 | AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),, | ||
124 | 531 | [with_html_dir='${datadir}/gtk-doc/html']) | ||
125 | 532 | HTML_DIR="$with_html_dir" | ||
126 | 533 | AC_SUBST([HTML_DIR]) | ||
127 | 534 | |||
128 | 535 | dnl enable/disable documentation building | ||
129 | 536 | AC_ARG_ENABLE([gtk-doc], | ||
130 | 537 | AS_HELP_STRING([--enable-gtk-doc], | ||
131 | 538 | [use gtk-doc to build documentation [[default=no]]]),, | ||
132 | 539 | [enable_gtk_doc=no]) | ||
133 | 540 | |||
134 | 541 | if test x$enable_gtk_doc = xyes; then | ||
135 | 542 | ifelse([$1],[], | ||
136 | 543 | [PKG_CHECK_EXISTS([gtk-doc],, | ||
137 | 544 | AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))], | ||
138 | 545 | [PKG_CHECK_EXISTS([gtk-doc >= $1],, | ||
139 | 546 | AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))]) | ||
140 | 547 | fi | ||
141 | 548 | |||
142 | 549 | AC_MSG_CHECKING([whether to build gtk-doc documentation]) | ||
143 | 550 | AC_MSG_RESULT($enable_gtk_doc) | ||
144 | 551 | |||
145 | 552 | dnl enable/disable output formats | ||
146 | 553 | AC_ARG_ENABLE([gtk-doc-html], | ||
147 | 554 | AS_HELP_STRING([--enable-gtk-doc-html], | ||
148 | 555 | [build documentation in html format [[default=yes]]]),, | ||
149 | 556 | [enable_gtk_doc_html=yes]) | ||
150 | 557 | AC_ARG_ENABLE([gtk-doc-pdf], | ||
151 | 558 | AS_HELP_STRING([--enable-gtk-doc-pdf], | ||
152 | 559 | [build documentation in pdf format [[default=no]]]),, | ||
153 | 560 | [enable_gtk_doc_pdf=no]) | ||
154 | 561 | |||
155 | 562 | if test -z "$GTKDOC_MKPDF"; then | ||
156 | 563 | enable_gtk_doc_pdf=no | ||
157 | 564 | fi | ||
158 | 565 | |||
159 | 566 | |||
160 | 567 | AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes]) | ||
161 | 568 | AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes]) | ||
162 | 569 | AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes]) | ||
163 | 570 | AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"]) | ||
164 | 571 | AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"]) | ||
165 | 572 | ]) | ||
166 | 573 | |||
167 | 574 | |||
168 | 575 | dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) | ||
169 | 576 | # serial 40 IT_PROG_INTLTOOL | ||
170 | 577 | AC_DEFUN([IT_PROG_INTLTOOL], [ | ||
171 | 578 | AC_PREREQ([2.50])dnl | ||
172 | 579 | AC_REQUIRE([AM_NLS])dnl | ||
173 | 580 | |||
174 | 581 | case "$am__api_version" in | ||
175 | 582 | 1.[01234]) | ||
176 | 583 | AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) | ||
177 | 584 | ;; | ||
178 | 585 | *) | ||
179 | 586 | ;; | ||
180 | 587 | esac | ||
181 | 588 | |||
182 | 589 | if test -n "$1"; then | ||
183 | 590 | AC_MSG_CHECKING([for intltool >= $1]) | ||
184 | 591 | |||
185 | 592 | INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` | ||
186 | 593 | INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` | ||
187 | 594 | [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` | ||
188 | 595 | ] | ||
189 | 596 | AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) | ||
190 | 597 | test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || | ||
191 | 598 | AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) | ||
192 | 599 | fi | ||
193 | 600 | |||
194 | 601 | AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) | ||
195 | 602 | AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) | ||
196 | 603 | AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) | ||
197 | 604 | if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then | ||
198 | 605 | AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) | ||
199 | 606 | fi | ||
200 | 607 | |||
201 | 608 | INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
202 | 609 | INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
203 | 610 | INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
204 | 611 | INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
205 | 612 | INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@' | ||
206 | 613 | INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
207 | 614 | INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
208 | 615 | INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
209 | 616 | INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
210 | 617 | INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
211 | 618 | INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
212 | 619 | INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' | ||
213 | 620 | INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
214 | 621 | INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
215 | 622 | INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
216 | 623 | INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
217 | 624 | INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
218 | 625 | INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
219 | 626 | INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
220 | 627 | |||
221 | 628 | _IT_SUBST(INTLTOOL_DESKTOP_RULE) | ||
222 | 629 | _IT_SUBST(INTLTOOL_DIRECTORY_RULE) | ||
223 | 630 | _IT_SUBST(INTLTOOL_KEYS_RULE) | ||
224 | 631 | _IT_SUBST(INTLTOOL_PROP_RULE) | ||
225 | 632 | _IT_SUBST(INTLTOOL_OAF_RULE) | ||
226 | 633 | _IT_SUBST(INTLTOOL_PONG_RULE) | ||
227 | 634 | _IT_SUBST(INTLTOOL_SERVER_RULE) | ||
228 | 635 | _IT_SUBST(INTLTOOL_SHEET_RULE) | ||
229 | 636 | _IT_SUBST(INTLTOOL_SOUNDLIST_RULE) | ||
230 | 637 | _IT_SUBST(INTLTOOL_UI_RULE) | ||
231 | 638 | _IT_SUBST(INTLTOOL_XAM_RULE) | ||
232 | 639 | _IT_SUBST(INTLTOOL_KBD_RULE) | ||
233 | 640 | _IT_SUBST(INTLTOOL_XML_RULE) | ||
234 | 641 | _IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) | ||
235 | 642 | _IT_SUBST(INTLTOOL_CAVES_RULE) | ||
236 | 643 | _IT_SUBST(INTLTOOL_SCHEMAS_RULE) | ||
237 | 644 | _IT_SUBST(INTLTOOL_THEME_RULE) | ||
238 | 645 | _IT_SUBST(INTLTOOL_SERVICE_RULE) | ||
239 | 646 | _IT_SUBST(INTLTOOL_POLICY_RULE) | ||
240 | 647 | |||
241 | 648 | # Check the gettext tools to make sure they are GNU | ||
242 | 649 | AC_PATH_PROG(XGETTEXT, xgettext) | ||
243 | 650 | AC_PATH_PROG(MSGMERGE, msgmerge) | ||
244 | 651 | AC_PATH_PROG(MSGFMT, msgfmt) | ||
245 | 652 | AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) | ||
246 | 653 | if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then | ||
247 | 654 | AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) | ||
248 | 655 | fi | ||
249 | 656 | xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" | ||
250 | 657 | mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" | ||
251 | 658 | mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" | ||
252 | 659 | if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then | ||
253 | 660 | AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) | ||
254 | 661 | fi | ||
255 | 662 | |||
256 | 663 | AC_PATH_PROG(INTLTOOL_PERL, perl) | ||
257 | 664 | if test -z "$INTLTOOL_PERL"; then | ||
258 | 665 | AC_MSG_ERROR([perl not found]) | ||
259 | 666 | fi | ||
260 | 667 | AC_MSG_CHECKING([for perl >= 5.8.1]) | ||
261 | 668 | $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 | ||
262 | 669 | if test $? -ne 0; then | ||
263 | 670 | AC_MSG_ERROR([perl 5.8.1 is required for intltool]) | ||
264 | 671 | else | ||
265 | 672 | IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`" | ||
266 | 673 | AC_MSG_RESULT([$IT_PERL_VERSION]) | ||
267 | 674 | fi | ||
268 | 675 | if test "x$2" != "xno-xml"; then | ||
269 | 676 | AC_MSG_CHECKING([for XML::Parser]) | ||
270 | 677 | if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then | ||
271 | 678 | AC_MSG_RESULT([ok]) | ||
272 | 679 | else | ||
273 | 680 | AC_MSG_ERROR([XML::Parser perl module is required for intltool]) | ||
274 | 681 | fi | ||
275 | 682 | fi | ||
276 | 683 | |||
277 | 684 | # Substitute ALL_LINGUAS so we can use it in po/Makefile | ||
278 | 685 | AC_SUBST(ALL_LINGUAS) | ||
279 | 686 | |||
280 | 687 | # Set DATADIRNAME correctly if it is not set yet | ||
281 | 688 | # (copied from glib-gettext.m4) | ||
282 | 689 | if test -z "$DATADIRNAME"; then | ||
283 | 690 | AC_LINK_IFELSE( | ||
284 | 691 | [AC_LANG_PROGRAM([[]], | ||
285 | 692 | [[extern int _nl_msg_cat_cntr; | ||
286 | 693 | return _nl_msg_cat_cntr]])], | ||
287 | 694 | [DATADIRNAME=share], | ||
288 | 695 | [case $host in | ||
289 | 696 | *-*-solaris*) | ||
290 | 697 | dnl On Solaris, if bind_textdomain_codeset is in libc, | ||
291 | 698 | dnl GNU format message catalog is always supported, | ||
292 | 699 | dnl since both are added to the libc all together. | ||
293 | 700 | dnl Hence, we'd like to go with DATADIRNAME=share | ||
294 | 701 | dnl in this case. | ||
295 | 702 | AC_CHECK_FUNC(bind_textdomain_codeset, | ||
296 | 703 | [DATADIRNAME=share], [DATADIRNAME=lib]) | ||
297 | 704 | ;; | ||
298 | 705 | *) | ||
299 | 706 | [DATADIRNAME=lib] | ||
300 | 707 | ;; | ||
301 | 708 | esac]) | ||
302 | 709 | fi | ||
303 | 710 | AC_SUBST(DATADIRNAME) | ||
304 | 711 | |||
305 | 712 | IT_PO_SUBDIR([po]) | ||
306 | 713 | |||
307 | 714 | ]) | ||
308 | 715 | |||
309 | 716 | |||
310 | 717 | # IT_PO_SUBDIR(DIRNAME) | ||
311 | 718 | # --------------------- | ||
312 | 719 | # All po subdirs have to be declared with this macro; the subdir "po" is | ||
313 | 720 | # declared by IT_PROG_INTLTOOL. | ||
314 | 721 | # | ||
315 | 722 | AC_DEFUN([IT_PO_SUBDIR], | ||
316 | 723 | [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. | ||
317 | 724 | dnl | ||
318 | 725 | dnl The following CONFIG_COMMANDS should be executed at the very end | ||
319 | 726 | dnl of config.status. | ||
320 | 727 | AC_CONFIG_COMMANDS_PRE([ | ||
321 | 728 | AC_CONFIG_COMMANDS([$1/stamp-it], [ | ||
322 | 729 | if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then | ||
323 | 730 | AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) | ||
324 | 731 | fi | ||
325 | 732 | rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" | ||
326 | 733 | >"$1/stamp-it.tmp" | ||
327 | 734 | [sed '/^#/d | ||
328 | 735 | s/^[[].*] *// | ||
329 | 736 | /^[ ]*$/d | ||
330 | 737 | '"s|^| $ac_top_srcdir/|" \ | ||
331 | 738 | "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" | ||
332 | 739 | ] | ||
333 | 740 | [sed '/^POTFILES =/,/[^\\]$/ { | ||
334 | 741 | /^POTFILES =/!d | ||
335 | 742 | r $1/POTFILES | ||
336 | 743 | } | ||
337 | 744 | ' "$1/Makefile.in" >"$1/Makefile"] | ||
338 | 745 | rm -f "$1/Makefile.tmp" | ||
339 | 746 | mv "$1/stamp-it.tmp" "$1/stamp-it" | ||
340 | 747 | ]) | ||
341 | 748 | ])dnl | ||
342 | 749 | ]) | ||
343 | 750 | |||
344 | 751 | # _IT_SUBST(VARIABLE) | ||
345 | 752 | # ------------------- | ||
346 | 753 | # Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST | ||
347 | 754 | # | ||
348 | 755 | AC_DEFUN([_IT_SUBST], | ||
349 | 756 | [ | ||
350 | 757 | AC_SUBST([$1]) | ||
351 | 758 | m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) | ||
352 | 759 | ] | ||
353 | 760 | ) | ||
354 | 761 | |||
355 | 762 | # deprecated macros | ||
356 | 763 | AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) | ||
357 | 764 | # A hint is needed for aclocal from Automake <= 1.9.4: | ||
358 | 765 | # AC_DEFUN([AC_PROG_INTLTOOL], ...) | ||
359 | 766 | |||
360 | 767 | |||
361 | 768 | dnl -*- mode: autoconf -*- | ||
362 | 769 | dnl Copyright 2009 Johan Dahlin | ||
363 | 770 | dnl | ||
364 | 771 | dnl This file is free software; the author(s) gives unlimited | ||
365 | 772 | dnl permission to copy and/or distribute it, with or without | ||
366 | 773 | dnl modifications, as long as this notice is preserved. | ||
367 | 774 | dnl | ||
368 | 775 | |||
369 | 776 | # serial 1 | ||
370 | 777 | |||
371 | 778 | m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL], | ||
372 | 779 | [ | ||
373 | 780 | AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first | ||
374 | 781 | AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first | ||
375 | 782 | AC_BEFORE([LT_INIT],[$0])dnl setup libtool first | ||
376 | 783 | |||
377 | 784 | dnl enable/disable introspection | ||
378 | 785 | m4_if([$2], [require], | ||
379 | 786 | [dnl | ||
380 | 787 | enable_introspection=yes | ||
381 | 788 | ],[dnl | ||
382 | 789 | AC_ARG_ENABLE(introspection, | ||
383 | 790 | AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]], | ||
384 | 791 | [Enable introspection for this build]),, | ||
385 | 792 | [enable_introspection=auto]) | ||
386 | 793 | ])dnl | ||
387 | 794 | |||
388 | 795 | AC_MSG_CHECKING([for gobject-introspection]) | ||
389 | 796 | |||
390 | 797 | dnl presence/version checking | ||
391 | 798 | AS_CASE([$enable_introspection], | ||
392 | 799 | [no], [dnl | ||
393 | 800 | found_introspection="no (disabled, use --enable-introspection to enable)" | ||
394 | 801 | ],dnl | ||
395 | 802 | [yes],[dnl | ||
396 | 803 | PKG_CHECK_EXISTS([gobject-introspection-1.0],, | ||
397 | 804 | AC_MSG_ERROR([gobject-introspection-1.0 is not installed])) | ||
398 | 805 | PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], | ||
399 | 806 | found_introspection=yes, | ||
400 | 807 | AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME])) | ||
401 | 808 | ],dnl | ||
402 | 809 | [auto],[dnl | ||
403 | 810 | PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no) | ||
404 | 811 | ],dnl | ||
405 | 812 | [dnl | ||
406 | 813 | AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@]) | ||
407 | 814 | ])dnl | ||
408 | 815 | |||
409 | 816 | AC_MSG_RESULT([$found_introspection]) | ||
410 | 817 | |||
411 | 818 | INTROSPECTION_SCANNER= | ||
412 | 819 | INTROSPECTION_COMPILER= | ||
413 | 820 | INTROSPECTION_GENERATE= | ||
414 | 821 | INTROSPECTION_GIRDIR= | ||
415 | 822 | INTROSPECTION_TYPELIBDIR= | ||
416 | 823 | if test "x$found_introspection" = "xyes"; then | ||
417 | 824 | INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0` | ||
418 | 825 | INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0` | ||
419 | 826 | INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0` | ||
420 | 827 | INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0` | ||
421 | 828 | INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)" | ||
422 | 829 | INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0` | ||
423 | 830 | INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0` | ||
424 | 831 | INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection | ||
425 | 832 | fi | ||
426 | 833 | AC_SUBST(INTROSPECTION_SCANNER) | ||
427 | 834 | AC_SUBST(INTROSPECTION_COMPILER) | ||
428 | 835 | AC_SUBST(INTROSPECTION_GENERATE) | ||
429 | 836 | AC_SUBST(INTROSPECTION_GIRDIR) | ||
430 | 837 | AC_SUBST(INTROSPECTION_TYPELIBDIR) | ||
431 | 838 | AC_SUBST(INTROSPECTION_CFLAGS) | ||
432 | 839 | AC_SUBST(INTROSPECTION_LIBS) | ||
433 | 840 | AC_SUBST(INTROSPECTION_MAKEFILE) | ||
434 | 841 | |||
435 | 842 | AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes") | ||
436 | 843 | ]) | ||
437 | 844 | |||
438 | 845 | |||
439 | 846 | dnl Usage: | ||
440 | 847 | dnl GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version]) | ||
441 | 848 | |||
442 | 849 | AC_DEFUN([GOBJECT_INTROSPECTION_CHECK], | ||
443 | 850 | [ | ||
444 | 851 | _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1]) | ||
445 | 852 | ]) | ||
446 | 853 | |||
447 | 854 | dnl Usage: | ||
448 | 855 | dnl GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version]) | ||
449 | 856 | |||
450 | 857 | |||
451 | 858 | AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE], | ||
452 | 859 | [ | ||
453 | 860 | _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require]) | ||
454 | 861 | ]) | ||
455 | 862 | |||
456 | 863 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | ||
457 | 864 | # | ||
458 | 865 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
459 | 866 | # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | ||
460 | 867 | # Inc. | ||
461 | 868 | # Written by Gordon Matzigkeit, 1996 | ||
462 | 869 | # | ||
463 | 870 | # This file is free software; the Free Software Foundation gives | ||
464 | 871 | # unlimited permission to copy and/or distribute it, with or without | ||
465 | 872 | # modifications, as long as this notice is preserved. | ||
466 | 873 | |||
467 | 874 | m4_define([_LT_COPYING], [dnl | ||
468 | 875 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
469 | 876 | # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | ||
470 | 877 | # Inc. | ||
471 | 878 | # Written by Gordon Matzigkeit, 1996 | ||
472 | 879 | # | ||
473 | 880 | # This file is part of GNU Libtool. | ||
474 | 881 | # | ||
475 | 882 | # GNU Libtool is free software; you can redistribute it and/or | ||
476 | 883 | # modify it under the terms of the GNU General Public License as | ||
477 | 884 | # published by the Free Software Foundation; either version 2 of | ||
478 | 885 | # the License, or (at your option) any later version. | ||
479 | 886 | # | ||
480 | 887 | # As a special exception to the GNU General Public License, | ||
481 | 888 | # if you distribute this file as part of a program or library that | ||
482 | 889 | # is built using GNU Libtool, you may include this file under the | ||
483 | 890 | # same distribution terms that you use for the rest of that program. | ||
484 | 891 | # | ||
485 | 892 | # GNU Libtool is distributed in the hope that it will be useful, | ||
486 | 893 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
487 | 894 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
488 | 895 | # GNU General Public License for more details. | ||
489 | 896 | # | ||
490 | 897 | # You should have received a copy of the GNU General Public License | ||
491 | 898 | # along with GNU Libtool; see the file COPYING. If not, a copy | ||
492 | 899 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | ||
493 | 900 | # obtained by writing to the Free Software Foundation, Inc., | ||
494 | 901 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
495 | 902 | ]) | ||
496 | 903 | |||
497 | 904 | # serial 57 LT_INIT | ||
498 | 905 | |||
499 | 906 | |||
500 | 907 | # LT_PREREQ(VERSION) | ||
501 | 908 | # ------------------ | ||
502 | 909 | # Complain and exit if this libtool version is less that VERSION. | ||
503 | 910 | m4_defun([LT_PREREQ], | ||
504 | 911 | [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, | ||
505 | 912 | [m4_default([$3], | ||
506 | 913 | [m4_fatal([Libtool version $1 or higher is required], | ||
507 | 914 | 63)])], | ||
508 | 915 | [$2])]) | ||
509 | 916 | |||
510 | 917 | |||
511 | 918 | # _LT_CHECK_BUILDDIR | ||
512 | 919 | # ------------------ | ||
513 | 920 | # Complain if the absolute build directory name contains unusual characters | ||
514 | 921 | m4_defun([_LT_CHECK_BUILDDIR], | ||
515 | 922 | [case `pwd` in | ||
516 | 923 | *\ * | *\ *) | ||
517 | 924 | AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; | ||
518 | 925 | esac | ||
519 | 926 | ]) | ||
520 | 927 | |||
521 | 928 | |||
522 | 929 | # LT_INIT([OPTIONS]) | ||
523 | 930 | # ------------------ | ||
524 | 931 | AC_DEFUN([LT_INIT], | ||
525 | 932 | [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT | ||
526 | 933 | AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl | ||
527 | 934 | AC_BEFORE([$0], [LT_LANG])dnl | ||
528 | 935 | AC_BEFORE([$0], [LT_OUTPUT])dnl | ||
529 | 936 | AC_BEFORE([$0], [LTDL_INIT])dnl | ||
530 | 937 | m4_require([_LT_CHECK_BUILDDIR])dnl | ||
531 | 938 | |||
532 | 939 | dnl Autoconf doesn't catch unexpanded LT_ macros by default: | ||
533 | 940 | m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl | ||
534 | 941 | m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl | ||
535 | 942 | dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 | ||
536 | 943 | dnl unless we require an AC_DEFUNed macro: | ||
537 | 944 | AC_REQUIRE([LTOPTIONS_VERSION])dnl | ||
538 | 945 | AC_REQUIRE([LTSUGAR_VERSION])dnl | ||
539 | 946 | AC_REQUIRE([LTVERSION_VERSION])dnl | ||
540 | 947 | AC_REQUIRE([LTOBSOLETE_VERSION])dnl | ||
541 | 948 | m4_require([_LT_PROG_LTMAIN])dnl | ||
542 | 949 | |||
543 | 950 | _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) | ||
544 | 951 | |||
545 | 952 | dnl Parse OPTIONS | ||
546 | 953 | _LT_SET_OPTIONS([$0], [$1]) | ||
547 | 954 | |||
548 | 955 | # This can be used to rebuild libtool when needed | ||
549 | 956 | LIBTOOL_DEPS="$ltmain" | ||
550 | 957 | |||
551 | 958 | # Always use our own libtool. | ||
552 | 959 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
553 | 960 | AC_SUBST(LIBTOOL)dnl | ||
554 | 961 | |||
555 | 962 | _LT_SETUP | ||
556 | 963 | |||
557 | 964 | # Only expand once: | ||
558 | 965 | m4_define([LT_INIT]) | ||
559 | 966 | ])# LT_INIT | ||
560 | 967 | |||
561 | 968 | # Old names: | ||
562 | 969 | AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) | ||
563 | 970 | AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) | ||
564 | 971 | dnl aclocal-1.4 backwards compatibility: | ||
565 | 972 | dnl AC_DEFUN([AC_PROG_LIBTOOL], []) | ||
566 | 973 | dnl AC_DEFUN([AM_PROG_LIBTOOL], []) | ||
567 | 974 | |||
568 | 975 | |||
569 | 976 | # _LT_CC_BASENAME(CC) | ||
570 | 977 | # ------------------- | ||
571 | 978 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | ||
572 | 979 | m4_defun([_LT_CC_BASENAME], | ||
573 | 980 | [for cc_temp in $1""; do | ||
574 | 981 | case $cc_temp in | ||
575 | 982 | compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; | ||
576 | 983 | distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; | ||
577 | 984 | \-*) ;; | ||
578 | 985 | *) break;; | ||
579 | 986 | esac | ||
580 | 987 | done | ||
581 | 988 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | ||
582 | 989 | ]) | ||
583 | 990 | |||
584 | 991 | |||
585 | 992 | # _LT_FILEUTILS_DEFAULTS | ||
586 | 993 | # ---------------------- | ||
587 | 994 | # It is okay to use these file commands and assume they have been set | ||
588 | 995 | # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. | ||
589 | 996 | m4_defun([_LT_FILEUTILS_DEFAULTS], | ||
590 | 997 | [: ${CP="cp -f"} | ||
591 | 998 | : ${MV="mv -f"} | ||
592 | 999 | : ${RM="rm -f"} | ||
593 | 1000 | ])# _LT_FILEUTILS_DEFAULTS | ||
594 | 1001 | |||
595 | 1002 | |||
596 | 1003 | # _LT_SETUP | ||
597 | 1004 | # --------- | ||
598 | 1005 | m4_defun([_LT_SETUP], | ||
599 | 1006 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
600 | 1007 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl | ||
601 | 1008 | AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl | ||
602 | 1009 | AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl | ||
603 | 1010 | |||
604 | 1011 | _LT_DECL([], [host_alias], [0], [The host system])dnl | ||
605 | 1012 | _LT_DECL([], [host], [0])dnl | ||
606 | 1013 | _LT_DECL([], [host_os], [0])dnl | ||
607 | 1014 | dnl | ||
608 | 1015 | _LT_DECL([], [build_alias], [0], [The build system])dnl | ||
609 | 1016 | _LT_DECL([], [build], [0])dnl | ||
610 | 1017 | _LT_DECL([], [build_os], [0])dnl | ||
611 | 1018 | dnl | ||
612 | 1019 | AC_REQUIRE([AC_PROG_CC])dnl | ||
613 | 1020 | AC_REQUIRE([LT_PATH_LD])dnl | ||
614 | 1021 | AC_REQUIRE([LT_PATH_NM])dnl | ||
615 | 1022 | dnl | ||
616 | 1023 | AC_REQUIRE([AC_PROG_LN_S])dnl | ||
617 | 1024 | test -z "$LN_S" && LN_S="ln -s" | ||
618 | 1025 | _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl | ||
619 | 1026 | dnl | ||
620 | 1027 | AC_REQUIRE([LT_CMD_MAX_LEN])dnl | ||
621 | 1028 | _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl | ||
622 | 1029 | _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl | ||
623 | 1030 | dnl | ||
624 | 1031 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
625 | 1032 | m4_require([_LT_CHECK_SHELL_FEATURES])dnl | ||
626 | 1033 | m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl | ||
627 | 1034 | m4_require([_LT_CMD_RELOAD])dnl | ||
628 | 1035 | m4_require([_LT_CHECK_MAGIC_METHOD])dnl | ||
629 | 1036 | m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl | ||
630 | 1037 | m4_require([_LT_CMD_OLD_ARCHIVE])dnl | ||
631 | 1038 | m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl | ||
632 | 1039 | m4_require([_LT_WITH_SYSROOT])dnl | ||
633 | 1040 | |||
634 | 1041 | _LT_CONFIG_LIBTOOL_INIT([ | ||
635 | 1042 | # See if we are running on zsh, and set the options which allow our | ||
636 | 1043 | # commands through without removal of \ escapes INIT. | ||
637 | 1044 | if test -n "\${ZSH_VERSION+set}" ; then | ||
638 | 1045 | setopt NO_GLOB_SUBST | ||
639 | 1046 | fi | ||
640 | 1047 | ]) | ||
641 | 1048 | if test -n "${ZSH_VERSION+set}" ; then | ||
642 | 1049 | setopt NO_GLOB_SUBST | ||
643 | 1050 | fi | ||
644 | 1051 | |||
645 | 1052 | _LT_CHECK_OBJDIR | ||
646 | 1053 | |||
647 | 1054 | m4_require([_LT_TAG_COMPILER])dnl | ||
648 | 1055 | |||
649 | 1056 | case $host_os in | ||
650 | 1057 | aix3*) | ||
651 | 1058 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
652 | 1059 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
653 | 1060 | # vanish in a puff of smoke. | ||
654 | 1061 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
655 | 1062 | COLLECT_NAMES= | ||
656 | 1063 | export COLLECT_NAMES | ||
657 | 1064 | fi | ||
658 | 1065 | ;; | ||
659 | 1066 | esac | ||
660 | 1067 | |||
661 | 1068 | # Global variables: | ||
662 | 1069 | ofile=libtool | ||
663 | 1070 | can_build_shared=yes | ||
664 | 1071 | |||
665 | 1072 | # All known linkers require a `.a' archive for static linking (except MSVC, | ||
666 | 1073 | # which needs '.lib'). | ||
667 | 1074 | libext=a | ||
668 | 1075 | |||
669 | 1076 | with_gnu_ld="$lt_cv_prog_gnu_ld" | ||
670 | 1077 | |||
671 | 1078 | old_CC="$CC" | ||
672 | 1079 | old_CFLAGS="$CFLAGS" | ||
673 | 1080 | |||
674 | 1081 | # Set sane defaults for various variables | ||
675 | 1082 | test -z "$CC" && CC=cc | ||
676 | 1083 | test -z "$LTCC" && LTCC=$CC | ||
677 | 1084 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | ||
678 | 1085 | test -z "$LD" && LD=ld | ||
679 | 1086 | test -z "$ac_objext" && ac_objext=o | ||
680 | 1087 | |||
681 | 1088 | _LT_CC_BASENAME([$compiler]) | ||
682 | 1089 | |||
683 | 1090 | # Only perform the check for file, if the check method requires it | ||
684 | 1091 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | ||
685 | 1092 | case $deplibs_check_method in | ||
686 | 1093 | file_magic*) | ||
687 | 1094 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | ||
688 | 1095 | _LT_PATH_MAGIC | ||
689 | 1096 | fi | ||
690 | 1097 | ;; | ||
691 | 1098 | esac | ||
692 | 1099 | |||
693 | 1100 | # Use C for the default configuration in the libtool script | ||
694 | 1101 | LT_SUPPORTED_TAG([CC]) | ||
695 | 1102 | _LT_LANG_C_CONFIG | ||
696 | 1103 | _LT_LANG_DEFAULT_CONFIG | ||
697 | 1104 | _LT_CONFIG_COMMANDS | ||
698 | 1105 | ])# _LT_SETUP | ||
699 | 1106 | |||
700 | 1107 | |||
701 | 1108 | # _LT_PREPARE_SED_QUOTE_VARS | ||
702 | 1109 | # -------------------------- | ||
703 | 1110 | # Define a few sed substitution that help us do robust quoting. | ||
704 | 1111 | m4_defun([_LT_PREPARE_SED_QUOTE_VARS], | ||
705 | 1112 | [# Backslashify metacharacters that are still active within | ||
706 | 1113 | # double-quoted strings. | ||
707 | 1114 | sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' | ||
708 | 1115 | |||
709 | 1116 | # Same as above, but do not quote variable references. | ||
710 | 1117 | double_quote_subst='s/\([["`\\]]\)/\\\1/g' | ||
711 | 1118 | |||
712 | 1119 | # Sed substitution to delay expansion of an escaped shell variable in a | ||
713 | 1120 | # double_quote_subst'ed string. | ||
714 | 1121 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
715 | 1122 | |||
716 | 1123 | # Sed substitution to delay expansion of an escaped single quote. | ||
717 | 1124 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
718 | 1125 | |||
719 | 1126 | # Sed substitution to avoid accidental globbing in evaled expressions | ||
720 | 1127 | no_glob_subst='s/\*/\\\*/g' | ||
721 | 1128 | ]) | ||
722 | 1129 | |||
723 | 1130 | # _LT_PROG_LTMAIN | ||
724 | 1131 | # --------------- | ||
725 | 1132 | # Note that this code is called both from `configure', and `config.status' | ||
726 | 1133 | # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, | ||
727 | 1134 | # `config.status' has no value for ac_aux_dir unless we are using Automake, | ||
728 | 1135 | # so we pass a copy along to make sure it has a sensible value anyway. | ||
729 | 1136 | m4_defun([_LT_PROG_LTMAIN], | ||
730 | 1137 | [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl | ||
731 | 1138 | _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) | ||
732 | 1139 | ltmain="$ac_aux_dir/ltmain.sh" | ||
733 | 1140 | ])# _LT_PROG_LTMAIN | ||
734 | 1141 | |||
735 | 1142 | |||
736 | 1143 | |||
737 | 1144 | # So that we can recreate a full libtool script including additional | ||
738 | 1145 | # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS | ||
739 | 1146 | # in macros and then make a single call at the end using the `libtool' | ||
740 | 1147 | # label. | ||
741 | 1148 | |||
742 | 1149 | |||
743 | 1150 | # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) | ||
744 | 1151 | # ---------------------------------------- | ||
745 | 1152 | # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. | ||
746 | 1153 | m4_define([_LT_CONFIG_LIBTOOL_INIT], | ||
747 | 1154 | [m4_ifval([$1], | ||
748 | 1155 | [m4_append([_LT_OUTPUT_LIBTOOL_INIT], | ||
749 | 1156 | [$1 | ||
750 | 1157 | ])])]) | ||
751 | 1158 | |||
752 | 1159 | # Initialize. | ||
753 | 1160 | m4_define([_LT_OUTPUT_LIBTOOL_INIT]) | ||
754 | 1161 | |||
755 | 1162 | |||
756 | 1163 | # _LT_CONFIG_LIBTOOL([COMMANDS]) | ||
757 | 1164 | # ------------------------------ | ||
758 | 1165 | # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. | ||
759 | 1166 | m4_define([_LT_CONFIG_LIBTOOL], | ||
760 | 1167 | [m4_ifval([$1], | ||
761 | 1168 | [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], | ||
762 | 1169 | [$1 | ||
763 | 1170 | ])])]) | ||
764 | 1171 | |||
765 | 1172 | # Initialize. | ||
766 | 1173 | m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) | ||
767 | 1174 | |||
768 | 1175 | |||
769 | 1176 | # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) | ||
770 | 1177 | # ----------------------------------------------------- | ||
771 | 1178 | m4_defun([_LT_CONFIG_SAVE_COMMANDS], | ||
772 | 1179 | [_LT_CONFIG_LIBTOOL([$1]) | ||
773 | 1180 | _LT_CONFIG_LIBTOOL_INIT([$2]) | ||
774 | 1181 | ]) | ||
775 | 1182 | |||
776 | 1183 | |||
777 | 1184 | # _LT_FORMAT_COMMENT([COMMENT]) | ||
778 | 1185 | # ----------------------------- | ||
779 | 1186 | # Add leading comment marks to the start of each line, and a trailing | ||
780 | 1187 | # full-stop to the whole comment if one is not present already. | ||
781 | 1188 | m4_define([_LT_FORMAT_COMMENT], | ||
782 | 1189 | [m4_ifval([$1], [ | ||
783 | 1190 | m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], | ||
784 | 1191 | [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) | ||
785 | 1192 | )]) | ||
786 | 1193 | |||
787 | 1194 | |||
788 | 1195 | |||
789 | 1196 | |||
790 | 1197 | |||
791 | 1198 | # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) | ||
792 | 1199 | # ------------------------------------------------------------------- | ||
793 | 1200 | # CONFIGNAME is the name given to the value in the libtool script. | ||
794 | 1201 | # VARNAME is the (base) name used in the configure script. | ||
795 | 1202 | # VALUE may be 0, 1 or 2 for a computed quote escaped value based on | ||
796 | 1203 | # VARNAME. Any other value will be used directly. | ||
797 | 1204 | m4_define([_LT_DECL], | ||
798 | 1205 | [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], | ||
799 | 1206 | [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], | ||
800 | 1207 | [m4_ifval([$1], [$1], [$2])]) | ||
801 | 1208 | lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) | ||
802 | 1209 | m4_ifval([$4], | ||
803 | 1210 | [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) | ||
804 | 1211 | lt_dict_add_subkey([lt_decl_dict], [$2], | ||
805 | 1212 | [tagged?], [m4_ifval([$5], [yes], [no])])]) | ||
806 | 1213 | ]) | ||
807 | 1214 | |||
808 | 1215 | |||
809 | 1216 | # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) | ||
810 | 1217 | # -------------------------------------------------------- | ||
811 | 1218 | m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) | ||
812 | 1219 | |||
813 | 1220 | |||
814 | 1221 | # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) | ||
815 | 1222 | # ------------------------------------------------ | ||
816 | 1223 | m4_define([lt_decl_tag_varnames], | ||
817 | 1224 | [_lt_decl_filter([tagged?], [yes], $@)]) | ||
818 | 1225 | |||
819 | 1226 | |||
820 | 1227 | # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) | ||
821 | 1228 | # --------------------------------------------------------- | ||
822 | 1229 | m4_define([_lt_decl_filter], | ||
823 | 1230 | [m4_case([$#], | ||
824 | 1231 | [0], [m4_fatal([$0: too few arguments: $#])], | ||
825 | 1232 | [1], [m4_fatal([$0: too few arguments: $#: $1])], | ||
826 | 1233 | [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], | ||
827 | 1234 | [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], | ||
828 | 1235 | [lt_dict_filter([lt_decl_dict], $@)])[]dnl | ||
829 | 1236 | ]) | ||
830 | 1237 | |||
831 | 1238 | |||
832 | 1239 | # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) | ||
833 | 1240 | # -------------------------------------------------- | ||
834 | 1241 | m4_define([lt_decl_quote_varnames], | ||
835 | 1242 | [_lt_decl_filter([value], [1], $@)]) | ||
836 | 1243 | |||
837 | 1244 | |||
838 | 1245 | # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) | ||
839 | 1246 | # --------------------------------------------------- | ||
840 | 1247 | m4_define([lt_decl_dquote_varnames], | ||
841 | 1248 | [_lt_decl_filter([value], [2], $@)]) | ||
842 | 1249 | |||
843 | 1250 | |||
844 | 1251 | # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) | ||
845 | 1252 | # --------------------------------------------------- | ||
846 | 1253 | m4_define([lt_decl_varnames_tagged], | ||
847 | 1254 | [m4_assert([$# <= 2])dnl | ||
848 | 1255 | _$0(m4_quote(m4_default([$1], [[, ]])), | ||
849 | 1256 | m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), | ||
850 | 1257 | m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) | ||
851 | 1258 | m4_define([_lt_decl_varnames_tagged], | ||
852 | 1259 | [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) | ||
853 | 1260 | |||
854 | 1261 | |||
855 | 1262 | # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) | ||
856 | 1263 | # ------------------------------------------------ | ||
857 | 1264 | m4_define([lt_decl_all_varnames], | ||
858 | 1265 | [_$0(m4_quote(m4_default([$1], [[, ]])), | ||
859 | 1266 | m4_if([$2], [], | ||
860 | 1267 | m4_quote(lt_decl_varnames), | ||
861 | 1268 | m4_quote(m4_shift($@))))[]dnl | ||
862 | 1269 | ]) | ||
863 | 1270 | m4_define([_lt_decl_all_varnames], | ||
864 | 1271 | [lt_join($@, lt_decl_varnames_tagged([$1], | ||
865 | 1272 | lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl | ||
866 | 1273 | ]) | ||
867 | 1274 | |||
868 | 1275 | |||
869 | 1276 | # _LT_CONFIG_STATUS_DECLARE([VARNAME]) | ||
870 | 1277 | # ------------------------------------ | ||
871 | 1278 | # Quote a variable value, and forward it to `config.status' so that its | ||
872 | 1279 | # declaration there will have the same value as in `configure'. VARNAME | ||
873 | 1280 | # must have a single quote delimited value for this to work. | ||
874 | 1281 | m4_define([_LT_CONFIG_STATUS_DECLARE], | ||
875 | 1282 | [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) | ||
876 | 1283 | |||
877 | 1284 | |||
878 | 1285 | # _LT_CONFIG_STATUS_DECLARATIONS | ||
879 | 1286 | # ------------------------------ | ||
880 | 1287 | # We delimit libtool config variables with single quotes, so when | ||
881 | 1288 | # we write them to config.status, we have to be sure to quote all | ||
882 | 1289 | # embedded single quotes properly. In configure, this macro expands | ||
883 | 1290 | # each variable declared with _LT_DECL (and _LT_TAGDECL) into: | ||
884 | 1291 | # | ||
885 | 1292 | # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' | ||
886 | 1293 | m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], | ||
887 | 1294 | [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), | ||
888 | 1295 | [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) | ||
889 | 1296 | |||
890 | 1297 | |||
891 | 1298 | # _LT_LIBTOOL_TAGS | ||
892 | 1299 | # ---------------- | ||
893 | 1300 | # Output comment and list of tags supported by the script | ||
894 | 1301 | m4_defun([_LT_LIBTOOL_TAGS], | ||
895 | 1302 | [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl | ||
896 | 1303 | available_tags="_LT_TAGS"dnl | ||
897 | 1304 | ]) | ||
898 | 1305 | |||
899 | 1306 | |||
900 | 1307 | # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) | ||
901 | 1308 | # ----------------------------------- | ||
902 | 1309 | # Extract the dictionary values for VARNAME (optionally with TAG) and | ||
903 | 1310 | # expand to a commented shell variable setting: | ||
904 | 1311 | # | ||
905 | 1312 | # # Some comment about what VAR is for. | ||
906 | 1313 | # visible_name=$lt_internal_name | ||
907 | 1314 | m4_define([_LT_LIBTOOL_DECLARE], | ||
908 | 1315 | [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], | ||
909 | 1316 | [description])))[]dnl | ||
910 | 1317 | m4_pushdef([_libtool_name], | ||
911 | 1318 | m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl | ||
912 | 1319 | m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), | ||
913 | 1320 | [0], [_libtool_name=[$]$1], | ||
914 | 1321 | [1], [_libtool_name=$lt_[]$1], | ||
915 | 1322 | [2], [_libtool_name=$lt_[]$1], | ||
916 | 1323 | [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl | ||
917 | 1324 | m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl | ||
918 | 1325 | ]) | ||
919 | 1326 | |||
920 | 1327 | |||
921 | 1328 | # _LT_LIBTOOL_CONFIG_VARS | ||
922 | 1329 | # ----------------------- | ||
923 | 1330 | # Produce commented declarations of non-tagged libtool config variables | ||
924 | 1331 | # suitable for insertion in the LIBTOOL CONFIG section of the `libtool' | ||
925 | 1332 | # script. Tagged libtool config variables (even for the LIBTOOL CONFIG | ||
926 | 1333 | # section) are produced by _LT_LIBTOOL_TAG_VARS. | ||
927 | 1334 | m4_defun([_LT_LIBTOOL_CONFIG_VARS], | ||
928 | 1335 | [m4_foreach([_lt_var], | ||
929 | 1336 | m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), | ||
930 | 1337 | [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) | ||
931 | 1338 | |||
932 | 1339 | |||
933 | 1340 | # _LT_LIBTOOL_TAG_VARS(TAG) | ||
934 | 1341 | # ------------------------- | ||
935 | 1342 | m4_define([_LT_LIBTOOL_TAG_VARS], | ||
936 | 1343 | [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), | ||
937 | 1344 | [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) | ||
938 | 1345 | |||
939 | 1346 | |||
940 | 1347 | # _LT_TAGVAR(VARNAME, [TAGNAME]) | ||
941 | 1348 | # ------------------------------ | ||
942 | 1349 | m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) | ||
943 | 1350 | |||
944 | 1351 | |||
945 | 1352 | # _LT_CONFIG_COMMANDS | ||
946 | 1353 | # ------------------- | ||
947 | 1354 | # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of | ||
948 | 1355 | # variables for single and double quote escaping we saved from calls | ||
949 | 1356 | # to _LT_DECL, we can put quote escaped variables declarations | ||
950 | 1357 | # into `config.status', and then the shell code to quote escape them in | ||
951 | 1358 | # for loops in `config.status'. Finally, any additional code accumulated | ||
952 | 1359 | # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. | ||
953 | 1360 | m4_defun([_LT_CONFIG_COMMANDS], | ||
954 | 1361 | [AC_PROVIDE_IFELSE([LT_OUTPUT], | ||
955 | 1362 | dnl If the libtool generation code has been placed in $CONFIG_LT, | ||
956 | 1363 | dnl instead of duplicating it all over again into config.status, | ||
957 | 1364 | dnl then we will have config.status run $CONFIG_LT later, so it | ||
958 | 1365 | dnl needs to know what name is stored there: | ||
959 | 1366 | [AC_CONFIG_COMMANDS([libtool], | ||
960 | 1367 | [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], | ||
961 | 1368 | dnl If the libtool generation code is destined for config.status, | ||
962 | 1369 | dnl expand the accumulated commands and init code now: | ||
963 | 1370 | [AC_CONFIG_COMMANDS([libtool], | ||
964 | 1371 | [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) | ||
965 | 1372 | ])#_LT_CONFIG_COMMANDS | ||
966 | 1373 | |||
967 | 1374 | |||
968 | 1375 | # Initialize. | ||
969 | 1376 | m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], | ||
970 | 1377 | [ | ||
971 | 1378 | |||
972 | 1379 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
973 | 1380 | # if CDPATH is set. | ||
974 | 1381 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
975 | 1382 | |||
976 | 1383 | sed_quote_subst='$sed_quote_subst' | ||
977 | 1384 | double_quote_subst='$double_quote_subst' | ||
978 | 1385 | delay_variable_subst='$delay_variable_subst' | ||
979 | 1386 | _LT_CONFIG_STATUS_DECLARATIONS | ||
980 | 1387 | LTCC='$LTCC' | ||
981 | 1388 | LTCFLAGS='$LTCFLAGS' | ||
982 | 1389 | compiler='$compiler_DEFAULT' | ||
983 | 1390 | |||
984 | 1391 | # A function that is used when there is no print builtin or printf. | ||
985 | 1392 | func_fallback_echo () | ||
986 | 1393 | { | ||
987 | 1394 | eval 'cat <<_LTECHO_EOF | ||
988 | 1395 | \$[]1 | ||
989 | 1396 | _LTECHO_EOF' | ||
990 | 1397 | } | ||
991 | 1398 | |||
992 | 1399 | # Quote evaled strings. | ||
993 | 1400 | for var in lt_decl_all_varnames([[ \ | ||
994 | 1401 | ]], lt_decl_quote_varnames); do | ||
995 | 1402 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | ||
996 | 1403 | *[[\\\\\\\`\\"\\\$]]*) | ||
997 | 1404 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
998 | 1405 | ;; | ||
999 | 1406 | *) | ||
1000 | 1407 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
1001 | 1408 | ;; | ||
1002 | 1409 | esac | ||
1003 | 1410 | done | ||
1004 | 1411 | |||
1005 | 1412 | # Double-quote double-evaled strings. | ||
1006 | 1413 | for var in lt_decl_all_varnames([[ \ | ||
1007 | 1414 | ]], lt_decl_dquote_varnames); do | ||
1008 | 1415 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | ||
1009 | 1416 | *[[\\\\\\\`\\"\\\$]]*) | ||
1010 | 1417 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
1011 | 1418 | ;; | ||
1012 | 1419 | *) | ||
1013 | 1420 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
1014 | 1421 | ;; | ||
1015 | 1422 | esac | ||
1016 | 1423 | done | ||
1017 | 1424 | |||
1018 | 1425 | _LT_OUTPUT_LIBTOOL_INIT | ||
1019 | 1426 | ]) | ||
1020 | 1427 | |||
1021 | 1428 | # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) | ||
1022 | 1429 | # ------------------------------------ | ||
1023 | 1430 | # Generate a child script FILE with all initialization necessary to | ||
1024 | 1431 | # reuse the environment learned by the parent script, and make the | ||
1025 | 1432 | # file executable. If COMMENT is supplied, it is inserted after the | ||
1026 | 1433 | # `#!' sequence but before initialization text begins. After this | ||
1027 | 1434 | # macro, additional text can be appended to FILE to form the body of | ||
1028 | 1435 | # the child script. The macro ends with non-zero status if the | ||
1029 | 1436 | # file could not be fully written (such as if the disk is full). | ||
1030 | 1437 | m4_ifdef([AS_INIT_GENERATED], | ||
1031 | 1438 | [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], | ||
1032 | 1439 | [m4_defun([_LT_GENERATED_FILE_INIT], | ||
1033 | 1440 | [m4_require([AS_PREPARE])]dnl | ||
1034 | 1441 | [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl | ||
1035 | 1442 | [lt_write_fail=0 | ||
1036 | 1443 | cat >$1 <<_ASEOF || lt_write_fail=1 | ||
1037 | 1444 | #! $SHELL | ||
1038 | 1445 | # Generated by $as_me. | ||
1039 | 1446 | $2 | ||
1040 | 1447 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
1041 | 1448 | export SHELL | ||
1042 | 1449 | _ASEOF | ||
1043 | 1450 | cat >>$1 <<\_ASEOF || lt_write_fail=1 | ||
1044 | 1451 | AS_SHELL_SANITIZE | ||
1045 | 1452 | _AS_PREPARE | ||
1046 | 1453 | exec AS_MESSAGE_FD>&1 | ||
1047 | 1454 | _ASEOF | ||
1048 | 1455 | test $lt_write_fail = 0 && chmod +x $1[]dnl | ||
1049 | 1456 | m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT | ||
1050 | 1457 | |||
1051 | 1458 | # LT_OUTPUT | ||
1052 | 1459 | # --------- | ||
1053 | 1460 | # This macro allows early generation of the libtool script (before | ||
1054 | 1461 | # AC_OUTPUT is called), incase it is used in configure for compilation | ||
1055 | 1462 | # tests. | ||
1056 | 1463 | AC_DEFUN([LT_OUTPUT], | ||
1057 | 1464 | [: ${CONFIG_LT=./config.lt} | ||
1058 | 1465 | AC_MSG_NOTICE([creating $CONFIG_LT]) | ||
1059 | 1466 | _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], | ||
1060 | 1467 | [# Run this file to recreate a libtool stub with the current configuration.]) | ||
1061 | 1468 | |||
1062 | 1469 | cat >>"$CONFIG_LT" <<\_LTEOF | ||
1063 | 1470 | lt_cl_silent=false | ||
1064 | 1471 | exec AS_MESSAGE_LOG_FD>>config.log | ||
1065 | 1472 | { | ||
1066 | 1473 | echo | ||
1067 | 1474 | AS_BOX([Running $as_me.]) | ||
1068 | 1475 | } >&AS_MESSAGE_LOG_FD | ||
1069 | 1476 | |||
1070 | 1477 | lt_cl_help="\ | ||
1071 | 1478 | \`$as_me' creates a local libtool stub from the current configuration, | ||
1072 | 1479 | for use in further configure time tests before the real libtool is | ||
1073 | 1480 | generated. | ||
1074 | 1481 | |||
1075 | 1482 | Usage: $[0] [[OPTIONS]] | ||
1076 | 1483 | |||
1077 | 1484 | -h, --help print this help, then exit | ||
1078 | 1485 | -V, --version print version number, then exit | ||
1079 | 1486 | -q, --quiet do not print progress messages | ||
1080 | 1487 | -d, --debug don't remove temporary files | ||
1081 | 1488 | |||
1082 | 1489 | Report bugs to <bug-libtool@gnu.org>." | ||
1083 | 1490 | |||
1084 | 1491 | lt_cl_version="\ | ||
1085 | 1492 | m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl | ||
1086 | 1493 | m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) | ||
1087 | 1494 | configured by $[0], generated by m4_PACKAGE_STRING. | ||
1088 | 1495 | |||
1089 | 1496 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
1090 | 1497 | This config.lt script is free software; the Free Software Foundation | ||
1091 | 1498 | gives unlimited permision to copy, distribute and modify it." | ||
1092 | 1499 | |||
1093 | 1500 | while test $[#] != 0 | ||
1094 | 1501 | do | ||
1095 | 1502 | case $[1] in | ||
1096 | 1503 | --version | --v* | -V ) | ||
1097 | 1504 | echo "$lt_cl_version"; exit 0 ;; | ||
1098 | 1505 | --help | --h* | -h ) | ||
1099 | 1506 | echo "$lt_cl_help"; exit 0 ;; | ||
1100 | 1507 | --debug | --d* | -d ) | ||
1101 | 1508 | debug=: ;; | ||
1102 | 1509 | --quiet | --q* | --silent | --s* | -q ) | ||
1103 | 1510 | lt_cl_silent=: ;; | ||
1104 | 1511 | |||
1105 | 1512 | -*) AC_MSG_ERROR([unrecognized option: $[1] | ||
1106 | 1513 | Try \`$[0] --help' for more information.]) ;; | ||
1107 | 1514 | |||
1108 | 1515 | *) AC_MSG_ERROR([unrecognized argument: $[1] | ||
1109 | 1516 | Try \`$[0] --help' for more information.]) ;; | ||
1110 | 1517 | esac | ||
1111 | 1518 | shift | ||
1112 | 1519 | done | ||
1113 | 1520 | |||
1114 | 1521 | if $lt_cl_silent; then | ||
1115 | 1522 | exec AS_MESSAGE_FD>/dev/null | ||
1116 | 1523 | fi | ||
1117 | 1524 | _LTEOF | ||
1118 | 1525 | |||
1119 | 1526 | cat >>"$CONFIG_LT" <<_LTEOF | ||
1120 | 1527 | _LT_OUTPUT_LIBTOOL_COMMANDS_INIT | ||
1121 | 1528 | _LTEOF | ||
1122 | 1529 | |||
1123 | 1530 | cat >>"$CONFIG_LT" <<\_LTEOF | ||
1124 | 1531 | AC_MSG_NOTICE([creating $ofile]) | ||
1125 | 1532 | _LT_OUTPUT_LIBTOOL_COMMANDS | ||
1126 | 1533 | AS_EXIT(0) | ||
1127 | 1534 | _LTEOF | ||
1128 | 1535 | chmod +x "$CONFIG_LT" | ||
1129 | 1536 | |||
1130 | 1537 | # configure is writing to config.log, but config.lt does its own redirection, | ||
1131 | 1538 | # appending to config.log, which fails on DOS, as config.log is still kept | ||
1132 | 1539 | # open by configure. Here we exec the FD to /dev/null, effectively closing | ||
1133 | 1540 | # config.log, so it can be properly (re)opened and appended to by config.lt. | ||
1134 | 1541 | lt_cl_success=: | ||
1135 | 1542 | test "$silent" = yes && | ||
1136 | 1543 | lt_config_lt_args="$lt_config_lt_args --quiet" | ||
1137 | 1544 | exec AS_MESSAGE_LOG_FD>/dev/null | ||
1138 | 1545 | $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false | ||
1139 | 1546 | exec AS_MESSAGE_LOG_FD>>config.log | ||
1140 | 1547 | $lt_cl_success || AS_EXIT(1) | ||
1141 | 1548 | ])# LT_OUTPUT | ||
1142 | 1549 | |||
1143 | 1550 | |||
1144 | 1551 | # _LT_CONFIG(TAG) | ||
1145 | 1552 | # --------------- | ||
1146 | 1553 | # If TAG is the built-in tag, create an initial libtool script with a | ||
1147 | 1554 | # default configuration from the untagged config vars. Otherwise add code | ||
1148 | 1555 | # to config.status for appending the configuration named by TAG from the | ||
1149 | 1556 | # matching tagged config vars. | ||
1150 | 1557 | m4_defun([_LT_CONFIG], | ||
1151 | 1558 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
1152 | 1559 | _LT_CONFIG_SAVE_COMMANDS([ | ||
1153 | 1560 | m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl | ||
1154 | 1561 | m4_if(_LT_TAG, [C], [ | ||
1155 | 1562 | # See if we are running on zsh, and set the options which allow our | ||
1156 | 1563 | # commands through without removal of \ escapes. | ||
1157 | 1564 | if test -n "${ZSH_VERSION+set}" ; then | ||
1158 | 1565 | setopt NO_GLOB_SUBST | ||
1159 | 1566 | fi | ||
1160 | 1567 | |||
1161 | 1568 | cfgfile="${ofile}T" | ||
1162 | 1569 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | ||
1163 | 1570 | $RM "$cfgfile" | ||
1164 | 1571 | |||
1165 | 1572 | cat <<_LT_EOF >> "$cfgfile" | ||
1166 | 1573 | #! $SHELL | ||
1167 | 1574 | |||
1168 | 1575 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | ||
1169 | 1576 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | ||
1170 | 1577 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
1171 | 1578 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
1172 | 1579 | # | ||
1173 | 1580 | _LT_COPYING | ||
1174 | 1581 | _LT_LIBTOOL_TAGS | ||
1175 | 1582 | |||
1176 | 1583 | # ### BEGIN LIBTOOL CONFIG | ||
1177 | 1584 | _LT_LIBTOOL_CONFIG_VARS | ||
1178 | 1585 | _LT_LIBTOOL_TAG_VARS | ||
1179 | 1586 | # ### END LIBTOOL CONFIG | ||
1180 | 1587 | |||
1181 | 1588 | _LT_EOF | ||
1182 | 1589 | |||
1183 | 1590 | case $host_os in | ||
1184 | 1591 | aix3*) | ||
1185 | 1592 | cat <<\_LT_EOF >> "$cfgfile" | ||
1186 | 1593 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
1187 | 1594 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
1188 | 1595 | # vanish in a puff of smoke. | ||
1189 | 1596 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
1190 | 1597 | COLLECT_NAMES= | ||
1191 | 1598 | export COLLECT_NAMES | ||
1192 | 1599 | fi | ||
1193 | 1600 | _LT_EOF | ||
1194 | 1601 | ;; | ||
1195 | 1602 | esac | ||
1196 | 1603 | |||
1197 | 1604 | _LT_PROG_LTMAIN | ||
1198 | 1605 | |||
1199 | 1606 | # We use sed instead of cat because bash on DJGPP gets confused if | ||
1200 | 1607 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
1201 | 1608 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
1202 | 1609 | # is reportedly fixed, but why not run on old versions too? | ||
1203 | 1610 | sed '$q' "$ltmain" >> "$cfgfile" \ | ||
1204 | 1611 | || (rm -f "$cfgfile"; exit 1) | ||
1205 | 1612 | |||
1206 | 1613 | _LT_PROG_REPLACE_SHELLFNS | ||
1207 | 1614 | |||
1208 | 1615 | mv -f "$cfgfile" "$ofile" || | ||
1209 | 1616 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
1210 | 1617 | chmod +x "$ofile" | ||
1211 | 1618 | ], | ||
1212 | 1619 | [cat <<_LT_EOF >> "$ofile" | ||
1213 | 1620 | |||
1214 | 1621 | dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded | ||
1215 | 1622 | dnl in a comment (ie after a #). | ||
1216 | 1623 | # ### BEGIN LIBTOOL TAG CONFIG: $1 | ||
1217 | 1624 | _LT_LIBTOOL_TAG_VARS(_LT_TAG) | ||
1218 | 1625 | # ### END LIBTOOL TAG CONFIG: $1 | ||
1219 | 1626 | _LT_EOF | ||
1220 | 1627 | ])dnl /m4_if | ||
1221 | 1628 | ], | ||
1222 | 1629 | [m4_if([$1], [], [ | ||
1223 | 1630 | PACKAGE='$PACKAGE' | ||
1224 | 1631 | VERSION='$VERSION' | ||
1225 | 1632 | TIMESTAMP='$TIMESTAMP' | ||
1226 | 1633 | RM='$RM' | ||
1227 | 1634 | ofile='$ofile'], []) | ||
1228 | 1635 | ])dnl /_LT_CONFIG_SAVE_COMMANDS | ||
1229 | 1636 | ])# _LT_CONFIG | ||
1230 | 1637 | |||
1231 | 1638 | |||
1232 | 1639 | # LT_SUPPORTED_TAG(TAG) | ||
1233 | 1640 | # --------------------- | ||
1234 | 1641 | # Trace this macro to discover what tags are supported by the libtool | ||
1235 | 1642 | # --tag option, using: | ||
1236 | 1643 | # autoconf --trace 'LT_SUPPORTED_TAG:$1' | ||
1237 | 1644 | AC_DEFUN([LT_SUPPORTED_TAG], []) | ||
1238 | 1645 | |||
1239 | 1646 | |||
1240 | 1647 | # C support is built-in for now | ||
1241 | 1648 | m4_define([_LT_LANG_C_enabled], []) | ||
1242 | 1649 | m4_define([_LT_TAGS], []) | ||
1243 | 1650 | |||
1244 | 1651 | |||
1245 | 1652 | # LT_LANG(LANG) | ||
1246 | 1653 | # ------------- | ||
1247 | 1654 | # Enable libtool support for the given language if not already enabled. | ||
1248 | 1655 | AC_DEFUN([LT_LANG], | ||
1249 | 1656 | [AC_BEFORE([$0], [LT_OUTPUT])dnl | ||
1250 | 1657 | m4_case([$1], | ||
1251 | 1658 | [C], [_LT_LANG(C)], | ||
1252 | 1659 | [C++], [_LT_LANG(CXX)], | ||
1253 | 1660 | [Java], [_LT_LANG(GCJ)], | ||
1254 | 1661 | [Fortran 77], [_LT_LANG(F77)], | ||
1255 | 1662 | [Fortran], [_LT_LANG(FC)], | ||
1256 | 1663 | [Windows Resource], [_LT_LANG(RC)], | ||
1257 | 1664 | [m4_ifdef([_LT_LANG_]$1[_CONFIG], | ||
1258 | 1665 | [_LT_LANG($1)], | ||
1259 | 1666 | [m4_fatal([$0: unsupported language: "$1"])])])dnl | ||
1260 | 1667 | ])# LT_LANG | ||
1261 | 1668 | |||
1262 | 1669 | |||
1263 | 1670 | # _LT_LANG(LANGNAME) | ||
1264 | 1671 | # ------------------ | ||
1265 | 1672 | m4_defun([_LT_LANG], | ||
1266 | 1673 | [m4_ifdef([_LT_LANG_]$1[_enabled], [], | ||
1267 | 1674 | [LT_SUPPORTED_TAG([$1])dnl | ||
1268 | 1675 | m4_append([_LT_TAGS], [$1 ])dnl | ||
1269 | 1676 | m4_define([_LT_LANG_]$1[_enabled], [])dnl | ||
1270 | 1677 | _LT_LANG_$1_CONFIG($1)])dnl | ||
1271 | 1678 | ])# _LT_LANG | ||
1272 | 1679 | |||
1273 | 1680 | |||
1274 | 1681 | # _LT_LANG_DEFAULT_CONFIG | ||
1275 | 1682 | # ----------------------- | ||
1276 | 1683 | m4_defun([_LT_LANG_DEFAULT_CONFIG], | ||
1277 | 1684 | [AC_PROVIDE_IFELSE([AC_PROG_CXX], | ||
1278 | 1685 | [LT_LANG(CXX)], | ||
1279 | 1686 | [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) | ||
1280 | 1687 | |||
1281 | 1688 | AC_PROVIDE_IFELSE([AC_PROG_F77], | ||
1282 | 1689 | [LT_LANG(F77)], | ||
1283 | 1690 | [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) | ||
1284 | 1691 | |||
1285 | 1692 | AC_PROVIDE_IFELSE([AC_PROG_FC], | ||
1286 | 1693 | [LT_LANG(FC)], | ||
1287 | 1694 | [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) | ||
1288 | 1695 | |||
1289 | 1696 | dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal | ||
1290 | 1697 | dnl pulling things in needlessly. | ||
1291 | 1698 | AC_PROVIDE_IFELSE([AC_PROG_GCJ], | ||
1292 | 1699 | [LT_LANG(GCJ)], | ||
1293 | 1700 | [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], | ||
1294 | 1701 | [LT_LANG(GCJ)], | ||
1295 | 1702 | [AC_PROVIDE_IFELSE([LT_PROG_GCJ], | ||
1296 | 1703 | [LT_LANG(GCJ)], | ||
1297 | 1704 | [m4_ifdef([AC_PROG_GCJ], | ||
1298 | 1705 | [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) | ||
1299 | 1706 | m4_ifdef([A][M_PROG_GCJ], | ||
1300 | 1707 | [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) | ||
1301 | 1708 | m4_ifdef([LT_PROG_GCJ], | ||
1302 | 1709 | [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) | ||
1303 | 1710 | |||
1304 | 1711 | AC_PROVIDE_IFELSE([LT_PROG_RC], | ||
1305 | 1712 | [LT_LANG(RC)], | ||
1306 | 1713 | [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) | ||
1307 | 1714 | ])# _LT_LANG_DEFAULT_CONFIG | ||
1308 | 1715 | |||
1309 | 1716 | # Obsolete macros: | ||
1310 | 1717 | AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) | ||
1311 | 1718 | AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) | ||
1312 | 1719 | AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) | ||
1313 | 1720 | AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) | ||
1314 | 1721 | AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) | ||
1315 | 1722 | dnl aclocal-1.4 backwards compatibility: | ||
1316 | 1723 | dnl AC_DEFUN([AC_LIBTOOL_CXX], []) | ||
1317 | 1724 | dnl AC_DEFUN([AC_LIBTOOL_F77], []) | ||
1318 | 1725 | dnl AC_DEFUN([AC_LIBTOOL_FC], []) | ||
1319 | 1726 | dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) | ||
1320 | 1727 | dnl AC_DEFUN([AC_LIBTOOL_RC], []) | ||
1321 | 1728 | |||
1322 | 1729 | |||
1323 | 1730 | # _LT_TAG_COMPILER | ||
1324 | 1731 | # ---------------- | ||
1325 | 1732 | m4_defun([_LT_TAG_COMPILER], | ||
1326 | 1733 | [AC_REQUIRE([AC_PROG_CC])dnl | ||
1327 | 1734 | |||
1328 | 1735 | _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl | ||
1329 | 1736 | _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl | ||
1330 | 1737 | _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl | ||
1331 | 1738 | _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl | ||
1332 | 1739 | |||
1333 | 1740 | # If no C compiler was specified, use CC. | ||
1334 | 1741 | LTCC=${LTCC-"$CC"} | ||
1335 | 1742 | |||
1336 | 1743 | # If no C compiler flags were specified, use CFLAGS. | ||
1337 | 1744 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
1338 | 1745 | |||
1339 | 1746 | # Allow CC to be a program name with arguments. | ||
1340 | 1747 | compiler=$CC | ||
1341 | 1748 | ])# _LT_TAG_COMPILER | ||
1342 | 1749 | |||
1343 | 1750 | |||
1344 | 1751 | # _LT_COMPILER_BOILERPLATE | ||
1345 | 1752 | # ------------------------ | ||
1346 | 1753 | # Check for compiler boilerplate output or warnings with | ||
1347 | 1754 | # the simple compiler test code. | ||
1348 | 1755 | m4_defun([_LT_COMPILER_BOILERPLATE], | ||
1349 | 1756 | [m4_require([_LT_DECL_SED])dnl | ||
1350 | 1757 | ac_outfile=conftest.$ac_objext | ||
1351 | 1758 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
1352 | 1759 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
1353 | 1760 | _lt_compiler_boilerplate=`cat conftest.err` | ||
1354 | 1761 | $RM conftest* | ||
1355 | 1762 | ])# _LT_COMPILER_BOILERPLATE | ||
1356 | 1763 | |||
1357 | 1764 | |||
1358 | 1765 | # _LT_LINKER_BOILERPLATE | ||
1359 | 1766 | # ---------------------- | ||
1360 | 1767 | # Check for linker boilerplate output or warnings with | ||
1361 | 1768 | # the simple link test code. | ||
1362 | 1769 | m4_defun([_LT_LINKER_BOILERPLATE], | ||
1363 | 1770 | [m4_require([_LT_DECL_SED])dnl | ||
1364 | 1771 | ac_outfile=conftest.$ac_objext | ||
1365 | 1772 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | ||
1366 | 1773 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
1367 | 1774 | _lt_linker_boilerplate=`cat conftest.err` | ||
1368 | 1775 | $RM -r conftest* | ||
1369 | 1776 | ])# _LT_LINKER_BOILERPLATE | ||
1370 | 1777 | |||
1371 | 1778 | # _LT_REQUIRED_DARWIN_CHECKS | ||
1372 | 1779 | # ------------------------- | ||
1373 | 1780 | m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ | ||
1374 | 1781 | case $host_os in | ||
1375 | 1782 | rhapsody* | darwin*) | ||
1376 | 1783 | AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) | ||
1377 | 1784 | AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) | ||
1378 | 1785 | AC_CHECK_TOOL([LIPO], [lipo], [:]) | ||
1379 | 1786 | AC_CHECK_TOOL([OTOOL], [otool], [:]) | ||
1380 | 1787 | AC_CHECK_TOOL([OTOOL64], [otool64], [:]) | ||
1381 | 1788 | _LT_DECL([], [DSYMUTIL], [1], | ||
1382 | 1789 | [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) | ||
1383 | 1790 | _LT_DECL([], [NMEDIT], [1], | ||
1384 | 1791 | [Tool to change global to local symbols on Mac OS X]) | ||
1385 | 1792 | _LT_DECL([], [LIPO], [1], | ||
1386 | 1793 | [Tool to manipulate fat objects and archives on Mac OS X]) | ||
1387 | 1794 | _LT_DECL([], [OTOOL], [1], | ||
1388 | 1795 | [ldd/readelf like tool for Mach-O binaries on Mac OS X]) | ||
1389 | 1796 | _LT_DECL([], [OTOOL64], [1], | ||
1390 | 1797 | [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) | ||
1391 | 1798 | |||
1392 | 1799 | AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], | ||
1393 | 1800 | [lt_cv_apple_cc_single_mod=no | ||
1394 | 1801 | if test -z "${LT_MULTI_MODULE}"; then | ||
1395 | 1802 | # By default we will add the -single_module flag. You can override | ||
1396 | 1803 | # by either setting the environment variable LT_MULTI_MODULE | ||
1397 | 1804 | # non-empty at configure time, or by adding -multi_module to the | ||
1398 | 1805 | # link flags. | ||
1399 | 1806 | rm -rf libconftest.dylib* | ||
1400 | 1807 | echo "int foo(void){return 1;}" > conftest.c | ||
1401 | 1808 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | ||
1402 | 1809 | -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD | ||
1403 | 1810 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | ||
1404 | 1811 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | ||
1405 | 1812 | _lt_result=$? | ||
1406 | 1813 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | ||
1407 | 1814 | lt_cv_apple_cc_single_mod=yes | ||
1408 | 1815 | else | ||
1409 | 1816 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
1410 | 1817 | fi | ||
1411 | 1818 | rm -rf libconftest.dylib* | ||
1412 | 1819 | rm -f conftest.* | ||
1413 | 1820 | fi]) | ||
1414 | 1821 | AC_CACHE_CHECK([for -exported_symbols_list linker flag], | ||
1415 | 1822 | [lt_cv_ld_exported_symbols_list], | ||
1416 | 1823 | [lt_cv_ld_exported_symbols_list=no | ||
1417 | 1824 | save_LDFLAGS=$LDFLAGS | ||
1418 | 1825 | echo "_main" > conftest.sym | ||
1419 | 1826 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | ||
1420 | 1827 | AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], | ||
1421 | 1828 | [lt_cv_ld_exported_symbols_list=yes], | ||
1422 | 1829 | [lt_cv_ld_exported_symbols_list=no]) | ||
1423 | 1830 | LDFLAGS="$save_LDFLAGS" | ||
1424 | 1831 | ]) | ||
1425 | 1832 | AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], | ||
1426 | 1833 | [lt_cv_ld_force_load=no | ||
1427 | 1834 | cat > conftest.c << _LT_EOF | ||
1428 | 1835 | int forced_loaded() { return 2;} | ||
1429 | 1836 | _LT_EOF | ||
1430 | 1837 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD | ||
1431 | 1838 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD | ||
1432 | 1839 | echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD | ||
1433 | 1840 | $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD | ||
1434 | 1841 | echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD | ||
1435 | 1842 | $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD | ||
1436 | 1843 | cat > conftest.c << _LT_EOF | ||
1437 | 1844 | int main() { return 0;} | ||
1438 | 1845 | _LT_EOF | ||
1439 | 1846 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD | ||
1440 | 1847 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | ||
1441 | 1848 | _lt_result=$? | ||
1442 | 1849 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | ||
1443 | 1850 | lt_cv_ld_force_load=yes | ||
1444 | 1851 | else | ||
1445 | 1852 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
1446 | 1853 | fi | ||
1447 | 1854 | rm -f conftest.err libconftest.a conftest conftest.c | ||
1448 | 1855 | rm -rf conftest.dSYM | ||
1449 | 1856 | ]) | ||
1450 | 1857 | case $host_os in | ||
1451 | 1858 | rhapsody* | darwin1.[[012]]) | ||
1452 | 1859 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | ||
1453 | 1860 | darwin1.*) | ||
1454 | 1861 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | ||
1455 | 1862 | darwin*) # darwin 5.x on | ||
1456 | 1863 | # if running on 10.5 or later, the deployment target defaults | ||
1457 | 1864 | # to the OS version, if on x86, and 10.4, the deployment | ||
1458 | 1865 | # target defaults to 10.4. Don't you love it? | ||
1459 | 1866 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | ||
1460 | 1867 | 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) | ||
1461 | 1868 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | ||
1462 | 1869 | 10.[[012]]*) | ||
1463 | 1870 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | ||
1464 | 1871 | 10.*) | ||
1465 | 1872 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | ||
1466 | 1873 | esac | ||
1467 | 1874 | ;; | ||
1468 | 1875 | esac | ||
1469 | 1876 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | ||
1470 | 1877 | _lt_dar_single_mod='$single_module' | ||
1471 | 1878 | fi | ||
1472 | 1879 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | ||
1473 | 1880 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | ||
1474 | 1881 | else | ||
1475 | 1882 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
1476 | 1883 | fi | ||
1477 | 1884 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | ||
1478 | 1885 | _lt_dsymutil='~$DSYMUTIL $lib || :' | ||
1479 | 1886 | else | ||
1480 | 1887 | _lt_dsymutil= | ||
1481 | 1888 | fi | ||
1482 | 1889 | ;; | ||
1483 | 1890 | esac | ||
1484 | 1891 | ]) | ||
1485 | 1892 | |||
1486 | 1893 | |||
1487 | 1894 | # _LT_DARWIN_LINKER_FEATURES | ||
1488 | 1895 | # -------------------------- | ||
1489 | 1896 | # Checks for linker and compiler features on darwin | ||
1490 | 1897 | m4_defun([_LT_DARWIN_LINKER_FEATURES], | ||
1491 | 1898 | [ | ||
1492 | 1899 | m4_require([_LT_REQUIRED_DARWIN_CHECKS]) | ||
1493 | 1900 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | ||
1494 | 1901 | _LT_TAGVAR(hardcode_direct, $1)=no | ||
1495 | 1902 | _LT_TAGVAR(hardcode_automatic, $1)=yes | ||
1496 | 1903 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | ||
1497 | 1904 | if test "$lt_cv_ld_force_load" = "yes"; then | ||
1498 | 1905 | _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\"`' | ||
1499 | 1906 | else | ||
1500 | 1907 | _LT_TAGVAR(whole_archive_flag_spec, $1)='' | ||
1501 | 1908 | fi | ||
1502 | 1909 | _LT_TAGVAR(link_all_deplibs, $1)=yes | ||
1503 | 1910 | _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" | ||
1504 | 1911 | case $cc_basename in | ||
1505 | 1912 | ifort*) _lt_dar_can_shared=yes ;; | ||
1506 | 1913 | *) _lt_dar_can_shared=$GCC ;; | ||
1507 | 1914 | esac | ||
1508 | 1915 | if test "$_lt_dar_can_shared" = "yes"; then | ||
1509 | 1916 | output_verbose_link_cmd=func_echo_all | ||
1510 | 1917 | _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}" | ||
1511 | 1918 | _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | ||
1512 | 1919 | _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}" | ||
1513 | 1920 | _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}" | ||
1514 | 1921 | m4_if([$1], [CXX], | ||
1515 | 1922 | [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then | ||
1516 | 1923 | _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}" | ||
1517 | 1924 | _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}" | ||
1518 | 1925 | fi | ||
1519 | 1926 | ],[]) | ||
1520 | 1927 | else | ||
1521 | 1928 | _LT_TAGVAR(ld_shlibs, $1)=no | ||
1522 | 1929 | fi | ||
1523 | 1930 | ]) | ||
1524 | 1931 | |||
1525 | 1932 | # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) | ||
1526 | 1933 | # ---------------------------------- | ||
1527 | 1934 | # Links a minimal program and checks the executable | ||
1528 | 1935 | # for the system default hardcoded library path. In most cases, | ||
1529 | 1936 | # this is /usr/lib:/lib, but when the MPI compilers are used | ||
1530 | 1937 | # the location of the communication and MPI libs are included too. | ||
1531 | 1938 | # If we don't find anything, use the default library path according | ||
1532 | 1939 | # to the aix ld manual. | ||
1533 | 1940 | # Store the results from the different compilers for each TAGNAME. | ||
1534 | 1941 | # Allow to override them for all tags through lt_cv_aix_libpath. | ||
1535 | 1942 | m4_defun([_LT_SYS_MODULE_PATH_AIX], | ||
1536 | 1943 | [m4_require([_LT_DECL_SED])dnl | ||
1537 | 1944 | if test "${lt_cv_aix_libpath+set}" = set; then | ||
1538 | 1945 | aix_libpath=$lt_cv_aix_libpath | ||
1539 | 1946 | else | ||
1540 | 1947 | AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], | ||
1541 | 1948 | [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ | ||
1542 | 1949 | lt_aix_libpath_sed='[ | ||
1543 | 1950 | /Import File Strings/,/^$/ { | ||
1544 | 1951 | /^0/ { | ||
1545 | 1952 | s/^0 *\([^ ]*\) *$/\1/ | ||
1546 | 1953 | p | ||
1547 | 1954 | } | ||
1548 | 1955 | }]' | ||
1549 | 1956 | _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
1550 | 1957 | # Check for a 64-bit object if we didn't find anything. | ||
1551 | 1958 | if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then | ||
1552 | 1959 | _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
1553 | 1960 | fi],[]) | ||
1554 | 1961 | if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then | ||
1555 | 1962 | _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" | ||
1556 | 1963 | fi | ||
1557 | 1964 | ]) | ||
1558 | 1965 | aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) | ||
1559 | 1966 | fi | ||
1560 | 1967 | ])# _LT_SYS_MODULE_PATH_AIX | ||
1561 | 1968 | |||
1562 | 1969 | |||
1563 | 1970 | # _LT_SHELL_INIT(ARG) | ||
1564 | 1971 | # ------------------- | ||
1565 | 1972 | m4_define([_LT_SHELL_INIT], | ||
1566 | 1973 | [m4_divert_text([M4SH-INIT], [$1 | ||
1567 | 1974 | ])])# _LT_SHELL_INIT | ||
1568 | 1975 | |||
1569 | 1976 | |||
1570 | 1977 | |||
1571 | 1978 | # _LT_PROG_ECHO_BACKSLASH | ||
1572 | 1979 | # ----------------------- | ||
1573 | 1980 | # Find how we can fake an echo command that does not interpret backslash. | ||
1574 | 1981 | # In particular, with Autoconf 2.60 or later we add some code to the start | ||
1575 | 1982 | # of the generated configure script which will find a shell with a builtin | ||
1576 | 1983 | # printf (which we can use as an echo command). | ||
1577 | 1984 | m4_defun([_LT_PROG_ECHO_BACKSLASH], | ||
1578 | 1985 | [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
1579 | 1986 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | ||
1580 | 1987 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | ||
1581 | 1988 | |||
1582 | 1989 | AC_MSG_CHECKING([how to print strings]) | ||
1583 | 1990 | # Test print first, because it will be a builtin if present. | ||
1584 | 1991 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | ||
1585 | 1992 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
1586 | 1993 | ECHO='print -r --' | ||
1587 | 1994 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
1588 | 1995 | ECHO='printf %s\n' | ||
1589 | 1996 | else | ||
1590 | 1997 | # Use this function as a fallback that always works. | ||
1591 | 1998 | func_fallback_echo () | ||
1592 | 1999 | { | ||
1593 | 2000 | eval 'cat <<_LTECHO_EOF | ||
1594 | 2001 | $[]1 | ||
1595 | 2002 | _LTECHO_EOF' | ||
1596 | 2003 | } | ||
1597 | 2004 | ECHO='func_fallback_echo' | ||
1598 | 2005 | fi | ||
1599 | 2006 | |||
1600 | 2007 | # func_echo_all arg... | ||
1601 | 2008 | # Invoke $ECHO with all args, space-separated. | ||
1602 | 2009 | func_echo_all () | ||
1603 | 2010 | { | ||
1604 | 2011 | $ECHO "$*" | ||
1605 | 2012 | } | ||
1606 | 2013 | |||
1607 | 2014 | case "$ECHO" in | ||
1608 | 2015 | printf*) AC_MSG_RESULT([printf]) ;; | ||
1609 | 2016 | print*) AC_MSG_RESULT([print -r]) ;; | ||
1610 | 2017 | *) AC_MSG_RESULT([cat]) ;; | ||
1611 | 2018 | esac | ||
1612 | 2019 | |||
1613 | 2020 | m4_ifdef([_AS_DETECT_SUGGESTED], | ||
1614 | 2021 | [_AS_DETECT_SUGGESTED([ | ||
1615 | 2022 | test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( | ||
1616 | 2023 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
1617 | 2024 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | ||
1618 | 2025 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | ||
1619 | 2026 | PATH=/empty FPATH=/empty; export PATH FPATH | ||
1620 | 2027 | test "X`printf %s $ECHO`" = "X$ECHO" \ | ||
1621 | 2028 | || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) | ||
1622 | 2029 | |||
1623 | 2030 | _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) | ||
1624 | 2031 | _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) | ||
1625 | 2032 | ])# _LT_PROG_ECHO_BACKSLASH | ||
1626 | 2033 | |||
1627 | 2034 | |||
1628 | 2035 | # _LT_WITH_SYSROOT | ||
1629 | 2036 | # ---------------- | ||
1630 | 2037 | AC_DEFUN([_LT_WITH_SYSROOT], | ||
1631 | 2038 | [AC_MSG_CHECKING([for sysroot]) | ||
1632 | 2039 | AC_ARG_WITH([sysroot], | ||
1633 | 2040 | [ --with-sysroot[=DIR] Search for dependent libraries within DIR | ||
1634 | 2041 | (or the compiler's sysroot if not specified).], | ||
1635 | 2042 | [], [with_sysroot=no]) | ||
1636 | 2043 | |||
1637 | 2044 | dnl lt_sysroot will always be passed unquoted. We quote it here | ||
1638 | 2045 | dnl in case the user passed a directory name. | ||
1639 | 2046 | lt_sysroot= | ||
1640 | 2047 | case ${with_sysroot} in #( | ||
1641 | 2048 | yes) | ||
1642 | 2049 | if test "$GCC" = yes; then | ||
1643 | 2050 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | ||
1644 | 2051 | fi | ||
1645 | 2052 | ;; #( | ||
1646 | 2053 | /*) | ||
1647 | 2054 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | ||
1648 | 2055 | ;; #( | ||
1649 | 2056 | no|'') | ||
1650 | 2057 | ;; #( | ||
1651 | 2058 | *) | ||
1652 | 2059 | AC_MSG_RESULT([${with_sysroot}]) | ||
1653 | 2060 | AC_MSG_ERROR([The sysroot must be an absolute path.]) | ||
1654 | 2061 | ;; | ||
1655 | 2062 | esac | ||
1656 | 2063 | |||
1657 | 2064 | AC_MSG_RESULT([${lt_sysroot:-no}]) | ||
1658 | 2065 | _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl | ||
1659 | 2066 | [dependent libraries, and in which our libraries should be installed.])]) | ||
1660 | 2067 | |||
1661 | 2068 | # _LT_ENABLE_LOCK | ||
1662 | 2069 | # --------------- | ||
1663 | 2070 | m4_defun([_LT_ENABLE_LOCK], | ||
1664 | 2071 | [AC_ARG_ENABLE([libtool-lock], | ||
1665 | 2072 | [AS_HELP_STRING([--disable-libtool-lock], | ||
1666 | 2073 | [avoid locking (might break parallel builds)])]) | ||
1667 | 2074 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
1668 | 2075 | |||
1669 | 2076 | # Some flags need to be propagated to the compiler or linker for good | ||
1670 | 2077 | # libtool support. | ||
1671 | 2078 | case $host in | ||
1672 | 2079 | ia64-*-hpux*) | ||
1673 | 2080 | # Find out which ABI we are using. | ||
1674 | 2081 | echo 'int i;' > conftest.$ac_ext | ||
1675 | 2082 | if AC_TRY_EVAL(ac_compile); then | ||
1676 | 2083 | case `/usr/bin/file conftest.$ac_objext` in | ||
1677 | 2084 | *ELF-32*) | ||
1678 | 2085 | HPUX_IA64_MODE="32" | ||
1679 | 2086 | ;; | ||
1680 | 2087 | *ELF-64*) | ||
1681 | 2088 | HPUX_IA64_MODE="64" | ||
1682 | 2089 | ;; | ||
1683 | 2090 | esac | ||
1684 | 2091 | fi | ||
1685 | 2092 | rm -rf conftest* | ||
1686 | 2093 | ;; | ||
1687 | 2094 | *-*-irix6*) | ||
1688 | 2095 | # Find out which ABI we are using. | ||
1689 | 2096 | echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext | ||
1690 | 2097 | if AC_TRY_EVAL(ac_compile); then | ||
1691 | 2098 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
1692 | 2099 | case `/usr/bin/file conftest.$ac_objext` in | ||
1693 | 2100 | *32-bit*) | ||
1694 | 2101 | LD="${LD-ld} -melf32bsmip" | ||
1695 | 2102 | ;; | ||
1696 | 2103 | *N32*) | ||
1697 | 2104 | LD="${LD-ld} -melf32bmipn32" | ||
1698 | 2105 | ;; | ||
1699 | 2106 | *64-bit*) | ||
1700 | 2107 | LD="${LD-ld} -melf64bmip" | ||
1701 | 2108 | ;; | ||
1702 | 2109 | esac | ||
1703 | 2110 | else | ||
1704 | 2111 | case `/usr/bin/file conftest.$ac_objext` in | ||
1705 | 2112 | *32-bit*) | ||
1706 | 2113 | LD="${LD-ld} -32" | ||
1707 | 2114 | ;; | ||
1708 | 2115 | *N32*) | ||
1709 | 2116 | LD="${LD-ld} -n32" | ||
1710 | 2117 | ;; | ||
1711 | 2118 | *64-bit*) | ||
1712 | 2119 | LD="${LD-ld} -64" | ||
1713 | 2120 | ;; | ||
1714 | 2121 | esac | ||
1715 | 2122 | fi | ||
1716 | 2123 | fi | ||
1717 | 2124 | rm -rf conftest* | ||
1718 | 2125 | ;; | ||
1719 | 2126 | |||
1720 | 2127 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | ||
1721 | 2128 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | ||
1722 | 2129 | # Find out which ABI we are using. | ||
1723 | 2130 | echo 'int i;' > conftest.$ac_ext | ||
1724 | 2131 | if AC_TRY_EVAL(ac_compile); then | ||
1725 | 2132 | case `/usr/bin/file conftest.o` in | ||
1726 | 2133 | *32-bit*) | ||
1727 | 2134 | case $host in | ||
1728 | 2135 | x86_64-*kfreebsd*-gnu) | ||
1729 | 2136 | LD="${LD-ld} -m elf_i386_fbsd" | ||
1730 | 2137 | ;; | ||
1731 | 2138 | x86_64-*linux*) | ||
1732 | 2139 | LD="${LD-ld} -m elf_i386" | ||
1733 | 2140 | ;; | ||
1734 | 2141 | ppc64-*linux*|powerpc64-*linux*) | ||
1735 | 2142 | LD="${LD-ld} -m elf32ppclinux" | ||
1736 | 2143 | ;; | ||
1737 | 2144 | s390x-*linux*) | ||
1738 | 2145 | LD="${LD-ld} -m elf_s390" | ||
1739 | 2146 | ;; | ||
1740 | 2147 | sparc64-*linux*) | ||
1741 | 2148 | LD="${LD-ld} -m elf32_sparc" | ||
1742 | 2149 | ;; | ||
1743 | 2150 | esac | ||
1744 | 2151 | ;; | ||
1745 | 2152 | *64-bit*) | ||
1746 | 2153 | case $host in | ||
1747 | 2154 | x86_64-*kfreebsd*-gnu) | ||
1748 | 2155 | LD="${LD-ld} -m elf_x86_64_fbsd" | ||
1749 | 2156 | ;; | ||
1750 | 2157 | x86_64-*linux*) | ||
1751 | 2158 | LD="${LD-ld} -m elf_x86_64" | ||
1752 | 2159 | ;; | ||
1753 | 2160 | ppc*-*linux*|powerpc*-*linux*) | ||
1754 | 2161 | LD="${LD-ld} -m elf64ppc" | ||
1755 | 2162 | ;; | ||
1756 | 2163 | s390*-*linux*|s390*-*tpf*) | ||
1757 | 2164 | LD="${LD-ld} -m elf64_s390" | ||
1758 | 2165 | ;; | ||
1759 | 2166 | sparc*-*linux*) | ||
1760 | 2167 | LD="${LD-ld} -m elf64_sparc" | ||
1761 | 2168 | ;; | ||
1762 | 2169 | esac | ||
1763 | 2170 | ;; | ||
1764 | 2171 | esac | ||
1765 | 2172 | fi | ||
1766 | 2173 | rm -rf conftest* | ||
1767 | 2174 | ;; | ||
1768 | 2175 | |||
1769 | 2176 | *-*-sco3.2v5*) | ||
1770 | 2177 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | ||
1771 | 2178 | SAVE_CFLAGS="$CFLAGS" | ||
1772 | 2179 | CFLAGS="$CFLAGS -belf" | ||
1773 | 2180 | AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, | ||
1774 | 2181 | [AC_LANG_PUSH(C) | ||
1775 | 2182 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) | ||
1776 | 2183 | AC_LANG_POP]) | ||
1777 | 2184 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | ||
1778 | 2185 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | ||
1779 | 2186 | CFLAGS="$SAVE_CFLAGS" | ||
1780 | 2187 | fi | ||
1781 | 2188 | ;; | ||
1782 | 2189 | sparc*-*solaris*) | ||
1783 | 2190 | # Find out which ABI we are using. | ||
1784 | 2191 | echo 'int i;' > conftest.$ac_ext | ||
1785 | 2192 | if AC_TRY_EVAL(ac_compile); then | ||
1786 | 2193 | case `/usr/bin/file conftest.o` in | ||
1787 | 2194 | *64-bit*) | ||
1788 | 2195 | case $lt_cv_prog_gnu_ld in | ||
1789 | 2196 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | ||
1790 | 2197 | *) | ||
1791 | 2198 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | ||
1792 | 2199 | LD="${LD-ld} -64" | ||
1793 | 2200 | fi | ||
1794 | 2201 | ;; | ||
1795 | 2202 | esac | ||
1796 | 2203 | ;; | ||
1797 | 2204 | esac | ||
1798 | 2205 | fi | ||
1799 | 2206 | rm -rf conftest* | ||
1800 | 2207 | ;; | ||
1801 | 2208 | esac | ||
1802 | 2209 | |||
1803 | 2210 | need_locks="$enable_libtool_lock" | ||
1804 | 2211 | ])# _LT_ENABLE_LOCK | ||
1805 | 2212 | |||
1806 | 2213 | |||
1807 | 2214 | # _LT_PROG_AR | ||
1808 | 2215 | # ----------- | ||
1809 | 2216 | m4_defun([_LT_PROG_AR], | ||
1810 | 2217 | [AC_CHECK_TOOLS(AR, [ar], false) | ||
1811 | 2218 | : ${AR=ar} | ||
1812 | 2219 | : ${AR_FLAGS=cru} | ||
1813 | 2220 | _LT_DECL([], [AR], [1], [The archiver]) | ||
1814 | 2221 | _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) | ||
1815 | 2222 | |||
1816 | 2223 | AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], | ||
1817 | 2224 | [lt_cv_ar_at_file=no | ||
1818 | 2225 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM], | ||
1819 | 2226 | [echo conftest.$ac_objext > conftest.lst | ||
1820 | 2227 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' | ||
1821 | 2228 | AC_TRY_EVAL([lt_ar_try]) | ||
1822 | 2229 | if test "$ac_status" -eq 0; then | ||
1823 | 2230 | # Ensure the archiver fails upon bogus file names. | ||
1824 | 2231 | rm -f conftest.$ac_objext libconftest.a | ||
1825 | 2232 | AC_TRY_EVAL([lt_ar_try]) | ||
1826 | 2233 | if test "$ac_status" -ne 0; then | ||
1827 | 2234 | lt_cv_ar_at_file=@ | ||
1828 | 2235 | fi | ||
1829 | 2236 | fi | ||
1830 | 2237 | rm -f conftest.* libconftest.a | ||
1831 | 2238 | ]) | ||
1832 | 2239 | ]) | ||
1833 | 2240 | |||
1834 | 2241 | if test "x$lt_cv_ar_at_file" = xno; then | ||
1835 | 2242 | archiver_list_spec= | ||
1836 | 2243 | else | ||
1837 | 2244 | archiver_list_spec=$lt_cv_ar_at_file | ||
1838 | 2245 | fi | ||
1839 | 2246 | _LT_DECL([], [archiver_list_spec], [1], | ||
1840 | 2247 | [How to feed a file listing to the archiver]) | ||
1841 | 2248 | ])# _LT_PROG_AR | ||
1842 | 2249 | |||
1843 | 2250 | |||
1844 | 2251 | # _LT_CMD_OLD_ARCHIVE | ||
1845 | 2252 | # ------------------- | ||
1846 | 2253 | m4_defun([_LT_CMD_OLD_ARCHIVE], | ||
1847 | 2254 | [_LT_PROG_AR | ||
1848 | 2255 | |||
1849 | 2256 | AC_CHECK_TOOL(STRIP, strip, :) | ||
1850 | 2257 | test -z "$STRIP" && STRIP=: | ||
1851 | 2258 | _LT_DECL([], [STRIP], [1], [A symbol stripping program]) | ||
1852 | 2259 | |||
1853 | 2260 | AC_CHECK_TOOL(RANLIB, ranlib, :) | ||
1854 | 2261 | test -z "$RANLIB" && RANLIB=: | ||
1855 | 2262 | _LT_DECL([], [RANLIB], [1], | ||
1856 | 2263 | [Commands used to install an old-style archive]) | ||
1857 | 2264 | |||
1858 | 2265 | # Determine commands to create old-style static archives. | ||
1859 | 2266 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | ||
1860 | 2267 | old_postinstall_cmds='chmod 644 $oldlib' | ||
1861 | 2268 | old_postuninstall_cmds= | ||
1862 | 2269 | |||
1863 | 2270 | if test -n "$RANLIB"; then | ||
1864 | 2271 | case $host_os in | ||
1865 | 2272 | openbsd*) | ||
1866 | 2273 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | ||
1867 | 2274 | ;; | ||
1868 | 2275 | *) | ||
1869 | 2276 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | ||
1870 | 2277 | ;; | ||
1871 | 2278 | esac | ||
1872 | 2279 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
1873 | 2280 | fi | ||
1874 | 2281 | |||
1875 | 2282 | case $host_os in | ||
1876 | 2283 | darwin*) | ||
1877 | 2284 | lock_old_archive_extraction=yes ;; | ||
1878 | 2285 | *) | ||
1879 | 2286 | lock_old_archive_extraction=no ;; | ||
1880 | 2287 | esac | ||
1881 | 2288 | _LT_DECL([], [old_postinstall_cmds], [2]) | ||
1882 | 2289 | _LT_DECL([], [old_postuninstall_cmds], [2]) | ||
1883 | 2290 | _LT_TAGDECL([], [old_archive_cmds], [2], | ||
1884 | 2291 | [Commands used to build an old-style archive]) | ||
1885 | 2292 | _LT_DECL([], [lock_old_archive_extraction], [0], | ||
1886 | 2293 | [Whether to use a lock for old archive extraction]) | ||
1887 | 2294 | ])# _LT_CMD_OLD_ARCHIVE | ||
1888 | 2295 | |||
1889 | 2296 | |||
1890 | 2297 | # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | ||
1891 | 2298 | # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) | ||
1892 | 2299 | # ---------------------------------------------------------------- | ||
1893 | 2300 | # Check whether the given compiler option works | ||
1894 | 2301 | AC_DEFUN([_LT_COMPILER_OPTION], | ||
1895 | 2302 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
1896 | 2303 | m4_require([_LT_DECL_SED])dnl | ||
1897 | 2304 | AC_CACHE_CHECK([$1], [$2], | ||
1898 | 2305 | [$2=no | ||
1899 | 2306 | m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) | ||
1900 | 2307 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
1901 | 2308 | lt_compiler_flag="$3" | ||
1902 | 2309 | # Insert the option either (1) after the last *FLAGS variable, or | ||
1903 | 2310 | # (2) before a word containing "conftest.", or (3) at the end. | ||
1904 | 2311 | # Note that $ac_compile itself does not contain backslashes and begins | ||
1905 | 2312 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
1906 | 2313 | # The option is referenced via a variable to avoid confusing sed. | ||
1907 | 2314 | lt_compile=`echo "$ac_compile" | $SED \ | ||
1908 | 2315 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
1909 | 2316 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | ||
1910 | 2317 | -e 's:$: $lt_compiler_flag:'` | ||
1911 | 2318 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | ||
1912 | 2319 | (eval "$lt_compile" 2>conftest.err) | ||
1913 | 2320 | ac_status=$? | ||
1914 | 2321 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
1915 | 2322 | echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | ||
1916 | 2323 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
1917 | 2324 | # The compiler can only warn and ignore the option if not recognized | ||
1918 | 2325 | # So say no if there are warnings other than the usual output. | ||
1919 | 2326 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | ||
1920 | 2327 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
1921 | 2328 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
1922 | 2329 | $2=yes | ||
1923 | 2330 | fi | ||
1924 | 2331 | fi | ||
1925 | 2332 | $RM conftest* | ||
1926 | 2333 | ]) | ||
1927 | 2334 | |||
1928 | 2335 | if test x"[$]$2" = xyes; then | ||
1929 | 2336 | m4_if([$5], , :, [$5]) | ||
1930 | 2337 | else | ||
1931 | 2338 | m4_if([$6], , :, [$6]) | ||
1932 | 2339 | fi | ||
1933 | 2340 | ])# _LT_COMPILER_OPTION | ||
1934 | 2341 | |||
1935 | 2342 | # Old name: | ||
1936 | 2343 | AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) | ||
1937 | 2344 | dnl aclocal-1.4 backwards compatibility: | ||
1938 | 2345 | dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) | ||
1939 | 2346 | |||
1940 | 2347 | |||
1941 | 2348 | # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | ||
1942 | 2349 | # [ACTION-SUCCESS], [ACTION-FAILURE]) | ||
1943 | 2350 | # ---------------------------------------------------- | ||
1944 | 2351 | # Check whether the given linker option works | ||
1945 | 2352 | AC_DEFUN([_LT_LINKER_OPTION], | ||
1946 | 2353 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
1947 | 2354 | m4_require([_LT_DECL_SED])dnl | ||
1948 | 2355 | AC_CACHE_CHECK([$1], [$2], | ||
1949 | 2356 | [$2=no | ||
1950 | 2357 | save_LDFLAGS="$LDFLAGS" | ||
1951 | 2358 | LDFLAGS="$LDFLAGS $3" | ||
1952 | 2359 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | ||
1953 | 2360 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
1954 | 2361 | # The linker can only warn and ignore the option if not recognized | ||
1955 | 2362 | # So say no if there are warnings | ||
1956 | 2363 | if test -s conftest.err; then | ||
1957 | 2364 | # Append any errors to the config.log. | ||
1958 | 2365 | cat conftest.err 1>&AS_MESSAGE_LOG_FD | ||
1959 | 2366 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | ||
1960 | 2367 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
1961 | 2368 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
1962 | 2369 | $2=yes | ||
1963 | 2370 | fi | ||
1964 | 2371 | else | ||
1965 | 2372 | $2=yes | ||
1966 | 2373 | fi | ||
1967 | 2374 | fi | ||
1968 | 2375 | $RM -r conftest* | ||
1969 | 2376 | LDFLAGS="$save_LDFLAGS" | ||
1970 | 2377 | ]) | ||
1971 | 2378 | |||
1972 | 2379 | if test x"[$]$2" = xyes; then | ||
1973 | 2380 | m4_if([$4], , :, [$4]) | ||
1974 | 2381 | else | ||
1975 | 2382 | m4_if([$5], , :, [$5]) | ||
1976 | 2383 | fi | ||
1977 | 2384 | ])# _LT_LINKER_OPTION | ||
1978 | 2385 | |||
1979 | 2386 | # Old name: | ||
1980 | 2387 | AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) | ||
1981 | 2388 | dnl aclocal-1.4 backwards compatibility: | ||
1982 | 2389 | dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) | ||
1983 | 2390 | |||
1984 | 2391 | |||
1985 | 2392 | # LT_CMD_MAX_LEN | ||
1986 | 2393 | #--------------- | ||
1987 | 2394 | AC_DEFUN([LT_CMD_MAX_LEN], | ||
1988 | 2395 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
1989 | 2396 | # find the maximum length of command line arguments | ||
1990 | 2397 | AC_MSG_CHECKING([the maximum length of command line arguments]) | ||
1991 | 2398 | AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl | ||
1992 | 2399 | i=0 | ||
1993 | 2400 | teststring="ABCD" | ||
1994 | 2401 | |||
1995 | 2402 | case $build_os in | ||
1996 | 2403 | msdosdjgpp*) | ||
1997 | 2404 | # On DJGPP, this test can blow up pretty badly due to problems in libc | ||
1998 | 2405 | # (any single argument exceeding 2000 bytes causes a buffer overrun | ||
1999 | 2406 | # during glob expansion). Even if it were fixed, the result of this | ||
2000 | 2407 | # check would be larger than it should be. | ||
2001 | 2408 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | ||
2002 | 2409 | ;; | ||
2003 | 2410 | |||
2004 | 2411 | gnu*) | ||
2005 | 2412 | # Under GNU Hurd, this test is not required because there is | ||
2006 | 2413 | # no limit to the length of command line arguments. | ||
2007 | 2414 | # Libtool will interpret -1 as no limit whatsoever | ||
2008 | 2415 | lt_cv_sys_max_cmd_len=-1; | ||
2009 | 2416 | ;; | ||
2010 | 2417 | |||
2011 | 2418 | cygwin* | mingw* | cegcc*) | ||
2012 | 2419 | # On Win9x/ME, this test blows up -- it succeeds, but takes | ||
2013 | 2420 | # about 5 minutes as the teststring grows exponentially. | ||
2014 | 2421 | # Worse, since 9x/ME are not pre-emptively multitasking, | ||
2015 | 2422 | # you end up with a "frozen" computer, even though with patience | ||
2016 | 2423 | # the test eventually succeeds (with a max line length of 256k). | ||
2017 | 2424 | # Instead, let's just punt: use the minimum linelength reported by | ||
2018 | 2425 | # all of the supported platforms: 8192 (on NT/2K/XP). | ||
2019 | 2426 | lt_cv_sys_max_cmd_len=8192; | ||
2020 | 2427 | ;; | ||
2021 | 2428 | |||
2022 | 2429 | mint*) | ||
2023 | 2430 | # On MiNT this can take a long time and run out of memory. | ||
2024 | 2431 | lt_cv_sys_max_cmd_len=8192; | ||
2025 | 2432 | ;; | ||
2026 | 2433 | |||
2027 | 2434 | amigaos*) | ||
2028 | 2435 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
2029 | 2436 | # So we just punt and use a minimum line length of 8192. | ||
2030 | 2437 | lt_cv_sys_max_cmd_len=8192; | ||
2031 | 2438 | ;; | ||
2032 | 2439 | |||
2033 | 2440 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | ||
2034 | 2441 | # This has been around since 386BSD, at least. Likely further. | ||
2035 | 2442 | if test -x /sbin/sysctl; then | ||
2036 | 2443 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | ||
2037 | 2444 | elif test -x /usr/sbin/sysctl; then | ||
2038 | 2445 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | ||
2039 | 2446 | else | ||
2040 | 2447 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | ||
2041 | 2448 | fi | ||
2042 | 2449 | # And add a safety zone | ||
2043 | 2450 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
2044 | 2451 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
2045 | 2452 | ;; | ||
2046 | 2453 | |||
2047 | 2454 | interix*) | ||
2048 | 2455 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | ||
2049 | 2456 | lt_cv_sys_max_cmd_len=196608 | ||
2050 | 2457 | ;; | ||
2051 | 2458 | |||
2052 | 2459 | osf*) | ||
2053 | 2460 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | ||
2054 | 2461 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | ||
2055 | 2462 | # nice to cause kernel panics so lets avoid the loop below. | ||
2056 | 2463 | # First set a reasonable default. | ||
2057 | 2464 | lt_cv_sys_max_cmd_len=16384 | ||
2058 | 2465 | # | ||
2059 | 2466 | if test -x /sbin/sysconfig; then | ||
2060 | 2467 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | ||
2061 | 2468 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | ||
2062 | 2469 | esac | ||
2063 | 2470 | fi | ||
2064 | 2471 | ;; | ||
2065 | 2472 | sco3.2v5*) | ||
2066 | 2473 | lt_cv_sys_max_cmd_len=102400 | ||
2067 | 2474 | ;; | ||
2068 | 2475 | sysv5* | sco5v6* | sysv4.2uw2*) | ||
2069 | 2476 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | ||
2070 | 2477 | if test -n "$kargmax"; then | ||
2071 | 2478 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` | ||
2072 | 2479 | else | ||
2073 | 2480 | lt_cv_sys_max_cmd_len=32768 | ||
2074 | 2481 | fi | ||
2075 | 2482 | ;; | ||
2076 | 2483 | *) | ||
2077 | 2484 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | ||
2078 | 2485 | if test -n "$lt_cv_sys_max_cmd_len"; then | ||
2079 | 2486 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
2080 | 2487 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
2081 | 2488 | else | ||
2082 | 2489 | # Make teststring a little bigger before we do anything with it. | ||
2083 | 2490 | # a 1K string should be a reasonable start. | ||
2084 | 2491 | for i in 1 2 3 4 5 6 7 8 ; do | ||
2085 | 2492 | teststring=$teststring$teststring | ||
2086 | 2493 | done | ||
2087 | 2494 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | ||
2088 | 2495 | # If test is not a shell built-in, we'll probably end up computing a | ||
2089 | 2496 | # maximum length that is only half of the actual maximum length, but | ||
2090 | 2497 | # we can't tell. | ||
2091 | 2498 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | ||
2092 | 2499 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | ||
2093 | 2500 | test $i != 17 # 1/2 MB should be enough | ||
2094 | 2501 | do | ||
2095 | 2502 | i=`expr $i + 1` | ||
2096 | 2503 | teststring=$teststring$teststring | ||
2097 | 2504 | done | ||
2098 | 2505 | # Only check the string length outside the loop. | ||
2099 | 2506 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | ||
2100 | 2507 | teststring= | ||
2101 | 2508 | # Add a significant safety factor because C++ compilers can tack on | ||
2102 | 2509 | # massive amounts of additional arguments before passing them to the | ||
2103 | 2510 | # linker. It appears as though 1/2 is a usable value. | ||
2104 | 2511 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | ||
2105 | 2512 | fi | ||
2106 | 2513 | ;; | ||
2107 | 2514 | esac | ||
2108 | 2515 | ]) | ||
2109 | 2516 | if test -n $lt_cv_sys_max_cmd_len ; then | ||
2110 | 2517 | AC_MSG_RESULT($lt_cv_sys_max_cmd_len) | ||
2111 | 2518 | else | ||
2112 | 2519 | AC_MSG_RESULT(none) | ||
2113 | 2520 | fi | ||
2114 | 2521 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
2115 | 2522 | _LT_DECL([], [max_cmd_len], [0], | ||
2116 | 2523 | [What is the maximum length of a command?]) | ||
2117 | 2524 | ])# LT_CMD_MAX_LEN | ||
2118 | 2525 | |||
2119 | 2526 | # Old name: | ||
2120 | 2527 | AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) | ||
2121 | 2528 | dnl aclocal-1.4 backwards compatibility: | ||
2122 | 2529 | dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) | ||
2123 | 2530 | |||
2124 | 2531 | |||
2125 | 2532 | # _LT_HEADER_DLFCN | ||
2126 | 2533 | # ---------------- | ||
2127 | 2534 | m4_defun([_LT_HEADER_DLFCN], | ||
2128 | 2535 | [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl | ||
2129 | 2536 | ])# _LT_HEADER_DLFCN | ||
2130 | 2537 | |||
2131 | 2538 | |||
2132 | 2539 | # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, | ||
2133 | 2540 | # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) | ||
2134 | 2541 | # ---------------------------------------------------------------- | ||
2135 | 2542 | m4_defun([_LT_TRY_DLOPEN_SELF], | ||
2136 | 2543 | [m4_require([_LT_HEADER_DLFCN])dnl | ||
2137 | 2544 | if test "$cross_compiling" = yes; then : | ||
2138 | 2545 | [$4] | ||
2139 | 2546 | else | ||
2140 | 2547 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
2141 | 2548 | lt_status=$lt_dlunknown | ||
2142 | 2549 | cat > conftest.$ac_ext <<_LT_EOF | ||
2143 | 2550 | [#line $LINENO "configure" | ||
2144 | 2551 | #include "confdefs.h" | ||
2145 | 2552 | |||
2146 | 2553 | #if HAVE_DLFCN_H | ||
2147 | 2554 | #include <dlfcn.h> | ||
2148 | 2555 | #endif | ||
2149 | 2556 | |||
2150 | 2557 | #include <stdio.h> | ||
2151 | 2558 | |||
2152 | 2559 | #ifdef RTLD_GLOBAL | ||
2153 | 2560 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
2154 | 2561 | #else | ||
2155 | 2562 | # ifdef DL_GLOBAL | ||
2156 | 2563 | # define LT_DLGLOBAL DL_GLOBAL | ||
2157 | 2564 | # else | ||
2158 | 2565 | # define LT_DLGLOBAL 0 | ||
2159 | 2566 | # endif | ||
2160 | 2567 | #endif | ||
2161 | 2568 | |||
2162 | 2569 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
2163 | 2570 | find out it does not work in some platform. */ | ||
2164 | 2571 | #ifndef LT_DLLAZY_OR_NOW | ||
2165 | 2572 | # ifdef RTLD_LAZY | ||
2166 | 2573 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
2167 | 2574 | # else | ||
2168 | 2575 | # ifdef DL_LAZY | ||
2169 | 2576 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
2170 | 2577 | # else | ||
2171 | 2578 | # ifdef RTLD_NOW | ||
2172 | 2579 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
2173 | 2580 | # else | ||
2174 | 2581 | # ifdef DL_NOW | ||
2175 | 2582 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
2176 | 2583 | # else | ||
2177 | 2584 | # define LT_DLLAZY_OR_NOW 0 | ||
2178 | 2585 | # endif | ||
2179 | 2586 | # endif | ||
2180 | 2587 | # endif | ||
2181 | 2588 | # endif | ||
2182 | 2589 | #endif | ||
2183 | 2590 | |||
2184 | 2591 | /* When -fvisbility=hidden is used, assume the code has been annotated | ||
2185 | 2592 | correspondingly for the symbols needed. */ | ||
2186 | 2593 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
2187 | 2594 | int fnord () __attribute__((visibility("default"))); | ||
2188 | 2595 | #endif | ||
2189 | 2596 | |||
2190 | 2597 | int fnord () { return 42; } | ||
2191 | 2598 | int main () | ||
2192 | 2599 | { | ||
2193 | 2600 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
2194 | 2601 | int status = $lt_dlunknown; | ||
2195 | 2602 | |||
2196 | 2603 | if (self) | ||
2197 | 2604 | { | ||
2198 | 2605 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
2199 | 2606 | else | ||
2200 | 2607 | { | ||
2201 | 2608 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
2202 | 2609 | else puts (dlerror ()); | ||
2203 | 2610 | } | ||
2204 | 2611 | /* dlclose (self); */ | ||
2205 | 2612 | } | ||
2206 | 2613 | else | ||
2207 | 2614 | puts (dlerror ()); | ||
2208 | 2615 | |||
2209 | 2616 | return status; | ||
2210 | 2617 | }] | ||
2211 | 2618 | _LT_EOF | ||
2212 | 2619 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then | ||
2213 | 2620 | (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null | ||
2214 | 2621 | lt_status=$? | ||
2215 | 2622 | case x$lt_status in | ||
2216 | 2623 | x$lt_dlno_uscore) $1 ;; | ||
2217 | 2624 | x$lt_dlneed_uscore) $2 ;; | ||
2218 | 2625 | x$lt_dlunknown|x*) $3 ;; | ||
2219 | 2626 | esac | ||
2220 | 2627 | else : | ||
2221 | 2628 | # compilation failed | ||
2222 | 2629 | $3 | ||
2223 | 2630 | fi | ||
2224 | 2631 | fi | ||
2225 | 2632 | rm -fr conftest* | ||
2226 | 2633 | ])# _LT_TRY_DLOPEN_SELF | ||
2227 | 2634 | |||
2228 | 2635 | |||
2229 | 2636 | # LT_SYS_DLOPEN_SELF | ||
2230 | 2637 | # ------------------ | ||
2231 | 2638 | AC_DEFUN([LT_SYS_DLOPEN_SELF], | ||
2232 | 2639 | [m4_require([_LT_HEADER_DLFCN])dnl | ||
2233 | 2640 | if test "x$enable_dlopen" != xyes; then | ||
2234 | 2641 | enable_dlopen=unknown | ||
2235 | 2642 | enable_dlopen_self=unknown | ||
2236 | 2643 | enable_dlopen_self_static=unknown | ||
2237 | 2644 | else | ||
2238 | 2645 | lt_cv_dlopen=no | ||
2239 | 2646 | lt_cv_dlopen_libs= | ||
2240 | 2647 | |||
2241 | 2648 | case $host_os in | ||
2242 | 2649 | beos*) | ||
2243 | 2650 | lt_cv_dlopen="load_add_on" | ||
2244 | 2651 | lt_cv_dlopen_libs= | ||
2245 | 2652 | lt_cv_dlopen_self=yes | ||
2246 | 2653 | ;; | ||
2247 | 2654 | |||
2248 | 2655 | mingw* | pw32* | cegcc*) | ||
2249 | 2656 | lt_cv_dlopen="LoadLibrary" | ||
2250 | 2657 | lt_cv_dlopen_libs= | ||
2251 | 2658 | ;; | ||
2252 | 2659 | |||
2253 | 2660 | cygwin*) | ||
2254 | 2661 | lt_cv_dlopen="dlopen" | ||
2255 | 2662 | lt_cv_dlopen_libs= | ||
2256 | 2663 | ;; | ||
2257 | 2664 | |||
2258 | 2665 | darwin*) | ||
2259 | 2666 | # if libdl is installed we need to link against it | ||
2260 | 2667 | AC_CHECK_LIB([dl], [dlopen], | ||
2261 | 2668 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ | ||
2262 | 2669 | lt_cv_dlopen="dyld" | ||
2263 | 2670 | lt_cv_dlopen_libs= | ||
2264 | 2671 | lt_cv_dlopen_self=yes | ||
2265 | 2672 | ]) | ||
2266 | 2673 | ;; | ||
2267 | 2674 | |||
2268 | 2675 | *) | ||
2269 | 2676 | AC_CHECK_FUNC([shl_load], | ||
2270 | 2677 | [lt_cv_dlopen="shl_load"], | ||
2271 | 2678 | [AC_CHECK_LIB([dld], [shl_load], | ||
2272 | 2679 | [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], | ||
2273 | 2680 | [AC_CHECK_FUNC([dlopen], | ||
2274 | 2681 | [lt_cv_dlopen="dlopen"], | ||
2275 | 2682 | [AC_CHECK_LIB([dl], [dlopen], | ||
2276 | 2683 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], | ||
2277 | 2684 | [AC_CHECK_LIB([svld], [dlopen], | ||
2278 | 2685 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], | ||
2279 | 2686 | [AC_CHECK_LIB([dld], [dld_link], | ||
2280 | 2687 | [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) | ||
2281 | 2688 | ]) | ||
2282 | 2689 | ]) | ||
2283 | 2690 | ]) | ||
2284 | 2691 | ]) | ||
2285 | 2692 | ]) | ||
2286 | 2693 | ;; | ||
2287 | 2694 | esac | ||
2288 | 2695 | |||
2289 | 2696 | if test "x$lt_cv_dlopen" != xno; then | ||
2290 | 2697 | enable_dlopen=yes | ||
2291 | 2698 | else | ||
2292 | 2699 | enable_dlopen=no | ||
2293 | 2700 | fi | ||
2294 | 2701 | |||
2295 | 2702 | case $lt_cv_dlopen in | ||
2296 | 2703 | dlopen) | ||
2297 | 2704 | save_CPPFLAGS="$CPPFLAGS" | ||
2298 | 2705 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
2299 | 2706 | |||
2300 | 2707 | save_LDFLAGS="$LDFLAGS" | ||
2301 | 2708 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
2302 | 2709 | |||
2303 | 2710 | save_LIBS="$LIBS" | ||
2304 | 2711 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
2305 | 2712 | |||
2306 | 2713 | AC_CACHE_CHECK([whether a program can dlopen itself], | ||
2307 | 2714 | lt_cv_dlopen_self, [dnl | ||
2308 | 2715 | _LT_TRY_DLOPEN_SELF( | ||
2309 | 2716 | lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, | ||
2310 | 2717 | lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) | ||
2311 | 2718 | ]) | ||
2312 | 2719 | |||
2313 | 2720 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
2314 | 2721 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | ||
2315 | 2722 | AC_CACHE_CHECK([whether a statically linked program can dlopen itself], | ||
2316 | 2723 | lt_cv_dlopen_self_static, [dnl | ||
2317 | 2724 | _LT_TRY_DLOPEN_SELF( | ||
2318 | 2725 | lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, | ||
2319 | 2726 | lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) | ||
2320 | 2727 | ]) | ||
2321 | 2728 | fi | ||
2322 | 2729 | |||
2323 | 2730 | CPPFLAGS="$save_CPPFLAGS" | ||
2324 | 2731 | LDFLAGS="$save_LDFLAGS" | ||
2325 | 2732 | LIBS="$save_LIBS" | ||
2326 | 2733 | ;; | ||
2327 | 2734 | esac | ||
2328 | 2735 | |||
2329 | 2736 | case $lt_cv_dlopen_self in | ||
2330 | 2737 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
2331 | 2738 | *) enable_dlopen_self=unknown ;; | ||
2332 | 2739 | esac | ||
2333 | 2740 | |||
2334 | 2741 | case $lt_cv_dlopen_self_static in | ||
2335 | 2742 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
2336 | 2743 | *) enable_dlopen_self_static=unknown ;; | ||
2337 | 2744 | esac | ||
2338 | 2745 | fi | ||
2339 | 2746 | _LT_DECL([dlopen_support], [enable_dlopen], [0], | ||
2340 | 2747 | [Whether dlopen is supported]) | ||
2341 | 2748 | _LT_DECL([dlopen_self], [enable_dlopen_self], [0], | ||
2342 | 2749 | [Whether dlopen of programs is supported]) | ||
2343 | 2750 | _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], | ||
2344 | 2751 | [Whether dlopen of statically linked programs is supported]) | ||
2345 | 2752 | ])# LT_SYS_DLOPEN_SELF | ||
2346 | 2753 | |||
2347 | 2754 | # Old name: | ||
2348 | 2755 | AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) | ||
2349 | 2756 | dnl aclocal-1.4 backwards compatibility: | ||
2350 | 2757 | dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) | ||
2351 | 2758 | |||
2352 | 2759 | |||
2353 | 2760 | # _LT_COMPILER_C_O([TAGNAME]) | ||
2354 | 2761 | # --------------------------- | ||
2355 | 2762 | # Check to see if options -c and -o are simultaneously supported by compiler. | ||
2356 | 2763 | # This macro does not hard code the compiler like AC_PROG_CC_C_O. | ||
2357 | 2764 | m4_defun([_LT_COMPILER_C_O], | ||
2358 | 2765 | [m4_require([_LT_DECL_SED])dnl | ||
2359 | 2766 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
2360 | 2767 | m4_require([_LT_TAG_COMPILER])dnl | ||
2361 | 2768 | AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], | ||
2362 | 2769 | [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], | ||
2363 | 2770 | [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no | ||
2364 | 2771 | $RM -r conftest 2>/dev/null | ||
2365 | 2772 | mkdir conftest | ||
2366 | 2773 | cd conftest | ||
2367 | 2774 | mkdir out | ||
2368 | 2775 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
2369 | 2776 | |||
2370 | 2777 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
2371 | 2778 | # Insert the option either (1) after the last *FLAGS variable, or | ||
2372 | 2779 | # (2) before a word containing "conftest.", or (3) at the end. | ||
2373 | 2780 | # Note that $ac_compile itself does not contain backslashes and begins | ||
2374 | 2781 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
2375 | 2782 | lt_compile=`echo "$ac_compile" | $SED \ | ||
2376 | 2783 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
2377 | 2784 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | ||
2378 | 2785 | -e 's:$: $lt_compiler_flag:'` | ||
2379 | 2786 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | ||
2380 | 2787 | (eval "$lt_compile" 2>out/conftest.err) | ||
2381 | 2788 | ac_status=$? | ||
2382 | 2789 | cat out/conftest.err >&AS_MESSAGE_LOG_FD | ||
2383 | 2790 | echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | ||
2384 | 2791 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
2385 | 2792 | then | ||
2386 | 2793 | # The compiler can only warn and ignore the option if not recognized | ||
2387 | 2794 | # So say no if there are warnings | ||
2388 | 2795 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | ||
2389 | 2796 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
2390 | 2797 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
2391 | 2798 | _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | ||
2392 | 2799 | fi | ||
2393 | 2800 | fi | ||
2394 | 2801 | chmod u+w . 2>&AS_MESSAGE_LOG_FD | ||
2395 | 2802 | $RM conftest* | ||
2396 | 2803 | # SGI C++ compiler will create directory out/ii_files/ for | ||
2397 | 2804 | # template instantiation | ||
2398 | 2805 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
2399 | 2806 | $RM out/* && rmdir out | ||
2400 | 2807 | cd .. | ||
2401 | 2808 | $RM -r conftest | ||
2402 | 2809 | $RM conftest* | ||
2403 | 2810 | ]) | ||
2404 | 2811 | _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], | ||
2405 | 2812 | [Does compiler simultaneously support -c and -o options?]) | ||
2406 | 2813 | ])# _LT_COMPILER_C_O | ||
2407 | 2814 | |||
2408 | 2815 | |||
2409 | 2816 | # _LT_COMPILER_FILE_LOCKS([TAGNAME]) | ||
2410 | 2817 | # ---------------------------------- | ||
2411 | 2818 | # Check to see if we can do hard links to lock some files if needed | ||
2412 | 2819 | m4_defun([_LT_COMPILER_FILE_LOCKS], | ||
2413 | 2820 | [m4_require([_LT_ENABLE_LOCK])dnl | ||
2414 | 2821 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
2415 | 2822 | _LT_COMPILER_C_O([$1]) | ||
2416 | 2823 | |||
2417 | 2824 | hard_links="nottested" | ||
2418 | 2825 | if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then | ||
2419 | 2826 | # do not overwrite the value of need_locks provided by the user | ||
2420 | 2827 | AC_MSG_CHECKING([if we can lock with hard links]) | ||
2421 | 2828 | hard_links=yes | ||
2422 | 2829 | $RM conftest* | ||
2423 | 2830 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
2424 | 2831 | touch conftest.a | ||
2425 | 2832 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
2426 | 2833 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
2427 | 2834 | AC_MSG_RESULT([$hard_links]) | ||
2428 | 2835 | if test "$hard_links" = no; then | ||
2429 | 2836 | AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) | ||
2430 | 2837 | need_locks=warn | ||
2431 | 2838 | fi | ||
2432 | 2839 | else | ||
2433 | 2840 | need_locks=no | ||
2434 | 2841 | fi | ||
2435 | 2842 | _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) | ||
2436 | 2843 | ])# _LT_COMPILER_FILE_LOCKS | ||
2437 | 2844 | |||
2438 | 2845 | |||
2439 | 2846 | # _LT_CHECK_OBJDIR | ||
2440 | 2847 | # ---------------- | ||
2441 | 2848 | m4_defun([_LT_CHECK_OBJDIR], | ||
2442 | 2849 | [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], | ||
2443 | 2850 | [rm -f .libs 2>/dev/null | ||
2444 | 2851 | mkdir .libs 2>/dev/null | ||
2445 | 2852 | if test -d .libs; then | ||
2446 | 2853 | lt_cv_objdir=.libs | ||
2447 | 2854 | else | ||
2448 | 2855 | # MS-DOS does not allow filenames that begin with a dot. | ||
2449 | 2856 | lt_cv_objdir=_libs | ||
2450 | 2857 | fi | ||
2451 | 2858 | rmdir .libs 2>/dev/null]) | ||
2452 | 2859 | objdir=$lt_cv_objdir | ||
2453 | 2860 | _LT_DECL([], [objdir], [0], | ||
2454 | 2861 | [The name of the directory that contains temporary libtool files])dnl | ||
2455 | 2862 | m4_pattern_allow([LT_OBJDIR])dnl | ||
2456 | 2863 | AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", | ||
2457 | 2864 | [Define to the sub-directory in which libtool stores uninstalled libraries.]) | ||
2458 | 2865 | ])# _LT_CHECK_OBJDIR | ||
2459 | 2866 | |||
2460 | 2867 | |||
2461 | 2868 | # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) | ||
2462 | 2869 | # -------------------------------------- | ||
2463 | 2870 | # Check hardcoding attributes. | ||
2464 | 2871 | m4_defun([_LT_LINKER_HARDCODE_LIBPATH], | ||
2465 | 2872 | [AC_MSG_CHECKING([how to hardcode library paths into programs]) | ||
2466 | 2873 | _LT_TAGVAR(hardcode_action, $1)= | ||
2467 | 2874 | if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || | ||
2468 | 2875 | test -n "$_LT_TAGVAR(runpath_var, $1)" || | ||
2469 | 2876 | test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then | ||
2470 | 2877 | |||
2471 | 2878 | # We can hardcode non-existent directories. | ||
2472 | 2879 | if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && | ||
2473 | 2880 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
2474 | 2881 | # have to relink, otherwise we might link with an installed library | ||
2475 | 2882 | # when we should be linking with a yet-to-be-installed one | ||
2476 | 2883 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && | ||
2477 | 2884 | test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then | ||
2478 | 2885 | # Linking always hardcodes the temporary library directory. | ||
2479 | 2886 | _LT_TAGVAR(hardcode_action, $1)=relink | ||
2480 | 2887 | else | ||
2481 | 2888 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
2482 | 2889 | _LT_TAGVAR(hardcode_action, $1)=immediate | ||
2483 | 2890 | fi | ||
2484 | 2891 | else | ||
2485 | 2892 | # We cannot hardcode anything, or else we can only hardcode existing | ||
2486 | 2893 | # directories. | ||
2487 | 2894 | _LT_TAGVAR(hardcode_action, $1)=unsupported | ||
2488 | 2895 | fi | ||
2489 | 2896 | AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) | ||
2490 | 2897 | |||
2491 | 2898 | if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || | ||
2492 | 2899 | test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then | ||
2493 | 2900 | # Fast installation is not supported | ||
2494 | 2901 | enable_fast_install=no | ||
2495 | 2902 | elif test "$shlibpath_overrides_runpath" = yes || | ||
2496 | 2903 | test "$enable_shared" = no; then | ||
2497 | 2904 | # Fast installation is not necessary | ||
2498 | 2905 | enable_fast_install=needless | ||
2499 | 2906 | fi | ||
2500 | 2907 | _LT_TAGDECL([], [hardcode_action], [0], | ||
2501 | 2908 | [How to hardcode a shared library path into an executable]) | ||
2502 | 2909 | ])# _LT_LINKER_HARDCODE_LIBPATH | ||
2503 | 2910 | |||
2504 | 2911 | |||
2505 | 2912 | # _LT_CMD_STRIPLIB | ||
2506 | 2913 | # ---------------- | ||
2507 | 2914 | m4_defun([_LT_CMD_STRIPLIB], | ||
2508 | 2915 | [m4_require([_LT_DECL_EGREP]) | ||
2509 | 2916 | striplib= | ||
2510 | 2917 | old_striplib= | ||
2511 | 2918 | AC_MSG_CHECKING([whether stripping libraries is possible]) | ||
2512 | 2919 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | ||
2513 | 2920 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
2514 | 2921 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
2515 | 2922 | AC_MSG_RESULT([yes]) | ||
2516 | 2923 | else | ||
2517 | 2924 | # FIXME - insert some real tests, host_os isn't really good enough | ||
2518 | 2925 | case $host_os in | ||
2519 | 2926 | darwin*) | ||
2520 | 2927 | if test -n "$STRIP" ; then | ||
2521 | 2928 | striplib="$STRIP -x" | ||
2522 | 2929 | old_striplib="$STRIP -S" | ||
2523 | 2930 | AC_MSG_RESULT([yes]) | ||
2524 | 2931 | else | ||
2525 | 2932 | AC_MSG_RESULT([no]) | ||
2526 | 2933 | fi | ||
2527 | 2934 | ;; | ||
2528 | 2935 | *) | ||
2529 | 2936 | AC_MSG_RESULT([no]) | ||
2530 | 2937 | ;; | ||
2531 | 2938 | esac | ||
2532 | 2939 | fi | ||
2533 | 2940 | _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) | ||
2534 | 2941 | _LT_DECL([], [striplib], [1]) | ||
2535 | 2942 | ])# _LT_CMD_STRIPLIB | ||
2536 | 2943 | |||
2537 | 2944 | |||
2538 | 2945 | # _LT_SYS_DYNAMIC_LINKER([TAG]) | ||
2539 | 2946 | # ----------------------------- | ||
2540 | 2947 | # PORTME Fill in your ld.so characteristics | ||
2541 | 2948 | m4_defun([_LT_SYS_DYNAMIC_LINKER], | ||
2542 | 2949 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
2543 | 2950 | m4_require([_LT_DECL_EGREP])dnl | ||
2544 | 2951 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
2545 | 2952 | m4_require([_LT_DECL_OBJDUMP])dnl | ||
2546 | 2953 | m4_require([_LT_DECL_SED])dnl | ||
2547 | 2954 | m4_require([_LT_CHECK_SHELL_FEATURES])dnl | ||
2548 | 2955 | AC_MSG_CHECKING([dynamic linker characteristics]) | ||
2549 | 2956 | m4_if([$1], | ||
2550 | 2957 | [], [ | ||
2551 | 2958 | if test "$GCC" = yes; then | ||
2552 | 2959 | case $host_os in | ||
2553 | 2960 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | ||
2554 | 2961 | *) lt_awk_arg="/^libraries:/" ;; | ||
2555 | 2962 | esac | ||
2556 | 2963 | case $host_os in | ||
2557 | 2964 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; | ||
2558 | 2965 | *) lt_sed_strip_eq="s,=/,/,g" ;; | ||
2559 | 2966 | esac | ||
2560 | 2967 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | ||
2561 | 2968 | case $lt_search_path_spec in | ||
2562 | 2969 | *\;*) | ||
2563 | 2970 | # if the path contains ";" then we assume it to be the separator | ||
2564 | 2971 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
2565 | 2972 | # assumed that no part of a normal pathname contains ";" but that should | ||
2566 | 2973 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
2567 | 2974 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | ||
2568 | 2975 | ;; | ||
2569 | 2976 | *) | ||
2570 | 2977 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | ||
2571 | 2978 | ;; | ||
2572 | 2979 | esac | ||
2573 | 2980 | # Ok, now we have the path, separated by spaces, we can step through it | ||
2574 | 2981 | # and add multilib dir if necessary. | ||
2575 | 2982 | lt_tmp_lt_search_path_spec= | ||
2576 | 2983 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | ||
2577 | 2984 | for lt_sys_path in $lt_search_path_spec; do | ||
2578 | 2985 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | ||
2579 | 2986 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | ||
2580 | 2987 | else | ||
2581 | 2988 | test -d "$lt_sys_path" && \ | ||
2582 | 2989 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | ||
2583 | 2990 | fi | ||
2584 | 2991 | done | ||
2585 | 2992 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | ||
2586 | 2993 | BEGIN {RS=" "; FS="/|\n";} { | ||
2587 | 2994 | lt_foo=""; | ||
2588 | 2995 | lt_count=0; | ||
2589 | 2996 | for (lt_i = NF; lt_i > 0; lt_i--) { | ||
2590 | 2997 | if ($lt_i != "" && $lt_i != ".") { | ||
2591 | 2998 | if ($lt_i == "..") { | ||
2592 | 2999 | lt_count++; | ||
2593 | 3000 | } else { | ||
2594 | 3001 | if (lt_count == 0) { | ||
2595 | 3002 | lt_foo="/" $lt_i lt_foo; | ||
2596 | 3003 | } else { | ||
2597 | 3004 | lt_count--; | ||
2598 | 3005 | } | ||
2599 | 3006 | } | ||
2600 | 3007 | } | ||
2601 | 3008 | } | ||
2602 | 3009 | if (lt_foo != "") { lt_freq[[lt_foo]]++; } | ||
2603 | 3010 | if (lt_freq[[lt_foo]] == 1) { print lt_foo; } | ||
2604 | 3011 | }'` | ||
2605 | 3012 | # AWK program above erroneously prepends '/' to C:/dos/paths | ||
2606 | 3013 | # for these hosts. | ||
2607 | 3014 | case $host_os in | ||
2608 | 3015 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | ||
2609 | 3016 | $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; | ||
2610 | 3017 | esac | ||
2611 | 3018 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | ||
2612 | 3019 | else | ||
2613 | 3020 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
2614 | 3021 | fi]) | ||
2615 | 3022 | library_names_spec= | ||
2616 | 3023 | libname_spec='lib$name' | ||
2617 | 3024 | soname_spec= | ||
2618 | 3025 | shrext_cmds=".so" | ||
2619 | 3026 | postinstall_cmds= | ||
2620 | 3027 | postuninstall_cmds= | ||
2621 | 3028 | finish_cmds= | ||
2622 | 3029 | finish_eval= | ||
2623 | 3030 | shlibpath_var= | ||
2624 | 3031 | shlibpath_overrides_runpath=unknown | ||
2625 | 3032 | version_type=none | ||
2626 | 3033 | dynamic_linker="$host_os ld.so" | ||
2627 | 3034 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
2628 | 3035 | need_lib_prefix=unknown | ||
2629 | 3036 | hardcode_into_libs=no | ||
2630 | 3037 | |||
2631 | 3038 | # when you set need_version to no, make sure it does not cause -set_version | ||
2632 | 3039 | # flags to be left without arguments | ||
2633 | 3040 | need_version=unknown | ||
2634 | 3041 | |||
2635 | 3042 | case $host_os in | ||
2636 | 3043 | aix3*) | ||
2637 | 3044 | version_type=linux | ||
2638 | 3045 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
2639 | 3046 | shlibpath_var=LIBPATH | ||
2640 | 3047 | |||
2641 | 3048 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
2642 | 3049 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2643 | 3050 | ;; | ||
2644 | 3051 | |||
2645 | 3052 | aix[[4-9]]*) | ||
2646 | 3053 | version_type=linux | ||
2647 | 3054 | need_lib_prefix=no | ||
2648 | 3055 | need_version=no | ||
2649 | 3056 | hardcode_into_libs=yes | ||
2650 | 3057 | if test "$host_cpu" = ia64; then | ||
2651 | 3058 | # AIX 5 supports IA64 | ||
2652 | 3059 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
2653 | 3060 | shlibpath_var=LD_LIBRARY_PATH | ||
2654 | 3061 | else | ||
2655 | 3062 | # With GCC up to 2.95.x, collect2 would create an import file | ||
2656 | 3063 | # for dependence libraries. The import file would start with | ||
2657 | 3064 | # the line `#! .'. This would cause the generated library to | ||
2658 | 3065 | # depend on `.', always an invalid library. This was fixed in | ||
2659 | 3066 | # development snapshots of GCC prior to 3.0. | ||
2660 | 3067 | case $host_os in | ||
2661 | 3068 | aix4 | aix4.[[01]] | aix4.[[01]].*) | ||
2662 | 3069 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
2663 | 3070 | echo ' yes ' | ||
2664 | 3071 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | ||
2665 | 3072 | : | ||
2666 | 3073 | else | ||
2667 | 3074 | can_build_shared=no | ||
2668 | 3075 | fi | ||
2669 | 3076 | ;; | ||
2670 | 3077 | esac | ||
2671 | 3078 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
2672 | 3079 | # soname into executable. Probably we can add versioning support to | ||
2673 | 3080 | # collect2, so additional links can be useful in future. | ||
2674 | 3081 | if test "$aix_use_runtimelinking" = yes; then | ||
2675 | 3082 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
2676 | 3083 | # instead of lib<name>.a to let people know that these are not | ||
2677 | 3084 | # typical AIX shared libraries. | ||
2678 | 3085 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2679 | 3086 | else | ||
2680 | 3087 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
2681 | 3088 | # and later when we are not doing run time linking. | ||
2682 | 3089 | library_names_spec='${libname}${release}.a $libname.a' | ||
2683 | 3090 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2684 | 3091 | fi | ||
2685 | 3092 | shlibpath_var=LIBPATH | ||
2686 | 3093 | fi | ||
2687 | 3094 | ;; | ||
2688 | 3095 | |||
2689 | 3096 | amigaos*) | ||
2690 | 3097 | case $host_cpu in | ||
2691 | 3098 | powerpc) | ||
2692 | 3099 | # Since July 2007 AmigaOS4 officially supports .so libraries. | ||
2693 | 3100 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | ||
2694 | 3101 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2695 | 3102 | ;; | ||
2696 | 3103 | m68k) | ||
2697 | 3104 | library_names_spec='$libname.ixlibrary $libname.a' | ||
2698 | 3105 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
2699 | 3106 | 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' | ||
2700 | 3107 | ;; | ||
2701 | 3108 | esac | ||
2702 | 3109 | ;; | ||
2703 | 3110 | |||
2704 | 3111 | beos*) | ||
2705 | 3112 | library_names_spec='${libname}${shared_ext}' | ||
2706 | 3113 | dynamic_linker="$host_os ld.so" | ||
2707 | 3114 | shlibpath_var=LIBRARY_PATH | ||
2708 | 3115 | ;; | ||
2709 | 3116 | |||
2710 | 3117 | bsdi[[45]]*) | ||
2711 | 3118 | version_type=linux | ||
2712 | 3119 | need_version=no | ||
2713 | 3120 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2714 | 3121 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2715 | 3122 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
2716 | 3123 | shlibpath_var=LD_LIBRARY_PATH | ||
2717 | 3124 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
2718 | 3125 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
2719 | 3126 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
2720 | 3127 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
2721 | 3128 | # libtool to hard-code these into programs | ||
2722 | 3129 | ;; | ||
2723 | 3130 | |||
2724 | 3131 | cygwin* | mingw* | pw32* | cegcc*) | ||
2725 | 3132 | version_type=windows | ||
2726 | 3133 | shrext_cmds=".dll" | ||
2727 | 3134 | need_version=no | ||
2728 | 3135 | need_lib_prefix=no | ||
2729 | 3136 | |||
2730 | 3137 | case $GCC,$cc_basename in | ||
2731 | 3138 | yes,*) | ||
2732 | 3139 | # gcc | ||
2733 | 3140 | library_names_spec='$libname.dll.a' | ||
2734 | 3141 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
2735 | 3142 | postinstall_cmds='base_file=`basename \${file}`~ | ||
2736 | 3143 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
2737 | 3144 | dldir=$destdir/`dirname \$dlpath`~ | ||
2738 | 3145 | test -d \$dldir || mkdir -p \$dldir~ | ||
2739 | 3146 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
2740 | 3147 | chmod a+x \$dldir/$dlname~ | ||
2741 | 3148 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | ||
2742 | 3149 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | ||
2743 | 3150 | fi' | ||
2744 | 3151 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
2745 | 3152 | dlpath=$dir/\$dldll~ | ||
2746 | 3153 | $RM \$dlpath' | ||
2747 | 3154 | shlibpath_overrides_runpath=yes | ||
2748 | 3155 | |||
2749 | 3156 | case $host_os in | ||
2750 | 3157 | cygwin*) | ||
2751 | 3158 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
2752 | 3159 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
2753 | 3160 | m4_if([$1], [],[ | ||
2754 | 3161 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) | ||
2755 | 3162 | ;; | ||
2756 | 3163 | mingw* | cegcc*) | ||
2757 | 3164 | # MinGW DLLs use traditional 'lib' prefix | ||
2758 | 3165 | soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
2759 | 3166 | ;; | ||
2760 | 3167 | pw32*) | ||
2761 | 3168 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
2762 | 3169 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
2763 | 3170 | ;; | ||
2764 | 3171 | esac | ||
2765 | 3172 | dynamic_linker='Win32 ld.exe' | ||
2766 | 3173 | ;; | ||
2767 | 3174 | |||
2768 | 3175 | *,cl*) | ||
2769 | 3176 | # Native MSVC | ||
2770 | 3177 | libname_spec='$name' | ||
2771 | 3178 | soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
2772 | 3179 | library_names_spec='${libname}.dll.lib' | ||
2773 | 3180 | |||
2774 | 3181 | case $build_os in | ||
2775 | 3182 | mingw*) | ||
2776 | 3183 | sys_lib_search_path_spec= | ||
2777 | 3184 | lt_save_ifs=$IFS | ||
2778 | 3185 | IFS=';' | ||
2779 | 3186 | for lt_path in $LIB | ||
2780 | 3187 | do | ||
2781 | 3188 | IFS=$lt_save_ifs | ||
2782 | 3189 | # Let DOS variable expansion print the short 8.3 style file name. | ||
2783 | 3190 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | ||
2784 | 3191 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | ||
2785 | 3192 | done | ||
2786 | 3193 | IFS=$lt_save_ifs | ||
2787 | 3194 | # Convert to MSYS style. | ||
2788 | 3195 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` | ||
2789 | 3196 | ;; | ||
2790 | 3197 | cygwin*) | ||
2791 | 3198 | # Convert to unix form, then to dos form, then back to unix form | ||
2792 | 3199 | # but this time dos style (no spaces!) so that the unix form looks | ||
2793 | 3200 | # like /cygdrive/c/PROGRA~1:/cygdr... | ||
2794 | 3201 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | ||
2795 | 3202 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | ||
2796 | 3203 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
2797 | 3204 | ;; | ||
2798 | 3205 | *) | ||
2799 | 3206 | sys_lib_search_path_spec="$LIB" | ||
2800 | 3207 | if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then | ||
2801 | 3208 | # It is most probably a Windows format PATH. | ||
2802 | 3209 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
2803 | 3210 | else | ||
2804 | 3211 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
2805 | 3212 | fi | ||
2806 | 3213 | # FIXME: find the short name or the path components, as spaces are | ||
2807 | 3214 | # common. (e.g. "Program Files" -> "PROGRA~1") | ||
2808 | 3215 | ;; | ||
2809 | 3216 | esac | ||
2810 | 3217 | |||
2811 | 3218 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
2812 | 3219 | postinstall_cmds='base_file=`basename \${file}`~ | ||
2813 | 3220 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
2814 | 3221 | dldir=$destdir/`dirname \$dlpath`~ | ||
2815 | 3222 | test -d \$dldir || mkdir -p \$dldir~ | ||
2816 | 3223 | $install_prog $dir/$dlname \$dldir/$dlname' | ||
2817 | 3224 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
2818 | 3225 | dlpath=$dir/\$dldll~ | ||
2819 | 3226 | $RM \$dlpath' | ||
2820 | 3227 | shlibpath_overrides_runpath=yes | ||
2821 | 3228 | dynamic_linker='Win32 link.exe' | ||
2822 | 3229 | ;; | ||
2823 | 3230 | |||
2824 | 3231 | *) | ||
2825 | 3232 | # Assume MSVC wrapper | ||
2826 | 3233 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
2827 | 3234 | dynamic_linker='Win32 ld.exe' | ||
2828 | 3235 | ;; | ||
2829 | 3236 | esac | ||
2830 | 3237 | # FIXME: first we should search . and the directory the executable is in | ||
2831 | 3238 | shlibpath_var=PATH | ||
2832 | 3239 | ;; | ||
2833 | 3240 | |||
2834 | 3241 | darwin* | rhapsody*) | ||
2835 | 3242 | dynamic_linker="$host_os dyld" | ||
2836 | 3243 | version_type=darwin | ||
2837 | 3244 | need_lib_prefix=no | ||
2838 | 3245 | need_version=no | ||
2839 | 3246 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
2840 | 3247 | soname_spec='${libname}${release}${major}$shared_ext' | ||
2841 | 3248 | shlibpath_overrides_runpath=yes | ||
2842 | 3249 | shlibpath_var=DYLD_LIBRARY_PATH | ||
2843 | 3250 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
2844 | 3251 | m4_if([$1], [],[ | ||
2845 | 3252 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) | ||
2846 | 3253 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
2847 | 3254 | ;; | ||
2848 | 3255 | |||
2849 | 3256 | dgux*) | ||
2850 | 3257 | version_type=linux | ||
2851 | 3258 | need_lib_prefix=no | ||
2852 | 3259 | need_version=no | ||
2853 | 3260 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
2854 | 3261 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2855 | 3262 | shlibpath_var=LD_LIBRARY_PATH | ||
2856 | 3263 | ;; | ||
2857 | 3264 | |||
2858 | 3265 | freebsd1*) | ||
2859 | 3266 | dynamic_linker=no | ||
2860 | 3267 | ;; | ||
2861 | 3268 | |||
2862 | 3269 | freebsd* | dragonfly*) | ||
2863 | 3270 | # DragonFly does not have aout. When/if they implement a new | ||
2864 | 3271 | # versioning mechanism, adjust this. | ||
2865 | 3272 | if test -x /usr/bin/objformat; then | ||
2866 | 3273 | objformat=`/usr/bin/objformat` | ||
2867 | 3274 | else | ||
2868 | 3275 | case $host_os in | ||
2869 | 3276 | freebsd[[123]]*) objformat=aout ;; | ||
2870 | 3277 | *) objformat=elf ;; | ||
2871 | 3278 | esac | ||
2872 | 3279 | fi | ||
2873 | 3280 | version_type=freebsd-$objformat | ||
2874 | 3281 | case $version_type in | ||
2875 | 3282 | freebsd-elf*) | ||
2876 | 3283 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
2877 | 3284 | need_version=no | ||
2878 | 3285 | need_lib_prefix=no | ||
2879 | 3286 | ;; | ||
2880 | 3287 | freebsd-*) | ||
2881 | 3288 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
2882 | 3289 | need_version=yes | ||
2883 | 3290 | ;; | ||
2884 | 3291 | esac | ||
2885 | 3292 | shlibpath_var=LD_LIBRARY_PATH | ||
2886 | 3293 | case $host_os in | ||
2887 | 3294 | freebsd2*) | ||
2888 | 3295 | shlibpath_overrides_runpath=yes | ||
2889 | 3296 | ;; | ||
2890 | 3297 | freebsd3.[[01]]* | freebsdelf3.[[01]]*) | ||
2891 | 3298 | shlibpath_overrides_runpath=yes | ||
2892 | 3299 | hardcode_into_libs=yes | ||
2893 | 3300 | ;; | ||
2894 | 3301 | freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ | ||
2895 | 3302 | freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) | ||
2896 | 3303 | shlibpath_overrides_runpath=no | ||
2897 | 3304 | hardcode_into_libs=yes | ||
2898 | 3305 | ;; | ||
2899 | 3306 | *) # from 4.6 on, and DragonFly | ||
2900 | 3307 | shlibpath_overrides_runpath=yes | ||
2901 | 3308 | hardcode_into_libs=yes | ||
2902 | 3309 | ;; | ||
2903 | 3310 | esac | ||
2904 | 3311 | ;; | ||
2905 | 3312 | |||
2906 | 3313 | gnu*) | ||
2907 | 3314 | version_type=linux | ||
2908 | 3315 | need_lib_prefix=no | ||
2909 | 3316 | need_version=no | ||
2910 | 3317 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
2911 | 3318 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2912 | 3319 | shlibpath_var=LD_LIBRARY_PATH | ||
2913 | 3320 | shlibpath_overrides_runpath=no | ||
2914 | 3321 | hardcode_into_libs=yes | ||
2915 | 3322 | ;; | ||
2916 | 3323 | |||
2917 | 3324 | haiku*) | ||
2918 | 3325 | version_type=linux | ||
2919 | 3326 | need_lib_prefix=no | ||
2920 | 3327 | need_version=no | ||
2921 | 3328 | dynamic_linker="$host_os runtime_loader" | ||
2922 | 3329 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
2923 | 3330 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2924 | 3331 | shlibpath_var=LIBRARY_PATH | ||
2925 | 3332 | shlibpath_overrides_runpath=yes | ||
2926 | 3333 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | ||
2927 | 3334 | hardcode_into_libs=yes | ||
2928 | 3335 | ;; | ||
2929 | 3336 | |||
2930 | 3337 | hpux9* | hpux10* | hpux11*) | ||
2931 | 3338 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
2932 | 3339 | # link against other versions. | ||
2933 | 3340 | version_type=sunos | ||
2934 | 3341 | need_lib_prefix=no | ||
2935 | 3342 | need_version=no | ||
2936 | 3343 | case $host_cpu in | ||
2937 | 3344 | ia64*) | ||
2938 | 3345 | shrext_cmds='.so' | ||
2939 | 3346 | hardcode_into_libs=yes | ||
2940 | 3347 | dynamic_linker="$host_os dld.so" | ||
2941 | 3348 | shlibpath_var=LD_LIBRARY_PATH | ||
2942 | 3349 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
2943 | 3350 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2944 | 3351 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2945 | 3352 | if test "X$HPUX_IA64_MODE" = X32; then | ||
2946 | 3353 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
2947 | 3354 | else | ||
2948 | 3355 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
2949 | 3356 | fi | ||
2950 | 3357 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
2951 | 3358 | ;; | ||
2952 | 3359 | hppa*64*) | ||
2953 | 3360 | shrext_cmds='.sl' | ||
2954 | 3361 | hardcode_into_libs=yes | ||
2955 | 3362 | dynamic_linker="$host_os dld.sl" | ||
2956 | 3363 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
2957 | 3364 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
2958 | 3365 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2959 | 3366 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2960 | 3367 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
2961 | 3368 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
2962 | 3369 | ;; | ||
2963 | 3370 | *) | ||
2964 | 3371 | shrext_cmds='.sl' | ||
2965 | 3372 | dynamic_linker="$host_os dld.sl" | ||
2966 | 3373 | shlibpath_var=SHLIB_PATH | ||
2967 | 3374 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
2968 | 3375 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2969 | 3376 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2970 | 3377 | ;; | ||
2971 | 3378 | esac | ||
2972 | 3379 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | ||
2973 | 3380 | postinstall_cmds='chmod 555 $lib' | ||
2974 | 3381 | # or fails outright, so override atomically: | ||
2975 | 3382 | install_override_mode=555 | ||
2976 | 3383 | ;; | ||
2977 | 3384 | |||
2978 | 3385 | interix[[3-9]]*) | ||
2979 | 3386 | version_type=linux | ||
2980 | 3387 | need_lib_prefix=no | ||
2981 | 3388 | need_version=no | ||
2982 | 3389 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
2983 | 3390 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2984 | 3391 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
2985 | 3392 | shlibpath_var=LD_LIBRARY_PATH | ||
2986 | 3393 | shlibpath_overrides_runpath=no | ||
2987 | 3394 | hardcode_into_libs=yes | ||
2988 | 3395 | ;; | ||
2989 | 3396 | |||
2990 | 3397 | irix5* | irix6* | nonstopux*) | ||
2991 | 3398 | case $host_os in | ||
2992 | 3399 | nonstopux*) version_type=nonstopux ;; | ||
2993 | 3400 | *) | ||
2994 | 3401 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
2995 | 3402 | version_type=linux | ||
2996 | 3403 | else | ||
2997 | 3404 | version_type=irix | ||
2998 | 3405 | fi ;; | ||
2999 | 3406 | esac | ||
3000 | 3407 | need_lib_prefix=no | ||
3001 | 3408 | need_version=no | ||
3002 | 3409 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3003 | 3410 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
3004 | 3411 | case $host_os in | ||
3005 | 3412 | irix5* | nonstopux*) | ||
3006 | 3413 | libsuff= shlibsuff= | ||
3007 | 3414 | ;; | ||
3008 | 3415 | *) | ||
3009 | 3416 | case $LD in # libtool.m4 will add one of these switches to LD | ||
3010 | 3417 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
3011 | 3418 | libsuff= shlibsuff= libmagic=32-bit;; | ||
3012 | 3419 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
3013 | 3420 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
3014 | 3421 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
3015 | 3422 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
3016 | 3423 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
3017 | 3424 | esac | ||
3018 | 3425 | ;; | ||
3019 | 3426 | esac | ||
3020 | 3427 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
3021 | 3428 | shlibpath_overrides_runpath=no | ||
3022 | 3429 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
3023 | 3430 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
3024 | 3431 | hardcode_into_libs=yes | ||
3025 | 3432 | ;; | ||
3026 | 3433 | |||
3027 | 3434 | # No shared lib support for Linux oldld, aout, or coff. | ||
3028 | 3435 | linux*oldld* | linux*aout* | linux*coff*) | ||
3029 | 3436 | dynamic_linker=no | ||
3030 | 3437 | ;; | ||
3031 | 3438 | |||
3032 | 3439 | # This must be Linux ELF. | ||
3033 | 3440 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
3034 | 3441 | version_type=linux | ||
3035 | 3442 | need_lib_prefix=no | ||
3036 | 3443 | need_version=no | ||
3037 | 3444 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3038 | 3445 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3039 | 3446 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
3040 | 3447 | shlibpath_var=LD_LIBRARY_PATH | ||
3041 | 3448 | shlibpath_overrides_runpath=no | ||
3042 | 3449 | |||
3043 | 3450 | # Some binutils ld are patched to set DT_RUNPATH | ||
3044 | 3451 | AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], | ||
3045 | 3452 | [lt_cv_shlibpath_overrides_runpath=no | ||
3046 | 3453 | save_LDFLAGS=$LDFLAGS | ||
3047 | 3454 | save_libdir=$libdir | ||
3048 | 3455 | eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ | ||
3049 | 3456 | LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" | ||
3050 | 3457 | AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], | ||
3051 | 3458 | [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], | ||
3052 | 3459 | [lt_cv_shlibpath_overrides_runpath=yes])]) | ||
3053 | 3460 | LDFLAGS=$save_LDFLAGS | ||
3054 | 3461 | libdir=$save_libdir | ||
3055 | 3462 | ]) | ||
3056 | 3463 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | ||
3057 | 3464 | |||
3058 | 3465 | # This implies no fast_install, which is unacceptable. | ||
3059 | 3466 | # Some rework will be needed to allow for fast_install | ||
3060 | 3467 | # before this can be enabled. | ||
3061 | 3468 | hardcode_into_libs=yes | ||
3062 | 3469 | |||
3063 | 3470 | # Append ld.so.conf contents to the search path | ||
3064 | 3471 | if test -f /etc/ld.so.conf; then | ||
3065 | 3472 | 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' ' '` | ||
3066 | 3473 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
3067 | 3474 | fi | ||
3068 | 3475 | |||
3069 | 3476 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
3070 | 3477 | # powerpc, because MkLinux only supported shared libraries with the | ||
3071 | 3478 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
3072 | 3479 | # most powerpc-linux boxes support dynamic linking these days and | ||
3073 | 3480 | # people can always --disable-shared, the test was removed, and we | ||
3074 | 3481 | # assume the GNU/Linux dynamic linker is in use. | ||
3075 | 3482 | dynamic_linker='GNU/Linux ld.so' | ||
3076 | 3483 | ;; | ||
3077 | 3484 | |||
3078 | 3485 | netbsdelf*-gnu) | ||
3079 | 3486 | version_type=linux | ||
3080 | 3487 | need_lib_prefix=no | ||
3081 | 3488 | need_version=no | ||
3082 | 3489 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
3083 | 3490 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3084 | 3491 | shlibpath_var=LD_LIBRARY_PATH | ||
3085 | 3492 | shlibpath_overrides_runpath=no | ||
3086 | 3493 | hardcode_into_libs=yes | ||
3087 | 3494 | dynamic_linker='NetBSD ld.elf_so' | ||
3088 | 3495 | ;; | ||
3089 | 3496 | |||
3090 | 3497 | netbsd*) | ||
3091 | 3498 | version_type=sunos | ||
3092 | 3499 | need_lib_prefix=no | ||
3093 | 3500 | need_version=no | ||
3094 | 3501 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
3095 | 3502 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
3096 | 3503 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
3097 | 3504 | dynamic_linker='NetBSD (a.out) ld.so' | ||
3098 | 3505 | else | ||
3099 | 3506 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
3100 | 3507 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3101 | 3508 | dynamic_linker='NetBSD ld.elf_so' | ||
3102 | 3509 | fi | ||
3103 | 3510 | shlibpath_var=LD_LIBRARY_PATH | ||
3104 | 3511 | shlibpath_overrides_runpath=yes | ||
3105 | 3512 | hardcode_into_libs=yes | ||
3106 | 3513 | ;; | ||
3107 | 3514 | |||
3108 | 3515 | newsos6) | ||
3109 | 3516 | version_type=linux | ||
3110 | 3517 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3111 | 3518 | shlibpath_var=LD_LIBRARY_PATH | ||
3112 | 3519 | shlibpath_overrides_runpath=yes | ||
3113 | 3520 | ;; | ||
3114 | 3521 | |||
3115 | 3522 | *nto* | *qnx*) | ||
3116 | 3523 | version_type=qnx | ||
3117 | 3524 | need_lib_prefix=no | ||
3118 | 3525 | need_version=no | ||
3119 | 3526 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3120 | 3527 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3121 | 3528 | shlibpath_var=LD_LIBRARY_PATH | ||
3122 | 3529 | shlibpath_overrides_runpath=no | ||
3123 | 3530 | hardcode_into_libs=yes | ||
3124 | 3531 | dynamic_linker='ldqnx.so' | ||
3125 | 3532 | ;; | ||
3126 | 3533 | |||
3127 | 3534 | openbsd*) | ||
3128 | 3535 | version_type=sunos | ||
3129 | 3536 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
3130 | 3537 | need_lib_prefix=no | ||
3131 | 3538 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
3132 | 3539 | case $host_os in | ||
3133 | 3540 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
3134 | 3541 | *) need_version=no ;; | ||
3135 | 3542 | esac | ||
3136 | 3543 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
3137 | 3544 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
3138 | 3545 | shlibpath_var=LD_LIBRARY_PATH | ||
3139 | 3546 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
3140 | 3547 | case $host_os in | ||
3141 | 3548 | openbsd2.[[89]] | openbsd2.[[89]].*) | ||
3142 | 3549 | shlibpath_overrides_runpath=no | ||
3143 | 3550 | ;; | ||
3144 | 3551 | *) | ||
3145 | 3552 | shlibpath_overrides_runpath=yes | ||
3146 | 3553 | ;; | ||
3147 | 3554 | esac | ||
3148 | 3555 | else | ||
3149 | 3556 | shlibpath_overrides_runpath=yes | ||
3150 | 3557 | fi | ||
3151 | 3558 | ;; | ||
3152 | 3559 | |||
3153 | 3560 | os2*) | ||
3154 | 3561 | libname_spec='$name' | ||
3155 | 3562 | shrext_cmds=".dll" | ||
3156 | 3563 | need_lib_prefix=no | ||
3157 | 3564 | library_names_spec='$libname${shared_ext} $libname.a' | ||
3158 | 3565 | dynamic_linker='OS/2 ld.exe' | ||
3159 | 3566 | shlibpath_var=LIBPATH | ||
3160 | 3567 | ;; | ||
3161 | 3568 | |||
3162 | 3569 | osf3* | osf4* | osf5*) | ||
3163 | 3570 | version_type=osf | ||
3164 | 3571 | need_lib_prefix=no | ||
3165 | 3572 | need_version=no | ||
3166 | 3573 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3167 | 3574 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3168 | 3575 | shlibpath_var=LD_LIBRARY_PATH | ||
3169 | 3576 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
3170 | 3577 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
3171 | 3578 | ;; | ||
3172 | 3579 | |||
3173 | 3580 | rdos*) | ||
3174 | 3581 | dynamic_linker=no | ||
3175 | 3582 | ;; | ||
3176 | 3583 | |||
3177 | 3584 | solaris*) | ||
3178 | 3585 | version_type=linux | ||
3179 | 3586 | need_lib_prefix=no | ||
3180 | 3587 | need_version=no | ||
3181 | 3588 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3182 | 3589 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3183 | 3590 | shlibpath_var=LD_LIBRARY_PATH | ||
3184 | 3591 | shlibpath_overrides_runpath=yes | ||
3185 | 3592 | hardcode_into_libs=yes | ||
3186 | 3593 | # ldd complains unless libraries are executable | ||
3187 | 3594 | postinstall_cmds='chmod +x $lib' | ||
3188 | 3595 | ;; | ||
3189 | 3596 | |||
3190 | 3597 | sunos4*) | ||
3191 | 3598 | version_type=sunos | ||
3192 | 3599 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
3193 | 3600 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
3194 | 3601 | shlibpath_var=LD_LIBRARY_PATH | ||
3195 | 3602 | shlibpath_overrides_runpath=yes | ||
3196 | 3603 | if test "$with_gnu_ld" = yes; then | ||
3197 | 3604 | need_lib_prefix=no | ||
3198 | 3605 | fi | ||
3199 | 3606 | need_version=yes | ||
3200 | 3607 | ;; | ||
3201 | 3608 | |||
3202 | 3609 | sysv4 | sysv4.3*) | ||
3203 | 3610 | version_type=linux | ||
3204 | 3611 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3205 | 3612 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3206 | 3613 | shlibpath_var=LD_LIBRARY_PATH | ||
3207 | 3614 | case $host_vendor in | ||
3208 | 3615 | sni) | ||
3209 | 3616 | shlibpath_overrides_runpath=no | ||
3210 | 3617 | need_lib_prefix=no | ||
3211 | 3618 | runpath_var=LD_RUN_PATH | ||
3212 | 3619 | ;; | ||
3213 | 3620 | siemens) | ||
3214 | 3621 | need_lib_prefix=no | ||
3215 | 3622 | ;; | ||
3216 | 3623 | motorola) | ||
3217 | 3624 | need_lib_prefix=no | ||
3218 | 3625 | need_version=no | ||
3219 | 3626 | shlibpath_overrides_runpath=no | ||
3220 | 3627 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
3221 | 3628 | ;; | ||
3222 | 3629 | esac | ||
3223 | 3630 | ;; | ||
3224 | 3631 | |||
3225 | 3632 | sysv4*MP*) | ||
3226 | 3633 | if test -d /usr/nec ;then | ||
3227 | 3634 | version_type=linux | ||
3228 | 3635 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
3229 | 3636 | soname_spec='$libname${shared_ext}.$major' | ||
3230 | 3637 | shlibpath_var=LD_LIBRARY_PATH | ||
3231 | 3638 | fi | ||
3232 | 3639 | ;; | ||
3233 | 3640 | |||
3234 | 3641 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
3235 | 3642 | version_type=freebsd-elf | ||
3236 | 3643 | need_lib_prefix=no | ||
3237 | 3644 | need_version=no | ||
3238 | 3645 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
3239 | 3646 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3240 | 3647 | shlibpath_var=LD_LIBRARY_PATH | ||
3241 | 3648 | shlibpath_overrides_runpath=yes | ||
3242 | 3649 | hardcode_into_libs=yes | ||
3243 | 3650 | if test "$with_gnu_ld" = yes; then | ||
3244 | 3651 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
3245 | 3652 | else | ||
3246 | 3653 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
3247 | 3654 | case $host_os in | ||
3248 | 3655 | sco3.2v5*) | ||
3249 | 3656 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
3250 | 3657 | ;; | ||
3251 | 3658 | esac | ||
3252 | 3659 | fi | ||
3253 | 3660 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
3254 | 3661 | ;; | ||
3255 | 3662 | |||
3256 | 3663 | tpf*) | ||
3257 | 3664 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | ||
3258 | 3665 | version_type=linux | ||
3259 | 3666 | need_lib_prefix=no | ||
3260 | 3667 | need_version=no | ||
3261 | 3668 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3262 | 3669 | shlibpath_var=LD_LIBRARY_PATH | ||
3263 | 3670 | shlibpath_overrides_runpath=no | ||
3264 | 3671 | hardcode_into_libs=yes | ||
3265 | 3672 | ;; | ||
3266 | 3673 | |||
3267 | 3674 | uts4*) | ||
3268 | 3675 | version_type=linux | ||
3269 | 3676 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3270 | 3677 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3271 | 3678 | shlibpath_var=LD_LIBRARY_PATH | ||
3272 | 3679 | ;; | ||
3273 | 3680 | |||
3274 | 3681 | *) | ||
3275 | 3682 | dynamic_linker=no | ||
3276 | 3683 | ;; | ||
3277 | 3684 | esac | ||
3278 | 3685 | AC_MSG_RESULT([$dynamic_linker]) | ||
3279 | 3686 | test "$dynamic_linker" = no && can_build_shared=no | ||
3280 | 3687 | |||
3281 | 3688 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
3282 | 3689 | if test "$GCC" = yes; then | ||
3283 | 3690 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
3284 | 3691 | fi | ||
3285 | 3692 | |||
3286 | 3693 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | ||
3287 | 3694 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | ||
3288 | 3695 | fi | ||
3289 | 3696 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | ||
3290 | 3697 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | ||
3291 | 3698 | fi | ||
3292 | 3699 | |||
3293 | 3700 | _LT_DECL([], [variables_saved_for_relink], [1], | ||
3294 | 3701 | [Variables whose values should be saved in libtool wrapper scripts and | ||
3295 | 3702 | restored at link time]) | ||
3296 | 3703 | _LT_DECL([], [need_lib_prefix], [0], | ||
3297 | 3704 | [Do we need the "lib" prefix for modules?]) | ||
3298 | 3705 | _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) | ||
3299 | 3706 | _LT_DECL([], [version_type], [0], [Library versioning type]) | ||
3300 | 3707 | _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) | ||
3301 | 3708 | _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) | ||
3302 | 3709 | _LT_DECL([], [shlibpath_overrides_runpath], [0], | ||
3303 | 3710 | [Is shlibpath searched before the hard-coded library search path?]) | ||
3304 | 3711 | _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) | ||
3305 | 3712 | _LT_DECL([], [library_names_spec], [1], | ||
3306 | 3713 | [[List of archive names. First name is the real one, the rest are links. | ||
3307 | 3714 | The last name is the one that the linker finds with -lNAME]]) | ||
3308 | 3715 | _LT_DECL([], [soname_spec], [1], | ||
3309 | 3716 | [[The coded name of the library, if different from the real name]]) | ||
3310 | 3717 | _LT_DECL([], [install_override_mode], [1], | ||
3311 | 3718 | [Permission mode override for installation of shared libraries]) | ||
3312 | 3719 | _LT_DECL([], [postinstall_cmds], [2], | ||
3313 | 3720 | [Command to use after installation of a shared archive]) | ||
3314 | 3721 | _LT_DECL([], [postuninstall_cmds], [2], | ||
3315 | 3722 | [Command to use after uninstallation of a shared archive]) | ||
3316 | 3723 | _LT_DECL([], [finish_cmds], [2], | ||
3317 | 3724 | [Commands used to finish a libtool library installation in a directory]) | ||
3318 | 3725 | _LT_DECL([], [finish_eval], [1], | ||
3319 | 3726 | [[As "finish_cmds", except a single script fragment to be evaled but | ||
3320 | 3727 | not shown]]) | ||
3321 | 3728 | _LT_DECL([], [hardcode_into_libs], [0], | ||
3322 | 3729 | [Whether we should hardcode library paths into libraries]) | ||
3323 | 3730 | _LT_DECL([], [sys_lib_search_path_spec], [2], | ||
3324 | 3731 | [Compile-time system search path for libraries]) | ||
3325 | 3732 | _LT_DECL([], [sys_lib_dlsearch_path_spec], [2], | ||
3326 | 3733 | [Run-time system search path for libraries]) | ||
3327 | 3734 | ])# _LT_SYS_DYNAMIC_LINKER | ||
3328 | 3735 | |||
3329 | 3736 | |||
3330 | 3737 | # _LT_PATH_TOOL_PREFIX(TOOL) | ||
3331 | 3738 | # -------------------------- | ||
3332 | 3739 | # find a file program which can recognize shared library | ||
3333 | 3740 | AC_DEFUN([_LT_PATH_TOOL_PREFIX], | ||
3334 | 3741 | [m4_require([_LT_DECL_EGREP])dnl | ||
3335 | 3742 | AC_MSG_CHECKING([for $1]) | ||
3336 | 3743 | AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, | ||
3337 | 3744 | [case $MAGIC_CMD in | ||
3338 | 3745 | [[\\/*] | ?:[\\/]*]) | ||
3339 | 3746 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
3340 | 3747 | ;; | ||
3341 | 3748 | *) | ||
3342 | 3749 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
3343 | 3750 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
3344 | 3751 | dnl $ac_dummy forces splitting on constant user-supplied paths. | ||
3345 | 3752 | dnl POSIX.2 word splitting is done only on the output of word expansions, | ||
3346 | 3753 | dnl not every word. This closes a longstanding sh security hole. | ||
3347 | 3754 | ac_dummy="m4_if([$2], , $PATH, [$2])" | ||
3348 | 3755 | for ac_dir in $ac_dummy; do | ||
3349 | 3756 | IFS="$lt_save_ifs" | ||
3350 | 3757 | test -z "$ac_dir" && ac_dir=. | ||
3351 | 3758 | if test -f $ac_dir/$1; then | ||
3352 | 3759 | lt_cv_path_MAGIC_CMD="$ac_dir/$1" | ||
3353 | 3760 | if test -n "$file_magic_test_file"; then | ||
3354 | 3761 | case $deplibs_check_method in | ||
3355 | 3762 | "file_magic "*) | ||
3356 | 3763 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
3357 | 3764 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
3358 | 3765 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
3359 | 3766 | $EGREP "$file_magic_regex" > /dev/null; then | ||
3360 | 3767 | : | ||
3361 | 3768 | else | ||
3362 | 3769 | cat <<_LT_EOF 1>&2 | ||
3363 | 3770 | |||
3364 | 3771 | *** Warning: the command libtool uses to detect shared libraries, | ||
3365 | 3772 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
3366 | 3773 | *** The result is that libtool may fail to recognize shared libraries | ||
3367 | 3774 | *** as such. This will affect the creation of libtool libraries that | ||
3368 | 3775 | *** depend on shared libraries, but programs linked with such libtool | ||
3369 | 3776 | *** libraries will work regardless of this problem. Nevertheless, you | ||
3370 | 3777 | *** may want to report the problem to your system manager and/or to | ||
3371 | 3778 | *** bug-libtool@gnu.org | ||
3372 | 3779 | |||
3373 | 3780 | _LT_EOF | ||
3374 | 3781 | fi ;; | ||
3375 | 3782 | esac | ||
3376 | 3783 | fi | ||
3377 | 3784 | break | ||
3378 | 3785 | fi | ||
3379 | 3786 | done | ||
3380 | 3787 | IFS="$lt_save_ifs" | ||
3381 | 3788 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
3382 | 3789 | ;; | ||
3383 | 3790 | esac]) | ||
3384 | 3791 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
3385 | 3792 | if test -n "$MAGIC_CMD"; then | ||
3386 | 3793 | AC_MSG_RESULT($MAGIC_CMD) | ||
3387 | 3794 | else | ||
3388 | 3795 | AC_MSG_RESULT(no) | ||
3389 | 3796 | fi | ||
3390 | 3797 | _LT_DECL([], [MAGIC_CMD], [0], | ||
3391 | 3798 | [Used to examine libraries when file_magic_cmd begins with "file"])dnl | ||
3392 | 3799 | ])# _LT_PATH_TOOL_PREFIX | ||
3393 | 3800 | |||
3394 | 3801 | # Old name: | ||
3395 | 3802 | AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) | ||
3396 | 3803 | dnl aclocal-1.4 backwards compatibility: | ||
3397 | 3804 | dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) | ||
3398 | 3805 | |||
3399 | 3806 | |||
3400 | 3807 | # _LT_PATH_MAGIC | ||
3401 | 3808 | # -------------- | ||
3402 | 3809 | # find a file program which can recognize a shared library | ||
3403 | 3810 | m4_defun([_LT_PATH_MAGIC], | ||
3404 | 3811 | [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) | ||
3405 | 3812 | if test -z "$lt_cv_path_MAGIC_CMD"; then | ||
3406 | 3813 | if test -n "$ac_tool_prefix"; then | ||
3407 | 3814 | _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) | ||
3408 | 3815 | else | ||
3409 | 3816 | MAGIC_CMD=: | ||
3410 | 3817 | fi | ||
3411 | 3818 | fi | ||
3412 | 3819 | ])# _LT_PATH_MAGIC | ||
3413 | 3820 | |||
3414 | 3821 | |||
3415 | 3822 | # LT_PATH_LD | ||
3416 | 3823 | # ---------- | ||
3417 | 3824 | # find the pathname to the GNU or non-GNU linker | ||
3418 | 3825 | AC_DEFUN([LT_PATH_LD], | ||
3419 | 3826 | [AC_REQUIRE([AC_PROG_CC])dnl | ||
3420 | 3827 | AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
3421 | 3828 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl | ||
3422 | 3829 | m4_require([_LT_DECL_SED])dnl | ||
3423 | 3830 | m4_require([_LT_DECL_EGREP])dnl | ||
3424 | 3831 | m4_require([_LT_PROG_ECHO_BACKSLASH])dnl | ||
3425 | 3832 | |||
3426 | 3833 | AC_ARG_WITH([gnu-ld], | ||
3427 | 3834 | [AS_HELP_STRING([--with-gnu-ld], | ||
3428 | 3835 | [assume the C compiler uses GNU ld @<:@default=no@:>@])], | ||
3429 | 3836 | [test "$withval" = no || with_gnu_ld=yes], | ||
3430 | 3837 | [with_gnu_ld=no])dnl | ||
3431 | 3838 | |||
3432 | 3839 | ac_prog=ld | ||
3433 | 3840 | if test "$GCC" = yes; then | ||
3434 | 3841 | # Check if gcc -print-prog-name=ld gives a path. | ||
3435 | 3842 | AC_MSG_CHECKING([for ld used by $CC]) | ||
3436 | 3843 | case $host in | ||
3437 | 3844 | *-*-mingw*) | ||
3438 | 3845 | # gcc leaves a trailing carriage return which upsets mingw | ||
3439 | 3846 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
3440 | 3847 | *) | ||
3441 | 3848 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
3442 | 3849 | esac | ||
3443 | 3850 | case $ac_prog in | ||
3444 | 3851 | # Accept absolute paths. | ||
3445 | 3852 | [[\\/]]* | ?:[[\\/]]*) | ||
3446 | 3853 | re_direlt='/[[^/]][[^/]]*/\.\./' | ||
3447 | 3854 | # Canonicalize the pathname of ld | ||
3448 | 3855 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | ||
3449 | 3856 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | ||
3450 | 3857 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | ||
3451 | 3858 | done | ||
3452 | 3859 | test -z "$LD" && LD="$ac_prog" | ||
3453 | 3860 | ;; | ||
3454 | 3861 | "") | ||
3455 | 3862 | # If it fails, then pretend we aren't using GCC. | ||
3456 | 3863 | ac_prog=ld | ||
3457 | 3864 | ;; | ||
3458 | 3865 | *) | ||
3459 | 3866 | # If it is relative, then search for the first ld in PATH. | ||
3460 | 3867 | with_gnu_ld=unknown | ||
3461 | 3868 | ;; | ||
3462 | 3869 | esac | ||
3463 | 3870 | elif test "$with_gnu_ld" = yes; then | ||
3464 | 3871 | AC_MSG_CHECKING([for GNU ld]) | ||
3465 | 3872 | else | ||
3466 | 3873 | AC_MSG_CHECKING([for non-GNU ld]) | ||
3467 | 3874 | fi | ||
3468 | 3875 | AC_CACHE_VAL(lt_cv_path_LD, | ||
3469 | 3876 | [if test -z "$LD"; then | ||
3470 | 3877 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
3471 | 3878 | for ac_dir in $PATH; do | ||
3472 | 3879 | IFS="$lt_save_ifs" | ||
3473 | 3880 | test -z "$ac_dir" && ac_dir=. | ||
3474 | 3881 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
3475 | 3882 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
3476 | 3883 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
3477 | 3884 | # but apparently some variants of GNU ld only accept -v. | ||
3478 | 3885 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
3479 | 3886 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
3480 | 3887 | *GNU* | *'with BFD'*) | ||
3481 | 3888 | test "$with_gnu_ld" != no && break | ||
3482 | 3889 | ;; | ||
3483 | 3890 | *) | ||
3484 | 3891 | test "$with_gnu_ld" != yes && break | ||
3485 | 3892 | ;; | ||
3486 | 3893 | esac | ||
3487 | 3894 | fi | ||
3488 | 3895 | done | ||
3489 | 3896 | IFS="$lt_save_ifs" | ||
3490 | 3897 | else | ||
3491 | 3898 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
3492 | 3899 | fi]) | ||
3493 | 3900 | LD="$lt_cv_path_LD" | ||
3494 | 3901 | if test -n "$LD"; then | ||
3495 | 3902 | AC_MSG_RESULT($LD) | ||
3496 | 3903 | else | ||
3497 | 3904 | AC_MSG_RESULT(no) | ||
3498 | 3905 | fi | ||
3499 | 3906 | test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) | ||
3500 | 3907 | _LT_PATH_LD_GNU | ||
3501 | 3908 | AC_SUBST([LD]) | ||
3502 | 3909 | |||
3503 | 3910 | _LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) | ||
3504 | 3911 | ])# LT_PATH_LD | ||
3505 | 3912 | |||
3506 | 3913 | # Old names: | ||
3507 | 3914 | AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) | ||
3508 | 3915 | AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) | ||
3509 | 3916 | dnl aclocal-1.4 backwards compatibility: | ||
3510 | 3917 | dnl AC_DEFUN([AM_PROG_LD], []) | ||
3511 | 3918 | dnl AC_DEFUN([AC_PROG_LD], []) | ||
3512 | 3919 | |||
3513 | 3920 | |||
3514 | 3921 | # _LT_PATH_LD_GNU | ||
3515 | 3922 | #- -------------- | ||
3516 | 3923 | m4_defun([_LT_PATH_LD_GNU], | ||
3517 | 3924 | [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, | ||
3518 | 3925 | [# I'd rather use --version here, but apparently some GNU lds only accept -v. | ||
3519 | 3926 | case `$LD -v 2>&1 </dev/null` in | ||
3520 | 3927 | *GNU* | *'with BFD'*) | ||
3521 | 3928 | lt_cv_prog_gnu_ld=yes | ||
3522 | 3929 | ;; | ||
3523 | 3930 | *) | ||
3524 | 3931 | lt_cv_prog_gnu_ld=no | ||
3525 | 3932 | ;; | ||
3526 | 3933 | esac]) | ||
3527 | 3934 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
3528 | 3935 | ])# _LT_PATH_LD_GNU | ||
3529 | 3936 | |||
3530 | 3937 | |||
3531 | 3938 | # _LT_CMD_RELOAD | ||
3532 | 3939 | # -------------- | ||
3533 | 3940 | # find reload flag for linker | ||
3534 | 3941 | # -- PORTME Some linkers may need a different reload flag. | ||
3535 | 3942 | m4_defun([_LT_CMD_RELOAD], | ||
3536 | 3943 | [AC_CACHE_CHECK([for $LD option to reload object files], | ||
3537 | 3944 | lt_cv_ld_reload_flag, | ||
3538 | 3945 | [lt_cv_ld_reload_flag='-r']) | ||
3539 | 3946 | reload_flag=$lt_cv_ld_reload_flag | ||
3540 | 3947 | case $reload_flag in | ||
3541 | 3948 | "" | " "*) ;; | ||
3542 | 3949 | *) reload_flag=" $reload_flag" ;; | ||
3543 | 3950 | esac | ||
3544 | 3951 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
3545 | 3952 | case $host_os in | ||
3546 | 3953 | cygwin* | mingw* | pw32* | cegcc*) | ||
3547 | 3954 | if test "$GCC" != yes; then | ||
3548 | 3955 | reload_cmds=false | ||
3549 | 3956 | fi | ||
3550 | 3957 | ;; | ||
3551 | 3958 | darwin*) | ||
3552 | 3959 | if test "$GCC" = yes; then | ||
3553 | 3960 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
3554 | 3961 | else | ||
3555 | 3962 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
3556 | 3963 | fi | ||
3557 | 3964 | ;; | ||
3558 | 3965 | esac | ||
3559 | 3966 | _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl | ||
3560 | 3967 | _LT_TAGDECL([], [reload_cmds], [2])dnl | ||
3561 | 3968 | ])# _LT_CMD_RELOAD | ||
3562 | 3969 | |||
3563 | 3970 | |||
3564 | 3971 | # _LT_CHECK_MAGIC_METHOD | ||
3565 | 3972 | # ---------------------- | ||
3566 | 3973 | # how to check for library dependencies | ||
3567 | 3974 | # -- PORTME fill in with the dynamic library characteristics | ||
3568 | 3975 | m4_defun([_LT_CHECK_MAGIC_METHOD], | ||
3569 | 3976 | [m4_require([_LT_DECL_EGREP]) | ||
3570 | 3977 | m4_require([_LT_DECL_OBJDUMP]) | ||
3571 | 3978 | AC_CACHE_CHECK([how to recognize dependent libraries], | ||
3572 | 3979 | lt_cv_deplibs_check_method, | ||
3573 | 3980 | [lt_cv_file_magic_cmd='$MAGIC_CMD' | ||
3574 | 3981 | lt_cv_file_magic_test_file= | ||
3575 | 3982 | lt_cv_deplibs_check_method='unknown' | ||
3576 | 3983 | # Need to set the preceding variable on all platforms that support | ||
3577 | 3984 | # interlibrary dependencies. | ||
3578 | 3985 | # 'none' -- dependencies not supported. | ||
3579 | 3986 | # `unknown' -- same as none, but documents that we really don't know. | ||
3580 | 3987 | # 'pass_all' -- all dependencies passed with no checks. | ||
3581 | 3988 | # 'test_compile' -- check by making test program. | ||
3582 | 3989 | # 'file_magic [[regex]]' -- check by looking for files in library path | ||
3583 | 3990 | # which responds to the $file_magic_cmd with a given extended regex. | ||
3584 | 3991 | # If you have `file' or equivalent on your system and you're not sure | ||
3585 | 3992 | # whether `pass_all' will *always* work, you probably want this one. | ||
3586 | 3993 | |||
3587 | 3994 | case $host_os in | ||
3588 | 3995 | aix[[4-9]]*) | ||
3589 | 3996 | lt_cv_deplibs_check_method=pass_all | ||
3590 | 3997 | ;; | ||
3591 | 3998 | |||
3592 | 3999 | beos*) | ||
3593 | 4000 | lt_cv_deplibs_check_method=pass_all | ||
3594 | 4001 | ;; | ||
3595 | 4002 | |||
3596 | 4003 | bsdi[[45]]*) | ||
3597 | 4004 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' | ||
3598 | 4005 | lt_cv_file_magic_cmd='/usr/bin/file -L' | ||
3599 | 4006 | lt_cv_file_magic_test_file=/shlib/libc.so | ||
3600 | 4007 | ;; | ||
3601 | 4008 | |||
3602 | 4009 | cygwin*) | ||
3603 | 4010 | # func_win32_libid is a shell function defined in ltmain.sh | ||
3604 | 4011 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
3605 | 4012 | lt_cv_file_magic_cmd='func_win32_libid' | ||
3606 | 4013 | ;; | ||
3607 | 4014 | |||
3608 | 4015 | mingw* | pw32*) | ||
3609 | 4016 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
3610 | 4017 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | ||
3611 | 4018 | # unless we find 'file', for example because we are cross-compiling. | ||
3612 | 4019 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | ||
3613 | 4020 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | ||
3614 | 4021 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
3615 | 4022 | lt_cv_file_magic_cmd='func_win32_libid' | ||
3616 | 4023 | else | ||
3617 | 4024 | # Keep this pattern in sync with the one in func_win32_libid. | ||
3618 | 4025 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | ||
3619 | 4026 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
3620 | 4027 | fi | ||
3621 | 4028 | ;; | ||
3622 | 4029 | |||
3623 | 4030 | cegcc*) | ||
3624 | 4031 | # use the weaker test based on 'objdump'. See mingw*. | ||
3625 | 4032 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | ||
3626 | 4033 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
3627 | 4034 | ;; | ||
3628 | 4035 | |||
3629 | 4036 | darwin* | rhapsody*) | ||
3630 | 4037 | lt_cv_deplibs_check_method=pass_all | ||
3631 | 4038 | ;; | ||
3632 | 4039 | |||
3633 | 4040 | freebsd* | dragonfly*) | ||
3634 | 4041 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
3635 | 4042 | case $host_cpu in | ||
3636 | 4043 | i*86 ) | ||
3637 | 4044 | # Not sure whether the presence of OpenBSD here was a mistake. | ||
3638 | 4045 | # Let's accept both of them until this is cleared up. | ||
3639 | 4046 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' | ||
3640 | 4047 | lt_cv_file_magic_cmd=/usr/bin/file | ||
3641 | 4048 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
3642 | 4049 | ;; | ||
3643 | 4050 | esac | ||
3644 | 4051 | else | ||
3645 | 4052 | lt_cv_deplibs_check_method=pass_all | ||
3646 | 4053 | fi | ||
3647 | 4054 | ;; | ||
3648 | 4055 | |||
3649 | 4056 | gnu*) | ||
3650 | 4057 | lt_cv_deplibs_check_method=pass_all | ||
3651 | 4058 | ;; | ||
3652 | 4059 | |||
3653 | 4060 | haiku*) | ||
3654 | 4061 | lt_cv_deplibs_check_method=pass_all | ||
3655 | 4062 | ;; | ||
3656 | 4063 | |||
3657 | 4064 | hpux10.20* | hpux11*) | ||
3658 | 4065 | lt_cv_file_magic_cmd=/usr/bin/file | ||
3659 | 4066 | case $host_cpu in | ||
3660 | 4067 | ia64*) | ||
3661 | 4068 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' | ||
3662 | 4069 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
3663 | 4070 | ;; | ||
3664 | 4071 | hppa*64*) | ||
3665 | 4072 | [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]'] | ||
3666 | 4073 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
3667 | 4074 | ;; | ||
3668 | 4075 | *) | ||
3669 | 4076 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' | ||
3670 | 4077 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
3671 | 4078 | ;; | ||
3672 | 4079 | esac | ||
3673 | 4080 | ;; | ||
3674 | 4081 | |||
3675 | 4082 | interix[[3-9]]*) | ||
3676 | 4083 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | ||
3677 | 4084 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' | ||
3678 | 4085 | ;; | ||
3679 | 4086 | |||
3680 | 4087 | irix5* | irix6* | nonstopux*) | ||
3681 | 4088 | case $LD in | ||
3682 | 4089 | *-32|*"-32 ") libmagic=32-bit;; | ||
3683 | 4090 | *-n32|*"-n32 ") libmagic=N32;; | ||
3684 | 4091 | *-64|*"-64 ") libmagic=64-bit;; | ||
3685 | 4092 | *) libmagic=never-match;; | ||
3686 | 4093 | esac | ||
3687 | 4094 | lt_cv_deplibs_check_method=pass_all | ||
3688 | 4095 | ;; | ||
3689 | 4096 | |||
3690 | 4097 | # This must be Linux ELF. | ||
3691 | 4098 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
3692 | 4099 | lt_cv_deplibs_check_method=pass_all | ||
3693 | 4100 | ;; | ||
3694 | 4101 | |||
3695 | 4102 | netbsd* | netbsdelf*-gnu) | ||
3696 | 4103 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
3697 | 4104 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | ||
3698 | 4105 | else | ||
3699 | 4106 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' | ||
3700 | 4107 | fi | ||
3701 | 4108 | ;; | ||
3702 | 4109 | |||
3703 | 4110 | newos6*) | ||
3704 | 4111 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' | ||
3705 | 4112 | lt_cv_file_magic_cmd=/usr/bin/file | ||
3706 | 4113 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | ||
3707 | 4114 | ;; | ||
3708 | 4115 | |||
3709 | 4116 | *nto* | *qnx*) | ||
3710 | 4117 | lt_cv_deplibs_check_method=pass_all | ||
3711 | 4118 | ;; | ||
3712 | 4119 | |||
3713 | 4120 | openbsd*) | ||
3714 | 4121 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
3715 | 4122 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' | ||
3716 | 4123 | else | ||
3717 | 4124 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | ||
3718 | 4125 | fi | ||
3719 | 4126 | ;; | ||
3720 | 4127 | |||
3721 | 4128 | osf3* | osf4* | osf5*) | ||
3722 | 4129 | lt_cv_deplibs_check_method=pass_all | ||
3723 | 4130 | ;; | ||
3724 | 4131 | |||
3725 | 4132 | rdos*) | ||
3726 | 4133 | lt_cv_deplibs_check_method=pass_all | ||
3727 | 4134 | ;; | ||
3728 | 4135 | |||
3729 | 4136 | solaris*) | ||
3730 | 4137 | lt_cv_deplibs_check_method=pass_all | ||
3731 | 4138 | ;; | ||
3732 | 4139 | |||
3733 | 4140 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
3734 | 4141 | lt_cv_deplibs_check_method=pass_all | ||
3735 | 4142 | ;; | ||
3736 | 4143 | |||
3737 | 4144 | sysv4 | sysv4.3*) | ||
3738 | 4145 | case $host_vendor in | ||
3739 | 4146 | motorola) | ||
3740 | 4147 | 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]]' | ||
3741 | 4148 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | ||
3742 | 4149 | ;; | ||
3743 | 4150 | ncr) | ||
3744 | 4151 | lt_cv_deplibs_check_method=pass_all | ||
3745 | 4152 | ;; | ||
3746 | 4153 | sequent) | ||
3747 | 4154 | lt_cv_file_magic_cmd='/bin/file' | ||
3748 | 4155 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' | ||
3749 | 4156 | ;; | ||
3750 | 4157 | sni) | ||
3751 | 4158 | lt_cv_file_magic_cmd='/bin/file' | ||
3752 | 4159 | lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" | ||
3753 | 4160 | lt_cv_file_magic_test_file=/lib/libc.so | ||
3754 | 4161 | ;; | ||
3755 | 4162 | siemens) | ||
3756 | 4163 | lt_cv_deplibs_check_method=pass_all | ||
3757 | 4164 | ;; | ||
3758 | 4165 | pc) | ||
3759 | 4166 | lt_cv_deplibs_check_method=pass_all | ||
3760 | 4167 | ;; | ||
3761 | 4168 | esac | ||
3762 | 4169 | ;; | ||
3763 | 4170 | |||
3764 | 4171 | tpf*) | ||
3765 | 4172 | lt_cv_deplibs_check_method=pass_all | ||
3766 | 4173 | ;; | ||
3767 | 4174 | esac | ||
3768 | 4175 | ]) | ||
3769 | 4176 | |||
3770 | 4177 | file_magic_glob= | ||
3771 | 4178 | want_nocaseglob=no | ||
3772 | 4179 | if test "$build" = "$host"; then | ||
3773 | 4180 | case $host_os in | ||
3774 | 4181 | mingw* | pw32*) | ||
3775 | 4182 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | ||
3776 | 4183 | want_nocaseglob=yes | ||
3777 | 4184 | else | ||
3778 | 4185 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` | ||
3779 | 4186 | fi | ||
3780 | 4187 | ;; | ||
3781 | 4188 | esac | ||
3782 | 4189 | fi | ||
3783 | 4190 | |||
3784 | 4191 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
3785 | 4192 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
3786 | 4193 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
3787 | 4194 | |||
3788 | 4195 | _LT_DECL([], [deplibs_check_method], [1], | ||
3789 | 4196 | [Method to check whether dependent libraries are shared objects]) | ||
3790 | 4197 | _LT_DECL([], [file_magic_cmd], [1], | ||
3791 | 4198 | [Command to use when deplibs_check_method = "file_magic"]) | ||
3792 | 4199 | _LT_DECL([], [file_magic_glob], [1], | ||
3793 | 4200 | [How to find potential files when deplibs_check_method = "file_magic"]) | ||
3794 | 4201 | _LT_DECL([], [want_nocaseglob], [1], | ||
3795 | 4202 | [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) | ||
3796 | 4203 | ])# _LT_CHECK_MAGIC_METHOD | ||
3797 | 4204 | |||
3798 | 4205 | |||
3799 | 4206 | # LT_PATH_NM | ||
3800 | 4207 | # ---------- | ||
3801 | 4208 | # find the pathname to a BSD- or MS-compatible name lister | ||
3802 | 4209 | AC_DEFUN([LT_PATH_NM], | ||
3803 | 4210 | [AC_REQUIRE([AC_PROG_CC])dnl | ||
3804 | 4211 | AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, | ||
3805 | 4212 | [if test -n "$NM"; then | ||
3806 | 4213 | # Let the user override the test. | ||
3807 | 4214 | lt_cv_path_NM="$NM" | ||
3808 | 4215 | else | ||
3809 | 4216 | lt_nm_to_check="${ac_tool_prefix}nm" | ||
3810 | 4217 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | ||
3811 | 4218 | lt_nm_to_check="$lt_nm_to_check nm" | ||
3812 | 4219 | fi | ||
3813 | 4220 | for lt_tmp_nm in $lt_nm_to_check; do | ||
3814 | 4221 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
3815 | 4222 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | ||
3816 | 4223 | IFS="$lt_save_ifs" | ||
3817 | 4224 | test -z "$ac_dir" && ac_dir=. | ||
3818 | 4225 | tmp_nm="$ac_dir/$lt_tmp_nm" | ||
3819 | 4226 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | ||
3820 | 4227 | # Check to see if the nm accepts a BSD-compat flag. | ||
3821 | 4228 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | ||
3822 | 4229 | # nm: unknown option "B" ignored | ||
3823 | 4230 | # Tru64's nm complains that /dev/null is an invalid object file | ||
3824 | 4231 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | ||
3825 | 4232 | */dev/null* | *'Invalid file or object type'*) | ||
3826 | 4233 | lt_cv_path_NM="$tmp_nm -B" | ||
3827 | 4234 | break | ||
3828 | 4235 | ;; | ||
3829 | 4236 | *) | ||
3830 | 4237 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | ||
3831 | 4238 | */dev/null*) | ||
3832 | 4239 | lt_cv_path_NM="$tmp_nm -p" | ||
3833 | 4240 | break | ||
3834 | 4241 | ;; | ||
3835 | 4242 | *) | ||
3836 | 4243 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
3837 | 4244 | continue # so that we can try to find one that supports BSD flags | ||
3838 | 4245 | ;; | ||
3839 | 4246 | esac | ||
3840 | 4247 | ;; | ||
3841 | 4248 | esac | ||
3842 | 4249 | fi | ||
3843 | 4250 | done | ||
3844 | 4251 | IFS="$lt_save_ifs" | ||
3845 | 4252 | done | ||
3846 | 4253 | : ${lt_cv_path_NM=no} | ||
3847 | 4254 | fi]) | ||
3848 | 4255 | if test "$lt_cv_path_NM" != "no"; then | ||
3849 | 4256 | NM="$lt_cv_path_NM" | ||
3850 | 4257 | else | ||
3851 | 4258 | # Didn't find any BSD compatible name lister, look for dumpbin. | ||
3852 | 4259 | if test -n "$DUMPBIN"; then : | ||
3853 | 4260 | # Let the user override the test. | ||
3854 | 4261 | else | ||
3855 | 4262 | AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) | ||
3856 | 4263 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | ||
3857 | 4264 | *COFF*) | ||
3858 | 4265 | DUMPBIN="$DUMPBIN -symbols" | ||
3859 | 4266 | ;; | ||
3860 | 4267 | *) | ||
3861 | 4268 | DUMPBIN=: | ||
3862 | 4269 | ;; | ||
3863 | 4270 | esac | ||
3864 | 4271 | fi | ||
3865 | 4272 | AC_SUBST([DUMPBIN]) | ||
3866 | 4273 | if test "$DUMPBIN" != ":"; then | ||
3867 | 4274 | NM="$DUMPBIN" | ||
3868 | 4275 | fi | ||
3869 | 4276 | fi | ||
3870 | 4277 | test -z "$NM" && NM=nm | ||
3871 | 4278 | AC_SUBST([NM]) | ||
3872 | 4279 | _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl | ||
3873 | 4280 | |||
3874 | 4281 | AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], | ||
3875 | 4282 | [lt_cv_nm_interface="BSD nm" | ||
3876 | 4283 | echo "int some_variable = 0;" > conftest.$ac_ext | ||
3877 | 4284 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) | ||
3878 | 4285 | (eval "$ac_compile" 2>conftest.err) | ||
3879 | 4286 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
3880 | 4287 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) | ||
3881 | 4288 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | ||
3882 | 4289 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
3883 | 4290 | (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) | ||
3884 | 4291 | cat conftest.out >&AS_MESSAGE_LOG_FD | ||
3885 | 4292 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | ||
3886 | 4293 | lt_cv_nm_interface="MS dumpbin" | ||
3887 | 4294 | fi | ||
3888 | 4295 | rm -f conftest*]) | ||
3889 | 4296 | ])# LT_PATH_NM | ||
3890 | 4297 | |||
3891 | 4298 | # Old names: | ||
3892 | 4299 | AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) | ||
3893 | 4300 | AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) | ||
3894 | 4301 | dnl aclocal-1.4 backwards compatibility: | ||
3895 | 4302 | dnl AC_DEFUN([AM_PROG_NM], []) | ||
3896 | 4303 | dnl AC_DEFUN([AC_PROG_NM], []) | ||
3897 | 4304 | |||
3898 | 4305 | # _LT_CHECK_SHAREDLIB_FROM_LINKLIB | ||
3899 | 4306 | # -------------------------------- | ||
3900 | 4307 | # how to determine the name of the shared library | ||
3901 | 4308 | # associated with a specific link library. | ||
3902 | 4309 | # -- PORTME fill in with the dynamic library characteristics | ||
3903 | 4310 | m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], | ||
3904 | 4311 | [m4_require([_LT_DECL_EGREP]) | ||
3905 | 4312 | m4_require([_LT_DECL_OBJDUMP]) | ||
3906 | 4313 | m4_require([_LT_DECL_DLLTOOL]) | ||
3907 | 4314 | AC_CACHE_CHECK([how to associate runtime and link libraries], | ||
3908 | 4315 | lt_cv_sharedlib_from_linklib_cmd, | ||
3909 | 4316 | [lt_cv_sharedlib_from_linklib_cmd='unknown' | ||
3910 | 4317 | |||
3911 | 4318 | case $host_os in | ||
3912 | 4319 | cygwin* | mingw* | pw32* | cegcc*) | ||
3913 | 4320 | # two different shell functions defined in ltmain.sh | ||
3914 | 4321 | # decide which to use based on capabilities of $DLLTOOL | ||
3915 | 4322 | case `$DLLTOOL --help 2>&1` in | ||
3916 | 4323 | *--identify-strict*) | ||
3917 | 4324 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | ||
3918 | 4325 | ;; | ||
3919 | 4326 | *) | ||
3920 | 4327 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | ||
3921 | 4328 | ;; | ||
3922 | 4329 | esac | ||
3923 | 4330 | ;; | ||
3924 | 4331 | *) | ||
3925 | 4332 | # fallback: assume linklib IS sharedlib | ||
3926 | 4333 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" | ||
3927 | 4334 | ;; | ||
3928 | 4335 | esac | ||
3929 | 4336 | ]) | ||
3930 | 4337 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | ||
3931 | 4338 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | ||
3932 | 4339 | |||
3933 | 4340 | _LT_DECL([], [sharedlib_from_linklib_cmd], [1], | ||
3934 | 4341 | [Command to associate shared and link libraries]) | ||
3935 | 4342 | ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB | ||
3936 | 4343 | |||
3937 | 4344 | |||
3938 | 4345 | # _LT_PATH_MANIFEST_TOOL | ||
3939 | 4346 | # ---------------------- | ||
3940 | 4347 | # locate the manifest tool | ||
3941 | 4348 | m4_defun([_LT_PATH_MANIFEST_TOOL], | ||
3942 | 4349 | [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) | ||
3943 | 4350 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | ||
3944 | 4351 | AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], | ||
3945 | 4352 | [lt_cv_path_mainfest_tool=no | ||
3946 | 4353 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD | ||
3947 | 4354 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | ||
3948 | 4355 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
3949 | 4356 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | ||
3950 | 4357 | lt_cv_path_mainfest_tool=yes | ||
3951 | 4358 | fi | ||
3952 | 4359 | rm -f conftest*]) | ||
3953 | 4360 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | ||
3954 | 4361 | MANIFEST_TOOL=: | ||
3955 | 4362 | fi | ||
3956 | 4363 | _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl | ||
3957 | 4364 | ])# _LT_PATH_MANIFEST_TOOL | ||
3958 | 4365 | |||
3959 | 4366 | |||
3960 | 4367 | # LT_LIB_M | ||
3961 | 4368 | # -------- | ||
3962 | 4369 | # check for math library | ||
3963 | 4370 | AC_DEFUN([LT_LIB_M], | ||
3964 | 4371 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
3965 | 4372 | LIBM= | ||
3966 | 4373 | case $host in | ||
3967 | 4374 | *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) | ||
3968 | 4375 | # These system don't have libm, or don't need it | ||
3969 | 4376 | ;; | ||
3970 | 4377 | *-ncr-sysv4.3*) | ||
3971 | 4378 | AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") | ||
3972 | 4379 | AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") | ||
3973 | 4380 | ;; | ||
3974 | 4381 | *) | ||
3975 | 4382 | AC_CHECK_LIB(m, cos, LIBM="-lm") | ||
3976 | 4383 | ;; | ||
3977 | 4384 | esac | ||
3978 | 4385 | AC_SUBST([LIBM]) | ||
3979 | 4386 | ])# LT_LIB_M | ||
3980 | 4387 | |||
3981 | 4388 | # Old name: | ||
3982 | 4389 | AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) | ||
3983 | 4390 | dnl aclocal-1.4 backwards compatibility: | ||
3984 | 4391 | dnl AC_DEFUN([AC_CHECK_LIBM], []) | ||
3985 | 4392 | |||
3986 | 4393 | |||
3987 | 4394 | # _LT_COMPILER_NO_RTTI([TAGNAME]) | ||
3988 | 4395 | # ------------------------------- | ||
3989 | 4396 | m4_defun([_LT_COMPILER_NO_RTTI], | ||
3990 | 4397 | [m4_require([_LT_TAG_COMPILER])dnl | ||
3991 | 4398 | |||
3992 | 4399 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | ||
3993 | 4400 | |||
3994 | 4401 | if test "$GCC" = yes; then | ||
3995 | 4402 | case $cc_basename in | ||
3996 | 4403 | nvcc*) | ||
3997 | 4404 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; | ||
3998 | 4405 | *) | ||
3999 | 4406 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; | ||
4000 | 4407 | esac | ||
4001 | 4408 | |||
4002 | 4409 | _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], | ||
4003 | 4410 | lt_cv_prog_compiler_rtti_exceptions, | ||
4004 | 4411 | [-fno-rtti -fno-exceptions], [], | ||
4005 | 4412 | [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) | ||
4006 | 4413 | fi | ||
4007 | 4414 | _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], | ||
4008 | 4415 | [Compiler flag to turn off builtin functions]) | ||
4009 | 4416 | ])# _LT_COMPILER_NO_RTTI | ||
4010 | 4417 | |||
4011 | 4418 | |||
4012 | 4419 | # _LT_CMD_GLOBAL_SYMBOLS | ||
4013 | 4420 | # ---------------------- | ||
4014 | 4421 | m4_defun([_LT_CMD_GLOBAL_SYMBOLS], | ||
4015 | 4422 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
4016 | 4423 | AC_REQUIRE([AC_PROG_CC])dnl | ||
4017 | 4424 | AC_REQUIRE([AC_PROG_AWK])dnl | ||
4018 | 4425 | AC_REQUIRE([LT_PATH_NM])dnl | ||
4019 | 4426 | AC_REQUIRE([LT_PATH_LD])dnl | ||
4020 | 4427 | m4_require([_LT_DECL_SED])dnl | ||
4021 | 4428 | m4_require([_LT_DECL_EGREP])dnl | ||
4022 | 4429 | m4_require([_LT_TAG_COMPILER])dnl | ||
4023 | 4430 | |||
4024 | 4431 | # Check for command to grab the raw symbol name followed by C symbol from nm. | ||
4025 | 4432 | AC_MSG_CHECKING([command to parse $NM output from $compiler object]) | ||
4026 | 4433 | AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], | ||
4027 | 4434 | [ | ||
4028 | 4435 | # These are sane defaults that work on at least a few old systems. | ||
4029 | 4436 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | ||
4030 | 4437 | |||
4031 | 4438 | # Character class describing NM global symbol codes. | ||
4032 | 4439 | symcode='[[BCDEGRST]]' | ||
4033 | 4440 | |||
4034 | 4441 | # Regexp to match symbols that can be accessed directly from C. | ||
4035 | 4442 | sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' | ||
4036 | 4443 | |||
4037 | 4444 | # Define system-specific variables. | ||
4038 | 4445 | case $host_os in | ||
4039 | 4446 | aix*) | ||
4040 | 4447 | symcode='[[BCDT]]' | ||
4041 | 4448 | ;; | ||
4042 | 4449 | cygwin* | mingw* | pw32* | cegcc*) | ||
4043 | 4450 | symcode='[[ABCDGISTW]]' | ||
4044 | 4451 | ;; | ||
4045 | 4452 | hpux*) | ||
4046 | 4453 | if test "$host_cpu" = ia64; then | ||
4047 | 4454 | symcode='[[ABCDEGRST]]' | ||
4048 | 4455 | fi | ||
4049 | 4456 | ;; | ||
4050 | 4457 | irix* | nonstopux*) | ||
4051 | 4458 | symcode='[[BCDEGRST]]' | ||
4052 | 4459 | ;; | ||
4053 | 4460 | osf*) | ||
4054 | 4461 | symcode='[[BCDEGQRST]]' | ||
4055 | 4462 | ;; | ||
4056 | 4463 | solaris*) | ||
4057 | 4464 | symcode='[[BDRT]]' | ||
4058 | 4465 | ;; | ||
4059 | 4466 | sco3.2v5*) | ||
4060 | 4467 | symcode='[[DT]]' | ||
4061 | 4468 | ;; | ||
4062 | 4469 | sysv4.2uw2*) | ||
4063 | 4470 | symcode='[[DT]]' | ||
4064 | 4471 | ;; | ||
4065 | 4472 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | ||
4066 | 4473 | symcode='[[ABDT]]' | ||
4067 | 4474 | ;; | ||
4068 | 4475 | sysv4) | ||
4069 | 4476 | symcode='[[DFNSTU]]' | ||
4070 | 4477 | ;; | ||
4071 | 4478 | esac | ||
4072 | 4479 | |||
4073 | 4480 | # If we're using GNU nm, then use its standard symbol codes. | ||
4074 | 4481 | case `$NM -V 2>&1` in | ||
4075 | 4482 | *GNU* | *'with BFD'*) | ||
4076 | 4483 | symcode='[[ABCDGIRSTW]]' ;; | ||
4077 | 4484 | esac | ||
4078 | 4485 | |||
4079 | 4486 | # Transform an extracted symbol line into a proper C declaration. | ||
4080 | 4487 | # Some systems (esp. on ia64) link data and code symbols differently, | ||
4081 | 4488 | # so use this general approach. | ||
4082 | 4489 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
4083 | 4490 | |||
4084 | 4491 | # Transform an extracted symbol line into symbol name and symbol address | ||
4085 | 4492 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
4086 | 4493 | 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'" | ||
4087 | 4494 | |||
4088 | 4495 | # Handle CRLF in mingw tool chain | ||
4089 | 4496 | opt_cr= | ||
4090 | 4497 | case $build_os in | ||
4091 | 4498 | mingw*) | ||
4092 | 4499 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | ||
4093 | 4500 | ;; | ||
4094 | 4501 | esac | ||
4095 | 4502 | |||
4096 | 4503 | # Try without a prefix underscore, then with it. | ||
4097 | 4504 | for ac_symprfx in "" "_"; do | ||
4098 | 4505 | |||
4099 | 4506 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | ||
4100 | 4507 | symxfrm="\\1 $ac_symprfx\\2 \\2" | ||
4101 | 4508 | |||
4102 | 4509 | # Write the raw and C identifiers. | ||
4103 | 4510 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
4104 | 4511 | # Fake it for dumpbin and say T for any non-static function | ||
4105 | 4512 | # and D for any global variable. | ||
4106 | 4513 | # Also find C++ and __fastcall symbols from MSVC++, | ||
4107 | 4514 | # which start with @ or ?. | ||
4108 | 4515 | lt_cv_sys_global_symbol_pipe="$AWK ['"\ | ||
4109 | 4516 | " {last_section=section; section=\$ 3};"\ | ||
4110 | 4517 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | ||
4111 | 4518 | " \$ 0!~/External *\|/{next};"\ | ||
4112 | 4519 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | ||
4113 | 4520 | " {if(hide[section]) next};"\ | ||
4114 | 4521 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | ||
4115 | 4522 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | ||
4116 | 4523 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | ||
4117 | 4524 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | ||
4118 | 4525 | " ' prfx=^$ac_symprfx]" | ||
4119 | 4526 | else | ||
4120 | 4527 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
4121 | 4528 | fi | ||
4122 | 4529 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | ||
4123 | 4530 | |||
4124 | 4531 | # Check to see that the pipe works correctly. | ||
4125 | 4532 | pipe_works=no | ||
4126 | 4533 | |||
4127 | 4534 | rm -f conftest* | ||
4128 | 4535 | cat > conftest.$ac_ext <<_LT_EOF | ||
4129 | 4536 | #ifdef __cplusplus | ||
4130 | 4537 | extern "C" { | ||
4131 | 4538 | #endif | ||
4132 | 4539 | char nm_test_var; | ||
4133 | 4540 | void nm_test_func(void); | ||
4134 | 4541 | void nm_test_func(void){} | ||
4135 | 4542 | #ifdef __cplusplus | ||
4136 | 4543 | } | ||
4137 | 4544 | #endif | ||
4138 | 4545 | int main(){nm_test_var='a';nm_test_func();return(0);} | ||
4139 | 4546 | _LT_EOF | ||
4140 | 4547 | |||
4141 | 4548 | if AC_TRY_EVAL(ac_compile); then | ||
4142 | 4549 | # Now try to grab the symbols. | ||
4143 | 4550 | nlist=conftest.nm | ||
4144 | 4551 | if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then | ||
4145 | 4552 | # Try sorting and uniquifying the output. | ||
4146 | 4553 | if sort "$nlist" | uniq > "$nlist"T; then | ||
4147 | 4554 | mv -f "$nlist"T "$nlist" | ||
4148 | 4555 | else | ||
4149 | 4556 | rm -f "$nlist"T | ||
4150 | 4557 | fi | ||
4151 | 4558 | |||
4152 | 4559 | # Make sure that we snagged all the symbols we need. | ||
4153 | 4560 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
4154 | 4561 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
4155 | 4562 | cat <<_LT_EOF > conftest.$ac_ext | ||
4156 | 4563 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | ||
4157 | 4564 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | ||
4158 | 4565 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | ||
4159 | 4566 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | ||
4160 | 4567 | # define LT@&t@_DLSYM_CONST | ||
4161 | 4568 | #elif defined(__osf__) | ||
4162 | 4569 | /* This system does not cope well with relocations in const data. */ | ||
4163 | 4570 | # define LT@&t@_DLSYM_CONST | ||
4164 | 4571 | #else | ||
4165 | 4572 | # define LT@&t@_DLSYM_CONST const | ||
4166 | 4573 | #endif | ||
4167 | 4574 | |||
4168 | 4575 | #ifdef __cplusplus | ||
4169 | 4576 | extern "C" { | ||
4170 | 4577 | #endif | ||
4171 | 4578 | |||
4172 | 4579 | _LT_EOF | ||
4173 | 4580 | # Now generate the symbol file. | ||
4174 | 4581 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | ||
4175 | 4582 | |||
4176 | 4583 | cat <<_LT_EOF >> conftest.$ac_ext | ||
4177 | 4584 | |||
4178 | 4585 | /* The mapping between symbol names and symbols. */ | ||
4179 | 4586 | LT@&t@_DLSYM_CONST struct { | ||
4180 | 4587 | const char *name; | ||
4181 | 4588 | void *address; | ||
4182 | 4589 | } | ||
4183 | 4590 | lt__PROGRAM__LTX_preloaded_symbols[[]] = | ||
4184 | 4591 | { | ||
4185 | 4592 | { "@PROGRAM@", (void *) 0 }, | ||
4186 | 4593 | _LT_EOF | ||
4187 | 4594 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | ||
4188 | 4595 | cat <<\_LT_EOF >> conftest.$ac_ext | ||
4189 | 4596 | {0, (void *) 0} | ||
4190 | 4597 | }; | ||
4191 | 4598 | |||
4192 | 4599 | /* This works around a problem in FreeBSD linker */ | ||
4193 | 4600 | #ifdef FREEBSD_WORKAROUND | ||
4194 | 4601 | static const void *lt_preloaded_setup() { | ||
4195 | 4602 | return lt__PROGRAM__LTX_preloaded_symbols; | ||
4196 | 4603 | } | ||
4197 | 4604 | #endif | ||
4198 | 4605 | |||
4199 | 4606 | #ifdef __cplusplus | ||
4200 | 4607 | } | ||
4201 | 4608 | #endif | ||
4202 | 4609 | _LT_EOF | ||
4203 | 4610 | # Now try linking the two files. | ||
4204 | 4611 | mv conftest.$ac_objext conftstm.$ac_objext | ||
4205 | 4612 | lt_globsym_save_LIBS=$LIBS | ||
4206 | 4613 | lt_globsym_save_CFLAGS=$CFLAGS | ||
4207 | 4614 | LIBS="conftstm.$ac_objext" | ||
4208 | 4615 | CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" | ||
4209 | 4616 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then | ||
4210 | 4617 | pipe_works=yes | ||
4211 | 4618 | fi | ||
4212 | 4619 | LIBS=$lt_globsym_save_LIBS | ||
4213 | 4620 | CFLAGS=$lt_globsym_save_CFLAGS | ||
4214 | 4621 | else | ||
4215 | 4622 | echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD | ||
4216 | 4623 | fi | ||
4217 | 4624 | else | ||
4218 | 4625 | echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD | ||
4219 | 4626 | fi | ||
4220 | 4627 | else | ||
4221 | 4628 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD | ||
4222 | 4629 | fi | ||
4223 | 4630 | else | ||
4224 | 4631 | echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD | ||
4225 | 4632 | cat conftest.$ac_ext >&5 | ||
4226 | 4633 | fi | ||
4227 | 4634 | rm -rf conftest* conftst* | ||
4228 | 4635 | |||
4229 | 4636 | # Do not use the global_symbol_pipe unless it works. | ||
4230 | 4637 | if test "$pipe_works" = yes; then | ||
4231 | 4638 | break | ||
4232 | 4639 | else | ||
4233 | 4640 | lt_cv_sys_global_symbol_pipe= | ||
4234 | 4641 | fi | ||
4235 | 4642 | done | ||
4236 | 4643 | ]) | ||
4237 | 4644 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | ||
4238 | 4645 | lt_cv_sys_global_symbol_to_cdecl= | ||
4239 | 4646 | fi | ||
4240 | 4647 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | ||
4241 | 4648 | AC_MSG_RESULT(failed) | ||
4242 | 4649 | else | ||
4243 | 4650 | AC_MSG_RESULT(ok) | ||
4244 | 4651 | fi | ||
4245 | 4652 | |||
4246 | 4653 | # Response file support. | ||
4247 | 4654 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
4248 | 4655 | nm_file_list_spec='@' | ||
4249 | 4656 | elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then | ||
4250 | 4657 | nm_file_list_spec='@' | ||
4251 | 4658 | fi | ||
4252 | 4659 | |||
4253 | 4660 | _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], | ||
4254 | 4661 | [Take the output of nm and produce a listing of raw symbols and C names]) | ||
4255 | 4662 | _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], | ||
4256 | 4663 | [Transform the output of nm in a proper C declaration]) | ||
4257 | 4664 | _LT_DECL([global_symbol_to_c_name_address], | ||
4258 | 4665 | [lt_cv_sys_global_symbol_to_c_name_address], [1], | ||
4259 | 4666 | [Transform the output of nm in a C name address pair]) | ||
4260 | 4667 | _LT_DECL([global_symbol_to_c_name_address_lib_prefix], | ||
4261 | 4668 | [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], | ||
4262 | 4669 | [Transform the output of nm in a C name address pair when lib prefix is needed]) | ||
4263 | 4670 | _LT_DECL([], [nm_file_list_spec], [1], | ||
4264 | 4671 | [Specify filename containing input files for $NM]) | ||
4265 | 4672 | ]) # _LT_CMD_GLOBAL_SYMBOLS | ||
4266 | 4673 | |||
4267 | 4674 | |||
4268 | 4675 | # _LT_COMPILER_PIC([TAGNAME]) | ||
4269 | 4676 | # --------------------------- | ||
4270 | 4677 | m4_defun([_LT_COMPILER_PIC], | ||
4271 | 4678 | [m4_require([_LT_TAG_COMPILER])dnl | ||
4272 | 4679 | _LT_TAGVAR(lt_prog_compiler_wl, $1)= | ||
4273 | 4680 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= | ||
4274 | 4681 | _LT_TAGVAR(lt_prog_compiler_static, $1)= | ||
4275 | 4682 | |||
4276 | 4683 | m4_if([$1], [CXX], [ | ||
4277 | 4684 | # C++ specific cases for pic, static, wl, etc. | ||
4278 | 4685 | if test "$GXX" = yes; then | ||
4279 | 4686 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4280 | 4687 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
4281 | 4688 | |||
4282 | 4689 | case $host_os in | ||
4283 | 4690 | aix*) | ||
4284 | 4691 | # All AIX code is PIC. | ||
4285 | 4692 | if test "$host_cpu" = ia64; then | ||
4286 | 4693 | # AIX 5 now supports IA64 processor | ||
4287 | 4694 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4288 | 4695 | fi | ||
4289 | 4696 | ;; | ||
4290 | 4697 | |||
4291 | 4698 | amigaos*) | ||
4292 | 4699 | case $host_cpu in | ||
4293 | 4700 | powerpc) | ||
4294 | 4701 | # see comment about AmigaOS4 .so support | ||
4295 | 4702 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4296 | 4703 | ;; | ||
4297 | 4704 | m68k) | ||
4298 | 4705 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
4299 | 4706 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
4300 | 4707 | # like `-m68040'. | ||
4301 | 4708 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' | ||
4302 | 4709 | ;; | ||
4303 | 4710 | esac | ||
4304 | 4711 | ;; | ||
4305 | 4712 | |||
4306 | 4713 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
4307 | 4714 | # PIC is the default for these OSes. | ||
4308 | 4715 | ;; | ||
4309 | 4716 | mingw* | cygwin* | os2* | pw32* | cegcc*) | ||
4310 | 4717 | # This hack is so that the source file can tell whether it is being | ||
4311 | 4718 | # built for inclusion in a dll (and should export symbols for example). | ||
4312 | 4719 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | ||
4313 | 4720 | # (--disable-auto-import) libraries | ||
4314 | 4721 | m4_if([$1], [GCJ], [], | ||
4315 | 4722 | [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | ||
4316 | 4723 | ;; | ||
4317 | 4724 | darwin* | rhapsody*) | ||
4318 | 4725 | # PIC is the default on this platform | ||
4319 | 4726 | # Common symbols not allowed in MH_DYLIB files | ||
4320 | 4727 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | ||
4321 | 4728 | ;; | ||
4322 | 4729 | *djgpp*) | ||
4323 | 4730 | # DJGPP does not support shared libraries at all | ||
4324 | 4731 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= | ||
4325 | 4732 | ;; | ||
4326 | 4733 | haiku*) | ||
4327 | 4734 | # PIC is the default for Haiku. | ||
4328 | 4735 | # The "-static" flag exists, but is broken. | ||
4329 | 4736 | _LT_TAGVAR(lt_prog_compiler_static, $1)= | ||
4330 | 4737 | ;; | ||
4331 | 4738 | interix[[3-9]]*) | ||
4332 | 4739 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
4333 | 4740 | # Instead, we relocate shared libraries at runtime. | ||
4334 | 4741 | ;; | ||
4335 | 4742 | sysv4*MP*) | ||
4336 | 4743 | if test -d /usr/nec; then | ||
4337 | 4744 | _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | ||
4338 | 4745 | fi | ||
4339 | 4746 | ;; | ||
4340 | 4747 | hpux*) | ||
4341 | 4748 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | ||
4342 | 4749 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | ||
4343 | 4750 | # sets the default TLS model and affects inlining. | ||
4344 | 4751 | case $host_cpu in | ||
4345 | 4752 | hppa*64*) | ||
4346 | 4753 | ;; | ||
4347 | 4754 | *) | ||
4348 | 4755 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4349 | 4756 | ;; | ||
4350 | 4757 | esac | ||
4351 | 4758 | ;; | ||
4352 | 4759 | *qnx* | *nto*) | ||
4353 | 4760 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
4354 | 4761 | # it will coredump. | ||
4355 | 4762 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | ||
4356 | 4763 | ;; | ||
4357 | 4764 | *) | ||
4358 | 4765 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4359 | 4766 | ;; | ||
4360 | 4767 | esac | ||
4361 | 4768 | else | ||
4362 | 4769 | case $host_os in | ||
4363 | 4770 | aix[[4-9]]*) | ||
4364 | 4771 | # All AIX code is PIC. | ||
4365 | 4772 | if test "$host_cpu" = ia64; then | ||
4366 | 4773 | # AIX 5 now supports IA64 processor | ||
4367 | 4774 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4368 | 4775 | else | ||
4369 | 4776 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | ||
4370 | 4777 | fi | ||
4371 | 4778 | ;; | ||
4372 | 4779 | chorus*) | ||
4373 | 4780 | case $cc_basename in | ||
4374 | 4781 | cxch68*) | ||
4375 | 4782 | # Green Hills C++ Compiler | ||
4376 | 4783 | # _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" | ||
4377 | 4784 | ;; | ||
4378 | 4785 | esac | ||
4379 | 4786 | ;; | ||
4380 | 4787 | mingw* | cygwin* | os2* | pw32* | cegcc*) | ||
4381 | 4788 | # This hack is so that the source file can tell whether it is being | ||
4382 | 4789 | # built for inclusion in a dll (and should export symbols for example). | ||
4383 | 4790 | m4_if([$1], [GCJ], [], | ||
4384 | 4791 | [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | ||
4385 | 4792 | ;; | ||
4386 | 4793 | dgux*) | ||
4387 | 4794 | case $cc_basename in | ||
4388 | 4795 | ec++*) | ||
4389 | 4796 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4390 | 4797 | ;; | ||
4391 | 4798 | ghcx*) | ||
4392 | 4799 | # Green Hills C++ Compiler | ||
4393 | 4800 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
4394 | 4801 | ;; | ||
4395 | 4802 | *) | ||
4396 | 4803 | ;; | ||
4397 | 4804 | esac | ||
4398 | 4805 | ;; | ||
4399 | 4806 | freebsd* | dragonfly*) | ||
4400 | 4807 | # FreeBSD uses GNU C++ | ||
4401 | 4808 | ;; | ||
4402 | 4809 | hpux9* | hpux10* | hpux11*) | ||
4403 | 4810 | case $cc_basename in | ||
4404 | 4811 | CC*) | ||
4405 | 4812 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4406 | 4813 | _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | ||
4407 | 4814 | if test "$host_cpu" != ia64; then | ||
4408 | 4815 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | ||
4409 | 4816 | fi | ||
4410 | 4817 | ;; | ||
4411 | 4818 | aCC*) | ||
4412 | 4819 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4413 | 4820 | _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | ||
4414 | 4821 | case $host_cpu in | ||
4415 | 4822 | hppa*64*|ia64*) | ||
4416 | 4823 | # +Z the default | ||
4417 | 4824 | ;; | ||
4418 | 4825 | *) | ||
4419 | 4826 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | ||
4420 | 4827 | ;; | ||
4421 | 4828 | esac | ||
4422 | 4829 | ;; | ||
4423 | 4830 | *) | ||
4424 | 4831 | ;; | ||
4425 | 4832 | esac | ||
4426 | 4833 | ;; | ||
4427 | 4834 | interix*) | ||
4428 | 4835 | # This is c89, which is MS Visual C++ (no shared libs) | ||
4429 | 4836 | # Anyone wants to do a port? | ||
4430 | 4837 | ;; | ||
4431 | 4838 | irix5* | irix6* | nonstopux*) | ||
4432 | 4839 | case $cc_basename in | ||
4433 | 4840 | CC*) | ||
4434 | 4841 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4435 | 4842 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
4436 | 4843 | # CC pic flag -KPIC is the default. | ||
4437 | 4844 | ;; | ||
4438 | 4845 | *) | ||
4439 | 4846 | ;; | ||
4440 | 4847 | esac | ||
4441 | 4848 | ;; | ||
4442 | 4849 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
4443 | 4850 | case $cc_basename in | ||
4444 | 4851 | KCC*) | ||
4445 | 4852 | # KAI C++ Compiler | ||
4446 | 4853 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | ||
4447 | 4854 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4448 | 4855 | ;; | ||
4449 | 4856 | ecpc* ) | ||
4450 | 4857 | # old Intel C++ for x86_64 which still supported -KPIC. | ||
4451 | 4858 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4452 | 4859 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4453 | 4860 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
4454 | 4861 | ;; | ||
4455 | 4862 | icpc* ) | ||
4456 | 4863 | # Intel C++, used to be incompatible with GCC. | ||
4457 | 4864 | # ICC 10 doesn't accept -KPIC any more. | ||
4458 | 4865 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4459 | 4866 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4460 | 4867 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
4461 | 4868 | ;; | ||
4462 | 4869 | pgCC* | pgcpp*) | ||
4463 | 4870 | # Portland Group C++ compiler | ||
4464 | 4871 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4465 | 4872 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | ||
4466 | 4873 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4467 | 4874 | ;; | ||
4468 | 4875 | cxx*) | ||
4469 | 4876 | # Compaq C++ | ||
4470 | 4877 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
4471 | 4878 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
4472 | 4879 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= | ||
4473 | 4880 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
4474 | 4881 | ;; | ||
4475 | 4882 | xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) | ||
4476 | 4883 | # IBM XL 8.0, 9.0 on PPC and BlueGene | ||
4477 | 4884 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4478 | 4885 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' | ||
4479 | 4886 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' | ||
4480 | 4887 | ;; | ||
4481 | 4888 | *) | ||
4482 | 4889 | case `$CC -V 2>&1 | sed 5q` in | ||
4483 | 4890 | *Sun\ C*) | ||
4484 | 4891 | # Sun C++ 5.9 | ||
4485 | 4892 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4486 | 4893 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4487 | 4894 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | ||
4488 | 4895 | ;; | ||
4489 | 4896 | esac | ||
4490 | 4897 | ;; | ||
4491 | 4898 | esac | ||
4492 | 4899 | ;; | ||
4493 | 4900 | lynxos*) | ||
4494 | 4901 | ;; | ||
4495 | 4902 | m88k*) | ||
4496 | 4903 | ;; | ||
4497 | 4904 | mvs*) | ||
4498 | 4905 | case $cc_basename in | ||
4499 | 4906 | cxx*) | ||
4500 | 4907 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' | ||
4501 | 4908 | ;; | ||
4502 | 4909 | *) | ||
4503 | 4910 | ;; | ||
4504 | 4911 | esac | ||
4505 | 4912 | ;; | ||
4506 | 4913 | netbsd* | netbsdelf*-gnu) | ||
4507 | 4914 | ;; | ||
4508 | 4915 | *qnx* | *nto*) | ||
4509 | 4916 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
4510 | 4917 | # it will coredump. | ||
4511 | 4918 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | ||
4512 | 4919 | ;; | ||
4513 | 4920 | osf3* | osf4* | osf5*) | ||
4514 | 4921 | case $cc_basename in | ||
4515 | 4922 | KCC*) | ||
4516 | 4923 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | ||
4517 | 4924 | ;; | ||
4518 | 4925 | RCC*) | ||
4519 | 4926 | # Rational C++ 2.4.1 | ||
4520 | 4927 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
4521 | 4928 | ;; | ||
4522 | 4929 | cxx*) | ||
4523 | 4930 | # Digital/Compaq C++ | ||
4524 | 4931 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4525 | 4932 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
4526 | 4933 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
4527 | 4934 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= | ||
4528 | 4935 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
4529 | 4936 | ;; | ||
4530 | 4937 | *) | ||
4531 | 4938 | ;; | ||
4532 | 4939 | esac | ||
4533 | 4940 | ;; | ||
4534 | 4941 | psos*) | ||
4535 | 4942 | ;; | ||
4536 | 4943 | solaris*) | ||
4537 | 4944 | case $cc_basename in | ||
4538 | 4945 | CC* | sunCC*) | ||
4539 | 4946 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
4540 | 4947 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4541 | 4948 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4542 | 4949 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | ||
4543 | 4950 | ;; | ||
4544 | 4951 | gcx*) | ||
4545 | 4952 | # Green Hills C++ Compiler | ||
4546 | 4953 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | ||
4547 | 4954 | ;; | ||
4548 | 4955 | *) | ||
4549 | 4956 | ;; | ||
4550 | 4957 | esac | ||
4551 | 4958 | ;; | ||
4552 | 4959 | sunos4*) | ||
4553 | 4960 | case $cc_basename in | ||
4554 | 4961 | CC*) | ||
4555 | 4962 | # Sun C++ 4.x | ||
4556 | 4963 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
4557 | 4964 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4558 | 4965 | ;; | ||
4559 | 4966 | lcc*) | ||
4560 | 4967 | # Lucid | ||
4561 | 4968 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
4562 | 4969 | ;; | ||
4563 | 4970 | *) | ||
4564 | 4971 | ;; | ||
4565 | 4972 | esac | ||
4566 | 4973 | ;; | ||
4567 | 4974 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
4568 | 4975 | case $cc_basename in | ||
4569 | 4976 | CC*) | ||
4570 | 4977 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4571 | 4978 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4572 | 4979 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4573 | 4980 | ;; | ||
4574 | 4981 | esac | ||
4575 | 4982 | ;; | ||
4576 | 4983 | tandem*) | ||
4577 | 4984 | case $cc_basename in | ||
4578 | 4985 | NCC*) | ||
4579 | 4986 | # NonStop-UX NCC 3.20 | ||
4580 | 4987 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4581 | 4988 | ;; | ||
4582 | 4989 | *) | ||
4583 | 4990 | ;; | ||
4584 | 4991 | esac | ||
4585 | 4992 | ;; | ||
4586 | 4993 | vxworks*) | ||
4587 | 4994 | ;; | ||
4588 | 4995 | *) | ||
4589 | 4996 | _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | ||
4590 | 4997 | ;; | ||
4591 | 4998 | esac | ||
4592 | 4999 | fi | ||
4593 | 5000 | ], | ||
4594 | 5001 | [ | ||
4595 | 5002 | if test "$GCC" = yes; then | ||
4596 | 5003 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4597 | 5004 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
4598 | 5005 | |||
4599 | 5006 | case $host_os in | ||
4600 | 5007 | aix*) | ||
4601 | 5008 | # All AIX code is PIC. | ||
4602 | 5009 | if test "$host_cpu" = ia64; then | ||
4603 | 5010 | # AIX 5 now supports IA64 processor | ||
4604 | 5011 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4605 | 5012 | fi | ||
4606 | 5013 | ;; | ||
4607 | 5014 | |||
4608 | 5015 | amigaos*) | ||
4609 | 5016 | case $host_cpu in | ||
4610 | 5017 | powerpc) | ||
4611 | 5018 | # see comment about AmigaOS4 .so support | ||
4612 | 5019 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4613 | 5020 | ;; | ||
4614 | 5021 | m68k) | ||
4615 | 5022 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
4616 | 5023 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
4617 | 5024 | # like `-m68040'. | ||
4618 | 5025 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' | ||
4619 | 5026 | ;; | ||
4620 | 5027 | esac | ||
4621 | 5028 | ;; | ||
4622 | 5029 | |||
4623 | 5030 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
4624 | 5031 | # PIC is the default for these OSes. | ||
4625 | 5032 | ;; | ||
4626 | 5033 | |||
4627 | 5034 | mingw* | cygwin* | pw32* | os2* | cegcc*) | ||
4628 | 5035 | # This hack is so that the source file can tell whether it is being | ||
4629 | 5036 | # built for inclusion in a dll (and should export symbols for example). | ||
4630 | 5037 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | ||
4631 | 5038 | # (--disable-auto-import) libraries | ||
4632 | 5039 | m4_if([$1], [GCJ], [], | ||
4633 | 5040 | [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | ||
4634 | 5041 | ;; | ||
4635 | 5042 | |||
4636 | 5043 | darwin* | rhapsody*) | ||
4637 | 5044 | # PIC is the default on this platform | ||
4638 | 5045 | # Common symbols not allowed in MH_DYLIB files | ||
4639 | 5046 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | ||
4640 | 5047 | ;; | ||
4641 | 5048 | |||
4642 | 5049 | haiku*) | ||
4643 | 5050 | # PIC is the default for Haiku. | ||
4644 | 5051 | # The "-static" flag exists, but is broken. | ||
4645 | 5052 | _LT_TAGVAR(lt_prog_compiler_static, $1)= | ||
4646 | 5053 | ;; | ||
4647 | 5054 | |||
4648 | 5055 | hpux*) | ||
4649 | 5056 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | ||
4650 | 5057 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | ||
4651 | 5058 | # sets the default TLS model and affects inlining. | ||
4652 | 5059 | case $host_cpu in | ||
4653 | 5060 | hppa*64*) | ||
4654 | 5061 | # +Z the default | ||
4655 | 5062 | ;; | ||
4656 | 5063 | *) | ||
4657 | 5064 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4658 | 5065 | ;; | ||
4659 | 5066 | esac | ||
4660 | 5067 | ;; | ||
4661 | 5068 | |||
4662 | 5069 | interix[[3-9]]*) | ||
4663 | 5070 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
4664 | 5071 | # Instead, we relocate shared libraries at runtime. | ||
4665 | 5072 | ;; | ||
4666 | 5073 | |||
4667 | 5074 | msdosdjgpp*) | ||
4668 | 5075 | # Just because we use GCC doesn't mean we suddenly get shared libraries | ||
4669 | 5076 | # on systems that don't support them. | ||
4670 | 5077 | _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | ||
4671 | 5078 | enable_shared=no | ||
4672 | 5079 | ;; | ||
4673 | 5080 | |||
4674 | 5081 | *nto* | *qnx*) | ||
4675 | 5082 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
4676 | 5083 | # it will coredump. | ||
4677 | 5084 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | ||
4678 | 5085 | ;; | ||
4679 | 5086 | |||
4680 | 5087 | sysv4*MP*) | ||
4681 | 5088 | if test -d /usr/nec; then | ||
4682 | 5089 | _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | ||
4683 | 5090 | fi | ||
4684 | 5091 | ;; | ||
4685 | 5092 | |||
4686 | 5093 | *) | ||
4687 | 5094 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4688 | 5095 | ;; | ||
4689 | 5096 | esac | ||
4690 | 5097 | |||
4691 | 5098 | case $cc_basename in | ||
4692 | 5099 | nvcc*) # Cuda Compiler Driver 2.2 | ||
4693 | 5100 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' | ||
4694 | 5101 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC' | ||
4695 | 5102 | ;; | ||
4696 | 5103 | esac | ||
4697 | 5104 | else | ||
4698 | 5105 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
4699 | 5106 | case $host_os in | ||
4700 | 5107 | aix*) | ||
4701 | 5108 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4702 | 5109 | if test "$host_cpu" = ia64; then | ||
4703 | 5110 | # AIX 5 now supports IA64 processor | ||
4704 | 5111 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4705 | 5112 | else | ||
4706 | 5113 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | ||
4707 | 5114 | fi | ||
4708 | 5115 | ;; | ||
4709 | 5116 | |||
4710 | 5117 | mingw* | cygwin* | pw32* | os2* | cegcc*) | ||
4711 | 5118 | # This hack is so that the source file can tell whether it is being | ||
4712 | 5119 | # built for inclusion in a dll (and should export symbols for example). | ||
4713 | 5120 | m4_if([$1], [GCJ], [], | ||
4714 | 5121 | [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | ||
4715 | 5122 | ;; | ||
4716 | 5123 | |||
4717 | 5124 | hpux9* | hpux10* | hpux11*) | ||
4718 | 5125 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4719 | 5126 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
4720 | 5127 | # not for PA HP-UX. | ||
4721 | 5128 | case $host_cpu in | ||
4722 | 5129 | hppa*64*|ia64*) | ||
4723 | 5130 | # +Z the default | ||
4724 | 5131 | ;; | ||
4725 | 5132 | *) | ||
4726 | 5133 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | ||
4727 | 5134 | ;; | ||
4728 | 5135 | esac | ||
4729 | 5136 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | ||
4730 | 5137 | _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | ||
4731 | 5138 | ;; | ||
4732 | 5139 | |||
4733 | 5140 | irix5* | irix6* | nonstopux*) | ||
4734 | 5141 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4735 | 5142 | # PIC (with -KPIC) is the default. | ||
4736 | 5143 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
4737 | 5144 | ;; | ||
4738 | 5145 | |||
4739 | 5146 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
4740 | 5147 | case $cc_basename in | ||
4741 | 5148 | # old Intel for x86_64 which still supported -KPIC. | ||
4742 | 5149 | ecc*) | ||
4743 | 5150 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4744 | 5151 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4745 | 5152 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
4746 | 5153 | ;; | ||
4747 | 5154 | # icc used to be incompatible with GCC. | ||
4748 | 5155 | # ICC 10 doesn't accept -KPIC any more. | ||
4749 | 5156 | icc* | ifort*) | ||
4750 | 5157 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4751 | 5158 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4752 | 5159 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
4753 | 5160 | ;; | ||
4754 | 5161 | # Lahey Fortran 8.1. | ||
4755 | 5162 | lf95*) | ||
4756 | 5163 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4757 | 5164 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' | ||
4758 | 5165 | _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' | ||
4759 | 5166 | ;; | ||
4760 | 5167 | nagfor*) | ||
4761 | 5168 | # NAG Fortran compiler | ||
4762 | 5169 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' | ||
4763 | 5170 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | ||
4764 | 5171 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4765 | 5172 | ;; | ||
4766 | 5173 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | ||
4767 | 5174 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
4768 | 5175 | # which looks to be a dead project) | ||
4769 | 5176 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4770 | 5177 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | ||
4771 | 5178 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4772 | 5179 | ;; | ||
4773 | 5180 | ccc*) | ||
4774 | 5181 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4775 | 5182 | # All Alpha code is PIC. | ||
4776 | 5183 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
4777 | 5184 | ;; | ||
4778 | 5185 | xl* | bgxl* | bgf* | mpixl*) | ||
4779 | 5186 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | ||
4780 | 5187 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4781 | 5188 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' | ||
4782 | 5189 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' | ||
4783 | 5190 | ;; | ||
4784 | 5191 | *) | ||
4785 | 5192 | case `$CC -V 2>&1 | sed 5q` in | ||
4786 | 5193 | *Sun\ F* | *Sun*Fortran*) | ||
4787 | 5194 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
4788 | 5195 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4789 | 5196 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4790 | 5197 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='' | ||
4791 | 5198 | ;; | ||
4792 | 5199 | *Sun\ C*) | ||
4793 | 5200 | # Sun C 5.9 | ||
4794 | 5201 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4795 | 5202 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4796 | 5203 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4797 | 5204 | ;; | ||
4798 | 5205 | esac | ||
4799 | 5206 | ;; | ||
4800 | 5207 | esac | ||
4801 | 5208 | ;; | ||
4802 | 5209 | |||
4803 | 5210 | newsos6) | ||
4804 | 5211 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4805 | 5212 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4806 | 5213 | ;; | ||
4807 | 5214 | |||
4808 | 5215 | *nto* | *qnx*) | ||
4809 | 5216 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
4810 | 5217 | # it will coredump. | ||
4811 | 5218 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | ||
4812 | 5219 | ;; | ||
4813 | 5220 | |||
4814 | 5221 | osf3* | osf4* | osf5*) | ||
4815 | 5222 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4816 | 5223 | # All OSF/1 code is PIC. | ||
4817 | 5224 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
4818 | 5225 | ;; | ||
4819 | 5226 | |||
4820 | 5227 | rdos*) | ||
4821 | 5228 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
4822 | 5229 | ;; | ||
4823 | 5230 | |||
4824 | 5231 | solaris*) | ||
4825 | 5232 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4826 | 5233 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4827 | 5234 | case $cc_basename in | ||
4828 | 5235 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | ||
4829 | 5236 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; | ||
4830 | 5237 | *) | ||
4831 | 5238 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; | ||
4832 | 5239 | esac | ||
4833 | 5240 | ;; | ||
4834 | 5241 | |||
4835 | 5242 | sunos4*) | ||
4836 | 5243 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | ||
4837 | 5244 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | ||
4838 | 5245 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4839 | 5246 | ;; | ||
4840 | 5247 | |||
4841 | 5248 | sysv4 | sysv4.2uw2* | sysv4.3*) | ||
4842 | 5249 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4843 | 5250 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4844 | 5251 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4845 | 5252 | ;; | ||
4846 | 5253 | |||
4847 | 5254 | sysv4*MP*) | ||
4848 | 5255 | if test -d /usr/nec ;then | ||
4849 | 5256 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' | ||
4850 | 5257 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4851 | 5258 | fi | ||
4852 | 5259 | ;; | ||
4853 | 5260 | |||
4854 | 5261 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
4855 | 5262 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4856 | 5263 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4857 | 5264 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4858 | 5265 | ;; | ||
4859 | 5266 | |||
4860 | 5267 | unicos*) | ||
4861 | 5268 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4862 | 5269 | _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | ||
4863 | 5270 | ;; | ||
4864 | 5271 | |||
4865 | 5272 | uts4*) | ||
4866 | 5273 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
4867 | 5274 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4868 | 5275 | ;; | ||
4869 | 5276 | |||
4870 | 5277 | *) | ||
4871 | 5278 | _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | ||
4872 | 5279 | ;; | ||
4873 | 5280 | esac | ||
4874 | 5281 | fi | ||
4875 | 5282 | ]) | ||
4876 | 5283 | case $host_os in | ||
4877 | 5284 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
4878 | 5285 | *djgpp*) | ||
4879 | 5286 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= | ||
4880 | 5287 | ;; | ||
4881 | 5288 | *) | ||
4882 | 5289 | _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" | ||
4883 | 5290 | ;; | ||
4884 | 5291 | esac | ||
4885 | 5292 | |||
4886 | 5293 | AC_CACHE_CHECK([for $compiler option to produce PIC], | ||
4887 | 5294 | [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], | ||
4888 | 5295 | [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) | ||
4889 | 5296 | _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) | ||
4890 | 5297 | |||
4891 | 5298 | # | ||
4892 | 5299 | # Check to make sure the PIC flag actually works. | ||
4893 | 5300 | # | ||
4894 | 5301 | if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then | ||
4895 | 5302 | _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], | ||
4896 | 5303 | [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], | ||
4897 | 5304 | [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], | ||
4898 | 5305 | [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in | ||
4899 | 5306 | "" | " "*) ;; | ||
4900 | 5307 | *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; | ||
4901 | 5308 | esac], | ||
4902 | 5309 | [_LT_TAGVAR(lt_prog_compiler_pic, $1)= | ||
4903 | 5310 | _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) | ||
4904 | 5311 | fi | ||
4905 | 5312 | _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], | ||
4906 | 5313 | [Additional compiler flags for building library objects]) | ||
4907 | 5314 | |||
4908 | 5315 | _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], | ||
4909 | 5316 | [How to pass a linker flag through the compiler]) | ||
4910 | 5317 | # | ||
4911 | 5318 | # Check to make sure the static flag actually works. | ||
4912 | 5319 | # | ||
4913 | 5320 | wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" | ||
4914 | 5321 | _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], | ||
4915 | 5322 | _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), | ||
4916 | 5323 | $lt_tmp_static_flag, | ||
4917 | 5324 | [], | ||
4918 | 5325 | [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) | ||
4919 | 5326 | _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], | ||
4920 | 5327 | [Compiler flag to prevent dynamic linking]) | ||
4921 | 5328 | ])# _LT_COMPILER_PIC | ||
4922 | 5329 | |||
4923 | 5330 | |||
4924 | 5331 | # _LT_LINKER_SHLIBS([TAGNAME]) | ||
4925 | 5332 | # ---------------------------- | ||
4926 | 5333 | # See if the linker supports building shared libraries. | ||
4927 | 5334 | m4_defun([_LT_LINKER_SHLIBS], | ||
4928 | 5335 | [AC_REQUIRE([LT_PATH_LD])dnl | ||
4929 | 5336 | AC_REQUIRE([LT_PATH_NM])dnl | ||
4930 | 5337 | m4_require([_LT_PATH_MANIFEST_TOOL])dnl | ||
4931 | 5338 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
4932 | 5339 | m4_require([_LT_DECL_EGREP])dnl | ||
4933 | 5340 | m4_require([_LT_DECL_SED])dnl | ||
4934 | 5341 | m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl | ||
4935 | 5342 | m4_require([_LT_TAG_COMPILER])dnl | ||
4936 | 5343 | AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | ||
4937 | 5344 | m4_if([$1], [CXX], [ | ||
4938 | 5345 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
4939 | 5346 | _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] | ||
4940 | 5347 | case $host_os in | ||
4941 | 5348 | aix[[4-9]]*) | ||
4942 | 5349 | # If we're using GNU nm, then we don't want the "-C" option. | ||
4943 | 5350 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
4944 | 5351 | # Also, AIX nm treats weak defined symbols like other global defined | ||
4945 | 5352 | # symbols, whereas GNU nm marks them as "W". | ||
4946 | 5353 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | ||
4947 | 5354 | _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' | ||
4948 | 5355 | else | ||
4949 | 5356 | _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' | ||
4950 | 5357 | fi | ||
4951 | 5358 | ;; | ||
4952 | 5359 | pw32*) | ||
4953 | 5360 | _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" | ||
4954 | 5361 | ;; | ||
4955 | 5362 | cygwin* | mingw* | cegcc*) | ||
4956 | 5363 | case $cc_basename in | ||
4957 | 5364 | cl*) ;; | ||
4958 | 5365 | *) | ||
4959 | 5366 | _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' | ||
4960 | 5367 | _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] | ||
4961 | 5368 | ;; | ||
4962 | 5369 | esac | ||
4963 | 5370 | ;; | ||
4964 | 5371 | linux* | k*bsd*-gnu | gnu*) | ||
4965 | 5372 | _LT_TAGVAR(link_all_deplibs, $1)=no | ||
4966 | 5373 | ;; | ||
4967 | 5374 | *) | ||
4968 | 5375 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
4969 | 5376 | ;; | ||
4970 | 5377 | esac | ||
4971 | 5378 | ], [ | ||
4972 | 5379 | runpath_var= | ||
4973 | 5380 | _LT_TAGVAR(allow_undefined_flag, $1)= | ||
4974 | 5381 | _LT_TAGVAR(always_export_symbols, $1)=no | ||
4975 | 5382 | _LT_TAGVAR(archive_cmds, $1)= | ||
4976 | 5383 | _LT_TAGVAR(archive_expsym_cmds, $1)= | ||
4977 | 5384 | _LT_TAGVAR(compiler_needs_object, $1)=no | ||
4978 | 5385 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | ||
4979 | 5386 | _LT_TAGVAR(export_dynamic_flag_spec, $1)= | ||
4980 | 5387 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
4981 | 5388 | _LT_TAGVAR(hardcode_automatic, $1)=no | ||
4982 | 5389 | _LT_TAGVAR(hardcode_direct, $1)=no | ||
4983 | 5390 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no | ||
4984 | 5391 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | ||
4985 | 5392 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | ||
4986 | 5393 | _LT_TAGVAR(hardcode_libdir_separator, $1)= | ||
4987 | 5394 | _LT_TAGVAR(hardcode_minus_L, $1)=no | ||
4988 | 5395 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | ||
4989 | 5396 | _LT_TAGVAR(inherit_rpath, $1)=no | ||
4990 | 5397 | _LT_TAGVAR(link_all_deplibs, $1)=unknown | ||
4991 | 5398 | _LT_TAGVAR(module_cmds, $1)= | ||
4992 | 5399 | _LT_TAGVAR(module_expsym_cmds, $1)= | ||
4993 | 5400 | _LT_TAGVAR(old_archive_from_new_cmds, $1)= | ||
4994 | 5401 | _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= | ||
4995 | 5402 | _LT_TAGVAR(thread_safe_flag_spec, $1)= | ||
4996 | 5403 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | ||
4997 | 5404 | # include_expsyms should be a list of space-separated symbols to be *always* | ||
4998 | 5405 | # included in the symbol list | ||
4999 | 5406 | _LT_TAGVAR(include_expsyms, $1)= | ||
5000 | 5407 | # exclude_expsyms can be an extended regexp of symbols to exclude |
The diff has been truncated for viewing.