2004-06-24 14:18:37 +00:00
|
|
|
AC_PREREQ(2.52)
|
|
|
|
|
|
2004-08-26 21:30:12 +00:00
|
|
|
AC_INIT(NetworkManager, 0.2, dcbw@redhat.com, NetworkManager)
|
2004-08-24 00:31:47 +00:00
|
|
|
AM_INIT_AUTOMAKE([subdir-objects])
|
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-08-26 19:14:26 +00:00
|
|
|
GETTEXT_PACKAGE=NetworkManager
|
|
|
|
|
AC_SUBST(GETTEXT_PACKAGE)
|
|
|
|
|
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
|
2004-08-28 16:57:06 +00:00
|
|
|
ALL_LINGUAS="cs en_CA nb no sv"
|
2004-08-26 19:14:26 +00:00
|
|
|
AM_GLIB_GNU_GETTEXT
|
|
|
|
|
|
2004-08-24 00:31:47 +00:00
|
|
|
AC_ARG_WITH(distro,
|
|
|
|
|
[
|
|
|
|
|
--with-distro: Specify the Linux distribution to target with distro-specific
|
|
|
|
|
parts of NetworkManager
|
2004-08-25 22:09:11 +00:00
|
|
|
--with-distro=redhat
|
|
|
|
|
--with-distro=gentoo
|
|
|
|
|
--with-distro=debian
|
|
|
|
|
--with-distro=mandrake
|
2004-08-24 00:31:47 +00:00
|
|
|
],,)
|
|
|
|
|
|
|
|
|
|
TARGET_DISTRO=
|
|
|
|
|
SYSTEM_BACKEND_FILE=
|
|
|
|
|
if test "z$with_distro" = "z"; then
|
2004-08-25 22:09:11 +00:00
|
|
|
AC_CHECK_FILE(/etc/mandrake-release,with_distro="mandrake")
|
2004-08-25 20:52:19 +00:00
|
|
|
AC_CHECK_FILE(/etc/redhat-release,with_distro="redhat")
|
|
|
|
|
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")
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if test "z$with_distro" = "z"; then
|
|
|
|
|
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
|
2004-08-25 20:52:19 +00:00
|
|
|
with_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]' `
|
2004-08-24 00:31:47 +00:00
|
|
|
case $with_distro in
|
2004-08-25 20:52:19 +00:00
|
|
|
redhat)
|
2004-08-24 00:31:47 +00:00
|
|
|
TARGET_DISTRO=RedHat
|
|
|
|
|
SYSTEM_BACKEND_FILE=NetworkManagerRedHat.o
|
|
|
|
|
;;
|
2004-08-25 20:52:19 +00:00
|
|
|
gentoo)
|
2004-08-24 00:31:47 +00:00
|
|
|
TARGET_DISTRO=Gentoo
|
|
|
|
|
SYSTEM_BACKEND_FILE=NetworkManagerGentoo.o
|
|
|
|
|
;;
|
|
|
|
|
*)
|
2004-08-25 20:52:19 +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
|
|
|
|
|
AC_SUBST(TARGET_DISTRO)
|
|
|
|
|
AC_SUBST(SYSTEM_BACKEND_FILE)
|
2004-06-24 14:18:37 +00:00
|
|
|
|
|
|
|
|
AC_CHECK_HEADER(iwlib.h, [],
|
|
|
|
|
[AC_MSG_ERROR(iwlib.h not found. Install wireless-tools.)], [])
|
|
|
|
|
AC_CHECK_LIB(iw, iw_scan, [ IWLIB=-liw ],
|
|
|
|
|
[AC_MSG_ERROR(wireless-tools 27.pre23 not installed or not functional)], [])
|
|
|
|
|
AC_SUBST(IWLIB)
|
|
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(NM, dbus-glib-1 >= 0.20 hal >= 0.2.91 gthread-2.0)
|
|
|
|
|
AC_SUBST(NM_CFLAGS)
|
|
|
|
|
AC_SUBST(NM_LIBS)
|
|
|
|
|
|
2004-08-05 18:54:29 +00:00
|
|
|
PKG_CHECK_MODULES(GTK, gtk+-2.0)
|
|
|
|
|
AC_SUBST(GTK_CFLAGS)
|
|
|
|
|
AC_SUBST(GTK_LIBS)
|
|
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(GDK_PIXBUF, gdk-pixbuf-2.0)
|
|
|
|
|
AC_SUBST(GDK_PIXBUF_CFLAGS)
|
|
|
|
|
AC_SUBST(GDK_PIXBUF_LIBS)
|
|
|
|
|
|
2004-07-19 Dan Williams <dcbw@redhat.com>
* Makefile.am
- Add info-daemon directory
* configure.in
- Check for glade libs and headers
- Add info-daemon directory
* src/NetworkManagerAP.c
- nm_ap_new_from_ap(): Fix bug that resulted in an APs encryption status not getting
copied over to the new AP.
* src/NetworkManagerDbus.c
src/NetworkManagerDbus.h
- Deal with nm_device_ap_list_get_ap()->nm_device_ap_list_get_ap_by_index() change
- Remove nm_dbus_signal_need_key_for_network()
- Add disabled code for asynchronous user wep key callbacks
- Add functions for getting, setting, and cancelling user key operations
- Remove "setKeyForNetwork" device dbus method call, its on NetworkManager object instead
- Add "setKeyForNetwork" dbus method call on NetworkManager object
* src/NetworkManagerDevice.c
src/NetworkManagerDevice.h
- nm_device_update_link_active(): revert changes for wireless link detection, the WEP-key-is-wrong
logic is in device activation now
- nm_device_activate(): for wireless devices, if we can't associate with access point (perhaps
key is wrong) trigger get-user-key pending action
- Implement get-user-key pending action stuff, tie to dbus messages
- Rename nm_device_ap_list_get_ap() -> nm_device_ap_list_get_ap_by_index()
- Add nm_device_ap_list_get_ap_by_essid()
- Instead of copying "best" access points, ref them instead so that the key we set
sticks around
* src/NetworkManagerPolicy.c
- Deal with wrong WEP key, but right access point (and if so, return link_active = TRUE)
- Don't cancel pending actions on a device if its the same device as last iteration
- Only promote pending_device->active_device if activation was successfull
* src/Makefile.am
- Rename nmclienttest->nmtest
* info-daemon/Makefile.am
info-daemon/NetworkManagerInfo.c
info-daemon/NetworkManagerInfo.h
info-daemon/NetworkManagerInfoDbus.c
info-daemon/NetworkManagerInfoDbus.h
info-daemon/passphrase.glade
info-daemon/NetworkManagerInfo.conf
info-daemon/keyring.png
- Import sources for info-daemon, which pops up dialog for passphrase/key when
NetworkManager asks for it, and also will (soon) provide "allowed" access point
lists to NetworkManager by proxying user's GConf
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@16 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-07-19 06:08:52 +00:00
|
|
|
PKG_CHECK_MODULES(GLADE, libglade-2.0)
|
|
|
|
|
AC_SUBST(GLADE_CFLAGS)
|
|
|
|
|
AC_SUBST(GLADE_LIBS)
|
|
|
|
|
|
2004-07-22 05:17:36 +00:00
|
|
|
PKG_CHECK_MODULES(GCONF, gconf-2.0)
|
|
|
|
|
AC_SUBST(GCONF_CFLAGS)
|
|
|
|
|
AC_SUBST(GCONF_LIBS)
|
|
|
|
|
|
2004-07-28 02:49:33 +00:00
|
|
|
PKG_CHECK_MODULES(OPENSSL, openssl)
|
|
|
|
|
AC_SUBST(OPENSSL_CFLAGS)
|
|
|
|
|
AC_SUBST(0PENSSL_LIBS)
|
|
|
|
|
|
2004-08-06 18:19:06 +00:00
|
|
|
PKG_CHECK_MODULES(PANEL_APPLET, libpanelapplet-2.0)
|
|
|
|
|
AC_SUBST(PANEL_APPLET_CFLAGS)
|
|
|
|
|
AC_SUBST(PANEL_APPLET_LIBS)
|
|
|
|
|
|
2004-08-06 15:37:43 +00:00
|
|
|
PKG_CHECK_MODULES(LIBGNOMEUI, libgnomeui-2.0)
|
|
|
|
|
AC_SUBST(LIBGNOMEUI_CFLAFS)
|
|
|
|
|
AC_SUBST(LIBGNOMEUI_LIBS)
|
|
|
|
|
|
2004-07-28 18:04:23 +00:00
|
|
|
# taken from hal
|
|
|
|
|
AC_ARG_WITH(dbus-sys, [ --with-dbus-sys=<dir> where D-BUS system.d directory is])
|
|
|
|
|
|
|
|
|
|
if ! test -z "$with_dbus_sys" ; then
|
|
|
|
|
DBUS_SYS_DIR="$with_dbus_sys"
|
|
|
|
|
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)
|
|
|
|
|
AC_DEFINE_UNQUOTED(DBUS_SYSTEMD_DIR, "$DBUS_SYS_DIR", [Where system.d dir for DBUS is])
|
|
|
|
|
|
2004-06-24 14:18:37 +00:00
|
|
|
AC_OUTPUT([
|
|
|
|
|
Makefile
|
|
|
|
|
src/Makefile
|
2004-06-24 17:55:51 +00:00
|
|
|
dispatcher-daemon/Makefile
|
2004-07-19 Dan Williams <dcbw@redhat.com>
* Makefile.am
- Add info-daemon directory
* configure.in
- Check for glade libs and headers
- Add info-daemon directory
* src/NetworkManagerAP.c
- nm_ap_new_from_ap(): Fix bug that resulted in an APs encryption status not getting
copied over to the new AP.
* src/NetworkManagerDbus.c
src/NetworkManagerDbus.h
- Deal with nm_device_ap_list_get_ap()->nm_device_ap_list_get_ap_by_index() change
- Remove nm_dbus_signal_need_key_for_network()
- Add disabled code for asynchronous user wep key callbacks
- Add functions for getting, setting, and cancelling user key operations
- Remove "setKeyForNetwork" device dbus method call, its on NetworkManager object instead
- Add "setKeyForNetwork" dbus method call on NetworkManager object
* src/NetworkManagerDevice.c
src/NetworkManagerDevice.h
- nm_device_update_link_active(): revert changes for wireless link detection, the WEP-key-is-wrong
logic is in device activation now
- nm_device_activate(): for wireless devices, if we can't associate with access point (perhaps
key is wrong) trigger get-user-key pending action
- Implement get-user-key pending action stuff, tie to dbus messages
- Rename nm_device_ap_list_get_ap() -> nm_device_ap_list_get_ap_by_index()
- Add nm_device_ap_list_get_ap_by_essid()
- Instead of copying "best" access points, ref them instead so that the key we set
sticks around
* src/NetworkManagerPolicy.c
- Deal with wrong WEP key, but right access point (and if so, return link_active = TRUE)
- Don't cancel pending actions on a device if its the same device as last iteration
- Only promote pending_device->active_device if activation was successfull
* src/Makefile.am
- Rename nmclienttest->nmtest
* info-daemon/Makefile.am
info-daemon/NetworkManagerInfo.c
info-daemon/NetworkManagerInfo.h
info-daemon/NetworkManagerInfoDbus.c
info-daemon/NetworkManagerInfoDbus.h
info-daemon/passphrase.glade
info-daemon/NetworkManagerInfo.conf
info-daemon/keyring.png
- Import sources for info-daemon, which pops up dialog for passphrase/key when
NetworkManager asks for it, and also will (soon) provide "allowed" access point
lists to NetworkManager by proxying user's GConf
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@16 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2004-07-19 06:08:52 +00:00
|
|
|
info-daemon/Makefile
|
2004-08-06 18:19:06 +00:00
|
|
|
panel-applet/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
|
|
|
|
|
initscript/Gentoo/Makefile
|
2004-08-26 19:14:26 +00:00
|
|
|
po/Makefile.in
|
2004-06-24 14:18:37 +00:00
|
|
|
])
|
2004-08-25 20:52:19 +00:00
|
|
|
|
|
|
|
|
echo
|
|
|
|
|
echo Distribution targeting: ${TARGET_DISTRO}
|
|
|
|
|
echo 'if this is not correct, please specifiy your distro with --with-distro=<distro>'
|