2004-06-24 14:18:37 +00:00
AC_PREREQ(2.52)
2010-06-27 16:02:38 +00:00
AC_INIT(NetworkManager, 0.8.1, dcbw@redhat.com, NetworkManager)
2009-02-25 19:58:18 +00:00
AM_INIT_AUTOMAKE([1.9 subdir-objects tar-ustar no-dist-gzip dist-bzip2])
2010-08-03 19:58:46 +00:00
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([no])])
2005-02-14 17:47:59 +00:00
AM_MAINTAINER_MODE
2004-06-24 14:18:37 +00:00
2009-04-21 23:45:30 +00:00
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
2004-08-29 05:10:16 +00:00
2009-04-21 23:55:31 +00:00
dnl Define _GNU_SOURCE for various things like strcasestr()
AC_GNU_SOURCE
2004-11-16 02:41:53 +00:00
dnl
dnl Require programs
dnl
2004-06-24 14:18:37 +00:00
AC_PROG_CC
2004-08-24 00:31:47 +00:00
AM_PROG_CC_C_O
2004-11-16 02:41:53 +00:00
AC_PROG_INSTALL
2004-09-29 22:22:05 +00:00
AC_PROG_LIBTOOL
2008-03-12 19:45:05 +00:00
dnl ensure that when the Automake generated makefile calls aclocal,
dnl it honours the $ACLOCAL_FLAGS environment variable
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
if test -n "$ac_macro_dir"; then
ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
fi
AC_SUBST([ACLOCAL_AMFLAGS])
dnl maintainer mode stuff
if test $USE_MAINTAINER_MODE = yes; then
DISABLE_DEPRECATED="-DG_DISABLE_DEPRECATED -DGCONF_DISABLE_DEPRECATED"
else
DISABLE_DEPRECATED=""
fi
AC_SUBST(DISABLE_DEPRECATED)
2006-12-01 20:13:09 +00:00
2004-11-16 02:41:53 +00:00
dnl
dnl Required headers
dnl
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h paths.h sys/ioctl.h sys/time.h syslog.h unistd.h)
dnl
dnl Checks for typedefs, structures, and compiler characteristics.
dnl
AC_TYPE_MODE_T
AC_TYPE_PID_T
AC_HEADER_TIME
dnl
dnl Checks for library functions.
dnl
AC_PROG_GCC_TRADITIONAL
AC_FUNC_MEMCMP
AC_CHECK_FUNCS(select socket uname)
2005-06-20 17:16:51 +00:00
dnl
dnl translation support
dnl
2004-08-26 19:14:26 +00:00
GETTEXT_PACKAGE=NetworkManager
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
2006-12-01 20:15:14 +00:00
IT_PROG_INTLTOOL([0.35.0])
2004-08-26 19:14:26 +00:00
AM_GLIB_GNU_GETTEXT
2008-02-28 20:46:04 +00:00
dnl
2009-02-22 12:59:21 +00:00
dnl Documentation
2008-02-28 20:46:04 +00:00
dnl
2009-04-20 22:49:33 +00:00
AC_ARG_WITH(docs, AS_HELP_STRING([--with-docs], [Build NetworkManager documentation]))
2008-02-28 20:46:04 +00:00
AM_CONDITIONAL(WITH_DOCS, test "x$with_docs" = "xyes")
case $with_docs in
2008-08-19 13:44:54 +00:00
yes)
enable_gtk_doc=yes
;;
*)
with_docs=no
;;
2008-02-28 20:46:04 +00:00
esac
2006-08-07 13:42:37 +00:00
dnl
dnl Make sha1.c happy on big endian systems
dnl
AC_C_BIGENDIAN
2010-11-05 18:41:20 +00:00
AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO], [Specify the Linux distribution to target: One of redhat, suse, gentoo, debian, arch, slackware, paldo, mandriva, pardus, linexa or exherbo]))
2004-08-24 00:31:47 +00:00
if test "z$with_distro" = "z"; then
2004-08-25 20:52:19 +00:00
AC_CHECK_FILE(/etc/redhat-release,with_distro="redhat")
2005-06-10 03:43:15 +00:00
AC_CHECK_FILE(/etc/SuSE-release,with_distro="suse")
2004-08-25 20:52:19 +00:00
AC_CHECK_FILE(/etc/fedora-release,with_distro="redhat")
AC_CHECK_FILE(/etc/gentoo-release,with_distro="gentoo")
AC_CHECK_FILE(/etc/debian_version,with_distro="debian")
2006-03-27 18:30:52 +00:00
AC_CHECK_FILE(/etc/arch-release,with_distro="arch")
2004-09-07 17:56:53 +00:00
AC_CHECK_FILE(/etc/slackware-version,with_distro="slackware")
2006-08-14 15:06:34 +00:00
AC_CHECK_FILE(/etc/frugalware-release,with_distro="frugalware")
2008-04-01 21:26:09 +00:00
AC_CHECK_FILE(/etc/mandriva-release,with_distro="mandriva")
2010-01-20 21:37:52 +00:00
AC_CHECK_FILE(/etc/pardus-release,with_distro="pardus")
2010-10-09 04:03:10 +00:00
AC_CHECK_FILE(/etc/linexa-release,with_distro="linexa")
2010-11-05 18:41:20 +00:00
AC_CHECK_FILE(/etc/exherbo-release,with_distro="exherbo")
2006-03-27 19:58:03 +00:00
if test "z$with_distro" = "z"; then
with_distro=`lsb_release -is`
fi
2004-08-25 20:52:19 +00:00
fi
2004-11-12 18:49:33 +00:00
with_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]' `
2004-08-25 20:52:19 +00:00
if test "z$with_distro" = "z"; then
2005-02-13 22:10:03 +00:00
echo "Linux distribution autodetection failed, you must specify the distribution to target using --with-distro=DISTRO"
2004-08-24 00:31:47 +00:00
exit 1
else
case $with_distro in
2010-11-05 18:41:20 +00:00
redhat|suse|gentoo|debian|slackware|arch|paldo|frugalware|mandriva|pardus|linexa|exherbo) ;;
2004-08-24 00:31:47 +00:00
*)
2005-02-13 22:10:03 +00:00
echo "Your distribution (${with_distro}) is not yet supported! (patches welcome)"
2004-08-24 00:31:47 +00:00
exit 1
;;
esac
fi
2008-06-10 12:59:32 +00:00
2004-11-12 18:49:33 +00:00
AM_CONDITIONAL(TARGET_REDHAT, test x"$with_distro" = xredhat)
2008-06-10 12:59:32 +00:00
if test x"$with_distro" = xredhat; then
AC_DEFINE(TARGET_REDHAT, 1, [Define if you have Fedora or RHEL])
fi
2005-06-10 03:43:15 +00:00
AM_CONDITIONAL(TARGET_SUSE, test x"$with_distro" = xsuse)
2008-06-10 12:59:32 +00:00
if test x"$with_distro" = xsuse; then
AC_DEFINE(TARGET_SUSE, 1, [Define if you have OpenSUSE or SLES])
fi
2004-11-12 18:49:33 +00:00
AM_CONDITIONAL(TARGET_GENTOO, test x"$with_distro" = xgentoo)
2008-06-10 12:59:32 +00:00
if test x"$with_distro" = xgentoo; then
AC_DEFINE(TARGET_GENTOO, 1, [Define if you have Gentoo])
fi
2004-11-12 18:49:33 +00:00
AM_CONDITIONAL(TARGET_DEBIAN, test x"$with_distro" = xdebian)
2008-06-10 12:59:32 +00:00
if test x"$with_distro" = xdebian; then
AC_DEFINE(TARGET_DEBIAN, 1, [Define if you have Debian])
fi
2004-11-12 18:49:33 +00:00
AM_CONDITIONAL(TARGET_SLACKWARE, test x"$with_distro" = xslackware)
2008-06-10 12:59:32 +00:00
if test x"$with_distro" = xslackware; then
AC_DEFINE(TARGET_SLACKWARE, 1, [Define if you have Slackware])
fi
2006-03-27 18:30:52 +00:00
AM_CONDITIONAL(TARGET_ARCH, test x"$with_distro" = xarch)
2008-06-10 12:59:32 +00:00
if test x"$with_distro" = xarch; then
AC_DEFINE(TARGET_ARCH, 1, [Define if you have Arch])
fi
2006-03-27 19:58:03 +00:00
AM_CONDITIONAL(TARGET_PALDO, test x"$with_distro" = xpaldo)
2008-06-10 12:59:32 +00:00
if test x"$with_distro" = xpaldo; then
AC_DEFINE(TARGET_PALDO, 1, [Define if you have Paldo])
fi
2006-08-14 15:06:34 +00:00
AM_CONDITIONAL(TARGET_FRUGALWARE, test x"$with_distro" = xfrugalware)
2008-06-10 12:59:32 +00:00
if test x"$with_distro" = xfrugalware; then
AC_DEFINE(TARGET_FRUGALWARE, 1, [Define if you have Frugalware])
fi
2008-04-01 21:26:09 +00:00
AM_CONDITIONAL(TARGET_MANDRIVA, test x"$with_distro" = xmandriva)
2008-06-10 12:59:32 +00:00
if test x"$with_distro" = xmandriva; then
AC_DEFINE(TARGET_MANDRIVA, 1, [Define if you have Mandriva])
fi
2004-06-24 14:18:37 +00:00
2010-01-20 21:37:52 +00:00
AM_CONDITIONAL(TARGET_PARDUS, test x"$with_distro" = xpardus)
if test x"$with_distro" = xpardus; then
AC_DEFINE(TARGET_PARDUS, 1, [Define if you have Pardus])
fi
2010-10-09 04:03:10 +00:00
AM_CONDITIONAL(TARGET_LINEXA, test x"$with_distro" = xlinexa)
if test x"$with_distro" = xlinexa; then
AC_DEFINE(TARGET_LINEXA, 1, [Define if you have linexa])
fi
2010-11-05 18:41:20 +00:00
AM_CONDITIONAL(TARGET_EXHERBO, test x"$with_distro" = xexherbo)
if test x"$with_distro" = xexherbo; then
AC_DEFINE(TARGET_EXHERBO, 1, [Define if you have Exherbo])
fi
2010-04-23 13:25:32 +00:00
dnl
dnl Distribution version string
dnl
AC_ARG_WITH(dist-version, AS_HELP_STRING([--with-dist-version=<NM-distribution-version>], [Define the NM's distribution version string]), ac_distver=$withval, ac_distver="")
if ! test x"$ac_distver" = x""; then
AC_DEFINE_UNQUOTED(NM_DIST_VERSION, "$ac_distver", [Define the distribution version string])
fi
2008-03-14 Dan Williams <dcbw@redhat.com>
* include/wireless-helper.h
include/Makefile.am
- One place for all the junk needed for #including wireless.h
* test/nm-tool.c
src/NetworkManagerAP.c
src/wpa.c
src/Makefile.am
libnm-util/nm-utils.c
libnm-util/nm-setting-wireless.c
libnm-glib/nm-device-802-11-wireless.c
libnm-glib/nm-access-point.c
libnm-glib/libnm-glib-test.c
- include wireless-helper.h, not iwlib.h
* configure.in
- Don't need libiw really, just need to check for wireless.h
* src/kernel-types.h
- Remove; used types moved into wpa.c
* src/nm-device-802-11-wireless.c
- (nm_device_802_11_wireless_update_signal_strength,
real_get_generic_capabilities, nm_device_802_11_wireless_get_mode,
nm_device_802_11_wireless_set_mode,
nm_device_802_11_wireless_get_frequency,
nm_device_802_11_wireless_get_ssid,
nm_device_802_11_wireless_set_ssid,
nm_device_802_11_wireless_get_bitrate,
nm_device_802_11_wireless_get_bssid,
nm_device_802_11_wireless_disable_encryption): use ioctl() directly
instead of iwlib functions
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3462 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-03-14 21:12:03 +00:00
AC_MSG_CHECKING([Linux Wireless Extensions >= 18])
AC_TRY_COMPILE([#ifndef __user
#define __user
#endif
#include <sys/types.h>
#include <linux/types.h>
#include <sys/socket.h>
#include <net/if.h>
#include <wireless.h>],
2005-10-19 15:16:35 +00:00
[#ifndef IWEVGENIE
#error "not found"
#endif],
[ac_have_iwevgenie=yes],
[ac_have_iwevgenie=no])
AC_MSG_RESULT($ac_have_iwevgenie)
if test "$ac_have_iwevgenie" = no; then
2008-12-09 19:47:39 +00:00
AC_MSG_ERROR(wireless-tools library and development headers >= 28pre9 not installed or not functional)
2005-10-19 15:16:35 +00:00
fi
2004-06-24 14:18:37 +00:00
2009-11-06 21:40:13 +00:00
dnl
dnl Checks for libm - needed for pow()
dnl
LT_LIB_M
2009-11-06 21:40:44 +00:00
dnl
dnl Checks for libdl - on certain platforms its part of libc
dnl
AC_CHECK_LIB([dl], [dladdr], LIBDL="-ldl", LIBDL="")
AC_SUBST(LIBDL)
2010-08-11 20:40:25 +00:00
dnl
dnl Checks for new dbus-glib property access function
dnl
AC_CHECK_LIB([dbus-glib-1], [dbus_glib_global_set_disable_legacy_property_access], ac_have_dg_prop="1", ac_have_dg_prop="0")
AC_DEFINE_UNQUOTED(HAVE_DBUS_GLIB_DISABLE_LEGACY_PROP_ACCESS, $ac_have_dg_prop, [Define if you have a dbus-glib with dbus_glib_global_set_disable_legacy_property_access()])
2009-02-15 16:20:25 +00:00
PKG_CHECK_MODULES(DBUS, dbus-1 >= 1.1 dbus-glib-1 >= 0.75)
2005-01-12 18:40:04 +00:00
AC_SUBST(DBUS_CFLAGS)
AC_SUBST(DBUS_LIBS)
2009-12-01 19:33:44 +00:00
PKG_CHECK_MODULES(GLIB, gthread-2.0 glib-2.0 >= 2.18 gobject-2.0)
2005-12-09 23:25:22 +00:00
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
2005-06-12 14:35:59 +00:00
PKG_CHECK_MODULES(GMODULE, gmodule-2.0)
AC_SUBST(GMODULE_CFLAGS)
AC_SUBST(GMODULE_LIBS)
2009-06-05 05:55:02 +00:00
PKG_CHECK_MODULES(GUDEV, gudev-1.0)
AC_SUBST(GUDEV_CFLAGS)
AC_SUBST(GUDEV_LIBS)
2009-08-20 18:00:37 +00:00
PKG_CHECK_MODULES(GIO, gio-2.0)
AC_SUBST(GIO_CFLAGS)
AC_SUBST(GIO_LIBS)
2009-08-05 20:34:02 +00:00
AC_ARG_WITH(udev-dir, AS_HELP_STRING([--with-udev-dir=DIR], [where the udev base directory is]))
if test -n "$with_udev_dir" ; then
UDEV_BASE_DIR="$with_udev_dir"
else
UDEV_BASE_DIR="/lib/udev"
fi
AC_SUBST(UDEV_BASE_DIR)
2010-08-12 16:15:26 +00:00
# systemd
AC_ARG_WITH([systemdsystemunitdir],
AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
[],
[with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
2010-09-01 22:25:03 +00:00
if test "x$with_systemdsystemunitdir" != xno; then
AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
fi
AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ])
2010-08-12 16:15:26 +00:00
2007-12-18 03:44:29 +00:00
PKG_CHECK_MODULES(LIBNL, libnl-1 >= 1.0-pre8)
2005-10-28 03:16:02 +00:00
AC_SUBST(LIBNL_CFLAGS)
AC_SUBST(LIBNL_LIBS)
2009-08-24 14:10:46 +00:00
NM_LIBNL_CHECK
2005-10-28 03:16:02 +00:00
2008-08-27 02:57:21 +00:00
PKG_CHECK_MODULES(UUID, uuid)
AC_SUBST(UUID_CFLAGS)
AC_SUBST(UUID_LIBS)
2009-07-23 13:20:52 +00:00
PKG_CHECK_MODULES(POLKIT, polkit-gobject-1)
2008-05-12 02:49:54 +00:00
AC_SUBST(POLKIT_CFLAGS)
2010-08-13 18:18:58 +00:00
# Check for polkit_authority_get_sync()
2010-08-14 00:12:02 +00:00
AC_CHECK_LIB([polkit-gobject-1], [polkit_authority_get_sync], ac_have_pk_auth_get_sync="1", ac_have_pk_auth_get_sync="0")
2010-08-13 18:18:58 +00:00
AC_DEFINE_UNQUOTED(HAVE_POLKIT_AUTHORITY_GET_SYNC, $ac_have_pk_auth_get_sync, [Define if you have a polkit with polkit_authority_get_sync()])
2009-04-20 22:49:33 +00:00
AC_ARG_WITH(crypto, AS_HELP_STRING([--with-crypto=nss | gnutls], [Cryptography library to use for certificate and key operations]),ac_crypto=$withval, ac_crypto=nss)
2008-05-22 17:19:34 +00:00
with_nss=no
with_gnutls=no
if test x"$ac_crypto" = xnss; then
2008-05-19 07:43:13 +00:00
PKG_CHECK_MODULES(NSS, [nss >= 3.11])
2010-11-07 21:02:11 +00:00
AC_SUBST(NSS_CFLAGS)
AC_SUBST(NSS_LIBS)
2008-05-19 07:43:13 +00:00
AC_DEFINE(HAVE_NSS, 1, [Define if you have NSS])
2008-05-22 17:19:34 +00:00
with_nss=yes
elif test x"$ac_crypto" = xgnutls; then
2008-05-19 07:43:13 +00:00
PKG_CHECK_MODULES(GNUTLS, [gnutls >= 1.2])
AC_PATH_PROG(LIBGCRYPT_CONFIG, libgcrypt-config, no)
2008-05-22 17:19:34 +00:00
if test x"$LIBGCRYPT_CONFIG" = xno; then
AC_MSG_ERROR([gnutls explicitly requested but gcrypt not found on system])
else
AC_DEFINE(HAVE_GNUTLS, 1, [Define if you have libgnutls])
LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
AC_SUBST(LIBGCRYPT_CFLAGS)
AC_SUBST(LIBGCRYPT_LIBS)
with_gnutls=yes
fi
2008-05-19 07:43:13 +00:00
else
2010-11-07 21:02:11 +00:00
AC_MSG_ERROR([Please choose either 'nss' or 'gnutls' for certificate and crypto operations])
2008-05-19 07:43:13 +00:00
fi
2008-05-22 17:19:34 +00:00
AM_CONDITIONAL(WITH_NSS, test x"$with_nss" != xno)
AM_CONDITIONAL(WITH_GNUTLS, test x"$with_gnutls" != xno)
2008-05-19 07:43:13 +00:00
2008-05-22 17:19:34 +00:00
# Shouldn't ever trigger this, but just in case...
2008-05-19 07:43:13 +00:00
if test x"$ac_nss" = xno -a x"$ac_gnutls" = xno; then
2008-05-22 17:19:34 +00:00
AC_MSG_ERROR([Could not find required development headers and libraries for '$ac_crypto'])
2008-05-19 07:43:13 +00:00
fi
2006-03-05 Dan Williams <dcbw@redhat.com>
Process netlink messages in device subclasses rather than in
NetworkManager.c. Also add support for recognizing Wireless Events.
* configure.in
- Find GLIB_GENMARSHAL
* src/Makefile.am
- Since we're marshalling custom types for wireless event signals,
we get to create our own marshallers using GLIB_GENMARSHAL
* src/NetworkManager.c
- (nm_monitor_wired_link_state): renamed to nm_monitor_setup
- (nm_monitor_setup): renamed from nm_monitor_wired_link_state, and
cut down somewhat. We no longer process signals here.
- (nm_data_new): create the netlink monitor here, and remove a
useless call to nm_policy_schedule_device_change_check()
- (nm_data_free): get rid of the netlink monitor here
- (nm_device_link_activated, nm_device_link_deactivated): removed
- (main): don't create the netlink monitor here, let nm_data_new
do that. Call nm_policy_schedule_device_change_check() right
before we jump to the mainloop to figure out which device
to use first
* src/NetworkManagerSystem.[ch]
- (nm_system_get_rtnl_index_from_iface, nm_system_get_iface_from_rtnl_index):
convert back and forth from interface names to interface
indexes
* src/nm-device-802-11-wireless.c
- (real_init): connect to wireless-event signals from the netlink
monitor object
- (nm_device_802_11_wireless_event): new function, schedule handler
for wireless event signals from the netlink monitor object. We
want the handler to run in the device's context
- (wireless_event_helper): handle wireless-event signals from netlink
- (nm_device_802_11_wireless_dispose): disconnect wireless-event
signal handler
* src/nm-device-802-11-wireless.h
- remove unused prototype for nm_device_802_11_wireless_new
* src/nm-device-802-3-ethernet.c
- (real_init): new function; set up signal handlers for link events
- (nm_device_802_3_ethernet_link_activated): new function, schedule
handler for netlink link activated events on device's main loop
- (link_activated_helper): when we get a link activated event, set
the device's link to be active
- (nm_device_802_3_ethernet_link_deactivated): new function; schedule
handler for netlink link deactivated events on device's main loop
- (link_deactivated_helper): when we get a link deactivated event, set
the device's link to be inactive
- (nm_device_802_3_ethernet_dispose): disconnect signal handler on
dispose
* src/nm-device-802-3-ethernet.h
- remove unused prototype for nm_device_802_3_ethernet_new
* src/nm-device.[ch]
- (nm_get_device_by_iface_locked): variant of nm_get_device_by_iface
but locks the device list
- (nm_device_set_active_link): a little bit of cleanup and de-indenting
* src/nm-netlink-monitor.[ch]
- (nm_netlink_monitor_class_install_signals): New signal
"wireless-event"
- (nm_netlink_monitor_new): keep reference to NMData so we can get
at the device list
- (nm_netlink_monitor_event_handler): expand for wireless events too
* src/nm-marshal-main.c
- Include generated nm-marshal.c and nm-marshal.h
* src/nm-marshal.list
- List of custom marshal functions
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1555 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-03-06 01:10:58 +00:00
GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
AC_SUBST(GLIB_GENMARSHAL)
2007-12-18 02:43:42 +00:00
AC_ARG_WITH(dbus-sys-dir, AS_HELP_STRING([--with-dbus-sys-dir=DIR], [where D-BUS system.d directory is]))
2004-07-28 18:04:23 +00:00
2007-12-18 02:43:42 +00:00
if test -n "$with_dbus_sys_dir" ; then
DBUS_SYS_DIR="$with_dbus_sys_dir"
2004-07-28 18:04:23 +00:00
else
2004-08-13 15:59:47 +00:00
DBUS_SYS_DIR="${sysconfdir}/dbus-1/system.d"
2004-07-28 18:04:23 +00:00
fi
AC_SUBST(DBUS_SYS_DIR)
2007-08-15 14:30:06 +00:00
# PPPD
AC_CHECK_HEADERS(pppd/pppd.h,,
2008-05-22 17:19:34 +00:00
AC_MSG_ERROR(couldn't find pppd.h. pppd development headers are required.))
2007-08-15 14:30:06 +00:00
2007-12-18 02:43:42 +00:00
AC_ARG_WITH([pppd-plugin-dir], AS_HELP_STRING([--with-pppd-plugin-dir=DIR], [path to the pppd plugins directory]))
if test -n "$with_pppd_plugin_dir" ; then
PPPD_PLUGIN_DIR="$with_pppd_plugin_dir"
else
2010-04-27 06:56:01 +00:00
PPPD_PLUGIN_DIR="${libdir}/pppd/2.4.5"
2007-12-18 02:43:42 +00:00
fi
AC_SUBST(PPPD_PLUGIN_DIR)
2007-08-15 14:30:06 +00:00
2010-01-13 06:55:24 +00:00
# dhclient support
AC_ARG_WITH([dhclient], AS_HELP_STRING([--with-dhclient=yes|no|path], [Enable dhclient 4.x support]))
2008-08-22 18:57:23 +00:00
# If a full path is given, use that and do not test if it works or not.
2010-01-13 06:55:24 +00:00
case "${with_dhclient}" in
2010-08-12 22:52:20 +00:00
# NM only works with ISC dhclient - other derivatives don't have
# the same userland. dhclient 4.x is required for IPv6 support;
# with older versions NM won't be able to use DHCPv6.
2008-08-22 18:57:23 +00:00
/*)
2010-01-13 06:55:24 +00:00
DHCLIENT_PATH="${with_dhclient}"
2010-08-12 22:52:20 +00:00
DHCLIENT_VERSION=4
if test -x "${with_dhclient}"; then
case `"${with_dhclient}" --version 2>&1` in
"isc-dhclient-4"*) DHCLIENT_VERSION=4; break;;
"isc-dhclient-V3"*) DHCLIENT_VERSION=3; break;;
esac
fi
2010-01-13 06:55:24 +00:00
AC_MSG_NOTICE(using dhclient at ${DHCLIENT_PATH})
2008-08-22 18:57:23 +00:00
;;
2010-01-13 06:55:24 +00:00
no) AC_MSG_NOTICE(dhclient support disabled)
;;
*)
AC_MSG_CHECKING(for dhclient)
for path in /sbin /usr/sbin /usr/pkg/sbin /usr/local/sbin; do
test -x "${path}/dhclient" || continue
case `"$path/dhclient" --version 2>&1` in
2010-08-12 22:52:20 +00:00
"isc-dhclient-4"*) DHCLIENT_PATH="$path/dhclient"; DHCLIENT_VERSION=4; break;;
"isc-dhclient-V3"*) DHCLIENT_PATH="$path/dhclient"; DHCLIENT_VERSION=3; break;;
2010-01-13 06:55:24 +00:00
esac
done
if test -n "${DHCLIENT_PATH}"; then
AC_MSG_RESULT($DHCLIENT_PATH)
else
AC_MSG_RESULT(no)
2008-07-16 20:39:58 +00:00
fi
2010-01-13 06:55:24 +00:00
;;
esac
# dhcpcd support
AC_ARG_WITH([dhcpcd], AS_HELP_STRING([--with-dhcpcd=yes|no|path], [Enable dhcpcd 4.x support]))
# If a full path is given, use that and do not test if it works or not.
case "${with_dhcpcd}" in
/*)
DHCPCD_PATH="${with_dhcpcd}"
AC_MSG_NOTICE(using dhcpcd at ${DHCPCD_PATH})
;;
no) AC_MSG_NOTICE(dhcpcd support disabled)
;;
*)
AC_MSG_CHECKING(for dhcpcd)
# We fully work with upstream dhcpcd-4
for path in /sbin /usr/sbin /usr/pkg/sbin /usr/local/sbin; do
2010-08-05 20:25:12 +00:00
test -x "${path}/dhcpcd" || continue
2010-01-13 06:55:24 +00:00
case `"$path/dhcpcd" --version 2>/dev/null` in
"dhcpcd "[123]*);;
2010-08-05 20:25:12 +00:00
"dhcpcd "*) DHCPCD_PATH="$path/dhcpcd"; break;;
2010-01-13 06:55:24 +00:00
esac
done
if test -n "${DHCPCD_PATH}"; then
AC_MSG_RESULT($DHCPCD_PATH)
else
AC_MSG_RESULT(no)
2008-07-16 20:39:58 +00:00
fi
2010-01-13 06:55:24 +00:00
;;
esac
if test -z "$DHCPCD_PATH" -a -z "$DHCLIENT_PATH"; then
2008-08-22 18:57:23 +00:00
# DHCP clients are not a build time dependency, only runtime.
# dhclient has been the longtime default for NM and it's in /sbin
# in most distros, so use it.
AC_MSG_WARN([Could not find a suitable DHCP client])
2010-01-13 06:55:24 +00:00
DHCLIENT_PATH=/sbin/dhclient
2010-08-05 20:25:12 +00:00
AC_MSG_WARN([Falling back to ISC dhclient, ${DHCLIENT_PATH}])
2008-07-16 20:39:58 +00:00
fi
2010-01-13 06:55:24 +00:00
AC_SUBST(DHCLIENT_PATH)
2010-08-24 15:13:22 +00:00
AC_SUBST(DHCLIENT_VERSION)
2010-01-13 06:55:24 +00:00
AC_SUBST(DHCPCD_PATH)
2008-07-16 20:39:58 +00:00
2008-09-05 18:57:07 +00:00
# resolvconf support
AC_ARG_WITH([resolvconf],
AS_HELP_STRING([--with-resolvconf=yes|no|path], [Enable resolvconf support]),
with_resolvconf="$withval",with_resolvconf=no)
# If a full path is given, use that and do not test if it works or not.
case "${with_resolvconf}" in
/*)
RESOLVCONF_PATH="${with_resolvconf}"
AC_MSG_NOTICE(setting resolvconf path to ${RESOLVCONF_PATH})
;;
no) AC_MSG_NOTICE(resolvconf support disabled)
;;
*)
AC_MSG_CHECKING(for resolvconf)
for path in /sbin /usr/sbin /usr/pkg/sbin /usr/local/sbin; do
if test -x "${path}/resolvconf"; then
RESOLVCONF_PATH="${path}/resolvconf"
break
fi
done
if test -n "${RESOLVCONF_PATH}"; then
AC_MSG_RESULT($RESOLVCONF_PATH)
else
AC_MSG_RESULT(no)
fi
;;
esac
AC_SUBST(RESOLVCONF_PATH)
if test -n "${RESOLVCONF_PATH}"; then
AC_DEFINE_UNQUOTED(RESOLVCONF_PATH, "$RESOLVCONF_PATH", [Define if you have a resolvconf implementation])
fi
2009-10-01 11:31:09 +00:00
# iptables path
AC_ARG_WITH(iptables, AC_HELP_STRING([--with-iptables=/path/to/iptables], [path to iptables]))
if test "x${with_iptables}" = x; then
AC_PATH_PROG(IPTABLES_PATH, iptables, [], $PATH:/sbin:/usr/sbin)
if ! test -x "$IPTABLES_PATH"; then
AC_MSG_ERROR(iptables was not installed.)
fi
else
IPTABLES_PATH="$with_iptables"
fi
AC_DEFINE_UNQUOTED(IPTABLES_PATH, "$IPTABLES_PATH", [Define to path of iptables binary])
AC_SUBST(IPTABLES_PATH)
2008-11-21 18:59:37 +00:00
# system CA certificates path
AC_ARG_WITH(system-ca-path, AS_HELP_STRING([--with-system-ca-path=/path/to/ssl/certs], [path to system CA certificates]))
if test "x${with_system_ca_path}" = x; then
SYSTEM_CA_PATH=/etc/ssl/certs
else
SYSTEM_CA_PATH="$with_system_ca_path"
fi
AC_DEFINE_UNQUOTED(SYSTEM_CA_PATH, "$SYSTEM_CA_PATH", [Define to path to system CA certificates])
AC_SUBST(SYSTEM_CA_PATH)
2010-07-01 17:32:11 +00:00
AC_ARG_WITH(kernel-firmware-dir, AS_HELP_STRING([--with-kernel-firmware-dir=DIR], [where kernel firmware directory is (default is /lib/firmware)]))
if test -n "$with_kernel_firmware_dir" ; then
KERNEL_FIRMWARE_DIR="$with_kernel_firmware_dir"
else
KERNEL_FIRMWARE_DIR="/lib/firmware"
fi
AC_DEFINE_UNQUOTED(KERNEL_FIRMWARE_DIR, "$KERNEL_FIRMWARE_DIR", [Define to path of the kernel firmware directory])
AC_SUBST(KERNEL_FIRMWARE_DIR)
2009-04-22 00:50:45 +00:00
NM_COMPILER_WARNINGS
2004-12-01 22:45:10 +00:00
2008-08-12 08:05:21 +00:00
GTK_DOC_CHECK(1.0)
2009-01-12 19:21:44 +00:00
dnl
dnl Tests
dnl
2009-04-20 22:49:33 +00:00
AC_ARG_WITH(tests, AS_HELP_STRING([--with-tests], [Build NetworkManager tests]))
2009-01-12 19:21:44 +00:00
AM_CONDITIONAL(WITH_TESTS, test "x$with_tests" = "xyes")
case $with_tests in
yes)
with_tests=yes
;;
*)
with_tests=no
;;
esac
2007-12-18 02:43:42 +00:00
AC_CONFIG_FILES([
2004-06-24 14:18:37 +00:00
Makefile
2005-12-06 23:37:09 +00:00
include/Makefile
2004-06-24 14:18:37 +00:00
src/Makefile
2009-01-19 04:19:09 +00:00
src/tests/Makefile
2008-04-05 16:28:24 +00:00
marshallers/Makefile
2010-04-07 00:39:57 +00:00
src/logging/Makefile
2010-09-08 02:50:20 +00:00
src/dns-manager/Makefile
2005-04-15 15:43:42 +00:00
src/vpn-manager/Makefile
2005-05-03 Dan Williams <dcbw@redhat.com>
* Kill dhcpcd. We now use "dhcdbd", a dbus daemon that controls dhclient.
This means that NetworkManager shouldn't have DHCP issues anymore. It also
means you need dhcdbd, which you can get here (get the latest one):
http://people.redhat.com/jvdias/dhcdbd/
Technically NetworkManager can use any DHCP daemon that uses the same DBUS
interface as dhcdbd.
* Rewrite device activation to facilitate the new DHCP infrastructure and
future improvements. Its now "activation request" based, ie there is a single
activation request composed of the device, access point, and other info which
follows the entire activation process. There are 5 stages of the activation
process which correspond to:
1) Device preparation
2) Device configuration (bring it up, set ESSID/Key/etc)
3) IP Config Start (fire off DHCP if we're using it)
4) IP Config Get (grab config from DHCP or static config files)
5) IP Config Commit (set device's IP address, DNS, etc)
Note that there is no longer a "scanning" step, since the access point must
be known _before_ activation starts. If the access point drops out or does
not exist for some reason, the entire activation process fails and must be
restarted for a different access point or device.
Patch from Bill Moss:
* gnome/applet/applet.c
- Fix type of vpn_failure dialog -> vpn_banner dialog
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@597 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-05-03 20:41:36 +00:00
src/dhcp-manager/Makefile
2009-07-30 17:50:42 +00:00
src/ip6-manager/Makefile
2006-08-24 14:29:11 +00:00
src/supplicant-manager/Makefile
2009-05-10 02:34:35 +00:00
src/supplicant-manager/tests/Makefile
2007-08-15 14:30:06 +00:00
src/ppp-manager/Makefile
2008-05-29 20:47:10 +00:00
src/dnsmasq-manager/Makefile
2009-01-19 09:01:00 +00:00
src/modem-manager/Makefile
2009-05-14 01:32:56 +00:00
src/bluez-manager/Makefile
2009-06-11 04:39:12 +00:00
src/system-settings/Makefile
2005-04-15 15:43:42 +00:00
src/backends/Makefile
2005-12-09 23:25:22 +00:00
libnm-util/libnm-util.pc
libnm-util/Makefile
2009-02-02 01:18:21 +00:00
libnm-util/tests/Makefile
2009-02-02 06:03:15 +00:00
libnm-util/tests/certs/Makefile
2009-08-26 18:07:35 +00:00
libnm-glib/libnm-glib.pc
libnm-glib/libnm-glib-vpn.pc
2007-02-12 09:23:43 +00:00
libnm-glib/Makefile
2007-08-12 15:21:15 +00:00
callouts/Makefile
2008-03-24 17:42:17 +00:00
tools/Makefile
2007-11-21 06:24:15 +00:00
system-settings/Makefile
2007-11-26 03:47:30 +00:00
system-settings/plugins/Makefile
2008-09-18 15:29:59 +00:00
system-settings/plugins/ifupdown/Makefile
2010-08-13 03:35:13 +00:00
system-settings/plugins/ifupdown/tests/Makefile
2010-08-24 17:09:30 +00:00
system-settings/plugins/ifnet/Makefile
system-settings/plugins/ifnet/tests/Makefile
2008-11-25 22:42:21 +00:00
system-settings/plugins/ifcfg-rh/Makefile
2009-03-02 00:04:55 +00:00
system-settings/plugins/ifcfg-rh/tests/Makefile
system-settings/plugins/ifcfg-rh/tests/network-scripts/Makefile
2008-02-28 20:28:20 +00:00
system-settings/plugins/ifcfg-suse/Makefile
2008-04-22 14:48:02 +00:00
system-settings/plugins/keyfile/Makefile
2009-01-12 19:21:44 +00:00
system-settings/plugins/keyfile/tests/Makefile
system-settings/plugins/keyfile/tests/keyfiles/Makefile
2010-02-25 17:52:30 +00:00
cli/Makefile
cli/src/Makefile
2004-06-24 17:55:51 +00:00
test/Makefile
2004-06-24 14:18:37 +00:00
initscript/Makefile
2004-08-25 21:00:21 +00:00
initscript/RedHat/Makefile
2005-08-18 19:51:11 +00:00
initscript/RedHat/NetworkManager
2004-08-25 21:00:21 +00:00
initscript/Gentoo/Makefile
2005-08-18 19:51:11 +00:00
initscript/Gentoo/NetworkManager
2004-09-07 17:22:04 +00:00
initscript/Debian/Makefile
2008-11-05 16:42:54 +00:00
initscript/Debian/NetworkManager
2004-09-07 17:56:53 +00:00
initscript/Slackware/Makefile
2006-04-17 02:03:09 +00:00
initscript/Slackware/rc.networkmanager
2005-06-15 11:59:43 +00:00
initscript/SUSE/Makefile
2005-08-18 19:51:11 +00:00
initscript/SUSE/networkmanager
2006-03-27 18:30:52 +00:00
initscript/Arch/Makefile
initscript/Arch/networkmanager
2006-03-27 19:58:03 +00:00
initscript/paldo/Makefile
initscript/paldo/NetworkManager
2008-04-01 21:26:09 +00:00
initscript/Mandriva/Makefile
initscript/Mandriva/networkmanager
2010-10-09 04:03:10 +00:00
initscript/linexa/Makefile
initscript/linexa/networkmanager
2007-07-10 18:31:32 +00:00
introspection/Makefile
2006-01-20 21:10:33 +00:00
man/Makefile
2006-12-03 03:39:39 +00:00
man/NetworkManager.8
2010-03-01 20:35:20 +00:00
man/NetworkManager.conf.5
man/nm-system-settings.conf.5
2006-02-01 18:14:15 +00:00
man/nm-tool.1
2010-08-06 11:51:41 +00:00
man/nm-online.1
2010-04-14 21:40:52 +00:00
man/nmcli.1
2004-08-26 19:14:26 +00:00
po/Makefile.in
2008-05-09 06:33:30 +00:00
policy/Makefile
2010-08-12 16:15:26 +00:00
data/Makefile
2009-02-15 16:20:25 +00:00
docs/Makefile
2008-08-12 08:05:21 +00:00
docs/libnm-glib/Makefile
2008-11-19 18:46:01 +00:00
docs/libnm-util/Makefile
2004-09-02 02:30:03 +00:00
NetworkManager.pc
2010-02-18 18:17:08 +00:00
examples/Makefile
examples/python/Makefile
2010-09-30 19:09:01 +00:00
examples/C/Makefile
2004-06-24 14:18:37 +00:00
])
2007-12-18 02:43:42 +00:00
AC_OUTPUT
2004-08-25 20:52:19 +00:00
echo
2010-01-13 06:55:24 +00:00
echo Distribution target: ${with_distro}
2005-02-13 22:10:03 +00:00
echo 'if this is not correct, please specifiy your distro with --with-distro=DISTRO'
2008-02-28 20:46:04 +00:00
2010-01-13 06:55:24 +00:00
echo
if test -n "${DHCLIENT_PATH}"; then
echo ISC dhclient support: ${DHCLIENT_PATH}
2010-08-12 22:52:20 +00:00
echo ISC dhclient version: ${DHCLIENT_VERSION}
2010-01-13 06:55:24 +00:00
else
echo ISC dhclient support: no
fi
if test -n "${DHCPCD_PATH}"; then
echo dhcpcd support: ${DHCPCD_PATH}
else
echo dhcpcd support: no
fi
2010-08-12 16:15:26 +00:00
if test -n "${with_systemdsystemunitdir}"; then
echo systemd support: ${with_systemdsystemunitdir}
else
echo systemd support: no
fi
2008-02-28 20:46:04 +00:00
echo
echo Building documentation: ${with_docs}
2009-01-12 19:21:44 +00:00
echo Building tests: ${with_tests}
echo
2008-02-28 20:46:04 +00:00