diff options
author | Steve Bennett <steveb@workware.net.au> | 2010-09-10 15:25:45 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2010-10-15 11:02:52 +1000 |
commit | 9a438e624ea8771f790eb0e45bb65f7091681daf (patch) | |
tree | c6a2bd416a63aebdbb058010c68157bd096b4430 /configure.ac | |
parent | 7226f89f4865c2c8db2f51a28b0a98379092936a (diff) | |
download | jimtcl-9a438e624ea8771f790eb0e45bb65f7091681daf.zip jimtcl-9a438e624ea8771f790eb0e45bb65f7091681daf.tar.gz jimtcl-9a438e624ea8771f790eb0e45bb65f7091681daf.tar.bz2 |
autoconf improvements
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'configure.ac')
-rwxr-xr-x | configure.ac | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 84f726c..ff7738a 100755 --- a/configure.ac +++ b/configure.ac @@ -10,7 +10,7 @@ AC_PROG_CC AC_PROG_MAKE_SET # Checks for types -AC_CHECK_TYPES(long long,AC_SUBST(HAVE_LONG_LONG,["#define HAVE_LONG_LONG"])) +AC_CHECK_TYPES(long long) # Shared library support. Because we don't believe in automake! AC_CANONICAL_HOST @@ -84,7 +84,10 @@ AC_CHECK_FUNCS([regcomp waitpid sigaction sys_signame sys_siglist]) AC_SUBST(EXTRA_CFLAGS,$EXTRA_CFLAGS) AC_SUBST(SRCDIR,`dirname $0`) -AC_CHECK_LIB(dl, dlopen,AC_SUBST(LIBDL,-ldl)) +AC_SEARCH_LIBS(dlopen, dl, + AC_SUBST(LIBDL,${ac_cv_search_dlopen%none required}) + AC_DEFINE([HAVE_DLOPEN],[1],[Have the dlopen function]) +) AC_CONFIG_FILES([Makefile]) AC_OUTPUT |