Changeset 10688 for trunk/configure.ac


Ignore:
Timestamp:
May 25, 2010, 7:46:28 PM (12 years ago)
Author:
charles
Message:

(trunk) #3230 "configure: libevent not found" -- honor user-specified LIBEVENT_CFLAGS and LIBEVENT_LDFLAGS arguments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r10675 r10688  
    203203             [libevent_extra_libs=""])
    204204
     205
    205206dnl libevent
    206 AC_CHECK_LIB([event],[evutil_vsnprintf],
    207              [],
    208              [AC_MSG_ERROR(libevent not found!)],
    209              [$libevent_extra_libs])
    210 AC_CHECK_HEADER([event-config.h],[],
    211                 [AC_MSG_ERROR(event-config.h not found!)])
    212 LIBEVENT_CFLAGS=""
    213 LIBEVENT_LIBS="-levent $libevent_extra_libs"
     207dnl if the user specified LIBEVENT_LIBS or
     208if test -n "$LIBEVENT_LIBS"; then
     209    user_specified_libevent=yes
     210elif test -n "$LIBEVENT_CFLAGS"; then
     211    user_specified_libevent=yes
     212fi
     213if test "x$user_specified_libevent" == "xyes"; then
     214    AC_MSG_NOTICE([Using user-specified LIBEVENT_LIBS and LIBEVENT_CFLAGS])
     215else
     216    AC_CHECK_LIB([event],[evutil_vsnprintf],
     217                 [],
     218                 [AC_MSG_ERROR(libevent not found!)],
     219                 [$libevent_extra_libs])
     220    AC_CHECK_HEADER([event-config.h],[],
     221                    [AC_MSG_ERROR(event-config.h not found!)])
     222    LIBEVENT_CFLAGS=""
     223    LIBEVENT_LIBS="-levent $libevent_extra_libs"
     224fi
    214225AC_ARG_VAR([LIBEVENT_CFLAGS], [C compiler flags for LIBEVENT, overriding pkg-config])dnl
    215226AC_ARG_VAR([LIBEVENT_LIBS], [linker flags for LIBEVENT, overriding pkg-config])dnl
     
    501512   Build GTK+ client:                                 ${build_gtk}
    502513
    503       dbus support:                                   ${use_dbus_glib}
    504       gio for watchdir support:                       ${use_gio}
    505       libnotify for 'download completed' popups:      ${use_libnotify}
    506       libcanberra for 'download completed' sounds:    ${use_canberra}
    507       gconf2 to tell GNOME we handle magnet links:    ${use_gconf2}
    508       libappindicator for Ubuntu-style system tray:   ${use_libappindicator}
    509 
    510       THESE ARE ALL OPTIONAL. If you're a packager
    511       or user who doesn't want these dependencies,
    512       use the ones you want and skip all the rest.
     514     Optional dependencies for GTK+ client:
     515
     516      * dbus support:                                 ${use_dbus_glib}
     517      * gio for watchdir support:                     ${use_gio}
     518      * libnotify for 'download completed' popups:    ${use_libnotify}
     519      * libcanberra for 'download completed' sounds:  ${use_canberra}
     520      * gconf2 to register as a magnet link handler:  ${use_gconf2}
     521      * libappindicator for an Ubuntu-style tray:     ${use_libappindicator}
    513522
    514523   Build Daemon:                                      ${build_daemon}
Note: See TracChangeset for help on using the changeset viewer.