Commit b6df620190edff97dd8497da1db3a6b1d561ca1c
1 parent
527b9e2d
add -ldl linker flag only if libdl is available, thus prepare the code to compil…
…e on platforms where the dynamic linker code is included within the C library (FreeBSD)
Showing
1 changed file
with
4 additions
and
2 deletions
... | ... | @@ -8,7 +8,7 @@ AC_INIT([taskrambler], |
8 | 8 | LT_INIT |
9 | 9 | AM_INIT_AUTOMAKE |
10 | 10 | #AM_INIT_AUTOMAKE([subdir-objects]) |
11 | -AM_SILENT_RULES([yes]) | |
11 | +#AM_SILENT_RULES([yes]) | |
12 | 12 | AC_COPYRIGHT([Copyright © 2013 Georg Hopp]) |
13 | 13 | AC_REVISION([m4_esyscmd_s([git describe --always])]) |
14 | 14 | AC_CONFIG_SRCDIR([src/taskrambler.c]) |
... | ... | @@ -51,6 +51,9 @@ AM_COND_IF([HAVE_DOXYGEN], |
51 | 51 | # [AC_MSG_ERROR([json-c library not found], [1])]) |
52 | 52 | AC_CHECK_LIB([ssl], [SSL_library_init], [], |
53 | 53 | [AC_MSG_ERROR([openssl not found], [1])]) |
54 | +AC_CHECK_LIB([dl], [dlopen], [LIBS="-ldl"], | |
55 | + [AC_MSG_ERROR([openssl not found], [1])]) | |
56 | + | |
54 | 57 | |
55 | 58 | # Checks for header files. |
56 | 59 | AC_CHECK_HEADERS([stdarg.h string.h stdlib.h stdio.h unistd.h syslog.h sys/types.h json/json.h]) |
... | ... | @@ -104,7 +107,6 @@ AC_CONFIG_FILES([Makefile |
104 | 107 | src/user/Makefile |
105 | 108 | src/config/Makefile |
106 | 109 | src/router/Makefile |
107 | - src/uuid/Makefile | |
108 | 110 | docs/Makefile |
109 | 111 | config/Makefile |
110 | 112 | tests/Makefile]) | ... | ... |
Please
register
or
login
to post a comment