* Only look for kernel32.dll if the target is windows.

git-svn-id: svn://svn.zoy.org/elk/trunk@229 55e467fa-43c5-0310-a8a2-de718669efc6
This commit is contained in:
sam 2003-10-07 19:20:35 +00:00
parent 2c8c2dadb8
commit 749a5869ae
1 changed files with 11 additions and 4 deletions

View File

@ -40,6 +40,7 @@ AC_SUBST(STDINT_HEADER)
# type of system.
AC_DEFINE_UNQUOTED(SYSTEMTYPE, ["${target_os}"], [Our operating system])
SYSTEM="${target_os}"
MATH_LIBS="-lm"
case "${target_os}" in
*hpux*)
@ -49,6 +50,10 @@ case "${target_os}" in
ELK_CFLAGS="${ELK_CFLAGS} -DELK_BUILD_DLL"
ELK_LDFLAGS="${ELK_LDFLAGS} -no-undefined"
MATH_LIBS=""
SYSTEM="mingw32"
;;
*cygwin*)
SYSTEM="cygwin"
;;
*darwin*)
AC_DEFINE(SYS_DARWIN, 1, Define if the system is Darwin)
@ -214,10 +219,12 @@ fi
# Win32 style
if test "${ac_cv_my_can_load_lib}" = "no"; then
AC_CHECK_LIB(kernel32, main,
[ELK_LIBS="${ELK_LIBS} -lkernel32"
AC_DEFINE(HAVE_DL_WINDOWS, 1, [Define if you have Windows' LoadLibrary])
ac_cv_my_can_load_lib=yes])
if test "${SYSTEM}" = "mingw32" -o "${SYSTEM}" = "cygwin"; then
AC_CHECK_LIB(kernel32, main,
[ELK_LIBS="${ELK_LIBS} -lkernel32"
AC_DEFINE(HAVE_DL_WINDOWS, 1, [Define if you have Windows' LoadLibrary])
ac_cv_my_can_load_lib=yes])
fi
fi
AC_CHECK_HEADERS(a.out.h)