~ubuntu-branches/ubuntu/wily/hamster-applet/wily

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2008-12-15 17:42:14 UTC
  • mto: (1.1.16 upstream) (20.1.1 lucid-proposed)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20081215174214-ri1ezw1c2pdnl3i6
Tags: upstream-2.25.3
ImportĀ upstreamĀ versionĀ 2.25.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
 
14
m4_ifndef([AC_AUTOCONF_VERSION],
 
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
16
m4_if(AC_AUTOCONF_VERSION, [2.61],,
 
17
[m4_warning([this file was generated for autoconf 2.61.
 
18
You have another version of autoconf.  It may work, but is not guaranteed to.
 
19
If you have problems, you may need to regenerate the build system entirely.
 
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
 
21
 
14
22
dnl AM_GCONF_SOURCE_2
15
23
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
16
24
dnl  (i.e. pass to gconftool-2
26
34
    GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
27
35
  fi
28
36
 
29
 
  AC_ARG_WITH(gconf-source, 
30
 
  [  --with-gconf-source=sourceaddress      Config database for installing schema files.],GCONF_SCHEMA_CONFIG_SOURCE="$withval",)
 
37
  AC_ARG_WITH([gconf-source],
 
38
              AC_HELP_STRING([--with-gconf-source=sourceaddress],
 
39
                             [Config database for installing schema files.]),
 
40
              [GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
31
41
 
32
42
  AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
33
43
  AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
36
46
    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
37
47
  fi
38
48
 
39
 
  AC_ARG_WITH(gconf-schema-file-dir, 
40
 
  [  --with-gconf-schema-file-dir=dir        Directory for installing schema files.],GCONF_SCHEMA_FILE_DIR="$withval",)
 
49
  AC_ARG_WITH([gconf-schema-file-dir],
 
50
              AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
 
51
                             [Directory for installing schema files.]),
 
52
              [GCONF_SCHEMA_FILE_DIR="$withval"],)
41
53
 
42
54
  AC_SUBST(GCONF_SCHEMA_FILE_DIR)
43
55
  AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
532
544
        AC_SUBST(DISABLE_DEPRECATED)
533
545
])
534
546
 
535
 
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
536
 
 
537
 
# serial 52 Debian 1.5.26-1ubuntu1 AC_PROG_LIBTOOL
538
 
 
539
 
 
540
 
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
541
 
# -----------------------------------------------------------
542
 
# If this macro is not defined by Autoconf, define it here.
543
 
m4_ifdef([AC_PROVIDE_IFELSE],
544
 
         [],
545
 
         [m4_define([AC_PROVIDE_IFELSE],
546
 
                 [m4_ifdef([AC_PROVIDE_$1],
547
 
                           [$2], [$3])])])
548
 
 
549
 
 
550
 
# AC_PROG_LIBTOOL
551
 
# ---------------
552
 
AC_DEFUN([AC_PROG_LIBTOOL],
553
 
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
554
 
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
555
 
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
556
 
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
557
 
    [AC_LIBTOOL_CXX],
558
 
    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
559
 
  ])])
560
 
dnl And a similar setup for Fortran 77 support
561
 
  AC_PROVIDE_IFELSE([AC_PROG_F77],
562
 
    [AC_LIBTOOL_F77],
563
 
    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
564
 
])])
565
 
 
566
 
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
567
 
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
568
 
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
569
 
  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
570
 
    [AC_LIBTOOL_GCJ],
571
 
    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
572
 
      [AC_LIBTOOL_GCJ],
573
 
      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
574
 
        [AC_LIBTOOL_GCJ],
575
 
      [ifdef([AC_PROG_GCJ],
576
 
             [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
577
 
       ifdef([A][M_PROG_GCJ],
578
 
             [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
579
 
       ifdef([LT_AC_PROG_GCJ],
580
 
             [define([LT_AC_PROG_GCJ],
581
 
                defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
582
 
])])# AC_PROG_LIBTOOL
583
 
 
584
 
 
585
 
# _AC_PROG_LIBTOOL
586
 
# ----------------
587
 
AC_DEFUN([_AC_PROG_LIBTOOL],
588
 
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
589
 
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
590
 
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
591
 
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
592
 
 
593
 
# This can be used to rebuild libtool when needed
594
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
595
 
 
596
 
# Always use our own libtool.
597
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
598
 
AC_SUBST(LIBTOOL)dnl
599
 
 
600
 
# Prevent multiple expansion
601
 
define([AC_PROG_LIBTOOL], [])
602
 
])# _AC_PROG_LIBTOOL
603
 
 
604
 
 
605
 
# AC_LIBTOOL_SETUP
606
 
# ----------------
607
 
AC_DEFUN([AC_LIBTOOL_SETUP],
608
 
[AC_PREREQ(2.50)dnl
609
 
AC_REQUIRE([AC_ENABLE_SHARED])dnl
610
 
AC_REQUIRE([AC_ENABLE_STATIC])dnl
611
 
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
612
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
613
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
614
 
AC_REQUIRE([AC_PROG_CC])dnl
615
 
AC_REQUIRE([AC_PROG_LD])dnl
616
 
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
617
 
AC_REQUIRE([AC_PROG_NM])dnl
618
 
 
619
 
AC_REQUIRE([AC_PROG_LN_S])dnl
620
 
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
621
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
622
 
AC_REQUIRE([AC_OBJEXT])dnl
623
 
AC_REQUIRE([AC_EXEEXT])dnl
 
547
# nls.m4 serial 3 (gettext-0.15)
 
548
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
 
549
dnl This file is free software; the Free Software Foundation
 
550
dnl gives unlimited permission to copy and/or distribute it,
 
551
dnl with or without modifications, as long as this notice is preserved.
624
552
dnl
625
 
AC_LIBTOOL_SYS_MAX_CMD_LEN
626
 
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
627
 
AC_LIBTOOL_OBJDIR
628
 
 
629
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
630
 
_LT_AC_PROG_ECHO_BACKSLASH
631
 
 
632
 
case $host_os in
633
 
aix3*)
634
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
635
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
636
 
  # vanish in a puff of smoke.
637
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
638
 
    COLLECT_NAMES=
639
 
    export COLLECT_NAMES
640
 
  fi
641
 
  ;;
642
 
esac
643
 
 
644
 
# Sed substitution that helps us do robust quoting.  It backslashifies
645
 
# metacharacters that are still active within double-quoted strings.
646
 
Xsed='sed -e 1s/^X//'
647
 
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
648
 
 
649
 
# Same as above, but do not quote variable references.
650
 
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
651
 
 
652
 
# Sed substitution to delay expansion of an escaped shell variable in a
653
 
# double_quote_subst'ed string.
654
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
655
 
 
656
 
# Sed substitution to avoid accidental globbing in evaled expressions
657
 
no_glob_subst='s/\*/\\\*/g'
658
 
 
659
 
# Constants:
660
 
rm="rm -f"
661
 
 
662
 
# Global variables:
663
 
default_ofile=libtool
664
 
can_build_shared=yes
665
 
 
666
 
# All known linkers require a `.a' archive for static linking (except MSVC,
667
 
# which needs '.lib').
668
 
libext=a
669
 
ltmain="$ac_aux_dir/ltmain.sh"
670
 
ofile="$default_ofile"
671
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
672
 
 
673
 
AC_CHECK_TOOL(AR, ar, false)
674
 
AC_CHECK_TOOL(RANLIB, ranlib, :)
675
 
AC_CHECK_TOOL(STRIP, strip, :)
676
 
 
677
 
old_CC="$CC"
678
 
old_CFLAGS="$CFLAGS"
679
 
 
680
 
# Set sane defaults for various variables
681
 
test -z "$AR" && AR=ar
682
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
683
 
test -z "$AS" && AS=as
684
 
test -z "$CC" && CC=cc
685
 
test -z "$LTCC" && LTCC=$CC
686
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
687
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
688
 
test -z "$LD" && LD=ld
689
 
test -z "$LN_S" && LN_S="ln -s"
690
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
691
 
test -z "$NM" && NM=nm
692
 
test -z "$SED" && SED=sed
693
 
test -z "$OBJDUMP" && OBJDUMP=objdump
694
 
test -z "$RANLIB" && RANLIB=:
695
 
test -z "$STRIP" && STRIP=:
696
 
test -z "$ac_objext" && ac_objext=o
697
 
 
698
 
# Determine commands to create old-style static archives.
699
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
700
 
old_postinstall_cmds='chmod 644 $oldlib'
701
 
old_postuninstall_cmds=
702
 
 
703
 
if test -n "$RANLIB"; then
704
 
  case $host_os in
705
 
  openbsd*)
706
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
707
 
    ;;
708
 
  *)
709
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
710
 
    ;;
711
 
  esac
712
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
713
 
fi
714
 
 
715
 
_LT_CC_BASENAME([$compiler])
716
 
 
717
 
# Only perform the check for file, if the check method requires it
718
 
case $deplibs_check_method in
719
 
file_magic*)
720
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
721
 
    AC_PATH_MAGIC
722
 
  fi
723
 
  ;;
724
 
esac
725
 
 
726
 
_LT_REQUIRED_DARWIN_CHECKS
727
 
 
728
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
729
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
730
 
enable_win32_dll=yes, enable_win32_dll=no)
731
 
 
732
 
AC_ARG_ENABLE([libtool-lock],
733
 
    [AC_HELP_STRING([--disable-libtool-lock],
734
 
        [avoid locking (might break parallel builds)])])
735
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
736
 
 
737
 
AC_ARG_WITH([pic],
738
 
    [AC_HELP_STRING([--with-pic],
739
 
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
740
 
    [pic_mode="$withval"],
741
 
    [pic_mode=default])
742
 
test -z "$pic_mode" && pic_mode=default
743
 
 
744
 
# Use C for the default configuration in the libtool script
745
 
tagname=
746
 
AC_LIBTOOL_LANG_C_CONFIG
747
 
_LT_AC_TAGCONFIG
748
 
])# AC_LIBTOOL_SETUP
749
 
 
750
 
 
751
 
# _LT_AC_SYS_COMPILER
752
 
# -------------------
753
 
AC_DEFUN([_LT_AC_SYS_COMPILER],
754
 
[AC_REQUIRE([AC_PROG_CC])dnl
755
 
 
756
 
# If no C compiler was specified, use CC.
757
 
LTCC=${LTCC-"$CC"}
758
 
 
759
 
# If no C compiler flags were specified, use CFLAGS.
760
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
761
 
 
762
 
# Allow CC to be a program name with arguments.
763
 
compiler=$CC
764
 
])# _LT_AC_SYS_COMPILER
765
 
 
766
 
 
767
 
# _LT_CC_BASENAME(CC)
768
 
# -------------------
769
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
770
 
AC_DEFUN([_LT_CC_BASENAME],
771
 
[for cc_temp in $1""; do
772
 
  case $cc_temp in
773
 
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
774
 
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
775
 
    \-*) ;;
776
 
    *) break;;
777
 
  esac
778
 
done
779
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
780
 
])
781
 
 
782
 
 
783
 
# _LT_COMPILER_BOILERPLATE
784
 
# ------------------------
785
 
# Check for compiler boilerplate output or warnings with
786
 
# the simple compiler test code.
787
 
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
788
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
789
 
ac_outfile=conftest.$ac_objext
790
 
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
791
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
792
 
_lt_compiler_boilerplate=`cat conftest.err`
793
 
$rm conftest*
794
 
])# _LT_COMPILER_BOILERPLATE
795
 
 
796
 
 
797
 
# _LT_LINKER_BOILERPLATE
798
 
# ----------------------
799
 
# Check for linker boilerplate output or warnings with
800
 
# the simple link test code.
801
 
AC_DEFUN([_LT_LINKER_BOILERPLATE],
802
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
803
 
ac_outfile=conftest.$ac_objext
804
 
echo "$lt_simple_link_test_code" >conftest.$ac_ext
805
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
806
 
_lt_linker_boilerplate=`cat conftest.err`
807
 
$rm -r conftest*
808
 
])# _LT_LINKER_BOILERPLATE
809
 
 
810
 
# _LT_REQUIRED_DARWIN_CHECKS
811
 
# --------------------------
812
 
# Check for some things on darwin
813
 
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
814
 
  case $host_os in
815
 
    rhapsody* | darwin*)
816
 
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
817
 
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
818
 
 
819
 
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
820
 
      [lt_cv_apple_cc_single_mod=no
821
 
      if test -z "${LT_MULTI_MODULE}"; then
822
 
   # By default we will add the -single_module flag. You can override
823
 
   # by either setting the environment variable LT_MULTI_MODULE
824
 
   # non-empty at configure time, or by adding -multi_module to the
825
 
   # link flags.
826
 
   echo "int foo(void){return 1;}" > conftest.c
827
 
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
828
 
     -dynamiclib ${wl}-single_module conftest.c
829
 
   if test -f libconftest.dylib; then
830
 
     lt_cv_apple_cc_single_mod=yes
831
 
     rm -rf libconftest.dylib*
832
 
   fi
833
 
   rm conftest.c
834
 
      fi])
835
 
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
836
 
      [lt_cv_ld_exported_symbols_list],
837
 
      [lt_cv_ld_exported_symbols_list=no
838
 
      save_LDFLAGS=$LDFLAGS
839
 
      echo "_main" > conftest.sym
840
 
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
841
 
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
842
 
   [lt_cv_ld_exported_symbols_list=yes],
843
 
   [lt_cv_ld_exported_symbols_list=no])
844
 
   LDFLAGS="$save_LDFLAGS"
845
 
    ])
846
 
    case $host_os in
847
 
    rhapsody* | darwin1.[[0123]])
848
 
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
849
 
    darwin1.*)
850
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
851
 
    darwin*)
852
 
      # if running on 10.5 or later, the deployment target defaults
853
 
      # to the OS version, if on x86, and 10.4, the deployment
854
 
      # target defaults to 10.4. Don't you love it?
855
 
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
856
 
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
857
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
858
 
   10.[[012]]*)
859
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
860
 
   10.*)
861
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
862
 
      esac
863
 
    ;;
864
 
  esac
865
 
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
866
 
      _lt_dar_single_mod='$single_module'
867
 
    fi
868
 
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
869
 
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
870
 
    else
871
 
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
872
 
    fi
873
 
    if test "$DSYMUTIL" != ":"; then
874
 
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
875
 
    else
876
 
      _lt_dsymutil=
877
 
    fi
878
 
    ;;
879
 
  esac
880
 
])
881
 
 
882
 
# _LT_AC_SYS_LIBPATH_AIX
883
 
# ----------------------
884
 
# Links a minimal program and checks the executable
885
 
# for the system default hardcoded library path. In most cases,
886
 
# this is /usr/lib:/lib, but when the MPI compilers are used
887
 
# the location of the communication and MPI libs are included too.
888
 
# If we don't find anything, use the default library path according
889
 
# to the aix ld manual.
890
 
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
891
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
892
 
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
893
 
lt_aix_libpath_sed='
894
 
    /Import File Strings/,/^$/ {
895
 
        /^0/ {
896
 
            s/^0  *\(.*\)$/\1/
897
 
            p
898
 
        }
899
 
    }'
900
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
901
 
# Check for a 64-bit object if we didn't find anything.
902
 
if test -z "$aix_libpath"; then
903
 
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
904
 
fi],[])
905
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
906
 
])# _LT_AC_SYS_LIBPATH_AIX
907
 
 
908
 
 
909
 
# _LT_AC_SHELL_INIT(ARG)
910
 
# ----------------------
911
 
AC_DEFUN([_LT_AC_SHELL_INIT],
912
 
[ifdef([AC_DIVERSION_NOTICE],
913
 
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
914
 
         [AC_DIVERT_PUSH(NOTICE)])
915
 
$1
916
 
AC_DIVERT_POP
917
 
])# _LT_AC_SHELL_INIT
918
 
 
919
 
 
920
 
# _LT_AC_PROG_ECHO_BACKSLASH
921
 
# --------------------------
922
 
# Add some code to the start of the generated configure script which
923
 
# will find an echo command which doesn't interpret backslashes.
924
 
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
925
 
[_LT_AC_SHELL_INIT([
926
 
# Check that we are running under the correct shell.
927
 
SHELL=${CONFIG_SHELL-/bin/sh}
928
 
 
929
 
case X$ECHO in
930
 
X*--fallback-echo)
931
 
  # Remove one level of quotation (which was required for Make).
932
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
933
 
  ;;
934
 
esac
935
 
 
936
 
echo=${ECHO-echo}
937
 
if test "X[$]1" = X--no-reexec; then
938
 
  # Discard the --no-reexec flag, and continue.
939
 
  shift
940
 
elif test "X[$]1" = X--fallback-echo; then
941
 
  # Avoid inline document here, it may be left over
942
 
  :
943
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
944
 
  # Yippee, $echo works!
945
 
  :
946
 
else
947
 
  # Restart under the correct shell.
948
 
  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
949
 
fi
950
 
 
951
 
if test "X[$]1" = X--fallback-echo; then
952
 
  # used as fallback echo
953
 
  shift
954
 
  cat <<EOF
955
 
[$]*
956
 
EOF
957
 
  exit 0
958
 
fi
959
 
 
960
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
961
 
# if CDPATH is set.
962
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
963
 
 
964
 
if test -z "$ECHO"; then
965
 
if test "X${echo_test_string+set}" != Xset; then
966
 
# find a string as large as possible, as long as the shell can cope with it
967
 
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
968
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
969
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
970
 
       echo_test_string=`eval $cmd` &&
971
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
972
 
    then
973
 
      break
974
 
    fi
975
 
  done
976
 
fi
977
 
 
978
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
979
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
980
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
981
 
  :
982
 
else
983
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
984
 
  # backslashes.  This makes it impossible to quote backslashes using
985
 
  #   echo "$something" | sed 's/\\/\\\\/g'
986
 
  #
987
 
  # So, first we look for a working echo in the user's PATH.
988
 
 
989
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
990
 
  for dir in $PATH /usr/ucb; do
991
 
    IFS="$lt_save_ifs"
992
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
993
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
994
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
995
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
996
 
      echo="$dir/echo"
997
 
      break
998
 
    fi
999
 
  done
1000
 
  IFS="$lt_save_ifs"
1001
 
 
1002
 
  if test "X$echo" = Xecho; then
1003
 
    # We didn't find a better echo, so look for alternatives.
1004
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1005
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1006
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
1007
 
      # This shell has a builtin print -r that does the trick.
1008
 
      echo='print -r'
1009
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1010
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
1011
 
      # If we have ksh, try running configure again with it.
1012
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1013
 
      export ORIGINAL_CONFIG_SHELL
1014
 
      CONFIG_SHELL=/bin/ksh
1015
 
      export CONFIG_SHELL
1016
 
      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1017
 
    else
1018
 
      # Try using printf.
1019
 
      echo='printf %s\n'
1020
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1021
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1022
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1023
 
        # Cool, printf works
1024
 
        :
1025
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1026
 
           test "X$echo_testing_string" = 'X\t' &&
1027
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1028
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1029
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1030
 
        export CONFIG_SHELL
1031
 
        SHELL="$CONFIG_SHELL"
1032
 
        export SHELL
1033
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
1034
 
      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1035
 
           test "X$echo_testing_string" = 'X\t' &&
1036
 
           echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1037
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1038
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
1039
 
      else
1040
 
        # maybe with a smaller string...
1041
 
        prev=:
1042
 
 
1043
 
        for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1044
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1045
 
          then
1046
 
            break
1047
 
          fi
1048
 
          prev="$cmd"
1049
 
        done
1050
 
 
1051
 
        if test "$prev" != 'sed 50q "[$]0"'; then
1052
 
          echo_test_string=`eval $prev`
1053
 
          export echo_test_string
1054
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1055
 
        else
1056
 
          # Oops.  We lost completely, so just stick with echo.
1057
 
          echo=echo
1058
 
        fi
1059
 
      fi
1060
 
    fi
1061
 
  fi
1062
 
fi
1063
 
fi
1064
 
 
1065
 
# Copy echo and quote the copy suitably for passing to libtool from
1066
 
# the Makefile, instead of quoting the original, which is used later.
1067
 
ECHO=$echo
1068
 
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1069
 
   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1070
 
fi
1071
 
 
1072
 
AC_SUBST(ECHO)
1073
 
])])# _LT_AC_PROG_ECHO_BACKSLASH
1074
 
 
1075
 
 
1076
 
# _LT_AC_LOCK
1077
 
# -----------
1078
 
AC_DEFUN([_LT_AC_LOCK],
1079
 
[AC_ARG_ENABLE([libtool-lock],
1080
 
    [AC_HELP_STRING([--disable-libtool-lock],
1081
 
        [avoid locking (might break parallel builds)])])
1082
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1083
 
 
1084
 
# Some flags need to be propagated to the compiler or linker for good
1085
 
# libtool support.
1086
 
case $host in
1087
 
ia64-*-hpux*)
1088
 
  # Find out which ABI we are using.
1089
 
  echo 'int i;' > conftest.$ac_ext
1090
 
  if AC_TRY_EVAL(ac_compile); then
1091
 
    case `/usr/bin/file conftest.$ac_objext` in
1092
 
    *ELF-32*)
1093
 
      HPUX_IA64_MODE="32"
1094
 
      ;;
1095
 
    *ELF-64*)
1096
 
      HPUX_IA64_MODE="64"
1097
 
      ;;
1098
 
    esac
1099
 
  fi
1100
 
  rm -rf conftest*
1101
 
  ;;
1102
 
*-*-irix6*)
1103
 
  # Find out which ABI we are using.
1104
 
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1105
 
  if AC_TRY_EVAL(ac_compile); then
1106
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
1107
 
    case `/usr/bin/file conftest.$ac_objext` in
1108
 
    *32-bit*)
1109
 
      LD="${LD-ld} -melf32bsmip"
1110
 
      ;;
1111
 
    *N32*)
1112
 
      LD="${LD-ld} -melf32bmipn32"
1113
 
      ;;
1114
 
    *64-bit*)
1115
 
      LD="${LD-ld} -melf64bmip"
1116
 
      ;;
1117
 
    esac
1118
 
   else
1119
 
    case `/usr/bin/file conftest.$ac_objext` in
1120
 
    *32-bit*)
1121
 
      LD="${LD-ld} -32"
1122
 
      ;;
1123
 
    *N32*)
1124
 
      LD="${LD-ld} -n32"
1125
 
      ;;
1126
 
    *64-bit*)
1127
 
      LD="${LD-ld} -64"
1128
 
      ;;
1129
 
    esac
1130
 
   fi
1131
 
  fi
1132
 
  rm -rf conftest*
1133
 
  ;;
1134
 
 
1135
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1136
 
s390*-*linux*|sparc*-*linux*)
1137
 
  # Find out which ABI we are using.
1138
 
  echo 'int i;' > conftest.$ac_ext
1139
 
  if AC_TRY_EVAL(ac_compile); then
1140
 
    case `/usr/bin/file conftest.o` in
1141
 
    *32-bit*)
1142
 
      case $host in
1143
 
        x86_64-*kfreebsd*-gnu)
1144
 
          LD="${LD-ld} -m elf_i386_fbsd"
1145
 
          ;;
1146
 
        x86_64-*linux*)
1147
 
          LD="${LD-ld} -m elf_i386"
1148
 
          ;;
1149
 
        ppc64-*linux*|powerpc64-*linux*)
1150
 
          LD="${LD-ld} -m elf32ppclinux"
1151
 
          ;;
1152
 
        s390x-*linux*)
1153
 
          LD="${LD-ld} -m elf_s390"
1154
 
          ;;
1155
 
        sparc64-*linux*)
1156
 
          LD="${LD-ld} -m elf32_sparc"
1157
 
          ;;
1158
 
      esac
1159
 
      ;;
1160
 
    *64-bit*)
1161
 
      case $host in
1162
 
        x86_64-*kfreebsd*-gnu)
1163
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
1164
 
          ;;
1165
 
        x86_64-*linux*)
1166
 
          LD="${LD-ld} -m elf_x86_64"
1167
 
          ;;
1168
 
        ppc*-*linux*|powerpc*-*linux*)
1169
 
          LD="${LD-ld} -m elf64ppc"
1170
 
          ;;
1171
 
        s390*-*linux*)
1172
 
          LD="${LD-ld} -m elf64_s390"
1173
 
          ;;
1174
 
        sparc*-*linux*)
1175
 
          LD="${LD-ld} -m elf64_sparc"
1176
 
          ;;
1177
 
      esac
1178
 
      ;;
1179
 
    esac
1180
 
  fi
1181
 
  rm -rf conftest*
1182
 
  ;;
1183
 
 
1184
 
*-*-sco3.2v5*)
1185
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1186
 
  SAVE_CFLAGS="$CFLAGS"
1187
 
  CFLAGS="$CFLAGS -belf"
1188
 
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1189
 
    [AC_LANG_PUSH(C)
1190
 
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1191
 
     AC_LANG_POP])
1192
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1193
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1194
 
    CFLAGS="$SAVE_CFLAGS"
1195
 
  fi
1196
 
  ;;
1197
 
sparc*-*solaris*)
1198
 
  # Find out which ABI we are using.
1199
 
  echo 'int i;' > conftest.$ac_ext
1200
 
  if AC_TRY_EVAL(ac_compile); then
1201
 
    case `/usr/bin/file conftest.o` in
1202
 
    *64-bit*)
1203
 
      case $lt_cv_prog_gnu_ld in
1204
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
1205
 
      *)
1206
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1207
 
          LD="${LD-ld} -64"
1208
 
        fi
1209
 
        ;;
1210
 
      esac
1211
 
      ;;
1212
 
    esac
1213
 
  fi
1214
 
  rm -rf conftest*
1215
 
  ;;
1216
 
 
1217
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1218
 
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1219
 
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1220
 
  AC_CHECK_TOOL(AS, as, false)
1221
 
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
1222
 
  ;;
1223
 
  ])
1224
 
esac
1225
 
 
1226
 
need_locks="$enable_libtool_lock"
1227
 
 
1228
 
])# _LT_AC_LOCK
1229
 
 
1230
 
 
1231
 
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1232
 
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1233
 
# ----------------------------------------------------------------
1234
 
# Check whether the given compiler option works
1235
 
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1236
 
[AC_REQUIRE([LT_AC_PROG_SED])
1237
 
AC_CACHE_CHECK([$1], [$2],
1238
 
  [$2=no
1239
 
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1240
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1241
 
   lt_compiler_flag="$3"
1242
 
   # Insert the option either (1) after the last *FLAGS variable, or
1243
 
   # (2) before a word containing "conftest.", or (3) at the end.
1244
 
   # Note that $ac_compile itself does not contain backslashes and begins
1245
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
1246
 
   # The option is referenced via a variable to avoid confusing sed.
1247
 
   lt_compile=`echo "$ac_compile" | $SED \
1248
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1249
 
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1250
 
   -e 's:$: $lt_compiler_flag:'`
1251
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1252
 
   (eval "$lt_compile" 2>conftest.err)
1253
 
   ac_status=$?
1254
 
   cat conftest.err >&AS_MESSAGE_LOG_FD
1255
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1256
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
1257
 
     # The compiler can only warn and ignore the option if not recognized
1258
 
     # So say no if there are warnings other than the usual output.
1259
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1260
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1261
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1262
 
       $2=yes
1263
 
     fi
1264
 
   fi
1265
 
   $rm conftest*
1266
 
])
1267
 
 
1268
 
if test x"[$]$2" = xyes; then
1269
 
    ifelse([$5], , :, [$5])
1270
 
else
1271
 
    ifelse([$6], , :, [$6])
1272
 
fi
1273
 
])# AC_LIBTOOL_COMPILER_OPTION
1274
 
 
1275
 
 
1276
 
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1277
 
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
1278
 
# ------------------------------------------------------------
1279
 
# Check whether the given compiler option works
1280
 
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1281
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1282
 
AC_CACHE_CHECK([$1], [$2],
1283
 
  [$2=no
1284
 
   save_LDFLAGS="$LDFLAGS"
1285
 
   LDFLAGS="$LDFLAGS $3"
1286
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1287
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1288
 
     # The linker can only warn and ignore the option if not recognized
1289
 
     # So say no if there are warnings
1290
 
     if test -s conftest.err; then
1291
 
       # Append any errors to the config.log.
1292
 
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
1293
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1294
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1295
 
       if diff conftest.exp conftest.er2 >/dev/null; then
1296
 
         $2=yes
1297
 
       fi
1298
 
     else
1299
 
       $2=yes
1300
 
     fi
1301
 
   fi
1302
 
   $rm -r conftest*
1303
 
   LDFLAGS="$save_LDFLAGS"
1304
 
])
1305
 
 
1306
 
