~ubuntu-branches/ubuntu/trusty/gnome-do/trusty

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Christopher James Halse Rogers
  • Date: 2012-03-26 11:12:21 UTC
  • mfrom: (0.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20120326111221-1jk143fy37zxi3e4
Tags: 0.9-1
* New upstream version no longer uses deprecated internal glib headers.
  (Closes: #665537)
* [59fa37b9] Fix watch file
* [63486516] Imported Upstream version 0.9
* [8c636d84] Disable testsuite for now; requires running dbus and gconf daemons
* [e46de4b9] Remove inaccurate README.Source
* [4591d677] Add git-buildpackage configuration to default to pristine-tar

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11.3 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
 
5
# Inc.
5
6
# This file is free software; the Free Software Foundation
6
7
# gives unlimited permission to copy and/or distribute it,
7
8
# with or without modifications, as long as this notice is preserved.
305
306
              [CATOBJEXT=.mo
306
307
               DATADIRNAME=lib])
307
308
            ;;
 
309
            *-*-openbsd*)
 
310
            CATOBJEXT=.mo
 
311
            DATADIRNAME=share
 
312
            ;;
308
313
            *)
309
314
            CATOBJEXT=.mo
310
315
            DATADIRNAME=lib
499
504
 
500
505
 
501
506
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
502
 
# serial 40 IT_PROG_INTLTOOL
 
