Mercurial > mplayer.hg
changeset 32148:9e345136c335
Simplify dynamic loader check.
author | diego |
---|---|
date | Tue, 14 Sep 2010 10:05:46 +0000 |
parents | d02cedf3bf1c |
children | 0261b706dddf |
files | configure |
diffstat | 1 files changed, 2 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Tue Sep 14 09:48:18 2010 +0000 +++ b/configure Tue Sep 14 10:05:46 2010 +0000 @@ -3579,14 +3579,9 @@ fi echocheck "dynamic loader" -cat > $TMPC << EOF -#include <stddef.h> -#include <dlfcn.h> -int main(void) { dlopen("", 0); dlclose(NULL); dlsym(NULL, ""); return 0; } -EOF _dl=no -for _ld_tmp in "" "-ldl" ; do - cc_check $_ld_tmp && _ld_dl="$_ld_tmp" && _dl=yes && break +for _ld_dl in "" -ldl; do + function_check dlfcn.h 'dlopen("", 0)' $_ld_dl && _ld_dl="$_ld_tmp" && _dl=yes && break done if test "$_dl" = yes ; then def_dl='#define HAVE_LIBDL 1'