if test x"[$]$2" = xyes; then
1307
 
    ifelse([$4], , :, [$4])
1308
 
else
1309
 
    ifelse([$5], , :, [$5])
1310
 
fi
1311
 
])# AC_LIBTOOL_LINKER_OPTION
1312
 
 
1313
 
 
1314
 
# AC_LIBTOOL_SYS_MAX_CMD_LEN
1315
 
# --------------------------
1316
 
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1317
 
[# find the maximum length of command line arguments
1318
 
AC_MSG_CHECKING([the maximum length of command line arguments])
1319
 
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1320
 
  i=0
1321
 
  teststring="ABCD"
1322
 
 
1323
 
  case $build_os in
1324
 
  msdosdjgpp*)
1325
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
1326
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
1327
 
    # during glob expansion).  Even if it were fixed, the result of this
1328
 
    # check would be larger than it should be.
1329
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
1330
 
    ;;
1331
 
 
1332
 
  gnu*)
1333
 
    # Under GNU Hurd, this test is not required because there is
1334
 
    # no limit to the length of command line arguments.
1335
 
    # Libtool will interpret -1 as no limit whatsoever
1336
 
    lt_cv_sys_max_cmd_len=-1;
1337
 
    ;;
1338
 
 
1339
 
  cygwin* | mingw*)
1340
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
1341
 
    # about 5 minutes as the teststring grows exponentially.
1342
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
1343
 
    # you end up with a "frozen" computer, even though with patience
1344
 
    # the test eventually succeeds (with a max line length of 256k).
1345
 
    # Instead, let's just punt: use the minimum linelength reported by
1346
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
1347
 
    lt_cv_sys_max_cmd_len=8192;
1348
 
    ;;
1349
 
 
1350
 
  amigaos*)
1351
 
    # On AmigaOS with pdksh, this test takes hours, literally.
1352
 
    # So we just punt and use a minimum line length of 8192.
1353
 
    lt_cv_sys_max_cmd_len=8192;
1354
 
    ;;
1355
 
 
1356
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1357
 
    # This has been around since 386BSD, at least.  Likely further.
1358
 
    if test -x /sbin/sysctl; then
1359
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1360
 
    elif test -x /usr/sbin/sysctl; then
1361
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1362
 
    else
1363
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
1364
 
    fi
1365
 
    # And add a safety zone
1366
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1367
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1368
 
    ;;
1369
 
 
1370
 
  interix*)
1371
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
1372
 
    lt_cv_sys_max_cmd_len=196608
1373
 
    ;;
1374
 
 
1375
 
  osf*)
1376
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1377
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1378
 
    # nice to cause kernel panics so lets avoid the loop below.
1379
 
    # First set a reasonable default.
1380
 
    lt_cv_sys_max_cmd_len=16384
1381
 
    #
1382
 
    if test -x /sbin/sysconfig; then
1383
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1384
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
1385
 
      esac
1386
 
    fi
1387
 
    ;;
1388
 
  sco3.2v5*)
1389
 
    lt_cv_sys_max_cmd_len=102400
1390
 
    ;;
1391
 
  sysv5* | sco5v6* | sysv4.2uw2*)
1392
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1393
 
    if test -n "$kargmax"; then
1394
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
1395
 
    else
1396
 
      lt_cv_sys_max_cmd_len=32768
1397
 
    fi
1398
 
    ;;
1399
 
  *)
1400
 
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1401
 
    if test -n "$lt_cv_sys_max_cmd_len"; then
1402
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1403
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1404
 
    else
1405
 
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1406
 
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1407
 
               = "XX$teststring") >/dev/null 2>&1 &&
1408
 
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
1409
 
              lt_cv_sys_max_cmd_len=$new_result &&
1410
 
              test $i != 17 # 1/2 MB should be enough
1411
 
      do
1412
 
        i=`expr $i + 1`
1413
 
        teststring=$teststring$teststring
1414
 
      done
1415
 
      teststring=
1416
 
      # Add a significant safety factor because C++ compilers can tack on massive
1417
 
      # amounts of additional arguments before passing them to the linker.
1418
 
      # It appears as though 1/2 is a usable value.
1419
 
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1420
 
    fi
1421
 
    ;;
1422
 
  esac
1423
 
])
1424
 
if test -n $lt_cv_sys_max_cmd_len ; then
1425
 
  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1426
 
else
1427
 
  AC_MSG_RESULT(none)
1428
 
fi
1429
 
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1430
 
 
1431
 
 
1432
 
# _LT_AC_CHECK_DLFCN
1433
 
# ------------------
1434
 
AC_DEFUN([_LT_AC_CHECK_DLFCN],
1435
 
[AC_CHECK_HEADERS(dlfcn.h)dnl
1436
 
])# _LT_AC_CHECK_DLFCN
1437
 
 
1438
 
 
1439
 
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1440
 
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1441
 
# ---------------------------------------------------------------------
1442
 
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1443
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1444
 
if test "$cross_compiling" = yes; then :
1445
 
  [$4]
1446
 
else
1447
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1448
 
  lt_status=$lt_dlunknown
1449
 
  cat > conftest.$ac_ext <<EOF
1450
 
[#line __oline__ "configure"
1451
 
#include "confdefs.h"
1452
 
 
1453
 
#if HAVE_DLFCN_H
1454
 
#include <dlfcn.h>
1455
 
#endif
1456
 
 
1457
 
#include <stdio.h>
1458
 
 
1459
 
#ifdef RTLD_GLOBAL
1460
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
1461
 
#else
1462
 
#  ifdef DL_GLOBAL
1463
 
#    define LT_DLGLOBAL         DL_GLOBAL
1464
 
#  else
1465
 
#    define LT_DLGLOBAL         0
1466
 
#  endif
1467
 
#endif
1468
 
 
1469
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1470
 
   find out it does not work in some platform. */
1471
 
#ifndef LT_DLLAZY_OR_NOW
1472
 
#  ifdef RTLD_LAZY
1473
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
1474
 
#  else
1475
 
#    ifdef DL_LAZY
1476
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
1477
 
#    else
1478
 
#      ifdef RTLD_NOW
1479
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
1480
 
#      else
1481
 
#        ifdef DL_NOW
1482
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
1483
 
#        else
1484
 
#          define LT_DLLAZY_OR_NOW      0
1485
 
#        endif
1486
 
#      endif
1487
 
#    endif
1488
 
#  endif
1489
 
#endif
1490
 
 
1491
 
#ifdef __cplusplus
1492
 
extern "C" void exit (int);
1493
 
#endif
1494
 
 
1495
 
void fnord() { int i=42;}
1496
 
int main ()
1497
 
{
1498
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1499
 
  int status = $lt_dlunknown;
1500
 
 
1501
 
  if (self)
1502
 
    {
1503
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
1504
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1505
 
      /* dlclose (self); */
1506
 
    }
1507
 
  else
1508
 
    puts (dlerror ());
1509
 
 
1510
 
    exit (status);
1511
 
}]
1512
 
EOF
1513
 
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1514
 
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1515
 
    lt_status=$?
1516
 
    case x$lt_status in
1517
 
      x$lt_dlno_uscore) $1 ;;
1518
 
      x$lt_dlneed_uscore) $2 ;;
1519
 
      x$lt_dlunknown|x*) $3 ;;
1520
 
    esac
1521
 
  else :
1522
 
    # compilation failed
1523
 
    $3
1524
 
  fi
1525
 
fi
1526
 
rm -fr conftest*
1527
 
])# _LT_AC_TRY_DLOPEN_SELF
1528
 
 
1529
 
 
1530
 
# AC_LIBTOOL_DLOPEN_SELF
1531
 
# ----------------------
1532
 
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1533
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1534
 
if test "x$enable_dlopen" != xyes; then
1535
 
  enable_dlopen=unknown
1536
 
  enable_dlopen_self=unknown
1537
 
  enable_dlopen_self_static=unknown
1538
 
else
1539
 
  lt_cv_dlopen=no
1540
 
  lt_cv_dlopen_libs=
1541
 
 
1542
 
  case $host_os in
1543
 
  beos*)
1544
 
    lt_cv_dlopen="load_add_on"
1545
 
    lt_cv_dlopen_libs=
1546
 
    lt_cv_dlopen_self=yes
1547
 
    ;;
1548
 
 
1549
 
  mingw* | pw32*)
1550
 
    lt_cv_dlopen="LoadLibrary"
1551
 
    lt_cv_dlopen_libs=
1552
 
   ;;
1553
 
 
1554
 
  cygwin*)
1555
 
    lt_cv_dlopen="dlopen"
1556
 
    lt_cv_dlopen_libs=
1557
 
   ;;
1558
 
 
1559
 
  darwin*)
1560
 
  # if libdl is installed we need to link against it
1561
 
    AC_CHECK_LIB([dl], [dlopen],
1562
 
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1563
 
    lt_cv_dlopen="dyld"
1564
 
    lt_cv_dlopen_libs=
1565
 
    lt_cv_dlopen_self=yes
1566
 
    ])
1567
 
   ;;
1568
 
 
1569
 
  *)
1570
 
    AC_CHECK_FUNC([shl_load],
1571
 
          [lt_cv_dlopen="shl_load"],
1572
 
      [AC_CHECK_LIB([dld], [shl_load],
1573
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1574
 
        [AC_CHECK_FUNC([dlopen],
1575
 
              [lt_cv_dlopen="dlopen"],
1576
 
          [AC_CHECK_LIB([dl], [dlopen],
1577
 
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1578
 
            [AC_CHECK_LIB([svld], [dlopen],
1579
 
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1580
 
              [AC_CHECK_LIB([dld], [dld_link],
1581
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1582
 
              ])
1583
 
            ])
1584
 
          ])
1585
 
        ])
1586
 
      ])
1587
 
    ;;
1588
 
  esac
1589
 
 
1590
 
  if test "x$lt_cv_dlopen" != xno; then
1591
 
    enable_dlopen=yes
1592
 
  else
1593
 
    enable_dlopen=no
1594
 
  fi
1595
 
 
1596
 
  case $lt_cv_dlopen in
1597
 
  dlopen)
1598
 
    save_CPPFLAGS="$CPPFLAGS"
1599
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1600
 
 
1601
 
    save_LDFLAGS="$LDFLAGS"
1602
 
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1603
 
 
1604
 
    save_LIBS="$LIBS"
1605
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
1606
 
 
1607
 
    AC_CACHE_CHECK([whether a program can dlopen itself],
1608
 
          lt_cv_dlopen_self, [dnl
1609
 
          _LT_AC_TRY_DLOPEN_SELF(
1610
 
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1611
 
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1612
 
    ])
1613
 
 
1614
 
    if test "x$lt_cv_dlopen_self" = xyes; then
1615
 
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1616
 
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1617
 
          lt_cv_dlopen_self_static, [dnl
1618
 
          _LT_AC_TRY_DLOPEN_SELF(
1619
 
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1620
 
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
1621
 
      ])
1622
 
    fi
1623
 
 
1624
 
    CPPFLAGS="$save_CPPFLAGS"
1625
 
    LDFLAGS="$save_LDFLAGS"
1626
 
    LIBS="$save_LIBS"
1627
 
    ;;
1628
 
  esac
1629
 
 
1630
 
  case $lt_cv_dlopen_self in
1631
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1632
 
  *) enable_dlopen_self=unknown ;;
1633
 
  esac
1634
 
 
1635
 
  case $lt_cv_dlopen_self_static in
1636
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1637
 
  *) enable_dlopen_self_static=unknown ;;
1638
 
  esac
1639
 
fi
1640
 
])# AC_LIBTOOL_DLOPEN_SELF
1641
 
 
1642
 
 
1643
 
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1644
 
# ---------------------------------
1645
 
# Check to see if options -c and -o are simultaneously supported by compiler
1646
 
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1647
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1648
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1649
 
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1650
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1651
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1652
 
   $rm -r conftest 2>/dev/null
1653
 
   mkdir conftest
1654
 
   cd conftest
1655
 
   mkdir out
1656
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1657
 
 
1658
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1659
 
   # Insert the option either (1) after the last *FLAGS variable, or
1660
 
   # (2) before a word containing "conftest.", or (3) at the end.
1661
 
   # Note that $ac_compile itself does not contain backslashes and begins
1662
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
1663
 
   lt_compile=`echo "$ac_compile" | $SED \
1664
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1665
 
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1666
 
   -e 's:$: $lt_compiler_flag:'`
1667
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1668
 
   (eval "$lt_compile" 2>out/conftest.err)
1669
 
   ac_status=$?
1670
 
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
1671
 
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1672
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
1673
 
   then
1674
 
     # The compiler can only warn and ignore the option if not recognized
1675
 
     # So say no if there are warnings
1676
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1677
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1678
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1679
 
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1680
 
     fi
1681
 
   fi
1682
 
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
1683
 
   $rm conftest*
1684
 
   # SGI C++ compiler will create directory out/ii_files/ for
1685
 
   # template instantiation
