2001-04-19 17:31:23 +00:00
AC_INIT(src)
1999-12-05 00:40:26 +00:00
2001-03-02 18:34:23 +00:00
dnl ==========================================================================
dnl
dnl If you add a version number here, you *must* add an AC_SUBST line for
dnl it too, or it will never make it into the spec file!
dnl
dnl ==========================================================================
2001-10-24 17:23:35 +00:00
ART_REQUIRED=2.3.6
2001-11-06 03:00:42 +00:00
BONOBO_ACTIVATION_REQUIRED=0.9.3
BONOBO_REQUIRED=1.106
2001-10-09 21:46:21 +00:00
EEL_REQUIRED=1.0.2
2001-05-02 18:38:55 +00:00
ESOUND_REQUIRED=0.2.22
2001-11-06 03:00:42 +00:00
GCONF_REQUIRED=1.1.3
GDK_PIXBUF_REQUIRED=1.3.10
GLIB_REQUIRED=1.3.10
GNOME_CANVAS_REQUIRED=1.105
GNOME_REQUIRED=1.105
GNOME_UI_REQUIRED=1.105
2001-10-24 17:23:35 +00:00
GNOME_VFS_REQUIRED=1.1
2001-11-06 03:00:42 +00:00
GTK_REQUIRED=1.3.10
2001-03-02 01:36:21 +00:00
IMLIB_REQUIRED=1.9.8
2001-05-04 14:54:27 +00:00
MEDUSA_REQUIRED=0.5.1
2001-11-06 03:00:42 +00:00
ORBIT_REQUIRED=2.3.97
2001-03-02 01:36:21 +00:00
POPT_REQUIRED=1.5
2001-10-24 17:23:35 +00:00
RSVG_REQUIRED=1.1
2001-03-08 08:34:30 +00:00
SCROLLKEEPER_REQUIRED=0.1.4
2001-10-24 17:23:35 +00:00
XML_REQUIRED=2.4.6
2001-03-02 01:08:30 +00:00
2001-05-02 18:38:55 +00:00
AC_SUBST(EEL_REQUIRED)
AC_SUBST(ESOUND_REQUIRED)
AC_SUBST(GNOME_VFS_REQUIRED)
2001-03-02 18:34:23 +00:00
AC_SUBST(IMLIB_REQUIRED)
2001-05-02 18:38:55 +00:00
AC_SUBST(MEDUSA_REQUIRED)
2001-03-02 18:34:23 +00:00
AC_SUBST(ORBIT_REQUIRED)
AC_SUBST(POPT_REQUIRED)
2001-10-24 17:23:35 +00:00
AC_SUBST(RSVG_REQUIRED)
2001-03-02 18:34:23 +00:00
AC_SUBST(SCROLLKEEPER_REQUIRED)
2001-10-24 17:23:35 +00:00
AC_SUBST(XML_REQUIRED)
2001-03-02 18:34:23 +00:00
2001-03-02 01:08:30 +00:00
dnl ===========================================================================
2001-10-11 17:18:32 +00:00
AM_INIT_AUTOMAKE(nautilus, 1.0.5)
1999-12-05 00:40:26 +00:00
AM_CONFIG_HEADER(config.h)
2001-10-24 17:23:35 +00:00
AM_SANITY_CHECK
1999-12-05 00:40:26 +00:00
AM_MAINTAINER_MODE
2001-10-24 17:23:35 +00:00
AC_C_BIGENDIAN
AC_C_CONST
AC_ISC_POSIX
1999-12-05 00:40:26 +00:00
AC_PROG_CC
2000-03-03 23:52:55 +00:00
AC_PROG_CPP
1999-12-05 00:40:26 +00:00
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
2001-10-24 17:23:35 +00:00
AM_DISABLE_STATIC
AM_PROG_LIBTOOL
1999-12-05 00:40:26 +00:00
2001-10-24 17:23:35 +00:00
AM_PATH_ESD
AM_PATH_ORBIT2
GNOME_PLATFORM_GNOME_2(yes)
PKG_CHECK_MODULES(ALL, \
bonobo-activation-2.0 >= $BONOBO_ACTIVATION_REQUIRED \
eel-2.0 >= $EEL_REQUIRED \
glib-2.0 >= $GLIB_REQUIRED \
gnome-vfs-2.0 >= $GNOME_VFS_REQUIRED \
gtk+-2.0 >= $GTK_REQUIRED \
libart-2.0 >= $ART_REQUIRED \
libbonobo-2.0 >= $BONOBO_REQUIRED \
libbonoboui-2.0 >= $BONOBO_REQUIRED \
libgnome-2.0 >= $GNOME_REQUIRED \
libgnomecanvas-2.0 >= $GNOME_CANVAS_REQUIRED \
libgnomeui-2.0 >= $GNOME_UI_REQUIRED \
librsvg-2.0 >= $RSVG_REQUIRED \
libxml-2.0 >= $XML_REQUIRED)
2001-10-31 00:31:00 +00:00
dnl ==========================================================================
2001-10-24 17:23:35 +00:00
2001-10-31 00:31:00 +00:00
ALL_LINGUAS="az ca cs da de el en_GB es fi fr ga gl hu it ja ko lt lv nl nn no pl pt pt_BR ro ru sk sl sv ta tr uk zh_TW"
2001-10-28 20:21:52 +00:00
2001-11-07 21:43:57 +00:00
GETTEXT_PACKAGE=nautilus
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
AM_GLIB_GNU_GETTEXT
2000-06-06 09:18:00 +00:00
2001-10-31 00:31:00 +00:00
AC_PROG_INTLTOOL
2001-10-30 00:26:25 +00:00
2001-10-31 00:31:00 +00:00
dnl ==========================================================================
2001-10-29 20:46:49 +00:00
2000-10-04 21:01:07 +00:00
ENABLE_PROFILER=
2000-10-04 20:43:34 +00:00
AC_ARG_ENABLE(profiler,
[ --enable-profiler Enable profiler],
ENABLE_PROFILER=1
AC_DEFINE(ENABLE_PROFILER))
if test "x$ENABLE_PROFILER" = "x1"
then
CFLAGS="-g -O -gdwarf-2 -finstrument-functions -D__NO_STRING_INLINES"
2000-10-04 21:32:45 +00:00
LDFLAGS="/gnome/PROFILE/lib/libprofiler.so -lpthread"
2000-10-04 20:43:34 +00:00
fi
2000-10-04 22:09:18 +00:00
AC_SUBST(ENABLE_PROFILER)
AM_CONDITIONAL(ENABLE_PROFILER, test "x$ENABLE_PROFILER" = "x1")
2000-10-04 20:43:34 +00:00
2001-10-31 00:31:00 +00:00
dnl ==========================================================================
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
dnl ==========================================================================
Fixed problem compiling with new gettext:
* hack-macros/gnome.m4: Add BUILD_INCLUDED_LIBINTL for
compatibility with the new gettext.
Fixed a problem with the throbber detecting that its X window is
gone. Based on suggestions from Owen Taylor.
* libnautilus/nautilus-bonobo-workarounds.h:
* libnautilus/nautilus-bonobo-workarounds.c:
(destroy_later_callback), (destroyed_before_timeout_callback),
(nautilus_bonobo_object_force_destroy_later): Changed to "destroy
later" instead of "destroy at idle". This makes us less likely to
experience race conditions.
* src/nautilus-window.c: (nautilus_window_initialize_class),
(nautilus_window_unrealize), (nautilus_window_destroy): Moved the
throbber destruction to unrealize so we destroy the throbber
before we destroy its X window.
Starting with patch by Anders Carlsson <andersca@gnu.org>, added
both prelighting and tracking to the throbber, also making it take
action on release, not press.
* components/throbber/nautilus-throbber.c:
(nautilus_throbber_initialize_class): Add handlers for enter,
leave, and release.
(nautilus_throbber_initialize): Set flags so we get enter and
leave events.
(select_throbber_image): Ref the image that's returned.
(draw_throbber_image): Make the image be prelit if the mouse is
over the throbber but it wasn't clicked, and darkened if the mouse
is over the throbber and it was clicked.
(nautilus_throbber_enter_notify_event): Set flag and request
redraw to prelight.
(nautilus_throbber_leave_notify_event): Set flag and request
redraw to un-prelight.
(nautilus_throbber_button_press_event): Set flag to indicate we
hit the button in the throbber. Also, respond only to left clicks.
(nautilus_throbber_button_release_event): Look at flag set in
press event. Do the work here now instead of at press time since
we are more like a real button.
Rolled in change by Miguel Rodrguez Prez <migrax@terra.es> to
fix volume mounting problems:
* configure.in: Check for hasmntopt.
* libnautilus-private/nautilus-volume-monitor.c:
(get_removable_volumes): Fix typo (HAVE_MNTTENT_H ->
HAVE_MNTENT_H).
Integrated patch by Miguel Rodrguez Prez <migrax@terra.es> to
make Nautilus not try to preview MPEG lists:
* src/file-manager/fm-icon-view.c:
(icon_container_preview_callback): Made audio/x-mpegurl another
exception to the list of audio types we can preview.
Rolled in change by Dennis Smit <synap@area101.penguin.nl>:
* THANKS: added more translators that were missing from the
THANKS file (names from all the .po files in ./po).
Other updates to THANKS:
* THANKS: Added Jon K Hellan.
* check-THANKS.pl: Fixed logic so you can be credited as both an
author and translator.
Other changes:
* src/file-manager/fm-list-view.c: (get_default_zoom_level): Fix
typo (storaged -> storage).
* src/nautilus-shell-ui.xml:
* src/file-manager/nautilus-directory-view-ui.xml:
Fixed keybindings entries to use the correct tags as described by
ui-xml.txt.
2001-05-23 00:03:03 +00:00
AC_CHECK_FUNCS(setmntent endmntent hasmntopt)
AC_CHECK_HEADERS(mntent.h sys/mnttab.h sys/vfstab.h sys/cdio.h)
2001-02-22 14:21:55 +00:00
2001-10-31 00:31:00 +00:00
dnl ==========================================================================
Fixed problem compiling with new gettext:
* hack-macros/gnome.m4: Add BUILD_INCLUDED_LIBINTL for
compatibility with the new gettext.
Fixed a problem with the throbber detecting that its X window is
gone. Based on suggestions from Owen Taylor.
* libnautilus/nautilus-bonobo-workarounds.h:
* libnautilus/nautilus-bonobo-workarounds.c:
(destroy_later_callback), (destroyed_before_timeout_callback),
(nautilus_bonobo_object_force_destroy_later): Changed to "destroy
later" instead of "destroy at idle". This makes us less likely to
experience race conditions.
* src/nautilus-window.c: (nautilus_window_initialize_class),
(nautilus_window_unrealize), (nautilus_window_destroy): Moved the
throbber destruction to unrealize so we destroy the throbber
before we destroy its X window.
Starting with patch by Anders Carlsson <andersca@gnu.org>, added
both prelighting and tracking to the throbber, also making it take
action on release, not press.
* components/throbber/nautilus-throbber.c:
(nautilus_throbber_initialize_class): Add handlers for enter,
leave, and release.
(nautilus_throbber_initialize): Set flags so we get enter and
leave events.
(select_throbber_image): Ref the image that's returned.
(draw_throbber_image): Make the image be prelit if the mouse is
over the throbber but it wasn't clicked, and darkened if the mouse
is over the throbber and it was clicked.
(nautilus_throbber_enter_notify_event): Set flag and request
redraw to prelight.
(nautilus_throbber_leave_notify_event): Set flag and request
redraw to un-prelight.
(nautilus_throbber_button_press_event): Set flag to indicate we
hit the button in the throbber. Also, respond only to left clicks.
(nautilus_throbber_button_release_event): Look at flag set in
press event. Do the work here now instead of at press time since
we are more like a real button.
Rolled in change by Miguel Rodrguez Prez <migrax@terra.es> to
fix volume mounting problems:
* configure.in: Check for hasmntopt.
* libnautilus-private/nautilus-volume-monitor.c:
(get_removable_volumes): Fix typo (HAVE_MNTTENT_H ->
HAVE_MNTENT_H).
Integrated patch by Miguel Rodrguez Prez <migrax@terra.es> to
make Nautilus not try to preview MPEG lists:
* src/file-manager/fm-icon-view.c:
(icon_container_preview_callback): Made audio/x-mpegurl another
exception to the list of audio types we can preview.
Rolled in change by Dennis Smit <synap@area101.penguin.nl>:
* THANKS: added more translators that were missing from the
THANKS file (names from all the .po files in ./po).
Other updates to THANKS:
* THANKS: Added Jon K Hellan.
* check-THANKS.pl: Fixed logic so you can be credited as both an
author and translator.
Other changes:
* src/file-manager/fm-list-view.c: (get_default_zoom_level): Fix
typo (storaged -> storage).
* src/nautilus-shell-ui.xml:
* src/file-manager/nautilus-directory-view-ui.xml:
Fixed keybindings entries to use the correct tags as described by
ui-xml.txt.
2001-05-23 00:03:03 +00:00
AC_CHECK_FUNCS(setenv unsetenv putenv)
Add checks to fix things on Solaris regarding mounting, environment
2000-09-11 Seth Nickell <seth@eazel.com>
* configure.in:
Add checks to fix things on Solaris regarding mounting,
environment variables, and fonts.
Added tests for compiler warning flags that are not supported
with all versions of GCC.
* helper-utilities/authenticate/nautilus-authenticate-pam.c:
(pam_conversion_func):
Remove "const" from system call for compatibility with Solaris.
* libnautilus-extensions/nautilus-file.c:
(get_id_from_digit_string):
uid_t != int, so change functions converting from string to
uid_t to deal with greater bit uids properly.
* libnautilus-extensions/nautilus-glib-extensions.h:
* libnautilus-extensions/nautilus-glib-extensions.c:
(nautilus_g_setenv), (nautilus_g_unsetenv):
Add system gnostic functions for setting and removing variables
from the environment.
* libnautilus-extensions/nautilus-scalable-font.c:
(initialize_global_stuff_if_needed):
Temporary fix to deal with the absence of "RedHat-style" font
paths on Solaris and Debian whilst font paths are still
hard-coded.
* libnautilus-extensions/nautilus-volume-monitor.c:
(nautilus_volume_monitor_get_volume_name),
(nautilus_volume_monitor_volume_is_mounted),
(mount_volumes_update_is_mounted), (mnttab_add_mount_volume),
(mntent_add_mount_volume), (find_volumes):
Rewrite sections to use the appropriate Solaris mounting
functions if Linux-style mount/umount/mount-table manipulation
functions are not available.
* libnautilus/nautilus-view-component.idl:
* src/nautilus-view-frame-corba.c:
* src/nautilus-zoomable-frame-corba.c:
(impl_Nautilus_ZoomableFrame_report_zoom_level_changed):
Change doubles to floats to work around an ORBit problem on
Solaris wherein doubles are not correctly aligned.
* src/file-manager/fm-desktop-icon-view.c:
remove gratuitous linux specific header inclusion
* src/nautilus-first-time-druid.c: (set_http_proxy):
* src/nautilus-main.c: (main):
* src/nautilus-shell.c: (corba_restart):
(impl_Nautilus_ViewFrame_report_load_progress):
Changed "setenv" and "unsetenv" calls to use nautilus_g_setenv
and nautilus_g_unsetenv.
* src/nautilus-window-manage-views.c:
(report_sidebar_panel_failure_to_user):
Add better error message to sidebar failures where it can't
figure out which sidebar failed. Done in order to fix null
string being passed to dialogue function which segfaulted
Nautilus on Solaris.
Yes children, your Nautilus will now run and frollick in the green,
green pasture of the multi-cpu UltraSparc.
2000-09-12 02:01:33 +00:00
2001-10-31 00:31:00 +00:00
dnl ==========================================================================
dnl FAM
Load filesystems from an XML file rather than hardcoding the various
2001-08-14 Seth Nickell <snickell@stanford.edu>
Load filesystems from an XML file rather than hardcoding
the various attributes and behaviors. Some properties, such
as for CDDA and NFS, are still hardcoded because they require
actual code. This also makes it easier to add new filesystems.
* libnautilus-private/filesystem-attributes.xml
Filesystem description file.
* libnautilus-private/Makefile.am:
Add filesystem-attribute.xml to the build.
* libnautilus-private/nautilus-volume-monitor.c:
(mount_volume_prepend_filesystem):
Don't try to detect filesystem strings and associate them
with an enumeration type...nix the enumeration altogether
since its not compatible with dynamically loading the
filesystems.
(get_xml_path), (load_filesystem_attributes_table)
Functions for reading in filesystem-attribute.xml and
loading the various filesystems into a hashtable.
(nautilus_volume_monitor_initialize)
Read in the filesystem attributes table.
(get_removable_volumes), (mount_volume_deactivate),
(get_mount_list), (get_current_mount_list),
(verify_current_mount_state)
Take a file attributes hashtable, or pass one to a
subfunction.
(nautilus_volume_monitor_get_target_uri),
CDDA is the only system we need to deal with in an unusual
way. Take out a long list and just check for CDDA.
(nautilus_volume_monitor_should_integrate_trash)
Use information read from the file rather than hardcoding
a list of filesystems that can use trash (should be the
same for now).
(make_volume_name_from_path), (mount_volume_make_name)
Get name out of the filesystem table rather than hardcoding.
(mount_volume_iso9660_add)
We were deciding if a device was *really* a CDROM by
doing an ioctl on it to determine the drive status. This
is a good check...except that on systems using DevFS
devices can be user mountable without being user readable
by default. Also, on my system it fails if there's no
disk in the drive itself.
(mount_volume_auto_add)
Continue setting the device if its a floppy drive (eventually
this should probably be cleaned out too), but don't set the
filesystem type since we don't use the enum anymore.
(mount_volume_cdda_add)
Set as a CDDA device, but not a CDDA volume (since we don't
have hardcoded volume types anymore).
(mount_volume_nfs_add)
Don't set NFS type since the enum was blown away.
(create_volume)
Accept a filesystem table and set attributes read from
filesystem-attributes.xml if a volume's filesystem is found
in the table. Perhaps eventually we should just assign a
reference to the volume entry, but this was simpler for
now since some functions modify things like the description.
(copy_volume)
Deal with copying the new attributes.
* libnautilus-private/nautilus-volume-monitor.h:
Nix the filesystem enumeration. Change NAUTILUS_DEVICE_CD_ROM
to NAUTILUS_DEVICE_CDROM
* src/file-manager/fm-desktop-icon-view.c: (create_mount_link),
(update_disks_menu):
Deal with rename of NAUTILUS_DEVICE_CD_ROM
* src/nautilus-application.c: (volume_mounted_callback):
Deal with rename of NAUTILUS_DEVICE_CD_ROM
* AUTHORS:
Update E-mail address.
* configure.in:
Make "FAM not found" warning a little more serious and
informative. We particularly want to encourage distributors
to enable FAM support.
2001-08-15 06:35:04 +00:00
FAM_MISSING_WARNING="Nautilus depends on FAM to provide notification when files are altered (either through filesystem polling, or a kernel notification mechanism). If Nautilus is built without FAM support, directories viewed with Nautilus will not remain in synch with the actual filesystem when they are altered by external processes. Particularly if you are a distributor please compile Nautilus with FAM support. FAM is available from http://oss.sgi.com/projects/fam/. A patch to add Linux Kernel 2.4 directory notify support to FAM (highly desirable) is available from http://people.redhat.com/alexl/files/"
2001-07-11 14:38:47 +00:00
FAM_LIBS=
AC_CHECK_LIB(fam, FAMOpen,
AC_CHECK_HEADERS(fam.h,
[AC_DEFINE(HAVE_LIBFAM)
FAM_LIBS="-lfam"],
Load filesystems from an XML file rather than hardcoding the various
2001-08-14 Seth Nickell <snickell@stanford.edu>
Load filesystems from an XML file rather than hardcoding
the various attributes and behaviors. Some properties, such
as for CDDA and NFS, are still hardcoded because they require
actual code. This also makes it easier to add new filesystems.
* libnautilus-private/filesystem-attributes.xml
Filesystem description file.
* libnautilus-private/Makefile.am:
Add filesystem-attribute.xml to the build.
* libnautilus-private/nautilus-volume-monitor.c:
(mount_volume_prepend_filesystem):
Don't try to detect filesystem strings and associate them
with an enumeration type...nix the enumeration altogether
since its not compatible with dynamically loading the
filesystems.
(get_xml_path), (load_filesystem_attributes_table)
Functions for reading in filesystem-attribute.xml and
loading the various filesystems into a hashtable.
(nautilus_volume_monitor_initialize)
Read in the filesystem attributes table.
(get_removable_volumes), (mount_volume_deactivate),
(get_mount_list), (get_current_mount_list),
(verify_current_mount_state)
Take a file attributes hashtable, or pass one to a
subfunction.
(nautilus_volume_monitor_get_target_uri),
CDDA is the only system we need to deal with in an unusual
way. Take out a long list and just check for CDDA.
(nautilus_volume_monitor_should_integrate_trash)
Use information read from the file rather than hardcoding
a list of filesystems that can use trash (should be the
same for now).
(make_volume_name_from_path), (mount_volume_make_name)
Get name out of the filesystem table rather than hardcoding.
(mount_volume_iso9660_add)
We were deciding if a device was *really* a CDROM by
doing an ioctl on it to determine the drive status. This
is a good check...except that on systems using DevFS
devices can be user mountable without being user readable
by default. Also, on my system it fails if there's no
disk in the drive itself.
(mount_volume_auto_add)
Continue setting the device if its a floppy drive (eventually
this should probably be cleaned out too), but don't set the
filesystem type since we don't use the enum anymore.
(mount_volume_cdda_add)
Set as a CDDA device, but not a CDDA volume (since we don't
have hardcoded volume types anymore).
(mount_volume_nfs_add)
Don't set NFS type since the enum was blown away.
(create_volume)
Accept a filesystem table and set attributes read from
filesystem-attributes.xml if a volume's filesystem is found
in the table. Perhaps eventually we should just assign a
reference to the volume entry, but this was simpler for
now since some functions modify things like the description.
(copy_volume)
Deal with copying the new attributes.
* libnautilus-private/nautilus-volume-monitor.h:
Nix the filesystem enumeration. Change NAUTILUS_DEVICE_CD_ROM
to NAUTILUS_DEVICE_CDROM
* src/file-manager/fm-desktop-icon-view.c: (create_mount_link),
(update_disks_menu):
Deal with rename of NAUTILUS_DEVICE_CD_ROM
* src/nautilus-application.c: (volume_mounted_callback):
Deal with rename of NAUTILUS_DEVICE_CD_ROM
* AUTHORS:
Update E-mail address.
* configure.in:
Make "FAM not found" warning a little more serious and
informative. We particularly want to encourage distributors
to enable FAM support.
2001-08-15 06:35:04 +00:00
AC_MSG_WARN(*** FAM support will not be built (header files not found) $FAM_MISSING_WARNING ***)),
AC_MSG_WARN(*** FAM support will not be built (FAM library not found) $FAM_MISSING_WARNING ***))
2001-07-11 14:38:47 +00:00
AC_SUBST(FAM_LIBS)
2001-02-23 16:06:09 +00:00
2001-10-31 00:31:00 +00:00
dnl ==========================================================================
AC_ARG_WITH(libiconv, [ --with-libiconv Use the libiconv library ],,with_libiconv=maybe)
found_iconv=no
if test "x$with_libiconv" != "xyes" ; then
#
# Check in the C library
#
AC_CHECK_FUNC(iconv_open, with_libiconv=no; found_iconv=yes)
fi
if test "x$with_libiconv" != "xno" ; then
#
# Check for libiconv
#
AC_CHECK_LIB(iconv, libiconv_open, with_libiconv=yes; found_iconv=yes)
fi
if test "x$found_iconv" = "xno" ; then
AC_MSG_ERROR([*** No iconv() implementation found in C library or libiconv])
fi
if test "x$with_libiconv" = "xyes" ; then
ICONV_LIBS="-liconv"
fi
AC_SUBST(ICONV_LIBS)
dnl ==========================================================================
dnl x86 checks (used by audio routines in music component)
2001-02-23 16:06:09 +00:00
_system_is_x86="no"
AC_CHECK_HEADER( asm/vm86.h, _system_is_x86="yes" )
AM_CONDITIONAL(X86_OPTIMIZED, test "x$_system_is_x86" = "xyes")
2001-10-31 00:31:00 +00:00
dnl ==========================================================================
2000-04-19 10:05:14 +00:00
dnl ====================================
dnl = mozilla embedded component support
dnl =
2000-06-20 01:01:21 +00:00
dnl = The following voodoo does detection of mozilla libraries needed by
dnl = the nautilus mozilla component.
dnl =
dnl = The nautilus mozilla component is only built if these libraries are found
dnl =
2000-09-29 13:50:48 +00:00
dnl = --disable-mozilla-component can be used to disable building of the
dnl = mozilla component even if the mozilla development libraries are
dnl = detected.
2000-04-19 10:05:14 +00:00
dnl ====================================
2001-10-31 00:31:00 +00:00
2001-06-25 13:43:04 +00:00
mozilla_component_enabled="yes"
2000-09-29 13:50:48 +00:00
AC_ARG_ENABLE(mozilla-component,
2001-06-25 13:43:04 +00:00
[ --disable-mozilla-component Disable the mozilla component],
mozilla_component_enabled="$enableval")
2000-09-29 13:50:48 +00:00
2001-10-16 02:38:42 +00:00
dnl Dont build the mozilla component for profiled builds because the C++ compiler
2000-10-04 21:16:45 +00:00
dnl used for mozilla rpms is not binary compatible with the one used for profiling.
if test "x$ENABLE_PROFILER" = "x1"
then
2001-06-25 13:43:04 +00:00
mozilla_component_enabled="no"
2000-10-04 21:16:45 +00:00
fi
2000-09-29 13:50:48 +00:00
found_mozilla=false
2001-06-25 13:43:04 +00:00
if test "x$mozilla_component_enabled" = "xyes"
2000-09-29 13:50:48 +00:00
then
2000-06-20 01:01:21 +00:00
_mozilla_lib_place=/usr/lib/mozilla
AC_ARG_WITH(mozilla-lib-place,
[ --with-mozilla-lib-place Set mozilla 'lib' place ],
[ _mozilla_lib_place="$withval" ])
2001-10-16 02:38:42 +00:00
_mozilla_include_place=/usr/include/mozilla
2000-06-20 01:01:21 +00:00
AC_ARG_WITH(mozilla-include-place,
[ --with-mozilla-include-place Set mozilla 'include' place ],
[ _mozilla_include_place="$withval" ])
2001-10-16 02:38:42 +00:00
_mozilla_nspr_include_place=$_mozilla_include_place/nspr
AC_ARG_WITH(mozilla-nspr-include-place,
[ --with-mozilla-nspr-include-place Set mozilla nspr directory 'include' place ],
[ _mozilla_nspr_include_place="$withval" ])
2000-06-20 01:01:21 +00:00
dnl Save flags and compiler
_save_cflags="$CFLAGS"
_save_ldflags="$LDFLAGS"
_save_cc="$CC"
dnl Hack flags to find the mozilla stuff
2001-05-08 08:48:26 +00:00
CFLAGS="$_save_cflags -I$_mozilla_include_place -I$_mozilla_include_place/nspr"
Fixed bug 640 (icon cache never frees images (awaiting GdkPixbuf
fix)). Also took care of bug 3145 (zillions of 'main_loops !=
NULL' assertion failures when quitting) and bug 3138 (Some code in
the icon factory is cut and pasted from elsewhere). And a few
unrelated things that came up while I was busy working on these.
* configure.in: Applied patch from Dan Winship to fix handling of
CFLAGS and LDFLAGS. Fixes some missing quoting and other mistakes.
* libnautilus-extensions/Makefile.am:
* libnautilus-extensions/nautilus-icon-factory-private.h:
* libnautilus-extensions/nautilus-thumbnails.c:
* libnautilus-extensions/nautilus-thumbnails.h:
Broke out the thumbnailing code into its own source file for
clarity.
* libnautilus-extensions/nautilus-directory.c:
* libnautilus-extensions/nautilus-file-utilities.h:
* libnautilus-extensions/nautilus-file-utilities.c:
(nautilus_make_directory_and_parents):
Moved nautilus_make_directory_and_parents into a place where the
thumbnail code can share it instead of requiring its own copy.
* libnautilus-extensions/nautilus-global-preferences.h:
* libnautilus-extensions/nautilus-global-preferences.c:
(destroy_global_prefs_dialog), (global_preferences_get_dialog),
(nautilus_global_preferences_dialog_update),
(nautilus_global_preferences_initialize):
* libnautilus-extensions/nautilus-preferences.h:
* libnautilus-extensions/nautilus-preferences.c:
(preferences_initialize_if_needed), (preferences_shutdown):
* src/nautilus-application.c: (nautilus_application_destroy):
Changed code so that it cleans up with g_atexit instead of with an
explicit shutdown call. This makes it sequence correctly with
other atexit code.
* libnautilus-extensions/nautilus-icon-canvas-item.h:
* libnautilus-extensions/nautilus-icon-canvas-item.c:
(nautilus_icon_canvas_item_destroy),
(nautilus_icon_canvas_item_set_attach_points),
(emblem_layout_next):
* libnautilus-extensions/nautilus-icon-container.c:
(nautilus_icon_container_update_icon):
Added a Nautilus prefix to the EmblemAttachPoints typedef, since
it's public.
* libnautilus-extensions/nautilus-icon-factory.h:
* libnautilus-extensions/nautilus-icon-factory.c:
Changed the icon factory structure so that it will actually free
pixbufs when done with them. Made some other small fixes to the
icon factory in passing, including removing some redundant code
and fixing the logic for getting custom icons and deleting the
icon factory and g_atexit time.
* src/file-manager/fm-icon-view.c: (play_file), (preview_sound):
Restructured the logic for playing sound previews a little to get
rid of compiler warnings and close some loopholes in the old code.
* src/nautilus-main.c: (is_event_loop_needed),
(quit_if_in_main_loop), (nautilus_gtk_main_quit_all),
(event_loop_unregister), (nautilus_main_event_loop_register),
(nautilus_main_is_event_loop_mainstay),
(nautilus_main_event_loop_quit), (main): Fixed the main loop
quitting logic so that it is a bit simpler and works with the
gnome-vfs code that runs event handling after the last main loop
is gone.
2000-09-20 00:44:07 +00:00
LDFLAGS="$_save_ldflags -L$_mozilla_lib_place"
2000-06-20 01:01:21 +00:00
2001-10-16 02:38:42 +00:00
_mozilla_nspr_libs=
2000-06-20 01:01:21 +00:00
AC_CHECK_LIB(nspr4, PR_Init, [_mozilla_nspr_libs="-lnspr4"])
LDFLAGS="$LDFLAGS $_mozilla_nspr_libs"
2001-10-16 02:38:42 +00:00
_mozilla_plc_libs=
2000-06-20 01:01:21 +00:00
AC_CHECK_LIB(plc4, PL_strcmp, [_mozilla_plc_libs="-lplc4"])
2001-10-16 02:38:42 +00:00
_mozilla_plds_libs=
2000-06-20 01:01:21 +00:00
AC_CHECK_LIB(plds4, PL_NewHashTable, [_mozilla_plds_libs="-lplds4"])
_mozilla_all_nspr_flags="$_mozilla_nspr_libs $_mozilla_plc_libs $_mozilla_plds_libs"
dnl Now check for the evil c++ ones "by hand"
CC="g++"
2000-07-05 12:30:16 +00:00
LDFLAGS="$_save_ldflags -L$_mozilla_lib_place $_mozilla_all_nspr_flags -lxpcom"
2000-06-20 01:01:21 +00:00
AC_MSG_CHECKING(for xpcom)
AC_CACHE_VAL(have_xpcom,
[AC_TRY_COMPILE([extern "C" int NS_RegistryGetFactory(void**);]
[],
[NS_RegistryGetFactory(0); return 0;],
[have_xpcom=true],
[have_xpcom=false])])
if test "$have_xpcom" = "true" ; then
_mozilla_xpcom_libs="-lxpcom"
AC_MSG_RESULT(yes)
else
2001-10-16 02:38:42 +00:00
_mozilla_xpcom_libs=
2000-06-20 01:01:21 +00:00
AC_MSG_RESULT(no)
fi
2000-04-19 10:05:14 +00:00
2001-10-16 02:38:42 +00:00
dnl The next two are pure evil
Fixed bug 640 (icon cache never frees images (awaiting GdkPixbuf
fix)). Also took care of bug 3145 (zillions of 'main_loops !=
NULL' assertion failures when quitting) and bug 3138 (Some code in
the icon factory is cut and pasted from elsewhere). And a few
unrelated things that came up while I was busy working on these.
* configure.in: Applied patch from Dan Winship to fix handling of
CFLAGS and LDFLAGS. Fixes some missing quoting and other mistakes.
* libnautilus-extensions/Makefile.am:
* libnautilus-extensions/nautilus-icon-factory-private.h:
* libnautilus-extensions/nautilus-thumbnails.c:
* libnautilus-extensions/nautilus-thumbnails.h:
Broke out the thumbnailing code into its own source file for
clarity.
* libnautilus-extensions/nautilus-directory.c:
* libnautilus-extensions/nautilus-file-utilities.h:
* libnautilus-extensions/nautilus-file-utilities.c:
(nautilus_make_directory_and_parents):
Moved nautilus_make_directory_and_parents into a place where the
thumbnail code can share it instead of requiring its own copy.
* libnautilus-extensions/nautilus-global-preferences.h:
* libnautilus-extensions/nautilus-global-preferences.c:
(destroy_global_prefs_dialog), (global_preferences_get_dialog),
(nautilus_global_preferences_dialog_update),
(nautilus_global_preferences_initialize):
* libnautilus-extensions/nautilus-preferences.h:
* libnautilus-extensions/nautilus-preferences.c:
(preferences_initialize_if_needed), (preferences_shutdown):
* src/nautilus-application.c: (nautilus_application_destroy):
Changed code so that it cleans up with g_atexit instead of with an
explicit shutdown call. This makes it sequence correctly with
other atexit code.
* libnautilus-extensions/nautilus-icon-canvas-item.h:
* libnautilus-extensions/nautilus-icon-canvas-item.c:
(nautilus_icon_canvas_item_destroy),
(nautilus_icon_canvas_item_set_attach_points),
(emblem_layout_next):
* libnautilus-extensions/nautilus-icon-container.c:
(nautilus_icon_container_update_icon):
Added a Nautilus prefix to the EmblemAttachPoints typedef, since
it's public.
* libnautilus-extensions/nautilus-icon-factory.h:
* libnautilus-extensions/nautilus-icon-factory.c:
Changed the icon factory structure so that it will actually free
pixbufs when done with them. Made some other small fixes to the
icon factory in passing, including removing some redundant code
and fixing the logic for getting custom icons and deleting the
icon factory and g_atexit time.
* src/file-manager/fm-icon-view.c: (play_file), (preview_sound):
Restructured the logic for playing sound previews a little to get
rid of compiler warnings and close some loopholes in the old code.
* src/nautilus-main.c: (is_event_loop_needed),
(quit_if_in_main_loop), (nautilus_gtk_main_quit_all),
(event_loop_unregister), (nautilus_main_event_loop_register),
(nautilus_main_is_event_loop_mainstay),
(nautilus_main_event_loop_quit), (main): Fixed the main loop
quitting logic so that it is a bit simpler and works with the
gnome-vfs code that runs event handling after the last main loop
is gone.
2000-09-20 00:44:07 +00:00
CC="$_save_cc"
2000-04-19 10:05:14 +00:00
2000-06-20 01:01:21 +00:00
dnl gtk superwin library
Fixed bug 640 (icon cache never frees images (awaiting GdkPixbuf
fix)). Also took care of bug 3145 (zillions of 'main_loops !=
NULL' assertion failures when quitting) and bug 3138 (Some code in
the icon factory is cut and pasted from elsewhere). And a few
unrelated things that came up while I was busy working on these.
* configure.in: Applied patch from Dan Winship to fix handling of
CFLAGS and LDFLAGS. Fixes some missing quoting and other mistakes.
* libnautilus-extensions/Makefile.am:
* libnautilus-extensions/nautilus-icon-factory-private.h:
* libnautilus-extensions/nautilus-thumbnails.c:
* libnautilus-extensions/nautilus-thumbnails.h:
Broke out the thumbnailing code into its own source file for
clarity.
* libnautilus-extensions/nautilus-directory.c:
* libnautilus-extensions/nautilus-file-utilities.h:
* libnautilus-extensions/nautilus-file-utilities.c:
(nautilus_make_directory_and_parents):
Moved nautilus_make_directory_and_parents into a place where the
thumbnail code can share it instead of requiring its own copy.
* libnautilus-extensions/nautilus-global-preferences.h:
* libnautilus-extensions/nautilus-global-preferences.c:
(destroy_global_prefs_dialog), (global_preferences_get_dialog),
(nautilus_global_preferences_dialog_update),
(nautilus_global_preferences_initialize):
* libnautilus-extensions/nautilus-preferences.h:
* libnautilus-extensions/nautilus-preferences.c:
(preferences_initialize_if_needed), (preferences_shutdown):
* src/nautilus-application.c: (nautilus_application_destroy):
Changed code so that it cleans up with g_atexit instead of with an
explicit shutdown call. This makes it sequence correctly with
other atexit code.
* libnautilus-extensions/nautilus-icon-canvas-item.h:
* libnautilus-extensions/nautilus-icon-canvas-item.c:
(nautilus_icon_canvas_item_destroy),
(nautilus_icon_canvas_item_set_attach_points),
(emblem_layout_next):
* libnautilus-extensions/nautilus-icon-container.c:
(nautilus_icon_container_update_icon):
Added a Nautilus prefix to the EmblemAttachPoints typedef, since
it's public.
* libnautilus-extensions/nautilus-icon-factory.h:
* libnautilus-extensions/nautilus-icon-factory.c:
Changed the icon factory structure so that it will actually free
pixbufs when done with them. Made some other small fixes to the
icon factory in passing, including removing some redundant code
and fixing the logic for getting custom icons and deleting the
icon factory and g_atexit time.
* src/file-manager/fm-icon-view.c: (play_file), (preview_sound):
Restructured the logic for playing sound previews a little to get
rid of compiler warnings and close some loopholes in the old code.
* src/nautilus-main.c: (is_event_loop_needed),
(quit_if_in_main_loop), (nautilus_gtk_main_quit_all),
(event_loop_unregister), (nautilus_main_event_loop_register),
(nautilus_main_is_event_loop_mainstay),
(nautilus_main_event_loop_quit), (main): Fixed the main loop
quitting logic so that it is a bit simpler and works with the
gnome-vfs code that runs event handling after the last main loop
is gone.
2000-09-20 00:44:07 +00:00
LDFLAGS="$_save_ldflags -L$_mozilla_lib_place $_mozilla_all_nspr_flags -lgtksuperwin"
2001-10-16 02:38:42 +00:00
_mozilla_gtk_super_win_libs=
2000-06-20 01:01:21 +00:00
AC_CHECK_LIB(gtksuperwin, gdk_superwin_get_type, [_mozilla_gtk_super_win_libs="-lgtksuperwin"])
2000-04-19 10:05:14 +00:00
2000-06-20 01:01:21 +00:00
dnl gtk moz embed library
Fixed bug 640 (icon cache never frees images (awaiting GdkPixbuf
fix)). Also took care of bug 3145 (zillions of 'main_loops !=
NULL' assertion failures when quitting) and bug 3138 (Some code in
the icon factory is cut and pasted from elsewhere). And a few
unrelated things that came up while I was busy working on these.
* configure.in: Applied patch from Dan Winship to fix handling of
CFLAGS and LDFLAGS. Fixes some missing quoting and other mistakes.
* libnautilus-extensions/Makefile.am:
* libnautilus-extensions/nautilus-icon-factory-private.h:
* libnautilus-extensions/nautilus-thumbnails.c:
* libnautilus-extensions/nautilus-thumbnails.h:
Broke out the thumbnailing code into its own source file for
clarity.
* libnautilus-extensions/nautilus-directory.c:
* libnautilus-extensions/nautilus-file-utilities.h:
* libnautilus-extensions/nautilus-file-utilities.c:
(nautilus_make_directory_and_parents):
Moved nautilus_make_directory_and_parents into a place where the
thumbnail code can share it instead of requiring its own copy.
* libnautilus-extensions/nautilus-global-preferences.h:
* libnautilus-extensions/nautilus-global-preferences.c:
(destroy_global_prefs_dialog), (global_preferences_get_dialog),
(nautilus_global_preferences_dialog_update),
(nautilus_global_preferences_initialize):
* libnautilus-extensions/nautilus-preferences.h:
* libnautilus-extensions/nautilus-preferences.c:
(preferences_initialize_if_needed), (preferences_shutdown):
* src/nautilus-application.c: (nautilus_application_destroy):
Changed code so that it cleans up with g_atexit instead of with an
explicit shutdown call. This makes it sequence correctly with
other atexit code.
* libnautilus-extensions/nautilus-icon-canvas-item.h:
* libnautilus-extensions/nautilus-icon-canvas-item.c:
(nautilus_icon_canvas_item_destroy),
(nautilus_icon_canvas_item_set_attach_points),
(emblem_layout_next):
* libnautilus-extensions/nautilus-icon-container.c:
(nautilus_icon_container_update_icon):
Added a Nautilus prefix to the EmblemAttachPoints typedef, since
it's public.
* libnautilus-extensions/nautilus-icon-factory.h:
* libnautilus-extensions/nautilus-icon-factory.c:
Changed the icon factory structure so that it will actually free
pixbufs when done with them. Made some other small fixes to the
icon factory in passing, including removing some redundant code
and fixing the logic for getting custom icons and deleting the
icon factory and g_atexit time.
* src/file-manager/fm-icon-view.c: (play_file), (preview_sound):
Restructured the logic for playing sound previews a little to get
rid of compiler warnings and close some loopholes in the old code.
* src/nautilus-main.c: (is_event_loop_needed),
(quit_if_in_main_loop), (nautilus_gtk_main_quit_all),
(event_loop_unregister), (nautilus_main_event_loop_register),
(nautilus_main_is_event_loop_mainstay),
(nautilus_main_event_loop_quit), (main): Fixed the main loop
quitting logic so that it is a bit simpler and works with the
gnome-vfs code that runs event handling after the last main loop
is gone.
2000-09-20 00:44:07 +00:00
LDFLAGS="$_save_ldflags -L$_mozilla_lib_place $_mozilla_all_nspr_flags -lgtkembedmoz $_mozilla_xpcom_libs"
2001-10-16 02:38:42 +00:00
_mozilla_gtk_moz_embed_libs=
2000-06-20 01:01:21 +00:00
AC_CHECK_LIB(gtkembedmoz, gtk_moz_embed_get_type, [_mozilla_gtk_moz_embed_libs="-lgtkembedmoz"])
2000-04-19 10:05:14 +00:00
2000-06-20 01:01:21 +00:00
dnl Restore the flags and compiler
Fixed bug 640 (icon cache never frees images (awaiting GdkPixbuf
fix)). Also took care of bug 3145 (zillions of 'main_loops !=
NULL' assertion failures when quitting) and bug 3138 (Some code in
the icon factory is cut and pasted from elsewhere). And a few
unrelated things that came up while I was busy working on these.
* configure.in: Applied patch from Dan Winship to fix handling of
CFLAGS and LDFLAGS. Fixes some missing quoting and other mistakes.
* libnautilus-extensions/Makefile.am:
* libnautilus-extensions/nautilus-icon-factory-private.h:
* libnautilus-extensions/nautilus-thumbnails.c:
* libnautilus-extensions/nautilus-thumbnails.h:
Broke out the thumbnailing code into its own source file for
clarity.
* libnautilus-extensions/nautilus-directory.c:
* libnautilus-extensions/nautilus-file-utilities.h:
* libnautilus-extensions/nautilus-file-utilities.c:
(nautilus_make_directory_and_parents):
Moved nautilus_make_directory_and_parents into a place where the
thumbnail code can share it instead of requiring its own copy.
* libnautilus-extensions/nautilus-global-preferences.h:
* libnautilus-extensions/nautilus-global-preferences.c:
(destroy_global_prefs_dialog), (global_preferences_get_dialog),
(nautilus_global_preferences_dialog_update),
(nautilus_global_preferences_initialize):
* libnautilus-extensions/nautilus-preferences.h:
* libnautilus-extensions/nautilus-preferences.c:
(preferences_initialize_if_needed), (preferences_shutdown):
* src/nautilus-application.c: (nautilus_application_destroy):
Changed code so that it cleans up with g_atexit instead of with an
explicit shutdown call. This makes it sequence correctly with
other atexit code.
* libnautilus-extensions/nautilus-icon-canvas-item.h:
* libnautilus-extensions/nautilus-icon-canvas-item.c:
(nautilus_icon_canvas_item_destroy),
(nautilus_icon_canvas_item_set_attach_points),
(emblem_layout_next):
* libnautilus-extensions/nautilus-icon-container.c:
(nautilus_icon_container_update_icon):
Added a Nautilus prefix to the EmblemAttachPoints typedef, since
it's public.
* libnautilus-extensions/nautilus-icon-factory.h:
* libnautilus-extensions/nautilus-icon-factory.c:
Changed the icon factory structure so that it will actually free
pixbufs when done with them. Made some other small fixes to the
icon factory in passing, including removing some redundant code
and fixing the logic for getting custom icons and deleting the
icon factory and g_atexit time.
* src/file-manager/fm-icon-view.c: (play_file), (preview_sound):
Restructured the logic for playing sound previews a little to get
rid of compiler warnings and close some loopholes in the old code.
* src/nautilus-main.c: (is_event_loop_needed),
(quit_if_in_main_loop), (nautilus_gtk_main_quit_all),
(event_loop_unregister), (nautilus_main_event_loop_register),
(nautilus_main_is_event_loop_mainstay),
(nautilus_main_event_loop_quit), (main): Fixed the main loop
quitting logic so that it is a bit simpler and works with the
gnome-vfs code that runs event handling after the last main loop
is gone.
2000-09-20 00:44:07 +00:00
CFLAGS="$_save_cflags"
LDFLAGS="$_save_ldflags"
CC="$_save_cc"
2000-06-20 01:01:21 +00:00
dnl Now make sure all the libraries are good
AC_MSG_CHECKING(for Mozilla)
if test -n "$_mozilla_nspr_libs" -a \
-n "$_mozilla_plc_libs" -a \
-n "$_mozilla_plds_libs" -a \
-n "$_mozilla_xpcom_libs" -a \
-n "$_mozilla_gtk_super_win_libs" -a \
-n "$_mozilla_gtk_moz_embed_libs"
2000-04-19 10:05:14 +00:00
then
2000-06-20 01:01:21 +00:00
AC_MSG_RESULT(yes)
2000-11-15 01:36:55 +00:00
AC_PROG_CXX
2000-06-20 01:01:21 +00:00
found_mozilla=true
2001-01-03 08:42:48 +00:00
MOZILLA_COMPONENT_RPATH_FLAGS=-Wl,-rpath=$_mozilla_lib_place
2000-06-20 01:01:21 +00:00
MOZILLA_COMPONENT_LDFLAGS=-L$_mozilla_lib_place
MOZILLA_COMPONENT_LIBS="$_mozilla_gtk_moz_embed_libs \
$_mozilla_gtk_super_win_libs \
$_mozilla_xpcom_libs \
$_mozilla_nspr_libs \
$_mozilla_plc_libs \
$_mozilla_plds_libs"
2001-01-03 08:42:48 +00:00
AC_SUBST(MOZILLA_COMPONENT_RPATH_FLAGS)
2000-06-20 01:01:21 +00:00
AC_SUBST(MOZILLA_COMPONENT_LDFLAGS)
AC_SUBST(MOZILLA_COMPONENT_LIBS)
2000-04-19 10:05:14 +00:00
else
AC_MSG_RESULT(no)
2000-06-20 01:01:21 +00:00
found_mozilla=false
2000-04-19 10:05:14 +00:00
fi
2001-10-16 02:38:42 +00:00
2000-09-29 13:50:48 +00:00
fi
2001-10-31 00:31:00 +00:00
AM_CONDITIONAL(BUILD_MOZILLA_COMPONENT, test "$found_mozilla" = "true")
2000-04-19 10:05:14 +00:00
2001-10-31 00:31:00 +00:00
if test "$found_mozilla" = "true"
2000-08-09 07:58:55 +00:00
then
2001-10-16 02:38:42 +00:00
grep -w gtk_moz_embed_set_profile_path $_mozilla_include_place/gtkembedmoz/gtkmozembed.h > /dev/null 2>&1
2000-08-09 07:58:55 +00:00
if test $? -eq 0
then
2001-02-16 11:40:14 +00:00
MOZILLA_PROFILES_CFLAGS="-DMOZILLA_HAVE_PROFILES_SUPPORT"
AC_SUBST(MOZILLA_PROFILES_CFLAGS)
2000-09-04 15:17:06 +00:00
2001-10-16 02:38:42 +00:00
MOZILLA_COMPONENT_CFLAGS="-I$_mozilla_include_place -I$_mozilla_nspr_include_place -fno-rtti -fno-exceptions"
for component in xpcom gfx widget gtkembedmoz dom \
webbrwsr docshell content layout pref uconv string; do
MOZILLA_COMPONENT_CFLAGS="$MOZILLA_COMPONENT_CFLAGS -I$_mozilla_include_place/$component"
done
AC_SUBST(MOZILLA_COMPONENT_CFLAGS)
else
AC_MSG_ERROR([
*** Mozilla 0.9.5 or greater is required to build the
*** Nautilus Mozilla component.])
2000-08-09 07:58:55 +00:00
fi
2001-10-16 02:38:42 +00:00
dnl The DEBUG check is a most evil hack. The problem im trying to solve
dnl is that we dont know whether the mozilla binaries we are using are built
dnl in debug mode or not (DEBUG). We need to know this so that we set
dnl appropiate compile flags in the mozilla component. Otherwise we get
dnl undefined symbols. Specifically, the undefined symbols are some
dnl destrcutors (nsCOMPtr_base::~nsCOMPtr_base) which are implemented only
dnl if the debug flag DEBUG is set a certain way.
2000-09-27 21:27:31 +00:00
_xpcom_lib=$_mozilla_lib_place/libxpcom.so
_symbol="nsCOMPtr_base::~nsCOMPtr_base"
_num_symbols=`nm $_xpcom_lib 2> /dev/null | wc -l`
2001-10-16 02:38:42 +00:00
MOZILLA_COMPONENT_DEBUG_FLAGS=
2000-09-27 21:27:31 +00:00
if test $_num_symbols -ne 0
then
nm --demangle $_xpcom_lib | grep $_symbol > /dev/null 2>&1
if test $? -eq 1
then
MOZILLA_COMPONENT_DEBUG_FLAGS="-DDEBUG"
fi
fi
AC_SUBST(MOZILLA_COMPONENT_DEBUG_FLAGS)
2000-08-09 07:58:55 +00:00
fi
2001-10-31 00:31:00 +00:00
dnl ==========================================================================
dnl cdda
2001-03-17 04:45:00 +00:00
AM_CONDITIONAL(HAVE_CDDA, false);
AC_CHECK_HEADERS(cdda_interface.h cdda_paranoia.h, [
2001-10-31 00:31:00 +00:00
CDDA_LIBS="-lcdda_paranoia -lcdda_interface";
AM_CONDITIONAL(HAVE_CDDA, true);
2001-03-17 04:45:00 +00:00
])
2001-10-31 00:31:00 +00:00
dnl ==========================================================================
dnl scrollkeeper
2001-03-01 03:03:00 +00:00
AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config,no)
if test x$SCROLLKEEPER_CONFIG = xno; then
AC_MSG_ERROR(Couldn't find scrollkeeper-config, please install the scrollkeeper packaga)
fi
2001-10-31 00:31:00 +00:00
dnl ==========================================================================
dnl jw (for doc build)
2001-03-01 03:03:00 +00:00
2001-07-22 18:53:29 +00:00
AC_PATH_PROG(JW,jw,no)
if test x$JW = xno; then
HAVE_JW="no"
else
HAVE_JW="yes"
fi
AM_CONDITIONAL(HAVE_JW, test "x$HAVE_JW" = "xyes")
AC_SUBST(HAVE_JW)
2001-10-31 00:31:00 +00:00
dnl ==========================================================================
2000-07-17 23:11:35 +00:00
AC_MSG_CHECKING(for Medusa)
2001-01-09 02:05:41 +00:00
case "`medusa-config --libs 2>/dev/null | cut -d ' ' -f1`" in
'')
2000-07-17 23:11:35 +00:00
MEDUSA_CFLAGS=""
MEDUSA_LIBS=""
AC_MSG_RESULT(no)
2001-01-09 02:05:41 +00:00
;;
*)
MEDUSA_CFLAGS=`medusa-config --cflags`
MEDUSA_LIBS=`medusa-config --libs`
AC_DEFINE(HAVE_MEDUSA)
AC_MSG_RESULT(yes)
;;
esac
2000-07-17 23:11:35 +00:00
AC_SUBST(MEDUSA_CFLAGS)
AC_SUBST(MEDUSA_LIBS)
2000-08-30 18:21:12 +00:00
2001-10-31 00:31:00 +00:00
dnl ==========================================================================
dnl libpng
2000-03-03 23:52:55 +00:00
if test -z "$LIBPNG"; then
AC_CHECK_LIB(png, png_read_info,
AC_CHECK_HEADER(png.h,
png_ok=yes,
png_ok=no),
AC_MSG_ERROR(*** (PNG library not found) ***), -lz -lm)
if test "$png_ok" = yes; then
AC_MSG_CHECKING([for png_structp in png.h])
AC_TRY_COMPILE([#include <png.h>],
[png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct;],
png_ok=yes,
png_ok=no)
AC_MSG_RESULT($png_ok)
if test "$png_ok" = yes; then
PNG='png'; LIBPNG='-lpng -lz'
else
AC_MSG_WARN(*** PNG loader will not be built (PNG library is too old) ***)
fi
else
AC_MSG_WARN(*** PNG loader will not be built (PNG header file not found) ***)
fi
fi
AC_SUBST(LIBPNG)
2001-10-31 00:31:00 +00:00
dnl ==========================================================================
dnl libjpeg
2001-04-27 01:19:07 +00:00
if test -z "$LIBJPEG"; then
AC_CHECK_LIB(jpeg, jpeg_start_decompress,
AC_CHECK_HEADER(jpeglib.h,
jpeg_ok=yes,
jpeg_ok=no),
AC_MSG_WARN(*** (jpeg library not found) ***), -lm)
if test "$jpeg_ok" = yes; then
JPEG='jpeg'; LIBJPEG='-ljpeg'
AC_DEFINE(HAVE_LIBJPEG)
else
AC_MSG_WARN(*** JPEG loader will not be built (jpeg header file not found) ***)
fi
fi
AC_SUBST(LIBJPEG)
2001-03-21 05:15:42 +00:00
2001-10-31 00:31:00 +00:00
dnl ==========================================================================
1999-12-05 00:40:26 +00:00
2000-07-12 19:33:38 +00:00
dnl Turn on the additional warnings last, so -Werror doesn't affect other tests.
2000-08-08 01:36:50 +00:00
2000-07-12 19:33:38 +00:00
AC_ARG_ENABLE(more-warnings,
2000-08-08 01:36:50 +00:00
[ --enable-more-warnings Maximum compiler warnings],
set_more_warnings="$enableval",[
if test -f $srcdir/CVSVERSION; then
2001-03-10 02:03:55 +00:00
is_cvs_version=true
2000-08-08 01:36:50 +00:00
set_more_warnings=yes
else
set_more_warnings=no
fi
])
2000-07-12 19:33:38 +00:00
AC_MSG_CHECKING(for more warnings, including -Werror)
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
AC_MSG_RESULT(yes)
2000-09-29 08:57:11 +00:00
CFLAGS="\
2000-09-05 21:24:35 +00:00
-Wall \
2000-07-12 19:33:38 +00:00
-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
-Wnested-externs -Wpointer-arith \
reviewed by: Darin Adler <darin@eazel.com>
2000-11-13 Pavel Cisler <pavel@eazel.com>
reviewed by: Darin Adler <darin@eazel.com>
* configure.in:
Enable the sign-compare and cast-align warnings.
* components/help/converters/gnome-db2html2/gdb3html.c:
(find_first_element):
* components/help/hyperbola-filefmt.c: (fmt_free_tree_info):
* components/help/hyperbola-nav-index.c:
(hyperbola_navigation_index_update_clist), (despace),
(end_element):
* components/history/nautilus-history-view.c:
(history_load_location):
* components/mozilla/nautilus-mozilla-content-view.c:
(string_list_get_index_of_string):
* components/services/install/lib/eazel-install-corba-types.c:
(corba_string_sequence_to_glist),
(corba_packagedatastructlist_from_packagedata_list),
(packagedata_list_from_corba_packagedatastructlist),
(categorydata_list_from_corba_categorystructlist):
* components/services/install/lib/eazel-install-query.c:
(eazel_install_simple_rpm_query):
* components/services/install/lib/eazel-install-rpm-glue.c:
(eazel_install_monitor_rpm_process_pipe):
* components/services/install/lib/eazel-install-rpm-signature.c:
(read_rpm_lead), (read_rpm_signature):
* components/services/trilobite/libtrilobite/trilobite-root-helper.
c: (trilobite_root_helper_run_program),
(trilobite_root_helper_set_time):
* cut-n-paste-code/widgets/nautilusclist/nautilusclist.c:
(nautilus_clist_get_arg), (nautilus_clist_construct):
* helper-utilities/authenticate/nautilus-authenticate.c: (main):
* libnautilus-extensions/nautilus-background.c:
(set_image_and_color_image_loading_done_callback):
* libnautilus-extensions/nautilus-buffered-widget.c:
(nautilus_gdk_pixbuf_tile_alpha):
* libnautilus-extensions/nautilus-caption-table.c:
(entry_activate):
* libnautilus-extensions/nautilus-caption-table.h:
* libnautilus-extensions/nautilus-ctree.c:
(nautilus_ctree_node_nth), (nautilus_ctree_drag_motion):
* libnautilus-extensions/nautilus-ctree.h:
* libnautilus-extensions/nautilus-directory-async.c:
(metafile_write):
* libnautilus-extensions/nautilus-file-changes-queue.c:
(nautilus_file_changes_consume_changes):
* libnautilus-extensions/nautilus-file-operations-progress.c:
(truncate_string_from_start):
* libnautilus-extensions/nautilus-file-operations.c:
(extract_string_until):
* libnautilus-extensions/nautilus-file-utilities.c:
(nautilus_read_entire_file):
* libnautilus-extensions/nautilus-gdk-extensions.c:
(nautilus_get_largest_fitting_font):
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_get_sidebar_panel_view_identifiers):
* libnautilus-extensions/nautilus-gtk-extensions.c:
(nautilus_gtk_window_set_initial_geometry_from_string),
(nautilus_gtk_menu_set_item_visibility):
* libnautilus-extensions/nautilus-icon-canvas-item.c:
(draw_or_measure_label_text), (draw_or_measure_label_text_aa):
* libnautilus-extensions/nautilus-icon-container.c:
(rubberband_timeout_callback), (destroy), (compute_stretch):
* libnautilus-extensions/nautilus-icon-container.h:
(nautilus_icon_container_find_drop_target):
* libnautilus-extensions/nautilus-icon-factory.c:
(check_recently_used_list), (get_themed_icon_file_path),
(revise_scale_factors_if_too_big):
* libnautilus-extensions/nautilus-icon-text-item.c:
(recompute_bounding_box), (iti_draw), (iti_selection_motion):
* libnautilus-extensions/nautilus-label.c:
(nautilus_label_size_allocate), (label_recompute_line_geometries):
* libnautilus-extensions/nautilus-list.c: (draw_cell),
(nautilus_list_drag_data_received):
* libnautilus-extensions/nautilus-mime-actions.c:
(server_matches_content_requirements),
(nautilus_do_component_query):
* libnautilus-extensions/nautilus-password-dialog.c:
(caption_table_activate_callback):
* libnautilus-extensions/nautilus-preferences-item.c:
(has_image_file):
* libnautilus-extensions/nautilus-scalable-font.c:
(file_as_string), (parse_font_description_file),
(nautilus_text_layout_new):
* libnautilus-extensions/nautilus-scalable-font.h:
* libnautilus-extensions/nautilus-volume-monitor.c:
(check_permissions):
* libnautilus/nautilus-view.c:
(nautilus_shallow_g_list_from_uri_list):
* libnautilus/nautilus-zoomable.c:
(nautilus_g_list_from_ZoomLevelList):
* librsvg/rsvg-ft.c: (rsvg_ft_measure_or_render_string):
* librsvg/rsvg.c: (rsvg_parse_transform):
* src/file-manager/fm-icon-view.c:
(fm_icon_view_create_background_context_menu_items),
(get_sort_criterion_by_metadata_text), (get_sort_criterion_by_id):
* src/file-manager/fm-list-view.c: (select_row_common),
(select_matching_name_callback), (select_previous_next_common),
(fm_list_view_bump_zoom_level):
* src/nautilus-search-bar-criterion.c:
(nautilus_search_bar_criterion_update_valid_criteria_choices):
* src/nautilus-shell.c: (corba_open_windows),
(corba_open_default_window):
* src/nautilus-sidebar.c: (nautilus_sidebar_add_panel_items):
* src/nautilus-window-menus.c:
(nautilus_window_disable_keyboard_navigation_for_menus):
* src/nautilus-window.c: (nautilus_window_size_request):
Fix all sign-compare violations.
2000-11-14 02:46:02 +00:00
-Wcast-align -Wsign-compare \
2000-09-29 08:57:11 +00:00
-Werror \
$CFLAGS"
Add checks to fix things on Solaris regarding mounting, environment
2000-09-11 Seth Nickell <seth@eazel.com>
* configure.in:
Add checks to fix things on Solaris regarding mounting,
environment variables, and fonts.
Added tests for compiler warning flags that are not supported
with all versions of GCC.
* helper-utilities/authenticate/nautilus-authenticate-pam.c:
(pam_conversion_func):
Remove "const" from system call for compatibility with Solaris.
* libnautilus-extensions/nautilus-file.c:
(get_id_from_digit_string):
uid_t != int, so change functions converting from string to
uid_t to deal with greater bit uids properly.
* libnautilus-extensions/nautilus-glib-extensions.h:
* libnautilus-extensions/nautilus-glib-extensions.c:
(nautilus_g_setenv), (nautilus_g_unsetenv):
Add system gnostic functions for setting and removing variables
from the environment.
* libnautilus-extensions/nautilus-scalable-font.c:
(initialize_global_stuff_if_needed):
Temporary fix to deal with the absence of "RedHat-style" font
paths on Solaris and Debian whilst font paths are still
hard-coded.
* libnautilus-extensions/nautilus-volume-monitor.c:
(nautilus_volume_monitor_get_volume_name),
(nautilus_volume_monitor_volume_is_mounted),
(mount_volumes_update_is_mounted), (mnttab_add_mount_volume),
(mntent_add_mount_volume), (find_volumes):
Rewrite sections to use the appropriate Solaris mounting
functions if Linux-style mount/umount/mount-table manipulation
functions are not available.
* libnautilus/nautilus-view-component.idl:
* src/nautilus-view-frame-corba.c:
* src/nautilus-zoomable-frame-corba.c:
(impl_Nautilus_ZoomableFrame_report_zoom_level_changed):
Change doubles to floats to work around an ORBit problem on
Solaris wherein doubles are not correctly aligned.
* src/file-manager/fm-desktop-icon-view.c:
remove gratuitous linux specific header inclusion
* src/nautilus-first-time-druid.c: (set_http_proxy):
* src/nautilus-main.c: (main):
* src/nautilus-shell.c: (corba_restart):
(impl_Nautilus_ViewFrame_report_load_progress):
Changed "setenv" and "unsetenv" calls to use nautilus_g_setenv
and nautilus_g_unsetenv.
* src/nautilus-window-manage-views.c:
(report_sidebar_panel_failure_to_user):
Add better error message to sidebar failures where it can't
figure out which sidebar failed. Done in order to fix null
string being passed to dialogue function which segfaulted
Nautilus on Solaris.
Yes children, your Nautilus will now run and frollick in the green,
green pasture of the multi-cpu UltraSparc.
2000-09-12 02:01:33 +00:00
for option in -Wsign-promo -Wno-sign-compare; do
SAVE_CFLAGS="$CFLAGS"
2001-07-27 17:36:35 +00:00
CFLAGS="$option $CFLAGS"
Add checks to fix things on Solaris regarding mounting, environment
2000-09-11 Seth Nickell <seth@eazel.com>
* configure.in:
Add checks to fix things on Solaris regarding mounting,
environment variables, and fonts.
Added tests for compiler warning flags that are not supported
with all versions of GCC.
* helper-utilities/authenticate/nautilus-authenticate-pam.c:
(pam_conversion_func):
Remove "const" from system call for compatibility with Solaris.
* libnautilus-extensions/nautilus-file.c:
(get_id_from_digit_string):
uid_t != int, so change functions converting from string to
uid_t to deal with greater bit uids properly.
* libnautilus-extensions/nautilus-glib-extensions.h:
* libnautilus-extensions/nautilus-glib-extensions.c:
(nautilus_g_setenv), (nautilus_g_unsetenv):
Add system gnostic functions for setting and removing variables
from the environment.
* libnautilus-extensions/nautilus-scalable-font.c:
(initialize_global_stuff_if_needed):
Temporary fix to deal with the absence of "RedHat-style" font
paths on Solaris and Debian whilst font paths are still
hard-coded.
* libnautilus-extensions/nautilus-volume-monitor.c:
(nautilus_volume_monitor_get_volume_name),
(nautilus_volume_monitor_volume_is_mounted),
(mount_volumes_update_is_mounted), (mnttab_add_mount_volume),
(mntent_add_mount_volume), (find_volumes):
Rewrite sections to use the appropriate Solaris mounting
functions if Linux-style mount/umount/mount-table manipulation
functions are not available.
* libnautilus/nautilus-view-component.idl:
* src/nautilus-view-frame-corba.c:
* src/nautilus-zoomable-frame-corba.c:
(impl_Nautilus_ZoomableFrame_report_zoom_level_changed):
Change doubles to floats to work around an ORBit problem on
Solaris wherein doubles are not correctly aligned.
* src/file-manager/fm-desktop-icon-view.c:
remove gratuitous linux specific header inclusion
* src/nautilus-first-time-druid.c: (set_http_proxy):
* src/nautilus-main.c: (main):
* src/nautilus-shell.c: (corba_restart):
(impl_Nautilus_ViewFrame_report_load_progress):
Changed "setenv" and "unsetenv" calls to use nautilus_g_setenv
and nautilus_g_unsetenv.
* src/nautilus-window-manage-views.c:
(report_sidebar_panel_failure_to_user):
Add better error message to sidebar failures where it can't
figure out which sidebar failed. Done in order to fix null
string being passed to dialogue function which segfaulted
Nautilus on Solaris.
Yes children, your Nautilus will now run and frollick in the green,
green pasture of the multi-cpu UltraSparc.
2000-09-12 02:01:33 +00:00
AC_MSG_CHECKING([whether gcc understands $option])
Fix extra dependency that was causing the xml.h files to be generated too
* Makefile.shared: Fix extra dependency that was causing the xml.h
files to be generated too often.
* configure.in: Fix code that detects the gcc options to work even
with -O on.
* src/nautilus-view-frame.h:
* src/nautilus-view-frame.c:
(nautilus_view_frame_initialize_class),
(view_frame_loaded), (view_frame_failed),
(nautilus_view_frame_handle_client_destroy),
(nautilus_view_frame_handle_client_gone),
(nautilus_view_frame_new), (check_if_view_is_gone),
(nautilus_view_frame_set_to_component),
(nautilus_view_frame_get_is_underway):
Revamp set of signals to be easier to understand. Handle all
failures uniformly,
* src/nautilus-window-manage-views.h:
* src/nautilus-window-manage-views.c: (change_selection),
(nautilus_window_update_for_new_location),
(nautilus_window_has_really_changed),
(nautilus_window_set_state_info),
(nautilus_window_set_sidebar_panels),
(zoom_level_changed_callback), (get_history_list_callback),
(change_selection_callback), (change_status_callback),
(failed_callback), (load_underway_callback),
(load_complete_callback), (open_location_callback),
(open_location_in_new_window_callback), (title_changed_callback),
(nautilus_window_connect_view), (nautilus_window_disconnect_view):
Make more of the view management private to this file. Use the
signals by their new names. Disconnect all the signals, not just
the error-related ones.
* src/nautilus-window.c:
(nautilus_window_set_content_view_widget): Updated the debugging
check to do it with the new Bonobo UI calls.
2000-10-23 22:21:12 +00:00
AC_TRY_COMPILE([], [],
Add checks to fix things on Solaris regarding mounting, environment
2000-09-11 Seth Nickell <seth@eazel.com>
* configure.in:
Add checks to fix things on Solaris regarding mounting,
environment variables, and fonts.
Added tests for compiler warning flags that are not supported
with all versions of GCC.
* helper-utilities/authenticate/nautilus-authenticate-pam.c:
(pam_conversion_func):
Remove "const" from system call for compatibility with Solaris.
* libnautilus-extensions/nautilus-file.c:
(get_id_from_digit_string):
uid_t != int, so change functions converting from string to
uid_t to deal with greater bit uids properly.
* libnautilus-extensions/nautilus-glib-extensions.h:
* libnautilus-extensions/nautilus-glib-extensions.c:
(nautilus_g_setenv), (nautilus_g_unsetenv):
Add system gnostic functions for setting and removing variables
from the environment.
* libnautilus-extensions/nautilus-scalable-font.c:
(initialize_global_stuff_if_needed):
Temporary fix to deal with the absence of "RedHat-style" font
paths on Solaris and Debian whilst font paths are still
hard-coded.
* libnautilus-extensions/nautilus-volume-monitor.c:
(nautilus_volume_monitor_get_volume_name),
(nautilus_volume_monitor_volume_is_mounted),
(mount_volumes_update_is_mounted), (mnttab_add_mount_volume),
(mntent_add_mount_volume), (find_volumes):
Rewrite sections to use the appropriate Solaris mounting
functions if Linux-style mount/umount/mount-table manipulation
functions are not available.
* libnautilus/nautilus-view-component.idl:
* src/nautilus-view-frame-corba.c:
* src/nautilus-zoomable-frame-corba.c:
(impl_Nautilus_ZoomableFrame_report_zoom_level_changed):
Change doubles to floats to work around an ORBit problem on
Solaris wherein doubles are not correctly aligned.
* src/file-manager/fm-desktop-icon-view.c:
remove gratuitous linux specific header inclusion
* src/nautilus-first-time-druid.c: (set_http_proxy):
* src/nautilus-main.c: (main):
* src/nautilus-shell.c: (corba_restart):
(impl_Nautilus_ViewFrame_report_load_progress):
Changed "setenv" and "unsetenv" calls to use nautilus_g_setenv
and nautilus_g_unsetenv.
* src/nautilus-window-manage-views.c:
(report_sidebar_panel_failure_to_user):
Add better error message to sidebar failures where it can't
figure out which sidebar failed. Done in order to fix null
string being passed to dialogue function which segfaulted
Nautilus on Solaris.
Yes children, your Nautilus will now run and frollick in the green,
green pasture of the multi-cpu UltraSparc.
2000-09-12 02:01:33 +00:00
has_option=yes,
has_option=no,)
2001-07-27 17:36:35 +00:00
if test $has_option = no; then
CFLAGS="$SAVE_CFLAGS"
Add checks to fix things on Solaris regarding mounting, environment
2000-09-11 Seth Nickell <seth@eazel.com>
* configure.in:
Add checks to fix things on Solaris regarding mounting,
environment variables, and fonts.
Added tests for compiler warning flags that are not supported
with all versions of GCC.
* helper-utilities/authenticate/nautilus-authenticate-pam.c:
(pam_conversion_func):
Remove "const" from system call for compatibility with Solaris.
* libnautilus-extensions/nautilus-file.c:
(get_id_from_digit_string):
uid_t != int, so change functions converting from string to
uid_t to deal with greater bit uids properly.
* libnautilus-extensions/nautilus-glib-extensions.h:
* libnautilus-extensions/nautilus-glib-extensions.c:
(nautilus_g_setenv), (nautilus_g_unsetenv):
Add system gnostic functions for setting and removing variables
from the environment.
* libnautilus-extensions/nautilus-scalable-font.c:
(initialize_global_stuff_if_needed):
Temporary fix to deal with the absence of "RedHat-style" font
paths on Solaris and Debian whilst font paths are still
hard-coded.
* libnautilus-extensions/nautilus-volume-monitor.c:
(nautilus_volume_monitor_get_volume_name),
(nautilus_volume_monitor_volume_is_mounted),
(mount_volumes_update_is_mounted), (mnttab_add_mount_volume),
(mntent_add_mount_volume), (find_volumes):
Rewrite sections to use the appropriate Solaris mounting
functions if Linux-style mount/umount/mount-table manipulation
functions are not available.
* libnautilus/nautilus-view-component.idl:
* src/nautilus-view-frame-corba.c:
* src/nautilus-zoomable-frame-corba.c:
(impl_Nautilus_ZoomableFrame_report_zoom_level_changed):
Change doubles to floats to work around an ORBit problem on
Solaris wherein doubles are not correctly aligned.
* src/file-manager/fm-desktop-icon-view.c:
remove gratuitous linux specific header inclusion
* src/nautilus-first-time-druid.c: (set_http_proxy):
* src/nautilus-main.c: (main):
* src/nautilus-shell.c: (corba_restart):
(impl_Nautilus_ViewFrame_report_load_progress):
Changed "setenv" and "unsetenv" calls to use nautilus_g_setenv
and nautilus_g_unsetenv.
* src/nautilus-window-manage-views.c:
(report_sidebar_panel_failure_to_user):
Add better error message to sidebar failures where it can't
figure out which sidebar failed. Done in order to fix null
string being passed to dialogue function which segfaulted
Nautilus on Solaris.
Yes children, your Nautilus will now run and frollick in the green,
green pasture of the multi-cpu UltraSparc.
2000-09-12 02:01:33 +00:00
fi
AC_MSG_RESULT($has_option)
unset has_option
unset SAVE_CFLAGS
done
unset option
2000-07-12 19:33:38 +00:00
else
AC_MSG_RESULT(no)
fi
2001-10-31 00:31:00 +00:00
dnl ==========================================================================
2001-11-09 01:10:02 +00:00
dnl gimphwrapbox
GIMPHWRAPBOX_MODULES="gtk+-2.0"
GIMPHWRAPBOX_CFLAGS="`$PKG_CONFIG --cflags $GIMPHWRAPBOX_MODULES`"
AC_SUBST(GIMPHWRAPBOX_CFLAGS)
2001-11-01 01:01:49 +00:00
dnl libnautilus (must list bonobo-activation and libbonobo because idldir does not respect "requires")
LIBNAUTILUS_MODULES="eel-2.0 bonobo-activation-2.0 libbonobo-2.0 libbonoboui-2.0"
2001-10-31 00:31:00 +00:00
LIBNAUTILUS_CFLAGS="`$PKG_CONFIG --cflags $LIBNAUTILUS_MODULES`"
AC_SUBST(LIBNAUTILUS_CFLAGS)
LIBNAUTILUS_LIBS="`$PKG_CONFIG --libs $LIBNAUTILUS_MODULES`"
AC_SUBST(LIBNAUTILUS_LIBS)
LIBNAUTILUS_IDL_INCLUDES="`$PKG_CONFIG --variable=idldir $LIBNAUTILUS_MODULES | $srcdir/add-include-prefix`"
AC_SUBST(LIBNAUTILUS_IDL_INCLUDES)
2001-11-09 01:10:02 +00:00
dnl core nautilus (must list bonobo-activation and libbonobo because idldir does not respect "requires")
CORE_MODULES="eel-2.0 bonobo-activation-2.0 libbonobo-2.0 libbonoboui-2.0"
CORE_CFLAGS="`$PKG_CONFIG --cflags $CORE_MODULES`"
AC_SUBST(CORE_CFLAGS)
CORE_LIBS="`$PKG_CONFIG --libs $CORE_MODULES` $CDDA_LIBS $ESD_LIBS $FAM_LIBS $ICONV_LIBS $LIBJPEG $MEDUSA_LIBS"
AC_SUBST(CORE_LIBS)
CORE_IDL_INCLUDES="`$PKG_CONFIG --variable=idldir $CORE_MODULES | $srcdir/add-include-prefix`"
AC_SUBST(CORE_IDL_INCLUDES)
dnl libnautilus-private
LIBNAUTILUS_PRIVATE_LIBS="$CORE_LIBS $CDDA_LIBS $ESD_LIBS $FAM_LIBS $ICONV_LIBS $LIBJPEG $MEDUSA_LIBS"
2001-10-31 00:31:00 +00:00
AC_SUBST(LIBNAUTILUS_PRIVATE_LIBS)
2001-11-09 01:10:02 +00:00
dnl typical components
COMPONENT_MODULES="eel-2.0 libbonoboui-2.0"
COMPONENT_CFLAGS="`$PKG_CONFIG --cflags $COMPONENT_MODULES`"
AC_SUBST(COMPONENT_CFLAGS)
COMPONENT_LIBS="`$PKG_CONFIG --libs $COMPONENT_MODULES`"
AC_SUBST(COMPONENT_LIBS)
2001-10-31 00:31:00 +00:00
dnl ==========================================================================
1999-12-05 00:40:26 +00:00
AC_OUTPUT([
Makefile
1999-12-09 23:56:07 +00:00
components/Makefile
2000-09-15 08:33:12 +00:00
components/adapter/Makefile
2000-04-24 09:05:21 +00:00
components/hardware/Makefile
components/hardware/icons/Makefile
1999-12-10 07:00:00 +00:00
components/help/Makefile
2001-10-31 00:31:00 +00:00
components/history/Makefile
Fixed bug 2194, no scrollbars in image view Fixed bug 2215, image viewer
2000-09-15 Gene Z. Ragan <gzr@eazel.com>
Fixed bug 2194, no scrollbars in image view
Fixed bug 2215, image viewer needs to erase background
when loading image.
I fixed these bugs by writing a new image component. Is this bad?
I don't know. What is bad is the current state of the EOG bonobo
component. I don't think it is worth our time to fix it right now.
This component will also support the zoomable interface when
Maciej finishes the work there. It is doubtful the EOG bonobo
component would have a Nautilus specific dependency.
* components/Makefile.am:
* components/image-viewer/.cvsignore:
* components/image-viewer/Makefile.am:
* components/image-viewer/io-png.c: (png_write_data_fn),
(png_flush_fn), (image_save):
* components/image-viewer/io-png.h:
* components/image-viewer/nautilus-image-view.c:
(release_pixbuf_cb), (release_pixbuf), (bod_destroy_cb),
(get_pixbuf), (render_pixbuf), (redraw_view), (configure_size),
(resize_all_cb), (view_update), (save_image_to_stream),
(load_image_from_stream), (destroy_view),
(zoomable_zoom_in_callback), (zoomable_zoom_out_callback),
(zoomable_set_zoom_level_callback),
(zoomable_zoom_to_fit_callback), (drawing_area_exposed),
(view_size_allocate_cb), (scrolled_view_size_allocate_cb),
(view_factory_common), (scaled_view_factory),
(scrollable_view_factory), (bonobo_object_factory),
(init_bonobo_image_generic_factory), (init_server_factory), (main):
* components/image-viewer/nautilus-image-view.oafinfo:
* configure.in:
New files and functions.
2000-09-16 01:01:39 +00:00
components/image-viewer/Makefile
2001-10-31 00:31:00 +00:00
components/loser/Makefile
components/loser/content/Makefile
components/loser/sidebar/Makefile
components/mozilla/Makefile
2000-03-06 00:22:44 +00:00
components/music/Makefile
first check-in of "news" sidebar view to display news from selected sites
first check-in of "news" sidebar view to display news from selected
sites that support an rss feed. It's around 80% completed now, and
should be quite usable; I just need to finish the remaining 80%.
* components/news/.cvsignore:
* components/news/Makefile.am:
* components/news/Nautilus_View_news.oaf.in:
* components/news/nautilus-news.c: (get_bonobo_properties),
(set_bonobo_properties), (do_destroy), (pixbuf_composite),
(draw_triangle), (draw_rss_logo_image), (draw_rss_title),
(draw_rss_items), (nautilus_news_draw_channel),
(nautilus_news_update_display), (nautilus_news_configure_event),
(nautilus_news_expose_event), (nautilus_news_set_prelight_index),
(go_to_uri), (toggle_open_state), (item_hit_test),
(nautilus_news_button_release_event),
(nautilus_news_motion_notify_event),
(nautilus_news_leave_notify_event), (nautilus_news_set_title),
(free_rss_data_item), (free_rss_channel_items), (free_channel),
(nautilus_news_free_channel_list), (bool_to_text),
(nautilus_news_make_channel_document),
(nautilus_news_save_channel_state), (rss_logo_callback),
(extract_items), (update_size_and_redraw),
(rss_read_done_callback), (nautilus_news_load_channel),
(nautilus_news_make_new_channel), (nautilus_news_add_channels),
(get_xml_path), (read_channel_list), (check_for_updates),
(news_get_indicator_image), (load_xpm_image),
(nautilus_news_load_images), (configure_button_clicked),
(add_site_button_clicked), (add_site_from_fields),
(add_command_buttons), (get_channel_from_name),
(check_button_toggled_callback), (nautilus_news_load_location),
(add_channel_entry), (add_channels_to_configure_list),
(set_up_add_widgets), (set_up_configure_widgets),
(set_up_main_widgets), (make_news_view), (main):
* components/news/news_bullet.png:
* components/news/news_channels.xml:
* components/news/pixmaps.h:
* configure.in:
2001-04-21 00:23:48 +00:00
components/news/Makefile
2000-02-15 02:51:00 +00:00
components/notes/Makefile
2000-03-03 17:28:29 +00:00
components/sample/Makefile
added a new text view component with zooming, settable fonts and
added a new text view component with zooming, settable fonts and
text-oriented services. The services are currently hardwired but there
will be a framework soon. You may have to delete your
/gnome/share/oaf/text-plain.oafinfo to see it in action.
* configure.in:
* components/Makefile.am:
* components/text/.cvsignore:
* components/text/Makefile.am:
build stuff for the new text view
* components/text/main.c: (text_view_object_destroyed),
(text_view_make_object), (main):
factory object for the text view
* components/text/nautilus-text-view-ui.xml:
xml file defining the menus for the text view
* components/text/nautilus-text-view.oafinfo:
oaf definitions for the text view
* components/text/nautilus-text-view.h:
interface file for the text view
* components/text/nautilus-text-view.c:
(nautilus_text_view_initialize_class),
(nautilus_text_view_initialize), (detach_file),
(nautilus_text_view_destroy),
(nautilus_text_view_get_nautilus_view),
(nautilus_text_view_update), (nautilus_text_view_load_uri),
(text_view_load_location_callback),
(nautilus_text_view_update_font), (get_selected_text),
(text_view_search_callback), (text_view_lookup_callback),
(nautilus_text_view_set_font), (handle_ui_event),
(merge_bonobo_menu_items), (nautilus_text_view_zoom_to_level),
(nautilus_text_view_bump_zoom_level), (zoomable_zoom_in_callback),
(zoomable_zoom_out_callback), (zoom_index_from_float),
(zoomable_set_zoom_level_callback),
(zoomable_zoom_to_fit_callback):
implementation for the text view
* libnautilus-extensions/nautilus-icon-container.c:
(lay_down_icons_horizontal):
fixed bug 3485, icon layout not using all of the available space, by tweaking the
code to not require the extra space between the columns
2000-11-28 01:43:43 +00:00
components/text/Makefile
2000-11-29 06:48:24 +00:00
components/text/services/Makefile
fixed bug 4369, throbber frozen during long refresh, by making the
fixed bug 4369, throbber frozen during long refresh, by making the
throbber a bonobo component so it's driven by its own thread.
Note that clicking on the throbber is temporarily broken; I'll
fix that soon. Also, made the frame delay be specified by the
theme and set the default to spin somewhat slower than before.
* configure.in:
* components/Makefile.am:
* components/throbber/.cvsignore:
* components/throbber/Makefile.am:
* components/throbber/nautilus-throbber.oafinfo:
added throbber component
* components/throbber/main.c: (throbber_object_destroyed),
(throbber_make_object), (main):
factory for the throbber component
* components/throbber/nautilus-throbber.c,h:
(nautilus_throbber_initialize_class), (is_throbbing),
(get_bonobo_properties), (set_bonobo_properties),
(nautilus_throbber_destroy), (nautilus_throbber_get_control),
(get_throbber_dimensions), (nautilus_throbber_initialize),
(nautilus_throbber_new), (nautilus_throbber_theme_changed),
(draw_pixbuf), (select_throbber_image), (draw_throbber_image),
(nautilus_throbber_draw), (nautilus_throbber_expose),
(nautilus_throbber_map), (bump_throbber_frame),
(nautilus_throbber_start),
(nautilus_throbber_remove_update_callback),
(nautilus_throbber_stop), (nautilus_throbber_unload_images),
(load_themed_image), (make_throbber_frame_name),
(nautilus_throbber_load_images),
(nautilus_throbber_button_press_event),
(nautilus_throbber_set_small_mode),
(nautilus_throbber_size_allocate),
(nautilus_throbber_size_request):
throbber widget for the bonobo component
* src/nautilus-window-toolbars.c: (theme_changed_callback),
(nautilus_window_initialize_toolbars):
set up throbber component in the toolbar
* src/nautilus-window.c,h: (nautilus_window_constructed),
(nautilus_window_allow_stop):
use property interface to start and stop the throbber
* icons/default.xml:
added delay specification to throbber in default theme
* nautilus-clean.sh:
clean throbber component as necessary
* src/Makefile.am:
* src/nautilus-throbber.c,h
removed old throbber widget
2001-01-16 03:44:40 +00:00
components/throbber/Makefile
2000-06-20 00:31:54 +00:00
components/tree/Makefile
2001-10-31 00:31:00 +00:00
cut-n-paste-code/Makefile
cut-n-paste-code/widgets/Makefile
cut-n-paste-code/widgets/gimphwrapbox/Makefile
data/Makefile
data/emblems/Makefile
data/patterns/Makefile
2001-02-21 08:52:21 +00:00
help/Makefile
2001-02-22 10:26:22 +00:00
help/nautilus-quick-reference/C/Makefile
2001-10-31 00:31:00 +00:00
help/nautilus-quick-reference/Makefile
2001-03-01 09:27:39 +00:00
help/nautilus-quick-reference/es/Makefile
2001-03-08 14:01:02 +00:00
help/nautilus-quick-reference/ko/Makefile
2001-10-31 00:31:00 +00:00
help/nautilus-quick-reference/no/Makefile
help/nautilus-quick-reference/sv/Makefile
2001-03-01 09:27:39 +00:00
help/nautilus-release-notes/C/Makefile
2001-10-31 00:31:00 +00:00
help/nautilus-release-notes/Makefile
2001-04-27 01:19:07 +00:00
help/nautilus-screenshot-guidelines/C/Makefile
2001-10-31 00:31:00 +00:00
help/nautilus-screenshot-guidelines/Makefile
help/nautilus-user-manual/C/Makefile
help/nautilus-user-manual/Makefile
help/nautilus-user-manual/es/Makefile
help/nautilus-user-manual/ko/Makefile
icons/Makefile
icons/crux_eggplant/Makefile
icons/crux_eggplant/backgrounds/Makefile
icons/crux_eggplant/sidebar_tab_pieces/Makefile
icons/crux_eggplant/throbber/Makefile
icons/crux_teal/Makefile
icons/crux_teal/backgrounds/Makefile
icons/crux_teal/sidebar_tab_pieces/Makefile
icons/crux_teal/throbber/Makefile
icons/gnome/Makefile
icons/gnome/sidebar_tab_pieces/Makefile
icons/gnome/throbber/Makefile
icons/sidebar_tab_pieces/Makefile
icons/sierra/Makefile
icons/tahoe/Makefile
icons/throbber/Makefile
libnautilus-adapter/Makefile
libnautilus-private/Makefile
libnautilus/Makefile
nautilus.spec
2001-02-17 08:39:46 +00:00
omf-install/Makefile
2001-10-31 00:31:00 +00:00
po/Makefile.in
src/Makefile
src/file-manager/Makefile
test/Makefile
user-guide/Makefile
user-guide/gnufdl/Makefile
user-guide/gnugpl/Makefile
1999-12-05 00:40:26 +00:00
])
2000-06-26 14:33:01 +00:00
2001-10-31 00:31:00 +00:00
dnl ==========================================================================
2000-06-26 14:36:10 +00:00
dnl <= Configuration summary =>
2001-03-22 15:33:59 +00:00
echo "Nautilus configuration summary:"
echo ""
dnl <= CFLAGS and LDFLAGS =>
2001-10-31 00:31:00 +00:00
2001-05-02 12:18:48 +00:00
echo "CFLAGS : $CFLAGS"
2001-03-22 15:33:59 +00:00
echo "LDFLAGS : $LDFLAGS"
echo ""
2000-06-26 14:33:01 +00:00
dnl <= Mozilla component integrated? =>
2001-10-31 00:31:00 +00:00
2000-06-26 14:33:01 +00:00
case $found_mozilla in
2001-03-22 15:33:59 +00:00
t*)
echo "Mozilla component : YES"
echo " mozilla libraries : $_mozilla_lib_place"
echo " mozilla includes : $_mozilla_include_place"
echo " MOZILLA_PROFILES_CFLAGS : $MOZILLA_PROFILES_CFLAGS"
echo " MOZILLA_COMPONENT_RPATH_FLAGS : $MOZILLA_COMPONENT_RPATH_FLAGS"
echo " MOZILLA_COMPONENT_DEBUG_FLAGS : $MOZILLA_COMPONENT_DEBUG_FLAGS"
;;
*)
echo "Mozilla component : NO"
;;
2000-06-26 14:33:01 +00:00
esac
2001-03-22 15:33:59 +00:00
2000-10-04 20:43:34 +00:00
dnl <= Profile support? =>
2001-10-31 00:31:00 +00:00
2000-10-04 20:43:34 +00:00
case "X$ENABLE_PROFILER" in
2001-03-22 15:33:59 +00:00
X1)
echo "Enable profiler : YES"
;;
*)
echo "Enable profiler : NO"
;;
2000-10-04 20:43:34 +00:00
esac
2000-06-26 14:36:10 +00:00
dnl <= End of configuration summary =>