507
# serial 42 IT_PROG_INTLTOOL
503
508
AC_DEFUN([IT_PROG_INTLTOOL], [
504
509
AC_PREREQ([2.50])dnl
505
510
AC_REQUIRE([AM_NLS])dnl
512
517
    ;;
513
518
esac
514
519
 
 
520
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
521
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
 
522
INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
515
523
if test -n "$1"; then
516
524
    AC_MSG_CHECKING([for intltool >= $1])
517
 
 
518
 
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
519
 
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
520
 
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
521
 
    ]
522
525
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
523
526
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
524
527
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
531
534
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
532
535
fi
533
536
 
534
 
  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 $< [$]@' 
535
 
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
536
 
     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 $< [$]@' 
537
 
     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 $< [$]@' 
538
 
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
539
 
     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 $< [$]@' 
540
 
   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 $< [$]@' 
541
 
    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 $< [$]@' 
542
 
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
543
 
       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 $< [$]@' 
544
 
      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 $< [$]@' 
545
 
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' 
546
 
      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 $< [$]@' 
547
 
      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 $< [$]@' 
548
 
    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 $< [$]@' 
549
 
  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 $< [$]@' 
550
 
    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 $< [$]@' 
551
 
    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 $< [$]@'
552
 
   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 $< [$]@'
 
537
if test -z "$AM_DEFAULT_VERBOSITY"; then
 
538
  AM_DEFAULT_VERBOSITY=1
 
539
fi
 
540
AC_SUBST([AM_DEFAULT_VERBOSITY])
 
541
 
 
542
INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
 
543
INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
 
544
INTLTOOL__v_MERGE_0='@echo "  ITMRG " [$]@;'
 
545
AC_SUBST(INTLTOOL_V_MERGE)
 
546
AC_SUBST(INTLTOOL__v_MERGE_)
 
547
AC_SUBST(INTLTOOL__v_MERGE_0)
 
548
 
 
549
INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
 
550
intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
 
551
intltool__v_merge_options_0='-q'
 
552
AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
 
553
AC_SUBST(intltool__v_merge_options_)
 
554
AC_SUBST(intltool__v_merge_options_0)
 
555
 
 
556
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
557
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
558
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
559
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
560
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
 
561
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
562
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
563
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
564
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
565
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
566
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
567
if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
 
568
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
 
569
else
 
570
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
 
571
fi
 
572
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
573
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
574
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
575
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
576
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 
 
577
    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
 
578
   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
553
579
 
554
580
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
555
581
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
595
621
if test $? -ne 0; then
596
622
   AC_MSG_ERROR([perl 5.8.1 is required for intltool])
597
623
else
598
 
   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
 
624
   IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
599
625
   AC_MSG_RESULT([$IT_PERL_VERSION])
600
626
fi
601
627
if test "x$2" != "xno-xml"; then
694
720
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
695
721
#
696
722
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
697
 
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
698
 
#                 Inc.
 
723
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
724
#                 Foundation, Inc.
699
725
#   Written by Gordon Matzigkeit, 1996
700
726
#
701
727
# This file is free software; the Free Software Foundation gives
704
730
 
705
731
m4_define([_LT_COPYING], [dnl
706
732
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
707
 
#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
708
 
#                 Inc.
 
733
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
734
#                 Foundation, Inc.
709
735
#   Written by Gordon Matzigkeit, 1996
710
736
#
711
737
#   This file is part of GNU Libtool.
839
865
AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
840
866
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
841
867
 
 
868
_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
 
869
dnl
842
870
_LT_DECL([], [host_alias], [0], [The host system])dnl
843
871
_LT_DECL([], [host], [0])dnl
844
872
_LT_DECL([], [host_os], [0])dnl
1324
1352
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1325
1353
configured by $[0], generated by m4_PACKAGE_STRING.
1326
1354
 
1327
 
Copyright (C) 2010 Free Software Foundation, Inc.
 
1355
Copyright (C) 2011 Free Software Foundation, Inc.
1328
1356
This config.lt script is free software; the Free Software Foundation
1329
1357
gives unlimited permision to copy, distribute and modify it."
1330
1358
 
1488
1516
m4_case([$1],
1489
1517
  [C],                  [_LT_LANG(C)],
1490
1518
  [C++],                [_LT_LANG(CXX)],
 
1519
  [Go],                 [_LT_LANG(GO)],
1491
1520
  [Java],               [_LT_LANG(GCJ)],
1492
1521
  [Fortran 77],         [_LT_LANG(F77)],
1493
1522
  [Fortran],            [_LT_LANG(FC)],
1509
1538
])# _LT_LANG
1510
1539
 
1511
1540
 
 
1541
m4_ifndef([AC_PROG_GO], [
 
1542
# NOTE: This macro has been submitted for inclusion into   #
 
1543
#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
 
1544
#  a released version of Autoconf we should remove this    #
 
1545
#  macro and use it instead.                               #
 
1546
m4_defun([AC_PROG_GO],
 
1547
[AC_LANG_PUSH(Go)dnl
 
1548
AC_ARG_VAR([GOC],     [Go compiler command])dnl
 
1549
AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
 
1550
_AC_ARG_VAR_LDFLAGS()dnl
 
1551
AC_CHECK_TOOL(GOC, gccgo)
 
1552
if test -z "$GOC"; then
 
1553
  if test -n "$ac_tool_prefix"; then
 
1554
    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
 
1555
  fi
 
1556
fi
 
1557
if test -z "$GOC"; then
 
1558
  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
 
1559
fi
 
1560
])#m4_defun
 
1561
])#m4_ifndef
 
1562
 
 
1563
 
1512
1564
# _LT_LANG_DEFAULT_CONFIG
1513
1565
# -----------------------
1514
1566
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1539
1591
       m4_ifdef([LT_PROG_GCJ],
1540
1592
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1541
1593
 
 
1594
AC_PROVIDE_IFELSE([AC_PROG_GO],
 
1595
  [LT_LANG(GO)],
 
1596
  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
 
1597
 
1542
1598
AC_PROVIDE_IFELSE([LT_PROG_RC],
1543
1599
  [LT_LANG(RC)],
1544
1600
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1641
1697
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1642
1698
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1643
1699
        _lt_result=$?
1644
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
1700
        # If there is a non-empty error log, and "single_module"
 
1701
        # appears in it, assume the flag caused a linker warning
 
1702
        if test -s conftest.err && $GREP single_module conftest.err; then
 
1703
          cat conftest.err >&AS_MESSAGE_LOG_FD
 
1704
        # Otherwise, if the output was created with a 0 exit code from
 
1705
        # the compiler, it worked.
 
1706
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1645
1707
          lt_cv_apple_cc_single_mod=yes
1646
1708
        else
1647
1709
          cat conftest.err >&AS_MESSAGE_LOG_FD
1649
1711
        rm -rf libconftest.dylib*
1650
1712
        rm -f conftest.*
1651
1713
      fi])
 
1714
 
1652
1715
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1653
1716
      [lt_cv_ld_exported_symbols_list],
1654
1717
      [lt_cv_ld_exported_symbols_list=no
1660
1723
        [lt_cv_ld_exported_symbols_list=no])
1661
1724
        LDFLAGS="$save_LDFLAGS"
1662
1725
    ])
 
1726
 
1663
1727
    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1664
1728
      [lt_cv_ld_force_load=no
1665
1729
      cat > conftest.c << _LT_EOF
1677
1741
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1678
1742
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1679
1743
      _lt_result=$?
1680
 
      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
 
1744
      if test -s conftest.err && $GREP force_load conftest.err; then
 
1745
        cat conftest.err >&AS_MESSAGE_LOG_FD
 
1746
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1681
1747
        lt_cv_ld_force_load=yes
1682
1748
      else
1683
1749
        cat conftest.err >&AS_MESSAGE_LOG_FD
1722
1788
])
1723
1789
 
1724
1790
 
1725
 
# _LT_DARWIN_LINKER_FEATURES
1726
 
# --------------------------
 
1791
# _LT_DARWIN_LINKER_FEATURES([TAG])
 
