Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
f90fe7c8
Commit
f90fe7c8
authored
Oct 16, 2000
by
Brian Wellington
Browse files
520. [bug] Upgraded libtool to 1.3.5, which allows shared
library builds to work on AIX (and possibly others).
parent
34d2bdad
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
f90fe7c8
520. [bug] Upgraded libtool to 1.3.5, which allows shared
library builds to work on AIX (and possibly others).
519. [bug] dns_name_split() would improperly split some bitstring
labels, zeroing a few of the least signficant bits in
the prefix part. When such an improperly created
...
...
libtool.m4
View file @
f90fe7c8
## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
## Copyright (C) 1996-1999 Free Software Foundation, Inc.
## Copyright (C) 1996-1999
, 2000
Free Software Foundation, Inc.
## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
##
## This program is free software; you can redistribute it and/or modify
...
...
@@ -34,7 +34,7 @@ LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $
hos
t \
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $
lt_targe
t \
|| AC_MSG_ERROR([libtool configure failed])
# Reload cache, that may have been modified by ltconfig
...
...
@@ -66,6 +66,11 @@ AC_REQUIRE([AC_PROG_NM])dnl
AC_REQUIRE([AC_PROG_LN_S])dnl
dnl
case "$target" in
NONE) lt_target="$host" ;;
*) lt_target="$target" ;;
esac
# Check for any special flags to pass to ltconfig.
libtool_flags="--cache-file=$cache_file"
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
...
...
@@ -84,7 +89,7 @@ test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
# Some flags need to be propagated to the compiler or linker for good
# libtool support.
case "$
hos
t" in
case "$
lt_targe
t" in
*-*-irix6*)
# Find out which ABI we are using.
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
...
...
@@ -300,7 +305,6 @@ else
AC_MSG_RESULT(no)
fi
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
AC_SUBST(LD)
AC_PROG_LD_GNU
])
...
...
@@ -346,14 +350,13 @@ else
fi])
NM="$ac_cv_path_NM"
AC_MSG_RESULT([$NM])
AC_SUBST(NM)
])
# AC_CHECK_LIBM - check for math library
AC_DEFUN(AC_CHECK_LIBM,
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
LIBM=
case "$
hos
t" in
case "$
lt_targe
t" in
*-*-beos* | *-*-cygwin*)
# These system don't have libm
;;
...
...
@@ -368,31 +371,35 @@ esac
])
# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
# the libltdl convenience library, adds --enable-ltdl-convenience to
# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
# to be `${top_builddir}/libltdl'. Make sure you start DIR with
# '${top_builddir}/' (note the single quotes!) if your package is not
# flat, and, if you're not using automake, define top_builddir as
# appropriate in the Makefiles.
# the libltdl convenience library and INCLTDL to the include flags for
# the libltdl header and adds --enable-ltdl-convenience to the
# configure arguments. Note that LIBLTDL and INCLTDL are not
# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
# with '${top_builddir}/' and INCLTDL will be prefixed with
# '${top_srcdir}/' (note the single quotes!). If your package is not
# flat and you're not using automake, define top_builddir and
# top_srcdir appropriately in the Makefiles.
AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
case "$enable_ltdl_convenience" in
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
"") enable_ltdl_convenience=yes
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
esac
LIBLTDL=
ifelse($#,1,$1,[
'${top_builddir}/libltdl'])/libltdlc.la
INCLTDL=ifelse($#,1,
-I
$1,['
-I${top_builddir}/
libltdl'])
LIBLTDL='${top_builddir}/
'ifelse($#,1,[$1],['
libltdl'])/libltdlc.la
INCLTDL=
'-I${top_srcdir}/'
ifelse($#,1,
[
$1
]
,['libltdl'])
])
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
# the libltdl installable library, and adds --enable-ltdl-install to
# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
# to be `${top_builddir}/libltdl'. Make sure you start DIR with
# '${top_builddir}/' (note the single quotes!) if your package is not
# flat, and, if you're not using automake, define top_builddir as
# appropriate in the Makefiles.
# the libltdl installable library and INCLTDL to the include flags for
# the libltdl header and adds --enable-ltdl-install to the configure
# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
# with '${top_srcdir}/' (note the single quotes!). If your package is
# not flat and you're not using automake, define top_builddir and
# top_srcdir appropriately in the Makefiles.
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
AC_CHECK_LIB(ltdl, main,
...
...
@@ -405,8 +412,8 @@ AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
])
if test x"$enable_ltdl_install" = x"yes"; then
ac_configure_args="$ac_configure_args --enable-ltdl-install"
LIBLTDL=
ifelse($#,1,$1,[
'${top_builddir}/libltdl'])/libltdl.la
INCLTDL=ifelse($#,1,
-I
$1,['
-I${top_builddir}/
libltdl'])
LIBLTDL='${top_builddir}/
'ifelse($#,1,[$1],['
libltdl'])/libltdl.la
INCLTDL=
'-I${top_srcdir}/'
ifelse($#,1,
[
$1
]
,['libltdl'])
else
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
LIBLTDL="-lltdl"
...
...
ltconfig
View file @
f90fe7c8
This diff is collapsed.
Click to expand it.
ltmain.sh
View file @
f90fe7c8
...
...
@@ -54,8 +54,8 @@ modename="$progname"
# Constants.
PROGRAM
=
ltmain.sh
PACKAGE
=
libtool
VERSION
=
1.3.
3
TIMESTAMP
=
" (1.385.2.
181 1999/07/02 15:49:11
)"
VERSION
=
1.3.
5
TIMESTAMP
=
" (1.385.2.
206 2000/05/27 11:12:27
)"
default_mode
=
help
=
"Try
\`
$progname
--help' for more information."
...
...
@@ -435,7 +435,7 @@ compiler."
fbsd_hideous_sh_bug
=
$base_compile
# All platforms use -DPIC, to notify preprocessed assembler code.
command
=
"
$base_compile
$pic_flag
-DPIC
$srcfile
"
command
=
"
$base_compile
$srcfile
$pic_flag
-DPIC"
if
test
"
$build_old_libs
"
=
yes
;
then
lo_libobj
=
"
$libobj
"
dir
=
`
$echo
"X
$libobj
"
|
$Xsed
-e
's%/[^/]*$%%'
`
...
...
@@ -521,9 +521,17 @@ compiler."
exit
$error
fi
xdir
=
`
$echo
"X
$obj
"
|
$Xsed
-e
's%/[^/]*$%%'
`
if
test
"X
$xdir
"
=
"X
$obj
"
;
then
xdir
=
"."
else
xdir
=
"
$xdir
"
fi
baseobj
=
`
$echo
"X
$obj
"
|
$Xsed
-e
"s%.*/%%"
`
libobj
=
`
$echo
"X
$baseobj
"
|
$Xsed
-e
"
$o2lo
"
`
# Now arrange that obj and lo_libobj become the same file
$show
"
$LN_S
$obj
$
lo_
libobj
"
if
$run
$LN_S
$obj
$
lo_
libobj
;
then
$show
"
(cd
$xdir
&&
$LN_S
$
base
obj
$libobj
)
"
if
$run
eval
'(cd $xdir &&
$LN_S $
base
obj $libobj
)'
;
then
exit
0
else
error
=
$?
...
...
@@ -613,8 +621,6 @@ compiler."
# libtool link mode
link
)
modename
=
"
$modename
: link"
C_compiler
=
"
$CC
"
# save it, to compile generated C sources
CC
=
"
$nonopt
"
case
"
$host
"
in
*
-
*
-cygwin
*
|
*
-
*
-mingw
*
|
*
-
*
-os2
*
)
# It is impossible to link a dll without this setting, and
...
...
@@ -802,8 +808,8 @@ compiler."
allow_undefined
=
yes
;;
esac
compile_command
=
"
$
CC
"
finalize_command
=
"
$
CC
"
compile_command
=
"
$
nonopt
"
finalize_command
=
"
$
nonopt
"
compile_rpath
=
finalize_rpath
=
...
...
@@ -1789,6 +1795,10 @@ compiler."
*
-
*
-cygwin
*
|
*
-
*
-mingw
*
|
*
-
*
-os2
*
|
*
-
*
-beos
*
)
# these systems don't actually have a c library (as such)!
;;
*
-
*
-rhapsody
*
)
# rhapsody is a little odd...
deplibs
=
"
$deplibs
-framework System"
;;
*
)
# Add libc to deplibs on all other systems.
deplibs
=
"
$deplibs
-lc"
...
...
@@ -1851,7 +1861,7 @@ compiler."
int main() { return 0; }
EOF
$rm
conftest
$C
_compiler
-o
conftest conftest.c
$deplibs
$C
C
-o
conftest conftest.c
$deplibs
if
test
$?
-eq
0
;
then
ldd_output
=
`
ldd conftest
`
for
i
in
$deplibs
;
do
...
...
@@ -1884,7 +1894,7 @@ EOF
# If $name is empty we are operating on a -L argument.
if
test
"
$name
"
!=
""
;
then
$rm
conftest
$C
_compiler
-o
conftest conftest.c
$i
$C
C
-o
conftest conftest.c
$i
# Did it work?
if
test
$?
-eq
0
;
then
ldd_output
=
`
ldd conftest
`
...
...
@@ -2047,12 +2057,19 @@ EOF
done
# Ensure that we have .o objects for linkers which dislike .lo
# (e.g. aix) incase we are running --disable-static
# (e.g. aix) in
case we are running --disable-static
for
obj
in
$libobjs
;
do
oldobj
=
`
$echo
"X
$obj
"
|
$Xsed
-e
"
$lo2o
"
`
if
test
!
-f
$oldobj
;
then
$show
"
${
LN_S
}
$obj
$oldobj
"
$run
${
LN_S
}
$obj
$oldobj
||
exit
$?
xdir
=
`
$echo
"X
$obj
"
|
$Xsed
-e
's%/[^/]*$%%'
`
if
test
"X
$xdir
"
=
"X
$obj
"
;
then
xdir
=
"."
else
xdir
=
"
$xdir
"
fi
baseobj
=
`
$echo
"X
$obj
"
|
$Xsed
-e
's%^.*/%%'
`
oldobj
=
`
$echo
"X
$baseobj
"
|
$Xsed
-e
"
$lo2o
"
`
if
test
!
-f
$xdir
/
$oldobj
;
then
$show
"(cd
$xdir
&&
${
LN_S
}
$baseobj
$oldobj
)"
$run
eval
'(cd $xdir && ${LN_S} $baseobj $oldobj)'
||
exit
$?
fi
done
...
...
@@ -2311,8 +2328,16 @@ EOF
# Just create a symlink.
$show
$rm
$libobj
$run
$rm
$libobj
$show
"
$LN_S
$obj
$libobj
"
$run
$LN_S
$obj
$libobj
||
exit
$?
xdir
=
`
$echo
"X
$libobj
"
|
$Xsed
-e
's%/[^/]*$%%'
`
if
test
"X
$xdir
"
=
"X
$libobj
"
;
then
xdir
=
"."
else
xdir
=
"
$xdir
"
fi
baseobj
=
`
$echo
"X
$libobj
"
|
$Xsed
-e
's%^.*/%%'
`
oldobj
=
`
$echo
"X
$baseobj
"
|
$Xsed
-e
"
$lo2o
"
`
$show
"(cd
$xdir
&&
$LN_S
$oldobj
$baseobj
)"
$run
eval
'(cd $xdir && $LN_S $oldobj $baseobj)'
||
exit
$?
fi
if
test
-n
"
$gentop
"
;
then
...
...
@@ -2598,16 +2623,21 @@ static const void *lt_preloaded_setup() {
# linked before any other PIC object. But we must not use
# pic_flag when linking with -static. The problem exists in
# FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
*
-
*
-freebsd2
*
|
*
-
*
-freebsd3
.0
*
)
*
-
*
-freebsd2
*
|
*
-
*
-freebsd3
.0
*
|
*
-
*
-freebsdelf3
.0
*
)
case
"
$compile_command
"
in
*
" -static "
*
)
;;
*
)
pic_flag_for_symtable
=
"
$pic_flag
-DPIC -DFREEBSD_WORKAROUND"
;;
esac
;;
*
-
*
-hpux
*
)
case
"
$compile_command
"
in
*
" -static "
*
)
;;
*
)
pic_flag_for_symtable
=
"
$pic_flag
-DPIC"
;;
esac
esac
# Now compile the dynamic symbol file.
$show
"(cd
$output_objdir
&&
$C
_compiler
-c
$no_builtin_flag$pic_flag_for_symtable
\"
$dlsyms
\"
)"
$run
eval
'(cd $output_objdir && $C
_compiler
-c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")'
||
exit
$?
$show
"(cd
$output_objdir
&&
$C
C
-c
$no_builtin_flag$pic_flag_for_symtable
\"
$dlsyms
\"
)"
$run
eval
'(cd $output_objdir && $C
C
-c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")'
||
exit
$?
# Clean up the generated files.
$show
"
$rm
$output_objdir
/
$dlsyms
$nlist
${
nlist
}
S
${
nlist
}
T"
...
...
@@ -2776,7 +2806,7 @@ sed_quote_subst='$sed_quote_subst'
# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
if test
\"\$
{CDPATH+set}
\"
= set; then CDPATH=; export CDPATH; fi
if test
\"\$
{CDPATH+set}
\"
= set; then CDPATH=
:
; export CDPATH; fi
relink_command=
\"
$relink_command
\"
...
...
@@ -2865,7 +2895,7 @@ else
fi"
else
echo
>>
$output
"
\
program='
$outputname
$exeext
'
program='
$outputname
'
progdir=
\"\$
thisdir/
$objdir
\"
"
fi
...
...
@@ -2901,13 +2931,21 @@ else
# Run the actual program with our arguments.
"
case
$host
in
*
-
*
-cygwin
*
|
*
-
*
-mingw
|
*
-
*
-os2
*
)
# win32 systems need to use the prog path for dll
# lookup to work
*
-
*
-cygwin
*
)
$echo
>>
$output
"
\
exec
\$
progdir/
\$
program
\$
{1+
\"\$
@
\"
}
"
;;
# Backslashes separate directories on plain windows
*
-
*
-mingw
|
*
-
*
-os2
*
)
$echo
>>
$output
"
\
exec
\$
progdir
\\\\\$
program
\$
{1+
\"\$
@
\"
}
"
;;
*
)
$echo
>>
$output
"
\
# Export the path to the program.
...
...
@@ -2995,14 +3033,21 @@ fi\
if
test
-n
"
$old_archive_from_new_cmds
"
&&
test
"
$build_libtool_libs
"
=
yes
;
then
eval
cmds
=
\"
$old_archive_from_new_cmds
\"
else
# Ensure that we have .o objects in place incase we decided
# Ensure that we have .o objects in place in
case we decided
# not to build a shared library, and have fallen back to building
# static libs even though --disable-static was passed!
for
oldobj
in
$oldobjs
;
do
if
test
!
-f
$oldobj
;
then
obj
=
`
$echo
"X
$oldobj
"
|
$Xsed
-e
"
$o2lo
"
`
$show
"
${
LN_S
}
$obj
$oldobj
"
$run
${
LN_S
}
$obj
$oldobj
||
exit
$?
xdir
=
`
$echo
"X
$oldobj
"
|
$Xsed
-e
's%/[^/]*$%%'
`
if
test
"X
$xdir
"
=
"X
$oldobj
"
;
then
xdir
=
"."
else
xdir
=
"
$xdir
"
fi
baseobj
=
`
$echo
"X
$oldobj
"
|
$Xsed
-e
's%^.*/%%'
`
obj
=
`
$echo
"X
$baseobj
"
|
$Xsed
-e
"
$o2lo
"
`
$show
"(cd
$xdir
&&
${
LN_S
}
$obj
$baseobj
)"
$run
eval
'(cd $xdir && ${LN_S} $obj $baseobj)'
||
exit
$?
fi
done
...
...
@@ -3672,8 +3717,10 @@ libdir='$install_libdir'\
done
if
test
-z
"
$run
"
;
then
# Export the shlibpath_var.
eval
"export
$shlibpath_var
"
if
test
-n
"
$shlibpath_var
"
;
then
# Export the shlibpath_var.
eval
"export
$shlibpath_var
"
fi
# Restore saved enviroment variables
if
test
"
${
save_LC_ALL
+set
}
"
=
set
;
then
...
...
@@ -3690,8 +3737,10 @@ libdir='$install_libdir'\
exit
1
else
# Display what would be done.
eval
"
\$
echo
\"\$
shlibpath_var=
\$
$shlibpath_var
\"
"
$echo
"export
$shlibpath_var
"
if
test
-n
"
$shlibpath_var
"
;
then
eval
"
\$
echo
\"\$
shlibpath_var=
\$
$shlibpath_var
\"
"
$echo
"export
$shlibpath_var
"
fi
$echo
"
$cmd$args
"
exit
0
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment