aboutsummaryrefslogtreecommitdiff
path: root/devel/libtool/files/patch-ac
blob: 149d895781158942d18f52cf9be91fe271a7fdf2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
--- ltconfig.orig	Thu Apr 29 15:30:36 1999
+++ ltconfig	Sat May 22 15:52:24 1999
@@ -169,7 +169,7 @@
 # Constants:
 PROGRAM=ltconfig
 PACKAGE=libtool
-VERSION=1.3
+VERSION=1.3-freebsd-ports
 TIMESTAMP=" (1.385.2.117 1999/04/29 13:07:13)"
 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.c 1>&5'
 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.c $LIBS 1>&5'
@@ -184,6 +184,7 @@
 # All known linkers require a `.a' archive for static linking.
 enable_static=yes
 enable_fast_install=yes
+install_ltlibs=no
 enable_dlopen=unknown
 enable_win32_dll=no
 ltmain=
@@ -244,6 +245,7 @@
     --disable-shared       do not build shared libraries
     --disable-static       do not build static libraries
     --disable-fast-install do not optimize for fast installation
+    --install-ltlibs       install the .la archives
     --enable-dlopen        enable dlopen support
     --enable-win32-dll     enable building dlls on win32 hosts
     --help                 display this help and exit
@@ -277,6 +279,8 @@
 
   --disable-fast-install) enable_fast_install=no ;;
 
+  --install-ltlibs) install_ltlibs=yes ;;
+
   --enable-dlopen) enable_dlopen=yes ;;
 
   --enable-win32-dll) enable_win32_dll=yes ;;
@@ -927,11 +931,11 @@
   $rm conftest.dat
   if ln -s X conftest.dat 2>/dev/null; then
     $rm conftest.dat
-    LN_S="ln -s"
+    LN_S="ln -sf"
   else
     LN_S=ln
   fi
-  if test "$LN_S" = "ln -s"; then
+  if test "$LN_S" = "ln -sf"; then
     echo "$ac_t"yes 1>&6
   else
     echo "$ac_t"no 1>&6
@@ -1742,19 +1746,17 @@
   case "$version_type" in
     freebsd-elf*)
       deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
-      file_magic_cmd=/usr/bin/file
-      file_magic_test_file=`echo /usr/lib/libc.so*`
-      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
-      need_version=no
-      need_lib_prefix=no
       ;;
     freebsd-*)
-      deplibs_check_method=unknown
-      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
-      need_version=yes
+      deplibs_check_method='file_magic FreeBSD.* shared library'
       ;;
   esac
-  finish_cmds='PATH="\$PATH:/sbin" OBJFORMAT="'"$objformat"'" ldconfig -m $libdir'
+  file_magic_cmd=/usr/bin/file
+  file_magic_test_file=`echo /usr/lib/libc.so.*`
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so'
+  need_version=no
+  need_lib_prefix=no
+  finish_cmds='/usr/bin/env OBJFORMAT="'"$objformat"'" /sbin/ldconfig -m $libdir'
   shlibpath_var=LD_LIBRARY_PATH
   ;;
 
@@ -2613,6 +2615,12 @@
 
 # Shell to use when invoking shell scripts.
 SHELL=$LTSHELL
+
+# Install PREFIX
+PREFIX=$PREFIX
+
+# Whether to waste disk space.
+install_ltlibs=$install_ltlibs 
 
 # Whether or not to build shared libraries.
 build_libtool_libs=$enable_shared