1792
# ---------------------------------
1727
1793
# Checks for linker and compiler features on darwin
1728
1794
m4_defun([_LT_DARWIN_LINKER_FEATURES],
1729
1795
[
1734
1800
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1735
1801
  if test "$lt_cv_ld_force_load" = "yes"; then
1736
1802
    _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\"`'
 
1803
    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
 
1804
                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1737
1805
  else
1738
1806
    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1739
1807
  fi
2017
2085
    CFLAGS="$SAVE_CFLAGS"
2018
2086
  fi
2019
2087
  ;;
2020
 
sparc*-*solaris*)
 
2088
*-*solaris*)
2021
2089
  # Find out which ABI we are using.
2022
2090
  echo 'int i;' > conftest.$ac_ext
2023
2091
  if AC_TRY_EVAL(ac_compile); then
2024
2092
    case `/usr/bin/file conftest.o` in
2025
2093
    *64-bit*)
2026
2094
      case $lt_cv_prog_gnu_ld in
2027
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
2095
      yes*)
 
2096
        case $host in
 
2097
        i?86-*-solaris*)
 
2098
          LD="${LD-ld} -m elf_x86_64"
 
2099
          ;;
 
2100
        sparc*-*-solaris*)
 
2101
          LD="${LD-ld} -m elf64_sparc"
 
2102
          ;;
 
2103
        esac
 
2104
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
2105
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
2106
          LD="${LD-ld}_sol2"
 
2107
        fi
 
2108
        ;;
2028
2109
      *)
2029
2110
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2030
2111
          LD="${LD-ld} -64"
2101
2182
if test -n "$RANLIB"; then
2102
2183
  case $host_os in
2103
2184
  openbsd*)
2104
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
2185
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
2105
2186
    ;;
2106
2187
  *)
2107
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
2188
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
2108
2189
    ;;
2109
2190
  esac
2110
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
2191
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
2111
2192
fi
2112
2193
 
2113
2194
case $host_os in
2287
2368
    lt_cv_sys_max_cmd_len=196608
2288
2369
    ;;
2289
2370
 
 
2371
  os2*)
 
2372
    # The test takes a long time on OS/2.
 
2373
    lt_cv_sys_max_cmd_len=8192
 
2374
    ;;
 
2375
 
2290
2376
  osf*)
2291
2377
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2292
2378
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2326
2412
      # If test is not a shell built-in, we'll probably end up computing a
2327
2413
      # maximum length that is only half of the actual maximum length, but
2328
2414
      # we can't tell.
2329
 
      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
 
2415
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
2330
2416
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
2331
2417
              test $i != 17 # 1/2 MB should be enough
2332
2418
      do
2872
2958
 
2873
2959
case $host_os in
2874
2960
aix3*)
2875
 
  version_type=linux
 
2961
  version_type=linux # correct to gnu/linux during the next big refactor
2876
2962
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2877
2963
  shlibpath_var=LIBPATH
2878
2964
 
2881
2967
  ;;
2882
2968
 
2883
2969
aix[[4-9]]*)
2884
 
  version_type=linux
 
2970
  version_type=linux # correct to gnu/linux during the next big refactor
2885
2971
  need_lib_prefix=no
2886
2972
  need_version=no
2887
2973
  hardcode_into_libs=yes
2946
3032
  ;;
2947
3033
 
2948
3034
bsdi[[45]]*)
2949
 
  version_type=linux
 
3035
  version_type=linux # correct to gnu/linux during the next big refactor
2950
3036
  need_version=no
2951
3037
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2952
3038
  soname_spec='${libname}${release}${shared_ext}$major'
3085
3171
  ;;
3086
3172
 
3087
3173
dgux*)
3088
 
  version_type=linux
 
3174
  version_type=linux # correct to gnu/linux during the next big refactor
3089
3175
  need_lib_prefix=no
3090
3176
  need_version=no
3091
3177
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3093
3179
  shlibpath_var=LD_LIBRARY_PATH
3094
3180
  ;;
3095
3181
 
3096
 
freebsd1*)
3097
 
  dynamic_linker=no
3098
 
  ;;
3099
 
 
3100
3182
freebsd* | dragonfly*)
3101
3183
  # DragonFly does not have aout.  When/if they implement a new
3102
3184
  # versioning mechanism, adjust this.
3104
3186
    objformat=`/usr/bin/objformat`
3105
3187
  else
3106
3188
    case $host_os in
3107
 
    freebsd[[123]]*) objformat=aout ;;
 
3189
    freebsd[[23]].*) objformat=aout ;;
3108
3190
    *) objformat=elf ;;
3109
3191
    esac
3110
3192
  fi
3122
3204
  esac
3123
3205
  shlibpath_var=LD_LIBRARY_PATH
3124
3206
  case $host_os in
3125
 
  freebsd2*)
 
3207
  freebsd2.*)
3126
3208
    shlibpath_overrides_runpath=yes
3127
3209
    ;;
3128
3210
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3142
3224
  ;;
3143
3225
 
3144
3226
gnu*)
3145
 
  version_type=linux
 