1686
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1687
 
   $rm out/* && rmdir out
1688
 
   cd ..
1689
 
   rmdir conftest
1690
 
   $rm conftest*
1691
 
])
1692
 
])# AC_LIBTOOL_PROG_CC_C_O
1693
 
 
1694
 
 
1695
 
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1696
 
# -----------------------------------------
1697
 
# Check to see if we can do hard links to lock some files if needed
1698
 
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1699
 
[AC_REQUIRE([_LT_AC_LOCK])dnl
1700
 
 
1701
 
hard_links="nottested"
1702
 
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1703
 
  # do not overwrite the value of need_locks provided by the user
1704
 
  AC_MSG_CHECKING([if we can lock with hard links])
1705
 
  hard_links=yes
1706
 
  $rm conftest*
1707
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1708
 
  touch conftest.a
1709
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
1710
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1711
 
  AC_MSG_RESULT([$hard_links])
1712
 
  if test "$hard_links" = no; then
1713
 
    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1714
 
    need_locks=warn
1715
 
  fi
1716
 
else
1717
 
  need_locks=no
1718
 
fi
1719
 
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1720
 
 
1721
 
 
1722
 
# AC_LIBTOOL_OBJDIR
1723
 
# -----------------
1724
 
AC_DEFUN([AC_LIBTOOL_OBJDIR],
1725
 
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1726
 
[rm -f .libs 2>/dev/null
1727
 
mkdir .libs 2>/dev/null
1728
 
if test -d .libs; then
1729
 
  lt_cv_objdir=.libs
1730
 
else
1731
 
  # MS-DOS does not allow filenames that begin with a dot.
1732
 
  lt_cv_objdir=_libs
1733
 
fi
1734
 
rmdir .libs 2>/dev/null])
1735
 
objdir=$lt_cv_objdir
1736
 
])# AC_LIBTOOL_OBJDIR
1737
 
 
1738
 
 
1739
 
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1740
 
# ----------------------------------------------
1741
 
# Check hardcoding attributes.
1742
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1743
 
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1744
 
_LT_AC_TAGVAR(hardcode_action, $1)=
1745
 
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1746
 
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1747
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1748
 
 
1749
 
  # We can hardcode non-existant directories.
1750
 
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1751
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
1752
 
     # have to relink, otherwise we might link with an installed library
1753
 
     # when we should be linking with a yet-to-be-installed one
1754
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1755
 
     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1756
 
    # Linking always hardcodes the temporary library directory.
1757
 
    _LT_AC_TAGVAR(hardcode_action, $1)=relink
1758
 
  else
1759
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
1760
 
    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1761
 
  fi
1762
 
else
1763
 
  # We cannot hardcode anything, or else we can only hardcode existing
1764
 
  # directories.
1765
 
  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1766
 
fi
1767
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1768
 
 
1769
 
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1770
 
  # Fast installation is not supported
1771
 
  enable_fast_install=no
1772
 
elif test "$shlibpath_overrides_runpath" = yes ||
1773
 
     test "$enable_shared" = no; then
1774
 
  # Fast installation is not necessary
1775
 
  enable_fast_install=needless
1776
 
fi
1777
 
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1778
 
 
1779
 
 
1780
 
# AC_LIBTOOL_SYS_LIB_STRIP
1781
 
# ------------------------
1782
 
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1783
 
[striplib=
1784
 
old_striplib=
1785
 
AC_MSG_CHECKING([whether stripping libraries is possible])
1786
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1787
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1788
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1789
 
  AC_MSG_RESULT([yes])
1790
 
else
1791
 
# FIXME - insert some real tests, host_os isn't really good enough
1792
 
  case $host_os in
1793
 
   darwin*)
1794
 
       if test -n "$STRIP" ; then
1795
 
         striplib="$STRIP -x"
1796
 
         old_striplib="$STRIP -S"
1797
 
         AC_MSG_RESULT([yes])
1798
 
       else
1799
 
  AC_MSG_RESULT([no])
1800
 
fi
1801
 
       ;;
1802
 
   *)
1803
 
  AC_MSG_RESULT([no])
1804
 
    ;;
1805
 
  esac
1806
 
fi
1807
 
])# AC_LIBTOOL_SYS_LIB_STRIP
1808
 
 
1809
 
 
1810
 
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1811
 
# -----------------------------
1812
 
# PORTME Fill in your ld.so characteristics
1813
 
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1814
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1815
 
AC_MSG_CHECKING([dynamic linker characteristics])
1816
 
library_names_spec=
1817
 
libname_spec='lib$name'
1818
 
soname_spec=
1819
 
shrext_cmds=".so"
1820
 
postinstall_cmds=
1821
 
postuninstall_cmds=
1822
 
finish_cmds=
1823
 
finish_eval=
1824
 
shlibpath_var=
1825
 
shlibpath_overrides_runpath=unknown
1826
 
version_type=none
1827
 
dynamic_linker="$host_os ld.so"
1828
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1829
 
m4_if($1,[],[
1830
 
if test "$GCC" = yes; then
1831
 
  case $host_os in
1832
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1833
 
    *) lt_awk_arg="/^libraries:/" ;;
1834
 
  esac
1835
 
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1836
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1837
 
    # if the path contains ";" then we assume it to be the separator
1838
 
    # otherwise default to the standard path separator (i.e. ":") - it is
1839
 
    # assumed that no part of a normal pathname contains ";" but that should
1840
 
    # okay in the real world where ";" in dirpaths is itself problematic.
1841
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1842
 
  else
1843
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1844
 
  fi
1845
 
  # Ok, now we have the path, separated by spaces, we can step through it
1846
 
  # and add multilib dir if necessary.
1847
 
  lt_tmp_lt_search_path_spec=
1848
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1849
 
  for lt_sys_path in $lt_search_path_spec; do
1850
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1851
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1852
 
    else
1853
 
      test -d "$lt_sys_path" && \
1854
 
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1855
 
    fi
1856
 
  done
1857
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1858
 
BEGIN {RS=" "; FS="/|\n";} {
1859
 
  lt_foo="";
1860
 
  lt_count=0;
1861
 
  for (lt_i = NF; lt_i > 0; lt_i--) {
1862
 
    if ($lt_i != "" && $lt_i != ".") {
1863
 
      if ($lt_i == "..") {
1864
 
        lt_count++;
1865
 
      } else {
1866
 
        if (lt_count == 0) {
1867
 
          lt_foo="/" $lt_i lt_foo;
1868
 
        } else {
1869
 
          lt_count--;
1870
 
        }
1871
 
      }
1872
 
    }
1873
 
  }
1874
 
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1875
 
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1876
 
}'`
1877
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
1878
 
else
1879
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1880
 
fi])
1881
 
need_lib_prefix=unknown
1882
 
hardcode_into_libs=no
1883
 
 
1884
 
# when you set need_version to no, make sure it does not cause -set_version
1885
 
# flags to be left without arguments
1886
 
need_version=unknown
1887
 
 
1888
 
case $host_os in
1889
 
aix3*)
1890
 
  version_type=linux
1891
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1892
 
  shlibpath_var=LIBPATH
1893
 
 
1894
 
  # AIX 3 has no versioning support, so we append a major version to the name.
1895
 
  soname_spec='${libname}${release}${shared_ext}$major'
1896
 
  ;;
1897
 
 
1898
 
aix[[4-9]]*)
1899
 
  version_type=linux
1900
 
  need_lib_prefix=no
1901
 
  need_version=no
1902
 
  hardcode_into_libs=yes
1903
 
  if test "$host_cpu" = ia64; then
1904
 
    # AIX 5 supports IA64
1905
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1906
 
    shlibpath_var=LD_LIBRARY_PATH
1907
 
  else
1908
 
    # With GCC up to 2.95.x, collect2 would create an import file
1909
 
    # for dependence libraries.  The import file would start with
1910
 
    # the line `#! .'.  This would cause the generated library to
1911
 
    # depend on `.', always an invalid library.  This was fixed in
1912
 
    # development snapshots of GCC prior to 3.0.
1913
 
    case $host_os in
1914
 
      aix4 | aix4.[[01]] | aix4.[[01]].*)
1915
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1916
 
           echo ' yes '
1917
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1918
 
        :
1919
 
      else
1920
 
        can_build_shared=no
1921
 
      fi
1922
 
      ;;
1923
 
    esac
1924
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1925
 
    # soname into executable. Probably we can add versioning support to
1926
 
    # collect2, so additional links can be useful in future.
1927
 
    if test "$aix_use_runtimelinking" = yes; then
1928
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1929
 
      # instead of lib<name>.a to let people know that these are not
1930
 
      # typical AIX shared libraries.
1931
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1932
 
    else
1933
 
      # We preserve .a as extension for shared libraries through AIX4.2
1934
 
      # and later when we are not doing run time linking.
1935
 
      library_names_spec='${libname}${release}.a $libname.a'
1936
 
      soname_spec='${libname}${release}${shared_ext}$major'
1937
 
    fi
1938
 
    shlibpath_var=LIBPATH
1939
 
  fi
1940
 
  ;;
1941
 
 
1942
 
amigaos*)
1943
 
  library_names_spec='$libname.ixlibrary $libname.a'
1944
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
1945
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
1946
 
  ;;
1947
 
 
1948
 
beos*)
1949
 
  library_names_spec='${libname}${shared_ext}'
1950
 
  dynamic_linker="$host_os ld.so"
1951
 
  shlibpath_var=LIBRARY_PATH
1952
 
  ;;
1953
 
 
1954
 
bsdi[[45]]*)
1955
 
  version_type=linux
1956
 
  need_version=no
1957
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1958
 
  soname_spec='${libname}${release}${shared_ext}$major'
1959
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1960
 
  shlibpath_var=LD_LIBRARY_PATH
1961
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1962
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1963
 
  # the default ld.so.conf also contains /usr/contrib/lib and
1964
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1965
 
  # libtool to hard-code these into programs
1966
 
  ;;
1967
 
 
1968
 
cygwin* | mingw* | pw32*)
1969
 
  version_type=windows
1970
 
  shrext_cmds=".dll"
1971
 
  need_version=no
1972
 
  need_lib_prefix=no
1973
 
 
1974
 
  case $GCC,$host_os in
1975
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
1976
 
    library_names_spec='$libname.dll.a'
1977
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
1978
 
    postinstall_cmds='base_file=`basename \${file}`~
1979
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1980
 
      dldir=$destdir/`dirname \$dlpath`~
1981
 
      test -d \$dldir || mkdir -p \$dldir~
1982
 
      $install_prog $dir/$dlname \$dldir/$dlname~
1983
 
      chmod a+x \$dldir/$dlname'
1984
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1985
 
      dlpath=$dir/\$dldll~
1986
 
       $rm \$dlpath'
1987
 
    shlibpath_overrides_runpath=yes
1988
 
 
1989
 
    case $host_os in
1990
 
    cygwin*)
1991
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1992
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1993
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1994
 
      ;;
1995
 
    mingw*)
1996
 
      # MinGW DLLs use traditional 'lib' prefix
1997
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1998
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1999
 
      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2000
 
        # It is most probably a Windows format PATH printed by
2001
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
2002
 
        # path with ; separators, and with drive letters. We can handle the
2003
 
        # drive letters (cygwin fileutils understands them), so leave them,
2004
 
        # especially as we might pass files found there to a mingw objdump,
2005
 
        # which wouldn't understand a cygwinified path. Ahh.
2006
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2007
 
      else
2008
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2009
 
      fi
2010
 
      ;;
2011
 
    pw32*)
2012
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
2013
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2014
 
      ;;
2015
 
    esac
2016
 
    ;;
2017
 
 
2018
 
  *)
2019
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2020
 
    ;;
2021
 
  esac
2022
 
  dynamic_linker='Win32 ld.exe'
2023
 
  # FIXME: first we should search . and the directory the executable is in
2024
 
  shlibpath_var=PATH
2025
 
  ;;
2026
 
 
2027
 
darwin* | rhapsody*)
2028
 
  dynamic_linker="$host_os dyld"
2029
 
  version_type=darwin
2030
 
  need_lib_prefix=no
2031
 
  need_version=no
2032
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2033
 
  soname_spec='${libname}${release}${major}$shared_ext'
2034
 
  shlibpath_overrides_runpath=yes
2035
 
  shlibpath_var=DYLD_LIBRARY_PATH
2036
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2037
 
  m4_if([$1], [],[
2038
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
2039
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2040
 
  ;;
2041
 
 
2042
 
dgux*)
2043
 
  version_type=linux
2044
 
  need_lib_prefix=no
2045
 
  need_version=no
2046
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2047
 
  soname_spec='${libname}${release}${shared_ext}$major'
2048
 
  shlibpath_var=LD_LIBRARY_PATH
2049
 
  ;;
2050
 
 
2051
 
freebsd1*)
2052
 
  dynamic_linker=no
2053
 
  ;;
2054
 
 
2055
 
freebsd* | dragonfly*)
2056
 
  # DragonFly does not have aout.  When/if they implement a new
2057
 
  # versioning mechanism, adjust this.
2058
 
  if test -x /usr/bin/objformat; then
2059
 
    objformat=`/usr/bin/objformat`
2060
 
  else
2061
 
    case $host_os in
2062
 
    freebsd[[123]]*) objformat=aout ;;
2063
 
    *) objformat=elf ;;
2064
 
    esac
2065
 
  fi
2066
 
  version_type=freebsd-$objformat
2067
 
  case $version_type in
2068
 
    freebsd-elf*)
2069
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2070
 
      need_version=no
2071
 
      need_lib_prefix=no
2072
 
      ;;
2073
 
    freebsd-*)
2074
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2075
 
      need_version=yes
2076
 
      ;;
2077
 
  esac
2078
 
  shlibpath_var=LD_LIBRARY_PATH
2079
 
  case $host_os in
2080
 
  freebsd2*)
2081
 
    shlibpath_overrides_runpath=yes
2082
 
    ;;
2083
 
  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2084
 
    shlibpath_overrides_runpath=yes
2085
 
    hardcode_into_libs=yes
2086
 
    ;;
2087
 
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2088
 
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2089
 
    shlibpath_overrides_runpath=no
2090
 
    hardcode_into_libs=yes
2091
 
    ;;
2092
 
  *) # from 4.6 on, and DragonFly
2093
 
    shlibpath_overrides_runpath=yes
2094
 
    hardcode_into_libs=yes
2095
 
    ;;
2096
 
  esac
2097
 
  ;;
2098
 
 
2099
 
gnu*)
2100
 
  version_type=linux
2101
 
  need_lib_prefix=no
2102
 
  need_version=no
2103
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2104
 
  soname_spec='${libname}${release}${shared_ext}$major'
2105
 
  shlibpath_var=LD_LIBRARY_PATH
2106
 
  hardcode_into_libs=yes
2107
 
  ;;
2108
 
 
2109
 
hpux9* | hpux10* | hpux11*)
2110
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
2111
 
  # link against other versions.
2112
 
  version_type=sunos
2113
 
  need_lib_prefix=no
2114
 
  need_version=no
2115
 
  case $host_cpu in
2116
 
  ia64*)
2117
 
    shrext_cmds='.so'
2118
 
    hardcode_into_libs=yes
2119
 
    dynamic_linker="$host_os dld.so"
2120
 
    shlibpath_var=LD_LIBRARY_PATH
2121
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2122
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2123
 
    soname_spec='${libname}${release}${shared_ext}$major'
2124
 
    if test "X$HPUX_IA64_MODE" = X32; then
2125
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2126
 
    else
2127
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2128
 
    fi
2129
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2130
 
    ;;
2131
 
   hppa*64*)
2132
 
     shrext_cmds='.sl'
2133
 
     hardcode_into_libs=yes
2134
 
     dynamic_linker="$host_os dld.sl"
2135
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2136
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2137
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2138
 
     soname_spec='${libname}${release}${shared_ext}$major'
2139
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2140
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2141
 
     ;;
2142
 
   *)
2143
 
    shrext_cmds='.sl'
2144
 
    dynamic_linker="$host_os dld.sl"
2145
 
    shlibpath_var=SHLIB_PATH
2146
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2147
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2148
 
    soname_spec='${libname}${release}${shared_ext}$major'
2149
 
    ;;
2150
 
  esac
2151
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
2152
 
  postinstall_cmds='chmod 555 $lib'
2153
 
  ;;
2154
 
 
2155
 
interix[[3-9]]*)
2156
 
  version_type=linux
2157
 
  need_lib_prefix=no
2158
 
  need_version=no
2159
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2160
 
  soname_spec='${libname}${release}${shared_ext}$major'
2161
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2162
 
  shlibpath_var=LD_LIBRARY_PATH
2163
 
  shlibpath_overrides_runpath=no
2164
 
  hardcode_into_libs=yes
2165
 
  ;;
2166
 
 
2167
 
irix5* | irix6* | nonstopux*)
2168
 
  case $host_os in
2169
 
    nonstopux*) version_type=nonstopux ;;
2170
 
    *)
2171
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
2172
 
                version_type=linux
2173
 
        else
2174
 
                version_type=irix
2175
 
        fi ;;
2176
 
  esac
2177
 
  need_lib_prefix=no
2178
 
  need_version=no
2179
 
  soname_spec='${libname}${release}${shared_ext}$major'
2180
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2181
 
  case $host_os in
2182
 
  irix5* | nonstopux*)
2183
 
    libsuff= shlibsuff=
2184
 
    ;;
2185
 
  *)
2186
 
    case $LD in # libtool.m4 will add one of these switches to LD
2187
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2188
 
      libsuff= shlibsuff= libmagic=32-bit;;
2189
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2190
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
2191
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2192
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
2193
 
    *) libsuff= shlibsuff= libmagic=never-match;;
2194
 
    esac
2195
 
    ;;
2196
 
  esac
2197
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2198
 
  shlibpath_overrides_runpath=no
2199
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2200
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2201
 
  hardcode_into_libs=yes
2202
 
  ;;
2203
 
 
2204
 
# No shared lib support for Linux oldld, aout, or coff.
2205
 
linux*oldld* | linux*aout* | linux*coff*)
2206
 
  dynamic_linker=no
2207
 
  ;;
2208
 
 
2209
 
# This must be Linux ELF.
2210
 
linux* | k*bsd*-gnu)
2211
 
  version_type=linux
2212
 
  need_lib_prefix=no
2213
 
  need_version=no
2214
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2215
 
  soname_spec='${libname}${release}${shared_ext}$major'
2216
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2217
 
  shlibpath_var=LD_LIBRARY_PATH
2218
 
  shlibpath_overrides_runpath=no
2219
 
  # This implies no fast_install, which is unacceptable.
2220
 
  # Some rework will be needed to allow for fast_install
2221
 
  # before this can be enabled.
2222
 
  hardcode_into_libs=yes
2223
 
 
2224
 
  # Append ld.so.conf contents to the search path
2225
 
  if test -f /etc/ld.so.conf; then
2226
 
    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;/^$/d' | tr '\n' ' '`
2227
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2228
 
  fi
2229
 
 
2230
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
2231
 
  # powerpc, because MkLinux only supported shared libraries with the
2232
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
2233
 
  # most powerpc-linux boxes support dynamic linking these days and
2234
 
  # people can always --disable-shared, the test was removed, and we
2235
 
  # assume the GNU/Linux dynamic linker is in use.
2236
 
  dynamic_linker='GNU/Linux ld.so'
2237
 
  ;;
2238
 
 
2239
 
netbsdelf*-gnu)
2240
 
  version_type=linux
2241
 
  need_lib_prefix=no
2242
 
  need_version=no
2243
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2244
 
  soname_spec='${libname}${release}${shared_ext}$major'
2245
 
  shlibpath_var=LD_LIBRARY_PATH
2246
 
  shlibpath_overrides_runpath=no
2247
 
  hardcode_into_libs=yes
2248
 
  dynamic_linker='NetBSD ld.elf_so'
2249
 
  ;;
2250
 
 
2251
 
netbsd*)
2252
 
  version_type=sunos
2253
 
  need_lib_prefix=no
2254
 
  need_version=no
2255
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2256
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2257
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2258
 
    dynamic_linker='NetBSD (a.out) ld.so'
2259
 
  else
2260
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2261
 
    soname_spec='${libname}${release}${shared_ext}$major'
2262
 
    dynamic_linker='NetBSD ld.elf_so'
2263
 
  fi
2264
 
  shlibpath_var=LD_LIBRARY_PATH
2265
 
  shlibpath_overrides_runpath=yes
2266
 
  hardcode_into_libs=yes
2267
 
  ;;
2268
 
 
2269
 
newsos6)
2270
 
  version_type=linux
2271
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2272
 
  shlibpath_var=LD_LIBRARY_PATH
2273
 
  shlibpath_overrides_runpath=yes
2274
 
  ;;
2275
 
 
2276
 
nto-qnx*)
2277
 
  version_type=linux
2278
 
  need_lib_prefix=no
2279
 
  need_version=no
2280
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2281
 
  soname_spec='${libname}${release}${shared_ext}$major'
2282
 
  shlibpath_var=LD_LIBRARY_PATH
2283
 
  shlibpath_overrides_runpath=yes
2284
 
  ;;
2285
 
 
2286
 
openbsd*)
2287
 
  version_type=sunos
2288
 
  sys_lib_dlsearch_path_spec="/usr/lib"
2289
 
  need_lib_prefix=no
2290
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2291
 
  case $host_os in
2292
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2293
 
    *)                         need_version=no  ;;
2294
 
  esac
2295
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2296
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2297
 
  shlibpath_var=LD_LIBRARY_PATH
2298
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2299
 
    case $host_os in
2300
 
      openbsd2.[[89]] | openbsd2.[[89]].*)
2301
 
        shlibpath_overrides_runpath=no
2302
 
        ;;
2303
 
      *)
2304
 
        shlibpath_overrides_runpath=yes
2305
 
        ;;
2306
 
      esac
2307
 
  else
2308
 
    shlibpath_overrides_runpath=yes
2309
 
  fi
2310
 
  ;;
2311
 
 
2312
 
os2*)
2313
 
  libname_spec='$name'
2314
 
  shrext_cmds=".dll"
2315
 
  need_lib_prefix=no
2316
 
  library_names_spec='$libname${shared_ext} $libname.a'
2317
 
  dynamic_linker='OS/2 ld.exe'
2318
 
  shlibpath_var=LIBPATH
2319
 
  ;;
2320
 
 
2321
 
osf3* | osf4* | osf5*)
2322
 
  version_type=osf
2323
 
  need_lib_prefix=no
2324
 
  need_version=no
2325
 
  soname_spec='${libname}${release}${shared_ext}$major'
2326
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2327
 
  shlibpath_var=LD_LIBRARY_PATH
2328
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2329
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2330
 
  ;;
2331
 
 
2332
 
rdos*)
2333
 
  dynamic_linker=no
2334
 
  ;;
2335
 
 
2336
 
solaris*)
2337
 
  version_type=linux
2338
 
  need_lib_prefix=no
2339
 
  need_version=no
2340
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2341
 
  soname_spec='${libname}${release}${shared_ext}$major'
2342
 
  shlibpath_var=LD_LIBRARY_PATH
2343
 
  shlibpath_overrides_runpath=yes
2344
 
  hardcode_into_libs=yes
2345
 
  # ldd complains unless libraries are executable
2346
 
  postinstall_cmds='chmod +x $lib'
2347
 
  ;;
2348
 
 
2349
 
sunos4*)
2350
 
  version_type=sunos
2351
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2352
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2353
 
  shlibpath_var=LD_LIBRARY_PATH
2354
 
  shlibpath_overrides_runpath=yes
2355
 
  if test "$with_gnu_ld" = yes; then
2356
 
    need_lib_prefix=no
2357
 
  fi
2358
 
  need_version=yes
2359
 
  ;;
2360
 
 
2361
 
sysv4 | sysv4.3*)
2362
 
  version_type=linux
2363
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2364
 
  soname_spec='${libname}${release}${shared_ext}$major'
2365
 
  shlibpath_var=LD_LIBRARY_PATH
2366
 
  case $host_vendor in
2367
 
    sni)
2368
 
      shlibpath_overrides_runpath=no
2369
 
      need_lib_prefix=no
2370
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
2371
 
      runpath_var=LD_RUN_PATH
2372
 
      ;;
2373
 
    siemens)
2374
 
      need_lib_prefix=no
2375
 
      ;;
2376
 
    motorola)
2377
 
      need_lib_prefix=no
2378
 
      need_version=no
2379
 
      shlibpath_overrides_runpath=no
2380
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2381
 
      ;;
2382
 
  esac
2383
 
  ;;
2384
 
 
2385
 
sysv4*MP*)
2386
 
  if test -d /usr/nec ;then
2387
 
    version_type=linux
2388
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2389
 
    soname_spec='$libname${shared_ext}.$major'
2390
 
    shlibpath_var=LD_LIBRARY_PATH
2391
 
  fi
2392
 
  ;;
2393
 
 
2394
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2395
 
  version_type=freebsd-elf
2396
 
  need_lib_prefix=no
2397
 
  need_version=no
2398
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2399
 
  soname_spec='${libname}${release}${shared_ext}$major'
2400
 
  shlibpath_var=LD_LIBRARY_PATH
2401
 
  hardcode_into_libs=yes
2402
 
  if test "$with_gnu_ld" = yes; then
2403
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2404
 
    shlibpath_overrides_runpath=no
2405
 
  else
2406
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2407
 
    shlibpath_overrides_runpath=yes
2408
 
    case $host_os in
2409
 
      sco3.2v5*)
2410
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2411
 
        ;;
2412
 
    esac
2413
 
  fi
2414
 
  sys_lib_dlsearch_path_spec='/usr/lib'
2415
 
  ;;
2416
 
 
2417
 
uts4*)
2418
 
  version_type=linux
2419
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2420
 
  soname_spec='${libname}${release}${shared_ext}$major'
2421
 
  shlibpath_var=LD_LIBRARY_PATH
2422
 
  ;;
2423
 
 
2424
 
*)
2425
 
  dynamic_linker=no
2426
 
  ;;
2427
 
esac
2428
 
AC_MSG_RESULT([$dynamic_linker])
2429
 
test "$dynamic_linker" = no && can_build_shared=no
2430
 
 
2431
 
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
2432
 
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
2433
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2434
 
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
2435
 
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
2436
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2437
 
 
2438
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2439
 
if test "$GCC" = yes; then
2440
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2441
 
fi
2442
 
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2443
 
 
2444
 
 
2445
 
# _LT_AC_TAGCONFIG
2446
 
# ----------------
2447
 
AC_DEFUN([_LT_AC_TAGCONFIG],
2448
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
2449
 
AC_ARG_WITH([tags],
2450
 
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2451
 
        [include additional configurations @<:@automatic@:>@])],
2452
 
    [tagnames="$withval"])
2453
 
 
2454
 
if test -f "$ltmain" && test -n "$tagnames"; then
2455
 
  if test ! -f "${ofile}"; then
2456
 
    AC_MSG_WARN([output file `$ofile' does not exist])
2457
 
  fi
2458
 
 
2459
 
  if test -z "$LTCC"; then
2460
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2461
 
    if test -z "$LTCC"; then
2462
 
      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2463
 
    else
2464
 
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2465
 
    fi
2466
 
  fi
2467
 
  if test -z "$LTCFLAGS"; then
2468
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2469
 
  fi
2470
 
 
2471
 
  # Extract list of available tagged configurations in $ofile.
2472
 
  # Note that this assumes the entire list is on one line.
2473
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2474
 
 
2475
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2476
 
  for tagname in $tagnames; do
2477
 
    IFS="$lt_save_ifs"
2478
 
    # Check whether tagname contains only valid characters
2479
 
    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2480
 
    "") ;;
2481
 
    *)  AC_MSG_ERROR([invalid tag name: $tagname])
2482
 
        ;;
2483
 
    esac
2484
 
 
2485
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2486
 
    then
2487
 
      AC_MSG_ERROR([tag name \"$tagname\" already exists])
2488
 
    fi
2489
 
 
2490
 
    # Update the list of available tags.
2491
 
    if test -n "$tagname"; then
2492
 
      echo appending configuration tag \"$tagname\" to $ofile
2493
 
 
2494
 
      case $tagname in
2495
 
      CXX)
2496
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2497
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2498
 
            (test "X$CXX" != "Xg++"))) ; then
2499
 
          AC_LIBTOOL_LANG_CXX_CONFIG
2500
 
        else
2501
 
          tagname=""
2502
 
        fi
2503
 
        ;;
2504
 
 
2505
 
      F77)
2506
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
2507
 
          AC_LIBTOOL_LANG_F77_CONFIG
2508
 
        else
2509
 
          tagname=""
2510
 
        fi
2511
 
        ;;
2512
 
 
2513
 
      GCJ)
2514
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2515
 
          AC_LIBTOOL_LANG_GCJ_CONFIG
2516
 
        else
2517
 
          tagname=""
2518
 
        fi
2519
 
        ;;
2520
 
 
2521
 
      RC)
2522
 
        AC_LIBTOOL_LANG_RC_CONFIG
2523
 
        ;;
2524
 
 
2525
 
      *)
2526
 
        AC_MSG_ERROR([Unsupported tag name: $tagname])
2527
 
        ;;
2528
 
      esac
2529
 
 
2530
 
      # Append the new tag name to the list of available tags.
2531
 
      if test -n "$tagname" ; then
2532
 
      available_tags="$available_tags $tagname"
2533
 
    fi
2534
 
    fi
2535
 
  done
2536
 
  IFS="$lt_save_ifs"
2537
 
 
2538
 
  # Now substitute the updated list of available tags.
2539
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2540
 
    mv "${ofile}T" "$ofile"
2541
 
    chmod +x "$ofile"
2542
 
  else
2543
 
    rm -f "${ofile}T"
2544
 
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
2545
 
  fi
2546
 
fi
2547
 
])# _LT_AC_TAGCONFIG
2548
 
 
2549
 
 
2550
 
# AC_LIBTOOL_DLOPEN
2551
 
# -----------------
2552
 
# enable checks for dlopen support
2553
 
AC_DEFUN([AC_LIBTOOL_DLOPEN],
2554
 
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2555
 
])# AC_LIBTOOL_DLOPEN
2556
 
 
2557
 
 
2558
 
# AC_LIBTOOL_WIN32_DLL
2559
 
# --------------------
2560
 
# declare package support for building win32 DLLs
2561
 
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2562
 
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2563
 
])# AC_LIBTOOL_WIN32_DLL
2564
 
 
2565
 
 
2566
 
# AC_ENABLE_SHARED([DEFAULT])
2567
 
# ---------------------------
2568
 
# implement the --enable-shared flag
2569
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2570
 
AC_DEFUN([AC_ENABLE_SHARED],
2571
 
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2572
 
AC_ARG_ENABLE([shared],
2573
 
    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2574
 
        [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2575
 
    [p=${PACKAGE-default}
2576
 
    case $enableval in
2577
 
    yes) enable_shared=yes ;;
2578
 
    no) enable_shared=no ;;
2579
 
    *)
2580
 
      enable_shared=no
2581
 
      # Look at the argument we got.  We use all the common list separators.
2582
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2583
 
      for pkg in $enableval; do
2584
 
        IFS="$lt_save_ifs"
2585
 
        if test "X$pkg" = "X$p"; then
2586
 
          enable_shared=yes
2587
 
        fi
2588
 
      done
2589
 
      IFS="$lt_save_ifs"
2590
 
      ;;
2591
 
    esac],
2592
 
    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2593
 
])# AC_ENABLE_SHARED
2594
 
 
2595
 
 
2596
 
# AC_DISABLE_SHARED
2597
 
# -----------------
2598
 
# set the default shared flag to --disable-shared
2599
 
AC_DEFUN([AC_DISABLE_SHARED],
2600
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2601
 
AC_ENABLE_SHARED(no)
2602
 
])# AC_DISABLE_SHARED
2603
 
 
2604
 
 
2605
 
# AC_ENABLE_STATIC([DEFAULT])
2606
 
# ---------------------------
2607
 
# implement the --enable-static flag
2608
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2609
 
AC_DEFUN([AC_ENABLE_STATIC],
2610
 
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2611
 
AC_ARG_ENABLE([static],
2612
 
    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2613
 
        [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2614
 
    [p=${PACKAGE-default}
2615
 
    case $enableval in
2616
 
    yes) enable_static=yes ;;
2617
 
    no) enable_static=no ;;
2618
 
    *)
2619
 
     enable_static=no
2620
 
      # Look at the argument we got.  We use all the common list separators.
2621
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2622
 
      for pkg in $enableval; do
2623
 
        IFS="$lt_save_ifs"
2624
 
        if test "X$pkg" = "X$p"; then
2625
 
          enable_static=yes
2626
 
        fi
2627
 
      done
2628
 
      IFS="$lt_save_ifs"
2629
 
      ;;
2630
 
    esac],
2631
 
    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2632
 
])# AC_ENABLE_STATIC
2633
 
 
2634
 
 
2635
 
# AC_DISABLE_STATIC
2636
 
# -----------------
2637
 
# set the default static flag to --disable-static
2638
 
AC_DEFUN([AC_DISABLE_STATIC],
2639
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2640
 
AC_ENABLE_STATIC(no)
2641
 
])# AC_DISABLE_STATIC
2642
 
 
2643
 
 
2644
 
# AC_ENABLE_FAST_INSTALL([DEFAULT])
2645
 
# ---------------------------------
2646
 
# implement the --enable-fast-install flag
2647
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2648
 
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2649
 
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2650
 
AC_ARG_ENABLE([fast-install],
2651
 
    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2652
 
    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2653
 
    [p=${PACKAGE-default}
2654
 
    case $enableval in
2655
 
    yes) enable_fast_install=yes ;;
2656
 
    no) enable_fast_install=no ;;
2657
 
    *)
2658
 
      enable_fast_install=no
2659
 
      # Look at the argument we got.  We use all the common list separators.
2660
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2661
 
      for pkg in $enableval; do
2662
 
        IFS="$lt_save_ifs"
2663
 
        if test "X$pkg" = "X$p"; then
2664
 
          enable_fast_install=yes
2665
 
        fi
2666
 
      done
2667
 
      IFS="$lt_save_ifs"
2668
 
      ;;
2669
 
    esac],
2670
 
    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2671
 
])# AC_ENABLE_FAST_INSTALL
2672
 
 
2673
 
 
2674
 
# AC_DISABLE_FAST_INSTALL
2675
 
# -----------------------
2676
 
# set the default to --disable-fast-install
2677
 
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2678
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2679
 
AC_ENABLE_FAST_INSTALL(no)
2680
 
])# AC_DISABLE_FAST_INSTALL
2681
 
 
2682
 
 
2683
 
# AC_LIBTOOL_PICMODE([MODE])
2684
 
# --------------------------
2685
 
# implement the --with-pic flag
2686
 
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
2687
 
AC_DEFUN([AC_LIBTOOL_PICMODE],
2688
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2689
 
pic_mode=ifelse($#,1,$1,default)
2690
 
])# AC_LIBTOOL_PICMODE
2691
 
 
2692
 
 
2693
 
# AC_PROG_EGREP
2694
 
# -------------
2695
 
# This is predefined starting with Autoconf 2.54, so this conditional
2696
 
# definition can be removed once we require Autoconf 2.54 or later.
2697
 
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2698
 
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2699
 
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2700
 
    then ac_cv_prog_egrep='grep -E'
2701
 
    else ac_cv_prog_egrep='egrep'
2702
 
    fi])
2703
 
 EGREP=$ac_cv_prog_egrep
2704
 
 AC_SUBST([EGREP])
2705
 
])])
2706
 
 
2707
 
 
2708
 
# AC_PATH_TOOL_PREFIX
2709
 
# -------------------
2710
 
# find a file program which can recognize shared library
2711
 
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2712
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
2713
 
AC_MSG_CHECKING([for $1])
2714
 
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2715
 
[case $MAGIC_CMD in
2716
 
[[\\/*] |  ?:[\\/]*])
2717
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2718
 
  ;;
2719
 
*)
2720
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
2721
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2722
 
dnl $ac_dummy forces splitting on constant user-supplied paths.
2723
 
dnl POSIX.2 word splitting is done only on the output of word expansions,
2724
 
dnl not every word.  This closes a longstanding sh security hole.
2725
 
  ac_dummy="ifelse([$2], , $PATH, [$2])"
2726
 
  for ac_dir in $ac_dummy; do
2727
 
    IFS="$lt_save_ifs"
2728
 
    test -z "$ac_dir" && ac_dir=.
2729
 
    if test -f $ac_dir/$1; then
2730
 
      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2731
 
      if test -n "$file_magic_test_file"; then
2732
 
        case $deplibs_check_method in
2733
 
        "file_magic "*)
2734
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2735
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2736
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2737
 
            $EGREP "$file_magic_regex" > /dev/null; then
2738
 
            :
2739
 
          else
2740
 
            cat <<EOF 1>&2
2741
 
 
2742
 
*** Warning: the command libtool uses to detect shared libraries,
2743
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
2744
 
*** The result is that libtool may fail to recognize shared libraries
2745
 
*** as such.  This will affect the creation of libtool libraries that
2746
 
*** depend on shared libraries, but programs linked with such libtool
2747
 
*** libraries will work regardless of this problem.  Nevertheless, you
2748
 
*** may want to report the problem to your system manager and/or to
2749
 
*** bug-libtool@gnu.org
2750
 
 
2751
 
EOF
2752
 
          fi ;;
2753
 
        esac
2754
 
      fi
2755
 
      break
2756
 
    fi
2757
 
  done
2758
 
  IFS="$lt_save_ifs"
2759
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
2760
 
  ;;
2761
 
esac])
2762
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2763
 
if test -n "$MAGIC_CMD"; then
2764
 
  AC_MSG_RESULT($MAGIC_CMD)
2765
 
else
2766
 
  AC_MSG_RESULT(no)
2767
 
fi
2768
 
])# AC_PATH_TOOL_PREFIX
2769
 
 
2770
 
 
2771
 
# AC_PATH_MAGIC
2772
 
# -------------
2773
 
# find a file program which can recognize a shared library
2774
 
AC_DEFUN([AC_PATH_MAGIC],
2775
 
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2776
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
2777
 
  if test -n "$ac_tool_prefix"; then
2778
 
    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2779
 
  else
2780
 
    MAGIC_CMD=:
2781
 
  fi
2782
 
fi
2783
 
])# AC_PATH_MAGIC
2784
 
 
2785
 
 
2786
 
# AC_PROG_LD
2787
 
# ----------
2788
 
# find the pathname to the GNU or non-GNU linker
2789
 
AC_DEFUN([AC_PROG_LD],
2790
 
[AC_ARG_WITH([gnu-ld],
2791
 
    [AC_HELP_STRING([--with-gnu-ld],
2792
 
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2793
 
    [test "$withval" = no || with_gnu_ld=yes],
2794
 
    [with_gnu_ld=no])
2795
 
AC_REQUIRE([LT_AC_PROG_SED])dnl
2796
 
AC_REQUIRE([AC_PROG_CC])dnl
2797
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
2798
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2799
 
ac_prog=ld
2800
 
if test "$GCC" = yes; then
2801
 
  # Check if gcc -print-prog-name=ld gives a path.
2802
 
  AC_MSG_CHECKING([for ld used by $CC])
2803
 
  case $host in
2804
 
  *-*-mingw*)
2805
 
    # gcc leaves a trailing carriage return which upsets mingw
2806
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2807
 
  *)
2808
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2809
 
  esac
2810
 
  case $ac_prog in
2811
 
    # Accept absolute paths.
2812
 
    [[\\/]]* | ?:[[\\/]]*)
2813
 
      re_direlt='/[[^/]][[^/]]*/\.\./'
2814
 
      # Canonicalize the pathname of ld
2815
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2816
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2817
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2818
 
      done
2819
 
      test -z "$LD" && LD="$ac_prog"
2820
 
      ;;
2821
 
  "")
2822
 
    # If it fails, then pretend we aren't using GCC.
2823
 
    ac_prog=ld
2824
 
    ;;
2825
 
  *)
2826
 
    # If it is relative, then search for the first ld in PATH.
2827
 
    with_gnu_ld=unknown
2828
 
    ;;
2829
 
  esac
2830
 
elif test "$with_gnu_ld" = yes; then
2831
 
  AC_MSG_CHECKING([for GNU ld])
2832
 
else
2833
 
  AC_MSG_CHECKING([for non-GNU ld])
2834
 
fi
2835
 
AC_CACHE_VAL(lt_cv_path_LD,
2836
 
[if test -z "$LD"; then
2837
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2838
 
  for ac_dir in $PATH; do
2839
 
    IFS="$lt_save_ifs"
2840
 
    test -z "$ac_dir" && ac_dir=.
2841
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2842
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
2843
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
2844
 
      # but apparently some variants of GNU ld only accept -v.
2845
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
2846
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2847
 
      *GNU* | *'with BFD'*)
2848
 
        test "$with_gnu_ld" != no && break
2849
 
        ;;
2850
 
      *)
2851
 
        test "$with_gnu_ld" != yes && break
2852
 
        ;;
2853
 
      esac
2854
 
    fi
2855
 
  done
2856
 
  IFS="$lt_save_ifs"
2857
 
else
2858
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
2859
 
fi])
2860
 
LD="$lt_cv_path_LD"
2861
 
if test -n "$LD"; then
2862
 
  AC_MSG_RESULT($LD)
2863
 
else
2864
 
  AC_MSG_RESULT(no)
2865
 
fi
2866
 
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2867
 
AC_PROG_LD_GNU
2868
 
])# AC_PROG_LD
2869
 
 
2870
 
 
2871
 
# AC_PROG_LD_GNU
2872
 
# --------------
2873
 
AC_DEFUN([AC_PROG_LD_GNU],
2874
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
2875
 
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2876
 
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2877
 
case `$LD -v 2>&1 </dev/null` in
2878
 
*GNU* | *'with BFD'*)
2879
 
  lt_cv_prog_gnu_ld=yes
2880
 
  ;;
2881
 
*)
2882
 
  lt_cv_prog_gnu_ld=no
2883
 
  ;;
2884
 
esac])
2885
 
with_gnu_ld=$lt_cv_prog_gnu_ld
2886
 
])# AC_PROG_LD_GNU
2887
 
 
2888
 
 
2889
 
# AC_PROG_LD_RELOAD_FLAG
2890
 
# ----------------------
2891
 
# find reload flag for linker
2892
 
#   -- PORTME Some linkers may need a different reload flag.
2893
 
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2894
 
[AC_CACHE_CHECK([for $LD option to reload object files],
2895
 
  lt_cv_ld_reload_flag,
2896
 
  [lt_cv_ld_reload_flag='-r'])
2897
 
reload_flag=$lt_cv_ld_reload_flag
2898
 
case $reload_flag in
2899
 
"" | " "*) ;;
2900
 
*) reload_flag=" $reload_flag" ;;
2901
 
esac
2902
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
2903
 
case $host_os in
2904
 
  darwin*)
2905
 
    if test "$GCC" = yes; then
2906
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2907
 
    else
2908
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
2909
 
    fi
2910
 
    ;;
2911
 
esac
2912
 
])# AC_PROG_LD_RELOAD_FLAG
2913
 
 
2914
 
 
2915
 
# AC_DEPLIBS_CHECK_METHOD
2916
 
# -----------------------
2917
 
# how to check for library dependencies
2918
 
#  -- PORTME fill in with the dynamic library characteristics
2919
 
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2920
 
[AC_CACHE_CHECK([how to recognize dependent libraries],
2921
 
lt_cv_deplibs_check_method,
2922
 
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2923
 
lt_cv_file_magic_test_file=
2924
 
lt_cv_deplibs_check_method='unknown'
2925
 
# Need to set the preceding variable on all platforms that support
2926
 
# interlibrary dependencies.
2927
 
# 'none' -- dependencies not supported.
2928
 
# `unknown' -- same as none, but documents that we really don't know.
2929
 
# 'pass_all' -- all dependencies passed with no checks.
2930
 
# 'test_compile' -- check by making test program.
2931
 
# 'file_magic [[regex]]' -- check by looking for files in library path
2932
 
# which responds to the $file_magic_cmd with a given extended regex.
2933
 
# If you have `file' or equivalent on your system and you're not sure
2934
 
# whether `pass_all' will *always* work, you probably want this one.
2935
 
 
2936
 
case $host_os in
2937
 
aix[[4-9]]*)
2938
 
  lt_cv_deplibs_check_method=pass_all
2939
 
  ;;
2940
 
 
2941
 
beos*)
2942
 
  lt_cv_deplibs_check_method=pass_all
