Changeset 686

Show
Ignore:
Timestamp:
10/29/06 19:13:47 (2 years ago)
Author:
common
Message:

nepenthes

  • linking flags for dlopen, hopefully fix it on the bsd's and don't break it anywhere else
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nepenthes/trunk/configure.ac

    r661 r686  
    198198# liby 
    199199AC_SUBST([LIB_LIBY]) 
     200 
     201# libdl 
     202AC_SUBST([LIB_DL]) 
     203 
     204dnl ************************************************** 
     205dnl * libdl linking flag                             * 
     206dnl ************************************************** 
     207 
     208enable_dl=no; 
     209AC_CHECK_FUNC([dlopen],enable_dl="yes", enable_dl="no") 
     210 
     211if test x$enable_dl = "xno" ; then 
     212        AC_CHECK_LIB([dl],[dlopen],enable_dl="yes", enable_dl="no") 
     213        if test x$enable_dl = "xyes" ; then 
     214                LIB_DL="-ldl" 
     215        fi 
     216fi 
     217 
     218if test x$enable_dl = "xno" ; then 
     219        AC_CHECK_LIB([ldld],[dlopen],enable_dl="yes", enable_dl="no") 
     220        if test x$enable_dl = "xyes" ; then 
     221                LIB_DL="-ldl" 
     222        fi 
     223fi 
     224 
     225 
    200226 
    201227dnl ************************************************** 
  • nepenthes/trunk/nepenthes-core/src/Makefile.am

    r594 r686  
    66 
    77AM_CPPFLAGS = -I../include -I ../.. -Wall -Werror 
    8 AM_LDFLAGS = $(LIB_MAGIC) $(LIB_CAP) -ldl 
     8AM_LDFLAGS = $(LIB_MAGIC) $(LIB_CAP) $(LIB_DL) 
    99 
    1010bin_PROGRAMS = nepenthes