diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2005-06-09 18:56:03 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2005-06-09 18:56:03 +0000 |
commit | 6632a6c9dcb108d33393e42f61f8f18a05973668 (patch) | |
tree | 2a45bb1bc207f6c7891846bba14b2f0a729947ea | |
parent | 48baf10b0bff1ea557b1f0e8a49ac6bd8f648df5 (diff) |
checking for additional libraries needed by mingw
svn path=/trunk/externals/zexy/; revision=3149
-rw-r--r-- | src/configure.ac | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/configure.ac b/src/configure.ac index c94c1dc..49c4aa2 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -39,6 +39,9 @@ dnl Replace `main' with a function in -lc: AC_CHECK_LIB(c, main) AC_CHECK_LIB(crtdll, fclose) +AC_CHECK_LIB(coldname, lseek) +AC_CHECK_LIB(kernel32, main) + dnl Replace `main' with a function in -lm: AC_CHECK_LIB(m, main) dnl Replace `main' with a function in -lpthread: @@ -118,7 +121,24 @@ fi dnl if we don't have $LD set, we set it to $(CC) +dnl LD=${LD:=$CC} +if test "x$LD" = "x" +then + if test "x$host" != "x" + then + LD=${host}-ld + if $(which ${LD} > /dev/null) + then + : + else + LD="" + fi + fi +fi LD=${LD:=$CC} + + + dnl if we don't have $STRIP set, we set it to ${host}-strip or strip if test "x$STRIP" = "x" then |