aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorFrank Morgner <morgner@informatik.hu-berlin.de>2013-05-16 13:32:49 +0200
committerFrank Morgner <morgner@informatik.hu-berlin.de>2013-05-16 15:02:59 +0200
commit8a759ad3db77a47b635f335e66f9c167a0c221ad (patch)
treea847f3d5c5b6be74bf194a61c53e6d3659633421 /configure.ac
parent101c26db7958d819df1b675d7a3b40293b2ca3fa (diff)
try to link symlink and use a define on error
fixes compiling with Minimalist GNU win32 (cross) compiler 4.2.1, which defines symlink, but doesn't implement it.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1704ad1b..022ce75a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -63,6 +63,7 @@ AC_SEARCH_LIBS(getopt, iberty)
AC_CHECK_FUNCS(strtoimax strtoll)
AC_CHECK_FUNCS(mergesort)
AC_CHECK_FUNCS(mkstemps)
+AC_TRY_LINK_FUNC([symlink],[AC_DEFINE([HAVE_SYMLINK], 1, [Define to 1 if you have the symlink function.])])
AC_OUTPUT( \
skeletons/standard-modules/Makefile \