3227
  version_type=linux # correct to gnu/linux during the next big refactor
3146
3228
  need_lib_prefix=no
3147
3229
  need_version=no
3148
3230
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3153
3235
  ;;
3154
3236
 
3155
3237
haiku*)
3156
 
  version_type=linux
 
3238
  version_type=linux # correct to gnu/linux during the next big refactor
3157
3239
  need_lib_prefix=no
3158
3240
  need_version=no
3159
3241
  dynamic_linker="$host_os runtime_loader"
3214
3296
  ;;
3215
3297
 
3216
3298
interix[[3-9]]*)
3217
 
  version_type=linux
 
3299
  version_type=linux # correct to gnu/linux during the next big refactor
3218
3300
  need_lib_prefix=no
3219
3301
  need_version=no
3220
3302
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3230
3312
    nonstopux*) version_type=nonstopux ;;
3231
3313
    *)
3232
3314
        if test "$lt_cv_prog_gnu_ld" = yes; then
3233
 
                version_type=linux
 
3315
                version_type=linux # correct to gnu/linux during the next big refactor
3234
3316
        else
3235
3317
                version_type=irix
3236
3318
        fi ;;
3267
3349
  dynamic_linker=no
3268
3350
  ;;
3269
3351
 
3270
 
# This must be Linux ELF.
 
3352
# This must be glibc/ELF.
3271
3353
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3272
 
  version_type=linux
 
3354
  version_type=linux # correct to gnu/linux during the next big refactor
3273
3355
  need_lib_prefix=no
3274
3356
  need_version=no
3275
3357
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3344
3426
  ;;
3345
3427
 
3346
3428
newsos6)
3347
 
  version_type=linux
 
3429
  version_type=linux # correct to gnu/linux during the next big refactor
3348
3430
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3349
3431
  shlibpath_var=LD_LIBRARY_PATH
3350
3432
  shlibpath_overrides_runpath=yes
3413
3495
  ;;
3414
3496
 
3415
3497
solaris*)
3416
 
  version_type=linux
 
3498
  version_type=linux # correct to gnu/linux during the next big refactor
3417
3499
  need_lib_prefix=no
3418
3500
  need_version=no
3419
3501
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3438
3520
  ;;
3439
3521
 
3440
3522
sysv4 | sysv4.3*)
3441
 
  version_type=linux
 
3523
  version_type=linux # correct to gnu/linux during the next big refactor
3442
3524
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3443
3525
  soname_spec='${libname}${release}${shared_ext}$major'
3444
3526
  shlibpath_var=LD_LIBRARY_PATH
3462
3544
 
3463
3545
sysv4*MP*)
3464
3546
  if test -d /usr/nec ;then
3465
 
    version_type=linux
 
3547
    version_type=linux # correct to gnu/linux during the next big refactor
3466
3548
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3467
3549
    soname_spec='$libname${shared_ext}.$major'
3468
3550
    shlibpath_var=LD_LIBRARY_PATH
3493
3575
 
3494
3576
tpf*)
3495
3577
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
3496
 
  version_type=linux
 
3578
  version_type=linux # correct to gnu/linux during the next big refactor
3497
3579
  need_lib_prefix=no
3498
3580
  need_version=no
3499
3581
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3503
3585
  ;;
3504
3586
 
3505
3587
uts4*)
3506
 
  version_type=linux
 
3588
  version_type=linux # correct to gnu/linux during the next big refactor
3507
3589
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3508
3590
  soname_spec='${libname}${release}${shared_ext}$major'
3509
3591
  shlibpath_var=LD_LIBRARY_PATH
3925
4007
  lt_cv_deplibs_check_method=pass_all
3926
4008
  ;;
3927
4009
 
3928
 
# This must be Linux ELF.
 
4010
# This must be glibc/ELF.
3929
4011
linux* | k*bsd*-gnu | kopensolaris*-gnu)
3930
4012
  lt_cv_deplibs_check_method=pass_all
3931
4013
  ;;
4345
4427
    # which start with @ or ?.
4346
4428
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
4347
4429
"     {last_section=section; section=\$ 3};"\
 
4430
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
4348
4431
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4349
4432
"     \$ 0!~/External *\|/{next};"\
4350
4433
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4929
5012
    case $cc_basename in
4930
5013
    nvcc*) # Cuda Compiler Driver 2.2
4931
5014
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4932
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
 
5015
      if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
5016
        _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
 
5017
      fi
4933
5018
      ;;
4934
5019
    esac
4935
5020
  else
5021
5106
        ;;
5022
5107
      *)
5023
5108
        case `$CC -V 2>&1 | sed 5q` in
5024
 
        *Sun\ F* | *Sun*Fortran*)
 
5109
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
5025
5110
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
5026
5111
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5027
5112
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5028
5113
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5029
5114
          ;;
 
5115
        *Sun\ F* | *Sun*Fortran*)
 
