1 --- configure.ac.orig 2006-12-29 22:39:59.000000000 +0100
2 +++ configure.ac 2006-12-30 23:19:57.000000000 +0100
5 AC_MSG_RESULT([$have_psm])
7 -# This is only present on toolkit
9 -if test "$gecko_cv_gecko_flavour" = "toolkit"; then
11 -AC_DEFINE([HAVE_TYPEAHEADFIND],[1],[Define if we have tookit's typeaheadfind])
13 -# Make sure we DON'T have the typeaheadfind extension
15 -AC_MSG_CHECKING([whether typeaheadfind is broken])
18 -[GECKO_XPCOM_PROGRAM(
19 -[[#include <nsIComponentRegistrar.h>]],
22 -nsCOMPtr<nsIComponentRegistrar> registrar;
23 -rv = NS_GetComponentRegistrar (getter_AddRefs (registrar));
24 -if (NS_FAILED (rv)) break;
27 -nsCID *classID = nsnull;
28 -rv = registrar->ContractIDToCID ("@mozilla.org/typeaheadfind;1", &classID);
29 -if (NS_FAILED (rv) || !classID) break;
31 -nsCID badClassID = { 0x46590685, 0xbc00, 0x4aac,
32 - { 0xab, 0xed, 0x2c, 0x10, 0xa5, 0xb9, 0x45, 0xa4 } };
34 -status = classID->Equals (badClassID) ? 97 : EXIT_SUCCESS;
37 -[have_broken_typeaheadfind=no],
38 -[have_broken_typeaheadfind=yes],
39 -[have_broken_typeaheadfind=maybe])
41 -AC_MSG_RESULT([$have_broken_typeaheadfind])
43 -if test "$have_broken_typeaheadfind" = "yes"; then
44 - AC_MSG_ERROR([You must not compile $gecko_cv_gecko with the "typeaheadfind" extension enabled!])
47 -fi # gecko_cv_gecko_flavour = toolkit
49 # Make sure we don't accidentally build without PSM support
51 AC_MSG_CHECKING([whether to include PSM support])