2943
 
  ;;
2944
 
 
2945
 
bsdi[[45]]*)
2946
 
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2947
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
2948
 
  lt_cv_file_magic_test_file=/shlib/libc.so
2949
 
  ;;
2950
 
 
2951
 
cygwin*)
2952
 
  # func_win32_libid is a shell function defined in ltmain.sh
2953
 
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2954
 
  lt_cv_file_magic_cmd='func_win32_libid'
2955
 
  ;;
2956
 
 
2957
 
mingw* | pw32*)
2958
 
  # Base MSYS/MinGW do not provide the 'file' command needed by
2959
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
2960
 
  # unless we find 'file', for example because we are cross-compiling.
2961
 
  if ( file / ) >/dev/null 2>&1; then
2962
 
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2963
 
    lt_cv_file_magic_cmd='func_win32_libid'
2964
 
  else
2965
 
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2966
 
    lt_cv_file_magic_cmd='$OBJDUMP -f'
2967
 
  fi
2968
 
  ;;
2969
 
 
2970
 
darwin* | rhapsody*)
2971
 
  lt_cv_deplibs_check_method=pass_all
2972
 
  ;;
2973
 
 
2974
 
freebsd* | dragonfly*)
2975
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2976
 
    case $host_cpu in
2977
 
    i*86 )
2978
 
      # Not sure whether the presence of OpenBSD here was a mistake.
2979
 
      # Let's accept both of them until this is cleared up.
2980
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2981
 
      lt_cv_file_magic_cmd=/usr/bin/file
2982
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2983
 
      ;;
2984
 
    esac
2985
 
  else
2986
 
    lt_cv_deplibs_check_method=pass_all
2987
 
  fi
2988
 
  ;;
2989
 
 
2990
 
gnu*)
2991
 
  lt_cv_deplibs_check_method=pass_all
2992
 
  ;;
2993
 
 
2994
 
hpux10.20* | hpux11*)
2995
 
  lt_cv_file_magic_cmd=/usr/bin/file
2996
 
  case $host_cpu in
2997
 
  ia64*)
2998
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2999
 
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3000
 
    ;;
3001
 
  hppa*64*)
3002
 
    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3003
 
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3004
 
    ;;
3005
 
  *)
3006
 
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3007
 
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3008
 
    ;;
3009
 
  esac
3010
 
  ;;
3011
 
 
3012
 
interix[[3-9]]*)
3013
 
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3014
 
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3015
 
  ;;
3016
 
 
3017
 
irix5* | irix6* | nonstopux*)
3018
 
  case $LD in
3019
 
  *-32|*"-32 ") libmagic=32-bit;;
3020
 
  *-n32|*"-n32 ") libmagic=N32;;
3021
 
  *-64|*"-64 ") libmagic=64-bit;;
3022
 
  *) libmagic=never-match;;
3023
 
  esac
3024
 
  lt_cv_deplibs_check_method=pass_all
3025
 
  ;;
3026
 
 
3027
 
# This must be Linux ELF.
3028
 
linux* | k*bsd*-gnu)
3029
 
  lt_cv_deplibs_check_method=pass_all
3030
 
  ;;
3031
 
 
3032
 
netbsd* | netbsdelf*-gnu)
3033
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3034
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3035
 
  else
3036
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3037
 
  fi
3038
 
  ;;
3039
 
 
3040
 
newos6*)
3041
 
  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3042
 
  lt_cv_file_magic_cmd=/usr/bin/file
3043
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3044
 
  ;;
3045
 
 
3046
 
nto-qnx*)
3047
 
  lt_cv_deplibs_check_method=unknown
3048
 
  ;;
3049
 
 
3050
 
openbsd*)
3051
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3052
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3053
 
  else
3054
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3055
 
  fi
3056
 
  ;;
3057
 
 
3058
 
osf3* | osf4* | osf5*)
3059
 
  lt_cv_deplibs_check_method=pass_all
3060
 
  ;;
3061
 
 
3062
 
rdos*)
3063
 
  lt_cv_deplibs_check_method=pass_all
3064
 
  ;;
3065
 
 
3066
 
solaris*)
3067
 
  lt_cv_deplibs_check_method=pass_all
3068
 
  ;;
3069
 
 
3070
 
sysv4 | sysv4.3*)
3071
 
  case $host_vendor in
3072
 
  motorola)
3073
 
    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]]'
3074
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3075
 
    ;;
3076
 
  ncr)
3077
 
    lt_cv_deplibs_check_method=pass_all
3078
 
    ;;
3079
 
  sequent)
3080
 
    lt_cv_file_magic_cmd='/bin/file'
3081
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3082
 
    ;;
3083
 
  sni)
3084
 
    lt_cv_file_magic_cmd='/bin/file'
3085
 
    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3086
 
    lt_cv_file_magic_test_file=/lib/libc.so
3087
 
    ;;
3088
 
  siemens)
3089
 
    lt_cv_deplibs_check_method=pass_all
3090
 
    ;;
3091
 
  pc)
3092
 
    lt_cv_deplibs_check_method=pass_all
3093
 
    ;;
3094
 
  esac
3095
 
  ;;
3096
 
 
3097
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3098
 
  lt_cv_deplibs_check_method=pass_all
3099
 
  ;;
3100
 
esac
3101
 
])
3102
 
file_magic_cmd=$lt_cv_file_magic_cmd
3103
 
deplibs_check_method=$lt_cv_deplibs_check_method
3104
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3105
 
])# AC_DEPLIBS_CHECK_METHOD
3106
 
 
3107
 
 
3108
 
# AC_PROG_NM
3109
 
# ----------
3110
 
# find the pathname to a BSD-compatible name lister
3111
 
AC_DEFUN([AC_PROG_NM],
3112
 
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3113
 
[if test -n "$NM"; then
3114
 
  # Let the user override the test.
3115
 
  lt_cv_path_NM="$NM"
3116
 
else
3117
 
  lt_nm_to_check="${ac_tool_prefix}nm"
3118
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3119
 
    lt_nm_to_check="$lt_nm_to_check nm"
3120
 
  fi
3121
 
  for lt_tmp_nm in $lt_nm_to_check; do
3122
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3123
 
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3124
 
      IFS="$lt_save_ifs"
3125
 
      test -z "$ac_dir" && ac_dir=.
3126
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
3127
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3128
 
        # Check to see if the nm accepts a BSD-compat flag.
3129
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3130
 
        #   nm: unknown option "B" ignored
3131
 
        # Tru64's nm complains that /dev/null is an invalid object file
3132
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3133
 
        */dev/null* | *'Invalid file or object type'*)
3134
 
          lt_cv_path_NM="$tmp_nm -B"
3135
 
          break
3136
 
          ;;
3137
 
        *)
3138
 
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3139
 
          */dev/null*)
3140
 
            lt_cv_path_NM="$tmp_nm -p"
3141
 
            break
3142
 
            ;;
3143
 
          *)
3144
 
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3145
 
            continue # so that we can try to find one that supports BSD flags
3146
 
            ;;
3147
 
          esac
3148
 
          ;;
3149
 
        esac
3150
 
      fi
3151
 
    done
3152
 
    IFS="$lt_save_ifs"
3153
 
  done
3154
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3155
 
fi])
3156
 
NM="$lt_cv_path_NM"
3157
 
])# AC_PROG_NM
3158
 
 
3159
 
 
3160
 
# AC_CHECK_LIBM
3161
 
# -------------
3162
 
# check for math library
3163
 
AC_DEFUN([AC_CHECK_LIBM],
3164
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3165
 
LIBM=
3166
 
case $host in
3167
 
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3168
 
  # These system don't have libm, or don't need it
3169
 
  ;;
3170
 
*-ncr-sysv4.3*)
3171
 
  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3172
 
  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3173
 
  ;;
3174
 
*)
3175
 
  AC_CHECK_LIB(m, cos, LIBM="-lm")
3176
 
  ;;
3177
 
esac
3178
 
])# AC_CHECK_LIBM
3179
 
 
3180
 
 
3181
 
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3182
 
# -----------------------------------
3183
 
# sets LIBLTDL to the link flags for the libltdl convenience library and
3184
 
# LTDLINCL to the include flags for the libltdl header and adds
3185
 
# --enable-ltdl-convenience to the configure arguments.  Note that
3186
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
3187
 
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
3188
 
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3189
 
# (note the single quotes!).  If your package is not flat and you're not
3190
 
# using automake, define top_builddir and top_srcdir appropriately in
3191
 
# the Makefiles.
3192
 
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3193
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3194
 
  case $enable_ltdl_convenience in
3195
 
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3196
 
  "") enable_ltdl_convenience=yes
3197
 
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3198
 
  esac
3199
 
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3200
 
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3201
 
  # For backwards non-gettext consistent compatibility...
3202
 
  INCLTDL="$LTDLINCL"
3203
 
])# AC_LIBLTDL_CONVENIENCE
3204
 
 
3205
 
 
3206
 
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3207
 
# -----------------------------------
3208
 
# sets LIBLTDL to the link flags for the libltdl installable library and
3209
 
# LTDLINCL to the include flags for the libltdl header and adds
3210
 
# --enable-ltdl-install to the configure arguments.  Note that
3211
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
3212
 
# and an installed libltdl is not found, it is assumed to be `libltdl'.
3213
 
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3214
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
3215
 
# flat and you're not using automake, define top_builddir and top_srcdir
3216
 
# appropriately in the Makefiles.
3217
 
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3218
 
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3219
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3220
 
  AC_CHECK_LIB(ltdl, lt_dlinit,
3221
 
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3222
 
  [if test x"$enable_ltdl_install" = xno; then
3223
 
     AC_MSG_WARN([libltdl not installed, but installation disabled])
3224
 
   else
3225
 
     enable_ltdl_install=yes
3226
 
   fi
3227
 
  ])
3228
 
  if test x"$enable_ltdl_install" = x"yes"; then
3229
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
3230
 
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3231
 
    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3232
 
  else
3233
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3234
 
    LIBLTDL="-lltdl"
3235
 
    LTDLINCL=
3236
 
  fi
3237
 
  # For backwards non-gettext consistent compatibility...
3238
 
  INCLTDL="$LTDLINCL"
3239
 
])# AC_LIBLTDL_INSTALLABLE
3240
 
 
3241
 
 
3242
 
# AC_LIBTOOL_CXX
3243
 
# --------------
3244
 
# enable support for C++ libraries
3245
 
AC_DEFUN([AC_LIBTOOL_CXX],
3246
 
[AC_REQUIRE([_LT_AC_LANG_CXX])
3247
 
])# AC_LIBTOOL_CXX
3248
 
 
3249
 
 
3250
 
# _LT_AC_LANG_CXX
3251
 
# ---------------
3252
 
AC_DEFUN([_LT_AC_LANG_CXX],
3253
 
[AC_REQUIRE([AC_PROG_CXX])
3254
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3255
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3256
 
])# _LT_AC_LANG_CXX
3257
 
 
3258
 
# _LT_AC_PROG_CXXCPP
3259
 
# ------------------
3260
 
AC_DEFUN([_LT_AC_PROG_CXXCPP],
3261
 
[
3262
 
AC_REQUIRE([AC_PROG_CXX])
3263
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3264
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3265
 
    (test "X$CXX" != "Xg++"))) ; then
3266
 
  AC_PROG_CXXCPP
3267
 
fi
3268
 
])# _LT_AC_PROG_CXXCPP
3269
 
 
3270
 
# AC_LIBTOOL_F77
3271
 
# --------------
3272
 
# enable support for Fortran 77 libraries
3273
 
AC_DEFUN([AC_LIBTOOL_F77],
3274
 
[AC_REQUIRE([_LT_AC_LANG_F77])
3275
 
])# AC_LIBTOOL_F77
3276
 
 
3277
 
 
3278
 
# _LT_AC_LANG_F77
3279
 
# ---------------
3280
 
AC_DEFUN([_LT_AC_LANG_F77],
3281
 
[AC_REQUIRE([AC_PROG_F77])
3282
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3283
 
])# _LT_AC_LANG_F77
3284
 
 
3285
 
 
3286
 
# AC_LIBTOOL_GCJ
3287
 
# --------------
3288
 
# enable support for GCJ libraries
3289
 
AC_DEFUN([AC_LIBTOOL_GCJ],
3290
 
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3291
 
])# AC_LIBTOOL_GCJ
3292
 
 
3293
 
 
3294
 
# _LT_AC_LANG_GCJ
3295
 
# ---------------
3296
 
AC_DEFUN([_LT_AC_LANG_GCJ],
3297
 
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3298
 
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3299
 
    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3300
 
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3301
 
         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3302
 
           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3303
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3304
 
])# _LT_AC_LANG_GCJ
3305
 
 
3306
 
 
3307
 
# AC_LIBTOOL_RC
3308
 
# -------------
3309
 
# enable support for Windows resource files
3310
 
AC_DEFUN([AC_LIBTOOL_RC],
3311
 
[AC_REQUIRE([LT_AC_PROG_RC])
3312
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3313
 
])# AC_LIBTOOL_RC
3314
 
 
3315
 
 
3316
 
# AC_LIBTOOL_LANG_C_CONFIG
3317
 
# ------------------------
3318
 
# Ensure that the configuration vars for the C compiler are
3319
 
# suitably defined.  Those variables are subsequently used by
3320
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3321
 
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3322
 
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3323
 
[lt_save_CC="$CC"
3324
 
AC_LANG_PUSH(C)
3325
 
 
3326
 
# Source file extension for C test sources.
3327
 
ac_ext=c
3328
 
 
3329
 
# Object file extension for compiled C test sources.
3330
 
objext=o
3331
 
_LT_AC_TAGVAR(objext, $1)=$objext
3332
 
 
3333
 
# Code to be used in simple compile tests
3334
 
lt_simple_compile_test_code="int some_variable = 0;"
3335
 
 
3336
 
# Code to be used in simple link tests
3337
 
lt_simple_link_test_code='int main(){return(0);}'
3338
 
 
3339
 
_LT_AC_SYS_COMPILER
3340
 
 
3341
 
# save warnings/boilerplate of simple test code
3342
 
_LT_COMPILER_BOILERPLATE
3343
 
_LT_LINKER_BOILERPLATE
3344
 
 
3345
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3346
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3347
 
AC_LIBTOOL_PROG_CC_C_O($1)
3348
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3349
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3350
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3351
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3352
 
AC_LIBTOOL_SYS_LIB_STRIP
3353
 
AC_LIBTOOL_DLOPEN_SELF
3354
 
 
3355
 
# Report which library types will actually be built
3356
 
AC_MSG_CHECKING([if libtool supports shared libraries])
3357
 
AC_MSG_RESULT([$can_build_shared])
3358
 
 
3359
 
AC_MSG_CHECKING([whether to build shared libraries])
3360
 
test "$can_build_shared" = "no" && enable_shared=no
3361
 
 
3362
 
# On AIX, shared libraries and static libraries use the same namespace, and
3363
 
# are all built from PIC.
3364
 
case $host_os in
3365
 
aix3*)
3366
 
  test "$enable_shared" = yes && enable_static=no
3367
 
  if test -n "$RANLIB"; then
3368
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
3369
 
    postinstall_cmds='$RANLIB $lib'
3370
 
  fi
3371
 
  ;;
3372
 
 
3373
 
aix[[4-9]]*)
3374
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3375
 
    test "$enable_shared" = yes && enable_static=no
3376
 
  fi
3377
 
    ;;
3378
 
esac
3379
 
AC_MSG_RESULT([$enable_shared])
3380
 
 
3381
 
AC_MSG_CHECKING([whether to build static libraries])
3382
 
# Make sure either enable_shared or enable_static is yes.
3383
 
test "$enable_shared" = yes || enable_static=yes
3384
 
AC_MSG_RESULT([$enable_static])
3385
 
 
3386
 
AC_LIBTOOL_CONFIG($1)
3387
 
 
3388
 
AC_LANG_POP
3389
 
CC="$lt_save_CC"
3390
 
])# AC_LIBTOOL_LANG_C_CONFIG
3391
 
 
3392
 
 
3393
 
# AC_LIBTOOL_LANG_CXX_CONFIG
3394
 
# --------------------------
3395
 
# Ensure that the configuration vars for the C compiler are
3396
 
# suitably defined.  Those variables are subsequently used by
3397
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3398
 
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3399
 
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3400
 
[AC_LANG_PUSH(C++)
3401
 
AC_REQUIRE([AC_PROG_CXX])
3402
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3403
 
 
3404
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3405
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3406
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3407
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3408
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3409
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3410
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3411
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3412
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3413
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3414
 
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3415
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3416
 
_LT_AC_TAGVAR(module_cmds, $1)=
3417
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3418
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3419
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3420
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3421
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3422
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3423
 
 
3424
 
# Dependencies to place before and after the object being linked:
3425
 
_LT_AC_TAGVAR(predep_objects, $1)=
3426
 
_LT_AC_TAGVAR(postdep_objects, $1)=
3427
 
_LT_AC_TAGVAR(predeps, $1)=
3428
 
_LT_AC_TAGVAR(postdeps, $1)=
3429
 
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3430
 
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
3431
 
 
3432
 
# Source file extension for C++ test sources.
3433
 
ac_ext=cpp
3434
 
 
3435
 
# Object file extension for compiled C++ test sources.
3436
 
objext=o
3437
 
_LT_AC_TAGVAR(objext, $1)=$objext
3438
 
 
3439
 
# Code to be used in simple compile tests
3440
 
lt_simple_compile_test_code="int some_variable = 0;"
3441
 
 
3442
 
# Code to be used in simple link tests
3443
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3444
 
 
3445
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3446
 
_LT_AC_SYS_COMPILER
3447
 
 
3448
 
# save warnings/boilerplate of simple test code
3449
 
_LT_COMPILER_BOILERPLATE
3450
 
_LT_LINKER_BOILERPLATE
3451
 
 
3452
 
# Allow CC to be a program name with arguments.
3453
 
lt_save_CC=$CC
3454
 
lt_save_LD=$LD
3455
 
lt_save_GCC=$GCC
3456
 
GCC=$GXX
3457
 
lt_save_with_gnu_ld=$with_gnu_ld
3458
 
lt_save_path_LD=$lt_cv_path_LD
3459
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3460
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3461
 
else
3462
 
  $as_unset lt_cv_prog_gnu_ld
3463
 
fi
3464
 
if test -n "${lt_cv_path_LDCXX+set}"; then
3465
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
3466
 
else
3467
 
  $as_unset lt_cv_path_LD
3468
 
fi
3469
 
test -z "${LDCXX+set}" || LD=$LDCXX
3470
 
CC=${CXX-"c++"}
3471
 
compiler=$CC
3472
 
_LT_AC_TAGVAR(compiler, $1)=$CC
3473
 
_LT_CC_BASENAME([$compiler])
3474
 
 
3475
 
# We don't want -fno-exception wen compiling C++ code, so set the
3476
 
# no_builtin_flag separately
3477
 
if test "$GXX" = yes; then
3478
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3479
 
else
3480
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3481
 
fi
3482
 
 
3483
 
if test "$GXX" = yes; then
3484
 
  # Set up default GNU C++ configuration
3485
 
 
3486
 
  AC_PROG_LD
3487
 
 
3488
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
3489
 
  # archiving commands below assume that GNU ld is being used.
3490
 
  if test "$with_gnu_ld" = yes; then
3491
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3492
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3493
 
 
3494
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3495
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3496
 
 
3497
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
3498
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3499
 
    #     investigate it a little bit more. (MM)
3500
 
    wlarc='${wl}'
3501
 
 
3502
 
    # ancient GNU ld didn't support --whole-archive et. al.
3503
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3504
 
        grep 'no-whole-archive' > /dev/null; then
3505
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3506
 
    else
3507
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3508
 
    fi
3509
 
  else
3510
 
    with_gnu_ld=no
3511
 
    wlarc=
3512
 
 
3513
 
    # A generic and very simple default shared library creation
3514
 
    # command for GNU C++ for the case where it uses the native
3515
 
    # linker, instead of GNU ld.  If possible, this setting should
3516
 
    # overridden to take advantage of the native linker features on
3517
 
    # the platform it is being used on.
3518
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3519
 
  fi
3520
 
 
3521
 
  # Commands to make compiler produce verbose output that lists
3522
 
  # what "hidden" libraries, object files and flags are used when
3523
 
  # linking a shared library.
3524
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3525
 
 
3526
 
else
3527
 
  GXX=no
3528
 
  with_gnu_ld=no
3529
 
  wlarc=
3530
 
fi
3531
 
 
3532
 
# PORTME: fill in a description of your system's C++ link characteristics
3533
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3534
 
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3535
 
case $host_os in
3536
 
  aix3*)
3537
 
    # FIXME: insert proper C++ library support
3538
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3539
 
    ;;
3540
 
  aix[[4-9]]*)
3541
 
    if test "$host_cpu" = ia64; then
3542
 
      # On IA64, the linker does run time linking by default, so we don't
3543
 
      # have to do anything special.
3544
 
      aix_use_runtimelinking=no
3545
 
      exp_sym_flag='-Bexport'
3546
 
      no_entry_flag=""
3547
 
    else
3548
 
      aix_use_runtimelinking=no
3549
 
 
3550
 
      # Test if we are trying to use run time linking or normal
3551
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3552
 
      # need to do runtime linking.
3553
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3554
 
        for ld_flag in $LDFLAGS; do
3555
 
          case $ld_flag in
3556
 
          *-brtl*)
3557
 
            aix_use_runtimelinking=yes
3558
 
            break
3559
 
            ;;
3560
 
          esac
3561
 
        done
3562
 
        ;;
3563
 
      esac
3564
 
 
3565
 
      exp_sym_flag='-bexport'
3566
 
      no_entry_flag='-bnoentry'
3567
 
    fi
3568
 
 
3569
 
    # When large executables or shared objects are built, AIX ld can
3570
 
    # have problems creating the table of contents.  If linking a library
3571
 
    # or program results in "error TOC overflow" add -mminimal-toc to
3572
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
3573
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3574
 
 
3575
 
    _LT_AC_TAGVAR(archive_cmds, $1)=''
3576
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3577
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3578
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3579
 
 
3580
 
    if test "$GXX" = yes; then
3581
 
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
3582
 
      # We only want to do this on AIX 4.2 and lower, the check
3583
 
      # below for broken collect2 doesn't work under 4.3+
3584
 
        collect2name=`${CC} -print-prog-name=collect2`
3585
 
        if test -f "$collect2name" && \
3586
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
3587
 
        then
3588
 
          # We have reworked collect2
3589
 
          :
3590
 
        else
3591
 
          # We have old collect2
3592
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3593
 
          # It fails to find uninstalled libraries when the uninstalled
3594
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
3595
 
          # to unsupported forces relinking
3596
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3597
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3598
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3599
 
        fi
3600
 
        ;;
3601
 
      esac
3602
 
      shared_flag='-shared'
3603
 
      if test "$aix_use_runtimelinking" = yes; then
3604
 
        shared_flag="$shared_flag "'${wl}-G'
3605
 
      fi
3606
 
    else
3607
 
      # not using gcc
3608
 
      if test "$host_cpu" = ia64; then
3609
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3610
 
        # chokes on -Wl,-G. The following line is correct:
3611
 
        shared_flag='-G'
3612
 
      else
3613
 
        if test "$aix_use_runtimelinking" = yes; then
3614
 
          shared_flag='${wl}-G'
3615
 
        else
3616
 
          shared_flag='${wl}-bM:SRE'
3617
 
        fi
3618
 
      fi
3619
 
    fi
3620
 
 
3621
 
    # It seems that -bexpall does not export symbols beginning with
3622
 
    # underscore (_), so it is better to generate a list of symbols to export.
3623
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3624
 
    if test "$aix_use_runtimelinking" = yes; then
3625
 
      # Warning - without using the other runtime loading flags (-brtl),
3626
 
      # -berok will link without error, but may produce a broken library.
3627
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3628
 
      # Determine the default libpath from the value encoded in an empty executable.
3629
 
      _LT_AC_SYS_LIBPATH_AIX
3630
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3631
 
 
3632
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3633
 
     else
3634
 
      if test "$host_cpu" = ia64; then
3635
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3636
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3637
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3638
 
      else
3639
 
        # Determine the default libpath from the value encoded in an empty executable.
3640
 
        _LT_AC_SYS_LIBPATH_AIX
3641
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3642
 
        # Warning - without using the other run time loading flags,
3643
 
        # -berok will link without error, but may produce a broken library.
3644
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3645
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3646
 
        # Exported symbols can be pulled into shared objects from archives
3647
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3648
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3649
 
        # This is similar to how AIX traditionally builds its shared libraries.
3650
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3651
 
      fi
3652
 
    fi
3653
 
    ;;
3654
 
 
3655
 
  beos*)
3656
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3657
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3658
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3659
 
      # support --undefined.  This deserves some investigation.  FIXME
3660
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3661
 
    else
3662
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3663
 
    fi
3664
 
    ;;
3665
 
 
3666
 
  chorus*)
3667
 
    case $cc_basename in
3668
 
      *)
3669
 
        # FIXME: insert proper C++ library support
3670
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3671
 
        ;;
3672
 
    esac
3673
 
    ;;
3674
 
 
3675
 
  cygwin* | mingw* | pw32*)
3676
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3677
 
    # as there is no search path for DLLs.
3678
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3679
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3680
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
3681
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3682
 
 
3683
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3684
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3685
 
      # If the export-symbols file already is a .def file (1st line
3686
 
      # is EXPORTS), use it as is; otherwise, prepend...
3687
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3688
 
        cp $export_symbols $output_objdir/$soname.def;
3689
 
      else
3690
 
        echo EXPORTS > $output_objdir/$soname.def;
3691
 
        cat $export_symbols >> $output_objdir/$soname.def;
3692
 
      fi~
3693
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3694
 
    else
3695
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3696
 
    fi
3697
 
  ;;
3698
 
      darwin* | rhapsody*)
3699
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3700
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3701
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3702
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3703
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3704
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3705
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3706
 
      if test "$GXX" = yes ; then
3707
 
      output_verbose_link_cmd='echo'
3708
 
      _LT_AC_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}"
3709
 
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3710
 
      _LT_AC_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}"
3711
 
      _LT_AC_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}"
3712
 
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3713
 
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
3714
 
        _LT_AC_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}"
3715
 
      fi
3716
 
      else
3717
 
      case $cc_basename in
3718
 
        xlc*)
3719
 
         output_verbose_link_cmd='echo'
3720
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3721
 
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3722
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3723
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3724
 
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3725
 
          ;;
3726
 
       *)
3727
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3728
 
          ;;
3729
 
      esac
3730
 
      fi
3731
 
        ;;
3732
 
 
3733
 
  dgux*)
3734
 
    case $cc_basename in
3735
 
      ec++*)
3736
 
        # FIXME: insert proper C++ library support
3737
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3738
 
        ;;
3739
 
      ghcx*)
3740
 
        # Green Hills C++ Compiler
3741
 
        # FIXME: insert proper C++ library support
3742
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3743
 
        ;;
3744
 
      *)
3745
 
        # FIXME: insert proper C++ library support
3746
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3747
 
        ;;
3748
 
    esac
3749
 
    ;;
3750
 
  freebsd[[12]]*)
3751
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
3752
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3753
 
    ;;
3754
 
  freebsd-elf*)
3755
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3756
 
    ;;
3757
 
  freebsd* | dragonfly*)
3758
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3759
 
    # conventions
3760
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3761
 
    ;;
3762
 
  gnu*)
3763
 
    ;;
3764
 
  hpux9*)
3765
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3766
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3767
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3768
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3769
 
    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3770
 
                                # but as the default
3771
 
                                # location of the library.
3772
 
 
3773
 
    case $cc_basename in
3774
 
    CC*)
3775
 
      # FIXME: insert proper C++ library support
3776
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3777
 
      ;;
3778
 
    aCC*)
3779
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3780
 
      # Commands to make compiler produce verbose output that lists
3781
 
      # what "hidden" libraries, object files and flags are used when
3782
 
      # linking a shared library.
3783
 
      #
3784
 
      # There doesn't appear to be a way to prevent this compiler from
3785
 
      # explicitly linking system object files so we need to strip them
3786
 
      # from the output so that they don't get included in the library
