Last change
on this file was
c5c522c,
checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago
|
initial commit, transferred from cleaned syn3 svn tree
|
-
Property mode set to
100644
|
File size:
865 bytes
|
Line | |
---|
1 | # $Id: dllibs.m4,v 1.1 2005/09/29 16:36:42 jonz Exp $ |
---|
2 | # m4/dl.m4 |
---|
3 | # |
---|
4 | # DS_DLLIBS([libs_out], [action-if-found], [action-if-not-found]) |
---|
5 | # |
---|
6 | # Search for additional libraries containing dlopen(). |
---|
7 | # |
---|
8 | # Typically, this is either -ldl or libc |
---|
9 | # |
---|
10 | AC_DEFUN([DS_DLLIBS], |
---|
11 | [ |
---|
12 | AS_VAR_PUSHDEF([save_LIBS], [ds_dllibs_save_LIBS]) |
---|
13 | AS_VAR_PUSHDEF([dllibs], [ds_dllibs_dllibs]) |
---|
14 | AS_VAR_PUSHDEF([success], [ds_dllibs_success]) |
---|
15 | |
---|
16 | save_LIBS="$LIBS" |
---|
17 | LIBS='' |
---|
18 | success=yes |
---|
19 | |
---|
20 | AC_SEARCH_LIBS([dlopen], [dl], [success=yes], [success=no]) |
---|
21 | |
---|
22 | dllibs="$LIBS" |
---|
23 | LIBS="$save_LIBS" |
---|
24 | |
---|
25 | AS_VAR_POPDEF([save_LIBS]) |
---|
26 | AS_VAR_POPDEF([dllibs]) |
---|
27 | AS_VAR_POPDEF([success]) |
---|
28 | |
---|
29 | if test x"$ds_dllibs_success" = xyes |
---|
30 | then |
---|
31 | ifelse([$1], [], [:], [$1="$ds_dllibs_dllibs"]) |
---|
32 | ifelse([$2], [], [:], [$2]) |
---|
33 | else |
---|
34 | ifelse([$3], [], [:], [$3]) |
---|
35 | fi |
---|
36 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.