This commit was generated by cvs2svn to compensate for changes in r147455,
which included commits to RCS files with non-trunk default branches.
This commit is contained in:
commit
2f0f4f3784
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=147456
@ -13,12 +13,15 @@ or indirectly, with patches, criticism, suggestions, or ideas:
|
||||
|
||||
Andrew Morgan <morgan@transmeta.com>
|
||||
Brian Fundakowski Feldman <green@freebsd.org>
|
||||
Christos Zoulas <christos@netbsd.org>
|
||||
Darren J. Moffat <Darren.Moffat@sun.com>
|
||||
Dmitry V. Levin <ldv@altlinux.org>
|
||||
Emmanuel Dreyfus <manu@netbsd.org>
|
||||
Eric Melville <eric@freebsd.org>
|
||||
Gary Winiger <Gary.Winiger@sun.com>
|
||||
Joe Marcus Clarke <marcus@freebsd.org>
|
||||
Juli Mallett <jmallett@freebsd.org>
|
||||
Hubert Feyrer <hubert@feyrer.de>
|
||||
Mark Murray <markm@freebsd.org>
|
||||
Mike Petullo <mike@flyn.org>
|
||||
Mikko Työläjärvi <mbsd@pacbell.net>
|
||||
@ -28,4 +31,4 @@ or indirectly, with patches, criticism, suggestions, or ideas:
|
||||
Takanori Saneto <sanewo@ba2.so-net.ne.jp>
|
||||
Yar Tikhiy <yar@freebsd.org>
|
||||
|
||||
$P4: //depot/projects/openpam/CREDITS#10 $
|
||||
$P4: //depot/projects/openpam/CREDITS#12 $
|
||||
|
@ -1,3 +1,16 @@
|
||||
OpenPAM Figwort 2005-06-16
|
||||
|
||||
- BUGFIX: Correct several small signedness and initialization bugs
|
||||
discovered during review by the NetBSD team.
|
||||
|
||||
- BUGFIX: Modify gendoc.pl to sort cross-references in dictionary
|
||||
order within each section.
|
||||
|
||||
- ENHANCE: if a policy specifies a relative module path, prepend the
|
||||
module directory so we never call dlopen(3) with a relative path.
|
||||
|
||||
- ENHANCE: add a pam.conf(5) manual page.
|
||||
============================================================================
|
||||
OpenPAM Feterita 2005-02-01
|
||||
|
||||
- BUGFIX: Correct numerous markup errors, invalid cross-references,
|
||||
@ -16,7 +29,6 @@ OpenPAM Feterita 2005-02-01
|
||||
- ENHANCE: Minor overhaul of the autoconf / build system.
|
||||
|
||||
- ENHANCE: Add openpam_free_envlist(3).
|
||||
|
||||
============================================================================
|
||||
OpenPAM Eelgrass 2004-02-10
|
||||
|
||||
@ -292,4 +304,4 @@ OpenPAM Calamite 2002-02-09
|
||||
|
||||
First (beta) release.
|
||||
============================================================================
|
||||
$P4: //depot/projects/openpam/HISTORY#23 $
|
||||
$P4: //depot/projects/openpam/HISTORY#24 $
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# $P4: //depot/projects/openpam/MANIFEST#20 $
|
||||
# $P4: //depot/projects/openpam/MANIFEST#21 $
|
||||
#
|
||||
CREDITS
|
||||
HISTORY
|
||||
@ -47,6 +47,7 @@ doc/man/openpam_restore_cred.3
|
||||
doc/man/openpam_set_option.3
|
||||
doc/man/openpam_ttyconv.3
|
||||
doc/man/pam.3
|
||||
doc/man/pam.conf.5
|
||||
doc/man/pam.man
|
||||
doc/man/pam_acct_mgmt.3
|
||||
doc/man/pam_authenticate.3
|
||||
|
@ -1,3 +1,5 @@
|
||||
# $P4: //depot/projects/openpam/Makefile.am#3 $
|
||||
|
||||
SUBDIRS = lib bin modules doc include
|
||||
|
||||
EXTRA_DIST = CREDITS HISTORY INSTALL LICENSE MANIFEST README RELNOTES
|
||||
|
@ -13,6 +13,8 @@
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
# $P4: //depot/projects/openpam/Makefile.am#3 $
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
@ -38,8 +40,8 @@ host_triplet = @host@
|
||||
target_triplet = @target@
|
||||
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
|
||||
$(srcdir)/Makefile.in $(srcdir)/config.h.in \
|
||||
$(top_srcdir)/configure INSTALL config.guess config.sub \
|
||||
depcomp install-sh ltmain.sh missing
|
||||
$(top_srcdir)/configure INSTALL compile config.guess \
|
||||
config.sub depcomp install-sh ltmain.sh missing
|
||||
subdir = .
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
Release notes for OpenPAM Feterita
|
||||
==================================
|
||||
Release notes for OpenPAM Figwort
|
||||
=================================
|
||||
|
||||
This release corresponds to the code used in FreeBSD-CURRENT as of the
|
||||
release date. It has also been tested on several other platforms, and
|
||||
@ -26,4 +26,4 @@ proper credit for your contribution.
|
||||
|
||||
Please direct bug reports and inquiries to <des@freebsd.org>.
|
||||
|
||||
$P4: //depot/projects/openpam/RELNOTES#21 $
|
||||
$P4: //depot/projects/openpam/RELNOTES#22 $
|
||||
|
144
contrib/openpam/aclocal.m4
vendored
144
contrib/openpam/aclocal.m4
vendored
@ -669,7 +669,7 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
|
||||
lt_cv_sys_max_cmd_len=8192;
|
||||
;;
|
||||
|
||||
netbsd* | freebsd* | openbsd* | darwin* )
|
||||
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
|
||||
# This has been around since 386BSD, at least. Likely further.
|
||||
if test -x /sbin/sysctl; then
|
||||
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
||||
@ -681,8 +681,20 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
|
||||
# And add a safety zone
|
||||
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
||||
;;
|
||||
|
||||
*)
|
||||
osf*)
|
||||
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
||||
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
||||
# nice to cause kernel panics so lets avoid the loop below.
|
||||
# First set a reasonable default.
|
||||
lt_cv_sys_max_cmd_len=16384
|
||||
#
|
||||
if test -x /sbin/sysconfig; then
|
||||
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
||||
*1*) lt_cv_sys_max_cmd_len=-1 ;;
|
||||
esac
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
# If test is not a shell built-in, we'll probably end up computing a
|
||||
# maximum length that is only half of the actual maximum length, but
|
||||
# we can't tell.
|
||||
@ -1247,7 +1259,7 @@ cygwin* | mingw* | pw32*)
|
||||
;;
|
||||
pw32*)
|
||||
# pw32 DLLs use 'pw' prefix rather than 'lib'
|
||||
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
||||
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
@ -1305,7 +1317,9 @@ kfreebsd*-gnu)
|
||||
dynamic_linker='GNU ld.so'
|
||||
;;
|
||||
|
||||
freebsd*)
|
||||
freebsd* | dragonfly*)
|
||||
# DragonFly does not have aout. When/if they implement a new
|
||||
# versioning mechanism, adjust this.
|
||||
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
|
||||
version_type=freebsd-$objformat
|
||||
case $version_type in
|
||||
@ -1324,7 +1338,7 @@ freebsd*)
|
||||
freebsd2*)
|
||||
shlibpath_overrides_runpath=yes
|
||||
;;
|
||||
freebsd3.[01]* | freebsdelf3.[01]*)
|
||||
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
|
||||
shlibpath_overrides_runpath=yes
|
||||
hardcode_into_libs=yes
|
||||
;;
|
||||
@ -1450,7 +1464,7 @@ linux*)
|
||||
|
||||
# Append ld.so.conf contents to the search path
|
||||
if test -f /etc/ld.so.conf; then
|
||||
lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
|
||||
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
||||
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
||||
fi
|
||||
|
||||
@ -1680,7 +1694,7 @@ if test -f "$ltmain" && test -n "$tagnames"; then
|
||||
case $tagname in
|
||||
CXX)
|
||||
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
|
||||
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
||||
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
||||
(test "X$CXX" != "Xg++"))) ; then
|
||||
AC_LIBTOOL_LANG_CXX_CONFIG
|
||||
else
|
||||
@ -2151,13 +2165,13 @@ darwin* | rhapsody*)
|
||||
lt_cv_deplibs_check_method=pass_all
|
||||
;;
|
||||
|
||||
freebsd* | kfreebsd*-gnu)
|
||||
freebsd* | kfreebsd*-gnu | dragonfly*)
|
||||
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
||||
case $host_cpu in
|
||||
i*86 )
|
||||
# Not sure whether the presence of OpenBSD here was a mistake.
|
||||
# Let's accept both of them until this is cleared up.
|
||||
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
|
||||
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
|
||||
lt_cv_file_magic_cmd=/usr/bin/file
|
||||
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
||||
;;
|
||||
@ -2426,7 +2440,7 @@ AC_DEFUN([_LT_AC_PROG_CXXCPP],
|
||||
[
|
||||
AC_REQUIRE([AC_PROG_CXX])
|
||||
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
|
||||
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
||||
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
|
||||
(test "X$CXX" != "Xg++"))) ; then
|
||||
AC_PROG_CXXCPP
|
||||
fi
|
||||
@ -2763,7 +2777,7 @@ case $host_os in
|
||||
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
||||
|
||||
if test "$GXX" = yes; then
|
||||
case $host_os in aix4.[012]|aix4.[012].*)
|
||||
case $host_os in aix4.[[012]]|aix4.[[012]].*)
|
||||
# We only want to do this on AIX 4.2 and lower, the check
|
||||
# below for broken collect2 doesn't work under 4.3+
|
||||
collect2name=`${CC} -print-prog-name=collect2`
|
||||
@ -2784,6 +2798,9 @@ case $host_os in
|
||||
fi
|
||||
esac
|
||||
shared_flag='-shared'
|
||||
if test "$aix_use_runtimelinking" = yes; then
|
||||
shared_flag="$shared_flag "'${wl}-G'
|
||||
fi
|
||||
else
|
||||
# not using gcc
|
||||
if test "$host_cpu" = ia64; then
|
||||
@ -2947,14 +2964,14 @@ case $host_os in
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
freebsd[12]*)
|
||||
freebsd[[12]]*)
|
||||
# C++ shared libraries reported to be fairly broken before switch to ELF
|
||||
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
||||
;;
|
||||
freebsd-elf*)
|
||||
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
||||
;;
|
||||
freebsd* | kfreebsd*-gnu)
|
||||
freebsd* | kfreebsd*-gnu | dragonfly*)
|
||||
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
|
||||
# conventions
|
||||
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
|
||||
@ -2985,7 +3002,7 @@ case $host_os in
|
||||
# explicitly linking system object files so we need to strip them
|
||||
# from the output so that they don't get included in the library
|
||||
# dependencies.
|
||||
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'
|
||||
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'
|
||||
;;
|
||||
*)
|
||||
if test "$GXX" = yes; then
|
||||
@ -3143,8 +3160,12 @@ case $host_os in
|
||||
_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'
|
||||
;;
|
||||
*) # Version 8.0 or newer
|
||||
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
||||
_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'
|
||||
tmp_idyn=
|
||||
case $host_cpu in
|
||||
ia64*) tmp_idyn=' -i_dynamic';;
|
||||
esac
|
||||
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
||||
_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'
|
||||
;;
|
||||
esac
|
||||
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
|
||||
@ -3152,6 +3173,14 @@ case $host_os in
|
||||
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
||||
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
|
||||
;;
|
||||
pgCC)
|
||||
# Portland Group C++ compiler
|
||||
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
|
||||
_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'
|
||||
|
||||
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
|
||||
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
|
||||
;;
|
||||
cxx)
|
||||
# Compaq C++
|
||||
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
||||
@ -3390,7 +3419,7 @@ case $host_os in
|
||||
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
||||
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
||||
case $host_os in
|
||||
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
||||
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
||||
*)
|
||||
# The C++ compiler is used as linker so we must use $wl
|
||||
# flag to pass the commands to the underlying system
|
||||
@ -3767,7 +3796,7 @@ _LT_AC_TAGVAR(objext, $1)=$objext
|
||||
lt_simple_compile_test_code="class foo {}\n"
|
||||
|
||||
# Code to be used in simple link tests
|
||||
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
|
||||
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
|
||||
|
||||
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
||||
_LT_AC_SYS_COMPILER
|
||||
@ -4009,6 +4038,12 @@ fast_install=$enable_fast_install
|
||||
# The host system.
|
||||
host_alias=$host_alias
|
||||
host=$host
|
||||
host_os=$host_os
|
||||
|
||||
# The build system.
|
||||
build_alias=$build_alias
|
||||
build=$build
|
||||
build_os=$build_os
|
||||
|
||||
# An echo program that does not interpret backslashes.
|
||||
echo=$lt_echo
|
||||
@ -4359,9 +4394,6 @@ symcode='[[BCDEGRST]]'
|
||||
# Regexp to match symbols that can be accessed directly from C.
|
||||
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
|
||||
|
||||
# Transform the above into a raw symbol and a C symbol.
|
||||
symxfrm='\1 \2\3 \3'
|
||||
|
||||
# Transform an extracted symbol line into a proper C declaration
|
||||
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
|
||||
|
||||
@ -4421,8 +4453,11 @@ esac
|
||||
# Try without a prefix undercore, then with it.
|
||||
for ac_symprfx in "" "_"; do
|
||||
|
||||
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
||||
symxfrm="\\1 $ac_symprfx\\2 \\2"
|
||||
|
||||
# Write the raw and C identifiers.
|
||||
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
|
||||
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
||||
|
||||
# Check to see that the pipe works correctly.
|
||||
pipe_works=no
|
||||
@ -4640,7 +4675,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
freebsd* | kfreebsd*-gnu)
|
||||
freebsd* | kfreebsd*-gnu | dragonfly*)
|
||||
# FreeBSD uses GNU C++
|
||||
;;
|
||||
hpux9* | hpux10* | hpux11*)
|
||||
@ -4686,12 +4721,18 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
||||
;;
|
||||
icpc)
|
||||
icpc* | ecpc*)
|
||||
# Intel C++
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
||||
;;
|
||||
pgCC)
|
||||
# Portland Group C++ compiler.
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
||||
;;
|
||||
cxx)
|
||||
# Compaq C++
|
||||
# Make sure the PIC flag is empty. It appears that all Alpha
|
||||
@ -4925,12 +4966,19 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
|
||||
;;
|
||||
|
||||
linux*)
|
||||
case $CC in
|
||||
case $cc_basename in
|
||||
icc* | ecc*)
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
||||
;;
|
||||
pgcc | pgf77 | pgf90)
|
||||
# Portland Group compilers (*not* the Pentium gcc compiler,
|
||||
# which looks to be a dead project)
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
|
||||
;;
|
||||
ccc*)
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
||||
# All Alpha code is PIC.
|
||||
@ -4975,6 +5023,11 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
|
||||
fi
|
||||
;;
|
||||
|
||||
unicos*)
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
|
||||
;;
|
||||
|
||||
uts4*)
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
|
||||
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
||||
@ -5035,7 +5088,7 @@ ifelse([$1],[CXX],[
|
||||
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
|
||||
;;
|
||||
cygwin* | mingw*)
|
||||
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
|
||||
_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'
|
||||
;;
|
||||
*)
|
||||
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
||||
@ -5148,7 +5201,7 @@ EOF
|
||||
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
|
||||
_LT_AC_TAGVAR(always_export_symbols, $1)=no
|
||||
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
||||
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
|
||||
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
|
||||
|
||||
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
||||
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
||||
@ -5162,7 +5215,7 @@ EOF
|
||||
fi~
|
||||
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
||||
else
|
||||
ld_shlibs=no
|
||||
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
||||
fi
|
||||
;;
|
||||
|
||||
@ -5206,11 +5259,21 @@ EOF
|
||||
|
||||
linux*)
|
||||
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
||||
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
||||
_LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
|
||||
tmp_addflag=
|
||||
case $CC,$host_cpu in
|
||||
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
|
||||
tmp_addflag=' -fpic' ;;
|
||||
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
||||
tmp_addflag=' -i_dynamic' ;;
|
||||
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
||||
tmp_addflag=' -i_dynamic -nofor_main' ;;
|
||||
ifc* | ifort*) # Intel Fortran compiler
|
||||
tmp_addflag=' -nofor_main' ;;
|
||||
esac
|
||||
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
||||
supports_anon_versioning=no
|
||||
case `$LD -v 2>/dev/null` in
|
||||
*\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
|
||||
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
|
||||
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
||||
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
||||
*\ 2.11.*) ;; # other 2.11 versions
|
||||
@ -5220,9 +5283,9 @@ EOF
|
||||
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
|
||||
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
||||
$echo "local: *; };" >> $output_objdir/$libname.ver~
|
||||
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
||||
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
||||
else
|
||||
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
|
||||
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=$_LT_AC_TAGVAR(archive_cmds, $1)
|
||||
fi
|
||||
else
|
||||
_LT_AC_TAGVAR(ld_shlibs, $1)=no
|
||||
@ -5312,7 +5375,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
|
||||
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
||||
|
||||
if test "$GCC" = yes; then
|
||||
case $host_os in aix4.[012]|aix4.[012].*)
|
||||
case $host_os in aix4.[[012]]|aix4.[[012]].*)
|
||||
# We only want to do this on AIX 4.2 and lower, the check
|
||||
# below for broken collect2 doesn't work under 4.3+
|
||||
collect2name=`${CC} -print-prog-name=collect2`
|
||||
@ -5333,6 +5396,9 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
|
||||
fi
|
||||
esac
|
||||
shared_flag='-shared'
|
||||
if test "$aix_use_runtimelinking" = yes; then
|
||||
shared_flag="$shared_flag "'${wl}-G'
|
||||
fi
|
||||
else
|
||||
# not using gcc
|
||||
if test "$host_cpu" = ia64; then
|
||||
@ -5412,7 +5478,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
|
||||
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
|
||||
# FIXME: Should let the user specify the lib program.
|
||||
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
|
||||
fix_srcfile_path='`cygpath -w "$srcfile"`'
|
||||
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
|
||||
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
|
||||
;;
|
||||
|
||||
@ -5496,7 +5562,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
|
||||
;;
|
||||
|
||||
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
||||
freebsd* | kfreebsd*-gnu)
|
||||
freebsd* | kfreebsd*-gnu | dragonfly*)
|
||||
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
||||
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
|
||||
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
||||
@ -5685,7 +5751,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
|
||||
case $host_os in
|
||||
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
|
||||
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
|
||||
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
|
||||
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
|
||||
esac
|
||||
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
|
||||
;;
|
||||
@ -5946,7 +6012,7 @@ lt_ac_count=0
|
||||
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
|
||||
# along with /bin/sed that truncates output.
|
||||
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
|
||||
test ! -f $lt_ac_sed && break
|
||||
test ! -f $lt_ac_sed && continue
|
||||
cat /dev/null > conftest.in
|
||||
lt_ac_count=0
|
||||
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
|
||||
|
@ -1,4 +1,7 @@
|
||||
#!/bin/sh -ex
|
||||
#
|
||||
# $P4: //depot/projects/openpam/autogen.sh#2 $
|
||||
#
|
||||
|
||||
libtoolize --copy --force
|
||||
aclocal
|
||||
|
@ -1 +1,3 @@
|
||||
# $P4: //depot/projects/openpam/bin/Makefile.am#2 $
|
||||
|
||||
SUBDIRS = su
|
||||
|
@ -13,6 +13,8 @@
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
# $P4: //depot/projects/openpam/bin/Makefile.am#2 $
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
@ -1,3 +1,5 @@
|
||||
# $P4: //depot/projects/openpam/bin/su/Makefile.am#2 $
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/include
|
||||
|
||||
if WITH_PAM_SU
|
||||
|
@ -14,6 +14,8 @@
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
# $P4: //depot/projects/openpam/bin/su/Makefile.am#2 $
|
||||
|
||||
SOURCES = $(su_SOURCES)
|
||||
|
||||
srcdir = @srcdir@
|
||||
|
340
contrib/openpam/configure
vendored
340
contrib/openpam/configure
vendored
@ -2718,7 +2718,7 @@ lt_ac_count=0
|
||||
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
|
||||
# along with /bin/sed that truncates output.
|
||||
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
|
||||
test ! -f $lt_ac_sed && break
|
||||
test ! -f $lt_ac_sed && continue
|
||||
cat /dev/null > conftest.in
|
||||
lt_ac_count=0
|
||||
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
|
||||
@ -3005,13 +3005,13 @@ darwin* | rhapsody*)
|
||||
lt_cv_deplibs_check_method=pass_all
|
||||
;;
|
||||
|
||||
freebsd* | kfreebsd*-gnu)
|
||||
freebsd* | kfreebsd*-gnu | dragonfly*)
|
||||
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
||||
case $host_cpu in
|
||||
i*86 )
|
||||
# Not sure whether the presence of OpenBSD here was a mistake.
|
||||
# Let's accept both of them until this is cleared up.
|
||||
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
|
||||
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
|
||||
lt_cv_file_magic_cmd=/usr/bin/file
|
||||
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
||||
;;
|
||||
@ -4832,7 +4832,7 @@ else
|
||||
lt_cv_sys_max_cmd_len=8192;
|
||||
;;
|
||||
|
||||
netbsd* | freebsd* | openbsd* | darwin* )
|
||||
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
|
||||
# This has been around since 386BSD, at least. Likely further.
|
||||
if test -x /sbin/sysctl; then
|
||||
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
||||
@ -4844,8 +4844,20 @@ else
|
||||
# And add a safety zone
|
||||
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
||||
;;
|
||||
|
||||
*)
|
||||
osf*)
|
||||
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
||||
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
||||
# nice to cause kernel panics so lets avoid the loop below.
|
||||
# First set a reasonable default.
|
||||
lt_cv_sys_max_cmd_len=16384
|
||||
#
|
||||
if test -x /sbin/sysconfig; then
|
||||
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
||||
*1*) lt_cv_sys_max_cmd_len=-1 ;;
|
||||
esac
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
# If test is not a shell built-in, we'll probably end up computing a
|
||||
# maximum length that is only half of the actual maximum length, but
|
||||
# we can't tell.
|
||||
@ -4896,9 +4908,6 @@ symcode='[BCDEGRST]'
|
||||
# Regexp to match symbols that can be accessed directly from C.
|
||||
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
|
||||
|
||||
# Transform the above into a raw symbol and a C symbol.
|
||||
symxfrm='\1 \2\3 \3'
|
||||
|
||||
# Transform an extracted symbol line into a proper C declaration
|
||||
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
|
||||
|
||||
@ -4958,8 +4967,11 @@ esac
|
||||
# Try without a prefix undercore, then with it.
|
||||
for ac_symprfx in "" "_"; do
|
||||
|
||||
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
||||
symxfrm="\\1 $ac_symprfx\\2 \\2"
|
||||
|
||||
# Write the raw and C identifiers.
|
||||
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
|
||||
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
||||
|
||||
# Check to see that the pipe works correctly.
|
||||
pipe_works=no
|
||||
@ -5699,11 +5711,11 @@ else
|
||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||
-e 's:$: $lt_compiler_flag:'`
|
||||
(eval echo "\"\$as_me:5702: $lt_compile\"" >&5)
|
||||
(eval echo "\"\$as_me:5714: $lt_compile\"" >&5)
|
||||
(eval "$lt_compile" 2>conftest.err)
|
||||
ac_status=$?
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:5706: \$? = $ac_status" >&5
|
||||
echo "$as_me:5718: \$? = $ac_status" >&5
|
||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||
# The compiler can only warn and ignore the option if not recognized
|
||||
# So say no if there are warnings
|
||||
@ -5855,12 +5867,19 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
|
||||
;;
|
||||
|
||||
linux*)
|
||||
case $CC in
|
||||
case $cc_basename in
|
||||
icc* | ecc*)
|
||||
lt_prog_compiler_wl='-Wl,'
|
||||
lt_prog_compiler_pic='-KPIC'
|
||||
lt_prog_compiler_static='-static'
|
||||
;;
|
||||
pgcc | pgf77 | pgf90)
|
||||
# Portland Group compilers (*not* the Pentium gcc compiler,
|
||||
# which looks to be a dead project)
|
||||
lt_prog_compiler_wl='-Wl,'
|
||||
lt_prog_compiler_pic='-fpic'
|
||||
lt_prog_compiler_static='-static'
|
||||
;;
|
||||
ccc*)
|
||||
lt_prog_compiler_wl='-Wl,'
|
||||
# All Alpha code is PIC.
|
||||
@ -5905,6 +5924,11 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
|
||||
fi
|
||||
;;
|
||||
|
||||
unicos*)
|
||||
lt_prog_compiler_wl='-Wl,'
|
||||
lt_prog_compiler_can_build_shared=no
|
||||
;;
|
||||
|
||||
uts4*)
|
||||
lt_prog_compiler_pic='-pic'
|
||||
lt_prog_compiler_static='-Bstatic'
|
||||
@ -5942,11 +5966,11 @@ else
|
||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||
-e 's:$: $lt_compiler_flag:'`
|
||||
(eval echo "\"\$as_me:5945: $lt_compile\"" >&5)
|
||||
(eval echo "\"\$as_me:5969: $lt_compile\"" >&5)
|
||||
(eval "$lt_compile" 2>conftest.err)
|
||||
ac_status=$?
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:5949: \$? = $ac_status" >&5
|
||||
echo "$as_me:5973: \$? = $ac_status" >&5
|
||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||
# The compiler can only warn and ignore the option if not recognized
|
||||
# So say no if there are warnings
|
||||
@ -6002,11 +6026,11 @@ else
|
||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||
-e 's:$: $lt_compiler_flag:'`
|
||||
(eval echo "\"\$as_me:6005: $lt_compile\"" >&5)
|
||||
(eval echo "\"\$as_me:6029: $lt_compile\"" >&5)
|
||||
(eval "$lt_compile" 2>out/conftest.err)
|
||||
ac_status=$?
|
||||
cat out/conftest.err >&5
|
||||
echo "$as_me:6009: \$? = $ac_status" >&5
|
||||
echo "$as_me:6033: \$? = $ac_status" >&5
|
||||
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
||||
then
|
||||
# The compiler can only warn and ignore the option if not recognized
|
||||
@ -6161,7 +6185,7 @@ EOF
|
||||
allow_undefined_flag=unsupported
|
||||
always_export_symbols=no
|
||||
enable_shared_with_static_runtimes=yes
|
||||
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
|
||||
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
|
||||
|
||||
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
||||
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
||||
@ -6219,11 +6243,21 @@ EOF
|
||||
|
||||
linux*)
|
||||
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
||||
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
||||
archive_cmds="$tmp_archive_cmds"
|
||||
tmp_addflag=
|
||||
case $CC,$host_cpu in
|
||||
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
|
||||
tmp_addflag=' -fpic' ;;
|
||||
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
||||
tmp_addflag=' -i_dynamic' ;;
|
||||
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
||||
tmp_addflag=' -i_dynamic -nofor_main' ;;
|
||||
ifc* | ifort*) # Intel Fortran compiler
|
||||
tmp_addflag=' -nofor_main' ;;
|
||||
esac
|
||||
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
||||
supports_anon_versioning=no
|
||||
case `$LD -v 2>/dev/null` in
|
||||
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
||||
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
||||
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
||||
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
||||
*\ 2.11.*) ;; # other 2.11 versions
|
||||
@ -6233,9 +6267,9 @@ EOF
|
||||
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
|
||||
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
||||
$echo "local: *; };" >> $output_objdir/$libname.ver~
|
||||
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
||||
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
||||
else
|
||||
archive_expsym_cmds="$tmp_archive_cmds"
|
||||
archive_expsym_cmds=$archive_cmds
|
||||
fi
|
||||
else
|
||||
ld_shlibs=no
|
||||
@ -6325,7 +6359,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
|
||||
link_all_deplibs=yes
|
||||
|
||||
if test "$GCC" = yes; then
|
||||
case $host_os in aix4.012|aix4.012.*)
|
||||
case $host_os in aix4.[012]|aix4.[012].*)
|
||||
# We only want to do this on AIX 4.2 and lower, the check
|
||||
# below for broken collect2 doesn't work under 4.3+
|
||||
collect2name=`${CC} -print-prog-name=collect2`
|
||||
@ -6346,6 +6380,9 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
|
||||
fi
|
||||
esac
|
||||
shared_flag='-shared'
|
||||
if test "$aix_use_runtimelinking" = yes; then
|
||||
shared_flag="$shared_flag "'${wl}-G'
|
||||
fi
|
||||
else
|
||||
# not using gcc
|
||||
if test "$host_cpu" = ia64; then
|
||||
@ -6611,7 +6648,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
||||
;;
|
||||
|
||||
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
||||
freebsd* | kfreebsd*-gnu)
|
||||
freebsd* | kfreebsd*-gnu | dragonfly*)
|
||||
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
||||
hardcode_libdir_flag_spec='-R$libdir'
|
||||
hardcode_direct=yes
|
||||
@ -6800,7 +6837,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
||||
case $host_os in
|
||||
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
||||
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
|
||||
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
|
||||
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
|
||||
esac
|
||||
link_all_deplibs=yes
|
||||
;;
|
||||
@ -7132,7 +7169,7 @@ cygwin* | mingw* | pw32*)
|
||||
;;
|
||||
pw32*)
|
||||
# pw32 DLLs use 'pw' prefix rather than 'lib'
|
||||
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
|
||||
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
@ -7190,7 +7227,9 @@ kfreebsd*-gnu)
|
||||
dynamic_linker='GNU ld.so'
|
||||
;;
|
||||
|
||||
freebsd*)
|
||||
freebsd* | dragonfly*)
|
||||
# DragonFly does not have aout. When/if they implement a new
|
||||
# versioning mechanism, adjust this.
|
||||
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
|
||||
version_type=freebsd-$objformat
|
||||
case $version_type in
|
||||
@ -7209,7 +7248,7 @@ freebsd*)
|
||||
freebsd2*)
|
||||
shlibpath_overrides_runpath=yes
|
||||
;;
|
||||
freebsd3.01* | freebsdelf3.01*)
|
||||
freebsd3.[01]* | freebsdelf3.[01]*)
|
||||
shlibpath_overrides_runpath=yes
|
||||
hardcode_into_libs=yes
|
||||
;;
|
||||
@ -7335,7 +7374,7 @@ linux*)
|
||||
|
||||
# Append ld.so.conf contents to the search path
|
||||
if test -f /etc/ld.so.conf; then
|
||||
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
|
||||
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
||||
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
||||
fi
|
||||
|
||||
@ -8187,7 +8226,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 8190 "configure"
|
||||
#line 8229 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@ -8285,7 +8324,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 8288 "configure"
|
||||
#line 8327 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@ -8588,6 +8627,12 @@ fast_install=$enable_fast_install
|
||||
# The host system.
|
||||
host_alias=$host_alias
|
||||
host=$host
|
||||
host_os=$host_os
|
||||
|
||||
# The build system.
|
||||
build_alias=$build_alias
|
||||
build=$build
|
||||
build_os=$build_os
|
||||
|
||||
# An echo program that does not interpret backslashes.
|
||||
echo=$lt_echo
|
||||
@ -9254,7 +9299,7 @@ case $host_os in
|
||||
link_all_deplibs_CXX=yes
|
||||
|
||||
if test "$GXX" = yes; then
|
||||
case $host_os in aix4.012|aix4.012.*)
|
||||
case $host_os in aix4.[012]|aix4.[012].*)
|
||||
# We only want to do this on AIX 4.2 and lower, the check
|
||||
# below for broken collect2 doesn't work under 4.3+
|
||||
collect2name=`${CC} -print-prog-name=collect2`
|
||||
@ -9275,6 +9320,9 @@ case $host_os in
|
||||
fi
|
||||
esac
|
||||
shared_flag='-shared'
|
||||
if test "$aix_use_runtimelinking" = yes; then
|
||||
shared_flag="$shared_flag "'${wl}-G'
|
||||
fi
|
||||
else
|
||||
# not using gcc
|
||||
if test "$host_cpu" = ia64; then
|
||||
@ -9540,14 +9588,14 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
freebsd12*)
|
||||
freebsd[12]*)
|
||||
# C++ shared libraries reported to be fairly broken before switch to ELF
|
||||
ld_shlibs_CXX=no
|
||||
;;
|
||||
freebsd-elf*)
|
||||
archive_cmds_need_lc_CXX=no
|
||||
;;
|
||||
freebsd* | kfreebsd*-gnu)
|
||||
freebsd* | kfreebsd*-gnu | dragonfly*)
|
||||
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
|
||||
# conventions
|
||||
ld_shlibs_CXX=yes
|
||||
@ -9578,7 +9626,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
||||
# explicitly linking system object files so we need to strip them
|
||||
# from the output so that they don't get included in the library
|
||||
# dependencies.
|
||||
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'
|
||||
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'
|
||||
;;
|
||||
*)
|
||||
if test "$GXX" = yes; then
|
||||
@ -9736,8 +9784,12 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
||||
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
||||
;;
|
||||
*) # Version 8.0 or newer
|
||||
archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
||||
archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
||||
tmp_idyn=
|
||||
case $host_cpu in
|
||||
ia64*) tmp_idyn=' -i_dynamic';;
|
||||
esac
|
||||
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
||||
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
||||
;;
|
||||
esac
|
||||
archive_cmds_need_lc_CXX=no
|
||||
@ -9745,6 +9797,14 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
||||
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
|
||||
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
|
||||
;;
|
||||
pgCC)
|
||||
# Portland Group C++ compiler
|
||||
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
|
||||
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
|
||||
|
||||
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
|
||||
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
|
||||
;;
|
||||
cxx)
|
||||
# Compaq C++
|
||||
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
||||
@ -9983,7 +10043,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
||||
hardcode_libdir_flag_spec_CXX='-R$libdir'
|
||||
hardcode_shlibpath_var_CXX=no
|
||||
case $host_os in
|
||||
solaris2.0-5 | solaris2.0-5.*) ;;
|
||||
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
||||
*)
|
||||
# The C++ compiler is used as linker so we must use $wl
|
||||
# flag to pass the commands to the underlying system
|
||||
@ -10291,7 +10351,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
freebsd* | kfreebsd*-gnu)
|
||||
freebsd* | kfreebsd*-gnu | dragonfly*)
|
||||
# FreeBSD uses GNU C++
|
||||
;;
|
||||
hpux9* | hpux10* | hpux11*)
|
||||
@ -10337,12 +10397,18 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
|
||||
lt_prog_compiler_wl_CXX='--backend -Wl,'
|
||||
lt_prog_compiler_pic_CXX='-fPIC'
|
||||
;;
|
||||
icpc)
|
||||
icpc* | ecpc*)
|
||||
# Intel C++
|
||||
lt_prog_compiler_wl_CXX='-Wl,'
|
||||
lt_prog_compiler_pic_CXX='-KPIC'
|
||||
lt_prog_compiler_static_CXX='-static'
|
||||
;;
|
||||
pgCC)
|
||||
# Portland Group C++ compiler.
|
||||
lt_prog_compiler_wl_CXX='-Wl,'
|
||||
lt_prog_compiler_pic_CXX='-fpic'
|
||||
lt_prog_compiler_static_CXX='-static'
|
||||
;;
|
||||
cxx)
|
||||
# Compaq C++
|
||||
# Make sure the PIC flag is empty. It appears that all Alpha
|
||||
@ -10478,11 +10544,11 @@ else
|
||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||
-e 's:$: $lt_compiler_flag:'`
|
||||
(eval echo "\"\$as_me:10481: $lt_compile\"" >&5)
|
||||
(eval echo "\"\$as_me:10547: $lt_compile\"" >&5)
|
||||
(eval "$lt_compile" 2>conftest.err)
|
||||
ac_status=$?
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:10485: \$? = $ac_status" >&5
|
||||
echo "$as_me:10551: \$? = $ac_status" >&5
|
||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||
# The compiler can only warn and ignore the option if not recognized
|
||||
# So say no if there are warnings
|
||||
@ -10538,11 +10604,11 @@ else
|
||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||
-e 's:$: $lt_compiler_flag:'`
|
||||
(eval echo "\"\$as_me:10541: $lt_compile\"" >&5)
|
||||
(eval echo "\"\$as_me:10607: $lt_compile\"" >&5)
|
||||
(eval "$lt_compile" 2>out/conftest.err)
|
||||
ac_status=$?
|
||||
cat out/conftest.err >&5
|
||||
echo "$as_me:10545: \$? = $ac_status" >&5
|
||||
echo "$as_me:10611: \$? = $ac_status" >&5
|
||||
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
||||
then
|
||||
# The compiler can only warn and ignore the option if not recognized
|
||||
@ -10606,7 +10672,7 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
|
||||
export_symbols_cmds_CXX="$ltdll_cmds"
|
||||
;;
|
||||
cygwin* | mingw*)
|
||||
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
|
||||
export_symbols_cmds_CXX='$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'
|
||||
;;
|
||||
*)
|
||||
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
||||
@ -10844,7 +10910,7 @@ cygwin* | mingw* | pw32*)
|
||||
;;
|
||||
pw32*)
|
||||
# pw32 DLLs use 'pw' prefix rather than 'lib'
|
||||
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
|
||||
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
@ -10902,7 +10968,9 @@ kfreebsd*-gnu)
|
||||
dynamic_linker='GNU ld.so'
|
||||
;;
|
||||
|
||||
freebsd*)
|
||||
freebsd* | dragonfly*)
|
||||
# DragonFly does not have aout. When/if they implement a new
|
||||
# versioning mechanism, adjust this.
|
||||
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
|
||||
version_type=freebsd-$objformat
|
||||
case $version_type in
|
||||
@ -10921,7 +10989,7 @@ freebsd*)
|
||||
freebsd2*)
|
||||
shlibpath_overrides_runpath=yes
|
||||
;;
|
||||
freebsd3.01* | freebsdelf3.01*)
|
||||
freebsd3.[01]* | freebsdelf3.[01]*)
|
||||
shlibpath_overrides_runpath=yes
|
||||
hardcode_into_libs=yes
|
||||
;;
|
||||
@ -11047,7 +11115,7 @@ linux*)
|
||||
|
||||
# Append ld.so.conf contents to the search path
|
||||
if test -f /etc/ld.so.conf; then
|
||||
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
|
||||
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
||||
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
||||
fi
|
||||
|
||||
@ -11899,7 +11967,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 11902 "configure"
|
||||
#line 11970 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@ -11997,7 +12065,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 12000 "configure"
|
||||
#line 12068 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@ -12215,6 +12283,12 @@ fast_install=$enable_fast_install
|
||||
# The host system.
|
||||
host_alias=$host_alias
|
||||
host=$host
|
||||
host_os=$host_os
|
||||
|
||||
# The build system.
|
||||
build_alias=$build_alias
|
||||
build=$build
|
||||
build_os=$build_os
|
||||
|
||||
# An echo program that does not interpret backslashes.
|
||||
echo=$lt_echo
|
||||
@ -12747,12 +12821,19 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
|
||||
;;
|
||||
|
||||
linux*)
|
||||
case $CC in
|
||||
case $cc_basename in
|
||||
icc* | ecc*)
|
||||
lt_prog_compiler_wl_F77='-Wl,'
|
||||
lt_prog_compiler_pic_F77='-KPIC'
|
||||
lt_prog_compiler_static_F77='-static'
|
||||
;;
|
||||
pgcc | pgf77 | pgf90)
|
||||
# Portland Group compilers (*not* the Pentium gcc compiler,
|
||||
# which looks to be a dead project)
|
||||
lt_prog_compiler_wl_F77='-Wl,'
|
||||
lt_prog_compiler_pic_F77='-fpic'
|
||||
lt_prog_compiler_static_F77='-static'
|
||||
;;
|
||||
ccc*)
|
||||
lt_prog_compiler_wl_F77='-Wl,'
|
||||
# All Alpha code is PIC.
|
||||
@ -12797,6 +12878,11 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
|
||||
fi
|
||||
;;
|
||||
|
||||
unicos*)
|
||||
lt_prog_compiler_wl_F77='-Wl,'
|
||||
lt_prog_compiler_can_build_shared_F77=no
|
||||
;;
|
||||
|
||||
uts4*)
|
||||
lt_prog_compiler_pic_F77='-pic'
|
||||
lt_prog_compiler_static_F77='-Bstatic'
|
||||
@ -12834,11 +12920,11 @@ else
|
||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||
-e 's:$: $lt_compiler_flag:'`
|
||||
(eval echo "\"\$as_me:12837: $lt_compile\"" >&5)
|
||||
(eval echo "\"\$as_me:12923: $lt_compile\"" >&5)
|
||||
(eval "$lt_compile" 2>conftest.err)
|
||||
ac_status=$?
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:12841: \$? = $ac_status" >&5
|
||||
echo "$as_me:12927: \$? = $ac_status" >&5
|
||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||
# The compiler can only warn and ignore the option if not recognized
|
||||
# So say no if there are warnings
|
||||
@ -12894,11 +12980,11 @@ else
|
||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||
-e 's:$: $lt_compiler_flag:'`
|
||||
(eval echo "\"\$as_me:12897: $lt_compile\"" >&5)
|
||||
(eval echo "\"\$as_me:12983: $lt_compile\"" >&5)
|
||||
(eval "$lt_compile" 2>out/conftest.err)
|
||||
ac_status=$?
|
||||
cat out/conftest.err >&5
|
||||
echo "$as_me:12901: \$? = $ac_status" >&5
|
||||
echo "$as_me:12987: \$? = $ac_status" >&5
|
||||
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
||||
then
|
||||
# The compiler can only warn and ignore the option if not recognized
|
||||
@ -13053,7 +13139,7 @@ EOF
|
||||
allow_undefined_flag_F77=unsupported
|
||||
always_export_symbols_F77=no
|
||||
enable_shared_with_static_runtimes_F77=yes
|
||||
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
|
||||
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
|
||||
|
||||
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
||||
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
||||
@ -13067,7 +13153,7 @@ EOF
|
||||
fi~
|
||||
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
||||
else
|
||||
ld_shlibs=no
|
||||
ld_shlibs_F77=no
|
||||
fi
|
||||
;;
|
||||
|
||||
@ -13111,11 +13197,21 @@ EOF
|
||||
|
||||
linux*)
|
||||
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
||||
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
||||
archive_cmds_F77="$tmp_archive_cmds"
|
||||
tmp_addflag=
|
||||
case $CC,$host_cpu in
|
||||
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
|
||||
tmp_addflag=' -fpic' ;;
|
||||
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
||||
tmp_addflag=' -i_dynamic' ;;
|
||||
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
||||
tmp_addflag=' -i_dynamic -nofor_main' ;;
|
||||
ifc* | ifort*) # Intel Fortran compiler
|
||||
tmp_addflag=' -nofor_main' ;;
|
||||
esac
|
||||
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
||||
supports_anon_versioning=no
|
||||
case `$LD -v 2>/dev/null` in
|
||||
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
||||
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
||||
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
||||
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
||||
*\ 2.11.*) ;; # other 2.11 versions
|
||||
@ -13125,9 +13221,9 @@ EOF
|
||||
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
|
||||
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
||||
$echo "local: *; };" >> $output_objdir/$libname.ver~
|
||||
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
||||
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
||||
else
|
||||
archive_expsym_cmds_F77="$tmp_archive_cmds"
|
||||
archive_expsym_cmds_F77=$archive_cmds_F77
|
||||
fi
|
||||
else
|
||||
ld_shlibs_F77=no
|
||||
@ -13217,7 +13313,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
|
||||
link_all_deplibs_F77=yes
|
||||
|
||||
if test "$GCC" = yes; then
|
||||
case $host_os in aix4.012|aix4.012.*)
|
||||
case $host_os in aix4.[012]|aix4.[012].*)
|
||||
# We only want to do this on AIX 4.2 and lower, the check
|
||||
# below for broken collect2 doesn't work under 4.3+
|
||||
collect2name=`${CC} -print-prog-name=collect2`
|
||||
@ -13238,6 +13334,9 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
|
||||
fi
|
||||
esac
|
||||
shared_flag='-shared'
|
||||
if test "$aix_use_runtimelinking" = yes; then
|
||||
shared_flag="$shared_flag "'${wl}-G'
|
||||
fi
|
||||
else
|
||||
# not using gcc
|
||||
if test "$host_cpu" = ia64; then
|
||||
@ -13399,7 +13498,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
||||
old_archive_From_new_cmds_F77='true'
|
||||
# FIXME: Should let the user specify the lib program.
|
||||
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
|
||||
fix_srcfile_path='`cygpath -w "$srcfile"`'
|
||||
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
|
||||
enable_shared_with_static_runtimes_F77=yes
|
||||
;;
|
||||
|
||||
@ -13483,7 +13582,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
||||
;;
|
||||
|
||||
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
||||
freebsd* | kfreebsd*-gnu)
|
||||
freebsd* | kfreebsd*-gnu | dragonfly*)
|
||||
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
||||
hardcode_libdir_flag_spec_F77='-R$libdir'
|
||||
hardcode_direct_F77=yes
|
||||
@ -13672,7 +13771,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
||||
case $host_os in
|
||||
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
||||
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
|
||||
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
|
||||
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
|
||||
esac
|
||||
link_all_deplibs_F77=yes
|
||||
;;
|
||||
@ -14004,7 +14103,7 @@ cygwin* | mingw* | pw32*)
|
||||
;;
|
||||
pw32*)
|
||||
# pw32 DLLs use 'pw' prefix rather than 'lib'
|
||||
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
|
||||
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
@ -14062,7 +14161,9 @@ kfreebsd*-gnu)
|
||||
dynamic_linker='GNU ld.so'
|
||||
;;
|
||||
|
||||
freebsd*)
|
||||
freebsd* | dragonfly*)
|
||||
# DragonFly does not have aout. When/if they implement a new
|
||||
# versioning mechanism, adjust this.
|
||||
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
|
||||
version_type=freebsd-$objformat
|
||||
case $version_type in
|
||||
@ -14081,7 +14182,7 @@ freebsd*)
|
||||
freebsd2*)
|
||||
shlibpath_overrides_runpath=yes
|
||||
;;
|
||||
freebsd3.01* | freebsdelf3.01*)
|
||||
freebsd3.[01]* | freebsdelf3.[01]*)
|
||||
shlibpath_overrides_runpath=yes
|
||||
hardcode_into_libs=yes
|
||||
;;
|
||||
@ -14207,7 +14308,7 @@ linux*)
|
||||
|
||||
# Append ld.so.conf contents to the search path
|
||||
if test -f /etc/ld.so.conf; then
|
||||
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
|
||||
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
||||
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
||||
fi
|
||||
|
||||
@ -14570,6 +14671,12 @@ fast_install=$enable_fast_install
|
||||
# The host system.
|
||||
host_alias=$host_alias
|
||||
host=$host
|
||||
host_os=$host_os
|
||||
|
||||
# The build system.
|
||||
build_alias=$build_alias
|
||||
build=$build
|
||||
build_os=$build_os
|
||||
|
||||
# An echo program that does not interpret backslashes.
|
||||
echo=$lt_echo
|
||||
@ -14884,7 +14991,7 @@ objext_GCJ=$objext
|
||||
lt_simple_compile_test_code="class foo {}\n"
|
||||
|
||||
# Code to be used in simple link tests
|
||||
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
|
||||
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
|
||||
|
||||
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
|
||||
|
||||
@ -14929,11 +15036,11 @@ else
|
||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||
-e 's:$: $lt_compiler_flag:'`
|
||||
(eval echo "\"\$as_me:14932: $lt_compile\"" >&5)
|
||||
(eval echo "\"\$as_me:15039: $lt_compile\"" >&5)
|
||||
(eval "$lt_compile" 2>conftest.err)
|
||||
ac_status=$?
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:14936: \$? = $ac_status" >&5
|
||||
echo "$as_me:15043: \$? = $ac_status" >&5
|
||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||
# The compiler can only warn and ignore the option if not recognized
|
||||
# So say no if there are warnings
|
||||
@ -15085,12 +15192,19 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
|
||||
;;
|
||||
|
||||
linux*)
|
||||
case $CC in
|
||||
case $cc_basename in
|
||||
icc* | ecc*)
|
||||
lt_prog_compiler_wl_GCJ='-Wl,'
|
||||
lt_prog_compiler_pic_GCJ='-KPIC'
|
||||
lt_prog_compiler_static_GCJ='-static'
|
||||
;;
|
||||
pgcc | pgf77 | pgf90)
|
||||
# Portland Group compilers (*not* the Pentium gcc compiler,
|
||||
# which looks to be a dead project)
|
||||
lt_prog_compiler_wl_GCJ='-Wl,'
|
||||
lt_prog_compiler_pic_GCJ='-fpic'
|
||||
lt_prog_compiler_static_GCJ='-static'
|
||||
;;
|
||||
ccc*)
|
||||
lt_prog_compiler_wl_GCJ='-Wl,'
|
||||
# All Alpha code is PIC.
|
||||
@ -15135,6 +15249,11 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
|
||||
fi
|
||||
;;
|
||||
|
||||
unicos*)
|
||||
lt_prog_compiler_wl_GCJ='-Wl,'
|
||||
lt_prog_compiler_can_build_shared_GCJ=no
|
||||
;;
|
||||
|
||||
uts4*)
|
||||
lt_prog_compiler_pic_GCJ='-pic'
|
||||
lt_prog_compiler_static_GCJ='-Bstatic'
|
||||
@ -15172,11 +15291,11 @@ else
|
||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||
-e 's:$: $lt_compiler_flag:'`
|
||||
(eval echo "\"\$as_me:15175: $lt_compile\"" >&5)
|
||||
(eval echo "\"\$as_me:15294: $lt_compile\"" >&5)
|
||||
(eval "$lt_compile" 2>conftest.err)
|
||||
ac_status=$?
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:15179: \$? = $ac_status" >&5
|
||||
echo "$as_me:15298: \$? = $ac_status" >&5
|
||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||
# The compiler can only warn and ignore the option if not recognized
|
||||
# So say no if there are warnings
|
||||
@ -15232,11 +15351,11 @@ else
|
||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||
-e 's:$: $lt_compiler_flag:'`
|
||||
(eval echo "\"\$as_me:15235: $lt_compile\"" >&5)
|
||||
(eval echo "\"\$as_me:15354: $lt_compile\"" >&5)
|
||||
(eval "$lt_compile" 2>out/conftest.err)
|
||||
ac_status=$?
|
||||
cat out/conftest.err >&5
|
||||
echo "$as_me:15239: \$? = $ac_status" >&5
|
||||
echo "$as_me:15358: \$? = $ac_status" >&5
|
||||
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
||||
then
|
||||
# The compiler can only warn and ignore the option if not recognized
|
||||
@ -15391,7 +15510,7 @@ EOF
|
||||
allow_undefined_flag_GCJ=unsupported
|
||||
always_export_symbols_GCJ=no
|
||||
enable_shared_with_static_runtimes_GCJ=yes
|
||||
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
|
||||
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
|
||||
|
||||
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
|
||||
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
||||
@ -15405,7 +15524,7 @@ EOF
|
||||
fi~
|
||||
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
|
||||
else
|
||||
ld_shlibs=no
|
||||
ld_shlibs_GCJ=no
|
||||
fi
|
||||
;;
|
||||
|
||||
@ -15449,11 +15568,21 @@ EOF
|
||||
|
||||
linux*)
|
||||
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
|
||||
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
||||
archive_cmds_GCJ="$tmp_archive_cmds"
|
||||
tmp_addflag=
|
||||
case $CC,$host_cpu in
|
||||
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
|
||||
tmp_addflag=' -fpic' ;;
|
||||
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
||||
tmp_addflag=' -i_dynamic' ;;
|
||||
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
||||
tmp_addflag=' -i_dynamic -nofor_main' ;;
|
||||
ifc* | ifort*) # Intel Fortran compiler
|
||||
tmp_addflag=' -nofor_main' ;;
|
||||
esac
|
||||
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
||||
supports_anon_versioning=no
|
||||
case `$LD -v 2>/dev/null` in
|
||||
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
||||
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
||||
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
||||
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
||||
*\ 2.11.*) ;; # other 2.11 versions
|
||||
@ -15463,9 +15592,9 @@ EOF
|
||||
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
|
||||
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
||||
$echo "local: *; };" >> $output_objdir/$libname.ver~
|
||||
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
||||
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
|
||||
else
|
||||
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
|
||||
archive_expsym_cmds_GCJ=$archive_cmds_GCJ
|
||||
fi
|
||||
else
|
||||
ld_shlibs_GCJ=no
|
||||
@ -15555,7 +15684,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
|
||||
link_all_deplibs_GCJ=yes
|
||||
|
||||
if test "$GCC" = yes; then
|
||||
case $host_os in aix4.012|aix4.012.*)
|
||||
case $host_os in aix4.[012]|aix4.[012].*)
|
||||
# We only want to do this on AIX 4.2 and lower, the check
|
||||
# below for broken collect2 doesn't work under 4.3+
|
||||
collect2name=`${CC} -print-prog-name=collect2`
|
||||
@ -15576,6 +15705,9 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
|
||||
fi
|
||||
esac
|
||||
shared_flag='-shared'
|
||||
if test "$aix_use_runtimelinking" = yes; then
|
||||
shared_flag="$shared_flag "'${wl}-G'
|
||||
fi
|
||||
else
|
||||
# not using gcc
|
||||
if test "$host_cpu" = ia64; then
|
||||
@ -15757,7 +15889,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
||||
old_archive_From_new_cmds_GCJ='true'
|
||||
# FIXME: Should let the user specify the lib program.
|
||||
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
|
||||
fix_srcfile_path='`cygpath -w "$srcfile"`'
|
||||
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
|
||||
enable_shared_with_static_runtimes_GCJ=yes
|
||||
;;
|
||||
|
||||
@ -15841,7 +15973,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
||||
;;
|
||||
|
||||
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
||||
freebsd* | kfreebsd*-gnu)
|
||||
freebsd* | kfreebsd*-gnu | dragonfly*)
|
||||
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
|
||||
hardcode_libdir_flag_spec_GCJ='-R$libdir'
|
||||
hardcode_direct_GCJ=yes
|
||||
@ -16030,7 +16162,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
|
||||
case $host_os in
|
||||
solaris2.[0-5] | solaris2.[0-5].*) ;;
|
||||
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
|
||||
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
|
||||
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
|
||||
esac
|
||||
link_all_deplibs_GCJ=yes
|
||||
;;
|
||||
@ -16362,7 +16494,7 @@ cygwin* | mingw* | pw32*)
|
||||
;;
|
||||
pw32*)
|
||||
# pw32 DLLs use 'pw' prefix rather than 'lib'
|
||||
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
|
||||
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
@ -16420,7 +16552,9 @@ kfreebsd*-gnu)
|
||||
dynamic_linker='GNU ld.so'
|
||||
;;
|
||||
|
||||
freebsd*)
|
||||
freebsd* | dragonfly*)
|
||||
# DragonFly does not have aout. When/if they implement a new
|
||||
# versioning mechanism, adjust this.
|
||||
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
|
||||
version_type=freebsd-$objformat
|
||||
case $version_type in
|
||||
@ -16439,7 +16573,7 @@ freebsd*)
|
||||
freebsd2*)
|
||||
shlibpath_overrides_runpath=yes
|
||||
;;
|
||||
freebsd3.01* | freebsdelf3.01*)
|
||||
freebsd3.[01]* | freebsdelf3.[01]*)
|
||||
shlibpath_overrides_runpath=yes
|
||||
hardcode_into_libs=yes
|
||||
;;
|
||||
@ -16565,7 +16699,7 @@ linux*)
|
||||
|
||||
# Append ld.so.conf contents to the search path
|
||||
if test -f /etc/ld.so.conf; then
|
||||
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
|
||||
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
|
||||
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
||||
fi
|
||||
|
||||
@ -17417,7 +17551,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 17420 "configure"
|
||||
#line 17554 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@ -17515,7 +17649,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 17518 "configure"
|
||||
#line 17652 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@ -17733,6 +17867,12 @@ fast_install=$enable_fast_install
|
||||
# The host system.
|
||||
host_alias=$host_alias
|
||||
host=$host
|
||||
host_os=$host_os
|
||||
|
||||
# The build system.
|
||||
build_alias=$build_alias
|
||||
build=$build
|
||||
build_os=$build_os
|
||||
|
||||
# An echo program that does not interpret backslashes.
|
||||
echo=$lt_echo
|
||||
@ -18178,6 +18318,12 @@ fast_install=$enable_fast_install
|
||||
# The host system.
|
||||
host_alias=$host_alias
|
||||
host=$host
|
||||
host_os=$host_os
|
||||
|
||||
# The build system.
|
||||
build_alias=$build_alias
|
||||
build=$build
|
||||
build_os=$build_os
|
||||
|
||||
# An echo program that does not interpret backslashes.
|
||||
echo=$lt_echo
|
||||
|
@ -1 +1,3 @@
|
||||
# $P4: //depot/projects/openpam/doc/Makefile.am#2 $
|
||||
|
||||
SUBDIRS = man
|
||||
|
@ -13,6 +13,8 @@
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
# $P4: //depot/projects/openpam/doc/Makefile.am#2 $
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
@ -1,3 +1,5 @@
|
||||
# $P4: //depot/projects/openpam/doc/man/Makefile.am#3 $
|
||||
|
||||
NULL =
|
||||
|
||||
# Standard PAM API
|
||||
@ -58,6 +60,8 @@ LINKS= $(ALLCMAN:.3=.c)
|
||||
|
||||
man3_MANS = $(ALLCMAN) openpam.3 pam.3 pam_conv.3
|
||||
|
||||
man5_MANS = pam.conf.5
|
||||
|
||||
CLEANFILES = $(ALLCMAN) $(LINKS) openpam.3 pam.3 symlink-stamp
|
||||
|
||||
GENDOC = $(top_srcdir)/misc/gendoc.pl
|
||||
|
@ -13,6 +13,8 @@
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
# $P4: //depot/projects/openpam/doc/man/Makefile.am#3 $
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
@ -48,9 +50,10 @@ CONFIG_CLEAN_FILES =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
man3dir = $(mandir)/man3
|
||||
am__installdirs = "$(DESTDIR)$(man3dir)"
|
||||
am__installdirs = "$(DESTDIR)$(man3dir)" "$(DESTDIR)$(man5dir)"
|
||||
man5dir = $(mandir)/man5
|
||||
NROFF = nroff
|
||||
MANS = $(man3_MANS)
|
||||
MANS = $(man3_MANS) $(man5_MANS)
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMDEP_FALSE = @AMDEP_FALSE@
|
||||
@ -218,6 +221,7 @@ OMAN = \
|
||||
ALLCMAN = $(PMAN) $(MMAN) $(OMAN)
|
||||
LINKS = $(ALLCMAN:.3=.c)
|
||||
man3_MANS = $(ALLCMAN) openpam.3 pam.3 pam_conv.3
|
||||
man5_MANS = pam.conf.5
|
||||
CLEANFILES = $(ALLCMAN) $(LINKS) openpam.3 pam.3 symlink-stamp
|
||||
GENDOC = $(top_srcdir)/misc/gendoc.pl
|
||||
SUFFIXES = .3
|
||||
@ -309,6 +313,51 @@ uninstall-man3:
|
||||
echo " rm -f '$(DESTDIR)$(man3dir)/$$inst'"; \
|
||||
rm -f "$(DESTDIR)$(man3dir)/$$inst"; \
|
||||
done
|
||||
install-man5: $(man5_MANS) $(man_MANS)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(man5dir)" || $(mkdir_p) "$(DESTDIR)$(man5dir)"
|
||||
@list='$(man5_MANS) $(dist_man5_MANS) $(nodist_man5_MANS)'; \
|
||||
l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
|
||||
for i in $$l2; do \
|
||||
case "$$i" in \
|
||||
*.5*) list="$$list $$i" ;; \
|
||||
esac; \
|
||||
done; \
|
||||
for i in $$list; do \
|
||||
if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
|
||||
else file=$$i; fi; \
|
||||
ext=`echo $$i | sed -e 's/^.*\\.//'`; \
|
||||
case "$$ext" in \
|
||||
5*) ;; \
|
||||
*) ext='5' ;; \
|
||||
esac; \
|
||||
inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
|
||||
inst=`echo $$inst | sed -e 's/^.*\///'`; \
|
||||
inst=`echo $$inst | sed '$(transform)'`.$$ext; \
|
||||
echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man5dir)/$$inst'"; \
|
||||
$(INSTALL_DATA) "$$file" "$(DESTDIR)$(man5dir)/$$inst"; \
|
||||
done
|
||||
uninstall-man5:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(man5_MANS) $(dist_man5_MANS) $(nodist_man5_MANS)'; \
|
||||
l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
|
||||
for i in $$l2; do \
|
||||
case "$$i" in \
|
||||
*.5*) list="$$list $$i" ;; \
|
||||
esac; \
|
||||
done; \
|
||||
for i in $$list; do \
|
||||
ext=`echo $$i | sed -e 's/^.*\\.//'`; \
|
||||
case "$$ext" in \
|
||||
5*) ;; \
|
||||
*) ext='5' ;; \
|
||||
esac; \
|
||||
inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
|
||||
inst=`echo $$inst | sed -e 's/^.*\///'`; \
|
||||
inst=`echo $$inst | sed '$(transform)'`.$$ext; \
|
||||
echo " rm -f '$(DESTDIR)$(man5dir)/$$inst'"; \
|
||||
rm -f "$(DESTDIR)$(man5dir)/$$inst"; \
|
||||
done
|
||||
tags: TAGS
|
||||
TAGS:
|
||||
|
||||
@ -347,7 +396,7 @@ check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(MANS)
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(man3dir)"; do \
|
||||
for dir in "$(DESTDIR)$(man3dir)" "$(DESTDIR)$(man5dir)"; do \
|
||||
test -z "$$dir" || $(mkdir_p) "$$dir"; \
|
||||
done
|
||||
install: install-am
|
||||
@ -399,7 +448,7 @@ install-exec-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-man: install-man3
|
||||
install-man: install-man3 install-man5
|
||||
|
||||
installcheck-am:
|
||||
|
||||
@ -421,18 +470,18 @@ ps-am:
|
||||
|
||||
uninstall-am: uninstall-info-am uninstall-man
|
||||
|
||||
uninstall-man: uninstall-man3
|
||||
uninstall-man: uninstall-man3 uninstall-man5
|
||||
|
||||
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
|
||||
distclean distclean-generic distclean-libtool distdir dvi \
|
||||
dvi-am html html-am info info-am install install-am \
|
||||
install-data install-data-am install-exec install-exec-am \
|
||||
install-info install-info-am install-man install-man3 \
|
||||
install-strip installcheck installcheck-am installdirs \
|
||||
maintainer-clean maintainer-clean-generic mostlyclean \
|
||||
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
||||
uninstall uninstall-am uninstall-info-am uninstall-man \
|
||||
uninstall-man3
|
||||
install-man5 install-strip installcheck installcheck-am \
|
||||
installdirs maintainer-clean maintainer-clean-generic \
|
||||
mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
|
||||
ps ps-am uninstall uninstall-am uninstall-info-am \
|
||||
uninstall-man uninstall-man3 uninstall-man5
|
||||
|
||||
|
||||
$(LINKS): symlink-stamp
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt OPENPAM 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt OPENPAM_BORROW_CRED 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt OPENPAM_FREE_DATA 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt OPENPAM_FREE_ENVLIST 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt OPENPAM_GET_OPTION 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt OPENPAM_LOG 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt OPENPAM_NULLCONV 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt OPENPAM_READLINE 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt OPENPAM_RESTORE_CRED 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt OPENPAM_SET_OPTION 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt OPENPAM_TTYCONV 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -266,15 +266,15 @@ Unknown user.
|
||||
.Xr pam_conv 3 ,
|
||||
.Xr pam_end 3 ,
|
||||
.Xr pam_get_data 3 ,
|
||||
.Xr pam_get_item 3 ,
|
||||
.Xr pam_get_user 3 ,
|
||||
.Xr pam_getenv 3 ,
|
||||
.Xr pam_getenvlist 3 ,
|
||||
.Xr pam_get_item 3 ,
|
||||
.Xr pam_get_user 3 ,
|
||||
.Xr pam_open_session 3 ,
|
||||
.Xr pam_putenv 3 ,
|
||||
.Xr pam_setcred 3 ,
|
||||
.Xr pam_set_data 3 ,
|
||||
.Xr pam_set_item 3 ,
|
||||
.Xr pam_setcred 3 ,
|
||||
.Xr pam_start 3 ,
|
||||
.Xr pam_strerror 3
|
||||
.Sh STANDARDS
|
||||
|
174
contrib/openpam/doc/man/pam.conf.5
Normal file
174
contrib/openpam/doc/man/pam.conf.5
Normal file
@ -0,0 +1,174 @@
|
||||
.\"-
|
||||
.\" Copyright (c) 2005 Dag-Erling Coïdan Smørgrav
|
||||
.\" All rights reserved.
|
||||
.\"
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions
|
||||
.\" are met:
|
||||
.\" 1. Redistributions of source code must retain the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer.
|
||||
.\" 2. Redistributions in binary form must reproduce the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer in the
|
||||
.\" documentation and/or other materials provided with the distribution.
|
||||
.\" 3. The name of the author may not be used to endorse or promote
|
||||
.\" products derived from this software without specific prior written
|
||||
.\" permission.
|
||||
.\"
|
||||
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" $P4: //depot/projects/openpam/doc/man/pam.conf.5#2 $
|
||||
.\"
|
||||
.Dd June 9, 2005
|
||||
.Dt PAM.CONF 5
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm pam.conf
|
||||
.Nd PAM policy file format
|
||||
.Sh DESCRIPTION
|
||||
The PAM library searches for policies in the following files, in
|
||||
decreasing order of preference:
|
||||
.Bl -enum
|
||||
.It
|
||||
.Pa /etc/pam.d/ Ns Ar service-name
|
||||
.It
|
||||
.Pa /etc/pam.conf
|
||||
.It
|
||||
.Pa /usr/local/etc/pam.d/ Ns Ar service-name
|
||||
.It
|
||||
.Pa /usr/local/etc/pam.conf
|
||||
.El
|
||||
.Pp
|
||||
If none of these locations contains a policy for the given service,
|
||||
the
|
||||
.Dv default
|
||||
policy is used instead, if it exists.
|
||||
.Pp
|
||||
Entries in per-service policy files must be of one of the two forms
|
||||
below:
|
||||
.Bd -unfilled -offset indent
|
||||
.Ar function-class Ar control-flag Ar module-path Op Ar arguments ...
|
||||
.Ar function-class Cm include Ar other-service-name
|
||||
.Ed
|
||||
.Pp
|
||||
Entries in
|
||||
.Pa pam.conf Ns -style
|
||||
policy files are of the same form, but are prefixed by an additional
|
||||
field specifying the name of the service they apply to.
|
||||
.Pp
|
||||
In both types of policy files, blank lines are ignored, as is anything
|
||||
to the right of a `#' sign.
|
||||
.Pp
|
||||
The
|
||||
.Ar function-class
|
||||
field specifies the class of functions the entry applies to, and is
|
||||
one of:
|
||||
.Bl -tag -width "password"
|
||||
.It Cm auth
|
||||
Authentication functions
|
||||
.Po
|
||||
.Xr pam_authenticate 3 ,
|
||||
.Xr pam_setcred 3
|
||||
.Pc
|
||||
.It Cm account
|
||||
Account management functions
|
||||
.Pq Xr pam_acct_mgmt 3
|
||||
.It Cm session
|
||||
Session handling functions
|
||||
.Po
|
||||
.Xr pam_open_session 3 ,
|
||||
.Xr pam_close_session 3
|
||||
.Pc
|
||||
.It Cm password
|
||||
Password management functions
|
||||
.Pq Xr pam_chauthtok 3
|
||||
.El
|
||||
.Pp
|
||||
The
|
||||
.Ar control-flag
|
||||
field determines how the result returned by the module affects the
|
||||
flow of control through (and the final result of) the rest of the
|
||||
chain, and is one of:
|
||||
.Bl -tag -width "sufficient"
|
||||
.It Cm required
|
||||
If this module succeeds, the result of the chain will be success
|
||||
unless a later module fails.
|
||||
If it fails, the rest of the chain still runs, but the final result
|
||||
will be failure regardless of the success of later modules.
|
||||
.It Cm requisite
|
||||
If this module succeeds, the result of the chain will be success
|
||||
unless a later module fails.
|
||||
If it module fails, the chain is broken and the result is failure.
|
||||
.It Cm sufficient
|
||||
If this module succeeds, the chain is broken and the result is
|
||||
success.
|
||||
If it fails, the rest of the chain still runs, but the final result
|
||||
will be failure unless a later module succeeds.
|
||||
.It Cm binding
|
||||
If this module succeeds, the chain is broken and the result is
|
||||
success.
|
||||
If it fails, the rest of the chain still runs, but the final result
|
||||
will be failure regardless of the success of later modules.
|
||||
.It Cm optional
|
||||
If this module succeeds, the result of the chain will be success
|
||||
unless a later module fails.
|
||||
If this module fails, the result of the chain will be failure unless a
|
||||
later module succeeds.
|
||||
.El
|
||||
.Pp
|
||||
There are two exceptions to the above:
|
||||
.Cm sufficient
|
||||
and
|
||||
.Cm binding
|
||||
modules are treated as
|
||||
.Cm optional
|
||||
by
|
||||
.Xr pam_setcred 3 ,
|
||||
and in the
|
||||
.Dv PAM_PRELIM_CHECK
|
||||
phase of
|
||||
.Xr pam_chauthtok 3 .
|
||||
.Pp
|
||||
The
|
||||
.Ar module-path
|
||||
field specifies the name, or optionally the full path, of the module
|
||||
to call.
|
||||
.Pp
|
||||
The remaining fields are passed as arguments to the module if and when
|
||||
it is invoked.
|
||||
.Pp
|
||||
The
|
||||
.Cm include
|
||||
form of entry causes entries from a different chain (specified by
|
||||
.Ar other-system-name )
|
||||
to be included in the current one.
|
||||
This allows one to define system-wide policies which are then included
|
||||
into service-specific policies.
|
||||
The system-wide policy can then be modified without having to also
|
||||
modify each and every service-specific policy.
|
||||
.Sh SEE ALSO
|
||||
.Xr pam 3
|
||||
.Sh STANDARDS
|
||||
.Rs
|
||||
.%T "X/Open Single Sign-On Service (XSSO) - Pluggable Authentication Modules"
|
||||
.%D "June 1997"
|
||||
.Re
|
||||
.Sh AUTHORS
|
||||
The OpenPAM library was developed for the FreeBSD Project by ThinkSec
|
||||
AS and Network Associates Laboratories, the Security Research Division
|
||||
of Network Associates, Inc. under DARPA/SPAWAR contract
|
||||
N66001-01-C-8035
|
||||
.Pq Dq CBOSS ,
|
||||
as part of the DARPA CHATS research program.
|
||||
.Pp
|
||||
This manual page was written by
|
||||
.An Dag-Erling Sm\(/orgrav Aq des@FreeBSD.org .
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_ACCT_MGMT 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_AUTHENTICATE 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_CHAUTHTOK 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_CLOSE_SESSION 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_END 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_ERROR 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_GET_AUTHTOK 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_GET_DATA 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_GET_ITEM 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_GET_USER 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_GETENV 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_GETENVLIST 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_INFO 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_OPEN_SESSION 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_PROMPT 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_PUTENV 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_SET_DATA 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_SET_ITEM 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_SETCRED 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_SETENV 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_SM_ACCT_MGMT 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_SM_AUTHENTICATE 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_SM_CHAUTHTOK 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_SM_CLOSE_SESSION 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_SM_OPEN_SESSION 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_SM_SETCRED 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_START 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_STRERROR 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_VERROR 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_VINFO 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -33,7 +33,7 @@
|
||||
.\"
|
||||
.\" $P4$
|
||||
.\"
|
||||
.Dd February 1, 2005
|
||||
.Dd June 16, 2005
|
||||
.Dt PAM_VPROMPT 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -1 +1,3 @@
|
||||
# $P4: //depot/projects/openpam/include/Makefile.am#2 $
|
||||
|
||||
SUBDIRS = security
|
||||
|
@ -13,6 +13,8 @@
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
# $P4: //depot/projects/openpam/include/Makefile.am#2 $
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
@ -1,3 +1,5 @@
|
||||
# $P4: //depot/projects/openpam/include/security/Makefile.am#3 $
|
||||
|
||||
openpamdir = $(includedir)/security
|
||||
|
||||
openpam_HEADERS = \
|
||||
|
@ -14,6 +14,8 @@
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
# $P4: //depot/projects/openpam/include/security/Makefile.am#3 $
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
@ -31,14 +31,14 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $P4: //depot/projects/openpam/include/security/openpam_version.h#13 $
|
||||
* $P4: //depot/projects/openpam/include/security/openpam_version.h#14 $
|
||||
*/
|
||||
|
||||
#ifndef _OPENPAM_VERSION_H_INCLUDED
|
||||
#define _OPENPAM_VERSION_H_INCLUDED
|
||||
|
||||
#define _OPENPAM
|
||||
#define _OPENPAM_VERSION 20050201
|
||||
#define _OPENPAM_RELEASE "Feterita"
|
||||
#define _OPENPAM_VERSION 20050616
|
||||
#define _OPENPAM_RELEASE "Figwort"
|
||||
|
||||
#endif
|
||||
|
@ -1,3 +1,5 @@
|
||||
# $P4: //depot/projects/openpam/lib/Makefile.am#5 $
|
||||
|
||||
NULL =
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/include
|
||||
@ -48,6 +50,8 @@ libpam_la_SOURCES = \
|
||||
pam_vprompt.c \
|
||||
$(NULL)
|
||||
|
||||
libpam_la_CFLAGS = -DOPENPAM_MODULES_DIR='"@OPENPAM_MODULES_DIR@/"'
|
||||
|
||||
libpam_la_LDFLAGS = -no-undefined -version-info @LIB_MAJ@ @DL_LIBS@
|
||||
|
||||
# Not implemented yet:
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -31,7 +31,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $P4: //depot/projects/openpam/lib/openpam_dynamic.c#13 $
|
||||
* $P4: //depot/projects/openpam/lib/openpam_dynamic.c#14 $
|
||||
*/
|
||||
|
||||
#include <dlfcn.h>
|
||||
@ -57,6 +57,7 @@ pam_module_t *
|
||||
openpam_dynamic(const char *path)
|
||||
{
|
||||
pam_module_t *module;
|
||||
const char *prefix;
|
||||
char *vpath;
|
||||
void *dlh;
|
||||
int i;
|
||||
@ -65,8 +66,14 @@ openpam_dynamic(const char *path)
|
||||
if ((module = calloc(1, sizeof *module)) == NULL)
|
||||
goto buf_err;
|
||||
|
||||
/* Prepend the standard prefix if not an absolute pathname. */
|
||||
if (path[0] != '/')
|
||||
prefix = OPENPAM_MODULES_DIR;
|
||||
else
|
||||
prefix = "";
|
||||
|
||||
/* try versioned module first, then unversioned module */
|
||||
if (asprintf(&vpath, "%s.%d", path, LIB_MAJ) < 0)
|
||||
if (asprintf(&vpath, "%s%s.%d", prefix, path, LIB_MAJ) < 0)
|
||||
goto buf_err;
|
||||
if ((dlh = dlopen(vpath, RTLD_NOW)) == NULL) {
|
||||
openpam_log(PAM_LOG_DEBUG, "%s: %s", vpath, dlerror());
|
||||
|
@ -31,7 +31,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $P4: //depot/projects/openpam/lib/openpam_load.c#20 $
|
||||
* $P4: //depot/projects/openpam/lib/openpam_load.c#21 $
|
||||
*/
|
||||
|
||||
#include <dlfcn.h>
|
||||
@ -173,8 +173,10 @@ openpam_clear_chains(pam_chain_t *policy[])
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < PAM_NUM_FACILITIES; ++i)
|
||||
for (i = 0; i < PAM_NUM_FACILITIES; ++i) {
|
||||
openpam_destroy_chain(policy[i]);
|
||||
policy[i] = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -31,7 +31,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $P4: //depot/projects/openpam/lib/openpam_readline.c#2 $
|
||||
* $P4: //depot/projects/openpam/lib/openpam_readline.c#3 $
|
||||
*/
|
||||
|
||||
#include <ctype.h>
|
||||
@ -52,7 +52,7 @@
|
||||
char *
|
||||
openpam_readline(FILE *f, int *lineno, size_t *lenp)
|
||||
{
|
||||
char *line;
|
||||
unsigned char *line;
|
||||
size_t len, size;
|
||||
int ch;
|
||||
|
||||
@ -63,7 +63,7 @@ openpam_readline(FILE *f, int *lineno, size_t *lenp)
|
||||
|
||||
#define line_putch(ch) do { \
|
||||
if (len >= size - 1) { \
|
||||
char *tmp = realloc(line, size *= 2); \
|
||||
unsigned char *tmp = realloc(line, size *= 2); \
|
||||
if (tmp == NULL) \
|
||||
goto fail; \
|
||||
line = tmp; \
|
||||
|
@ -31,7 +31,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $P4: //depot/projects/openpam/lib/openpam_ttyconv.c#25 $
|
||||
* $P4: //depot/projects/openpam/lib/openpam_ttyconv.c#26 $
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -66,7 +66,7 @@ prompt(const char *msg)
|
||||
struct sigaction action, saved_action;
|
||||
sigset_t saved_sigset, sigset;
|
||||
unsigned int saved_alarm;
|
||||
int eof, error, fd, timed_out;
|
||||
int eof, error, fd;
|
||||
size_t len;
|
||||
char *retval;
|
||||
char ch;
|
||||
@ -86,9 +86,9 @@ prompt(const char *msg)
|
||||
#endif
|
||||
fd = fileno(stdin);
|
||||
buf[0] = '\0';
|
||||
timed_out = 0;
|
||||
eof = error = timed_out = 0;
|
||||
saved_alarm = alarm(openpam_ttyconv_timeout);
|
||||
eof = error = 0;
|
||||
if (openpam_ttyconv_timeout >= 0)
|
||||
saved_alarm = alarm(openpam_ttyconv_timeout);
|
||||
ch = '\0';
|
||||
for (len = 0; ch != '\n' && !eof && !error; ++len) {
|
||||
switch (read(fd, &ch, 1)) {
|
||||
@ -106,10 +106,12 @@ prompt(const char *msg)
|
||||
break;
|
||||
}
|
||||
}
|
||||
alarm(0);
|
||||
if (openpam_ttyconv_timeout >= 0)
|
||||
alarm(0);
|
||||
sigaction(SIGALRM, &saved_action, NULL);
|
||||
sigprocmask(SIG_SETMASK, &saved_sigset, NULL);
|
||||
alarm(saved_alarm);
|
||||
if (openpam_ttyconv_timeout >= 0)
|
||||
alarm(saved_alarm);
|
||||
if (error == EINTR)
|
||||
fputs(" timeout!", stderr);
|
||||
if (error || eof) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
# ltmain.sh - Provide generalized library-building support services.
|
||||
# NOTE: Changing this file will not affect anything until you rerun configure.
|
||||
#
|
||||
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
|
||||
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
|
||||
#
|
||||
@ -43,8 +43,8 @@ EXIT_FAILURE=1
|
||||
|
||||
PROGRAM=ltmain.sh
|
||||
PACKAGE=libtool
|
||||
VERSION=1.5.10
|
||||
TIMESTAMP=" (1.1220.2.130 2004/09/19 12:13:49)"
|
||||
VERSION=1.5.14
|
||||
TIMESTAMP=" (1.1220.2.195 2005/02/12 12:12:33)"
|
||||
|
||||
# See if we are running on zsh, and set the options which allow our
|
||||
# commands through without removal of \ escapes.
|
||||
@ -132,6 +132,7 @@ show_help=
|
||||
execute_dlfiles=
|
||||
lo2o="s/\\.lo\$/.${objext}/"
|
||||
o2lo="s/\\.${objext}\$/.lo/"
|
||||
quote_scanset='[[~#^*{};<>?'"'"' ]'
|
||||
|
||||
#####################################
|
||||
# Shell function definitions:
|
||||
@ -143,7 +144,8 @@ o2lo="s/\\.${objext}\$/.lo/"
|
||||
# Need a lot of goo to handle *both* DLLs and import libs
|
||||
# Has to be a shell function in order to 'eat' the argument
|
||||
# that is supplied when $file_magic_command is called.
|
||||
func_win32_libid () {
|
||||
func_win32_libid ()
|
||||
{
|
||||
win32_libid_type="unknown"
|
||||
win32_fileres=`file -L $1 2>/dev/null`
|
||||
case $win32_fileres in
|
||||
@ -183,12 +185,13 @@ func_win32_libid () {
|
||||
# Only attempt this if the compiler in the base compile
|
||||
# command doesn't match the default compiler.
|
||||
# arg is usually of the form 'gcc ...'
|
||||
func_infer_tag () {
|
||||
func_infer_tag ()
|
||||
{
|
||||
if test -n "$available_tags" && test -z "$tagname"; then
|
||||
CC_quoted=
|
||||
for arg in $CC; do
|
||||
case $arg in
|
||||
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
|
||||
*$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
|
||||
arg="\"$arg\""
|
||||
;;
|
||||
esac
|
||||
@ -209,7 +212,7 @@ func_infer_tag () {
|
||||
for arg in $CC; do
|
||||
# Double-quote args containing other shell metacharacters.
|
||||
case $arg in
|
||||
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
|
||||
*$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
|
||||
arg="\"$arg\""
|
||||
;;
|
||||
esac
|
||||
@ -242,8 +245,48 @@ func_infer_tag () {
|
||||
}
|
||||
|
||||
|
||||
# func_extract_an_archive dir oldlib
|
||||
func_extract_an_archive ()
|
||||
{
|
||||
f_ex_an_ar_dir="$1"; shift
|
||||
f_ex_an_ar_oldlib="$1"
|
||||
f_ex_an_ar_lib=`$echo "X$f_ex_an_ar_oldlib" | $Xsed -e 's%^.*/%%'`
|
||||
|
||||
$show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
|
||||
$run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
|
||||
if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
|
||||
:
|
||||
else
|
||||
$echo "$modename: warning: object name conflicts; renaming object files" 1>&2
|
||||
$echo "$modename: warning: to ensure that they will not overwrite" 1>&2
|
||||
$show "cp $f_ex_an_ar_oldlib $f_ex_an_ar_dir/$f_ex_an_ar_lib"
|
||||
$run eval "cp \$f_ex_an_ar_oldlib \$f_ex_an_ar_dir/\$f_ex_an_ar_lib"
|
||||
$AR t "$f_ex_an_ar_oldlib" | sort | uniq -c \
|
||||
| $EGREP -v '^[ ]*1[ ]' | while read count name
|
||||
do
|
||||
i=1
|
||||
while test "$i" -le "$count"
|
||||
do
|
||||
# Put our $i before any first dot (extension)
|
||||
# Never overwrite any file
|
||||
name_to="$name"
|
||||
while test "X$name_to" = "X$name" || test -f "$f_ex_an_ar_dir/$name_to"
|
||||
do
|
||||
name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
|
||||
done
|
||||
$show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_lib '$name' && $mv '$name' '$name_to')"
|
||||
$run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_lib '$name' && $mv '$name' '$name_to' && $AR -d \$f_ex_an_ar_lib '$name')" || exit $?
|
||||
i=`expr $i + 1`
|
||||
done
|
||||
done
|
||||
$show "$rm $f_ex_an_ar_dir/$f_ex_an_ar_lib"
|
||||
$run eval "$rm \$f_ex_an_ar_dir/\$f_ex_an_ar_lib"
|
||||
fi
|
||||
}
|
||||
|
||||
# func_extract_archives gentop oldlib ...
|
||||
func_extract_archives () {
|
||||
func_extract_archives ()
|
||||
{
|
||||
my_gentop="$1"; shift
|
||||
my_oldlibs=${1+"$@"}
|
||||
my_oldobjs=""
|
||||
@ -287,7 +330,7 @@ func_extract_archives () {
|
||||
cd $my_xdir || exit $?
|
||||
darwin_archive=$my_xabs
|
||||
darwin_curdir=`pwd`
|
||||
darwin_base_archive=`basename $darwin_archive`
|
||||
darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
|
||||
darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
|
||||
if test -n "$darwin_arches"; then
|
||||
darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
|
||||
@ -296,64 +339,33 @@ func_extract_archives () {
|
||||
for darwin_arch in $darwin_arches ; do
|
||||
mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
|
||||
lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
|
||||
# Remove the table of contents from the thin files.
|
||||
$AR -d "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" __.SYMDEF 2>/dev/null || true
|
||||
$AR -d "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" __.SYMDEF\ SORTED 2>/dev/null || true
|
||||
cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
|
||||
$AR -xo "${darwin_base_archive}"
|
||||
rm "${darwin_base_archive}"
|
||||
func_extract_an_archive "`pwd`" "${darwin_base_archive}"
|
||||
cd "$darwin_curdir"
|
||||
$rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
|
||||
done # $darwin_arches
|
||||
## Okay now we have a bunch of thin objects, gotta fatten them up :)
|
||||
darwin_filelist=`find unfat-$$ -type f | xargs basename | sort -u | $NL2SP`
|
||||
darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
|
||||
darwin_file=
|
||||
darwin_files=
|
||||
for darwin_file in $darwin_filelist; do
|
||||
darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
|
||||
lipo -create -output "$darwin_file" $darwin_files
|
||||
done # $darwin_filelist
|
||||
rm -rf unfat-$$
|
||||
${rm}r unfat-$$
|
||||
cd "$darwin_orig_dir"
|
||||
else
|
||||
cd $darwin_orig_dir
|
||||
(cd $my_xdir && $AR x $my_xabs) || exit $?
|
||||
cd "$darwin_orig_dir"
|
||||
func_extract_an_archive "$my_xdir" "$my_xabs"
|
||||
fi # $darwin_arches
|
||||
fi # $run
|
||||
;;
|
||||
*)
|
||||
# We will extract separately just the conflicting names and we will
|
||||
# no longer touch any unique names. It is faster to leave these
|
||||
# extract automatically by $AR in one run.
|
||||
$show "(cd $my_xdir && $AR x $my_xabs)"
|
||||
$run eval "(cd \$my_xdir && $AR x \$my_xabs)" || exit $?
|
||||
if ($AR t "$my_xabs" | sort | sort -uc >/dev/null 2>&1); then
|
||||
:
|
||||
else
|
||||
$echo "$modename: warning: object name conflicts; renaming object files" 1>&2
|
||||
$echo "$modename: warning: to ensure that they will not overwrite" 1>&2
|
||||
$AR t "$my_xabs" | sort | uniq -cd | while read -r count name
|
||||
do
|
||||
i=1
|
||||
while test "$i" -le "$count"
|
||||
do
|
||||
# Put our $i before any first dot (extension)
|
||||
# Never overwrite any file
|
||||
name_to="$name"
|
||||
while test "X$name_to" = "X$name" || test -f "$my_xdir/$name_to"
|
||||
do
|
||||
name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
|
||||
done
|
||||
$show "(cd $my_xdir && $AR xN $i $my_xabs '$name' && $mv '$name' '$name_to')"
|
||||
$run eval "(cd \$my_xdir && $AR xN $i \$my_xabs '$name' && $mv '$name' '$name_to')" || exit $?
|
||||
i=`expr $i + 1`
|
||||
done
|
||||
done
|
||||
fi
|
||||
;;
|
||||
func_extract_an_archive "$my_xdir" "$my_xabs"
|
||||
;;
|
||||
esac
|
||||
my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
|
||||
done
|
||||
|
||||
func_extract_archives_result="$my_oldobjs"
|
||||
}
|
||||
# End of Shell function definitions
|
||||
@ -426,10 +438,10 @@ do
|
||||
--version)
|
||||
$echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
|
||||
$echo
|
||||
$echo "Copyright (C) 2003 Free Software Foundation, Inc."
|
||||
$echo "Copyright (C) 2005 Free Software Foundation, Inc."
|
||||
$echo "This is free software; see the source for copying conditions. There is NO"
|
||||
$echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
||||
exit $EXIT_SUCCESS
|
||||
exit $?
|
||||
;;
|
||||
|
||||
--config)
|
||||
@ -438,7 +450,7 @@ do
|
||||
for tagname in $taglist; do
|
||||
${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
|
||||
done
|
||||
exit $EXIT_SUCCESS
|
||||
exit $?
|
||||
;;
|
||||
|
||||
--debug)
|
||||
@ -463,7 +475,7 @@ do
|
||||
else
|
||||
$echo "disable static libraries"
|
||||
fi
|
||||
exit $EXIT_SUCCESS
|
||||
exit $?
|
||||
;;
|
||||
|
||||
--finish) mode="finish" ;;
|
||||
@ -520,7 +532,7 @@ if test -z "$show_help"; then
|
||||
# Infer the operation mode.
|
||||
if test -z "$mode"; then
|
||||
$echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
|
||||
$echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
|
||||
$echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
|
||||
case $nonopt in
|
||||
*cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
|
||||
mode=link
|
||||
@ -637,7 +649,7 @@ if test -z "$show_help"; then
|
||||
# Many Bourne shells cannot handle close brackets correctly
|
||||
# in scan sets, so we specify it separately.
|
||||
case $arg in
|
||||
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
|
||||
*$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
|
||||
arg="\"$arg\""
|
||||
;;
|
||||
esac
|
||||
@ -668,8 +680,11 @@ if test -z "$show_help"; then
|
||||
case $lastarg in
|
||||
# Double-quote args containing other shell metacharacters.
|
||||
# Many Bourne shells cannot handle close brackets correctly
|
||||
# in scan sets, so we specify it separately.
|
||||
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
|
||||
# in scan sets, and some SunOS ksh mistreat backslash-escaping
|
||||
# in scan sets (worked around with variable expansion),
|
||||
# and furthermore cannot handle '|' '&' '(' ')' in scan sets
|
||||
# at all, so we specify them separately.
|
||||
*$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
|
||||
lastarg="\"$lastarg\""
|
||||
;;
|
||||
esac
|
||||
@ -1104,7 +1119,7 @@ EOF
|
||||
arg="$1"
|
||||
shift
|
||||
case $arg in
|
||||
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
|
||||
*$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
|
||||
qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
|
||||
;;
|
||||
*) qarg=$arg ;;
|
||||
@ -1348,6 +1363,11 @@ EOF
|
||||
prev=
|
||||
continue
|
||||
;;
|
||||
darwin_framework)
|
||||
compiler_flags="$compiler_flags $arg"
|
||||
prev=
|
||||
continue
|
||||
;;
|
||||
*)
|
||||
eval "$prev=\"\$arg\""
|
||||
prev=
|
||||
@ -1406,6 +1426,12 @@ EOF
|
||||
continue
|
||||
;;
|
||||
|
||||
-framework)
|
||||
prev=darwin_framework
|
||||
compiler_flags="$compiler_flags $arg"
|
||||
continue
|
||||
;;
|
||||
|
||||
-inst-prefix-dir)
|
||||
prev=inst_prefix
|
||||
continue
|
||||
@ -1466,7 +1492,7 @@ EOF
|
||||
# These systems don't actually have a C library (as such)
|
||||
test "X$arg" = "X-lc" && continue
|
||||
;;
|
||||
*-*-openbsd* | *-*-freebsd*)
|
||||
*-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
|
||||
# Do not include libc due to us having libc/libc_r.
|
||||
test "X$arg" = "X-lc" && continue
|
||||
;;
|
||||
@ -1477,7 +1503,7 @@ EOF
|
||||
esac
|
||||
elif test "X$arg" = "X-lc_r"; then
|
||||
case $host in
|
||||
*-*-openbsd* | *-*-freebsd*)
|
||||
*-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
|
||||
# Do not include libc_r directly, use -pthread flag.
|
||||
continue
|
||||
;;
|
||||
@ -1487,8 +1513,20 @@ EOF
|
||||
continue
|
||||
;;
|
||||
|
||||
# Tru64 UNIX uses -model [arg] to determine the layout of C++
|
||||
# classes, name mangling, and exception handling.
|
||||
-model)
|
||||
compile_command="$compile_command $arg"
|
||||
compiler_flags="$compiler_flags $arg"
|
||||
finalize_command="$finalize_command $arg"
|
||||
prev=xcompiler
|
||||
continue
|
||||
;;
|
||||
|
||||
-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
|
||||
deplibs="$deplibs $arg"
|
||||
compiler_flags="$compiler_flags $arg"
|
||||
compile_command="$compile_command $arg"
|
||||
finalize_command="$finalize_command $arg"
|
||||
continue
|
||||
;;
|
||||
|
||||
@ -1497,18 +1535,19 @@ EOF
|
||||
continue
|
||||
;;
|
||||
|
||||
# gcc -m* arguments should be passed to the linker via $compiler_flags
|
||||
# in order to pass architecture information to the linker
|
||||
# (e.g. 32 vs 64-bit). This may also be accomplished via -Wl,-mfoo
|
||||
# but this is not reliable with gcc because gcc may use -mfoo to
|
||||
# select a different linker, different libraries, etc, while
|
||||
# -Wl,-mfoo simply passes -mfoo to the linker.
|
||||
-m*)
|
||||
# -64, -mips[0-9] enable 64-bit mode on the SGI compiler
|
||||
# -r[0-9][0-9]* specifies the processor on the SGI compiler
|
||||
# -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
|
||||
# +DA*, +DD* enable 64-bit mode on the HP compiler
|
||||
# -q* pass through compiler args for the IBM compiler
|
||||
# -m* pass through architecture-specific compiler args for GCC
|
||||
-64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*)
|
||||
|
||||
# Unknown arguments in both finalize_command and compile_command need
|
||||
# to be aesthetically quoted because they are evaled later.
|
||||
arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
|
||||
case $arg in
|
||||
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
|
||||
*$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
|
||||
arg="\"$arg\""
|
||||
;;
|
||||
esac
|
||||
@ -1624,7 +1663,7 @@ EOF
|
||||
for flag in $args; do
|
||||
IFS="$save_ifs"
|
||||
case $flag in
|
||||
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
|
||||
*$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
|
||||
flag="\"$flag\""
|
||||
;;
|
||||
esac
|
||||
@ -1642,7 +1681,7 @@ EOF
|
||||
for flag in $args; do
|
||||
IFS="$save_ifs"
|
||||
case $flag in
|
||||
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
|
||||
*$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
|
||||
flag="\"$flag\""
|
||||
;;
|
||||
esac
|
||||
@ -1675,7 +1714,7 @@ EOF
|
||||
# to be aesthetically quoted because they are evaled later.
|
||||
arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
|
||||
case $arg in
|
||||
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
|
||||
*$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
|
||||
arg="\"$arg\""
|
||||
;;
|
||||
esac
|
||||
@ -1809,7 +1848,7 @@ EOF
|
||||
# to be aesthetically quoted because they are evaled later.
|
||||
arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
|
||||
case $arg in
|
||||
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
|
||||
*$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
|
||||
arg="\"$arg\""
|
||||
;;
|
||||
esac
|
||||
@ -1976,7 +2015,7 @@ EOF
|
||||
compile_deplibs="$deplib $compile_deplibs"
|
||||
finalize_deplibs="$deplib $finalize_deplibs"
|
||||
else
|
||||
deplibs="$deplib $deplibs"
|
||||
compiler_flags="$compiler_flags $deplib"
|
||||
fi
|
||||
continue
|
||||
;;
|
||||
@ -1985,10 +2024,6 @@ EOF
|
||||
$echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
|
||||
continue
|
||||
fi
|
||||
if test "$pass" = conv; then
|
||||
deplibs="$deplib $deplibs"
|
||||
continue
|
||||
fi
|
||||
name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
|
||||
for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
|
||||
for search_ext in .la $std_shrext .so .a; do
|
||||
@ -2188,6 +2223,8 @@ EOF
|
||||
# it will not redefine variables installed, or shouldnotlink
|
||||
installed=yes
|
||||
shouldnotlink=no
|
||||
avoidtemprpath=
|
||||
|
||||
|
||||
# Read the .la file
|
||||
case $lib in
|
||||
@ -2286,6 +2323,7 @@ EOF
|
||||
dir="$libdir"
|
||||
absdir="$libdir"
|
||||
fi
|
||||
test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
|
||||
else
|
||||
if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
|
||||
dir="$ladir"
|
||||
@ -2370,7 +2408,7 @@ EOF
|
||||
if test -n "$library_names" &&
|
||||
{ test "$prefer_static_libs" = no || test -z "$old_library"; }; then
|
||||
# We need to hardcode the library path
|
||||
if test -n "$shlibpath_var"; then
|
||||
if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
|
||||
# Make sure the rpath contains only unique directories.
|
||||
case "$temp_rpath " in
|
||||
*" $dir "*) ;;
|
||||
@ -3084,7 +3122,7 @@ EOF
|
||||
|
||||
# Check that each of the things are valid numbers.
|
||||
case $current in
|
||||
0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
|
||||
0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
|
||||
*)
|
||||
$echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
|
||||
$echo "$modename: \`$vinfo' is not valid version information" 1>&2
|
||||
@ -3093,7 +3131,7 @@ EOF
|
||||
esac
|
||||
|
||||
case $revision in
|
||||
0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
|
||||
0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
|
||||
*)
|
||||
$echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
|
||||
$echo "$modename: \`$vinfo' is not valid version information" 1>&2
|
||||
@ -3102,7 +3140,7 @@ EOF
|
||||
esac
|
||||
|
||||
case $age in
|
||||
0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
|
||||
0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
|
||||
*)
|
||||
$echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
|
||||
$echo "$modename: \`$vinfo' is not valid version information" 1>&2
|
||||
@ -3336,7 +3374,7 @@ EOF
|
||||
*-*-netbsd*)
|
||||
# Don't link with libc until the a.out ld.so is fixed.
|
||||
;;
|
||||
*-*-openbsd* | *-*-freebsd*)
|
||||
*-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
|
||||
# Do not include libc due to us having libc/libc_r.
|
||||
test "X$arg" = "X-lc" && continue
|
||||
;;
|
||||
@ -3873,6 +3911,7 @@ EOF
|
||||
save_libobjs=$libobjs
|
||||
fi
|
||||
save_output=$output
|
||||
output_la=`$echo "X$output" | $Xsed -e "$basename"`
|
||||
|
||||
# Clear the reloadable object creation command queue and
|
||||
# initialize k to one.
|
||||
@ -3882,7 +3921,7 @@ EOF
|
||||
delfiles=
|
||||
last_robj=
|
||||
k=1
|
||||
output=$output_objdir/$save_output-${k}.$objext
|
||||
output=$output_objdir/$output_la-${k}.$objext
|
||||
# Loop over the list of objects to be linked.
|
||||
for obj in $save_libobjs
|
||||
do
|
||||
@ -3902,9 +3941,9 @@ EOF
|
||||
# the last one created.
|
||||
eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
|
||||
fi
|
||||
last_robj=$output_objdir/$save_output-${k}.$objext
|
||||
last_robj=$output_objdir/$output_la-${k}.$objext
|
||||
k=`expr $k + 1`
|
||||
output=$output_objdir/$save_output-${k}.$objext
|
||||
output=$output_objdir/$output_la-${k}.$objext
|
||||
objlist=$obj
|
||||
len=1
|
||||
fi
|
||||
@ -3924,13 +3963,13 @@ EOF
|
||||
eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
|
||||
fi
|
||||
|
||||
# Set up a command to remove the reloadale object files
|
||||
# Set up a command to remove the reloadable object files
|
||||
# after they are used.
|
||||
i=0
|
||||
while test "$i" -lt "$k"
|
||||
do
|
||||
i=`expr $i + 1`
|
||||
delfiles="$delfiles $output_objdir/$save_output-${i}.$objext"
|
||||
delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
|
||||
done
|
||||
|
||||
$echo "creating a temporary reloadable object file: $output"
|
||||
@ -4327,12 +4366,12 @@ extern \"C\" {
|
||||
|
||||
# Prepare the list of exported symbols
|
||||
if test -z "$export_symbols"; then
|
||||
export_symbols="$output_objdir/$output.exp"
|
||||
export_symbols="$output_objdir/$outputname.exp"
|
||||
$run $rm $export_symbols
|
||||
$run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
|
||||
else
|
||||
$run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
|
||||
$run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
|
||||
$run eval "${SED} -e 's/\([ ][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
|
||||
$run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
|
||||
$run eval 'mv "$nlist"T "$nlist"'
|
||||
fi
|
||||
fi
|
||||
@ -4384,7 +4423,26 @@ extern \"C\" {
|
||||
#endif
|
||||
|
||||
/* The mapping between symbol names and symbols. */
|
||||
"
|
||||
|
||||
case $host in
|
||||
*cygwin* | *mingw* )
|
||||
$echo >> "$output_objdir/$dlsyms" "\
|
||||
/* DATA imports from DLLs on WIN32 can't be const, because
|
||||
runtime relocations are performed -- see ld's documentation
|
||||
on pseudo-relocs */
|
||||
struct {
|
||||
"
|
||||
;;
|
||||
* )
|
||||
$echo >> "$output_objdir/$dlsyms" "\
|
||||
const struct {
|
||||
"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
$echo >> "$output_objdir/$dlsyms" "\
|
||||
const char *name;
|
||||
lt_ptr address;
|
||||
}
|
||||
@ -4613,7 +4671,7 @@ static const void *lt_preloaded_setup() {
|
||||
esac
|
||||
case $host in
|
||||
*cygwin* | *mingw* )
|
||||
cwrappersource=`$echo ${objdir}/lt-${output}.c`
|
||||
cwrappersource=`$echo ${objdir}/lt-${outputname}.c`
|
||||
cwrapper=`$echo ${output}.exe`
|
||||
$rm $cwrappersource $cwrapper
|
||||
trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
|
||||
@ -5271,7 +5329,7 @@ relink_command=\"$relink_command\""
|
||||
# Aesthetically quote it.
|
||||
arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
|
||||
case $arg in
|
||||
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
|
||||
*$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
|
||||
arg="\"$arg\""
|
||||
;;
|
||||
esac
|
||||
@ -5287,7 +5345,7 @@ relink_command=\"$relink_command\""
|
||||
# Aesthetically quote it.
|
||||
arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
|
||||
case $arg in
|
||||
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
|
||||
*$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
|
||||
arg="\"$arg\""
|
||||
;;
|
||||
esac
|
||||
@ -5335,7 +5393,7 @@ relink_command=\"$relink_command\""
|
||||
# Aesthetically quote the argument.
|
||||
arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
|
||||
case $arg in
|
||||
*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
|
||||
*$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "")
|
||||
arg="\"$arg\""
|
||||
;;
|
||||
esac
|
||||
@ -6374,7 +6432,7 @@ esac
|
||||
$echo
|
||||
$echo "Try \`$modename --help' for more information about other modes."
|
||||
|
||||
exit $EXIT_SUCCESS
|
||||
exit $?
|
||||
|
||||
# The TAGs below are defined such that we never get into a situation
|
||||
# in which we disable both kinds of libraries. Given conflicting
|
||||
|
@ -32,7 +32,7 @@
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
# $P4: //depot/projects/openpam/misc/gendoc.pl#29 $
|
||||
# $P4: //depot/projects/openpam/misc/gendoc.pl#30 $
|
||||
#
|
||||
|
||||
use strict;
|
||||
@ -341,13 +341,21 @@ sub expand_errors($) {
|
||||
$func->{'errors'} = [ sort(keys(%errors)) ];
|
||||
}
|
||||
|
||||
sub dictionary_order($$) {
|
||||
my ($a, $b) = @_;
|
||||
|
||||
$a =~ s/[^[:alpha:]]//g;
|
||||
$b =~ s/[^[:alpha:]]//g;
|
||||
$a cmp $b;
|
||||
}
|
||||
|
||||
sub genxref($) {
|
||||
my $xref = shift; # References
|
||||
|
||||
my $mdoc = '';
|
||||
my @refs = ();
|
||||
foreach my $sect (sort(keys(%{$xref}))) {
|
||||
foreach my $page (sort(keys(%{$xref->{$sect}}))) {
|
||||
foreach my $page (sort(dictionary_order keys(%{$xref->{$sect}}))) {
|
||||
push(@refs, "$page $sect");
|
||||
}
|
||||
}
|
||||
|
@ -1 +1,3 @@
|
||||
# $P4: //depot/projects/openpam/modules/Makefile.am#2 $
|
||||
|
||||
SUBDIRS = pam_unix pam_deny pam_permit
|
||||
|
@ -13,6 +13,8 @@
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
# $P4: //depot/projects/openpam/modules/Makefile.am#2 $
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
@ -1,3 +1,5 @@
|
||||
# $P4: //depot/projects/openpam/modules/pam_deny/Makefile.am#2 $
|
||||
|
||||
pkglibdir = @OPENPAM_MODULES_DIR@
|
||||
INCLUDES = -I$(top_srcdir)/include
|
||||
|
||||
|
@ -14,6 +14,8 @@
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
# $P4: //depot/projects/openpam/modules/pam_deny/Makefile.am#2 $
|
||||
|
||||
SOURCES = $(pam_deny_la_SOURCES)
|
||||
|
||||
srcdir = @srcdir@
|
||||
|
@ -31,7 +31,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $P4: //depot/projects/openpam/modules/pam_deny/pam_deny.c#9 $
|
||||
* $P4: //depot/projects/openpam/modules/pam_deny/pam_deny.c#10 $
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
@ -55,7 +55,7 @@ pam_sm_setcred(pam_handle_t *pamh, int flags,
|
||||
int argc, const char *argv[])
|
||||
{
|
||||
|
||||
return (PAM_PERM_DENIED);
|
||||
return (PAM_CRED_ERR);
|
||||
}
|
||||
|
||||
PAM_EXTERN int
|
||||
@ -87,7 +87,7 @@ pam_sm_chauthtok(pam_handle_t *pamh, int flags,
|
||||
int argc, const char *argv[])
|
||||
{
|
||||
|
||||
return (PAM_PERM_DENIED);
|
||||
return (PAM_AUTHTOK_ERR);
|
||||
}
|
||||
|
||||
PAM_MODULE_ENTRY("pam_deny");
|
||||
|
@ -1,3 +1,5 @@
|
||||
# $P4: //depot/projects/openpam/modules/pam_permit/Makefile.am#2 $
|
||||
|
||||
pkglibdir = @OPENPAM_MODULES_DIR@
|
||||
INCLUDES = -I$(top_srcdir)/include
|
||||
|
||||
|
@ -14,6 +14,8 @@
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
# $P4: //depot/projects/openpam/modules/pam_permit/Makefile.am#2 $
|
||||
|
||||
SOURCES = $(pam_permit_la_SOURCES)
|
||||
|
||||
srcdir = @srcdir@
|
||||
|
@ -1,3 +1,5 @@
|
||||
# $P4: //depot/projects/openpam/modules/pam_unix/Makefile.am#2 $
|
||||
|
||||
pkglibdir = @OPENPAM_MODULES_DIR@
|
||||
INCLUDES = -I$(top_srcdir)/include
|
||||
|
||||
|
@ -14,6 +14,8 @@
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
# $P4: //depot/projects/openpam/modules/pam_unix/Makefile.am#2 $
|
||||
|
||||
SOURCES = $(pam_unix_la_SOURCES)
|
||||
|
||||
srcdir = @srcdir@
|
||||
|
Loading…
Reference in New Issue
Block a user