3787
 
      # dependencies.
3788
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3789
 
      ;;
3790
 
    *)
3791
 
      if test "$GXX" = yes; then
3792
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3793
 
      else
3794
 
        # FIXME: insert proper C++ library support
3795
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3796
 
      fi
3797
 
      ;;
3798
 
    esac
3799
 
    ;;
3800
 
  hpux10*|hpux11*)
3801
 
    if test $with_gnu_ld = no; then
3802
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3803
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3804
 
 
3805
 
      case $host_cpu in
3806
 
      hppa*64*|ia64*) ;;
3807
 
      *)
3808
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3809
 
        ;;
3810
 
      esac
3811
 
    fi
3812
 
    case $host_cpu in
3813
 
    hppa*64*|ia64*)
3814
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3815
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3816
 
      ;;
3817
 
    *)
3818
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3819
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3820
 
                                              # but as the default
3821
 
                                              # location of the library.
3822
 
      ;;
3823
 
    esac
3824
 
 
3825
 
    case $cc_basename in
3826
 
      CC*)
3827
 
        # FIXME: insert proper C++ library support
3828
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3829
 
        ;;
3830
 
      aCC*)
3831
 
        case $host_cpu in
3832
 
        hppa*64*)
3833
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3834
 
          ;;
3835
 
        ia64*)
3836
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3837
 
          ;;
3838
 
        *)
3839
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3840
 
          ;;
3841
 
        esac
3842
 
        # Commands to make compiler produce verbose output that lists
3843
 
        # what "hidden" libraries, object files and flags are used when
3844
 
        # linking a shared library.
3845
 
        #
3846
 
        # There doesn't appear to be a way to prevent this compiler from
3847
 
        # explicitly linking system object files so we need to strip them
3848
 
        # from the output so that they don't get included in the library
3849
 
        # dependencies.
3850
 
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3851
 
        ;;
3852
 
      *)
3853
 
        if test "$GXX" = yes; then
3854
 
          if test $with_gnu_ld = no; then
3855
 
            case $host_cpu in
3856
 
            hppa*64*)
3857
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3858
 
              ;;
3859
 
            ia64*)
3860
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3861
 
              ;;
3862
 
            *)
3863
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3864
 
              ;;
3865
 
            esac
3866
 
          fi
3867
 
        else
3868
 
          # FIXME: insert proper C++ library support
3869
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3870
 
        fi
3871
 
        ;;
3872
 
    esac
3873
 
    ;;
3874
 
  interix[[3-9]]*)
3875
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3876
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3877
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3878
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3879
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3880
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
3881
 
    # default) and relocated if they conflict, which is a slow very memory
3882
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
3883
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3884
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
3885
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3886
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3887
 
    ;;
3888
 
  irix5* | irix6*)
3889
 
    case $cc_basename in
3890
 
      CC*)
3891
 
        # SGI C++
3892
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3893
 
 
3894
 
        # Archives containing C++ object files must be created using
3895
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
3896
 
        # necessary to make sure instantiated templates are included
3897
 
        # in the archive.
3898
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3899
 
        ;;
3900
 
      *)
3901
 
        if test "$GXX" = yes; then
3902
 
          if test "$with_gnu_ld" = no; then
3903
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3904
 
          else
3905
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3906
 
          fi
3907
 
        fi
3908
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3909
 
        ;;
3910
 
    esac
3911
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3912
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3913
 
    ;;
3914
 
  linux* | k*bsd*-gnu)
3915
 
    case $cc_basename in
3916
 
      KCC*)
3917
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3918
 
 
3919
 
        # KCC will only create a shared library if the output file
3920
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
3921
 
        # to its proper name (with version) after linking.
3922
 
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3923
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
3924
 
        # Commands to make compiler produce verbose output that lists
3925
 
        # what "hidden" libraries, object files and flags are used when
3926
 
        # linking a shared library.
3927
 
        #
3928
 
        # There doesn't appear to be a way to prevent this compiler from
3929
 
        # explicitly linking system object files so we need to strip them
3930
 
        # from the output so that they don't get included in the library
3931
 
        # dependencies.
3932
 
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3933
 
 
3934
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3935
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3936
 
 
3937
 
        # Archives containing C++ object files must be created using
3938
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3939
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3940
 
        ;;
3941
 
      icpc*)
3942
 
        # Intel C++
3943
 
        with_gnu_ld=yes
3944
 
        # version 8.0 and above of icpc choke on multiply defined symbols
3945
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
3946
 
        # earlier do not add the objects themselves.
3947
 
        case `$CC -V 2>&1` in
3948
 
        *"Version 7."*)
3949
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3950
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3951
 
          ;;
3952
 
        *)  # Version 8.0 or newer
3953
 
          tmp_idyn=
3954
 
          case $host_cpu in
3955
 
            ia64*) tmp_idyn=' -i_dynamic';;
3956
 
          esac
3957
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3958
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3959
 
          ;;
3960
 
        esac
3961
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3962
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3963
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3964
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3965
 
        ;;
3966
 
      pgCC* | pgcpp*)
3967
 
        # Portland Group C++ compiler
3968
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3969
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
3970
 
 
3971
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3972
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3973
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3974
 
        ;;
3975
 
      cxx*)
3976
 
        # Compaq C++
3977
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3978
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
3979
 
 
3980
 
        runpath_var=LD_RUN_PATH
3981
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3982
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3983
 
 
3984
 
        # Commands to make compiler produce verbose output that lists
3985
 
        # what "hidden" libraries, object files and flags are used when
3986
 
        # linking a shared library.
3987
 
        #
3988
 
        # There doesn't appear to be a way to prevent this compiler from
3989
 
        # explicitly linking system object files so we need to strip them
3990
 
        # from the output so that they don't get included in the library
3991
 
        # dependencies.
3992
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3993
 
        ;;
3994
 
      *)
3995
 
        case `$CC -V 2>&1 | sed 5q` in
3996
 
        *Sun\ C*)
3997
 
          # Sun C++ 5.9
3998
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3999
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4000
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
4001
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4002
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4003
 
 
4004
 
          # Not sure whether something based on
4005
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
4006
 
          # would be better.
4007
 
          output_verbose_link_cmd='echo'
4008
 
 
4009
 
          # Archives containing C++ object files must be created using
4010
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
4011
 
          # necessary to make sure instantiated templates are included
4012
 
          # in the archive.
4013
 
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4014
 
          ;;
4015
 
        esac
4016
 
        ;;
4017
 
    esac
4018
 
    ;;
4019
 
  lynxos*)
4020
 
    # FIXME: insert proper C++ library support
4021
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4022
 
    ;;
4023
 
  m88k*)
4024
 
    # FIXME: insert proper C++ library support
4025
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4026
 
    ;;
4027
 
  mvs*)
4028
 
    case $cc_basename in
4029
 
      cxx*)
4030
 
        # FIXME: insert proper C++ library support
4031
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4032
 
        ;;
4033
 
      *)
4034
 
        # FIXME: insert proper C++ library support
4035
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4036
 
        ;;
4037
 
    esac
4038
 
    ;;
4039
 
  netbsd* | netbsdelf*-gnu)
4040
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4041
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4042
 
      wlarc=
4043
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4044
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4045
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4046
 
    fi
4047
 
    # Workaround some broken pre-1.5 toolchains
4048
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4049
 
    ;;
4050
 
  openbsd2*)
4051
 
    # C++ shared libraries are fairly broken
4052
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4053
 
    ;;
4054
 
  openbsd*)
4055
 
    if test -f /usr/libexec/ld.so; then
4056
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4057
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4058
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4059
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4060
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4061
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
4062
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4063
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4064
 
      fi
4065
 
      output_verbose_link_cmd='echo'
4066
 
    else
4067
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4068
 
    fi
4069
 
    ;;
4070
 
  osf3*)
4071
 
    case $cc_basename in
4072
 
      KCC*)
4073
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4074
 
 
4075
 
        # KCC will only create a shared library if the output file
4076
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
4077
 
        # to its proper name (with version) after linking.
4078
 
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4079
 
 
4080
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4081
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4082
 
 
4083
 
        # Archives containing C++ object files must be created using
4084
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4085
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4086
 
 
4087
 
        ;;
4088
 
      RCC*)
4089
 
        # Rational C++ 2.4.1
4090
 
        # FIXME: insert proper C++ library support
4091
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4092
 
        ;;
4093
 
      cxx*)
4094
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4095
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4096
 
 
4097
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4098
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4099
 
 
4100
 
        # Commands to make compiler produce verbose output that lists
4101
 
        # what "hidden" libraries, object files and flags are used when
4102
 
        # linking a shared library.
4103
 
        #
4104
 
        # There doesn't appear to be a way to prevent this compiler from
4105
 
        # explicitly linking system object files so we need to strip them
4106
 
        # from the output so that they don't get included in the library
4107
 
        # dependencies.
4108
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4109
 
        ;;
4110
 
      *)
4111
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4112
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4113
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4114
 
 
4115
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4116
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4117
 
 
4118
 
          # Commands to make compiler produce verbose output that lists
4119
 
          # what "hidden" libraries, object files and flags are used when
4120
 
          # linking a shared library.
4121
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4122
 
 
4123
 
        else
4124
 
          # FIXME: insert proper C++ library support
4125
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
4126
 
        fi
4127
 
        ;;
4128
 
    esac
4129
 
    ;;
4130
 
  osf4* | osf5*)
4131
 
    case $cc_basename in
4132
 
      KCC*)
4133
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
4134
 
 
4135
 
        # KCC will only create a shared library if the output file
4136
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
4137
 
        # to its proper name (with version) after linking.
4138
 
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4139
 
 
4140
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4141
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4142
 
 
4143
 
        # Archives containing C++ object files must be created using
4144
 
        # the KAI C++ compiler.
4145
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4146
 
        ;;
4147
 
      RCC*)
4148
 
        # Rational C++ 2.4.1
4149
 
        # FIXME: insert proper C++ library support
4150
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4151
 
        ;;
4152
 
      cxx*)
4153
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4154
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4155
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4156
 
          echo "-hidden">> $lib.exp~
4157
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
4158
 
          $rm $lib.exp'
4159
 
 
4160
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4161
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4162
 
 
4163
 
        # Commands to make compiler produce verbose output that lists
4164
 
        # what "hidden" libraries, object files and flags are used when
4165
 
        # linking a shared library.
4166
 
        #
4167
 
        # There doesn't appear to be a way to prevent this compiler from
4168
 
        # explicitly linking system object files so we need to strip them
4169
 
        # from the output so that they don't get included in the library
4170
 
        # dependencies.
4171
 
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4172
 
        ;;
4173
 
      *)
4174
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4175
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4176
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4177
 
 
4178
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4179
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4180
 
 
4181
 
          # Commands to make compiler produce verbose output that lists
4182
 
          # what "hidden" libraries, object files and flags are used when
4183
 
          # linking a shared library.
4184
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4185
 
 
4186
 
        else
4187
 
          # FIXME: insert proper C++ library support
4188
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
4189
 
        fi
4190
 
        ;;
4191
 
    esac
4192
 
    ;;
4193
 
  psos*)
4194
 
    # FIXME: insert proper C++ library support
4195
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4196
 
    ;;
4197
 
  sunos4*)
4198
 
    case $cc_basename in
4199
 
      CC*)
4200
 
        # Sun C++ 4.x
4201
 
        # FIXME: insert proper C++ library support
4202
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4203
 
        ;;
4204
 
      lcc*)
4205
 
        # Lucid
4206
 
        # FIXME: insert proper C++ library support
4207
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4208
 
        ;;
4209
 
      *)
4210
 
        # FIXME: insert proper C++ library support
4211
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4212
 
        ;;
4213
 
    esac
4214
 
    ;;
4215
 
  solaris*)
4216
 
    case $cc_basename in
4217
 
      CC*)
4218
 
        # Sun C++ 4.2, 5.x and Centerline C++
4219
 
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4220
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4221
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4222
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4223
 
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4224
 
 
4225
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4226
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4227
 
        case $host_os in
4228
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4229
 
          *)
4230
 
            # The compiler driver will combine and reorder linker options,
4231
 
            # but understands `-z linker_flag'.
4232
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
4233
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4234
 
            ;;
4235
 
        esac
4236
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4237
 
 
4238
 
        output_verbose_link_cmd='echo'
4239
 
 
4240
 
        # Archives containing C++ object files must be created using
4241
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
4242
 
        # necessary to make sure instantiated templates are included
4243
 
        # in the archive.
4244
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4245
 
        ;;
4246
 
      gcx*)
4247
 
        # Green Hills C++ Compiler
4248
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4249
 
 
4250
 
        # The C++ compiler must be used to create the archive.
4251
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4252
 
        ;;
4253
 
      *)
4254
 
        # GNU C++ compiler with Solaris linker
4255
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4256
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4257
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
4258
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4259
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4260
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4261
 
 
4262
 
            # Commands to make compiler produce verbose output that lists
4263
 
            # what "hidden" libraries, object files and flags are used when
4264
 
            # linking a shared library.
4265
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4266
 
          else
4267
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
4268
 
            # platform.
4269
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4270
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4271
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4272
 
 
4273
 
            # Commands to make compiler produce verbose output that lists
4274
 
            # what "hidden" libraries, object files and flags are used when
4275
 
            # linking a shared library.
4276
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4277
 
          fi
4278
 
 
4279
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4280
 
          case $host_os in
4281
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4282
 
          *)
4283
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4284
 
            ;;
4285
 
          esac
4286
 
        fi
4287
 
        ;;
4288
 
    esac
4289
 
    ;;
4290
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4291
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4292
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4293
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4294
 
    runpath_var='LD_RUN_PATH'
4295
 
 
4296
 
    case $cc_basename in
4297
 
      CC*)
4298
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4299
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4300
 
        ;;
4301
 
      *)
4302
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4303
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4304
 
        ;;
4305
 
    esac
4306
 
    ;;
4307
 
  sysv5* | sco3.2v5* | sco5v6*)
4308
 
    # Note: We can NOT use -z defs as we might desire, because we do not
4309
 
    # link with -lc, and that would cause any symbols used from libc to
4310
 
    # always be unresolved, which means just about no library would
4311
 
    # ever link correctly.  If we're not using GNU ld we use -z text
4312
 
    # though, which does catch some bad symbols but isn't as heavy-handed
4313
 
    # as -z defs.
4314
 
    # For security reasons, it is highly recommended that you always
4315
 
    # use absolute paths for naming shared libraries, and exclude the
4316
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
4317
 
    # requires that you compile everything twice, which is a pain.
4318
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
4319
 
    # non-empty value in the environment.  Most likely only useful for
4320
 
    # creating official distributions of packages.
4321
 
    # This is a hack until libtool officially supports absolute path
4322
 
    # names for shared libraries.
4323
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4324
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4325
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4326
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4327
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4328
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4329
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4330
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4331
 
    runpath_var='LD_RUN_PATH'
4332
 
 
4333
 
    case $cc_basename in
4334
 
      CC*)
4335
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4336
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4337
 
        ;;
4338
 
      *)
4339
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4340
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4341
 
        ;;
4342
 
    esac
4343
 
    ;;
4344
 
  tandem*)
4345
 
    case $cc_basename in
4346
 
      NCC*)
4347
 
        # NonStop-UX NCC 3.20
4348
 
        # FIXME: insert proper C++ library support
4349
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4350
 
        ;;
4351
 
      *)
4352
 
        # FIXME: insert proper C++ library support
4353
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4354
 
        ;;
4355
 
    esac
4356
 
    ;;
4357
 
  vxworks*)
4358
 
    # FIXME: insert proper C++ library support
4359
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4360
 
    ;;
4361
 
  *)
4362
 
    # FIXME: insert proper C++ library support
4363
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
4364
 
    ;;
4365
 
esac
4366
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4367
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4368
 
 
4369
 
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4370
 
_LT_AC_TAGVAR(LD, $1)="$LD"
4371
 
 
4372
 
AC_LIBTOOL_POSTDEP_PREDEP($1)
4373
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4374
 
AC_LIBTOOL_PROG_CC_C_O($1)
4375
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4376
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4377
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4378
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4379
 
 
4380
 
AC_LIBTOOL_CONFIG($1)
4381
 
 
4382
 
AC_LANG_POP
4383
 
CC=$lt_save_CC
4384
 
LDCXX=$LD
4385
 
LD=$lt_save_LD
4386
 
GCC=$lt_save_GCC
4387
 
with_gnu_ldcxx=$with_gnu_ld
4388
 
with_gnu_ld=$lt_save_with_gnu_ld
4389
 
lt_cv_path_LDCXX=$lt_cv_path_LD
4390
 
lt_cv_path_LD=$lt_save_path_LD
4391
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4392
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4393
 
])# AC_LIBTOOL_LANG_CXX_CONFIG
4394
 
 
4395
 
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4396
 
# ------------------------------------
4397
 
# Figure out "hidden" library dependencies from verbose
4398
 
# compiler output when linking a shared library.
4399
 
# Parse the compiler output and extract the necessary
4400
 
# objects, libraries and library flags.
4401
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
4402
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4403
 
dnl we can't use the lt_simple_compile_test_code here,
4404
 
dnl because it contains code intended for an executable,
4405
 
dnl not a library.  It's possible we should let each
4406
 
dnl tag define a new lt_????_link_test_code variable,
4407
 
dnl but it's only used here...
4408
 
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4409
 
int a;
4410
 
void foo (void) { a = 0; }
4411
 
EOF
4412
 
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4413
 
class Foo
4414
 
{
4415
 
public:
4416
 
  Foo (void) { a = 0; }
4417
 
private:
4418
 
  int a;
4419
 
};
4420
 
EOF
4421
 
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4422
 
      subroutine foo
4423
 
      implicit none
4424
 
      integer*4 a
4425
 
      a=0
4426
 
      return
4427
 
      end
4428
 
EOF
4429
 
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4430
 
public class foo {
4431
 
  private int a;
4432
 
  public void bar (void) {
4433
 
    a = 0;
4434
 
  }
4435
 
};
4436
 
EOF
4437
 
])
4438
 
dnl Parse the compiler output and extract the necessary
4439
 
dnl objects, libraries and library flags.
4440
 
if AC_TRY_EVAL(ac_compile); then
4441
 
  # Parse the compiler output and extract the necessary
4442
 
  # objects, libraries and library flags.
4443
 
 
4444
 
  # Sentinel used to keep track of whether or not we are before
4445
 
  # the conftest object file.
4446
 
  pre_test_object_deps_done=no
4447
 
 
4448
 
  # The `*' in the case matches for architectures that use `case' in
4449
 
  # $output_verbose_cmd can trigger glob expansion during the loop
4450
 
  # eval without this substitution.
4451
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4452
 
 
4453
 
  for p in `eval $output_verbose_link_cmd`; do
4454
 
    case $p in
4455
 
 
4456
 
    -L* | -R* | -l*)
4457
 
       # Some compilers place space between "-{L,R}" and the path.
4458
 
       # Remove the space.
4459
 
       if test $p = "-L" \
4460
 
          || test $p = "-R"; then
4461
 
         prev=$p
4462
 
         continue
4463
 
       else
4464
 
         prev=
4465
 
       fi
4466
 
 
4467
 
       if test "$pre_test_object_deps_done" = no; then
4468
 
         case $p in
4469
 
         -L* | -R*)
4470
 
           # Internal compiler library paths should come after those
4471
 
           # provided the user.  The postdeps already come after the
4472
 
           # user supplied libs so there is no need to process them.
4473
 
           if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4474
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4475
 
           else
4476
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4477
 
           fi
4478
 
           ;;
4479
 
         # The "-l" case would never come before the object being
4480
 
         # linked, so don't bother handling this case.
4481
 
         esac
4482
 
       else
4483
 
         if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4484
 
           _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4485
 
         else
4486
 
           _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4487
 
         fi
4488
 
       fi
4489
 
       ;;
4490
 
 
4491
 
    *.$objext)
4492
 
       # This assumes that the test object file only shows up
4493
 
       # once in the compiler output.
4494
 
       if test "$p" = "conftest.$objext"; then
4495
 
         pre_test_object_deps_done=yes
4496
 
         continue
4497
 
       fi
4498
 
 
4499
 
       if test "$pre_test_object_deps_done" = no; then
4500
 
         if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4501
 
           _LT_AC_TAGVAR(predep_objects, $1)="$p"
4502
 
         else
4503
 
           _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4504
 
         fi
4505
 
       else
4506
 
         if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4507
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$p"
4508
 
         else
4509
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4510
 
         fi
4511
 
       fi
4512
 
       ;;
4513
 
 
4514
 
    *) ;; # Ignore the rest.
4515
 
 
4516
 
    esac
4517
 
  done
4518
 
 
4519
 
  # Clean up.
4520
 
  rm -f a.out a.exe
4521
 
else
4522
 
  echo "libtool.m4: error: problem compiling $1 test program"
4523
 
fi
4524
 
 
4525
 
$rm -f confest.$objext
4526
 
 
4527
 
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4528
 
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4529
 
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4530
 
fi
4531
 
 
4532
 
# PORTME: override above test on systems where it is broken
4533
 
ifelse([$1],[CXX],
4534
 
[case $host_os in
4535
 
interix[[3-9]]*)
4536
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
4537
 
  # hack all around it, let's just trust "g++" to DTRT.
4538
 
  _LT_AC_TAGVAR(predep_objects,$1)=
4539
 
  _LT_AC_TAGVAR(postdep_objects,$1)=
4540
 
  _LT_AC_TAGVAR(postdeps,$1)=
4541
 
  ;;
4542
 
 
4543
 
linux*)
4544
 
  case `$CC -V 2>&1 | sed 5q` in
4545
 
  *Sun\ C*)
4546
 
    # Sun C++ 5.9
4547
 
    #
4548
 
    # The more standards-conforming stlport4 library is
4549
 
    # incompatible with the Cstd library. Avoid specifying
4550
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4551
 
    # -library=stlport4 depends on it.
4552
 
    case " $CXX $CXXFLAGS " in
4553
 
    *" -library=stlport4 "*)
4554
 
      solaris_use_stlport4=yes
4555
 
      ;;
4556
 
    esac
4557
 
    if test "$solaris_use_stlport4" != yes; then
4558
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4559
 
    fi
4560
 
    ;;
4561
 
  esac
4562
 
  ;;
4563
 
 
4564
 
solaris*)
4565
 
  case $cc_basename in
4566
 
  CC*)
4567
 
    # The more standards-conforming stlport4 library is
4568
 
    # incompatible with the Cstd library. Avoid specifying
4569
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4570
 
    # -library=stlport4 depends on it.
4571
 
    case " $CXX $CXXFLAGS " in
4572
 
    *" -library=stlport4 "*)
4573
 
      solaris_use_stlport4=yes
4574
 
      ;;
4575
 
    esac
4576
 
 
4577
 
    # Adding this requires a known-good setup of shared libraries for
4578
 
    # Sun compiler versions before 5.6, else PIC objects from an old
4579
 
    # archive will be linked into the output, leading to subtle bugs.
4580
 
    if test "$solaris_use_stlport4" != yes; then
4581
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4582
 
    fi
4583
 
    ;;
4584
 
  esac
4585
 
  ;;
4586
 
esac
4587
 
])
4588
 
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4589
 
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4590
 
esac
4591
 
])# AC_LIBTOOL_POSTDEP_PREDEP
4592
 
 
4593
 
# AC_LIBTOOL_LANG_F77_CONFIG
4594
 
# --------------------------
4595
 
# Ensure that the configuration vars for the C compiler are
4596
 
# suitably defined.  Those variables are subsequently used by
4597
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4598
 
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4599
 
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4600
 
[AC_REQUIRE([AC_PROG_F77])
4601
 
AC_LANG_PUSH(Fortran 77)
4602
 
 
4603
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4604
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4605
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4606
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4607
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4608
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4609
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4610
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4611
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4612
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4613
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4614
 
_LT_AC_TAGVAR(module_cmds, $1)=
4615
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4616
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4617
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4618
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4619
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4620
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4621
 
 
4622
 
# Source file extension for f77 test sources.
4623
 
ac_ext=f
4624
 
 
4625
 
# Object file extension for compiled f77 test sources.
4626
 
objext=o
4627
 
_LT_AC_TAGVAR(objext, $1)=$objext
4628
 
 
4629
 
# Code to be used in simple compile tests
4630
 
lt_simple_compile_test_code="\
4631
 
      subroutine t
4632
 
      return
4633
 
      end
4634
 
"
4635
 
 
4636
 
# Code to be used in simple link tests
4637
 
lt_simple_link_test_code="\
4638
 
      program t
4639
 
      end
4640
 
"
4641
 
 
4642
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4643
 
_LT_AC_SYS_COMPILER
4644
 
 
4645
 
# save warnings/boilerplate of simple test code
4646
 
_LT_COMPILER_BOILERPLATE
4647
 
_LT_LINKER_BOILERPLATE
4648
 
 
4649
 
# Allow CC to be a program name with arguments.
4650
 
lt_save_CC="$CC"
4651
 
CC=${F77-"f77"}
4652
 
compiler=$CC
4653
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4654
 
_LT_CC_BASENAME([$compiler])
4655
 
 
4656
 
AC_MSG_CHECKING([if libtool supports shared libraries])
4657
 
AC_MSG_RESULT([$can_build_shared])
4658
 
 
4659
 
AC_MSG_CHECKING([whether to build shared libraries])
4660
 
test "$can_build_shared" = "no" && enable_shared=no
4661
 
 
4662
 
# On AIX, shared libraries and static libraries use the same namespace, and
4663
 
# are all built from PIC.
4664
 
case $host_os in
4665
 
aix3*)
4666
 
  test "$enable_shared" = yes && enable_static=no
4667
 
  if test -n "$RANLIB"; then
4668
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
4669
 
    postinstall_cmds='$RANLIB $lib'
4670
 
  fi
4671
 
  ;;
4672
 
aix[[4-9]]*)
4673
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4674
 
    test "$enable_shared" = yes && enable_static=no
4675
 
  fi
4676
 
  ;;
4677
 
esac
4678
 
AC_MSG_RESULT([$enable_shared])
4679
 
 
4680
 
AC_MSG_CHECKING([whether to build static libraries])
4681
 
# Make sure either enable_shared or enable_static is yes.
4682
 
test "$enable_shared" = yes || enable_static=yes
4683
 
AC_MSG_RESULT([$enable_static])
4684
 
 
4685
 
_LT_AC_TAGVAR(GCC, $1)="$G77"
4686
 
_LT_AC_TAGVAR(LD, $1)="$LD"
4687
 
 
4688
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4689
 
AC_LIBTOOL_PROG_CC_C_O($1)
4690
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4691
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4692
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4693
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4694
 
 
4695
 
AC_LIBTOOL_CONFIG($1)
4696
 
 
4697
 
AC_LANG_POP
4698
 
CC="$lt_save_CC"
4699
 
])# AC_LIBTOOL_LANG_F77_CONFIG
4700
 
 
4701
 
 
4702
 
# AC_LIBTOOL_LANG_GCJ_CONFIG
4703
 
# --------------------------
4704
 
# Ensure that the configuration vars for the C compiler are
4705
 
# suitably defined.  Those variables are subsequently used by
4706
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4707
 
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4708
 
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4709
 