5116
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5117
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5118
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5119
          ;;
5030
5120
        *Sun\ C*)
5031
5121
          # Sun C 5.9
5032
5122
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5033
5123
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5034
5124
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5035
5125
          ;;
 
5126
        *Intel*\ [[CF]]*Compiler*)
 
5127
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5128
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5129
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5130
          ;;
 
5131
        *Portland\ Group*)
 
5132
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5133
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
5134
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5135
          ;;
5036
5136
        esac
5037
5137
        ;;
5038
5138
      esac
5192
5292
    ;;
5193
5293
  cygwin* | mingw* | cegcc*)
5194
5294
    case $cc_basename in
5195
 
    cl*) ;;
 
5295
    cl*)
 
5296
      _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
5297
      ;;
5196
5298
    *)
5197
5299
      _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'
5198
5300
      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5220
5322
  _LT_TAGVAR(hardcode_direct, $1)=no
5221
5323
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5222
5324
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5223
 
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5224
5325
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
5225
5326
  _LT_TAGVAR(hardcode_minus_L, $1)=no
5226
5327
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5474
5575
        xlf* | bgf* | bgxlf* | mpixlf*)
5475
5576
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5476
5577
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5477
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5478
 
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
5578
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5479
5579
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5480
5580
          if test "x$supports_anon_versioning" = xyes; then
5481
5581
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5771
5871
        # The linker will not automatically build a static lib if we build a DLL.
5772
5872
        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5773
5873
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5874
        _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5774
5875
        _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5775
5876
        # Don't use ranlib
5776
5877
        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5817
5918
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5818
5919
      ;;
5819
5920
 
5820
 
    freebsd1*)
5821
 
      _LT_TAGVAR(ld_shlibs, $1)=no
5822
 
      ;;
5823
 
 
5824
5921
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5825
5922
    # support.  Future versions do this automatically, but an explicit c++rt0.o
5826
5923
    # does not break anything, and helps significantly (at the cost of a little
5833
5930
      ;;
5834
5931
 
5835
5932
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5836
 
    freebsd2*)
 
5933
    freebsd2.*)
5837
5934
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5838
5935
      _LT_TAGVAR(hardcode_direct, $1)=yes
5839
5936
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5872
5969
      fi
5873
5970
      if test "$with_gnu_ld" = no; then
5874
5971
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5875
 
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5876
5972
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5877
5973
        _LT_TAGVAR(hardcode_direct, $1)=yes
5878
5974
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6314
6410
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6315
6411
    [Flag to hardcode $libdir into a binary during linking.
6316
6412
    This must work even if $libdir does not exist])
6317
 
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
6318
 
    [[If ld is used when linking, flag to hardcode $libdir into a binary
6319
 
    during linking.  This must work even if $libdir does not exist]])
6320
6413
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
6321
6414
    [Whether we need a single "-rpath" flag with a separated argument])
6322
6415
_LT_TAGDECL([], [hardcode_direct], [0],
6470
6563
_LT_TAGVAR(hardcode_direct, $1)=no
6471
6564
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6472
6565
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6473
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6474
6566
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6475
6567
_LT_TAGVAR(hardcode_minus_L, $1)=no
6476
6568
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6840
6932
        esac
6841
6933
        ;;
6842
6934
 
6843
 
      freebsd[[12]]*)
 
6935
      freebsd2.*)
6844
6936
        # C++ shared libraries reported to be fairly broken before
6845
6937
        # switch to ELF
6846
6938
        _LT_TAGVAR(ld_shlibs, $1)=no
7601
7693
  }
7602
7694
};
7603
7695
_LT_EOF
 
7696
], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
 
7697
package foo
 
7698
func foo() {
 
7699
}
 
7700
_LT_EOF
7604
7701
])
7605
7702
 
7606
7703
_lt_libdeps_save_CFLAGS=$CFLAGS
7607
7704
case "$CC $CFLAGS " in #(
7608
7705
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7609
7706
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
7707
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7610
7708
esac
7611
7709
 
7612
7710
dnl Parse the compiler output and extract the necessary
7803
7901
_LT_TAGVAR(hardcode_direct, $1)=no
7804
7902
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7805
7903
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7806
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7807
7904
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7808
7905
_LT_TAGVAR(hardcode_minus_L, $1)=no
7809
7906
_LT_TAGVAR(hardcode_automatic, $1)=no
7936
8033
_LT_TAGVAR(hardcode_direct, $1)=no
7937
8034
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7938
8035
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7939
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7940
8036
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7941
8037
_LT_TAGVAR(hardcode_minus_L, $1)=no
7942
8038
_LT_TAGVAR(hardcode_automatic, $1)=no
8119
8215
])# _LT_LANG_GCJ_CONFIG
8120
8216
 
8121
8217
 
 
8218
# _LT_LANG_GO_CONFIG([TAG])
 
8219
# --------------------------
 
8220
# Ensure that the configuration variables for the GNU Go compiler
 
8221
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
8222
# to write the compiler configuration to `libtool'.
 
8223
m4_defun([_LT_LANG_GO_CONFIG],
 
8224
[AC_REQUIRE([LT_PROG_GO])dnl
 
8225
AC_LANG_SAVE
 
8226
 
 
8227
# Source file extension for Go test sources.
 
8228
ac_ext=go
 
8229
 
 
8230
# Object file extension for compiled Go test sources.
 
8231
objext=o
 
8232
_LT_TAGVAR(objext, $1)=$objext
 
8233
 
 
8234
# Code to be used in simple compile tests
 
8235
lt_simple_compile_test_code="package main; func main() { }"
 
8236
 
 
8237
# Code to be used in simple link tests
 
8238
lt_simple_link_test_code='package main; func main() { }'
 
8239
 
 
8240
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
8241
_LT_TAG_COMPILER
 
8242
 
 
8243
# save warnings/boilerplate of simple test code
 
8244
_LT_COMPILER_BOILERPLATE
 
8245
_LT_LINKER_BOILERPLATE
 
8246
 
 
8247
# Allow CC to be a program name with arguments.
 
8248
lt_save_CC=$CC
 
8249
lt_save_CFLAGS=$CFLAGS
 
8250
lt_save_GCC=$GCC
 
8251
GCC=yes
 
8252
CC=${GOC-"gccgo"}
 
8253
CFLAGS=$GOFLAGS
 
8254
compiler=$CC
 
8255
_LT_TAGVAR(compiler, $1)=$CC
 
8256
_LT_TAGVAR(LD, $1)="$LD"
 
8257
_LT_CC_BASENAME([$compiler])
 
8258
 
 
8259
# Go did not exist at the time GCC didn't implicitly link libc in.
 
8260
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
8261
 
 
8262
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
8263
_LT_TAGVAR(reload_flag, $1)=$reload_flag
 
8264
_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 
8265
 
 
8266
if test -n "$compiler"; then
 
8267
  _LT_COMPILER_NO_RTTI($1)
 
8268
  _LT_COMPILER_PIC($1)
 
8269
  _LT_COMPILER_C_O($1)
 
8270
  _LT_COMPILER_FILE_LOCKS($1)
 
8271
  _LT_LINKER_SHLIBS($1)
 
8272
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
8273
 
 
8274
  _LT_CONFIG($1)
 
8275
fi
 
8276
 
 
8277
AC_LANG_RESTORE
 
8278
 
 
8279
GCC=$lt_save_GCC
 
8280
CC=$lt_save_CC
 
8281
CFLAGS=$lt_save_CFLAGS
 
8282
])# _LT_LANG_GO_CONFIG
 
8283
 
 
8284
 
8122
8285
# _LT_LANG_RC_CONFIG([TAG])
8123
8286
# -------------------------
8124
8287
# Ensure that the configuration variables for the Windows resource compiler
8188
8351
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
8189
8352
 
8190
8353
 
 
8354
# LT_PROG_GO
 
8355
# ----------
 
8356
AC_DEFUN([LT_PROG_GO],
 
8357
[AC_CHECK_TOOL(GOC, gccgo,)
 
8358
])
 
8359
 
 
8360
 
