* aclocal.m4: (KRB5_LIB_PARAMS): Add support for HP/UX, FreeBSD,
authorTom Yu <tlyu@mit.edu>
Mon, 24 Mar 1997 18:50:15 +0000 (18:50 +0000)
committerTom Yu <tlyu@mit.edu>
Mon, 24 Mar 1997 18:50:15 +0000 (18:50 +0000)
and SNI, ported from the old top-level configure.in.  These are
not tested yet.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10024 dc483132-0cff-0310-8789-dd5450dbe970

src/ChangeLog
src/aclocal.m4

index 5d770ed1b4a5e5be62c3ddc8d04f5c9ab5f4787e..595c077b4aba9bed973812dc5d38db155c93e202 100644 (file)
@@ -1,3 +1,9 @@
+Mon Mar 24 13:49:15 1997  Tom Yu  <tlyu@mit.edu>
+
+       * aclocal.m4: (KRB5_LIB_PARAMS): Add support for HP/UX, FreeBSD,
+       and SNI, ported from the old top-level configure.in.  These are
+       not tested yet.
+
 Fri Mar 21 15:12:46 1997  Tom Yu  <chaoself@avalanche-breakdown.mit.edu>
 
        * aclocal.m4 (KRB5_LIB_PARAMS): Add support for mips-dec-netbsd.
index c77074ccb2e7b42c3d50050551b97cca9111f774..d6cbc76069bba0b5a2b2becd859802af461e261d 100644 (file)
@@ -1166,6 +1166,18 @@ alpha-dec-osf*)
        # $(PROG_RPATH) is here to handle things like a shared tcl library
        RUN_ENV='LD_LIBRARY_PATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`:$(PROG_RPATH):/usr/shlib:/usr/ccs/lib:/usr/lib/cmplrs/cc:/usr/lib:/usr/local/lib; export LD_LIBRARY_PATH; _RLD_ROOT=/dev/dummy/d; export _RLD_ROOT;'
        ;;
+
+# untested...
+*-*-hpux*)
+       SHLIBEXT=.sl
+       SHLIBVEXT='.sl.$(LIBMAJOR).$(LIBMINOR)'
+       SHLIB_EXPFLAGS='+b $(SHLIB_RDIRS) $(SHLIB_DIRS) $(SHLIB_EXPLIBS)'
+       LDCOMBINE='ld -b'
+       CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) -Wl,+b,$(PROG_RPATH)'
+       CC_LINK_STATIC='$(CC) $(PROG_LIBPATH)'
+       RUN_ENV='LD_LIBRARY_PATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`; export LD_LIBRARY_PATH;'
+       ;;
+
 mips-sgi-irix*)
        SHLIBVEXT='.so.$(LIBMAJOR).$(LIBMINOR)'
        SHLIBSEXT='.so.$(LIBMAJOR)'
@@ -1179,29 +1191,64 @@ mips-sgi-irix*)
        CC_LINK_STATIC='$(CC) $(PROG_LIBPATH)'
        RUN_ENV='LD_LIBRARY_PATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`; export LD_LIBRARY_PATH;'
        ;;
+
+# untested...
+mips-sni-sysv4)
+       if test "$GCC" = yes; then
+               PICFLAGS=-fpic
+               LDCOMBINE='$(CC) -G -Wl,-h -Wl,lib$(LIB)$(SHLIBSEXT)'
+       else
+               PICFLAGS=-Kpic
+               LDCOMBINE='$(CC) -G -h lib$(LIB)$(SHLIBSEXT)'
+       fi
+       SHLIB_EXPFLAGS='-R$(SHLIB_RDIRS) $(SHLIB_DIRS) $(SHLIB_EXPLIBS)'
+       SHLIBEXT=.so
+       SHLIBVEXT='.so.$(LIBMAJOR).$(LIBMINOR)'
+       SHLIBSEXT='.so.$(LIBMAJOR)'
+       CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) -R$(PROG_RPATH)'
+       CC_LINK_STATIC='$(CC) $(PROG_LIBPATH)'
+       RUN_ENV='LD_LIBRARY_PATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`; export LD_LIBRARY_PATH;'
+       PROFFLAGS=-pg
+       ;;
+
 mips-*-netbsd*)
        PICFLAGS=-fPIC
        SHLIBVEXT='.so.$(LIBMAJOR).$(LIBMINOR)'
        SHLIBSEXT='.so.$(LIBMAJOR)'
        SHLIBEXT=.so
        LDCOMBINE='ld -shared -soname lib$(LIB)$(SHLIBSEXT)'
