From: jbj Date: Wed, 9 Sep 1998 21:19:59 +0000 (+0000) Subject: solaris portability patch resurrection (Steve Sanberg). X-Git-Tag: rpm-4.4-release~3513 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ae7d58bf0bab6baba3699d480aa19f4b5f5f548;p=platform%2Fupstream%2Frpm.git solaris portability patch resurrection (Steve Sanberg). CVS patchset: 2284 CVS date: 1998/09/09 21:19:59 --- diff --git a/CHANGES b/CHANGES index 6584d8a..3ff3b20 100644 --- a/CHANGES +++ b/CHANGES @@ -16,6 +16,7 @@ - create /usr/lib/rpm directory and move rpmrc et al there 2.5.3 -> 2.5.4: + - solaris portability patch resurrection (Steve Sanberg). - add %license/%readme virtual file attributes - align "Build Host:" with other fields diff --git a/configure.in b/configure.in index 8695db8..08dac26 100644 --- a/configure.in +++ b/configure.in @@ -82,10 +82,15 @@ else fi AC_MSG_RESULT($LDFLAGS_STATIC) -if test -n "$LDFLAGS_STATIC"; then - RPM=rpm -else - RPM=rpm.shared +if test -n "$LDFLAGS_STATIC" +then + AC_CHECKING(if we can link dynamically and still access the services switch) + AC_CHECK_LIB(c,gethostbyname, + AC_MSG_RESULT(will build static executable) + RPM=rpm, + AC_MSG_RESULT(will have to link dynamically) + RPM=rpm.shared, + $LDFLAGS_STATIC) fi AC_MSG_CHECKING(POSIX chmod) @@ -510,7 +515,6 @@ fi if echo "$build_os" | grep sco > /dev/null; then echo "hacking things up for sco" - RPM=rpm.shared AC_DEFINE(NEED_STRINGS_H) AC_DEFINE(HAVE_STRUCT_MNTTAB) elif echo "$build_os" | grep sunos > /dev/null; then @@ -520,16 +524,8 @@ elif echo "$build_os" | grep sunos > /dev/null; then AC_DEFINE(NEED_MYREALLOC) MISCOBJS="$MISCOBJS myrealloc.o" elif echo "$build_os" | grep hpux > /dev/null; then - #RPM=rpm.shared - RPM=rpm LIBDL=-ldld echo "hacking things up for hpux" -elif echo "$build_os" | grep irix > /dev/null; then - RPM=rpm.shared - echo "hacking things up for irix" -elif echo "$build_os" | grep aix > /dev/null; then - RPM=rpm.shared - echo "hacking things up for aix" fi #