[AC_LANG_SAVE
4710
 
 
4711
 
# Source file extension for Java test sources.
4712
 
ac_ext=java
4713
 
 
4714
 
# Object file extension for compiled Java test sources.
4715
 
objext=o
4716
 
_LT_AC_TAGVAR(objext, $1)=$objext
4717
 
 
4718
 
# Code to be used in simple compile tests
4719
 
lt_simple_compile_test_code="class foo {}"
4720
 
 
4721
 
# Code to be used in simple link tests
4722
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4723
 
 
4724
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4725
 
_LT_AC_SYS_COMPILER
4726
 
 
4727
 
# save warnings/boilerplate of simple test code
4728
 
_LT_COMPILER_BOILERPLATE
4729
 
_LT_LINKER_BOILERPLATE
4730
 
 
4731
 
# Allow CC to be a program name with arguments.
4732
 
lt_save_CC="$CC"
4733
 
CC=${GCJ-"gcj"}
4734
 
compiler=$CC
4735
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4736
 
_LT_CC_BASENAME([$compiler])
4737
 
 
4738
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4739
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4740
 
 
4741
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4742
 
 
4743
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4744
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4745
 
AC_LIBTOOL_PROG_CC_C_O($1)
4746
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4747
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4748
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4749
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4750
 
 
4751
 
AC_LIBTOOL_CONFIG($1)
4752
 
 
4753
 
AC_LANG_RESTORE
4754
 
CC="$lt_save_CC"
4755
 
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4756
 
 
4757
 
 
4758
 
# AC_LIBTOOL_LANG_RC_CONFIG
4759
 
# -------------------------
4760
 
# Ensure that the configuration vars for the Windows resource compiler are
4761
 
# suitably defined.  Those variables are subsequently used by
4762
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4763
 
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4764
 
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4765
 
[AC_LANG_SAVE
4766
 
 
4767
 
# Source file extension for RC test sources.
4768
 
ac_ext=rc
4769
 
 
4770
 
# Object file extension for compiled RC test sources.
4771
 
objext=o
4772
 
_LT_AC_TAGVAR(objext, $1)=$objext
4773
 
 
4774
 
# Code to be used in simple compile tests
4775
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4776
 
 
4777
 
# Code to be used in simple link tests
4778
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
4779
 
 
4780
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4781
 
_LT_AC_SYS_COMPILER
4782
 
 
4783
 
# save warnings/boilerplate of simple test code
4784
 
_LT_COMPILER_BOILERPLATE
4785
 
_LT_LINKER_BOILERPLATE
4786
 
 
4787
 
# Allow CC to be a program name with arguments.
4788
 
lt_save_CC="$CC"
4789
 
CC=${RC-"windres"}
4790
 
compiler=$CC
4791
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4792
 
_LT_CC_BASENAME([$compiler])
4793
 
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4794
 
 
4795
 
AC_LIBTOOL_CONFIG($1)
4796
 
 
4797
 
AC_LANG_RESTORE
4798
 
CC="$lt_save_CC"
4799
 
])# AC_LIBTOOL_LANG_RC_CONFIG
4800
 
 
4801
 
 
4802
 
# AC_LIBTOOL_CONFIG([TAGNAME])
4803
 
# ----------------------------
4804
 
# If TAGNAME is not passed, then create an initial libtool script
4805
 
# with a default configuration from the untagged config vars.  Otherwise
4806
 
# add code to config.status for appending the configuration named by
4807
 
# TAGNAME from the matching tagged config vars.
4808
 
AC_DEFUN([AC_LIBTOOL_CONFIG],
4809
 
[# The else clause should only fire when bootstrapping the
4810
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
4811
 
# with your package, and you will get complaints that there are
4812
 
# no rules to generate ltmain.sh.
4813
 
if test -f "$ltmain"; then
4814
 
  # See if we are running on zsh, and set the options which allow our commands through
4815
 
  # without removal of \ escapes.
4816
 
  if test -n "${ZSH_VERSION+set}" ; then
4817
 
    setopt NO_GLOB_SUBST
4818
 
  fi
4819
 
  # Now quote all the things that may contain metacharacters while being
4820
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
4821
 
  # variables and quote the copies for generation of the libtool script.
4822
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4823
 
    SED SHELL STRIP \
4824
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4825
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4826
 
    deplibs_check_method reload_flag reload_cmds need_locks \
4827
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4828
 
    lt_cv_sys_global_symbol_to_c_name_address \
4829
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4830
 
    old_postinstall_cmds old_postuninstall_cmds \
4831
 
    _LT_AC_TAGVAR(compiler, $1) \
4832
 
    _LT_AC_TAGVAR(CC, $1) \
4833
 
    _LT_AC_TAGVAR(LD, $1) \
4834
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4835
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4836
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4837
 
    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4838
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4839
 
    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4840
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4841
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4842
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) \
4843
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4844
 
    _LT_AC_TAGVAR(predep_objects, $1) \
4845
 
    _LT_AC_TAGVAR(postdep_objects, $1) \
4846
 
    _LT_AC_TAGVAR(predeps, $1) \
4847
 
    _LT_AC_TAGVAR(postdeps, $1) \
4848
 
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4849
 
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4850
 
    _LT_AC_TAGVAR(archive_cmds, $1) \
4851
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4852
 
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
4853
 
    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4854
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4855
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4856
 
    _LT_AC_TAGVAR(no_undefined_flag, $1) \
4857
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4858
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4859
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4860
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4861
 
    _LT_AC_TAGVAR(hardcode_automatic, $1) \
4862
 
    _LT_AC_TAGVAR(module_cmds, $1) \
4863
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4864
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4865
 
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4866
 
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4867
 
    _LT_AC_TAGVAR(include_expsyms, $1); do
4868
 
 
4869
 
    case $var in
4870
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4871
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4872
 
    _LT_AC_TAGVAR(archive_cmds, $1) | \
4873
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4874
 
    _LT_AC_TAGVAR(module_cmds, $1) | \
4875
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4876
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4877
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4878
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
4879
 
    postinstall_cmds | postuninstall_cmds | \
4880
 
    old_postinstall_cmds | old_postuninstall_cmds | \
4881
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4882
 
      # Double-quote double-evaled strings.
4883
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4884
 
      ;;
4885
 
    *)
4886
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4887
 
      ;;
4888
 
    esac
4889
 
  done
4890
 
 
4891
 
  case $lt_echo in
4892
 
  *'\[$]0 --fallback-echo"')
4893
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4894
 
    ;;
4895
 
  esac
4896
 
 
4897
 
ifelse([$1], [],
4898
 
  [cfgfile="${ofile}T"
4899
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4900
 
  $rm -f "$cfgfile"
4901
 
  AC_MSG_NOTICE([creating $ofile])],
4902
 
  [cfgfile="$ofile"])
4903
 
 
4904
 
  cat <<__EOF__ >> "$cfgfile"
4905
 
ifelse([$1], [],
4906
 
[#! $SHELL
4907
 
 
4908
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4909
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4910
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4911
 
#
4912
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4913
 
# Free Software Foundation, Inc.
4914
 
#
4915
 
# This file is part of GNU Libtool:
4916
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4917
 
#
4918
 
# This program is free software; you can redistribute it and/or modify
4919
 
# it under the terms of the GNU General Public License as published by
4920
 
# the Free Software Foundation; either version 2 of the License, or
4921
 
# (at your option) any later version.
4922
 
#
4923
 
# This program is distributed in the hope that it will be useful, but
4924
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
4925
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
4926
 
# General Public License for more details.
4927
 
#
4928
 
# You should have received a copy of the GNU General Public License
4929
 
# along with this program; if not, write to the Free Software
4930
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4931
 
#
4932
 
# As a special exception to the GNU General Public License, if you
4933
 
# distribute this file as part of a program that contains a
4934
 
# configuration script generated by Autoconf, you may include it under
4935
 
# the same distribution terms that you use for the rest of that program.
4936
 
 
4937
 
# A sed program that does not truncate output.
4938
 
SED=$lt_SED
4939
 
 
4940
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4941
 
Xsed="$SED -e 1s/^X//"
4942
 
 
4943
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
4944
 
# if CDPATH is set.
4945
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4946
 
 
4947
 
# The names of the tagged configurations supported by this script.
4948
 
available_tags=
4949
 
 
4950
 
# ### BEGIN LIBTOOL CONFIG],
4951
 
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4952
 
 
4953
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4954
 
 
4955
 
# Shell to use when invoking shell scripts.
4956
 
SHELL=$lt_SHELL
4957
 
 
4958
 
# Whether or not to build shared libraries.
4959
 
build_libtool_libs=$enable_shared
4960
 
 
4961
 
# Whether or not to build static libraries.
4962
 
build_old_libs=$enable_static
4963
 
 
4964
 
# Whether or not to add -lc for building shared libraries.
4965
 
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4966
 
 
4967
 
# Whether or not to disallow shared libs when runtime libs are static
4968
 
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4969
 
 
4970
 
# Whether or not to optimize for fast installation.
4971
 
fast_install=$enable_fast_install
4972
 
 
4973
 
# The host system.
4974
 
host_alias=$host_alias
4975
 
host=$host
4976
 
host_os=$host_os
4977
 
 
4978
 
# The build system.
4979
 
build_alias=$build_alias
4980
 
build=$build
4981
 
build_os=$build_os
4982
 
 
4983
 
# An echo program that does not interpret backslashes.
4984
 
echo=$lt_echo
4985
 
 
4986
 
# The archiver.
4987
 
AR=$lt_AR
4988
 
AR_FLAGS=$lt_AR_FLAGS
4989
 
 
4990
 
# A C compiler.
4991
 
LTCC=$lt_LTCC
4992
 
 
4993
 
# LTCC compiler flags.
4994
 
LTCFLAGS=$lt_LTCFLAGS
4995
 
 
4996
 
# A language-specific compiler.
4997
 
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4998
 
 
4999
 
# Is the compiler the GNU C compiler?
5000
 
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5001
 
 
5002
 
# An ERE matcher.
5003
 
EGREP=$lt_EGREP
5004
 
 
5005
 
# The linker used to build libraries.
5006
 
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5007
 
 
5008
 
# Whether we need hard or soft links.
5009
 
LN_S=$lt_LN_S
5010
 
 
5011
 
# A BSD-compatible nm program.
5012
 
NM=$lt_NM
5013
 
 
5014
 
# A symbol stripping program
5015
 
STRIP=$lt_STRIP
5016
 
 
5017
 
# Used to examine libraries when file_magic_cmd begins "file"
5018
 
MAGIC_CMD=$MAGIC_CMD
5019
 
 
5020
 
# Used on cygwin: DLL creation program.
5021
 
DLLTOOL="$DLLTOOL"
5022
 
 
5023
 
# Used on cygwin: object dumper.
5024
 
OBJDUMP="$OBJDUMP"
5025
 
 
5026
 
# Used on cygwin: assembler.
5027
 
AS="$AS"
5028
 
 
5029
 
# The name of the directory that contains temporary libtool files.
5030
 
objdir=$objdir
5031
 
 
5032
 
# How to create reloadable object files.
5033
 
reload_flag=$lt_reload_flag
5034
 
reload_cmds=$lt_reload_cmds
5035
 
 
5036
 
# How to pass a linker flag through the compiler.
5037
 
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5038
 
 
5039
 
# Object file suffix (normally "o").
5040
 
objext="$ac_objext"
5041
 
 
5042
 
# Old archive suffix (normally "a").
5043
 
libext="$libext"
5044
 
 
5045
 
# Shared library suffix (normally ".so").
5046
 
shrext_cmds='$shrext_cmds'
5047
 
 
5048
 
# Executable file suffix (normally "").
5049
 
exeext="$exeext"
5050
 
 
5051
 
# Additional compiler flags for building library objects.
5052
 
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5053
 
pic_mode=$pic_mode
5054
 
 
5055
 
# What is the maximum length of a command?
5056
 
max_cmd_len=$lt_cv_sys_max_cmd_len
5057
 
 
5058
 
# Does compiler simultaneously support -c and -o options?
5059
 
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5060
 
 
5061
 
# Must we lock files when doing compilation?
5062
 
need_locks=$lt_need_locks
5063
 
 
5064
 
# Do we need the lib prefix for modules?
5065
 
need_lib_prefix=$need_lib_prefix
5066
 
 
5067
 
# Do we need a version for libraries?
5068
 
need_version=$need_version
5069
 
 
5070
 
# Whether dlopen is supported.
5071
 
dlopen_support=$enable_dlopen
5072
 
 
5073
 
# Whether dlopen of programs is supported.
5074
 
dlopen_self=$enable_dlopen_self
5075
 
 
5076
 
# Whether dlopen of statically linked programs is supported.
5077
 
dlopen_self_static=$enable_dlopen_self_static
5078
 
 
5079
 
# Compiler flag to prevent dynamic linking.
5080
 
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5081
 
 
5082
 
# Compiler flag to turn off builtin functions.
5083
 
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5084
 
 
5085
 
# Compiler flag to allow reflexive dlopens.
5086
 
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5087
 
 
5088
 
# Compiler flag to generate shared objects directly from archives.
5089
 
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5090
 
 
5091
 
# Compiler flag to generate thread-safe objects.
5092
 
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5093
 
 
5094
 
# Library versioning type.
5095
 
version_type=$version_type
5096
 
 
5097
 
# Format of library name prefix.
5098
 
libname_spec=$lt_libname_spec
5099
 
 
5100
 
# List of archive names.  First name is the real one, the rest are links.
5101
 
# The last name is the one that the linker finds with -lNAME.
5102
 
library_names_spec=$lt_library_names_spec
5103
 
 
5104
 
# The coded name of the library, if different from the real name.
5105
 
soname_spec=$lt_soname_spec
5106
 
 
5107
 
# Commands used to build and install an old-style archive.
5108
 
RANLIB=$lt_RANLIB
5109
 
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5110
 
old_postinstall_cmds=$lt_old_postinstall_cmds
5111
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
5112
 
 
5113
 
# Create an old-style archive from a shared archive.
5114
 
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5115
 
 
5116
 
# Create a temporary old-style archive to link instead of a shared archive.
5117
 
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5118
 
 
5119
 
# Commands used to build and install a shared archive.
5120
 
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5121
 
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5122
 
postinstall_cmds=$lt_postinstall_cmds
5123
 
postuninstall_cmds=$lt_postuninstall_cmds
5124
 
 
5125
 
# Commands used to build a loadable module (assumed same as above if empty)
5126
 
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5127
 
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5128
 
 
5129
 
# Commands to strip libraries.
5130
 
old_striplib=$lt_old_striplib
5131
 
striplib=$lt_striplib
5132
 
 
5133
 
# Dependencies to place before the objects being linked to create a
5134
 
# shared library.
5135
 
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5136
 
 
5137
 
# Dependencies to place after the objects being linked to create a
5138
 
# shared library.
5139
 
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5140
 
 
5141
 
# Dependencies to place before the objects being linked to create a
5142
 
# shared library.
5143
 
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5144
 
 
5145
 
# Dependencies to place after the objects being linked to create a
5146
 
# shared library.
5147
 
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5148
 
 
5149
 
# The directories searched by this compiler when creating a shared
5150
 
# library
5151
 
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
5152
 
 
5153
 
# The library search path used internally by the compiler when linking
5154
 
# a shared library.
5155
 
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5156
 
 
5157
 
# Method to check whether dependent libraries are shared objects.
5158
 
deplibs_check_method=$lt_deplibs_check_method
5159
 
 
5160
 
# Command to use when deplibs_check_method == file_magic.
5161
 
file_magic_cmd=$lt_file_magic_cmd
5162
 
 
5163
 
# Flag that allows shared libraries with undefined symbols to be built.
5164
 
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5165
 
 
5166
 
# Flag that forces no undefined symbols.
5167
 
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5168
 
 
5169
 
# Commands used to finish a libtool library installation in a directory.
5170
 
finish_cmds=$lt_finish_cmds
5171
 
 
5172
 
# Same as above, but a single script fragment to be evaled but not shown.
5173
 
finish_eval=$lt_finish_eval
5174
 
 
5175
 
# Take the output of nm and produce a listing of raw symbols and C names.
5176
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5177
 
 
5178
 
# Transform the output of nm in a proper C declaration
5179
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5180
 
 
5181
 
# Transform the output of nm in a C name address pair
5182
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5183
 
 
5184
 
# This is the shared library runtime path variable.
5185
 
runpath_var=$runpath_var
5186
 
 
5187
 
# This is the shared library path variable.
5188
 
shlibpath_var=$shlibpath_var
5189
 
 
5190
 
# Is shlibpath searched before the hard-coded library search path?
5191
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5192
 
 
5193
 
# How to hardcode a shared library path into an executable.
5194
 
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5195
 
 
5196
 
# Whether we should hardcode library paths into libraries.
5197
 
hardcode_into_libs=$hardcode_into_libs
5198
 
 
5199
 
# Flag to hardcode \$libdir into a binary during linking.
5200
 
# This must work even if \$libdir does not exist.
5201
 
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5202
 
 
5203
 
# If ld is used when linking, flag to hardcode \$libdir into
5204
 
# a binary during linking. This must work even if \$libdir does
5205
 
# not exist.
5206
 
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5207
 
 
5208
 
# Whether we need a single -rpath flag with a separated argument.
5209
 
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5210
 
 
5211
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5212
 
# resulting binary.
5213
 
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5214
 
 
5215
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5216
 
# resulting binary.
5217
 
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5218
 
 
5219
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5220
 
# the resulting binary.
5221
 
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5222
 
 
5223
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
5224
 
# and all subsequent libraries and executables linked against it.
5225
 
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5226
 
 
5227
 
# Variables whose values should be saved in libtool wrapper scripts and
5228
 
# restored at relink time.
5229
 
variables_saved_for_relink="$variables_saved_for_relink"
5230
 
 
5231
 
# Whether libtool must link a program against all its dependency libraries.
5232
 
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5233
 
 
5234
 
# Compile-time system search path for libraries
5235
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5236
 
 
5237
 
# Run-time system search path for libraries
5238
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5239
 
 
5240
 
# Fix the shell variable \$srcfile for the compiler.
5241
 
fix_srcfile_path=$lt_fix_srcfile_path
5242
 
 
5243
 
# Set to yes if exported symbols are required.
5244
 
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5245
 
 
5246
 
# The commands to list exported symbols.
5247
 
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5248
 
 
5249
 
# The commands to extract the exported symbol list from a shared archive.
5250
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
5251
 
 
5252
 
# Symbols that should not be listed in the preloaded symbols.
5253
 
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5254
 
 
5255
 
# Symbols that must always be exported.
5256
 
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5257
 
 
5258
 
ifelse([$1],[],
5259
 
[# ### END LIBTOOL CONFIG],
5260
 
[# ### END LIBTOOL TAG CONFIG: $tagname])
5261
 
 
5262
 
__EOF__
5263
 
 
5264
 
ifelse([$1],[], [
5265
 
  case $host_os in
5266
 
  aix3*)
5267
 
    cat <<\EOF >> "$cfgfile"
5268
 
 
5269
 
# AIX sometimes has problems with the GCC collect2 program.  For some
5270
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
5271
 
# vanish in a puff of smoke.
5272
 
if test "X${COLLECT_NAMES+set}" != Xset; then
5273
 
  COLLECT_NAMES=
5274
 
  export COLLECT_NAMES
5275
 
fi
5276
 
EOF
5277
 
    ;;
5278
 
  esac
5279
 
 
5280
 
  # We use sed instead of cat because bash on DJGPP gets confused if
5281
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
5282
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
5283
 
  # is reportedly fixed, but why not run on old versions too?
5284
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5285
 
 
5286
 
  mv -f "$cfgfile" "$ofile" || \
5287
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5288
 
  chmod +x "$ofile"
5289
 
])
5290
 
else
5291
 
  # If there is no Makefile yet, we rely on a make rule to execute
5292
 
  # `config.status --recheck' to rerun these tests and create the
5293
 
  # libtool script then.
5294
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5295
 
  if test -f "$ltmain_in"; then
5296
 
    test -f Makefile && make "$ltmain"
5297
 
  fi
5298
 
fi
5299
 
])# AC_LIBTOOL_CONFIG
5300
 
 
5301
 
 
5302
 
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5303
 
# -------------------------------------------
5304
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5305
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5306
 
 
5307
 
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5308
 
 
5309
 
if test "$GCC" = yes; then
5310
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5311
 
 
5312
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5313
 
    lt_cv_prog_compiler_rtti_exceptions,
5314
 
    [-fno-rtti -fno-exceptions], [],
5315
 
    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5316
 
fi
5317
 
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5318
 
 
5319
 
 
5320
 
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5321
 
# ---------------------------------
5322
 
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5323
 
[AC_REQUIRE([AC_CANONICAL_HOST])
5324
 
AC_REQUIRE([LT_AC_PROG_SED])
5325
 
AC_REQUIRE([AC_PROG_NM])
5326
 
AC_REQUIRE([AC_OBJEXT])
5327
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
5328
 
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5329
 
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5330
 
[
5331
 
# These are sane defaults that work on at least a few old systems.
5332
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5333
 
 
5334
 
# Character class describing NM global symbol codes.
5335
 
symcode='[[BCDEGRST]]'
5336
 
 
5337
 
# Regexp to match symbols that can be accessed directly from C.
5338
 
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5339
 
 
5340
 
# Transform an extracted symbol line into a proper C declaration
5341
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5342
 
 
5343
 
# Transform an extracted symbol line into symbol name and symbol address
5344
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5345
 
 
5346
 
# Define system-specific variables.
5347
 
case $host_os in
5348
 
aix*)
5349
 
  symcode='[[BCDT]]'
5350
 
  ;;
5351
 
cygwin* | mingw* | pw32*)
5352
 
  symcode='[[ABCDGISTW]]'
5353
 
  ;;
5354
 
hpux*) # Its linker distinguishes data from code symbols
5355
 
  if test "$host_cpu" = ia64; then
5356
 
    symcode='[[ABCDEGRST]]'
5357
 
  fi
5358
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5359
 
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5360
 
  ;;
5361
 
linux* | k*bsd*-gnu)
5362
 
  if test "$host_cpu" = ia64; then
5363
 
    symcode='[[ABCDGIRSTW]]'
5364
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5365
 
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5366
 
  fi
5367
 
  ;;
5368
 
irix* | nonstopux*)
5369
 
  symcode='[[BCDEGRST]]'
5370
 
  ;;
5371
 
osf*)
5372
 
  symcode='[[BCDEGQRST]]'
5373
 
  ;;
5374
 
solaris*)
5375
 
  symcode='[[BDRT]]'
5376
 
  ;;
5377
 
sco3.2v5*)
5378
 
  symcode='[[DT]]'
5379
 
  ;;
5380
 
sysv4.2uw2*)
5381
 
  symcode='[[DT]]'
5382
 
  ;;
5383
 
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5384
 
  symcode='[[ABDT]]'
5385
 
  ;;
5386
 
sysv4)
5387
 
  symcode='[[DFNSTU]]'
5388
 
  ;;
5389
 
esac
5390
 
 
5391
 
# Handle CRLF in mingw tool chain
5392
 
opt_cr=
5393
 
case $build_os in
5394
 
mingw*)
5395
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5396
 
  ;;
5397
 
esac
5398
 
 
5399
 
# If we're using GNU nm, then use its standard symbol codes.
5400
 
case `$NM -V 2>&1` in
5401
 
*GNU* | *'with BFD'*)
5402
 
  symcode='[[ABCDGIRSTW]]' ;;
5403
 
esac
5404
 
 
5405
 
# Try without a prefix undercore, then with it.
5406
 
for ac_symprfx in "" "_"; do
5407
 
 
5408
 
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5409
 
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5410
 
 
5411
 
  # Write the raw and C identifiers.
5412
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5413
 
 
5414
 
  # Check to see that the pipe works correctly.
5415
 
  pipe_works=no
5416
 
 
5417
 
  rm -f conftest*
5418
 
  cat > conftest.$ac_ext <<EOF
5419
 
#ifdef __cplusplus
5420
 
extern "C" {
5421
 
#endif
5422
 
char nm_test_var;
5423
 
void nm_test_func(){}
5424
 
#ifdef __cplusplus
5425
 
}
5426
 
#endif
5427
 
int main(){nm_test_var='a';nm_test_func();return(0);}
5428
 
EOF
5429
 
 
5430
 
  if AC_TRY_EVAL(ac_compile); then
5431
 
    # Now try to grab the symbols.
5432
 
    nlist=conftest.nm
5433
 
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5434
 
      # Try sorting and uniquifying the output.
5435
 
      if sort "$nlist" | uniq > "$nlist"T; then
5436
 
        mv -f "$nlist"T "$nlist"
5437
 
      else
5438
 
        rm -f "$nlist"T
5439
 
      fi
5440
 
 
5441
 
      # Make sure that we snagged all the symbols we need.
5442
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5443
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
5444
 
          cat <<EOF > conftest.$ac_ext
5445
 
#ifdef __cplusplus
5446
 
extern "C" {
5447
 
#endif
5448
 
 
5449
 
EOF
5450
 
          # Now generate the symbol file.
5451
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5452
 
 
5453
 
          cat <<EOF >> conftest.$ac_ext
5454
 
#if defined (__STDC__) && __STDC__
5455
 
# define lt_ptr_t void *
5456
 
#else
5457
 
# define lt_ptr_t char *
5458
 
# define const
5459
 
#endif
5460
 
 
5461
 
/* The mapping between symbol names and symbols. */
5462
 
const struct {
5463
 
  const char *name;
5464
 
  lt_ptr_t address;
5465
 
}
5466
 
lt_preloaded_symbols[[]] =
5467
 
{
5468
 
EOF
5469
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5470
 
          cat <<\EOF >> conftest.$ac_ext
5471
 
  {0, (lt_ptr_t) 0}
5472
 
};
5473
 
 
5474
 
#ifdef __cplusplus
5475
 
}
5476
 
#endif
5477
 
EOF
5478
 
          # Now try linking the two files.
5479
 
          mv conftest.$ac_objext conftstm.$ac_objext
5480
 
          lt_save_LIBS="$LIBS"
5481
 
          lt_save_CFLAGS="$CFLAGS"
5482
 
          LIBS="conftstm.$ac_objext"
5483
 
          CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5484
 
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5485
 
            pipe_works=yes
5486
 
          fi
5487
 
          LIBS="$lt_save_LIBS"
5488
 
          CFLAGS="$lt_save_CFLAGS"
5489
 
        else
5490
 
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5491
 
        fi
5492
 
      else
5493
 
        echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5494
 
      fi
5495
 
    else
5496
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5497
 
    fi
5498
 
  else
5499
 
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5500
 
    cat conftest.$ac_ext >&5
5501
 
  fi
5502
 
  rm -rf conftest* conftst*
5503
 
 
5504
 
  # Do not use the global_symbol_pipe unless it works.
5505
 
  if test "$pipe_works" = yes; then
5506
 
    break
5507
 
  else
5508
 
    lt_cv_sys_global_symbol_pipe=
5509
 
  fi
5510
 
done
5511
 
])
5512
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5513
 
  lt_cv_sys_global_symbol_to_cdecl=
5514
 
fi
5515
 
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5516
 
  AC_MSG_RESULT(failed)
5517
 
else
5518
 
  AC_MSG_RESULT(ok)
5519
 
fi
5520
 
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5521
 
 
5522
 
 
5523
 
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5524
 
# ---------------------------------------
5525
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5526
 
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5527
 
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5528
 
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
5529
 
 
5530
 
AC_MSG_CHECKING([for $compiler option to produce PIC])
5531
 
 ifelse([$1],[CXX],[
5532
 
  # C++ specific cases for pic, static, wl, etc.
5533
 
  if test "$GXX" = yes; then
5534
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5535
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5536
 
 
5537
 
    case $host_os in
5538
 
    aix*)
5539
 
      # All AIX code is PIC.
5540
 
      if test "$host_cpu" = ia64; then
5541
 
        # AIX 5 now supports IA64 processor
5542
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5543
 
      fi
5544
 
      ;;
5545
 
    amigaos*)
5546
 
      # FIXME: we need at least 68020 code to build shared libraries, but
5547
 
      # adding the `-m68020' flag to GCC prevents building anything better,
5548
 
      # like `-m68040'.
5549
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5550
 
      ;;
5551
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5552
 
      # PIC is the default for these OSes.
5553
 
      ;;
5554
 
    mingw* | cygwin* | os2* | pw32*)
5555
 
      # This hack is so that the source file can tell whether it is being
5556
 
      # built for inclusion in a dll (and should export symbols for example).
5557
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5558
 
      # (--disable-auto-import) libraries
5559
 
      m4_if([$1], [GCJ], [],
5560
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5561
 
      ;;
5562
 
    darwin* | rhapsody*)
5563
 
      # PIC is the default on this platform
5564
 
      # Common symbols not allowed in MH_DYLIB files
5565
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5566
 
      ;;
5567
 
    *djgpp*)
5568
 
      # DJGPP does not support shared libraries at all
5569
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5570
 
      ;;
5571
 
    interix[[3-9]]*)
5572
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5573
 
      # Instead, we relocate shared libraries at runtime.
5574
 
      ;;
5575
 
    sysv4*MP*)
5576
 
      if test -d /usr/nec; then
5577
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5578
 
      fi
5579
 
      ;;
5580
 
    hpux*)
5581
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5582
 
      # not for PA HP-UX.
5583
 
      case $host_cpu in
5584
 
      hppa*64*|ia64*)
5585
 
        ;;
5586
 
      *)
5587
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5588
 
        ;;
5589
 
      esac
5590
 
      ;;
5591
 
    *)
5592
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5593
 
      ;;
5594
 
    esac
5595
 
  else
5596
 
    case $host_os in
5597
 
      aix[[4-9]]*)
5598
 
        # All AIX code is PIC.
5599
 
        if test "$host_cpu" = ia64; then
5600
 
          # AIX 5 now supports IA64 processor
5601
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5602
 
        else
