--- configure.in.orig Mon Apr 12 22:40:51 1999 +++ configure.in Mon Apr 12 22:40:54 1999 @@ -304,29 +304,29 @@ LDSHARED="" if test "$LIB_TARGET" = "libwine.so.1.0" then - AC_CACHE_CHECK("whether we can build a Linux dll", - ac_cv_c_dll_linux, + AC_CACHE_CHECK("whether we can build a NetBSD dll", + ac_cv_c_dll_netbsd, [saved_cflags=$CFLAGS - CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0" - AC_TRY_LINK(,[return 1],ac_cv_c_dll_linux="yes",ac_cv_c_dll_linux="no") + CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive" + AC_TRY_LINK(,[return 1],ac_cv_c_dll_netbsd="yes",ac_cv_c_dll_netbsd="no") CFLAGS=$saved_cflags ]) - if test "$ac_cv_c_dll_linux" = "yes" + if test "$ac_cv_c_dll_netbsd" = "yes" then DLLFLAGS="-fPIC" - LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so" + LDSHARED="ld -Bshareable -Bforcearchive" else - AC_CACHE_CHECK("whether we can build a NetBSD dll", - ac_cv_c_dll_netbsd, + AC_CACHE_CHECK("whether we can build a Linux dll", + ac_cv_c_dll_linux, [saved_cflags=$CFLAGS - CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive" - AC_TRY_LINK(,[return 1],ac_cv_c_dll_netbsd="yes",ac_cv_c_dll_netbsd="no") + CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0" + AC_TRY_LINK(,[return 1],ac_cv_c_dll_linux="yes",ac_cv_c_dll_linux="no") CFLAGS=$saved_cflags ]) - if test "$ac_cv_c_dll_netbsd" = "yes" + if test "$ac_cv_c_dll_linux" = "yes" then DLLFLAGS="-fPIC" - LDSHARED="ld -Bshareable -Bforcearchive" + LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so" fi fi if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_netbsd" = "no"