8191
8361
# LT_PROG_RC
8192
8362
# ----------
8193
8363
AC_DEFUN([LT_PROG_RC],
8852
9022
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
8853
9023
m4_define([_LT_WITH_PIC],
8854
9024
[AC_ARG_WITH([pic],
8855
 
    [AS_HELP_STRING([--with-pic],
 
9025
    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
8856
9026
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8857
 
    [pic_mode="$withval"],
 
9027
    [lt_p=${PACKAGE-default}
 
9028
    case $withval in
 
9029
    yes|no) pic_mode=$withval ;;
 
9030
    *)
 
9031
      pic_mode=default
 
9032
      # Look at the argument we got.  We use all the common list separators.
 
9033
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9034
      for lt_pkg in $withval; do
 
9035
        IFS="$lt_save_ifs"
 
9036
        if test "X$lt_pkg" = "X$lt_p"; then
 
9037
          pic_mode=yes
 
9038
        fi
 
9039
      done
 
9040
      IFS="$lt_save_ifs"
 
9041
      ;;
 
9042
    esac],
8858
9043
    [pic_mode=default])
8859
9044
 
8860
9045
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
9026
9211
 
9027
9212
# @configure_input@
9028
9213
 
9029
 
# serial 3293 ltversion.m4
 
9214
# serial 3337 ltversion.m4
9030
9215
# This file is part of GNU Libtool
9031
9216
 
9032
 
m4_define([LT_PACKAGE_VERSION], [2.4])
9033
 
m4_define([LT_PACKAGE_REVISION], [1.3293])
 
9217
m4_define([LT_PACKAGE_VERSION], [2.4.2])
 
9218
m4_define([LT_PACKAGE_REVISION], [1.3337])
9034
9219
 
9035
9220
AC_DEFUN([LTVERSION_VERSION],
9036
 
[macro_version='2.4'
9037
 
macro_revision='1.3293'
 
9221
[macro_version='2.4.2'
 
9222
macro_revision='1.3337'
9038
9223
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
9039
9224
_LT_DECL(, macro_revision, 0)
9040
9225
])
9331
9516
fi[]dnl
9332
9517
])# PKG_CHECK_MODULES
9333
9518
 
9334
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
9519
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
 
9520
# Foundation, Inc.
9335
9521
#
9336
9522
# This file is free software; the Free Software Foundation
9337
9523
# gives unlimited permission to copy and/or distribute it,
9338
9524
# with or without modifications, as long as this notice is preserved.
9339
9525
 
 
9526
# serial 1
 
9527
 
9340
9528
# AM_AUTOMAKE_VERSION(VERSION)
9341
9529
# ----------------------------
9342
9530
# Automake X.Y traces this macro to ensure aclocal.m4 has been
9346
9534
[am__api_version='1.11'
9347
9535
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9348
9536
dnl require some minimum version.  Point them to the right macro.
9349
 
m4_if([$1], [1.11.1], [],
 
9537
m4_if([$1], [1.11.3], [],
9350
9538
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9351
9539
])
9352
9540
 
9362
9550
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9363
9551
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9364
9552
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9365
 
[AM_AUTOMAKE_VERSION([1.11.1])dnl
 
9553
[AM_AUTOMAKE_VERSION([1.11.3])dnl
9366
9554
m4_ifndef([AC_AUTOCONF_VERSION],
9367
9555
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9368
9556
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9369
9557
 
9370
9558
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
9371
9559
 
9372
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
9560
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
9373
9561
#
9374
9562
# This file is free software; the Free Software Foundation
9375
9563
# gives unlimited permission to copy and/or distribute it,
9376
9564
# with or without modifications, as long as this notice is preserved.
9377
9565
 
 
9566
# serial 1
 
9567
 
9378
9568
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
9379
9569
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
9380
9570
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
9456
9646
Usually this means the macro was only invoked conditionally.]])
9457
9647
fi])])
9458
9648
 
9459
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
9460
 
# Free Software Foundation, Inc.
 
9649
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
 
9650
# 2010, 2011 Free Software Foundation, Inc.
9461
9651
#
9462
9652
# This file is free software; the Free Software Foundation
9463
9653
# gives unlimited permission to copy and/or distribute it,
9464
9654
# with or without modifications, as long as this notice is preserved.
9465
9655
 
9466
 
# serial 10
 
9656
# serial 12
9467
9657
 
9468
9658
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
9469
9659
# written in clear, in which case automake, when reading aclocal.m4,
9503
9693
  # instance it was reported that on HP-UX the gcc test will end up
9504
9694
  # making a dummy file named `D' -- because `-MD' means `put the output
9505
9695
  # in D'.
 
9696
  rm -rf conftest.dir
9506
9697
  mkdir conftest.dir
9507
9698
  # Copy depcomp to subdir because otherwise we won't find it if we're
9508
9699
  # using a relative directory.
9567
9758
        break
9568
9759
      fi
9569
9760
      ;;
9570
 
    msvisualcpp | msvcmsys)
 
9761
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
9571
9762
      # This compiler won't grok `-c -o', but also, the minuso test has
9572
9763
      # not run yet.  These depmodes are late enough in the game, and
9573
9764
      # so weak that their functioning should not be impacted.
9632
9823
if test "x$enable_dependency_tracking" != xno; then
9633
9824
  am_depcomp="$ac_aux_dir/depcomp"
9634
9825
  AMDEPBACKSLASH='\'
 
9826
  am__nodep='_no'
9635
9827
fi
9636
9828
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9637
9829
AC_SUBST([AMDEPBACKSLASH])dnl
9638
9830
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
9831
AC_SUBST([am__nodep])dnl
 
9832
_AM_SUBST_NOTMAKE([am__nodep])dnl
9639
9833
])
9640
9834
 
9641
9835
# Generate code to set up dependency tracking.              -*- Autoconf -*-
9857
10051
done
9858
10052
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9859
10053
 
9860
 
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
 
10054
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
 
10055
# Inc.
9861
10056
#
9862
10057
# This file is free software; the Free Software Foundation
9863
10058
# gives unlimited permission to copy and/or distribute it,
9864
10059
# with or without modifications, as long as this notice is preserved.
9865
10060
 
 
10061
# serial 1
 
10062
 
9866
10063
# AM_PROG_INSTALL_SH
9867
10064
# ------------------
9868
10065
# Define $install_sh.
9994
10191
fi
9995
10192
])
9996
10193
 
9997
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
10194
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
 
