mirror of https://github.com/getdnsapi/getdns.git
fixed problem with libevent detection
This commit is contained in:
parent
bea6fde7bf
commit
6b00aca2af
|
@ -734,10 +734,10 @@ SHELL'
|
||||||
ac_subst_files=''
|
ac_subst_files=''
|
||||||
ac_user_opts='
|
ac_user_opts='
|
||||||
enable_option_checking
|
enable_option_checking
|
||||||
|
enable_fast_install
|
||||||
enable_shared
|
enable_shared
|
||||||
enable_static
|
enable_static
|
||||||
with_pic
|
with_pic
|
||||||
enable_fast_install
|
|
||||||
with_gnu_ld
|
with_gnu_ld
|
||||||
with_sysroot
|
with_sysroot
|
||||||
enable_libtool_lock
|
enable_libtool_lock
|
||||||
|
@ -1369,10 +1369,10 @@ Optional Features:
|
||||||
--disable-option-checking ignore unrecognized --enable/--with options
|
--disable-option-checking ignore unrecognized --enable/--with options
|
||||||
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
||||||
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
||||||
|
--enable-fast-install[=PKGS]
|
||||||
|
optimize for fast installation [default=no]
|
||||||
--enable-shared[=PKGS] build shared libraries [default=yes]
|
--enable-shared[=PKGS] build shared libraries [default=yes]
|
||||||
--enable-static[=PKGS] build static libraries [default=yes]
|
--enable-static[=PKGS] build static libraries [default=yes]
|
||||||
--enable-fast-install[=PKGS]
|
|
||||||
optimize for fast installation [default=yes]
|
|
||||||
--disable-libtool-lock avoid locking (might break parallel builds)
|
--disable-libtool-lock avoid locking (might break parallel builds)
|
||||||
--disable-rpath disable hardcoded rpath (default=enabled)
|
--disable-rpath disable hardcoded rpath (default=enabled)
|
||||||
|
|
||||||
|
@ -2211,6 +2211,37 @@ GETDNS_COMPILATION_COMMENT="getdns 0.1.0 configured on $CURRENT_DATE for the Feb
|
||||||
# LT_INIT
|
# LT_INIT
|
||||||
|
|
||||||
|
|
||||||
|
# Check whether --enable-fast-install was given.
|
||||||
|
if test "${enable_fast_install+set}" = set; then :
|
||||||
|
enableval=$enable_fast_install; p=${PACKAGE-default}
|
||||||
|
case $enableval in
|
||||||
|
yes) enable_fast_install=yes ;;
|
||||||
|
no) enable_fast_install=no ;;
|
||||||
|
*)
|
||||||
|
enable_fast_install=no
|
||||||
|
# Look at the argument we got. We use all the common list separators.
|
||||||
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
||||||
|
for pkg in $enableval; do
|
||||||
|
IFS="$lt_save_ifs"
|
||||||
|
if test "X$pkg" = "X$p"; then
|
||||||
|
enable_fast_install=yes
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
IFS="$lt_save_ifs"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
else
|
||||||
|
enable_fast_install=no
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ac_ext=c
|
ac_ext=c
|
||||||
ac_cpp='$CPP $CPPFLAGS'
|
ac_cpp='$CPP $CPPFLAGS'
|
||||||
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
|
@ -6769,35 +6800,6 @@ test -z "$pic_mode" && pic_mode=default
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Check whether --enable-fast-install was given.
|
|
||||||
if test "${enable_fast_install+set}" = set; then :
|
|
||||||
enableval=$enable_fast_install; p=${PACKAGE-default}
|
|
||||||
case $enableval in
|
|
||||||
yes) enable_fast_install=yes ;;
|
|
||||||
no) enable_fast_install=no ;;
|
|
||||||
*)
|
|
||||||
enable_fast_install=no
|
|
||||||
# Look at the argument we got. We use all the common list separators.
|
|
||||||
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
|
||||||
for pkg in $enableval; do
|
|
||||||
IFS="$lt_save_ifs"
|
|
||||||
if test "X$pkg" = "X$p"; then
|
|
||||||
enable_fast_install=yes
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
IFS="$lt_save_ifs"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
else
|
|
||||||
enable_fast_install=yes
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -11173,7 +11175,7 @@ getdns_LDFLAGS=$LDFLAGS
|
||||||
EXTENSION_LDFLAGS=$LDFLAGS
|
EXTENSION_LDFLAGS=$LDFLAGS
|
||||||
|
|
||||||
# libevent extension
|
# libevent extension
|
||||||
have_libevent=1
|
have_libevent=0
|
||||||
EXTENSION_LIBEVENT_LIB="libgetdns_ext_event.la"
|
EXTENSION_LIBEVENT_LIB="libgetdns_ext_event.la"
|
||||||
EXTENSION_LIBEVENT_EXT_LIBS=""
|
EXTENSION_LIBEVENT_EXT_LIBS=""
|
||||||
CHECK_EVENT_PROG=""
|
CHECK_EVENT_PROG=""
|
||||||
|
@ -11251,7 +11253,8 @@ if test "x$ac_cv_header_event2_event_h" = xyes; then :
|
||||||
#define HAVE_EVENT2_EVENT_H 1
|
#define HAVE_EVENT2_EVENT_H 1
|
||||||
_ACEOF
|
_ACEOF
|
||||||
# event2/event.h found
|
# event2/event.h found
|
||||||
EXTENSION_LIBEVENT_EXT_LIBS="-l$ac_lib"
|
have_libevent=1
|
||||||
|
EXTENSION_LIBEVENT_EXT_LIBS="$ac_cv_search_event_loop"
|
||||||
CHECK_EVENT_PROG=check_getdns_event
|
CHECK_EVENT_PROG=check_getdns_event
|
||||||
else
|
else
|
||||||
# not found - look for event.h
|
# not found - look for event.h
|
||||||
|
@ -11264,11 +11267,10 @@ if test "x$ac_cv_header_event_h" = xyes; then :
|
||||||
#define HAVE_EVENT_H 1
|
#define HAVE_EVENT_H 1
|
||||||
_ACEOF
|
_ACEOF
|
||||||
# found
|
# found
|
||||||
EXTENSION_LIBEVENT_EXT_LIBS="-l$ac_lib"
|
EXTENSION_LIBEVENT_EXT_LIBS="$ac_cv_search_event_loop"
|
||||||
CHECK_EVENT_PROG=check_getdns_event
|
CHECK_EVENT_PROG=check_getdns_event
|
||||||
else
|
else
|
||||||
# not found - give up
|
# not found - give up
|
||||||
have_libevent=0
|
|
||||||
EXTENSION_LIBEVENT_LIB=""
|
EXTENSION_LIBEVENT_LIB=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -11357,7 +11359,7 @@ if test "x$ac_cv_header_uv_h" = xyes; then :
|
||||||
cat >>confdefs.h <<_ACEOF
|
cat >>confdefs.h <<_ACEOF
|
||||||
#define HAVE_UV_H 1
|
#define HAVE_UV_H 1
|
||||||
_ACEOF
|
_ACEOF
|
||||||
EXTENSION_LIBUV_EXT_LIBS="-l$ac_lib"
|
EXTENSION_LIBUV_EXT_LIBS="$ac_cv_search_uv_run"
|
||||||
CHECK_UV_PROG=check_getdns_uv
|
CHECK_UV_PROG=check_getdns_uv
|
||||||
else
|
else
|
||||||
have_libuv=0
|
have_libuv=0
|
||||||
|
@ -11443,7 +11445,7 @@ if test "x$ac_cv_header_ev_h" = xyes; then :
|
||||||
cat >>confdefs.h <<_ACEOF
|
cat >>confdefs.h <<_ACEOF
|
||||||
#define HAVE_EV_H 1
|
#define HAVE_EV_H 1
|
||||||
_ACEOF
|
_ACEOF
|
||||||
EXTENSION_LIBEV_EXT_LIBS="-l$ac_lib"
|
EXTENSION_LIBEV_EXT_LIBS="$ac_cv_search_ev_run"
|
||||||
CHECK_EV_PROG=check_getdns_ev
|
CHECK_EV_PROG=check_getdns_ev
|
||||||
else
|
else
|
||||||
have_libev=0
|
have_libev=0
|
||||||
|
@ -12211,12 +12213,12 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
||||||
sed_quote_subst='$sed_quote_subst'
|
sed_quote_subst='$sed_quote_subst'
|
||||||
double_quote_subst='$double_quote_subst'
|
double_quote_subst='$double_quote_subst'
|
||||||
delay_variable_subst='$delay_variable_subst'
|
delay_variable_subst='$delay_variable_subst'
|
||||||
|
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
|
||||||
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
|
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
|
||||||
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
|
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
|
||||||
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
|
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
|
||||||
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
|
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
|
||||||
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
|
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
|
||||||
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
|
|
||||||
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
|
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
|
||||||
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
|
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
|
||||||
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
|
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
|
||||||
|
@ -13108,6 +13110,9 @@ available_tags=""
|
||||||
|
|
||||||
# ### BEGIN LIBTOOL CONFIG
|
# ### BEGIN LIBTOOL CONFIG
|
||||||
|
|
||||||
|
# Whether or not to optimize for fast installation.
|
||||||
|
fast_install=$enable_fast_install
|
||||||
|
|
||||||
# Which release of libtool.m4 was used?
|
# Which release of libtool.m4 was used?
|
||||||
macro_version=$macro_version
|
macro_version=$macro_version
|
||||||
macro_revision=$macro_revision
|
macro_revision=$macro_revision
|
||||||
|
@ -13121,9 +13126,6 @@ build_old_libs=$enable_static
|
||||||
# What type of objects to build.
|
# What type of objects to build.
|
||||||
pic_mode=$pic_mode
|
pic_mode=$pic_mode
|
||||||
|
|
||||||
# Whether or not to optimize for fast installation.
|
|
||||||
fast_install=$enable_fast_install
|
|
||||||
|
|
||||||
# Shell to use when invoking shell scripts.
|
# Shell to use when invoking shell scripts.
|
||||||
SHELL=$lt_SHELL
|
SHELL=$lt_SHELL
|
||||||
|
|
||||||
|
|
12
configure.ac
12
configure.ac
|
@ -196,7 +196,7 @@ getdns_LDFLAGS=$LDFLAGS
|
||||||
EXTENSION_LDFLAGS=$LDFLAGS
|
EXTENSION_LDFLAGS=$LDFLAGS
|
||||||
|
|
||||||
# libevent extension
|
# libevent extension
|
||||||
have_libevent=1
|
have_libevent=0
|
||||||
EXTENSION_LIBEVENT_LIB="libgetdns_ext_event.la"
|
EXTENSION_LIBEVENT_LIB="libgetdns_ext_event.la"
|
||||||
EXTENSION_LIBEVENT_EXT_LIBS=""
|
EXTENSION_LIBEVENT_EXT_LIBS=""
|
||||||
CHECK_EVENT_PROG=""
|
CHECK_EVENT_PROG=""
|
||||||
|
@ -205,15 +205,15 @@ AC_SEARCH_LIBS([event_loop],
|
||||||
[AC_CHECK_FUNCS([event_base_new event_base_free])]
|
[AC_CHECK_FUNCS([event_base_new event_base_free])]
|
||||||
[AC_CHECK_HEADERS([event2/event.h],
|
[AC_CHECK_HEADERS([event2/event.h],
|
||||||
# event2/event.h found
|
# event2/event.h found
|
||||||
[EXTENSION_LIBEVENT_EXT_LIBS="-l$ac_lib"]
|
[have_libevent=1]
|
||||||
|
[EXTENSION_LIBEVENT_EXT_LIBS="$ac_cv_search_event_loop"]
|
||||||
[CHECK_EVENT_PROG=check_getdns_event],
|
[CHECK_EVENT_PROG=check_getdns_event],
|
||||||
# not found - look for event.h
|
# not found - look for event.h
|
||||||
[AC_CHECK_HEADERS([event.h],
|
[AC_CHECK_HEADERS([event.h],
|
||||||
# found
|
# found
|
||||||
[EXTENSION_LIBEVENT_EXT_LIBS="-l$ac_lib"]
|
[EXTENSION_LIBEVENT_EXT_LIBS="$ac_cv_search_event_loop"]
|
||||||
[CHECK_EVENT_PROG=check_getdns_event],
|
[CHECK_EVENT_PROG=check_getdns_event],
|
||||||
# not found - give up
|
# not found - give up
|
||||||
[have_libevent=0]
|
|
||||||
[EXTENSION_LIBEVENT_LIB=""],
|
[EXTENSION_LIBEVENT_LIB=""],
|
||||||
[AC_INCLUDES_DEFAULT])]
|
[AC_INCLUDES_DEFAULT])]
|
||||||
,[AC_INCLUDES_DEFAULT])],
|
,[AC_INCLUDES_DEFAULT])],
|
||||||
|
@ -234,7 +234,7 @@ CHECK_UV_PROG=""
|
||||||
AC_SEARCH_LIBS([uv_run],
|
AC_SEARCH_LIBS([uv_run],
|
||||||
[uv],
|
[uv],
|
||||||
[AC_CHECK_HEADERS([uv.h],
|
[AC_CHECK_HEADERS([uv.h],
|
||||||
[EXTENSION_LIBUV_EXT_LIBS="-l$ac_lib"]
|
[EXTENSION_LIBUV_EXT_LIBS="$ac_cv_search_uv_run"]
|
||||||
[CHECK_UV_PROG=check_getdns_uv],
|
[CHECK_UV_PROG=check_getdns_uv],
|
||||||
[have_libuv=0]
|
[have_libuv=0]
|
||||||
[EXTENSION_LIBUV_LIB=""],
|
[EXTENSION_LIBUV_LIB=""],
|
||||||
|
@ -255,7 +255,7 @@ EXTENSION_LIBEV_EXT_LIBS=""
|
||||||
AC_SEARCH_LIBS([ev_run],
|
AC_SEARCH_LIBS([ev_run],
|
||||||
[ev],
|
[ev],
|
||||||
[AC_CHECK_HEADERS([ev.h],
|
[AC_CHECK_HEADERS([ev.h],
|
||||||
[EXTENSION_LIBEV_EXT_LIBS="-l$ac_lib"]
|
[EXTENSION_LIBEV_EXT_LIBS="$ac_cv_search_ev_run"]
|
||||||
[CHECK_EV_PROG=check_getdns_ev],
|
[CHECK_EV_PROG=check_getdns_ev],
|
||||||
[have_libev=0]
|
[have_libev=0]
|
||||||
[EXTENSION_LIBUV_LIB=""],
|
[EXTENSION_LIBUV_LIB=""],
|
||||||
|
|
Loading…
Reference in New Issue