-       SHLIB_EXPFLAGS='-R$(SHLIB_RDIRS) $(SHLIB_DIRS)'
+       SHLIB_EXPFLAGS='-R$(SHLIB_RDIRS) $(SHLIB_DIRS) $(SHLIB_EXPLIBS)'
        CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) -Wl,-rpath -Wl,$(PROG_RPATH)'
        CC_LINK_STATIC='$(CC) $(PROG_LIBPATH)'
        RUN_ENV='LD_LIBRARY_PATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`; export LD_LIBRARY_PATH;'
        PROFFLAGS=-pg
        ;;
+
 *-*-netbsd*)
        PICFLAGS=-fpic
        SHLIBVEXT='.so.$(LIBMAJOR).$(LIBMINOR)'
        SHLIBEXT=.so
        LDCOMBINE='ld -Bshareable'
-       SHLIB_EXPFLAGS='-R$(SHLIB_RDIRS) $(SHLIB_DIRS)'
+       SHLIB_EXPFLAGS='-R$(SHLIB_RDIRS) $(SHLIB_DIRS) $(SHLIB_EXPLIBS)'
+       CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) -R$(PROG_RPATH)'
+       CC_LINK_STATIC='$(CC) $(PROG_LIBPATH)'
+       RUN_ENV='LD_LIBRARY_PATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`; export LD_LIBRARY_PATH;'
+       PROFFLAGS=-pg
+       ;;
+
+# untested...
+*-*-freebsd*)
+       PICFLAGS=-fpic
+       SHLIBVEXT='.so.$(LIBMAJOR).$(LIBMINOR)'
+       SHLIBEXT=.so
+       LDCOMBINE='ld -Bshareable'
+       SHLIB_EXPFLAGS='-R$(SHLIB_RDIRS) $(SHLIB_DIRS) $(SHLIB_EXPLIBS)'
        CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) -R$(PROG_RPATH)'
        CC_LINK_STATIC='$(CC) $(PROG_LIBPATH)'
        RUN_ENV='LD_LIBRARY_PATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`; export LD_LIBRARY_PATH;'
        PROFFLAGS=-pg
        ;;
+
 *-*-solaris*)
        if test "$GCC" = yes; then
                PICFLAGS=-fpic
@@ -1220,6 +1267,7 @@ mips-*-netbsd*)
        CC_LINK_STATIC='$(PURE) $(CC) $(PROG_LIBPATH)'
        RUN_ENV='LD_LIBRARY_PATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`; export LD_LIBRARY_PATH;'
        ;;
+
 *-*-sunos*)
        PICFLAGS=-fpic
        SHLIBVEXT='.so.$(LIBMAJOR).$(LIBMINOR)'
@@ -1250,6 +1298,7 @@ mips-*-netbsd*)
        CC_LINK_STATIC='$(CC) $(PROG_LIBPATH)'
        RUN_ENV='LD_LIBRARY_PATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`; export LD_LIBRARY_PATH;'
        ;;
+
 *-*-aix*)
        SHLIBVEXT='.a.$(LIBMAJOR).$(LIBMINOR)'
        SHLIBEXT=.a
@@ -1268,5 +1317,3 @@ mips-*-netbsd*)
        RUN_ENV='LIBPATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`:$(PROG_RPATH):/usr/lib:/usr/local/lib; export LIBPATH; '
 
 esac])
-
-