nautilus/configure.in

381 lines
11 KiB
Plaintext
Raw Normal View History

AC_PREREQ(2.54)
dnl ===========================================================================
m4_define(glib_minver, 2.27.5)
m4_define(gnome_desktop_minver, 2.91.2)
m4_define(pango_minver, 1.1.2)
2011-01-10 17:19:21 +00:00
m4_define(gtk_minver, 2.99.0)
m4_define(xml_minver, 2.4.7)
m4_define(exif_minver, 0.5.12)
m4_define(exempi_minver, 1.99.5)
dnl 1. If the library code has changed at all since last release, then increment revision.
dnl 2. If any interfaces have been added, then increment current and set revision to 0.
dnl Interface break is not allowed.
m4_define(nautilus_extension_current, 4)
m4_define(nautilus_extension_revision, 0)
2011-01-31 18:35:55 +00:00
AC_INIT(nautilus, 2.91.8, http://bugzilla.gnome.org/enter_bug.cgi?product=nautilus)
dnl ===========================================================================
AC_CONFIG_SRCDIR(src)
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_MACRO_DIR([m4])
1999-12-05 00:40:26 +00:00
AM_INIT_AUTOMAKE([1.9 tar-ustar])
2009-12-17 12:09:08 +00:00
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
1999-12-05 00:40:26 +00:00
AM_MAINTAINER_MODE
AC_SUBST([ACLOCAL_AMFLAGS], ["\${ACLOCAL_FLAGS}"])
dnl We need to decrement current by one in the calculation of the age because
dnl the library was started with version "1:0:0" instead of "0:0:0"
AC_SUBST(NAUTILUS_EXTENSION_VERSION_INFO, [nautilus_extension_current]:[nautilus_extension_revision]:`expr [nautilus_extension_current] - 1`)
1999-12-05 00:40:26 +00:00
AC_C_BIGENDIAN
AC_C_CONST
1999-12-05 00:40:26 +00:00
AC_PROG_CC
AC_PROG_CPP
1999-12-05 00:40:26 +00:00
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AM_DISABLE_STATIC
AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
AC_CHECK_LIB(m, floor)
dnl ==========================================================================
GETTEXT_PACKAGE=nautilus
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",
[the gettext translation domain])
AM_GLIB_GNU_GETTEXT
GLIB_DEFINE_LOCALEDIR(GNOMELOCALEDIR)
2010-07-21 11:55:25 +00:00
GLIB_GSETTINGS
IT_PROG_INTLTOOL([0.40.1])
dnl ==========================================================================
GTK_DOC_CHECK([1.4])
dnl ==========================================================================
ENABLE_PROFILER=
AC_ARG_ENABLE(profiler,
AC_HELP_STRING([--enable-profiler], [Enable profiler]),
[ENABLE_PROFILER=1
AC_DEFINE(ENABLE_PROFILER, 1, [define to enable the profiler])])
profiling_support=off
if test "x$ENABLE_PROFILER" = "x1"
then
CFLAGS="-g -O -gdwarf-2 -finstrument-functions -D__NO_STRING_INLINES $CFLAGS"
LDFLAGS="/gnome/GNOME2/lib/libprofiler.so -lpthread $LDFLAGS"
profiling_support=on
fi
AC_SUBST(ENABLE_PROFILER)
AM_CONDITIONAL(ENABLE_PROFILER, test "x$ENABLE_PROFILER" = "x1")
dnl ==========================================================================
AC_ARG_ENABLE(debug,
AC_HELP_STRING([--disable-debug],[Disable debugging code]),
[
case "${enableval}" in
yes|no) enable_debug="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
esac
],
[enable_debug=yes])
if test "$enable_debug" = yes; then
AC_DEFINE(ENABLE_DEBUG, [], [Enable debug code])
else
enable_debug=no
fi
dnl ==========================================================================
AC_CHECK_PROGS(PERL, perl5 perl)
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
dnl ==========================================================================
dnl Check whether to build the nautilus-sendto extension
AC_ARG_ENABLE(nst_extension,
AC_HELP_STRING([--disable-nst-extension],
[build without nautilus-sendto extension]))
if test "x$enable_nst_extension" != "xno"; then
enable_nst_extension=yes
fi
2011-01-11 17:13:29 +00:00
AM_CONDITIONAL(ENABLE_NST_EXTENSION, test "x$enable_nst_extension" != "xno")
dnl ==========================================================================
AC_CHECK_HEADERS(sys/mount.h sys/vfs.h sys/param.h malloc.h)
AC_CHECK_FUNCS(mallopt)
dnl ==========================================================================
dnl libexif checking
AM_CONDITIONAL(HAVE_EXIF, false)
AC_ARG_ENABLE(libexif,
AC_HELP_STRING([--disable-libexif],
[build without libexif support]))
msg_libexif=no
if test "x$enable_libexif" != "xno"; then
PKG_CHECK_MODULES(EXIF, libexif > exif_minver, [
AM_CONDITIONAL(HAVE_EXIF, true)
AC_DEFINE(HAVE_EXIF, 1, [Define to enable EXIF support])
] msg_libexif=yes,
[AM_CONDITIONAL(HAVE_EXIF, false)])
AC_SUBST(EXIF_CFLAGS)
AC_SUBST(EXIF_LIBS)
fi
dnl ==========================================================================
dnl exempi checking
AM_CONDITIONAL(HAVE_EXEMPI, false)
AC_ARG_ENABLE(xmp,
AC_HELP_STRING([--disable-xmp],
[build without xmp support]))
msg_xmp=no
if test "x$enable_xmp" != "xno"; then
PKG_CHECK_MODULES(EXEMPI, exempi-2.0 >= exempi_minver, [
AM_CONDITIONAL(HAVE_EXEMPI, true)
AC_DEFINE(HAVE_EXEMPI, 1, [Define to enable xmp support])
] msg_xmp=yes,
[AM_CONDITIONAL(HAVE_EXEMPI, false)])
AC_SUBST(EXEMPI_CFLAGS)
AC_SUBST(EXEMPI_LIBS)
fi
dnl ==========================================================================
dnl ****************************
dnl *** Check for libselinux ***
dnl ****************************
SELINUX_LIBS=
msg_selinux=no
AC_CHECK_LIB(selinux, is_selinux_enabled,
[AC_CHECK_HEADERS(selinux/selinux.h,
[AC_SEARCH_LIBS(selinux_raw_to_trans_context, selinux,
[AC_DEFINE(HAVE_SELINUX, 1, [Define to 1 if libselinux is available])
SELINUX_LIBS="-lselinux"
msg_selinux=yes])
])
])
AC_SUBST(SELINUX_LIBS)
AC_ARG_ENABLE(empty_view,
AC_HELP_STRING([--enable-empty-view], [Enable empty view]),
[ENABLE_EMPTY_VIEW=1
AC_DEFINE(ENABLE_EMPTY_VIEW, 1, [define to enable the empty view that is used for performance measurement])])
AC_SUBST(ENABLE_EMPTY_VIEW)
AM_CONDITIONAL(ENABLE_EMPTY_VIEW, test "x$ENABLE_EMPTY_VIEW" = "x1")
dnl ==========================================================================
AC_ARG_ENABLE(packagekit,
AC_HELP_STRING([--disable-packagekit],
[build without PackageKit support]))
msg_packagekit=no
if test "x$enable_packagekit" != "xno"; then
msg_packagekit=yes
AC_DEFINE(ENABLE_PACKAGEKIT, 1, [define to enable PackageKit mimetype installer])
fi
dnl ==========================================================================
dnl Turn on the additional warnings last, so -Werror doesn't affect other tests.
WARNING_CFLAGS=""
Change to use bonobo_object_unref now that the leaks have been fixed. This * src/nautilus-view-frame.c: (nautilus_view_frame_destroy_client): Change to use bonobo_object_unref now that the leaks have been fixed. This requires the new Bonobo or you'll have lots of leaked processes. Luckily, Nautilus won't compile without the new Bonobo due to my use of bonobo_object_shutdown in main :-) * configure.in: Fix the way -Werror works so it affects all directories, not just ones where we use WERROR. * components/hardware/Makefile.am: * components/help/Makefile.am: * components/history/Makefile.am: * components/loser/content/Makefile.am: * components/loser/sidebar/Makefile.am: * components/mozilla/Makefile.am: * components/music/Makefile.am: * components/notes/Makefile.am: * components/rpmview/Makefile.am: * components/sample/Makefile.am: * components/services/install/command-line/Makefile.am: * components/services/install/lib/Makefile.am: * components/services/install/nautilus-view/Makefile.am: * components/services/install/server/Makefile.am: * components/services/inventory/lib/Makefile.am: * components/services/inventory/nautilus-view/Makefile.am: * components/services/inventory/service/Makefile.am: * components/services/login/lib/Makefile.am: * components/services/login/nautilus-view/Makefile.am: * components/services/login/service/Makefile.am: * components/services/startup/command-line/Makefile.am: * components/services/startup/lib/Makefile.am: * components/services/startup/nautilus-view/Makefile.am: * components/services/summary/lib/Makefile.am: * components/services/summary/nautilus-view/Makefile.am: * components/services/summary/service/Makefile.am: * components/services/time/command-line/Makefile.am: * components/services/time/nautilus-view/Makefile.am: * components/services/time/service/Makefile.am: * components/services/trilobite/helper/Makefile.am: * components/services/trilobite/libtrilobite/Makefile.am: * components/services/trilobite/sample/command-line/.cvsignore: * components/services/trilobite/sample/command-line/Makefile.am: * components/services/trilobite/sample/lib/Makefile.am: * components/services/trilobite/sample/nautilus-view/Makefile.am: * components/services/trilobite/sample/service/Makefile.am: * components/services/vault/command-line/Makefile.am: * components/services/vault/lib/Makefile.am: * components/services/vault/nautilus-view/Makefile.am: * components/services/vault/service/Makefile.am: * components/tree/Makefile.am: * components/websearch/Makefile.am: * cut-n-paste-code/widgets/nautilus-druid/Makefile.am: * helper-utilities/authenticate/Makefile.am: * libnautilus-extensions/Makefile.am: * libnautilus/Makefile.am: * librsvg/Makefile.am: * nautilus-installer/src/Makefile.am: * src/Makefile.am: * src/file-manager/Makefile.am: * test/Makefile.am: Got rid of the WERROR shell variable. The -Werror switch is no longer a per-directory thing. * librsvg/Makefile.am: Added libpng to the libraries for the test program. Maybe this was the wrong thing to do, but before this change the link failed. * components/sample/Makefile.am: * components/sample/main.c: * components/sample/nautilus-sample-content-view.c: * components/sample/nautilus-sample-content-view.h: A clean-up of the sample, including fixing many bugs and adding lots of comments. I figure we want this to be as close to exemplary as possible since people will continue to start with it for new components. * libnautilus-extensions/nautilus-bookmark.c: (nautilus_bookmark_new_with_icon): Removed a bogus extra ref of a NautilusFile object that I spotted in here. * src/nautilus-application.c: (nautilus_application_destroy_window): Re-added the code to quit when the last window is closed that Mike removed in his recent check-in. * src/nautilus-main.c: (main): Added a call to bonobo_shutdown. We don't need this call, but I say, "Why not?"
2000-07-12 19:33:38 +00:00
AC_ARG_ENABLE(more-warnings,
AC_HELP_STRING([--enable-more-warnings], [Maximum compiler warnings]),
set_more_warnings="$enableval",[
if test -f $srcdir/CVSVERSION; then
is_cvs_version=true
set_more_warnings=yes
else
set_more_warnings=no
fi
])
Change to use bonobo_object_unref now that the leaks have been fixed. This * src/nautilus-view-frame.c: (nautilus_view_frame_destroy_client): Change to use bonobo_object_unref now that the leaks have been fixed. This requires the new Bonobo or you'll have lots of leaked processes. Luckily, Nautilus won't compile without the new Bonobo due to my use of bonobo_object_shutdown in main :-) * configure.in: Fix the way -Werror works so it affects all directories, not just ones where we use WERROR. * components/hardware/Makefile.am: * components/help/Makefile.am: * components/history/Makefile.am: * components/loser/content/Makefile.am: * components/loser/sidebar/Makefile.am: * components/mozilla/Makefile.am: * components/music/Makefile.am: * components/notes/Makefile.am: * components/rpmview/Makefile.am: * components/sample/Makefile.am: * components/services/install/command-line/Makefile.am: * components/services/install/lib/Makefile.am: * components/services/install/nautilus-view/Makefile.am: * components/services/install/server/Makefile.am: * components/services/inventory/lib/Makefile.am: * components/services/inventory/nautilus-view/Makefile.am: * components/services/inventory/service/Makefile.am: * components/services/login/lib/Makefile.am: * components/services/login/nautilus-view/Makefile.am: * components/services/login/service/Makefile.am: * components/services/startup/command-line/Makefile.am: * components/services/startup/lib/Makefile.am: * components/services/startup/nautilus-view/Makefile.am: * components/services/summary/lib/Makefile.am: * components/services/summary/nautilus-view/Makefile.am: * components/services/summary/service/Makefile.am: * components/services/time/command-line/Makefile.am: * components/services/time/nautilus-view/Makefile.am: * components/services/time/service/Makefile.am: * components/services/trilobite/helper/Makefile.am: * components/services/trilobite/libtrilobite/Makefile.am: * components/services/trilobite/sample/command-line/.cvsignore: * components/services/trilobite/sample/command-line/Makefile.am: * components/services/trilobite/sample/lib/Makefile.am: * components/services/trilobite/sample/nautilus-view/Makefile.am: * components/services/trilobite/sample/service/Makefile.am: * components/services/vault/command-line/Makefile.am: * components/services/vault/lib/Makefile.am: * components/services/vault/nautilus-view/Makefile.am: * components/services/vault/service/Makefile.am: * components/tree/Makefile.am: * components/websearch/Makefile.am: * cut-n-paste-code/widgets/nautilus-druid/Makefile.am: * helper-utilities/authenticate/Makefile.am: * libnautilus-extensions/Makefile.am: * libnautilus/Makefile.am: * librsvg/Makefile.am: * nautilus-installer/src/Makefile.am: * src/Makefile.am: * src/file-manager/Makefile.am: * test/Makefile.am: Got rid of the WERROR shell variable. The -Werror switch is no longer a per-directory thing. * librsvg/Makefile.am: Added libpng to the libraries for the test program. Maybe this was the wrong thing to do, but before this change the link failed. * components/sample/Makefile.am: * components/sample/main.c: * components/sample/nautilus-sample-content-view.c: * components/sample/nautilus-sample-content-view.h: A clean-up of the sample, including fixing many bugs and adding lots of comments. I figure we want this to be as close to exemplary as possible since people will continue to start with it for new components. * libnautilus-extensions/nautilus-bookmark.c: (nautilus_bookmark_new_with_icon): Removed a bogus extra ref of a NautilusFile object that I spotted in here. * src/nautilus-application.c: (nautilus_application_destroy_window): Re-added the code to quit when the last window is closed that Mike removed in his recent check-in. * src/nautilus-main.c: (main): Added a call to bonobo_shutdown. We don't need this call, but I say, "Why not?"
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)
WARNING_CFLAGS="\
-Wall \
-Wmissing-declarations -Wmissing-prototypes \
Change to use bonobo_object_unref now that the leaks have been fixed. This * src/nautilus-view-frame.c: (nautilus_view_frame_destroy_client): Change to use bonobo_object_unref now that the leaks have been fixed. This requires the new Bonobo or you'll have lots of leaked processes. Luckily, Nautilus won't compile without the new Bonobo due to my use of bonobo_object_shutdown in main :-) * configure.in: Fix the way -Werror works so it affects all directories, not just ones where we use WERROR. * components/hardware/Makefile.am: * components/help/Makefile.am: * components/history/Makefile.am: * components/loser/content/Makefile.am: * components/loser/sidebar/Makefile.am: * components/mozilla/Makefile.am: * components/music/Makefile.am: * components/notes/Makefile.am: * components/rpmview/Makefile.am: * components/sample/Makefile.am: * components/services/install/command-line/Makefile.am: * components/services/install/lib/Makefile.am: * components/services/install/nautilus-view/Makefile.am: * components/services/install/server/Makefile.am: * components/services/inventory/lib/Makefile.am: * components/services/inventory/nautilus-view/Makefile.am: * components/services/inventory/service/Makefile.am: * components/services/login/lib/Makefile.am: * components/services/login/nautilus-view/Makefile.am: * components/services/login/service/Makefile.am: * components/services/startup/command-line/Makefile.am: * components/services/startup/lib/Makefile.am: * components/services/startup/nautilus-view/Makefile.am: * components/services/summary/lib/Makefile.am: * components/services/summary/nautilus-view/Makefile.am: * components/services/summary/service/Makefile.am: * components/services/time/command-line/Makefile.am: * components/services/time/nautilus-view/Makefile.am: * components/services/time/service/Makefile.am: * components/services/trilobite/helper/Makefile.am: * components/services/trilobite/libtrilobite/Makefile.am: * components/services/trilobite/sample/command-line/.cvsignore: * components/services/trilobite/sample/command-line/Makefile.am: * components/services/trilobite/sample/lib/Makefile.am: * components/services/trilobite/sample/nautilus-view/Makefile.am: * components/services/trilobite/sample/service/Makefile.am: * components/services/vault/command-line/Makefile.am: * components/services/vault/lib/Makefile.am: * components/services/vault/nautilus-view/Makefile.am: * components/services/vault/service/Makefile.am: * components/tree/Makefile.am: * components/websearch/Makefile.am: * cut-n-paste-code/widgets/nautilus-druid/Makefile.am: * helper-utilities/authenticate/Makefile.am: * libnautilus-extensions/Makefile.am: * libnautilus/Makefile.am: * librsvg/Makefile.am: * nautilus-installer/src/Makefile.am: * src/Makefile.am: * src/file-manager/Makefile.am: * test/Makefile.am: Got rid of the WERROR shell variable. The -Werror switch is no longer a per-directory thing. * librsvg/Makefile.am: Added libpng to the libraries for the test program. Maybe this was the wrong thing to do, but before this change the link failed. * components/sample/Makefile.am: * components/sample/main.c: * components/sample/nautilus-sample-content-view.c: * components/sample/nautilus-sample-content-view.h: A clean-up of the sample, including fixing many bugs and adding lots of comments. I figure we want this to be as close to exemplary as possible since people will continue to start with it for new components. * libnautilus-extensions/nautilus-bookmark.c: (nautilus_bookmark_new_with_icon): Removed a bogus extra ref of a NautilusFile object that I spotted in here. * src/nautilus-application.c: (nautilus_application_destroy_window): Re-added the code to quit when the last window is closed that Mike removed in his recent check-in. * src/nautilus-main.c: (main): Added a call to bonobo_shutdown. We don't need this call, but I say, "Why not?"
2000-07-12 19:33:38 +00:00
-Wnested-externs -Wpointer-arith \
-Wcast-align \
-Werror"
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 -Wstrict-aliasing=0 -Wno-pointer-sign; do
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $option"
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,)
if test $has_option = yes; then
WARNING_CFLAGS="$WARNING_CFLAGS $option"
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)
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
unset has_option
unset SAVE_CFLAGS
done
unset option
Change to use bonobo_object_unref now that the leaks have been fixed. This * src/nautilus-view-frame.c: (nautilus_view_frame_destroy_client): Change to use bonobo_object_unref now that the leaks have been fixed. This requires the new Bonobo or you'll have lots of leaked processes. Luckily, Nautilus won't compile without the new Bonobo due to my use of bonobo_object_shutdown in main :-) * configure.in: Fix the way -Werror works so it affects all directories, not just ones where we use WERROR. * components/hardware/Makefile.am: * components/help/Makefile.am: * components/history/Makefile.am: * components/loser/content/Makefile.am: * components/loser/sidebar/Makefile.am: * components/mozilla/Makefile.am: * components/music/Makefile.am: * components/notes/Makefile.am: * components/rpmview/Makefile.am: * components/sample/Makefile.am: * components/services/install/command-line/Makefile.am: * components/services/install/lib/Makefile.am: * components/services/install/nautilus-view/Makefile.am: * components/services/install/server/Makefile.am: * components/services/inventory/lib/Makefile.am: * components/services/inventory/nautilus-view/Makefile.am: * components/services/inventory/service/Makefile.am: * components/services/login/lib/Makefile.am: * components/services/login/nautilus-view/Makefile.am: * components/services/login/service/Makefile.am: * components/services/startup/command-line/Makefile.am: * components/services/startup/lib/Makefile.am: * components/services/startup/nautilus-view/Makefile.am: * components/services/summary/lib/Makefile.am: * components/services/summary/nautilus-view/Makefile.am: * components/services/summary/service/Makefile.am: * components/services/time/command-line/Makefile.am: * components/services/time/nautilus-view/Makefile.am: * components/services/time/service/Makefile.am: * components/services/trilobite/helper/Makefile.am: * components/services/trilobite/libtrilobite/Makefile.am: * components/services/trilobite/sample/command-line/.cvsignore: * components/services/trilobite/sample/command-line/Makefile.am: * components/services/trilobite/sample/lib/Makefile.am: * components/services/trilobite/sample/nautilus-view/Makefile.am: * components/services/trilobite/sample/service/Makefile.am: * components/services/vault/command-line/Makefile.am: * components/services/vault/lib/Makefile.am: * components/services/vault/nautilus-view/Makefile.am: * components/services/vault/service/Makefile.am: * components/tree/Makefile.am: * components/websearch/Makefile.am: * cut-n-paste-code/widgets/nautilus-druid/Makefile.am: * helper-utilities/authenticate/Makefile.am: * libnautilus-extensions/Makefile.am: * libnautilus/Makefile.am: * librsvg/Makefile.am: * nautilus-installer/src/Makefile.am: * src/Makefile.am: * src/file-manager/Makefile.am: * test/Makefile.am: Got rid of the WERROR shell variable. The -Werror switch is no longer a per-directory thing. * librsvg/Makefile.am: Added libpng to the libraries for the test program. Maybe this was the wrong thing to do, but before this change the link failed. * components/sample/Makefile.am: * components/sample/main.c: * components/sample/nautilus-sample-content-view.c: * components/sample/nautilus-sample-content-view.h: A clean-up of the sample, including fixing many bugs and adding lots of comments. I figure we want this to be as close to exemplary as possible since people will continue to start with it for new components. * libnautilus-extensions/nautilus-bookmark.c: (nautilus_bookmark_new_with_icon): Removed a bogus extra ref of a NautilusFile object that I spotted in here. * src/nautilus-application.c: (nautilus_application_destroy_window): Re-added the code to quit when the last window is closed that Mike removed in his recent check-in. * src/nautilus-main.c: (main): Added a call to bonobo_shutdown. We don't need this call, but I say, "Why not?"
2000-07-12 19:33:38 +00:00
else
AC_MSG_RESULT(no)
fi
AC_SUBST(WARNING_CFLAGS)
dnl ===========================================================================
dnl strftime checks
AC_TRY_RUN([#include <time.h>
int main ()
{
char buf[100];
struct tm tm = {0};
tm.tm_year = 99;
if (strftime(buf, 100, "%EY", &tm) == 4 &&
strcmp (buf, "1999")==0)
return 0;
return 1;
}
],
AC_DEFINE(HAVE_STRFTIME_EXTENSION, 1, [Define if strftime supports %E and %O modifiers.])
)
dnl ===========================================================================
#
# Checks for Xft/XRender
#
PKG_CHECK_MODULES(RENDER, xrender, [
AM_CONDITIONAL(HAVE_RENDER, true)
AC_DEFINE(HAVE_RENDER, 1, [Define to enable render support])
],
[AM_CONDITIONAL(HAVE_RENDER, false)])
AC_SUBST(RENDER_LIBS)
dnl ==========================================================================
dnl base libs
PKG_CHECK_MODULES(BASE, [
gtk+-3.0 >= gtk_minver
glib-2.0 >= glib_minver
])
AC_SUBST(BASE_CFLAGS)
AC_SUBST(BASE_LIBS)
dnl common libs (eel, nautilus)
PKG_CHECK_MODULES(COMMON, [
gail-3.0
gnome-desktop-3.0 >= gnome_desktop_minver
libxml-2.0 >= xml_minver
x11
])
AC_SUBST(COMMON_CFLAGS)
AC_SUBST(COMMON_LIBS)
dnl additional nautilus libs
PKG_CHECK_MODULES(NAUTILUS, [
gthread-2.0 >= glib_minver
gio-2.0 >= glib_minver
gio-unix-2.0 >= glib_minver
gsettings-desktop-schemas
])
AC_SUBST(NAUTILUS_CFLAGS)
AC_SUBST(NAUTILUS_LIBS)
DISABLE_DEPRECATED_CFLAGS="-DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED"
AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
dnl Multimedia keys
AC_CHECK_HEADERS([X11/XF86keysym.h])
##################################################
# Check for introspection
##################################################
GOBJECT_INTROSPECTION_CHECK([0.6.4])
dnl ==========================================================================
AC_PATH_PROG(UPDATE_MIME_DATABASE, update-mime-database, no)
AC_ARG_ENABLE(update-mimedb,
AC_HELP_STRING([--disable-update-mimedb],
[disable the update-mime-database after install [default=no]]),,
enable_update_mimedb=yes)
AM_CONDITIONAL(ENABLE_UPDATE_MIMEDB, test x$enable_update_mimedb = xyes)
AC_CONFIG_FILES([
1999-12-05 00:40:26 +00:00
Makefile
cut-n-paste-code/Makefile
Move libegg stuff to cut-n-paste-code and update to the latest egg 2002-11-06 Anders Carlsson <andersca@gnu.org> * configure.in: * cut-n-paste-code/Makefile.am: * cut-n-paste-code/libegg/Makefile.am: * cut-n-paste-code/libegg/egg-recent-item.c: (egg_recent_item_new), (egg_recent_item_free), (egg_recent_item_ref), (egg_recent_item_unref), (egg_recent_item_new_from_uri), (egg_recent_item_set_uri), (egg_recent_item_get_uri), (egg_recent_item_peek_uri), (egg_recent_item_get_uri_utf8), (egg_recent_item_get_uri_for_display), (egg_recent_item_set_mime_type), (egg_recent_item_get_mime_type), (egg_recent_item_set_timestamp), (egg_recent_item_get_timestamp), (egg_recent_item_get_groups), (egg_recent_item_in_group), (egg_recent_item_add_group), (egg_recent_item_remove_group), (egg_recent_item_set_private), (egg_recent_item_get_private), (egg_recent_item_get_type): * cut-n-paste-code/libegg/egg-recent-item.h: * cut-n-paste-code/libegg/egg-recent-model.c: (egg_recent_model_string_match), (egg_recent_model_write_raw), (egg_recent_model_delete_from_list), (egg_recent_model_add_new_groups), (egg_recent_model_update_item), (egg_recent_model_read_raw), (parse_info_init), (parse_info_free), (push_state), (pop_state), (peek_state), (start_element_handler), (list_compare_func_mru), (list_compare_func_lru), (end_element_handler), (text_handler), (error_handler), (egg_recent_model_enforce_limit), (egg_recent_model_sort), (egg_recent_model_group_match), (egg_recent_model_filter), (egg_recent_model_monitor_list_cb), (egg_recent_model_monitor_list), (egg_recent_model_changed_timeout), (egg_recent_model_monitor_cb), (egg_recent_model_monitor), (egg_recent_model_set_limit_internal), (egg_recent_model_read), (egg_recent_model_write), (egg_recent_model_open_file), (egg_recent_model_lock_file), (egg_recent_model_unlock_file), (egg_recent_model_finalize), (egg_recent_model_set_property), (egg_recent_model_get_property), (egg_recent_model_class_init), (egg_recent_model_limit_changed), (egg_recent_model_expiration_changed), (egg_recent_model_init), (egg_recent_model_new), (egg_recent_model_add_full), (egg_recent_model_add), (egg_recent_model_delete), (egg_recent_model_get_list), (egg_recent_model_set_limit), (egg_recent_model_get_limit), (egg_recent_model_clear), (egg_recent_model_set_filter_mime_types), (egg_recent_model_set_filter_groups), (egg_recent_model_set_filter_uri_schemes), (egg_recent_model_set_sort), (egg_recent_model_changed), (egg_recent_model_remove_expired_list), (egg_recent_model_remove_expired), (egg_recent_model_get_type): * cut-n-paste-code/libegg/egg-recent-model.h: * cut-n-paste-code/libegg/egg-recent-vfs-utils.c: (make_valid_utf8), (istr_has_prefix), (str_has_prefix), (uri_is_local_scheme), (handle_trailing_slashes), (make_uri_canonical), (format_uri_for_display), (egg_recent_vfs_format_uri_for_display), (is_valid_scheme_character), (has_valid_scheme), (escape_high_chars), (make_uri_from_input_internal), (egg_recent_vfs_make_uri_from_input), (make_uri_canonical_strip_fragment), (uris_match), (egg_recent_vfs_uris_match), (egg_recent_vfs_get_uri_scheme): * cut-n-paste-code/libegg/egg-recent-vfs-utils.h: * cut-n-paste-code/libegg/egg-screen-exec.c: (egg_screen_exec_display_string), (egg_screen_exec_environment), (egg_screen_execute_async), (egg_screen_execute_shell), (egg_screen_execute_command_line_async): * cut-n-paste-code/libegg/egg-screen-exec.h: * cut-n-paste-code/libegg/egg-screen-help.c: (egg_help_display_on_screen), (egg_help_display_with_doc_id_on_screen), (egg_help_display_desktop_on_screen), (egg_help_display_uri_on_screen): * cut-n-paste-code/libegg/egg-screen-help.h: * cut-n-paste-code/libegg/egg-screen-url.c: (egg_url_show_on_screen): * cut-n-paste-code/libegg/egg-screen-url.h: * cut-n-paste-code/libegg/eggtreemultidnd.c: (egg_tree_multi_drag_source_get_type), (egg_tree_multi_drag_source_row_draggable), (egg_tree_multi_drag_source_drag_data_delete), (egg_tree_multi_drag_source_drag_data_get), (stop_drag_check), (egg_tree_multi_drag_button_release_event), (selection_foreach), (path_list_free), (set_context_data), (get_context_data), (get_info), (egg_tree_multi_drag_drag_data_get), (egg_tree_multi_drag_motion_event), (egg_tree_multi_drag_button_press_event), (egg_tree_multi_drag_add_drag_support): * cut-n-paste-code/libegg/eggtreemultidnd.h: * cut-n-paste-code/libegg/update-from-egg.sh: * libnautilus-private/Makefile.am: * libnautilus-private/egg-recent-item.c: * libnautilus-private/egg-recent-item.h: * libnautilus-private/egg-recent-model.c: * libnautilus-private/egg-recent-model.h: * libnautilus-private/egg-recent-vfs-utils.c: * libnautilus-private/egg-recent-vfs-utils.h: * libnautilus-private/egg-screen-exec.c: * libnautilus-private/egg-screen-exec.h: * libnautilus-private/egg-screen-help.c: * libnautilus-private/egg-screen-help.h: * libnautilus-private/egg-screen-url.c: * libnautilus-private/egg-screen-url.h: * libnautilus-private/eggtreemultidnd.c: * libnautilus-private/eggtreemultidnd.h: * libnautilus-private/nautilus-program-chooser.c: (help_cb): * libnautilus-private/update-from-egg.sh: * src/Makefile.am: * src/file-manager/Makefile.am: * src/file-manager/fm-desktop-icon-view.c: * src/file-manager/fm-directory-view.c: * src/file-manager/fm-list-model.c: * src/file-manager/fm-list-view.c: * src/file-manager/fm-properties-window.c: (help_button_callback): * src/file-manager/update-from-egg.sh: * src/nautilus-bookmarks-window.c: (nautilus_bookmarks_window_response_callback): * src/nautilus-property-browser.c: (help_button_callback): * src/nautilus-window-menus.c: (help_menu_nautilus_manual_callback): Move libegg stuff to cut-n-paste-code and update to the latest egg versions.
2002-11-06 10:38:48 +00:00
cut-n-paste-code/libegg/Makefile
data/Makefile
data/icons/Makefile
data/nautilus.desktop.in
data/nautilus-autorun-software.desktop.in
docs/Makefile
docs/reference/Makefile
docs/reference/libnautilus-extension/Makefile
docs/reference/libnautilus-extension/version.xml
eel/Makefile
icons/Makefile
libnautilus-private/Makefile
libnautilus-extension/Makefile
libnautilus-extension/libnautilus-extension.pc
libnautilus-extension/libnautilus-extension-uninstalled.pc
po/Makefile.in
src/Makefile
nautilus-sendto-extension/Makefile
test/Makefile
1999-12-05 00:40:26 +00:00
])
AC_OUTPUT
dnl ==========================================================================
echo "
nautilus-$VERSION:
prefix: ${prefix}
source code location: ${srcdir}
compiler: ${CC}
libexif support: $msg_libexif
libexempi support: $msg_xmp
PackageKit support: $msg_packagekit
nautilus-sendto ext: $enable_nst_extension
profiling support: ${profiling_support}
debugging support: ${enable_debug}
nautilus-extension documentation: ${enable_gtk_doc}
nautilus-extension introspection: ${found_introspection}
"