10195
# Inc.
9998
10196
#
9999
10197
# This file is free software; the Free Software Foundation
10000
10198
# gives unlimited permission to copy and/or distribute it,
10001
10199
# with or without modifications, as long as this notice is preserved.
10002
10200
 
 
10201
# serial 1
 
10202
 
10003
10203
# AM_PROG_MKDIR_P
10004
10204
# ---------------
10005
10205
# Check for `mkdir -p'.
10022
10222
 
10023
10223
# Helper functions for option handling.                     -*- Autoconf -*-
10024
10224
 
10025
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
 
10225
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
 
10226
# Foundation, Inc.
10026
10227
#
10027
10228
# This file is free software; the Free Software Foundation
10028
10229
# gives unlimited permission to copy and/or distribute it,
10029
10230
# with or without modifications, as long as this notice is preserved.
10030
10231
 
10031
 
# serial 4
 
10232
# serial 5
10032
10233
 
10033
10234
# _AM_MANGLE_OPTION(NAME)
10034
10235
# -----------------------
10036
10237
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
10037
10238
 
10038
10239
# _AM_SET_OPTION(NAME)
10039
 
# ------------------------------
 
10240
# --------------------
10040
10241
# Set option NAME.  Presently that only means defining a flag for this option.
10041
10242
AC_DEFUN([_AM_SET_OPTION],
10042
10243
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
10043
10244
 
10044
10245
# _AM_SET_OPTIONS(OPTIONS)
10045
 
# ----------------------------------
 
10246
# ------------------------
10046
10247
# OPTIONS is a space-separated list of Automake options.
10047
10248
AC_DEFUN([_AM_SET_OPTIONS],
10048
10249
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
10053
10254
AC_DEFUN([_AM_IF_OPTION],
10054
10255
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
10055
10256
 
10056
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
10257
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
10057
10258
#
10058
10259
# This file is free software; the Free Software Foundation
10059
10260
# gives unlimited permission to copy and/or distribute it,
10060
10261
# with or without modifications, as long as this notice is preserved.
10061
10262
 
 
10263
# serial 1
 
10264
 
10062
10265
# AM_RUN_LOG(COMMAND)
10063
10266
# -------------------
10064
10267
# Run COMMAND, save the exit status in ac_status, and log it.
10135
10338
fi
10136
10339
AC_MSG_RESULT(yes)])
10137
10340
 
10138
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
10341
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
10139
10342
#
10140
10343
# This file is free software; the Free Software Foundation
10141
10344
# gives unlimited permission to copy and/or distribute it,
10142
10345
# with or without modifications, as long as this notice is preserved.
10143
10346
 
 
10347
# serial 1
 
10348
 
10144
10349
# AM_PROG_INSTALL_STRIP
10145
10350
# ---------------------
10146
10351
# One issue with vendor `install' (even GNU) is that you can't
10163
10368
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10164
10369
AC_SUBST([INSTALL_STRIP_PROGRAM])])
10165
10370
 
10166
 
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
 
10371
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
10167
10372
#
10168
10373
# This file is free software; the Free Software Foundation
10169
10374
# gives unlimited permission to copy and/or distribute it,
10170
10375
# with or without modifications, as long as this notice is preserved.
10171
10376
 
10172
 
# serial 2
 
10377
# serial 3
10173
10378
 
10174
10379
# _AM_SUBST_NOTMAKE(VARIABLE)
10175
10380
# ---------------------------
10178
10383
AC_DEFUN([_AM_SUBST_NOTMAKE])
10179
10384
 
10180
10385
# AM_SUBST_NOTMAKE(VARIABLE)
10181
 
# ---------------------------
 
10386
# --------------------------
10182
10387
# Public sister of _AM_SUBST_NOTMAKE.
10183
10388
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
10184
10389
 
10185
10390
# Check how to create a tarball.                            -*- Autoconf -*-
10186
10391
 
10187
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
10392
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
10188
10393
#
10189
10394
# This file is free software; the Free Software Foundation
10190
10395
# gives unlimited permission to copy and/or distribute it,
10206
10411
# a tarball read from stdin.
10207
10412
#     $(am__untar) < result.tar
10208
10413
AC_DEFUN([_AM_PROG_TAR],
10209
 
[# Always define AMTAR for backward compatibility.
10210
 
AM_MISSING_PROG([AMTAR], [tar])
 
10414
[# Always define AMTAR for backward compatibility.  Yes, it's still used
 
10415
# in the wild :-(  We should find a proper way to deprecate it ...
 
10416
AC_SUBST([AMTAR], ['$${TAR-tar}'])
10211
10417
m4_if([$1], [v7],
10212
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
10418
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
10213
10419
     [m4_case([$1], [ustar],, [pax],,
10214
10420
              [m4_fatal([Unknown tar format])])
10215
10421
AC_MSG_CHECKING([how to create a $1 tar archive])