Merge lp:~dbusmenu-team/libdbusmenu/ubuntu into lp:~ubuntu-desktop/libdbusmenu/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
Reviewer Review Type Date Requested Status
Ken VanDine Pending
Review via email: mp+72909@code.launchpad.net

Description of the change

Fixing the layout of the boxes

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

Subscribers

People subscribed via source and target branches

to all changes: