])dnl
dnl
+dnl Set environment variables so that shared library executables can run
+dnl in the build tree.
dnl
-dnl
+define(KRB5_RUN_FLAGS,[
+if test "$krb5_cv_shlibs_enabled" = yes ; then
+ KRB5_RUN_ENV=
+ if test "$krb5_cv_shlibs_run_ldpath" = default ; then
+ KRB5_RUN_ENV="$KRB5_RUN_ENV LD_LIBRARY_PATH=\$(TOPLIBD) ; export LD_LIBRARY_PATH;"
+ elif test "$krb5_cv_shlibs_run_ldpath" != no ; then
+ KRB5_RUN_ENV="$KRB5_RUN_ENV LD_LIBRARY_PATH=\$(TOPLIBD):$krb5_cv_shlibs_run_ldpath ; export LD_LIBRARY_PATH;"
+ fi
+ # For OSF/1 this commits us to ignore built in rpath libraries
+ if test "$krb5_cv_shlibs_run_rldroot" = dummy ; then
+ KRB5_RUN_ENV="$KRB5_RUN_ENV _RLD_ROOT=/dev/dummy/d; export _RLD_ROOT;"
+ fi
+ # For AIX
+ if test "$krb5_cv_shlibs_run_libpath" != no ; then
+ KRB5_RUN_ENV="$KRB5_RUN_ENV LIBPATH=\$(TOPLIBD):$krb5_cv_shlibs_run_libpath ; export LIBPATH;"
+ fi
+else
+ KRB5_RUN_ENV=
+fi
+AC_SUBST(KRB5_RUN_ENV)
+])dnl
krb5_cv_shlibs_tail_comp=
krb5_cv_shlibs_enabled=yes
krb5_cv_staticlibs_enabled=yes
+ krb5_cv_shlibs_run_ldpath=default
+ krb5_cv_shlibs_run_libpath=no
+ krb5_cv_shlibs_run_rldroot=no
;;
*-*-linux*)
echo "Enabling shared libraries for Linux...."
krb5_cv_shlibs_tail_comp=
krb5_cv_shlibs_enabled=yes
krb5_cv_staticlibs_enabled=yes
+ krb5_cv_shlibs_run_ldpath=default
+ krb5_cv_shlibs_run_libpath=no
+ krb5_cv_shlibs_run_rldroot=no
;;
*-*-aix*)
echo "Enabling shared libraries for AIX...."
krb5_cv_staticlibs_enabled=
krb5_cv_shlibs_tail_comp=
krb5_cv_shlibs_enabled=yes
+ krb5_cv_shlibs_run_ldpath=no
+ # This ugly line indicates to put $LIBPATH: into the path only if set
+ krb5_cv_shlibs_run_libpath="\$\$LIBPATH\$\${LIBPATH:+:}/usr/lib:/lib"
+ krb5_cv_shlibs_run_rldroot=no
;;
mips-sni-sysv4)
echo "Enabling shared libraries for Sinix...."
krb5_cv_shlibs_tail_comp=
krb5_cv_staticlibs_enabled=yes
krb5_cv_shlibs_enabled=yes
+ krb5_cv_shlibs_run_ldpath=default
+ krb5_cv_shlibs_run_libpath=no
+ krb5_cv_shlibs_run_rldroot=no
;;
*-*-solaris*)
echo "Enabling shared libraries for Solaris...."
fi
krb5_cv_shlibs_ext=so
krb5_cv_noshlibs_ext=a
-krb5_cv_shlibs_versioned_filenames=yes
+ krb5_cv_shlibs_versioned_filenames=yes
krb5_cv_shlibs_need_nover=yes
krb5_cv_shlibs_dir=shared
krb5_cv_shlibs_ldflag="-dy"
krb5_cv_shlibs_tail_comp=
krb5_cv_staticlibs_enabled=yes
krb5_cv_shlibs_enabled=yes
+ krb5_cv_shlibs_run_ldpath=default
+ krb5_cv_shlibs_run_libpath=no
+ krb5_cv_shlibs_run_rldroot=no
;;
alpha-dec-osf*)
echo "Enabling shared libraries for Alpha OSF...."
krb5_cv_shlibs_cflags=
krb5_cv_shlibs_ext=so
krb5_cv_noshlibs_ext=a
-krb5_cv_shlibs_versioned_filenames=yes
+ krb5_cv_shlibs_versioned_filenames=yes
krb5_cv_shlibs_need_nover=yes
krb5_cv_shlibs_dir=
krb5_cv_shlibs_ldflag="-call_shared"
krb5_cv_shlibs_tail_comp=
krb5_cv_staticlibs_enabled=yes
krb5_cv_shlibs_enabled=yes
+ # OSF/1 needs a dummy rldroot to bypath -rpath and therefore
+ # needs all library paths indicated
+ krb5_cv_shlibs_run_ldpath="/usr/shlib:/usr/ccs/lib:/usr/lib/cmplrs/cc:/usr/lib:/usr/local/lib"
+ krb5_cv_shlibs_run_rldroot=dummy
+ krb5_cv_shlibs_run_libpath=no
if test ! -f so_locations; then
cp -p /usr/shlib/so_locations .
fi
krb5_cv_shlibs_tail_comp=
krb5_cv_shlibs_enabled=yes
krb5_cv_staticlibs_enabled=yes
+ krb5_cv_shlibs_run_ldpath=default
+ krb5_cv_shlibs_run_libpath=no
+ krb5_cv_shlibs_run_rldroot=no
;;
*)
echo " "