2004-06-24 14:18:37 +00:00
AC_PREREQ(2.52)
2006-05-21 19:48:22 +00:00
AC_INIT(NetworkManager, 0.7.0, dcbw@redhat.com, NetworkManager)
2004-08-24 00:31:47 +00:00
AM_INIT_AUTOMAKE([subdir-objects])
2005-02-14 17:47:59 +00:00
AM_MAINTAINER_MODE
2004-06-24 14:18:37 +00:00
2007-12-18 02:43:42 +00:00
AC_CONFIG_HEADERS(config.h)
2004-08-29 05:10:16 +00:00
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
dnl GNOME support
dnl
AC_ARG_WITH(docs, AC_HELP_STRING([--with-docs], [Build NetworkManager documentation]))
AM_CONDITIONAL(WITH_DOCS, test "x$with_docs" = "xyes")
case $with_docs in
yes) ;;
*)
with_docs=no
;;
esac
2006-08-07 13:42:37 +00:00
dnl
dnl Make sha1.c happy on big endian systems
dnl
AC_C_BIGENDIAN
2008-04-01 21:26:09 +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 or mandriva]))
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")
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
2008-04-01 21:26:09 +00:00
redhat|suse|gentoo|debian|slackware|arch|paldo|frugalware|mandriva) ;;
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
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
AC_MSG_ERROR(wireless-tools >= 28pre9 not installed or not functional)
fi
2004-06-24 14:18:37 +00:00
2008-06-13 17:06:00 +00:00
PKG_CHECK_MODULES(DBUS, dbus-glib-1 >= 0.75)
2005-01-25 18:21:38 +00:00
##### Find out the version of DBUS we're using
dbus_version=`pkg-config --modversion dbus-1`
DBUS_VERSION_MAJOR=`echo $dbus_version | awk -F. '{print $1}'`
DBUS_VERSION_MINOR=`echo $dbus_version | awk -F. '{print $2}'`
DBUS_VERSION_MICRO=`echo $dbus_version | awk -F. '{print $3}'`
if test "z$DBUS_VERSION_MAJOR" = "z"; then
DBUS_VERSION_MAJOR="0"
fi
if test "z$DBUS_VERSION_MINOR" = "z"; then
DBUS_VERSION_MINOR="0"
fi
if test "z$DBUS_VERSION_MICRO" = "z"; then
DBUS_VERSION_MICRO="0"
fi
if test "z$DBUS_VERSION_MAJOR" = "z0" -a "z$DBUS_VERSION_MINOR" = "z0" -a "z$DBUS_VERSION_MICRO" = "z0"; then
echo "Error: Couldn't determine the version of your DBUS package."
echo " This is probably an error in this script, please report it"
echo " along with the following information:"
echo " Base DBUS version ='$dbus_version'"
echo " DBUS_VERSION_MAJOR='$DBUS_VERSION_MAJOR'"
echo " DBUS_VERSION_MINOR='$DBUS_VERSION_MINOR'"
echo " DBUS_VERSION_MICRO='$DBUS_VERSION_MICRO'"
exit 1
else
echo "Your dbus version is $DBUS_VERSION_MAJOR,$DBUS_VERSION_MINOR,$DBUS_VERSION_MICRO."
DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_VERSION_MAJOR=$DBUS_VERSION_MAJOR"
DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_VERSION_MINOR=$DBUS_VERSION_MINOR"
DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_VERSION_MICRO=$DBUS_VERSION_MICRO"
fi
2005-01-12 18:40:04 +00:00
AC_SUBST(DBUS_CFLAGS)
AC_SUBST(DBUS_LIBS)
PKG_CHECK_MODULES(GTHREAD, gthread-2.0)
AC_SUBST(GTHREAD_CFLAGS)
AC_SUBST(GTHREAD_LIBS)
2006-08-04 15:46:06 +00:00
PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.10)
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)
2006-08-24 14:29:11 +00:00
PKG_CHECK_MODULES(GOBJECT, gobject-2.0)
AC_SUBST(GOBJECT_CFLAGS)
AC_SUBST(GOBJECT_LIBS)
2008-05-11 20:12:18 +00:00
PKG_CHECK_EXISTS(gio-2.0,[have_gio=yes],[have_gio=no])
if test x"$have_gio" = "xno"; then
AC_DEFINE([NO_GIO],[1],[Define if you don't have GIO])
echo "GIO not found; using private GFileMonitor library"
else
PKG_CHECK_MODULES(GIO, gio-2.0)
AC_SUBST(GIO_CFLAGS)
AC_SUBST(GIO_LIBS)
fi
AM_CONDITIONAL(NO_GIO, test x"$have_gio" == "xno")
2008-02-28 20:28:20 +00:00
2006-01-19 19:09:29 +00:00
PKG_CHECK_MODULES(HAL, hal >= 0.5.0)
2005-01-12 18:40:04 +00:00
AC_SUBST(HAL_CFLAGS)
AC_SUBST(HAL_LIBS)
2004-06-24 14:18:37 +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)
2008-05-09 06:33:30 +00:00
PKG_CHECK_MODULES(POLKIT, polkit-dbus)
2008-05-12 02:49:54 +00:00
##### Find out the version of PolicyKit we're using
polkit_version=`pkg-config --modversion polkit`
POLKIT_VERSION_MAJOR=`echo $polkit_version | awk -F. '{print $1}'`
POLKIT_VERSION_MINOR=`echo $polkit_version | awk -F. '{print $2}'`
POLKIT_VERSION_MICRO=`echo $polkit_version | awk -F. '{print $3}'`
if test "z$POLKIT_VERSION_MAJOR" = "z"; then
POLKIT_VERSION_MAJOR="0"
fi
if test "z$POLKIT_VERSION_MINOR" = "z"; then
POLKIT_VERSION_MINOR="0"
fi
if test "z$POLKIT_VERSION_MICRO" = "z"; then
POLKIT_VERSION_MICRO="0"
fi
if test "z$POLKIT_VERSION_MAJOR" = "z0" -a "z$POLKIT_VERSION_MINOR" = "z0" -a "z$POLKIT_VERSION_MICRO" = "z0"; then
echo "Error: Couldn't determine the version of your PolicyKit package."
echo " This is probably an error in this script, please report it"
echo " along with the following information:"
echo " Base PolicyKit version ='$polkit_version'"
echo " POLKIT_VERSION_MAJOR='$POLKIT_VERSION_MAJOR'"
echo " POLKIT_VERSION_MINOR='$POLKIT_VERSION_MINOR'"
echo " POLKIT_VERSION_MICRO='$POLKIT_VERSION_MICRO'"
exit 1
else
echo "Your PolicyKit version is $POLKIT_VERSION_MAJOR,$POLKIT_VERSION_MINOR,$POLKIT_VERSION_MICRO."
POLKIT_CFLAGS="$POLKIT_CFLAGS -DPOLKIT_VERSION_MAJOR=$POLKIT_VERSION_MAJOR"
POLKIT_CFLAGS="$POLKIT_CFLAGS -DPOLKIT_VERSION_MINOR=$POLKIT_VERSION_MINOR"
POLKIT_CFLAGS="$POLKIT_CFLAGS -DPOLKIT_VERSION_MICRO=$POLKIT_VERSION_MICRO"
fi
AC_SUBST(POLKIT_CFLAGS)
2008-05-09 19:08:40 +00:00
AC_PATH_PROG([POLKIT_POLICY_FILE_VALIDATE], [polkit-policy-file-validate], [false])
2008-05-09 06:33:30 +00:00
2008-05-22 17:19:34 +00:00
AC_ARG_WITH(crypto, AC_HELP_STRING([--with-crypto=nss | gnutls], [Cryptography library to use for certificate and key operations]),ac_crypto=$withval, ac_crypto=nss)
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])
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
2008-05-22 17:19:34 +00:00
AC_MSG_ERROR([Please choose either 'nss' or 'gnutls' for certificate and key 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
PPPD_PLUGIN_DIR="${libdir}/pppd/2.4.4"
fi
AC_SUBST(PPPD_PLUGIN_DIR)
2007-08-15 14:30:06 +00:00
2008-07-16 20:39:58 +00:00
# DHCP client
AC_ARG_WITH([dhcp-client], AS_HELP_STRING([--with-dhcp-client=dhcpcd|dhclient], [path to the chosen dhcp client]))
if test "x$with_dhcp_client" = "x" || test x`basename "$with_dhcp_client"` = "xdhclient"; then
# We only work with ISC dhclient - the FreeBSD and OpenBSD derivatives don't have the same userland.
AC_MSG_CHECKING(for dhclient)
for client in "$with_dhcp_client" /sbin/dhclient /usr/pkg/sbin/dhclient /usr/local/sbin/dhclient; do
test -x "$client" || continue
case `"$client" --version 2>&1` in
"isc-dhclient-"*) DHCP_CLIENT_PATH="$client"; break;;
esac
done
if test "x$DHCP_CLIENT_PATH" = "x"; then
AC_MSG_RESULT(no)
if test "x$with_dhcp_client" != "x"; then
AC_MSG_ERROR([Could not find ISC dhclient])
fi
fi
AC_MSG_RESULT($DHCP_CLIENT_PATH)
fi
if test "x$with_dhcp_client" = "x" -a "x$DHCP_CLIENT_PATH" = "x" || test x`basename "$with_dhcp_client"` = "xdhcpcd"; then
# We fully work with upstream dhcpcd-4
AC_MSG_CHECKING([for dhcpcd])
for client in "$with_dhcp_client" /sbin/dhcpcd /usr/pkg/sbin/dhcpcd /usr/local/sbin/dhcpcd; do
test -x "$client" || continue
case `"$client" --version 2>/dev/null` in
"dhcpcd "[123]*);;
"dhcpcd "*) DHCP_CLIENT_PATH="$client"; break;;
esac
done
if test "x$DHCP_CLIENT_PATH" = "x"; then
AC_MSG_RESULT(no)
if test "x$with_dhcp_client" != "x"; then
AC_MSG_ERROR([Could not find dhcpcd-4 or newer])
fi
fi
AC_MSG_RESULT($DHCP_CLIENT_PATH)
fi
if test "x$DHCP_CLIENT_PATH" = "x"; then
AC_MSG_ERROR([Could not find a suitable DHCP client])
fi
AC_SUBST(DHCP_CLIENT_PATH)
DHCP_CLIENT=`basename "$DHCP_CLIENT_PATH"`
AC_SUBST(DHCP_CLIENT)
2004-12-01 22:45:10 +00:00
AC_ARG_ENABLE(more-warnings,
2007-12-18 02:43:42 +00:00
AS_HELP_STRING([--enable-more-warnings], [Maximum compiler warnings]), set_more_warnings="$enableval",set_more_warnings=yes)
2004-12-01 22:45:10 +00:00
AC_MSG_CHECKING(for more warnings, including -Werror)
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
AC_MSG_RESULT(yes)
CFLAGS="-Wall -Werror -std=gnu89 $CFLAGS"
2006-01-11 Robert Love <rml@novell.com>
* configure.in: Add the gcc flags '-Wshadow' and '-Wfloat-equal'.
* gnome/applet/applet.c, gnome/vpn-properties/nm-vpn-properties.c,
src/NetworkManagerAPList.c, src/NetworkManagerDbus.c,
src/NetworkManagerPolicy.c, src/NetworkManagerSystem.c,
src/nm-dbus-device.c, src/nm-device-802-3-ethernet.c,
src/nm-ip4-config.c, src/vpn-manager/nm-vpn-manager.c,
test/nmtestdevices.c: Fix shadowed variable usage as appropriate.
* src/nm-device-802-11-wireless.c: Fix floating point comparison by
comparing values within DBL_EPSILON. Also fix shadowed variable
usage.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1318 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-11 21:07:29 +00:00
for option in -Wshadow -Wmissing-declarations -Wmissing-prototypes \
2005-10-07 17:57:10 +00:00
-Wdeclaration-after-statement -Wstrict-prototypes \
2008-05-09 14:54:28 +00:00
-Wfloat-equal -Wno-unused-parameter -Wno-sign-compare \
-fno-strict-aliasing; do
2004-12-01 22:45:10 +00:00
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $option"
AC_MSG_CHECKING([whether gcc understands $option])
AC_TRY_COMPILE([], [],
has_option=yes,
has_option=no,)
if test $has_option = no; then
CFLAGS="$SAVE_CFLAGS"
fi
AC_MSG_RESULT($has_option)
unset has_option
unset SAVE_CFLAGS
done
unset option
else
AC_MSG_RESULT(no)
fi
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
2008-04-05 16:28:24 +00:00
marshallers/Makefile
2005-04-15 15:43:42 +00:00
src/named-manager/Makefile
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
2006-08-24 14:29:11 +00:00
src/supplicant-manager/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
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
2007-08-13 07:54:28 +00:00
libnm-glib/libnm_glib.pc
2008-06-16 19:26:30 +00:00
libnm-glib/libnm_glib_vpn.pc
2007-02-12 09:23:43 +00:00
libnm-glib/Makefile
2008-05-11 20:12:18 +00:00
gfilemonitor/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/src/Makefile
system-settings/plugins/Makefile
2008-01-30 21:28:26 +00:00
system-settings/plugins/ifcfg-fedora/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
2004-06-24 17:55:51 +00:00
test/Makefile
2005-12-29 17:03:46 +00:00
test/test-common/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
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
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
2006-02-01 18:14:15 +00:00
man/nm-tool.1
2004-08-26 19:14:26 +00:00
po/Makefile.in
2008-05-09 06:33:30 +00:00
policy/Makefile
2004-09-02 02:30:03 +00:00
NetworkManager.pc
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
2004-11-12 18:49:33 +00:00
echo Distribution targeting: ${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
echo
echo Building documentation: ${with_docs}
echo