1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

Only try to detect the events lib dir if it wasn't set earlier.

(This used to be commit 3f48f68800176d992a1bd9b6349f22ec152fc34a)
This commit is contained in:
Jelmer Vernooij 2008-06-26 10:11:49 +02:00
parent 9c6b7f760a
commit 4f4949a8f4

View File

@ -1,16 +1,18 @@
dnl find the events sources. This is meant to work both for
dnl standalone builds, and builds of packages using libevents
eventsdir=""
eventspaths="$srcdir $srcdir/lib/events $srcdir/events $srcdir/../events"
for d in $eventspaths; do
if test -f "$d/events.c"; then
eventsdir="$d"
AC_SUBST(eventsdir)
break;
fi
done
if test x"$eventsdir" = "x"; then
AC_MSG_ERROR([cannot find libevents source in $eventspaths])
eventsdir=""
eventspaths="$srcdir $srcdir/../samba4/source/lib/events $srcdir/lib/events $srcdir/events $srcdir/../events"
for d in $eventspaths; do
if test -f "$d/events.c"; then
eventsdir="$d"
AC_SUBST(eventsdir)
break;
fi
done
if test x"$eventsdir" = "x"; then
AC_MSG_ERROR([cannot find libevents source in $eventspaths])
fi
fi
EVENTS_OBJ="events.o events_select.o events_signal.o events_timed.o events_standard.o events_debug.o events_util.o"