5603
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5604
 
        fi
5605
 
        ;;
5606
 
      chorus*)
5607
 
        case $cc_basename in
5608
 
        cxch68*)
5609
 
          # Green Hills C++ Compiler
5610
 
          # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
5611
 
          ;;
5612
 
        esac
5613
 
        ;;
5614
 
       darwin*)
5615
 
         # PIC is the default on this platform
5616
 
         # Common symbols not allowed in MH_DYLIB files
5617
 
         case $cc_basename in
5618
 
           xlc*)
5619
 
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5620
 
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5621
 
           ;;
5622
 
         esac
5623
 
       ;;
5624
 
      dgux*)
5625
 
        case $cc_basename in
5626
 
          ec++*)
5627
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5628
 
            ;;
5629
 
          ghcx*)
5630
 
            # Green Hills C++ Compiler
5631
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5632
 
            ;;
5633
 
          *)
5634
 
            ;;
5635
 
        esac
5636
 
        ;;
5637
 
      freebsd* | dragonfly*)
5638
 
        # FreeBSD uses GNU C++
5639
 
        ;;
5640
 
      hpux9* | hpux10* | hpux11*)
5641
 
        case $cc_basename in
5642
 
          CC*)
5643
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5644
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5645
 
            if test "$host_cpu" != ia64; then
5646
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5647
 
            fi
5648
 
            ;;
5649
 
          aCC*)
5650
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5651
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5652
 
            case $host_cpu in
5653
 
            hppa*64*|ia64*)
5654
 
              # +Z the default
5655
 
              ;;
5656
 
            *)
5657
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5658
 
              ;;
5659
 
            esac
5660
 
            ;;
5661
 
          *)
5662
 
            ;;
5663
 
        esac
5664
 
        ;;
5665
 
      interix*)
5666
 
        # This is c89, which is MS Visual C++ (no shared libs)
5667
 
        # Anyone wants to do a port?
5668
 
        ;;
5669
 
      irix5* | irix6* | nonstopux*)
5670
 
        case $cc_basename in
5671
 
          CC*)
5672
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5673
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5674
 
            # CC pic flag -KPIC is the default.
5675
 
            ;;
5676
 
          *)
5677
 
            ;;
5678
 
        esac
5679
 
        ;;
5680
 
      linux* | k*bsd*-gnu)
5681
 
        case $cc_basename in
5682
 
          KCC*)
5683
 
            # KAI C++ Compiler
5684
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5685
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5686
 
            ;;
5687
 
          icpc* | ecpc*)
5688
 
            # Intel C++
5689
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5690
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5691
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5692
 
            ;;
5693
 
          pgCC* | pgcpp*)
5694
 
            # Portland Group C++ compiler.
5695
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5696
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5697
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5698
 
            ;;
5699
 
          cxx*)
5700
 
            # Compaq C++
5701
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
5702
 
            # Linux and Compaq Tru64 Unix objects are PIC.
5703
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5704
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5705
 
            ;;
5706
 
          *)
5707
 
            case `$CC -V 2>&1 | sed 5q` in
5708
 
            *Sun\ C*)
5709
 
              # Sun C++ 5.9
5710
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5711
 
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5712
 
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5713
 
              ;;
5714
 
            esac
5715
 
            ;;
5716
 
        esac
5717
 
        ;;
5718
 
      lynxos*)
5719
 
        ;;
5720
 
      m88k*)
5721
 
        ;;
5722
 
      mvs*)
5723
 
        case $cc_basename in
5724
 
          cxx*)
5725
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5726
 
            ;;
5727
 
          *)
5728
 
            ;;
5729
 
        esac
5730
 
        ;;
5731
 
      netbsd* | netbsdelf*-gnu)
5732
 
        ;;
5733
 
      osf3* | osf4* | osf5*)
5734
 
        case $cc_basename in
5735
 
          KCC*)
5736
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5737
 
            ;;
5738
 
          RCC*)
5739
 
            # Rational C++ 2.4.1
5740
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5741
 
            ;;
5742
 
          cxx*)
5743
 
            # Digital/Compaq C++
5744
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5745
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
5746
 
            # Linux and Compaq Tru64 Unix objects are PIC.
5747
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5748
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5749
 
            ;;
5750
 
          *)
5751
 
            ;;
5752
 
        esac
5753
 
        ;;
5754
 
      psos*)
5755
 
        ;;
5756
 
      solaris*)
5757
 
        case $cc_basename in
5758
 
          CC*)
5759
 
            # Sun C++ 4.2, 5.x and Centerline C++
5760
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5761
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5762
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5763
 
            ;;
5764
 
          gcx*)
5765
 
            # Green Hills C++ Compiler
5766
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5767
 
            ;;
5768
 
          *)
5769
 
            ;;
5770
 
        esac
5771
 
        ;;
5772
 
      sunos4*)
5773
 
        case $cc_basename in
5774
 
          CC*)
5775
 
            # Sun C++ 4.x
5776
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5777
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5778
 
            ;;
5779
 
          lcc*)
5780
 
            # Lucid
5781
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5782
 
            ;;
5783
 
          *)
5784
 
            ;;
5785
 
        esac
5786
 
        ;;
5787
 
      tandem*)
5788
 
        case $cc_basename in
5789
 
          NCC*)
5790
 
            # NonStop-UX NCC 3.20
5791
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5792
 
            ;;
5793
 
          *)
5794
 
            ;;
5795
 
        esac
5796
 
        ;;
5797
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5798
 
        case $cc_basename in
5799
 
          CC*)
5800
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5801
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5802
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5803
 
            ;;
5804
 
        esac
5805
 
        ;;
5806
 
      vxworks*)
5807
 
        ;;
5808
 
      *)
5809
 
        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5810
 
        ;;
5811
 
    esac
5812
 
  fi
5813
 
],
5814
 
[
5815
 
  if test "$GCC" = yes; then
5816
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5817
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5818
 
 
5819
 
    case $host_os in
5820
 
      aix*)
5821
 
      # All AIX code is PIC.
5822
 
      if test "$host_cpu" = ia64; then
5823
 
        # AIX 5 now supports IA64 processor
5824
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5825
 
      fi
5826
 
      ;;
5827
 
 
5828
 
    amigaos*)
5829
 
      # FIXME: we need at least 68020 code to build shared libraries, but
5830
 
      # adding the `-m68020' flag to GCC prevents building anything better,
5831
 
      # like `-m68040'.
5832
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5833
 
      ;;
5834
 
 
5835
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5836
 
      # PIC is the default for these OSes.
5837
 
      ;;
5838
 
 
5839
 
    mingw* | cygwin* | pw32* | os2*)
5840
 
      # This hack is so that the source file can tell whether it is being
5841
 
      # built for inclusion in a dll (and should export symbols for example).
5842
 
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5843
 
      # (--disable-auto-import) libraries
5844
 
      m4_if([$1], [GCJ], [],
5845
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5846
 
      ;;
5847
 
 
5848
 
    darwin* | rhapsody*)
5849
 
      # PIC is the default on this platform
5850
 
      # Common symbols not allowed in MH_DYLIB files
5851
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5852
 
      ;;
5853
 
 
5854
 
    interix[[3-9]]*)
5855
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5856
 
      # Instead, we relocate shared libraries at runtime.
5857
 
      ;;
5858
 
 
5859
 
    msdosdjgpp*)
5860
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
5861
 
      # on systems that don't support them.
5862
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5863
 
      enable_shared=no
5864
 
      ;;
5865
 
 
5866
 
    sysv4*MP*)
5867
 
      if test -d /usr/nec; then
5868
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5869
 
      fi
5870
 
      ;;
5871
 
 
5872
 
    hpux*)
5873
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5874
 
      # not for PA HP-UX.
5875
 
      case $host_cpu in
5876
 
      hppa*64*|ia64*)
5877
 
        # +Z the default
5878
 
        ;;
5879
 
      *)
5880
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5881
 
        ;;
5882
 
      esac
5883
 
      ;;
5884
 
 
5885
 
    *)
5886
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5887
 
      ;;
5888
 
    esac
5889
 
  else
5890
 
    # PORTME Check for flag to pass linker flags through the system compiler.
5891
 
    case $host_os in
5892
 
    aix*)
5893
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5894
 
      if test "$host_cpu" = ia64; then
5895
 
        # AIX 5 now supports IA64 processor
5896
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5897
 
      else
5898
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5899
 
      fi
5900
 
      ;;
5901
 
      darwin*)
5902
 
        # PIC is the default on this platform
5903
 
        # Common symbols not allowed in MH_DYLIB files
5904
 
       case $cc_basename in
5905
 
         xlc*)
5906
 
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5907
 
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5908
 
         ;;
5909
 
       esac
5910
 
       ;;
5911
 
 
5912
 
    mingw* | cygwin* | pw32* | os2*)
5913
 
      # This hack is so that the source file can tell whether it is being
5914
 
      # built for inclusion in a dll (and should export symbols for example).
5915
 
      m4_if([$1], [GCJ], [],
5916
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5917
 
      ;;
5918
 
 
5919
 
    hpux9* | hpux10* | hpux11*)
5920
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5921
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5922
 
      # not for PA HP-UX.
5923
 
      case $host_cpu in
5924
 
      hppa*64*|ia64*)
5925
 
        # +Z the default
5926
 
        ;;
5927
 
      *)
5928
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5929
 
        ;;
5930
 
      esac
5931
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
5932
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5933
 
      ;;
5934
 
 
5935
 
    irix5* | irix6* | nonstopux*)
5936
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5937
 
      # PIC (with -KPIC) is the default.
5938
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5939
 
      ;;
5940
 
 
5941
 
    newsos6)
5942
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5943
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5944
 
      ;;
5945
 
 
5946
 
    linux* | k*bsd*-gnu)
5947
 
      case $cc_basename in
5948
 
      icc* | ecc*)
5949
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5950
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5951
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5952
 
        ;;
5953
 
      pgcc* | pgf77* | pgf90* | pgf95*)
5954
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
5955
 
        # which looks to be a dead project)
5956
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5957
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5958
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5959
 
        ;;
5960
 
      ccc*)
5961
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5962
 
        # All Alpha code is PIC.
5963
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5964
 
        ;;
5965
 
      *)
5966
 
        case `$CC -V 2>&1 | sed 5q` in
5967
 
        *Sun\ C*)
5968
 
          # Sun C 5.9
5969
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5970
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5971
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5972
 
          ;;
5973
 
        *Sun\ F*)
5974
 
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
5975
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5976
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5977
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
5978
 
          ;;
5979
 
        esac
5980
 
        ;;
5981
 
      esac
5982
 
      ;;
5983
 
 
5984
 
    osf3* | osf4* | osf5*)
5985
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5986
 
      # All OSF/1 code is PIC.
5987
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5988
 
      ;;
5989
 
 
5990
 
    rdos*)
5991
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5992
 
      ;;
5993
 
 
5994
 
    solaris*)
5995
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5996
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5997
 
      case $cc_basename in
5998
 
      f77* | f90* | f95*)
5999
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6000
 
      *)
6001
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6002
 
      esac
6003
 
      ;;
6004
 
 
6005
 
    sunos4*)
6006
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6007
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6008
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6009
 
      ;;
6010
 
 
6011
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
6012
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6013
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6014
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6015
 
      ;;
6016
 
 
6017
 
    sysv4*MP*)
6018
 
      if test -d /usr/nec ;then
6019
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6020
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6021
 
      fi
6022
 
      ;;
6023
 
 
6024
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6025
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6026
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6027
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6028
 
      ;;
6029
 
 
6030
 
    unicos*)
6031
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6032
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6033
 
      ;;
6034
 
 
6035
 
    uts4*)
6036
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6037
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6038
 
      ;;
6039
 
 
6040
 
    *)
6041
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6042
 
      ;;
6043
 
    esac
6044
 
  fi
6045
 
])
6046
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
6047
 
 
6048
 
#
6049
 
# Check to make sure the PIC flag actually works.
6050
 
#
6051
 
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6052
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6053
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
6054
 
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6055
 
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6056
 
     "" | " "*) ;;
6057
 
     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6058
 
     esac],
6059
 
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6060
 
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6061
 
fi
6062
 
case $host_os in
6063
 
  # For platforms which do not support PIC, -DPIC is meaningless:
6064
 
  *djgpp*)
6065
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6066
 
    ;;
6067
 
  *)
6068
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6069
 
    ;;
6070
 
esac
6071
 
 
6072
 
#
6073
 
# Check to make sure the static flag actually works.
6074
 
#
6075
 
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6076
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6077
 
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6078
 
  $lt_tmp_static_flag,
6079
 
  [],
6080
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6081
 
])
6082
 
 
6083
 
 
6084
 
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6085
 
# ------------------------------------
6086
 
# See if the linker supports building shared libraries.
6087
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6088
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
6089
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6090
 
ifelse([$1],[CXX],[
6091
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6092
 
  case $host_os in
6093
 
  aix[[4-9]]*)
6094
 
    # If we're using GNU nm, then we don't want the "-C" option.
6095
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
6096
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6097
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6098
 
    else
6099
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6100
 
    fi
6101
 
    ;;
6102
 
  pw32*)
6103
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6104
 
  ;;
6105
 
  cygwin* | mingw*)
6106
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
6107
 
  ;;
6108
 
  linux* | k*bsd*-gnu)
6109
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
6110
 
  ;;
6111
 
  *)
6112
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6113
 
  ;;
6114
 
  esac
6115
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6116
 
],[
6117
 
  runpath_var=
6118
 
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6119
 
  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6120
 
  _LT_AC_TAGVAR(archive_cmds, $1)=
6121
 
  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6122
 
  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6123
 
  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6124
 
  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6125
 
  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6126
 
  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6127
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6128
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6129
 
  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6130
 
  _LT_AC_TAGVAR(hardcode_direct, $1)=no
6131
 
  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6132
 
  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6133
 
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6134
 
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
6135
 
  _LT_AC_TAGVAR(module_cmds, $1)=
6136
 
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
6137
 
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
6138
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6139
 
  # include_expsyms should be a list of space-separated symbols to be *always*
6140
 
  # included in the symbol list
6141
 
  _LT_AC_TAGVAR(include_expsyms, $1)=
6142
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
6143
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6144
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6145
 
  # as well as any symbol that contains `d'.
6146
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6147
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6148
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
6149
 
  # the symbol is explicitly referenced.  Since portable code cannot
6150
 
  # rely on this symbol name, it's probably fine to never include it in
6151
 
  # preloaded symbol tables.
6152
 
  # Exclude shared library initialization/finalization symbols.
6153
 
dnl Note also adjust exclude_expsyms for C++ above.
6154
 
  extract_expsyms_cmds=
6155
 
  # Just being paranoid about ensuring that cc_basename is set.
6156
 
  _LT_CC_BASENAME([$compiler])
6157
 
  case $host_os in
6158
 
  cygwin* | mingw* | pw32*)
6159
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6160
 
    # When not using gcc, we currently assume that we are using
6161
 
    # Microsoft Visual C++.
6162
 
    if test "$GCC" != yes; then
6163
 
      with_gnu_ld=no
6164
 
    fi
6165
 
    ;;
6166
 
  interix*)
6167
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
6168
 
    with_gnu_ld=yes
6169
 
    ;;
6170
 
  openbsd*)
6171
 
    with_gnu_ld=no
6172
 
    ;;
6173
 
  esac
6174
 
 
6175
 
  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6176
 
  if test "$with_gnu_ld" = yes; then
6177
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
6178
 
    wlarc='${wl}'
6179
 
 
6180
 
    # Set some defaults for GNU ld with shared library support. These
6181
 
    # are reset later if shared libraries are not supported. Putting them
6182
 
    # here allows them to be overridden if necessary.
6183
 
    runpath_var=LD_RUN_PATH
6184
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6185
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6186
 
    # ancient GNU ld didn't support --whole-archive et. al.
6187
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6188
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6189
 
      else
6190
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6191
 
    fi
6192
 
    supports_anon_versioning=no
6193
 
    case `$LD -v 2>/dev/null` in
6194
 
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6195
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6196
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6197
 
      *\ 2.11.*) ;; # other 2.11 versions
6198
 
      *) supports_anon_versioning=yes ;;
6199
 
    esac
6200
 
 
6201
 
    # See if GNU ld supports shared libraries.
6202
 
    case $host_os in
6203
 
    aix[[3-9]]*)
6204
 
      # On AIX/PPC, the GNU linker is very broken
6205
 
      if test "$host_cpu" != ia64; then
6206
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6207
 
        cat <<EOF 1>&2
6208
 
 
6209
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6210
 
*** to be unable to reliably create shared libraries on AIX.
6211
 
*** Therefore, libtool is disabling shared libraries support.  If you
6212
 
*** really care for shared libraries, you may want to modify your PATH
6213
 
*** so that a non-GNU linker is found, and then restart.
6214
 
 
6215
 
EOF
6216
 
      fi
6217
 
      ;;
6218
 
 
6219
 
    amigaos*)
6220
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6221
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6222
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6223
 
 
6224
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6225
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
6226
 
      # to version 4, is to share data among multiple programs linked
6227
 
      # with the same dynamic library.  Since this doesn't match the
6228
 
      # behavior of shared libraries on other platforms, we can't use
6229
 
      # them.
6230
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6231
 
      ;;
6232
 
 
6233
 
    beos*)
6234
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6235
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6236
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6237
 
        # support --undefined.  This deserves some investigation.  FIXME
6238
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6239
 
      else
6240
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6241
 
      fi
6242
 
      ;;
6243
 
 
6244
 
    cygwin* | mingw* | pw32*)
6245
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6246
 
      # as there is no search path for DLLs.
6247
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6248
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6249
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
6250
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6251
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
6252
 
 
6253
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6254
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6255
 
        # If the export-symbols file already is a .def file (1st line
6256
 
        # is EXPORTS), use it as is; otherwise, prepend...
6257
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6258
 
          cp $export_symbols $output_objdir/$soname.def;
6259
 
        else
6260
 
          echo EXPORTS > $output_objdir/$soname.def;
6261
 
          cat $export_symbols >> $output_objdir/$soname.def;
6262
 
        fi~
6263
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6264
 
      else
6265
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6266
 
      fi
6267
 
      ;;
6268
 
 
6269
 
    interix[[3-9]]*)
6270
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6271
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6272
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6273
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6274
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6275
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
6276
 
      # default) and relocated if they conflict, which is a slow very memory
6277
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
6278
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6279
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6280
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6281
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6282
 
      ;;
6283
 
 
6284
 
    gnu* | linux* | k*bsd*-gnu)
6285
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6286
 
        tmp_addflag=
6287
 
        case $cc_basename,$host_cpu in
6288
 
        pgcc*)                          # Portland Group C compiler
6289
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6290
 
          tmp_addflag=' $pic_flag'
6291
 
          ;;
6292
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6293
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6294
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
6295
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
6296
 
          tmp_addflag=' -i_dynamic' ;;
6297
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6298
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
6299
 
        ifc* | ifort*)                  # Intel Fortran compiler
6300
 
          tmp_addflag=' -nofor_main' ;;
6301
 
        esac
6302
 
        case `$CC -V 2>&1 | sed 5q` in
6303
 
        *Sun\ C*)                       # Sun C 5.9
6304
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6305
 
          tmp_sharedflag='-G' ;;
6306
 
        *Sun\ F*)                       # Sun Fortran 8.3
6307
 
          tmp_sharedflag='-G' ;;
6308
 
        *)
6309
 
          tmp_sharedflag='-shared' ;;
6310
 
        esac
6311
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6312
 
 
6313
 
        if test $supports_anon_versioning = yes; then
6314
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6315
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6316
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
6317
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6318
 
        fi
6319
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
6320
 
      else
6321
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6322
 
      fi
6323
 
      ;;
6324
 
 
6325
 
    netbsd* | netbsdelf*-gnu)
6326
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6327
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6328
 
        wlarc=
6329
 
      else
6330
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6331
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6332
 
      fi
6333
 
      ;;
6334
 
 
6335
 
    solaris*)
6336
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6337
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6338
 
        cat <<EOF 1>&2
6339
 
 
6340
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6341
 
*** create shared libraries on Solaris systems.  Therefore, libtool
6342
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
6343
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
6344
 
*** your PATH or compiler configuration so that the native linker is
6345
 
*** used, and then restart.
6346
 
 
6347
 
EOF
6348
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6349
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6350
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6351
 
      else
6352
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6353
 
      fi
6354
 
      ;;
6355
 
 
6356
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6357
 
      case `$LD -v 2>&1` in
6358
 
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
6359
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6360
 
        cat <<_LT_EOF 1>&2
6361
 
 
6362
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6363
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
6364
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
6365
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6366
 
*** your PATH or compiler configuration so that the native linker is
6367
 
*** used, and then restart.
6368
 
 
6369
 
_LT_EOF
6370
 
        ;;
6371
 
        *)
6372
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6373
 
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6374
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6375
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6376
 
          else
6377
 
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
6378
 
          fi
6379
 
        ;;
6380
 
      esac
6381
 
      ;;
6382
 
 
6383
 
    sunos4*)
6384
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6385
 
      wlarc=
6386
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6387
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6388
 
      ;;
6389
 
 
6390
 
    *)
6391
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6392
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6393
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6394
 
      else
6395
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6396
 
      fi
6397
 
      ;;
6398
 
    esac
6399
 
 
6400
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
6401
 
      runpath_var=
6402
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6403
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6404
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6405
 
    fi
6406
 
  else
6407
 
    # PORTME fill in a description of your system's linker (not GNU ld)
6408
 
    case $host_os in
6409
 
    aix3*)
6410
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6411
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6412
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6413
 
      # Note: this linker hardcodes the directories in LIBPATH if there
6414
 
      # are no directories specified by -L.
6415
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6416
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6417
 
        # Neither direct hardcoding nor static linking is supported with a
6418
 
        # broken collect2.
6419
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6420
 
      fi
6421
 
      ;;
6422
 
 
6423
 
    aix[[4-9]]*)
6424
 
      if test "$host_cpu" = ia64; then
6425
 
        # On IA64, the linker does run time linking by default, so we don't
6426
 
        # have to do anything special.
6427
 
        aix_use_runtimelinking=no
6428
 
        exp_sym_flag='-Bexport'
6429
 
        no_entry_flag=""
6430
 
      else
6431
 
        # If we're using GNU nm, then we don't want the "-C" option.
6432
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
6433
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6434
 
          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6435
 
        else
6436
 
          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6437
 
        fi
6438
 
        aix_use_runtimelinking=no
6439
 
 
6440
 
        # Test if we are trying to use run time linking or normal
6441
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6442
 
        # need to do runtime linking.
6443
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6444
 
          for ld_flag in $LDFLAGS; do
6445
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6446
 
            aix_use_runtimelinking=yes
6447
 
            break
6448
 
          fi
6449
 
          done
6450
 
          ;;
6451
 
        esac
6452
 
 
6453
 
        exp_sym_flag='-bexport'
6454
 
        no_entry_flag='-bnoentry'
6455
 
      fi
6456
 
 
6457
 
      # When large executables or shared objects are built, AIX ld can
6458
 
      # have problems creating the table of contents.  If linking a library
6459
 
      # or program results in "error TOC overflow" add -mminimal-toc to
6460
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6461
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6462
 
 
6463
 
      _LT_AC_TAGVAR(archive_cmds, $1)=''
6464
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6465
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6466
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6467
 
 
6468
 
      if test "$GCC" = yes; then
6469
 
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
6470
 
        # We only want to do this on AIX 4.2 and lower, the check
6471
 
        # below for broken collect2 doesn't work under 4.3+
6472
 
          collect2name=`${CC} -print-prog-name=collect2`
6473
 
          if test -f "$collect2name" && \
6474
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
6475
 
          then
6476
 
          # We have reworked collect2
6477
 
          :
6478
 
          else
6479
 
          # We have old collect2
6480
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6481
 
          # It fails to find uninstalled libraries when the uninstalled
6482
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
6483
 
          # to unsupported forces relinking
6484
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6485
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6486
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6487
 
          fi
6488
 
          ;;
6489
 
        esac
6490
 
        shared_flag='-shared'
6491
 
        if test "$aix_use_runtimelinking" = yes; then
6492
 
          shared_flag="$shared_flag "'${wl}-G'
6493
 
        fi
6494
 
      else
6495
 
        # not using gcc
6496
 
        if test "$host_cpu" = ia64; then
6497
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6498
 
        # chokes on -Wl,-G. The following line is correct:
6499
 
          shared_flag='-G'
6500
 
        else
6501
 
          if test "$aix_use_runtimelinking" = yes; then
6502
 
            shared_flag='${wl}-G'
6503
 
          else
6504
 
            shared_flag='${wl}-bM:SRE'
6505
 
          fi
6506
 
        fi
6507
 
      fi
6508
 
 
6509
 
      # It seems that -bexpall does not export symbols beginning with
6510
 
      # underscore (_), so it is better to generate a list of symbols to export.
6511
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6512
 
      if test "$aix_use_runtimelinking" = yes; then
6513
 
        # Warning - without using the other runtime loading flags (-brtl),
6514
 
        # -berok will link without error, but may produce a broken library.
6515
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6516
 
       # Determine the default libpath from the value encoded in an empty executable.
6517
 
       _LT_AC_SYS_LIBPATH_AIX
6518
 
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6519
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6520
 
       else
6521
 
        if test "$host_cpu" = ia64; then
6522
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6523
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6524
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6525
 
        else
6526
 
         # Determine the default libpath from the value encoded in an empty executable.
6527
 
         _LT_AC_SYS_LIBPATH_AIX
6528
 
         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6529
 
          # Warning - without using the other run time loading flags,
6530
 
          # -berok will link without error, but may produce a broken library.
6531
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6532
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6533
 
          # Exported symbols can be pulled into shared objects from archives
6534
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6535
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6536
 
          # This is similar to how AIX traditionally builds its shared libraries.
6537
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6538
 
        fi
6539
 
      fi
6540
 
      ;;
6541
 
 
6542
 
    amigaos*)
6543
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6544
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6545
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6546
 
      # see comment about different semantics on the GNU ld section
6547
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6548
 
      ;;
6549
 
 
6550
 
    bsdi[[45]]*)
6551
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6552
 
      ;;
6553
 
 
6554
 
    cygwin* | mingw* | pw32*)
6555
 
      # When not using gcc, we currently assume that we are using
6556
 
      # Microsoft Visual C++.
6557
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
6558
 
      # no search path for DLLs.
6559
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6560
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6561
 
      # Tell ltmain to make .lib files, not .a files.
6562
 
      libext=lib
6563
 
      # Tell ltmain to make .dll files, not .so files.
6564
 
      shrext_cmds=".dll"
6565
 
      # FIXME: Setting linknames here is a bad hack.
6566
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6567
 
      # The linker will automatically build a .lib file if we build a DLL.
6568
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6569
 
      # FIXME: Should let the user specify the lib program.
6570
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6571
 
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6572
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6573
 
      ;;
6574
 
 
6575
 
    darwin* | rhapsody*)
6576
 
      case $host_os in
6577
 
        rhapsody* | darwin1.[[012]])
6578
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6579
 
         ;;
6580
 
       *) # Darwin 1.3 on
6581
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6582
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6583
 
         else
6584
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
6585
 
             10.[[012]])
6586
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6587
 
               ;;
6588
 
             10.*)
6589
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6590
 
               ;;
6591
 
           esac
6592
 
         fi
6593
 
         ;;
6594
 
      esac
6595
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6596
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6597
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6598
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6599
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6600
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6601
 
    if test "$GCC" = yes ; then
6602
 
        output_verbose_link_cmd='echo'
6603
 
        _LT_AC_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}"
6604
 
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6605
 
        _LT_AC_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}"
6606
 
        _LT_AC_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}"
6607
 
    else
6608
 
      case $cc_basename in
6609
 
        xlc*)
6610
 
         output_verbose_link_cmd='echo'
6611
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
6612
 
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6613
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6614
 
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6615
 
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6616
 
          ;;
6617
 
       *)
6618
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
6619
 
          ;;
6620
 
      esac
6621
 
    fi
6622
 
      ;;
6623
 
 
6624
 
    dgux*)
6625
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6626
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6627
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6628
 
      ;;
6629
 
 
6630
 
    freebsd1*)
6631
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6632
 
      ;;
6633
 
 
6634
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6635
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
6636
 
    # does not break anything, and helps significantly (at the cost of a little
6637
 
    # extra space).
6638
 
    freebsd2.2*)
6639
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6640
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6641
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6642
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6643
 
      ;;
6644
 
 
6645
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6646
 
    freebsd2*)
