freebsd (below).
* libtool.m4 (netbsd ELF): support file_magic.
From Dan Winship <danw@helixcode.com>.
+2000-05-29 Gary V. Vaughan <gvv@techie.com>
+
+ * libtool.m4 (netbsd*): Use -L option to file_magic_cmd as for
+ freebsd (below).
+ * libtool.m4 (netbsd ELF): support file_magic.
+ From Dan Winship <danw@helixcode.com>.
+
2000-05-29 Steven M. Schultz <sms@moe.2bsd.com>
* libtool.m4 (bsdi4*): Add -L option to bsdi4's file_magic_cmd
lt_cv_file_magic_cmd='${OBJDUMP} -f'
;;
-freebsd*)
+freebsd* )
case "$version_type" in
freebsd-elf*)
lt_cv_deplibs_check_method=pass_all
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
;;
+netbsd*)
+ if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
+ else
+ changequote(,)dnl
+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
+ changequote([, ])dnl
+ lt_cv_file_magic_cmd='/usr/bin/file -L'
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
+ fi
+ ;;
+
osf3* | osf4* | osf5*)
# this will be overridden with pass_all, but let us keep it just in case
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'