solaris portability patch resurrection (Steve Sanberg).
authorjbj <devnull@localhost>
Wed, 9 Sep 1998 21:19:59 +0000 (21:19 +0000)
committerjbj <devnull@localhost>
Wed, 9 Sep 1998 21:19:59 +0000 (21:19 +0000)
CVS patchset: 2284
CVS date: 1998/09/09 21:19:59

CHANGES
configure.in

diff --git a/CHANGES b/CHANGES
index 6584d8a..3ff3b20 100644 (file)
--- 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
 
index 8695db8..08dac26 100644 (file)
@@ -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
 
 #