6647
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6648
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6649
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6650
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6651
 
      ;;
6652
 
 
6653
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6654
 
    freebsd* | dragonfly*)
6655
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6656
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6657
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6658
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6659
 
      ;;
6660
 
 
6661
 
    hpux9*)
6662
 
      if test "$GCC" = yes; then
6663
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6664
 
      else
6665
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6666
 
      fi
6667
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6668
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6669
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6670
 
 
6671
 
      # hardcode_minus_L: Not really in the search PATH,
6672
 
      # but as the default location of the library.
6673
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6674
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6675
 
      ;;
6676
 
 
6677
 
    hpux10*)
6678
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6679
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6680
 
      else
6681
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6682
 
      fi
6683
 
      if test "$with_gnu_ld" = no; then
6684
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6685
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6686
 
 
6687
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6688
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6689
 
 
6690
 
        # hardcode_minus_L: Not really in the search PATH,
6691
 
        # but as the default location of the library.
6692
 
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6693
 
      fi
6694
 
      ;;
6695
 
 
6696
 
    hpux11*)
6697
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6698
 
        case $host_cpu in
6699
 
        hppa*64*)
6700
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6701
 
          ;;
6702
 
        ia64*)
6703
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6704
 
          ;;
6705
 
        *)
6706
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6707
 
          ;;
6708
 
        esac
6709
 
      else
6710
 
        case $host_cpu in
6711
 
        hppa*64*)
6712
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6713
 
          ;;
6714
 
        ia64*)
6715
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6716
 
          ;;
6717
 
        *)
6718
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6719
 
          ;;
6720
 
        esac
6721
 
      fi
6722
 
      if test "$with_gnu_ld" = no; then
6723
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6724
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6725
 
 
6726
 
        case $host_cpu in
6727
 
        hppa*64*|ia64*)
6728
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6729
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
6730
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6731
 
          ;;
6732
 
        *)
6733
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6734
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6735
 
 
6736
 
          # hardcode_minus_L: Not really in the search PATH,
6737
 
          # but as the default location of the library.
6738
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6739
 
          ;;
6740
 
        esac
6741
 
      fi
6742
 
      ;;
6743
 
 
6744
 
    irix5* | irix6* | nonstopux*)
6745
 
      if test "$GCC" = yes; then
6746
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6747
 
      else
6748
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6749
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6750
 
      fi
6751
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6752
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6753
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6754
 
      ;;
6755
 
 
6756
 
    netbsd* | netbsdelf*-gnu)
6757
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6758
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6759
 
      else
6760
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6761
 
      fi
6762
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6763
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6764
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6765
 
      ;;
6766
 
 
6767
 
    newsos6)
6768
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6769
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6770
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6771
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6772
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6773
 
      ;;
6774
 
 
6775
 
    openbsd*)
6776
 
      if test -f /usr/libexec/ld.so; then
6777
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6778
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6779
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6780
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6781
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6782
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6783
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6784
 
        else
6785
 
          case $host_os in
6786
 
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6787
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6788
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6789
 
             ;;
6790
 
           *)
6791
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6792
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6793
 
             ;;
6794
 
          esac
6795
 
        fi
6796
 
      else
6797
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6798
 
      fi
6799
 
      ;;
6800
 
 
6801
 
    os2*)
6802
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6803
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6804
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6805
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6806
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6807
 
      ;;
6808
 
 
6809
 
    osf3*)
6810
 
      if test "$GCC" = yes; then
6811
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6812
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6813
 
      else
6814
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6815
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6816
 
      fi
6817
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6818
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6819
 
      ;;
6820
 
 
6821
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
6822
 
      if test "$GCC" = yes; then
6823
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6824
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6825
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6826
 
      else
6827
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6828
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6829
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6830
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
6831
 
 
6832
 
        # Both c and cxx compiler support -rpath directly
6833
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6834
 
      fi
6835
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6836
 
      ;;
6837
 
 
6838
 
    solaris*)
6839
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6840
 
      if test "$GCC" = yes; then
6841
 
        wlarc='${wl}'
6842
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6843
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6844
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6845
 
      else
6846
 
        wlarc=''
6847
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6848
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6849
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6850
 
      fi
6851
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6852
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6853
 
      case $host_os in
6854
 
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6855
 
      *)
6856
 
        # The compiler driver will combine and reorder linker options,
6857
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
6858
 
        # but is careful enough not to reorder.
6859
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6860
 
        if test "$GCC" = yes; then
6861
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6862
 
        else
6863
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6864
 
        fi
6865
 
        ;;
6866
 
      esac
6867
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6868
 
      ;;
6869
 
 
6870
 
    sunos4*)
6871
 
      if test "x$host_vendor" = xsequent; then
6872
 
        # Use $CC to link under sequent, because it throws in some extra .o
6873
 
        # files that make .init and .fini sections work.
6874
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6875
 
      else
6876
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6877
 
      fi
6878
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6879
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6880
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6881
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6882
 
      ;;
6883
 
 
6884
 
    sysv4)
6885
 
      case $host_vendor in
6886
 
        sni)
6887
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6888
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6889
 
        ;;
6890
 
        siemens)
6891
 
          ## LD is ld it makes a PLAMLIB
6892
 
          ## CC just makes a GrossModule.
6893
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6894
 
          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6895
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
6896
 
        ;;
6897
 
        motorola)
6898
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6899
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6900
 
        ;;
6901
 
      esac
6902
 
      runpath_var='LD_RUN_PATH'
6903
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6904
 
      ;;
6905
 
 
6906
 
    sysv4.3*)
6907
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6908
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6909
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6910
 
      ;;
6911
 
 
6912
 
    sysv4*MP*)
6913
 
      if test -d /usr/nec; then
6914
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6915
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6916
 
        runpath_var=LD_RUN_PATH
6917
 
        hardcode_runpath_var=yes
6918
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6919
 
      fi
6920
 
      ;;
6921
 
 
6922
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6923
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6924
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6925
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6926
 
      runpath_var='LD_RUN_PATH'
6927
 
 
6928
 
      if test "$GCC" = yes; then
6929
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6930
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6931
 
      else
6932
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6933
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6934
 
      fi
6935
 
      ;;
6936
 
 
6937
 
    sysv5* | sco3.2v5* | sco5v6*)
6938
 
      # Note: We can NOT use -z defs as we might desire, because we do not
6939
 
      # link with -lc, and that would cause any symbols used from libc to
6940
 
      # always be unresolved, which means just about no library would
6941
 
      # ever link correctly.  If we're not using GNU ld we use -z text
6942
 
      # though, which does catch some bad symbols but isn't as heavy-handed
6943
 
      # as -z defs.
6944
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6945
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6946
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6947
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6948
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6949
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6950
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6951
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6952
 
      runpath_var='LD_RUN_PATH'
6953
 
 
6954
 
      if test "$GCC" = yes; then
6955
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6956
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6957
 
      else
6958
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6959
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6960
 
      fi
6961
 
      ;;
6962
 
 
6963
 
    uts4*)
6964
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6965
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6966
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6967
 
      ;;
6968
 
 
6969
 
    *)
6970
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6971
 
      ;;
6972
 
    esac
6973
 
  fi
6974
 
])
6975
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6976
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6977
 
 
6978
 
#
6979
 
# Do we need to explicitly link libc?
6980
 
#
6981
 
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6982
 
x|xyes)
6983
 
  # Assume -lc should be added
6984
 
  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6985
 
 
6986
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
6987
 
    case $_LT_AC_TAGVAR(archive_cmds, $1) in
6988
 
    *'~'*)
6989
 
      # FIXME: we may have to deal with multi-command sequences.
6990
 
      ;;
6991
 
    '$CC '*)
6992
 
      # Test whether the compiler implicitly links with -lc since on some
6993
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
6994
 
      # to ld, don't add -lc before -lgcc.
6995
 
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6996
 
      $rm conftest*
6997
 
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6998
 
 
6999
 
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7000
 
        soname=conftest
7001
 
        lib=conftest
7002
 
        libobjs=conftest.$ac_objext
7003
 
        deplibs=
7004
 
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7005
 
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
7006
 
        compiler_flags=-v
7007
 
        linker_flags=-v
7008
 
        verstring=
7009
 
        output_objdir=.
7010
 
        libname=conftest
7011
 
        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7012
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
7013
 
        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
7014
 
        then
7015
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7016
 
        else
7017
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7018
 
        fi
7019
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7020
 
      else
7021
 
        cat conftest.err 1>&5
7022
 
      fi
7023
 
      $rm conftest*
7024
 
      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
7025
 
      ;;
7026
 
    esac
7027
 
  fi
7028
 
  ;;
7029
 
esac
7030
 
])# AC_LIBTOOL_PROG_LD_SHLIBS
7031
 
 
7032
 
 
7033
 
# _LT_AC_FILE_LTDLL_C
7034
 
# -------------------
7035
 
# Be careful that the start marker always follows a newline.
7036
 
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7037
 
# /* ltdll.c starts here */
7038
 
# #define WIN32_LEAN_AND_MEAN
7039
 
# #include <windows.h>
7040
 
# #undef WIN32_LEAN_AND_MEAN
7041
 
# #include <stdio.h>
7042
 
#
7043
 
# #ifndef __CYGWIN__
7044
 
# #  ifdef __CYGWIN32__
7045
 
# #    define __CYGWIN__ __CYGWIN32__
7046
 
# #  endif
7047
 
# #endif
7048
 
#
7049
 
# #ifdef __cplusplus
7050
 
# extern "C" {
7051
 
# #endif
7052
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7053
 
# #ifdef __cplusplus
7054
 
# }
7055
 
# #endif
7056
 
#
7057
 
# #ifdef __CYGWIN__
7058
 
# #include <cygwin/cygwin_dll.h>
7059
 
# DECLARE_CYGWIN_DLL( DllMain );
7060
 
# #endif
7061
 
# HINSTANCE __hDllInstance_base;
7062
 
#
7063
 
# BOOL APIENTRY
7064
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7065
 
# {
7066
 
#   __hDllInstance_base = hInst;
7067
 
#   return TRUE;
7068
 
# }
7069
 
# /* ltdll.c ends here */
7070
 
])# _LT_AC_FILE_LTDLL_C
7071
 
 
7072
 
 
7073
 
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
7074
 
# ---------------------------------
7075
 
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7076
 
 
7077
 
 
7078
 
# old names
7079
 
AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
7080
 
AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
7081
 
AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
7082
 
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7083
 
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7084
 
AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
7085
 
AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
7086
 
 
7087
 
# This is just to silence aclocal about the macro not being used
7088
 
ifelse([AC_DISABLE_FAST_INSTALL])
7089
 
 
7090
 
AC_DEFUN([LT_AC_PROG_GCJ],
7091
 
[AC_CHECK_TOOL(GCJ, gcj, no)
7092
 
  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7093
 
  AC_SUBST(GCJFLAGS)
7094
 
])
7095
 
 
7096
 
AC_DEFUN([LT_AC_PROG_RC],
7097
 
[AC_CHECK_TOOL(RC, windres, no)
7098
 
])
7099
 
 
7100
 
 
7101
 
# Cheap backport of AS_EXECUTABLE_P and required macros
7102
 
# from Autoconf 2.59; we should not use $as_executable_p directly.
7103
 
 
7104
 
# _AS_TEST_PREPARE
7105
 
# ----------------
7106
 
m4_ifndef([_AS_TEST_PREPARE],
7107
 
[m4_defun([_AS_TEST_PREPARE],
7108
 
[if test -x / >/dev/null 2>&1; then
7109
 
  as_executable_p='test -x'
7110
 
else
7111
 
  as_executable_p='test -f'
7112
 
fi
7113
 
])])# _AS_TEST_PREPARE
7114
 
 
7115
 
# AS_EXECUTABLE_P
7116
 
# ---------------
7117
 
# Check whether a file is executable.
7118
 
m4_ifndef([AS_EXECUTABLE_P],
7119
 
[m4_defun([AS_EXECUTABLE_P],
7120
 
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
7121
 
$as_executable_p $1[]dnl
7122
 
])])# AS_EXECUTABLE_P
7123
 
 
7124
 
# NOTE: This macro has been submitted for inclusion into   #
7125
 
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
7126
 
#  a released version of Autoconf we should remove this    #
7127
 
#  macro and use it instead.                               #
7128
 
# LT_AC_PROG_SED
7129
 
# --------------
7130
 
# Check for a fully-functional sed program, that truncates
7131
 
# as few characters as possible.  Prefer GNU sed if found.
7132
 
AC_DEFUN([LT_AC_PROG_SED],
7133
 
[AC_MSG_CHECKING([for a sed that does not truncate output])
7134
 
AC_CACHE_VAL(lt_cv_path_SED,
7135
 
[# Loop through the user's path and test for sed and gsed.
7136
 
# Then use that list of sed's as ones to test for truncation.
7137
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138
 
for as_dir in $PATH
7139
 
do
7140
 
  IFS=$as_save_IFS
7141
 
  test -z "$as_dir" && as_dir=.
7142
 
  for lt_ac_prog in sed gsed; do
7143
 
    for ac_exec_ext in '' $ac_executable_extensions; do
7144
 
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
7145
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7146
 
      fi
7147
 
    done
7148
 
  done
7149
 
done
7150
 
IFS=$as_save_IFS
7151
 
lt_ac_max=0
7152
 
lt_ac_count=0
7153
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7154
 
# along with /bin/sed that truncates output.
7155
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7156
 
  test ! -f $lt_ac_sed && continue
7157
 
  cat /dev/null > conftest.in
7158
 
  lt_ac_count=0
7159
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7160
 
  # Check for GNU sed and select it if it is found.
7161
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7162
 
    lt_cv_path_SED=$lt_ac_sed
7163
 
    break
7164
 
  fi
7165
 
  while true; do
7166
 
    cat conftest.in conftest.in >conftest.tmp
7167
 
    mv conftest.tmp conftest.in
7168
 
    cp conftest.in conftest.nl
7169
 
    echo >>conftest.nl
7170
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7171
 
    cmp -s conftest.out conftest.nl || break
7172
 
    # 10000 chars as input seems more than enough
7173
 
    test $lt_ac_count -gt 10 && break
7174
 
    lt_ac_count=`expr $lt_ac_count + 1`
7175
 
    if test $lt_ac_count -gt $lt_ac_max; then
7176
 
      lt_ac_max=$lt_ac_count
7177
 
      lt_cv_path_SED=$lt_ac_sed
7178
 
    fi
7179
 
  done
7180
 
done
7181
 
])
7182
 
SED=$lt_cv_path_SED
7183
 
AC_SUBST([SED])
7184
 
AC_MSG_RESULT([$SED])
 
553
dnl This file can can be used in projects which are not available under
 
554
dnl the GNU General Public License or the GNU Library General Public
 
555
dnl License but which still want to provide support for the GNU gettext
 
556
dnl functionality.
 
557
dnl Please note that the actual code of the GNU gettext library is covered
 
558
dnl by the GNU Library General Public License, and the rest of the GNU
 
559
dnl gettext package package is covered by the GNU General Public License.
 
560
dnl They are *not* in the public domain.
 
561
 
 
562
dnl Authors:
 
563
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
 
564
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
 
565
 
 
566
AC_PREREQ(2.50)
 
567
 
 
568
AC_DEFUN([AM_NLS],
 
569
[
 
570
  AC_MSG_CHECKING([whether NLS is requested])
 
571
  dnl Default is enabled NLS
 
572
  AC_ARG_ENABLE(nls,
 
573
    [  --disable-nls           do not use Native Language Support],
 
574
    USE_NLS=$enableval, USE_NLS=yes)
 
575
  AC_MSG_RESULT($USE_NLS)
 
576
  AC_SUBST(USE_NLS)
7185
577
])
7186
578
 
7187
579
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
7342
734
fi[]dnl
7343
735
])# PKG_CHECK_MODULES
7344
736
 
7345
 
# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
 
737
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
7346
738
#
7347
739
# This file is free software; the Free Software Foundation
7348
740
# gives unlimited permission to copy and/or distribute it,
7352
744
# ----------------------------
7353
745
# Automake X.Y traces this macro to ensure aclocal.m4 has been
7354
746
# generated from the m4 files accompanying Automake X.Y.
7355
 
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
 
747
# (This private macro should not be called outside this file.)
 
748
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
749
[am__api_version='1.10'
 
750
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
751
dnl require some minimum version.  Point them to the right macro.
 
752
m4_if([$1], [1.10.1], [],
 
753
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
754
])
 
755
 
 
756
# _AM_AUTOCONF_VERSION(VERSION)
 
757
# -----------------------------
 
758
# aclocal traces this macro to find the Autoconf version.
 
759
# This is a private macro too.  Using m4_define simplifies
 
760
# the logic in aclocal, which can simply ignore this definition.
 
761
m4_define([_AM_AUTOCONF_VERSION], [])
7356
762
 
7357
763
# AM_SET_CURRENT_AUTOMAKE_VERSION
7358
764
# -------------------------------
7359
 
# Call AM_AUTOMAKE_VERSION so it can be traced.
 
765
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
7360
766
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
7361
767
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
7362
 
         [AM_AUTOMAKE_VERSION([1.9.6])])
 
768
[AM_AUTOMAKE_VERSION([1.10.1])dnl
 
769
m4_ifndef([AC_AUTOCONF_VERSION],
 
770
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
771
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
7363
772
 
7364
773
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
7365
774
 
7416
825
 
7417
826
# AM_CONDITIONAL                                            -*- Autoconf -*-
7418
827
 
7419
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
 
828
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
7420
829
# Free Software Foundation, Inc.
7421
830
#
7422
831
# This file is free software; the Free Software Foundation
7423
832
# gives unlimited permission to copy and/or distribute it,
7424
833
# with or without modifications, as long as this notice is preserved.
7425
834
 
7426
 
# serial 7
 
835
# serial 8
7427
836
 
7428
837
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
7429
838
# -------------------------------------
7432
841
[AC_PREREQ(2.52)dnl
7433
842
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
7434
843
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
7435
 
AC_SUBST([$1_TRUE])
7436
 
AC_SUBST([$1_FALSE])
 
844
AC_SUBST([$1_TRUE])dnl
 
845
AC_SUBST([$1_FALSE])dnl
 
846
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
847
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
7437
848
if $2; then
7438
849
  $1_TRUE=
7439
850
  $1_FALSE='#'
7447
858
Usually this means the macro was only invoked conditionally.]])
7448
859
fi])])
7449
860
 
7450
 
 
7451
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
861
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
7452
862
# Free Software Foundation, Inc.
7453
863
#
7454
864
# This file is free software; the Free Software Foundation
7455
865
# gives unlimited permission to copy and/or distribute it,
7456
866
# with or without modifications, as long as this notice is preserved.
7457
867
 
7458
 
# serial 8
 
868
# serial 9
7459
869
 
7460
870
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
7461
871
# written in clear, in which case automake, when reading aclocal.m4,
7483
893
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
7484
894
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
7485
895
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
896
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
7486
897
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
7487
898
                   [depcc="$$1"   am_compiler_list=])
7488
899
 
7548
959
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7549
960
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7550
961
         >/dev/null 2>conftest.err &&
 
962
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7551
963
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7552
964
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7553
965
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7600
1012
  AMDEPBACKSLASH='\'
7601
1013
fi
7602
1014
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
7603
 
AC_SUBST([AMDEPBACKSLASH])
 
1015
AC_SUBST([AMDEPBACKSLASH])dnl
 
1016
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
7604
1017
])
7605
1018
 
7606
1019
# Generate code to set up dependency tracking.              -*- Autoconf -*-
7625
1038
  # some people rename them; so instead we look at the file content.
7626
1039
  # Grep'ing the first line is not enough: some people post-process
7627
1040
  # each Makefile.in and add a new line on top of each file to say so.
7628
 
  # So let's grep whole file.
7629
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
1041
  # Grep'ing the whole file is not good either: AIX grep has a line
 
1042
  # limit of 2048, but all sed's we know have understand at least 4000.
 
1043
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7630
1044
    dirpart=`AS_DIRNAME("$mf")`
7631
1045
  else
7632
1046
    continue
7673
1087
 
7674
1088
# Do all the work for Automake.                             -*- Autoconf -*-
7675
1089
 
7676
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
7677
 
# Free Software Foundation, Inc.
 
1090
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
1091
# 2005, 2006, 2008 Free Software Foundation, Inc.
7678
1092
#
7679
1093
# This file is free software; the Free Software Foundation
7680
1094
# gives unlimited permission to copy and/or distribute it,
7681
1095
# with or without modifications, as long as this notice is preserved.
7682
1096
 
7683
 
# serial 12
 
1097
# serial 13
7684
1098
 
7685
1099
# This macro actually does too much.  Some checks are only needed if
7686
1100
# your package does certain things.  But this isn't really a big deal.
7697
1111
# arguments mandatory, and then we can depend on a new Autoconf
7698
1112
# release and drop the old call support.
7699
1113
AC_DEFUN([AM_INIT_AUTOMAKE],
7700
 
[AC_PREREQ([2.58])dnl
 
1114
[AC_PREREQ([2.60])dnl
7701
1115
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
7702
1116
dnl the ones we care about.
7703
1117
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7704
1118
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
7705
1119
AC_REQUIRE([AC_PROG_INSTALL])dnl
7706
 
# test to see if srcdir already configured
7707
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
7708
 
   test -f $srcdir/config.status; then
7709
 
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
1120
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
1121
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
1122
  # is not polluted with repeated "-I."
 
1123
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
1124
  # test to see if srcdir already configured
 
1125
  if test -f $srcdir/config.status; then
 
1126
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
1127
  fi
7710
1128
fi
7711
1129
 
7712
1130
# test whether we have cygpath
7726
1144
 AC_SUBST([PACKAGE], [$1])dnl
7727
1145
 AC_SUBST([VERSION], [$2])],
7728
1146
[_AM_SET_OPTIONS([$1])dnl
 
1147
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
1148
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
1149
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
7729
1150
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
7730
1151
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7731
1152
 
7761
1182
                  [_AM_DEPENDENCIES(CXX)],
7762
1183
                  [define([AC_PROG_CXX],
7763
1184
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
1185
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
1186
                  [_AM_DEPENDENCIES(OBJC)],
 
1187
                  [define([AC_PROG_OBJC],
 
1188
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
7764
1189
])
7765
1190
])
7766
1191
 
7774
1199
# our stamp files there.
7775
1200
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
7776
1201
[# Compute $1's index in $config_headers.
 
1202
_am_arg=$1
7777
1203
_am_stamp_count=1
7778
1204
for _am_header in $config_headers :; do
7779
1205
  case $_am_header in
7780
 
    $1 | $1:* )
 
1206
    $_am_arg | $_am_arg:* )
7781
1207
      break ;;
7782
1208
    * )
7783
1209
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7784
1210
  esac
7785
1211
done
7786
 
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
 
1212
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
7787
1213
 
7788
1214
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
7789
1215
#
7796
1222
# Define $install_sh.
7797
1223
AC_DEFUN([AM_PROG_INSTALL_SH],
7798
1224
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7799
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1225
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
7800
1226
AC_SUBST(install_sh)])
7801
1227
 
7802
1228
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
7903
1329
 
7904
1330
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
7905
1331
 
7906
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
 
1332
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
7907
1333
# Free Software Foundation, Inc.
7908
1334
#
7909
1335
# This file is free software; the Free Software Foundation
7910
1336
# gives unlimited permission to copy and/or distribute it,
7911
1337
# with or without modifications, as long as this notice is preserved.
7912
1338
 
7913
 
# serial 4
 
1339
# serial 5
7914
1340
 
7915
1341
# AM_MISSING_PROG(NAME, PROGRAM)
7916
1342
# ------------------------------
7926
1352
# If it does, set am_missing_run to use it, otherwise, to nothing.
7927
1353
AC_DEFUN([AM_MISSING_HAS_RUN],
7928
1354
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
1355
AC_REQUIRE_AUX_FILE([missing])dnl
7929
1356
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7930
1357
# Use eval to expand $SHELL
7931
1358
if eval "$MISSING --run true"; then
7936
1363
fi
7937
1364
])
7938
1365
 
7939
 
# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
 
1366
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
7940
1367
#
7941
1368
# This file is free software; the Free Software Foundation
7942
1369
# gives unlimited permission to copy and/or distribute it,
7944
1371
 
7945
1372
# AM_PROG_MKDIR_P
7946
1373
# ---------------
7947
 
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7948
 
#
7949
 
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7950
 
# created by `make install' are always world readable, even if the
7951
 
# installer happens to have an overly restrictive umask (e.g. 077).
7952
 
# This was a mistake.  There are at least two reasons why we must not
7953
 
# use `-m 0755':
7954
 
#   - it causes special bits like SGID to be ignored,
7955
 
#   - it may be too restrictive (some setups expect 775 directories).
7956
 
#
7957
 
# Do not use -m 0755 and let people choose whatever they expect by
7958
 
# setting umask.
7959
 
#
7960
 
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7961
 
# Some implementations (such as Solaris 8's) are not thread-safe: if a
7962
 
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7963
 
# concurrently, both version can detect that a/ is missing, but only
7964
 
# one can create it and the other will error out.  Consequently we
7965
 
# restrict ourselves to GNU make (using the --version option ensures
7966
 
# this.)
 
1374
# Check for `mkdir -p'.
7967
1375
AC_DEFUN([AM_PROG_MKDIR_P],
7968
 
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7969
 
  # We used to keeping the `.' as first argument, in order to
7970
 
  # allow $(mkdir_p) to be used without argument.  As in
7971
 
  #   $(mkdir_p) $(somedir)
7972
 
  # where $(somedir) is conditionally defined.  However this is wrong
7973
 
  # for two reasons:
7974
 
  #  1. if the package is installed by a user who cannot write `.'
7975
 
  #     make install will fail,
7976
 
  #  2. the above comment should most certainly read
7977
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
7978
 
  #     so it does not work when $(somedir) is undefined and
7979
 
  #     $(DESTDIR) is not.
7980
 
  #  To support the latter case, we have to write
7981
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7982
 
  #  so the `.' trick is pointless.
7983
 
  mkdir_p='mkdir -p --'
7984
 
else
7985
 
  # On NextStep and OpenStep, the `mkdir' command does not
7986
 
  # recognize any option.  It will interpret all options as
7987
 
  # directories to create, and then abort because `.' already
7988
 
  # exists.
7989
 
  for d in ./-p ./--version;
7990
 
  do
7991
 
    test -d $d && rmdir $d
7992
 
  done
7993
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7994
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
7995
 
    mkdir_p='$(mkinstalldirs)'
7996
 
  else
7997
 
    mkdir_p='$(install_sh) -d'
7998
 
  fi
7999
 
fi
8000
 
AC_SUBST([mkdir_p])])
 
1376
[AC_PREREQ([2.60])dnl
 
1377
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
1378
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
1379
dnl while keeping a definition of mkdir_p for backward compatibility.
 
1380
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
1381
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
1382
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
1383
dnl adjustment using top_builddir (which is defined more often than
 
1384
dnl MKDIR_P).
 
1385
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
1386
case $mkdir_p in
 
1387
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
1388
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
1389
esac
 
1390
])
8001
1391
 
8002
1392
# Helper functions for option handling.                     -*- Autoconf -*-
8003
1393
 
8290
1680
if test "$cross_compiling" != no; then
8291
1681
  AC_CHECK_TOOL([STRIP], [strip], :)
8292
1682
fi
8293
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1683
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
8294
1684
AC_SUBST([INSTALL_STRIP_PROGRAM])])
8295
1685
 
 
1686
# Copyright (C) 2006  Free Software Foundation, Inc.
 
1687
#
 
1688
# This file is free software; the Free Software Foundation
 
1689
# gives unlimited permission to copy and/or distribute it,
 
1690
# with or without modifications, as long as this notice is preserved.
 
1691
 
 
1692
# _AM_SUBST_NOTMAKE(VARIABLE)
 
1693
# ---------------------------
 
1694
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
1695
# This macro is traced by Automake.
 
1696
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
1697
 
8296
1698
# Check how to create a tarball.                            -*- Autoconf -*-
8297
1699
 
8298
1700
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
8390
1792
]) # _AM_PROG_TAR
8391
1793
 
8392
1794
m4_include([m4/intltool.m4])
 
1795
m4_include([m4/libtool.m4])
 
1796
m4_include([m4/ltoptions.m4])
 
1797
m4_include([m4/ltsugar.m4])
 
1798
m4_include([m4/ltversion.m4])
 
1799
m4_include([m4/lt~obsolete.m4])
8393
1800
m4_include([m4/python.m4])
8394
1801
m4_include([acinclude.m4])